@knpkv/alchemy-console 0.4.0 → 0.4.2
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.
|
@@ -38,7 +38,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
38
38
|
`},ar=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},or=function(){x.useEffect(function(){return document.body.setAttribute(rr,(ar()+1).toString()),function(){var e=ar()-1;e<=0?document.body.removeAttribute(rr):document.body.setAttribute(rr,e.toString())}},[])},sr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;or();var a=x.useMemo(function(){return tr(i)},[i]);return x.createElement(nr,{styles:ir(a,!t,i,n?``:`!important`)})},cr=!1;if(typeof window<`u`)try{var lr=Object.defineProperty({},"passive",{get:function(){return cr=!0,!0}});window.addEventListener(`test`,lr,lr),window.removeEventListener(`test`,lr,lr)}catch{cr=!1}var ur=cr?{passive:!1}:!1,dr=function(e){return e.tagName===`TEXTAREA`},fr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!dr(e)&&n[t]===`visible`)},pr=function(e){return fr(e,`overflowY`)},mr=function(e){return fr(e,`overflowX`)},hr=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),vr(e,r)){var i=yr(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gr=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},_r=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},vr=function(e,t){return e===`v`?pr(t):mr(t)},yr=function(e,t){return e===`v`?gr(t):_r(t)},br=function(e,t){return e===`h`&&t===`rtl`?-1:1},xr=function(e,t,n,r,i){var a=br(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=yr(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&vr(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},Sr=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cr=function(e){return[e.deltaX,e.deltaY]},wr=function(e){return e&&`current`in e?e.current:e},Tr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Er=function(e){return`
|
|
39
39
|
.block-interactivity-${e} {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
41
|
-
`},Dr=0,Or=[];function kr(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),i=x.useState(Dr++)[0],a=x.useState(Zn)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Dn([e.lockRef.current],(e.shards||[]).map(wr),!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=x.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Sr(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=hr(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=hr(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 xr(h,t,e,h===`h`?s:c,!0)},[]),c=x.useCallback(function(e){var n=e;if(Or.length&&Or[Or.length-1]===a){var r=`deltaY`in n?Cr(n):Sr(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Tr(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(wr).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=x.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ar(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=x.useCallback(function(e){n.current=Sr(e),r.current=void 0},[]),d=x.useCallback(function(t){l(t.type,Cr(t),t.target,s(t,e.lockRef.current))},[]),f=x.useCallback(function(t){l(t.type,Sr(t),t.target,s(t,e.lockRef.current))},[]);x.useEffect(function(){return Or.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ur),document.addEventListener(`touchmove`,c,ur),document.addEventListener(`touchstart`,u,ur),function(){Or=Or.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ur),document.removeEventListener(`touchmove`,c,ur),document.removeEventListener(`touchstart`,u,ur)}},[]);var p=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(a,{styles:Er(i)}):null,p?x.createElement(sr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ar(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jr=Vn(Hn,kr),Mr=x.forwardRef(function(e,t){return x.createElement(Wn,Tn({},e,{ref:t,sideCar:jr}))});Mr.classNames=Wn.classNames;var Nr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Pr=new WeakMap,Fr=new WeakMap,Ir={},Lr=0,Rr=function(e){return e&&(e.host||Rr(e.parentNode))},zr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Rr(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})},Br=function(e,t,n,r){var i=zr(t,Array.isArray(e)?e:[e]);Ir[n]||(Ir[n]=new WeakMap);var a=Ir[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=(Pr.get(e)||0)+1,l=(a.get(e)||0)+1;Pr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Fr.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(),Lr++,function(){o.forEach(function(e){var t=Pr.get(e)-1,i=a.get(e)-1;Pr.set(e,t),a.set(e,i),t||(Fr.has(e)||e.removeAttribute(r),Fr.delete(e)),i||e.removeAttribute(n)}),Lr--,Lr||(Pr=new WeakMap,Pr=new WeakMap,Fr=new WeakMap,Ir={})}},Vr=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Nr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Br(r,i,n,`aria-hidden`)):function(){return null}},Hr=Object.defineProperty,Ur=(e,t)=>Hr(e,`name`,{value:t,configurable:!0}),Wr=`Dialog`,[Gr,Kr]=Fe(Wr),[qr,Jr]=Gr(Wr),Yr=Ur(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=x.useRef(null),c=x.useRef(null),[l,u]=pt({prop:r,defaultProp:i??!1,onChange:a,caller:Wr}),[d,f]=x.useState(0),[p,m]=x.useState(0);return(0,w.jsx)(qr,{scope:t,triggerRef:s,contentRef:c,contentId:jt(),titleId:jt(),descriptionId:jt(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),Xr=`DialogTrigger`,Zr=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(Xr,n),a=ie(t,i.triggerRef);return(0,w.jsx)(E.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":_i(i.open),...r,ref:a,onClick:$e(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Qr=`DialogPortal`,[$r,ei]=Gr(Qr,{forceMount:void 0}),ti=Ur(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Jr(Qr,t);return(0,w.jsx)($r,{scope:t,forceMount:n,children:x.Children.map(r,e=>(0,w.jsx)(xt,{present:n||a.open,children:(0,w.jsx)(_n,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),ni=`DialogOverlay`,ri=x.forwardRef(Ur(function(e,t){let n=ei(ni,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Jr(ni,e.__scopeDialog);return a.modal?(0,w.jsx)(xt,{present:r||a.open,children:(0,w.jsx)(ai,{...i,ref:t})}):null},`DialogOverlay`)),ii=se(`DialogOverlay.RemoveScroll`),ai=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(ni,n),a=ie(t,qt());return(0,w.jsx)(Mr,{as:ii,allowPinchZoom:!0,shards:[i.contentRef],children:(0,w.jsx)(E.div,{"data-state":_i(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),oi=`DialogContent`,si=x.forwardRef(Ur(function(e,t){let n=ei(oi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Jr(oi,e.__scopeDialog);return(0,w.jsx)(xt,{present:r||a.open,children:a.modal?(0,w.jsx)(ci,{...i,ref:t}):(0,w.jsx)(li,{...i,ref:t})})},`DialogContent`)),ci=x.forwardRef(Ur(function(e,t){let n=Jr(oi,e.__scopeDialog),r=x.useRef(null),i=ie(t,n.contentRef,r);return x.useEffect(()=>{let e=r.current;if(e)return Vr(e)},[]),(0,w.jsx)(ui,{...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`)),li=x.forwardRef(Ur(function(e,t){let n=Jr(oi,e.__scopeDialog),r=x.useRef(!1),i=x.useRef(!1);return(0,w.jsx)(ui,{...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`)),ui=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Jr(oi,n);return Cn(),(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(rn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,w.jsx)(Kt,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":_i(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),di=`DialogTitle`,fi=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(di,n),{setTitleCount:a}=i;return it(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,w.jsx)(E.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),pi=`DialogDescription`,mi=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(pi,n),{setDescriptionCount:a}=i;return it(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,w.jsx)(E.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),hi=`DialogClose`,gi=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(hi,n);return(0,w.jsx)(E.button,{type:`button`,...r,ref:t,onClick:$e(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function _i(e){return e?`open`:`closed`}Ur(_i,`getState`);var vi=Object.defineProperty,yi=(e,t)=>vi(e,`name`,{value:t,configurable:!0}),bi=!1;function xi(){let[e,t]=x.useState(bi);return x.useEffect(()=>{bi||(bi=!0,t(!0))},[]),e}yi(xi,`useIsHydrated`);var Si=x.useSyncExternalStore;function Ci(){return()=>{}}yi(Ci,`subscribe`);function wi(){return Si(Ci,()=>!0,()=>!1)}yi(wi,`useIsHydratedModern`);var Ti=typeof Si==`function`?wi:xi,Ei=Object.defineProperty,Di=(e,t)=>Ei(e,`name`,{value:t,configurable:!0}),Oi=`rovingFocusGroup.onEntryFocus`,ki={bubbles:!1,cancelable:!0},Ai=`RovingFocusGroup`,[ji,Mi,Ni]=ze(Ai),[Pi,Fi]=Fe(Ai,[Ni]),[Ii,Li]=Pi(Ai),Ri=x.forwardRef(Di(function(e,t){return(0,w.jsx)(ji.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(ji.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(zi,{...e,ref:t})})})},`RovingFocusGroup`)),zi=x.forwardRef(Di(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=x.useRef(null),p=ie(t,f),m=Ft(a),[h,g]=pt({prop:o,defaultProp:s??null,onChange:c,caller:Ai}),[_,v]=x.useState(!1),y=Rt(l),b=Mi(n),ee=x.useRef(!1),[te,ne]=x.useState(0);return x.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Oi,y),()=>e.removeEventListener(Oi,y)},[y]),(0,w.jsx)(Ii,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:x.useCallback(e=>g(e),[g]),onItemShiftTab:x.useCallback(()=>v(!0),[]),onFocusableItemAdd:x.useCallback(()=>ne(e=>e+1),[]),onFocusableItemRemove:x.useCallback(()=>ne(e=>e-1),[]),children:(0,w.jsx)(E.div,{tabIndex:_||te===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:$e(e.onMouseDown,()=>{ee.current=!0}),onFocus:$e(e.onFocus,e=>{let t=!ee.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Oi,ki);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Gi([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}ee.current=!1}),onBlur:$e(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),Bi=`RovingFocusGroupItem`,Vi=x.forwardRef(Di(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=jt(),l=a||c,u=Li(Bi,n),d=u.currentTabStopId===l,f=Mi(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Ti();return it(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),x.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,w.jsx)(ji.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,w.jsx)(E.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:$e(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:$e(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:$e(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Wi(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Ki(n,r+1):n.slice(r+1)}setTimeout(()=>Gi(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Hi={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Ui(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}Di(Ui,`getDirectionAwareKey`);function Wi(e,t,n){let r=Ui(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Hi[r]}Di(Wi,`getFocusIntent`);function Gi(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Di(Gi,`focusFirst`);function Ki(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Di(Ki,`wrapArray`);var qi=Ri,Ji=Vi,Yi=Object.defineProperty,Xi=(e,t)=>Yi(e,`name`,{value:t,configurable:!0}),Zi=`Tabs`,[Qi,$i]=Fe(Zi,[Fi]),ea=Fi(),[ta,na]=Qi(Zi),ra=x.forwardRef(Xi(function(e,t){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=Ft(s),[d,f]=pt({prop:r,onChange:i,defaultProp:a??``,caller:Zi});return(0,w.jsx)(ta,{scope:n,baseId:jt(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,w.jsx)(E.div,{dir:u,"data-orientation":o,...l,ref:t})})},`Tabs`)),ia=`TabsList`,aa=x.forwardRef(Xi(function(e,t){let{__scopeTabs:n,loop:r=!0,...i}=e,a=na(ia,n),o=ea(n);return(0,w.jsx)(qi,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,w.jsx)(E.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})},`TabsList`)),oa=`TabsTrigger`,sa=x.forwardRef(Xi(function(e,t){let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=na(oa,n),s=ea(n),c=ua(o.baseId,r),l=da(o.baseId,r),u=r===o.value;return(0,w.jsx)(Ji,{asChild:!0,...s,focusable:!i,active:u,children:(0,w.jsx)(E.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:$e(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:$e(e.onKeyDown,e=>{i||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:$e(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})},`TabsTrigger`)),ca=`TabsContent`,la=x.forwardRef(Xi(function(e,t){let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=na(ca,n),c=ua(s.baseId,r),l=da(s.baseId,r),u=r===s.value,d=x.useRef(u);return x.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,w.jsx)(xt,{present:i||u,children:({present:n})=>(0,w.jsx)(E.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})},`TabsContent`));function ua(e,t){return`${e}-trigger-${t}`}Xi(ua,`makeTriggerId`);function da(e,t){return`${e}-content-${t}`}Xi(da,`makeContentId`);var fa=ra,pa=aa,ma=sa,ha=la,O=e=>{let{asChild:t,children:n,...r}=e;return t?(0,w.jsx)(ce,{...r,children:(0,x.cloneElement)(n,{"data-rly-root":``})}):(0,w.jsx)(`div`,{...r,"data-rly-root":``,children:n})},ga=(e=>e)([`system`,`light`,`dark`]),_a=(0,x.createContext)(`system`),va=({theme:e,...t})=>(0,w.jsx)(_a.Provider,{value:e,children:(0,w.jsx)(O,{...t,"data-theme":e})}),ya=e=>{(0,x.useEffect)(()=>{let t=document.documentElement;return t.dataset.theme=e,()=>{t.removeAttribute(`data-theme`)}},[e])},ba=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function xa(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ba(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Sa=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Ca=e=>{let t=Sa(e);return t.charAt(0).toUpperCase()+t.slice(1)},wa=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ta={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Ea(e){return e!=null}function Da(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Ta.width,a=e.size??e.height??Ta.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?wa(...c):wa(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Ta[`stroke-width`])*Number(e.size??e.width??Ta.width)/Number(t.size??t.width??Ta.width):t.strokeWidth??Ta[`stroke-width`];return[`svg`,{...Object.entries(Ta).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Ea(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Ea(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Ea(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Oa(e,t={}){return Da(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ka=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Aa=(0,x.createContext)({}),ja=()=>(0,x.useContext)(Aa),Ma=(0,x.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=ja()??{},y=!!c||ka(d),[b,ee,te=[]]=Oa(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:wa(v,s),hasA11yProp:y,attributes:d});return(0,x.createElement)(b,{ref:f,...ee},[...te.map(([e,t])=>(0,x.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function k(e,t=[],n=[]){let r=typeof e==`string`?xa(e,t,n):e,i=(0,x.forwardRef)(({className:e,...t},n)=>(0,x.createElement)(Ma,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Ca(r.name)),i}var Na={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Na.node;var Pa=k(Na),Fa={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};Fa.node;var Ia=k(Fa),La={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};La.node;var Ra=k(La),za={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};za.node;var Ba=k(za),Va={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Va.node;var Ha=k(Va),Ua={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Ua.node;var Wa=k(Ua),Ga={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Ga.node;var Ka=k(Ga),qa={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};qa.node;var Ja=k(qa),Ya={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Ya.node;var Xa=k(Ya),Za={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Za.node;var Qa=k(Za),$a={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};$a.node;var eo=k($a),to={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};to.node;var no=k(to),ro={name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]};ro.node;var io=k(ro),ao={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};ao.node;var oo=k(ao),so={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};so.node;var co=k(so),lo={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};lo.node;var uo=k(lo),fo={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};fo.node;var po=k(fo),mo={name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]};mo.node;var ho=k(mo),go={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};go.node;var _o=k(go),vo={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};vo.node;var yo=k(vo),bo={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};bo.node;var xo=k(bo),So={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};So.node;var Co=k(So),wo={size:{small:{pixels:16,purpose:`Dense metadata and supporting controls`},default:{pixels:20,purpose:`Standard interface controls`},large:{pixels:24,purpose:`Prominent standalone indicators`}}},To={size:`default`},Eo={"arrow-down":Pa,"arrow-left":Ia,"arrow-right":Ra,"arrow-up":Ba,check:Ha,"chevron-down":Wa,"chevron-left":Ja,"chevron-right":Ka,"chevron-up":Xa,alert:Qa,clock:eo,"external-link":no,file:io,link:oo,loader:co,menu:uo,minus:po,plus:_o,search:yo,user:xo,close:Co,pin:ho},Do=e=>wo.size[e??To.size].pixels,Oo=e=>{let t=Eo[e.name],n=Do(e.size),r={className:e.className,color:`currentColor`,focusable:!1,height:n,strokeWidth:1.75,width:n};if(e.decorative)return(0,w.jsx)(t,{...r,"aria-hidden":`true`});if(e.label.trim().length===0)throw Error(`Informative Icon labels must contain visible text`);return(0,w.jsx)(je,{label:e.label,children:(0,w.jsx)(t,{...r})})},ko=(0,x.createContext)({available:!1}),Ao=()=>(0,x.useContext)(ko),jo=({children:e})=>{let t=Ao();return t.available?e(t.container):null},Mo=new WeakMap,No=(0,x.createContext)(null),Po=0,Fo=(e,t)=>{let n=(0,x.useRef)({open:e,value:t}),r=e&&!n.current.open?t:n.current.value;return(0,x.useLayoutEffect)(()=>{e?n.current.open||(n.current={open:!0,value:t}):n.current={open:!1,value:t}},[e,t]),r},Io=e=>`inert`in e&&u(e.inert),Lo=e=>e!==null&&Io(e),Ro=({children:e})=>{let[t,n]=(0,x.useState)(!1);return(0,x.createElement)(No.Provider,{value:{isContentMounted:t,setContentMounted:n}},e)},zo=()=>(0,x.useContext)(No)?.isContentMounted??!0,Bo=()=>{let e=(0,x.useContext)(No)?.setContentMounted;(0,x.useLayoutEffect)(()=>(e?.(!0),()=>e?.(!1)),[e])},Vo=e=>{let t=Mo.get(e);if(t===void 0){Mo.set(e,{count:1,previous:e.inert}),e.inert=!0;return}t.count+=1},Ho=e=>{let t=Mo.get(e);if(t!==void 0){if(t.count>1){--t.count;return}e.inert=t.previous,Mo.delete(e)}},Uo=(e,t)=>{(0,x.useLayoutEffect)(()=>{if(!t)return;let n=e.current;if(n===null)return;let r=new Set,i=new Set,a=n.ownerDocument.defaultView?.MutationObserver,o=null,s=()=>{let e=n;for(;e!==e.ownerDocument.body;){let t=e.parentNode;if(t===null)break;i.has(t)||(o?.observe(t,{childList:!0}),i.add(t));let n=!1;for(let i of t.children){if(i===e){n=!0;continue}!(n&&i.hasAttribute(`data-rly-modal-layer`))&&Lo(i)&&!r.has(i)&&(Vo(i),r.add(i))}let a=e.parentElement;if(a!==null){e=a;continue}if(!(`host`in t))break;let s=t.host;if(!p(s)||!Io(s))break;e=s}};return a!==void 0&&(o=new a(s)),s(),()=>{o?.disconnect();for(let e of r)Ho(e)}},[t,e])},Wo=()=>++Po,Go=(e,t,n)=>{let r=n??++Po;Po===r&&setTimeout(()=>{Po===r&&t?.(e)!==!0&&e!==null&&e.isConnected===!0&&e.focus()},0)},Ko={layer:`rly_Sheet-module__layer`,trigger:`rly_Sheet-module__trigger`,close:`rly_Sheet-module__close`,iconClose:`rly_Sheet-module__iconClose`,overlay:`rly_Sheet-module__overlay`,content:`rly_Sheet-module__content`,end:`rly_Sheet-module__end`,start:`rly_Sheet-module__start`,"rly-sheet-overlay-out":`rly_Sheet-module__rly-sheet-overlay-out`,"rly-sheet-overlay-in":`rly_Sheet-module__rly-sheet-overlay-in`,"rly-sheet-end-out":`rly_Sheet-module__rly-sheet-end-out`,"rly-sheet-end-in":`rly_Sheet-module__rly-sheet-end-in`,"rly-sheet-start-out":`rly_Sheet-module__rly-sheet-start-out`,"rly-sheet-start-in":`rly_Sheet-module__rly-sheet-start-in`,header:`rly_Sheet-module__header`,heading:`rly_Sheet-module__heading`,title:`rly_Sheet-module__title`,description:`rly_Sheet-module__description`,body:`rly_Sheet-module__body`,footer:`rly_Sheet-module__footer`},qo=e=>g(Ko,e),Jo=h({side:{end:{className:qo(`end`),purpose:`Supporting detail that follows the current reading flow`,tokens:[`color-surface-1`,`radius-overlay`,`motion-standard`]},start:{className:qo(`start`),purpose:`Navigation or context that precedes the current reading flow`,tokens:[`color-surface-1`,`radius-overlay`,`motion-standard`]}}}),Yo=h({side:`end`}),Xo=(0,x.createContext)(null),Zo=()=>{let e=(0,x.useContext)(Xo);if(e===null)throw Error(`Sheet compound components must be nested inside Sheet.Root`);return e},Qo=({children:e,entryMotion:t})=>{let n=Zo(),r=(0,x.useRef)(null);return Bo(),Uo(r,n.open),(0,w.jsx)(`div`,{className:qo(`layer`),"data-rly-modal-layer":``,"data-rly-sheet-entry-motion":t,"data-rly-sheet-layer":``,ref:r,children:e})},A=(e,t)=>(m(e)&&v(e,`${t} children`),e);Object.freeze({Body:({className:e,...t})=>(0,w.jsx)(`div`,{...t,className:_(qo(`body`),e)}),Close:({children:e,className:t,type:n,...r})=>(0,w.jsx)(gi,{"data-rly-hit-area":``,...r,className:_(qo(`close`),t),type:n??`button`,children:A(e,`Sheet.Close`)}),Content:({children:e,className:t,closeLabel:n,description:r,entryMotion:i=`intrinsic`,initialFocusRef:a,ref:o,side:s=Yo.side,tabIndex:c,title:l,...u})=>{let f=Zo(),p=Fo(f.open,i),m=v(l,`Sheet title`),h=r===void 0?void 0:v(r,`Sheet description`),g=v(n??`Close ${m}`,`Sheet closeLabel`),y=(0,x.useRef)(null),b=(0,x.useCallback)(e=>{y.current=e,d(o)?o(e):o!=null&&(o.current=e)},[o]);return(0,w.jsx)(jo,{children:n=>(0,w.jsx)(ti,{container:n,children:(0,w.jsxs)(Qo,{entryMotion:p,children:[(0,w.jsx)(ri,{className:qo(`overlay`),"data-rly-sheet-overlay":``,onPointerDown:()=>f.requestOpenChange(!1)}),(0,w.jsxs)(si,{...u,...h===void 0?{"aria-describedby":void 0}:{},className:_(qo(`content`),Jo.side[s].className,t),"data-rly-sheet-side":s,onCloseAutoFocus:e=>e.preventDefault(),onOpenAutoFocus:e=>{e.preventDefault();let t=y.current?.ownerDocument.activeElement??null;f.restoreFocusRef.current===null&&Lo(t)&&(f.restoreFocusRef.current=t);let n=a?.current??y.current;n?.focus(),n!==y.current&&n?.ownerDocument.activeElement!==n&&y.current?.focus()},ref:b,tabIndex:c??-1,children:[(0,w.jsxs)(`div`,{className:qo(`header`),children:[(0,w.jsxs)(`div`,{className:qo(`heading`),children:[(0,w.jsx)(fi,{className:qo(`title`),children:m}),h===void 0?null:(0,w.jsx)(mi,{className:qo(`description`),children:h})]}),(0,w.jsx)(gi,{"aria-label":g,className:qo(`iconClose`),"data-rly-hit-area":``,type:`button`,children:(0,w.jsx)(Oo,{decorative:!0,name:`close`,size:`default`})})]}),e]})]})})})},Footer:({className:e,...t})=>(0,w.jsx)(`footer`,{...t,className:_(qo(`footer`),e)}),Root:e=>{let{children:t,defaultOpen:n=!1,onOpenChange:r,open:i}=e,[a,o]=(0,x.useState)(n),s=zo(),c=(0,x.useRef)(null),l=(i??a)&&s,u=(0,x.useRef)(l),d=e=>{i===void 0&&o(e),r?.(e)};return(0,x.useLayoutEffect)(()=>{u.current!==l&&(u.current=l,l?Wo():Go(c.current))},[l]),(0,w.jsx)(Ro,{children:(0,w.jsx)(Xo.Provider,{value:{open:l,requestOpenChange:d,restoreFocusRef:c},children:(0,w.jsx)(Yr,{modal:!0,onOpenChange:d,open:l,children:t})})})},Trigger:({children:e,className:t,onClick:n,type:r,...i})=>{let a=Zo();return(0,w.jsx)(Zr,{...i,className:_(qo(`trigger`),t),onClick:e=>{a.restoreFocusRef.current=e.currentTarget,n?.(e)},type:r??`button`,children:A(e,`Sheet.Trigger`)})}});var j={root:`rly_Button-module__root`,primary:`rly_Button-module__primary`,secondary:`rly_Button-module__secondary`,quiet:`rly_Button-module__quiet`,dense:`rly_Button-module__dense`,content:`rly_Button-module__content`,compact:`rly_Button-module__compact`,defaultSize:`rly_Button-module__defaultSize`,principal:`rly_Button-module__principal`,stretch:`rly_Button-module__stretch`,label:`rly_Button-module__label`,loadingContent:`rly_Button-module__loadingContent`,loader:`rly_Button-module__loader`},M=e=>g(j,e),$o=h({variant:{primary:{className:M(`primary`),purpose:`Single principal action`,tokens:[`color-action-background`,`color-action-foreground`]},secondary:{className:M(`secondary`),purpose:`Default supporting action`,tokens:[`color-surface-1`,`color-border-2`]},quiet:{className:M(`quiet`),purpose:`Low-emphasis contextual action`,tokens:[`color-text-1`,`color-surface-2`]}},size:{dense:{className:M(`dense`),purpose:`Tool-density action sized to its text; the default`,tokens:[`control-height-dense`,`radius-tag`]},compact:{className:M(`compact`),purpose:`Dense text action`,tokens:[`control-height-compact`]},default:{className:M(`defaultSize`),purpose:`Standard action`,tokens:[`control-height-default`]},principal:{className:M(`principal`),purpose:`Prominent consequential action`,tokens:[`control-height-principal`,`space-8`]}}}),es=h({variant:`secondary`,size:`dense`}),ts=({"aria-label":e,"aria-labelledby":t,children:n,className:r,disabled:i,leadingIcon:a,loading:o=!1,size:s=es.size,stretch:c=!1,trailingIcon:l,type:u,variant:d=`secondary`,...p})=>{if(!f(n)&&!m(n)||m(n)&&n.trim().length===0)throw Error(`Button children must contain visible content`);return(0,w.jsxs)(`button`,{...p,"aria-busy":o?`true`:void 0,"aria-label":o&&!t?.trim()?e?.trim()?e:String(n):e,"aria-labelledby":t,className:_(M(`root`),$o.variant[d].className,$o.size[s].className,c&&M(`stretch`),r),"data-loading":o?`true`:void 0,disabled:i||o,type:u??`button`,children:[(0,w.jsxs)(`span`,{className:_(M(`content`),o&&M(`loadingContent`)),children:[a===void 0?null:(0,w.jsx)(Oo,{decorative:!0,name:a,size:s===`compact`?`small`:`default`}),(0,w.jsx)(`span`,{className:M(`label`),children:n}),l===void 0?null:(0,w.jsx)(Oo,{decorative:!0,name:l,size:s===`compact`?`small`:`default`})]}),o?(0,w.jsx)(`span`,{"aria-hidden":`true`,className:M(`loader`),children:(0,w.jsx)(Oo,{decorative:!0,name:`loader`,size:s===`compact`?`small`:`default`})}):null]})},ns={root:`rly_StateLabel-module__root`,neutral:`rly_StateLabel-module__neutral`,positive:`rly_StateLabel-module__positive`,critical:`rly_StateLabel-module__critical`,caution:`rly_StateLabel-module__caution`,progress:`rly_StateLabel-module__progress`,compact:`rly_StateLabel-module__compact`,defaultSize:`rly_StateLabel-module__defaultSize`},rs=e=>g(ns,e);rs(`neutral`),rs(`positive`),rs(`critical`),rs(`caution`),rs(`progress`),rs(`compact`),rs(`defaultSize`);var is={root:`rly_Avatar-module__root`,small:`rly_Avatar-module__small`,defaultSize:`rly_Avatar-module__defaultSize`,large:`rly_Avatar-module__large`,hero:`rly_Avatar-module__hero`,circle:`rly_Avatar-module__circle`,roundedSquare:`rly_Avatar-module__roundedSquare`,image:`rly_Avatar-module__image`,fallback:`rly_Avatar-module__fallback`},as=e=>g(is,e);as(`small`),as(`defaultSize`),as(`large`),as(`hero`),as(`circle`),as(`roundedSquare`);var os={root:`rly_IconButton-module__root`,primary:`rly_IconButton-module__primary`,secondary:`rly_IconButton-module__secondary`,quiet:`rly_IconButton-module__quiet`,dense:`rly_IconButton-module__dense`,compact:`rly_IconButton-module__compact`,defaultSize:`rly_IconButton-module__defaultSize`,principal:`rly_IconButton-module__principal`},ss=e=>g(os,e);ss(`primary`),ss(`secondary`),ss(`quiet`),ss(`dense`),ss(`compact`),ss(`defaultSize`),ss(`principal`);var cs={trigger:`rly_Select-module__trigger`,dense:`rly_Select-module__dense`,compact:`rly_Select-module__compact`,defaultSize:`rly_Select-module__defaultSize`,triggerIcon:`rly_Select-module__triggerIcon`,content:`rly_Select-module__content`,viewport:`rly_Select-module__viewport`,item:`rly_Select-module__item`,itemIndicator:`rly_Select-module__itemIndicator`,scrollButton:`rly_Select-module__scrollButton`},ls=e=>g(cs,e);ls(`dense`),ls(`compact`),ls(`defaultSize`);var us={root:`rly_Skeleton-module__root`,text:`rly_Skeleton-module__text`,block:`rly_Skeleton-module__block`,circle:`rly_Skeleton-module__circle`},ds=e=>g(us,e),fs=h({variant:{text:{className:ds(`text`),purpose:`A line of unavailable copy`,tokens:[`type-body`,`radius-tag`]},block:{className:ds(`block`),purpose:`A rectangular unavailable region`,tokens:[`space-64`,`radius-control`]},circle:{className:ds(`circle`),purpose:`A circular unavailable image`,tokens:[`radius-round`]}}}),ps=({className:e,decorative:t=!0,height:n,label:r,style:i,variant:a=`text`,width:o,...s})=>{if(!t&&r===void 0)throw Error(`Skeleton label must contain visible text`);let c=t||r===void 0?void 0:v(r,`Skeleton label`),l={...n!==void 0&&{blockSize:n},...o!==void 0&&{inlineSize:o}};return(0,w.jsx)(`div`,{...s,"aria-busy":t?void 0:`true`,"aria-hidden":t?`true`:void 0,"aria-label":c,className:_(ds(`root`),fs.variant[a].className,e),role:t?`presentation`:`status`,style:{...i,...l}})},ms={root:`rly_StatePanel-module__root`,neutral:`rly_StatePanel-module__neutral`,positive:`rly_StatePanel-module__positive`,critical:`rly_StatePanel-module__critical`,caution:`rly_StatePanel-module__caution`,progress:`rly_StatePanel-module__progress`,icon:`rly_StatePanel-module__icon`,content:`rly_StatePanel-module__content`,title:`rly_StatePanel-module__title`,description:`rly_StatePanel-module__description`,action:`rly_StatePanel-module__action`},hs=e=>g(ms,e);hs(`neutral`),hs(`positive`),hs(`critical`),hs(`caution`),hs(`progress`);var gs={root:`rly_Field-module__root`,label:`rly_Field-module__label`,required:`rly_Field-module__required`,description:`rly_Field-module__description`,error:`rly_Field-module__error`,controlSlot:`rly_Field-module__controlSlot`,control:`rly_Field-module__control`,dense:`rly_Field-module__dense`,compact:`rly_Field-module__compact`,defaultSize:`rly_Field-module__defaultSize`},_s=e=>g(gs,e);_s(`dense`),_s(`compact`),_s(`defaultSize`);var vs={root:`rly_Tabs-module__root`,list:`rly_Tabs-module__list`,trigger:`rly_Tabs-module__trigger`,defaultSize:`rly_Tabs-module__defaultSize`,large:`rly_Tabs-module__large`,panel:`rly_Tabs-module__panel`},ys=e=>g(vs,e),bs=h({size:{default:{className:ys(`defaultSize`),purpose:`Standard section navigation`,tokens:[`type-label`,`space-40`,`space-4`]},large:{className:ys(`large`),purpose:`Prominent page-level navigation`,tokens:[`type-body`,`space-48`]}}}),xs=e=>{if(e.length===0)throw Error(`Tabs items must contain at least one enabled tab`);let t=new Set,n;for(let r of e){let e=v(r.value,`Tab value`);if(v(r.label,`Tab label for ${e}`),t.has(e))throw Error(`Tabs item values must be unique: ${e}`);t.add(e),!r.disabled&&n===void 0&&(n=r)}if(n===void 0)throw Error(`Tabs items must contain at least one enabled tab`);return n},Ss=({"aria-label":e,className:t,defaultValue:n,direction:r,items:i,onValueChange:a,ref:o,size:s=`default`,value:c,...l})=>{let u=v(e,`Tabs aria-label`),d=xs(i),f=c??n??d.value,p=i.find(e=>e.value===f);if(p===void 0||p.disabled)throw Error(`Tabs selected value must identify an enabled tab: ${f}`);let m=c===void 0?a===void 0?{defaultValue:f}:{defaultValue:f,onValueChange:a}:{onValueChange:a,value:c},h=r===void 0?{}:{dir:r};return(0,w.jsxs)(fa,{...l,...m,...h,activationMode:`automatic`,className:_(ys(`root`),bs.size[s].className,t),orientation:`horizontal`,ref:o,children:[(0,w.jsx)(pa,{"aria-label":u,className:ys(`list`),loop:!0,children:i.map(e=>(0,w.jsx)(ma,{className:ys(`trigger`),"data-tab-value":e.value,disabled:e.disabled,value:e.value,children:e.label},e.value))}),i.map(e=>(0,x.createElement)(ha,{className:ys(`panel`),...e.forceMount===void 0?{}:{forceMount:e.forceMount},key:e.value,value:e.value},e.content))]})},Cs={layer:`rly_Dialog-module__layer`,overlay:`rly_Dialog-module__overlay`,content:`rly_Dialog-module__content`,defaultSize:`rly_Dialog-module__defaultSize`,wide:`rly_Dialog-module__wide`,header:`rly_Dialog-module__header`,title:`rly_Dialog-module__title`,description:`rly_Dialog-module__description`,body:`rly_Dialog-module__body`,"dialog-layer-exit":`rly_Dialog-module__dialog-layer-exit`,"dialog-fade-in":`rly_Dialog-module__dialog-fade-in`,"dialog-fade-out":`rly_Dialog-module__dialog-fade-out`,"dialog-enter":`rly_Dialog-module__dialog-enter`,"dialog-exit":`rly_Dialog-module__dialog-exit`,"dialog-compact-in":`rly_Dialog-module__dialog-compact-in`,"dialog-compact-out":`rly_Dialog-module__dialog-compact-out`},ws=e=>g(Cs,e),Ts=(0,x.createContext)(null),Es=()=>{let e=(0,x.useContext)(Ts);if(e===null)throw Error(`Dialog compound components must be nested inside Dialog`);return e},Ds=(e,t)=>{d(e)?e(t):e!=null&&(e.current=t)},Os=()=>{try{return Lo(document.activeElement)?document.activeElement:null}catch{return null}},ks=h({size:{default:{className:ws(`defaultSize`),purpose:`Focused decision or short form`,tokens:[`radius-overlay`,`space-32`]},wide:{className:ws(`wide`),purpose:`Detailed comparison or multi-section form`,tokens:[`radius-overlay`,`space-64`]}}}),As=({children:e,entryMotion:t,ref:n})=>{let r=Es(),i=r.layerRef;Bo(),Uo(i,r.open);let a=(0,x.useCallback)(e=>{i.current=e,Ds(n,e)},[n]);return(0,w.jsx)(`div`,{className:ws(`layer`),"data-rly-dialog-entry-motion":t,"data-rly-dialog-layer":``,"data-rly-modal-layer":``,"data-state":r.open?`open`:`closed`,ref:a,children:e})};Object.freeze({Close:e=>(0,w.jsx)(gi,{asChild:!0,children:(0,w.jsx)(ts,{...e})}),Content:({children:e,className:t,description:n,entryMotion:r=`intrinsic`,initialFocusRef:i,restoreFocus:a,size:o=`default`,title:s,...c})=>{let l=Es(),u=Fo(l.open,r),d=v(s,`Dialog title`),f=n===void 0?void 0:v(n,`Dialog description`);return(0,w.jsx)(jo,{children:n=>(0,w.jsx)(ti,{container:n,children:(0,w.jsxs)(As,{entryMotion:u,children:[(0,w.jsx)(ri,{className:ws(`overlay`),"data-rly-dialog-overlay":``,onPointerDown:()=>{l.requestOpenChange(!1)}}),(0,w.jsxs)(si,{...c,...f===void 0?{"aria-describedby":void 0}:{},className:_(ws(`content`),ks.size[o].className,t),onCloseAutoFocus:e=>{e.preventDefault(),Go(l.restoreTargetRef.current,a,l.closeGenerationRef.current)},onOpenAutoFocus:e=>{let t=Os();l.triggerRef.current===null&&t!==null&&(l.restoreTargetRef.current=t);let n=i?.current;n!=null&&(e.preventDefault(),n.focus())},children:[(0,w.jsxs)(`header`,{className:ws(`header`),children:[(0,w.jsx)(fi,{className:ws(`title`),children:d}),f===void 0?null:(0,w.jsx)(mi,{className:ws(`description`),children:f})]}),(0,w.jsx)(`div`,{className:ws(`body`),children:e})]})]})})})},Root:({children:e,defaultOpen:t=!1,onOpenChange:n,open:r})=>{let[i,a]=(0,x.useState)(t),o=zo(),s=(r??i)&&o,c=(0,x.useRef)(s),l=(0,x.useRef)(null),u=(0,x.useRef)(null),d=(0,x.useRef)(0),f=(0,x.useRef)(s?Os():null);if(s&&!c.current){let e=Os();u.current?.contains(e)!==!0&&(f.current=l.current??e)}let p=e=>{if(e){let e=Os();u.current?.contains(e)!==!0&&(f.current=l.current??e)}r===void 0&&a(e),n?.(e)};return(0,x.useLayoutEffect)(()=>{c.current!==s&&(c.current=s,s?Wo():d.current=Wo())},[s]),(0,x.useLayoutEffect)(()=>()=>{c.current&&(d.current=Wo())},[]),(0,w.jsx)(Ro,{children:(0,w.jsx)(Ts.Provider,{value:{closeGenerationRef:d,layerRef:u,open:s,requestOpenChange:p,restoreTargetRef:f,triggerRef:l},children:(0,w.jsx)(Yr,{modal:!0,onOpenChange:p,open:s,children:e})})})},Trigger:({ref:e,...t})=>{let n=Es();return(0,w.jsx)(Zr,{asChild:!0,children:(0,w.jsx)(ts,{...t,ref:t=>{n.triggerRef.current=t,Ds(e,t)}})})}});var js={root:`rly_Divider-module__root`,horizontal:`rly_Divider-module__horizontal`,vertical:`rly_Divider-module__vertical`,subtle:`rly_Divider-module__subtle`,strong:`rly_Divider-module__strong`},Ms=e=>g(js,e);Ms(`horizontal`),Ms(`vertical`),Ms(`subtle`),Ms(`strong`);var Ns={root:`rly_LimitTrack-module__root`,defaultSize:`rly_LimitTrack-module__defaultSize`,slim:`rly_LimitTrack-module__slim`,fill:`rly_LimitTrack-module__fill`,projection:`rly_LimitTrack-module__projection`,near:`rly_LimitTrack-module__near`},Ps=e=>g(Ns,e);Ps(`defaultSize`),Ps(`slim`);var Fs={root:`rly_Notice-module__root`,neutral:`rly_Notice-module__neutral`,positive:`rly_Notice-module__positive`,critical:`rly_Notice-module__critical`,caution:`rly_Notice-module__caution`,progress:`rly_Notice-module__progress`,icon:`rly_Notice-module__icon`,lead:`rly_Notice-module__lead`,message:`rly_Notice-module__message`,action:`rly_Notice-module__action`},Is=e=>g(Fs,e),Ls=h({tone:{neutral:{className:Is(`neutral`),purpose:`Neutral context`,tokens:[`color-text-2`,`color-border-1`]},positive:{className:Is(`positive`),purpose:`Completed outcome`,tokens:[`color-success-ink`]},critical:{className:Is(`critical`),purpose:`Failure that needs attention`,tokens:[`color-blocked-ink`]},caution:{className:Is(`caution`),purpose:`Limitation or warning`,tokens:[`color-held-ink`]},progress:{className:Is(`progress`),purpose:`Work in progress`,tokens:[`color-deploying-ink`]}}}),Rs={neutral:void 0,positive:`check`,critical:`alert`,caution:`clock`,progress:`loader`},zs=({action:e,announce:t=`off`,children:n,className:r,icon:i,tone:a=`neutral`,...o})=>{let s=i??Rs[a],c=t===`assertive`?`alert`:t===`polite`?`status`:o.role;return(0,w.jsxs)(`div`,{...o,"aria-live":t===`off`?void 0:t,className:_(Is(`root`),Ls.tone[a].className,r),role:c,children:[(0,w.jsxs)(`div`,{className:Is(`lead`),children:[s===void 0?null:(0,w.jsx)(`span`,{"aria-hidden":`true`,className:Is(`icon`),children:(0,w.jsx)(Oo,{decorative:!0,name:s,size:`small`})}),(0,w.jsx)(`div`,{className:Is(`message`),children:n})]}),e===void 0?null:(0,w.jsx)(`div`,{className:Is(`action`),children:e})]})},Bs={root:`rly_Surface-module__root`,tonePrimary:`rly_Surface-module__tonePrimary`,toneSecondary:`rly_Surface-module__toneSecondary`,toneTertiary:`rly_Surface-module__toneTertiary`,shapeCard:`rly_Surface-module__shapeCard`,shapeGrouped:`rly_Surface-module__shapeGrouped`,paddingNone:`rly_Surface-module__paddingNone`,paddingCompact:`rly_Surface-module__paddingCompact`,paddingDefault:`rly_Surface-module__paddingDefault`,paddingSpacious:`rly_Surface-module__paddingSpacious`},Vs=e=>g(Bs,e);Vs(`tonePrimary`),Vs(`toneSecondary`),Vs(`toneTertiary`),Vs(`shapeCard`),Vs(`shapeGrouped`),Vs(`paddingNone`),Vs(`paddingCompact`),Vs(`paddingDefault`),Vs(`paddingSpacious`);var Hs={root:`rly_Text-module__root`,verdict:`rly_Text-module__verdict`,pageTitle:`rly_Text-module__pageTitle`,sectionTitle:`rly_Text-module__sectionTitle`,cardTitle:`rly_Text-module__cardTitle`,bodyLarge:`rly_Text-module__bodyLarge`,body:`rly_Text-module__body`,label:`rly_Text-module__label`,meta:`rly_Text-module__meta`,code:`rly_Text-module__code`,tonePrimary:`rly_Text-module__tonePrimary`,toneSecondary:`rly_Text-module__toneSecondary`,toneTertiary:`rly_Text-module__toneTertiary`,toneInherit:`rly_Text-module__toneInherit`},Us=e=>g(Hs,e),Ws=h({variant:{verdict:{className:Us(`verdict`),purpose:`One restrained verdict thesis`,tokens:[`type-verdict`]},"page-title":{className:Us(`pageTitle`),purpose:`Primary page title`,tokens:[`type-page-title`]},"section-title":{className:Us(`sectionTitle`),purpose:`Section heading`,tokens:[`type-section-title`]},"card-title":{className:Us(`cardTitle`),purpose:`Card or panel heading`,tokens:[`type-card-title`]},"body-large":{className:Us(`bodyLarge`),purpose:`Leading explanatory copy`,tokens:[`type-body-large`]},body:{className:Us(`body`),purpose:`Default interface copy`,tokens:[`type-body`]},label:{className:Us(`label`),purpose:`Control and metadata labels`,tokens:[`type-label`]},meta:{className:Us(`meta`),purpose:`Supporting metadata`,tokens:[`type-meta`]},code:{className:Us(`code`),purpose:`Code and tabular data`,tokens:[`type-code`]}},tone:{primary:{className:Us(`tonePrimary`),purpose:`Primary readable text`,tokens:[`color-text-1`]},secondary:{className:Us(`toneSecondary`),purpose:`Supporting text`,tokens:[`color-text-2`]},tertiary:{className:Us(`toneTertiary`),purpose:`Restricted tertiary text`,tokens:[`color-text-3`]},inherit:{className:Us(`toneInherit`),purpose:`Inherit semantic context`,tokens:[]}}}),Gs=h({variant:`body`,tone:`primary`}),Ks=e=>e===`code`?`code`:e===`verdict`?`p`:e===`label`||e===`meta`?`span`:`p`,N=({as:e,children:t,className:n,ref:r,tone:i=Gs.tone,variant:a=Gs.variant,...o})=>(0,x.createElement)(e??Ks(a),{...o,className:_(Us(`root`),Ws.variant[a].className,Ws.tone[i].className,n),ref:r},t),qs={system:`System`,light:`Light`,dark:`Dark`};ga.map(e=>({label:qs[e],value:e}));var Js={root:`rly_ToggleGroup-module__root`,item:`rly_ToggleGroup-module__item`,dense:`rly_ToggleGroup-module__dense`,compact:`rly_ToggleGroup-module__compact`,defaultSize:`rly_ToggleGroup-module__defaultSize`},Ys=e=>g(Js,e);Ys(`dense`),Ys(`compact`),Ys(`defaultSize`);var Xs=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},Zs={pipe(){return Xs(this,arguments)}},Qs=function(){function e(){}return e.prototype=Zs,e}(),P=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):e=>t(e,...arguments)};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}},F=e=>e,$s=e=>()=>e,ec=$s(!0),tc=$s(!1),nc=$s(null),rc=$s(void 0),ic=rc;function ac(e){let t=new WeakMap;return n=>{let r=t.get(n);if(r!==void 0)return r;let i=e(n);return t.set(n,i),i}}function oc(e){let t=new WeakMap;return n=>{let r=t.get(n);if(r!==void 0)return r;let i=e(n);return t.set(n,i),i!==n&&t.set(i,i),i}}var sc=e=>{let t=new Set(Reflect.ownKeys(e));if(e.constructor===Object)return t;e instanceof Error&&t.delete(`stack`);let n=Object.getPrototypeOf(e),r=n;for(;r!==null&&r!==Object.prototype;){let e=Reflect.ownKeys(r);for(let n=0;n<e.length;n++)t.add(e[n]);r=Object.getPrototypeOf(r)}return t.has(`constructor`)&&typeof e.constructor==`function`&&n===e.constructor.prototype&&t.delete(`constructor`),t},cc=new WeakSet,lc=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),uc=0,dc=()=>{uc++};function fc(e){return typeof e==`string`}function pc(e){return typeof e==`number`}function mc(e){return typeof e==`symbol`}function hc(e){return fc(e)||pc(e)||mc(e)}function gc(e){return typeof e==`function`}function _c(e){return e!=null}function vc(e){return!0}function yc(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function bc(e){return typeof e==`object`&&!!e||gc(e)}var I=P(2,(e,t)=>bc(e)&&t in e);function xc(e){return e instanceof Error}function Sc(e){return I(e,Symbol.iterator)||fc(e)}var Cc=`~effect/Hash`,wc=e=>{switch(typeof e){case`number`:return Ac(e);case`bigint`:return jc(e.toString(10));case`string`:return jc(e);case`function`:case`object`:if(e===null)break;if(e instanceof Date)return Number.isNaN(e.getTime())?jc(`Invalid Date`):jc(e.toISOString());if(e instanceof RegExp)return jc(e.toString());{if(cc.has(e))return Tc(e);let t=Bc.get(e);if(t!==void 0)return t;if(Vc.has(e))return dc(),jc(`[Circular]`);Vc.add(e);let n=uc,r;try{r=`~effect/Hash`in e?e[Cc]():typeof e==`function`?Tc(e):e instanceof DataView?Fc(lc(e)):Array.isArray(e)||ArrayBuffer.isView(e)?Fc(e):e instanceof Map?Ic(e):e instanceof Set?Rc(e):Nc(e)}finally{Vc.delete(e)}return n===uc&&Bc.set(e,r),r}}return Oc(Ec(jc(String(e))))},Tc=e=>(zc.has(e)||zc.set(e,Oc(Math.random()*4294967296|0)),zc.get(e)),Ec=e=>(e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^e>>>16),Dc=P(2,(e,t)=>Ec(Math.imul(e,2654435761)+Math.imul(t,2246822507))),Oc=e=>e&3221225471|e>>>1&1073741824,kc=new DataView(new ArrayBuffer(8)),Ac=e=>{let t=e|0;return t===e?Oc(t):(kc.setFloat64(0,e===e?e:NaN),Oc(Dc(kc.getInt32(0),kc.getInt32(4))))},jc=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return Oc(t)},Mc=(e,t)=>{let n=12289;for(let r of t)n^=Dc(wc(r),wc(e[r]));return Oc(n)},Nc=e=>Mc(e,sc(e)),Pc=(e,t)=>n=>{let r=e;for(let e of n)r^=t(e);return Oc(r)},Fc=e=>{let t=6151;for(let n of e)t=Dc(t,wc(n));return Oc(t)},Ic=Pc(jc(`Map`),([e,t])=>Dc(wc(e),wc(t))),Lc=jc(`Set`),Rc=Pc(Lc,e=>Dc(Lc,wc(e))),zc=new WeakMap,Bc=new WeakMap,Vc=new WeakSet,Hc=`~effect/Equal`;function Uc(){return arguments.length===1?e=>Wc(e,arguments[0]):Wc(arguments[0],arguments[1])}function Wc(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let n=typeof e;return n===typeof t?n===`number`&&e!==e&&t!==t?!0:n!==`object`&&n!==`function`||cc.has(e)||cc.has(t)?!1:Gc(e,t):!1}function Gc(e,t){let n=qc.length;for(let r=n;r-->0;)if(qc[r]===e&&Jc[r]===t)return!0;if(n)return Kc(e,t);let r=Yc.get(e);r||Yc.set(e,r=new WeakMap);let i=r.get(t);return i===void 0&&r.set(t,i=Kc(e,t)),i}function Kc(e,t){qc.push(e),Jc.push(t);try{return Xc(e,t)}finally{qc.pop(),Jc.pop()}}var qc=[],Jc=[],Yc=new WeakMap;function Xc(e,t){if(wc(e)!==wc(t))return!1;if(e instanceof Date){if(!(t instanceof Date))return!1;let n=e.getTime(),r=t.getTime();return n===r||Number.isNaN(n)&&Number.isNaN(r)}if(e instanceof RegExp)return t instanceof RegExp&&e.toString()===t.toString();let n=rl(e);if(n!==rl(t)||typeof e==`function`&&!n)return!1;if(n)return e[Hc](t);if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:Zc(e,t);if(ArrayBuffer.isView(e)){let n=e instanceof DataView;return!ArrayBuffer.isView(t)||e.byteLength!==t.byteLength||n!==t instanceof DataView?!1:n?Qc(lc(e),lc(t)):Qc(e,t)}return e instanceof Map?!(t instanceof Map)||e.size!==t.size?!1:el(e,t,tl,nl):e instanceof Set?!(t instanceof Set)||e.size!==t.size?!1:el(e,t,wc,Wc):$c(e,t)}function Zc(e,t){for(let n=0;n<e.length;n++)if(!Wc(e[n],t[n]))return!1;return!0}function Qc(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function $c(e,t){let n=sc(e),r=sc(t);if(n.size!==r.size)return!1;for(let i of n)if(!r.has(i)||!Wc(e[i],t[i]))return!1;return!0}function el(e,t,n,r){let i=new Map;for(let e of t){let t=n(e),r=i.get(t);r?r.push(e):i.set(t,[e])}outer:for(let t of e){let e=i.get(n(t));if(e){for(let n=0;n<e.length;n++)if(r(t,e[n])){e[n]=e[e.length-1],e.pop();continue outer}}return!1}return!0}var tl=e=>wc(e[0]),nl=(e,t)=>Wc(e[0],t[0])&&Wc(e[1],t[1]),rl=e=>I(e,Hc),il=Symbol.for(`~effect/Redactable`),al=e=>I(e,il);function ol(e){return al(e)?sl(e):e}function sl(e){return e[il](globalThis[`~effect/Fiber/currentFiber`]?.context??ul)}var cl=`~effect/Fiber/currentFiber`,ll=new Map,ul={"~effect/Context":{},base:ll,depth:0,mapUnsafe:ll,pipe(){return Xs(this,arguments)}};function L(e,t){let n=t?.space??0,r=new WeakSet,i=n?typeof n==`number`?` `.repeat(n):n:``,a=e=>i.repeat(e),o=(e,t)=>{let n=e?.constructor;return n&&n!==Object.prototype.constructor&&n.name?`${n.name}(${t})`:t},s=e=>{try{return Reflect.ownKeys(e)}catch{return[`[ownKeys threw]`]}};function c(e,t=0){try{return l(e,t)}catch{return(typeof e==`object`&&e||typeof e==`function`)&&r.delete(e),`[inspection threw]`}}function l(e,n=0){if(typeof e==`string`)return JSON.stringify(e);if(typeof e==`number`||e==null||typeof e==`boolean`||typeof e==`symbol`)return String(e);if(typeof e==`bigint`)return String(e)+`n`;if(typeof e==`object`||typeof e==`function`){if(r.has(e))return dl;r.add(e);let l;if(il in e)l=c(sl(e),n);else if(Array.isArray(e))l=!i||e.length<=1?`[${e.map(e=>c(e,n)).join(`,`)}]`:`[\n${a(n+1)}${e.map(e=>c(e,n+1)).join(`,
|
|
41
|
+
`},Dr=0,Or=[];function kr(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),i=x.useState(Dr++)[0],a=x.useState(Zn)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Dn([e.lockRef.current],(e.shards||[]).map(wr),!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=x.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Sr(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=hr(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=hr(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 xr(h,t,e,h===`h`?s:c,!0)},[]),c=x.useCallback(function(e){var n=e;if(Or.length&&Or[Or.length-1]===a){var r=`deltaY`in n?Cr(n):Sr(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Tr(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(wr).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=x.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ar(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=x.useCallback(function(e){n.current=Sr(e),r.current=void 0},[]),d=x.useCallback(function(t){l(t.type,Cr(t),t.target,s(t,e.lockRef.current))},[]),f=x.useCallback(function(t){l(t.type,Sr(t),t.target,s(t,e.lockRef.current))},[]);x.useEffect(function(){return Or.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ur),document.addEventListener(`touchmove`,c,ur),document.addEventListener(`touchstart`,u,ur),function(){Or=Or.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ur),document.removeEventListener(`touchmove`,c,ur),document.removeEventListener(`touchstart`,u,ur)}},[]);var p=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(a,{styles:Er(i)}):null,p?x.createElement(sr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ar(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jr=Vn(Hn,kr),Mr=x.forwardRef(function(e,t){return x.createElement(Wn,Tn({},e,{ref:t,sideCar:jr}))});Mr.classNames=Wn.classNames;var Nr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Pr=new WeakMap,Fr=new WeakMap,Ir={},Lr=0,Rr=function(e){return e&&(e.host||Rr(e.parentNode))},zr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Rr(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})},Br=function(e,t,n,r){var i=zr(t,Array.isArray(e)?e:[e]);Ir[n]||(Ir[n]=new WeakMap);var a=Ir[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=(Pr.get(e)||0)+1,l=(a.get(e)||0)+1;Pr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Fr.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(),Lr++,function(){o.forEach(function(e){var t=Pr.get(e)-1,i=a.get(e)-1;Pr.set(e,t),a.set(e,i),t||(Fr.has(e)||e.removeAttribute(r),Fr.delete(e)),i||e.removeAttribute(n)}),Lr--,Lr||(Pr=new WeakMap,Pr=new WeakMap,Fr=new WeakMap,Ir={})}},Vr=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Nr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Br(r,i,n,`aria-hidden`)):function(){return null}},Hr=Object.defineProperty,Ur=(e,t)=>Hr(e,`name`,{value:t,configurable:!0}),Wr=`Dialog`,[Gr,Kr]=Fe(Wr),[qr,Jr]=Gr(Wr),Yr=Ur(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=x.useRef(null),c=x.useRef(null),[l,u]=pt({prop:r,defaultProp:i??!1,onChange:a,caller:Wr}),[d,f]=x.useState(0),[p,m]=x.useState(0);return(0,w.jsx)(qr,{scope:t,triggerRef:s,contentRef:c,contentId:jt(),titleId:jt(),descriptionId:jt(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),Xr=`DialogTrigger`,Zr=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(Xr,n),a=ie(t,i.triggerRef);return(0,w.jsx)(E.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":_i(i.open),...r,ref:a,onClick:$e(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Qr=`DialogPortal`,[$r,ei]=Gr(Qr,{forceMount:void 0}),ti=Ur(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Jr(Qr,t);return(0,w.jsx)($r,{scope:t,forceMount:n,children:x.Children.map(r,e=>(0,w.jsx)(xt,{present:n||a.open,children:(0,w.jsx)(_n,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),ni=`DialogOverlay`,ri=x.forwardRef(Ur(function(e,t){let n=ei(ni,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Jr(ni,e.__scopeDialog);return a.modal?(0,w.jsx)(xt,{present:r||a.open,children:(0,w.jsx)(ai,{...i,ref:t})}):null},`DialogOverlay`)),ii=se(`DialogOverlay.RemoveScroll`),ai=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(ni,n),a=ie(t,qt());return(0,w.jsx)(Mr,{as:ii,allowPinchZoom:!0,shards:[i.contentRef],children:(0,w.jsx)(E.div,{"data-state":_i(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),oi=`DialogContent`,si=x.forwardRef(Ur(function(e,t){let n=ei(oi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Jr(oi,e.__scopeDialog);return(0,w.jsx)(xt,{present:r||a.open,children:a.modal?(0,w.jsx)(ci,{...i,ref:t}):(0,w.jsx)(li,{...i,ref:t})})},`DialogContent`)),ci=x.forwardRef(Ur(function(e,t){let n=Jr(oi,e.__scopeDialog),r=x.useRef(null),i=ie(t,n.contentRef,r);return x.useEffect(()=>{let e=r.current;if(e)return Vr(e)},[]),(0,w.jsx)(ui,{...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`)),li=x.forwardRef(Ur(function(e,t){let n=Jr(oi,e.__scopeDialog),r=x.useRef(!1),i=x.useRef(!1);return(0,w.jsx)(ui,{...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`)),ui=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Jr(oi,n);return Cn(),(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(rn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,w.jsx)(Kt,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":_i(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),di=`DialogTitle`,fi=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(di,n),{setTitleCount:a}=i;return it(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,w.jsx)(E.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),pi=`DialogDescription`,mi=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(pi,n),{setDescriptionCount:a}=i;return it(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,w.jsx)(E.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),hi=`DialogClose`,gi=x.forwardRef(Ur(function(e,t){let{__scopeDialog:n,...r}=e,i=Jr(hi,n);return(0,w.jsx)(E.button,{type:`button`,...r,ref:t,onClick:$e(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function _i(e){return e?`open`:`closed`}Ur(_i,`getState`);var vi=Object.defineProperty,yi=(e,t)=>vi(e,`name`,{value:t,configurable:!0}),bi=!1;function xi(){let[e,t]=x.useState(bi);return x.useEffect(()=>{bi||(bi=!0,t(!0))},[]),e}yi(xi,`useIsHydrated`);var Si=x.useSyncExternalStore;function Ci(){return()=>{}}yi(Ci,`subscribe`);function wi(){return Si(Ci,()=>!0,()=>!1)}yi(wi,`useIsHydratedModern`);var Ti=typeof Si==`function`?wi:xi,Ei=Object.defineProperty,Di=(e,t)=>Ei(e,`name`,{value:t,configurable:!0}),Oi=`rovingFocusGroup.onEntryFocus`,ki={bubbles:!1,cancelable:!0},Ai=`RovingFocusGroup`,[ji,Mi,Ni]=ze(Ai),[Pi,Fi]=Fe(Ai,[Ni]),[Ii,Li]=Pi(Ai),Ri=x.forwardRef(Di(function(e,t){return(0,w.jsx)(ji.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(ji.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(zi,{...e,ref:t})})})},`RovingFocusGroup`)),zi=x.forwardRef(Di(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=x.useRef(null),p=ie(t,f),m=Ft(a),[h,g]=pt({prop:o,defaultProp:s??null,onChange:c,caller:Ai}),[_,v]=x.useState(!1),y=Rt(l),b=Mi(n),ee=x.useRef(!1),[te,ne]=x.useState(0);return x.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Oi,y),()=>e.removeEventListener(Oi,y)},[y]),(0,w.jsx)(Ii,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:x.useCallback(e=>g(e),[g]),onItemShiftTab:x.useCallback(()=>v(!0),[]),onFocusableItemAdd:x.useCallback(()=>ne(e=>e+1),[]),onFocusableItemRemove:x.useCallback(()=>ne(e=>e-1),[]),children:(0,w.jsx)(E.div,{tabIndex:_||te===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:$e(e.onMouseDown,()=>{ee.current=!0}),onFocus:$e(e.onFocus,e=>{let t=!ee.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Oi,ki);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Gi([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}ee.current=!1}),onBlur:$e(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),Bi=`RovingFocusGroupItem`,Vi=x.forwardRef(Di(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=jt(),l=a||c,u=Li(Bi,n),d=u.currentTabStopId===l,f=Mi(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Ti();return it(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),x.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,w.jsx)(ji.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,w.jsx)(E.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:$e(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:$e(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:$e(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Wi(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Ki(n,r+1):n.slice(r+1)}setTimeout(()=>Gi(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Hi={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Ui(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}Di(Ui,`getDirectionAwareKey`);function Wi(e,t,n){let r=Ui(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Hi[r]}Di(Wi,`getFocusIntent`);function Gi(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Di(Gi,`focusFirst`);function Ki(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Di(Ki,`wrapArray`);var qi=Ri,Ji=Vi,Yi=Object.defineProperty,Xi=(e,t)=>Yi(e,`name`,{value:t,configurable:!0}),Zi=`Tabs`,[Qi,$i]=Fe(Zi,[Fi]),ea=Fi(),[ta,na]=Qi(Zi),ra=x.forwardRef(Xi(function(e,t){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=Ft(s),[d,f]=pt({prop:r,onChange:i,defaultProp:a??``,caller:Zi});return(0,w.jsx)(ta,{scope:n,baseId:jt(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,w.jsx)(E.div,{dir:u,"data-orientation":o,...l,ref:t})})},`Tabs`)),ia=`TabsList`,aa=x.forwardRef(Xi(function(e,t){let{__scopeTabs:n,loop:r=!0,...i}=e,a=na(ia,n),o=ea(n);return(0,w.jsx)(qi,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,w.jsx)(E.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})},`TabsList`)),oa=`TabsTrigger`,sa=x.forwardRef(Xi(function(e,t){let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=na(oa,n),s=ea(n),c=ua(o.baseId,r),l=da(o.baseId,r),u=r===o.value;return(0,w.jsx)(Ji,{asChild:!0,...s,focusable:!i,active:u,children:(0,w.jsx)(E.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:$e(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:$e(e.onKeyDown,e=>{i||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:$e(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})},`TabsTrigger`)),ca=`TabsContent`,la=x.forwardRef(Xi(function(e,t){let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=na(ca,n),c=ua(s.baseId,r),l=da(s.baseId,r),u=r===s.value,d=x.useRef(u);return x.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,w.jsx)(xt,{present:i||u,children:({present:n})=>(0,w.jsx)(E.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})},`TabsContent`));function ua(e,t){return`${e}-trigger-${t}`}Xi(ua,`makeTriggerId`);function da(e,t){return`${e}-content-${t}`}Xi(da,`makeContentId`);var fa=ra,pa=aa,ma=sa,ha=la,O=e=>{let{asChild:t,children:n,...r}=e;return t?(0,w.jsx)(ce,{...r,children:(0,x.cloneElement)(n,{"data-rly-root":``})}):(0,w.jsx)(`div`,{...r,"data-rly-root":``,children:n})},ga=(e=>e)([`system`,`light`,`dark`]),_a=(0,x.createContext)(`system`),va=({theme:e,...t})=>(0,w.jsx)(_a.Provider,{value:e,children:(0,w.jsx)(O,{...t,"data-theme":e})}),ya=e=>{(0,x.useEffect)(()=>{let t=document.documentElement;return t.dataset.theme=e,()=>{t.removeAttribute(`data-theme`)}},[e])},ba=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function xa(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ba(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Sa=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Ca=e=>{let t=Sa(e);return t.charAt(0).toUpperCase()+t.slice(1)},wa=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ta={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Ea(e){return e!=null}function Da(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Ta.width,a=e.size??e.height??Ta.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?wa(...c):wa(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Ta[`stroke-width`])*Number(e.size??e.width??Ta.width)/Number(t.size??t.width??Ta.width):t.strokeWidth??Ta[`stroke-width`];return[`svg`,{...Object.entries(Ta).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Ea(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Ea(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Ea(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Oa(e,t={}){return Da(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ka=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Aa=(0,x.createContext)({}),ja=()=>(0,x.useContext)(Aa),Ma=(0,x.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=ja()??{},y=!!c||ka(d),[b,ee,te=[]]=Oa(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:wa(v,s),hasA11yProp:y,attributes:d});return(0,x.createElement)(b,{ref:f,...ee},[...te.map(([e,t])=>(0,x.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function k(e,t=[],n=[]){let r=typeof e==`string`?xa(e,t,n):e,i=(0,x.forwardRef)(({className:e,...t},n)=>(0,x.createElement)(Ma,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Ca(r.name)),i}var Na={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Na.node;var Pa=k(Na),Fa={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};Fa.node;var Ia=k(Fa),La={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};La.node;var Ra=k(La),za={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};za.node;var Ba=k(za),Va={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Va.node;var Ha=k(Va),Ua={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Ua.node;var Wa=k(Ua),Ga={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Ga.node;var Ka=k(Ga),qa={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};qa.node;var Ja=k(qa),Ya={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Ya.node;var Xa=k(Ya),Za={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Za.node;var Qa=k(Za),$a={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};$a.node;var eo=k($a),to={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};to.node;var no=k(to),ro={name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]};ro.node;var io=k(ro),ao={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};ao.node;var oo=k(ao),so={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};so.node;var co=k(so),lo={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};lo.node;var uo=k(lo),fo={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};fo.node;var po=k(fo),mo={name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]};mo.node;var ho=k(mo),go={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};go.node;var _o=k(go),vo={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};vo.node;var yo=k(vo),bo={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};bo.node;var xo=k(bo),So={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};So.node;var Co=k(So),wo={size:{small:{pixels:16,purpose:`Dense metadata and supporting controls`},default:{pixels:20,purpose:`Standard interface controls`},large:{pixels:24,purpose:`Prominent standalone indicators`}}},To={size:`default`},Eo={"arrow-down":Pa,"arrow-left":Ia,"arrow-right":Ra,"arrow-up":Ba,check:Ha,"chevron-down":Wa,"chevron-left":Ja,"chevron-right":Ka,"chevron-up":Xa,alert:Qa,clock:eo,"external-link":no,file:io,link:oo,loader:co,menu:uo,minus:po,plus:_o,search:yo,user:xo,close:Co,pin:ho},Do=e=>wo.size[e??To.size].pixels,Oo=e=>{let t=Eo[e.name],n=Do(e.size),r={className:e.className,color:`currentColor`,focusable:!1,height:n,strokeWidth:1.75,width:n};if(e.decorative)return(0,w.jsx)(t,{...r,"aria-hidden":`true`});if(e.label.trim().length===0)throw Error(`Informative Icon labels must contain visible text`);return(0,w.jsx)(je,{label:e.label,children:(0,w.jsx)(t,{...r})})},ko=(0,x.createContext)({available:!1}),Ao=()=>(0,x.useContext)(ko),jo=({children:e})=>{let t=Ao();return t.available?e(t.container):null},Mo=new WeakMap,No=(0,x.createContext)(null),Po=0,Fo=(e,t)=>{let n=(0,x.useRef)({open:e,value:t}),r=e&&!n.current.open?t:n.current.value;return(0,x.useLayoutEffect)(()=>{e?n.current.open||(n.current={open:!0,value:t}):n.current={open:!1,value:t}},[e,t]),r},Io=e=>`inert`in e&&u(e.inert),Lo=e=>e!==null&&Io(e),Ro=({children:e})=>{let[t,n]=(0,x.useState)(!1);return(0,x.createElement)(No.Provider,{value:{isContentMounted:t,setContentMounted:n}},e)},zo=()=>(0,x.useContext)(No)?.isContentMounted??!0,Bo=()=>{let e=(0,x.useContext)(No)?.setContentMounted;(0,x.useLayoutEffect)(()=>(e?.(!0),()=>e?.(!1)),[e])},Vo=e=>{let t=Mo.get(e);if(t===void 0){Mo.set(e,{count:1,previous:e.inert}),e.inert=!0;return}t.count+=1},Ho=e=>{let t=Mo.get(e);if(t!==void 0){if(t.count>1){--t.count;return}e.inert=t.previous,Mo.delete(e)}},Uo=(e,t)=>{(0,x.useLayoutEffect)(()=>{if(!t)return;let n=e.current;if(n===null)return;let r=new Set,i=new Set,a=n.ownerDocument.defaultView?.MutationObserver,o=null,s=()=>{let e=n;for(;e!==e.ownerDocument.body;){let t=e.parentNode;if(t===null)break;i.has(t)||(o?.observe(t,{childList:!0}),i.add(t));let n=!1;for(let i of t.children){if(i===e){n=!0;continue}!(n&&i.hasAttribute(`data-rly-modal-layer`))&&Lo(i)&&!r.has(i)&&(Vo(i),r.add(i))}let a=e.parentElement;if(a!==null){e=a;continue}if(!(`host`in t))break;let s=t.host;if(!p(s)||!Io(s))break;e=s}};return a!==void 0&&(o=new a(s)),s(),()=>{o?.disconnect();for(let e of r)Ho(e)}},[t,e])},Wo=()=>++Po,Go=(e,t,n)=>{let r=n??++Po;Po===r&&setTimeout(()=>{Po===r&&t?.(e)!==!0&&e!==null&&e.isConnected===!0&&e.focus()},0)},Ko={layer:`rly_Sheet-module__layer`,trigger:`rly_Sheet-module__trigger`,close:`rly_Sheet-module__close`,iconClose:`rly_Sheet-module__iconClose`,overlay:`rly_Sheet-module__overlay`,content:`rly_Sheet-module__content`,end:`rly_Sheet-module__end`,start:`rly_Sheet-module__start`,"rly-sheet-overlay-out":`rly_Sheet-module__rly-sheet-overlay-out`,"rly-sheet-overlay-in":`rly_Sheet-module__rly-sheet-overlay-in`,"rly-sheet-end-out":`rly_Sheet-module__rly-sheet-end-out`,"rly-sheet-end-in":`rly_Sheet-module__rly-sheet-end-in`,"rly-sheet-start-out":`rly_Sheet-module__rly-sheet-start-out`,"rly-sheet-start-in":`rly_Sheet-module__rly-sheet-start-in`,header:`rly_Sheet-module__header`,heading:`rly_Sheet-module__heading`,title:`rly_Sheet-module__title`,description:`rly_Sheet-module__description`,body:`rly_Sheet-module__body`,footer:`rly_Sheet-module__footer`},qo=e=>g(Ko,e),Jo=h({side:{end:{className:qo(`end`),purpose:`Supporting detail that follows the current reading flow`,tokens:[`color-surface-1`,`radius-overlay`,`motion-standard`]},start:{className:qo(`start`),purpose:`Navigation or context that precedes the current reading flow`,tokens:[`color-surface-1`,`radius-overlay`,`motion-standard`]}}}),Yo=h({side:`end`}),Xo=(0,x.createContext)(null),Zo=()=>{let e=(0,x.useContext)(Xo);if(e===null)throw Error(`Sheet compound components must be nested inside Sheet.Root`);return e},Qo=({children:e,entryMotion:t})=>{let n=Zo(),r=(0,x.useRef)(null);return Bo(),Uo(r,n.open),(0,w.jsx)(`div`,{className:qo(`layer`),"data-rly-modal-layer":``,"data-rly-sheet-entry-motion":t,"data-rly-sheet-layer":``,ref:r,children:e})},A=(e,t)=>(m(e)&&v(e,`${t} children`),e);Object.freeze({Body:({className:e,...t})=>(0,w.jsx)(`div`,{...t,className:_(qo(`body`),e)}),Close:({children:e,className:t,type:n,...r})=>(0,w.jsx)(gi,{"data-rly-hit-area":``,...r,className:_(qo(`close`),t),type:n??`button`,children:A(e,`Sheet.Close`)}),Content:({children:e,className:t,closeLabel:n,description:r,entryMotion:i=`intrinsic`,initialFocusRef:a,ref:o,side:s=Yo.side,tabIndex:c,title:l,...u})=>{let f=Zo(),p=Fo(f.open,i),m=v(l,`Sheet title`),h=r===void 0?void 0:v(r,`Sheet description`),g=v(n??`Close ${m}`,`Sheet closeLabel`),y=(0,x.useRef)(null),b=(0,x.useCallback)(e=>{y.current=e,d(o)?o(e):o!=null&&(o.current=e)},[o]);return(0,w.jsx)(jo,{children:n=>(0,w.jsx)(ti,{container:n,children:(0,w.jsxs)(Qo,{entryMotion:p,children:[(0,w.jsx)(ri,{className:qo(`overlay`),"data-rly-sheet-overlay":``,onPointerDown:()=>f.requestOpenChange(!1)}),(0,w.jsxs)(si,{...u,...h===void 0?{"aria-describedby":void 0}:{},className:_(qo(`content`),Jo.side[s].className,t),"data-rly-sheet-side":s,onCloseAutoFocus:e=>e.preventDefault(),onOpenAutoFocus:e=>{e.preventDefault();let t=y.current?.ownerDocument.activeElement??null;f.restoreFocusRef.current===null&&Lo(t)&&(f.restoreFocusRef.current=t);let n=a?.current??y.current;n?.focus(),n!==y.current&&n?.ownerDocument.activeElement!==n&&y.current?.focus()},ref:b,tabIndex:c??-1,children:[(0,w.jsxs)(`div`,{className:qo(`header`),children:[(0,w.jsxs)(`div`,{className:qo(`heading`),children:[(0,w.jsx)(fi,{className:qo(`title`),children:m}),h===void 0?null:(0,w.jsx)(mi,{className:qo(`description`),children:h})]}),(0,w.jsx)(gi,{"aria-label":g,className:qo(`iconClose`),"data-rly-hit-area":``,type:`button`,children:(0,w.jsx)(Oo,{decorative:!0,name:`close`,size:`default`})})]}),e]})]})})})},Footer:({className:e,...t})=>(0,w.jsx)(`footer`,{...t,className:_(qo(`footer`),e)}),Root:e=>{let{children:t,defaultOpen:n=!1,onOpenChange:r,open:i,restoreFocus:a}=e,[o,s]=(0,x.useState)(n),c=zo(),l=(0,x.useRef)(null),u=(i??o)&&c,d=(0,x.useRef)(u),f=e=>{i===void 0&&s(e),r?.(e)};return(0,x.useLayoutEffect)(()=>{if(d.current!==u){if(d.current=u,u)Wo();else{let e=l.current;l.current=null,Go(e,()=>{let e=a?.();return e===void 0||!e.isConnected||e.closest(`[hidden], [inert], [aria-hidden="true"]`)!==null||e.getClientRects().length===0?!1:(e.focus(),e.ownerDocument.activeElement===e)})}}},[u,a]),(0,w.jsx)(Ro,{children:(0,w.jsx)(Xo.Provider,{value:{open:u,requestOpenChange:f,restoreFocusRef:l},children:(0,w.jsx)(Yr,{modal:!0,onOpenChange:f,open:u,children:t})})})},Trigger:({children:e,className:t,onClick:n,type:r,...i})=>{let a=Zo();return(0,w.jsx)(Zr,{...i,className:_(qo(`trigger`),t),onClick:e=>{a.restoreFocusRef.current=e.currentTarget,n?.(e)},type:r??`button`,children:A(e,`Sheet.Trigger`)})}});var j={root:`rly_Button-module__root`,primary:`rly_Button-module__primary`,secondary:`rly_Button-module__secondary`,quiet:`rly_Button-module__quiet`,dense:`rly_Button-module__dense`,content:`rly_Button-module__content`,compact:`rly_Button-module__compact`,defaultSize:`rly_Button-module__defaultSize`,principal:`rly_Button-module__principal`,stretch:`rly_Button-module__stretch`,label:`rly_Button-module__label`,loadingContent:`rly_Button-module__loadingContent`,loader:`rly_Button-module__loader`},M=e=>g(j,e),$o=h({variant:{primary:{className:M(`primary`),purpose:`Single principal action`,tokens:[`color-action-background`,`color-action-foreground`]},secondary:{className:M(`secondary`),purpose:`Default supporting action`,tokens:[`color-surface-1`,`color-border-2`]},quiet:{className:M(`quiet`),purpose:`Low-emphasis contextual action`,tokens:[`color-text-1`,`color-surface-2`]}},size:{dense:{className:M(`dense`),purpose:`Tool-density action sized to its text; the default`,tokens:[`control-height-dense`,`radius-tag`]},compact:{className:M(`compact`),purpose:`Dense text action`,tokens:[`control-height-compact`]},default:{className:M(`defaultSize`),purpose:`Standard action`,tokens:[`control-height-default`]},principal:{className:M(`principal`),purpose:`Prominent consequential action`,tokens:[`control-height-principal`,`space-8`]}}}),es=h({variant:`secondary`,size:`dense`}),ts=({"aria-label":e,"aria-labelledby":t,children:n,className:r,disabled:i,leadingIcon:a,loading:o=!1,size:s=es.size,stretch:c=!1,trailingIcon:l,type:u,variant:d=`secondary`,...p})=>{if(!f(n)&&!m(n)||m(n)&&n.trim().length===0)throw Error(`Button children must contain visible content`);return(0,w.jsxs)(`button`,{...p,"aria-busy":o?`true`:void 0,"aria-label":o&&!t?.trim()?e?.trim()?e:String(n):e,"aria-labelledby":t,className:_(M(`root`),$o.variant[d].className,$o.size[s].className,c&&M(`stretch`),r),"data-loading":o?`true`:void 0,disabled:i||o,type:u??`button`,children:[(0,w.jsxs)(`span`,{className:_(M(`content`),o&&M(`loadingContent`)),children:[a===void 0?null:(0,w.jsx)(Oo,{decorative:!0,name:a,size:s===`compact`?`small`:`default`}),(0,w.jsx)(`span`,{className:M(`label`),children:n}),l===void 0?null:(0,w.jsx)(Oo,{decorative:!0,name:l,size:s===`compact`?`small`:`default`})]}),o?(0,w.jsx)(`span`,{"aria-hidden":`true`,className:M(`loader`),children:(0,w.jsx)(Oo,{decorative:!0,name:`loader`,size:s===`compact`?`small`:`default`})}):null]})},ns={root:`rly_StateLabel-module__root`,neutral:`rly_StateLabel-module__neutral`,positive:`rly_StateLabel-module__positive`,critical:`rly_StateLabel-module__critical`,caution:`rly_StateLabel-module__caution`,progress:`rly_StateLabel-module__progress`,compact:`rly_StateLabel-module__compact`,defaultSize:`rly_StateLabel-module__defaultSize`},rs=e=>g(ns,e);rs(`neutral`),rs(`positive`),rs(`critical`),rs(`caution`),rs(`progress`),rs(`compact`),rs(`defaultSize`);var is={root:`rly_Avatar-module__root`,small:`rly_Avatar-module__small`,defaultSize:`rly_Avatar-module__defaultSize`,large:`rly_Avatar-module__large`,hero:`rly_Avatar-module__hero`,circle:`rly_Avatar-module__circle`,roundedSquare:`rly_Avatar-module__roundedSquare`,image:`rly_Avatar-module__image`,fallback:`rly_Avatar-module__fallback`},as=e=>g(is,e);as(`small`),as(`defaultSize`),as(`large`),as(`hero`),as(`circle`),as(`roundedSquare`);var os={root:`rly_IconButton-module__root`,primary:`rly_IconButton-module__primary`,secondary:`rly_IconButton-module__secondary`,quiet:`rly_IconButton-module__quiet`,dense:`rly_IconButton-module__dense`,compact:`rly_IconButton-module__compact`,defaultSize:`rly_IconButton-module__defaultSize`,principal:`rly_IconButton-module__principal`},ss=e=>g(os,e);ss(`primary`),ss(`secondary`),ss(`quiet`),ss(`dense`),ss(`compact`),ss(`defaultSize`),ss(`principal`);var cs={trigger:`rly_Select-module__trigger`,dense:`rly_Select-module__dense`,compact:`rly_Select-module__compact`,defaultSize:`rly_Select-module__defaultSize`,triggerIcon:`rly_Select-module__triggerIcon`,content:`rly_Select-module__content`,viewport:`rly_Select-module__viewport`,item:`rly_Select-module__item`,itemIndicator:`rly_Select-module__itemIndicator`,scrollButton:`rly_Select-module__scrollButton`},ls=e=>g(cs,e);ls(`dense`),ls(`compact`),ls(`defaultSize`);var us={root:`rly_Skeleton-module__root`,text:`rly_Skeleton-module__text`,block:`rly_Skeleton-module__block`,circle:`rly_Skeleton-module__circle`},ds=e=>g(us,e),fs=h({variant:{text:{className:ds(`text`),purpose:`A line of unavailable copy`,tokens:[`type-body`,`radius-tag`]},block:{className:ds(`block`),purpose:`A rectangular unavailable region`,tokens:[`space-64`,`radius-control`]},circle:{className:ds(`circle`),purpose:`A circular unavailable image`,tokens:[`radius-round`]}}}),ps=({className:e,decorative:t=!0,height:n,label:r,style:i,variant:a=`text`,width:o,...s})=>{if(!t&&r===void 0)throw Error(`Skeleton label must contain visible text`);let c=t||r===void 0?void 0:v(r,`Skeleton label`),l={...n!==void 0&&{blockSize:n},...o!==void 0&&{inlineSize:o}};return(0,w.jsx)(`div`,{...s,"aria-busy":t?void 0:`true`,"aria-hidden":t?`true`:void 0,"aria-label":c,className:_(ds(`root`),fs.variant[a].className,e),role:t?`presentation`:`status`,style:{...i,...l}})},ms={root:`rly_StatePanel-module__root`,neutral:`rly_StatePanel-module__neutral`,positive:`rly_StatePanel-module__positive`,critical:`rly_StatePanel-module__critical`,caution:`rly_StatePanel-module__caution`,progress:`rly_StatePanel-module__progress`,icon:`rly_StatePanel-module__icon`,content:`rly_StatePanel-module__content`,title:`rly_StatePanel-module__title`,description:`rly_StatePanel-module__description`,action:`rly_StatePanel-module__action`},hs=e=>g(ms,e);hs(`neutral`),hs(`positive`),hs(`critical`),hs(`caution`),hs(`progress`);var gs={root:`rly_Field-module__root`,label:`rly_Field-module__label`,required:`rly_Field-module__required`,description:`rly_Field-module__description`,error:`rly_Field-module__error`,controlSlot:`rly_Field-module__controlSlot`,control:`rly_Field-module__control`,dense:`rly_Field-module__dense`,compact:`rly_Field-module__compact`,defaultSize:`rly_Field-module__defaultSize`},_s=e=>g(gs,e);_s(`dense`),_s(`compact`),_s(`defaultSize`);var vs={root:`rly_Tabs-module__root`,list:`rly_Tabs-module__list`,trigger:`rly_Tabs-module__trigger`,defaultSize:`rly_Tabs-module__defaultSize`,large:`rly_Tabs-module__large`,panel:`rly_Tabs-module__panel`},ys=e=>g(vs,e),bs=h({size:{default:{className:ys(`defaultSize`),purpose:`Standard section navigation`,tokens:[`type-label`,`space-40`,`space-4`]},large:{className:ys(`large`),purpose:`Prominent page-level navigation`,tokens:[`type-body`,`space-48`]}}}),xs=e=>{if(e.length===0)throw Error(`Tabs items must contain at least one enabled tab`);let t=new Set,n;for(let r of e){let e=v(r.value,`Tab value`);if(v(r.label,`Tab label for ${e}`),t.has(e))throw Error(`Tabs item values must be unique: ${e}`);t.add(e),!r.disabled&&n===void 0&&(n=r)}if(n===void 0)throw Error(`Tabs items must contain at least one enabled tab`);return n},Ss=({"aria-label":e,className:t,defaultValue:n,direction:r,items:i,onValueChange:a,ref:o,size:s=`default`,value:c,...l})=>{let u=v(e,`Tabs aria-label`),d=xs(i),f=c??n??d.value,p=i.find(e=>e.value===f);if(p===void 0||p.disabled)throw Error(`Tabs selected value must identify an enabled tab: ${f}`);let m=c===void 0?a===void 0?{defaultValue:f}:{defaultValue:f,onValueChange:a}:{onValueChange:a,value:c},h=r===void 0?{}:{dir:r};return(0,w.jsxs)(fa,{...l,...m,...h,activationMode:`automatic`,className:_(ys(`root`),bs.size[s].className,t),orientation:`horizontal`,ref:o,children:[(0,w.jsx)(pa,{"aria-label":u,className:ys(`list`),loop:!0,children:i.map(e=>(0,w.jsx)(ma,{className:ys(`trigger`),"data-tab-value":e.value,disabled:e.disabled,value:e.value,children:e.label},e.value))}),i.map(e=>(0,x.createElement)(ha,{className:ys(`panel`),...e.forceMount===void 0?{}:{forceMount:e.forceMount},key:e.value,value:e.value},e.content))]})},Cs={layer:`rly_Dialog-module__layer`,overlay:`rly_Dialog-module__overlay`,content:`rly_Dialog-module__content`,defaultSize:`rly_Dialog-module__defaultSize`,wide:`rly_Dialog-module__wide`,header:`rly_Dialog-module__header`,title:`rly_Dialog-module__title`,description:`rly_Dialog-module__description`,body:`rly_Dialog-module__body`,"dialog-layer-exit":`rly_Dialog-module__dialog-layer-exit`,"dialog-fade-in":`rly_Dialog-module__dialog-fade-in`,"dialog-fade-out":`rly_Dialog-module__dialog-fade-out`,"dialog-enter":`rly_Dialog-module__dialog-enter`,"dialog-exit":`rly_Dialog-module__dialog-exit`,"dialog-compact-in":`rly_Dialog-module__dialog-compact-in`,"dialog-compact-out":`rly_Dialog-module__dialog-compact-out`},ws=e=>g(Cs,e),Ts=(0,x.createContext)(null),Es=()=>{let e=(0,x.useContext)(Ts);if(e===null)throw Error(`Dialog compound components must be nested inside Dialog`);return e},Ds=(e,t)=>{d(e)?e(t):e!=null&&(e.current=t)},Os=()=>{try{return Lo(document.activeElement)?document.activeElement:null}catch{return null}},ks=h({size:{default:{className:ws(`defaultSize`),purpose:`Focused decision or short form`,tokens:[`radius-overlay`,`space-32`]},wide:{className:ws(`wide`),purpose:`Detailed comparison or multi-section form`,tokens:[`radius-overlay`,`space-64`]}}}),As=({children:e,entryMotion:t,ref:n})=>{let r=Es(),i=r.layerRef;Bo(),Uo(i,r.open);let a=(0,x.useCallback)(e=>{i.current=e,Ds(n,e)},[n]);return(0,w.jsx)(`div`,{className:ws(`layer`),"data-rly-dialog-entry-motion":t,"data-rly-dialog-layer":``,"data-rly-modal-layer":``,"data-state":r.open?`open`:`closed`,ref:a,children:e})};Object.freeze({Close:e=>(0,w.jsx)(gi,{asChild:!0,children:(0,w.jsx)(ts,{...e})}),Content:({children:e,className:t,description:n,entryMotion:r=`intrinsic`,initialFocusRef:i,restoreFocus:a,size:o=`default`,title:s,...c})=>{let l=Es(),u=Fo(l.open,r),d=v(s,`Dialog title`),f=n===void 0?void 0:v(n,`Dialog description`);return(0,w.jsx)(jo,{children:n=>(0,w.jsx)(ti,{container:n,children:(0,w.jsxs)(As,{entryMotion:u,children:[(0,w.jsx)(ri,{className:ws(`overlay`),"data-rly-dialog-overlay":``,onPointerDown:()=>{l.requestOpenChange(!1)}}),(0,w.jsxs)(si,{...c,...f===void 0?{"aria-describedby":void 0}:{},className:_(ws(`content`),ks.size[o].className,t),onCloseAutoFocus:e=>{e.preventDefault(),Go(l.restoreTargetRef.current,a,l.closeGenerationRef.current)},onOpenAutoFocus:e=>{let t=Os();l.triggerRef.current===null&&t!==null&&(l.restoreTargetRef.current=t);let n=i?.current;n!=null&&(e.preventDefault(),n.focus())},children:[(0,w.jsxs)(`header`,{className:ws(`header`),children:[(0,w.jsx)(fi,{className:ws(`title`),children:d}),f===void 0?null:(0,w.jsx)(mi,{className:ws(`description`),children:f})]}),(0,w.jsx)(`div`,{className:ws(`body`),children:e})]})]})})})},Root:({children:e,defaultOpen:t=!1,onOpenChange:n,open:r})=>{let[i,a]=(0,x.useState)(t),o=zo(),s=(r??i)&&o,c=(0,x.useRef)(s),l=(0,x.useRef)(null),u=(0,x.useRef)(null),d=(0,x.useRef)(0),f=(0,x.useRef)(s?Os():null);if(s&&!c.current){let e=Os();u.current?.contains(e)!==!0&&(f.current=l.current??e)}let p=e=>{if(e){let e=Os();u.current?.contains(e)!==!0&&(f.current=l.current??e)}r===void 0&&a(e),n?.(e)};return(0,x.useLayoutEffect)(()=>{c.current!==s&&(c.current=s,s?Wo():d.current=Wo())},[s]),(0,x.useLayoutEffect)(()=>()=>{c.current&&(d.current=Wo())},[]),(0,w.jsx)(Ro,{children:(0,w.jsx)(Ts.Provider,{value:{closeGenerationRef:d,layerRef:u,open:s,requestOpenChange:p,restoreTargetRef:f,triggerRef:l},children:(0,w.jsx)(Yr,{modal:!0,onOpenChange:p,open:s,children:e})})})},Trigger:({ref:e,...t})=>{let n=Es();return(0,w.jsx)(Zr,{asChild:!0,children:(0,w.jsx)(ts,{...t,ref:t=>{n.triggerRef.current=t,Ds(e,t)}})})}});var js={root:`rly_Divider-module__root`,horizontal:`rly_Divider-module__horizontal`,vertical:`rly_Divider-module__vertical`,subtle:`rly_Divider-module__subtle`,strong:`rly_Divider-module__strong`},Ms=e=>g(js,e);Ms(`horizontal`),Ms(`vertical`),Ms(`subtle`),Ms(`strong`);var Ns={root:`rly_LimitTrack-module__root`,defaultSize:`rly_LimitTrack-module__defaultSize`,slim:`rly_LimitTrack-module__slim`,fill:`rly_LimitTrack-module__fill`,projection:`rly_LimitTrack-module__projection`,near:`rly_LimitTrack-module__near`},Ps=e=>g(Ns,e);Ps(`defaultSize`),Ps(`slim`);var Fs={root:`rly_Notice-module__root`,neutral:`rly_Notice-module__neutral`,positive:`rly_Notice-module__positive`,critical:`rly_Notice-module__critical`,caution:`rly_Notice-module__caution`,progress:`rly_Notice-module__progress`,icon:`rly_Notice-module__icon`,lead:`rly_Notice-module__lead`,message:`rly_Notice-module__message`,action:`rly_Notice-module__action`},Is=e=>g(Fs,e),Ls=h({tone:{neutral:{className:Is(`neutral`),purpose:`Neutral context`,tokens:[`color-text-2`,`color-border-1`]},positive:{className:Is(`positive`),purpose:`Completed outcome`,tokens:[`color-success-ink`]},critical:{className:Is(`critical`),purpose:`Failure that needs attention`,tokens:[`color-blocked-ink`]},caution:{className:Is(`caution`),purpose:`Limitation or warning`,tokens:[`color-held-ink`]},progress:{className:Is(`progress`),purpose:`Work in progress`,tokens:[`color-deploying-ink`]}}}),Rs={neutral:void 0,positive:`check`,critical:`alert`,caution:`clock`,progress:`loader`},zs=({action:e,announce:t=`off`,children:n,className:r,icon:i,tone:a=`neutral`,...o})=>{let s=i??Rs[a],c=t===`assertive`?`alert`:t===`polite`?`status`:o.role;return(0,w.jsxs)(`div`,{...o,"aria-live":t===`off`?void 0:t,className:_(Is(`root`),Ls.tone[a].className,r),role:c,children:[(0,w.jsxs)(`div`,{className:Is(`lead`),children:[s===void 0?null:(0,w.jsx)(`span`,{"aria-hidden":`true`,className:Is(`icon`),children:(0,w.jsx)(Oo,{decorative:!0,name:s,size:`small`})}),(0,w.jsx)(`div`,{className:Is(`message`),children:n})]}),e===void 0?null:(0,w.jsx)(`div`,{className:Is(`action`),children:e})]})},Bs={root:`rly_Surface-module__root`,tonePrimary:`rly_Surface-module__tonePrimary`,toneSecondary:`rly_Surface-module__toneSecondary`,toneTertiary:`rly_Surface-module__toneTertiary`,shapeCard:`rly_Surface-module__shapeCard`,shapeGrouped:`rly_Surface-module__shapeGrouped`,paddingNone:`rly_Surface-module__paddingNone`,paddingCompact:`rly_Surface-module__paddingCompact`,paddingDefault:`rly_Surface-module__paddingDefault`,paddingSpacious:`rly_Surface-module__paddingSpacious`},Vs=e=>g(Bs,e);Vs(`tonePrimary`),Vs(`toneSecondary`),Vs(`toneTertiary`),Vs(`shapeCard`),Vs(`shapeGrouped`),Vs(`paddingNone`),Vs(`paddingCompact`),Vs(`paddingDefault`),Vs(`paddingSpacious`);var Hs={root:`rly_Text-module__root`,verdict:`rly_Text-module__verdict`,pageTitle:`rly_Text-module__pageTitle`,sectionTitle:`rly_Text-module__sectionTitle`,cardTitle:`rly_Text-module__cardTitle`,bodyLarge:`rly_Text-module__bodyLarge`,body:`rly_Text-module__body`,label:`rly_Text-module__label`,meta:`rly_Text-module__meta`,code:`rly_Text-module__code`,tonePrimary:`rly_Text-module__tonePrimary`,toneSecondary:`rly_Text-module__toneSecondary`,toneTertiary:`rly_Text-module__toneTertiary`,toneInherit:`rly_Text-module__toneInherit`},Us=e=>g(Hs,e),Ws=h({variant:{verdict:{className:Us(`verdict`),purpose:`One restrained verdict thesis`,tokens:[`type-verdict`]},"page-title":{className:Us(`pageTitle`),purpose:`Primary page title`,tokens:[`type-page-title`]},"section-title":{className:Us(`sectionTitle`),purpose:`Section heading`,tokens:[`type-section-title`]},"card-title":{className:Us(`cardTitle`),purpose:`Card or panel heading`,tokens:[`type-card-title`]},"body-large":{className:Us(`bodyLarge`),purpose:`Leading explanatory copy`,tokens:[`type-body-large`]},body:{className:Us(`body`),purpose:`Default interface copy`,tokens:[`type-body`]},label:{className:Us(`label`),purpose:`Control and metadata labels`,tokens:[`type-label`]},meta:{className:Us(`meta`),purpose:`Supporting metadata`,tokens:[`type-meta`]},code:{className:Us(`code`),purpose:`Code and tabular data`,tokens:[`type-code`]}},tone:{primary:{className:Us(`tonePrimary`),purpose:`Primary readable text`,tokens:[`color-text-1`]},secondary:{className:Us(`toneSecondary`),purpose:`Supporting text`,tokens:[`color-text-2`]},tertiary:{className:Us(`toneTertiary`),purpose:`Restricted tertiary text`,tokens:[`color-text-3`]},inherit:{className:Us(`toneInherit`),purpose:`Inherit semantic context`,tokens:[]}}}),Gs=h({variant:`body`,tone:`primary`}),Ks=e=>e===`code`?`code`:e===`verdict`?`p`:e===`label`||e===`meta`?`span`:`p`,N=({as:e,children:t,className:n,ref:r,tone:i=Gs.tone,variant:a=Gs.variant,...o})=>(0,x.createElement)(e??Ks(a),{...o,className:_(Us(`root`),Ws.variant[a].className,Ws.tone[i].className,n),ref:r},t),qs={system:`System`,light:`Light`,dark:`Dark`};ga.map(e=>({label:qs[e],value:e}));var Js={root:`rly_ToggleGroup-module__root`,item:`rly_ToggleGroup-module__item`,dense:`rly_ToggleGroup-module__dense`,compact:`rly_ToggleGroup-module__compact`,defaultSize:`rly_ToggleGroup-module__defaultSize`},Ys=e=>g(Js,e);Ys(`dense`),Ys(`compact`),Ys(`defaultSize`);var Xs=(e,t)=>{switch(t.length){case 0:return e;case 1:return t[0](e);case 2:return t[1](t[0](e));case 3:return t[2](t[1](t[0](e)));case 4:return t[3](t[2](t[1](t[0](e))));case 5:return t[4](t[3](t[2](t[1](t[0](e)))));case 6:return t[5](t[4](t[3](t[2](t[1](t[0](e))))));case 7:return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));case 8:return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));case 9:return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));default:{let n=e;for(let e=0,r=t.length;e<r;e++)n=t[e](n);return n}}},Zs={pipe(){return Xs(this,arguments)}},Qs=function(){function e(){}return e.prototype=Zs,e}(),P=function(e,t){if(typeof e==`function`)return function(){return e(arguments)?t.apply(this,arguments):e=>t(e,...arguments)};switch(e){case 0:case 1:throw RangeError(`Invalid arity ${e}`);case 2:return function(e,n){return arguments.length>=2?t(e,n):function(n){return t(n,e)}};case 3:return function(e,n,r){return arguments.length>=3?t(e,n,r):function(r){return t(r,e,n)}};default:return function(){if(arguments.length>=e)return t.apply(this,arguments);let n=arguments;return function(e){return t(e,...n)}}}},F=e=>e,$s=e=>()=>e,ec=$s(!0),tc=$s(!1),nc=$s(null),rc=$s(void 0),ic=rc;function ac(e){let t=new WeakMap;return n=>{let r=t.get(n);if(r!==void 0)return r;let i=e(n);return t.set(n,i),i}}function oc(e){let t=new WeakMap;return n=>{let r=t.get(n);if(r!==void 0)return r;let i=e(n);return t.set(n,i),i!==n&&t.set(i,i),i}}var sc=e=>{let t=new Set(Reflect.ownKeys(e));if(e.constructor===Object)return t;e instanceof Error&&t.delete(`stack`);let n=Object.getPrototypeOf(e),r=n;for(;r!==null&&r!==Object.prototype;){let e=Reflect.ownKeys(r);for(let n=0;n<e.length;n++)t.add(e[n]);r=Object.getPrototypeOf(r)}return t.has(`constructor`)&&typeof e.constructor==`function`&&n===e.constructor.prototype&&t.delete(`constructor`),t},cc=new WeakSet,lc=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),uc=0,dc=()=>{uc++};function fc(e){return typeof e==`string`}function pc(e){return typeof e==`number`}function mc(e){return typeof e==`symbol`}function hc(e){return fc(e)||pc(e)||mc(e)}function gc(e){return typeof e==`function`}function _c(e){return e!=null}function vc(e){return!0}function yc(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function bc(e){return typeof e==`object`&&!!e||gc(e)}var I=P(2,(e,t)=>bc(e)&&t in e);function xc(e){return e instanceof Error}function Sc(e){return I(e,Symbol.iterator)||fc(e)}var Cc=`~effect/Hash`,wc=e=>{switch(typeof e){case`number`:return Ac(e);case`bigint`:return jc(e.toString(10));case`string`:return jc(e);case`function`:case`object`:if(e===null)break;if(e instanceof Date)return Number.isNaN(e.getTime())?jc(`Invalid Date`):jc(e.toISOString());if(e instanceof RegExp)return jc(e.toString());{if(cc.has(e))return Tc(e);let t=Bc.get(e);if(t!==void 0)return t;if(Vc.has(e))return dc(),jc(`[Circular]`);Vc.add(e);let n=uc,r;try{r=`~effect/Hash`in e?e[Cc]():typeof e==`function`?Tc(e):e instanceof DataView?Fc(lc(e)):Array.isArray(e)||ArrayBuffer.isView(e)?Fc(e):e instanceof Map?Ic(e):e instanceof Set?Rc(e):Nc(e)}finally{Vc.delete(e)}return n===uc&&Bc.set(e,r),r}}return Oc(Ec(jc(String(e))))},Tc=e=>(zc.has(e)||zc.set(e,Oc(Math.random()*4294967296|0)),zc.get(e)),Ec=e=>(e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^e>>>16),Dc=P(2,(e,t)=>Ec(Math.imul(e,2654435761)+Math.imul(t,2246822507))),Oc=e=>e&3221225471|e>>>1&1073741824,kc=new DataView(new ArrayBuffer(8)),Ac=e=>{let t=e|0;return t===e?Oc(t):(kc.setFloat64(0,e===e?e:NaN),Oc(Dc(kc.getInt32(0),kc.getInt32(4))))},jc=e=>{let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return Oc(t)},Mc=(e,t)=>{let n=12289;for(let r of t)n^=Dc(wc(r),wc(e[r]));return Oc(n)},Nc=e=>Mc(e,sc(e)),Pc=(e,t)=>n=>{let r=e;for(let e of n)r^=t(e);return Oc(r)},Fc=e=>{let t=6151;for(let n of e)t=Dc(t,wc(n));return Oc(t)},Ic=Pc(jc(`Map`),([e,t])=>Dc(wc(e),wc(t))),Lc=jc(`Set`),Rc=Pc(Lc,e=>Dc(Lc,wc(e))),zc=new WeakMap,Bc=new WeakMap,Vc=new WeakSet,Hc=`~effect/Equal`;function Uc(){return arguments.length===1?e=>Wc(e,arguments[0]):Wc(arguments[0],arguments[1])}function Wc(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let n=typeof e;return n===typeof t?n===`number`&&e!==e&&t!==t?!0:n!==`object`&&n!==`function`||cc.has(e)||cc.has(t)?!1:Gc(e,t):!1}function Gc(e,t){let n=qc.length;for(let r=n;r-->0;)if(qc[r]===e&&Jc[r]===t)return!0;if(n)return Kc(e,t);let r=Yc.get(e);r||Yc.set(e,r=new WeakMap);let i=r.get(t);return i===void 0&&r.set(t,i=Kc(e,t)),i}function Kc(e,t){qc.push(e),Jc.push(t);try{return Xc(e,t)}finally{qc.pop(),Jc.pop()}}var qc=[],Jc=[],Yc=new WeakMap;function Xc(e,t){if(wc(e)!==wc(t))return!1;if(e instanceof Date){if(!(t instanceof Date))return!1;let n=e.getTime(),r=t.getTime();return n===r||Number.isNaN(n)&&Number.isNaN(r)}if(e instanceof RegExp)return t instanceof RegExp&&e.toString()===t.toString();let n=rl(e);if(n!==rl(t)||typeof e==`function`&&!n)return!1;if(n)return e[Hc](t);if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:Zc(e,t);if(ArrayBuffer.isView(e)){let n=e instanceof DataView;return!ArrayBuffer.isView(t)||e.byteLength!==t.byteLength||n!==t instanceof DataView?!1:n?Qc(lc(e),lc(t)):Qc(e,t)}return e instanceof Map?!(t instanceof Map)||e.size!==t.size?!1:el(e,t,tl,nl):e instanceof Set?!(t instanceof Set)||e.size!==t.size?!1:el(e,t,wc,Wc):$c(e,t)}function Zc(e,t){for(let n=0;n<e.length;n++)if(!Wc(e[n],t[n]))return!1;return!0}function Qc(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function $c(e,t){let n=sc(e),r=sc(t);if(n.size!==r.size)return!1;for(let i of n)if(!r.has(i)||!Wc(e[i],t[i]))return!1;return!0}function el(e,t,n,r){let i=new Map;for(let e of t){let t=n(e),r=i.get(t);r?r.push(e):i.set(t,[e])}outer:for(let t of e){let e=i.get(n(t));if(e){for(let n=0;n<e.length;n++)if(r(t,e[n])){e[n]=e[e.length-1],e.pop();continue outer}}return!1}return!0}var tl=e=>wc(e[0]),nl=(e,t)=>Wc(e[0],t[0])&&Wc(e[1],t[1]),rl=e=>I(e,Hc),il=Symbol.for(`~effect/Redactable`),al=e=>I(e,il);function ol(e){return al(e)?sl(e):e}function sl(e){return e[il](globalThis[`~effect/Fiber/currentFiber`]?.context??ul)}var cl=`~effect/Fiber/currentFiber`,ll=new Map,ul={"~effect/Context":{},base:ll,depth:0,mapUnsafe:ll,pipe(){return Xs(this,arguments)}};function L(e,t){let n=t?.space??0,r=new WeakSet,i=n?typeof n==`number`?` `.repeat(n):n:``,a=e=>i.repeat(e),o=(e,t)=>{let n=e?.constructor;return n&&n!==Object.prototype.constructor&&n.name?`${n.name}(${t})`:t},s=e=>{try{return Reflect.ownKeys(e)}catch{return[`[ownKeys threw]`]}};function c(e,t=0){try{return l(e,t)}catch{return(typeof e==`object`&&e||typeof e==`function`)&&r.delete(e),`[inspection threw]`}}function l(e,n=0){if(typeof e==`string`)return JSON.stringify(e);if(typeof e==`number`||e==null||typeof e==`boolean`||typeof e==`symbol`)return String(e);if(typeof e==`bigint`)return String(e)+`n`;if(typeof e==`object`||typeof e==`function`){if(r.has(e))return dl;r.add(e);let l;if(il in e)l=c(sl(e),n);else if(Array.isArray(e))l=!i||e.length<=1?`[${e.map(e=>c(e,n)).join(`,`)}]`:`[\n${a(n+1)}${e.map(e=>c(e,n+1)).join(`,
|
|
42
42
|
`+a(n+1))}\n${a(n)}]`;else if(e instanceof Date)l=ml(e);else if(!t?.ignoreToString&&I(e,`toString`)&&typeof e.toString==`function`&&e.toString!==Object.prototype.toString&&e.toString!==Array.prototype.toString){let t=hl(e);l=e instanceof Error&&e.cause!==void 0?`${t} (cause: ${c(e.cause,n)})`:t}else if(Symbol.iterator in e)l=`${e.constructor.name}(${c(Array.from(e),n)})`;else{let t=s(e);if(!i||t.length<=1){let r=`{${t.map(t=>`${fl(t)}:${c(gl(e,t),n)}`).join(`,`)}}`;l=o(e,r)}else{let r=`{\n${t.map(t=>`${a(n+1)}${fl(t)}: ${c(gl(e,t),n+1)}`).join(`,
|
|
43
43
|
`)}\n${a(n)}}`;l=o(e,r)}}return r.delete(e),l}return String(e)}return c(e,0)}var dl=`[Circular]`;function fl(e){return typeof e==`string`?JSON.stringify(e):String(e)}function pl(e){return e.map(e=>`[${fl(e)}]`).join(``)}function ml(e){try{return e.toISOString()}catch{return`Invalid Date`}}function hl(e){try{let t=e.toString();return typeof t==`string`?t:String(t)}catch{return`[toString threw]`}}function gl(e,t){try{return e[t]}catch{return`[property access threw]`}}function _l(e,t){let n=[];return JSON.stringify(e,function(e,t){let r=Object.getOwnPropertyDescriptor(this,e)?.value,i=I(r,il)?ol(r):ol(t);if(typeof i==`bigint`)return L(i);if(typeof i!=`object`||!i)return i;let a=i instanceof Error&&!I(i,`toJSON`)?{...i,name:i.name,message:i.message}:i;for(;n.length>0&&n[n.length-1]!==this;)n.pop();if(!n.includes(i))return n.push(i),a!==i&&n.push(a),a},t?.space)??`null`}var vl=Symbol.for(`nodejs.util.inspect.custom`),yl=e=>{try{return e=ol(e),I(e,`toJSON`)&&gc(e.toJSON)&&e.toJSON.length===0?e.toJSON():Array.isArray(e)?e.map(yl):e}catch{return`[toJSON threw]`}},bl={toJSON(){return yl(this)},[vl](){return this.toJSON()},toString(){return L(this.toJSON())}},xl=class{[vl](){return this.toJSON()}toString(){return L(this.toJSON())}},Sl=(()=>{let e=Object.getOwnPropertyDescriptor(Error,`stackTraceLimit`);return e===void 0?Object.isExtensible(Error):Object.hasOwn(e,`writable`)?e.writable===!0:e.set!==void 0})(),R=()=>Error.stackTraceLimit,Cl=e=>{Sl&&(Error.stackTraceLimit=e)},wl=class{constructor(e){this.value=e,this.done=!1}next(e){return this.done?(this.value=e,this):(this.done=!0,{value:this.value,done:!1})}},Tl=(()=>{let e=`~effect/Utils/internal`,t={[e]:e=>e()},n={[e]:e=>{try{return e()}finally{}}};return R()!==0&&t[e](()=>Error().stack)?.includes(e)===!0?t[e]:n[e]})();function El(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}function Dl(e,t){for(let n of Reflect.ownKeys(t))Object.prototype.propertyIsEnumerable.call(t,n)&&El(e,n,t[n])}var Ol=`~effect/Effect`,kl=`~effect/Exit`,Al={_A:F,_E:F,_R:F},jl=`${Ol}/identifier`,z=`${Ol}/args`,Ml=`${Ol}/evaluate`,Nl=`${Ol}/successCont`,Pl=`${Ol}/failureCont`,Fl=`${Ol}/ensureCont`,Il=Symbol.for(`effect/Effect/Yield`),Ll={pipe(){return Xs(this,arguments)},toJSON(){return{...this}},toString(){return L(this.toJSON(),{ignoreToString:!0,space:2})},[vl](){return this.toJSON()}},Rl={[Ol]:Al,...Ll,[Symbol.iterator](){return new wl(this)},toJSON(){return{_id:`Effect`,op:this[jl],...z in this?{args:this[z]}:void 0}}},zl=e=>I(e,Ol),Bl=e=>I(e,kl),Vl=`~effect/Cause`,Hl=`~effect/Cause/Reason`,Ul=e=>I(e,Vl),Wl=e=>I(e,Hl),Gl=class{constructor(e){this[Vl]=Vl,this.reasons=e}pipe(){return Xs(this,arguments)}toJSON(){return{_id:`Cause`,failures:this.reasons.map(e=>e.toJSON())}}toString(){return`Cause(${L(this.reasons)})`}[vl](){return this.toJSON()}[Hc](e){return Ul(e)&&this.reasons.length===e.reasons.length&&this.reasons.every((t,n)=>Uc(t,e.reasons[n]))}[Cc](){return Fc(this.reasons)}},Kl=new WeakMap,ql=class{[Hl];annotations;_tag;constructor(e,t,n){if(this[Hl]=Hl,this._tag=e,t!==Jl&&typeof n==`object`&&n&&t.size>0){let e=Kl.get(n);e&&(t=new Map([...e,...t])),Kl.set(n,t)}this.annotations=t}annotate(e,t){if(e.mapUnsafe.size===0)return this;let n=new Map(this.annotations);e.mapUnsafe.forEach((e,r)=>{t?.overwrite!==!0&&n.has(r)||n.set(r,e)});let r=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return r.annotations=n,r}pipe(){return Xs(this,arguments)}toString(){return L(this)}[vl](){return this.toString()}},Jl=new Map,Yl=class extends ql{constructor(e,t=Jl){super(`Fail`,t,e),this.error=e}toString(){return`Fail(${L(this.error)})`}toJSON(){return{_tag:`Fail`,error:this.error}}[Hc](e){return tu(e)&&Uc(this.error,e.error)&&Uc(this.annotations,e.annotations)}[Cc](){return Dc(jc(this._tag))(Dc(wc(this.error))(wc(this.annotations)))}},Xl=e=>new Gl(e),Zl=e=>new Gl([new Yl(e)]),Ql=class extends ql{constructor(e,t=Jl){super(`Die`,t,e),this.defect=e}toString(){return`Die(${L(this.defect)})`}toJSON(){return{_tag:`Die`,defect:this.defect}}[Hc](e){return nu(e)&&Uc(this.defect,e.defect)&&Uc(this.annotations,e.annotations)}[Cc](){return Dc(jc(this._tag))(Dc(wc(this.defect))(wc(this.annotations)))}},$l=e=>new Gl([new Ql(e)]),eu=P(e=>Ul(e[0]),(e,t,n)=>t.mapUnsafe.size===0?e:new Gl(e.reasons.map(e=>e.annotate(t,n)))),tu=e=>e._tag===`Fail`,nu=e=>e._tag===`Die`,ru=e=>e._tag===`Interrupt`;function iu(e){return du(`Effect.evaluate: Not implemented`)}var au=e=>({...Rl,[jl]:e.op,[Ml]:e[Ml]??iu,[Nl]:e[Nl],[Pl]:e[Pl],[Fl]:e[Fl]}),ou=e=>{let t=au(e),n=function(e){this[z]=e};return n.prototype=t,function(e){return new n(e)}},su=e=>{let t={[kl]:kl,_tag:e.op,get[e.prop](){return this[z]},...au(e),toString(){return`${e.op}(${L(this[z])})`},toJSON(){return{_id:`Exit`,_tag:e.op,[e.prop]:this[z]}},[Hc](e){return Bl(e)&&e._tag===this._tag&&Uc(this[z],e[z])},[Cc](){return Dc(jc(e.op),wc(this[z]))}},n=function(e){this[z]=e};return n.prototype=t,function(e){return new n(e)}},B=su({op:`Success`,prop:`value`,[Ml](e){let t=e.getCont(Nl);return t?t[Nl](this[z],e,this):e.yieldWith(this)}}),V={key:`effect/Cause/StackTrace`},cu={key:`effect/Cause/InterruptorStackTrace`},lu=su({op:`Failure`,prop:`cause`,[Ml](e){let t=this[z],n=!1;e.cache.stackFrame&&(t=eu(t,{mapUnsafe:new Map([[V.key,e.cache.stackFrame]])}),n=!0);let r=e.getCont(Pl);for(;e.interruptible&&e._interruptedCause&&r;)r=e.getCont(Pl);return r?r[Pl](t,e,n?void 0:this):e.yieldWith(n?lu(t):this)}}),uu=e=>lu(Zl(e)),du=e=>lu($l(e)),fu=ou({op:`WithFiber`,[Ml](e){return this[z](e)}}),pu=function(){class e extends globalThis.Error{}let t=au({op:`YieldableError`,[Ml](){return uu(this)}});return delete t.toString,Object.assign(e.prototype,t),e}(),mu=function(){let e=Symbol.for(`effect/Data/Error/plainArgs`);return class extends pu{constructor(t){super(t?.message,t?.cause?{cause:t.cause}:void 0),t&&(Dl(this,t),Object.defineProperty(this,e,{value:t,enumerable:!1}))}toJSON(){return{...this[e],...this}}}}(),hu=e=>{class t extends mu{_tag=e}return t.prototype.name=e,t},gu=`~effect/Cause/Done`,_u=e=>I(e,gu),vu={[gu]:gu,_tag:`Done`,value:void 0},yu=e=>e===void 0?vu:{[gu]:gu,_tag:`Done`,value:e},bu=uu(vu),xu=e=>e===void 0?bu:uu(yu(e)),Su=e=>au({op:e.label,[Ml]:e.evaluate}),Cu=e=>(t,n)=>t===n||e(t,n),wu=(e,t)=>e===t,Tu=()=>wu;function Eu(e){return Cu((t,n)=>{if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(!e[r](t[r],n[r]))return!1;return!0})}function Du(e){return Cu((t,n)=>{if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0})}var Ou=`~effect/Option`,ku={[Ou]:{_A:e=>e},...Ll,[Symbol.iterator](){return new wl(this)}},Au=Object.defineProperty(Object.assign(Object.create(ku),{_tag:`Some`,_op:`Some`,[Hc](e){return Nu(e)&&Fu(e)&&Uc(this.value,e.value)},[Cc](){return Dc(wc(this._tag))(wc(this.value))},toString(){return`some(${L(this.value)})`},toJSON(){return{_id:`Option`,_tag:this._tag,value:yl(this.value)}}}),"valueOrUndefined",{get(){return this.value}}),ju=wc(`None`),Mu=Object.assign(Object.create(ku),{_tag:`None`,_op:`None`,valueOrUndefined:void 0,[Hc](e){return Nu(e)&&Pu(e)},[Cc](){return ju},toString(){return`none()`},toJSON(){return{_id:`Option`,_tag:this._tag}}}),Nu=e=>I(e,Ou),Pu=e=>e._tag===`None`,Fu=e=>e._tag===`Some`,Iu=Object.create(Mu),Lu=function(e){this.value=e};Lu.prototype=Au;var Ru=e=>new Lu(e),zu=`~effect/Result`,Bu={[zu]:{_A:e=>e,_E:e=>e},...Ll,[Symbol.iterator](){return new wl(this)}},Vu=Object.assign(Object.create(Bu),{_tag:`Success`,_op:`Success`,[Hc](e){return Uu(e)&&Gu(e)&&Uc(this.success,e.success)},[Cc](){return Dc(wc(this._tag))(wc(this.success))},toString(){return`success(${L(this.success)})`},toJSON(){return{_id:`Result`,_tag:this._tag,value:yl(this.success)}}}),Hu=Object.assign(Object.create(Bu),{_tag:`Failure`,_op:`Failure`,[Hc](e){return Uu(e)&&Wu(e)&&Uc(this.failure,e.failure)},[Cc](){return Dc(wc(this._tag))(wc(this.failure))},toString(){return`failure(${L(this.failure)})`},toJSON(){return{_id:`Result`,_tag:this._tag,failure:yl(this.failure)}}}),Uu=e=>I(e,zu),Wu=e=>e._tag===`Failure`,Gu=e=>e._tag===`Success`,Ku=function(e){this.failure=e};Ku.prototype=Hu;var qu=e=>new Ku(e),Ju=function(e){this.success=e};Ju.prototype=Vu;var Yu=e=>new Ju(e);function Xu(e){return(t,n)=>t===n?0:e(t,n)}var Zu=Xu((e,t)=>e<t?-1:1),Qu=Xu((e,t)=>globalThis.Number.isNaN(e)&&globalThis.Number.isNaN(t)?0:globalThis.Number.isNaN(e)?-1:globalThis.Number.isNaN(t)?1:e<t?-1:1),$u=P(2,(e,t)=>Xu((n,r)=>e(t(n),t(r)))),ed=e=>P(2,(t,n)=>e(t,n)===-1),td=e=>P(2,(t,n)=>e(t,n)===1),nd=e=>P(2,(t,n)=>e(t,n)!==1),H=e=>P(2,(t,n)=>e(t,n)!==-1),U=()=>Iu,W=Ru,G=Pu,K=Fu,rd=P(2,(e,{onNone:t,onSome:n})=>G(e)?t():n(e.value)),id=P(2,(e,t)=>G(e)?t():e.value),ad=e=>e==null?U():W(e),od=id(nc),sd=id(rc),cd=e=>(...t)=>{try{return W(e(...t))}catch{return U()}},ld=`~effect/Context/Service`,ud=function(){function e(){}let t=e;Object.setPrototypeOf(t,dd);let n=(e,n)=>(t.key=e,n?.defaultValue&&(t[pd]=pd,t.defaultValue=n.defaultValue),n?.make&&(t.make=n.make),n?.fiberCached&&fd.add(e),t);return arguments.length>0?n(arguments[0],arguments[1]):n},dd={[ld]:ld,...Su({label:`Service`,evaluate(e){return B(Id(e.context,this))}}),toJSON(){return{_id:`Service`,key:this.key}},of(e){return e},context(e){return Ad(this,e)},use(e){return fu(t=>e(Id(t.context,this)))},useSync(e){return fu(t=>B(e(Id(t.context,this))))}},fd=new Set,pd=`~effect/Context/Reference`,md=`~effect/Context`,hd=8,gd=8,_d=(e,t,n,r)=>{let i=Object.create(wd);return i.cacheRoot=e??i,i.base=t,i.overlay=n,i.depth=r,i._flat=void 0,i.baseHits=0,i},vd=(e,t)=>{t&&(vd(e,t.parent),e.set(t.key,t.value))},yd=e=>{if(e._flat)return e._flat;if(!e.overlay)return e._flat=e.base;let t=new Map(e.base);return vd(t,e.overlay),e._flat=t},bd=(e,t)=>{let n=new Map(e.mapUnsafe);return t(n),Cd(n)},xd=Symbol(),Sd=(e,t)=>{let n=e;for(let e=n.overlay;e;e=e.parent)if(e.key===t)return e.value;let r=n.base.get(t);return r===void 0&&!n.base.has(t)?xd:(n.overlay&&++n.baseHits>=n.base.size&&n.baseHits>=gd&&(n.base=yd(n),n.overlay=void 0,n.depth=0),r)},Cd=e=>_d(void 0,e,void 0,0),wd={get mapUnsafe(){return yd(this)},...Ll,[md]:{_Services:e=>e},toJSON(){return{_id:`Context`,services:Array.from(this.mapUnsafe).map(([e,t])=>({key:e,value:t}))}},[Hc](e){if(!Ed(e))return!1;let t=this.mapUnsafe,n=e.mapUnsafe;if(t.size!==n.size)return!1;for(let[e,r]of t)if(!n.has(e)||!Uc(r,n.get(e)))return!1;return!0},[Cc](){return Ac(this.mapUnsafe.size)}},Td=(e,t)=>e.cacheRoot===t.cacheRoot,Ed=e=>I(e,md),Dd=e=>!!e[pd],Od=()=>kd,kd=Cd(new Map),Ad=(e,t)=>Cd(new Map([[e.key,t]])),jd=P(3,(e,t,n)=>Md(e,t.key,n)),Md=(e,t,n)=>{let r=e,i=fd.has(t)?void 0:r.cacheRoot;if(r.depth>=hd){let e=new Map(r.mapUnsafe);return e.set(t,n),_d(i,e,void 0,0)}return _d(i,r.base,{key:t,value:n,parent:r.overlay},r.depth+1)},Nd=P(2,(e,t)=>Pd(e,t.key)),Pd=(e,t)=>{let n=Sd(e,t);return n===xd?void 0:n},Fd=P(2,(e,t)=>{let n=Sd(e,t.key);if(n===xd){if(Dd(t))return Rd(t);throw zd(t)}return n}),Id=Fd,Ld=`~effect/Context/defaultValue`,Rd=e=>Ld in e?e[Ld]:e[Ld]=e.defaultValue(),zd=e=>{let t=Error(`Service not found${e.key?`: ${String(e.key)}`:``}`);if(t.stack){let e=t.stack.split(`
|
|
44
44
|
`);e.splice(1,3),t.stack=e.join(`
|
package/dist/client/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
9
9
|
<title>Stacks | Alchemy console</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-DbklFcSg.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/index-CHwWf6VU.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knpkv/alchemy-console",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Read-only discovery and state readers for local Alchemy stacks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"effect": "4.0.0",
|
|
44
44
|
"react": "^19.3.0",
|
|
45
45
|
"react-dom": "^19.3.0",
|
|
46
|
-
"@knpkv/rly": "^0.
|
|
46
|
+
"@knpkv/rly": "^0.23.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"@knpkv/rly": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
70
70
|
"vitest": "^5.0.3",
|
|
71
71
|
"vite": "^8.3.2",
|
|
72
|
-
"@knpkv/rly": "^0.
|
|
72
|
+
"@knpkv/rly": "^0.23.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@aws-sdk/credential-provider-sso": "^3.973.16",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"@distilled.cloud/aws": "^1.0.0-rc.13",
|
|
78
78
|
"jsonc-parser": "^3.3.1",
|
|
79
79
|
"yaml": "^2.9.1",
|
|
80
|
-
"@knpkv/
|
|
81
|
-
"@knpkv/
|
|
80
|
+
"@knpkv/bounded-io": "^0.3.0",
|
|
81
|
+
"@knpkv/browser-pairing": "^0.8.0"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "tsc -b tsconfig.build.json --force && vite build && vite build -c vite.views.config.ts",
|