Files
mission-control-v2/frontend/dist/assets/dist-CakcBaML.js
T
HitonabiandClaude Opus 5.5 1915813cc0 Welle 3 · Oberfläche: Lucys Freiheiten, Rückfragen mit Ja/Nein, Wochenbericht; dist gebaut
- Einstellungen → Lucy: Freiheit je Aktionsart (freier als der Start nur nach Nachfrage), offene und zuletzt
  beantwortete Rückfragen, Wochenbericht (nächster Termin, letzten lesen, jetzt schicken)
- Übersicht: Feld „Rückfrage an dich“ ganz oben, nur wenn eine offen ist; Ja erst nach Bestätigung
- Strg+K: Lucys Freiheiten, Rückfragen, Wochenbericht
- Einstieg 126,1 KB gzip

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 09:14:07 +02:00

41 lines
38 KiB
JavaScript

import{a as e,c as t,i as n,n as r,o as i}from"./dist-aE7UmubC.js";import{n as a,r as o}from"./button-BHVKhtQ6.js";var s=i((t=>{var n=e();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.browser=function(e){return{$$typeof:s,_reason:e}},t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},t.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},t.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},t.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},t.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},t.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},t.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},t.useFormStatus=function(){return u.H.useHostTransitionStatus()},t.version=`19.3.0`})),c=i(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()})),l={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};l.node;var u=r(l),d=t(e(),1),f=t(c(),1),p=n(),m=Object.defineProperty,h=(e,t)=>m(e,`name`,{value:t,configurable:!0}),g=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=a(`Primitive.${t}`),r=d.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,p.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _(e,t){e&&f.flushSync(()=>e.dispatchEvent(t))}h(_,`dispatchDiscreteCustomEvent`);var v=Object.defineProperty,y=(e,t)=>v(e,`name`,{value:t,configurable:!0});function b(e,t){let n=d.createContext(t);n.displayName=e+`Context`;let r=y(e=>{let{children:t,...r}=e,i=d.useMemo(()=>r,Object.values(r));return(0,p.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=d.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return y(i,`useContext`),[r,i]}y(b,`createContext`);function x(e,t=[]){let n=[];function r(t,r){let i=d.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=y(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=d.useMemo(()=>o,Object.values(o));return(0,p.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=d.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return y(s,`useContext`),[o,s]}y(r,`createContext`);let i=y(()=>{let t=n.map(e=>d.createContext(e));return y(function(n){let r=n?.[e]||t;return d.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,S(i,...t)]}y(x,`createContextScope`);function S(...e){let t=e[0];if(e.length===1)return t;let n=y(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return y(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}y(S,`composeContextScopes`);var C=Object.defineProperty,w=(e,t)=>C(e,`name`,{value:t,configurable:!0}),T=!!(typeof window<`u`&&window.document&&window.document.createElement);function E(e,t,{checkForDefaultPrevented:n=!0}={}){return w(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}w(E,`composeEventHandlers`);function ee(e){if(!T)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}w(ee,`getOwnerWindow`);function D(e){if(!T)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}w(D,`getOwnerDocument`);function O(e,t=!1){let{activeElement:n}=D(e);if(!n?.nodeName)return null;if(te(n)&&n.contentDocument)return O(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=D(n).getElementById(e);if(t)return t}}return n}w(O,`getActiveElement`);function te(e){return e.tagName===`IFRAME`}w(te,`isFrame`);var k=globalThis?.document?d.useLayoutEffect:()=>{},ne=Object.defineProperty,re=(e,t)=>ne(e,`name`,{value:t,configurable:!0}),ie=d.useEffectEvent,ae=d.useInsertionEffect;function oe(e){if(typeof ie==`function`)return ie(e);let t=d.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof ae==`function`?ae(()=>{t.current=e}):k(()=>{t.current=e}),d.useMemo(()=>((...e)=>t.current?.(...e)),[])}re(oe,`useEffectEvent`);var se=Object.defineProperty,A=(e,t)=>se(e,`name`,{value:t,configurable:!0}),ce=d.useInsertionEffect||k;function le({prop:e,defaultProp:t,onChange:n=A(()=>{},`onChange`),caller:r}){let[i,a,o]=ue({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,d.useCallback(t=>{if(s){let n=de(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}A(le,`useControllableState`);function ue({defaultProp:e,onChange:t}){let[n,r]=d.useState(e),i=d.useRef(n),a=d.useRef(t);return ce(()=>{a.current=t},[t]),d.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}A(ue,`useUncontrolledState`);function de(e){return typeof e==`function`}A(de,`isFunction`);var fe=Symbol(`RADIX:SYNC_STATE`);function pe(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=oe(o),u=[{...n,state:a}];r&&u.push(r);let[f,p]=d.useReducer((t,n)=>{if(n.type===fe)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),m=f.state,h=d.useRef(m);d.useEffect(()=>{h.current!==m&&(h.current=m,c||l(m))},[m,h,c]);let g=d.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return d.useEffect(()=>{c&&!Object.is(i,f.state)&&p({type:fe,state:i})},[i,f.state,c]),[g,p]}A(pe,`useControllableStateReducer`);var me=Object.defineProperty,j=(e,t)=>me(e,`name`,{value:t,configurable:!0});function he(e,t){return d.useReducer((e,n)=>t[e][n]??e,e)}j(he,`useStateMachine`);var ge=j(e=>{let{present:t,children:n}=e,r=_e(t),i=typeof n==`function`?n({present:r.isPresent}):d.Children.only(n),a=ye(r.ref,be(i));return typeof n==`function`||r.isPresent?d.cloneElement(i,{ref:a}):null},`Presence`);function _e(e){let[t,n]=d.useState(),r=d.useRef(null),i=d.useRef(e),a=d.useRef(`none`),o=d.useRef(void 0),[s,c]=he(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return d.useEffect(()=>{s===`mounted`?(a.current=o.current??M(r.current),o.current=void 0):a.current=`none`},[s]),k(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=M(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),k(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=j(a=>{let o=M(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=j(e=>{e.target===t&&(a.current=M(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:d.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=M(t)}else r.current=null;n(e)},[])}}j(_e,`usePresence`);function ve(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}j(ve,`setRef`);function ye(...e){let t=d.useRef(e);return t.current=e,d.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=ve(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():ve(n[e],null)}}},[])}j(ye,`useStableComposedRefs`);function M(e){return e?.animationName||`none`}j(M,`getAnimationName`);function be(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}j(be,`getElementRef`);var xe=Object.defineProperty,Se=(e,t)=>xe(e,`name`,{value:t,configurable:!0}),Ce=d.useId||(()=>void 0),we=0;function N(e){let[t,n]=d.useState(Ce());return k(()=>{e||n(e=>e??String(we++))},[e]),e||(t?`radix-${t}`:``)}Se(N,`useId`);var Te=Object.defineProperty,Ee=(e,t)=>Te(e,`name`,{value:t,configurable:!0});function P(e){let t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ee(P,`useCallbackRef`);var De=Object.defineProperty,F=(e,t)=>De(e,`name`,{value:t,configurable:!0}),Oe=`dismissableLayer.update`,ke=`dismissableLayer.pointerDownOutside`,Ae=`dismissableLayer.focusOutside`,je,Me=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ne=d.forwardRef(F(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...u}=e,f=d.useContext(Me),[m,h]=d.useState(null),_=m?.ownerDocument??globalThis?.document,[,v]=d.useState({}),y=o(t,h),b=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),S=x?b.indexOf(x):-1,C=m?b.indexOf(m):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,T=C>=S,ee=d.useRef(!1),D=Ie(e=>{a?.(e),c?.(e),e.defaultPrevented||l?.()},{ownerDocument:_,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:ee,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:d.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return T&&!t},[f.branches,T])}),O=Le(e=>{if(r&&ee.current)return;let t=e.target;[...f.branches].some(e=>e.contains(t))||(s?.(e),c?.(e),e.defaultPrevented||l?.())},_),te=m?C===b.length-1:!1,k=P(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return d.useEffect(()=>{if(te)return _.addEventListener(`keydown`,k,{capture:!0}),()=>_.removeEventListener(`keydown`,k,{capture:!0})},[_,te,k]),d.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(je=_.body.style.pointerEvents,_.body.style.pointerEvents=`none`),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),Re(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(m),f.layersWithOutsidePointerEventsDisabled.size===0&&(_.body.style.pointerEvents=je))}},[m,_,n,f]),d.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),Re())},[m,f]),d.useEffect(()=>{let e=F(()=>v({}),`handleUpdate`);return document.addEventListener(Oe,e),()=>document.removeEventListener(Oe,e)},[]),(0,p.jsx)(g.div,{...u,ref:y,style:{pointerEvents:w?T?`auto`:`none`:void 0,...e.style},onFocusCapture:E(e.onFocusCapture,O.onFocusCapture),onBlurCapture:E(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,D.onPointerDownCapture)})},`DismissableLayer`));function Pe(){let e=d.useContext(Me),[t,n]=d.useState(null);return d.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}F(Pe,`useDismissableLayerSurface`);var Fe=F(()=>!0,`IS_TRUE`);function Ie(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Fe}=t,s=P(e),c=d.useRef(!1),l=d.useRef(!1),u=d.useRef(new Map),f=d.useRef(()=>{});return d.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}F(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}F(t,`isOutsideInteractionIntercepted`);function d(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&f.current()},0)}F(d,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}F(p,`handleInteractionBubble`);let m=F(a=>{if(a.target&&!c.current){let d=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||ze(ke,s,p,{discrete:!0})};if(F(d,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?d():(n.removeEventListener(`click`,f.current),f.current=d,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,d,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,d,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:F(()=>c.current=!0,`onPointerDownCapture`)}}F(Ie,`usePointerDownOutside`);function Le(e,t=globalThis?.document){let n=P(e),r=d.useRef(!1);return d.useEffect(()=>{let e=F(e=>{e.target&&!r.current&&ze(Ae,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:F(()=>r.current=!0,`onFocusCapture`),onBlurCapture:F(()=>r.current=!1,`onBlurCapture`)}}F(Le,`useFocusOutside`);function Re(){let e=new CustomEvent(Oe);document.dispatchEvent(e)}F(Re,`dispatchUpdate`);function ze(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_(i,a):i.dispatchEvent(a)}F(ze,`handleAndDispatchCustomEvent`);var Be=Object.defineProperty,I=(e,t)=>Be(e,`name`,{value:t,configurable:!0}),Ve=`focusScope.autoFocusOnMount`,He=`focusScope.autoFocusOnUnmount`,Ue={bubbles:!1,cancelable:!0},We=d.forwardRef(I(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[c,l]=d.useState(null),u=P(i),f=P(a),m=d.useRef(null),h=o(t,l),_=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let e=function(e){if(_.paused||!c)return;let t=e.target;c.contains(t)?m.current=t:L(m.current,{select:!0})},t=function(e){if(_.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||L(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&L(c)};I(e,`handleFocusIn`),I(t,`handleFocusOut`),I(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,_.paused]),d.useEffect(()=>{if(c){Ze.add(_);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(Ve,Ue);c.addEventListener(Ve,u),c.dispatchEvent(t),t.defaultPrevented||(Ge(et(qe(c)),{select:!0}),document.activeElement===e&&L(c))}return()=>{c.removeEventListener(Ve,u),setTimeout(()=>{let t=new CustomEvent(He,Ue);c.addEventListener(He,f),c.dispatchEvent(t),t.defaultPrevented||L(e??document.body,{select:!0}),c.removeEventListener(He,f),Ze.remove(_)},0)}}},[c,u,f,_]);let v=d.useCallback(e=>{if(!n&&!r||_.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Ke(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&L(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&L(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,_.paused]);return(0,p.jsx)(g.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})},`FocusScope`));function Ge(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(L(r,{select:t}),document.activeElement!==n)return}I(Ge,`focusFirst`);function Ke(e){let t=qe(e);return[Je(t,e),Je(t.reverse(),e)]}I(Ke,`getTabbableEdges`);function qe(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:I(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}I(qe,`getTabbableCandidates`);function Je(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ye(r,{upTo:t})))return r}I(Je,`findVisible`);function Ye(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}I(Ye,`isHidden`);function Xe(e){return e instanceof HTMLInputElement&&`select`in e}I(Xe,`isSelectableInput`);function L(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xe(e)&&t&&e.select()}}I(L,`focus`);var Ze=Qe();function Qe(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=$e(e,t),e.unshift(t)},remove(t){e=$e(e,t),e[0]?.resume()}}}I(Qe,`createFocusScopesStack`);function $e(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}I($e,`arrayRemove`);function et(e){return e.filter(e=>e.tagName!==`A`)}I(et,`removeLinks`);var tt=Object.defineProperty,nt=d.forwardRef(((e,t)=>tt(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=d.useState(!1);k(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?f.createPortal((0,p.jsx)(g.div,{...r,ref:t}),o):null},`Portal`)),rt=Object.defineProperty,it=(e,t)=>rt(e,`name`,{value:t,configurable:!0}),R=0,z=null;function at(e){return ot(),e.children}it(at,`FocusGuards`);function ot(){d.useEffect(()=>{z||={start:st(),end:st()};let{start:e,end:t}=z;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),R++,()=>{R===1&&(z?.start.remove(),z?.end.remove(),z=null),R=Math.max(0,R-1)}},[])}it(ot,`useFocusGuards`);function st(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}it(st,`createFocusGuard`);var B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},B.apply(this,arguments)};function ct(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function lt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var V=`right-scroll-bar-position`,H=`width-before-scroll-bar`,ut=`with-scroll-bars-hidden`,dt=`--removed-body-scroll-bar-size`;function ft(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function pt(e,t){var n=(0,d.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var mt=typeof window<`u`?d.useLayoutEffect:d.useEffect,ht=new WeakMap;function gt(e,t){var n=pt(t||null,function(t){return e.forEach(function(e){return ft(e,t)})});return mt(function(){var t=ht.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||ft(e,null)}),i.forEach(function(e){r.has(e)||ft(e,a)})}ht.set(n,e)},[e]),n}function _t(e){return e}function vt(e,t){t===void 0&&(t=_t);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function yt(e){e===void 0&&(e={});var t=vt(null);return t.options=B({async:!0,ssr:!1},e),t}var bt=function(e){var t=e.sideCar,n=ct(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return d.createElement(r,B({},n))};bt.isSideCarExport=!0;function xt(e,t){return e.useMedium(t),bt}var St=yt(),Ct=function(){},U=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Ct,onWheelCapture:Ct,onTouchMoveCapture:Ct}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=ct(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=gt([n,t]),w=B(B({},x),i);return d.createElement(d.Fragment,null,u&&d.createElement(S,{sideCar:St,removeScrollBar:l,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?d.cloneElement(d.Children.only(s),B(B({},w),{ref:C})):d.createElement(y,B({},w,{className:c,ref:C}),s))});U.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},U.classNames={fullWidth:H,zeroRight:V};var wt=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Tt(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=wt();return t&&e.setAttribute(`nonce`,t),e}function Et(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Dt(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ot=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Tt())&&(Et(t,n),Dt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kt=function(){var e=Ot();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},At=function(){var e=kt();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},jt={left:0,top:0,right:0,gap:0},Mt=function(e){return parseInt(e||``,10)||0},Nt=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Mt(n),Mt(r),Mt(i)]},Pt=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return jt;var t=Nt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ft=At(),W=`data-scroll-locked`,It=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
.${ut} {
overflow: hidden ${r};
padding-right: ${s}px ${r};
}
body[${W}] {
overflow: hidden ${r};
overscroll-behavior: contain;
${[t&&`position: relative ${r};`,n===`margin`&&`
padding-left: ${i}px;
padding-top: ${a}px;
padding-right: ${o}px;
margin-left:0;
margin-top:0;
margin-right: ${s}px ${r};
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
}
.${V} {
right: ${s}px ${r};
}
.${H} {
margin-right: ${s}px ${r};
}
.${V} .${V} {
right: 0 ${r};
}
.${H} .${H} {
margin-right: 0 ${r};
}
body[${W}] {
${dt}: ${s}px;
}
`},Lt=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Rt=function(){d.useEffect(function(){return document.body.setAttribute(W,(Lt()+1).toString()),function(){var e=Lt()-1;e<=0?document.body.removeAttribute(W):document.body.setAttribute(W,e.toString())}},[])},zt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Rt();var a=d.useMemo(function(){return Pt(i)},[i]);return d.createElement(Ft,{styles:It(a,!t,i,n?``:`!important`)})},Bt=!1;if(typeof window<`u`)try{var G=Object.defineProperty({},"passive",{get:function(){return Bt=!0,!0}});window.addEventListener(`test`,G,G),window.removeEventListener(`test`,G,G)}catch{Bt=!1}var K=Bt?{passive:!1}:!1,Vt=function(e){return e.tagName===`TEXTAREA`},Ht=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Vt(e)&&n[t]===`visible`)},Ut=function(e){return Ht(e,`overflowY`)},Wt=function(e){return Ht(e,`overflowX`)},Gt=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Jt(e,r)){var i=Yt(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Kt=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},qt=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Jt=function(e,t){return e===`v`?Ut(t):Wt(t)},Yt=function(e,t){return e===`v`?Kt(t):qt(t)},Xt=function(e,t){return e===`h`&&t===`rtl`?-1:1},Zt=function(e,t,n,r,i){var a=Xt(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Yt(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Jt(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},q=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qt=function(e){return[e.deltaX,e.deltaY]},$t=function(e){return e&&`current`in e?e.current:e},en=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tn=function(e){return`
.block-interactivity-${e} {pointer-events: none;}
.allow-interactivity-${e} {pointer-events: all;}
`},nn=0,J=[];function rn(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(nn++)[0],a=d.useState(At)[0],o=d.useRef(e);d.useEffect(function(){o.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=lt([e.lockRef.current],(e.shards||[]).map($t),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=q(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Gt(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Gt(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Zt(h,t,e,h===`h`?s:c,!0)},[]),c=d.useCallback(function(e){var n=e;if(J.length&&J[J.length-1]===a){var r=`deltaY`in n?Qt(n):q(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&en(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map($t).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=d.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:an(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=d.useCallback(function(e){n.current=q(e),r.current=void 0},[]),f=d.useCallback(function(t){l(t.type,Qt(t),t.target,s(t,e.lockRef.current))},[]),p=d.useCallback(function(t){l(t.type,q(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return J.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,c,K),document.addEventListener(`touchmove`,c,K),document.addEventListener(`touchstart`,u,K),function(){J=J.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,K),document.removeEventListener(`touchmove`,c,K),document.removeEventListener(`touchstart`,u,K)}},[]);var m=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(a,{styles:tn(i)}):null,m?d.createElement(zt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function an(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var on=xt(St,rn),sn=d.forwardRef(function(e,t){return d.createElement(U,B({},e,{ref:t,sideCar:on}))});sn.classNames=U.classNames;var cn=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Y=new WeakMap,X=new WeakMap,ln={},un=0,dn=function(e){return e&&(e.host||dn(e.parentNode))},fn=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=dn(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},pn=function(e,t,n,r){var i=fn(t,Array.isArray(e)?e:[e]);ln[n]||(ln[n]=new WeakMap);var a=ln[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Y.get(e)||0)+1,l=(a.get(e)||0)+1;Y.set(e,c),a.set(e,l),o.push(e),c===1&&i&&X.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),un++,function(){o.forEach(function(e){var t=Y.get(e)-1,i=a.get(e)-1;Y.set(e,t),a.set(e,i),t||(X.has(e)||e.removeAttribute(r),X.delete(e)),i||e.removeAttribute(n)}),un--,un||(Y=new WeakMap,Y=new WeakMap,X=new WeakMap,ln={})}},mn=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||cn(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),pn(r,i,n,`aria-hidden`)):function(){return null}},hn=Object.defineProperty,Z=(e,t)=>hn(e,`name`,{value:t,configurable:!0}),gn=`Dialog`,[_n,vn]=x(gn),[yn,Q]=_n(gn),bn=Z(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=d.useRef(null),c=d.useRef(null),[l,u]=le({prop:r,defaultProp:i??!1,onChange:a,caller:gn}),[f,m]=d.useState(0),[h,g]=d.useState(0);return(0,p.jsx)(yn,{scope:t,triggerRef:s,contentRef:c,contentId:N(),titleId:N(),descriptionId:N(),titlePresent:f>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:l,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),xn=`DialogPortal`,[Sn,Cn]=_n(xn,{forceMount:void 0}),wn=Z(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Q(xn,t);return(0,p.jsx)(Sn,{scope:t,forceMount:n,children:d.Children.map(r,e=>(0,p.jsx)(ge,{present:n||a.open,children:(0,p.jsx)(nt,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Tn=`DialogOverlay`,En=d.forwardRef(Z(function(e,t){let n=Cn(Tn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Q(Tn,e.__scopeDialog);return a.modal?(0,p.jsx)(ge,{present:r||a.open,children:(0,p.jsx)(On,{...i,ref:t})}):null},`DialogOverlay`)),Dn=a(`DialogOverlay.RemoveScroll`),On=d.forwardRef(Z(function(e,t){let{__scopeDialog:n,...r}=e,i=Q(Tn,n),a=Pe(),s=o(t,a);return(0,p.jsx)(sn,{as:Dn,allowPinchZoom:!0,shards:[i.contentRef],children:(0,p.jsx)(g.div,{"data-state":zn(i.open),...r,ref:s,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),$=`DialogContent`,kn=d.forwardRef(Z(function(e,t){let n=Cn($,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Q($,e.__scopeDialog);return(0,p.jsx)(ge,{present:r||a.open,children:a.modal?(0,p.jsx)(An,{...i,ref:t}):(0,p.jsx)(jn,{...i,ref:t})})},`DialogContent`)),An=d.forwardRef(Z(function(e,t){let n=Q($,e.__scopeDialog),r=d.useRef(null),i=o(t,n.contentRef,r);return d.useEffect(()=>{let e=r.current;if(e)return mn(e)},[]),(0,p.jsx)(Mn,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:E(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:E(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:E(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),jn=d.forwardRef(Z(function(e,t){let n=Q($,e.__scopeDialog),r=d.useRef(!1),i=d.useRef(!1);return(0,p.jsx)(Mn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),Mn=d.forwardRef(Z(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Q($,n);return ot(),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(We,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,p.jsx)(Ne,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":zn(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),Nn=`DialogTitle`,Pn=d.forwardRef(Z(function(e,t){let{__scopeDialog:n,...r}=e,i=Q(Nn,n),{setTitleCount:a}=i;return k(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,p.jsx)(g.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),Fn=`DialogDescription`,In=d.forwardRef(Z(function(e,t){let{__scopeDialog:n,...r}=e,i=Q(Fn,n),{setDescriptionCount:a}=i;return k(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,p.jsx)(g.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),Ln=`DialogClose`,Rn=d.forwardRef(Z(function(e,t){let{__scopeDialog:n,...r}=e,i=Q(Ln,n);return(0,p.jsx)(g.button,{type:`button`,...r,ref:t,onClick:E(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function zn(e){return e?`open`:`closed`}Z(zn,`getState`);export{En as a,u as c,In as i,c as l,Rn as n,wn as o,kn as r,Pn as s,bn as t};