eidotter 0.19.0 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +0 -0
- package/README.md +27 -11
- package/dist/components/Accordion/components/AccordionFill.d.ts +0 -0
- package/dist/components/Accordion/components/Section.d.ts +0 -0
- package/dist/components/Accordion/components/index.d.ts +0 -0
- package/dist/components/Accordion/index.d.ts +0 -0
- package/dist/components/Alert/components/Alert.d.ts +0 -0
- package/dist/components/Alert/components/index.d.ts +0 -0
- package/dist/components/Alert/index.d.ts +0 -0
- package/dist/components/Badge/components/Badge.d.ts +0 -0
- package/dist/components/Badge/components/index.d.ts +0 -0
- package/dist/components/Badge/index.d.ts +0 -0
- package/dist/components/Breadcrumb/components/Breadcrumb.d.ts +0 -0
- package/dist/components/Breadcrumb/components/index.d.ts +0 -0
- package/dist/components/Breadcrumb/index.d.ts +0 -0
- package/dist/components/Button/components/Button.d.ts +0 -0
- package/dist/components/Button/components/index.d.ts +0 -0
- package/dist/components/Button/index.d.ts +0 -0
- package/dist/components/Card/components/Card.d.ts +0 -0
- package/dist/components/Card/components/index.d.ts +0 -0
- package/dist/components/Card/index.d.ts +0 -0
- package/dist/components/Chat/components/ChatContainer.d.ts +0 -0
- package/dist/components/Chat/components/ChatHistory.d.ts +0 -0
- package/dist/components/Chat/components/ChatInput.d.ts +0 -0
- package/dist/components/Chat/components/ChatMessage.d.ts +0 -0
- package/dist/components/Chat/components/index.d.ts +0 -0
- package/dist/components/Chat/index.d.ts +0 -0
- package/dist/components/Checkbox/components/Checkbox.d.ts +0 -0
- package/dist/components/Checkbox/components/index.d.ts +0 -0
- package/dist/components/Checkbox/index.d.ts +0 -0
- package/dist/components/CommandPrompt/components/CommandPrompt.d.ts +0 -0
- package/dist/components/CommandPrompt/components/index.d.ts +0 -0
- package/dist/components/CommandPrompt/index.d.ts +0 -0
- package/dist/components/FilterBar/components/FilterBar.d.ts +0 -0
- package/dist/components/FilterBar/components/index.d.ts +0 -0
- package/dist/components/FilterBar/index.d.ts +0 -0
- package/dist/components/Footer/components/Footer.d.ts +0 -0
- package/dist/components/Footer/components/index.d.ts +0 -0
- package/dist/components/Footer/index.d.ts +0 -0
- package/dist/components/Header/components/Header.d.ts +0 -0
- package/dist/components/Header/components/index.d.ts +0 -0
- package/dist/components/Header/index.d.ts +0 -0
- package/dist/components/Icon/components/Icon.d.ts +0 -0
- package/dist/components/Icon/components/index.d.ts +0 -0
- package/dist/components/Icon/index.d.ts +0 -0
- package/dist/components/InlineExpand/components/InlineExpand.d.ts +0 -0
- package/dist/components/InlineExpand/components/index.d.ts +0 -0
- package/dist/components/InlineExpand/index.d.ts +0 -0
- package/dist/components/Input/components/Input.d.ts +0 -0
- package/dist/components/Input/components/index.d.ts +0 -0
- package/dist/components/Input/index.d.ts +0 -0
- package/dist/components/Modal/components/Modal.d.ts +0 -0
- package/dist/components/Modal/components/index.d.ts +0 -0
- package/dist/components/Modal/index.d.ts +0 -0
- package/dist/components/Nav/components/Nav.d.ts +0 -0
- package/dist/components/Nav/components/index.d.ts +0 -0
- package/dist/components/Nav/index.d.ts +0 -0
- package/dist/components/Notification/components/Notification.d.ts +0 -0
- package/dist/components/Notification/components/index.d.ts +0 -0
- package/dist/components/Notification/index.d.ts +0 -0
- package/dist/components/Progress/components/Progress.d.ts +0 -0
- package/dist/components/Progress/components/index.d.ts +0 -0
- package/dist/components/Progress/index.d.ts +0 -0
- package/dist/components/RetroEffects/components/RetroEffects.d.ts +0 -0
- package/dist/components/RetroEffects/components/index.d.ts +0 -0
- package/dist/components/RetroEffects/index.d.ts +0 -0
- package/dist/components/Separator/components/Separator.d.ts +0 -0
- package/dist/components/Separator/components/index.d.ts +0 -0
- package/dist/components/Separator/index.d.ts +0 -0
- package/dist/components/Stat/components/Stat.d.ts +0 -0
- package/dist/components/Stat/components/index.d.ts +0 -0
- package/dist/components/Stat/index.d.ts +0 -0
- package/dist/components/Switch/components/Switch.d.ts +0 -0
- package/dist/components/Switch/components/index.d.ts +0 -0
- package/dist/components/Switch/index.d.ts +0 -0
- package/dist/components/Tabs/components/Tabs.d.ts +0 -0
- package/dist/components/Tabs/components/index.d.ts +0 -0
- package/dist/components/Tabs/index.d.ts +0 -0
- package/dist/components/Tag/components/Tag.d.ts +0 -0
- package/dist/components/Tag/components/TagGroup.d.ts +0 -0
- package/dist/components/Tag/components/index.d.ts +0 -0
- package/dist/components/Tag/index.d.ts +0 -0
- package/dist/components/Terminal/components/Terminal.d.ts +0 -0
- package/dist/components/Terminal/components/index.d.ts +0 -0
- package/dist/components/Terminal/index.d.ts +0 -0
- package/dist/components/TextScramble/components/TextScramble.d.ts +0 -0
- package/dist/components/TextScramble/components/index.d.ts +0 -0
- package/dist/components/TextScramble/index.d.ts +0 -0
- package/dist/components/TimelineContainer/components/TimelineAxis.d.ts +0 -0
- package/dist/components/TimelineContainer/components/TimelineContainer.d.ts +0 -0
- package/dist/components/TimelineContainer/components/TimelineContent.d.ts +0 -0
- package/dist/components/TimelineContainer/components/TimelineEntryCard.d.ts +0 -0
- package/dist/components/TimelineContainer/components/ZoomControls.d.ts +0 -0
- package/dist/components/TimelineContainer/components/index.d.ts +0 -0
- package/dist/components/TimelineContainer/components/timelineUtils.d.ts +0 -0
- package/dist/components/TimelineContainer/components/timelineUtils.test.d.ts +0 -0
- package/dist/components/TimelineContainer/components/types.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useDrillDown.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useDrillDown.test.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useSelection.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useSelection.test.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useZoom.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useZoom.test.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/DayView.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/HourView.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/MonthView.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/YearView.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/index.d.ts +0 -0
- package/dist/components/TimelineContainer/index.d.ts +0 -0
- package/dist/components/TimelineNode/components/TimelineNode.d.ts +0 -0
- package/dist/components/TimelineNode/components/index.d.ts +0 -0
- package/dist/components/TimelineNode/index.d.ts +0 -0
- package/dist/components/registry.d.ts +0 -0
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +70 -62
- package/dist/index.umd.js +4 -4
- package/guidelines/README.md +10 -6
- package/guidelines/components.md +0 -0
- package/guidelines/patterns.md +0 -0
- package/package.json +3 -3
- package/src/styles/fonts/Flexi_IBM_VGA_LICENSE.txt +0 -0
- package/src/styles/fonts/Flexi_IBM_VGA_True.ttf +0 -0
- package/src/styles/fonts.css +0 -0
- package/src/styles/theme.amber-mono.css +2 -2
- package/src/styles/theme.cga-amber.css +2 -2
- package/src/styles/theme.cga-mode4-p0.css +2 -2
- package/src/styles/theme.cga-mode4-p1.css +2 -2
- package/src/styles/theme.cga-mode5.css +2 -2
- package/src/styles/tokens.css +2 -2
- package/tailwind.preset.cjs +58 -13
- package/tailwind.preset.enhanced.cjs +21 -36
package/dist/index.umd.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function(O,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(O=typeof globalThis<"u"?globalThis:O||self,p(O.eidotter={},O.jsxRuntime,O.React,O.ReactDOM))})(this,(function(O,p,a,dt){"use strict";const ds=a.createContext(null);a.createContext(null),a.createContext(null),a.createContext(null),a.createContext(null);const cs=a.createContext({});a.createContext(null);const us=a.createContext(null),R=typeof document<"u"?a.useLayoutEffect:()=>{};function fs(t){let[e,n]=a.useState(t),r=a.useRef(e),i=a.useRef(null),o=a.useRef(()=>{if(!i.current)return;let s=i.current.next();if(s.done){i.current=null;return}r.current===s.value?o.current():n(s.value)});R(()=>{r.current=e,i.current&&o.current()});let l=a.useCallback(s=>{i.current=s(r.current),o.current()},[o]);return[e,l]}const Dt={prefix:String(Math.round(Math.random()*1e10)),current:0},Sr=a.createContext(Dt),hs=a.createContext(!1);let ps=!!(typeof window<"u"&&window.document&&window.document.createElement),pn=new WeakMap;function ms(t=!1){let e=a.useContext(Sr),n=a.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=pn.get(o);l==null?pn.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,pn.delete(o))}n.current=++e.current}return n.current}function vs(t){let e=a.useContext(Sr);e===Dt&&!ps&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=ms(!!t),r=e===Dt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function gs(t){let e=a.useId(),[n]=a.useState(Be()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Dt.prefix}`;return t||`${r}-${e}`}const bs=typeof a.useId=="function"?gs:vs;function ys(){return!1}function xs(){return!0}function ws(t){return()=>{}}function Be(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(ws,ys,xs):a.useContext(hs)}let Es=!!(typeof window<"u"&&window.document&&window.document.createElement),Re=new Map,ct;typeof FinalizationRegistry<"u"&&(ct=new FinalizationRegistry(t=>{Re.delete(t)}));function Ne(t){let[e,n]=a.useState(t),r=a.useRef(null),i=bs(e),o=a.useRef(null);if(ct&&ct.register(o,i),Es){const l=Re.get(i);l&&!l.includes(r)?l.push(r):Re.set(i,[r])}return R(()=>{let l=i;return()=>{ct&&ct.unregister(o),Re.delete(l)}},[i]),a.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function Cs(t,e){if(t===e)return t;let n=Re.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Re.get(e);return r?(r.forEach(i=>i.current=t),t):e}function mn(t=[]){let e=Ne(),[n,r]=fs(e),i=a.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return R(i,[e,i,...t]),n}function ut(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Y=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},de=t=>t&&"window"in t&&t.window===t?t:Y(t).defaultView||window;function Ps(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function ks(t){return Ps(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Ns=!1;function Te(){return Ns}function U(t,e){if(!Te())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:ks(n)?n=n.host:n=n.parentNode}return!1}const ie=(t=document)=>{var e;if(!Te())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function K(t){if(Te()&&t.target instanceof Element&&t.target.shadowRoot){var e,n;if("composedPath"in t)return(e=t.composedPath()[0])!==null&&e!==void 0?e:null;if("composedPath"in t.nativeEvent)return(n=t.nativeEvent.composedPath()[0])!==null&&n!==void 0?n:null}return t.target}function vn(t){if(!t)return!1;let e=t.getRootNode(),n=de(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}class Ts{get currentNode(){return this._currentNode}set currentNode(e){if(!U(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return U(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const d=l.shadowRoot;if(d){const c=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(l);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function $r(t,e,n,r){return Te()?new Ts(t,e,n,r):t.createTreeWalker(e,n,r)}function et(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=Lr(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Lr(t[o],null)})}}}function Lr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Fr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Fr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ds(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Fr(t))&&(r&&(r+=" "),r+=e);return r}function G(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=ut(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Ds(o,l):i==="id"&&o&&l?e.id=Cs(o,l):i==="ref"&&o&&l?e.ref=et(o,l):e[i]=l!==void 0?l:o}}return e}const Ms=new Set(["id"]),Is=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ks=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_s=new Set(["dir","lang","hidden","inert","translate"]),Or=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"]),Ss=/^(data-.*)$/;function ce(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,s={};for(const d in t)Object.prototype.hasOwnProperty.call(t,d)&&(Ms.has(d)||n&&Is.has(d)||r&&Ks.has(d)||i&&_s.has(d)||o&&(Or.has(d)||d.endsWith("Capture")&&Or.has(d.slice(0,-7)))||l!=null&&l.has(d)||Ss.test(d))&&(s[d]=t[d]);return s}function De(t){if($s())t.focus({preventScroll:!0});else{let e=Ls(t);t.focus(),Fs(e)}}let Mt=null;function $s(){if(Mt==null){Mt=!1;try{document.createElement("div").focus({get preventScroll(){return Mt=!0,!0}})}catch{}}return Mt}function Ls(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Fs(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function It(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let n=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(n)&&n.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function gn(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Me(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const He=Me(function(){return gn(/^Mac/i)}),Os=Me(function(){return gn(/^iPhone/i)}),Ar=Me(function(){return gn(/^iPad/i)||He()&&navigator.maxTouchPoints>1}),Ue=Me(function(){return Os()||Ar()}),As=Me(function(){return He()||Ue()}),zs=Me(function(){return It(/AppleWebKit/i)&&!bn()}),bn=Me(function(){return It(/Chrome/i)}),yn=Me(function(){return It(/Android/i)}),Vs=Me(function(){return It(/Firefox/i)}),Bs=a.createContext({isNative:!0,open:Us,useHref:t=>t});function xn(){return a.useContext(Bs)}function Ie(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}=e;Vs()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(He()?o=!0:l=!0);let c=zs()&&He()&&!Ar()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d,detail:1,bubbles:!0,cancelable:!0});Ie.isOpening=n,De(t),t.dispatchEvent(c),Ie.isOpening=!1}Ie.isOpening=!1;function Hs(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function Us(t,e){Hs(t,n=>Ie(n,e))}function Ws(t){let e=xn();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Se=new Map,wn=new Set;function zr(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=K(r);if(!t(r)||!i)return;let o=Se.get(i);o||(o=new Set,Se.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=K(r);if(!t(r)||!i)return;let o=Se.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Se.delete(i)),Se.size===0)){for(let l of wn)l();wn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?zr():document.addEventListener("DOMContentLoaded",zr));function js(){for(const[t]of Se)"isConnected"in t&&!t.isConnected&&Se.delete(t)}function Vr(t){requestAnimationFrame(()=>{js(),Se.size===0?t():wn.add(t)})}function Kt(){let t=a.useRef(new Map),e=a.useCallback((i,o,l,s)=>{let d=s!=null&&s.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:d,options:s}),i.addEventListener(o,d,s)},[]),n=a.useCallback((i,o,l,s)=>{var d;let c=((d=t.current.get(l))===null||d===void 0?void 0:d.fn)||l;i.removeEventListener(o,c,s),t.current.delete(l)},[]),r=a.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return a.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function _t(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Ne(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function $e(t){const e=a.useRef(null),n=a.useRef(void 0),r=a.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}var En;const Gs=(En=a.useInsertionEffect)!==null&&En!==void 0?En:R;function ye(t){const e=a.useRef(null);return Gs(()=>{e.current=t},[t]),a.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Br(t,e){const n=a.useRef(!0),r=a.useRef(null);R(()=>(n.current=!0,()=>{n.current=!1}),[]),R(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Hr(t,e){R(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function ft(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function Ur(t,e){let n=t;for(ft(n,e)&&(n=n.parentElement);n&&!ft(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Wr(t,e){let n=[],r=document.scrollingElement||document.documentElement;do ft(t,e)&&n.push(t),t=t.parentElement;while(t&&t!==r);return n}function tt(t){return He()?t.metaKey:t.ctrlKey}const qs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ht(t){return t instanceof HTMLInputElement&&!qs.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let he=typeof document<"u"&&window.visualViewport;function Zs(){let t=Be(),[e,n]=a.useState(()=>t?{width:0,height:0}:Cn());return a.useEffect(()=>{let r=s=>{n(d=>s.width===d.width&&s.height===d.height?d:s)},i=()=>{he&&he.scale>1||r(Cn())},o,l=s=>{he&&he.scale>1||ht(K(s))&&(o=requestAnimationFrame(()=>{let d=ie();(!d||!ht(d))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(Cn()),Ue()&&window.addEventListener("blur",l,!0),he?he.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(o),Ue()&&window.removeEventListener("blur",l,!0),he?he.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function Cn(){return{width:he?he.width*he.scale:document.documentElement.clientWidth,height:he?he.height*he.scale:document.documentElement.clientHeight}}let Ys=0;const Pn=new Map;function Xs(t){let[e,n]=a.useState();return R(()=>{if(!t)return;let r=Pn.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${Ys++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Pn.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Pn.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function St(t,e,n,r){let i=ye(n),o=n==null;a.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o])}function kn(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let o=t.scrollTop,l=t.scrollLeft,s=e.getBoundingClientRect(),d=t.getBoundingClientRect(),c=window.getComputedStyle(e),u=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,m=t===f?0:d.top,v=t===f?t.clientHeight:d.bottom,y=t===f?0:d.left,g=t===f?t.clientWidth:d.right,w=parseInt(c.scrollMarginTop,10)||0,x=parseInt(c.scrollMarginBottom,10)||0,E=parseInt(c.scrollMarginLeft,10)||0,C=parseInt(c.scrollMarginRight,10)||0,k=parseInt(u.scrollPaddingTop,10)||0,N=parseInt(u.scrollPaddingBottom,10)||0,H=parseInt(u.scrollPaddingLeft,10)||0,F=parseInt(u.scrollPaddingRight,10)||0,P=parseInt(u.borderTopWidth,10)||0,I=parseInt(u.borderBottomWidth,10)||0,z=parseInt(u.borderLeftWidth,10)||0,ee=parseInt(u.borderRightWidth,10)||0,ne=s.top-w,q=s.bottom+x,T=s.left-E,V=s.right+C,j=t===f?0:z+ee,Z=t===f?0:P+I,Q=t.offsetWidth-t.clientWidth-j,re=t.offsetHeight-t.clientHeight-Z,h=m+P+k,M=v-I-N-re,b=y+z+H,D=g-ee-F;u.direction==="rtl"&&!Ue()?b+=Q:D-=Q;let S=ne<h||q>M,L=T<b||V>D;if(S&&r==="start")o+=ne-h;else if(S&&r==="center")o+=(ne+q)/2-(h+M)/2;else if(S&&r==="end")o+=q-M;else if(S&&r==="nearest"){let X=ne-h,ae=q-M;o+=Math.abs(X)<=Math.abs(ae)?X:ae}if(L&&i==="start")l+=T-b;else if(L&&i==="center")l+=(T+V)/2-(b+D)/2;else if(L&&i==="end")l+=V-D;else if(L&&i==="nearest"){let X=T-b,ae=V-D;l+=Math.abs(X)<=Math.abs(ae)?X:ae}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function jr(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(l).overflow==="hidden")&&!bn()){var r;let{left:d,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:u,top:f}=t.getBoundingClientRect();if(Math.abs(d-u)>1||Math.abs(c-f)>1){var i,o;n==null||(i=n.scrollIntoView)===null||i===void 0||i.call(n,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}else{let{left:d,top:c}=t.getBoundingClientRect(),u=Wr(t,!0);for(let v of u)kn(v,t);let{left:f,top:m}=t.getBoundingClientRect();if(Math.abs(d-f)>1||Math.abs(c-m)>1){u=n?Wr(n,!0):[];for(let v of u)kn(v,n,{block:"center",inline:"center"})}}}}function Nn(t){return t.pointerType===""&&t.isTrusted?!0:yn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Js(t){return!yn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Gr(t,e,n){let r=ye(()=>{n&&n(e)});a.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t])}function qr(t){const e=a.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Qs="react-aria-clear-focus",Rs="react-aria-focus";function Tn(t,e=!0){let[n,r]=a.useState(!0),i=n&&e;return R(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Zr(t,i,a.useCallback(()=>r(!1),[])),i}function Dn(t,e){let[n,r]=a.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return Zr(t,i,a.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Zr(t,e,n){R(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||dt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const ea=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ta(t){const e=de(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:s}=o(t);i=l!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function na(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Mn(t,e){return ea?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&ta(t)&&na(t,e)&&(!t.parentElement||Mn(t.parentElement,t))}const In=["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"],ra=In.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";In.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ia=In.join(':not([hidden]):not([tabindex="-1"]),');function Yr(t){return t.matches(ra)&&Mn(t)&&!Jr(t)}function Xr(t){return t.matches(ia)&&Mn(t)&&!Jr(t)}function Jr(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}var Kn;const oa=typeof document<"u"?(Kn=a.useInsertionEffect)!==null&&Kn!==void 0?Kn:a.useLayoutEffect:()=>{};function pt(t,e,n){let[r,i]=a.useState(t||e),o=a.useRef(r),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let d=s?t:r;oa(()=>{o.current=d});let[,c]=a.useReducer(()=>({}),{}),u=a.useCallback((f,...m)=>{let v=typeof f=="function"?f(o.current):f;Object.is(o.current,v)||(o.current=v,i(v),c(),n==null||n(v,...m))},[n]);return[d,u]}const _n=Symbol("default");function mt({values:t,children:e}){for(let[n,r]of t)e=a.createElement(n.Provider,{value:r},e);return e}function pe(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:s,render:d}=t;return a.useMemo(()=>{let c,u,f;return typeof e=="function"?c=e({...s,defaultClassName:i}):c=e,typeof n=="function"?u=n({...s,defaultStyle:l||{}}):u=n,typeof r=="function"?f=r({...s,defaultChildren:o}):r==null?f=o:f=r,{className:c??i,style:u||l?{...l,...u}:void 0,children:f??o,"data-rac":"",render:d?m=>d(m,s):void 0}},[e,n,r,i,o,l,s,d])}function $t(t,e){let n=a.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||_n;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function xe(t,e,n){let r=$t(n,t.slot)||{},{ref:i,...o}=r,l=$e(a.useMemo(()=>et(e,i),[e,i])),s=G(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?s.style=d=>{let c=typeof o.style=="function"?o.style(d):o.style,u={...d.defaultStyle,...c},f=typeof t.style=="function"?t.style({...d,defaultStyle:u}):t.style;return{...u,...f}}:s.style={...o.style,...t.style}),[s,l]}function la(t=!0){let[e,n]=a.useState(t),r=a.useRef(!1),i=a.useCallback(o=>{r.current=!0,n(!!o)},[]);return R(()=>{r.current||n(!1)},[]),[i,e]}function Lt(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function sa(t,e,n){let{render:r,...i}=e,o=a.useRef(null),l=a.useMemo(()=>et(n,o),[n,o]);R(()=>{process.env.NODE_ENV!=="production"&&r&&(o.current?o.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let s={...i,ref:l};return r?r(s,void 0):a.createElement(t,s)}const Qr={},ue=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Qr[e];return n||(n=a.forwardRef(sa.bind(null,e)),Qr[e]=n),n}}),Rr=7e3;let Ee=null;function ei(t,e="assertive",n=Rr){Ee?Ee.announce(t,e,n):(Ee=new aa,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ee.announce(t,e,n):setTimeout(()=>{Ee!=null&&Ee.isAttached()&&(Ee==null||Ee.announce(t,e,n))},100))}class aa{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=Rr){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="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 da=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ca=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ua(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return da.has(n.script)}let e=t.split("-")[0];return ca.has(e)}const ti=Symbol.for("react-aria.i18n.locale");function ni(){let t=typeof window<"u"&&window[ti]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:ua(t)?"rtl":"ltr"}}let Sn=ni(),vt=new Set;function ri(){Sn=ni();for(let t of vt)t(Sn)}function fa(){let t=Be(),[e,n]=a.useState(Sn);return a.useEffect(()=>(vt.size===0&&window.addEventListener("languagechange",ri),vt.add(n),()=>{vt.delete(n),vt.size===0&&window.removeEventListener("languagechange",ri)}),[]),t?{locale:typeof window<"u"&&window[ti]||"en-US",direction:"ltr"}:e}const ha=a.createContext(null);function $n(){let t=fa();return a.useContext(ha)||t}const pa=Symbol.for("react-aria.i18n.locale"),ma=Symbol.for("react-aria.i18n.strings");let nt;class Ft{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=va(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[pa];if(nt===void 0){let i=window[ma];if(!i)return null;nt={};for(let o in i)nt[o]=new Ft({[n]:i[o]},n)}let r=nt==null?void 0:nt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function va(t,e,n="en-US"){if(e[t])return e[t];let r=ga(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function ga(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ii=new Map,oi=new Map;class ba{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=ii.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ii.set(o,l));let s=l.select(e);return i=n[s]||n.other,typeof i=="function"?i():i}number(e){let n=oi.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),oi.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const li=new WeakMap;function ya(t){let e=li.get(t);return e||(e=new Ft(t),li.set(t,e)),e}function xa(t,e){return e&&Ft.getGlobalDictionaryForPackage(e)||ya(t)}function wa(t,e){let{locale:n}=$n(),r=xa(t,e);return a.useMemo(()=>new ba(n,r),[n,r])}function Ea(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ca(t,e,n){Ea(t,e),e.set(t,n)}function Ln(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function si(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function ai(t){let e=a.useRef({isFocused:!1,observer:null});return R(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),a.useCallback(n=>{let r=K(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,o=l=>{if(e.current.isFocused=!1,i.disabled){let s=Ln(l);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let s=i===ie()?null:ie();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let Ot=!1;function di(t){for(;t&&!Yr(t);)t=t.parentElement;let e=de(t),n=e.document.activeElement;if(!n||n===t)return;Ot=!0;let r=!1,i=u=>{(K(u)===n||r)&&u.stopImmediatePropagation()},o=u=>{(K(u)===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,De(n),d()))},l=u=>{(K(u)===t||r)&&u.stopImmediatePropagation()},s=u=>{(K(u)===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,De(n),d()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",l,!0);let d=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",l,!0),Ot=!1,r=!1},c=requestAnimationFrame(d);return d}let rt="default",Fn="",At=new WeakMap;function ci(t){if(Ue()){if(rt==="default"){const e=Y(t);Fn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}rt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";At.set(t,t.style[e]),t.style[e]="none"}}function On(t){if(Ue()){if(rt!=="disabled")return;rt="restoring",setTimeout(()=>{Vr(()=>{if(rt==="restoring"){const e=Y(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Fn||""),Fn="",rt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&At.has(t)){let e=At.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),At.delete(t)}}const An=a.createContext({register:()=>{}});An.displayName="PressResponderContext";function Pa(t,e){return e.get?e.get.call(t):e.value}function ui(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function ka(t,e){var n=ui(t,e,"get");return Pa(t,n)}function Na(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function fi(t,e,n){var r=ui(t,e,"set");return Na(t,r,n),n}function Ta(t){let e=a.useContext(An);if(e){let{register:n,ref:r,...i}=e;t=G(i,t),n()}return Hr(e,t.ref),t}var zt=new WeakMap;class Vt{continuePropagation(){fi(this,zt,!1)}get shouldStopPropagation(){return ka(this,zt)}constructor(e,n,r,i){Ca(this,zt,{writable:!0,value:void 0}),fi(this,zt,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const s=l==null?void 0:l.getBoundingClientRect();let d,c=0,u,f=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,f=r.clientY),s&&(u!=null&&f!=null?(d=u-s.left,c=f-s.top):(d=s.width/2,c=s.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=d,this.y=c,this.key=r.key}}const hi=Symbol("linkClicked"),pi="react-aria-pressable-style",mi="data-react-aria-pressable";function it(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:s,isPressed:d,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:f,ref:m,...v}=Ta(t),[y,g]=a.useState(!1),w=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:E,removeGlobalListener:C}=Kt(),k=a.useCallback((h,M)=>{let b=w.current;if(s||b.didFirePressStart)return!1;let D=!0;if(b.isTriggeringEvent=!0,r){let S=new Vt("pressstart",M,h);r(S),D=S.shouldStopPropagation}return n&&n(!0),b.isTriggeringEvent=!1,b.didFirePressStart=!0,g(!0),D},[s,r,n]),N=a.useCallback((h,M,b=!0)=>{let D=w.current;if(!D.didFirePressStart)return!1;D.didFirePressStart=!1,D.isTriggeringEvent=!0;let S=!0;if(i){let L=new Vt("pressend",M,h);i(L),S=L.shouldStopPropagation}if(n&&n(!1),g(!1),e&&b&&!s){let L=new Vt("press",M,h);e(L),S&&(S=L.shouldStopPropagation)}return D.isTriggeringEvent=!1,S},[s,i,n,e]),H=ye(N),F=a.useCallback((h,M)=>{let b=w.current;if(s)return!1;if(o){b.isTriggeringEvent=!0;let D=new Vt("pressup",M,h);return o(D),b.isTriggeringEvent=!1,D.shouldStopPropagation}return!0},[s,o]),P=ye(F),I=a.useCallback(h=>{let M=w.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&N(We(M.target,h),M.pointerType,!1),M.isPressed=!1,Q(null),M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,E(),f||On(M.target);for(let b of M.disposables)b();M.disposables=[]}},[f,E,N]),z=ye(I),ee=a.useCallback(h=>{u&&I(h)},[u,I]),ne=a.useCallback(h=>{s||l==null||l(h)},[s,l]),q=a.useCallback((h,M)=>{if(!s&&l){let b=new MouseEvent("click",h);si(b,M),l(Ln(b))}},[s,l]),T=ye(q),[V,j]=a.useState(!1);R(()=>{let h=w.current;if(V){let M=L=>{var X;if(h.isPressed&&h.target&&Vn(L,h.target)){var ae;bi(K(L),L.key)&&L.preventDefault();let J=K(L),fe=U(h.target,J);H(We(h.target,L),"keyboard",fe),fe&&T(L,h.target),E(),L.key!=="Enter"&&zn(h.target)&&U(h.target,J)&&!L[hi]&&(L[hi]=!0,Ie(h.target,L,!1)),h.isPressed=!1,j(!1),(ae=h.metaKeyEvents)===null||ae===void 0||ae.delete(L.key)}else if(L.key==="Meta"&&(!((X=h.metaKeyEvents)===null||X===void 0)&&X.size)){var B;let J=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let fe of J.values())(B=h.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",fe))}},b=h.target,S=ut(L=>{b&&Vn(L,b)&&!L.repeat&&U(b,K(L))&&h.target&&P(We(h.target,L),"keyboard")},M);return x(Y(h.target),"keyup",S,!0),()=>{C(Y(h.target),"keyup",S,!0)}}},[V,x,E,C]);let[Z,Q]=a.useState(null);R(()=>{let h=w.current;if(Z==="pointer"){let M=D=>{if(D.pointerId===h.activePointerId&&h.isPressed&&D.button===0&&h.target){if(U(h.target,K(D))&&h.pointerType!=null){let S=!1,L=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(S?z(D):(De(h.target),h.target.click()))},80);D.currentTarget&&x(D.currentTarget,"click",()=>S=!0,!0),h.disposables.push(()=>clearTimeout(L))}else z(D);h.isOverTarget=!1}},b=D=>{z(D)};return x(Y(h.target),"pointerup",M,!1),x(Y(h.target),"pointercancel",b,!1),()=>{C(Y(h.target),"pointerup",M,!1),C(Y(h.target),"pointercancel",b,!1)}}else if(Z==="mouse"&&process.env.NODE_ENV==="test"){let M=b=>{if(b.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&U(h.target,b.target)&&h.pointerType!=null||z(b),h.isOverTarget=!1}};return x(Y(h.target),"mouseup",M,!1),()=>{C(Y(h.target),"mouseup",M,!1)}}else if(Z==="touch"&&process.env.NODE_ENV==="test"){let M=b=>{h.isPressed&&U(K(b),h.target)&&z({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return x(de(h.target),"scroll",M,!0),()=>{C(de(h.target),"scroll",M,!0)}}},[Z,x,C]);let re=a.useMemo(()=>{let h=w.current,M={onKeyDown(b){if(Vn(b.nativeEvent,b.currentTarget)&&U(b.currentTarget,K(b))){var D;bi(K(b),b.key)&&b.preventDefault();let S=!0;!h.isPressed&&!b.repeat&&(h.target=b.currentTarget,h.isPressed=!0,j(!0),h.pointerType="keyboard",S=k(b,"keyboard")),S&&b.stopPropagation(),b.metaKey&&He()&&((D=h.metaKeyEvents)===null||D===void 0||D.set(b.key,b.nativeEvent))}else b.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(b){if(!(b&&!U(b.currentTarget,K(b)))&&b&&b.button===0&&!h.isTriggeringEvent&&!Ie.isOpening){let D=!0;if(s&&b.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||Nn(b.nativeEvent))){let S=k(b,"virtual"),L=F(b,"virtual"),X=N(b,"virtual");ne(b),D=S&&L&&X}else if(h.isPressed&&h.pointerType!=="keyboard"){let S=h.pointerType||b.nativeEvent.pointerType||"virtual",L=F(We(b.currentTarget,b),S),X=N(We(b.currentTarget,b),S,!0);D=L&&X,h.isOverTarget=!1,ne(b),I(b)}h.ignoreEmulatedMouseEvents=!1,D&&b.stopPropagation()}}};return typeof PointerEvent<"u"?(M.onPointerDown=b=>{if(b.button!==0||!U(b.currentTarget,K(b)))return;if(Js(b.nativeEvent)){h.pointerType="virtual";return}h.pointerType=b.pointerType;let D=!0;if(!h.isPressed){h.isPressed=!0,Q("pointer"),h.isOverTarget=!0,h.activePointerId=b.pointerId,h.target=b.currentTarget,f||ci(h.target),D=k(b,h.pointerType);let S=K(b);"releasePointerCapture"in S&&("hasPointerCapture"in S?S.hasPointerCapture(b.pointerId)&&S.releasePointerCapture(b.pointerId):S.releasePointerCapture(b.pointerId))}D&&b.stopPropagation()},M.onMouseDown=b=>{if(U(b.currentTarget,K(b))&&b.button===0){if(c){let D=di(b.target);D&&h.disposables.push(D)}b.stopPropagation()}},M.onPointerUp=b=>{!U(b.currentTarget,K(b))||h.pointerType==="virtual"||b.button===0&&!h.isPressed&&F(b,h.pointerType||b.pointerType)},M.onPointerEnter=b=>{b.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,k(We(h.target,b),h.pointerType))},M.onPointerLeave=b=>{b.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,N(We(h.target,b),h.pointerType,!1),ee(b))},M.onDragStart=b=>{U(b.currentTarget,K(b))&&I(b)}):process.env.NODE_ENV==="test"&&(M.onMouseDown=b=>{if(b.button!==0||!U(b.currentTarget,K(b)))return;if(h.ignoreEmulatedMouseEvents){b.stopPropagation();return}if(h.isPressed=!0,Q("mouse"),h.isOverTarget=!0,h.target=b.currentTarget,h.pointerType=Nn(b.nativeEvent)?"virtual":"mouse",dt.flushSync(()=>k(b,h.pointerType))&&b.stopPropagation(),c){let S=di(b.target);S&&h.disposables.push(S)}},M.onMouseEnter=b=>{if(!U(b.currentTarget,K(b)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,D=k(b,h.pointerType)),D&&b.stopPropagation()},M.onMouseLeave=b=>{if(!U(b.currentTarget,K(b)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,D=N(b,h.pointerType,!1),ee(b)),D&&b.stopPropagation()},M.onMouseUp=b=>{U(b.currentTarget,K(b))&&!h.ignoreEmulatedMouseEvents&&b.button===0&&!h.isPressed&&F(b,h.pointerType||"mouse")},M.onTouchStart=b=>{if(!U(b.currentTarget,K(b)))return;let D=Da(b.nativeEvent);if(!D)return;h.activePointerId=D.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,Q("touch"),h.target=b.currentTarget,h.pointerType="touch",f||ci(h.target),k(Le(h.target,b),h.pointerType)&&b.stopPropagation()},M.onTouchMove=b=>{if(!U(b.currentTarget,K(b)))return;if(!h.isPressed){b.stopPropagation();return}let D=vi(b.nativeEvent,h.activePointerId),S=!0;D&&gi(D,b.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,S=k(Le(h.target,b),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S=N(Le(h.target,b),h.pointerType,!1),ee(Le(h.target,b))),S&&b.stopPropagation()},M.onTouchEnd=b=>{if(!U(b.currentTarget,K(b)))return;if(!h.isPressed){b.stopPropagation();return}let D=vi(b.nativeEvent,h.activePointerId),S=!0;D&&gi(D,b.currentTarget)&&h.pointerType!=null?(F(Le(h.target,b),h.pointerType),S=N(Le(h.target,b),h.pointerType),q(b.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(S=N(Le(h.target,b),h.pointerType,!1)),S&&b.stopPropagation(),h.isPressed=!1,Q(null),h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&On(h.target),E()},M.onTouchCancel=b=>{U(b.currentTarget,K(b))&&(b.stopPropagation(),h.isPressed&&I(Le(h.target,b)))},M.onDragStart=b=>{U(b.currentTarget,K(b))&&I(b)}),M},[s,c,E,f,I,ee,N,k,F,ne,q]);return a.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const h=Y(m.current);if(!h||!h.head||h.getElementById(pi))return;const M=h.createElement("style");M.id=pi,M.textContent=`
|
|
1
|
+
(function(O,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(O=typeof globalThis<"u"?globalThis:O||self,p(O.eidotter={},O.jsxRuntime,O.React,O.ReactDOM))})(this,(function(O,p,a,dt){"use strict";const ds=a.createContext(null);a.createContext(null),a.createContext(null),a.createContext(null),a.createContext(null);const cs=a.createContext({});a.createContext(null);const us=a.createContext(null),R=typeof document<"u"?a.useLayoutEffect:()=>{};function fs(t){let[e,n]=a.useState(t),r=a.useRef(e),i=a.useRef(null),o=a.useRef(()=>{if(!i.current)return;let s=i.current.next();if(s.done){i.current=null;return}r.current===s.value?o.current():n(s.value)});R(()=>{r.current=e,i.current&&o.current()});let l=a.useCallback(s=>{i.current=s(r.current),o.current()},[o]);return[e,l]}const Dt={prefix:String(Math.round(Math.random()*1e10)),current:0},Sr=a.createContext(Dt),hs=a.createContext(!1);let ps=!!(typeof window<"u"&&window.document&&window.document.createElement),pn=new WeakMap;function ms(t=!1){let e=a.useContext(Sr),n=a.useRef(null);if(n.current===null&&!t){var r,i;let o=(i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=pn.get(o);l==null?pn.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,pn.delete(o))}n.current=++e.current}return n.current}function vs(t){let e=a.useContext(Sr);e===Dt&&!ps&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=ms(!!t),r=e===Dt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return t||`${r}-${n}`}function gs(t){let e=a.useId(),[n]=a.useState(Be()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Dt.prefix}`;return t||`${r}-${e}`}const bs=typeof a.useId=="function"?gs:vs;function ys(){return!1}function xs(){return!0}function ws(t){return()=>{}}function Be(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(ws,ys,xs):a.useContext(hs)}let Es=!!(typeof window<"u"&&window.document&&window.document.createElement),Re=new Map,ct;typeof FinalizationRegistry<"u"&&(ct=new FinalizationRegistry(t=>{Re.delete(t)}));function Ne(t){let[e,n]=a.useState(t),r=a.useRef(null),i=bs(e),o=a.useRef(null);if(ct&&ct.register(o,i),Es){const l=Re.get(i);l&&!l.includes(r)?l.push(r):Re.set(i,[r])}return R(()=>{let l=i;return()=>{ct&&ct.unregister(o),Re.delete(l)}},[i]),a.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function Cs(t,e){if(t===e)return t;let n=Re.get(t);if(n)return n.forEach(i=>i.current=e),e;let r=Re.get(e);return r?(r.forEach(i=>i.current=t),t):e}function mn(t=[]){let e=Ne(),[n,r]=fs(e),i=a.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return R(i,[e,i,...t]),n}function ut(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Y=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},de=t=>t&&"window"in t&&t.window===t?t:Y(t).defaultView||window;function Ps(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function ks(t){return Ps(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}let Ns=!1;function Te(){return Ns}function U(t,e){if(!Te())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:ks(n)?n=n.host:n=n.parentNode}return!1}const ie=(t=document)=>{var e;if(!Te())return t.activeElement;let n=t.activeElement;for(;n&&"shadowRoot"in n&&(!((e=n.shadowRoot)===null||e===void 0)&&e.activeElement);)n=n.shadowRoot.activeElement;return n};function K(t){if(Te()&&t.target instanceof Element&&t.target.shadowRoot){var e,n;if("composedPath"in t)return(e=t.composedPath()[0])!==null&&e!==void 0?e:null;if("composedPath"in t.nativeEvent)return(n=t.nativeEvent.composedPath()[0])!==null&&n!==void 0?n:null}return t.target}function vn(t){if(!t)return!1;let e=t.getRootNode(),n=de(t);if(!(e instanceof n.Document||e instanceof n.ShadowRoot))return!1;let r=e.activeElement;return r!=null&&t.contains(r)}class Ts{get currentNode(){return this._currentNode}set currentNode(e){if(!U(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,s=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=l.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();return U(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(e):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(e)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let o=this.nextNode();return o&&(this.currentNode=o),o}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=e.previousNode();if(n){if(n.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const d=l.shadowRoot;if(d){const c=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(l);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(e.createTreeWalker(n,r,this._acceptNode));const o=n.shadowRoot;if(o){const l=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function $r(t,e,n,r){return Te()?new Ts(t,e,n,r):t.createTreeWalker(e,n,r)}function et(...t){return t.length===1&&t[0]?t[0]:e=>{let n=!1;const r=t.map(i=>{const o=Lr(i,e);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():Lr(t[o],null)})}}}function Lr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Fr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Fr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ds(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Fr(t))&&(r&&(r+=" "),r+=e);return r}function G(...t){let e={...t[0]};for(let n=1;n<t.length;n++){let r=t[n];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=ut(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=Ds(o,l):i==="id"&&o&&l?e.id=Cs(o,l):i==="ref"&&o&&l?e.ref=et(o,l):e[i]=l!==void 0?l:o}}return e}const Ms=new Set(["id"]),Is=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ks=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_s=new Set(["dir","lang","hidden","inert","translate"]),Or=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"]),Ss=/^(data-.*)$/;function ce(t,e={}){let{labelable:n,isLink:r,global:i,events:o=i,propNames:l}=e,s={};for(const d in t)Object.prototype.hasOwnProperty.call(t,d)&&(Ms.has(d)||n&&Is.has(d)||r&&Ks.has(d)||i&&_s.has(d)||o&&(Or.has(d)||d.endsWith("Capture")&&Or.has(d.slice(0,-7)))||l!=null&&l.has(d)||Ss.test(d))&&(s[d]=t[d]);return s}function De(t){if($s())t.focus({preventScroll:!0});else{let e=Ls(t);t.focus(),Fs(e)}}let Mt=null;function $s(){if(Mt==null){Mt=!1;try{document.createElement("div").focus({get preventScroll(){return Mt=!0,!0}})}catch{}}return Mt}function Ls(t){let e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Fs(t){for(let{element:e,scrollTop:n,scrollLeft:r}of t)e.scrollTop=n,e.scrollLeft=r}function It(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let n=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(n)&&n.some(r=>t.test(r.brand))||t.test(window.navigator.userAgent)}function gn(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Me(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const He=Me(function(){return gn(/^Mac/i)}),Os=Me(function(){return gn(/^iPhone/i)}),Ar=Me(function(){return gn(/^iPad/i)||He()&&navigator.maxTouchPoints>1}),Ue=Me(function(){return Os()||Ar()}),As=Me(function(){return He()||Ue()}),zs=Me(function(){return It(/AppleWebKit/i)&&!bn()}),bn=Me(function(){return It(/Chrome/i)}),yn=Me(function(){return It(/Android/i)}),Vs=Me(function(){return It(/Firefox/i)}),Bs=a.createContext({isNative:!0,open:Us,useHref:t=>t});function xn(){return a.useContext(Bs)}function Ie(t,e,n=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}=e;Vs()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&t.target==="_blank"&&(He()?o=!0:l=!0);let c=zs()&&He()&&!Ar()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:s,shiftKey:d}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:s,shiftKey:d,detail:1,bubbles:!0,cancelable:!0});Ie.isOpening=n,De(t),t.dispatchEvent(c),Ie.isOpening=!1}Ie.isOpening=!1;function Hs(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function Us(t,e){Hs(t,n=>Ie(n,e))}function Ws(t){let e=xn();var n;const r=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?r:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let Se=new Map,wn=new Set;function zr(){if(typeof window>"u")return;function t(r){return"propertyName"in r}let e=r=>{let i=K(r);if(!t(r)||!i)return;let o=Se.get(i);o||(o=new Set,Se.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=K(r);if(!t(r)||!i)return;let o=Se.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),Se.delete(i)),Se.size===0)){for(let l of wn)l();wn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?zr():document.addEventListener("DOMContentLoaded",zr));function js(){for(const[t]of Se)"isConnected"in t&&!t.isConnected&&Se.delete(t)}function Vr(t){requestAnimationFrame(()=>{js(),Se.size===0?t():wn.add(t)})}function Kt(){let t=a.useRef(new Map),e=a.useCallback((i,o,l,s)=>{let d=s!=null&&s.once?(...c)=>{t.current.delete(l),l(...c)}:l;t.current.set(l,{type:o,eventTarget:i,fn:d,options:s}),i.addEventListener(o,d,s)},[]),n=a.useCallback((i,o,l,s)=>{var d;let c=((d=t.current.get(l))===null||d===void 0?void 0:d.fn)||l;i.removeEventListener(o,c,s),t.current.delete(l)},[]),r=a.useCallback(()=>{t.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return a.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:r}}function _t(t,e){let{id:n,"aria-label":r,"aria-labelledby":i}=t;return n=Ne(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:n,"aria-label":r,"aria-labelledby":i}}function $e(t){const e=a.useRef(null),n=a.useRef(void 0),r=a.useCallback(i=>{if(typeof t=="function"){const o=t,l=o(i);return()=>{typeof l=="function"?l():o(null)}}else if(t)return t.current=i,()=>{t.current=null}},[t]);return a.useMemo(()=>({get current(){return e.current},set current(i){e.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}var En;const Gs=(En=a.useInsertionEffect)!==null&&En!==void 0?En:R;function ye(t){const e=a.useRef(null);return Gs(()=>{e.current=t},[t]),a.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}function Br(t,e){const n=a.useRef(!0),r=a.useRef(null);R(()=>(n.current=!0,()=>{n.current=!1}),[]),R(()=>{n.current?n.current=!1:(!r.current||e.some((i,o)=>!Object.is(i,r[o])))&&t(),r.current=e},e)}function Hr(t,e){R(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function ft(t,e){if(!t)return!1;let n=window.getComputedStyle(t),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return t===r&&n.overflow!=="hidden"&&(i=!0),i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function Ur(t,e){let n=t;for(ft(n,e)&&(n=n.parentElement);n&&!ft(n,e);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Wr(t,e){let n=[],r=document.scrollingElement||document.documentElement;do ft(t,e)&&n.push(t),t=t.parentElement;while(t&&t!==r);return n}function tt(t){return He()?t.metaKey:t.ctrlKey}const qs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ht(t){return t instanceof HTMLInputElement&&!qs.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}let he=typeof document<"u"&&window.visualViewport;function Zs(){let t=Be(),[e,n]=a.useState(()=>t?{width:0,height:0}:Cn());return a.useEffect(()=>{let r=s=>{n(d=>s.width===d.width&&s.height===d.height?d:s)},i=()=>{he&&he.scale>1||r(Cn())},o,l=s=>{he&&he.scale>1||ht(K(s))&&(o=requestAnimationFrame(()=>{let d=ie();(!d||!ht(d))&&r({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}))};return r(Cn()),Ue()&&window.addEventListener("blur",l,!0),he?he.addEventListener("resize",i):window.addEventListener("resize",i),()=>{cancelAnimationFrame(o),Ue()&&window.removeEventListener("blur",l,!0),he?he.removeEventListener("resize",i):window.removeEventListener("resize",i)}},[]),e}function Cn(){return{width:he?he.width*he.scale:document.documentElement.clientWidth,height:he?he.height*he.scale:document.documentElement.clientHeight}}let Ys=0;const Pn=new Map;function Xs(t){let[e,n]=a.useState();return R(()=>{if(!t)return;let r=Pn.get(t);if(r)n(r.element.id);else{let i=`react-aria-description-${Ys++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=t,document.body.appendChild(o),r={refCount:0,element:o},Pn.set(t,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Pn.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function St(t,e,n,r){let i=ye(n),o=n==null;a.useEffect(()=>{if(o||!t.current)return;let l=t.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[t,e,r,o])}function kn(t,e,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(t===e)return;let o=t.scrollTop,l=t.scrollLeft,s=e.getBoundingClientRect(),d=t.getBoundingClientRect(),c=window.getComputedStyle(e),u=window.getComputedStyle(t),f=document.scrollingElement||document.documentElement,m=t===f?0:d.top,v=t===f?t.clientHeight:d.bottom,y=t===f?0:d.left,g=t===f?t.clientWidth:d.right,w=parseInt(c.scrollMarginTop,10)||0,x=parseInt(c.scrollMarginBottom,10)||0,E=parseInt(c.scrollMarginLeft,10)||0,C=parseInt(c.scrollMarginRight,10)||0,k=parseInt(u.scrollPaddingTop,10)||0,N=parseInt(u.scrollPaddingBottom,10)||0,H=parseInt(u.scrollPaddingLeft,10)||0,F=parseInt(u.scrollPaddingRight,10)||0,P=parseInt(u.borderTopWidth,10)||0,I=parseInt(u.borderBottomWidth,10)||0,z=parseInt(u.borderLeftWidth,10)||0,ee=parseInt(u.borderRightWidth,10)||0,ne=s.top-w,q=s.bottom+x,T=s.left-E,V=s.right+C,j=t===f?0:z+ee,Z=t===f?0:P+I,Q=t.offsetWidth-t.clientWidth-j,re=t.offsetHeight-t.clientHeight-Z,h=m+P+k,M=v-I-N-re,b=y+z+H,D=g-ee-F;u.direction==="rtl"&&!Ue()?b+=Q:D-=Q;let S=ne<h||q>M,L=T<b||V>D;if(S&&r==="start")o+=ne-h;else if(S&&r==="center")o+=(ne+q)/2-(h+M)/2;else if(S&&r==="end")o+=q-M;else if(S&&r==="nearest"){let X=ne-h,ae=q-M;o+=Math.abs(X)<=Math.abs(ae)?X:ae}if(L&&i==="start")l+=T-b;else if(L&&i==="center")l+=(T+V)/2-(b+D)/2;else if(L&&i==="end")l+=V-D;else if(L&&i==="nearest"){let X=T-b,ae=V-D;l+=Math.abs(X)<=Math.abs(ae)?X:ae}if(process.env.NODE_ENV==="test"){t.scrollLeft=l,t.scrollTop=o;return}t.scrollTo({left:l,top:o})}function jr(t,e={}){let{containingElement:n}=e;if(t&&t.isConnected){let l=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(l).overflow==="hidden")&&!bn()){var r;let{left:d,top:c}=t.getBoundingClientRect();t==null||(r=t.scrollIntoView)===null||r===void 0||r.call(t,{block:"nearest"});let{left:u,top:f}=t.getBoundingClientRect();if(Math.abs(d-u)>1||Math.abs(c-f)>1){var i,o;n==null||(i=n.scrollIntoView)===null||i===void 0||i.call(n,{block:"center",inline:"center"}),(o=t.scrollIntoView)===null||o===void 0||o.call(t,{block:"nearest"})}}else{let{left:d,top:c}=t.getBoundingClientRect(),u=Wr(t,!0);for(let v of u)kn(v,t);let{left:f,top:m}=t.getBoundingClientRect();if(Math.abs(d-f)>1||Math.abs(c-m)>1){u=n?Wr(n,!0):[];for(let v of u)kn(v,n,{block:"center",inline:"center"})}}}}function Nn(t){return t.pointerType===""&&t.isTrusted?!0:yn()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Js(t){return!yn()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function Gr(t,e,n){let r=ye(()=>{n&&n(e)});a.useEffect(()=>{var i;let o=t==null||(i=t.current)===null||i===void 0?void 0:i.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t])}function qr(t){const e=a.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}const Qs="react-aria-clear-focus",Rs="react-aria-focus";function Tn(t,e=!0){let[n,r]=a.useState(!0),i=n&&e;return R(()=>{if(i&&t.current&&"getAnimations"in t.current)for(let o of t.current.getAnimations())o instanceof CSSTransition&&o.cancel()},[t,i]),Zr(t,i,a.useCallback(()=>r(!1),[])),i}function Dn(t,e){let[n,r]=a.useState(e?"open":"closed");switch(n){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let i=n==="exiting";return Zr(t,i,a.useCallback(()=>{r(o=>o==="exiting"?"closed":o)},[])),i}function Zr(t,e,n){R(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){n();return}let r=t.current.getAnimations();if(r.length===0){n();return}let i=!1;return Promise.all(r.map(o=>o.finished)).then(()=>{i||dt.flushSync(()=>{n()})}).catch(()=>{}),()=>{i=!0}}},[t,e,n])}const ea=typeof Element<"u"&&"checkVisibility"in Element.prototype;function ta(t){const e=de(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:r}=t.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=t.ownerDocument.defaultView;let{display:l,visibility:s}=o(t);i=l!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function na(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function Mn(t,e){return ea?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):t.nodeName!=="#comment"&&ta(t)&&na(t,e)&&(!t.parentElement||Mn(t.parentElement,t))}const In=["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"],ra=In.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";In.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ia=In.join(':not([hidden]):not([tabindex="-1"]),');function Yr(t){return t.matches(ra)&&Mn(t)&&!Jr(t)}function Xr(t){return t.matches(ia)&&Mn(t)&&!Jr(t)}function Jr(t){let e=t;for(;e!=null;){if(e instanceof e.ownerDocument.defaultView.HTMLElement&&e.inert)return!0;e=e.parentElement}return!1}var Kn;const oa=typeof document<"u"?(Kn=a.useInsertionEffect)!==null&&Kn!==void 0?Kn:a.useLayoutEffect:()=>{};function pt(t,e,n){let[r,i]=a.useState(t||e),o=a.useRef(r),l=a.useRef(t!==void 0),s=t!==void 0;a.useEffect(()=>{let f=l.current;f!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),l.current=s},[s]);let d=s?t:r;oa(()=>{o.current=d});let[,c]=a.useReducer(()=>({}),{}),u=a.useCallback((f,...m)=>{let v=typeof f=="function"?f(o.current):f;Object.is(o.current,v)||(o.current=v,i(v),c(),n==null||n(v,...m))},[n]);return[d,u]}const _n=Symbol("default");function mt({values:t,children:e}){for(let[n,r]of t)e=a.createElement(n.Provider,{value:r},e);return e}function me(t){let{className:e,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:s,render:d}=t;return a.useMemo(()=>{let c,u,f;return typeof e=="function"?c=e({...s,defaultClassName:i}):c=e,typeof n=="function"?u=n({...s,defaultStyle:l||{}}):u=n,typeof r=="function"?f=r({...s,defaultChildren:o}):r==null?f=o:f=r,{className:c??i,style:u||l?{...l,...u}:void 0,children:f??o,"data-rac":"",render:d?m=>d(m,s):void 0}},[e,n,r,i,o,l,s,d])}function $t(t,e){let n=a.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=e||_n;if(!n.slots[r]){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(l=>`"${l}"`)),o=e?`Invalid slot "${e}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return n.slots[r]}return n}function xe(t,e,n){let r=$t(n,t.slot)||{},{ref:i,...o}=r,l=$e(a.useMemo(()=>et(e,i),[e,i])),s=G(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&(typeof o.style=="function"||typeof t.style=="function"?s.style=d=>{let c=typeof o.style=="function"?o.style(d):o.style,u={...d.defaultStyle,...c},f=typeof t.style=="function"?t.style({...d,defaultStyle:u}):t.style;return{...u,...f}}:s.style={...o.style,...t.style}),[s,l]}function la(t=!0){let[e,n]=a.useState(t),r=a.useRef(!1),i=a.useCallback(o=>{r.current=!0,n(!!o)},[]);return R(()=>{r.current||n(!1)},[]),[i,e]}function Lt(t){const e=/^(data-.*)$/;let n={};for(const r in t)e.test(r)||(n[r]=t[r]);return n}function sa(t,e,n){let{render:r,...i}=e,o=a.useRef(null),l=a.useMemo(()=>et(n,o),[n,o]);R(()=>{process.env.NODE_ENV!=="production"&&r&&(o.current?o.current.localName!==t&&console.warn(`Unexpected DOM element returned by custom \`render\` function. Expected <${t}>, got <${o.current.localName}>. This may break the component behavior and accessibility.`):console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"))},[t,r]);let s={...i,ref:l};return r?r(s,void 0):a.createElement(t,s)}const Qr={},ue=new Proxy({},{get(t,e){if(typeof e!="string")return;let n=Qr[e];return n||(n=a.forwardRef(sa.bind(null,e)),Qr[e]=n),n}}),Rr=7e3;let Ee=null;function ei(t,e="assertive",n=Rr){Ee?Ee.announce(t,e,n):(Ee=new aa,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ee.announce(t,e,n):setTimeout(()=>{Ee!=null&&Ee.isAttached()&&(Ee==null||Ee.announce(t,e,n))},100))}class aa{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",r=Rr){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="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 da=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ca=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ua(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return da.has(n.script)}let e=t.split("-")[0];return ca.has(e)}const ti=Symbol.for("react-aria.i18n.locale");function ni(){let t=typeof window<"u"&&window[ti]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return{locale:t,direction:ua(t)?"rtl":"ltr"}}let Sn=ni(),vt=new Set;function ri(){Sn=ni();for(let t of vt)t(Sn)}function fa(){let t=Be(),[e,n]=a.useState(Sn);return a.useEffect(()=>(vt.size===0&&window.addEventListener("languagechange",ri),vt.add(n),()=>{vt.delete(n),vt.size===0&&window.removeEventListener("languagechange",ri)}),[]),t?{locale:typeof window<"u"&&window[ti]||"en-US",direction:"ltr"}:e}const ha=a.createContext(null);function $n(){let t=fa();return a.useContext(ha)||t}const pa=Symbol.for("react-aria.i18n.locale"),ma=Symbol.for("react-aria.i18n.strings");let nt;class Ft{getStringForLocale(e,n){let i=this.getStringsForLocale(n)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${n} locale`);return i}getStringsForLocale(e){let n=this.strings[e];return n||(n=va(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let n=window[pa];if(nt===void 0){let i=window[ma];if(!i)return null;nt={};for(let o in i)nt[o]=new Ft({[n]:i[o]},n)}let r=nt==null?void 0:nt[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=n}}function va(t,e,n="en-US"){if(e[t])return e[t];let r=ga(t);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[n]}function ga(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const ii=new Map,oi=new Map;class ba{format(e,n){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(n,this):r}plural(e,n,r="cardinal"){let i=n["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=ii.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),ii.set(o,l));let s=l.select(e);return i=n[s]||n.other,typeof i=="function"?i():i}number(e){let n=oi.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),oi.set(this.locale,n)),n.format(e)}select(e,n){let r=e[n]||e.other;return typeof r=="function"?r():r}constructor(e,n){this.locale=e,this.strings=n}}const li=new WeakMap;function ya(t){let e=li.get(t);return e||(e=new Ft(t),li.set(t,e)),e}function xa(t,e){return e&&Ft.getGlobalDictionaryForPackage(e)||ya(t)}function wa(t,e){let{locale:n}=$n(),r=xa(t,e);return a.useMemo(()=>new ba(n,r),[n,r])}function Ea(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ca(t,e,n){Ea(t,e),e.set(t,n)}function Ln(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function si(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function ai(t){let e=a.useRef({isFocused:!1,observer:null});return R(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),a.useCallback(n=>{let r=K(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r,o=l=>{if(e.current.isFocused=!1,i.disabled){let s=Ln(l);t==null||t(s)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let s=i===ie()?null:ie();i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let Ot=!1;function di(t){for(;t&&!Yr(t);)t=t.parentElement;let e=de(t),n=e.document.activeElement;if(!n||n===t)return;Ot=!0;let r=!1,i=u=>{(K(u)===n||r)&&u.stopImmediatePropagation()},o=u=>{(K(u)===n||r)&&(u.stopImmediatePropagation(),!t&&!r&&(r=!0,De(n),d()))},l=u=>{(K(u)===t||r)&&u.stopImmediatePropagation()},s=u=>{(K(u)===t||r)&&(u.stopImmediatePropagation(),r||(r=!0,De(n),d()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",o,!0),e.addEventListener("focusin",s,!0),e.addEventListener("focus",l,!0);let d=()=>{cancelAnimationFrame(c),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",o,!0),e.removeEventListener("focusin",s,!0),e.removeEventListener("focus",l,!0),Ot=!1,r=!1},c=requestAnimationFrame(d);return d}let rt="default",Fn="",At=new WeakMap;function ci(t){if(Ue()){if(rt==="default"){const e=Y(t);Fn=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}rt="disabled"}else if(t instanceof HTMLElement||t instanceof SVGElement){let e="userSelect"in t.style?"userSelect":"webkitUserSelect";At.set(t,t.style[e]),t.style[e]="none"}}function On(t){if(Ue()){if(rt!=="disabled")return;rt="restoring",setTimeout(()=>{Vr(()=>{if(rt==="restoring"){const e=Y(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Fn||""),Fn="",rt="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&At.has(t)){let e=At.get(t),n="userSelect"in t.style?"userSelect":"webkitUserSelect";t.style[n]==="none"&&(t.style[n]=e),t.getAttribute("style")===""&&t.removeAttribute("style"),At.delete(t)}}const An=a.createContext({register:()=>{}});An.displayName="PressResponderContext";function Pa(t,e){return e.get?e.get.call(t):e.value}function ui(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function ka(t,e){var n=ui(t,e,"get");return Pa(t,n)}function Na(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function fi(t,e,n){var r=ui(t,e,"set");return Na(t,r,n),n}function Ta(t){let e=a.useContext(An);if(e){let{register:n,ref:r,...i}=e;t=G(i,t),n()}return Hr(e,t.ref),t}var zt=new WeakMap;class Vt{continuePropagation(){fi(this,zt,!1)}get shouldStopPropagation(){return ka(this,zt)}constructor(e,n,r,i){Ca(this,zt,{writable:!0,value:void 0}),fi(this,zt,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const s=l==null?void 0:l.getBoundingClientRect();let d,c=0,u,f=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,f=r.clientY),s&&(u!=null&&f!=null?(d=u-s.left,c=f-s.top):(d=s.width/2,c=s.height/2)),this.type=e,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=d,this.y=c,this.key=r.key}}const hi=Symbol("linkClicked"),pi="react-aria-pressable-style",mi="data-react-aria-pressable";function it(t){let{onPress:e,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:l,isDisabled:s,isPressed:d,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:f,ref:m,...v}=Ta(t),[y,g]=a.useState(!1),w=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:E,removeGlobalListener:C}=Kt(),k=a.useCallback((h,M)=>{let b=w.current;if(s||b.didFirePressStart)return!1;let D=!0;if(b.isTriggeringEvent=!0,r){let S=new Vt("pressstart",M,h);r(S),D=S.shouldStopPropagation}return n&&n(!0),b.isTriggeringEvent=!1,b.didFirePressStart=!0,g(!0),D},[s,r,n]),N=a.useCallback((h,M,b=!0)=>{let D=w.current;if(!D.didFirePressStart)return!1;D.didFirePressStart=!1,D.isTriggeringEvent=!0;let S=!0;if(i){let L=new Vt("pressend",M,h);i(L),S=L.shouldStopPropagation}if(n&&n(!1),g(!1),e&&b&&!s){let L=new Vt("press",M,h);e(L),S&&(S=L.shouldStopPropagation)}return D.isTriggeringEvent=!1,S},[s,i,n,e]),H=ye(N),F=a.useCallback((h,M)=>{let b=w.current;if(s)return!1;if(o){b.isTriggeringEvent=!0;let D=new Vt("pressup",M,h);return o(D),b.isTriggeringEvent=!1,D.shouldStopPropagation}return!0},[s,o]),P=ye(F),I=a.useCallback(h=>{let M=w.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&N(We(M.target,h),M.pointerType,!1),M.isPressed=!1,Q(null),M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,E(),f||On(M.target);for(let b of M.disposables)b();M.disposables=[]}},[f,E,N]),z=ye(I),ee=a.useCallback(h=>{u&&I(h)},[u,I]),ne=a.useCallback(h=>{s||l==null||l(h)},[s,l]),q=a.useCallback((h,M)=>{if(!s&&l){let b=new MouseEvent("click",h);si(b,M),l(Ln(b))}},[s,l]),T=ye(q),[V,j]=a.useState(!1);R(()=>{let h=w.current;if(V){let M=L=>{var X;if(h.isPressed&&h.target&&Vn(L,h.target)){var ae;bi(K(L),L.key)&&L.preventDefault();let J=K(L),fe=U(h.target,J);H(We(h.target,L),"keyboard",fe),fe&&T(L,h.target),E(),L.key!=="Enter"&&zn(h.target)&&U(h.target,J)&&!L[hi]&&(L[hi]=!0,Ie(h.target,L,!1)),h.isPressed=!1,j(!1),(ae=h.metaKeyEvents)===null||ae===void 0||ae.delete(L.key)}else if(L.key==="Meta"&&(!((X=h.metaKeyEvents)===null||X===void 0)&&X.size)){var B;let J=h.metaKeyEvents;h.metaKeyEvents=void 0;for(let fe of J.values())(B=h.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",fe))}},b=h.target,S=ut(L=>{b&&Vn(L,b)&&!L.repeat&&U(b,K(L))&&h.target&&P(We(h.target,L),"keyboard")},M);return x(Y(h.target),"keyup",S,!0),()=>{C(Y(h.target),"keyup",S,!0)}}},[V,x,E,C]);let[Z,Q]=a.useState(null);R(()=>{let h=w.current;if(Z==="pointer"){let M=D=>{if(D.pointerId===h.activePointerId&&h.isPressed&&D.button===0&&h.target){if(U(h.target,K(D))&&h.pointerType!=null){let S=!1,L=setTimeout(()=>{h.isPressed&&h.target instanceof HTMLElement&&(S?z(D):(De(h.target),h.target.click()))},80);D.currentTarget&&x(D.currentTarget,"click",()=>S=!0,!0),h.disposables.push(()=>clearTimeout(L))}else z(D);h.isOverTarget=!1}},b=D=>{z(D)};return x(Y(h.target),"pointerup",M,!1),x(Y(h.target),"pointercancel",b,!1),()=>{C(Y(h.target),"pointerup",M,!1),C(Y(h.target),"pointercancel",b,!1)}}else if(Z==="mouse"&&process.env.NODE_ENV==="test"){let M=b=>{if(b.button===0){if(h.ignoreEmulatedMouseEvents){h.ignoreEmulatedMouseEvents=!1;return}h.target&&U(h.target,b.target)&&h.pointerType!=null||z(b),h.isOverTarget=!1}};return x(Y(h.target),"mouseup",M,!1),()=>{C(Y(h.target),"mouseup",M,!1)}}else if(Z==="touch"&&process.env.NODE_ENV==="test"){let M=b=>{h.isPressed&&U(K(b),h.target)&&z({currentTarget:h.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};return x(de(h.target),"scroll",M,!0),()=>{C(de(h.target),"scroll",M,!0)}}},[Z,x,C]);let re=a.useMemo(()=>{let h=w.current,M={onKeyDown(b){if(Vn(b.nativeEvent,b.currentTarget)&&U(b.currentTarget,K(b))){var D;bi(K(b),b.key)&&b.preventDefault();let S=!0;!h.isPressed&&!b.repeat&&(h.target=b.currentTarget,h.isPressed=!0,j(!0),h.pointerType="keyboard",S=k(b,"keyboard")),S&&b.stopPropagation(),b.metaKey&&He()&&((D=h.metaKeyEvents)===null||D===void 0||D.set(b.key,b.nativeEvent))}else b.key==="Meta"&&(h.metaKeyEvents=new Map)},onClick(b){if(!(b&&!U(b.currentTarget,K(b)))&&b&&b.button===0&&!h.isTriggeringEvent&&!Ie.isOpening){let D=!0;if(s&&b.preventDefault(),!h.ignoreEmulatedMouseEvents&&!h.isPressed&&(h.pointerType==="virtual"||Nn(b.nativeEvent))){let S=k(b,"virtual"),L=F(b,"virtual"),X=N(b,"virtual");ne(b),D=S&&L&&X}else if(h.isPressed&&h.pointerType!=="keyboard"){let S=h.pointerType||b.nativeEvent.pointerType||"virtual",L=F(We(b.currentTarget,b),S),X=N(We(b.currentTarget,b),S,!0);D=L&&X,h.isOverTarget=!1,ne(b),I(b)}h.ignoreEmulatedMouseEvents=!1,D&&b.stopPropagation()}}};return typeof PointerEvent<"u"?(M.onPointerDown=b=>{if(b.button!==0||!U(b.currentTarget,K(b)))return;if(Js(b.nativeEvent)){h.pointerType="virtual";return}h.pointerType=b.pointerType;let D=!0;if(!h.isPressed){h.isPressed=!0,Q("pointer"),h.isOverTarget=!0,h.activePointerId=b.pointerId,h.target=b.currentTarget,f||ci(h.target),D=k(b,h.pointerType);let S=K(b);"releasePointerCapture"in S&&("hasPointerCapture"in S?S.hasPointerCapture(b.pointerId)&&S.releasePointerCapture(b.pointerId):S.releasePointerCapture(b.pointerId))}D&&b.stopPropagation()},M.onMouseDown=b=>{if(U(b.currentTarget,K(b))&&b.button===0){if(c){let D=di(b.target);D&&h.disposables.push(D)}b.stopPropagation()}},M.onPointerUp=b=>{!U(b.currentTarget,K(b))||h.pointerType==="virtual"||b.button===0&&!h.isPressed&&F(b,h.pointerType||b.pointerType)},M.onPointerEnter=b=>{b.pointerId===h.activePointerId&&h.target&&!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,k(We(h.target,b),h.pointerType))},M.onPointerLeave=b=>{b.pointerId===h.activePointerId&&h.target&&h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,N(We(h.target,b),h.pointerType,!1),ee(b))},M.onDragStart=b=>{U(b.currentTarget,K(b))&&I(b)}):process.env.NODE_ENV==="test"&&(M.onMouseDown=b=>{if(b.button!==0||!U(b.currentTarget,K(b)))return;if(h.ignoreEmulatedMouseEvents){b.stopPropagation();return}if(h.isPressed=!0,Q("mouse"),h.isOverTarget=!0,h.target=b.currentTarget,h.pointerType=Nn(b.nativeEvent)?"virtual":"mouse",dt.flushSync(()=>k(b,h.pointerType))&&b.stopPropagation(),c){let S=di(b.target);S&&h.disposables.push(S)}},M.onMouseEnter=b=>{if(!U(b.currentTarget,K(b)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!0,D=k(b,h.pointerType)),D&&b.stopPropagation()},M.onMouseLeave=b=>{if(!U(b.currentTarget,K(b)))return;let D=!0;h.isPressed&&!h.ignoreEmulatedMouseEvents&&h.pointerType!=null&&(h.isOverTarget=!1,D=N(b,h.pointerType,!1),ee(b)),D&&b.stopPropagation()},M.onMouseUp=b=>{U(b.currentTarget,K(b))&&!h.ignoreEmulatedMouseEvents&&b.button===0&&!h.isPressed&&F(b,h.pointerType||"mouse")},M.onTouchStart=b=>{if(!U(b.currentTarget,K(b)))return;let D=Da(b.nativeEvent);if(!D)return;h.activePointerId=D.identifier,h.ignoreEmulatedMouseEvents=!0,h.isOverTarget=!0,h.isPressed=!0,Q("touch"),h.target=b.currentTarget,h.pointerType="touch",f||ci(h.target),k(Le(h.target,b),h.pointerType)&&b.stopPropagation()},M.onTouchMove=b=>{if(!U(b.currentTarget,K(b)))return;if(!h.isPressed){b.stopPropagation();return}let D=vi(b.nativeEvent,h.activePointerId),S=!0;D&&gi(D,b.currentTarget)?!h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!0,S=k(Le(h.target,b),h.pointerType)):h.isOverTarget&&h.pointerType!=null&&(h.isOverTarget=!1,S=N(Le(h.target,b),h.pointerType,!1),ee(Le(h.target,b))),S&&b.stopPropagation()},M.onTouchEnd=b=>{if(!U(b.currentTarget,K(b)))return;if(!h.isPressed){b.stopPropagation();return}let D=vi(b.nativeEvent,h.activePointerId),S=!0;D&&gi(D,b.currentTarget)&&h.pointerType!=null?(F(Le(h.target,b),h.pointerType),S=N(Le(h.target,b),h.pointerType),q(b.nativeEvent,h.target)):h.isOverTarget&&h.pointerType!=null&&(S=N(Le(h.target,b),h.pointerType,!1)),S&&b.stopPropagation(),h.isPressed=!1,Q(null),h.activePointerId=null,h.isOverTarget=!1,h.ignoreEmulatedMouseEvents=!0,h.target&&!f&&On(h.target),E()},M.onTouchCancel=b=>{U(b.currentTarget,K(b))&&(b.stopPropagation(),h.isPressed&&I(Le(h.target,b)))},M.onDragStart=b=>{U(b.currentTarget,K(b))&&I(b)}),M},[s,c,E,f,I,ee,N,k,F,ne,q]);return a.useEffect(()=>{if(!m||process.env.NODE_ENV==="test")return;const h=Y(m.current);if(!h||!h.head||h.getElementById(pi))return;const M=h.createElement("style");M.id=pi,M.textContent=`
|
|
2
2
|
@layer {
|
|
3
3
|
[${mi}] {
|
|
4
4
|
touch-action: pan-x pan-y pinch-zoom;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
`.trim(),h.head.prepend(M)},[m]),a.useEffect(()=>{let h=w.current;return()=>{var M;f||On((M=h.target)!==null&&M!==void 0?M:void 0);for(let b of h.disposables)b();h.disposables=[]}},[f]),{isPressed:d||y,pressProps:G(v,re,{[mi]:!0})}}function zn(t){return t.tagName==="A"&&t.hasAttribute("href")}function Vn(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof de(i).HTMLInputElement&&!yi(i,n)||i instanceof de(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&zn(i))&&n!=="Enter")}function Da(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function vi(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function Le(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function We(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function Ma(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function Ia(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function gi(t,e){let n=e.getBoundingClientRect(),r=Ma(t);return Ia(n,r)}function Ka(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!zn(t)}function bi(t,e){return t instanceof HTMLInputElement?!yi(t,e):Ka(t)}const _a=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":_a.has(t.type)}let je=null;const Bn=new Set;let gt=new Map,Ge=!1,Hn=!1;const Sa={Tab:!0,Escape:!0};function Bt(t,e){for(let n of Bn)n(t,e)}function $a(t){return!(t.metaKey||!He()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ht(t){Ge=!0,!Ie.isOpening&&$a(t)&&(je="keyboard",Bt("keyboard",t))}function me(t){je="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Ge=!0,Bt("pointer",t))}function xi(t){!Ie.isOpening&&Nn(t)&&(Ge=!0,je="virtual")}function wi(t){K(t)===window||K(t)===document||Ot||!t.isTrusted||(!Ge&&!Hn&&(je="virtual",Bt("virtual",t)),Ge=!1,Hn=!1)}function Ei(){Ot||(Ge=!1,Hn=!0)}function Un(t){if(typeof window>"u"||typeof document>"u"||gt.get(de(t)))return;const e=de(t),n=Y(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ge=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ht,!0),n.addEventListener("keyup",Ht,!0),n.addEventListener("click",xi,!0),e.addEventListener("focus",wi,!0),e.addEventListener("blur",Ei,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",me,!0),n.addEventListener("pointermove",me,!0),n.addEventListener("pointerup",me,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",me,!0),n.addEventListener("mousemove",me,!0),n.addEventListener("mouseup",me,!0)),e.addEventListener("beforeunload",()=>{Ci(t)},{once:!0}),gt.set(e,{focus:r})}const Ci=(t,e)=>{const n=de(t),r=Y(t);e&&r.removeEventListener("DOMContentLoaded",e),gt.has(n)&&(n.HTMLElement.prototype.focus=gt.get(n).focus,r.removeEventListener("keydown",Ht,!0),r.removeEventListener("keyup",Ht,!0),r.removeEventListener("click",xi,!0),n.removeEventListener("focus",wi,!0),n.removeEventListener("blur",Ei,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",me,!0),r.removeEventListener("pointermove",me,!0),r.removeEventListener("pointerup",me,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",me,!0),r.removeEventListener("mousemove",me,!0),r.removeEventListener("mouseup",me,!0)),gt.delete(n))};function La(t){const e=Y(t);let n;return e.readyState!=="loading"?Un(t):(n=()=>{Un(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ci(t,n)}typeof document<"u"&&La();function Wn(){return je!=="pointer"}function Ut(){return je}function Fa(t){je=t,Bt(t,null)}const Oa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Aa(t,e,n){let r=Y(n?K(n):void 0),i=n?K(n):void 0;const o=typeof window<"u"?de(i).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?de(i).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?de(i).HTMLElement:HTMLElement,d=typeof window<"u"?de(i).KeyboardEvent:KeyboardEvent;let c=ie(r);return t=t||c instanceof o&&!Oa.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(t&&e==="keyboard"&&n instanceof d&&!Sa[n.key])}function za(t,e,n){Un(),a.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,o)=>{Aa(!!(n!=null&&n.isTextInput),i,o)&&t(Wn())};return Bn.add(r),()=>{Bn.delete(r)}},e)}function qe(t){if(!t.isConnected)return;const e=Y(t);if(Ut()==="virtual"){let n=ie(e);Vr(()=>{const r=ie(e);(r===n||r===e.body)&&t.isConnected&&De(t)})}else De(t)}function Pi(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=a.useCallback(d=>{if(K(d)===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),l=ai(o),s=a.useCallback(d=>{let c=K(d);const u=Y(c),f=u?ie(u):ie();c===d.currentTarget&&c===f&&(n&&n(d),i&&i(!0),l(d))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?s:void 0,onBlur:!e&&(r||i)?o:void 0}}}function ki(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function Va(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:ki(t.onKeyDown),onKeyUp:ki(t.onKeyUp)}}}let jn=a.createContext(null);function Ba(t){let e=a.useContext(jn)||{};Hr(e,t);let{ref:n,...r}=e;return r}function Wt(t,e){let{focusProps:n}=Pi(t),{keyboardProps:r}=Va(t),i=G(n,r),o=Ba(e),l=t.isDisabled?{}:o,s=a.useRef(t.autoFocus);a.useEffect(()=>{s.current&&e.current&&qe(e.current),s.current=!1},[e]);let d=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(d=void 0),{focusableProps:G({...i,tabIndex:d},l)}}function Ha({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(An.Provider,{value:e},t)}function Gn(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=a.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=Kt(),d=a.useCallback(f=>{U(f.currentTarget,K(f))&&o.current.isFocusWithin&&!U(f.currentTarget,f.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(f),i&&i(!1))},[n,i,o,s]),c=ai(d),u=a.useCallback(f=>{if(!U(f.currentTarget,K(f)))return;let m=K(f);const v=Y(m),y=ie(v);if(!o.current.isFocusWithin&&y===m){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let g=f.currentTarget;l(v,"focus",w=>{let x=K(w);if(o.current.isFocusWithin&&!U(g,x)){let E=new v.defaultView.FocusEvent("blur",{relatedTarget:x});si(E,g);let C=Ln(E);d(C)}},{capture:!0})}},[r,i,c,l,d]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:d}}}let jt=!1,Gt=0;function qn(){jt=!0,setTimeout(()=>{jt=!1},50)}function Ni(t){t.pointerType==="touch"&&qn()}function Ua(){if(!(typeof document>"u"))return Gt===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ni):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",qn)),Gt++,()=>{Gt--,!(Gt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ni):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",qn))}}function bt(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Ua,[]);let{addGlobalListener:d,removeAllGlobalListeners:c}=Kt(),{hoverProps:u,triggerHoverEnd:f}=a.useMemo(()=>{let m=(g,w)=>{if(s.pointerType=w,i||w==="touch"||s.isHovered||!U(g.currentTarget,K(g)))return;s.isHovered=!0;let x=g.currentTarget;s.target=x,d(Y(K(g)),"pointerover",E=>{s.isHovered&&s.target&&!U(s.target,K(E))&&v(E,E.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:x,pointerType:w}),n&&n(!0),l(!0)},v=(g,w)=>{let x=s.target;s.pointerType="",s.target=null,!(w==="touch"||!s.isHovered||!x)&&(s.isHovered=!1,c(),r&&r({type:"hoverend",target:x,pointerType:w}),n&&n(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=g=>{jt&&g.pointerType==="mouse"||m(g,g.pointerType)},y.onPointerLeave=g=>{!i&&U(g.currentTarget,K(g))&&v(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=g=>{!s.ignoreEmulatedMouseEvents&&!jt&&m(g,"mouse"),s.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=g=>{!i&&U(g.currentTarget,K(g))&&v(g,"mouse")}),{hoverProps:y,triggerHoverEnd:v}},[e,n,r,i,s,d,c]);return a.useEffect(()=>{i&&f({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:o}}function Wa(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ye(d=>{n&&qt(d,e)&&(i&&i(d),o.current.isPointerDown=!0)}),s=ye(d=>{n&&n(d)});a.useEffect(()=>{let d=o.current;if(r)return;const c=e.current,u=Y(c);if(typeof PointerEvent<"u"){let f=m=>{d.isPointerDown&&qt(m,e)&&s(m),d.isPointerDown=!1};return u.addEventListener("pointerdown",l,!0),u.addEventListener("click",f,!0),()=>{u.removeEventListener("pointerdown",l,!0),u.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&qt(v,e)&&s(v),d.isPointerDown=!1},m=v=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&qt(v,e)&&s(v),d.isPointerDown=!1};return u.addEventListener("mousedown",l,!0),u.addEventListener("mouseup",f,!0),u.addEventListener("touchstart",l,!0),u.addEventListener("touchend",m,!0),()=>{u.removeEventListener("mousedown",l,!0),u.removeEventListener("mouseup",f,!0),u.removeEventListener("touchstart",l,!0),u.removeEventListener("touchend",m,!0)}}},[e,r])}function qt(t,e){if(t.button>0)return!1;let n=K(t);if(n){const r=n.ownerDocument;if(!r||!U(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ja=500;function Ga(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ja,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:d,removeGlobalListener:c}=Kt(),{pressProps:u}=it({isDisabled:e,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),s.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Y(m.target).activeElement!==m.target&&De(m.target),i&&i({...m,type:"longpress"}),s.current=void 0},o),m.pointerType==="touch")){let v=y=>{y.preventDefault()};d(m.target,"contextmenu",v,{once:!0}),d(window,"pointerup",()=>{setTimeout(()=>{c(m.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(m){s.current&&clearTimeout(s.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),f=Xs(i&&!e?l:void 0);return{longPressProps:G(u,f)}}const Ti=a.createContext(null),Zn="react-aria-focus-scope-restore";let te=null;function qa(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:d}=a.useContext(Ti)||{},c=a.useMemo(()=>new Jn({scopeRef:s}),[s]);R(()=>{let m=d||oe.root;if(oe.getTreeNode(m.scopeRef)&&te&&!Zt(te,m.scopeRef)){let v=oe.getTreeNode(te);v&&(m=v)}m.addChild(c),oe.addNode(c)},[c,d]),R(()=>{let m=oe.getTreeNode(s);m&&(m.contain=!!n)},[n]),R(()=>{var m;let v=(m=o.current)===null||m===void 0?void 0:m.nextSibling,y=[],g=w=>w.stopPropagation();for(;v&&v!==l.current;)y.push(v),v.addEventListener(Zn,g),v=v.nextSibling;return s.current=y,()=>{for(let w of y)w.removeEventListener(Zn,g)}},[e]),ed(s,r,n),Ja(s,n),td(s,r,n),Ra(s,i),a.useEffect(()=>{const m=ie(Y(s.current?s.current[0]:void 0));let v=null;if(ve(m,s.current)){for(let y of oe.traverse())y.scopeRef&&ve(m,y.scopeRef.current)&&(v=y);v===oe.getTreeNode(s)&&(te=v.scopeRef)}},[s]),R(()=>()=>{var m,v,y;let g=(y=(v=oe.getTreeNode(s))===null||v===void 0||(m=v.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&y!==void 0?y:null;(s===te||Zt(s,te))&&(!g||oe.getTreeNode(g))&&(te=g),oe.removeTreeNode(s)},[s]);let u=a.useMemo(()=>Za(s),[]),f=a.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return a.createElement(Ti.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Za(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(Y((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[0].previousElementSibling,u=Ze(n),f=Ce(u,{tabbable:i,accept:l},n);f.currentNode=ve(d,n)?d:c;let m=f.nextNode();return!m&&o&&(f.currentNode=c,m=f.nextNode()),m&&Ke(m,!0),m},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(Y((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[n.length-1].nextElementSibling,u=Ze(n),f=Ce(u,{tabbable:i,accept:l},n);f.currentNode=ve(d,n)?d:c;let m=f.previousNode();return!m&&o&&(f.currentNode=c,m=f.previousNode()),m&&Ke(m,!0),m},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ze(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Ke(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ze(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Ke(s,!0),s}}}function Ze(t){return t[0].parentElement}function yt(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Ya(t){if(!t.form)return Array.from(Y(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=de(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function Xa(t){if(t.checked)return!0;const e=Ya(t);return e.length>0&&!e.some(n=>n.checked)}function Ja(t,e){let n=a.useRef(void 0),r=a.useRef(void 0);R(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Y(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!yt(t)||c.isComposing)return;let u=ie(o),f=t.current;if(!f||!ve(u,f))return;let m=Ze(f),v=Ce(m,{tabbable:!0},f);if(!u)return;v.currentNode=u;let y=c.shiftKey?v.previousNode():v.nextNode();y||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),y&&Ke(y,!0)},s=c=>{(!te||Zt(te,t))&&ve(K(c),t.current)?(te=t,n.current=K(c)):yt(t)&&!Fe(K(c),t)?n.current?n.current.focus():te&&te.current&&Yn(te.current):yt(t)&&(n.current=K(c))},d=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let u=Ut(),f=(u==="virtual"||u===null)&&yn()&&bn(),m=ie(o);if(!f&&m&&yt(t)&&!Fe(m,t)){te=t;let y=K(c);if(y&&y.isConnected){var v;n.current=y,(v=n.current)===null||v===void 0||v.focus()}else te.current&&Yn(te.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",s,!1),i==null||i.forEach(c=>c.addEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",d,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",s,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",d,!1))}},[t,e]),R(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Di(t){return Fe(t)}function ve(t,e){return!t||!e?!1:e.some(n=>U(n,t))}function Fe(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of oe.traverse(oe.getTreeNode(e)))if(n&&ve(t,n.current))return!0;return!1}function Qa(t){return Fe(t,te)}function Zt(t,e){var n;let r=(n=oe.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Ke(t,e=!1){if(t!=null&&!e)try{qe(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Mi(t,e=!0){let n=t[0].previousElementSibling,r=Ze(t),i=Ce(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ze(t),i=Ce(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Yn(t,e=!0){Ke(Mi(t,e))}function Ra(t,e){const n=a.useRef(e);a.useEffect(()=>{if(n.current){te=t;const r=Y(t.current?t.current[0]:void 0);!ve(ie(r),te.current)&&t.current&&Yn(t.current)}n.current=!1},[t])}function ed(t,e,n){R(()=>{if(e||n)return;let r=t.current;const i=Y(r?r[0]:void 0);let o=l=>{let s=K(l);ve(s,t.current)?te=t:Di(s)||(te=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function Ii(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function td(t,e,n){const r=a.useRef(typeof document<"u"?ie(Y(t.current?t.current[0]:void 0)):null);R(()=>{let i=t.current;const o=Y(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!te||Zt(te,t))&&ve(ie(o),t.current)&&(te=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,n]),R(()=>{const i=Y(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!yt(t)||l.isComposing)return;let s=i.activeElement;if(!Fe(s,t)||!Ii(t))return;let d=oe.getTreeNode(t);if(!d)return;let c=d.nodeToRestore,u=Ce(i.body,{tabbable:!0});u.currentNode=s;let f=l.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,d.nodeToRestore=void 0),(!f||!Fe(f,t))&&c){u.currentNode=c;do f=l.shiftKey?u.previousNode():u.nextNode();while(Fe(f,t));l.preventDefault(),l.stopPropagation(),f?Ke(f,!0):Di(c)?Ke(c,!0):s.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),R(()=>{const i=Y(t.current?t.current[0]:void 0);if(!e)return;let o=oe.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=oe.getTreeNode(t);if(!s)return;let d=s.nodeToRestore,c=ie(i);if(e&&d&&(c&&Fe(c,t)||c===i.body&&Ii(t))){let u=oe.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=u.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Ki(f.nodeToRestore);return}f=f.parent}for(f=u.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&oe.getTreeNode(f.scopeRef)){let m=Mi(f.scopeRef.current,!0);Ki(m);return}f=f.parent}}})}}}},[t,e])}function Ki(t){t.dispatchEvent(new CustomEvent(Zn,{bubbles:!0,cancelable:!0}))&&Ke(t)}function Ce(t,e,n){let r=e!=null&&e.tabbable?Xr:Yr,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=Y(i),l=$r(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return U(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!Xa(s)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ve(s,n))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Xn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Jn({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ve(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Xn;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Jn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Jn{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 oe=new Xn;function Ye(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=a.useRef({isFocused:!1,isFocusVisible:e||Wn()}),[o,l]=a.useState(!1),[s,d]=a.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=a.useCallback(()=>d(i.current.isFocused&&i.current.isFocusVisible),[]),u=a.useCallback(v=>{i.current.isFocused=v,i.current.isFocusVisible=Wn(),l(v),c()},[c]);za(v=>{i.current.isFocusVisible=v,c()},[n,o],{enabled:o,isTextInput:n});let{focusProps:f}=Pi({isDisabled:r,onFocusChange:u}),{focusWithinProps:m}=Gn({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?m:f}}function nd(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=a.useState(!1);return R(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let s=Ce(t.current,{tabbable:!0});i(!!s.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function _i(t){let e=id(Y(t));e!==t&&(e&&rd(e,t),t&&Si(t,e))}function rd(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Si(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function id(t){let e=ie(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Pe=[];function od(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t,d=a.useRef(void 0);a.useEffect(()=>{if(i&&!Pe.includes(e))return Pe.push(e),()=>{let g=Pe.indexOf(e);g>=0&&Pe.splice(g,1)}},[i,e]);let c=()=>{Pe[Pe.length-1]===e&&n&&n()},u=g=>{const w=Pe[Pe.length-1];d.current=w,(!s||s(K(g)))&&w===e&&(g.stopPropagation(),g.preventDefault())},f=g=>{(!s||s(K(g)))&&(Pe[Pe.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d.current===e&&c()),d.current=void 0},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),c())};Wa({ref:e,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:v}=Gn({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||Qa(g.relatedTarget)||(!s||s(g.relatedTarget))&&(n==null||n())}}),y=g=>{K(g)===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...v},underlayProps:{onPointerDown:y}}}const xt=typeof document<"u"&&window.visualViewport;let Yt=0,Qn;function ld(t={}){let{isDisabled:e}=t;R(()=>{if(!e)return Yt++,Yt===1&&(Ue()?Qn=ad():Qn=sd()),()=>{Yt--,Yt===0&&Qn()}},[e])}function sd(){let t=window.innerWidth-document.documentElement.clientWidth;return ut(t>0&&("scrollbarGutter"in document.documentElement.style?Xt(document.documentElement,"scrollbarGutter","stable"):Xt(document.documentElement,"paddingRight",`${t}px`)),Xt(document.documentElement,"overflow","hidden"))}function ad(){let t=Xt(document.documentElement,"overflow","hidden"),e,n=!1,r=c=>{let u=K(c);e=ft(u)?u:Ur(u,!0),n=!1;let f=u.ownerDocument.defaultView.getSelection();f&&!f.isCollapsed&&f.containsNode(u,!0)&&(n=!0),c.composedPath().some(m=>m instanceof HTMLInputElement&&m.type==="range")&&(n=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(n=!0)},i=document.createElement("style");i.textContent=`
|
|
7
|
+
`.trim(),h.head.prepend(M)},[m]),a.useEffect(()=>{let h=w.current;return()=>{var M;f||On((M=h.target)!==null&&M!==void 0?M:void 0);for(let b of h.disposables)b();h.disposables=[]}},[f]),{isPressed:d||y,pressProps:G(v,re,{[mi]:!0})}}function zn(t){return t.tagName==="A"&&t.hasAttribute("href")}function Vn(t,e){const{key:n,code:r}=t,i=e,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof de(i).HTMLInputElement&&!yi(i,n)||i instanceof de(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&zn(i))&&n!=="Enter")}function Da(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function vi(t,e){const n=t.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===e)return i}return null}function Le(t,e){let n=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r}}function We(t,e){let n=e.clientX,r=e.clientY;return{currentTarget:t,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:n,clientY:r,key:e.key}}function Ma(t){let e=0,n=0;return t.width!==void 0?e=t.width/2:t.radiusX!==void 0&&(e=t.radiusX),t.height!==void 0?n=t.height/2:t.radiusY!==void 0&&(n=t.radiusY),{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function Ia(t,e){return!(t.left>e.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function gi(t,e){let n=e.getBoundingClientRect(),r=Ma(t);return Ia(n,r)}function Ka(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!zn(t)}function bi(t,e){return t instanceof HTMLInputElement?!yi(t,e):Ka(t)}const _a=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function yi(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":_a.has(t.type)}let je=null;const Bn=new Set;let gt=new Map,Ge=!1,Hn=!1;const Sa={Tab:!0,Escape:!0};function Bt(t,e){for(let n of Bn)n(t,e)}function $a(t){return!(t.metaKey||!He()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Ht(t){Ge=!0,!Ie.isOpening&&$a(t)&&(je="keyboard",Bt("keyboard",t))}function ve(t){je="pointer","pointerType"in t&&t.pointerType,(t.type==="mousedown"||t.type==="pointerdown")&&(Ge=!0,Bt("pointer",t))}function xi(t){!Ie.isOpening&&Nn(t)&&(Ge=!0,je="virtual")}function wi(t){K(t)===window||K(t)===document||Ot||!t.isTrusted||(!Ge&&!Hn&&(je="virtual",Bt("virtual",t)),Ge=!1,Hn=!1)}function Ei(){Ot||(Ge=!1,Hn=!0)}function Un(t){if(typeof window>"u"||typeof document>"u"||gt.get(de(t)))return;const e=de(t),n=Y(t);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ge=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ht,!0),n.addEventListener("keyup",Ht,!0),n.addEventListener("click",xi,!0),e.addEventListener("focus",wi,!0),e.addEventListener("blur",Ei,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ve,!0),n.addEventListener("pointermove",ve,!0),n.addEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",ve,!0),n.addEventListener("mousemove",ve,!0),n.addEventListener("mouseup",ve,!0)),e.addEventListener("beforeunload",()=>{Ci(t)},{once:!0}),gt.set(e,{focus:r})}const Ci=(t,e)=>{const n=de(t),r=Y(t);e&&r.removeEventListener("DOMContentLoaded",e),gt.has(n)&&(n.HTMLElement.prototype.focus=gt.get(n).focus,r.removeEventListener("keydown",Ht,!0),r.removeEventListener("keyup",Ht,!0),r.removeEventListener("click",xi,!0),n.removeEventListener("focus",wi,!0),n.removeEventListener("blur",Ei,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ve,!0),r.removeEventListener("pointermove",ve,!0),r.removeEventListener("pointerup",ve,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",ve,!0),r.removeEventListener("mousemove",ve,!0),r.removeEventListener("mouseup",ve,!0)),gt.delete(n))};function La(t){const e=Y(t);let n;return e.readyState!=="loading"?Un(t):(n=()=>{Un(t)},e.addEventListener("DOMContentLoaded",n)),()=>Ci(t,n)}typeof document<"u"&&La();function Wn(){return je!=="pointer"}function Ut(){return je}function Fa(t){je=t,Bt(t,null)}const Oa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Aa(t,e,n){let r=Y(n?K(n):void 0),i=n?K(n):void 0;const o=typeof window<"u"?de(i).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?de(i).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?de(i).HTMLElement:HTMLElement,d=typeof window<"u"?de(i).KeyboardEvent:KeyboardEvent;let c=ie(r);return t=t||c instanceof o&&!Oa.has(c.type)||c instanceof l||c instanceof s&&c.isContentEditable,!(t&&e==="keyboard"&&n instanceof d&&!Sa[n.key])}function za(t,e,n){Un(),a.useEffect(()=>{if((n==null?void 0:n.enabled)===!1)return;let r=(i,o)=>{Aa(!!(n!=null&&n.isTextInput),i,o)&&t(Wn())};return Bn.add(r),()=>{Bn.delete(r)}},e)}function qe(t){if(!t.isConnected)return;const e=Y(t);if(Ut()==="virtual"){let n=ie(e);Vr(()=>{const r=ie(e);(r===n||r===e.body)&&t.isConnected&&De(t)})}else De(t)}function Pi(t){let{isDisabled:e,onFocus:n,onBlur:r,onFocusChange:i}=t;const o=a.useCallback(d=>{if(K(d)===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),l=ai(o),s=a.useCallback(d=>{let c=K(d);const u=Y(c),f=u?ie(u):ie();c===d.currentTarget&&c===f&&(n&&n(d),i&&i(!0),l(d))},[i,n,l]);return{focusProps:{onFocus:!e&&(n||i||r)?s:void 0,onBlur:!e&&(r||i)?o:void 0}}}function ki(t){if(!t)return;let e=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}};t(r),e&&n.stopPropagation()}}function Va(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:ki(t.onKeyDown),onKeyUp:ki(t.onKeyUp)}}}let jn=a.createContext(null);function Ba(t){let e=a.useContext(jn)||{};Hr(e,t);let{ref:n,...r}=e;return r}function Wt(t,e){let{focusProps:n}=Pi(t),{keyboardProps:r}=Va(t),i=G(n,r),o=Ba(e),l=t.isDisabled?{}:o,s=a.useRef(t.autoFocus);a.useEffect(()=>{s.current&&e.current&&qe(e.current),s.current=!1},[e]);let d=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(d=void 0),{focusableProps:G({...i,tabIndex:d},l)}}function Ha({children:t}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(An.Provider,{value:e},t)}function Gn(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=t,o=a.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=Kt(),d=a.useCallback(f=>{U(f.currentTarget,K(f))&&o.current.isFocusWithin&&!U(f.currentTarget,f.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(f),i&&i(!1))},[n,i,o,s]),c=ai(d),u=a.useCallback(f=>{if(!U(f.currentTarget,K(f)))return;let m=K(f);const v=Y(m),y=ie(v);if(!o.current.isFocusWithin&&y===m){r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,c(f);let g=f.currentTarget;l(v,"focus",w=>{let x=K(w);if(o.current.isFocusWithin&&!U(g,x)){let E=new v.defaultView.FocusEvent("blur",{relatedTarget:x});si(E,g);let C=Ln(E);d(C)}},{capture:!0})}},[r,i,c,l,d]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:d}}}let jt=!1,Gt=0;function qn(){jt=!0,setTimeout(()=>{jt=!1},50)}function Ni(t){t.pointerType==="touch"&&qn()}function Ua(){if(!(typeof document>"u"))return Gt===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Ni):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",qn)),Gt++,()=>{Gt--,!(Gt>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ni):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",qn))}}function bt(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:i}=t,[o,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Ua,[]);let{addGlobalListener:d,removeAllGlobalListeners:c}=Kt(),{hoverProps:u,triggerHoverEnd:f}=a.useMemo(()=>{let m=(g,w)=>{if(s.pointerType=w,i||w==="touch"||s.isHovered||!U(g.currentTarget,K(g)))return;s.isHovered=!0;let x=g.currentTarget;s.target=x,d(Y(K(g)),"pointerover",E=>{s.isHovered&&s.target&&!U(s.target,K(E))&&v(E,E.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:x,pointerType:w}),n&&n(!0),l(!0)},v=(g,w)=>{let x=s.target;s.pointerType="",s.target=null,!(w==="touch"||!s.isHovered||!x)&&(s.isHovered=!1,c(),r&&r({type:"hoverend",target:x,pointerType:w}),n&&n(!1),l(!1))},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=g=>{jt&&g.pointerType==="mouse"||m(g,g.pointerType)},y.onPointerLeave=g=>{!i&&U(g.currentTarget,K(g))&&v(g,g.pointerType)}):process.env.NODE_ENV==="test"&&(y.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=g=>{!s.ignoreEmulatedMouseEvents&&!jt&&m(g,"mouse"),s.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=g=>{!i&&U(g.currentTarget,K(g))&&v(g,"mouse")}),{hoverProps:y,triggerHoverEnd:v}},[e,n,r,i,s,d,c]);return a.useEffect(()=>{i&&f({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:o}}function Wa(t){let{ref:e,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=t,o=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ye(d=>{n&&qt(d,e)&&(i&&i(d),o.current.isPointerDown=!0)}),s=ye(d=>{n&&n(d)});a.useEffect(()=>{let d=o.current;if(r)return;const c=e.current,u=Y(c);if(typeof PointerEvent<"u"){let f=m=>{d.isPointerDown&&qt(m,e)&&s(m),d.isPointerDown=!1};return u.addEventListener("pointerdown",l,!0),u.addEventListener("click",f,!0),()=>{u.removeEventListener("pointerdown",l,!0),u.removeEventListener("click",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=v=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&qt(v,e)&&s(v),d.isPointerDown=!1},m=v=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&qt(v,e)&&s(v),d.isPointerDown=!1};return u.addEventListener("mousedown",l,!0),u.addEventListener("mouseup",f,!0),u.addEventListener("touchstart",l,!0),u.addEventListener("touchend",m,!0),()=>{u.removeEventListener("mousedown",l,!0),u.removeEventListener("mouseup",f,!0),u.removeEventListener("touchstart",l,!0),u.removeEventListener("touchend",m,!0)}}},[e,r])}function qt(t,e){if(t.button>0)return!1;let n=K(t);if(n){const r=n.ownerDocument;if(!r||!U(r.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}const ja=500;function Ga(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ja,accessibilityDescription:l}=t;const s=a.useRef(void 0);let{addGlobalListener:d,removeGlobalListener:c}=Kt(),{pressProps:u}=it({isDisabled:e,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),s.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Y(m.target).activeElement!==m.target&&De(m.target),i&&i({...m,type:"longpress"}),s.current=void 0},o),m.pointerType==="touch")){let v=y=>{y.preventDefault()};d(m.target,"contextmenu",v,{once:!0}),d(window,"pointerup",()=>{setTimeout(()=>{c(m.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(m){s.current&&clearTimeout(s.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),f=Xs(i&&!e?l:void 0);return{longPressProps:G(u,f)}}const Ti=a.createContext(null),Zn="react-aria-focus-scope-restore";let te=null;function qa(t){let{children:e,contain:n,restoreFocus:r,autoFocus:i}=t,o=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:d}=a.useContext(Ti)||{},c=a.useMemo(()=>new Jn({scopeRef:s}),[s]);R(()=>{let m=d||oe.root;if(oe.getTreeNode(m.scopeRef)&&te&&!Zt(te,m.scopeRef)){let v=oe.getTreeNode(te);v&&(m=v)}m.addChild(c),oe.addNode(c)},[c,d]),R(()=>{let m=oe.getTreeNode(s);m&&(m.contain=!!n)},[n]),R(()=>{var m;let v=(m=o.current)===null||m===void 0?void 0:m.nextSibling,y=[],g=w=>w.stopPropagation();for(;v&&v!==l.current;)y.push(v),v.addEventListener(Zn,g),v=v.nextSibling;return s.current=y,()=>{for(let w of y)w.removeEventListener(Zn,g)}},[e]),ed(s,r,n),Ja(s,n),td(s,r,n),Ra(s,i),a.useEffect(()=>{const m=ie(Y(s.current?s.current[0]:void 0));let v=null;if(ge(m,s.current)){for(let y of oe.traverse())y.scopeRef&&ge(m,y.scopeRef.current)&&(v=y);v===oe.getTreeNode(s)&&(te=v.scopeRef)}},[s]),R(()=>()=>{var m,v,y;let g=(y=(v=oe.getTreeNode(s))===null||v===void 0||(m=v.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&y!==void 0?y:null;(s===te||Zt(s,te))&&(!g||oe.getTreeNode(g))&&(te=g),oe.removeTreeNode(s)},[s]);let u=a.useMemo(()=>Za(s),[]),f=a.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return a.createElement(Ti.Provider,{value:f},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Za(t){return{focusNext(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(Y((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[0].previousElementSibling,u=Ze(n),f=Ce(u,{tabbable:i,accept:l},n);f.currentNode=ge(d,n)?d:c;let m=f.nextNode();return!m&&o&&(f.currentNode=c,m=f.nextNode()),m&&Ke(m,!0),m},focusPrevious(e={}){let n=t.current,{from:r,tabbable:i,wrap:o,accept:l}=e;var s;let d=r||ie(Y((s=n[0])!==null&&s!==void 0?s:void 0)),c=n[n.length-1].nextElementSibling,u=Ze(n),f=Ce(u,{tabbable:i,accept:l},n);f.currentNode=ge(d,n)?d:c;let m=f.previousNode();return!m&&o&&(f.currentNode=c,m=f.previousNode()),m&&Ke(m,!0),m},focusFirst(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ze(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Ke(s,!0),s},focusLast(e={}){let n=t.current,{tabbable:r,accept:i}=e,o=Ze(n),l=Ce(o,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Ke(s,!0),s}}}function Ze(t){return t[0].parentElement}function yt(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.contain)return!1;e=e.parent}return!0}function Ya(t){if(!t.form)return Array.from(Y(t).querySelectorAll(`input[type="radio"][name="${CSS.escape(t.name)}"]`)).filter(r=>!r.form);const e=t.form.elements.namedItem(t.name);let n=de(t);return e instanceof n.RadioNodeList?Array.from(e).filter(r=>r instanceof n.HTMLInputElement):e instanceof n.HTMLInputElement?[e]:[]}function Xa(t){if(t.checked)return!0;const e=Ya(t);return e.length>0&&!e.some(n=>n.checked)}function Ja(t,e){let n=a.useRef(void 0),r=a.useRef(void 0);R(()=>{let i=t.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Y(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!yt(t)||c.isComposing)return;let u=ie(o),f=t.current;if(!f||!ge(u,f))return;let m=Ze(f),v=Ce(m,{tabbable:!0},f);if(!u)return;v.currentNode=u;let y=c.shiftKey?v.previousNode():v.nextNode();y||(v.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,y=c.shiftKey?v.previousNode():v.nextNode()),c.preventDefault(),y&&Ke(y,!0)},s=c=>{(!te||Zt(te,t))&&ge(K(c),t.current)?(te=t,n.current=K(c)):yt(t)&&!Fe(K(c),t)?n.current?n.current.focus():te&&te.current&&Yn(te.current):yt(t)&&(n.current=K(c))},d=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let u=Ut(),f=(u==="virtual"||u===null)&&yn()&&bn(),m=ie(o);if(!f&&m&&yt(t)&&!Fe(m,t)){te=t;let y=K(c);if(y&&y.isConnected){var v;n.current=y,(v=n.current)===null||v===void 0||v.focus()}else te.current&&Yn(te.current)}})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",s,!1),i==null||i.forEach(c=>c.addEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",d,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",s,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",d,!1))}},[t,e]),R(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Di(t){return Fe(t)}function ge(t,e){return!t||!e?!1:e.some(n=>U(n,t))}function Fe(t,e=null){if(t instanceof Element&&t.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of oe.traverse(oe.getTreeNode(e)))if(n&&ge(t,n.current))return!0;return!1}function Qa(t){return Fe(t,te)}function Zt(t,e){var n;let r=(n=oe.getTreeNode(e))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===t)return!0;r=r.parent}return!1}function Ke(t,e=!1){if(t!=null&&!e)try{qe(t)}catch{}else if(t!=null)try{t.focus()}catch{}}function Mi(t,e=!0){let n=t[0].previousElementSibling,r=Ze(t),i=Ce(r,{tabbable:e},t);i.currentNode=n;let o=i.nextNode();return e&&!o&&(r=Ze(t),i=Ce(r,{tabbable:!1},t),i.currentNode=n,o=i.nextNode()),o}function Yn(t,e=!0){Ke(Mi(t,e))}function Ra(t,e){const n=a.useRef(e);a.useEffect(()=>{if(n.current){te=t;const r=Y(t.current?t.current[0]:void 0);!ge(ie(r),te.current)&&t.current&&Yn(t.current)}n.current=!1},[t])}function ed(t,e,n){R(()=>{if(e||n)return;let r=t.current;const i=Y(r?r[0]:void 0);let o=l=>{let s=K(l);ge(s,t.current)?te=t:Di(s)||(te=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[t,e,n])}function Ii(t){let e=oe.getTreeNode(te);for(;e&&e.scopeRef!==t;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===t}function td(t,e,n){const r=a.useRef(typeof document<"u"?ie(Y(t.current?t.current[0]:void 0)):null);R(()=>{let i=t.current;const o=Y(i?i[0]:void 0);if(!e||n)return;let l=()=>{(!te||Zt(te,t))&&ge(ie(o),t.current)&&(te=t)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",l,!1))}},[t,n]),R(()=>{const i=Y(t.current?t.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!yt(t)||l.isComposing)return;let s=i.activeElement;if(!Fe(s,t)||!Ii(t))return;let d=oe.getTreeNode(t);if(!d)return;let c=d.nodeToRestore,u=Ce(i.body,{tabbable:!0});u.currentNode=s;let f=l.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===i.body)&&(c=void 0,d.nodeToRestore=void 0),(!f||!Fe(f,t))&&c){u.currentNode=c;do f=l.shiftKey?u.previousNode():u.nextNode();while(Fe(f,t));l.preventDefault(),l.stopPropagation(),f?Ke(f,!0):Di(c)?Ke(c,!0):s.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[t,e,n]),R(()=>{const i=Y(t.current?t.current[0]:void 0);if(!e)return;let o=oe.getTreeNode(t);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=oe.getTreeNode(t);if(!s)return;let d=s.nodeToRestore,c=ie(i);if(e&&d&&(c&&Fe(c,t)||c===i.body&&Ii(t))){let u=oe.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=u.getTreeNode(t);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){Ki(f.nodeToRestore);return}f=f.parent}for(f=u.getTreeNode(t);f;){if(f.scopeRef&&f.scopeRef.current&&oe.getTreeNode(f.scopeRef)){let m=Mi(f.scopeRef.current,!0);Ki(m);return}f=f.parent}}})}}}},[t,e])}function Ki(t){t.dispatchEvent(new CustomEvent(Zn,{bubbles:!0,cancelable:!0}))&&Ke(t)}function Ce(t,e,n){let r=e!=null&&e.tabbable?Xr:Yr,i=(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE?t:null,o=Y(i),l=$r(o,t||o,NodeFilter.SHOW_ELEMENT,{acceptNode(s){return U(e==null?void 0:e.from,s)||e!=null&&e.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!Xa(s)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ge(s,n))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(l.currentNode=e.from),l}class Xn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new Jn({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ge(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Xn;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Jn({scopeRef:null}),this.fastMap.set(null,this.root)}}class Jn{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 oe=new Xn;function Ye(t={}){let{autoFocus:e=!1,isTextInput:n,within:r}=t,i=a.useRef({isFocused:!1,isFocusVisible:e||Wn()}),[o,l]=a.useState(!1),[s,d]=a.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=a.useCallback(()=>d(i.current.isFocused&&i.current.isFocusVisible),[]),u=a.useCallback(v=>{i.current.isFocused=v,i.current.isFocusVisible=Wn(),l(v),c()},[c]);za(v=>{i.current.isFocusVisible=v,c()},[n,o],{enabled:o,isTextInput:n});let{focusProps:f}=Pi({isDisabled:r,onFocusChange:u}),{focusWithinProps:m}=Gn({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?m:f}}function nd(t,e){let n=e==null?void 0:e.isDisabled,[r,i]=a.useState(!1);return R(()=>{if(t!=null&&t.current&&!n){let o=()=>{if(t.current){let s=Ce(t.current,{tabbable:!0});i(!!s.nextNode())}};o();let l=new MutationObserver(o);return l.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{l.disconnect()}}}),n?!1:r}function _i(t){let e=id(Y(t));e!==t&&(e&&rd(e,t),t&&Si(t,e))}function rd(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Si(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function id(t){let e=ie(t),n=e==null?void 0:e.getAttribute("aria-activedescendant");return n&&t.getElementById(n)||e}const Pe=[];function od(t,e){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=t,d=a.useRef(void 0);a.useEffect(()=>{if(i&&!Pe.includes(e))return Pe.push(e),()=>{let g=Pe.indexOf(e);g>=0&&Pe.splice(g,1)}},[i,e]);let c=()=>{Pe[Pe.length-1]===e&&n&&n()},u=g=>{const w=Pe[Pe.length-1];d.current=w,(!s||s(K(g)))&&w===e&&(g.stopPropagation(),g.preventDefault())},f=g=>{(!s||s(K(g)))&&(Pe[Pe.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d.current===e&&c()),d.current=void 0},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),c())};Wa({ref:e,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:u});let{focusWithinProps:v}=Gn({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||Qa(g.relatedTarget)||(!s||s(g.relatedTarget))&&(n==null||n())}}),y=g=>{K(g)===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...v},underlayProps:{onPointerDown:y}}}const xt=typeof document<"u"&&window.visualViewport;let Yt=0,Qn;function ld(t={}){let{isDisabled:e}=t;R(()=>{if(!e)return Yt++,Yt===1&&(Ue()?Qn=ad():Qn=sd()),()=>{Yt--,Yt===0&&Qn()}},[e])}function sd(){let t=window.innerWidth-document.documentElement.clientWidth;return ut(t>0&&("scrollbarGutter"in document.documentElement.style?Xt(document.documentElement,"scrollbarGutter","stable"):Xt(document.documentElement,"paddingRight",`${t}px`)),Xt(document.documentElement,"overflow","hidden"))}function ad(){let t=Xt(document.documentElement,"overflow","hidden"),e,n=!1,r=c=>{let u=K(c);e=ft(u)?u:Ur(u,!0),n=!1;let f=u.ownerDocument.defaultView.getSelection();f&&!f.isCollapsed&&f.containsNode(u,!0)&&(n=!0),c.composedPath().some(m=>m instanceof HTMLInputElement&&m.type==="range")&&(n=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(n=!0)},i=document.createElement("style");i.textContent=`
|
|
8
8
|
@layer {
|
|
9
9
|
* {
|
|
10
10
|
overscroll-behavior: contain;
|
|
11
11
|
}
|
|
12
|
-
}`.trim(),document.head.prepend(i);let o=c=>{if(!(c.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()}},l=c=>{let u=K(c),f=c.relatedTarget;if(f&&ht(f))f.focus({preventScroll:!0}),$i(f,ht(u));else if(!f){var m;let v=(m=u.parentElement)===null||m===void 0?void 0:m.closest("[tabindex]");v==null||v.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let u=ie(),f=u!=null&&ht(u);s.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&$i(this,f)};let d=ut(Rn(document,"touchstart",r,{passive:!1,capture:!0}),Rn(document,"touchmove",o,{passive:!1,capture:!0}),Rn(document,"blur",l,!0));return()=>{t(),d(),i.remove(),HTMLElement.prototype.focus=s}}function Xt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Rn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function $i(t,e){e||!xt?Li(t):xt.addEventListener("resize",()=>Li(t),{once:!0})}function Li(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Ur(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(o.top<i.top||o.bottom>i.top+n.clientHeight){let l=i.bottom;xt&&(l=Math.min(l,xt.offsetTop+xt.height));let s=o.top-i.top-((l-i.top)/2-o.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const dd=a.createContext({});function cd(){var t;return(t=a.useContext(dd))!==null&&t!==void 0?t:{}}var Fi={};Fi={dismiss:"تجاهل"};var Oi={};Oi={dismiss:"Отхвърляне"};var Ai={};Ai={dismiss:"Odstranit"};var zi={};zi={dismiss:"Luk"};var Vi={};Vi={dismiss:"Schließen"};var Bi={};Bi={dismiss:"Απόρριψη"};var Hi={};Hi={dismiss:"Dismiss"};var Ui={};Ui={dismiss:"Descartar"};var Wi={};Wi={dismiss:"Lõpeta"};var ji={};ji={dismiss:"Hylkää"};var Gi={};Gi={dismiss:"Rejeter"};var qi={};qi={dismiss:"התעלם"};var Zi={};Zi={dismiss:"Odbaci"};var Yi={};Yi={dismiss:"Elutasítás"};var Xi={};Xi={dismiss:"Ignora"};var Ji={};Ji={dismiss:"閉じる"};var Qi={};Qi={dismiss:"무시"};var Ri={};Ri={dismiss:"Atmesti"};var eo={};eo={dismiss:"Nerādīt"};var to={};to={dismiss:"Lukk"};var no={};no={dismiss:"Negeren"};var ro={};ro={dismiss:"Zignoruj"};var io={};io={dismiss:"Descartar"};var oo={};oo={dismiss:"Dispensar"};var lo={};lo={dismiss:"Revocare"};var so={};so={dismiss:"Пропустить"};var ao={};ao={dismiss:"Zrušiť"};var co={};co={dismiss:"Opusti"};var uo={};uo={dismiss:"Odbaci"};var fo={};fo={dismiss:"Avvisa"};var ho={};ho={dismiss:"Kapat"};var po={};po={dismiss:"Скасувати"};var mo={};mo={dismiss:"取消"};var vo={};vo={dismiss:"關閉"};var go={};go={"ar-AE":Fi,"bg-BG":Oi,"cs-CZ":Ai,"da-DK":zi,"de-DE":Vi,"el-GR":Bi,"en-US":Hi,"es-ES":Ui,"et-EE":Wi,"fi-FI":ji,"fr-FR":Gi,"he-IL":qi,"hr-HR":Zi,"hu-HU":Yi,"it-IT":Xi,"ja-JP":Ji,"ko-KR":Qi,"lt-LT":Ri,"lv-LV":eo,"nb-NO":to,"nl-NL":no,"pl-PL":ro,"pt-BR":io,"pt-PT":oo,"ro-RO":lo,"ru-RU":so,"sk-SK":ao,"sl-SI":co,"sr-SP":uo,"sv-SE":fo,"tr-TR":ho,"uk-UA":po,"zh-CN":mo,"zh-TW":vo};const bo={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 ud(t={}){let{style:e,isFocusable:n}=t,[r,i]=a.useState(!1),{focusWithinProps:o}=Gn({isDisabled:!n,onFocusWithinChange:s=>i(s)}),l=a.useMemo(()=>r?e:e?{...bo,...e}:bo,[r]);return{visuallyHiddenProps:{...o,style:l}}}function er(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=ud(t);return a.createElement(n,G(o,l),e)}function fd(t){return t&&t.__esModule?t.default:t}function hd(t){let{onDismiss:e,...n}=t,r=wa(fd(go),"@react-aria/overlays"),i=_t(n,r.format("dismiss")),o=()=>{e&&e()};return a.createElement(er,null,a.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const pd=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let wt=new WeakMap,ge=[];function md(t,e){let n=de(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e;var i;let o=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,l=(r==null?void 0:r.shouldUseInert)&&pd,s=new Set(t),d=new Set,c=x=>l&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",u=(x,E)=>{l&&x instanceof n.HTMLElement?x.inert=E:E?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},f=new Set;if(Te())for(let x of t){let E=x;for(;E&&E!==o;){let C=E.getRootNode();"shadowRoot"in C&&f.add(C.shadowRoot),E=C.parentNode}}let m=x=>{for(let N of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(N);let E=N=>{if(d.has(N)||s.has(N)||N.parentElement&&d.has(N.parentElement)&&N.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let H of s)if(U(N,H))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=$r(Y(x),x,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),k=E(x);if(k===NodeFilter.FILTER_ACCEPT&&v(x),k!==NodeFilter.FILTER_REJECT){let N=C.nextNode();for(;N!=null;)v(N),N=C.nextNode()}},v=x=>{var E;let C=(E=wt.get(x))!==null&&E!==void 0?E:0;c(x)&&C===0||(C===0&&u(x,!0),d.add(x),wt.set(x,C+1))};ge.length&&ge[ge.length-1].disconnect(),m(o);let y=new MutationObserver(x=>{for(let E of x)if(E.type==="childList"){if(E.target.isConnected&&![...s,...d].some(C=>U(C,E.target)))for(let C of E.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?s.add(C):C instanceof Element&&m(C);if(Te()){for(let C of f)if(!C.isConnected){y.disconnect();break}}}});y.observe(o,{childList:!0,subtree:!0});let g=new Set;if(Te())for(let x of f){let E=new MutationObserver(C=>{for(let k of C)if(k.type==="childList"){if(k.target.isConnected&&![...s,...d].some(N=>U(N,k.target)))for(let N of k.addedNodes)(N instanceof HTMLElement||N instanceof SVGElement)&&(N.dataset.liveAnnouncer==="true"||N.dataset.reactAriaTopLayer==="true")?s.add(N):N instanceof Element&&m(N);if(Te()){for(let N of f)if(!N.isConnected){y.disconnect();break}}}});E.observe(x,{childList:!0,subtree:!0}),g.add(E)}let w={visibleNodes:s,hiddenNodes:d,observe(){y.observe(o,{childList:!0,subtree:!0})},disconnect(){y.disconnect()}};return ge.push(w),()=>{if(y.disconnect(),Te())for(let x of g)x.disconnect();for(let x of d){let E=wt.get(x);E!=null&&(E===1?(u(x,!1),wt.delete(x)):wt.set(x,E-1))}w===ge[ge.length-1]?(ge.pop(),ge.length&&ge[ge.length-1].observe()):ge.splice(ge.indexOf(w),1)}}const yo=a.createContext(null);function vd(t){let e=Be(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=a.useState(!1),l=a.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:s}=cd();if(!t.portalContainer&&s&&(n=s()),!n)return null;let d=t.children;return t.disableFocusManagement||(d=a.createElement(qa,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},d)),d=a.createElement(yo.Provider,{value:l},a.createElement(Ha,null,d)),dt.createPortal(d,n)}function xo(){let t=a.useContext(yo),e=t==null?void 0:t.setContain;R(()=>{e==null||e(!0)},[e])}function gd(t,e,n){let{overlayProps:r,underlayProps:i}=od({...t,isOpen:e.isOpen,onClose:e.close},n);return ld({isDisabled:!e.isOpen}),xo(),a.useEffect(()=>{if(e.isOpen&&n.current)return md([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:G(r),underlayProps:i}}function bd(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Ne(e);let l=Ne(),s={};n?(r=r?`${l} ${r}`:l,s={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=_t({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:d}}function yd(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=bd(t),s=mn([!!e,!!n,r,i]),d=mn([!!e,!!n,r,i]);return l=G(l,{"aria-describedby":[s,d,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:d}}}function tr(t){return As()?t.altKey:t.ctrlKey}function nr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const wo=new WeakMap;function xd(t){let e=Ne();return wo.set(t,e),e}function wd(t){return wo.get(t)}const Ed=1e3;function Cd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=a.useRef({search:"",timeout:void 0}).current,o=l=>{let s=Pd(l.key);if(!(!s||l.ctrlKey||l.metaKey||!U(l.currentTarget,K(l))||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=s,e.getKeyForSearch!=null){let d=e.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=e.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ed)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Pd(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function kd(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,escapeKeyBehavior:d="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:v=r,linkBehavior:y="action"}=t,{direction:g}=$n(),w=xn(),x=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!r.current||!U(r.current,K(T)))return;const V=(B,J)=>{if(B!=null){if(e.isLink(B)&&y==="selection"&&c&&!tr(T)){dt.flushSync(()=>{e.setFocusedKey(B,J)});let fe=nr(r,B),ke=e.getItemProps(B);fe&&w.open(fe,T,ke.href,ke.routerOptions);return}if(e.setFocusedKey(B,J),e.isLink(B)&&y==="override")return;T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&!tr(T)&&e.replaceSelection(B)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var j,Z,Q;let B=e.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,e.focusedKey):(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n);B==null&&o&&(B=(Q=n.getFirstKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B))}break;case"ArrowUp":if(n.getKeyAbove){var re,h,M;let B=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(h=n.getLastKey)===null||h===void 0?void 0:h.call(n);B==null&&o&&(B=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B))}break;case"ArrowLeft":if(n.getKeyLeftOf){var b,D,S;let B=e.focusedKey!=null?(b=n.getKeyLeftOf)===null||b===void 0?void 0:b.call(n,e.focusedKey):null;B==null&&o&&(B=g==="rtl"?(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n,e.focusedKey):(S=n.getLastKey)===null||S===void 0?void 0:S.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var L,X,ae;let B=e.focusedKey!=null?(L=n.getKeyRightOf)===null||L===void 0?void 0:L.call(n,e.focusedKey):null;B==null&&o&&(B=g==="rtl"?(X=n.getLastKey)===null||X===void 0?void 0:X.call(n,e.focusedKey):(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&T.shiftKey)return;T.preventDefault();let B=n.getFirstKey(e.focusedKey,tt(T));e.setFocusedKey(B),B!=null&&(tt(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&e.replaceSelection(B))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&T.shiftKey)return;T.preventDefault();let B=n.getLastKey(e.focusedKey,tt(T));e.setFocusedKey(B),B!=null&&(tt(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&e.replaceSelection(B))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let B=n.getKeyPageBelow(e.focusedKey);B!=null&&(T.preventDefault(),V(B))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let B=n.getKeyPageAbove(e.focusedKey);B!=null&&(T.preventDefault(),V(B))}break;case"a":tt(T)&&e.selectionMode==="multiple"&&s!==!0&&(T.preventDefault(),e.selectAll());break;case"Escape":d==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),e.clearSelection());break;case"Tab":if(!m){if(T.shiftKey)r.current.focus();else{let B=Ce(r.current,{tabbable:!0}),J,fe;do fe=B.lastChild(),fe&&(J=fe);while(fe);let ke=ie();J&&(!vn(J)||ke&&!Xr(ke))&&De(J)}break}}},E=a.useRef({top:0,left:0});St(v,"scroll",()=>{var T,V,j,Z;E.current={top:(j=(T=v.current)===null||T===void 0?void 0:T.scrollTop)!==null&&j!==void 0?j:0,left:(Z=(V=v.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&Z!==void 0?Z:0}});let C=T=>{if(e.isFocused){U(T.currentTarget,K(T))||e.setFocused(!1);return}if(U(T.currentTarget,K(T))){if(e.setFocused(!0),e.focusedKey==null){var V,j;let re=M=>{M!=null&&(e.setFocusedKey(M),c&&!e.isSelected(M)&&e.replaceSelection(M))},h=T.relatedTarget;var Z,Q;h&&T.currentTarget.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_FOLLOWING?re((Z=e.lastSelectedKey)!==null&&Z!==void 0?Z:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):re((Q=e.firstSelectedKey)!==null&&Q!==void 0?Q:(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n))}else v.current&&(v.current.scrollTop=E.current.top,v.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&v.current){let re=nr(r,e.focusedKey);re instanceof HTMLElement&&(!vn(re)&&!f&&De(re),Ut()==="keyboard"&&jr(re,{containingElement:r.current}))}}},k=T=>{U(T.currentTarget,T.relatedTarget)||e.setFocused(!1)},N=a.useRef(!1);St(r,Rs,f?T=>{let{detail:V}=T;T.stopPropagation(),e.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(N.current=!0)}:void 0),Br(()=>{if(N.current){var T,V;let j=(V=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&V!==void 0?V:null;if(j==null){let Z=ie();_i(r.current),Si(Z,null),e.collection.size>0&&(N.current=!1)}else e.setFocusedKey(j),N.current=!1}},[e.collection]),Br(()=>{e.collection.size>0&&(N.current=!1)},[e.focusedKey]),St(r,Qs,f?T=>{var V;T.stopPropagation(),e.setFocused(!1),!((V=T.detail)===null||V===void 0)&&V.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=a.useRef(i),F=a.useRef(!1);a.useEffect(()=>{if(H.current){var T,V;let Q=null;var j;i==="first"&&(Q=(j=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&j!==void 0?j:null);var Z;i==="last"&&(Q=(Z=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&Z!==void 0?Z:null);let re=e.selectedKeys;if(re.size){for(let h of re)if(e.canSelectItem(h)){Q=h;break}}e.setFocused(!0),e.setFocusedKey(Q),Q==null&&!f&&r.current&&qe(r.current),e.collection.size>0&&(H.current=!1,F.current=!0)}});let P=a.useRef(e.focusedKey),I=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||F.current)&&v.current&&r.current){let T=Ut(),V=nr(r,e.focusedKey);if(!(V instanceof HTMLElement))return;(T==="keyboard"||F.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{v.current&&(kn(v.current,V),T!=="virtual"&&jr(V,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&P.current!=null&&r.current&&qe(r.current),P.current=e.focusedKey,F.current=!1}),a.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),St(r,"react-aria-focus-scope-restore",T=>{T.preventDefault(),e.setFocused(!0)});let z={onKeyDown:x,onFocus:C,onBlur:k,onMouseDown(T){v.current===K(T)&&T.preventDefault()}},{typeSelectProps:ee}=Cd({keyboardDelegate:n,selectionManager:e});u||(z=G(ee,z));let ne;f||(ne=e.focusedKey==null?0:-1);let q=xd(e.collection);return{collectionProps:G(z,{tabIndex:ne,"data-collection":q})}}function Nd(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:s,isDisabled:d,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:f="action"}=t,m=xn();e=Ne(e);let v=h=>{if(h.pointerType==="keyboard"&&tr(h))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let M=n.getItemProps(r);m.open(i.current,h,M.href,M.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):h&&h.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||h&&(tt(h)||h.pointerType==="touch"||h.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};a.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?_i(i.current):s?s():ie()!==i.current&&i.current&&qe(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),d=d||n.isDisabled(r);let y={};!l&&!d?y={tabIndex:r===n.focusedKey?0:-1,onFocus(h){K(h)===i.current&&n.setFocusedKey(r)}}:d&&(y.onMouseDown=h=>{h.preventDefault()}),a.useEffect(()=>{d&&n.focusedKey===r&&n.setFocusedKey(null)},[n,d,r]);let g=n.isLink(r)&&f==="override",w=c&&t.UNSTABLE_itemBehavior==="action",x=n.isLink(r)&&f!=="selection"&&f!=="none",E=!d&&n.canSelectItem(r)&&!g&&!w,C=(c||x)&&!d,k=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),N=C&&E&&n.selectionBehavior==="replace",H=k||N,F=a.useRef(null),P=H&&E,I=a.useRef(!1),z=a.useRef(!1),ee=n.getItemProps(r),ne=h=>{if(c){var M;c(),(M=i.current)===null||M===void 0||M.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&i.current&&m.open(i.current,h,ee.href,ee.routerOptions)},q={ref:i};if(o?(q.onPressStart=h=>{F.current=h.pointerType,I.current=P,h.pointerType==="keyboard"&&(!H||Co(h.key))&&v(h)},u?(q.onPressUp=k?void 0:h=>{h.pointerType==="mouse"&&E&&v(h)},q.onPress=k?ne:h=>{h.pointerType!=="keyboard"&&h.pointerType!=="mouse"&&E&&v(h)}):q.onPress=h=>{if(k||N&&h.pointerType!=="mouse"){if(h.pointerType==="keyboard"&&!Eo(h.key))return;ne(h)}else h.pointerType!=="keyboard"&&E&&v(h)}):(q.onPressStart=h=>{F.current=h.pointerType,I.current=P,z.current=k,E&&(h.pointerType==="mouse"&&!k||h.pointerType==="keyboard"&&(!C||Co(h.key)))&&v(h)},q.onPress=h=>{(h.pointerType==="touch"||h.pointerType==="pen"||h.pointerType==="virtual"||h.pointerType==="keyboard"&&H&&Eo(h.key)||h.pointerType==="mouse"&&z.current)&&(H?ne(h):E&&v(h))}),y["data-collection"]=wd(n.collection),y["data-key"]=r,q.preventFocusOnPress=l,l&&(q=G(q,{onPressStart(h){h.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(h){h.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ee)for(let h of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ee[h]&&(q[h]=ut(q[h],ee[h]));let{pressProps:T,isPressed:V}=it(q),j=N?h=>{F.current==="mouse"&&(h.stopPropagation(),h.preventDefault(),ne(h))}:void 0,{longPressProps:Z}=Ga({isDisabled:!P,onLongPress(h){h.pointerType==="touch"&&(v(h),n.setSelectionBehavior("toggle"))}}),Q=h=>{F.current==="touch"&&I.current&&h.preventDefault()},re=f!=="none"&&n.isLink(r)?h=>{Ie.isOpening||h.preventDefault()}:void 0;return{itemProps:G(y,E||k||l&&!d?T:{},P?Z:{},{onDoubleClick:j,onDragStartCapture:Q,onClick:re,id:e},l?{onMouseDown:h=>h.preventDefault()}:void 0),isPressed:V,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:d,allowsSelection:E,hasAction:H}}function Eo(t){return t==="Enter"}function Co(t){return t===" "}class Td{build(e,n){return this.context=n,Po(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(a.isValidElement(n)&&n.type===a.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];a.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let s=this.getFullNode({element:l,index:o},{});for(let d of s)o++,yield d}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let s=(l=o.key)!==null&&l!==void 0?l:o.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let w=[];a.Children.forEach(e.element.props.children,E=>{w.push(E)});var o;let x=(o=e.index)!==null&&o!==void 0?o:0;for(const E of w)yield*this.getFullNode({element:E,index:x++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let w=this.cache.get(e.value);if(w&&(!w.shouldInvalidate||!w.shouldInvalidate(this.context))){w.index=e.index,w.parentKey=i?i.key:null,yield w;return}l=n.renderer(e.value)}if(a.isValidElement(l)){let w=l.type;if(typeof w!="function"&&typeof w.getCollectionNode!="function"){let k=l.type;throw new Error(`Unknown element <${k}> in collection.`)}let x=w.getCollectionNode(l.props,this.context);var s;let E=(s=e.index)!==null&&s!==void 0?s:0,C=x.next();for(;!C.done&&C.value;){let k=C.value;e.index=E;var d;let N=(d=k.key)!==null&&d!==void 0?d:null;N==null&&(N=k.element?null:this.getKey(l,e,n,r));let F=[...this.getFullNode({...k,key:N,index:E,wrapper:Dd(e.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${l.key}`:l.key,i)];for(let P of F){var c,u;P.value=(u=(c=k.value)!==null&&c!==void 0?c:e.value)!==null&&u!==void 0?u:null,P.value&&this.cache.set(P.value,P);var f;if(e.type&&P.type!==e.type)throw new Error(`Unsupported type <${rr(P.type)}> in <${rr((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${rr(e.type)}> is supported.`);E++,yield P}C=x.next(F)}return}if(e.key==null||e.type==null)return;let m=this;var v,y;let g={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Po(function*(){if(!e.hasChildNodes||!e.childNodes)return;let w=0;for(let x of e.childNodes()){x.key!=null&&(x.key=`${g.key}${x.key}`);let E=m.getFullNode({...x,index:w},m.getChildState(n,x),g.key,g);for(let C of E)w++,yield C}})};yield g}constructor(){this.cache=new WeakMap}}function Po(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function Dd(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function rr(t){return t[0].toUpperCase()+t.slice(1)}function Md(t,e,n){let r=a.useMemo(()=>new Td,[]),{children:i,items:o,collection:l}=t;return a.useMemo(()=>{if(l)return l;let d=r.build({children:i,items:o},n);return e(d)},[r,i,o,l,n,e])}function Id(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Kd(t){return _d(t)}function _d(t,e){for(let n of t)return n}function ir(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ko(t,e),e],i=[...ko(t,n),n],o=r.slice(0,i.length).findIndex((l,s)=>l!==i[s]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function ko(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const No={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},To={...No,customError:!0,valid:!1},ot={isInvalid:!1,validationDetails:No,validationErrors:[]},Sd=a.createContext({}),Jt="__formValidationState"+Date.now();function or(t){if(t[Jt]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Jt];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return $d(t)}function $d(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:s="aria"}=t;n&&(e||(e=n==="invalid"));let d=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:To}:null,c=a.useMemo(()=>{if(!l||i==null)return null;let z=Ld(l,i);return Do(z)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let u=a.useContext(Sd),f=a.useMemo(()=>r?Array.isArray(r)?r.flatMap(z=>lr(u[z])):lr(u[r]):[],[u,r]),[m,v]=a.useState(u),[y,g]=a.useState(!1);u!==m&&(v(u),g(!1));let w=a.useMemo(()=>Do(y?[]:f),[y,f]),x=a.useRef(ot),[E,C]=a.useState(ot),k=a.useRef(ot),N=()=>{if(!H)return;F(!1);let z=c||o||x.current;sr(z,k.current)||(k.current=z,C(z))},[H,F]=a.useState(!1);return a.useEffect(N),{realtimeValidation:d||w||c||o||ot,displayValidation:s==="native"?d||w||E:d||w||c||o||E,updateValidation(z){s==="aria"&&!sr(E,z)?C(z):x.current=z},resetValidation(){let z=ot;sr(z,k.current)||(k.current=z,C(z)),s==="native"&&F(!1),g(!0)},commitValidation(){s==="native"&&F(!0),g(!0)}}}function lr(t){return t?Array.isArray(t)?t:[t]:[]}function Ld(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return lr(n)}return[]}function Do(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:To}:null}function sr(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function Mo(t,e,n){let{validationBehavior:r,focus:i}=t;R(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let c=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Od(n.current))}});let o=a.useRef(!1),l=ye(()=>{o.current||e.resetValidation()}),s=ye(c=>{var u;e.displayValidation.isInvalid||e.commitValidation();let f=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&n&&f&&Ad(f)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),Fa("keyboard")}c.preventDefault()}),d=ye(()=>{e.commitValidation()});a.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let u=c.form,f=u==null?void 0:u.reset;return u&&(u.reset=()=>{o.current=!window.event||window.event.type==="message"&&K(window.event)instanceof MessagePort,f==null||f.call(u),o.current=!1}),c.addEventListener("invalid",s),c.addEventListener("change",d),u==null||u.addEventListener("reset",l),()=>{c.removeEventListener("invalid",s),c.removeEventListener("change",d),u==null||u.removeEventListener("reset",l),u&&(u.reset=f)}},[n,r])}function Fd(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Od(t){return{isInvalid:!t.validity.valid,validationDetails:Fd(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Ad(t){for(let n=0;n<t.elements.length;n++){var e;let r=t.elements[n];if(((e=r.validity)===null||e===void 0?void 0:e.valid)===!1)return r}return null}function zd(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:l="text",validationBehavior:s="aria"}=t,[d,c]=pt(t.value,t.defaultValue||"",t.onChange),{focusableProps:u}=Wt(t,e),f=or({...t,value:d}),{isInvalid:m,validationErrors:v,validationDetails:y}=f.displayValidation,{labelProps:g,fieldProps:w,descriptionProps:x,errorMessageProps:E}=yd({...t,isInvalid:m,errorMessage:t.errorMessage||v}),C=ce(t,{labelable:!0});const k={type:l,pattern:t.pattern};let[N]=a.useState(d);var H;return Gr(e,(H=t.defaultValue)!==null&&H!==void 0?H:N,c),Mo(t,f,e),{labelProps:g,inputProps:G(C,n==="input"?k:void 0,{disabled:r,readOnly:o,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:d,onChange:F=>c(K(F).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(a.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...u,...w}),descriptionProps:x,errorMessageProps:E,isInvalid:m,validationErrors:v,validationDetails:y}}class Et{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,n,r){let i=this.clone();return n.addDescendants(i,e),i}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}}class Io extends Et{filter(e,n,r){let[i,o]=Ko(e,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=o,l}}class Vd extends Et{}Vd.type="header";class Bd extends Et{}Bd.type="loader";class Hd extends Io{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}}Hd.type="item";class Ud extends Io{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let o=e.getItem(i.lastChildKey);if(o&&o.type!=="header")return i}return null}}Ud.type="section";class Wd{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new this.constructor,[r,i]=Ko(this,n,this.firstKey,e);return n==null||n.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Ko(t,e,n,r){if(n==null)return[null,null];let i=null,o=null,l=t.getItem(n);for(;l!=null;){let c=l.filter(t,e,r);c!=null&&(c.nextKey=null,o&&(c.prevKey=o.key,o.nextKey=c.key),i==null&&(i=c),e.addNode(c),o=c),l=l.nextKey?t.getItem(l.nextKey):null}if(o&&o.type==="separator"){let c=o.prevKey;e.removeNode(o.key),c?(o=e.getItem(c),o.nextKey=null):o=null}var s,d;return[(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null,(d=o==null?void 0:o.key)!==null&&d!==void 0?d:null]}class _o{*[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((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class lt extends _o{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof lt?this.parentNode.level+(((e=this.parentNode.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,n,r,i,o,l,s,d;let c=this.nextVisibleSibling,u=this.getMutableNode();if(u!=null){u.index=this.index,u.level=this.level;var f;u.parentKey=this.parentNode instanceof lt&&(f=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&f!==void 0?f:null;var m;u.prevKey=(m=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&m!==void 0?m:null;var v;u.nextKey=(v=c==null||(i=c.node)===null||i===void 0?void 0:i.key)!==null&&v!==void 0?v:null,u.hasChildNodes=!!this.firstChild;var y;u.firstChildKey=(y=(l=this.firstVisibleChild)===null||l===void 0||(o=l.node)===null||o===void 0?void 0:o.key)!==null&&y!==void 0?y:null;var g;if(u.lastChildKey=(g=(d=this.lastVisibleChild)===null||d===void 0||(s=d.node)===null||s===void 0?void 0:s.key)!==null&&g!==void 0?g:null,(u.colSpan!=null||u.colIndex!=null)&&c){var w,x;let E=((w=u.colIndex)!==null&&w!==void 0?w:u.index)+((x=u.colSpan)!==null&&x!==void 0?x:1);if(c.node!=null&&E!==c.node.colIndex){let C=c.getMutableNode();C.colIndex=E}}}}setProps(e,n,r,i,o){let l,{value:s,textValue:d,id:c,...u}=e;if(this.node==null?(l=new r(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),u.ref=n,l.props=u,l.rendered=i,l.render=o,l.value=s,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=d||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",c!=null&&c!==l.key)throw new Error("Cannot change the id of an item");u.colSpan!=null&&(l.colSpan=u.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,s=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),s&&e.ownerDocument.markDirty(s),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class jd extends _o{get isConnected(){return!0}createElement(e){return new lt(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof lt&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof lt?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var e,n,r,i,o,l;this.nextCollection.commit((o=(n=this.firstVisibleChild)===null||n===void 0||(e=n.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(l=(i=this.lastVisibleChild)===null||i===void 0||(r=i.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function So(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=a.useMemo(()=>new WeakMap,o);return a.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let u of n){let f=l.get(u);if(!f){f=e(u);var s,d;let m=(d=(s=f.props.id)!==null&&s!==void 0?s:u.key)!==null&&d!==void 0?d:u.id;if(m==null)throw new Error("Could not determine key for item");r!=null&&(m=r+":"+m),f=a.cloneElement(f,i?{key:m,id:m,value:u}:{key:m}),l.set(u,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,i])}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(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const ar=a.createContext(!1);function Gd(t){if(a.useContext(ar))return a.createElement(a.Fragment,null,t.children);let n=a.createElement(ar.Provider,{value:!0},t.children);return a.createElement("template",null,n)}function Ct(t){let e=(n,r)=>a.useContext(ar)?null:t(n,r);return e.displayName=t.displayName||t.name,a.forwardRef(e)}var Qt={exports:{}},dr={};/**
|
|
12
|
+
}`.trim(),document.head.prepend(i);let o=c=>{if(!(c.touches.length===2||n)){if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()}},l=c=>{let u=K(c),f=c.relatedTarget;if(f&&ht(f))f.focus({preventScroll:!0}),$i(f,ht(u));else if(!f){var m;let v=(m=u.parentElement)===null||m===void 0?void 0:m.closest("[tabindex]");v==null||v.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let u=ie(),f=u!=null&&ht(u);s.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&$i(this,f)};let d=ut(Rn(document,"touchstart",r,{passive:!1,capture:!0}),Rn(document,"touchmove",o,{passive:!1,capture:!0}),Rn(document,"blur",l,!0));return()=>{t(),d(),i.remove(),HTMLElement.prototype.focus=s}}function Xt(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function Rn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function $i(t,e){e||!xt?Li(t):xt.addEventListener("resize",()=>Li(t),{once:!0})}function Li(t){let e=document.scrollingElement||document.documentElement,n=t;for(;n&&n!==e;){let r=Ur(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(o.top<i.top||o.bottom>i.top+n.clientHeight){let l=i.bottom;xt&&(l=Math.min(l,xt.offsetTop+xt.height));let s=o.top-i.top-((l-i.top)/2-o.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const dd=a.createContext({});function cd(){var t;return(t=a.useContext(dd))!==null&&t!==void 0?t:{}}var Fi={};Fi={dismiss:"تجاهل"};var Oi={};Oi={dismiss:"Отхвърляне"};var Ai={};Ai={dismiss:"Odstranit"};var zi={};zi={dismiss:"Luk"};var Vi={};Vi={dismiss:"Schließen"};var Bi={};Bi={dismiss:"Απόρριψη"};var Hi={};Hi={dismiss:"Dismiss"};var Ui={};Ui={dismiss:"Descartar"};var Wi={};Wi={dismiss:"Lõpeta"};var ji={};ji={dismiss:"Hylkää"};var Gi={};Gi={dismiss:"Rejeter"};var qi={};qi={dismiss:"התעלם"};var Zi={};Zi={dismiss:"Odbaci"};var Yi={};Yi={dismiss:"Elutasítás"};var Xi={};Xi={dismiss:"Ignora"};var Ji={};Ji={dismiss:"閉じる"};var Qi={};Qi={dismiss:"무시"};var Ri={};Ri={dismiss:"Atmesti"};var eo={};eo={dismiss:"Nerādīt"};var to={};to={dismiss:"Lukk"};var no={};no={dismiss:"Negeren"};var ro={};ro={dismiss:"Zignoruj"};var io={};io={dismiss:"Descartar"};var oo={};oo={dismiss:"Dispensar"};var lo={};lo={dismiss:"Revocare"};var so={};so={dismiss:"Пропустить"};var ao={};ao={dismiss:"Zrušiť"};var co={};co={dismiss:"Opusti"};var uo={};uo={dismiss:"Odbaci"};var fo={};fo={dismiss:"Avvisa"};var ho={};ho={dismiss:"Kapat"};var po={};po={dismiss:"Скасувати"};var mo={};mo={dismiss:"取消"};var vo={};vo={dismiss:"關閉"};var go={};go={"ar-AE":Fi,"bg-BG":Oi,"cs-CZ":Ai,"da-DK":zi,"de-DE":Vi,"el-GR":Bi,"en-US":Hi,"es-ES":Ui,"et-EE":Wi,"fi-FI":ji,"fr-FR":Gi,"he-IL":qi,"hr-HR":Zi,"hu-HU":Yi,"it-IT":Xi,"ja-JP":Ji,"ko-KR":Qi,"lt-LT":Ri,"lv-LV":eo,"nb-NO":to,"nl-NL":no,"pl-PL":ro,"pt-BR":io,"pt-PT":oo,"ro-RO":lo,"ru-RU":so,"sk-SK":ao,"sl-SI":co,"sr-SP":uo,"sv-SE":fo,"tr-TR":ho,"uk-UA":po,"zh-CN":mo,"zh-TW":vo};const bo={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 ud(t={}){let{style:e,isFocusable:n}=t,[r,i]=a.useState(!1),{focusWithinProps:o}=Gn({isDisabled:!n,onFocusWithinChange:s=>i(s)}),l=a.useMemo(()=>r?e:e?{...bo,...e}:bo,[r]);return{visuallyHiddenProps:{...o,style:l}}}function er(t){let{children:e,elementType:n="div",isFocusable:r,style:i,...o}=t,{visuallyHiddenProps:l}=ud(t);return a.createElement(n,G(o,l),e)}function fd(t){return t&&t.__esModule?t.default:t}function hd(t){let{onDismiss:e,...n}=t,r=wa(fd(go),"@react-aria/overlays"),i=_t(n,r.format("dismiss")),o=()=>{e&&e()};return a.createElement(er,null,a.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}const pd=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let wt=new WeakMap,be=[];function md(t,e){let n=de(t==null?void 0:t[0]),r=e instanceof n.Element?{root:e}:e;var i;let o=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,l=(r==null?void 0:r.shouldUseInert)&&pd,s=new Set(t),d=new Set,c=x=>l&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",u=(x,E)=>{l&&x instanceof n.HTMLElement?x.inert=E:E?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},f=new Set;if(Te())for(let x of t){let E=x;for(;E&&E!==o;){let C=E.getRootNode();"shadowRoot"in C&&f.add(C.shadowRoot),E=C.parentNode}}let m=x=>{for(let N of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(N);let E=N=>{if(d.has(N)||s.has(N)||N.parentElement&&d.has(N.parentElement)&&N.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let H of s)if(U(N,H))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=$r(Y(x),x,NodeFilter.SHOW_ELEMENT,{acceptNode:E}),k=E(x);if(k===NodeFilter.FILTER_ACCEPT&&v(x),k!==NodeFilter.FILTER_REJECT){let N=C.nextNode();for(;N!=null;)v(N),N=C.nextNode()}},v=x=>{var E;let C=(E=wt.get(x))!==null&&E!==void 0?E:0;c(x)&&C===0||(C===0&&u(x,!0),d.add(x),wt.set(x,C+1))};be.length&&be[be.length-1].disconnect(),m(o);let y=new MutationObserver(x=>{for(let E of x)if(E.type==="childList"){if(E.target.isConnected&&![...s,...d].some(C=>U(C,E.target)))for(let C of E.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?s.add(C):C instanceof Element&&m(C);if(Te()){for(let C of f)if(!C.isConnected){y.disconnect();break}}}});y.observe(o,{childList:!0,subtree:!0});let g=new Set;if(Te())for(let x of f){let E=new MutationObserver(C=>{for(let k of C)if(k.type==="childList"){if(k.target.isConnected&&![...s,...d].some(N=>U(N,k.target)))for(let N of k.addedNodes)(N instanceof HTMLElement||N instanceof SVGElement)&&(N.dataset.liveAnnouncer==="true"||N.dataset.reactAriaTopLayer==="true")?s.add(N):N instanceof Element&&m(N);if(Te()){for(let N of f)if(!N.isConnected){y.disconnect();break}}}});E.observe(x,{childList:!0,subtree:!0}),g.add(E)}let w={visibleNodes:s,hiddenNodes:d,observe(){y.observe(o,{childList:!0,subtree:!0})},disconnect(){y.disconnect()}};return be.push(w),()=>{if(y.disconnect(),Te())for(let x of g)x.disconnect();for(let x of d){let E=wt.get(x);E!=null&&(E===1?(u(x,!1),wt.delete(x)):wt.set(x,E-1))}w===be[be.length-1]?(be.pop(),be.length&&be[be.length-1].observe()):be.splice(be.indexOf(w),1)}}const yo=a.createContext(null);function vd(t){let e=Be(),{portalContainer:n=e?null:document.body,isExiting:r}=t,[i,o]=a.useState(!1),l=a.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:s}=cd();if(!t.portalContainer&&s&&(n=s()),!n)return null;let d=t.children;return t.disableFocusManagement||(d=a.createElement(qa,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},d)),d=a.createElement(yo.Provider,{value:l},a.createElement(Ha,null,d)),dt.createPortal(d,n)}function xo(){let t=a.useContext(yo),e=t==null?void 0:t.setContain;R(()=>{e==null||e(!0)},[e])}function gd(t,e,n){let{overlayProps:r,underlayProps:i}=od({...t,isOpen:e.isOpen,onClose:e.close},n);return ld({isDisabled:!e.isOpen}),xo(),a.useEffect(()=>{if(e.isOpen&&n.current)return md([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:G(r),underlayProps:i}}function bd(t){let{id:e,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=t;e=Ne(e);let l=Ne(),s={};n?(r=r?`${l} ${r}`:l,s={id:l,htmlFor:o==="label"?e:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=_t({id:e,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:d}}function yd(t){let{description:e,errorMessage:n,isInvalid:r,validationState:i}=t,{labelProps:o,fieldProps:l}=bd(t),s=mn([!!e,!!n,r,i]),d=mn([!!e,!!n,r,i]);return l=G(l,{"aria-describedby":[s,d,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:l,descriptionProps:{id:s},errorMessageProps:{id:d}}}function tr(t){return As()?t.altKey:t.ctrlKey}function nr(t,e){var n,r;let i=`[data-key="${CSS.escape(String(e))}"]`,o=(n=t.current)===null||n===void 0?void 0:n.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=t.current)===null||r===void 0?void 0:r.querySelector(i)}const wo=new WeakMap;function xd(t){let e=Ne();return wo.set(t,e),e}function wd(t){return wo.get(t)}const Ed=1e3;function Cd(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:r}=t,i=a.useRef({search:"",timeout:void 0}).current,o=l=>{let s=Pd(l.key);if(!(!s||l.ctrlKey||l.metaKey||!U(l.currentTarget,K(l))||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=s,e.getKeyForSearch!=null){let d=e.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=e.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ed)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Pd(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function kd(t){let{selectionManager:e,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,escapeKeyBehavior:d="clearSelection",selectOnFocus:c=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:f,allowsTabNavigation:m=!1,scrollRef:v=r,linkBehavior:y="action"}=t,{direction:g}=$n(),w=xn(),x=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!r.current||!U(r.current,K(T)))return;const V=(B,J)=>{if(B!=null){if(e.isLink(B)&&y==="selection"&&c&&!tr(T)){dt.flushSync(()=>{e.setFocusedKey(B,J)});let fe=nr(r,B),ke=e.getItemProps(B);fe&&w.open(fe,T,ke.href,ke.routerOptions);return}if(e.setFocusedKey(B,J),e.isLink(B)&&y==="override")return;T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&!tr(T)&&e.replaceSelection(B)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var j,Z,Q;let B=e.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,e.focusedKey):(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n);B==null&&o&&(B=(Q=n.getFirstKey)===null||Q===void 0?void 0:Q.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B))}break;case"ArrowUp":if(n.getKeyAbove){var re,h,M;let B=e.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,e.focusedKey):(h=n.getLastKey)===null||h===void 0?void 0:h.call(n);B==null&&o&&(B=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B))}break;case"ArrowLeft":if(n.getKeyLeftOf){var b,D,S;let B=e.focusedKey!=null?(b=n.getKeyLeftOf)===null||b===void 0?void 0:b.call(n,e.focusedKey):null;B==null&&o&&(B=g==="rtl"?(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n,e.focusedKey):(S=n.getLastKey)===null||S===void 0?void 0:S.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B,g==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var L,X,ae;let B=e.focusedKey!=null?(L=n.getKeyRightOf)===null||L===void 0?void 0:L.call(n,e.focusedKey):null;B==null&&o&&(B=g==="rtl"?(X=n.getLastKey)===null||X===void 0?void 0:X.call(n,e.focusedKey):(ae=n.getFirstKey)===null||ae===void 0?void 0:ae.call(n,e.focusedKey)),B!=null&&(T.preventDefault(),V(B,g==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&T.shiftKey)return;T.preventDefault();let B=n.getFirstKey(e.focusedKey,tt(T));e.setFocusedKey(B),B!=null&&(tt(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&e.replaceSelection(B))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&T.shiftKey)return;T.preventDefault();let B=n.getLastKey(e.focusedKey,tt(T));e.setFocusedKey(B),B!=null&&(tt(T)&&T.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(B):c&&e.replaceSelection(B))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let B=n.getKeyPageBelow(e.focusedKey);B!=null&&(T.preventDefault(),V(B))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let B=n.getKeyPageAbove(e.focusedKey);B!=null&&(T.preventDefault(),V(B))}break;case"a":tt(T)&&e.selectionMode==="multiple"&&s!==!0&&(T.preventDefault(),e.selectAll());break;case"Escape":d==="clearSelection"&&!l&&e.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),e.clearSelection());break;case"Tab":if(!m){if(T.shiftKey)r.current.focus();else{let B=Ce(r.current,{tabbable:!0}),J,fe;do fe=B.lastChild(),fe&&(J=fe);while(fe);let ke=ie();J&&(!vn(J)||ke&&!Xr(ke))&&De(J)}break}}},E=a.useRef({top:0,left:0});St(v,"scroll",()=>{var T,V,j,Z;E.current={top:(j=(T=v.current)===null||T===void 0?void 0:T.scrollTop)!==null&&j!==void 0?j:0,left:(Z=(V=v.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&Z!==void 0?Z:0}});let C=T=>{if(e.isFocused){U(T.currentTarget,K(T))||e.setFocused(!1);return}if(U(T.currentTarget,K(T))){if(e.setFocused(!0),e.focusedKey==null){var V,j;let re=M=>{M!=null&&(e.setFocusedKey(M),c&&!e.isSelected(M)&&e.replaceSelection(M))},h=T.relatedTarget;var Z,Q;h&&T.currentTarget.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_FOLLOWING?re((Z=e.lastSelectedKey)!==null&&Z!==void 0?Z:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):re((Q=e.firstSelectedKey)!==null&&Q!==void 0?Q:(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n))}else v.current&&(v.current.scrollTop=E.current.top,v.current.scrollLeft=E.current.left);if(e.focusedKey!=null&&v.current){let re=nr(r,e.focusedKey);re instanceof HTMLElement&&(!vn(re)&&!f&&De(re),Ut()==="keyboard"&&jr(re,{containingElement:r.current}))}}},k=T=>{U(T.currentTarget,T.relatedTarget)||e.setFocused(!1)},N=a.useRef(!1);St(r,Rs,f?T=>{let{detail:V}=T;T.stopPropagation(),e.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(N.current=!0)}:void 0),Br(()=>{if(N.current){var T,V;let j=(V=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&V!==void 0?V:null;if(j==null){let Z=ie();_i(r.current),Si(Z,null),e.collection.size>0&&(N.current=!1)}else e.setFocusedKey(j),N.current=!1}},[e.collection]),Br(()=>{e.collection.size>0&&(N.current=!1)},[e.focusedKey]),St(r,Qs,f?T=>{var V;T.stopPropagation(),e.setFocused(!1),!((V=T.detail)===null||V===void 0)&&V.clearFocusKey&&e.setFocusedKey(null)}:void 0);const H=a.useRef(i),F=a.useRef(!1);a.useEffect(()=>{if(H.current){var T,V;let Q=null;var j;i==="first"&&(Q=(j=(T=n.getFirstKey)===null||T===void 0?void 0:T.call(n))!==null&&j!==void 0?j:null);var Z;i==="last"&&(Q=(Z=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&Z!==void 0?Z:null);let re=e.selectedKeys;if(re.size){for(let h of re)if(e.canSelectItem(h)){Q=h;break}}e.setFocused(!0),e.setFocusedKey(Q),Q==null&&!f&&r.current&&qe(r.current),e.collection.size>0&&(H.current=!1,F.current=!0)}});let P=a.useRef(e.focusedKey),I=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||F.current)&&v.current&&r.current){let T=Ut(),V=nr(r,e.focusedKey);if(!(V instanceof HTMLElement))return;(T==="keyboard"||F.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{v.current&&(kn(v.current,V),T!=="virtual"&&jr(V,{containingElement:r.current}))}))}!f&&e.isFocused&&e.focusedKey==null&&P.current!=null&&r.current&&qe(r.current),P.current=e.focusedKey,F.current=!1}),a.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),St(r,"react-aria-focus-scope-restore",T=>{T.preventDefault(),e.setFocused(!0)});let z={onKeyDown:x,onFocus:C,onBlur:k,onMouseDown(T){v.current===K(T)&&T.preventDefault()}},{typeSelectProps:ee}=Cd({keyboardDelegate:n,selectionManager:e});u||(z=G(ee,z));let ne;f||(ne=e.focusedKey==null?0:-1);let q=xd(e.collection);return{collectionProps:G(z,{tabIndex:ne,"data-collection":q})}}function Nd(t){let{id:e,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:s,isDisabled:d,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:f="action"}=t,m=xn();e=Ne(e);let v=h=>{if(h.pointerType==="keyboard"&&tr(h))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(f==="selection"&&i.current){let M=n.getItemProps(r);m.open(i.current,h,M.href,M.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(f==="override"||f==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):h&&h.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||h&&(tt(h)||h.pointerType==="touch"||h.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};a.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(l?_i(i.current):s?s():ie()!==i.current&&i.current&&qe(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,l]),d=d||n.isDisabled(r);let y={};!l&&!d?y={tabIndex:r===n.focusedKey?0:-1,onFocus(h){K(h)===i.current&&n.setFocusedKey(r)}}:d&&(y.onMouseDown=h=>{h.preventDefault()}),a.useEffect(()=>{d&&n.focusedKey===r&&n.setFocusedKey(null)},[n,d,r]);let g=n.isLink(r)&&f==="override",w=c&&t.UNSTABLE_itemBehavior==="action",x=n.isLink(r)&&f!=="selection"&&f!=="none",E=!d&&n.canSelectItem(r)&&!g&&!w,C=(c||x)&&!d,k=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),N=C&&E&&n.selectionBehavior==="replace",H=k||N,F=a.useRef(null),P=H&&E,I=a.useRef(!1),z=a.useRef(!1),ee=n.getItemProps(r),ne=h=>{if(c){var M;c(),(M=i.current)===null||M===void 0||M.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}x&&i.current&&m.open(i.current,h,ee.href,ee.routerOptions)},q={ref:i};if(o?(q.onPressStart=h=>{F.current=h.pointerType,I.current=P,h.pointerType==="keyboard"&&(!H||Co(h.key))&&v(h)},u?(q.onPressUp=k?void 0:h=>{h.pointerType==="mouse"&&E&&v(h)},q.onPress=k?ne:h=>{h.pointerType!=="keyboard"&&h.pointerType!=="mouse"&&E&&v(h)}):q.onPress=h=>{if(k||N&&h.pointerType!=="mouse"){if(h.pointerType==="keyboard"&&!Eo(h.key))return;ne(h)}else h.pointerType!=="keyboard"&&E&&v(h)}):(q.onPressStart=h=>{F.current=h.pointerType,I.current=P,z.current=k,E&&(h.pointerType==="mouse"&&!k||h.pointerType==="keyboard"&&(!C||Co(h.key)))&&v(h)},q.onPress=h=>{(h.pointerType==="touch"||h.pointerType==="pen"||h.pointerType==="virtual"||h.pointerType==="keyboard"&&H&&Eo(h.key)||h.pointerType==="mouse"&&z.current)&&(H?ne(h):E&&v(h))}),y["data-collection"]=wd(n.collection),y["data-key"]=r,q.preventFocusOnPress=l,l&&(q=G(q,{onPressStart(h){h.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(h){h.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ee)for(let h of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ee[h]&&(q[h]=ut(q[h],ee[h]));let{pressProps:T,isPressed:V}=it(q),j=N?h=>{F.current==="mouse"&&(h.stopPropagation(),h.preventDefault(),ne(h))}:void 0,{longPressProps:Z}=Ga({isDisabled:!P,onLongPress(h){h.pointerType==="touch"&&(v(h),n.setSelectionBehavior("toggle"))}}),Q=h=>{F.current==="touch"&&I.current&&h.preventDefault()},re=f!=="none"&&n.isLink(r)?h=>{Ie.isOpening||h.preventDefault()}:void 0;return{itemProps:G(y,E||k||l&&!d?T:{},P?Z:{},{onDoubleClick:j,onDragStartCapture:Q,onClick:re,id:e},l?{onMouseDown:h=>h.preventDefault()}:void 0),isPressed:V,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:d,allowsSelection:E,hasAction:H}}function Eo(t){return t==="Enter"}function Co(t){return t===" "}class Td{build(e,n){return this.context=n,Po(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(a.isValidElement(n)&&n.type===a.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];a.Children.forEach(n,l=>{l&&i.push(l)});let o=0;for(let l of i){let s=this.getFullNode({element:l,index:o},{});for(let d of s)o++,yield d}}}getKey(e,n,r,i){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var l;let s=(l=o.key)!==null&&l!==void 0?l:o.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,r,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let w=[];a.Children.forEach(e.element.props.children,E=>{w.push(E)});var o;let x=(o=e.index)!==null&&o!==void 0?o:0;for(const E of w)yield*this.getFullNode({element:E,index:x++},n,r,i);return}let l=e.element;if(!l&&e.value&&n&&n.renderer){let w=this.cache.get(e.value);if(w&&(!w.shouldInvalidate||!w.shouldInvalidate(this.context))){w.index=e.index,w.parentKey=i?i.key:null,yield w;return}l=n.renderer(e.value)}if(a.isValidElement(l)){let w=l.type;if(typeof w!="function"&&typeof w.getCollectionNode!="function"){let k=l.type;throw new Error(`Unknown element <${k}> in collection.`)}let x=w.getCollectionNode(l.props,this.context);var s;let E=(s=e.index)!==null&&s!==void 0?s:0,C=x.next();for(;!C.done&&C.value;){let k=C.value;e.index=E;var d;let N=(d=k.key)!==null&&d!==void 0?d:null;N==null&&(N=k.element?null:this.getKey(l,e,n,r));let F=[...this.getFullNode({...k,key:N,index:E,wrapper:Dd(e.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${l.key}`:l.key,i)];for(let P of F){var c,u;P.value=(u=(c=k.value)!==null&&c!==void 0?c:e.value)!==null&&u!==void 0?u:null,P.value&&this.cache.set(P.value,P);var f;if(e.type&&P.type!==e.type)throw new Error(`Unsupported type <${rr(P.type)}> in <${rr((f=i==null?void 0:i.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${rr(e.type)}> is supported.`);E++,yield P}C=x.next(F)}return}if(e.key==null||e.type==null)return;let m=this;var v,y;let g={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(v=e.value)!==null&&v!==void 0?v:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(y=e.textValue)!==null&&y!==void 0?y:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Po(function*(){if(!e.hasChildNodes||!e.childNodes)return;let w=0;for(let x of e.childNodes()){x.key!=null&&(x.key=`${g.key}${x.key}`);let E=m.getFullNode({...x,index:w},m.getChildState(n,x),g.key,g);for(let C of E)w++,yield C}})};yield g}constructor(){this.cache=new WeakMap}}function Po(t){let e=[],n=null;return{*[Symbol.iterator](){for(let r of e)yield r;n||(n=t());for(let r of n)e.push(r),yield r}}}function Dd(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function rr(t){return t[0].toUpperCase()+t.slice(1)}function Md(t,e,n){let r=a.useMemo(()=>new Td,[]),{children:i,items:o,collection:l}=t;return a.useMemo(()=>{if(l)return l;let d=r.build({children:i,items:o},n);return e(d)},[r,i,o,l,n,e])}function Id(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Kd(t){return _d(t)}function _d(t,e){for(let n of t)return n}function ir(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let r=[...ko(t,e),e],i=[...ko(t,n),n],o=r.slice(0,i.length).findIndex((l,s)=>l!==i[s]);return o!==-1?(e=r[o],n=i[o],e.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function ko(t,e){let n=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=t.getItem(r.parentKey),r&&n.unshift(r);return n}const No={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},To={...No,customError:!0,valid:!1},ot={isInvalid:!1,validationDetails:No,validationErrors:[]},Sd=a.createContext({}),Jt="__formValidationState"+Date.now();function or(t){if(t[Jt]){let{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=t[Jt];return{realtimeValidation:e,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return $d(t)}function $d(t){let{isInvalid:e,validationState:n,name:r,value:i,builtinValidation:o,validate:l,validationBehavior:s="aria"}=t;n&&(e||(e=n==="invalid"));let d=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:To}:null,c=a.useMemo(()=>{if(!l||i==null)return null;let z=Ld(l,i);return Do(z)},[l,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let u=a.useContext(Sd),f=a.useMemo(()=>r?Array.isArray(r)?r.flatMap(z=>lr(u[z])):lr(u[r]):[],[u,r]),[m,v]=a.useState(u),[y,g]=a.useState(!1);u!==m&&(v(u),g(!1));let w=a.useMemo(()=>Do(y?[]:f),[y,f]),x=a.useRef(ot),[E,C]=a.useState(ot),k=a.useRef(ot),N=()=>{if(!H)return;F(!1);let z=c||o||x.current;sr(z,k.current)||(k.current=z,C(z))},[H,F]=a.useState(!1);return a.useEffect(N),{realtimeValidation:d||w||c||o||ot,displayValidation:s==="native"?d||w||E:d||w||c||o||E,updateValidation(z){s==="aria"&&!sr(E,z)?C(z):x.current=z},resetValidation(){let z=ot;sr(z,k.current)||(k.current=z,C(z)),s==="native"&&F(!1),g(!0)},commitValidation(){s==="native"&&F(!0),g(!0)}}}function lr(t){return t?Array.isArray(t)?t:[t]:[]}function Ld(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return lr(n)}return[]}function Do(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:To}:null}function sr(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,r)=>n===e.validationErrors[r])&&Object.entries(t.validationDetails).every(([n,r])=>e.validationDetails[n]===r)}function Mo(t,e,n){let{validationBehavior:r,focus:i}=t;R(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let c=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(Od(n.current))}});let o=a.useRef(!1),l=ye(()=>{o.current||e.resetValidation()}),s=ye(c=>{var u;e.displayValidation.isInvalid||e.commitValidation();let f=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&n&&f&&Ad(f)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),Fa("keyboard")}c.preventDefault()}),d=ye(()=>{e.commitValidation()});a.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let u=c.form,f=u==null?void 0:u.reset;return u&&(u.reset=()=>{o.current=!window.event||window.event.type==="message"&&K(window.event)instanceof MessagePort,f==null||f.call(u),o.current=!1}),c.addEventListener("invalid",s),c.addEventListener("change",d),u==null||u.addEventListener("reset",l),()=>{c.removeEventListener("invalid",s),c.removeEventListener("change",d),u==null||u.removeEventListener("reset",l),u&&(u.reset=f)}},[n,r])}function Fd(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function Od(t){return{isInvalid:!t.validity.valid,validationDetails:Fd(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function Ad(t){for(let n=0;n<t.elements.length;n++){var e;let r=t.elements[n];if(((e=r.validity)===null||e===void 0?void 0:e.valid)===!1)return r}return null}function zd(t,e){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:l="text",validationBehavior:s="aria"}=t,[d,c]=pt(t.value,t.defaultValue||"",t.onChange),{focusableProps:u}=Wt(t,e),f=or({...t,value:d}),{isInvalid:m,validationErrors:v,validationDetails:y}=f.displayValidation,{labelProps:g,fieldProps:w,descriptionProps:x,errorMessageProps:E}=yd({...t,isInvalid:m,errorMessage:t.errorMessage||v}),C=ce(t,{labelable:!0});const k={type:l,pattern:t.pattern};let[N]=a.useState(d);var H;return Gr(e,(H=t.defaultValue)!==null&&H!==void 0?H:N,c),Mo(t,f,e),{labelProps:g,inputProps:G(C,n==="input"?k:void 0,{disabled:r,readOnly:o,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:d,onChange:F=>c(K(F).value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,form:t.form,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,[parseInt(a.version,10)>=17?"enterKeyHint":"enterkeyhint"]:t.enterKeyHint,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...u,...w}),descriptionProps:x,errorMessageProps:E,isInvalid:m,validationErrors:v,validationDetails:y}}class Et{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,n,r){let i=this.clone();return n.addDescendants(i,e),i}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}}class Io extends Et{filter(e,n,r){let[i,o]=Ko(e,n,this.firstChildKey,r),l=this.clone();return l.firstChildKey=i,l.lastChildKey=o,l}}class Vd extends Et{}Vd.type="header";class Bd extends Et{}Bd.type="loader";class Hd extends Io{filter(e,n,r){if(r(this.textValue,this)){let i=this.clone();return n.addDescendants(i,e),i}return null}}Hd.type="item";class Ud extends Io{filter(e,n,r){let i=super.filter(e,n,r);if(i&&i.lastChildKey!==null){let o=e.getItem(i.lastChildKey);if(o&&o.type!=="header")return i}return null}}Ud.type="section";class Wd{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let r=n.get(e),i=(r==null?void 0:r.firstChildKey)!=null?n.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?n.get(i.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var r;return(r=n==null?void 0:n.key)!==null&&r!==void 0?r:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n.itemCount=this.itemCount,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,n){this.addNode(e);let r=n.getChildren(e.key);for(let i of r)this.addDescendants(i,n)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let n=this.keyMap.get(e);n!=null&&n.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,n,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!r}filter(e){let n=new this.constructor,[r,i]=Ko(this,n,this.firstKey,e);return n==null||n.commit(r,i),n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Ko(t,e,n,r){if(n==null)return[null,null];let i=null,o=null,l=t.getItem(n);for(;l!=null;){let c=l.filter(t,e,r);c!=null&&(c.nextKey=null,o&&(c.prevKey=o.key,o.nextKey=c.key),i==null&&(i=c),e.addNode(c),o=c),l=l.nextKey?t.getItem(l.nextKey):null}if(o&&o.type==="separator"){let c=o.prevKey;e.removeNode(o.key),c?(o=e.getItem(c),o.nextKey=null):o=null}var s,d;return[(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null,(d=o==null?void 0:o.key)!==null&&d!==void 0?d:null]}class _o{*[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((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index-1,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class lt extends _o{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof lt?this.parentNode.level+(((e=this.parentNode.node)===null||e===void 0?void 0:e.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,n,r,i,o,l,s,d;let c=this.nextVisibleSibling,u=this.getMutableNode();if(u!=null){u.index=this.index,u.level=this.level;var f;u.parentKey=this.parentNode instanceof lt&&(f=(e=this.parentNode.node)===null||e===void 0?void 0:e.key)!==null&&f!==void 0?f:null;var m;u.prevKey=(m=(r=this.previousVisibleSibling)===null||r===void 0||(n=r.node)===null||n===void 0?void 0:n.key)!==null&&m!==void 0?m:null;var v;u.nextKey=(v=c==null||(i=c.node)===null||i===void 0?void 0:i.key)!==null&&v!==void 0?v:null,u.hasChildNodes=!!this.firstChild;var y;u.firstChildKey=(y=(l=this.firstVisibleChild)===null||l===void 0||(o=l.node)===null||o===void 0?void 0:o.key)!==null&&y!==void 0?y:null;var g;if(u.lastChildKey=(g=(d=this.lastVisibleChild)===null||d===void 0||(s=d.node)===null||s===void 0?void 0:s.key)!==null&&g!==void 0?g:null,(u.colSpan!=null||u.colIndex!=null)&&c){var w,x;let E=((w=u.colIndex)!==null&&w!==void 0?w:u.index)+((x=u.colSpan)!==null&&x!==void 0?x:1);if(c.node!=null&&E!==c.node.colIndex){let C=c.getMutableNode();C.colIndex=E}}}}setProps(e,n,r,i,o){let l,{value:s,textValue:d,id:c,...u}=e;if(this.node==null?(l=new r(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),u.ref=n,l.props=u,l.rendered=i,l.render=o,l.value=s,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=d||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",c!=null&&c!==l.key)throw new Error("Cannot change the id of an item");u.colSpan!=null&&(l.colSpan=u.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(n){let r=n==="none";if(e.isHidden!==r){var i,o;(((i=e.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===e||((o=e.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let l=e.previousVisibleSibling,s=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),s&&e.ownerDocument.markDirty(s),e.isHidden=r,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class jd extends _o{get isConnected(){return!0}createElement(e){return new lt(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let n=this.getMutableCollection();if(!n.getItem(e.node.key))for(let r of e)this.addNode(r);n.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection:(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof lt&&(!s.isConnected||s.isHidden)?this.removeNode(s):s.updateChildIndices();for(let s of this.dirtyNodes)s instanceof lt?(s.isConnected&&!s.isHidden&&(s.updateNode(),this.addNode(s)),s.node&&this.dirtyNodes.delete(s),s.isMutated=!1):this.dirtyNodes.delete(s);if(this.nextCollection){var e,n,r,i,o,l;this.nextCollection.commit((o=(n=this.firstVisibleChild)===null||n===void 0||(e=n.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(l=(i=this.lastVisibleChild)===null||i===void 0||(r=i.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone());for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function So(t){let{children:e,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=t,l=a.useMemo(()=>new WeakMap,o);return a.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let u of n){let f=l.get(u);if(!f){f=e(u);var s,d;let m=(d=(s=f.props.id)!==null&&s!==void 0?s:u.key)!==null&&d!==void 0?d:u.id;if(m==null)throw new Error("Could not determine key for item");r!=null&&(m=r+":"+m),f=a.cloneElement(f,i?{key:m,id:m,value:u}:{key:m}),l.set(u,f)}c.push(f)}return c}else if(typeof e!="function")return e},[e,n,l,r,i])}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(t){return this.content.appendChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(t){return this.content.removeChild(t)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(t,e){return this.content.insertBefore(t,e)}}));const ar=a.createContext(!1);function Gd(t){if(a.useContext(ar))return a.createElement(a.Fragment,null,t.children);let n=a.createElement(ar.Provider,{value:!0},t.children);return a.createElement("template",null,n)}function Ct(t){let e=(n,r)=>a.useContext(ar)?null:t(n,r);return e.displayName=t.displayName||t.name,a.forwardRef(e)}var Qt={exports:{}},dr={};/**
|
|
13
13
|
* @license React
|
|
14
14
|
* use-sync-external-store-shim.production.js
|
|
15
15
|
*
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var Lo;function Zd(){return Lo||(Lo=1,process.env.NODE_ENV!=="production"&&(function(){function t(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}function e(v,y){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=y();if(!f){var w=y();o(g,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=l({inst:{value:g,getSnapshot:y}});var x=w[0].inst,E=w[1];return d(function(){x.value=g,x.getSnapshot=y,n(x)&&E({inst:x})},[v,g,y]),s(function(){return n(x)&&E({inst:x}),v(function(){n(x)&&E({inst:x})})},[v]),c(g),g}function n(v){var y=v.getSnapshot;v=v.value;try{var g=y();return!o(v,g)}catch{return!0}}function r(v,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=a,o=typeof Object.is=="function"?Object.is:t,l=i.useState,s=i.useEffect,d=i.useLayoutEffect,c=i.useDebugValue,u=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;cr.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cr}var Fo;function Yd(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?Qt.exports=qd():Qt.exports=Zd()),Qt.exports}var Xd=Yd();const Oo=a.createContext(!1),Pt=a.createContext(null);function Jd(t){if(a.useContext(Pt))return t.content;let{collection:n,document:r}=tc(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(Gd,null,a.createElement(Pt.Provider,{value:r},t.content)),a.createElement(Qd,{render:t.children,collection:n}))}function Qd({collection:t,render:e}){return e(t)}function Rd(t,e,n){let r=Be(),i=a.useRef(r);i.current=r;let o=a.useCallback(()=>i.current?n():e(),[e,n]);return Xd.useSyncExternalStore(t,o)}const ec=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:Rd;function tc(t){let[e]=a.useState(()=>new jd((t==null?void 0:t())||new Wd)),n=a.useCallback(l=>e.subscribe(l),[e]),r=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:ec(n,r,i),document:e}}const ur=a.createContext(null);function nc(t){var e;return e=class extends Et{},e.type=t,e}function rc(t,e,n,r,i,o){typeof t=="string"&&(t=nc(t));let l=a.useCallback(d=>{d==null||d.setProps(e,n,t,r,o)},[e,n,r,o,t]),s=a.useContext(ur);if(s){let d=s.ownerDocument.nodesByProps.get(e);return d||(d=s.ownerDocument.createElement(t.type),d.setProps(e,n,t,r,o),s.appendChild(d),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,d)),i?a.createElement(ur.Provider,{value:d},i):null}return a.createElement(t.type,{ref:l},i)}function ic(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=a.forwardRef((i,o)=>{let l=a.useContext(jn);if(!a.useContext(Oo)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return rc(t,i,o,"children"in i?i.children:null,null,d=>a.createElement(jn.Provider,{value:l},a.createElement(n,{node:d})))});return r.displayName=e.name,r}function oc(t){return So({...t,addIdAndValue:!0})}const Ao=a.createContext(null);function lc(t){let e=a.useContext(Ao),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies);var r;let i=(r=t.idScope)!==null&&r!==void 0?r:e==null?void 0:e.idScope,o=oc({...t,idScope:i,dependencies:n});return a.useContext(Pt)&&(o=a.createElement(sc,null,o)),e=a.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),a.createElement(Ao.Provider,{value:e},o)}function sc({children:t}){let e=a.useContext(Pt),n=a.useMemo(()=>a.createElement(Pt.Provider,{value:null},a.createElement(Oo.Provider,{value:!0},t)),[t]);return Be()?a.createElement(ur.Provider,{value:e},n):dt.createPortal(n,e)}const zo={CollectionRoot({collection:t,renderDropIndicator:e}){return Vo(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Vo(t,e,n)}};function Vo(t,e,n){return So({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return a.createElement(a.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:a.createElement(a.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,ac(t,r,n))}})}function ac(t,e,n){let r=e.key,i=t.getKeyAfter(r),o=i!=null?t.getItem(i):null;for(;o!=null&&o.type!=="item";)i=t.getKeyAfter(o.key),o=i!=null?t.getItem(i):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let s=[];if(l==null){let d=e;for(;(d==null?void 0:d.type)==="item"&&(!o||d.parentKey!==o.parentKey&&o.level<d.level);){let c=n({type:"item",key:d.key,dropPosition:"after"});a.isValidElement(c)&&s.push(a.cloneElement(c,{key:`${d.key}-after`})),d=d.parentKey!=null?t.getItem(d.parentKey):null}}return s}const Bo=a.createContext(zo);function dc(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}function cc(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:f,href:m,target:v,rel:y,type:g="button"}=t,w;n==="button"?w={type:g,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:w={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?v:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:x,isPressed:E}=it({onPressStart:o,onPressEnd:l,onPressChange:d,onPress:i,onPressUp:s,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:C}=Wt(t,e);u&&(C.tabIndex=r?-1:C.tabIndex);let k=G(C,x,ce(t,{labelable:!0}));return{isPressed:E,buttonProps:G(w,k,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function Ho(t,e,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:o,name:l,form:s,children:d,"aria-label":c,"aria-labelledby":u,validationState:f="valid",isInvalid:m,onPressStart:v,onPressEnd:y,onPressChange:g,onPress:w,onPressUp:x,onClick:E}=t,C=q=>{q.stopPropagation(),e.setSelected(K(q).checked)},k=d!=null,N=c!=null||u!=null;!k&&!N&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:H,isPressed:F}=it({onPressStart:v,onPressEnd:y,onPressChange:g,onPress:w,onPressUp:x,onClick:E,isDisabled:r}),{pressProps:P,isPressed:I}=it({onPressStart:v,onPressEnd:y,onPressChange:g,onPressUp:x,onClick:E,onPress(q){var T;w==null||w(q),e.toggle(),(T=n.current)===null||T===void 0||T.focus()},isDisabled:r||i}),{focusableProps:z}=Wt(t,n),ee=G(H,z),ne=ce(t,{labelable:!0});return Gr(n,e.defaultSelected,e.setSelected),{labelProps:G(P,{onClick:q=>q.preventDefault()}),inputProps:G(ne,{"aria-invalid":m||f==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,onChange:C,disabled:r,...o==null?{}:{value:o},name:l,form:s,type:"checkbox",...ee}),isSelected:e.isSelected,isPressed:F||I,isDisabled:r,isReadOnly:i,isInvalid:m||f==="invalid"}}function Uo(t,e,n){let r=or({...t,value:e.isSelected}),{isInvalid:i,validationErrors:o,validationDetails:l}=r.displayValidation,{labelProps:s,inputProps:d,isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m}=Ho({...t,isInvalid:i},e,n);Mo(t,r,n);let{isIndeterminate:v,isRequired:y,validationBehavior:g="aria"}=t;a.useEffect(()=>{n.current&&(n.current.indeterminate=!!v)});let{pressProps:w}=it({isDisabled:f||m,onPress(){let{[Jt]:x}=t,{commitValidation:E}=x||r;E()}});return{labelProps:G(s,w,a.useMemo(()=>({onMouseDown:x=>x.preventDefault()}),[])),inputProps:{...d,checked:c,"aria-required":y&&g==="aria"||void 0,required:y&&g==="native"},isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m,isInvalid:i,validationErrors:o,validationDetails:l}}const uc=new WeakMap;function fr(t={}){let{isReadOnly:e}=t,[n,r]=pt(t.isSelected,t.defaultSelected||!1,t.onChange),[i]=a.useState(n);function o(d){e||r(d)}function l(){e||r(!n)}var s;return{isSelected:n,defaultSelected:(s=t.defaultSelected)!==null&&s!==void 0?s:i,setSelected:o,toggle:l}}function fc(t,e,n){const r=fr({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(x){x?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(x)}});let{name:i,form:o,descriptionId:l,errorMessageId:s,validationBehavior:d}=uc.get(e);var c;d=(c=t.validationBehavior)!==null&&c!==void 0?c:d;let{realtimeValidation:u}=or({...t,value:r.isSelected,name:void 0,validationBehavior:"aria"}),f=a.useRef(ot),m=()=>{e.setInvalid(t.value,u.isInvalid?u:f.current)};a.useEffect(m);let v=e.realtimeValidation.isInvalid?e.realtimeValidation:u,y=d==="native"?e.displayValidation:v;var g;let w=Uo({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||o,isRequired:(g=t.isRequired)!==null&&g!==void 0?g:e.isRequired,validationBehavior:d,[Jt]:{realtimeValidation:v,displayValidation:y,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(x){f.current=x,m()}}},r,n);return{...w,inputProps:{...w.inputProps,"aria-describedby":[t["aria-describedby"],e.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}function hc(t,e){let{role:n="dialog"}=t,r=mn();r=t["aria-label"]?void 0:r;let i=a.useRef(!1);return a.useEffect(()=>{if(e.current&&!vn(e.current)){qe(e.current);let o=setTimeout(()=>{(ie()===e.current||ie()===document.body)&&(i.current=!0,e.current&&(e.current.blur(),qe(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),xo(),{dialogProps:{...ce(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function pc(t,e,n){let{labelProps:r,inputProps:i,isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}=Ho(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:o},isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}}const Wo=new WeakMap;function Rt(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=Wo.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function mc(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:s}=e,d=r===s,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:u,isPressed:f}=Nd({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),m=Rt(e,r,"tab"),v=Rt(e,r,"tabpanel"),{tabIndex:y}=u,g=e.collection.getItem(r),w=ce(g==null?void 0:g.props,{labelable:!0});delete w.id;let x=Ws(g==null?void 0:g.props),{focusableProps:E}=Wt({...g==null?void 0:g.props,isDisabled:c},n);return{tabProps:G(w,E,x,u,{id:m,"aria-selected":d,"aria-disabled":c||void 0,"aria-controls":d?v:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:d,isDisabled:c,isPressed:f}}function vc(t,e,n){let r=nd(n)?void 0:0;var i;const o=Rt(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=_t({...t,id:o,"aria-labelledby":Rt(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:G(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class gc{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function bc(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:s}=e,{direction:d}=$n(),c=a.useMemo(()=>new gc(o,d,r,s),[o,s,r,d]),{collectionProps:u}=kd({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ne();Wo.set(e,f);let m=_t({...t,id:f});return{tabListProps:{...G(u,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const jo=a.createContext({}),yc=Ct(function(e,n){[e,n]=xe(e,n,jo);let{elementType:r="label",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Label",...i,ref:n})}),xc=a.createContext(null),Go=a.createContext({}),le=Ct(function(e,n){[e,n]=xe(e,n,Go);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=cc(e,n);o=Ec(o,i);let{focusProps:s,isFocused:d,isFocusVisible:c}=Ye(e),{hoverProps:u,isHovered:f}=bt({...e,isDisabled:e.isDisabled||i}),m={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:d,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=pe({...e,values:m,defaultClassName:"react-aria-Button"}),y=Ne(o.id),g=Ne(),w=o["aria-labelledby"];i&&(w?w=`${w} ${g}`:o["aria-label"]&&(w=`${y} ${g}`));let x=a.useRef(i);a.useEffect(()=>{let C={"aria-labelledby":w||y};(!x.current&&d&&i||x.current&&d&&!i)&&ei(C,"assertive"),x.current=i},[i,d,w,y]);let E=ce(e,{global:!0});return delete E.onClick,a.createElement(ue.button,{...G(E,v,o,s,u),type:o.type==="submit"&&i?"button":o.type,id:y,ref:n,"aria-labelledby":w,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":d||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},a.createElement(xc.Provider,{value:{id:g}},v.children))}),wc=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ec(t,e){if(e){for(const n in t)n.startsWith("on")&&!wc.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const qo=a.createContext({}),Zo=a.forwardRef(function(e,n){[e,n]=xe(e,n,qo);let{elementType:r="span",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Text",...i,ref:n})});class Yo{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let d of s.childNodes)n(d)};for(let s of e)n(s);let r=null,i=0,o=0;for(let[s,d]of this.keyMap)r?(r.nextKey=s,d.prevKey=r.key):(this.firstKey=s,d.prevKey=void 0),d.type==="item"&&(d.index=i++),(d.type==="section"||d.type==="item")&&o++,r=d,r.nextKey=void 0;this._size=o;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}}class we extends Set{constructor(e,n,r){super(e),e instanceof we?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Cc(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Pc(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=a.useRef(!1),[,s]=a.useState(!1),d=a.useRef(null),c=a.useRef(null),[,u]=a.useState(null),f=a.useMemo(()=>Xo(t.selectedKeys),[t.selectedKeys]),m=a.useMemo(()=>Xo(t.defaultSelectedKeys,new we),[t.defaultSelectedKeys]),[v,y]=pt(f,m,t.onSelectionChange),g=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[w,x]=a.useState(i);i==="replace"&&w==="toggle"&&typeof v=="object"&&v.size===0&&x("replace");let E=a.useRef(i);return a.useEffect(()=>{i!==E.current&&(x(i),E.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return l.current},setFocused(C){l.current=C,s(C)},get focusedKey(){return d.current},get childFocusStrategy(){return c.current},setFocusedKey(C,k="first"){d.current=C,c.current=k,u(C)},selectedKeys:v,setSelectedKeys(C){(r||!Cc(C,v))&&y(C)},disabledKeys:g,disabledBehavior:o}}function Xo(t,e){return t?t==="all"?"all":new we(t):e}class hr{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,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ir(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ir(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new we([n],n,n);else{let l=this.state.selectedKeys;var i;let s=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new we(l,s,n);var o;for(let d of this.getKeyRange(s,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(d);for(let d of this.getKeyRange(n,s))this.canSelectItem(d)&&r.add(d)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?ir(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new we(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new we([n],n,n):new we;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new we;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Kd(Id(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new we)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new hr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function kc(t){let{filter:e,layoutDelegate:n}=t,r=Pc(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=a.useCallback(c=>e?new Yo(e(c)):new Yo(c),[e]),l=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=Md(t,o,l),d=a.useMemo(()=>new hr(s,r,{layoutDelegate:n}),[s,r,n]);return Nc(s,d),{collection:s,disabledKeys:i,selectionManager:d}}function Nc(t,e){const n=a.useRef(null);a.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const u=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(x=>{const E=n.current.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null),m=[...t.getKeys()].map(x=>{const E=t.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=m==null?void 0:m.length)!==null&&i!==void 0?i:0);var o,l,s;let y=Math.min(v>1?Math.max(((o=u==null?void 0:u.index)!==null&&o!==void 0?o:0)-v+1,0):(l=u==null?void 0:u.index)!==null&&l!==void 0?l:0,((s=m==null?void 0:m.length)!==null&&s!==void 0?s:0)-1),g=null,w=!1;for(;y>=0;){if(!e.isDisabled(m[y].key)){g=m[y];break}if(y<m.length-1&&!w)y++;else{w=!0;var d,c;y>((d=u==null?void 0:u.index)!==null&&d!==void 0?d:0)&&(y=(c=u==null?void 0:u.index)!==null&&c!==void 0?c:0),y--}}e.setFocusedKey(g?g.key:null)}n.current=t},[t,e])}function Tc(t){var e;let[n,r]=pt(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=a.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:s}=kc({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var u;let f=(u=c.values().next().value)!==null&&u!==void 0?u:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),d=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:d}}function Dc(t){let[e,n]=pt(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=a.useCallback(()=>{n(!0)},[n]),i=a.useCallback(()=>{n(!1)},[n]),o=a.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Mc(t){var e,n;let r=Tc({...t,onSelectionChange:t.onSelectionChange?d=>{var c;d!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,d))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Jo(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,s=a.useRef(l);return a.useEffect(()=>{let d=l;t.selectedKey==null&&(i.isEmpty||d==null||!o.getItem(d))&&(d=Jo(o,r.disabledKeys),d!=null&&i.setSelectedKeys([d])),(d!=null&&i.focusedKey==null||!i.isFocused&&d!==s.current)&&i.setFocusedKey(d),s.current=d}),{...r,isDisabled:t.isDisabled||!1}}function Jo(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const Ic=a.createContext(null),Qo=a.createContext(null),Kc=a.createContext(null),_c=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,ds);let{validationBehavior:o}=$t(Qo)||{};var l,s;let d=(s=(l=e.validationBehavior)!==null&&l!==void 0?l:o)!==null&&s!==void 0?s:"native",c=a.useContext(Kc),u=$e(a.useMemo(()=>et(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:f,inputProps:m,isSelected:v,isDisabled:y,isReadOnly:g,isPressed:w,isInvalid:x}=c?fc({...Lt(e),value:e.value,children:typeof e.children=="function"?!0:e.children},c,u):Uo({...Lt(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:d},fr(e),u),{isFocused:E,isFocusVisible:C,focusProps:k}=Ye(),N=y||g,{hoverProps:H,isHovered:F}=bt({...e,isDisabled:N}),P=pe({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:w,isHovered:F,isFocused:E,isFocusVisible:C,isDisabled:y,isReadOnly:g,isInvalid:x,isRequired:e.isRequired||!1}}),I=ce(e,{global:!0});return delete I.id,delete I.onClick,a.createElement(ue.label,{...G(I,f,H,P),ref:n,slot:e.slot||void 0,"data-selected":v||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":w||void 0,"data-hovered":F||void 0,"data-focused":E||void 0,"data-focus-visible":C||void 0,"data-disabled":y||void 0,"data-readonly":g||void 0,"data-invalid":x||void 0,"data-required":e.isRequired||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...G(m,k),ref:u})),P.children)}),Sc=a.createContext({}),Ro=a.createContext({});let $c=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const Lc=Ct(function(e,n){[e,n]=xe(e,n,Ro);let{hoverProps:r,isHovered:i}=bt({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:s}=Ye({isTextInput:!0,autoFocus:e.autoFocus}),d=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=pe({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:d},defaultClassName:"react-aria-Input"});return a.createElement(ue.input,{...G($c(e),s,r),...c,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":d||void 0})}),Fc=a.createContext(null);function Oc(t){let e=a.useRef({});return a.createElement(Fc.Provider,{value:e},t.children)}const Ac=a.createContext({isSelected:!1}),zc=a.createContext(null),en=a.createContext(null),Vc=a.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=xe(e,n,zc);let{dialogProps:i,titleProps:o}=hc({...e,"aria-labelledby":r},n),l=a.useContext(en);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=pe({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),d=ce(e,{global:!0});return a.createElement(ue.section,{...G(d,s,i),render:e.render,ref:n,slot:e.slot||void 0},a.createElement(mt,{values:[[cs,{slots:{[_n]:{},title:{...o,level:2}}}],[Go,{slots:{[_n]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},s.children))}),Bc=a.createContext(null),pr=a.createContext(null),Hc=a.forwardRef(function(e,n){if(a.useContext(pr)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),w=Object.keys(e).filter(x=>g.has(x));console.warn(`This modal is already wrapped in a ModalOverlay, props [${w.join(", ")}] should be placed on the ModalOverlay instead.`)}return a.createElement(tl,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,children:c,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v,...y}=e;return a.createElement(el,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v},a.createElement(tl,{...y,modalRef:n},c))});function Uc(t,e){[t,e]=xe(t,e,Bc);let n=a.useContext(en),r=Dc(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let o=$e(e),l=a.useRef(null),s=Dn(o,i.isOpen),d=Dn(l,i.isOpen),c=s||d||t.isExiting||!1,u=Be();return!i.isOpen&&!c||u?null:a.createElement(Wc,{...t,state:i,isExiting:c,overlayRef:o,modalRef:l})}const el=a.forwardRef(Uc);function Wc({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=gd(e,r,n),l=Tn(e.overlayRef)||e.isEntering||!1,s=pe({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:e.isExiting,state:r}}),d=Zs(),c;if(typeof document<"u"){let f=ft(document.body)?document.body:document.scrollingElement||document.documentElement,m=f.getBoundingClientRect().height%1;c=f.scrollHeight-m}let u={...s.style,"--visual-viewport-height":d.height+"px","--page-height":c!==void 0?c+"px":void 0};return a.createElement(vd,{isExiting:e.isExiting,portalContainer:t},a.createElement(ue.div,{...G(ce(e,{global:!0}),o),...s,style:u,ref:e.overlayRef,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},a.createElement(mt,{values:[[pr,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[en,r]]},s.children)))}function tl(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=a.useContext(pr),o=a.useContext(en),l=a.useMemo(()=>et(t.modalRef,n),[t.modalRef,n]),s=$e(l),d=Tn(s),c=pe({...t,defaultClassName:"react-aria-Modal",values:{isEntering:d,isExiting:r,state:o}});return a.createElement(ue.div,{...G(ce(t,{global:!0}),e),...c,ref:s,"data-entering":d||void 0,"data-exiting":r||void 0},i&&a.createElement(hd,{onDismiss:o.close}),c.children)}const jc=a.createContext(null),Gc=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,jc);let o=$e(et(r,e.inputRef!==void 0?e.inputRef:null)),l=fr(e),{labelProps:s,inputProps:d,isSelected:c,isDisabled:u,isReadOnly:f,isPressed:m}=pc({...Lt(e),children:typeof e.children=="function"?!0:e.children},l,o),{isFocused:v,isFocusVisible:y,focusProps:g}=Ye(),w=e.isDisabled||e.isReadOnly,{hoverProps:x,isHovered:E}=bt({...e,isDisabled:w}),C=pe({...e,defaultClassName:"react-aria-Switch",values:{isSelected:c,isPressed:m,isHovered:E,isFocused:v,isFocusVisible:y,isDisabled:u,isReadOnly:f,state:l}}),k=ce(e,{global:!0});return delete k.id,delete k.onClick,a.createElement(ue.label,{...G(k,s,x,C),ref:n,slot:e.slot||void 0,"data-selected":c||void 0,"data-pressed":m||void 0,"data-hovered":E||void 0,"data-focused":v||void 0,"data-focus-visible":y||void 0,"data-disabled":u||void 0,"data-readonly":f||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...G(d,g),ref:o})),C.children)}),tn=a.createContext(null),Xe=a.createContext(null),qc=a.forwardRef(function(e,n){[e,n]=xe(e,n,tn);let{children:r,orientation:i="horizontal"}=e;return r=a.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),a.createElement(Jd,{content:r},o=>a.createElement(Zc,{props:e,collection:o,tabsRef:n}))});function Zc({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Mc({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:s}=Ye({within:!0}),d=a.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:s}),[r,l,s]),c=pe({...t,defaultClassName:"react-aria-Tabs",values:d}),u=ce(t,{global:!0});return a.createElement(ue.div,{...G(u,c,o),ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},a.createElement(mt,{values:[[tn,t],[Xe,i]]},c.children))}const Yc=a.forwardRef(function(e,n){return a.useContext(Xe)?a.createElement(Xc,{props:e,forwardedRef:n}):a.createElement(lc,e)});function Xc({props:t,forwardedRef:e}){let n=a.useContext(Xe),{CollectionRoot:r}=a.useContext(Bo),{orientation:i="horizontal",keyboardActivation:o="automatic"}=$t(tn),l=$e(e),{tabListProps:s}=bc({...t,orientation:i,keyboardActivation:o},n,l),d=pe({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=ce(t,{global:!0});return delete c.id,a.createElement(ue.div,{...G(c,d,s),ref:l,"data-orientation":i||void 0},a.createElement(Oc,null,a.createElement(r,{collection:n.collection,persistedKeys:dc(n.selectionManager.focusedKey)})))}class nl extends Et{}nl.type="item";const Jc=ic(nl,(t,e,n)=>{let r=a.useContext(Xe),i=$e(e),{tabProps:o,isSelected:l,isDisabled:s,isPressed:d}=mc({key:n.key,...t},r,i),{focusProps:c,isFocused:u,isFocusVisible:f}=Ye(),{hoverProps:m,isHovered:v}=bt({isDisabled:s,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=pe({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:s,isFocused:u,isFocusVisible:f,isPressed:d,isHovered:v}}),g=n.props.href?ue.a:ue.div,w=ce(t,{global:!0});return delete w.id,delete w.onClick,a.createElement(g,{...G(w,y,o,c,m),ref:i,"data-selected":l||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-pressed":d||void 0,"data-hovered":v||void 0},a.createElement(Ac.Provider,{value:{isSelected:l}},y.children))}),Qc=Ct(function(e,n){const r=a.useContext(Xe);let i=$e(n),o=r.selectedKey===e.id,[l,s]=a.useState(r.selectedKey!=null?o:null);l==null&&r.selectedKey!=null?s(o):!o&&l&&s(!1);let d=Dn(i,o);return!o&&!e.shouldForceMount&&!d?null:a.createElement(Rc,{...e,tabPanelRef:i,isInitiallySelected:l||!1,isExiting:d})});function Rc(t){let e=a.useContext(Xe),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:o,...l}=t,{tabPanelProps:s}=vc(t,e,r),{focusProps:d,isFocused:c,isFocusVisible:u}=Ye(),f=e.selectedKey===t.id,m=Tn(r)&&!i,v=pe({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:u,isInert:qr(!f),isEntering:m,isExiting:o,state:e}}),y=ce(l,{global:!0});delete y.id;let g=f?G(y,s,d,v):G(y,v);return a.createElement(ue.div,{...g,ref:r,"data-focused":c||void 0,"data-focus-visible":u||void 0,inert:qr(!f||t.inert),"data-inert":f?void 0:"true","data-entering":m||void 0,"data-exiting":o||void 0},a.createElement(mt,{values:[[tn,null],[Xe,null]]},a.createElement(Bo.Provider,{value:zo},v.children)))}const eu=a.createContext({}),tu=a.createContext(null),nu=Ct(function(e,n){[e,n]=xe(e,n,tu);let{validationBehavior:r}=$t(Qo)||{};var i,o;let l=(o=(i=e.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",s=a.useRef(null);[e,s]=xe(e,s,us);let[d,c]=la(!e["aria-label"]&&!e["aria-labelledby"]),[u,f]=a.useState("input"),{labelProps:m,inputProps:v,descriptionProps:y,errorMessageProps:g,...w}=zd({...Lt(e),inputElementType:u,label:c,validationBehavior:l},s),x=a.useCallback(k=>{s.current=k,k&&f(k instanceof HTMLTextAreaElement?"textarea":"input")},[s]),E=pe({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:w.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),C=ce(e,{global:!0});return delete C.id,a.createElement(ue.div,{...C,...E,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(mt,{values:[[jo,{...m,ref:d}],[Ro,{...v,ref:x}],[eu,{...v,ref:x}],[Sc,{role:"presentation",isInvalid:w.isInvalid,isDisabled:e.isDisabled||!1}],[qo,{slots:{description:y,errorMessage:g}}],[Ic,w]]},E.children))}),ru=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},iu=(t,e)=>({classGroupId:t,validator:e}),rl=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),nn="-",il=[],ou="arbitrary..",lu=t=>{const e=au(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return su(l);const s=l.split(nn),d=s[0]===""&&s.length>1?1:0;return ol(s,d,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const d=r[l],c=n[l];return d?c?ru(c,d):d:c||il}return n[l]||il}}},ol=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const c=ol(t,e+1,o);if(c)return c}const l=n.validators;if(l===null)return;const s=e===0?t.join(nn):t.slice(e).join(nn),d=l.length;for(let c=0;c<d;c++){const u=l[c];if(u.validator(s))return u.classGroupId}},su=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?ou+r:void 0})(),au=t=>{const{theme:e,classGroups:n}=t;return du(n,e)},du=(t,e)=>{const n=rl();for(const r in t){const i=t[r];mr(i,n,r,e)}return n},mr=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];cu(l,e,n,r)}},cu=(t,e,n,r)=>{if(typeof t=="string"){uu(t,e,n);return}if(typeof t=="function"){fu(t,e,n,r);return}hu(t,e,n,r)},uu=(t,e,n)=>{const r=t===""?e:ll(e,t);r.classGroupId=n},fu=(t,e,n,r)=>{if(pu(t)){mr(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(iu(n,t))},hu=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[s,d]=i[l];mr(d,ll(e,s),n,r)}},ll=(t,e)=>{let n=t;const r=e.split(nn),i=r.length;for(let o=0;o<i;o++){const l=r[o];let s=n.nextPart.get(l);s||(s=rl(),n.nextPart.set(l,s)),n=s}return n},pu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,mu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},vr="!",sl=":",vu=[],al=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gu=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const o=[];let l=0,s=0,d=0,c;const u=i.length;for(let g=0;g<u;g++){const w=i[g];if(l===0&&s===0){if(w===sl){o.push(i.slice(d,g)),d=g+1;continue}if(w==="/"){c=g;continue}}w==="["?l++:w==="]"?l--:w==="("?s++:w===")"&&s--}const f=o.length===0?i:i.slice(d);let m=f,v=!1;f.endsWith(vr)?(m=f.slice(0,-1),v=!0):f.startsWith(vr)&&(m=f.slice(1),v=!0);const y=c&&c>d?c-d:void 0;return al(o,v,m,y)};if(e){const i=e+sl,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):al(vu,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},bu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],s=l[0]==="[",d=e.has(l);s||d?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},yu=t=>({cache:mu(t.cacheSize),parseClassName:gu(t),sortModifiers:bu(t),...lu(t)}),xu=/\s+/,wu=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=e,l=[],s=t.trim().split(xu);let d="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:f,modifiers:m,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:g}=n(u);if(f){d=u+(d.length>0?" "+d:d);continue}let w=!!g,x=r(w?y.substring(0,g):y);if(!x){if(!w){d=u+(d.length>0?" "+d:d);continue}if(x=r(y),!x){d=u+(d.length>0?" "+d:d);continue}w=!1}const E=m.length===0?"":m.length===1?m[0]:o(m).join(":"),C=v?E+vr:E,k=C+x;if(l.indexOf(k)>-1)continue;l.push(k);const N=i(x,w);for(let H=0;H<N.length;++H){const F=N[H];l.push(C+F)}d=u+(d.length>0?" "+d:d)}return d},Eu=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=dl(n))&&(i&&(i+=" "),i+=r);return i},dl=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=dl(t[r]))&&(n&&(n+=" "),n+=e);return n},Cu=(t,...e)=>{let n,r,i,o;const l=d=>{const c=e.reduce((u,f)=>f(u),t());return n=yu(c),r=n.cache.get,i=n.cache.set,o=s,s(d)},s=d=>{const c=r(d);if(c)return c;const u=wu(d,n);return i(d,u),u};return o=l,(...d)=>o(Eu(...d))},Pu=[],se=t=>{const e=n=>n[t]||Pu;return e.isThemeGetter=!0,e},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ku=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Du=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oe=t=>ku.test(t),W=t=>!!t&&!Number.isNaN(Number(t)),Ae=t=>!!t&&Number.isInteger(Number(t)),gr=t=>t.endsWith("%")&&W(t.slice(0,-1)),_e=t=>Nu.test(t),fl=()=>!0,Ku=t=>Tu.test(t)&&!Du.test(t),br=()=>!1,_u=t=>Mu.test(t),Su=t=>Iu.test(t),$u=t=>!_(t)&&!$(t),Lu=t=>ze(t,bl,br),_=t=>cl.test(t),Je=t=>ze(t,yl,Ku),hl=t=>ze(t,Uu,W),Fu=t=>ze(t,wl,fl),Ou=t=>ze(t,xl,br),pl=t=>ze(t,vl,br),Au=t=>ze(t,gl,Su),rn=t=>ze(t,El,_u),$=t=>ul.test(t),kt=t=>Qe(t,yl),zu=t=>Qe(t,xl),ml=t=>Qe(t,vl),Vu=t=>Qe(t,bl),Bu=t=>Qe(t,gl),on=t=>Qe(t,El,!0),Hu=t=>Qe(t,wl,!0),ze=(t,e,n)=>{const r=cl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Qe=(t,e,n=!1)=>{const r=ul.exec(t);return r?r[1]?e(r[1]):n:!1},vl=t=>t==="position"||t==="percentage",gl=t=>t==="image"||t==="url",bl=t=>t==="length"||t==="size"||t==="bg-size",yl=t=>t==="length",Uu=t=>t==="number",xl=t=>t==="family-name",wl=t=>t==="number"||t==="weight",El=t=>t==="shadow",Wu=Cu(()=>{const t=se("color"),e=se("font"),n=se("text"),r=se("font-weight"),i=se("tracking"),o=se("leading"),l=se("breakpoint"),s=se("container"),d=se("spacing"),c=se("radius"),u=se("shadow"),f=se("inset-shadow"),m=se("text-shadow"),v=se("drop-shadow"),y=se("blur"),g=se("perspective"),w=se("aspect"),x=se("ease"),E=se("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...k(),$,_],H=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[$,_,d],I=()=>[Oe,"full","auto",...P()],z=()=>[Ae,"none","subgrid",$,_],ee=()=>["auto",{span:["full",Ae,$,_]},Ae,$,_],ne=()=>[Ae,"auto",$,_],q=()=>["auto","min","max","fr",$,_],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],Z=()=>[Oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[Oe,"screen","full","dvw","lvw","svw","min","max","fit",...P()],re=()=>[Oe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],h=()=>[t,$,_],M=()=>[...k(),ml,pl,{position:[$,_]}],b=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",Vu,Lu,{size:[$,_]}],S=()=>[gr,kt,Je],L=()=>["","none","full",c,$,_],X=()=>["",W,kt,Je],ae=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[W,gr,ml,pl],fe=()=>["","none",y,$,_],ke=()=>["none",W,$,_],fn=()=>["none",W,$,_],_r=()=>[W,$,_],hn=()=>[Oe,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[fl],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[$u],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",W],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Oe,_,$,w]}],container:["container"],columns:[{columns:[W,_,$,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",$,_]}],basis:[{basis:[Oe,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,Oe,"auto","initial","none",_]}],grow:[{grow:["",W,$,_]}],shrink:[{shrink:["",W,$,_]}],order:[{order:[Ae,"first","last","none",$,_]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[s,"screen",...Z()]}],"min-w":[{"min-w":[s,"screen","none",...Z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,kt,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Hu,Fu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gr,_]}],"font-family":[{font:[zu,Ou,e]}],"font-features":[{"font-features":[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,$,_]}],"line-clamp":[{"line-clamp":[W,"none",$,hl]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",$,_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",$,Je]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[W,"auto",$,_]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:b()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,$,_],radial:["",$,_],conic:[Ae,$,_]},Bu,Au]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,$,_]}],"outline-w":[{outline:["",W,kt,Je]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",u,on,rn]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",f,on,rn]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[W,Je]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",m,on,rn]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[W,$,_]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[$,_]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:b()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,_]}],filter:[{filter:["","none",$,_]}],blur:[{blur:fe()}],brightness:[{brightness:[W,$,_]}],contrast:[{contrast:[W,$,_]}],"drop-shadow":[{"drop-shadow":["","none",v,on,rn]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",W,$,_]}],"hue-rotate":[{"hue-rotate":[W,$,_]}],invert:[{invert:["",W,$,_]}],saturate:[{saturate:[W,$,_]}],sepia:[{sepia:["",W,$,_]}],"backdrop-filter":[{"backdrop-filter":["","none",$,_]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[W,$,_]}],"backdrop-contrast":[{"backdrop-contrast":[W,$,_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,$,_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,$,_]}],"backdrop-invert":[{"backdrop-invert":["",W,$,_]}],"backdrop-opacity":[{"backdrop-opacity":[W,$,_]}],"backdrop-saturate":[{"backdrop-saturate":[W,$,_]}],"backdrop-sepia":[{"backdrop-sepia":["",W,$,_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",$,_]}],ease:[{ease:["linear","initial",x,$,_]}],delay:[{delay:[W,$,_]}],animate:[{animate:["none",E,$,_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,$,_]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:fn()}],"scale-x":[{"scale-x":fn()}],"scale-y":[{"scale-y":fn()}],"scale-z":[{"scale-z":fn()}],"scale-3d":["scale-3d"],skew:[{skew:_r()}],"skew-x":[{"skew-x":_r()}],"skew-y":[{"skew-y":_r()}],transform:[{transform:[$,_,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:hn()}],"translate-x":[{"translate-x":hn()}],"translate-y":[{"translate-y":hn()}],"translate-z":[{"translate-z":hn()}],"translate-none":["translate-none"],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,_]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,_]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[W,kt,Je,hl]}],stroke:[{stroke:["none",...h()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function A(...t){return Wu(t.filter(Boolean))}const ju=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-9 5h2V7h-2zm0 8h2v-6h-2z"})),Gu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M2 10h2v2H2zm0 4h2v-2H2zm20-4h-2v2h2zm0 4h-2v-2h2zM4 8h2v2H4zm0 8h2v-2H4zm16-8h-2v2h2zm0 8h-2v-2h2zM6 6h2v2H6zm0 12h2v-2H6zM18 6h-2v2h2zm0 12h-2v-2h2zM8 4h2v2H8zm0 16h2v-2H8zm8-16h-2v2h2zm0 16h-2v-2h2zM10 2h2v2h-2zm0 20h2v-2h-2zm4-20h-2v2h2zm0 20h-2v-2h2zm-3-5h2v-2h-2zm0-4h2V7h-2z"})),qu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM20 4h2v16h-2zM2 4h2v16H2zm9 2h2v8h-2zm0 10h2v2h-2z"})),Cl=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z"})),Zu={Info:ju,Warning:Gu,Error:qu,Done:Cl,Check:Cl,Close:t=>p.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:p.jsx("path",{d:"M5 5h2v2H5zM7 7h2v2H7zM9 9h2v2H9zM11 11h2v2h-2zM13 13h2v2h-2zM15 15h2v2h-2zM17 17h2v2h-2zM17 5h2v2h-2zM15 7h2v2h-2zM13 9h2v2h-2zM9 13h2v2H9zM7 15h2v2H7zM5 17h2v2H5z"})}),"Chevron Up":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 8h-2v2h2V8Zm-2 2H9v2h2v-2Zm4 0h-2v2h2v-2Zm-6 2H7v2h2v-2Zm8 0h-2v2h2v-2ZM7 14H5v2h2v-2Zm12 0h-2v2h2v-2Z"})),"Chevron Down":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 16h-2v-2h2v2Zm-2-2H9v-2h2v2Zm4 0h-2v-2h2v2Zm-6-2H7v-2h2v2Zm8 0h-2v-2h2v2ZM7 10H5V8h2v2Zm12 0h-2V8h2v2Z"})),App:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 6h16v2H4zm0 12h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM5 5h2v2H5zm3 0h2v2H8z"})),Cancel:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 11h16v2H4z"})),Fullscreen:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 13h16v-2H4zm7-8h2V3h-2zM9 7h4V5H9zm4 0h2V5h-2zm2 2h2V7h-2zM7 9h8V7H7zm4 10h2v2h-2zm-2-2h4v2H9zm4 0h2v2h-2zm2-2h2v2h-2zm-8 0h8v2H7z"})),Add:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 11h7v2h-7v7h-2v-7H4v-2h7V4h2v7Z"}))},Yu={L:56,S:24},be=({name:t,size:e="L",className:n="",onClick:r,color:i,role:o,"aria-label":l})=>{const s=Zu[t];if(!s)return null;const d=Yu[e];return p.jsx("span",{className:A("icon",o&&"icon--button",n),onClick:r,role:o,"aria-label":l||`${t} icon`,style:i?{color:i}:void 0,children:p.jsx(s,{width:d,height:d,className:"icon__svg"})})};function yr(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function xr(t,e){const[n,r]=a.useState(!1),i=a.useRef(!1),o=a.useCallback(()=>{if(!(i.current||!e)){if(yr()){e();return}i.current=!0,r(!0)}},[e]),l=a.useCallback(s=>{s.animationName===t&&i.current&&(i.current=!1,r(!1),e==null||e())},[t,e]);return{isClosing:n,triggerClose:o,handleAnimationEnd:l}}const Xu={info:"default",success:"success",warning:"warning",error:"error",default:"default",brand:"brand"},Ju={brand:"Info",gray:"Info",default:"Info",error:"Error",warning:"Warning",success:"Done"};function Qu(t,e){return t||Xu[e||"info"]||"default"}function Ru(t){return t==="full-width"?"full-width":"floating"}const Pl=a.forwardRef(({color:t,size:e="floating",type:n,title:r,children:i,actions:o,onClose:l,onClickHere:s,className:d},c)=>{const u=Qu(t,n),f=Ru(e),{isClosing:m,triggerClose:v,handleAnimationEnd:y}=xr("alert-exit",l),g=[...o||[],...s?[{label:"Click here",onClick:s}]:[]];return p.jsxs("div",{ref:c,className:A("relative w-full flex flex-col gap-4 p-4","font-dos text-dos-text-sm","bg-dos-bg-primary border border-dos-border-default rounded-dos-base","eidotter-alert",`eidotter-alert--${u}`,f==="floating"&&"max-w-[1216px]",f==="full-width"&&"eidotter-alert--full-width max-w-none",m&&"eidotter-alert--closing",d),onAnimationEnd:y,role:"alert","data-color":u,"data-size":f,children:[p.jsx("div",{className:"eidotter-alert__icon",children:p.jsx(be,{name:Ju[u]||"Info",size:"S","aria-label":`${u} alert`})}),p.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",l&&"pr-6"),children:[(r||i)&&p.jsxs("div",{className:"flex flex-col gap-1",children:[r&&p.jsx("div",{className:"eidotter-alert__title font-dos leading-[140%]",children:r}),i&&p.jsx("div",{className:"eidotter-alert__text font-dos leading-[140%]",children:i})]}),g.length>0&&p.jsx("div",{className:"flex flex-row gap-3",children:g.map((w,x)=>p.jsxs(le,{className:"eidotter-alert__action",onPress:w.onClick,children:[w.label,w.icon]},x))})]}),l&&p.jsx(le,{className:"eidotter-alert__close",onPress:v,"aria-label":"Close alert",children:p.jsx(be,{name:"Close",size:"S"})})]})});Pl.displayName="Alert";const kl=({title:t,children:e,defaultExpanded:n=!1,isHovered:r=!1,isActive:i=!1,onToggle:o})=>{const[l,s]=a.useState(n);a.useEffect(()=>{s(n)},[n]);const d=()=>{const c=!l;s(c),o==null||o(c)};return p.jsxs("div",{className:A("w-full border border-dos-border-default bg-dos-bg-primary text-cga-amber font-dos","eidotter-section",l&&"eidotter-section--expanded",r&&"eidotter-section--hover",i&&"eidotter-section--active"),children:[p.jsxs(le,{className:"eidotter-section__header w-full flex justify-between items-center px-4 py-2 bg-transparent border-0 text-inherit font-[inherit] cursor-pointer text-left",onPress:d,"aria-expanded":l,children:[p.jsx("div",{className:"flex-1 text-base leading-6",children:t}),p.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:p.jsx(be,{name:l?"Chevron Up":"Chevron Down",size:"S"})})]}),p.jsx("div",{className:"eidotter-section__content",inert:l?void 0:!0,children:e})]})},ef=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=a.useState(e),i=(o,l)=>{r(l?o:-1)};return p.jsx("div",{className:A("w-full flex flex-col items-stretch gap-2 text-left text-base font-dos text-cga-amber","eidotter-accordion-fill",n),children:t.map((o,l)=>p.jsx(kl,{title:o.title,defaultExpanded:l===e,onToggle:s=>i(l,s),children:o.content},l))})},Nl={xs:"text-dos-text-xs px-2 py-1 min-h-6 gap-1",sm:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",md:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",lg:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2",xl:"text-dos-text-xl px-5 py-3 min-h-11 gap-2",small:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",medium:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",large:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2"},Tl={primary:"eidotter-btn--primary",secondary:"eidotter-btn--secondary",tertiary:"eidotter-btn--tertiary",destructive:"eidotter-btn--destructive",ghost:"eidotter-btn--ghost",link:"eidotter-btn--link"},ln=a.forwardRef(({variant:t="primary",size:e="md",type:n="button",disabled:r=!1,loading:i=!1,children:o,onPress:l,onClick:s,className:d,fullWidth:c=!1,iconOnly:u=!1,...f},m)=>{const v=r||i;return p.jsxs(le,{ref:m,type:n,isDisabled:v,isPending:i||void 0,onPress:y=>{if(l)l(y);else if(s){const g={type:"press",target:y.target,currentTarget:y.target,preventDefault:()=>{},stopPropagation:()=>{}};s(g)}},className:A("inline-flex items-center justify-center relative","border-2 border-solid","font-dos leading-none whitespace-nowrap select-none","outline-none cursor-pointer","transition-all duration-100 ease-linear",Nl[e]||Nl.md,Tl[t]||Tl.primary,v&&"opacity-50 cursor-not-allowed",i&&"cursor-wait",c&&"w-full",u&&"aspect-square !px-0","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus",d),"data-loading":i||void 0,"data-variant":t,...f,children:[i&&p.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),p.jsx("span",{className:A("inline-flex items-center justify-center",i&&"opacity-70"),children:o})]})});ln.displayName="Button";const Dl={default:"eidotter-card--default",elevated:"eidotter-card--elevated",bordered:"eidotter-card--bordered",glow:"eidotter-card--glow",interactive:"eidotter-card--interactive",minimal:"eidotter-card--minimal",callout:"eidotter-card--callout"},Ml=a.forwardRef(({title:t,children:e,footer:n,variant:r="default",className:i,...o},l)=>p.jsxs("div",{ref:l,className:A("border-2 border-solid border-dos-border-default","bg-dos-bg-primary font-dos text-cga-amber","eidotter-card",Dl[r]||Dl.default,i),...o,children:[t&&p.jsx("div",{className:"eidotter-card__header px-3 py-2 border-b border-dos-text-disabled bg-cga-amber-dim",children:p.jsx("span",{className:"text-dos-text-secondary text-dos-text-md uppercase",children:t})}),p.jsx("div",{className:"p-3",children:e}),n&&p.jsx("div",{className:"eidotter-card__footer px-3 py-2 border-t border-dos-text-disabled bg-dos-bg-secondary",children:n})]}));Ml.displayName="Card";const Il=a.forwardRef(({checked:t,defaultChecked:e,onChange:n,indeterminate:r=!1,label:i,disabled:o=!1,size:l="md",name:s,value:d,className:c,"aria-label":u,...f},m)=>p.jsx(_c,{ref:m,isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:o,name:s,value:d,"aria-label":u||i,className:A("inline-flex items-center gap-2 cursor-pointer select-none group","font-dos",l==="sm"?"text-dos-text-xs":"text-dos-text-sm","eidotter-checkbox",o&&"opacity-60 cursor-not-allowed",c),"data-size":l,...f,children:({isSelected:v,isIndeterminate:y})=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:A("eidotter-checkbox__box",v&&"eidotter-checkbox__box--checked",y&&"eidotter-checkbox__box--indeterminate"),children:y?"[-]":v?"[X]":"[ ]"}),i&&p.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}));Il.displayName="Checkbox";const tf=({prompt:t="C:\\>",onCommand:e,autoFocus:n=!1,className:r="",placeholder:i,disabled:o=!1})=>{const[l,s]=a.useState(""),d=a.useRef(null);a.useEffect(()=>{n&&d.current&&d.current.focus()},[n]);const c=f=>{f.key==="Enter"&&l.trim()&&!o&&(e(l.trim()),s(""))},u=()=>{!o&&d.current&&d.current.focus()};return p.jsxs("div",{className:`command-prompt ${o?"command-prompt--disabled":""} ${r}`.trim(),onClick:u,role:"textbox","aria-label":"Command prompt",children:[p.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),p.jsxs("div",{className:"command-prompt__input-wrapper",children:[p.jsx("input",{ref:d,className:"command-prompt__input",value:l,onChange:f=>s(f.target.value),onKeyDown:c,autoFocus:n,spellCheck:!1,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",placeholder:i,disabled:o,"aria-label":"Command input",size:l.length||1}),p.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},sn="█",an="░",wr="▓",nf="▒",Kl={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},_l={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function rf(t,e,n){const r=e-t;if(n==="gradient"&&t>0&&t<e){const i=Math.min(2,r),o=r-i,l=(i>=1?wr:"")+(i>=2?nf:"");return{filled:sn.repeat(t),transition:l,empty:an.repeat(o)}}return{filled:sn.repeat(t),transition:"",empty:an.repeat(r)}}const Er=a.forwardRef(({value:t=0,max:e=100,indeterminate:n=!1,variant:r="default",size:i="md",trackStyle:o="block",blocks:l=20,showLabel:s=!1,fullWidth:d=!1,glow:c=!1,valueText:u,className:f,"aria-label":m,...v},y)=>{const g=Math.min(80,Math.max(3,Math.floor(l))),w=Math.min(100,Math.max(0,t/e*100)),x=Math.round(w/100*g),E=A("inline-flex items-center gap-2 font-dos","eidotter-progress",Kl[i]||Kl.md,_l[r]||_l.default,c&&"eidotter-progress--glow",d&&"eidotter-progress--full-width",n&&"eidotter-progress--indeterminate",o==="bordered"&&"eidotter-progress--bordered",f),C={"aria-label":m||`Progress: ${n?"loading":`${Math.round(w)}%`}`};n||(C["aria-valuenow"]=t,C["aria-valuemin"]=0,C["aria-valuemax"]=e),u&&(C["aria-valuetext"]=u);const k=o==="bordered",N=A("eidotter-progress__track",k&&"eidotter-progress__track--borderless");if(n){const I=an.repeat(g);return p.jsxs("div",{ref:y,className:E,role:"progressbar",...C,...v,children:[p.jsxs("span",{className:N,children:[k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"["}),p.jsxs("span",{className:"eidotter-progress__bar",children:[p.jsx("span",{className:"eidotter-progress__empty",children:I}),p.jsxs("span",{className:"eidotter-progress__scanner",children:[wr,sn,wr]})]}),k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&p.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const H=sn.repeat(g),F=an.repeat(g),{transition:P}=rf(x,g,o);return p.jsxs("div",{ref:y,className:E,role:"progressbar",...C,...v,children:[p.jsxs("span",{className:N,children:[k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"["}),p.jsxs("span",{className:"eidotter-progress__bar",children:[p.jsx("span",{className:"eidotter-progress__empty",children:F}),p.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(w)},children:H}),P&&p.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(w)},children:P})]}),k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&p.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(w),"%"]})]})});Er.displayName="Progress";const Sl={default:"eidotter-input--default",error:"eidotter-input--error"},$l=a.forwardRef(({variant:t="default",label:e,description:n,errorMessage:r,disabled:i,className:o,onChange:l,isRequired:s,...d},c)=>{const u=t==="error";return p.jsxs(nu,{isDisabled:i,isInvalid:u,isRequired:s,className:A("eidotter-text-field","flex flex-col gap-1",o),children:[e&&p.jsx(yc,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),p.jsx(Lc,{ref:c,className:A("w-full bg-dos-bg-primary text-cga-amber font-dos text-base p-2","border-2 border-dos-border-default outline-none box-border","eidotter-input",Sl[t]||Sl.default,i&&"eidotter-input--disabled"),onChange:l,...d}),n&&!u&&p.jsx(Zo,{slot:"description",className:"text-cga-brown font-dos text-xs",children:n}),r&&u&&p.jsx(Zo,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});$l.displayName="Input";const of=({size:t="md",title:e="MS-DOS Terminal",state:n="active",resizable:r=!0,minimizable:i=!1,maximizable:o=!1,closeable:l=!1,children:s,onMinimize:d,onMaximize:c,onClose:u,onFocus:f,className:m="",autoFocus:v=!1})=>{const g={sm:"small",md:"medium",lg:"large"}[t]??t,[w,x]=a.useState(n),[E,C]=a.useState(!1),k=a.useRef(null);a.useEffect(()=>{v&&k.current&&k.current.focus()},[v]);const N=()=>{x("minimized"),d==null||d()},H=()=>{C(!E),c==null||c()},F=()=>{u==null||u()},P=()=>{x("active"),f==null||f()},I=z=>{z.altKey&&z.key==="F4"&&l&&(z.preventDefault(),F())};return w==="minimized"?p.jsx(le,{className:`terminal terminal--minimized ${m}`.trim(),onPress:P,"aria-label":`Restore ${e} window`,children:p.jsxs("div",{className:"terminal__taskbar-item",children:[p.jsx(be,{name:"App",size:"S"}),p.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):p.jsxs("div",{ref:k,className:`terminal terminal--${g} terminal--${w} ${E?"terminal--maximized":""} ${m}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:P,onKeyDown:I,children:[p.jsxs("div",{className:"terminal__title-bar",children:[p.jsxs("div",{className:"terminal__title",children:[p.jsx(be,{name:"App",size:"S","aria-hidden":"true"}),p.jsx("span",{className:"terminal__title-text",children:e})]}),(i||o||l)&&p.jsxs("div",{className:"terminal__controls",children:[i&&p.jsx(le,{className:"terminal__control terminal__control--minimize",onPress:N,"aria-label":"Minimize window",children:p.jsx(be,{name:"Cancel",size:"S"})}),o&&p.jsx(le,{className:"terminal__control terminal__control--maximize",onPress:H,"aria-label":E?"Restore window":"Maximize window",children:p.jsx(be,{name:E?"Fullscreen":"Add",size:"S"})}),l&&p.jsx(le,{className:"terminal__control terminal__control--close",onPress:F,"aria-label":"Close window",children:p.jsx(be,{name:"Close",size:"S"})})]})]}),p.jsx("div",{className:"terminal__content",role:"main",children:s||p.jsx("div",{className:"terminal__default-content",children:p.jsxs("div",{className:"terminal__prompt",children:[p.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),p.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&p.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},Ll={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},lf={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},Fl=a.forwardRef(({tabs:t,variant:e="underline",size:n="md",activeTab:r,defaultActiveTab:i,onSelectionChange:o,onTabChange:l,className:s,...d},c)=>{var w,x,E;const u=a.useRef(null),f=a.useRef(r??i??((w=t[0])==null?void 0:w.id)??""),[m,v]=a.useState(r??i??((x=t[0])==null?void 0:x.id)??""),y=o??l,g=a.useCallback(C=>{const k=String(C),N=r??f.current;f.current=k,v(k),y==null||y(k,N)},[r,y]);return a.useLayoutEffect(()=>{const C=u.current;if(!C||e!=="underline")return;const k=()=>{const H=C.querySelector('[aria-selected="true"]');H&&(C.style.setProperty("--indicator-left",`${H.offsetLeft}px`),C.style.setProperty("--indicator-width",`${H.offsetWidth}px`))};k();const N=new ResizeObserver(k);return N.observe(C),()=>N.disconnect()},[r,m,e]),p.jsxs(qc,{ref:c,selectedKey:r,defaultSelectedKey:i??((E=t[0])==null?void 0:E.id),onSelectionChange:g,className:A("eidotter-tabs",lf[e],Ll[n]||Ll.md,s),children:[p.jsxs("div",{ref:u,className:"relative",children:[p.jsx(Yc,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":d["aria-label"],children:t.map(C=>p.jsx(Jc,{id:C.id,isDisabled:C.disabled,className:({isSelected:k,isDisabled:N})=>A("eidotter-tabs__tab",k&&"eidotter-tabs__tab--active",N&&"eidotter-tabs__tab--disabled"),children:C.label},C.id))}),e==="underline"&&p.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(C=>p.jsx(Qc,{id:C.id,className:"hidden"},C.id))]})});Fl.displayName="Tabs";const Ol={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Al={default:"eidotter-badge--default",success:"eidotter-badge--success",warning:"eidotter-badge--warning",error:"eidotter-badge--error",info:"eidotter-badge--info",accent:"eidotter-badge--accent",brand:"eidotter-badge--accent",gray:"eidotter-badge--default",blue:"eidotter-badge--info",indigo:"eidotter-badge--info",purple:"eidotter-badge--info",pink:"eidotter-badge--error",orange:"eidotter-badge--warning"},st=a.forwardRef(({variant:t="default",size:e="md",dot:n=!1,children:r,className:i,...o},l)=>p.jsxs("span",{ref:l,className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",Ol[e]||Ol.md,Al[t]||Al.default,i),"data-variant":t,...o,children:[n&&p.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),p.jsx("span",{className:"eidotter-badge__content",children:r})]}));st.displayName="Badge";const zl=a.forwardRef(({checked:t,defaultChecked:e=!1,onChange:n,onCheckedChange:r,disabled:i=!1,size:o="md",type:l="default",label:s,name:d,value:c,className:u,...f},m)=>p.jsx(Gc,{ref:m,isSelected:t,defaultSelected:e,onChange:n??r,isDisabled:i,name:d,value:c,className:A("inline-flex items-center gap-2 cursor-pointer outline-none font-dos group","eidotter-switch",i&&"opacity-50 cursor-not-allowed",u),"data-size":o,"data-type":l,...f,children:({isSelected:v})=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:A("eidotter-switch__track",v&&"eidotter-switch__track--checked",l==="slim"&&"eidotter-switch__track--slim",o==="sm"&&"eidotter-switch__track--sm"),children:p.jsx("span",{className:"eidotter-switch__thumb"})}),s&&p.jsx("span",{className:"text-[var(--color-cga-amber)]",children:s})]})}));zl.displayName="Switch";const dn="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",Vl=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:o})=>{const l=(s,d)=>{const c=p.jsxs(p.Fragment,{children:[n&&d&&p.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),p.jsx("span",{children:s.label})]});return s.onClick?p.jsx(le,{className:A(dn,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onPress:s.onClick,children:c}):s.href?i?p.jsx(i,{href:s.href,className:dn,children:c}):p.jsx("a",{href:s.href,className:dn,children:c}):p.jsx("span",{className:dn,children:c})};return p.jsx("nav",{"aria-label":"Breadcrumb",className:A("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",o),children:p.jsxs("ol",{className:"flex flex-wrap items-center gap-2 list-none m-0 p-0",children:[t.map((s,d)=>{const c=d===t.length-1,u=d<t.length-1;return p.jsxs("li",{className:"flex items-center gap-2",children:[l(s,c),u&&p.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${s.href??s.label}-${d}`)}),t.length>0&&p.jsx("li",{className:"flex items-center gap-2",children:p.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),p.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:p.jsx("span",{className:"text-cga-amber",children:e})})]})})},sf=({scanlines:t=!0,glow:e=!0,flicker:n=!0,bloom:r=!1,powered:i=!0,intensity:o=1,className:l,onPowerStateChange:s,onPowerOn:d,onPowerOff:c})=>{const u=a.useRef(i),[f,m]=a.useState(i?"on":"off");a.useEffect(()=>{const E=u.current;if(u.current=i,E!==i){const C=i?"powering-on":"powering-off";m(C),s==null||s(C)}},[i,s]);const v=()=>{f==="powering-on"?(m("on"),s==null||s("on"),d==null||d()):f==="powering-off"&&(m("off"),s==null||s("off"),c==null||c())},y=E=>{E.animationName!=="retro-power-on"&&E.animationName!=="retro-power-off"||v()},g=E=>{E.propertyName==="opacity"&&(f!=="powering-on"&&f!=="powering-off"||v())},w={"--retro-intensity":o},x=f!=="off";return p.jsx("div",{className:A("fixed inset-0 pointer-events-none z-[9999]","eidotter-retro-effects",f==="powering-off"&&"eidotter-retro-effects--powering-off",f==="powering-on"&&"eidotter-retro-effects--powering-on",f==="off"&&"eidotter-retro-effects--off",l),style:w,"aria-hidden":"true",onAnimationEnd:y,onTransitionEnd:g,children:x&&p.jsxs(p.Fragment,{children:[t&&p.jsx("div",{className:"eidotter-retro-effects__scanlines"}),e&&p.jsx("div",{className:"eidotter-retro-effects__glow"}),n&&p.jsx("div",{className:"eidotter-retro-effects__flicker"}),r&&p.jsx("div",{className:"eidotter-retro-effects__bloom"})]})})},af={sm:"small",md:"medium",lg:"large",small:"small",medium:"medium",large:"large"},df={circle:"eidotter-timeline-node--circle",square:"eidotter-timeline-node--square",diamond:"eidotter-timeline-node--diamond"},cf={default:"eidotter-timeline-node--default",primary:"eidotter-timeline-node--primary",secondary:"eidotter-timeline-node--secondary",accent:"eidotter-timeline-node--accent"},uf={left:"eidotter-timeline-node--label-left",right:"eidotter-timeline-node--label-right",top:"eidotter-timeline-node--label-top",bottom:"eidotter-timeline-node--label-bottom"},Ve=a.forwardRef(({shape:t="circle",variant:e="default",isActive:n=!1,label:r,labelPosition:i="right",size:o="md",className:l,onClick:s,...d},c)=>{const u=af[o]??"medium",f=()=>{s&&s()},m=v=>{s&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())};return p.jsxs("div",{ref:c,className:A("inline-flex items-center gap-2 font-dos","eidotter-timeline-node",df[t],cf[e],`eidotter-timeline-node--${u}`,uf[i],n&&"eidotter-timeline-node--active",s&&"eidotter-timeline-node--interactive",l),onClick:f,onKeyDown:m,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-pressed":s?n:void 0,...d,children:[r&&i==="left"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--left",children:r}),r&&i==="top"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--top",children:r}),p.jsx("span",{className:"eidotter-timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--right",children:r}),r&&i==="bottom"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--bottom",children:r})]})});Ve.displayName="TimelineNode";const Nt=["year","month","day","hour"];function ff({zoomLevel:t,defaultZoomLevel:e="month",onZoomChange:n}={}){const r=t===void 0,[i,o]=a.useState(e),[l,s]=a.useState([]),d=a.useRef(r);a.useEffect(()=>{d.current&&!r&&s([]),d.current=r},[r]);const c=t??i,u=Nt.indexOf(c),f=u<Nt.length-1,m=u>0,v=l.length>0?l[l.length-1].periodStart:null,y=a.useRef(r),g=a.useRef(f),w=a.useRef(u),x=a.useRef(l),E=a.useRef(n);a.useEffect(()=>{y.current=r,g.current=f,w.current=u,x.current=l,E.current=n});const C=a.useCallback(F=>{var P;y.current&&o(F),(P=E.current)==null||P.call(E,F)},[]),k=a.useCallback((F,P)=>{if(!y.current||!g.current)return;const I=Nt[w.current+1];I!==void 0&&(s(z=>[...z,{periodStart:F,label:P}]),C(I))},[C]),N=a.useCallback(()=>{if(!y.current||x.current.length===0)return;const F=Nt[w.current-1];F!==void 0&&(s(P=>P.slice(0,-1)),C(F))},[C]),H=a.useCallback(()=>{y.current&&(s([]),C("year"))},[C]);return{zoomLevel:c,canZoomIn:f,canZoomOut:m,breadcrumbs:l,currentPeriod:v,isDrillDownEnabled:r,drillDown:k,drillUp:N,reset:H}}function hf({selectedEntryId:t,defaultSelectedEntryId:e=null,onSelectEntry:n}={}){const[r,i]=a.useState(e),o=t!==void 0,l=t!==void 0?t:r,s=a.useRef(l),d=a.useRef(o),c=a.useRef(n);a.useEffect(()=>{s.current=l,d.current=o,c.current=n});const u=a.useCallback(y=>{var g;d.current||i(y),(g=c.current)==null||g.call(c,y)},[]),f=a.useCallback(y=>{u(y)},[u]),m=a.useCallback(()=>{u(null)},[u]),v=a.useCallback(y=>{var g;d.current?(g=c.current)==null||g.call(c,s.current===y?null:y):i(w=>{var E;const x=w===y?null:y;return(E=c.current)==null||E.call(c,x),x})},[]);return{selectedEntryId:l,select:f,deselect:m,toggle:v}}const pf=["January","February","March","April","May","June","July","August","September","October","November","December"],Cr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function cn(t){return new Date(t).getUTCFullYear()}function Pr(t){return new Date(t).getUTCMonth()}function Bl(t){return new Date(t).getUTCDate()}function mf(t){return new Date(t).getUTCHours()}function vf(t){return String(t)}function gf(t,e){return`${pf[e]} ${t}`}function bf(t,e,n){return`${Cr[e]} ${n}`}function yf(t,e,n,r){const i=r>=12?"pm":"am",o=r===0?12:r>12?r-12:r;return`${Cr[e]} ${n}, ${o}${i}`}function xf(t){const e=new Date(t),n=Cr[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCFullYear(),o=e.getUTCHours(),l=e.getUTCMinutes(),s=o>=12?"pm":"am",d=o===0?12:o>12?o-12:o,c=l>0?`:${String(l).padStart(2,"0")}`:"";return`${n} ${r}, ${i} at ${d}${c}${s}`}function wf(t){return new Date(Date.UTC(t,0,1)).toISOString()}function Ef(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function Cf(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function Pf(t,e,n,r){return new Date(Date.UTC(t,e,n,r)).toISOString()}function un(t,e,n,r,i){const o=new Map,l=[];for(const s of t){const d=e(s),c=o.get(d);c?c.push(s):(o.set(d,[s]),l.push(d))}l.sort((s,d)=>i==="asc"?s.localeCompare(d):d.localeCompare(s));for(const[,s]of o)s.sort((d,c)=>{const u=d.date.localeCompare(c.date);return i==="asc"?u:-u});return l.map(s=>({label:n(s),periodStart:r(s),entries:o.get(s)??[]}))}function kf(t){return String(cn(t.date))}function Nf(t){const e=cn(t.date),n=Pr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function Tf(t){const e=cn(t.date),n=Pr(t.date),r=Bl(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function Df(t){const e=cn(t.date),n=Pr(t.date),r=Bl(t.date),i=mf(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Hl(t){return{year:parseInt(t)}}function Ul(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function Wl(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function jl(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const Mf={year:4,month:7,day:10};function If(t,e,n){if(e===null||n==="hour")return t;const r=Mf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(o=>o.periodStart.slice(0,r)===i)}function Kf(t,e,n="desc"){if(t.length===0)return[];const r=t.filter(i=>!isNaN(new Date(i.date).getTime()));if(r.length===0)return[];switch(e){case"year":return un(r,kf,i=>{const{year:o}=Hl(i);return vf(o)},i=>{const{year:o}=Hl(i);return wf(o)},n);case"month":return un(r,Nf,i=>{const{year:o,month:l}=Ul(i);return gf(o,l)},i=>{const{year:o,month:l}=Ul(i);return Ef(o,l)},n);case"day":return un(r,Tf,i=>{const{year:o,month:l,day:s}=Wl(i);return bf(o,l,s)},i=>{const{year:o,month:l,day:s}=Wl(i);return Cf(o,l,s)},n);case"hour":return un(r,Df,i=>{const{year:o,month:l,day:s,hour:d}=jl(i);return yf(o,l,s,d)},i=>{const{year:o,month:l,day:s,hour:d}=jl(i);return Pf(o,l,s,d)},n)}}const _f=({zoomLevel:t,canZoomIn:e,canZoomOut:n,onZoomIn:r,onZoomOut:i,onReset:o,breadcrumbs:l=[],onBreadcrumbClick:s})=>{const d=l.length>0;return p.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[p.jsx(ln,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),d?p.jsx(Vl,{trail:[{label:"ALL",onClick:o},...l.slice(0,-1).map((c,u)=>({label:c.label,onClick:()=>s==null?void 0:s(u)}))],currentLabel:l[l.length-1].label,showBackArrow:!1,separator:">",className:"timeline-zoom-controls__breadcrumb"}):p.jsx(le,{className:"timeline-zoom-controls__level",onPress:o,"aria-label":`Current zoom: ${t}. Click to reset.`,children:p.jsx(st,{variant:"accent",size:"medium",children:t.toUpperCase()})}),p.jsx(ln,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},kr=({children:t})=>p.jsxs("div",{className:"timeline-axis",children:[p.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),p.jsx("div",{className:"timeline-axis__content",children:t})]}),Gl=a.memo(({buckets:t,onBucketClick:e})=>p.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>p.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?p.jsxs(le,{className:"timeline-view__bucket-button",onPress:()=>e(n),children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:p.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:p.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));Gl.displayName="YearView";const Tt=a.memo(({entry:t,isSelected:e,isExpanded:n=!1,onSelect:r,footer:i,children:o})=>{const l=typeof t.content=="string",s=t.content!=null;return p.jsxs("div",{className:A("eidotter-timeline-card",e&&"eidotter-timeline-card--selected",n&&"eidotter-timeline-card--expanded"),children:[p.jsxs(le,{className:"eidotter-timeline-card__trigger",onPress:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[p.jsxs("div",{className:"eidotter-timeline-card__header",children:[t.type&&p.jsx("span",{className:"eidotter-timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&p.jsx("span",{className:"eidotter-timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),p.jsx("p",{className:"eidotter-timeline-card__title",children:t.title}),!n&&l&&(()=>{const d=String(t.content);return p.jsxs("p",{className:"eidotter-timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),o]}),s&&p.jsx("div",{className:"eidotter-timeline-card__body",children:p.jsx("div",{className:"eidotter-timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&p.jsx("div",{className:"eidotter-timeline-card__footer",children:i})]})});Tt.displayName="TimelineEntryCard";const ql=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>p.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),p.jsx("div",{className:"timeline-view__content",children:i.entries.map(o=>p.jsx(Tt,{entry:o,isSelected:e===o.id,isExpanded:e===o.id,onSelect:n},o.id))})]},i.periodStart))}));ql.displayName="MonthView";const Zl={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Nr=({children:t,variant:e="default",size:n="md",color:r,selected:i=!1,closeable:o=!1,disabled:l=!1,onClick:s,onClose:d,className:c,"aria-label":u,...f})=>{const m=!!s&&!l,{isClosing:v,triggerClose:y,handleAnimationEnd:g}=xr("tag-exit",d),w=C=>{l||((C.key==="Enter"||C.key===" ")&&s&&(C.preventDefault(),s(C)),(C.key==="Delete"||C.key==="Backspace")&&o&&d&&(C.preventDefault(),y()))},x=()=>{l||y()},E=r?{"--tag-color":"var("+r+")"}:void 0;return p.jsxs("span",{className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",Zl[n]||Zl.md,"eidotter-tag","eidotter-tag--"+e,i&&"eidotter-tag--selected",l&&"opacity-50 cursor-not-allowed",v&&"eidotter-tag--closing",m&&"cursor-pointer",c),style:E,onClick:m?C=>!l&&(s==null?void 0:s(C)):void 0,onKeyDown:w,onAnimationEnd:g,"aria-label":u,"aria-selected":i||void 0,"aria-disabled":l||void 0,"data-variant":e,...m?{role:"button",tabIndex:0}:{},...f,children:[p.jsx("span",{className:"eidotter-tag__content",children:t}),o&&p.jsx(le,{className:"eidotter-tag__close","aria-label":"Remove "+(typeof t=="string"?t:"tag"),excludeFromTabOrder:!0,onPress:x,isDisabled:l,children:"[x]"})]})},Yl={tight:"gap-1",normal:"gap-2",loose:"gap-3"},Tr=({children:t,gap:e="normal",wrap:n=!0,className:r,"aria-label":i,...o})=>p.jsx("div",{className:A("flex",n?"flex-wrap":"flex-nowrap",Yl[e]||Yl.normal,r),role:"group","aria-label":i,...o,children:t}),Xl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>p.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>p.jsx(Tt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?p.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>p.jsx(Nr,{size:"small",variant:"outlined",children:o},o))}):void 0},i.id))})]},r.periodStart))}));Xl.displayName="DayView";const Jl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>p.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>p.jsxs(Tt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:p.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&p.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>p.jsx(Nr,{size:"small",variant:"outlined",children:o},o))}),i.type&&p.jsx(st,{variant:"default",size:"small",children:i.type})]}),children:[p.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:xf(i.date)}),p.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));Jl.displayName="HourView";const Sf=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return p.jsx(Gl,{buckets:e,onBucketClick:i});case"month":return p.jsx(ql,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return p.jsx(Xl,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return p.jsx(Jl,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},$f=({entries:t,mode:e="interactive",zoomLevel:n,defaultZoomLevel:r="month",onZoomChange:i,selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s,sortOrder:d="desc",scrollToZoom:c=!0,keyboardShortcuts:u=!0,...f})=>{var M;const m=e==="static",v=a.useRef(null),y=a.useRef(null),[g,w]=a.useState(""),{zoomLevel:x,canZoomIn:E,canZoomOut:C,breadcrumbs:k,currentPeriod:N,isDrillDownEnabled:H,drillDown:F,drillUp:P,reset:I}=ff({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:z,toggle:ee,deselect:ne}=hf({selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s}),q=a.useMemo(()=>Kf(t,x,d),[t,x,d]),T=k.length>0?["year","month","day","hour"][k.length-1]:null,V=a.useMemo(()=>N&&T?If(q,N,T):q,[q,N,T]);a.useEffect(()=>{if(m||!c)return;const b=v.current;if(!b)return;let D=null;const S=L=>{!L.ctrlKey&&!L.metaKey||(L.preventDefault(),D===null&&(D=requestAnimationFrame(()=>{L.deltaY>0&&P(),D=null})))};return b.addEventListener("wheel",S,{passive:!1}),()=>{b.removeEventListener("wheel",S),D!==null&&cancelAnimationFrame(D)}},[m,c,H,E,P]),a.useEffect(()=>{if(m||!u)return;const b=D=>{var L;if(!((L=v.current)!=null&&L.contains(document.activeElement))&&document.activeElement!==v.current)return;const S=D.ctrlKey||D.metaKey;S&&D.key==="-"?(D.preventDefault(),P()):S&&D.key==="0"?(D.preventDefault(),I(),w("Showing all years")):D.key==="Escape"&&(D.preventDefault(),ne())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[m,u,P,I,ne]);const j=a.useCallback(b=>{E&&(F(b.periodStart,b.label),w(`Showing ${x==="year"?"months":x==="month"?"days":"hours"} in ${b.label}`))},[E,F,x]),Z=a.useRef(k.length);a.useEffect(()=>{var b;if(k.length!==Z.current){Z.current=k.length;const D=(b=y.current)==null?void 0:b.querySelector('.eidotter-timeline-card__trigger, .timeline-view__bucket-button, .eidotter-timeline-node[role="button"]');D&&requestAnimationFrame(()=>D.focus())}},[k.length]);const Q=a.useMemo(()=>m?[...t].sort((b,D)=>{const S=b.date.localeCompare(D.date);return d==="desc"?-S:S}):t,[m,t,d]),re=a.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),h=b=>{try{return re.format(new Date(b))}catch{return b}};return p.jsxs("div",{ref:v,...f,className:A("font-dos text-cga-amber bg-dos-bg-primary p-4 min-h-[200px]","eidotter-timeline-container",m&&"eidotter-timeline-container--static",f.className),role:"region","aria-label":f["aria-label"]??"Timeline",tabIndex:m?void 0:0,children:[p.jsx("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:g}),!m&&p.jsx(_f,{zoomLevel:x,canZoomIn:E,canZoomOut:C,onZoomIn:()=>{},onZoomOut:P,onReset:I,breadcrumbs:H?k:[],onBreadcrumbClick:b=>{const D=k.length-1-b;for(let S=0;S<D;S++)P()}}),p.jsx("div",{ref:y,children:t.length===0?p.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[p.jsx("p",{children:"C:\\TIMELINE> No entries found."}),p.jsx("p",{children:"_"})]}):m?p.jsx(kr,{children:p.jsx("div",{className:"eidotter-timeline-container__static",role:"list","aria-label":"Timeline",children:Q.map(b=>p.jsxs("div",{className:"eidotter-timeline-container__static-entry",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:h(b.date),labelPosition:"right"})}),p.jsx(Tt,{entry:b,isSelected:!1,isExpanded:!0})]},b.id))})}):V.length===0&&N?p.jsx(kr,{children:p.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[p.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((M=k[k.length-1])==null?void 0:M.label)??"this period","."]}),p.jsx("p",{children:"_"})]})}):p.jsx(kr,{children:p.jsx(Sf,{zoomLevel:x,buckets:V,selectedEntryId:z,onEntrySelect:ee,onBucketClick:j})})})]})},Ql=a.forwardRef(({isOpen:t,onOpenChange:e,onClose:n,title:r,children:i,footer:o,className:l},s)=>{const d=a.useRef(t),c=a.useRef(!1);a.useEffect(()=>{t!==d.current&&(d.current=t,c.current||(e==null||e(t),t||n==null||n()),c.current=!1)},[t,e,n]);const u=f=>{c.current=!0,e==null||e(f),f||n==null||n()};return p.jsx(el,{isOpen:t,onOpenChange:u,isDismissable:!0,className:({isEntering:f,isExiting:m})=>A("eidotter-modal-overlay",f&&"eidotter-modal-overlay--entering",m&&"eidotter-modal-overlay--exiting"),children:p.jsx(Hc,{className:({isEntering:f,isExiting:m})=>A("eidotter-modal",f&&"eidotter-modal--entering",m&&"eidotter-modal--exiting"),children:p.jsxs(Vc,{ref:s,"aria-label":r,className:A("eidotter-modal__container outline-none",l),children:[p.jsxs("header",{className:"eidotter-modal__header",children:[p.jsx("h2",{className:"eidotter-modal__title",children:r}),p.jsx(le,{className:"eidotter-modal__close",onPress:()=>u(!1),"aria-label":"Close modal",children:p.jsx(be,{name:"Close",size:"S"})})]}),p.jsx("div",{className:"eidotter-modal__body",children:i}),o&&p.jsx("footer",{className:"eidotter-modal__footer",children:o})]})})})});Ql.displayName="Modal";const Lf="░▒▓█│┤┐└┴┬├─┼",Ff=4;function Dr(t,e){const{speed:n=40,characters:r=Lf,enabled:i=!0,delay:o=0}=e??{},[l,s]=a.useState(()=>{if(!i||yr())return t;let f="";for(let m=0;m<t.length;m++)t[m]===" "?f+=" ":f+=r[Math.floor(Math.random()*r.length)];return f}),[d,c]=a.useState(!1),u=a.useRef(0);return a.useEffect(()=>{if(!i||yr()){s(t),c(!1);return}let f=0,m=0,v=0,y=o;c(!0);const g=w=>{v||(v=w);const x=w-v;if(y>0){y-=x,v=w,u.current=requestAnimationFrame(g);return}if(x>=n){if(v=w,m++,m>=Ff&&(f++,m=0),f>=t.length){s(t),c(!1);return}let E="";for(let C=0;C<t.length;C++)C<f?E+=t[C]:t[C]===" "?E+=" ":E+=r[Math.floor(Math.random()*r.length)];s(E)}u.current=requestAnimationFrame(g)};return u.current=requestAnimationFrame(g),()=>{u.current&&cancelAnimationFrame(u.current)}},[t,n,r,i,o]),{text:l,isScrambling:d}}const Rl={sm:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},md:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},lg:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"},small:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},medium:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},large:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"}},Of={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},Af={up:"▲",down:"▼",neutral:"►"},zf={up:"increasing",down:"decreasing",neutral:"unchanged"},es=a.forwardRef(({label:t,value:e,trend:n,trendValue:r,size:i="md",scramble:o=!1,className:l,...s},d)=>{const{text:c}=Dr(String(e),{speed:30,enabled:o}),u=o?c:String(e),f=Rl[i]||Rl.md;return p.jsxs("div",{ref:d,className:A("flex flex-col font-dos","eidotter-stat",f.root,l),...s,children:[p.jsx("span",{className:A("text-cga-amber uppercase tracking-wider leading-tight",f.label),children:t}),p.jsx("span",{className:A("text-dos-text-accent font-bold leading-none tabular-nums",f.value),children:u}),n&&p.jsxs("span",{className:A("inline-flex items-center gap-1 leading-none",Of[n],f.trend),"aria-label":`Trend: ${zf[n]}${r?`, ${r}`:""}`,children:[p.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:Af[n]}),r&&p.jsx("span",{className:"tabular-nums",children:r})]})]})});es.displayName="Stat";const ts={sm:"eidotter-filter-bar--sm",md:"eidotter-filter-bar--md",lg:"eidotter-filter-bar--lg",small:"eidotter-filter-bar--sm",medium:"eidotter-filter-bar--md",large:"eidotter-filter-bar--lg"},Vf=({items:t,activeIds:e,defaultActiveIds:n=[],mode:r="multi",showAll:i=!1,allLabel:o="All",size:l="md",onChange:s,className:d,...c})=>{const[u,f]=a.useState(n),m=a.useRef(null),v=e!==void 0,y=v?e:u,g=t.filter(P=>!P.disabled).map(P=>P.id),w=y.length===0,x=a.useCallback(P=>{v||f(P),s==null||s(P)},[v,s]),E=a.useCallback(P=>{if(r==="single"){const I=y.includes(P)?[]:[P];x(I)}else{const I=y.includes(P)?y.filter(z=>z!==P):[...y,P];x(I)}},[r,y,x]),C=a.useCallback(()=>{x([])},[x]),k=a.useCallback(()=>m.current?Array.from(m.current.querySelectorAll("button:not([disabled])")):[],[]),N=a.useCallback(P=>{const I=k(),z=I.indexOf(P.target);if(z===-1)return;let ee=null;switch(P.key){case"ArrowLeft":case"ArrowUp":P.preventDefault(),ee=z>0?z-1:I.length-1;break;case"ArrowRight":case"ArrowDown":P.preventDefault(),ee=z<I.length-1?z+1:0;break;case"Home":P.preventDefault(),ee=0;break;case"End":P.preventDefault(),ee=I.length-1;break}ee!==null&&I[ee].focus()},[k]),F=i&&w?"__all__":y.length>0?y[0]:i?"__all__":g[0]||null;return p.jsxs("div",{ref:m,className:A("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full","bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm","eidotter-filter-bar",ts[l]||ts.md,d),role:"toolbar",onKeyDown:N,...c,children:[i&&p.jsx(le,{className:A("eidotter-filter-bar__item","eidotter-filter-bar__item--all",w&&"eidotter-filter-bar__item--active"),"aria-pressed":w,excludeFromTabOrder:F!=="__all__",onPress:C,children:p.jsx("span",{className:"eidotter-filter-bar__label",children:o})}),t.map(P=>{const I=y.includes(P.id),z=I&&P.color?{"--filter-bar-item-color":`var(${P.color})`}:void 0;return p.jsxs(le,{className:A("eidotter-filter-bar__item",I&&"eidotter-filter-bar__item--active",P.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":I,excludeFromTabOrder:F!==P.id,isDisabled:P.disabled,onPress:()=>E(P.id),style:z,children:[p.jsx("span",{className:"eidotter-filter-bar__label",children:P.label}),P.count!==void 0&&p.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${P.count} items`,children:P.count})]},P.id)})]})},Mr=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Bf=({children:t,content:e,defaultExpanded:n=!1,expanded:r,onToggle:i,sources:o=[],className:l,...s})=>{const[d,c]=a.useState(n),[u,f]=a.useState(new Set),m=a.useRef(n),v=a.useId(),y=a.useRef(null),g=r!==void 0,w=g?r:d;w&&(m.current=!0);const x=()=>{const C=!w;g||c(C),i==null||i(C)},E=C=>{var k;C.key==="Escape"&&w&&(C.stopPropagation(),x(),(k=y.current)==null||k.focus())};return p.jsxs("span",{className:A("eidotter-inline-expand",w&&"eidotter-inline-expand--expanded",l),onKeyDown:E,...s,children:[p.jsxs(le,{ref:y,className:"eidotter-inline-expand__trigger","aria-expanded":w,"aria-controls":v,onPress:x,children:[t,p.jsx("span",{className:"eidotter-inline-expand__indicator","aria-hidden":"true",children:w?"[-]":"[+]"})]}),p.jsxs("span",{id:v,className:"eidotter-inline-expand__content",role:"region",inert:!w,children:[p.jsx("span",{className:"eidotter-inline-expand__inner",children:e}),o.length>0&&p.jsx("span",{className:"eidotter-inline-expand__sources",role:"list",children:o.map(C=>p.jsx("span",{className:"eidotter-inline-expand__source-item",role:"listitem",children:p.jsxs("a",{href:Mr(C.url)?C.url:void 0,className:"eidotter-inline-expand__source-link",target:"_blank",rel:"noopener noreferrer","aria-label":`${C.title} (opens external website)`,children:[m.current&&C.favicon&&Mr(C.favicon)&&!u.has(C.url)?p.jsx("img",{className:"eidotter-inline-expand__source-favicon",src:C.favicon,alt:"",width:16,height:16,decoding:"async",onError:()=>f(k=>new Set(k).add(C.url))}):p.jsx("span",{className:"eidotter-inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),p.jsx("span",{className:"eidotter-inline-expand__source-title",children:C.title})]})},C.url))})]})]})},Hf={horizontal:"h-px w-full",vertical:"w-px h-full"},Uf=({orientation:t="horizontal",className:e})=>p.jsx("div",{role:"separator","aria-orientation":t,className:A("shrink-0 bg-dos-border-default","eidotter-separator",Hf[t],e)}),ns=a.forwardRef(({children:t,speed:e,characters:n,delay:r,className:i,...o},l)=>{const{text:s,isScrambling:d}=Dr(t,{speed:e,characters:n,delay:r});return p.jsx("span",{ref:l,className:A("eidotter-text-scramble",d&&"eidotter-text-scramble--scrambling",i),...o,children:s})});ns.displayName="TextScramble";const rs={retro:"eidotter-nav--retro",modern:"eidotter-nav--modern"},Ir=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const o=r||"a";return p.jsx("nav",{className:A("eidotter-nav eidotter-nav--desktop",rs[n],i),"aria-label":"Main navigation",children:p.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(l=>p.jsx("li",{className:"eidotter-nav__desktop-item",children:p.jsx(o,{href:l.href,className:A("eidotter-nav__link",e===l.href&&"eidotter-nav__link--active"),children:l.label})},l.href))})})},Kr=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const[o,l]=a.useState(!1),s=r||"a",d=a.useCallback(()=>l(u=>!u),[]),c=a.useCallback(()=>l(!1),[]);return p.jsxs("div",{className:A("eidotter-nav eidotter-nav--mobile",rs[n],i),children:[p.jsx("button",{onClick:d,className:"eidotter-nav__hamburger","aria-label":o?"Close menu":"Open menu","aria-expanded":o,children:p.jsx("span",{className:"eidotter-nav__hamburger-icon","aria-hidden":"true",children:o?"✕":"☰"})}),o&&p.jsx("div",{className:"eidotter-nav__overlay",onClick:c,"aria-hidden":"true"}),p.jsxs("nav",{className:A("eidotter-nav__panel",o&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[p.jsx("div",{className:"eidotter-nav__panel-header",children:p.jsx("button",{onClick:c,className:"eidotter-nav__close","aria-label":"Close menu",children:"✕"})}),p.jsx("ul",{className:"eidotter-nav__list",children:t.map(u=>p.jsx("li",{className:"eidotter-nav__item",children:p.jsx(s,{href:u.href,className:A("eidotter-nav__link",e===u.href&&"eidotter-nav__link--active"),onClick:c,children:u.label})},u.href))})]})]})},Wf=t=>p.jsxs(p.Fragment,{children:[p.jsx(Kr,{...t}),p.jsx(Ir,{...t})]}),jf={user:"eidotter-chat-message--user",assistant:"eidotter-chat-message--assistant",system:"eidotter-chat-message--system"},is=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:o,...l})=>{const s=t==="user"?r:t==="assistant"?i:"";return p.jsxs("div",{className:A("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words",jf[t],n&&"eidotter-chat-message--streaming",o),...l,children:[s&&p.jsx("span",{className:"shrink-0 select-none","aria-hidden":"true",children:s}),p.jsx("span",{className:"min-w-0",children:e}),n&&p.jsx("span",{className:"eidotter-chat-message__cursor","aria-hidden":"true",children:"█"})]})},os=({messages:t,isStreaming:e=!1,userPrefix:n,assistantPrefix:r,className:i,...o})=>{const l=a.useRef(null);a.useEffect(()=>{var d,c;(c=(d=l.current)==null?void 0:d.scrollIntoView)==null||c.call(d,{behavior:"smooth"})},[t.length,e]);const s=A("flex-1 overflow-y-auto font-dos p-2 min-h-0","eidotter-chat-history",i);return t.length===0?p.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:p.jsx("div",{className:"flex items-center justify-center h-full min-h-16",children:p.jsx("span",{className:"text-cga-brown font-dos text-dos-text-md",children:"Awaiting input..."})})}):p.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:p.jsxs("div",{className:"flex flex-col",children:[t.map((d,c)=>{const u=e&&d.role==="assistant"&&c===t.length-1;return p.jsx(is,{role:d.role,content:d.content,isStreaming:u,userPrefix:n,assistantPrefix:r},d.id)}),p.jsx("div",{ref:l})]})})},ls=({onSend:t,prompt:e=">",placeholder:n,disabled:r=!1,className:i,...o})=>{const[l,s]=a.useState(""),d=a.useRef(null);a.useLayoutEffect(()=>{const f=d.current;f&&(f.style.height="auto",f.style.height=`${f.scrollHeight}px`)},[l]);const c=f=>{if(f.key==="Enter"&&!f.shiftKey&&!r){f.preventDefault();const m=l.trim();m&&(t(m),s(""))}},u=()=>{!r&&d.current&&d.current.focus()};return p.jsxs("div",{className:A("flex items-start font-dos text-dos-text-md p-2 cursor-text","bg-dos-bg-primary text-cga-amber","eidotter-chat-input",r&&"eidotter-chat-input--disabled",i),onClick:u,...o,children:[p.jsx("span",{className:"text-cga-amber mr-2 mt-0.5 whitespace-nowrap select-none","aria-hidden":"true",children:e}),p.jsxs("div",{className:"flex items-start flex-1 min-w-0",children:[p.jsx("textarea",{ref:d,className:"eidotter-chat-input__textarea",value:l,onChange:f=>s(f.target.value),onKeyDown:c,placeholder:n,disabled:r,rows:1,"aria-label":"Chat input"}),p.jsx("span",{className:"eidotter-chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},Gf=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:o,placeholder:l,disabled:s=!1,className:d,...c})=>p.jsxs("div",{className:A("flex flex-col h-full min-h-0 bg-dos-bg-primary",d),...c,children:[p.jsx(os,{className:"flex-1 min-h-0",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:o}),p.jsx(ls,{className:"shrink-0",onSend:e,prompt:r,placeholder:l,disabled:s})]}),ss=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],qf=({copyright:t,links:e,children:n,className:r,...i})=>{const o=e??ss;return p.jsxs("footer",{className:A("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[p.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&p.jsx("div",{className:"mb-3",children:n}),o.length>0&&p.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:o.map((l,s)=>p.jsxs(a.Fragment,{children:[s>0&&p.jsx("span",{className:"text-cga-brown select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),p.jsx("a",{className:"eidotter-footer__link text-cga-amber no-underline",href:l.href,...l.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:l.label})]},l.href))}),t&&p.jsxs("p",{className:"text-cga-brown m-0",children:["© ",t]})]})},Zf={retro:"eidotter-header--retro",modern:"eidotter-header--modern"},as=a.forwardRef(({brandName:t,brandHref:e="/",items:n,activeHref:r,variant:i="retro",sticky:o=!0,linkComponent:l,children:s,className:d,...c},u)=>{const f=l??"a";return p.jsxs("header",{ref:u,className:A("flex items-center justify-between px-4 py-3 font-dos","eidotter-header",Zf[i],o&&"sticky top-0 z-50",d),...c,children:[p.jsx(f,{href:e,className:A("no-underline text-base font-bold tracking-wide","eidotter-header__branding"),children:s||t}),p.jsx(Ir,{items:n,activeHref:r,variant:i,linkComponent:l}),p.jsx(Kr,{items:n,activeHref:r,variant:i,linkComponent:l})]})});as.displayName="Header";const Yf={primary:"Info",gray:"Info",success:"Done",warning:"Warning",error:"Error"},Xf=({type:t="primary",title:e,children:n,actions:r,onClose:i,avatar:o,image:l,progress:s,progressLabel:d,duration:c,showIcon:u=!0,className:f})=>{const{isClosing:m,triggerClose:v,handleAnimationEnd:y}=xr("notification-exit",i);a.useEffect(()=>{if(c==null||!i)return;const x=setTimeout(()=>v(),c);return()=>clearTimeout(x)},[c,i,v]);const g=u&&!o,w=s!=null;return p.jsxs("div",{className:A("w-full max-w-[400px]","font-dos text-dos-text-sm","bg-dos-bg-primary border border-dos-border-default rounded-dos-base","eidotter-notification",`eidotter-notification--${t}`,m&&"eidotter-notification--closing",f),onAnimationEnd:y,role:t==="error"?"alert":"status","data-type":t,children:[l&&p.jsx("div",{className:"eidotter-notification__image",children:l}),p.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[o&&p.jsx("div",{className:"eidotter-notification__avatar flex-shrink-0",children:o}),g&&p.jsx("div",{className:"eidotter-notification__icon",children:p.jsx(be,{name:Yf[t]||"Info",size:"S","aria-label":`${t} notification`})}),p.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",i&&!g&&!o&&"pr-8"),children:[(e||n)&&p.jsxs("div",{className:"flex flex-col gap-1",children:[e&&p.jsx("div",{className:"eidotter-notification__title font-dos leading-[140%]",children:e}),n&&p.jsx("div",{className:"eidotter-notification__text font-dos leading-[140%]",children:n})]}),w&&p.jsxs("div",{className:"flex flex-col gap-1",children:[p.jsx(Er,{value:s,max:100,size:"sm",fullWidth:!0,showLabel:!1}),d&&p.jsx("div",{className:"eidotter-notification__text font-dos text-dos-text-xs",children:d})]}),r&&r.length>0&&p.jsx("div",{className:"flex flex-row gap-3",children:r.map((x,E)=>p.jsxs(le,{className:"eidotter-notification__action",onPress:x.onClick,children:[x.label,x.icon]},E))})]}),i&&p.jsx(le,{className:"eidotter-notification__close",onPress:v,"aria-label":"Close notification",children:p.jsx(be,{name:"Close",size:"S"})})]})]})},Jf={eidotter:{displayName:"eiDotter"},spacewar:{displayName:"Spacewar!"},rizomorf:{displayName:"rizomorf"},"pomodoke-calendar":{displayName:"PomoDoke Calendar"},keepcoin:{displayName:"KeepCoin"},steuerdash:{displayName:"Steuerdash"},sella:{displayName:"sella"},lifelines:{displayName:"Lifelines"},betamorf:{displayName:"betamorf"}},at={Alert:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.2.0",variants:{"type:info":{description:"Informational message",since:"0.2.0",usedBy:["rizomorf"]},"type:success":{description:"Success confirmation",since:"0.2.0",usedBy:["steuerdash"]},"type:warning":{description:"Warning notice",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"type:error":{description:"Error message",since:"0.2.0",usedBy:["steuerdash"]},"size:small":{description:"Compact alert for inline contexts",since:"0.2.0"},"size:large":{description:"Full-width alert with icon",since:"0.2.0"}},platforms:{react:{path:"src/components/Alert",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber for theme consistency"},{version:"0.6.0",type:"changed",description:"Fix icon alignment and add prefers-contrast support"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects"},{version:"0.2.0",type:"added",description:"Initial Alert component with info/success/warning/error types"}]},Accordion:{origin:"eidotter",consumers:["rizomorf"]},AccordionFill:{origin:"eidotter",consumers:["rizomorf"]},Badge:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Neutral badge with muted styling",since:"0.3.0",usedBy:["rizomorf"]},"variant:success":{description:"Green success indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:warning":{description:"Amber warning indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:error":{description:"Red error/critical indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:info":{description:"Blue informational indicator",since:"0.3.0"},"variant:accent":{description:"Theme accent color badge",since:"0.3.0",usedBy:["rizomorf"]},"size:small":{description:"Compact inline badge",since:"0.3.0"},"size:medium":{description:"Standard badge size",since:"0.3.0"}},platforms:{react:{path:"src/components/Badge",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter keyframes"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.5.0",type:"changed",description:"Fix text vertical alignment for pixel fonts"},{version:"0.3.0",type:"added",description:"Initial Badge component for status indicators"}]},Breadcrumb:{origin:"rizomorf",consumers:["rizomorf"]},Button:{origin:"eidotter",consumers:["spacewar","rizomorf","pomodoke-calendar","steuerdash"],since:"0.2.0",variants:{"variant:primary":{description:"Primary CTA with amber background",since:"0.2.0",usedBy:["spacewar","rizomorf","pomodoke-calendar","steuerdash"]},"variant:secondary":{description:"Secondary action with border only",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"variant:ghost":{description:"Minimal button with hover reveal",since:"0.2.0",usedBy:["rizomorf"]},"variant:link":{description:"Inline link-style button",since:"0.2.0",usedBy:["rizomorf"]},"size:small":{description:"Compact 1.5rem min-height",since:"0.2.0"},"size:medium":{description:"Standard 2rem min-height",since:"0.2.0"},"size:large":{description:"Prominent 2.5rem min-height",since:"0.2.0"}},platforms:{react:{path:"src/components/Button",status:"canonical"},swiftui:{path:"platforms/swiftui/Sources/EiDotterUI/DOSButton.swift",status:"planned",note:"POC with primary variant only — not yet production-ready"},spritekit:{status:"token-only",note:"Spacewar uses tokens only, no UIKit/SwiftUI button"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish across all variants"},{version:"0.7.0",type:"changed",description:"Increase font size and weight for readability"},{version:"0.6.0",type:"changed",description:"Add phosphor warmup/energize keyframes to all variants"},{version:"0.5.0",type:"changed",description:"Fix secondary label visibility in pressed state"},{version:"0.4.0",type:"changed",description:"Add CRT phosphor interaction states for primary variant"},{version:"0.2.0",type:"added",description:"Initial Button with primary/secondary/ghost/link variants"}]},Card:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Standard card with subtle border",since:"0.3.0",usedBy:["rizomorf","steuerdash"]},"variant:elevated":{description:"Raised card with drop shadow",since:"0.3.0",usedBy:["steuerdash"]},"variant:bordered":{description:"Strong border emphasis",since:"0.3.0"},"variant:glow":{description:"Phosphor glow border effect",since:"0.4.0",usedBy:["rizomorf"]},"variant:interactive":{description:"Hover-reactive card for clickable surfaces",since:"0.4.0",usedBy:["rizomorf"]},"variant:minimal":{description:"Borderless content container",since:"0.4.0"},"variant:callout":{description:"Highlighted callout with accent border",since:"0.4.0"}},platforms:{react:{path:"src/components/Card",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.4.0",type:"added",description:"Add glow, interactive, minimal, callout variants"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects and amber dim header background"},{version:"0.3.0",type:"added",description:"Initial Card with default/elevated/bordered variants"}]},Checkbox:{origin:"eidotter",consumers:["steuerdash"]},CommandPrompt:{origin:"eidotter",consumers:["rizomorf"]},Icon:{origin:"eidotter",consumers:["rizomorf"]},Input:{origin:"eidotter",consumers:["steuerdash"]},Modal:{origin:"eidotter",consumers:["pomodoke-calendar"]},Progress:{origin:"eidotter",consumers:["steuerdash"],since:"0.3.0"},RetroEffects:{origin:"spacewar",consumers:["spacewar","rizomorf"],originNote:"CRT scanline/glow effects from Spacewar!"},Stat:{origin:"steuerdash",consumers:["steuerdash"],originNote:"Key-value display created for tax dashboard"},Switch:{origin:"eidotter",consumers:[]},FilterBar:{origin:"eidotter",consumers:["lifelines","rizomorf"],originNote:"Multi-select toggle group for faceted filtering"},Tag:{origin:"eidotter",consumers:["lifelines","rizomorf"],since:"0.7.0",originNote:"Interactive labels for tags, categories, and filter chips",variants:{"variant:default":{description:"Standard tag with subtle background",since:"0.7.0",usedBy:["rizomorf"]},"variant:outlined":{description:"Border-only tag",since:"0.7.0",usedBy:["lifelines"]},"variant:filled":{description:"Solid background tag",since:"0.7.0",usedBy:["rizomorf","lifelines"]},"size:small":{description:"Compact tag for dense layouts",since:"0.7.0"},"size:medium":{description:"Standard tag size",since:"0.7.0"}},platforms:{react:{path:"src/components/Tag",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish"},{version:"0.7.0",type:"added",description:"Initial Tag and TagGroup components"}]},Tabs:{origin:"eidotter",consumers:["steuerdash"]},Terminal:{origin:"eidotter",consumers:["rizomorf"]},TimelineNode:{origin:"lifelines",consumers:["lifelines","rizomorf"],originNote:"Timeline markers from Lifelines project"},InlineExpand:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Inline disclosure widget for expanding text within prose"},Separator:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Horizontal/vertical divider for content separation"},TimelineContainer:{origin:"lifelines",consumers:["lifelines"],originNote:"Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, and feed modes."},ChatMessage:{origin:"eidotter",consumers:[],originNote:"Single chat message with role-based DOS styling and streaming cursor"},ChatHistory:{origin:"eidotter",consumers:[],originNote:'Scrollable message list with auto-scroll and role="log" accessibility'},ChatInput:{origin:"eidotter",consumers:[],originNote:"Multiline DOS-styled textarea with Enter-to-send"},ChatContainer:{origin:"eidotter",consumers:[],originNote:"Composes ChatHistory + ChatInput into a complete chat interface"},Header:{origin:"eidotter",consumers:[],originNote:"Sticky site header composing branding link + Nav — retro/modern variants"},Footer:{origin:"eidotter",consumers:[],originNote:"DOS-themed footer with default legal links (Impressum + Datenschutz) for German compliance"}};function Qf(t){return at[t]}function Rf(t){return Object.entries(at).filter(([,e])=>e.origin===t).map(([e])=>e)}function eh(t){return Object.entries(at).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function th(t,e){const n=at[t];return n!=null&&n.variants?Object.entries(n.variants).filter(([,r])=>{var i;return(i=r.usedBy)==null?void 0:i.includes(e)}).map(([r])=>r):[]}function nh(t){const e=at[t];if(!(e!=null&&e.variants))return{};const n={};for(const[r,i]of Object.entries(e.variants))n[r]=i.usedBy??[];return n}const rh="0.19.0";O.AccordionFill=ef,O.Alert=Pl,O.Badge=st,O.Breadcrumb=Vl,O.Button=ln,O.Card=Ml,O.ChatContainer=Gf,O.ChatHistory=os,O.ChatInput=ls,O.ChatMessage=is,O.Checkbox=Il,O.CommandPrompt=tf,O.DesktopNav=Ir,O.FilterBar=Vf,O.Footer=qf,O.Header=as,O.Icon=be,O.InlineExpand=Bf,O.Input=$l,O.MobileNav=Kr,O.Modal=Ql,O.Nav=Wf,O.Notification=Xf,O.Progress=Er,O.RetroEffects=sf,O.Section=kl,O.Separator=Uf,O.Stat=es,O.Switch=zl,O.Tabs=Fl,O.Tag=Nr,O.TagGroup=Tr,O.Terminal=of,O.TextScramble=ns,O.TimelineContainer=$f,O.TimelineNode=Ve,O.ZOOM_LEVELS=Nt,O.componentRegistry=at,O.defaultLegalLinks=ss,O.getComponentMeta=Qf,O.getComponentsByConsumer=eh,O.getComponentsByOrigin=Rf,O.getVariantConsumerMap=nh,O.getVariantsUsedBy=th,O.isSafeUrl=Mr,O.projects=Jf,O.useTextScramble=Dr,O.version=rh,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|
|
28
|
+
*/var Lo;function Zd(){return Lo||(Lo=1,process.env.NODE_ENV!=="production"&&(function(){function t(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}function e(v,y){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=y();if(!f){var w=y();o(g,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=l({inst:{value:g,getSnapshot:y}});var x=w[0].inst,E=w[1];return d(function(){x.value=g,x.getSnapshot=y,n(x)&&E({inst:x})},[v,g,y]),s(function(){return n(x)&&E({inst:x}),v(function(){n(x)&&E({inst:x})})},[v]),c(g),g}function n(v){var y=v.getSnapshot;v=v.value;try{var g=y();return!o(v,g)}catch{return!0}}function r(v,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=a,o=typeof Object.is=="function"?Object.is:t,l=i.useState,s=i.useEffect,d=i.useLayoutEffect,c=i.useDebugValue,u=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;cr.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cr}var Fo;function Yd(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?Qt.exports=qd():Qt.exports=Zd()),Qt.exports}var Xd=Yd();const Oo=a.createContext(!1),Pt=a.createContext(null);function Jd(t){if(a.useContext(Pt))return t.content;let{collection:n,document:r}=tc(t.createCollection);return a.createElement(a.Fragment,null,a.createElement(Gd,null,a.createElement(Pt.Provider,{value:r},t.content)),a.createElement(Qd,{render:t.children,collection:n}))}function Qd({collection:t,render:e}){return e(t)}function Rd(t,e,n){let r=Be(),i=a.useRef(r);i.current=r;let o=a.useCallback(()=>i.current?n():e(),[e,n]);return Xd.useSyncExternalStore(t,o)}const ec=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:Rd;function tc(t){let[e]=a.useState(()=>new jd((t==null?void 0:t())||new Wd)),n=a.useCallback(l=>e.subscribe(l),[e]),r=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]);return{collection:ec(n,r,i),document:e}}const ur=a.createContext(null);function nc(t){var e;return e=class extends Et{},e.type=t,e}function rc(t,e,n,r,i,o){typeof t=="string"&&(t=nc(t));let l=a.useCallback(d=>{d==null||d.setProps(e,n,t,r,o)},[e,n,r,o,t]),s=a.useContext(ur);if(s){let d=s.ownerDocument.nodesByProps.get(e);return d||(d=s.ownerDocument.createElement(t.type),d.setProps(e,n,t,r,o),s.appendChild(d),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,d)),i?a.createElement(ur.Provider,{value:d},i):null}return a.createElement(t.type,{ref:l},i)}function ic(t,e){let n=({node:i})=>e(i.props,i.props.ref,i),r=a.forwardRef((i,o)=>{let l=a.useContext(jn);if(!a.useContext(Oo)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return rc(t,i,o,"children"in i?i.children:null,null,d=>a.createElement(jn.Provider,{value:l},a.createElement(n,{node:d})))});return r.displayName=e.name,r}function oc(t){return So({...t,addIdAndValue:!0})}const Ao=a.createContext(null);function lc(t){let e=a.useContext(Ao),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies);var r;let i=(r=t.idScope)!==null&&r!==void 0?r:e==null?void 0:e.idScope,o=oc({...t,idScope:i,dependencies:n});return a.useContext(Pt)&&(o=a.createElement(sc,null,o)),e=a.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),a.createElement(Ao.Provider,{value:e},o)}function sc({children:t}){let e=a.useContext(Pt),n=a.useMemo(()=>a.createElement(Pt.Provider,{value:null},a.createElement(Oo.Provider,{value:!0},t)),[t]);return Be()?a.createElement(ur.Provider,{value:e},n):dt.createPortal(n,e)}const zo={CollectionRoot({collection:t,renderDropIndicator:e}){return Vo(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return Vo(t,e,n)}};function Vo(t,e,n){return So({items:e?t.getChildren(e.key):t,dependencies:[n],children(r){if(r.type==="content")return a.createElement(a.Fragment,null);let i=r.render(r);return!n||r.type!=="item"?i:a.createElement(a.Fragment,null,n({type:"item",key:r.key,dropPosition:"before"}),i,ac(t,r,n))}})}function ac(t,e,n){let r=e.key,i=t.getKeyAfter(r),o=i!=null?t.getItem(i):null;for(;o!=null&&o.type!=="item";)i=t.getKeyAfter(o.key),o=i!=null?t.getItem(i):null;let l=e.nextKey!=null?t.getItem(e.nextKey):null;for(;l!=null&&l.type!=="item";)l=l.nextKey!=null?t.getItem(l.nextKey):null;let s=[];if(l==null){let d=e;for(;(d==null?void 0:d.type)==="item"&&(!o||d.parentKey!==o.parentKey&&o.level<d.level);){let c=n({type:"item",key:d.key,dropPosition:"after"});a.isValidElement(c)&&s.push(a.cloneElement(c,{key:`${d.key}-after`})),d=d.parentKey!=null?t.getItem(d.parentKey):null}}return s}const Bo=a.createContext(zo);function dc(t){return a.useMemo(()=>t!=null?new Set([t]):null,[t])}function cc(t,e){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:s,onPressChange:d,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:f,href:m,target:v,rel:y,type:g="button"}=t,w;n==="button"?w={type:g,disabled:r,form:t.form,formAction:t.formAction,formEncType:t.formEncType,formMethod:t.formMethod,formNoValidate:t.formNoValidate,formTarget:t.formTarget,name:t.name,value:t.value}:w={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?v:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:x,isPressed:E}=it({onPressStart:o,onPressEnd:l,onPressChange:d,onPress:i,onPressUp:s,onClick:f,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:C}=Wt(t,e);u&&(C.tabIndex=r?-1:C.tabIndex);let k=G(C,x,ce(t,{labelable:!0}));return{isPressed:E,buttonProps:G(w,k,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],"aria-disabled":t["aria-disabled"]})}}function Ho(t,e,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:o,name:l,form:s,children:d,"aria-label":c,"aria-labelledby":u,validationState:f="valid",isInvalid:m,onPressStart:v,onPressEnd:y,onPressChange:g,onPress:w,onPressUp:x,onClick:E}=t,C=q=>{q.stopPropagation(),e.setSelected(K(q).checked)},k=d!=null,N=c!=null||u!=null;!k&&!N&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:H,isPressed:F}=it({onPressStart:v,onPressEnd:y,onPressChange:g,onPress:w,onPressUp:x,onClick:E,isDisabled:r}),{pressProps:P,isPressed:I}=it({onPressStart:v,onPressEnd:y,onPressChange:g,onPressUp:x,onClick:E,onPress(q){var T;w==null||w(q),e.toggle(),(T=n.current)===null||T===void 0||T.focus()},isDisabled:r||i}),{focusableProps:z}=Wt(t,n),ee=G(H,z),ne=ce(t,{labelable:!0});return Gr(n,e.defaultSelected,e.setSelected),{labelProps:G(P,{onClick:q=>q.preventDefault()}),inputProps:G(ne,{"aria-invalid":m||f==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-controls":t["aria-controls"],"aria-readonly":i||void 0,onChange:C,disabled:r,...o==null?{}:{value:o},name:l,form:s,type:"checkbox",...ee}),isSelected:e.isSelected,isPressed:F||I,isDisabled:r,isReadOnly:i,isInvalid:m||f==="invalid"}}function Uo(t,e,n){let r=or({...t,value:e.isSelected}),{isInvalid:i,validationErrors:o,validationDetails:l}=r.displayValidation,{labelProps:s,inputProps:d,isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m}=Ho({...t,isInvalid:i},e,n);Mo(t,r,n);let{isIndeterminate:v,isRequired:y,validationBehavior:g="aria"}=t;a.useEffect(()=>{n.current&&(n.current.indeterminate=!!v)});let{pressProps:w}=it({isDisabled:f||m,onPress(){let{[Jt]:x}=t,{commitValidation:E}=x||r;E()}});return{labelProps:G(s,w,a.useMemo(()=>({onMouseDown:x=>x.preventDefault()}),[])),inputProps:{...d,checked:c,"aria-required":y&&g==="aria"||void 0,required:y&&g==="native"},isSelected:c,isPressed:u,isDisabled:f,isReadOnly:m,isInvalid:i,validationErrors:o,validationDetails:l}}const uc=new WeakMap;function fr(t={}){let{isReadOnly:e}=t,[n,r]=pt(t.isSelected,t.defaultSelected||!1,t.onChange),[i]=a.useState(n);function o(d){e||r(d)}function l(){e||r(!n)}var s;return{isSelected:n,defaultSelected:(s=t.defaultSelected)!==null&&s!==void 0?s:i,setSelected:o,toggle:l}}function fc(t,e,n){const r=fr({isReadOnly:t.isReadOnly||e.isReadOnly,isSelected:e.isSelected(t.value),defaultSelected:e.defaultValue.includes(t.value),onChange(x){x?e.addValue(t.value):e.removeValue(t.value),t.onChange&&t.onChange(x)}});let{name:i,form:o,descriptionId:l,errorMessageId:s,validationBehavior:d}=uc.get(e);var c;d=(c=t.validationBehavior)!==null&&c!==void 0?c:d;let{realtimeValidation:u}=or({...t,value:r.isSelected,name:void 0,validationBehavior:"aria"}),f=a.useRef(ot),m=()=>{e.setInvalid(t.value,u.isInvalid?u:f.current)};a.useEffect(m);let v=e.realtimeValidation.isInvalid?e.realtimeValidation:u,y=d==="native"?e.displayValidation:v;var g;let w=Uo({...t,isReadOnly:t.isReadOnly||e.isReadOnly,isDisabled:t.isDisabled||e.isDisabled,name:t.name||i,form:t.form||o,isRequired:(g=t.isRequired)!==null&&g!==void 0?g:e.isRequired,validationBehavior:d,[Jt]:{realtimeValidation:v,displayValidation:y,resetValidation:e.resetValidation,commitValidation:e.commitValidation,updateValidation(x){f.current=x,m()}}},r,n);return{...w,inputProps:{...w.inputProps,"aria-describedby":[t["aria-describedby"],e.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}function hc(t,e){let{role:n="dialog"}=t,r=mn();r=t["aria-label"]?void 0:r;let i=a.useRef(!1);return a.useEffect(()=>{if(e.current&&!vn(e.current)){qe(e.current);let o=setTimeout(()=>{(ie()===e.current||ie()===document.body)&&(i.current=!0,e.current&&(e.current.blur(),qe(e.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[e]),xo(),{dialogProps:{...ce(t,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function pc(t,e,n){let{labelProps:r,inputProps:i,isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}=Ho(t,e,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:o},isSelected:o,isPressed:l,isDisabled:s,isReadOnly:d}}const Wo=new WeakMap;function Rt(t,e,n){if(!t)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let r=Wo.get(t);return process.env.NODE_ENV!=="production"&&!r&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${r}-${n}-${e}`}function mc(t,e,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:s}=e,d=r===s,c=i||e.isDisabled||e.selectionManager.isDisabled(r),{itemProps:u,isPressed:f}=Nd({selectionManager:l,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),m=Rt(e,r,"tab"),v=Rt(e,r,"tabpanel"),{tabIndex:y}=u,g=e.collection.getItem(r),w=ce(g==null?void 0:g.props,{labelable:!0});delete w.id;let x=Ws(g==null?void 0:g.props),{focusableProps:E}=Wt({...g==null?void 0:g.props,isDisabled:c},n);return{tabProps:G(w,E,x,u,{id:m,"aria-selected":d,"aria-disabled":c||void 0,"aria-controls":d?v:void 0,tabIndex:c?void 0:y,role:"tab"}),isSelected:d,isDisabled:c,isPressed:f}}function vc(t,e,n){let r=nd(n)?void 0:0;var i;const o=Rt(e,(i=t.id)!==null&&i!==void 0?i:e==null?void 0:e.selectedKey,"tabpanel"),l=_t({...t,id:o,"aria-labelledby":Rt(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:G(l,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class gc{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let n=e;do n=this.collection.getKeyAfter(n),n==null&&(n=this.collection.getFirstKey());while(n!=null&&this.isDisabled(n));return n}getPreviousKey(e){let n=e;do n=this.collection.getKeyBefore(n),n==null&&(n=this.collection.getLastKey());while(n!=null&&this.isDisabled(n));return n}constructor(e,n,r,i=new Set){this.collection=e,this.flipDirection=n==="rtl"&&r==="horizontal",this.disabledKeys=i,this.tabDirection=r==="horizontal"}}function bc(t,e,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=t,{collection:o,selectionManager:l,disabledKeys:s}=e,{direction:d}=$n(),c=a.useMemo(()=>new gc(o,d,r,s),[o,s,r,d]),{collectionProps:u}=kd({ref:n,selectionManager:l,keyboardDelegate:c,selectOnFocus:i==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),f=Ne();Wo.set(e,f);let m=_t({...t,id:f});return{tabListProps:{...G(u,m),role:"tablist","aria-orientation":r,tabIndex:void 0}}}const jo=a.createContext({}),yc=Ct(function(e,n){[e,n]=xe(e,n,jo);let{elementType:r="label",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Label",...i,ref:n})}),xc=a.createContext(null),Go=a.createContext({}),le=Ct(function(e,n){[e,n]=xe(e,n,Go);let r=e,{isPending:i}=r,{buttonProps:o,isPressed:l}=cc(e,n);o=Ec(o,i);let{focusProps:s,isFocused:d,isFocusVisible:c}=Ye(e),{hoverProps:u,isHovered:f}=bt({...e,isDisabled:e.isDisabled||i}),m={isHovered:f,isPressed:(r.isPressed||l)&&!i,isFocused:d,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:i??!1},v=me({...e,values:m,defaultClassName:"react-aria-Button"}),y=Ne(o.id),g=Ne(),w=o["aria-labelledby"];i&&(w?w=`${w} ${g}`:o["aria-label"]&&(w=`${y} ${g}`));let x=a.useRef(i);a.useEffect(()=>{let C={"aria-labelledby":w||y};(!x.current&&d&&i||x.current&&d&&!i)&&ei(C,"assertive"),x.current=i},[i,d,w,y]);let E=ce(e,{global:!0});return delete E.onClick,a.createElement(ue.button,{...G(E,v,o,s,u),type:o.type==="submit"&&i?"button":o.type,id:y,ref:n,"aria-labelledby":w,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":m.isPressed||void 0,"data-hovered":f||void 0,"data-focused":d||void 0,"data-pending":i||void 0,"data-focus-visible":c||void 0},a.createElement(xc.Provider,{value:{id:g}},v.children))}),wc=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ec(t,e){if(e){for(const n in t)n.startsWith("on")&&!wc.test(n)&&(t[n]=void 0);t.href=void 0,t.target=void 0}return t}const qo=a.createContext({}),Zo=a.forwardRef(function(e,n){[e,n]=xe(e,n,qo);let{elementType:r="span",...i}=e,o=ue[r];return a.createElement(o,{className:"react-aria-Text",...i,ref:n})});class Yo{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let n=this.keyMap.get(e);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let d of s.childNodes)n(d)};for(let s of e)n(s);let r=null,i=0,o=0;for(let[s,d]of this.keyMap)r?(r.nextKey=s,d.prevKey=r.key):(this.firstKey=s,d.prevKey=void 0),d.type==="item"&&(d.index=i++),(d.type==="section"||d.type==="item")&&o++,r=d,r.nextKey=void 0;this._size=o;var l;this.lastKey=(l=r==null?void 0:r.key)!==null&&l!==void 0?l:null}}class we extends Set{constructor(e,n,r){super(e),e instanceof we?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function Cc(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Pc(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=t,l=a.useRef(!1),[,s]=a.useState(!1),d=a.useRef(null),c=a.useRef(null),[,u]=a.useState(null),f=a.useMemo(()=>Xo(t.selectedKeys),[t.selectedKeys]),m=a.useMemo(()=>Xo(t.defaultSelectedKeys,new we),[t.defaultSelectedKeys]),[v,y]=pt(f,m,t.onSelectionChange),g=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[w,x]=a.useState(i);i==="replace"&&w==="toggle"&&typeof v=="object"&&v.size===0&&x("replace");let E=a.useRef(i);return a.useEffect(()=>{i!==E.current&&(x(i),E.current=i)},[i]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return l.current},setFocused(C){l.current=C,s(C)},get focusedKey(){return d.current},get childFocusStrategy(){return c.current},setFocusedKey(C,k="first"){d.current=C,c.current=k,u(C)},selectedKeys:v,setSelectedKeys(C){(r||!Cc(C,v))&&y(C)},disabledKeys:g,disabledBehavior:o}}function Xo(t,e){return t?t==="all"?"all":new we(t):e}class hr{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,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ir(this.collection,i,e)<0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&ir(this.collection,i,e)>0)&&(e=i)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new we([n],n,n);else{let l=this.state.selectedKeys;var i;let s=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new we(l,s,n);var o;for(let d of this.getKeyRange(s,(o=l.currentKey)!==null&&o!==void 0?o:n))r.delete(d);for(let d of this.getKeyRange(n,s))this.canSelectItem(d)&&r.add(d)}this.state.setSelectedKeys(r)}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?ir(this.collection,r,i)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let r=new we(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let r=this.canSelectItem(n)?new we([n],n,n):new we;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new we;for(let r of e){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((o=(i=Kd(Id(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new we)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let r of e)if(!n.has(r))return!1;for(let r of n)if(!e.has(r))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}withCollection(e){return new hr(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,n,r){this.collection=e,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function kc(t){let{filter:e,layoutDelegate:n}=t,r=Pc(t),i=a.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),o=a.useCallback(c=>e?new Yo(e(c)):new Yo(c),[e]),l=a.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),s=Md(t,o,l),d=a.useMemo(()=>new hr(s,r,{layoutDelegate:n}),[s,r,n]);return Nc(s,d),{collection:s,disabledKeys:i,selectionManager:d}}function Nc(t,e){const n=a.useRef(null);a.useEffect(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&n.current){const u=n.current.getItem(e.focusedKey),f=[...n.current.getKeys()].map(x=>{const E=n.current.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null),m=[...t.getKeys()].map(x=>{const E=t.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null);var r,i;const v=((r=f==null?void 0:f.length)!==null&&r!==void 0?r:0)-((i=m==null?void 0:m.length)!==null&&i!==void 0?i:0);var o,l,s;let y=Math.min(v>1?Math.max(((o=u==null?void 0:u.index)!==null&&o!==void 0?o:0)-v+1,0):(l=u==null?void 0:u.index)!==null&&l!==void 0?l:0,((s=m==null?void 0:m.length)!==null&&s!==void 0?s:0)-1),g=null,w=!1;for(;y>=0;){if(!e.isDisabled(m[y].key)){g=m[y];break}if(y<m.length-1&&!w)y++;else{w=!0;var d,c;y>((d=u==null?void 0:u.index)!==null&&d!==void 0?d:0)&&(y=(c=u==null?void 0:u.index)!==null&&c!==void 0?c:0),y--}}e.setFocusedKey(g?g.key:null)}n.current=t},[t,e])}function Tc(t){var e;let[n,r]=pt(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),i=a.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:l,selectionManager:s}=kc({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{if(c==="all")return;var u;let f=(u=c.values().next().value)!==null&&u!==void 0?u:null;f===n&&t.onSelectionChange&&t.onSelectionChange(f),r(f)}}),d=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:d}}function Dc(t){let[e,n]=pt(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=a.useCallback(()=>{n(!0)},[n]),i=a.useCallback(()=>{n(!1)},[n]),o=a.useCallback(()=>{n(!e)},[n,e]);return{isOpen:e,setOpen:n,open:r,close:i,toggle:o}}function Mc(t){var e,n;let r=Tc({...t,onSelectionChange:t.onSelectionChange?d=>{var c;d!=null&&((c=t.onSelectionChange)===null||c===void 0||c.call(t,d))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Jo(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0}),{selectionManager:i,collection:o,selectedKey:l}=r,s=a.useRef(l);return a.useEffect(()=>{let d=l;t.selectedKey==null&&(i.isEmpty||d==null||!o.getItem(d))&&(d=Jo(o,r.disabledKeys),d!=null&&i.setSelectedKeys([d])),(d!=null&&i.focusedKey==null||!i.isFocused&&d!==s.current)&&i.setFocusedKey(d),s.current=d}),{...r,isDisabled:t.isDisabled||!1}}function Jo(t,e){let n=null;if(t){var r,i,o,l;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((i=t.getItem(n))===null||i===void 0||(r=i.props)===null||r===void 0)&&r.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((l=t.getItem(n))===null||l===void 0||(o=l.props)===null||o===void 0)&&o.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const Ic=a.createContext(null),Qo=a.createContext(null),Kc=a.createContext(null),_c=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,ds);let{validationBehavior:o}=$t(Qo)||{};var l,s;let d=(s=(l=e.validationBehavior)!==null&&l!==void 0?l:o)!==null&&s!==void 0?s:"native",c=a.useContext(Kc),u=$e(a.useMemo(()=>et(r,e.inputRef!==void 0?e.inputRef:null),[r,e.inputRef])),{labelProps:f,inputProps:m,isSelected:v,isDisabled:y,isReadOnly:g,isPressed:w,isInvalid:x}=c?fc({...Lt(e),value:e.value,children:typeof e.children=="function"?!0:e.children},c,u):Uo({...Lt(e),children:typeof e.children=="function"?!0:e.children,validationBehavior:d},fr(e),u),{isFocused:E,isFocusVisible:C,focusProps:k}=Ye(),N=y||g,{hoverProps:H,isHovered:F}=bt({...e,isDisabled:N}),P=me({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:v,isIndeterminate:e.isIndeterminate||!1,isPressed:w,isHovered:F,isFocused:E,isFocusVisible:C,isDisabled:y,isReadOnly:g,isInvalid:x,isRequired:e.isRequired||!1}}),I=ce(e,{global:!0});return delete I.id,delete I.onClick,a.createElement(ue.label,{...G(I,f,H,P),ref:n,slot:e.slot||void 0,"data-selected":v||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":w||void 0,"data-hovered":F||void 0,"data-focused":E||void 0,"data-focus-visible":C||void 0,"data-disabled":y||void 0,"data-readonly":g||void 0,"data-invalid":x||void 0,"data-required":e.isRequired||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...G(m,k),ref:u})),P.children)}),Sc=a.createContext({}),Ro=a.createContext({});let $c=t=>{let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,...i}=t;return i};const Lc=Ct(function(e,n){[e,n]=xe(e,n,Ro);let{hoverProps:r,isHovered:i}=bt({...e,isDisabled:e.disabled}),{isFocused:o,isFocusVisible:l,focusProps:s}=Ye({isTextInput:!0,autoFocus:e.autoFocus}),d=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",c=me({...e,values:{isHovered:i,isFocused:o,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:d},defaultClassName:"react-aria-Input"});return a.createElement(ue.input,{...G($c(e),s,r),...c,ref:n,"data-focused":o||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":d||void 0})}),Fc=a.createContext(null);function Oc(t){let e=a.useRef({});return a.createElement(Fc.Provider,{value:e},t.children)}const Ac=a.createContext({isSelected:!1}),zc=a.createContext(null),en=a.createContext(null),Vc=a.forwardRef(function(e,n){let r=e["aria-labelledby"];[e,n]=xe(e,n,zc);let{dialogProps:i,titleProps:o}=hc({...e,"aria-labelledby":r},n),l=a.useContext(en);!i["aria-label"]&&!i["aria-labelledby"]&&(e["aria-labelledby"]?i["aria-labelledby"]=e["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=me({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),d=ce(e,{global:!0});return a.createElement(ue.section,{...G(d,s,i),render:e.render,ref:n,slot:e.slot||void 0},a.createElement(mt,{values:[[cs,{slots:{[_n]:{},title:{...o,level:2}}}],[Go,{slots:{[_n]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},s.children))}),Bc=a.createContext(null),pr=a.createContext(null),Hc=a.forwardRef(function(e,n){if(a.useContext(pr)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const g=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),w=Object.keys(e).filter(x=>g.has(x));console.warn(`This modal is already wrapped in a ModalOverlay, props [${w.join(", ")}] should be placed on the ModalOverlay instead.`)}return a.createElement(tl,{...e,modalRef:n},e.children)}let{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,children:c,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v,...y}=e;return a.createElement(el,{isDismissable:i,isKeyboardDismissDisabled:o,isOpen:l,defaultOpen:s,onOpenChange:d,isEntering:u,isExiting:f,UNSTABLE_portalContainer:m,shouldCloseOnInteractOutside:v},a.createElement(tl,{...y,modalRef:n},c))});function Uc(t,e){[t,e]=xe(t,e,Bc);let n=a.useContext(en),r=Dc(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?r:n;i===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let o=$e(e),l=a.useRef(null),s=Dn(o,i.isOpen),d=Dn(l,i.isOpen),c=s||d||t.isExiting||!1,u=Be();return!i.isOpen&&!c||u?null:a.createElement(Wc,{...t,state:i,isExiting:c,overlayRef:o,modalRef:l})}const el=a.forwardRef(Uc);function Wc({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:r}=e,{modalProps:i,underlayProps:o}=gd(e,r,n),l=Tn(e.overlayRef)||e.isEntering||!1,s=me({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:l,isExiting:e.isExiting,state:r}}),d=Zs(),c;if(typeof document<"u"){let f=ft(document.body)?document.body:document.scrollingElement||document.documentElement,m=f.getBoundingClientRect().height%1;c=f.scrollHeight-m}let u={...s.style,"--visual-viewport-height":d.height+"px","--page-height":c!==void 0?c+"px":void 0};return a.createElement(vd,{isExiting:e.isExiting,portalContainer:t},a.createElement(ue.div,{...G(ce(e,{global:!0}),o),...s,style:u,ref:e.overlayRef,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},a.createElement(mt,{values:[[pr,{modalProps:i,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[en,r]]},s.children)))}function tl(t){let{modalProps:e,modalRef:n,isExiting:r,isDismissable:i}=a.useContext(pr),o=a.useContext(en),l=a.useMemo(()=>et(t.modalRef,n),[t.modalRef,n]),s=$e(l),d=Tn(s),c=me({...t,defaultClassName:"react-aria-Modal",values:{isEntering:d,isExiting:r,state:o}});return a.createElement(ue.div,{...G(ce(t,{global:!0}),e),...c,ref:s,"data-entering":d||void 0,"data-exiting":r||void 0},i&&a.createElement(hd,{onDismiss:o.close}),c.children)}const jc=a.createContext(null),Gc=a.forwardRef(function(e,n){let{inputRef:r=null,...i}=e;[e,n]=xe(i,n,jc);let o=$e(et(r,e.inputRef!==void 0?e.inputRef:null)),l=fr(e),{labelProps:s,inputProps:d,isSelected:c,isDisabled:u,isReadOnly:f,isPressed:m}=pc({...Lt(e),children:typeof e.children=="function"?!0:e.children},l,o),{isFocused:v,isFocusVisible:y,focusProps:g}=Ye(),w=e.isDisabled||e.isReadOnly,{hoverProps:x,isHovered:E}=bt({...e,isDisabled:w}),C=me({...e,defaultClassName:"react-aria-Switch",values:{isSelected:c,isPressed:m,isHovered:E,isFocused:v,isFocusVisible:y,isDisabled:u,isReadOnly:f,state:l}}),k=ce(e,{global:!0});return delete k.id,delete k.onClick,a.createElement(ue.label,{...G(k,s,x,C),ref:n,slot:e.slot||void 0,"data-selected":c||void 0,"data-pressed":m||void 0,"data-hovered":E||void 0,"data-focused":v||void 0,"data-focus-visible":y||void 0,"data-disabled":u||void 0,"data-readonly":f||void 0},a.createElement(er,{elementType:"span"},a.createElement("input",{...G(d,g),ref:o})),C.children)}),tn=a.createContext(null),Xe=a.createContext(null),qc=a.forwardRef(function(e,n){[e,n]=xe(e,n,tn);let{children:r,orientation:i="horizontal"}=e;return r=a.useMemo(()=>typeof r=="function"?r({orientation:i,defaultChildren:null}):r,[r,i]),a.createElement(Jd,{content:r},o=>a.createElement(Zc,{props:e,collection:o,tabsRef:n}))});function Zc({props:t,tabsRef:e,collection:n}){let{orientation:r="horizontal"}=t,i=Mc({...t,collection:n,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:s}=Ye({within:!0}),d=a.useMemo(()=>({orientation:r,isFocusWithin:l,isFocusVisible:s}),[r,l,s]),c=me({...t,defaultClassName:"react-aria-Tabs",values:d}),u=ce(t,{global:!0});return a.createElement(ue.div,{...G(u,c,o),ref:e,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},a.createElement(mt,{values:[[tn,t],[Xe,i]]},c.children))}const Yc=a.forwardRef(function(e,n){return a.useContext(Xe)?a.createElement(Xc,{props:e,forwardedRef:n}):a.createElement(lc,e)});function Xc({props:t,forwardedRef:e}){let n=a.useContext(Xe),{CollectionRoot:r}=a.useContext(Bo),{orientation:i="horizontal",keyboardActivation:o="automatic"}=$t(tn),l=$e(e),{tabListProps:s}=bc({...t,orientation:i,keyboardActivation:o},n,l),d=me({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:i,state:n}}),c=ce(t,{global:!0});return delete c.id,a.createElement(ue.div,{...G(c,d,s),ref:l,"data-orientation":i||void 0},a.createElement(Oc,null,a.createElement(r,{collection:n.collection,persistedKeys:dc(n.selectionManager.focusedKey)})))}class nl extends Et{}nl.type="item";const Jc=ic(nl,(t,e,n)=>{let r=a.useContext(Xe),i=$e(e),{tabProps:o,isSelected:l,isDisabled:s,isPressed:d}=mc({key:n.key,...t},r,i),{focusProps:c,isFocused:u,isFocusVisible:f}=Ye(),{hoverProps:m,isHovered:v}=bt({isDisabled:s,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),y=me({...t,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:s,isFocused:u,isFocusVisible:f,isPressed:d,isHovered:v}}),g=n.props.href?ue.a:ue.div,w=ce(t,{global:!0});return delete w.id,delete w.onClick,a.createElement(g,{...G(w,y,o,c,m),ref:i,"data-selected":l||void 0,"data-disabled":s||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-pressed":d||void 0,"data-hovered":v||void 0},a.createElement(Ac.Provider,{value:{isSelected:l}},y.children))}),Qc=Ct(function(e,n){const r=a.useContext(Xe);let i=$e(n),o=r.selectedKey===e.id,[l,s]=a.useState(r.selectedKey!=null?o:null);l==null&&r.selectedKey!=null?s(o):!o&&l&&s(!1);let d=Dn(i,o);return!o&&!e.shouldForceMount&&!d?null:a.createElement(Rc,{...e,tabPanelRef:i,isInitiallySelected:l||!1,isExiting:d})});function Rc(t){let e=a.useContext(Xe),{id:n,tabPanelRef:r,isInitiallySelected:i,isExiting:o,...l}=t,{tabPanelProps:s}=vc(t,e,r),{focusProps:d,isFocused:c,isFocusVisible:u}=Ye(),f=e.selectedKey===t.id,m=Tn(r)&&!i,v=me({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:u,isInert:qr(!f),isEntering:m,isExiting:o,state:e}}),y=ce(l,{global:!0});delete y.id;let g=f?G(y,s,d,v):G(y,v);return a.createElement(ue.div,{...g,ref:r,"data-focused":c||void 0,"data-focus-visible":u||void 0,inert:qr(!f||t.inert),"data-inert":f?void 0:"true","data-entering":m||void 0,"data-exiting":o||void 0},a.createElement(mt,{values:[[tn,null],[Xe,null]]},a.createElement(Bo.Provider,{value:zo},v.children)))}const eu=a.createContext({}),tu=a.createContext(null),nu=Ct(function(e,n){[e,n]=xe(e,n,tu);let{validationBehavior:r}=$t(Qo)||{};var i,o;let l=(o=(i=e.validationBehavior)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:"native",s=a.useRef(null);[e,s]=xe(e,s,us);let[d,c]=la(!e["aria-label"]&&!e["aria-labelledby"]),[u,f]=a.useState("input"),{labelProps:m,inputProps:v,descriptionProps:y,errorMessageProps:g,...w}=zd({...Lt(e),inputElementType:u,label:c,validationBehavior:l},s),x=a.useCallback(k=>{s.current=k,k&&f(k instanceof HTMLTextAreaElement?"textarea":"input")},[s]),E=me({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:w.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),C=ce(e,{global:!0});return delete C.id,a.createElement(ue.div,{...C,...E,ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":w.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},a.createElement(mt,{values:[[jo,{...m,ref:d}],[Ro,{...v,ref:x}],[eu,{...v,ref:x}],[Sc,{role:"presentation",isInvalid:w.isInvalid,isDisabled:e.isDisabled||!1}],[qo,{slots:{description:y,errorMessage:g}}],[Ic,w]]},E.children))}),ru=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},iu=(t,e)=>({classGroupId:t,validator:e}),rl=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),nn="-",il=[],ou="arbitrary..",lu=t=>{const e=au(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return su(l);const s=l.split(nn),d=s[0]===""&&s.length>1?1:0;return ol(s,d,e)},getConflictingClassGroupIds:(l,s)=>{if(s){const d=r[l],c=n[l];return d?c?ru(c,d):d:c||il}return n[l]||il}}},ol=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],o=n.nextPart.get(i);if(o){const c=ol(t,e+1,o);if(c)return c}const l=n.validators;if(l===null)return;const s=e===0?t.join(nn):t.slice(e).join(nn),d=l.length;for(let c=0;c<d;c++){const u=l[c];if(u.validator(s))return u.classGroupId}},su=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?ou+r:void 0})(),au=t=>{const{theme:e,classGroups:n}=t;return du(n,e)},du=(t,e)=>{const n=rl();for(const r in t){const i=t[r];mr(i,n,r,e)}return n},mr=(t,e,n,r)=>{const i=t.length;for(let o=0;o<i;o++){const l=t[o];cu(l,e,n,r)}},cu=(t,e,n,r)=>{if(typeof t=="string"){uu(t,e,n);return}if(typeof t=="function"){fu(t,e,n,r);return}hu(t,e,n,r)},uu=(t,e,n)=>{const r=t===""?e:ll(e,t);r.classGroupId=n},fu=(t,e,n,r)=>{if(pu(t)){mr(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(iu(n,t))},hu=(t,e,n,r)=>{const i=Object.entries(t),o=i.length;for(let l=0;l<o;l++){const[s,d]=i[l];mr(d,ll(e,s),n,r)}},ll=(t,e)=>{let n=t;const r=e.split(nn),i=r.length;for(let o=0;o<i;o++){const l=r[o];let s=n.nextPart.get(l);s||(s=rl(),n.nextPart.set(l,s)),n=s}return n},pu=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,mu=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},vr="!",sl=":",vu=[],al=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gu=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const o=[];let l=0,s=0,d=0,c;const u=i.length;for(let g=0;g<u;g++){const w=i[g];if(l===0&&s===0){if(w===sl){o.push(i.slice(d,g)),d=g+1;continue}if(w==="/"){c=g;continue}}w==="["?l++:w==="]"?l--:w==="("?s++:w===")"&&s--}const f=o.length===0?i:i.slice(d);let m=f,v=!1;f.endsWith(vr)?(m=f.slice(0,-1),v=!0):f.startsWith(vr)&&(m=f.slice(1),v=!0);const y=c&&c>d?c-d:void 0;return al(o,v,m,y)};if(e){const i=e+sl,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):al(vu,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},bu=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],s=l[0]==="[",d=e.has(l);s||d?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},yu=t=>({cache:mu(t.cacheSize),parseClassName:gu(t),sortModifiers:bu(t),...lu(t)}),xu=/\s+/,wu=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=e,l=[],s=t.trim().split(xu);let d="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:f,modifiers:m,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:g}=n(u);if(f){d=u+(d.length>0?" "+d:d);continue}let w=!!g,x=r(w?y.substring(0,g):y);if(!x){if(!w){d=u+(d.length>0?" "+d:d);continue}if(x=r(y),!x){d=u+(d.length>0?" "+d:d);continue}w=!1}const E=m.length===0?"":m.length===1?m[0]:o(m).join(":"),C=v?E+vr:E,k=C+x;if(l.indexOf(k)>-1)continue;l.push(k);const N=i(x,w);for(let H=0;H<N.length;++H){const F=N[H];l.push(C+F)}d=u+(d.length>0?" "+d:d)}return d},Eu=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=dl(n))&&(i&&(i+=" "),i+=r);return i},dl=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=dl(t[r]))&&(n&&(n+=" "),n+=e);return n},Cu=(t,...e)=>{let n,r,i,o;const l=d=>{const c=e.reduce((u,f)=>f(u),t());return n=yu(c),r=n.cache.get,i=n.cache.set,o=s,s(d)},s=d=>{const c=r(d);if(c)return c;const u=wu(d,n);return i(d,u),u};return o=l,(...d)=>o(Eu(...d))},Pu=[],se=t=>{const e=n=>n[t]||Pu;return e.isThemeGetter=!0,e},cl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ul=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ku=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Du=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Iu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oe=t=>ku.test(t),W=t=>!!t&&!Number.isNaN(Number(t)),Ae=t=>!!t&&Number.isInteger(Number(t)),gr=t=>t.endsWith("%")&&W(t.slice(0,-1)),_e=t=>Nu.test(t),fl=()=>!0,Ku=t=>Tu.test(t)&&!Du.test(t),br=()=>!1,_u=t=>Mu.test(t),Su=t=>Iu.test(t),$u=t=>!_(t)&&!$(t),Lu=t=>ze(t,bl,br),_=t=>cl.test(t),Je=t=>ze(t,yl,Ku),hl=t=>ze(t,Uu,W),Fu=t=>ze(t,wl,fl),Ou=t=>ze(t,xl,br),pl=t=>ze(t,vl,br),Au=t=>ze(t,gl,Su),rn=t=>ze(t,El,_u),$=t=>ul.test(t),kt=t=>Qe(t,yl),zu=t=>Qe(t,xl),ml=t=>Qe(t,vl),Vu=t=>Qe(t,bl),Bu=t=>Qe(t,gl),on=t=>Qe(t,El,!0),Hu=t=>Qe(t,wl,!0),ze=(t,e,n)=>{const r=cl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Qe=(t,e,n=!1)=>{const r=ul.exec(t);return r?r[1]?e(r[1]):n:!1},vl=t=>t==="position"||t==="percentage",gl=t=>t==="image"||t==="url",bl=t=>t==="length"||t==="size"||t==="bg-size",yl=t=>t==="length",Uu=t=>t==="number",xl=t=>t==="family-name",wl=t=>t==="number"||t==="weight",El=t=>t==="shadow",Wu=Cu(()=>{const t=se("color"),e=se("font"),n=se("text"),r=se("font-weight"),i=se("tracking"),o=se("leading"),l=se("breakpoint"),s=se("container"),d=se("spacing"),c=se("radius"),u=se("shadow"),f=se("inset-shadow"),m=se("text-shadow"),v=se("drop-shadow"),y=se("blur"),g=se("perspective"),w=se("aspect"),x=se("ease"),E=se("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...k(),$,_],H=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[$,_,d],I=()=>[Oe,"full","auto",...P()],z=()=>[Ae,"none","subgrid",$,_],ee=()=>["auto",{span:["full",Ae,$,_]},Ae,$,_],ne=()=>[Ae,"auto",$,_],q=()=>["auto","min","max","fr",$,_],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],Z=()=>[Oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Q=()=>[Oe,"screen","full","dvw","lvw","svw","min","max","fit",...P()],re=()=>[Oe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],h=()=>[t,$,_],M=()=>[...k(),ml,pl,{position:[$,_]}],b=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",Vu,Lu,{size:[$,_]}],S=()=>[gr,kt,Je],L=()=>["","none","full",c,$,_],X=()=>["",W,kt,Je],ae=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[W,gr,ml,pl],fe=()=>["","none",y,$,_],ke=()=>["none",W,$,_],fn=()=>["none",W,$,_],_r=()=>[W,$,_],hn=()=>[Oe,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[fl],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[$u],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",W],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Oe,_,$,w]}],container:["container"],columns:[{columns:[W,_,$,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",$,_]}],basis:[{basis:[Oe,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,Oe,"auto","initial","none",_]}],grow:[{grow:["",W,$,_]}],shrink:[{shrink:["",W,$,_]}],order:[{order:[Ae,"first","last","none",$,_]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...Q()]}],"min-inline-size":[{"min-inline":["auto",...Q()]}],"max-inline-size":[{"max-inline":["none",...Q()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[s,"screen",...Z()]}],"min-w":[{"min-w":[s,"screen","none",...Z()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,kt,Je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Hu,Fu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gr,_]}],"font-family":[{font:[zu,Ou,e]}],"font-features":[{"font-features":[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,$,_]}],"line-clamp":[{"line-clamp":[W,"none",$,hl]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",$,_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",$,Je]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[W,"auto",$,_]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:b()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,$,_],radial:["",$,_],conic:[Ae,$,_]},Bu,Au]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-bs":[{"border-bs":h()}],"border-color-be":[{"border-be":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,$,_]}],"outline-w":[{outline:["",W,kt,Je]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",u,on,rn]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",f,on,rn]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[W,Je]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",m,on,rn]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[W,$,_]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[$,_]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:b()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,_]}],filter:[{filter:["","none",$,_]}],blur:[{blur:fe()}],brightness:[{brightness:[W,$,_]}],contrast:[{contrast:[W,$,_]}],"drop-shadow":[{"drop-shadow":["","none",v,on,rn]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",W,$,_]}],"hue-rotate":[{"hue-rotate":[W,$,_]}],invert:[{invert:["",W,$,_]}],saturate:[{saturate:[W,$,_]}],sepia:[{sepia:["",W,$,_]}],"backdrop-filter":[{"backdrop-filter":["","none",$,_]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[W,$,_]}],"backdrop-contrast":[{"backdrop-contrast":[W,$,_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,$,_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,$,_]}],"backdrop-invert":[{"backdrop-invert":["",W,$,_]}],"backdrop-opacity":[{"backdrop-opacity":[W,$,_]}],"backdrop-saturate":[{"backdrop-saturate":[W,$,_]}],"backdrop-sepia":[{"backdrop-sepia":["",W,$,_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",$,_]}],ease:[{ease:["linear","initial",x,$,_]}],delay:[{delay:[W,$,_]}],animate:[{animate:["none",E,$,_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,$,_]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:fn()}],"scale-x":[{"scale-x":fn()}],"scale-y":[{"scale-y":fn()}],"scale-z":[{"scale-z":fn()}],"scale-3d":["scale-3d"],skew:[{skew:_r()}],"skew-x":[{"skew-x":_r()}],"skew-y":[{"skew-y":_r()}],transform:[{transform:[$,_,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:hn()}],"translate-x":[{"translate-x":hn()}],"translate-y":[{"translate-y":hn()}],"translate-z":[{"translate-z":hn()}],"translate-none":["translate-none"],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,_]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,_]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[W,kt,Je,hl]}],stroke:[{stroke:["none",...h()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function A(...t){return Wu(t.filter(Boolean))}const ju=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-9 5h2V7h-2zm0 8h2v-6h-2z"})),Gu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M2 10h2v2H2zm0 4h2v-2H2zm20-4h-2v2h2zm0 4h-2v-2h2zM4 8h2v2H4zm0 8h2v-2H4zm16-8h-2v2h2zm0 8h-2v-2h2zM6 6h2v2H6zm0 12h2v-2H6zM18 6h-2v2h2zm0 12h-2v-2h2zM8 4h2v2H8zm0 16h2v-2H8zm8-16h-2v2h2zm0 16h-2v-2h2zM10 2h2v2h-2zm0 20h2v-2h-2zm4-20h-2v2h2zm0 20h-2v-2h2zm-3-5h2v-2h-2zm0-4h2V7h-2z"})),qu=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM20 4h2v16h-2zM2 4h2v16H2zm9 2h2v8h-2zm0 10h2v2h-2z"})),Cl=t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z"})),Zu={Info:ju,Warning:Gu,Error:qu,Done:Cl,Check:Cl,Close:t=>p.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,children:p.jsx("path",{d:"M5 5h2v2H5zM7 7h2v2H7zM9 9h2v2H9zM11 11h2v2h-2zM13 13h2v2h-2zM15 15h2v2h-2zM17 17h2v2h-2zM17 5h2v2h-2zM15 7h2v2h-2zM13 9h2v2h-2zM9 13h2v2H9zM7 15h2v2H7zM5 17h2v2H5z"})}),"Chevron Up":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 8h-2v2h2V8Zm-2 2H9v2h2v-2Zm4 0h-2v2h2v-2Zm-6 2H7v2h2v-2Zm8 0h-2v2h2v-2ZM7 14H5v2h2v-2Zm12 0h-2v2h2v-2Z"})),"Chevron Down":t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 16h-2v-2h2v2Zm-2-2H9v-2h2v2Zm4 0h-2v-2h2v2Zm-6-2H7v-2h2v2Zm8 0h-2v-2h2v2ZM7 10H5V8h2v2Zm12 0h-2V8h2v2Z"})),App:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 2h16v2H4zm0 6h16v2H4zm0 12h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zM5 5h2v2H5zm3 0h2v2H8z"})),Cancel:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 11h16v2H4z"})),Fullscreen:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M4 13h16v-2H4zm7-8h2V3h-2zM9 7h4V5H9zm4 0h2V5h-2zm2 2h2V7h-2zM7 9h8V7H7zm4 10h2v2h-2zm-2-2h4v2H9zm4 0h2v2h-2zm2-2h2v2h-2zm-8 0h8v2H7z"})),Add:t=>a.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),a.createElement("path",{d:"M13 11h7v2h-7v7h-2v-7H4v-2h7V4h2v7Z"}))},Yu={L:56,S:24},pe=({name:t,size:e="L",className:n="",onClick:r,color:i,role:o,"aria-label":l})=>{const s=Zu[t];if(!s)return null;const d=Yu[e];return p.jsx("span",{className:A("icon",o&&"icon--button",n),onClick:r,role:o,"aria-label":l||`${t} icon`,style:i?{color:i}:void 0,children:p.jsx(s,{width:d,height:d,className:"icon__svg"})})};function yr(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function xr(t,e){const[n,r]=a.useState(!1),i=a.useRef(!1),o=a.useCallback(()=>{if(!(i.current||!e)){if(yr()){e();return}i.current=!0,r(!0)}},[e]),l=a.useCallback(s=>{s.animationName===t&&i.current&&(i.current=!1,r(!1),e==null||e())},[t,e]);return{isClosing:n,triggerClose:o,handleAnimationEnd:l}}const Xu={info:"default",success:"success",warning:"warning",error:"error",default:"default",brand:"brand"},Ju={brand:"Info",gray:"Info",default:"Info",error:"Error",warning:"Warning",success:"Done"};function Qu(t,e){return t||Xu[e||"info"]||"default"}function Ru(t){return t==="full-width"?"full-width":"floating"}const Pl=a.forwardRef(({color:t,size:e="floating",type:n,title:r,children:i,actions:o,onClose:l,onClickHere:s,className:d},c)=>{const u=Qu(t,n),f=Ru(e),{isClosing:m,triggerClose:v,handleAnimationEnd:y}=xr("alert-exit",l),g=[...o||[],...s?[{label:"Click here",onClick:s}]:[]];return p.jsxs("div",{ref:c,className:A("relative w-full flex flex-col gap-4 p-4","font-dos text-dos-text-sm","border border-dos-border-default rounded-dos-base","eidotter-alert",`eidotter-alert--${u}`,f==="floating"&&"max-w-[1216px]",f==="full-width"&&"eidotter-alert--full-width max-w-none",m&&"eidotter-alert--closing",d),onAnimationEnd:y,role:"alert","data-color":u,"data-size":f,children:[p.jsx("div",{className:"eidotter-alert__icon",children:p.jsx(pe,{name:Ju[u]||"Info",size:"S","aria-label":`${u} alert`})}),p.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",l&&"pr-6"),children:[(r||i)&&p.jsxs("div",{className:"flex flex-col gap-1",children:[r&&p.jsx("div",{className:"eidotter-alert__title font-dos leading-[140%]",children:r}),i&&p.jsx("div",{className:"eidotter-alert__text font-dos leading-[140%]",children:i})]}),g.length>0&&p.jsx("div",{className:"flex flex-row gap-3",children:g.map((w,x)=>p.jsxs(le,{className:"eidotter-alert__action",onPress:w.onClick,children:[w.label,w.icon]},x))})]}),l&&p.jsx(le,{className:"eidotter-alert__close",onPress:v,"aria-label":"Close alert",children:p.jsx(pe,{name:"Close",size:"S"})})]})});Pl.displayName="Alert";const kl=({title:t,children:e,defaultExpanded:n=!1,isHovered:r=!1,isActive:i=!1,onToggle:o})=>{const[l,s]=a.useState(n);a.useEffect(()=>{s(n)},[n]);const d=()=>{const c=!l;s(c),o==null||o(c)};return p.jsxs("div",{className:A("w-full border border-dos-border-default text-cga-amber font-dos","eidotter-section",l&&"eidotter-section--expanded",r&&"eidotter-section--hover",i&&"eidotter-section--active"),children:[p.jsxs(le,{className:"eidotter-section__header w-full flex justify-between items-center px-4 py-2 bg-transparent border-0 text-inherit font-[inherit] cursor-pointer text-left",onPress:d,"aria-expanded":l,children:[p.jsx("div",{className:"flex-1 text-base leading-6",children:t}),p.jsx("div",{className:"eidotter-section__icon flex items-center justify-center w-6 h-6 ml-2 text-inherit",children:p.jsx(pe,{name:l?"Chevron Up":"Chevron Down",size:"S"})})]}),p.jsx("div",{className:"eidotter-section__content",inert:l?void 0:!0,children:e})]})},ef=({sections:t,defaultExpandedIndex:e=-1,className:n})=>{const[,r]=a.useState(e),i=(o,l)=>{r(l?o:-1)};return p.jsx("div",{className:A("w-full flex flex-col items-stretch gap-2 text-left text-base font-dos text-cga-amber","eidotter-accordion-fill",n),children:t.map((o,l)=>p.jsx(kl,{title:o.title,defaultExpanded:l===e,onToggle:s=>i(l,s),children:o.content},l))})},Nl={xs:"text-dos-text-xs px-2 py-1 min-h-6 gap-1",sm:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",md:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",lg:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2",xl:"text-dos-text-xl px-5 py-3 min-h-11 gap-2",small:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1",medium:"text-dos-text-md px-3 py-2 min-h-8 gap-1.5",large:"text-dos-text-lg px-4 py-2.5 min-h-10 gap-2"},Tl={primary:"eidotter-btn--primary",secondary:"eidotter-btn--secondary",tertiary:"eidotter-btn--tertiary",destructive:"eidotter-btn--destructive",ghost:"eidotter-btn--ghost",link:"eidotter-btn--link"},ln=a.forwardRef(({variant:t="primary",size:e="md",type:n="button",disabled:r=!1,loading:i=!1,children:o,onPress:l,onClick:s,className:d,fullWidth:c=!1,iconOnly:u=!1,...f},m)=>{const v=r||i;return p.jsxs(le,{ref:m,type:n,isDisabled:v,isPending:i||void 0,onPress:y=>{if(l)l(y);else if(s){const g={type:"press",target:y.target,currentTarget:y.target,preventDefault:()=>{},stopPropagation:()=>{}};s(g)}},className:A("inline-flex items-center justify-center relative","border-2 border-solid","font-dos leading-none whitespace-nowrap select-none","outline-none cursor-pointer","transition-all duration-100 ease-linear",Nl[e]||Nl.md,Tl[t]||Tl.primary,v&&"opacity-50 cursor-not-allowed",i&&"cursor-wait",c&&"w-full",u&&"aspect-square !px-0","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-dos-border-focus",d),"data-loading":i||void 0,"data-variant":t,...f,children:[i&&p.jsx("span",{className:"eidotter-btn__loading","aria-hidden":"true",children:"█"}),p.jsx("span",{className:A("inline-flex items-center justify-center",i&&"opacity-70"),children:o})]})});ln.displayName="Button";const Dl={default:"eidotter-card--default",elevated:"eidotter-card--elevated",bordered:"eidotter-card--bordered",glow:"eidotter-card--glow",interactive:"eidotter-card--interactive",minimal:"eidotter-card--minimal",callout:"eidotter-card--callout"},Ml=a.forwardRef(({title:t,children:e,footer:n,variant:r="default",className:i,...o},l)=>p.jsxs("div",{ref:l,className:A("border-2 border-solid border-dos-border-default","font-dos text-cga-amber","eidotter-card",Dl[r]||Dl.default,i),...o,children:[t&&p.jsx("div",{className:"eidotter-card__header px-3 py-2 border-b border-dos-text-disabled bg-cga-amber-dim",children:p.jsx("span",{className:"text-dos-text-secondary text-dos-text-md uppercase",children:t})}),p.jsx("div",{className:"p-3",children:e}),n&&p.jsx("div",{className:"eidotter-card__footer px-3 py-2 border-t border-dos-text-disabled bg-dos-bg-secondary",children:n})]}));Ml.displayName="Card";const Il=a.forwardRef(({checked:t,defaultChecked:e,onChange:n,indeterminate:r=!1,label:i,disabled:o=!1,size:l="md",name:s,value:d,className:c,"aria-label":u,...f},m)=>p.jsx(_c,{ref:m,isSelected:t,defaultSelected:e,isIndeterminate:r,onChange:n,isDisabled:o,name:s,value:d,"aria-label":u||i,className:A("inline-flex items-center gap-2 cursor-pointer select-none group","font-dos",l==="sm"?"text-dos-text-xs":"text-dos-text-sm","eidotter-checkbox",o&&"opacity-60 cursor-not-allowed",c),"data-size":l,...f,children:({isSelected:v,isIndeterminate:y})=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:A("eidotter-checkbox__box",v&&"eidotter-checkbox__box--checked",y&&"eidotter-checkbox__box--indeterminate"),children:y?"[-]":v?"[X]":"[ ]"}),i&&p.jsx("span",{className:"eidotter-checkbox__label",children:i})]})}));Il.displayName="Checkbox";const tf=({prompt:t="C:\\>",onCommand:e,autoFocus:n=!1,className:r="",placeholder:i,disabled:o=!1})=>{const[l,s]=a.useState(""),d=a.useRef(null);a.useEffect(()=>{n&&d.current&&d.current.focus()},[n]);const c=f=>{f.key==="Enter"&&l.trim()&&!o&&(e(l.trim()),s(""))},u=()=>{!o&&d.current&&d.current.focus()};return p.jsxs("div",{className:`command-prompt ${o?"command-prompt--disabled":""} ${r}`.trim(),onClick:u,role:"textbox","aria-label":"Command prompt",children:[p.jsx("span",{className:"command-prompt__prompt","aria-hidden":"true",children:t}),p.jsxs("div",{className:"command-prompt__input-wrapper",children:[p.jsx("input",{ref:d,className:"command-prompt__input",value:l,onChange:f=>s(f.target.value),onKeyDown:c,autoFocus:n,spellCheck:!1,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",placeholder:i,disabled:o,"aria-label":"Command input",size:l.length||1}),p.jsx("span",{className:"command-prompt__cursor","aria-hidden":"true",children:"█"})]})]})},sn="█",an="░",wr="▓",nf="▒",Kl={sm:"text-xs",md:"text-base",lg:"text-lg",small:"text-xs",medium:"text-base",large:"text-lg"},_l={default:"eidotter-progress--default",success:"eidotter-progress--success",warning:"eidotter-progress--warning",error:"eidotter-progress--error"};function rf(t,e,n){const r=e-t;if(n==="gradient"&&t>0&&t<e){const i=Math.min(2,r),o=r-i,l=(i>=1?wr:"")+(i>=2?nf:"");return{filled:sn.repeat(t),transition:l,empty:an.repeat(o)}}return{filled:sn.repeat(t),transition:"",empty:an.repeat(r)}}const Er=a.forwardRef(({value:t=0,max:e=100,indeterminate:n=!1,variant:r="default",size:i="md",trackStyle:o="block",blocks:l=20,showLabel:s=!1,fullWidth:d=!1,glow:c=!1,valueText:u,className:f,"aria-label":m,...v},y)=>{const g=Math.min(80,Math.max(3,Math.floor(l))),w=Math.min(100,Math.max(0,t/e*100)),x=Math.round(w/100*g),E=A("inline-flex items-center gap-2 font-dos","eidotter-progress",Kl[i]||Kl.md,_l[r]||_l.default,c&&"eidotter-progress--glow",d&&"eidotter-progress--full-width",n&&"eidotter-progress--indeterminate",o==="bordered"&&"eidotter-progress--bordered",f),C={"aria-label":m||`Progress: ${n?"loading":`${Math.round(w)}%`}`};n||(C["aria-valuenow"]=t,C["aria-valuemin"]=0,C["aria-valuemax"]=e),u&&(C["aria-valuetext"]=u);const k=o==="bordered",N=A("eidotter-progress__track",k&&"eidotter-progress__track--borderless");if(n){const I=an.repeat(g);return p.jsxs("div",{ref:y,className:E,role:"progressbar",...C,...v,children:[p.jsxs("span",{className:N,children:[k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"["}),p.jsxs("span",{className:"eidotter-progress__bar",children:[p.jsx("span",{className:"eidotter-progress__empty",children:I}),p.jsxs("span",{className:"eidotter-progress__scanner",children:[wr,sn,wr]})]}),k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&p.jsx("span",{className:"eidotter-progress__label",children:"..."})]})}const H=sn.repeat(g),F=an.repeat(g),{transition:P}=rf(x,g,o);return p.jsxs("div",{ref:y,className:E,role:"progressbar",...C,...v,children:[p.jsxs("span",{className:N,children:[k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"["}),p.jsxs("span",{className:"eidotter-progress__bar",children:[p.jsx("span",{className:"eidotter-progress__empty",children:F}),p.jsx("span",{className:"eidotter-progress__fill",style:{"--fill-pct":String(w)},children:H}),P&&p.jsx("span",{className:"eidotter-progress__transition",style:{"--fill-pct":String(w)},children:P})]}),k&&p.jsx("span",{className:"eidotter-progress__bracket",children:"]"})]}),s&&p.jsxs("span",{className:"eidotter-progress__label",children:[Math.round(w),"%"]})]})});Er.displayName="Progress";const Sl={default:"eidotter-input--default",error:"eidotter-input--error"},$l=a.forwardRef(({variant:t="default",label:e,description:n,errorMessage:r,disabled:i,className:o,onChange:l,isRequired:s,...d},c)=>{const u=t==="error";return p.jsxs(nu,{isDisabled:i,isInvalid:u,isRequired:s,className:A("eidotter-text-field","flex flex-col gap-1",o),children:[e&&p.jsx(yc,{className:"text-cga-amber font-dos text-xs uppercase tracking-wider",children:e}),p.jsx(Lc,{ref:c,className:A("w-full bg-transparent text-cga-amber font-dos text-base p-2","border-2 border-dos-border-default outline-none box-border","eidotter-input",Sl[t]||Sl.default,i&&"eidotter-input--disabled"),onChange:l,...d}),n&&!u&&p.jsx(Zo,{slot:"description",className:"text-cga-brown font-dos text-xs",children:n}),r&&u&&p.jsx(Zo,{slot:"errorMessage",className:"text-cga-bright-red font-dos text-xs",children:r})]})});$l.displayName="Input";const of=({size:t="md",title:e="MS-DOS Terminal",state:n="active",resizable:r=!0,minimizable:i=!1,maximizable:o=!1,closeable:l=!1,children:s,onMinimize:d,onMaximize:c,onClose:u,onFocus:f,className:m="",autoFocus:v=!1})=>{const g={sm:"small",md:"medium",lg:"large"}[t]??t,[w,x]=a.useState(n),[E,C]=a.useState(!1),k=a.useRef(null);a.useEffect(()=>{v&&k.current&&k.current.focus()},[v]);const N=()=>{x("minimized"),d==null||d()},H=()=>{C(!E),c==null||c()},F=()=>{u==null||u()},P=()=>{x("active"),f==null||f()},I=z=>{z.altKey&&z.key==="F4"&&l&&(z.preventDefault(),F())};return w==="minimized"?p.jsx(le,{className:`terminal terminal--minimized ${m}`.trim(),onPress:P,"aria-label":`Restore ${e} window`,children:p.jsxs("div",{className:"terminal__taskbar-item",children:[p.jsx(pe,{name:"App",size:"S"}),p.jsx("span",{className:"terminal__taskbar-title",children:e})]})}):p.jsxs("div",{ref:k,className:`terminal terminal--${g} terminal--${w} ${E?"terminal--maximized":""} ${m}`.trim(),tabIndex:0,role:"dialog","aria-label":`${e} terminal window`,onFocus:P,onKeyDown:I,children:[p.jsxs("div",{className:"terminal__title-bar",children:[p.jsxs("div",{className:"terminal__title",children:[p.jsx(pe,{name:"App",size:"S","aria-hidden":"true"}),p.jsx("span",{className:"terminal__title-text",children:e})]}),(i||o||l)&&p.jsxs("div",{className:"terminal__controls",children:[i&&p.jsx(le,{className:"terminal__control terminal__control--minimize",onPress:N,"aria-label":"Minimize window",children:p.jsx(pe,{name:"Cancel",size:"S"})}),o&&p.jsx(le,{className:"terminal__control terminal__control--maximize",onPress:H,"aria-label":E?"Restore window":"Maximize window",children:p.jsx(pe,{name:E?"Fullscreen":"Add",size:"S"})}),l&&p.jsx(le,{className:"terminal__control terminal__control--close",onPress:F,"aria-label":"Close window",children:p.jsx(pe,{name:"Close",size:"S"})})]})]}),p.jsx("div",{className:"terminal__content",role:"main",children:s||p.jsx("div",{className:"terminal__default-content",children:p.jsxs("div",{className:"terminal__prompt",children:[p.jsx("span",{className:"terminal__path",children:"C:\\\\>"}),p.jsx("span",{className:"terminal__cursor",children:"█"})]})})}),r&&p.jsx("div",{className:"terminal__resize-handle","aria-hidden":"true"})]})},Ll={sm:"eidotter-tabs--sm",md:"eidotter-tabs--md",lg:"eidotter-tabs--lg",small:"eidotter-tabs--sm",medium:"eidotter-tabs--md",large:"eidotter-tabs--lg"},lf={underline:"eidotter-tabs--underline",pills:"eidotter-tabs--pills"},Fl=a.forwardRef(({tabs:t,variant:e="underline",size:n="md",activeTab:r,defaultActiveTab:i,onSelectionChange:o,onTabChange:l,className:s,...d},c)=>{var w,x,E;const u=a.useRef(null),f=a.useRef(r??i??((w=t[0])==null?void 0:w.id)??""),[m,v]=a.useState(r??i??((x=t[0])==null?void 0:x.id)??""),y=o??l,g=a.useCallback(C=>{const k=String(C),N=r??f.current;f.current=k,v(k),y==null||y(k,N)},[r,y]);return a.useLayoutEffect(()=>{const C=u.current;if(!C||e!=="underline")return;const k=()=>{const H=C.querySelector('[aria-selected="true"]');H&&(C.style.setProperty("--indicator-left",`${H.offsetLeft}px`),C.style.setProperty("--indicator-width",`${H.offsetWidth}px`))};k();const N=new ResizeObserver(k);return N.observe(C),()=>N.disconnect()},[r,m,e]),p.jsxs(qc,{ref:c,selectedKey:r,defaultSelectedKey:i??((E=t[0])==null?void 0:E.id),onSelectionChange:g,className:A("eidotter-tabs",lf[e],Ll[n]||Ll.md,s),children:[p.jsxs("div",{ref:u,className:"relative",children:[p.jsx(Yc,{className:"inline-flex items-center font-dos eidotter-tabs__list","aria-label":d["aria-label"],children:t.map(C=>p.jsx(Jc,{id:C.id,isDisabled:C.disabled,className:({isSelected:k,isDisabled:N})=>A("eidotter-tabs__tab",k&&"eidotter-tabs__tab--active",N&&"eidotter-tabs__tab--disabled"),children:C.label},C.id))}),e==="underline"&&p.jsx("span",{className:"eidotter-tabs__indicator","aria-hidden":"true"})]}),t.map(C=>p.jsx(Qc,{id:C.id,className:"hidden"},C.id))]})});Fl.displayName="Tabs";const Ol={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Al={default:"eidotter-badge--default",success:"eidotter-badge--success",warning:"eidotter-badge--warning",error:"eidotter-badge--error",info:"eidotter-badge--info",accent:"eidotter-badge--accent",brand:"eidotter-badge--accent",gray:"eidotter-badge--default",blue:"eidotter-badge--info",indigo:"eidotter-badge--info",purple:"eidotter-badge--info",pink:"eidotter-badge--error",orange:"eidotter-badge--warning"},st=a.forwardRef(({variant:t="default",size:e="md",dot:n=!1,children:r,className:i,...o},l)=>p.jsxs("span",{ref:l,className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","uppercase tracking-wider","rounded-dos-sm","eidotter-badge",Ol[e]||Ol.md,Al[t]||Al.default,i),"data-variant":t,...o,children:[n&&p.jsx("span",{className:"eidotter-badge__dot","aria-hidden":"true"}),p.jsx("span",{className:"eidotter-badge__content",children:r})]}));st.displayName="Badge";const zl=a.forwardRef(({checked:t,defaultChecked:e=!1,onChange:n,onCheckedChange:r,disabled:i=!1,size:o="md",type:l="default",label:s,name:d,value:c,className:u,...f},m)=>p.jsx(Gc,{ref:m,isSelected:t,defaultSelected:e,onChange:n??r,isDisabled:i,name:d,value:c,className:A("inline-flex items-center gap-2 cursor-pointer outline-none font-dos group","eidotter-switch",i&&"opacity-50 cursor-not-allowed",u),"data-size":o,"data-type":l,...f,children:({isSelected:v})=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:A("eidotter-switch__track",v&&"eidotter-switch__track--checked",l==="slim"&&"eidotter-switch__track--slim",o==="sm"&&"eidotter-switch__track--sm"),children:p.jsx("span",{className:"eidotter-switch__thumb"})}),s&&p.jsx("span",{className:"text-[var(--color-cga-amber)]",children:s})]})}));zl.displayName="Switch";const dn="eidotter-breadcrumb__link inline-flex items-center gap-1 text-dos-text-accent opacity-70 no-underline",Vl=({trail:t=[],currentLabel:e,showBackArrow:n=!0,separator:r="/",linkComponent:i,className:o})=>{const l=(s,d)=>{const c=p.jsxs(p.Fragment,{children:[n&&d&&p.jsx("span",{className:"text-[1em] leading-none","aria-hidden":"true",children:"<"}),p.jsx("span",{children:s.label})]});return s.onClick?p.jsx(le,{className:A(dn,"bg-transparent border-0 cursor-pointer font-[inherit] p-0"),onPress:s.onClick,children:c}):s.href?i?p.jsx(i,{href:s.href,className:dn,children:c}):p.jsx("a",{href:s.href,className:dn,children:c}):p.jsx("span",{className:dn,children:c})};return p.jsx("nav",{"aria-label":"Breadcrumb",className:A("font-dos text-xs uppercase tracking-[0.35em]","eidotter-breadcrumb",o),children:p.jsxs("ol",{className:"flex flex-wrap items-center gap-2 list-none m-0 p-0",children:[t.map((s,d)=>{const c=d===t.length-1,u=d<t.length-1;return p.jsxs("li",{className:"flex items-center gap-2",children:[l(s,c),u&&p.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})]},`${s.href??s.label}-${d}`)}),t.length>0&&p.jsx("li",{className:"flex items-center gap-2",children:p.jsx("span",{className:"text-dos-text-accent opacity-40 select-none","aria-hidden":"true",children:r})}),p.jsx("li",{className:"flex items-center gap-2","aria-current":"page",children:p.jsx("span",{className:"text-cga-amber",children:e})})]})})},sf=({scanlines:t=!0,glow:e=!0,flicker:n=!0,bloom:r=!1,powered:i=!0,intensity:o=1,className:l,onPowerStateChange:s,onPowerOn:d,onPowerOff:c})=>{const u=a.useRef(i),[f,m]=a.useState(i?"on":"off");a.useEffect(()=>{const E=u.current;if(u.current=i,E!==i){const C=i?"powering-on":"powering-off";m(C),s==null||s(C)}},[i,s]);const v=()=>{f==="powering-on"?(m("on"),s==null||s("on"),d==null||d()):f==="powering-off"&&(m("off"),s==null||s("off"),c==null||c())},y=E=>{E.animationName!=="retro-power-on"&&E.animationName!=="retro-power-off"||v()},g=E=>{E.propertyName==="opacity"&&(f!=="powering-on"&&f!=="powering-off"||v())},w={"--retro-intensity":o},x=f!=="off";return p.jsx("div",{className:A("fixed inset-0 pointer-events-none z-[9999]","eidotter-retro-effects",f==="powering-off"&&"eidotter-retro-effects--powering-off",f==="powering-on"&&"eidotter-retro-effects--powering-on",f==="off"&&"eidotter-retro-effects--off",l),style:w,"aria-hidden":"true",onAnimationEnd:y,onTransitionEnd:g,children:x&&p.jsxs(p.Fragment,{children:[t&&p.jsx("div",{className:"eidotter-retro-effects__scanlines"}),e&&p.jsx("div",{className:"eidotter-retro-effects__glow"}),n&&p.jsx("div",{className:"eidotter-retro-effects__flicker"}),r&&p.jsx("div",{className:"eidotter-retro-effects__bloom"})]})})},af={sm:"small",md:"medium",lg:"large",small:"small",medium:"medium",large:"large"},df={circle:"eidotter-timeline-node--circle",square:"eidotter-timeline-node--square",diamond:"eidotter-timeline-node--diamond"},cf={default:"eidotter-timeline-node--default",primary:"eidotter-timeline-node--primary",secondary:"eidotter-timeline-node--secondary",accent:"eidotter-timeline-node--accent"},uf={left:"eidotter-timeline-node--label-left",right:"eidotter-timeline-node--label-right",top:"eidotter-timeline-node--label-top",bottom:"eidotter-timeline-node--label-bottom"},Ve=a.forwardRef(({shape:t="circle",variant:e="default",isActive:n=!1,label:r,labelPosition:i="right",size:o="md",className:l,onClick:s,...d},c)=>{const u=af[o]??"medium",f=()=>{s&&s()},m=v=>{s&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),s())};return p.jsxs("div",{ref:c,className:A("inline-flex items-center gap-2 font-dos","eidotter-timeline-node",df[t],cf[e],`eidotter-timeline-node--${u}`,uf[i],n&&"eidotter-timeline-node--active",s&&"eidotter-timeline-node--interactive",l),onClick:f,onKeyDown:m,role:s?"button":void 0,tabIndex:s?0:void 0,"aria-pressed":s?n:void 0,...d,children:[r&&i==="left"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--left",children:r}),r&&i==="top"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--top",children:r}),p.jsx("span",{className:"eidotter-timeline-node__marker","aria-hidden":"true"}),r&&i==="right"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--right",children:r}),r&&i==="bottom"&&p.jsx("span",{className:"eidotter-timeline-node__label eidotter-timeline-node__label--bottom",children:r})]})});Ve.displayName="TimelineNode";const Nt=["year","month","day","hour"];function ff({zoomLevel:t,defaultZoomLevel:e="month",onZoomChange:n}={}){const r=t===void 0,[i,o]=a.useState(e),[l,s]=a.useState([]),d=a.useRef(r);a.useEffect(()=>{d.current&&!r&&s([]),d.current=r},[r]);const c=t??i,u=Nt.indexOf(c),f=u<Nt.length-1,m=u>0,v=l.length>0?l[l.length-1].periodStart:null,y=a.useRef(r),g=a.useRef(f),w=a.useRef(u),x=a.useRef(l),E=a.useRef(n);a.useEffect(()=>{y.current=r,g.current=f,w.current=u,x.current=l,E.current=n});const C=a.useCallback(F=>{var P;y.current&&o(F),(P=E.current)==null||P.call(E,F)},[]),k=a.useCallback((F,P)=>{if(!y.current||!g.current)return;const I=Nt[w.current+1];I!==void 0&&(s(z=>[...z,{periodStart:F,label:P}]),C(I))},[C]),N=a.useCallback(()=>{if(!y.current||x.current.length===0)return;const F=Nt[w.current-1];F!==void 0&&(s(P=>P.slice(0,-1)),C(F))},[C]),H=a.useCallback(()=>{y.current&&(s([]),C("year"))},[C]);return{zoomLevel:c,canZoomIn:f,canZoomOut:m,breadcrumbs:l,currentPeriod:v,isDrillDownEnabled:r,drillDown:k,drillUp:N,reset:H}}function hf({selectedEntryId:t,defaultSelectedEntryId:e=null,onSelectEntry:n}={}){const[r,i]=a.useState(e),o=t!==void 0,l=t!==void 0?t:r,s=a.useRef(l),d=a.useRef(o),c=a.useRef(n);a.useEffect(()=>{s.current=l,d.current=o,c.current=n});const u=a.useCallback(y=>{var g;d.current||i(y),(g=c.current)==null||g.call(c,y)},[]),f=a.useCallback(y=>{u(y)},[u]),m=a.useCallback(()=>{u(null)},[u]),v=a.useCallback(y=>{var g;d.current?(g=c.current)==null||g.call(c,s.current===y?null:y):i(w=>{var E;const x=w===y?null:y;return(E=c.current)==null||E.call(c,x),x})},[]);return{selectedEntryId:l,select:f,deselect:m,toggle:v}}const pf=["January","February","March","April","May","June","July","August","September","October","November","December"],Cr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function cn(t){return new Date(t).getUTCFullYear()}function Pr(t){return new Date(t).getUTCMonth()}function Bl(t){return new Date(t).getUTCDate()}function mf(t){return new Date(t).getUTCHours()}function vf(t){return String(t)}function gf(t,e){return`${pf[e]} ${t}`}function bf(t,e,n){return`${Cr[e]} ${n}`}function yf(t,e,n,r){const i=r>=12?"pm":"am",o=r===0?12:r>12?r-12:r;return`${Cr[e]} ${n}, ${o}${i}`}function xf(t){const e=new Date(t),n=Cr[e.getUTCMonth()],r=e.getUTCDate(),i=e.getUTCFullYear(),o=e.getUTCHours(),l=e.getUTCMinutes(),s=o>=12?"pm":"am",d=o===0?12:o>12?o-12:o,c=l>0?`:${String(l).padStart(2,"0")}`:"";return`${n} ${r}, ${i} at ${d}${c}${s}`}function wf(t){return new Date(Date.UTC(t,0,1)).toISOString()}function Ef(t,e){return new Date(Date.UTC(t,e,1)).toISOString()}function Cf(t,e,n){return new Date(Date.UTC(t,e,n)).toISOString()}function Pf(t,e,n,r){return new Date(Date.UTC(t,e,n,r)).toISOString()}function un(t,e,n,r,i){const o=new Map,l=[];for(const s of t){const d=e(s),c=o.get(d);c?c.push(s):(o.set(d,[s]),l.push(d))}l.sort((s,d)=>i==="asc"?s.localeCompare(d):d.localeCompare(s));for(const[,s]of o)s.sort((d,c)=>{const u=d.date.localeCompare(c.date);return i==="asc"?u:-u});return l.map(s=>({label:n(s),periodStart:r(s),entries:o.get(s)??[]}))}function kf(t){return String(cn(t.date))}function Nf(t){const e=cn(t.date),n=Pr(t.date);return`${e}-${String(n).padStart(2,"0")}`}function Tf(t){const e=cn(t.date),n=Pr(t.date),r=Bl(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`}function Df(t){const e=cn(t.date),n=Pr(t.date),r=Bl(t.date),i=mf(t.date);return`${e}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}-${String(i).padStart(2,"0")}`}function Hl(t){return{year:parseInt(t)}}function Ul(t){const[e,n]=t.split("-");return{year:parseInt(e),month:parseInt(n)}}function Wl(t){const[e,n,r]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r)}}function jl(t){const[e,n,r,i]=t.split("-");return{year:parseInt(e),month:parseInt(n),day:parseInt(r),hour:parseInt(i)}}const Mf={year:4,month:7,day:10};function If(t,e,n){if(e===null||n==="hour")return t;const r=Mf[n];if(r===void 0)return t;const i=e.slice(0,r);return t.filter(o=>o.periodStart.slice(0,r)===i)}function Kf(t,e,n="desc"){if(t.length===0)return[];const r=t.filter(i=>!isNaN(new Date(i.date).getTime()));if(r.length===0)return[];switch(e){case"year":return un(r,kf,i=>{const{year:o}=Hl(i);return vf(o)},i=>{const{year:o}=Hl(i);return wf(o)},n);case"month":return un(r,Nf,i=>{const{year:o,month:l}=Ul(i);return gf(o,l)},i=>{const{year:o,month:l}=Ul(i);return Ef(o,l)},n);case"day":return un(r,Tf,i=>{const{year:o,month:l,day:s}=Wl(i);return bf(o,l,s)},i=>{const{year:o,month:l,day:s}=Wl(i);return Cf(o,l,s)},n);case"hour":return un(r,Df,i=>{const{year:o,month:l,day:s,hour:d}=jl(i);return yf(o,l,s,d)},i=>{const{year:o,month:l,day:s,hour:d}=jl(i);return Pf(o,l,s,d)},n)}}const _f=({zoomLevel:t,canZoomIn:e,canZoomOut:n,onZoomIn:r,onZoomOut:i,onReset:o,breadcrumbs:l=[],onBreadcrumbClick:s})=>{const d=l.length>0;return p.jsxs("div",{className:"timeline-zoom-controls",role:"toolbar","aria-label":"Timeline zoom controls",children:[p.jsx(ln,{variant:"secondary",size:"small",onClick:i,disabled:!n,"aria-label":"Zoom out",children:"[-]"}),d?p.jsx(Vl,{trail:[{label:"ALL",onClick:o},...l.slice(0,-1).map((c,u)=>({label:c.label,onClick:()=>s==null?void 0:s(u)}))],currentLabel:l[l.length-1].label,showBackArrow:!1,separator:">",className:"timeline-zoom-controls__breadcrumb"}):p.jsx(le,{className:"timeline-zoom-controls__level",onPress:o,"aria-label":`Current zoom: ${t}. Click to reset.`,children:p.jsx(st,{variant:"accent",size:"medium",children:t.toUpperCase()})}),p.jsx(ln,{variant:"secondary",size:"small",onClick:r,disabled:!e,"aria-label":"Zoom in",children:"[+]"})]})},kr=({children:t})=>p.jsxs("div",{className:"timeline-axis",children:[p.jsx("div",{className:"timeline-axis__line","aria-hidden":"true"}),p.jsx("div",{className:"timeline-axis__content",children:t})]}),Gl=a.memo(({buckets:t,onBucketClick:e})=>p.jsx("div",{className:"timeline-view timeline-view--year",role:"list",children:t.map(n=>p.jsx("div",{className:"timeline-view__bucket timeline-view__bucket--year",role:"listitem",children:e?p.jsxs(le,{className:"timeline-view__bucket-button",onPress:()=>e(n),children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:p.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]}):p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:n.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:p.jsxs(st,{variant:"default",size:"small",children:[n.entries.length," ",n.entries.length===1?"entry":"entries"]})})]})},n.periodStart))}));Gl.displayName="YearView";const Tt=a.memo(({entry:t,isSelected:e,isExpanded:n=!1,onSelect:r,footer:i,children:o})=>{const l=typeof t.content=="string",s=t.content!=null;return p.jsxs("div",{className:A("eidotter-timeline-card",e&&"eidotter-timeline-card--selected",n&&"eidotter-timeline-card--expanded"),children:[p.jsxs(le,{className:"eidotter-timeline-card__trigger",onPress:()=>r==null?void 0:r(t.id),"aria-expanded":n,children:[p.jsxs("div",{className:"eidotter-timeline-card__header",children:[t.type&&p.jsx("span",{className:"eidotter-timeline-card__type",children:t.type.toUpperCase()}),t.tags&&t.tags.length>0&&p.jsx("span",{className:"eidotter-timeline-card__tags",children:t.tags.map(d=>`#${d}`).join(" ")})]}),p.jsx("p",{className:"eidotter-timeline-card__title",children:t.title}),!n&&l&&(()=>{const d=String(t.content);return p.jsxs("p",{className:"eidotter-timeline-card__preview",children:[d.slice(0,80),d.length>80?"...":""]})})(),o]}),s&&p.jsx("div",{className:"eidotter-timeline-card__body",children:p.jsx("div",{className:"eidotter-timeline-card__body-inner",inert:n?void 0:!0,children:t.content})}),i&&p.jsx("div",{className:"eidotter-timeline-card__footer",children:i})]})});Tt.displayName="TimelineEntryCard";const ql=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n,onBucketClick:r})=>p.jsx("div",{className:"timeline-view timeline-view--month",role:"list",children:t.map(i=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--month",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:i.label,labelPosition:"right",onClick:()=>r==null?void 0:r(i)})}),p.jsx("div",{className:"timeline-view__content",children:i.entries.map(o=>p.jsx(Tt,{entry:o,isSelected:e===o.id,isExpanded:e===o.id,onSelect:n},o.id))})]},i.periodStart))}));ql.displayName="MonthView";const Zl={sm:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",md:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5",lg:"text-dos-text-md px-3 py-1.5 min-h-8 gap-1.5",small:"text-dos-text-xs px-2 py-0.5 min-h-6 gap-1",medium:"text-dos-text-sm px-2.5 py-1 min-h-7 gap-1.5"},Nr=({children:t,variant:e="default",size:n="md",color:r,selected:i=!1,closeable:o=!1,disabled:l=!1,onClick:s,onClose:d,className:c,"aria-label":u,...f})=>{const m=!!s&&!l,{isClosing:v,triggerClose:y,handleAnimationEnd:g}=xr("tag-exit",d),w=C=>{l||((C.key==="Enter"||C.key===" ")&&s&&(C.preventDefault(),s(C)),(C.key==="Delete"||C.key==="Backspace")&&o&&d&&(C.preventDefault(),y()))},x=()=>{l||y()},E=r?{"--tag-color":"var("+r+")"}:void 0;return p.jsxs("span",{className:A("inline-flex items-center justify-center","font-dos leading-none whitespace-nowrap select-none","rounded-dos-sm uppercase tracking-wider",Zl[n]||Zl.md,"eidotter-tag","eidotter-tag--"+e,i&&"eidotter-tag--selected",l&&"opacity-50 cursor-not-allowed",v&&"eidotter-tag--closing",m&&"cursor-pointer",c),style:E,onClick:m?C=>!l&&(s==null?void 0:s(C)):void 0,onKeyDown:w,onAnimationEnd:g,"aria-label":u,"aria-selected":i||void 0,"aria-disabled":l||void 0,"data-variant":e,...m?{role:"button",tabIndex:0}:{},...f,children:[p.jsx("span",{className:"eidotter-tag__content",children:t}),o&&p.jsx(le,{className:"eidotter-tag__close","aria-label":"Remove "+(typeof t=="string"?t:"tag"),excludeFromTabOrder:!0,onPress:x,isDisabled:l,children:"[x]"})]})},Yl={tight:"gap-1",normal:"gap-2",loose:"gap-3"},Tr=({children:t,gap:e="normal",wrap:n=!0,className:r,"aria-label":i,...o})=>p.jsx("div",{className:A("flex",n?"flex-wrap":"flex-nowrap",Yl[e]||Yl.normal,r),role:"group","aria-label":i,...o,children:t}),Xl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>p.jsx("div",{className:"timeline-view timeline-view--day",role:"list",children:t.map(r=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--day",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>p.jsx(Tt,{entry:i,isSelected:e===i.id,isExpanded:e===i.id,onSelect:n,footer:i.tags&&i.tags.length>0?p.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>p.jsx(Nr,{size:"small",variant:"outlined",children:o},o))}):void 0},i.id))})]},r.periodStart))}));Xl.displayName="DayView";const Jl=a.memo(({buckets:t,selectedEntryId:e,onEntrySelect:n})=>p.jsx("div",{className:"timeline-view timeline-view--hour",role:"list",children:t.map(r=>p.jsxs("div",{className:"timeline-view__bucket timeline-view__bucket--hour",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:r.label,labelPosition:"right"})}),p.jsx("div",{className:"timeline-view__content",children:r.entries.map(i=>p.jsxs(Tt,{entry:i,isSelected:e===i.id,isExpanded:!0,onSelect:n,footer:p.jsxs("div",{className:"timeline-view__entry-footer",children:[i.tags&&i.tags.length>0&&p.jsx(Tr,{gap:"tight","aria-label":`Tags for ${i.title}`,children:i.tags.map(o=>p.jsx(Nr,{size:"small",variant:"outlined",children:o},o))}),i.type&&p.jsx(st,{variant:"default",size:"small",children:i.type})]}),children:[p.jsx("time",{className:"timeline-view__timestamp",dateTime:i.date,children:xf(i.date)}),p.jsx("div",{className:"timeline-view__entry-content",children:i.content})]},i.id))})]},r.periodStart))}));Jl.displayName="HourView";const Sf=({zoomLevel:t,buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i})=>{switch(t){case"year":return p.jsx(Gl,{buckets:e,onBucketClick:i});case"month":return p.jsx(ql,{buckets:e,selectedEntryId:n,onEntrySelect:r,onBucketClick:i});case"day":return p.jsx(Xl,{buckets:e,selectedEntryId:n,onEntrySelect:r});case"hour":return p.jsx(Jl,{buckets:e,selectedEntryId:n,onEntrySelect:r});default:return t}},$f=({entries:t,mode:e="interactive",zoomLevel:n,defaultZoomLevel:r="month",onZoomChange:i,selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s,sortOrder:d="desc",scrollToZoom:c=!0,keyboardShortcuts:u=!0,...f})=>{var M;const m=e==="static",v=a.useRef(null),y=a.useRef(null),[g,w]=a.useState(""),{zoomLevel:x,canZoomIn:E,canZoomOut:C,breadcrumbs:k,currentPeriod:N,isDrillDownEnabled:H,drillDown:F,drillUp:P,reset:I}=ff({zoomLevel:n,defaultZoomLevel:r,onZoomChange:i}),{selectedEntryId:z,toggle:ee,deselect:ne}=hf({selectedEntryId:o,defaultSelectedEntryId:l,onSelectEntry:s}),q=a.useMemo(()=>Kf(t,x,d),[t,x,d]),T=k.length>0?["year","month","day","hour"][k.length-1]:null,V=a.useMemo(()=>N&&T?If(q,N,T):q,[q,N,T]);a.useEffect(()=>{if(m||!c)return;const b=v.current;if(!b)return;let D=null;const S=L=>{!L.ctrlKey&&!L.metaKey||(L.preventDefault(),D===null&&(D=requestAnimationFrame(()=>{L.deltaY>0&&P(),D=null})))};return b.addEventListener("wheel",S,{passive:!1}),()=>{b.removeEventListener("wheel",S),D!==null&&cancelAnimationFrame(D)}},[m,c,H,E,P]),a.useEffect(()=>{if(m||!u)return;const b=D=>{var L;if(!((L=v.current)!=null&&L.contains(document.activeElement))&&document.activeElement!==v.current)return;const S=D.ctrlKey||D.metaKey;S&&D.key==="-"?(D.preventDefault(),P()):S&&D.key==="0"?(D.preventDefault(),I(),w("Showing all years")):D.key==="Escape"&&(D.preventDefault(),ne())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[m,u,P,I,ne]);const j=a.useCallback(b=>{E&&(F(b.periodStart,b.label),w(`Showing ${x==="year"?"months":x==="month"?"days":"hours"} in ${b.label}`))},[E,F,x]),Z=a.useRef(k.length);a.useEffect(()=>{var b;if(k.length!==Z.current){Z.current=k.length;const D=(b=y.current)==null?void 0:b.querySelector('.eidotter-timeline-card__trigger, .timeline-view__bucket-button, .eidotter-timeline-node[role="button"]');D&&requestAnimationFrame(()=>D.focus())}},[k.length]);const Q=a.useMemo(()=>m?[...t].sort((b,D)=>{const S=b.date.localeCompare(D.date);return d==="desc"?-S:S}):t,[m,t,d]),re=a.useMemo(()=>new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}),[]),h=b=>{try{return re.format(new Date(b))}catch{return b}};return p.jsxs("div",{ref:v,...f,className:A("font-dos text-cga-amber bg-dos-bg-primary p-4 min-h-[200px]","eidotter-timeline-container",m&&"eidotter-timeline-container--static",f.className),role:"region","aria-label":f["aria-label"]??"Timeline",tabIndex:m?void 0:0,children:[p.jsx("div",{className:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:g}),!m&&p.jsx(_f,{zoomLevel:x,canZoomIn:E,canZoomOut:C,onZoomIn:()=>{},onZoomOut:P,onReset:I,breadcrumbs:H?k:[],onBreadcrumbClick:b=>{const D=k.length-1-b;for(let S=0;S<D;S++)P()}}),p.jsx("div",{ref:y,children:t.length===0?p.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[p.jsx("p",{children:"C:\\TIMELINE> No entries found."}),p.jsx("p",{children:"_"})]}):m?p.jsx(kr,{children:p.jsx("div",{className:"eidotter-timeline-container__static",role:"list","aria-label":"Timeline",children:Q.map(b=>p.jsxs("div",{className:"eidotter-timeline-container__static-entry",role:"listitem",children:[p.jsx("div",{className:"timeline-view__node",children:p.jsx(Ve,{shape:"circle",size:"medium",variant:"default",label:h(b.date),labelPosition:"right"})}),p.jsx(Tt,{entry:b,isSelected:!1,isExpanded:!0})]},b.id))})}):V.length===0&&N?p.jsx(kr,{children:p.jsxs("div",{className:"eidotter-timeline-container__empty",role:"status",children:[p.jsxs("p",{children:["C:\\TIMELINE> No entries in ",((M=k[k.length-1])==null?void 0:M.label)??"this period","."]}),p.jsx("p",{children:"_"})]})}):p.jsx(kr,{children:p.jsx(Sf,{zoomLevel:x,buckets:V,selectedEntryId:z,onEntrySelect:ee,onBucketClick:j})})})]})},Ql=a.forwardRef(({isOpen:t,onOpenChange:e,onClose:n,title:r,children:i,footer:o,className:l},s)=>{const d=a.useRef(t),c=a.useRef(!1);a.useEffect(()=>{t!==d.current&&(d.current=t,c.current||(e==null||e(t),t||n==null||n()),c.current=!1)},[t,e,n]);const u=f=>{c.current=!0,e==null||e(f),f||n==null||n()};return p.jsx(el,{isOpen:t,onOpenChange:u,isDismissable:!0,className:({isEntering:f,isExiting:m})=>A("eidotter-modal-overlay",f&&"eidotter-modal-overlay--entering",m&&"eidotter-modal-overlay--exiting"),children:p.jsx(Hc,{className:({isEntering:f,isExiting:m})=>A("eidotter-modal",f&&"eidotter-modal--entering",m&&"eidotter-modal--exiting"),children:p.jsxs(Vc,{ref:s,"aria-label":r,className:A("eidotter-modal__container outline-none",l),children:[p.jsxs("header",{className:"eidotter-modal__header",children:[p.jsx("h2",{className:"eidotter-modal__title",children:r}),p.jsx(le,{className:"eidotter-modal__close",onPress:()=>u(!1),"aria-label":"Close modal",children:p.jsx(pe,{name:"Close",size:"S"})})]}),p.jsx("div",{className:"eidotter-modal__body",children:i}),o&&p.jsx("footer",{className:"eidotter-modal__footer",children:o})]})})})});Ql.displayName="Modal";const Lf="░▒▓█│┤┐└┴┬├─┼",Ff=4;function Dr(t,e){const{speed:n=40,characters:r=Lf,enabled:i=!0,delay:o=0}=e??{},[l,s]=a.useState(()=>{if(!i||yr())return t;let f="";for(let m=0;m<t.length;m++)t[m]===" "?f+=" ":f+=r[Math.floor(Math.random()*r.length)];return f}),[d,c]=a.useState(!1),u=a.useRef(0);return a.useEffect(()=>{if(!i||yr()){s(t),c(!1);return}let f=0,m=0,v=0,y=o;c(!0);const g=w=>{v||(v=w);const x=w-v;if(y>0){y-=x,v=w,u.current=requestAnimationFrame(g);return}if(x>=n){if(v=w,m++,m>=Ff&&(f++,m=0),f>=t.length){s(t),c(!1);return}let E="";for(let C=0;C<t.length;C++)C<f?E+=t[C]:t[C]===" "?E+=" ":E+=r[Math.floor(Math.random()*r.length)];s(E)}u.current=requestAnimationFrame(g)};return u.current=requestAnimationFrame(g),()=>{u.current&&cancelAnimationFrame(u.current)}},[t,n,r,i,o]),{text:l,isScrambling:d}}const Rl={sm:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},md:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},lg:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"},small:{root:"gap-0.5",label:"text-dos-text-xs",value:"text-dos-display-xs",trend:"text-dos-text-xs"},medium:{root:"gap-1",label:"text-dos-text-sm",value:"text-dos-display-sm",trend:"text-dos-text-sm"},large:{root:"gap-1.5",label:"text-dos-text-md",value:"text-dos-display-md",trend:"text-dos-text-md"}},Of={up:"text-cga-bright-green",down:"text-cga-bright-red",neutral:"text-cga-amber"},Af={up:"▲",down:"▼",neutral:"►"},zf={up:"increasing",down:"decreasing",neutral:"unchanged"},es=a.forwardRef(({label:t,value:e,trend:n,trendValue:r,size:i="md",scramble:o=!1,className:l,...s},d)=>{const{text:c}=Dr(String(e),{speed:30,enabled:o}),u=o?c:String(e),f=Rl[i]||Rl.md;return p.jsxs("div",{ref:d,className:A("flex flex-col font-dos","eidotter-stat",f.root,l),...s,children:[p.jsx("span",{className:A("text-cga-amber uppercase tracking-wider leading-tight",f.label),children:t}),p.jsx("span",{className:A("text-dos-text-accent font-bold leading-none tabular-nums",f.value),children:u}),n&&p.jsxs("span",{className:A("inline-flex items-center gap-1 leading-none",Of[n],f.trend),"aria-label":`Trend: ${zf[n]}${r?`, ${r}`:""}`,children:[p.jsx("span",{className:"text-[0.8em]","aria-hidden":"true",children:Af[n]}),r&&p.jsx("span",{className:"tabular-nums",children:r})]})]})});es.displayName="Stat";const ts={sm:"eidotter-filter-bar--sm",md:"eidotter-filter-bar--md",lg:"eidotter-filter-bar--lg",small:"eidotter-filter-bar--sm",medium:"eidotter-filter-bar--md",large:"eidotter-filter-bar--lg"},Vf=({items:t,activeIds:e,defaultActiveIds:n=[],mode:r="multi",showAll:i=!1,allLabel:o="All",size:l="md",onChange:s,className:d,...c})=>{const[u,f]=a.useState(n),m=a.useRef(null),v=e!==void 0,y=v?e:u,g=t.filter(P=>!P.disabled).map(P=>P.id),w=y.length===0,x=a.useCallback(P=>{v||f(P),s==null||s(P)},[v,s]),E=a.useCallback(P=>{if(r==="single"){const I=y.includes(P)?[]:[P];x(I)}else{const I=y.includes(P)?y.filter(z=>z!==P):[...y,P];x(I)}},[r,y,x]),C=a.useCallback(()=>{x([])},[x]),k=a.useCallback(()=>m.current?Array.from(m.current.querySelectorAll("button:not([disabled])")):[],[]),N=a.useCallback(P=>{const I=k(),z=I.indexOf(P.target);if(z===-1)return;let ee=null;switch(P.key){case"ArrowLeft":case"ArrowUp":P.preventDefault(),ee=z>0?z-1:I.length-1;break;case"ArrowRight":case"ArrowDown":P.preventDefault(),ee=z<I.length-1?z+1:0;break;case"Home":P.preventDefault(),ee=0;break;case"End":P.preventDefault(),ee=I.length-1;break}ee!==null&&I[ee].focus()},[k]),F=i&&w?"__all__":y.length>0?y[0]:i?"__all__":g[0]||null;return p.jsxs("div",{ref:m,className:A("inline-flex flex-wrap items-center gap-1 p-1 font-dos max-w-full","bg-dos-bg-secondary border border-dos-border-default rounded-dos-sm","eidotter-filter-bar",ts[l]||ts.md,d),role:"toolbar",onKeyDown:N,...c,children:[i&&p.jsx(le,{className:A("eidotter-filter-bar__item","eidotter-filter-bar__item--all",w&&"eidotter-filter-bar__item--active"),"aria-pressed":w,excludeFromTabOrder:F!=="__all__",onPress:C,children:p.jsx("span",{className:"eidotter-filter-bar__label",children:o})}),t.map(P=>{const I=y.includes(P.id),z=I&&P.color?{"--filter-bar-item-color":`var(${P.color})`}:void 0;return p.jsxs(le,{className:A("eidotter-filter-bar__item",I&&"eidotter-filter-bar__item--active",P.disabled&&"eidotter-filter-bar__item--disabled"),"aria-pressed":I,excludeFromTabOrder:F!==P.id,isDisabled:P.disabled,onPress:()=>E(P.id),style:z,children:[p.jsx("span",{className:"eidotter-filter-bar__label",children:P.label}),P.count!==void 0&&p.jsx("span",{className:"eidotter-filter-bar__count","aria-label":`${P.count} items`,children:P.count})]},P.id)})]})},Mr=t=>{if(!t)return!1;try{const e=new URL(t);return["http:","https:","mailto:"].includes(e.protocol)}catch{return!1}},Bf=({children:t,content:e,defaultExpanded:n=!1,expanded:r,onToggle:i,sources:o=[],className:l,...s})=>{const[d,c]=a.useState(n),[u,f]=a.useState(new Set),m=a.useRef(n),v=a.useId(),y=a.useRef(null),g=r!==void 0,w=g?r:d;w&&(m.current=!0);const x=()=>{const C=!w;g||c(C),i==null||i(C)},E=C=>{var k;C.key==="Escape"&&w&&(C.stopPropagation(),x(),(k=y.current)==null||k.focus())};return p.jsxs("span",{className:A("eidotter-inline-expand",w&&"eidotter-inline-expand--expanded",l),onKeyDown:E,...s,children:[p.jsxs(le,{ref:y,className:"eidotter-inline-expand__trigger","aria-expanded":w,"aria-controls":v,onPress:x,children:[t,p.jsx("span",{className:"eidotter-inline-expand__indicator","aria-hidden":"true",children:w?"[-]":"[+]"})]}),p.jsxs("span",{id:v,className:"eidotter-inline-expand__content",role:"region",inert:!w,children:[p.jsx("span",{className:"eidotter-inline-expand__inner",children:e}),o.length>0&&p.jsx("span",{className:"eidotter-inline-expand__sources",role:"list",children:o.map(C=>p.jsx("span",{className:"eidotter-inline-expand__source-item",role:"listitem",children:p.jsxs("a",{href:Mr(C.url)?C.url:void 0,className:"eidotter-inline-expand__source-link",target:"_blank",rel:"noopener noreferrer","aria-label":`${C.title} (opens external website)`,children:[m.current&&C.favicon&&Mr(C.favicon)&&!u.has(C.url)?p.jsx("img",{className:"eidotter-inline-expand__source-favicon",src:C.favicon,alt:"",width:16,height:16,decoding:"async",onError:()=>f(k=>new Set(k).add(C.url))}):p.jsx("span",{className:"eidotter-inline-expand__source-icon","aria-hidden":"true",children:"[→]"}),p.jsx("span",{className:"eidotter-inline-expand__source-title",children:C.title})]})},C.url))})]})]})},Hf={horizontal:"h-px w-full",vertical:"w-px h-full"},Uf=({orientation:t="horizontal",className:e})=>p.jsx("div",{role:"separator","aria-orientation":t,className:A("shrink-0 bg-dos-border-default","eidotter-separator",Hf[t],e)}),ns=a.forwardRef(({children:t,speed:e,characters:n,delay:r,className:i,...o},l)=>{const{text:s,isScrambling:d}=Dr(t,{speed:e,characters:n,delay:r});return p.jsx("span",{ref:l,className:A("eidotter-text-scramble",d&&"eidotter-text-scramble--scrambling",i),...o,children:s})});ns.displayName="TextScramble";const rs={retro:"eidotter-nav--retro",modern:"eidotter-nav--modern"},Ir=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const o=r||"a";return p.jsx("nav",{className:A("eidotter-nav eidotter-nav--desktop",rs[n],i),"aria-label":"Main navigation",children:p.jsx("ul",{className:"eidotter-nav__desktop-list",children:t.map(l=>p.jsx("li",{className:"eidotter-nav__desktop-item",children:p.jsx(o,{href:l.href,className:A("eidotter-nav__link",e===l.href&&"eidotter-nav__link--active"),children:l.label})},l.href))})})},Kr=({items:t,activeHref:e,variant:n="retro",linkComponent:r,className:i})=>{const[o,l]=a.useState(!1),s=r||"a",d=a.useCallback(()=>l(u=>!u),[]),c=a.useCallback(()=>l(!1),[]);return a.useEffect(()=>{if(!o)return;const u=f=>{f.key==="Escape"&&c()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o,c]),p.jsxs("div",{className:A("eidotter-nav eidotter-nav--mobile",rs[n],i),children:[p.jsx("button",{onClick:d,className:"eidotter-nav__menu-trigger","aria-label":o?"Close menu":"Open menu","aria-expanded":o,"aria-controls":"eidotter-mobile-nav-panel",children:"MENU"}),o&&p.jsx("div",{className:"eidotter-nav__overlay",onClick:c,"aria-hidden":"true"}),p.jsxs("nav",{id:"eidotter-mobile-nav-panel",className:A("eidotter-nav__panel",o&&"eidotter-nav__panel--open"),"aria-label":"Mobile navigation",children:[p.jsx("div",{className:"eidotter-nav__panel-header",children:p.jsx("button",{onClick:c,className:"eidotter-nav__close","aria-label":"Close menu",children:p.jsx(pe,{name:"Close",size:"S"})})}),p.jsx("ul",{className:"eidotter-nav__list",children:t.map(u=>p.jsx("li",{className:"eidotter-nav__item",children:p.jsx(s,{href:u.href,className:A("eidotter-nav__link",e===u.href&&"eidotter-nav__link--active"),onClick:c,children:u.label})},u.href))})]})]})},Wf=t=>p.jsxs(p.Fragment,{children:[p.jsx(Kr,{...t}),p.jsx(Ir,{...t})]}),jf={user:"eidotter-chat-message--user",assistant:"eidotter-chat-message--assistant",system:"eidotter-chat-message--system"},is=({role:t,content:e,isStreaming:n=!1,userPrefix:r=">",assistantPrefix:i="C:\\>",className:o,...l})=>{const s=t==="user"?r:t==="assistant"?i:"";return p.jsxs("div",{className:A("flex gap-2 font-dos text-dos-text-md leading-[1.4] py-1 whitespace-pre-wrap break-words",jf[t],n&&"eidotter-chat-message--streaming",o),...l,children:[s&&p.jsx("span",{className:"shrink-0 select-none","aria-hidden":"true",children:s}),p.jsx("span",{className:"min-w-0",children:e}),n&&p.jsx("span",{className:"eidotter-chat-message__cursor","aria-hidden":"true",children:"█"})]})},os=({messages:t,isStreaming:e=!1,userPrefix:n,assistantPrefix:r,className:i,...o})=>{const l=a.useRef(null);a.useEffect(()=>{var d,c;(c=(d=l.current)==null?void 0:d.scrollIntoView)==null||c.call(d,{behavior:"smooth"})},[t.length,e]);const s=A("flex-1 overflow-y-auto font-dos p-2 min-h-0","eidotter-chat-history",i);return t.length===0?p.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:p.jsx("div",{className:"flex items-center justify-center h-full min-h-16",children:p.jsx("span",{className:"text-cga-brown font-dos text-dos-text-md",children:"Awaiting input..."})})}):p.jsx("div",{className:s,role:"log","aria-live":"polite",...o,children:p.jsxs("div",{className:"flex flex-col",children:[t.map((d,c)=>{const u=e&&d.role==="assistant"&&c===t.length-1;return p.jsx(is,{role:d.role,content:d.content,isStreaming:u,userPrefix:n,assistantPrefix:r},d.id)}),p.jsx("div",{ref:l})]})})},ls=({onSend:t,prompt:e=">",placeholder:n,disabled:r=!1,className:i,...o})=>{const[l,s]=a.useState(""),d=a.useRef(null);a.useLayoutEffect(()=>{const f=d.current;f&&(f.style.height="auto",f.style.height=`${f.scrollHeight}px`)},[l]);const c=f=>{if(f.key==="Enter"&&!f.shiftKey&&!r){f.preventDefault();const m=l.trim();m&&(t(m),s(""))}},u=()=>{!r&&d.current&&d.current.focus()};return p.jsxs("div",{className:A("flex items-start font-dos text-dos-text-md p-2 cursor-text","text-cga-amber","eidotter-chat-input",r&&"eidotter-chat-input--disabled",i),onClick:u,...o,children:[p.jsx("span",{className:"text-cga-amber mr-2 mt-0.5 whitespace-nowrap select-none","aria-hidden":"true",children:e}),p.jsxs("div",{className:"flex items-start flex-1 min-w-0",children:[p.jsx("textarea",{ref:d,className:"eidotter-chat-input__textarea",value:l,onChange:f=>s(f.target.value),onKeyDown:c,placeholder:n,disabled:r,rows:1,"aria-label":"Chat input"}),p.jsx("span",{className:"eidotter-chat-input__cursor","aria-hidden":"true",children:"█"})]})]})},Gf=({messages:t,onSend:e,isStreaming:n=!1,inputPrompt:r,userPrefix:i,assistantPrefix:o,placeholder:l,disabled:s=!1,className:d,...c})=>p.jsxs("div",{className:A("flex flex-col h-full min-h-0",d),...c,children:[p.jsx(os,{className:"flex-1 min-h-0",messages:t,isStreaming:n,userPrefix:i,assistantPrefix:o}),p.jsx(ls,{className:"shrink-0",onSend:e,prompt:r,placeholder:l,disabled:s})]}),ss=[{label:"Impressum",href:"/impressum"},{label:"Datenschutz",href:"/datenschutz"}],qf=({copyright:t,links:e,children:n,className:r,...i})=>{const o=e??ss;return p.jsxs("footer",{className:A("font-dos text-sm py-4 px-2 text-center","eidotter-footer",r),...i,children:[p.jsx("div",{className:"h-px bg-dos-border-default mb-4",role:"separator"}),n&&p.jsx("div",{className:"mb-3",children:n}),o.length>0&&p.jsx("nav",{className:"flex justify-center items-center flex-wrap gap-2 mb-2","aria-label":"Footer links",children:o.map((l,s)=>p.jsxs(a.Fragment,{children:[s>0&&p.jsx("span",{className:"text-cga-brown select-none eidotter-footer__dot","aria-hidden":"true",children:"·"}),p.jsx("a",{className:"eidotter-footer__link text-cga-amber no-underline",href:l.href,...l.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:l.label})]},l.href))}),t&&p.jsxs("p",{className:"text-cga-brown m-0",children:["© ",t]})]})},Zf={retro:"eidotter-header--retro",modern:"eidotter-header--modern"},as=a.forwardRef(({brandName:t,brandHref:e="/",items:n,activeHref:r,variant:i="retro",sticky:o=!0,linkComponent:l,children:s,className:d,...c},u)=>{const f=l??"a";return p.jsxs("header",{ref:u,className:A("flex items-center justify-between px-4 py-3 font-dos","eidotter-header",Zf[i],o&&"sticky top-0 z-50",d),...c,children:[p.jsx(f,{href:e,className:A("no-underline text-base font-bold tracking-wide","eidotter-header__branding"),children:s||t}),p.jsx(Ir,{items:n,activeHref:r,variant:i,linkComponent:l}),p.jsx(Kr,{items:n,activeHref:r,variant:i,linkComponent:l})]})});as.displayName="Header";const Yf={primary:"Info",gray:"Info",success:"Done",warning:"Warning",error:"Error"},Xf=({type:t="primary",title:e,children:n,actions:r,onClose:i,avatar:o,image:l,progress:s,progressLabel:d,duration:c,showIcon:u=!0,className:f})=>{const{isClosing:m,triggerClose:v,handleAnimationEnd:y}=xr("notification-exit",i);a.useEffect(()=>{if(c==null||!i)return;const x=setTimeout(()=>v(),c);return()=>clearTimeout(x)},[c,i,v]);const g=u&&!o,w=s!=null;return p.jsxs("div",{className:A("w-full max-w-[400px]","font-dos text-dos-text-sm","border border-dos-border-default rounded-dos-base","eidotter-notification",`eidotter-notification--${t}`,m&&"eidotter-notification--closing",f),onAnimationEnd:y,role:t==="error"?"alert":"status","data-type":t,children:[l&&p.jsx("div",{className:"eidotter-notification__image",children:l}),p.jsxs("div",{className:"flex flex-row gap-4 p-4",children:[o&&p.jsx("div",{className:"eidotter-notification__avatar flex-shrink-0",children:o}),g&&p.jsx("div",{className:"eidotter-notification__icon",children:p.jsx(pe,{name:Yf[t]||"Info",size:"S","aria-label":`${t} notification`})}),p.jsxs("div",{className:A("flex-1 flex flex-col gap-3 min-w-0",i&&!g&&!o&&"pr-8"),children:[(e||n)&&p.jsxs("div",{className:"flex flex-col gap-1",children:[e&&p.jsx("div",{className:"eidotter-notification__title font-dos leading-[140%]",children:e}),n&&p.jsx("div",{className:"eidotter-notification__text font-dos leading-[140%]",children:n})]}),w&&p.jsxs("div",{className:"flex flex-col gap-1",children:[p.jsx(Er,{value:s,max:100,size:"sm",fullWidth:!0,showLabel:!1}),d&&p.jsx("div",{className:"eidotter-notification__text font-dos text-dos-text-xs",children:d})]}),r&&r.length>0&&p.jsx("div",{className:"flex flex-row gap-3",children:r.map((x,E)=>p.jsxs(le,{className:"eidotter-notification__action",onPress:x.onClick,children:[x.label,x.icon]},E))})]}),i&&p.jsx(le,{className:"eidotter-notification__close",onPress:v,"aria-label":"Close notification",children:p.jsx(pe,{name:"Close",size:"S"})})]})]})},Jf={eidotter:{displayName:"eiDotter"},spacewar:{displayName:"Spacewar!"},rizomorf:{displayName:"rizomorf"},"pomodoke-calendar":{displayName:"PomoDoke Calendar"},keepcoin:{displayName:"KeepCoin"},steuerdash:{displayName:"Steuerdash"},sella:{displayName:"sella"},lifelines:{displayName:"Lifelines"},betamorf:{displayName:"betamorf"}},at={Alert:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.2.0",variants:{"type:info":{description:"Informational message",since:"0.2.0",usedBy:["rizomorf"]},"type:success":{description:"Success confirmation",since:"0.2.0",usedBy:["steuerdash"]},"type:warning":{description:"Warning notice",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"type:error":{description:"Error message",since:"0.2.0",usedBy:["steuerdash"]},"size:small":{description:"Compact alert for inline contexts",since:"0.2.0"},"size:large":{description:"Full-width alert with icon",since:"0.2.0"}},platforms:{react:{path:"src/components/Alert",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber for theme consistency"},{version:"0.6.0",type:"changed",description:"Fix icon alignment and add prefers-contrast support"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects"},{version:"0.2.0",type:"added",description:"Initial Alert component with info/success/warning/error types"}]},Accordion:{origin:"eidotter",consumers:["rizomorf"]},AccordionFill:{origin:"eidotter",consumers:["rizomorf"]},Badge:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Neutral badge with muted styling",since:"0.3.0",usedBy:["rizomorf"]},"variant:success":{description:"Green success indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:warning":{description:"Amber warning indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:error":{description:"Red error/critical indicator",since:"0.3.0",usedBy:["steuerdash"]},"variant:info":{description:"Blue informational indicator",since:"0.3.0"},"variant:accent":{description:"Theme accent color badge",since:"0.3.0",usedBy:["rizomorf"]},"size:small":{description:"Compact inline badge",since:"0.3.0"},"size:medium":{description:"Standard badge size",since:"0.3.0"}},platforms:{react:{path:"src/components/Badge",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter keyframes"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.5.0",type:"changed",description:"Fix text vertical alignment for pixel fonts"},{version:"0.3.0",type:"added",description:"Initial Badge component for status indicators"}]},Breadcrumb:{origin:"rizomorf",consumers:["rizomorf"]},Button:{origin:"eidotter",consumers:["spacewar","rizomorf","pomodoke-calendar","steuerdash"],since:"0.2.0",variants:{"variant:primary":{description:"Primary CTA with amber background",since:"0.2.0",usedBy:["spacewar","rizomorf","pomodoke-calendar","steuerdash"]},"variant:secondary":{description:"Secondary action with border only",since:"0.2.0",usedBy:["rizomorf","steuerdash"]},"variant:ghost":{description:"Minimal button with hover reveal",since:"0.2.0",usedBy:["rizomorf"]},"variant:link":{description:"Inline link-style button",since:"0.2.0",usedBy:["rizomorf"]},"size:small":{description:"Compact 1.5rem min-height",since:"0.2.0"},"size:medium":{description:"Standard 2rem min-height",since:"0.2.0"},"size:large":{description:"Prominent 2.5rem min-height",since:"0.2.0"}},platforms:{react:{path:"src/components/Button",status:"canonical"},swiftui:{path:"platforms/swiftui/Sources/EiDotterUI/DOSButton.swift",status:"planned",note:"POC with primary variant only — not yet production-ready"},spritekit:{status:"token-only",note:"Spacewar uses tokens only, no UIKit/SwiftUI button"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish across all variants"},{version:"0.7.0",type:"changed",description:"Increase font size and weight for readability"},{version:"0.6.0",type:"changed",description:"Add phosphor warmup/energize keyframes to all variants"},{version:"0.5.0",type:"changed",description:"Fix secondary label visibility in pressed state"},{version:"0.4.0",type:"changed",description:"Add CRT phosphor interaction states for primary variant"},{version:"0.2.0",type:"added",description:"Initial Button with primary/secondary/ghost/link variants"}]},Card:{origin:"eidotter",consumers:["rizomorf","steuerdash"],since:"0.3.0",variants:{"variant:default":{description:"Standard card with subtle border",since:"0.3.0",usedBy:["rizomorf","steuerdash"]},"variant:elevated":{description:"Raised card with drop shadow",since:"0.3.0",usedBy:["steuerdash"]},"variant:bordered":{description:"Strong border emphasis",since:"0.3.0"},"variant:glow":{description:"Phosphor glow border effect",since:"0.4.0",usedBy:["rizomorf"]},"variant:interactive":{description:"Hover-reactive card for clickable surfaces",since:"0.4.0",usedBy:["rizomorf"]},"variant:minimal":{description:"Borderless content container",since:"0.4.0"},"variant:callout":{description:"Highlighted callout with accent border",since:"0.4.0"}},platforms:{react:{path:"src/components/Card",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish with phosphor enter effects"},{version:"0.7.0",type:"changed",description:"Replace text-primary with cga-amber"},{version:"0.4.0",type:"added",description:"Add glow, interactive, minimal, callout variants"},{version:"0.4.0",type:"changed",description:"Add phosphor glow effects and amber dim header background"},{version:"0.3.0",type:"added",description:"Initial Card with default/elevated/bordered variants"}]},Checkbox:{origin:"eidotter",consumers:["steuerdash"]},CommandPrompt:{origin:"eidotter",consumers:["rizomorf"]},Icon:{origin:"eidotter",consumers:["rizomorf"]},Input:{origin:"eidotter",consumers:["steuerdash"]},Modal:{origin:"eidotter",consumers:["pomodoke-calendar"]},Progress:{origin:"eidotter",consumers:["steuerdash"],since:"0.3.0"},RetroEffects:{origin:"spacewar",consumers:["spacewar","rizomorf"],originNote:"CRT scanline/glow effects from Spacewar!"},Stat:{origin:"steuerdash",consumers:["steuerdash"],originNote:"Key-value display created for tax dashboard"},Switch:{origin:"eidotter",consumers:[]},FilterBar:{origin:"eidotter",consumers:["lifelines","rizomorf"],originNote:"Multi-select toggle group for faceted filtering"},Tag:{origin:"eidotter",consumers:["lifelines","rizomorf"],since:"0.7.0",originNote:"Interactive labels for tags, categories, and filter chips",variants:{"variant:default":{description:"Standard tag with subtle background",since:"0.7.0",usedBy:["rizomorf"]},"variant:outlined":{description:"Border-only tag",since:"0.7.0",usedBy:["lifelines"]},"variant:filled":{description:"Solid background tag",since:"0.7.0",usedBy:["rizomorf","lifelines"]},"size:small":{description:"Compact tag for dense layouts",since:"0.7.0"},"size:medium":{description:"Standard tag size",since:"0.7.0"}},platforms:{react:{path:"src/components/Tag",status:"canonical"},swiftui:{status:"planned"}},changelog:[{version:"0.11.0",type:"changed",description:"Convert font-size to rem tokens for WCAG SC 1.4.4"},{version:"0.8.0",type:"changed",description:"Design-craft animation polish"},{version:"0.7.0",type:"added",description:"Initial Tag and TagGroup components"}]},Tabs:{origin:"eidotter",consumers:["steuerdash"]},Terminal:{origin:"eidotter",consumers:["rizomorf"]},TimelineNode:{origin:"lifelines",consumers:["lifelines","rizomorf"],originNote:"Timeline markers from Lifelines project"},InlineExpand:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Inline disclosure widget for expanding text within prose"},Separator:{origin:"rizomorf",consumers:["rizomorf"],originNote:"Horizontal/vertical divider for content separation"},TimelineContainer:{origin:"lifelines",consumers:["lifelines"],originNote:"Multi-zoom timeline with year/month/day/hour views. Supports interactive, static, and feed modes."},ChatMessage:{origin:"eidotter",consumers:[],originNote:"Single chat message with role-based DOS styling and streaming cursor"},ChatHistory:{origin:"eidotter",consumers:[],originNote:'Scrollable message list with auto-scroll and role="log" accessibility'},ChatInput:{origin:"eidotter",consumers:[],originNote:"Multiline DOS-styled textarea with Enter-to-send"},ChatContainer:{origin:"eidotter",consumers:[],originNote:"Composes ChatHistory + ChatInput into a complete chat interface"},Header:{origin:"eidotter",consumers:[],originNote:"Sticky site header composing branding link + Nav — retro/modern variants"},Footer:{origin:"eidotter",consumers:[],originNote:"DOS-themed footer with default legal links (Impressum + Datenschutz) for German compliance"}};function Qf(t){return at[t]}function Rf(t){return Object.entries(at).filter(([,e])=>e.origin===t).map(([e])=>e)}function eh(t){return Object.entries(at).filter(([,e])=>e.consumers.includes(t)).map(([e])=>e)}function th(t,e){const n=at[t];return n!=null&&n.variants?Object.entries(n.variants).filter(([,r])=>{var i;return(i=r.usedBy)==null?void 0:i.includes(e)}).map(([r])=>r):[]}function nh(t){const e=at[t];if(!(e!=null&&e.variants))return{};const n={};for(const[r,i]of Object.entries(e.variants))n[r]=i.usedBy??[];return n}const rh="0.19.1";O.AccordionFill=ef,O.Alert=Pl,O.Badge=st,O.Breadcrumb=Vl,O.Button=ln,O.Card=Ml,O.ChatContainer=Gf,O.ChatHistory=os,O.ChatInput=ls,O.ChatMessage=is,O.Checkbox=Il,O.CommandPrompt=tf,O.DesktopNav=Ir,O.FilterBar=Vf,O.Footer=qf,O.Header=as,O.Icon=pe,O.InlineExpand=Bf,O.Input=$l,O.MobileNav=Kr,O.Modal=Ql,O.Nav=Wf,O.Notification=Xf,O.Progress=Er,O.RetroEffects=sf,O.Section=kl,O.Separator=Uf,O.Stat=es,O.Switch=zl,O.Tabs=Fl,O.Tag=Nr,O.TagGroup=Tr,O.Terminal=of,O.TextScramble=ns,O.TimelineContainer=$f,O.TimelineNode=Ve,O.ZOOM_LEVELS=Nt,O.componentRegistry=at,O.defaultLegalLinks=ss,O.getComponentMeta=Qf,O.getComponentsByConsumer=eh,O.getComponentsByOrigin=Rf,O.getVariantConsumerMap=nh,O.getVariantsUsedBy=th,O.isSafeUrl=Mr,O.projects=Jf,O.useTextScramble=Dr,O.version=rh,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|