@lunora/studio 1.0.0-alpha.105 → 1.0.0-alpha.106

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.
Files changed (59) hide show
  1. package/dist/standalone/{chunk-L54MRHOE.js → chunk-25IDU7IW.js} +1 -1
  2. package/dist/standalone/{chunk-CV2ZHCSQ.js → chunk-2ZG23BA5.js} +1 -1
  3. package/dist/standalone/{chunk-DYH6W3L5.js → chunk-5MJ3G4DY.js} +1 -1
  4. package/dist/standalone/{chunk-MUSKZL5Y.js → chunk-5RIKPDDA.js} +1 -1
  5. package/dist/standalone/chunk-5UY7MLRC.js +1 -0
  6. package/dist/standalone/{chunk-KAVRYX7T.js → chunk-63D4ABMW.js} +1 -1
  7. package/dist/standalone/{chunk-744YTKHP.js → chunk-6KWKX3RH.js} +1 -1
  8. package/dist/standalone/{chunk-XDDXCDKW.js → chunk-6QBOXH2I.js} +1 -1
  9. package/dist/standalone/{chunk-U2DFU5HO.js → chunk-6WB63KTN.js} +1 -1
  10. package/dist/standalone/{chunk-AI62XFW6.js → chunk-7P7NURTD.js} +1 -1
  11. package/dist/standalone/{chunk-GRGQK4AX.js → chunk-7QOXFLZB.js} +1 -1
  12. package/dist/standalone/{chunk-NM6OOA4L.js → chunk-7UP7OQJG.js} +1 -1
  13. package/dist/standalone/{chunk-RGFVM2UG.js → chunk-BCOT3QRZ.js} +1 -1
  14. package/dist/standalone/chunk-BDHAGUAY.js +11 -0
  15. package/dist/standalone/{chunk-NXF4Z5ZP.js → chunk-BG5ELOW6.js} +1 -1
  16. package/dist/standalone/{chunk-3CXC27LL.js → chunk-BXJPPINU.js} +1 -1
  17. package/dist/standalone/{chunk-CMQJI7AJ.js → chunk-BZDIRP7L.js} +1 -1
  18. package/dist/standalone/{chunk-X3CR2UJK.js → chunk-C3YACIEE.js} +1 -1
  19. package/dist/standalone/{chunk-OKIEDUHL.js → chunk-CAOA5AM4.js} +1 -1
  20. package/dist/standalone/{chunk-MVUIIDB7.js → chunk-CKG2DTZ2.js} +1 -1
  21. package/dist/standalone/{chunk-3CSOMPVV.js → chunk-DNEIBTLL.js} +1 -1
  22. package/dist/standalone/{chunk-NGENUSFE.js → chunk-DRR3KV5L.js} +1 -1
  23. package/dist/standalone/{chunk-46ZHPP3M.js → chunk-EF5J67J3.js} +1 -1
  24. package/dist/standalone/{chunk-5MD62MWO.js → chunk-EJWTF334.js} +1 -1
  25. package/dist/standalone/{chunk-UEZXG35P.js → chunk-EP4JQH5X.js} +1 -1
  26. package/dist/standalone/{chunk-QT47YQFN.js → chunk-EXL35M7T.js} +1 -1
  27. package/dist/standalone/{chunk-UF6SDOXD.js → chunk-F2I4JLFR.js} +1 -1
  28. package/dist/standalone/{chunk-HFP4PBM5.js → chunk-F3J6ER2V.js} +1 -1
  29. package/dist/standalone/{chunk-UDOOZJO5.js → chunk-FZ2N52BV.js} +1 -1
  30. package/dist/standalone/{chunk-UPQGD6JY.js → chunk-HLENOQDN.js} +1 -1
  31. package/dist/standalone/{chunk-FCLMIH4N.js → chunk-HUF7RMS3.js} +1 -1
  32. package/dist/standalone/{chunk-HKRRKZPX.js → chunk-HX7IXD7I.js} +1 -1
  33. package/dist/standalone/{chunk-QOP32XAE.js → chunk-IBPWTHHW.js} +1 -1
  34. package/dist/standalone/{chunk-GXXEKXMR.js → chunk-KZRWBSYQ.js} +1 -1
  35. package/dist/standalone/{chunk-LCMKFBA4.js → chunk-LWE6NWQX.js} +1 -1
  36. package/dist/standalone/{chunk-JGTKRQVM.js → chunk-RFSPHFKM.js} +1 -1
  37. package/dist/standalone/{chunk-GLCJSRZU.js → chunk-RJS7UD5U.js} +1 -1
  38. package/dist/standalone/{chunk-NCD4PEEZ.js → chunk-S23KCFVU.js} +1 -1
  39. package/dist/standalone/{chunk-CGKML4NC.js → chunk-S4665UG5.js} +1 -1
  40. package/dist/standalone/{chunk-VU6IQL5Z.js → chunk-SY6ANTKE.js} +1 -1
  41. package/dist/standalone/{chunk-G4YBB2WW.js → chunk-TCV7MMYR.js} +1 -1
  42. package/dist/standalone/{chunk-246BLG4I.js → chunk-UFESYXCE.js} +1 -1
  43. package/dist/standalone/{chunk-V4XO5TAT.js → chunk-UKI2ZYB2.js} +1 -1
  44. package/dist/standalone/{chunk-JISQYNVU.js → chunk-UTK6JUTY.js} +1 -1
  45. package/dist/standalone/{chunk-IRNX35LY.js → chunk-VIJLMIC3.js} +1 -1
  46. package/dist/standalone/{chunk-VM4RE2MS.js → chunk-VOY5EALQ.js} +1 -1
  47. package/dist/standalone/{chunk-NQVE5YON.js → chunk-VR3OBMGZ.js} +1 -1
  48. package/dist/standalone/{chunk-CTR7LLJB.js → chunk-WJCKVELA.js} +1 -1
  49. package/dist/standalone/{chunk-LBORO43W.js → chunk-WZ65AZKA.js} +1 -1
  50. package/dist/standalone/{chunk-XCNNKMME.js → chunk-XEGWCG5S.js} +1 -1
  51. package/dist/standalone/{chunk-XJTTJ57C.js → chunk-XNSCEAHM.js} +1 -1
  52. package/dist/standalone/{chunk-4TLSANPE.js → chunk-XVD7HWY7.js} +1 -1
  53. package/dist/standalone/{chunk-MWLD5STA.js → chunk-XYV7TMYI.js} +1 -1
  54. package/dist/standalone/{chunk-PA7BSM5T.js → chunk-YJ25NVR2.js} +1 -1
  55. package/dist/standalone/{chunk-VU27DLBM.js → chunk-ZCNMXKF2.js} +1 -1
  56. package/dist/standalone/studio.js +1 -1
  57. package/package.json +4 -4
  58. package/dist/standalone/chunk-CJQ2534J.js +0 -1
  59. package/dist/standalone/chunk-UQV7Q5S4.js +0 -11
@@ -1 +1 @@
1
- import{a as An,b as Vn}from"./chunk-VU27DLBM.js";import{a as Ln,d as Hn}from"./chunk-3C3CG7ZK.js";import{a as Gt,b as Jt,c as Qt,d as En,e as jo}from"./chunk-I6A5C46N.js";import{$ as Sn,A as jt,C as bn,D as U,E as xn,F as yn,I as Kt,L as _e,M as wo,N as zt,P as Eo,Q as Cn,R as Pn,S as To,T as Ut,U as Zt,V as Wt,W as $t,X as ko,Y as qt,_ as Rn,aa as Oo,b as nn,ba as Mo,ea as Do,fa as Pe,ga as Nn,ha as Yt,i as cn,ia as wn,j as dn,ja as de,k as pn,ka as Io,l as hr,m as Co,ma as _o,na as Ao,o as Po,oa as Vo,p as un,pa as Lo,q as Ro,qa as Ho,ra as Bo,s as mn,sa as Tn,ta as kn,u as fn,ua as Fo,v as gn,va as On,w as hn,x as So,y as No,z as vn}from"./chunk-2QSHLBCO.js";import{c as Mn,h as Dn,k as vr}from"./chunk-QBWRC5YX.js";import{a as Ko}from"./chunk-HPFLBYRI.js";import{b as _n}from"./chunk-CZZWYUTR.js";import{a as jr,b as Kr,d as zr,e as so,f as mr,g as Ur,h as Zr,i as Wr,j as $r,k as qr}from"./chunk-SMIESS7P.js";import{B as an,C as sn,I as be,J as ln,K as Ft,O as H,P as G,R as gr,e as fe,p as io,q as rn}from"./chunk-CFPZYHPY.js";import{a as Fr}from"./chunk-7QIFDWQV.js";import{a as br}from"./chunk-MWIKAR7F.js";import{b as Ae}from"./chunk-DJZYD5I5.js";import{a as Ie,c as tn,h as yo,i as on}from"./chunk-2OUPA2WJ.js";import{a as fr,b as Bt}from"./chunk-THIXMMZD.js";import{a as Te,c as q,i as je,j}from"./chunk-6ST5ECQA.js";import{a as Gr,b as Jr}from"./chunk-QLQADHFE.js";import{a as lo}from"./chunk-UDOOZJO5.js";import{a as en}from"./chunk-XBDKZZ67.js";import{a as Qr,b as Yr,c as Xr,d as ge,o as Xt,q as In}from"./chunk-IUYFXK4X.js";import{c as pr}from"./chunk-5DVJR52Z.js";import{a as i,d as dr,e as R,f as D,g as ur,h as se,j as W}from"./chunk-3XIESWL4.js";var _=R(ur(),1);var Ce=R(D(),1),M=R(D(),1);var a=R(se(),1);var Bn=R(D(),1),ke=R(se(),1);var Ds={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},Is={overflow:"auto",whiteSpace:"pre-wrap"},zo=class extends Bn.Component{static{i(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=i(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:n}=this.props,{error:s}=this.state;if(s===null)return(0,ke.jsx)(ke.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,ke.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:Ds,children:[(0,ke.jsx)("strong",{children:l}),(0,ke.jsx)("pre",{"data-testid":"dash-error-message",style:Is,children:s.message}),(0,ke.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var Be={};dr(Be,{Arrow:()=>ta,Backdrop:()=>ra,Close:()=>ca,Description:()=>ia,Handle:()=>po,Popup:()=>Xn,Portal:()=>Wn,Positioner:()=>$n,Root:()=>Kn,Title:()=>aa,Trigger:()=>zn,Viewport:()=>ua,createHandle:()=>ma});var Oe=R(D(),1);var Uo=R(D(),1);var xr=Uo.createContext(void 0);function Y(t){let e=Uo.useContext(xr);if(e===void 0&&!t)throw new Error(q(47));return e}i(Y,"usePopoverRootContext");var Ve=R(D(),1),Fn=R(Fr(),1);function _s(){return{...Gt(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}i(_s,"createInitialState");var As={...Qt,disabled:U(t=>t.disabled),instantType:U(t=>t.instantType),openMethod:U(t=>t.openMethod),openChangeReason:U(t=>t.openChangeReason),modal:U(t=>t.modal),focusManagerModal:U(t=>t.focusManagerModal),stickIfOpen:U(t=>t.stickIfOpen),titleElementId:U(t=>t.titleElementId),descriptionElementId:U(t=>t.descriptionElementId),openOnHover:U(t=>t.openOnHover),closeDelay:U(t=>t.closeDelay),hasViewport:U(t=>t.hasViewport)},eo=class t extends Kt{static{i(this,"PopoverStore")}constructor(e,o,r=!1){let n={..._s(),...e},s=new qt;n.open&&e?.mounted===void 0&&(n.mounted=!0),n.floatingRootContext=Jt(s,o,r),super(n,{popupRef:Ve.createRef(),backdropRef:Ve.createRef(),internalBackdropRef:Ve.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Ve.createRef(),beforeContentFocusGuardRef:Ve.createRef(),stickIfOpenTimeout:new an,triggerElements:s},As)}setOpen=i((e,o)=>{let r=o.reason===H.triggerHover,n=o.reason===H.triggerPress&&o.event.detail===0,s=!e&&(o.reason===H.escapeKey||o.reason==null),l=Cn(o),d=this.select("activeTriggerId");if(!e&&o.reason===H.closePress&&o.trigger==null&&d!=null&&(o.trigger=this.context.triggerElements.getById(d)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=i(()=>{let c={open:e,openChangeReason:o.reason};Eo(c,e,o.trigger,l()),this.update(c)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),Fn.flushSync(p)):p(),n||s?this.set("instantType",n?"click":"dismiss"):o.reason===H.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)},"setOpen");static useStore(e,o){let{store:r,internalStore:n}=zt(e,(s,l)=>new t(o,s,l));return Ve.useEffect(()=>n?.disposeEffect(),[n]),r}disposeEffect=i(()=>this.context.stickIfOpenTimeout.disposeEffect(),"disposeEffect")};var Ke=R(se(),1);function jn({props:t}){let{children:e,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:s,modal:l=!1,handle:d,triggerId:p,defaultTriggerId:c=null}=t,u=eo.useStore(d?.store,{modal:l,open:r,openProp:o,activeTriggerId:c,triggerIdProp:p});To(u,o,r,c),u.useControlledProp("openProp",o),u.useControlledProp("triggerIdProp",p);let h=u.useState("open"),v=u.useState("mounted"),f=u.useState("payload"),m=mn()!=null;u.useContextCallback("onOpenChange",n),u.useContextCallback("onOpenChangeComplete",s),ko(u,h),Zt(u);let{forceUnmount:g}=Wt(h,u,()=>{u.update({stickIfOpen:!0,openChangeReason:null})});u.useSyncedValues({modal:l,nested:m}),Oe.useEffect(()=>{h||u.context.stickIfOpenTimeout.clear()},[u,h]);let b=Oe.useCallback(()=>{u.setOpen(!1,G(H.imperativeAction))},[u]);Oe.useImperativeHandle(t.actionsRef,()=>({unmount:g,close:b}),[g,b]);let x=h||v,C=Oe.useMemo(()=>({store:u}),[u]);return(0,Ke.jsxs)(xr.Provider,{value:C,children:[x&&(0,Ke.jsx)(Vs,{store:u,modal:l}),typeof e=="function"?e({payload:f}):e]})}i(jn,"PopoverRootComponent");function Kn(t){return Y(!0)?(0,Ke.jsx)(jn,{props:t}):(0,Ke.jsx)(hn,{children:(0,Ke.jsx)(jn,{props:t})})}i(Kn,"PopoverRoot");function Vs({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=jt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference??je,s=r.trigger??je,l=Oe.useMemo(()=>Te(_e,r.floating),[r.floating]);return $t(t,{activeTriggerProps:n,inactiveTriggerProps:s,popupProps:l}),null}i(Vs,"PopoverInteractions");var Le=R(D(),1);var ze=R(se(),1);var zn=Le.forwardRef(i(function(e,o){let{render:r,className:n,style:s,disabled:l=!1,nativeButton:d=!0,handle:p,payload:c,openOnHover:u=!1,delay:h=300,closeDelay:v=0,id:f,...m}=e,g=Y(!0),b=p?.store??g?.store;if(!b)throw new Error(q(74));let x=fe(f),C=b.useState("isTriggerActive",x),y=b.useState("floatingRootContext"),S=b.useState("isOpenedByTrigger",x),P=b.useState("triggerPopupId",x),E=Le.useRef(null),{registerTrigger:N,isMountedByThisTrigger:T}=Ut(x,E,b,{payload:c,disabled:l,openOnHover:u,closeDelay:v}),w=b.useState("openChangeReason"),k=b.useState("stickIfOpen"),O=b.useState("openMethod"),F=b.useState("focusManagerModal"),I=Mo(y,{enabled:!l&&y!=null&&u&&(O!=="touch"||w!==H.triggerPress),mouseOnly:!0,move:!1,handleClose:Do(),restMs:h,delay:{close:v},triggerElementRef:E,isActiveTrigger:C,isClosing:i(()=>b.select("transitionStatus")==="ending","isClosing")}),K=No(y,{enabled:y!=null,stickIfOpen:k}),B=Io(()=>b.select("open"),Q=>{b.set("openMethod",Q)}),z=b.useState("triggerProps",T),{getButtonProps:Z,buttonRef:A}=Ae({disabled:l,native:d}),V={open(Q){return Q&&w===H.triggerPress?wn.open(Q):Yt.open(Q)}},{preFocusGuardRef:L,handlePreFocusGuardFocus:te,handleFocusTargetFocus:ee}=En(b,E),J=j("button",e,{state:{disabled:l,open:S},ref:[A,o,N,E],props:[K.reference,I,z,B,{[Co]:"",id:x,"aria-haspopup":"dialog","aria-expanded":S,"aria-controls":P},m,Z],stateAttributesMapping:V});return T&&!F?(0,ze.jsxs)(Le.Fragment,{children:[(0,ze.jsx)(hr,{ref:L,onFocus:te}),(0,ze.jsx)(Le.Fragment,{children:J},x),(0,ze.jsx)(hr,{ref:b.context.triggerFocusTargetRef,onFocus:ee})]}):(0,ze.jsx)(Le.Fragment,{children:J},x)},"PopoverTrigger"));var Zn=R(D(),1);var Zo=R(D(),1);var yr=Zo.createContext(void 0);function Un(){let t=Zo.useContext(yr);if(t===void 0)throw new Error(q(45));return t}i(Un,"usePopoverPortalContext");var Cr=R(se(),1);var Wn=Zn.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:s}=Y();return s.useState("mounted")||r?(0,Cr.jsx)(yr.Provider,{value:r,children:(0,Cr.jsx)(Ro,{ref:o,...n})}):null},"PopoverPortal"));var oo=R(D(),1);var Wo=R(D(),1);var Pr=Wo.createContext(void 0);function to(){let t=Wo.useContext(Pr);if(!t)throw new Error(q(46));return t}i(to,"usePopoverPositionerContext");var co=R(se(),1);var $n=oo.forwardRef(i(function(e,o){let{render:r,className:n,style:s,anchor:l,positionMethod:d="absolute",side:p="bottom",align:c="center",sideOffset:u=0,alignOffset:h=0,collisionBoundary:v="clipping-ancestors",collisionPadding:f=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:b=!1,collisionAvoidance:x=Po,...C}=e,{store:y}=Y(),S=Un(),P=fn(),E=y.useState("floatingRootContext"),N=y.useState("mounted"),T=y.useState("open"),w=y.useState("openChangeReason"),k=y.useState("activeTriggerElement"),O=y.useState("modal"),F=y.useState("openMethod"),I=y.useState("positionerElement"),K=y.useState("instantType"),B=y.useState("transitionStatus"),z=y.useState("hasViewport"),Z=oo.useRef(null),A=ln(I,!1,!1),V=Vo({anchor:l,floatingRootContext:E,positionMethod:d,mounted:N,side:p,sideOffset:u,align:c,alignOffset:h,arrowPadding:m,collisionBoundary:v,collisionPadding:f,sticky:g,disableAnchorTracking:b,keepMounted:S,nodeId:P,collisionAvoidance:x,adaptiveOrigin:z?Ao:void 0}),L=E.useState("domReferenceElement");Ie(()=>{let J=L,Q=Z.current;if(J&&(Z.current=J),Q&&J&&J!==Q){y.set("instantType",void 0);let re=new AbortController;return A(()=>{y.set("instantType","trigger-change")},re.signal),()=>{re.abort()}}},[L,A,y]),kn(T&&O===!0&&w!==H.triggerHover,F==="touch",I,k);let te=oo.useCallback(J=>{y.set("positionerElement",J)},[y]),ee={open:T,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:K},le=Bo(e,ee,{styles:V.positionerStyles,transitionStatus:B,props:C,refs:[o,te],hidden:!N,inert:!T});return(0,co.jsxs)(Pr.Provider,{value:V,children:[N&&O===!0&&w!==H.triggerHover&&(0,co.jsx)(Lo,{ref:y.context.internalBackdropRef,inert:_o(!T),cutout:k}),(0,co.jsx)(gn,{id:P,children:le})]})},"PopoverPositioner"));var $o=R(D(),1);var He=R(D(),1);var qn=R(se(),1);var Gn=He.createContext(void 0);function Jn(){let[t,e]=He.useState(0),o=tn(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:He.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}i(Jn,"useClosePartCount");function Qn(t){let{value:e,children:o}=t;return(0,qn.jsx)(Gn.Provider,{value:e,children:o})}i(Qn,"ClosePartProvider");function Yn(){let t=He.useContext(Gn);Ie(()=>t?.register(),[t])}i(Yn,"useClosePartRegistration");var Rr=R(se(),1);var Ls={...de,...be},Xn=$o.forwardRef(i(function(e,o){let{render:r,className:n,style:s,initialFocus:l,finalFocus:d,...p}=e,{store:c}=Y(),u=to(),h=On(!0)!=null,{context:v,hasClosePart:f}=Jn(),m=c.useState("open"),g=c.useState("openMethod"),b=c.useState("instantType"),x=c.useState("transitionStatus"),C=c.useState("popupProps"),y=c.useState("titleElementId"),S=c.useState("descriptionElementId"),P=c.useState("modal"),E=c.useState("mounted"),N=c.useState("openChangeReason"),T=c.useState("activeTriggerElement"),w=c.useState("floatingRootContext"),k=w.useState("floatingId"),O=c.useState("disabled"),F=c.useState("openOnHover"),I=c.useState("closeDelay"),K=p.id??k;Ft({open:m,ref:c.context.popupRef,onComplete(){m&&c.context.onOpenChangeComplete?.(!0)}}),Oo(w,{enabled:F&&!O,closeDelay:I});let B=l===void 0?wo(c.context.popupRef):l,z=P!==!1&&f;c.useSyncedValue("focusManagerModal",z);let Z=$o.useCallback(L=>{c.set("popupElement",L)},[c]),A={open:m,side:u.side,align:u.align,instant:b,transitionStatus:x},V=j("div",e,{state:A,ref:[o,c.context.popupRef,Z],props:[C,{id:K,role:"dialog",..._e,"aria-labelledby":y,"aria-describedby":S,onKeyDown(L){h&&Fo.has(L.key)&&L.stopPropagation()}},Ho(x),p],stateAttributesMapping:Ls});return(0,Rr.jsx)(So,{context:w,openInteractionType:g,modal:z,disabled:!E||N===H.triggerHover,initialFocus:B,returnFocus:d,restoreFocus:"popup",previousFocusableElement:on(T)?T:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Rr.jsx)(Qn,{value:v,children:V})})},"PopoverPopup"));var ea=R(D(),1);var ta=ea.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,{store:d}=Y(),p=d.useState("open"),{arrowRef:c,side:u,align:h,arrowUncentered:v,arrowStyles:f}=to();return j("div",e,{state:{open:p,side:u,align:h,uncentered:v},ref:[o,c],props:[{style:f,"aria-hidden":!0},l],stateAttributesMapping:de})},"PopoverArrow"));var oa=R(D(),1);var Hs={...de,...be},ra=oa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,{store:d}=Y(),p=d.useState("open"),c=d.useState("mounted"),u=d.useState("transitionStatus"),h=d.useState("openChangeReason");return j("div",e,{state:{open:p,transitionStatus:u},ref:[d.context.backdropRef,o],props:[{role:"presentation",hidden:!c,style:{pointerEvents:h===H.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:Hs})},"PopoverBackdrop"));var na=R(D(),1);var aa=na.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,{store:d}=Y(),p=fe(l.id);return d.useSyncedValueWithCleanup("titleElementId",p),j("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var sa=R(D(),1);var ia=sa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,{store:d}=Y(),p=fe(l.id);return d.useSyncedValueWithCleanup("descriptionElementId",p),j("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var la=R(D(),1);var ca=la.forwardRef(i(function(e,o){let{render:r,className:n,style:s,disabled:l=!1,nativeButton:d=!0,...p}=e,{buttonRef:c,getButtonProps:u}=Ae({disabled:l,focusableWhenDisabled:!1,native:d}),{store:h}=Y();return Yn(),j("button",e,{ref:[o,c],props:[{onClick(f){h.setOpen(!1,G(H.closePress,f.nativeEvent))}},p,u]})},"PopoverClose"));var pa=R(D(),1);var da=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var Bs={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},ua=pa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,children:l,...d}=e,{store:p}=Y(),{side:c}=to(),u=p.useState("instantType"),{children:h,state:v}=jo({store:p,side:c,cssVars:da,children:l}),f={activationDirection:v.activationDirection,transitioning:v.transitioning,instant:u};return j("div",e,{state:f,ref:o,props:[d,{children:h}],stateAttributesMapping:Bs})},"PopoverViewport"));var po=class{static{i(this,"PopoverHandle")}constructor(){this.store=new eo}open(e){let o=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!o)throw new Error(q(80,e));this.store.setOpen(!0,G(H.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,G(H.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function ma(){return new po}i(ma,"createPopoverHandle");var pe={};dr(pe,{Backdrop:()=>ga,Close:()=>va,Description:()=>xa,Handle:()=>go,Popup:()=>Sa,Portal:()=>wa,Root:()=>Da,Title:()=>Va,Trigger:()=>La,Viewport:()=>_a,createHandle:()=>Ha});var fa=R(D(),1);var uo=R(D(),1);var qo=uo.createContext(!1),Sr=uo.createContext(void 0);function ie(t){let e=uo.useContext(Sr);if(t===!1&&e===void 0)throw new Error(q(27));return e}i(ie,"useDialogRootContext");var Fs={...de,...be},ga=fa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,forceRender:l=!1,...d}=e,{store:p}=ie(),c=p.useState("open"),u=p.useState("nested"),h=p.useState("mounted"),v=p.useState("transitionStatus");return j("div",e,{state:{open:c,transitionStatus:v},ref:[p.context.backdropRef,o],stateAttributesMapping:Fs,props:[{role:"presentation",hidden:!h,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!u})},"DialogBackdrop"));var ha=R(D(),1);var va=ha.forwardRef(i(function(e,o){let{render:r,className:n,style:s,disabled:l=!1,nativeButton:d=!0,...p}=e,{store:c}=ie(),u=c.useState("open"),{getButtonProps:h,buttonRef:v}=Ae({disabled:l,native:d}),f={disabled:l};function m(g){u&&c.setOpen(!1,G(H.closePress,g.nativeEvent))}return i(m,"handleClick"),j("button",e,{state:f,ref:[o,v],props:[{onClick:m},p,h]})},"DialogClose"));var ba=R(D(),1);var xa=ba.forwardRef(i(function(e,o){let{render:r,className:n,style:s,id:l,...d}=e,{store:p}=ie(),c=fe(l);return p.useSyncedValueWithCleanup("descriptionElementId",c),j("p",e,{ref:o,props:[{id:c},d]})},"DialogDescription"));var Pa=R(D(),1);var ya=(function(t){return t.nestedDialogs="--nested-dialogs",t})({});var Ca=(function(t){return t[t.open=Pe.open]="open",t[t.closed=Pe.closed]="closed",t[t.startingStyle=Pe.startingStyle]="startingStyle",t[t.endingStyle=Pe.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var Go=R(D(),1);var Nr=Go.createContext(void 0);function Jo(){let t=Go.useContext(Nr);if(t===void 0)throw new Error(q(26));return t}i(Jo,"useDialogPortalContext");var Ra=R(se(),1);var js={...de,...be,nestedDialogOpen(t){return t?{[Ca.nestedDialogOpen]:""}:null}},Sa=Pa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,finalFocus:l,initialFocus:d,...p}=e,{store:c}=ie(),u=c.useState("descriptionElementId"),h=c.useState("disablePointerDismissal"),v=c.useState("floatingRootContext"),f=c.useState("popupProps"),m=c.useState("modal"),g=c.useState("mounted"),b=c.useState("nested"),x=c.useState("nestedOpenDialogCount"),C=c.useState("open"),y=c.useState("openMethod"),S=c.useState("titleElementId"),P=c.useState("transitionStatus"),E=c.useState("role"),N=v.useState("floatingId"),T=p.id??N;Jo(),Ft({open:C,ref:c.context.popupRef,onComplete(){C&&c.context.onOpenChangeComplete?.(!0)}});let w=d===void 0?wo(c.context.popupRef):d,k=x>0,O=c.useStateSetter("popupElement"),I=j("div",e,{state:{open:C,nested:b,transitionStatus:P,nestedDialogOpen:k},props:[f,{id:T,"aria-labelledby":S??void 0,"aria-describedby":u??void 0,role:E,..._e,hidden:!g,onKeyDown(K){Fo.has(K.key)&&K.stopPropagation()},style:{[ya.nestedDialogs]:x}},p],ref:[o,c.context.popupRef,O],stateAttributesMapping:js});return(0,Ra.jsx)(So,{context:v,openInteractionType:y,disabled:!g,closeOnFocusOut:!h,initialFocus:w,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:I})},"DialogPopup"));var Na=R(D(),1);var mo=R(se(),1);var wa=Na.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:s}=ie(),l=s.useState("mounted"),d=s.useState("modal"),p=s.useState("open");return l||r?(0,mo.jsx)(Nr.Provider,{value:r,children:(0,mo.jsxs)(Ro,{ref:o,...n,children:[l&&d===!0&&(0,mo.jsx)(Lo,{ref:s.context.internalBackdropRef,inert:_o(!p)}),e.children]})}):null},"DialogPortal"));var Ma=R(D(),1);var ka=R(D(),1);var Me=R(D(),1);function Ea(t){let{store:e,actionsRef:o}=t,r=e.useState("open");ko(e,r),Zt(e);let{forceUnmount:n}=Wt(r,e),s=Me.useCallback(()=>{e.setOpen(!1,G(H.imperativeAction))},[e]);Me.useImperativeHandle(o,()=>({unmount:n,close:s}),[n,s])}i(Ea,"useDialogRoot");function Ta({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),s=t.useState("modal"),l=t.useState("popupElement"),d=t.useState("floatingRootContext"),[p,c]=Me.useState(0),[u,h]=Me.useState(0),v=p===0,f=jt(d,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(x){if(!t.context.outsidePressEnabledRef.current||"button"in x&&x.button!==0||"touches"in x&&x.touches.length!==1)return!1;let C=rn(x);return v&&!n?s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===C||t.context.backdropRef.current===C||io(C,l)&&!C?.hasAttribute("data-base-ui-portal"):!0:!1},escapeKey:v});Tn(r&&s===!0,l),t.useContextCallback("onNestedDialogOpen",(x,C)=>{c(x),h(C)}),t.useContextCallback("onNestedDialogClose",()=>{c(0),h(0)}),Me.useEffect(()=>(e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(p+1,u+(o?1:0)),e?.onNestedDialogClose&&!r&&e.onNestedDialogClose(),()=>{e?.onNestedDialogClose&&r&&e.onNestedDialogClose()}),[o,r,p,u,e]);let m=f.reference??je,g=f.trigger??je,b=f.floating??je;return $t(t,{activeTriggerProps:m,inactiveTriggerProps:g,popupProps:b,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}i(Ta,"DialogInteractions");var Qo=R(D(),1);var Ks={...Qt,modal:U(t=>t.modal),nested:U(t=>t.nested),nestedOpenDialogCount:U(t=>t.nestedOpenDialogCount),nestedOpenDrawerCount:U(t=>t.nestedOpenDrawerCount),disablePointerDismissal:U(t=>t.disablePointerDismissal),openMethod:U(t=>t.openMethod),descriptionElementId:U(t=>t.descriptionElementId),titleElementId:U(t=>t.titleElementId),viewportElement:U(t=>t.viewportElement),role:U(t=>t.role)},ro=class t extends Kt{static{i(this,"DialogStore")}constructor(e,o,r=!1){let n=new qt,s=zs(e);s.floatingRootContext=Jt(n,o,r),super(s,{popupRef:Qo.createRef(),backdropRef:Qo.createRef(),internalBackdropRef:Qo.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:n,onOpenChange:void 0,onOpenChangeComplete:void 0},Ks)}setOpen=i((e,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let r={open:e};Eo(r,e,o.trigger),this.update(r)},"setOpen");static useStore(e,o){return zt(e,(n,s)=>new t(o,n,s),!0).store}};function zs(t={}){return{...Gt(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}i(zs,"createInitialState");var fo=R(se(),1);function Oa(t,e="dialog"){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:s,onOpenChangeComplete:l,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:c,handle:u,triggerId:h,defaultTriggerId:v=null}=t,f=e==="drawer",m=e==="alert-dialog",g=m?!0:p,b=m||d,x=m?"alertdialog":"dialog",C=ie(!0),S={modal:g,disablePointerDismissal:b,nested:!!C,role:x},P=ro.useStore(u?.store,{open:n,openProp:r,activeTriggerId:v,triggerIdProp:h,...S});bn(()=>{let O=r===void 0&&P.state.open===!1&&n===!0?{open:!0,activeTriggerId:v}:null;m?P.update(O?{...S,...O}:S):O&&P.update(O)}),P.useControlledProp("openProp",r),P.useControlledProp("triggerIdProp",h),P.useSyncedValues(S),P.useContextCallback("onOpenChange",s),P.useContextCallback("onOpenChangeComplete",l);let E=P.useState("open"),N=P.useState("mounted"),T=P.useState("payload");Ea({store:P,actionsRef:c});let w=E||N,k=ka.useMemo(()=>({store:P}),[P]);return(0,fo.jsx)(qo.Provider,{value:!1,children:(0,fo.jsxs)(Sr.Provider,{value:k,children:[w&&(0,fo.jsx)(Ta,{store:P,parentContext:C?.store.context,isDrawer:f}),typeof o=="function"?o({payload:T}):o]})})}i(Oa,"useRenderDialogRoot");function Da(t){let e=Ma.useContext(qo)?"drawer":"dialog";return Oa(t,e)}i(Da,"DialogRoot");var Ia=R(D(),1);var wr=(function(t){return t[t.open=Pe.open]="open",t[t.closed=Pe.closed]="closed",t[t.startingStyle=Pe.startingStyle]="startingStyle",t[t.endingStyle=Pe.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var Us={...de,...be,nested(t){return t?{[wr.nested]:""}:null},nestedDialogOpen(t){return t?{[wr.nestedDialogOpen]:""}:null}},_a=Ia.forwardRef(i(function(e,o){let{render:r,className:n,style:s,children:l,...d}=e,p=Jo(),{store:c}=ie(),u=c.useState("open"),h=c.useState("nested"),v=c.useState("transitionStatus"),f=c.useState("nestedOpenDialogCount"),m=c.useState("mounted"),g=c.useStateSetter("viewportElement"),b=f>0;return j("div",e,{enabled:p||m,state:{open:u,nested:h,transitionStatus:v,nestedDialogOpen:b},ref:[o,g],stateAttributesMapping:Us,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},d]})},"DialogViewport"));var Aa=R(D(),1);var Va=Aa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,id:l,...d}=e,{store:p}=ie(),c=fe(l);return p.useSyncedValueWithCleanup("titleElementId",c),j("h2",e,{ref:o,props:[{id:c},d]})},"DialogTitle"));var Yo=R(D(),1);var La=Yo.forwardRef(i(function(e,o){let{render:r,className:n,style:s,disabled:l=!1,nativeButton:d=!0,id:p,payload:c,handle:u,...h}=e,v=ie(!0),f=u?.store??v?.store;if(!f)throw new Error(q(79));let m=fe(p),g=f.useState("floatingRootContext"),b=f.useState("isOpenedByTrigger",m),x=f.useState("triggerPopupId",m),C=Yo.useRef(null),{registerTrigger:y,isMountedByThisTrigger:S}=Ut(m,C,f,{payload:c}),{getButtonProps:P,buttonRef:E}=Ae({disabled:l,native:d}),N=No(g,{enabled:g!=null}),T=Io(()=>f.select("open"),O=>{f.set("openMethod",O)}),w={disabled:l,open:b},k=f.useState("triggerProps",S);return j("button",e,{state:w,ref:[E,o,y,C],props:[N.reference,k,T,{[Co]:"",id:m,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":x},h,P],stateAttributesMapping:Yt})},"DialogTrigger"));var go=class{static{i(this,"DialogHandle")}constructor(e){this.store=e??new ro}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,G(H.imperativeAction,void 0,o))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,G(H.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,G(H.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Ha(){return new go}i(Ha,"createDialogHandle");var Se={};dr(Se,{Arrow:()=>rs,Handle:()=>ho,Popup:()=>ts,Portal:()=>Qa,Positioner:()=>Xa,Provider:()=>ns,Root:()=>Fa,Trigger:()=>Za,Viewport:()=>is,createHandle:()=>ls});var Re=R(D(),1);var Xo=R(D(),1);var Er=Xo.createContext(void 0);function xe(t){let e=Xo.useContext(Er);if(e===void 0&&!t)throw new Error(q(72));return e}i(xe,"useTooltipRootContext");var Ba=R(D(),1);var Zs={...Qt,disabled:U(t=>t.disabled),instantType:U(t=>t.instantType),isInstantPhase:U(t=>t.isInstantPhase),trackCursorAxis:U(t=>t.trackCursorAxis),disableHoverablePopup:U(t=>t.disableHoverablePopup),lastOpenChangeReason:U(t=>t.openChangeReason),closeOnClick:U(t=>t.closeOnClick),closeDelay:U(t=>t.closeDelay),hasViewport:U(t=>t.hasViewport)},no=class t extends Kt{static{i(this,"TooltipStore")}constructor(e,o,r=!1){let n=new qt,s={...Ws(),...e};s.floatingRootContext=Jt(n,o,r),super(s,{popupRef:Ba.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},Zs)}setOpen=i((e,o)=>{Pn(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,G(H.triggerPress,e))}static useStore(e,o){return zt(e,(n,s)=>new t(o,n,s)).store}};function Ws(){return{...Gt(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}i(Ws,"createInitialState");var er=R(se(),1);var Fa=xn(i(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:s=!1,trackCursorAxis:l="none",actionsRef:d,onOpenChange:p,onOpenChangeComplete:c,handle:u,triggerId:h,defaultTriggerId:v=null,children:f}=e,m=no.useStore(u?.store,{open:r,openProp:n,activeTriggerId:v,triggerIdProp:h});To(m,n,r,v),m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",h),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",c);let g=m.useState("open"),b=!o&&g,x=m.useState("activeTriggerId"),C=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:s}),m.useSyncedValue("disabled",o),Zt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:P}=Wt(b,m),E=m.useState("isInstantPhase"),N=m.useState("instantType"),T=m.useState("lastOpenChangeReason"),w=Re.useRef(null);Ie(()=>{g&&o&&m.setOpen(!1,G(H.disabled))},[g,o,m]),Ie(()=>{P==="ending"&&T===H.none||P!=="ending"&&E?(N!=="delay"&&(w.current=N),m.set("instantType","delay")):w.current!==null&&(m.set("instantType",w.current),w.current=null)},[P,E,T,N,m]),Ie(()=>{b&&x==null&&m.set("payload",void 0)},[m,x,b]);let k=Re.useCallback(()=>{m.setOpen(!1,G(H.imperativeAction))},[m]);Re.useImperativeHandle(d,()=>({unmount:S,close:k}),[S,k]);let O=b||C||!o&&l!=="none";return(0,er.jsxs)(Er.Provider,{value:m,children:[O&&(0,er.jsx)($s,{store:m,disabled:o,trackCursorAxis:l}),typeof f=="function"?f({payload:y}):f]})},"TooltipRoot"));function $s({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=jt(r,{enabled:!e,referencePress:i(()=>t.select("closeOnClick"),"referencePress")}),s=vn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=Re.useMemo(()=>Te(s.reference,n.reference),[s.reference,n.reference]),d=Re.useMemo(()=>Te(s.trigger,n.trigger),[s.trigger,n.trigger]),p=Re.useMemo(()=>Te(_e,s.floating,n.floating),[s.floating,n.floating]);return $t(t,{activeTriggerProps:l,inactiveTriggerProps:d,popupProps:p}),null}i($s,"TooltipInteractions");var or=R(D(),1);var tr=R(D(),1);var Tr=tr.createContext(void 0);function ja(){return tr.useContext(Tr)}i(ja,"useTooltipProviderContext");var Ka=(function(t){return t[t.popupOpen=Nn.popupOpen]="popupOpen",t.triggerDisabled="data-trigger-disabled",t})({});var Ua="data-base-ui-tooltip-trigger";function za(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(yo(n))return n}}let e=t.target;return yo(e)?e:null}i(za,"getTargetElement");function qs(t){let e=t;for(;e;){if(e.hasAttribute(Ua))return e;let o=e.parentElement;if(o){e=o;continue}let r=e.getRootNode();e="host"in r&&yo(r.host)?r.host:null}return null}i(qs,"closestEnabledTooltipTrigger");var Za=yn(i(function(e,o){let{render:r,className:n,style:s,handle:l,payload:d,disabled:p,delay:c,closeOnClick:u=!0,closeDelay:h,id:v,...f}=e,m=xe(!0),g=l?.store??m;if(!g)throw new Error(q(82));let b=fe(v),x=g.useState("isTriggerActive",b),C=g.useState("isOpenedByTrigger",b),y=g.useState("floatingRootContext"),S=or.useRef(null),P=c??600,E=h??0,{registerTrigger:N,isMountedByThisTrigger:T}=Ut(b,S,g,{payload:d,closeOnClick:u,closeDelay:E}),w=ja(),{delayRef:k,isInstantPhase:O,hasProvider:F}=dn(y,{open:C}),I=Sn(y);g.useSyncedValue("isInstantPhase",O);let K=g.useState("disabled"),B=p??K,z=pn(B),Z=g.useState("trackCursorAxis"),A=g.useState("disableHoverablePopup"),V=or.useRef(!1),L=sn(),te=or.useRef(void 0);function ee(){let $=w?.delay,ne=typeof k.current=="object"?k.current.open:void 0,ae=P;return F&&(ne!==0?ae=c??$??P:ae=0),ae}i(ee,"getOpenDelay");function le($){let ne=S.current;if(!ne||!$)return!1;let ae=qs($);return ae!==null&&ae!==ne&&io(ne,ae)}i(le,"isEnabledNestedTriggerTarget");function J($){let ne=le($);return V.current=ne,ne&&(I.openChangeTimeout.clear(),I.restTimeout.clear(),I.restTimeoutPending=!1,L.clear()),ne}i(J,"detectNestedTriggerHover");let Q=Mo(y,{enabled:!B,mouseOnly:!0,move:!1,handleClose:!A&&Z!=="both"?Do():null,restMs:ee,delay(){let $=typeof k.current=="object"?k.current.close:void 0,ne=E;return h==null&&F&&(ne=$),{close:ne}},triggerElementRef:S,isActiveTrigger:x,isClosing:i(()=>g.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!V.current}}),re=Rn(y,{enabled:!B}).reference,ue=i($=>{let ne=V.current,ae=za($),Ne=J(ae),ye=S.current,De=ye&&ae&&io(ye,ae);if(Ne&&g.select("open")&&g.select("lastOpenChangeReason")===H.triggerHover){g.setOpen(!1,G(H.triggerHover,$));return}if(ne&&!Ne&&De&&!z.current&&!g.select("open")&&ye&&nn(te.current)){let we=i(()=>{!V.current&&!z.current&&!g.select("open")&&g.setOpen(!0,G(H.triggerHover,$,ye))},"open"),Ee=ee();Ee===0?(L.clear(),we()):L.start(Ee,we)}},"handleNestedTriggerHover"),me=g.useState("triggerProps",T);return j("button",e,{state:{open:C},ref:[o,N,S],props:[Q,re,T||Z!=="none"?me:void 0,{onMouseOver($){ue($.nativeEvent)},onFocus($){le(za($.nativeEvent))&&$.preventBaseUIHandler()},onMouseLeave(){V.current=!1,L.clear(),te.current=void 0},onPointerEnter($){te.current=$.pointerType},onPointerDown($){te.current=$.pointerType,g.set("closeOnClick",u),u&&!g.select("open")&&g.cancelPendingOpen($.nativeEvent)},onClick($){u&&!g.select("open")&&g.cancelPendingOpen($.nativeEvent)},id:b,[Ka.triggerDisabled]:B?"":void 0,[Ua]:B?void 0:""},f],stateAttributesMapping:Yt})},"TooltipTrigger"));var Ja=R(D(),1);var rr=R(D(),1);var kr=rr.createContext(void 0);function Wa(){let t=rr.useContext(kr);if(t===void 0)throw new Error(q(70));return t}i(Wa,"useTooltipPortalContext");var nr=R(D(),1),$a=R(Fr(),1);var qa=R(se(),1);var Ga=nr.forwardRef(i(function(e,o){let{children:r,container:n,className:s,render:l,style:d,...p}=e,{portalNode:c,portalSubtree:u}=un({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!c?null:(0,qa.jsxs)(nr.Fragment,{children:[u,c&&$a.createPortal(r,c)]})},"FloatingPortalLite"));var Or=R(se(),1);var Qa=Ja.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e;return xe().useState("mounted")||r?(0,Or.jsx)(kr.Provider,{value:r,children:(0,Or.jsx)(Ga,{ref:o,...n})}):null},"TooltipPortal"));var sr=R(D(),1);var ar=R(D(),1);var Mr=ar.createContext(void 0);function ao(){let t=ar.useContext(Mr);if(t===void 0)throw new Error(q(71));return t}i(ao,"useTooltipPositionerContext");var Ya=R(se(),1);var Xa=sr.forwardRef(i(function(e,o){let{render:r,className:n,anchor:s,positionMethod:l="absolute",side:d="top",align:p="center",sideOffset:c=0,alignOffset:u=0,collisionBoundary:h="clipping-ancestors",collisionPadding:v=5,arrowPadding:f=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:b=Po,style:x,...C}=e,y=xe(),S=Wa(),P=y.useState("open"),E=y.useState("mounted"),N=y.useState("trackCursorAxis"),T=y.useState("disableHoverablePopup"),w=y.useState("floatingRootContext"),k=y.useState("instantType"),O=y.useState("transitionStatus"),F=y.useState("hasViewport"),I=Vo({anchor:s,positionMethod:l,floatingRootContext:w,mounted:E,side:d,sideOffset:c,align:p,alignOffset:u,collisionBoundary:h,collisionPadding:v,sticky:m,arrowPadding:f,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:b,adaptiveOrigin:F?Ao:void 0}),K=sr.useMemo(()=>({open:P,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:N!=="none"?"tracking-cursor":k}),[P,I.side,I.align,I.anchorHidden,N,k]),B=Bo(e,K,{styles:I.positionerStyles,transitionStatus:O,props:C,refs:[o,y.useStateSetter("positionerElement")],hidden:!E,inert:!P||N==="both"||T});return(0,Ya.jsx)(Mr.Provider,{value:I,children:B})},"TooltipPositioner"));var es=R(D(),1);var Gs={...de,...be},ts=es.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,d=xe(),{side:p,align:c}=ao(),u=d.useState("open"),h=d.useState("instantType"),v=d.useState("transitionStatus"),f=d.useState("popupProps"),m=d.useState("floatingRootContext"),g=d.useState("disabled"),b=d.useState("closeDelay");Ft({open:u,ref:d.context.popupRef,onComplete(){u&&d.context.onOpenChangeComplete?.(!0)}}),Oo(m,{enabled:!g,closeDelay:b});let x=d.useStateSetter("popupElement");return j("div",e,{state:{open:u,side:p,align:c,instant:h,transitionStatus:v},ref:[o,d.context.popupRef,x],props:[f,Ho(v),l],stateAttributesMapping:Gs})},"TooltipPopup"));var os=R(D(),1);var rs=os.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,d=xe(),{arrowRef:p,side:c,align:u,arrowUncentered:h,arrowStyles:v}=ao(),f=d.useState("open"),m=d.useState("instantType");return j("div",e,{state:{open:f,side:c,align:u,uncentered:h,instant:m},ref:[o,p],props:[{style:v,"aria-hidden":!0},l],stateAttributesMapping:de})},"TooltipArrow"));var Dr=R(D(),1);var Ir=R(se(),1);var ns=i(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,s=Dr.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),l=Dr.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Ir.jsx)(Tr.Provider,{value:s,children:(0,Ir.jsx)(cn,{delay:l,timeoutMs:n,children:e.children})})},"TooltipProvider");var ss=R(D(),1);var as=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var Js={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},is=ss.forwardRef(i(function(e,o){let{render:r,className:n,style:s,children:l,...d}=e,p=xe(),c=ao(),u=p.useState("instantType"),{children:h,state:v}=jo({store:p,side:c.side,cssVars:as,children:l}),f={activationDirection:v.activationDirection,transitioning:v.transitioning,instant:u};return j("div",e,{state:f,ref:o,props:[d,{children:h}],stateAttributesMapping:Js})},"TooltipViewport"));var ho=class{static{i(this,"TooltipHandle")}constructor(){this.store=new no}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!o)throw new Error(q(81,e));this.store.setOpen(!0,G(H.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,G(H.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function ls(){return new ho}i(ls,"createTooltipHandle");var cs=R(ur(),1);var ds=R(se(),1);var Qs=i((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?Yr:Qr(e,o),"p"),ps=i(t=>{let e=(0,cs.c)(7),{catalogs:o,children:r,i18n:n,locale:s}=t,l;e[0]!==o||e[1]!==n||e[2]!==s?(l=Qs(n,s,o),e[0]=o,e[1]=n,e[2]=s,e[3]=l):l=e[3];let d=l,p;return e[4]!==r||e[5]!==d?(p=(0,ds.jsx)(Xr,{value:d,children:r}),e[4]=r,e[5]=d,e[6]=p):p=e[6],p},"S");var Ar=R(ur(),1);var Fe=R(D(),1);var oe=R(se(),1);var _r="lunora:command-palette",us=i(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(_r))},"re"),Ys=i(t=>{let e=(0,Ar.c)(18),{active:o,index:r,item:n,onActivate:s,onSelect:l}=t,d;e[0]!==n||e[1]!==l?(d=i(()=>{l(n)},"s"),e[0]=n,e[1]=l,e[2]=d):d=e[2];let p=d,c;e[3]!==r||e[4]!==s?(c=i(()=>{s(r)},"c"),e[3]=r,e[4]=s,e[5]=c):c=e[5];let u=c,h=o?"bg-accent text-accent-foreground":"text-foreground",v;e[6]!==h?(v=W("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",h),e[6]=h,e[7]=v):v=e[7];let f;e[8]!==n.label?(f=(0,oe.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=f):f=e[9];let m;e[10]!==n.group?(m=(0,oe.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.group,e[11]=m):m=e[11];let g;return e[12]!==p||e[13]!==u||e[14]!==v||e[15]!==f||e[16]!==m?(g=(0,oe.jsx)("li",{children:(0,oe.jsxs)("button",{className:v,onClick:p,onMouseEnter:u,type:"button",children:[f,m]})}),e[12]=p,e[13]=u,e[14]=v,e[15]=f,e[16]=m,e[17]=g):g=e[17],g},"q"),Xs=i((t,e)=>{let o=e.trim().toLowerCase();return o===""?t:t.filter(r=>r.label.toLowerCase().includes(o)||r.group.toLowerCase().includes(o))},"G"),ms=i(t=>{let e=(0,Ar.c)(39),{items:o}=t,r=ge(),n=so(),[s,l]=(0,Fe.useState)(!1),[d,p]=(0,Fe.useState)(""),[c,u]=(0,Fe.useState)(0),h=(0,Fe.useRef)(null),v,f;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=i(()=>{let A=i(L=>{(L.metaKey||L.ctrlKey)&&L.key.toLowerCase()==="k"&&(L.preventDefault(),l(!0))},"o"),V=i(()=>{l(!0)},"r");return globalThis.addEventListener("keydown",A),globalThis.addEventListener(_r,V),()=>{globalThis.removeEventListener("keydown",A),globalThis.removeEventListener(_r,V)}},"i"),f=[],e[0]=v,e[1]=f):(v=e[0],f=e[1]),(0,Fe.useEffect)(v,f);let m;e[2]!==o||e[3]!==d?(m=Xs(o,d),e[2]=o,e[3]=d,e[4]=m):m=e[4];let g=m,b;e[5]===Symbol.for("react.memo_cache_sentinel")?(b=i(A=>{l(A),A||(p(""),u(0))},"T"),e[5]=b):b=e[5];let x=b,C;e[6]!==n?(C=i(A=>{x(!1),Xt(n({to:A.to}))},"D"),e[6]=n,e[7]=C):C=e[7];let y=C,S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i(A=>{p(A.target.value),u(0)},"A"),e[8]=S):S=e[8];let P=S,E;e[9]!==c||e[10]!==g||e[11]!==y?(E=i(A=>{e:switch(A.key){case"ArrowDown":{A.preventDefault(),u(V=>g.length===0?0:(V+1)%g.length);break e}case"ArrowUp":{A.preventDefault(),u(V=>g.length===0?0:(V-1+g.length)%g.length);break e}case"Enter":{A.preventDefault();let V=g[c];V!==void 0&&y(V);break e}}},"j"),e[9]=c,e[10]=g,e[11]=y,e[12]=E):E=e[12];let N=E,T;e[13]===Symbol.for("react.memo_cache_sentinel")?(T=(0,oe.jsx)(pe.Backdrop,{className:"fixed inset-0 z-50 bg-black/40 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),e[13]=T):T=e[13];let w;e[14]!==r?(w=r("Command palette"),e[14]=r,e[15]=w):w=e[15];let k;e[16]!==w?(k=(0,oe.jsx)(pe.Title,{className:"sr-only",children:w}),e[16]=w,e[17]=k):k=e[17];let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O=(0,oe.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,oe.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,oe.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[18]=O):O=e[18];let F;e[19]!==r?(F=r("Search\u2026"),e[19]=r,e[20]=F):F=e[20];let I;e[21]!==N||e[22]!==d||e[23]!==F?(I=(0,oe.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[O,(0,oe.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:P,onKeyDown:N,placeholder:F,ref:h,type:"text",value:d})]}),e[21]=N,e[22]=d,e[23]=F,e[24]=I):I=e[24];let K;e[25]!==c||e[26]!==g||e[27]!==y||e[28]!==r?(K=g.length===0?(0,oe.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):g.map((A,V)=>(0,oe.jsx)(Ys,{active:V===c,index:V,item:A,onActivate:u,onSelect:y},A.to)),e[25]=c,e[26]=g,e[27]=y,e[28]=r,e[29]=K):K=e[29];let B;e[30]!==K?(B=(0,oe.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:K}),e[30]=K,e[31]=B):B=e[31];let z;e[32]!==k||e[33]!==I||e[34]!==B?(z=(0,oe.jsxs)(pe.Portal,{children:[T,(0,oe.jsxs)(pe.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[k,I,B]})]}),e[32]=k,e[33]=I,e[34]=B,e[35]=z):z=e[35];let Z;return e[36]!==s||e[37]!==z?(Z=(0,oe.jsx)(pe.Root,{onOpenChange:x,open:s,children:z}),e[36]=s,e[37]=z,e[38]=Z):Z=e[38],Z},"le");var xs="(prefers-color-scheme: dark)",ys=i(()=>{try{return globalThis.localStorage}catch{return}},"Ot"),ei=i(t=>t==="system"||t==="light"||t==="dark","Sa"),Cs=i(()=>globalThis.matchMedia,"qt"),Ps="lunora-studio-theme",Vr=["system","light","dark"],ti=i((t="system")=>{try{let e=ys()?.getItem(Ps);return ei(e)?e:t}catch{return t}},"Ma"),fs=i(t=>{let e=ys();if(e!==void 0)try{e.setItem(Ps,t)}catch{}},"Ct"),oi=i(()=>{try{return Cs()?.(xs).matches?"dark":"light"}catch{return"light"}},"Ca"),ri=i((t,e)=>t==="system"?e:t,"_a"),ni=i(t=>{let e;try{e=Cs()?.(xs)}catch{e=void 0}if(e===void 0)return()=>{};let o=i(r=>{t(r.matches?"dark":"light")},"a");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"La"),Br=(0,M.createContext)(null),ai=i(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,M.useState)(()=>ti(e)),[n,s]=(0,M.useState)(()=>oi());(0,M.useEffect)(()=>ni(s),[]);let l=i(p=>{fs(p),r(p)},"i"),d={cycleTheme:i(()=>{r(p=>{let c=Vr[(Vr.indexOf(p)+1)%Vr.length]??p;return fs(c),c})},"cycleTheme"),resolvedTheme:ri(o,n),setTheme:l,systemTheme:n,theme:o};return(0,a.jsx)(Br,{value:d,children:t})},"$a"),si=i(t=>{let e=(0,_.c)(3),{children:o}=t,r=(0,M.use)(Br),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,a.jsx)(ai,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"Pa"),ii=i(()=>{let t=(0,M.use)(Br);if(t===null)throw new pr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"Ta");function Bg({delay:t=0,...e}){return(0,a.jsx)(Se.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}i(Bg,"hn");function li(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Se.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}i(li,"Aa");function ci(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Se.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(ci,"za");function di({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:s,...l}){return(0,a.jsx)(Se.Portal,{children:(0,a.jsx)(Se.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,a.jsxs)(Se.Popup,{"data-slot":"tooltip-content",className:W("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-md data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...l,children:[s,(0,a.jsx)(Se.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-md bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}i(di,"Ea");var pi=i(t=>{let e=(0,_.c)(5),{className:o}=t,r;e[0]!==o?(r=W("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=n):n=e[2];let s;return e[3]!==r?(s=(0,a.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=s):s=e[4],s},"Ra"),Rs="lunora.studio.rulesBannerDismissed",ui=i(()=>{try{return globalThis.localStorage.getItem(Rs)==="1"}catch{return!1}},"Ha"),mi=i(()=>{try{globalThis.localStorage.setItem(Rs,"1")}catch{}},"Ia"),fi=i(()=>{let t=(0,_.c)(18),e=ge(),[o,r]=(0,M.useState)(gi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i(()=>{r(!0),mi()},"n"),t[0]=n):n=t[0];let s=n;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=l):l=t[1];let d;t[2]!==e?(d=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=d):d=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let c;t[5]!==e?(c=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=c):c=t[6];let u;t[7]!==d||t[8]!==c?(u=(0,a.jsxs)("span",{children:[d," ",p," ",c]}),t[7]=d,t[8]=c,t[9]=u):u=t[9];let h;t[10]!==e?(h=e("Dismiss"),t[10]=e,t[11]=h):h=t[11];let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=v):v=t[12];let f;t[13]!==h?(f=(0,a.jsx)("button",{"aria-label":h,className:"ms-auto flex size-5 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent","data-testid":"dash-app-rules-banner-dismiss",onClick:s,type:"button",children:v}),t[13]=h,t[14]=f):f=t[14];let m;return t[15]!==u||t[16]!==f?(m=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[l,u,f]}),t[15]=u,t[16]=f,t[17]=m):m=t[17],m},"Ka");function gi(){return ui()}i(gi,"Va");function Ss(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Be.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ss,"Wt");function Ns(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Be.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ns,"jt");function ws({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:s=6,...l}){return(0,a.jsx)(Be.Portal,{keepMounted:r,children:(0,a.jsx)(Be.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:s,children:(0,a.jsx)(Be.Popup,{className:W("z-50 w-72 origin-(--transform-origin) rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o),"data-slot":"popover-content",...l})})})}i(ws,"Ft");var Lr=768;function hi(){let t=(0,_.c)(2),[e,o]=(0,M.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=i(()=>{let s=globalThis.matchMedia(`(max-width: ${Lr-1}px)`),l=i(()=>{o(globalThis.innerWidth<Lr)},"i");return s.addEventListener("change",l),o(globalThis.innerWidth<Lr),()=>{s.removeEventListener("change",l)}},"r"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,M.useEffect)(r,n),!!e}i(hi,"Za");function vi(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(pe.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}i(vi,"Oa");function bi(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(pe.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}i(bi,"qa");function xi(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)(pe.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(xi,"Ba");function yi({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,a.jsxs)(bi,{children:[(0,a.jsx)(xi,{}),(0,a.jsxs)(pe.Popup,{"data-slot":"sheet-content","data-side":o,className:W("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...n,children:[e,r&&(0,a.jsxs)(pe.Close,{"data-slot":"sheet-close",render:(0,a.jsx)(br,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,a.jsx)(vr,{icon:Mn,strokeWidth:2}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}i(yi,"Da");function Ci(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Ci,"Wa");function Pi(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)(pe.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Pi,"ja");function Ri(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)(pe.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Ri,"Fa");var Si="sidebar_state",Ni=3600*24*7,wi="16rem",Ei="18rem",Ti="3rem",ki="b",Es=Ce.createContext(null);function ir(){let t=Ce.useContext(Es);if(!t)throw new pr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}i(ir,"pt");function Oi({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:s,...l}){let d=hi(),[p,c]=Ce.useState(!1),[u,h]=Ce.useState(t),v=e??u,f=i(x=>{let C=typeof x=="function"?x(v):x;o?o(C):h(C),document.cookie=`${Si}=${C}; path=/; max-age=${Ni}`},"h"),m=i(()=>d?c(x=>!x):f(x=>!x),"f"),g=Ce.useEffectEvent(()=>{m()});Ce.useEffect(()=>{let x=i(C=>{C.key===ki&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),g())},"m");return globalThis.addEventListener("keydown",x),()=>globalThis.removeEventListener("keydown",x)},[]);let b={state:v?"expanded":"collapsed",open:v,setOpen:f,isMobile:d,openMobile:p,setOpenMobile:c,toggleSidebar:m};return(0,a.jsx)(Es.Provider,{value:b,children:(0,a.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":wi,"--sidebar-width-icon":Ti,...n},className:W("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:s})})}i(Oi,"er");function Mi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:s,...l}){let{isMobile:d,state:p,openMobile:c,setOpenMobile:u}=ir();return o==="none"?(0,a.jsx)("div",{"data-slot":"sidebar",className:W("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:n}):d?(0,a.jsx)(vi,{open:c,onOpenChange:u,...l,children:(0,a.jsxs)(yi,{dir:s,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ei},side:t,children:[(0,a.jsxs)(Ci,{className:"sr-only",children:[(0,a.jsx)(Pi,{children:"Sidebar"}),(0,a.jsx)(Ri,{children:"Displays the mobile sidebar."})]}),(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,a.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,a.jsx)("div",{"data-slot":"sidebar-gap",className:W("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,a.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:W("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...l,children:(0,a.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:n})})]})}i(Mi,"tr");function Di(t){let e=(0,_.c)(15),o,r,n;e[0]!==t?({className:o,onClick:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let{toggleSidebar:s}=ir(),l;e[4]!==o?(l=W(o),e[4]=o,e[5]=l):l=e[5];let d;e[6]!==r||e[7]!==s?(d=i(h=>{r?.(h),s()},"l"),e[6]=r,e[7]=s,e[8]=d):d=e[8];let p,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(vr,{icon:Dn,strokeWidth:2,className:"rtl:rotate-180"}),c=(0,a.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=c):(p=e[9],c=e[10]);let u;return e[11]!==n||e[12]!==l||e[13]!==d?(u=(0,a.jsxs)(br,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:d,...n,children:[p,c]}),e[11]=n,e[12]=l,e[13]=d,e[14]=u):u=e[14],u}i(Di,"ar");function Ii(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Ii,"rr");function _i(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(_i,"sr");function Ai(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Ai,"nr");function Vi(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Vi,"or");function Li(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Li,"ir");function Hi(t){let e=(0,_.c)(10),o,r,n,s;if(e[0]!==t){let{className:p,render:c,...u}=t;o=c,s=fr,r="div",n=Te({className:W("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s}else o=e[1],r=e[2],n=e[3],s=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=l):l=e[5];let d;return e[6]!==o||e[7]!==r||e[8]!==n?(d={defaultTagName:r,props:n,render:o,state:l},e[6]=o,e[7]=r,e[8]=n,e[9]=d):d=e[9],s(d)}i(Hi,"lr");function Bi(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Bi,"dr");function gs(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(gs,"_t");function hs(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(hs,"Lt");var Fi=en("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-none p-2 text-start text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ts({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:s,...l}){let{isMobile:d,state:p}=ir(),c=fr({defaultTagName:"button",props:Te({className:W(Fi({variant:o,size:r}),s)},l),render:n?(0,a.jsx)(ci,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,a.jsxs)(li,{children:[c,(0,a.jsx)(di,{side:"right",align:"center",hidden:p!=="collapsed"||d,...n})]})):c}i(Ts,"Qt");var ji=i(t=>t.replace("__lunora_admin__:",""),"ur"),Ki=i(()=>(0,M.useSyncExternalStore)(lo.subscribe,lo.getSnapshot,lo.getSnapshot),"hr"),zi=i(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","mr"),Ui=i(t=>{let e=(0,_.c)(56),{entry:o,focused:r}=t,n=ge(),s;e[0]!==r?(s=i(F=>{F!==null&&r&&F.scrollIntoView({block:"nearest"})},"o"),e[0]=r,e[1]=s):s=e[1];let l=s,d;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(d=i(()=>{In(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"l"),e[2]=o.functionPath,e[3]=o.shardKey,e[4]=o.summary,e[5]=d):d=e[5];let p=d,c=r&&"bg-accent ring-1 ring-inset ring-primary/40",u;e[6]!==c?(u=W("border-b border-border/60 last:border-b-0",c),e[6]=c,e[7]=u):u=e[7];let h;e[8]!==o.status?(h=zi(o.status),e[8]=o.status,e[9]=h):h=e[9];let v=o.status==="pending"?"\u2026":o.status,f;e[10]!==h||e[11]!==v?(f=(0,a.jsx)(Bt,{className:"mt-px shrink-0",variant:h,children:v}),e[10]=h,e[11]=v,e[12]=f):f=e[12];let m;e[13]!==o.functionPath?(m=ji(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let g;e[15]!==m?(g=(0,a.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=g):g=e[16];let b;e[17]!==o.kind||e[18]!==n?(b=o.kind==="subscription"&&(0,a.jsx)(Bt,{className:"shrink-0",variant:"outline",children:n("live")}),e[17]=o.kind,e[18]=n,e[19]=b):b=e[19];let x;e[20]!==o.summary?(x=o.summary!==""&&(0,a.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=x):x=e[21];let C;e[22]!==o.shardKey?(C=o.shardKey!==""&&(0,a.jsx)("span",{className:"font-mono",children:o.shardKey}),e[22]=o.shardKey,e[23]=C):C=e[23];let y;e[24]!==o.resultCount||e[25]!==n?(y=o.resultCount!==void 0&&(0,a.jsx)("span",{children:n("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=n,e[26]=y):y=e[26];let S;e[27]!==o.pushes||e[28]!==n?(S=o.pushes!==void 0&&o.pushes>0&&(0,a.jsx)("span",{children:n("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=n,e[29]=S):S=e[29];let P;e[30]!==o.durationMs?(P=o.durationMs!==void 0&&(0,a.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=P):P=e[31];let E;e[32]!==n?(E=n("Copy"),e[32]=n,e[33]=E):E=e[33];let N;e[34]!==p||e[35]!==E?(N=(0,a.jsx)("button",{"aria-label":E,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:p,type:"button",children:"\u29C9"}),e[34]=p,e[35]=E,e[36]=N):N=e[36];let T;e[37]!==C||e[38]!==y||e[39]!==S||e[40]!==P||e[41]!==N?(T=(0,a.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[C,y,S,P,N]}),e[37]=C,e[38]=y,e[39]=S,e[40]=P,e[41]=N,e[42]=T):T=e[42];let w;e[43]!==b||e[44]!==x||e[45]!==T||e[46]!==f||e[47]!==g?(w=(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[f,g,b,x,T]}),e[43]=b,e[44]=x,e[45]=T,e[46]=f,e[47]=g,e[48]=w):w=e[48];let k;e[49]!==o.error?(k=o.error!==void 0&&(0,a.jsx)("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:o.error}),e[49]=o.error,e[50]=k):k=e[50];let O;return e[51]!==l||e[52]!==w||e[53]!==k||e[54]!==u?(O=(0,a.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[w,k]}),e[51]=l,e[52]=w,e[53]=k,e[54]=u,e[55]=O):O=e[55],O},"pr"),Zi=i(t=>{let e=(0,_.c)(62),{focusSeq:o,onClose:r,onShownChange:n,shown:s}=t,l=ge(),d=Ki(),[p,c]=(0,M.useState)(""),u;if(e[0]!==d||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==n||e[5]!==s||e[6]!==l){let h=p.trim().toLowerCase(),v=d.filter(L=>(s==="errors"?L.status==="error":!0)&&(h===""||`${L.functionPath} ${L.summary} ${L.shardKey}`.toLowerCase().includes(h))).toReversed(),f;e[8]!==d?(f=d.filter(Wi),e[8]=d,e[9]=f):f=e[9];let m=f.length,g;e[10]!==l?(g=l("Operation console"),e[10]=l,e[11]=g):g=e[11];let b;e[12]!==l?(b=l("Operation console"),e[12]=l,e[13]=b):b=e[13];let x;e[14]!==b?(x=(0,a.jsx)("span",{className:"text-xs font-medium",children:b}),e[14]=b,e[15]=x):x=e[15];let C;e[16]!==d.length||e[17]!==l?(C=l("{count} calls",{count:d.length}),e[16]=d.length,e[17]=l,e[18]=C):C=e[18];let y;e[19]!==C?(y=(0,a.jsx)(Bt,{variant:"secondary",children:C}),e[19]=C,e[20]=y):y=e[20];let S;e[21]!==m||e[22]!==l?(S=m>0&&(0,a.jsx)(Bt,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=S):S=e[23];let P=s==="errors",E=s==="errors"&&"bg-accent",N;e[24]!==E?(N=W("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",E),e[24]=E,e[25]=N):N=e[25];let T;e[26]!==n||e[27]!==s?(T=i(()=>{n(s==="errors"?"all":"errors")},"L"),e[26]=n,e[27]=s,e[28]=T):T=e[28];let w;e[29]!==l?(w=l("Errors"),e[29]=l,e[30]=w):w=e[30];let k;e[31]!==N||e[32]!==T||e[33]!==w||e[34]!==P?(k=(0,a.jsx)("button",{"aria-pressed":P,className:N,"data-testid":"oc-filter-errors",onClick:T,type:"button",children:w}),e[31]=N,e[32]=T,e[33]=w,e[34]=P,e[35]=k):k=e[35];let O;e[36]!==l?(O=l("Filter"),e[36]=l,e[37]=O):O=e[37];let F;e[38]===Symbol.for("react.memo_cache_sentinel")?(F=i(L=>{c(L.target.value)},"R"),e[38]=F):F=e[38];let I;e[39]!==l?(I=l("Filter"),e[39]=l,e[40]=I):I=e[40];let K;e[41]!==p||e[42]!==O||e[43]!==I?(K=(0,a.jsx)(gr,{"aria-label":O,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:F,placeholder:I,value:p}),e[41]=p,e[42]=O,e[43]=I,e[44]=K):K=e[44];let B;e[45]!==l?(B=l("Clear"),e[45]=l,e[46]=B):B=e[46];let z;e[47]!==B?(z=(0,a.jsx)("button",{className:"ms-auto rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-clear",onClick:$i,type:"button",children:B}),e[47]=B,e[48]=z):z=e[48];let Z;e[49]!==l?(Z=l("Hide"),e[49]=l,e[50]=Z):Z=e[50];let A;e[51]!==r||e[52]!==Z?(A=(0,a.jsx)("button",{"aria-label":Z,className:"rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-close",onClick:r,type:"button",children:"\u2715"}),e[51]=r,e[52]=Z,e[53]=A):A=e[53];let V;e[54]!==k||e[55]!==K||e[56]!==z||e[57]!==A||e[58]!==x||e[59]!==y||e[60]!==S?(V=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[x,y,S,k,K,z,A]}),e[54]=k,e[55]=K,e[56]=z,e[57]=A,e[58]=x,e[59]=y,e[60]=S,e[61]=V):V=e[61],u=(0,a.jsxs)("section",{"aria-label":g,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[V,v.length===0?(0,a.jsx)("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):(0,a.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:v.map(L=>(0,a.jsx)(Ui,{entry:L,focused:L.seq===o},L.seq))})]}),e[0]=d,e[1]=o,e[2]=p,e[3]=r,e[4]=n,e[5]=s,e[6]=l,e[7]=u}else u=e[7];return u},"fr");function Wi(t){return t.status==="error"}i(Wi,"gr");function $i(){lo.clear()}i($i,"br");var qi=i(()=>{let t=(0,_.c)(310),e=ge(),o;t[0]!==e?(o=e("Health score"),t[0]=e,t[1]=o):o=t[1];let r;t[2]!==e?(r=e("Agents"),t[2]=e,t[3]=r):r=t[3];let n;t[4]!==e?(n=e("Evals"),t[4]=e,t[5]=n):n=t[5];let s;t[6]!==e?(s=e("Analytics"),t[6]=e,t[7]=s):s=t[7];let l;t[8]!==e?(l=e("API"),t[8]=e,t[9]=l):l=t[9];let d;t[10]!==e?(d=e("Audit"),t[10]=e,t[11]=d):d=t[11];let p;t[12]!==e?(p=e("Auth audit"),t[12]=e,t[13]=p):p=t[13];let c;t[14]!==e?(c=e("Configuration"),t[14]=e,t[15]=c):c=t[15];let u;t[16]!==e?(u=e("Sessions"),t[16]=e,t[17]=u):u=t[17];let h;t[18]!==e?(h=e("Containers"),t[18]=e,t[19]=h):h=t[19];let v;t[20]!==e?(v=e("Dashboards"),t[20]=e,t[21]=v):v=t[21];let f;t[22]!==e?(f=e("Data"),t[22]=e,t[23]=f):f=t[23];let m;t[24]!==e?(m=e("Deployment health"),t[24]=e,t[25]=m):m=t[25];let g;t[26]!==e?(g=e("Log drains"),t[26]=e,t[27]=g):g=t[27];let b;t[28]!==e?(b=e("Export / Import"),t[28]=e,t[29]=b):b=t[29];let x;t[30]!==e?(x=e("Fan-out"),t[30]=e,t[31]=x):x=t[31];let C;t[32]!==e?(C=e("Files"),t[32]=e,t[33]=C):C=t[33];let y;t[34]!==e?(y=e("Flags"),t[34]=e,t[35]=y):y=t[35];let S;t[36]!==e?(S=e("Functions"),t[36]=e,t[37]=S):S=t[37];let P;t[38]!==e?(P=e("Health"),t[38]=e,t[39]=P):P=t[39];let E;t[40]!==e?(E=e("Home"),t[40]=e,t[41]=E):E=t[41];let N;t[42]!==e?(N=e("Performance"),t[42]=e,t[43]=N):N=t[43];let T;t[44]!==e?(T=e("Issues"),t[44]=e,t[45]=T):T=t[45];let w;t[46]!==e?(w=e("KV"),t[46]=e,t[47]=w):w=t[47];let k;t[48]!==e?(k=e("Logs"),t[48]=e,t[49]=k):k=t[49];let O;t[50]!==e?(O=e("Metrics"),t[50]=e,t[51]=O):O=t[51];let F;t[52]!==e?(F=e("Migrations"),t[52]=e,t[53]=F):F=t[53];let I;t[54]!==e?(I=e("Notifications"),t[54]=e,t[55]=I):I=t[55];let K;t[56]!==e?(K=e("Organizations"),t[56]=e,t[57]=K):K=t[57];let B;t[58]!==e?(B=e("Time Travel"),t[58]=e,t[59]=B):B=t[59];let z;t[60]!==e?(z=e("Mail"),t[60]=e,t[61]=z):z=t[61];let Z;t[62]!==e?(Z=e("Payments"),t[62]=e,t[63]=Z):Z=t[63];let A;t[64]!==e?(A=e("Permissions"),t[64]=e,t[65]=A):A=t[65];let V;t[66]!==e?(V=e("Queues"),t[66]=e,t[67]=V):V=t[67];let L;t[68]!==e?(L=e("Realtime"),t[68]=e,t[69]=L):L=t[69];let te;t[70]!==e?(te=e("RLS Policies"),t[70]=e,t[71]=te):te=t[71];let ee;t[72]!==e?(ee=e("Scheduled"),t[72]=e,t[73]=ee):ee=t[73];let le;t[74]!==e?(le=e("Schema"),t[74]=e,t[75]=le):le=t[75];let J;t[76]!==e?(J=e("Security"),t[76]=e,t[77]=J):J=t[77];let Q;t[78]!==e?(Q=e("Settings"),t[78]=e,t[79]=Q):Q=t[79];let re;t[80]!==e?(re=e("SQL editor"),t[80]=e,t[81]=re):re=t[81];let ue;t[82]!==e?(ue=e("Traces"),t[82]=e,t[83]=ue):ue=t[83];let me;t[84]!==e?(me=e("Access Rules"),t[84]=e,t[85]=me):me=t[85];let he;t[86]!==e?(he=e("Users"),t[86]=e,t[87]=he):he=t[87];let ce;t[88]!==e?(ce=e("Vectors"),t[88]=e,t[89]=ce):ce=t[89];let ve;t[90]!==e?(ve=e("Workflows"),t[90]=e,t[91]=ve):ve=t[91];let $;t[92]!==o||t[93]!==r||t[94]!==v||t[95]!==f||t[96]!==m||t[97]!==g||t[98]!==b||t[99]!==x||t[100]!==C||t[101]!==y||t[102]!==S||t[103]!==P||t[104]!==n||t[105]!==E||t[106]!==N||t[107]!==T||t[108]!==w||t[109]!==k||t[110]!==O||t[111]!==F||t[112]!==I||t[113]!==K||t[114]!==B||t[115]!==s||t[116]!==z||t[117]!==Z||t[118]!==A||t[119]!==V||t[120]!==L||t[121]!==te||t[122]!==ee||t[123]!==le||t[124]!==J||t[125]!==Q||t[126]!==l||t[127]!==re||t[128]!==ue||t[129]!==me||t[130]!==he||t[131]!==ce||t[132]!==ve||t[133]!==d||t[134]!==p||t[135]!==c||t[136]!==u||t[137]!==h?($={advisorHealth:o,agents:r,evals:n,analytics:s,api:l,audit:d,authAudit:p,authConfig:c,authSessions:u,containers:h,dashboards:v,data:f,deploymentHealth:m,drains:g,export:b,fanout:x,files:C,flags:y,functions:S,health:P,home:E,insights:N,issues:T,kv:w,logs:k,metrics:O,migrations:F,notifications:I,organizations:K,pitr:B,mail:z,payments:Z,permissions:A,queues:V,realtime:L,rls:te,schedule:ee,schema:le,security:J,settings:Q,sql:re,traces:ue,storageRules:me,users:he,vectors:ce,workflows:ve},t[92]=o,t[93]=r,t[94]=v,t[95]=f,t[96]=m,t[97]=g,t[98]=b,t[99]=x,t[100]=C,t[101]=y,t[102]=S,t[103]=P,t[104]=n,t[105]=E,t[106]=N,t[107]=T,t[108]=w,t[109]=k,t[110]=O,t[111]=F,t[112]=I,t[113]=K,t[114]=B,t[115]=s,t[116]=z,t[117]=Z,t[118]=A,t[119]=V,t[120]=L,t[121]=te,t[122]=ee,t[123]=le,t[124]=J,t[125]=Q,t[126]=l,t[127]=re,t[128]=ue,t[129]=me,t[130]=he,t[131]=ce,t[132]=ve,t[133]=d,t[134]=p,t[135]=c,t[136]=u,t[137]=h,t[138]=$):$=t[138];let ne=$,ae;t[139]!==e?(ae=e("Advisors"),t[139]=e,t[140]=ae):ae=t[140];let Ne;t[141]!==e?(Ne=e("Auth"),t[141]=e,t[142]=Ne):Ne=t[142];let ye;t[143]!==e?(ye=e("Database"),t[143]=e,t[144]=ye):ye=t[144];let De;t[145]!==e?(De=e("Functions"),t[145]=e,t[146]=De):De=t[146];let we;t[147]!==e?(we=e("Observability"),t[147]=e,t[148]=we):we=t[148];let Ee;t[149]!==e?(Ee=e("Operations"),t[149]=e,t[150]=Ee):Ee=t[150];let Ue;t[151]!==e?(Ue=e("Overview"),t[151]=e,t[152]=Ue):Ue=t[152];let Ze;t[153]!==e?(Ze=e("Settings"),t[153]=e,t[154]=Ze):Ze=t[154];let We;t[155]!==e?(We=e("Storage"),t[155]=e,t[156]=We):We=t[156];let vo;t[157]!==ae||t[158]!==Ne||t[159]!==ye||t[160]!==De||t[161]!==we||t[162]!==Ee||t[163]!==Ue||t[164]!==Ze||t[165]!==We?(vo={advisors:ae,auth:Ne,database:ye,functions:De,observability:we,operations:Ee,overview:Ue,settings:Ze,storage:We},t[157]=ae,t[158]=Ne,t[159]=ye,t[160]=De,t[161]=we,t[162]=Ee,t[163]=Ue,t[164]=Ze,t[165]=We,t[166]=vo):vo=t[166];let lr=vo,$e;t[167]!==e?($e=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[167]=e,t[168]=$e):$e=t[168];let qe;t[169]!==e?(qe=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[169]=e,t[170]=qe):qe=t[170];let Ge;t[171]!==e?(Ge=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[171]=e,t[172]=Ge):Ge=t[172];let Je;t[173]!==e?(Je=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[173]=e,t[174]=Je):Je=t[174];let Qe;t[175]!==e?(Qe=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[175]=e,t[176]=Qe):Qe=t[176];let Ye;t[177]!==e?(Ye=e("A durable log of admin state-changing operations."),t[177]=e,t[178]=Ye):Ye=t[178];let Xe;t[179]!==e?(Xe=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[179]=e,t[180]=Xe):Xe=t[180];let et;t[181]!==e?(et=e("Enabled plugins and session config (read-only)."),t[181]=e,t[182]=et):et=t[182];let tt;t[183]!==e?(tt=e("Browse and revoke active sessions across all users."),t[183]=e,t[184]=tt):tt=t[184];let ot;t[185]!==e?(ot=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[185]=e,t[186]=ot):ot=t[186];let rt;t[187]!==e?(rt=e("Chart widgets backed by saved read-only SQL queries."),t[187]=e,t[188]=rt):rt=t[188];let nt;t[189]!==e?(nt=e("Browse and edit rows across your shard and global tables."),t[189]=e,t[190]=nt):nt=t[190];let at;t[191]!==e?(at=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[191]=e,t[192]=at):at=t[192];let st;t[193]!==e?(st=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[193]=e,t[194]=st):st=t[194];let it;t[195]!==e?(it=e("Export a shard to NDJSON, or import rows from it."),t[195]=e,t[196]=it):it=t[196];let lt;t[197]!==e?(lt=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[197]=e,t[198]=lt):lt=t[198];let ct;t[199]!==e?(ct=e("Browse objects in your R2 storage buckets."),t[199]=e,t[200]=ct):ct=t[200];let dt;t[201]!==e?(dt=e("Inspect feature flags and their live evaluation under a targeting context."),t[201]=e,t[202]=dt):dt=t[202];let pt;t[203]!==e?(pt=e("Run registered queries, mutations, and actions."),t[203]=e,t[204]=pt):pt=t[204];let ut;t[205]!==e?(ut=e("At-a-glance connection, error, and shard signals."),t[205]=e,t[206]=ut):ut=t[206];let mt;t[207]!==e?(mt=e("Connection, health, and advisor summary for your deployment."),t[207]=e,t[208]=mt):mt=t[208];let ft;t[209]!==e?(ft=e("Surface slow functions, error spikes, and cache problems."),t[209]=e,t[210]=ft):ft=t[210];let gt;t[211]!==e?(gt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[211]=e,t[212]=gt):gt=t[212];let ht;t[213]!==e?(ht=e("A live stream of recent function logs."),t[213]=e,t[214]=ht):ht=t[214];let vt;t[215]!==e?(vt=e("Per-shard health and aggregate metrics."),t[215]=e,t[216]=vt):vt=t[216];let bt;t[217]!==e?(bt=e("Review migration status and run them."),t[217]=e,t[218]=bt):bt=t[218];let xt;t[219]!==e?(xt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[219]=e,t[220]=xt):xt=t[220];let yt;t[221]!==e?(yt=e("Browse and manage organizations, members, and invitations."),t[221]=e,t[222]=yt):yt=t[222];let Ct;t[223]!==e?(Ct=e("Restore a shard to a point in the last 30 days."),t[223]=e,t[224]=Ct):Ct=t[224];let Pt;t[225]!==e?(Pt=e("Email your app sent, captured in dev."),t[225]=e,t[226]=Pt):Pt=t[226];let Rt;t[227]!==e?(Rt=e("Synced customers, subscriptions, and webhook events."),t[227]=e,t[228]=Rt):Rt=t[228];let St;t[229]!==e?(St=e("Inspect access policies per table, and probe a function as any identity."),t[229]=e,t[230]=St):St=t[230];let Nt;t[231]!==e?(Nt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[231]=e,t[232]=Nt):Nt=t[232];let wt;t[233]!==e?(wt=e("Active WebSocket subscriptions on this shard."),t[233]=e,t[234]=wt):wt=t[234];let Et;t[235]!==e?(Et=e("Inspect row-level-security policies and roles, per table."),t[235]=e,t[236]=Et):Et=t[236];let Tt;t[237]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[237]=e,t[238]=Tt):Tt=t[238];let kt;t[239]!==e?(kt=e("Inspect each table and its columns."),t[239]=e,t[240]=kt):kt=t[240];let Ot;t[241]!==e?(Ot=e("Review admin gates, credentials, and log redaction."),t[241]=e,t[242]=Ot):Ot=t[242];let Mt;t[243]!==e?(Mt=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[243]=e,t[244]=Mt):Mt=t[244];let Dt;t[245]!==e?(Dt=e("Run read-only SQL against a shard."),t[245]=e,t[246]=Dt):Dt=t[246];let It;t[247]!==e?(It=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[247]=e,t[248]=It):It=t[248];let _t;t[249]!==e?(_t=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[249]=e,t[250]=_t):_t=t[250];let At;t[251]!==e?(At=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[251]=e,t[252]=At):At=t[252];let Vt;t[253]!==e?(Vt=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[253]=e,t[254]=Vt):Vt=t[254];let Lt;t[255]!==e?(Lt=e("Browse Vectorize indexes and run similarity searches."),t[255]=e,t[256]=Lt):Lt=t[256];let Ht;t[257]!==e?(Ht=e("Inspect declared Cloudflare Workflows and their bindings."),t[257]=e,t[258]=Ht):Ht=t[258];let bo;t[259]!==Vt||t[260]!==Lt||t[261]!==Ht||t[262]!==$e||t[263]!==qe||t[264]!==Ge||t[265]!==Je||t[266]!==Qe||t[267]!==Ye||t[268]!==Xe||t[269]!==et||t[270]!==tt||t[271]!==ot||t[272]!==rt||t[273]!==nt||t[274]!==at||t[275]!==st||t[276]!==it||t[277]!==lt||t[278]!==ct||t[279]!==dt||t[280]!==pt||t[281]!==ut||t[282]!==mt||t[283]!==ft||t[284]!==gt||t[285]!==ht||t[286]!==vt||t[287]!==bt||t[288]!==xt||t[289]!==yt||t[290]!==Ct||t[291]!==Pt||t[292]!==Rt||t[293]!==St||t[294]!==Nt||t[295]!==wt||t[296]!==Et||t[297]!==Tt||t[298]!==kt||t[299]!==Ot||t[300]!==Mt||t[301]!==Dt||t[302]!==It||t[303]!==_t||t[304]!==At?(bo={advisorHealth:$e,agents:qe,evals:Ge,analytics:Je,api:Qe,audit:Ye,authAudit:Xe,authConfig:et,authSessions:tt,containers:ot,dashboards:rt,data:nt,deploymentHealth:at,drains:st,export:it,fanout:lt,files:ct,flags:dt,functions:pt,health:ut,home:mt,insights:ft,issues:gt,logs:ht,metrics:vt,migrations:bt,notifications:xt,organizations:yt,pitr:Ct,mail:Pt,payments:Rt,permissions:St,queues:Nt,realtime:wt,rls:Et,schedule:Tt,schema:kt,security:Ot,settings:Mt,sql:Dt,kv:It,storageRules:_t,traces:At,users:Vt,vectors:Lt,workflows:Ht},t[259]=Vt,t[260]=Lt,t[261]=Ht,t[262]=$e,t[263]=qe,t[264]=Ge,t[265]=Je,t[266]=Qe,t[267]=Ye,t[268]=Xe,t[269]=et,t[270]=tt,t[271]=ot,t[272]=rt,t[273]=nt,t[274]=at,t[275]=st,t[276]=it,t[277]=lt,t[278]=ct,t[279]=dt,t[280]=pt,t[281]=ut,t[282]=mt,t[283]=ft,t[284]=gt,t[285]=ht,t[286]=vt,t[287]=bt,t[288]=xt,t[289]=yt,t[290]=Ct,t[291]=Pt,t[292]=Rt,t[293]=St,t[294]=Nt,t[295]=wt,t[296]=Et,t[297]=Tt,t[298]=kt,t[299]=Ot,t[300]=Mt,t[301]=Dt,t[302]=It,t[303]=_t,t[304]=At,t[305]=bo):bo=t[305];let cr=bo,xo;return t[306]!==lr||t[307]!==cr||t[308]!==ne?(xo={groupLabel:lr,tabDescription:cr,tabLabel:ne},t[306]=lr,t[307]=cr,t[308]=ne,t[309]=xo):xo=t[309],xo},"vr"),Gi=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,a.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"yr"),Ji=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,a.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"xr"),Qi=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"wr"),Yi=[{Icon:Gi,value:"system"},{Icon:Ji,value:"light"},{Icon:Qi,value:"dark"}],Xi=i(()=>{let t=(0,_.c)(19),{theme:e,setTheme:o}=ii(),r=ge(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let s;t[2]!==r?(s=r("Light theme"),t[2]=r,t[3]=s):s=t[3];let l;t[4]!==r?(l=r("System theme"),t[4]=r,t[5]=l):l=t[5];let d;t[6]!==n||t[7]!==s||t[8]!==l?(d={dark:n,light:s,system:l},t[6]=n,t[7]=s,t[8]=l,t[9]=d):d=t[9];let p=d,c;t[10]!==r?(c=r("Theme"),t[10]=r,t[11]=c):c=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=Yi.map(v=>{let{Icon:f,value:m}=v,g=e===m;return(0,a.jsxs)("button",{"aria-checked":g,"aria-label":p[m],className:W("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",g?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:i(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[g&&(0,a.jsx)(_n.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,a.jsx)("span",{className:"relative",children:(0,a.jsx)(f,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let h;return t[16]!==c||t[17]!==u?(h=(0,a.jsx)("div",{"aria-label":c,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=c,t[17]=u,t[18]=h):h=t[18],h},"Nr"),el=i(t=>{let e=(0,_.c)(23),{domain:o,onOpenCommandPalette:r,page:n}=t,s=ge(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(Di,{className:"-ms-1"}),e[0]=l):l=e[0];let d;e[1]!==s?(d=s("Breadcrumb"),e[1]=s,e[2]=d):d=e[2];let p;e[3]!==o?(p=(0,a.jsx)("span",{className:"text-muted-foreground",children:o}),e[3]=o,e[4]=p):p=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=c):c=e[5];let u;e[6]!==n?(u=(0,a.jsx)("span",{className:"font-medium text-foreground",children:n}),e[6]=n,e[7]=u):u=e[7];let h;e[8]!==d||e[9]!==p||e[10]!==u?(h=(0,a.jsxs)("nav",{"aria-label":d,className:"flex items-center gap-1.5 text-[13px]",children:[p,c,u]}),e[8]=d,e[9]=p,e[10]=u,e[11]=h):h=e[11];let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=v):v=e[12];let f;e[13]!==s?(f=s("Search\u2026"),e[13]=s,e[14]=f):f=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),e[15]=m):m=e[15];let g;e[16]!==r||e[17]!==f?(g=(0,a.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:r,type:"button",children:[v,f,m]}),e[16]=r,e[17]=f,e[18]=g):g=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,a.jsx)(Xi,{})}),e[19]=b):b=e[19];let x;return e[20]!==g||e[21]!==h?(x=(0,a.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[l,h,g,b]}),e[20]=g,e[21]=h,e[22]=x):x=e[22],x},"Sr"),tl=i(t=>{let e=(0,_.c)(3),o,r;e[0]!==t?(o=i(()=>{if(t===void 0)return;let n=i(s=>{if(!s.ctrlKey||s.metaKey||s.altKey||s.shiftKey||s.repeat||s.key!=="`")return;let{target:l}=s;l instanceof HTMLElement&&(l.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(l.tagName))||(s.preventDefault(),t())},"n");return globalThis.addEventListener("keydown",n),()=>{globalThis.removeEventListener("keydown",n)}},"a"),r=[t],e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]),(0,M.useEffect)(o,r)},"Mr"),X=i((t,e)=>(0,M.lazy)(()=>t().then(o=>({default:o[e]}))),"E"),ol=X(()=>import("./chunk-GXXEKXMR.js"),"InsightsPanel"),rl=(0,M.lazy)(()=>import("./chunk-L54MRHOE.js")),nl=(0,M.lazy)(()=>import("./chunk-3CXC27LL.js")),al=(0,M.lazy)(()=>import("./chunk-HKRRKZPX.js")),sl=(0,M.lazy)(()=>import("./chunk-GLCJSRZU.js")),il=X(()=>import("./chunk-OENUM3OW.js"),"AnalyticsPanel"),ll=(0,M.lazy)(()=>import("./chunk-HFP4PBM5.js")),cl=(0,M.lazy)(()=>import("./chunk-XDDXCDKW.js")),dl=(0,M.lazy)(()=>import("./chunk-AI62XFW6.js")),pl=(0,M.lazy)(()=>import("./chunk-IRNX35LY.js")),ul=(0,M.lazy)(()=>import("./chunk-UPQGD6JY.js")),ml=X(()=>import("./chunk-NCD4PEEZ.js"),"UsersPanel"),fl=(0,M.lazy)(()=>import("./chunk-JGTKRQVM.js")),gl=X(()=>import("./chunk-KAVRYX7T.js"),"DeploymentHealthPanel"),hl=X(()=>import("./chunk-XJTTJ57C.js"),"TableEditor"),vl=X(()=>import("./chunk-PA7BSM5T.js"),"ExportImportPanel"),bl=(0,M.lazy)(()=>import("./chunk-G4YBB2WW.js")),xl={data:Ln,migrations:Hn},yl=X(()=>import("./chunk-DYH6W3L5.js"),"PitrPanel"),Cl=(0,M.lazy)(()=>import("./chunk-NM6OOA4L.js")),Pl=X(()=>import("./chunk-NGENUSFE.js"),"FunctionRunner"),Rl=X(()=>import("./chunk-QT47YQFN.js"),"FunctionStatsPanel"),Sl=(0,M.lazy)(()=>import("./chunk-LBORO43W.js")),Nl=X(()=>import("./chunk-X3CR2UJK.js"),"AuditPanel"),wl=(0,M.lazy)(()=>import("./chunk-SBZXUGZ7.js")),El=(0,M.lazy)(()=>import("./chunk-744YTKHP.js").then(t=>({default:t.LogsPanel}))),Tl=X(()=>import("./chunk-LCMKFBA4.js"),"MailPanel"),kl=X(()=>import("./chunk-XCNNKMME.js"),"SchedulePanel"),Ol=(0,M.lazy)(()=>import("./chunk-NXF4Z5ZP.js")),Ml=(0,M.lazy)(()=>import("./chunk-46ZHPP3M.js")),Dl=X(()=>import("./chunk-JISQYNVU.js"),"KvBrowser"),Il=(0,M.lazy)(()=>import("./chunk-CTR7LLJB.js")),_l=X(()=>import("./chunk-MUSKZL5Y.js"),"PaymentsPanel"),Al=X(()=>import("./chunk-GRGQK4AX.js"),"PermissionsPanel"),Vl=(0,M.lazy)(()=>import("./chunk-4TLSANPE.js")),Ll=(0,M.lazy)(()=>import("./chunk-UEZXG35P.js")),Hl=(0,M.lazy)(()=>import("./chunk-CV2ZHCSQ.js")),Bl=X(()=>import("./chunk-MWLD5STA.js"),"HealthPanel"),Fl=X(()=>import("./chunk-VU6IQL5Z.js"),"MetricsPanel"),jl=X(()=>import("./chunk-CMQJI7AJ.js"),"SchemaViewer"),Kl=X(()=>import("./chunk-MVUIIDB7.js"),"SettingsPanel"),zl=X(()=>import("./chunk-246BLG4I.js"),"SqlEditorPanel"),Ul=X(()=>import("./chunk-CGKML4NC.js"),"FileBrowser"),Zl=(0,M.lazy)(()=>import("./chunk-V4XO5TAT.js")),Wl=(0,M.lazy)(()=>import("./chunk-5MD62MWO.js")),$l=(0,M.lazy)(()=>import("./chunk-RGFVM2UG.js")),ql=X(()=>import("./chunk-UF6SDOXD.js"),"VectorBrowser"),Gl=(0,M.lazy)(()=>import("./chunk-U2DFU5HO.js")),ks=(0,M.createContext)(null),Jl={analytics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:(0,a.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,a.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,a.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,a.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,a.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,a.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,a.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,a.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,a.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,a.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,a.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,a.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),health:(0,a.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,a.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,a.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,a.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,a.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,a.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,a.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,a.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,a.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,a.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,a.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),realtime:(0,a.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,a.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),advisorHealth:(0,a.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,a.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,a.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,a.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,a.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,a.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},vs=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","audit","realtime","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags"]},{key:"settings",tabs:["settings"]}],Ql={analytics:"analytics",authAudit:"auth",authConfig:"auth",authSessions:"auth",containers:"containers",files:"storage",flags:"flags",kv:"kv",mail:"mail",notifications:"notifications",organizations:"auth",payments:"payments",queues:"queues",schedule:"scheduler",storageRules:"storage",users:"auth",vectors:"vectors",workflows:"workflows"},bs=i((t,e)=>{let o=Ql[t];return o===void 0||e[o]},"Pt"),Hr=i(t=>{let e=(0,_.c)(2),{tab:o}=t,r=Jl[o],n;return e[0]!==r?(n=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=n):n=e[1],n},"kt"),Yl=i(t=>t,"ks"),Os=Yl(["home","data","sql","functions","api","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","settings"]),Xl=new Set(["api","data","migrations","sql"]),ec=i(t=>{let e=t.split("/").findLast(Boolean)??"";return Os.includes(e)?e:"home"},"Ss"),tc=i(t=>{let e=(0,_.c)(19),{chrome:o,connected:r}=t,n=ge(),s;e[0]!==n?(s=n("admin token"),e[0]=n,e[1]=s):s=e[1];let l;e[2]!==s?(l=(0,a.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:s}),e[2]=s,e[3]=l):l=e[3];let d;e[4]!==o.onTokenChange||e[5]!==o.token?(d=(0,a.jsx)(gr,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:o.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:o.token}),e[4]=o.onTokenChange,e[5]=o.token,e[6]=d):d=e[6];let p;e[7]!==r||e[8]!==n?(p=r&&(0,a.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),n("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=n,e[9]=p):p=e[9];let c;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(c=r&&(0,a.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:n("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=n,e[13]=c):c=e[13];let u;return e[14]!==l||e[15]!==d||e[16]!==p||e[17]!==c?(u=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[l,d,p,c]}),e[14]=l,e[15]=d,e[16]=p,e[17]=c,e[18]=u):u=e[18],u},"Ms"),oc=i(t=>{let e=(0,_.c)(25),{current:o,group:r,groupLabel:n,selectTab:s,tabDescription:l,tabLabel:d}=t,p=r.tabs.includes(o)?"page":void 0,c=n[r.key],u=r.tabs[0],h;e[0]!==u?(h=(0,a.jsx)(Hr,{tab:u}),e[0]=u,e[1]=h):h=e[1];let v;e[2]!==p||e[3]!==c||e[4]!==h?(v=(0,a.jsx)(Ns,{"aria-current":p,"aria-label":c,className:"mx-auto flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent data-[popup-open]:bg-sidebar-accent data-[popup-open]:text-sidebar-accent-foreground data-[popup-open]:shadow-xs aria-[current=page]:bg-sidebar-accent aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:shadow-xs",delay:120,openOnHover:!0,children:h}),e[2]=p,e[3]=c,e[4]=h,e[5]=v):v=e[5];let f=n[r.key],m;e[6]!==f?(m=(0,a.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:f}),e[6]=f,e[7]=m):m=e[7];let g;if(e[8]!==o||e[9]!==r.tabs||e[10]!==s||e[11]!==l||e[12]!==d){let C;e[14]!==o||e[15]!==s||e[16]!==l||e[17]!==d?(C=i(y=>(0,a.jsxs)("button",{"aria-current":o===y?"page":void 0,className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100","data-tab":y,"data-testid":`dash-tab-${y}`,onClick:s,title:l[y],type:"button",children:[(0,a.jsx)(Hr,{tab:y}),(0,a.jsx)("span",{children:d[y]})]},y),"y"),e[14]=o,e[15]=s,e[16]=l,e[17]=d,e[18]=C):C=e[18],g=r.tabs.map(C),e[8]=o,e[9]=r.tabs,e[10]=s,e[11]=l,e[12]=d,e[13]=g}else g=e[13];let b;e[19]!==m||e[20]!==g?(b=(0,a.jsxs)(ws,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[m,g]}),e[19]=m,e[20]=g,e[21]=b):b=e[21];let x;return e[22]!==v||e[23]!==b?(x=(0,a.jsxs)(Ss,{children:[v,b]}),e[22]=v,e[23]=b,e[24]=x):x=e[24],x},"Cs"),rc=i(t=>{let e=(0,_.c)(45),{chrome:o,collapsed:r,connected:n}=t,s=ge();if(o===null){let y;e[0]!==s?(y=s("Admin"),e[0]=s,e[1]=y):y=e[1];let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=S):S=e[2];let P;e[3]!==s?(P=s("Admin"),e[3]=s,e[4]=P):P=e[4];let E;e[5]!==P?(E=(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:P}),e[5]=P,e[6]=E):E=e[6];let N;e[7]!==s?(N=s("Studio"),e[7]=s,e[8]=N):N=e[8];let T;e[9]!==N?(T=(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:N}),e[9]=N,e[10]=T):T=e[10];let w;e[11]!==E||e[12]!==T?(w=(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[E,T]}),e[11]=E,e[12]=T,e[13]=w):w=e[13];let k;return e[14]!==y||e[15]!==w?(k=(0,a.jsxs)(Ts,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[S,w]}),e[14]=y,e[15]=w,e[16]=k):k=e[16],k}let l=r?"mx-auto size-8 justify-center":"w-full p-2",d;e[17]!==l?(d=W("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",l),e[17]=l,e[18]=d):d=e[18];let p;e[19]!==n||e[20]!==s?(p=s(n?"Connected":"Not connected"),e[19]=n,e[20]=s,e[21]=p):p=e[21];let c=n?"bg-success":"bg-muted-foreground/50",u;e[22]!==c?(u=W("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",c),e[22]=c,e[23]=u):u=e[23];let h;e[24]!==u?(h=(0,a.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,a.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=h):h=e[25];let v;e[26]!==r||e[27]!==n||e[28]!==s?(v=!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:s("Admin")}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:s(n?"Connected":"Not connected")})]}),(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=n,e[28]=s,e[29]=v):v=e[29];let f;e[30]!==d||e[31]!==p||e[32]!==h||e[33]!==v?(f=(0,a.jsxs)(Ns,{className:d,"data-testid":"dash-app-connect",title:p,children:[h,v]}),e[30]=d,e[31]=p,e[32]=h,e[33]=v,e[34]=f):f=e[34];let m=r?"end":"start",g=r?"right":"top",b;e[35]!==o||e[36]!==n?(b=(0,a.jsx)(tc,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=b):b=e[37];let x;e[38]!==g||e[39]!==b||e[40]!==m?(x=(0,a.jsx)(ws,{align:m,keepMounted:!0,side:g,children:b}),e[38]=g,e[39]=b,e[40]=m,e[41]=x):x=e[41];let C;return e[42]!==x||e[43]!==f?(C=(0,a.jsxs)(Ss,{children:[f,x]}),e[42]=x,e[43]=f,e[44]=C):C=e[44],C},"_s"),nc=i(t=>{let e=(0,_.c)(28),{chrome:o,connected:r,current:n,groupLabel:s,groups:l,selectTab:d,tabDescription:p,tabLabel:c}=t,u=ge(),{state:h}=ir(),v=h==="collapsed",f=v&&"justify-center px-0",m;e[0]!==f?(m=W("flex items-center gap-2.5 px-1.5 py-1",f),e[0]=f,e[1]=m):m=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)(pi,{className:"size-9 shrink-0 text-foreground"}),e[2]=g):g=e[2];let b;e[3]!==v||e[4]!==r||e[5]!==u?(b=!v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:u("Studio")})]}),(0,a.jsx)(Bt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:u(r?"Live":"Local")})]}),e[3]=v,e[4]=r,e[5]=u,e[6]=b):b=e[6];let x;e[7]!==m||e[8]!==b?(x=(0,a.jsx)(_i,{children:(0,a.jsxs)("div",{className:m,children:[g,b]})}),e[7]=m,e[8]=b,e[9]=x):x=e[9];let C;e[10]!==v||e[11]!==n||e[12]!==s||e[13]!==l||e[14]!==d||e[15]!==p||e[16]!==c?(C=v?l.map(E=>(0,a.jsx)(oc,{current:n,group:E,groupLabel:s,selectTab:d,tabDescription:p,tabLabel:c},E.key)):l.map(E=>(0,a.jsxs)(Li,{children:[(0,a.jsx)(Hi,{className:"text-[11px] font-medium tracking-wider uppercase",children:s[E.key]}),(0,a.jsx)(Bi,{children:(0,a.jsx)(gs,{children:E.tabs.map(N=>(0,a.jsx)(hs,{children:(0,a.jsxs)(Ts,{className:"data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]","data-tab":N,"data-testid":`dash-tab-${N}`,isActive:n===N,onClick:d,title:p[N],tooltip:p[N],children:[(0,a.jsx)(Hr,{tab:N}),(0,a.jsx)("span",{children:c[N]})]})},N))})})]},E.key)),e[10]=v,e[11]=n,e[12]=s,e[13]=l,e[14]=d,e[15]=p,e[16]=c,e[17]=C):C=e[17];let y;e[18]!==C?(y=(0,a.jsx)(Vi,{children:C}),e[18]=C,e[19]=y):y=e[19];let S;e[20]!==o||e[21]!==v||e[22]!==r?(S=(0,a.jsx)(Ai,{children:(0,a.jsx)(gs,{children:(0,a.jsx)(hs,{children:(0,a.jsx)(rc,{chrome:o,collapsed:v,connected:r})})})}),e[20]=o,e[21]=v,e[22]=r,e[23]=S):S=e[23];let P;return e[24]!==x||e[25]!==y||e[26]!==S?(P=(0,a.jsxs)(Mi,{collapsible:"icon",variant:"inset",children:[x,y,S]}),e[24]=x,e[25]=y,e[26]=S,e[27]=P):P=e[27],P},"Ls"),Ms=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Ko,{className:"h-8 w-40"}),(0,a.jsx)(Ko,{className:"h-8 w-24"})]}),(0,a.jsx)(Ko,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Yt"),ac=i(()=>{let t=(0,_.c)(64),e=ge(),o=so(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:pc},t[0]=r):r=t[0];let n=qr(r),s,l;t[1]!==n?(s=ec(n),l=Xl.has(s),t[1]=n,t[2]=s,t[3]=l):(s=t[2],l=t[3]);let d=l,p=Jr(),c=p?.toggle;tl(c);let u=An(),{groupLabel:h,tabDescription:v,tabLabel:f}=qi(),m;t[4]!==u?(m=i(ce=>({...ce,tabs:ce.tabs.filter(ve=>bs(ve,u))}),"f"),t[4]=u,t[5]=m):m=t[5];let g=vs.map(m).filter(uc),b,x;t[6]!==s||t[7]!==u||t[8]!==o?(b=i(()=>{bs(s,u)||Xt(o({replace:!0,to:"/home"}))},"b"),x=[s,u,o],t[6]=s,t[7]=u,t[8]=o,t[9]=b,t[10]=x):(b=t[9],x=t[10]),(0,M.useEffect)(b,x);let C;t[11]!==o?(C=i(ce=>{Xt(o({to:`/${ce.currentTarget.dataset.tab??""}`}))},"y"),t[11]=o,t[12]=C):C=t[12];let y=C,S,P;t[13]!==s||t[14]!==f?(S=i(()=>{typeof document<"u"&&(document.title=`${f[s]} \xB7 lunora`)},"S"),P=[s,f],t[13]=s,t[14]=f,t[15]=S,t[16]=P):(S=t[15],P=t[16]),(0,M.useEffect)(S,P);let E=g.find(ce=>ce.tabs.includes(s))??vs[0],N;t[17]!==h||t[18]!==f?(N=i(ce=>ce.tabs.map(ve=>({group:h[ce.key],label:f[ve],to:`/${ve}`})),"N"),t[17]=h,t[18]=f,t[19]=N):N=t[19];let T=g.flatMap(N),w=(0,M.use)(ks),k=w!==null&&w.token!=="",O;t[20]!==T?(O=(0,a.jsx)(ms,{items:T}),t[20]=T,t[21]=O):O=t[21];let F;t[22]!==w||t[23]!==k||t[24]!==s||t[25]!==h||t[26]!==y||t[27]!==v||t[28]!==f||t[29]!==g?(F=(0,a.jsx)(nc,{chrome:w,connected:k,current:s,groupLabel:h,groups:g,selectTab:y,tabDescription:v,tabLabel:f}),t[22]=w,t[23]=k,t[24]=s,t[25]=h,t[26]=y,t[27]=v,t[28]=f,t[29]=g,t[30]=F):F=t[30];let I=h[E.key],K=f[s],B;t[31]!==I||t[32]!==K?(B=(0,a.jsx)(el,{domain:I,onOpenCommandPalette:us,page:K}),t[31]=I,t[32]=K,t[33]=B):B=t[33];let z;t[34]!==w?.rulesInstalled?(z=w?.rulesInstalled===!1&&(0,a.jsx)(fi,{}),t[34]=w?.rulesInstalled,t[35]=z):z=t[35];let Z=`dash-tab-${s}`,A=d?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",V=f[s],L;t[36]!==e||t[37]!==V?(L=e("{title} failed",{title:V}),t[36]=e,t[37]=V,t[38]=L):L=t[38];let te=f[s],ee;t[39]!==e?(ee=e("Try again"),t[39]=e,t[40]=ee):ee=t[40];let le;t[41]===Symbol.for("react.memo_cache_sentinel")?(le=(0,a.jsx)(M.Suspense,{fallback:(0,a.jsx)(Ms,{}),children:(0,a.jsx)(Zr,{})}),t[41]=le):le=t[41];let J;t[42]!==s||t[43]!==L||t[44]!==te||t[45]!==ee?(J=(0,a.jsx)(zo,{fallbackTitle:L,label:te,retryLabel:ee,children:le},s),t[42]=s,t[43]=L,t[44]=te,t[45]=ee,t[46]=J):J=t[46];let Q;t[47]!==A||t[48]!==J?(Q=(0,a.jsx)("div",{className:A,children:J}),t[47]=A,t[48]=J,t[49]=Q):Q=t[49];let re;t[50]!==p?(re=p?.open===!0&&(0,a.jsx)(Zi,{focusSeq:p.focusSeq,onClose:p.close,onShownChange:p.setShown,shown:p.shown}),t[50]=p,t[51]=re):re=t[51];let ue;t[52]!==Z||t[53]!==Q||t[54]!==re?(ue=(0,a.jsxs)("div",{"aria-labelledby":Z,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[Q,re]}),t[52]=Z,t[53]=Q,t[54]=re,t[55]=ue):ue=t[55];let me;t[56]!==B||t[57]!==z||t[58]!==ue?(me=(0,a.jsxs)(Ii,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[B,z,ue]}),t[56]=B,t[57]=z,t[58]=ue,t[59]=me):me=t[59];let he;return t[60]!==F||t[61]!==me||t[62]!==O?(he=(0,a.jsxs)(Oi,{className:"min-h-0 flex-1","data-testid":"lunora-studio",children:[O,F,me]}),t[60]=F,t[61]=me,t[62]=O,t[63]=he):he=t[63],he},"$s"),sc=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(Gr,{children:(0,a.jsx)(ac,{})}),t[0]=e):e=t[0],e},"Ps"),ic=i(t=>{let e=(0,_.c)(5),{initialShardKey:o,schemaEditable:r}=t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];let s=zr(n),{table:l}=s,d=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==d||e[3]!==r?(p=(0,a.jsx)(jl,{initialShardKey:o,initialTable:d,schemaEditable:r}),e[1]=o,e[2]=d,e[3]=r,e[4]=p):p=e[4],p},"Ts"),lc=i(()=>{let t=(0,_.c)(3),e=so(),o,r;return t[0]!==e?(o=i(()=>{Xt(e({replace:!0,to:"/home"}))},"a"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,M.useEffect)(o,r),null},"As"),cc=i(({basePath:t,dataEditable:e=!1,functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:s,runAsIdentity:l=!1,schemaEditable:d=!1,scheduledCancel:p,scheduledCron:c,scheduledLoad:u})=>{let h=Ur({component:sc}),v={agents:(0,a.jsx)(sl,{initialShardKey:r}),analytics:(0,a.jsx)(il,{}),api:(0,a.jsx)(ll,{functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:s}),audit:(0,a.jsx)(Nl,{initialShardKey:r}),authAudit:(0,a.jsx)(cl,{}),authConfig:(0,a.jsx)(dl,{}),authSessions:(0,a.jsx)(pl,{}),containers:(0,a.jsx)(fl,{}),dashboards:(0,a.jsx)(Ll,{initialShardKey:r}),data:(0,a.jsx)(hl,{editable:e,initialShardKey:r}),deploymentHealth:(0,a.jsx)(gl,{}),drains:(0,a.jsx)(wl,{}),export:(0,a.jsx)(vl,{initialShardKey:r}),fanout:(0,a.jsx)(Hl,{initialShardKey:r}),files:(0,a.jsx)(Ul,{}),kv:(0,a.jsx)(Dl,{}),flags:(0,a.jsx)(Cl,{initialShardKey:r}),functions:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Rl,{functions:o,initialShardKey:r}),(0,a.jsx)(Pl,{functions:o,runAsIdentity:l})]}),health:(0,a.jsx)(Bl,{initialShardKey:r}),home:(0,a.jsx)(Vn,{initialShardKey:r}),insights:(0,a.jsx)(ol,{initialShardKey:r}),issues:(0,a.jsx)(Sl,{initialShardKey:r}),logs:(0,a.jsx)(El,{initialShardKey:r}),traces:(0,a.jsx)(Wl,{initialShardKey:r}),evals:(0,a.jsx)($l,{initialShardKey:r}),metrics:(0,a.jsx)(Fl,{initialShardKey:r}),migrations:(0,a.jsx)(bl,{initialShardKey:r}),notifications:(0,a.jsx)(Il,{}),organizations:(0,a.jsx)(ul,{}),permissions:(0,a.jsx)(Al,{functions:o,runAsIdentity:l,schemaEditable:d}),pitr:(0,a.jsx)(yl,{initialShardKey:r}),mail:(0,a.jsx)(Tl,{}),payments:(0,a.jsx)(_l,{}),queues:(0,a.jsx)(Vl,{}),realtime:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Ol,{initialShardKey:r}),(0,a.jsx)(Ml,{})]}),rls:(0,a.jsx)(rl,{}),schedule:(0,a.jsx)(kl,{loadCronJobs:c,scheduledCancel:p,scheduledLoad:u}),schema:(0,a.jsx)(ic,{initialShardKey:r,schemaEditable:d}),advisorHealth:(0,a.jsx)(nl,{}),security:(0,a.jsx)(al,{}),settings:(0,a.jsx)(Kl,{initialShardKey:r}),sql:(0,a.jsx)(zl,{initialShardKey:r}),storageRules:(0,a.jsx)(Zl,{}),users:(0,a.jsx)(ml,{}),vectors:(0,a.jsx)(ql,{}),workflows:(0,a.jsx)(Gl,{})},f=mr({component:i(()=>v.home,"component"),getParentRoute:i(()=>h,"getParentRoute"),path:"/"}),m=Os.map(x=>mr({component:i(()=>v[x],"component"),getParentRoute:i(()=>h,"getParentRoute"),path:`/${x}`,validateSearch:xl[x]})),g=h.addChildren([f,...m]),b="window"in globalThis?jr():Kr({initialEntries:["/home"]});return Wr({...t===void 0||t==="/"?{}:{basepath:t},defaultNotFoundComponent:lc,defaultPendingComponent:Ms,defaultPendingMinMs:0,defaultPendingMs:0,history:b,routeTree:g})},"zs"),dc=i(t=>{let e=(0,_.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:s,initialShardKey:l,openApiSpec:d,openRpcSpec:p,runAsIdentity:c,schemaEditable:u,scheduledCancel:h,scheduledCron:v,scheduledLoad:f}=t,m;e[0]!==o||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==d||e[5]!==p||e[6]!==c||e[7]!==h||e[8]!==v||e[9]!==f||e[10]!==u?(m=cc({basePath:o,dataEditable:n,functions:s,initialShardKey:l,openApiSpec:d,openRpcSpec:p,runAsIdentity:c,schemaEditable:u,scheduledCancel:h,scheduledCron:v,scheduledLoad:f}),e[0]=o,e[1]=n,e[2]=s,e[3]=l,e[4]=d,e[5]=p,e[6]=c,e[7]=h,e[8]=v,e[9]=f,e[10]=u,e[11]=m):m=e[11];let g=m,b=r??null,x;e[12]!==g?(x=(0,a.jsx)($r,{router:g}),e[12]=g,e[13]=x):x=e[13];let C;return e[14]!==b||e[15]!==x?(C=(0,a.jsx)(ks,{value:b,children:x}),e[14]=b,e[15]=x,e[16]=C):C=e[16],C},"Es"),Fg=i(t=>{let e=(0,_.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:s,i18n:l,initialShardKey:d,locale:p,openApiSpec:c,openRpcSpec:u,runAsIdentity:h,schemaEditable:v,scheduledCancel:f,scheduledCron:m,scheduledLoad:g}=t,b;e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==s||e[4]!==d||e[5]!==c||e[6]!==u||e[7]!==h||e[8]!==f||e[9]!==m||e[10]!==g||e[11]!==v?(b=(0,a.jsx)(si,{children:(0,a.jsx)(dc,{basePath:o,chrome:r,dataEditable:n,functions:s,initialShardKey:d,openApiSpec:c,openRpcSpec:u,runAsIdentity:h,scheduledCancel:f,scheduledCron:m,scheduledLoad:g,schemaEditable:v})}),e[0]=o,e[1]=r,e[2]=n,e[3]=s,e[4]=d,e[5]=c,e[6]=u,e[7]=h,e[8]=f,e[9]=m,e[10]=g,e[11]=v,e[12]=b):b=e[12];let x=b;if(l===void 0&&p===void 0)return x;let C;return e[13]!==l||e[14]!==p||e[15]!==x?(C=(0,a.jsx)(ps,{i18n:l,locale:p,children:x}),e[13]=l,e[14]=p,e[15]=x,e[16]=C):C=e[16],C},"mn");function pc(t){return t.location.pathname}i(pc,"Rs");function uc(t){return t.tabs.length>0}i(uc,"Hs");export{zo as a,ps as b,ai as c,ii as d,Bg as e,pi as f,vi as g,yi as h,Ci as i,Pi as j,Fg as k};
1
+ import{a as An,b as Vn}from"./chunk-ZCNMXKF2.js";import{a as Ln,d as Hn}from"./chunk-3C3CG7ZK.js";import{a as Gt,b as Jt,c as Qt,d as En,e as jo}from"./chunk-I6A5C46N.js";import{$ as Sn,A as jt,C as bn,D as U,E as xn,F as yn,I as Kt,L as _e,M as wo,N as zt,P as Eo,Q as Cn,R as Pn,S as To,T as Ut,U as Zt,V as Wt,W as $t,X as ko,Y as qt,_ as Rn,aa as Oo,b as nn,ba as Mo,ea as Do,fa as Pe,ga as Nn,ha as Yt,i as cn,ia as wn,j as dn,ja as de,k as pn,ka as Io,l as hr,m as Co,ma as _o,na as Ao,o as Po,oa as Vo,p as un,pa as Lo,q as Ro,qa as Ho,ra as Bo,s as mn,sa as Tn,ta as kn,u as fn,ua as Fo,v as gn,va as On,w as hn,x as So,y as No,z as vn}from"./chunk-2QSHLBCO.js";import{c as Mn,h as Dn,k as vr}from"./chunk-QBWRC5YX.js";import{a as Ko}from"./chunk-HPFLBYRI.js";import{b as _n}from"./chunk-CZZWYUTR.js";import{a as jr,b as Kr,d as zr,e as so,f as mr,g as Ur,h as Zr,i as Wr,j as $r,k as qr}from"./chunk-SMIESS7P.js";import{B as an,C as sn,I as be,J as ln,K as Ft,O as H,P as G,R as gr,e as fe,p as io,q as rn}from"./chunk-CFPZYHPY.js";import{a as Fr}from"./chunk-7QIFDWQV.js";import{a as br}from"./chunk-MWIKAR7F.js";import{b as Ae}from"./chunk-DJZYD5I5.js";import{a as Ie,c as tn,h as yo,i as on}from"./chunk-2OUPA2WJ.js";import{a as fr,b as Bt}from"./chunk-THIXMMZD.js";import{a as Te,c as q,i as je,j}from"./chunk-6ST5ECQA.js";import{a as Gr,b as Jr}from"./chunk-QLQADHFE.js";import{a as lo}from"./chunk-FZ2N52BV.js";import{a as en}from"./chunk-XBDKZZ67.js";import{a as Qr,b as Yr,c as Xr,d as ge,o as Xt,q as In}from"./chunk-IUYFXK4X.js";import{c as pr}from"./chunk-5DVJR52Z.js";import{a as i,d as dr,e as R,f as D,g as ur,h as se,j as W}from"./chunk-3XIESWL4.js";var _=R(ur(),1);var Ce=R(D(),1),M=R(D(),1);var a=R(se(),1);var Bn=R(D(),1),ke=R(se(),1);var Ds={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},Is={overflow:"auto",whiteSpace:"pre-wrap"},zo=class extends Bn.Component{static{i(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=i(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:n}=this.props,{error:s}=this.state;if(s===null)return(0,ke.jsx)(ke.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,ke.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:Ds,children:[(0,ke.jsx)("strong",{children:l}),(0,ke.jsx)("pre",{"data-testid":"dash-error-message",style:Is,children:s.message}),(0,ke.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var Be={};dr(Be,{Arrow:()=>ta,Backdrop:()=>ra,Close:()=>ca,Description:()=>ia,Handle:()=>po,Popup:()=>Xn,Portal:()=>Wn,Positioner:()=>$n,Root:()=>Kn,Title:()=>aa,Trigger:()=>zn,Viewport:()=>ua,createHandle:()=>ma});var Oe=R(D(),1);var Uo=R(D(),1);var xr=Uo.createContext(void 0);function Y(t){let e=Uo.useContext(xr);if(e===void 0&&!t)throw new Error(q(47));return e}i(Y,"usePopoverRootContext");var Ve=R(D(),1),Fn=R(Fr(),1);function _s(){return{...Gt(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}i(_s,"createInitialState");var As={...Qt,disabled:U(t=>t.disabled),instantType:U(t=>t.instantType),openMethod:U(t=>t.openMethod),openChangeReason:U(t=>t.openChangeReason),modal:U(t=>t.modal),focusManagerModal:U(t=>t.focusManagerModal),stickIfOpen:U(t=>t.stickIfOpen),titleElementId:U(t=>t.titleElementId),descriptionElementId:U(t=>t.descriptionElementId),openOnHover:U(t=>t.openOnHover),closeDelay:U(t=>t.closeDelay),hasViewport:U(t=>t.hasViewport)},eo=class t extends Kt{static{i(this,"PopoverStore")}constructor(e,o,r=!1){let n={..._s(),...e},s=new qt;n.open&&e?.mounted===void 0&&(n.mounted=!0),n.floatingRootContext=Jt(s,o,r),super(n,{popupRef:Ve.createRef(),backdropRef:Ve.createRef(),internalBackdropRef:Ve.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Ve.createRef(),beforeContentFocusGuardRef:Ve.createRef(),stickIfOpenTimeout:new an,triggerElements:s},As)}setOpen=i((e,o)=>{let r=o.reason===H.triggerHover,n=o.reason===H.triggerPress&&o.event.detail===0,s=!e&&(o.reason===H.escapeKey||o.reason==null),l=Cn(o),d=this.select("activeTriggerId");if(!e&&o.reason===H.closePress&&o.trigger==null&&d!=null&&(o.trigger=this.context.triggerElements.getById(d)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=i(()=>{let c={open:e,openChangeReason:o.reason};Eo(c,e,o.trigger,l()),this.update(c)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),Fn.flushSync(p)):p(),n||s?this.set("instantType",n?"click":"dismiss"):o.reason===H.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)},"setOpen");static useStore(e,o){let{store:r,internalStore:n}=zt(e,(s,l)=>new t(o,s,l));return Ve.useEffect(()=>n?.disposeEffect(),[n]),r}disposeEffect=i(()=>this.context.stickIfOpenTimeout.disposeEffect(),"disposeEffect")};var Ke=R(se(),1);function jn({props:t}){let{children:e,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:s,modal:l=!1,handle:d,triggerId:p,defaultTriggerId:c=null}=t,u=eo.useStore(d?.store,{modal:l,open:r,openProp:o,activeTriggerId:c,triggerIdProp:p});To(u,o,r,c),u.useControlledProp("openProp",o),u.useControlledProp("triggerIdProp",p);let h=u.useState("open"),v=u.useState("mounted"),f=u.useState("payload"),m=mn()!=null;u.useContextCallback("onOpenChange",n),u.useContextCallback("onOpenChangeComplete",s),ko(u,h),Zt(u);let{forceUnmount:g}=Wt(h,u,()=>{u.update({stickIfOpen:!0,openChangeReason:null})});u.useSyncedValues({modal:l,nested:m}),Oe.useEffect(()=>{h||u.context.stickIfOpenTimeout.clear()},[u,h]);let b=Oe.useCallback(()=>{u.setOpen(!1,G(H.imperativeAction))},[u]);Oe.useImperativeHandle(t.actionsRef,()=>({unmount:g,close:b}),[g,b]);let x=h||v,C=Oe.useMemo(()=>({store:u}),[u]);return(0,Ke.jsxs)(xr.Provider,{value:C,children:[x&&(0,Ke.jsx)(Vs,{store:u,modal:l}),typeof e=="function"?e({payload:f}):e]})}i(jn,"PopoverRootComponent");function Kn(t){return Y(!0)?(0,Ke.jsx)(jn,{props:t}):(0,Ke.jsx)(hn,{children:(0,Ke.jsx)(jn,{props:t})})}i(Kn,"PopoverRoot");function Vs({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=jt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference??je,s=r.trigger??je,l=Oe.useMemo(()=>Te(_e,r.floating),[r.floating]);return $t(t,{activeTriggerProps:n,inactiveTriggerProps:s,popupProps:l}),null}i(Vs,"PopoverInteractions");var Le=R(D(),1);var ze=R(se(),1);var zn=Le.forwardRef(i(function(e,o){let{render:r,className:n,style:s,disabled:l=!1,nativeButton:d=!0,handle:p,payload:c,openOnHover:u=!1,delay:h=300,closeDelay:v=0,id:f,...m}=e,g=Y(!0),b=p?.store??g?.store;if(!b)throw new Error(q(74));let x=fe(f),C=b.useState("isTriggerActive",x),y=b.useState("floatingRootContext"),S=b.useState("isOpenedByTrigger",x),P=b.useState("triggerPopupId",x),E=Le.useRef(null),{registerTrigger:N,isMountedByThisTrigger:T}=Ut(x,E,b,{payload:c,disabled:l,openOnHover:u,closeDelay:v}),w=b.useState("openChangeReason"),k=b.useState("stickIfOpen"),O=b.useState("openMethod"),F=b.useState("focusManagerModal"),I=Mo(y,{enabled:!l&&y!=null&&u&&(O!=="touch"||w!==H.triggerPress),mouseOnly:!0,move:!1,handleClose:Do(),restMs:h,delay:{close:v},triggerElementRef:E,isActiveTrigger:C,isClosing:i(()=>b.select("transitionStatus")==="ending","isClosing")}),K=No(y,{enabled:y!=null,stickIfOpen:k}),B=Io(()=>b.select("open"),Q=>{b.set("openMethod",Q)}),z=b.useState("triggerProps",T),{getButtonProps:Z,buttonRef:A}=Ae({disabled:l,native:d}),V={open(Q){return Q&&w===H.triggerPress?wn.open(Q):Yt.open(Q)}},{preFocusGuardRef:L,handlePreFocusGuardFocus:te,handleFocusTargetFocus:ee}=En(b,E),J=j("button",e,{state:{disabled:l,open:S},ref:[A,o,N,E],props:[K.reference,I,z,B,{[Co]:"",id:x,"aria-haspopup":"dialog","aria-expanded":S,"aria-controls":P},m,Z],stateAttributesMapping:V});return T&&!F?(0,ze.jsxs)(Le.Fragment,{children:[(0,ze.jsx)(hr,{ref:L,onFocus:te}),(0,ze.jsx)(Le.Fragment,{children:J},x),(0,ze.jsx)(hr,{ref:b.context.triggerFocusTargetRef,onFocus:ee})]}):(0,ze.jsx)(Le.Fragment,{children:J},x)},"PopoverTrigger"));var Zn=R(D(),1);var Zo=R(D(),1);var yr=Zo.createContext(void 0);function Un(){let t=Zo.useContext(yr);if(t===void 0)throw new Error(q(45));return t}i(Un,"usePopoverPortalContext");var Cr=R(se(),1);var Wn=Zn.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:s}=Y();return s.useState("mounted")||r?(0,Cr.jsx)(yr.Provider,{value:r,children:(0,Cr.jsx)(Ro,{ref:o,...n})}):null},"PopoverPortal"));var oo=R(D(),1);var Wo=R(D(),1);var Pr=Wo.createContext(void 0);function to(){let t=Wo.useContext(Pr);if(!t)throw new Error(q(46));return t}i(to,"usePopoverPositionerContext");var co=R(se(),1);var $n=oo.forwardRef(i(function(e,o){let{render:r,className:n,style:s,anchor:l,positionMethod:d="absolute",side:p="bottom",align:c="center",sideOffset:u=0,alignOffset:h=0,collisionBoundary:v="clipping-ancestors",collisionPadding:f=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:b=!1,collisionAvoidance:x=Po,...C}=e,{store:y}=Y(),S=Un(),P=fn(),E=y.useState("floatingRootContext"),N=y.useState("mounted"),T=y.useState("open"),w=y.useState("openChangeReason"),k=y.useState("activeTriggerElement"),O=y.useState("modal"),F=y.useState("openMethod"),I=y.useState("positionerElement"),K=y.useState("instantType"),B=y.useState("transitionStatus"),z=y.useState("hasViewport"),Z=oo.useRef(null),A=ln(I,!1,!1),V=Vo({anchor:l,floatingRootContext:E,positionMethod:d,mounted:N,side:p,sideOffset:u,align:c,alignOffset:h,arrowPadding:m,collisionBoundary:v,collisionPadding:f,sticky:g,disableAnchorTracking:b,keepMounted:S,nodeId:P,collisionAvoidance:x,adaptiveOrigin:z?Ao:void 0}),L=E.useState("domReferenceElement");Ie(()=>{let J=L,Q=Z.current;if(J&&(Z.current=J),Q&&J&&J!==Q){y.set("instantType",void 0);let re=new AbortController;return A(()=>{y.set("instantType","trigger-change")},re.signal),()=>{re.abort()}}},[L,A,y]),kn(T&&O===!0&&w!==H.triggerHover,F==="touch",I,k);let te=oo.useCallback(J=>{y.set("positionerElement",J)},[y]),ee={open:T,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:K},le=Bo(e,ee,{styles:V.positionerStyles,transitionStatus:B,props:C,refs:[o,te],hidden:!N,inert:!T});return(0,co.jsxs)(Pr.Provider,{value:V,children:[N&&O===!0&&w!==H.triggerHover&&(0,co.jsx)(Lo,{ref:y.context.internalBackdropRef,inert:_o(!T),cutout:k}),(0,co.jsx)(gn,{id:P,children:le})]})},"PopoverPositioner"));var $o=R(D(),1);var He=R(D(),1);var qn=R(se(),1);var Gn=He.createContext(void 0);function Jn(){let[t,e]=He.useState(0),o=tn(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:He.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}i(Jn,"useClosePartCount");function Qn(t){let{value:e,children:o}=t;return(0,qn.jsx)(Gn.Provider,{value:e,children:o})}i(Qn,"ClosePartProvider");function Yn(){let t=He.useContext(Gn);Ie(()=>t?.register(),[t])}i(Yn,"useClosePartRegistration");var Rr=R(se(),1);var Ls={...de,...be},Xn=$o.forwardRef(i(function(e,o){let{render:r,className:n,style:s,initialFocus:l,finalFocus:d,...p}=e,{store:c}=Y(),u=to(),h=On(!0)!=null,{context:v,hasClosePart:f}=Jn(),m=c.useState("open"),g=c.useState("openMethod"),b=c.useState("instantType"),x=c.useState("transitionStatus"),C=c.useState("popupProps"),y=c.useState("titleElementId"),S=c.useState("descriptionElementId"),P=c.useState("modal"),E=c.useState("mounted"),N=c.useState("openChangeReason"),T=c.useState("activeTriggerElement"),w=c.useState("floatingRootContext"),k=w.useState("floatingId"),O=c.useState("disabled"),F=c.useState("openOnHover"),I=c.useState("closeDelay"),K=p.id??k;Ft({open:m,ref:c.context.popupRef,onComplete(){m&&c.context.onOpenChangeComplete?.(!0)}}),Oo(w,{enabled:F&&!O,closeDelay:I});let B=l===void 0?wo(c.context.popupRef):l,z=P!==!1&&f;c.useSyncedValue("focusManagerModal",z);let Z=$o.useCallback(L=>{c.set("popupElement",L)},[c]),A={open:m,side:u.side,align:u.align,instant:b,transitionStatus:x},V=j("div",e,{state:A,ref:[o,c.context.popupRef,Z],props:[C,{id:K,role:"dialog",..._e,"aria-labelledby":y,"aria-describedby":S,onKeyDown(L){h&&Fo.has(L.key)&&L.stopPropagation()}},Ho(x),p],stateAttributesMapping:Ls});return(0,Rr.jsx)(So,{context:w,openInteractionType:g,modal:z,disabled:!E||N===H.triggerHover,initialFocus:B,returnFocus:d,restoreFocus:"popup",previousFocusableElement:on(T)?T:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Rr.jsx)(Qn,{value:v,children:V})})},"PopoverPopup"));var ea=R(D(),1);var ta=ea.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,{store:d}=Y(),p=d.useState("open"),{arrowRef:c,side:u,align:h,arrowUncentered:v,arrowStyles:f}=to();return j("div",e,{state:{open:p,side:u,align:h,uncentered:v},ref:[o,c],props:[{style:f,"aria-hidden":!0},l],stateAttributesMapping:de})},"PopoverArrow"));var oa=R(D(),1);var Hs={...de,...be},ra=oa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,{store:d}=Y(),p=d.useState("open"),c=d.useState("mounted"),u=d.useState("transitionStatus"),h=d.useState("openChangeReason");return j("div",e,{state:{open:p,transitionStatus:u},ref:[d.context.backdropRef,o],props:[{role:"presentation",hidden:!c,style:{pointerEvents:h===H.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:Hs})},"PopoverBackdrop"));var na=R(D(),1);var aa=na.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,{store:d}=Y(),p=fe(l.id);return d.useSyncedValueWithCleanup("titleElementId",p),j("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var sa=R(D(),1);var ia=sa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,{store:d}=Y(),p=fe(l.id);return d.useSyncedValueWithCleanup("descriptionElementId",p),j("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var la=R(D(),1);var ca=la.forwardRef(i(function(e,o){let{render:r,className:n,style:s,disabled:l=!1,nativeButton:d=!0,...p}=e,{buttonRef:c,getButtonProps:u}=Ae({disabled:l,focusableWhenDisabled:!1,native:d}),{store:h}=Y();return Yn(),j("button",e,{ref:[o,c],props:[{onClick(f){h.setOpen(!1,G(H.closePress,f.nativeEvent))}},p,u]})},"PopoverClose"));var pa=R(D(),1);var da=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var Bs={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},ua=pa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,children:l,...d}=e,{store:p}=Y(),{side:c}=to(),u=p.useState("instantType"),{children:h,state:v}=jo({store:p,side:c,cssVars:da,children:l}),f={activationDirection:v.activationDirection,transitioning:v.transitioning,instant:u};return j("div",e,{state:f,ref:o,props:[d,{children:h}],stateAttributesMapping:Bs})},"PopoverViewport"));var po=class{static{i(this,"PopoverHandle")}constructor(){this.store=new eo}open(e){let o=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!o)throw new Error(q(80,e));this.store.setOpen(!0,G(H.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,G(H.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function ma(){return new po}i(ma,"createPopoverHandle");var pe={};dr(pe,{Backdrop:()=>ga,Close:()=>va,Description:()=>xa,Handle:()=>go,Popup:()=>Sa,Portal:()=>wa,Root:()=>Da,Title:()=>Va,Trigger:()=>La,Viewport:()=>_a,createHandle:()=>Ha});var fa=R(D(),1);var uo=R(D(),1);var qo=uo.createContext(!1),Sr=uo.createContext(void 0);function ie(t){let e=uo.useContext(Sr);if(t===!1&&e===void 0)throw new Error(q(27));return e}i(ie,"useDialogRootContext");var Fs={...de,...be},ga=fa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,forceRender:l=!1,...d}=e,{store:p}=ie(),c=p.useState("open"),u=p.useState("nested"),h=p.useState("mounted"),v=p.useState("transitionStatus");return j("div",e,{state:{open:c,transitionStatus:v},ref:[p.context.backdropRef,o],stateAttributesMapping:Fs,props:[{role:"presentation",hidden:!h,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!u})},"DialogBackdrop"));var ha=R(D(),1);var va=ha.forwardRef(i(function(e,o){let{render:r,className:n,style:s,disabled:l=!1,nativeButton:d=!0,...p}=e,{store:c}=ie(),u=c.useState("open"),{getButtonProps:h,buttonRef:v}=Ae({disabled:l,native:d}),f={disabled:l};function m(g){u&&c.setOpen(!1,G(H.closePress,g.nativeEvent))}return i(m,"handleClick"),j("button",e,{state:f,ref:[o,v],props:[{onClick:m},p,h]})},"DialogClose"));var ba=R(D(),1);var xa=ba.forwardRef(i(function(e,o){let{render:r,className:n,style:s,id:l,...d}=e,{store:p}=ie(),c=fe(l);return p.useSyncedValueWithCleanup("descriptionElementId",c),j("p",e,{ref:o,props:[{id:c},d]})},"DialogDescription"));var Pa=R(D(),1);var ya=(function(t){return t.nestedDialogs="--nested-dialogs",t})({});var Ca=(function(t){return t[t.open=Pe.open]="open",t[t.closed=Pe.closed]="closed",t[t.startingStyle=Pe.startingStyle]="startingStyle",t[t.endingStyle=Pe.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var Go=R(D(),1);var Nr=Go.createContext(void 0);function Jo(){let t=Go.useContext(Nr);if(t===void 0)throw new Error(q(26));return t}i(Jo,"useDialogPortalContext");var Ra=R(se(),1);var js={...de,...be,nestedDialogOpen(t){return t?{[Ca.nestedDialogOpen]:""}:null}},Sa=Pa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,finalFocus:l,initialFocus:d,...p}=e,{store:c}=ie(),u=c.useState("descriptionElementId"),h=c.useState("disablePointerDismissal"),v=c.useState("floatingRootContext"),f=c.useState("popupProps"),m=c.useState("modal"),g=c.useState("mounted"),b=c.useState("nested"),x=c.useState("nestedOpenDialogCount"),C=c.useState("open"),y=c.useState("openMethod"),S=c.useState("titleElementId"),P=c.useState("transitionStatus"),E=c.useState("role"),N=v.useState("floatingId"),T=p.id??N;Jo(),Ft({open:C,ref:c.context.popupRef,onComplete(){C&&c.context.onOpenChangeComplete?.(!0)}});let w=d===void 0?wo(c.context.popupRef):d,k=x>0,O=c.useStateSetter("popupElement"),I=j("div",e,{state:{open:C,nested:b,transitionStatus:P,nestedDialogOpen:k},props:[f,{id:T,"aria-labelledby":S??void 0,"aria-describedby":u??void 0,role:E,..._e,hidden:!g,onKeyDown(K){Fo.has(K.key)&&K.stopPropagation()},style:{[ya.nestedDialogs]:x}},p],ref:[o,c.context.popupRef,O],stateAttributesMapping:js});return(0,Ra.jsx)(So,{context:v,openInteractionType:y,disabled:!g,closeOnFocusOut:!h,initialFocus:w,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:I})},"DialogPopup"));var Na=R(D(),1);var mo=R(se(),1);var wa=Na.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:s}=ie(),l=s.useState("mounted"),d=s.useState("modal"),p=s.useState("open");return l||r?(0,mo.jsx)(Nr.Provider,{value:r,children:(0,mo.jsxs)(Ro,{ref:o,...n,children:[l&&d===!0&&(0,mo.jsx)(Lo,{ref:s.context.internalBackdropRef,inert:_o(!p)}),e.children]})}):null},"DialogPortal"));var Ma=R(D(),1);var ka=R(D(),1);var Me=R(D(),1);function Ea(t){let{store:e,actionsRef:o}=t,r=e.useState("open");ko(e,r),Zt(e);let{forceUnmount:n}=Wt(r,e),s=Me.useCallback(()=>{e.setOpen(!1,G(H.imperativeAction))},[e]);Me.useImperativeHandle(o,()=>({unmount:n,close:s}),[n,s])}i(Ea,"useDialogRoot");function Ta({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),s=t.useState("modal"),l=t.useState("popupElement"),d=t.useState("floatingRootContext"),[p,c]=Me.useState(0),[u,h]=Me.useState(0),v=p===0,f=jt(d,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(x){if(!t.context.outsidePressEnabledRef.current||"button"in x&&x.button!==0||"touches"in x&&x.touches.length!==1)return!1;let C=rn(x);return v&&!n?s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===C||t.context.backdropRef.current===C||io(C,l)&&!C?.hasAttribute("data-base-ui-portal"):!0:!1},escapeKey:v});Tn(r&&s===!0,l),t.useContextCallback("onNestedDialogOpen",(x,C)=>{c(x),h(C)}),t.useContextCallback("onNestedDialogClose",()=>{c(0),h(0)}),Me.useEffect(()=>(e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(p+1,u+(o?1:0)),e?.onNestedDialogClose&&!r&&e.onNestedDialogClose(),()=>{e?.onNestedDialogClose&&r&&e.onNestedDialogClose()}),[o,r,p,u,e]);let m=f.reference??je,g=f.trigger??je,b=f.floating??je;return $t(t,{activeTriggerProps:m,inactiveTriggerProps:g,popupProps:b,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}i(Ta,"DialogInteractions");var Qo=R(D(),1);var Ks={...Qt,modal:U(t=>t.modal),nested:U(t=>t.nested),nestedOpenDialogCount:U(t=>t.nestedOpenDialogCount),nestedOpenDrawerCount:U(t=>t.nestedOpenDrawerCount),disablePointerDismissal:U(t=>t.disablePointerDismissal),openMethod:U(t=>t.openMethod),descriptionElementId:U(t=>t.descriptionElementId),titleElementId:U(t=>t.titleElementId),viewportElement:U(t=>t.viewportElement),role:U(t=>t.role)},ro=class t extends Kt{static{i(this,"DialogStore")}constructor(e,o,r=!1){let n=new qt,s=zs(e);s.floatingRootContext=Jt(n,o,r),super(s,{popupRef:Qo.createRef(),backdropRef:Qo.createRef(),internalBackdropRef:Qo.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:n,onOpenChange:void 0,onOpenChangeComplete:void 0},Ks)}setOpen=i((e,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let r={open:e};Eo(r,e,o.trigger),this.update(r)},"setOpen");static useStore(e,o){return zt(e,(n,s)=>new t(o,n,s),!0).store}};function zs(t={}){return{...Gt(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}i(zs,"createInitialState");var fo=R(se(),1);function Oa(t,e="dialog"){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:s,onOpenChangeComplete:l,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:c,handle:u,triggerId:h,defaultTriggerId:v=null}=t,f=e==="drawer",m=e==="alert-dialog",g=m?!0:p,b=m||d,x=m?"alertdialog":"dialog",C=ie(!0),S={modal:g,disablePointerDismissal:b,nested:!!C,role:x},P=ro.useStore(u?.store,{open:n,openProp:r,activeTriggerId:v,triggerIdProp:h,...S});bn(()=>{let O=r===void 0&&P.state.open===!1&&n===!0?{open:!0,activeTriggerId:v}:null;m?P.update(O?{...S,...O}:S):O&&P.update(O)}),P.useControlledProp("openProp",r),P.useControlledProp("triggerIdProp",h),P.useSyncedValues(S),P.useContextCallback("onOpenChange",s),P.useContextCallback("onOpenChangeComplete",l);let E=P.useState("open"),N=P.useState("mounted"),T=P.useState("payload");Ea({store:P,actionsRef:c});let w=E||N,k=ka.useMemo(()=>({store:P}),[P]);return(0,fo.jsx)(qo.Provider,{value:!1,children:(0,fo.jsxs)(Sr.Provider,{value:k,children:[w&&(0,fo.jsx)(Ta,{store:P,parentContext:C?.store.context,isDrawer:f}),typeof o=="function"?o({payload:T}):o]})})}i(Oa,"useRenderDialogRoot");function Da(t){let e=Ma.useContext(qo)?"drawer":"dialog";return Oa(t,e)}i(Da,"DialogRoot");var Ia=R(D(),1);var wr=(function(t){return t[t.open=Pe.open]="open",t[t.closed=Pe.closed]="closed",t[t.startingStyle=Pe.startingStyle]="startingStyle",t[t.endingStyle=Pe.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var Us={...de,...be,nested(t){return t?{[wr.nested]:""}:null},nestedDialogOpen(t){return t?{[wr.nestedDialogOpen]:""}:null}},_a=Ia.forwardRef(i(function(e,o){let{render:r,className:n,style:s,children:l,...d}=e,p=Jo(),{store:c}=ie(),u=c.useState("open"),h=c.useState("nested"),v=c.useState("transitionStatus"),f=c.useState("nestedOpenDialogCount"),m=c.useState("mounted"),g=c.useStateSetter("viewportElement"),b=f>0;return j("div",e,{enabled:p||m,state:{open:u,nested:h,transitionStatus:v,nestedDialogOpen:b},ref:[o,g],stateAttributesMapping:Us,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},d]})},"DialogViewport"));var Aa=R(D(),1);var Va=Aa.forwardRef(i(function(e,o){let{render:r,className:n,style:s,id:l,...d}=e,{store:p}=ie(),c=fe(l);return p.useSyncedValueWithCleanup("titleElementId",c),j("h2",e,{ref:o,props:[{id:c},d]})},"DialogTitle"));var Yo=R(D(),1);var La=Yo.forwardRef(i(function(e,o){let{render:r,className:n,style:s,disabled:l=!1,nativeButton:d=!0,id:p,payload:c,handle:u,...h}=e,v=ie(!0),f=u?.store??v?.store;if(!f)throw new Error(q(79));let m=fe(p),g=f.useState("floatingRootContext"),b=f.useState("isOpenedByTrigger",m),x=f.useState("triggerPopupId",m),C=Yo.useRef(null),{registerTrigger:y,isMountedByThisTrigger:S}=Ut(m,C,f,{payload:c}),{getButtonProps:P,buttonRef:E}=Ae({disabled:l,native:d}),N=No(g,{enabled:g!=null}),T=Io(()=>f.select("open"),O=>{f.set("openMethod",O)}),w={disabled:l,open:b},k=f.useState("triggerProps",S);return j("button",e,{state:w,ref:[E,o,y,C],props:[N.reference,k,T,{[Co]:"",id:m,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":x},h,P],stateAttributesMapping:Yt})},"DialogTrigger"));var go=class{static{i(this,"DialogHandle")}constructor(e){this.store=e??new ro}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,G(H.imperativeAction,void 0,o))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,G(H.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,G(H.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Ha(){return new go}i(Ha,"createDialogHandle");var Se={};dr(Se,{Arrow:()=>rs,Handle:()=>ho,Popup:()=>ts,Portal:()=>Qa,Positioner:()=>Xa,Provider:()=>ns,Root:()=>Fa,Trigger:()=>Za,Viewport:()=>is,createHandle:()=>ls});var Re=R(D(),1);var Xo=R(D(),1);var Er=Xo.createContext(void 0);function xe(t){let e=Xo.useContext(Er);if(e===void 0&&!t)throw new Error(q(72));return e}i(xe,"useTooltipRootContext");var Ba=R(D(),1);var Zs={...Qt,disabled:U(t=>t.disabled),instantType:U(t=>t.instantType),isInstantPhase:U(t=>t.isInstantPhase),trackCursorAxis:U(t=>t.trackCursorAxis),disableHoverablePopup:U(t=>t.disableHoverablePopup),lastOpenChangeReason:U(t=>t.openChangeReason),closeOnClick:U(t=>t.closeOnClick),closeDelay:U(t=>t.closeDelay),hasViewport:U(t=>t.hasViewport)},no=class t extends Kt{static{i(this,"TooltipStore")}constructor(e,o,r=!1){let n=new qt,s={...Ws(),...e};s.floatingRootContext=Jt(n,o,r),super(s,{popupRef:Ba.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},Zs)}setOpen=i((e,o)=>{Pn(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,G(H.triggerPress,e))}static useStore(e,o){return zt(e,(n,s)=>new t(o,n,s)).store}};function Ws(){return{...Gt(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}i(Ws,"createInitialState");var er=R(se(),1);var Fa=xn(i(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:s=!1,trackCursorAxis:l="none",actionsRef:d,onOpenChange:p,onOpenChangeComplete:c,handle:u,triggerId:h,defaultTriggerId:v=null,children:f}=e,m=no.useStore(u?.store,{open:r,openProp:n,activeTriggerId:v,triggerIdProp:h});To(m,n,r,v),m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",h),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",c);let g=m.useState("open"),b=!o&&g,x=m.useState("activeTriggerId"),C=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:s}),m.useSyncedValue("disabled",o),Zt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:P}=Wt(b,m),E=m.useState("isInstantPhase"),N=m.useState("instantType"),T=m.useState("lastOpenChangeReason"),w=Re.useRef(null);Ie(()=>{g&&o&&m.setOpen(!1,G(H.disabled))},[g,o,m]),Ie(()=>{P==="ending"&&T===H.none||P!=="ending"&&E?(N!=="delay"&&(w.current=N),m.set("instantType","delay")):w.current!==null&&(m.set("instantType",w.current),w.current=null)},[P,E,T,N,m]),Ie(()=>{b&&x==null&&m.set("payload",void 0)},[m,x,b]);let k=Re.useCallback(()=>{m.setOpen(!1,G(H.imperativeAction))},[m]);Re.useImperativeHandle(d,()=>({unmount:S,close:k}),[S,k]);let O=b||C||!o&&l!=="none";return(0,er.jsxs)(Er.Provider,{value:m,children:[O&&(0,er.jsx)($s,{store:m,disabled:o,trackCursorAxis:l}),typeof f=="function"?f({payload:y}):f]})},"TooltipRoot"));function $s({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=jt(r,{enabled:!e,referencePress:i(()=>t.select("closeOnClick"),"referencePress")}),s=vn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=Re.useMemo(()=>Te(s.reference,n.reference),[s.reference,n.reference]),d=Re.useMemo(()=>Te(s.trigger,n.trigger),[s.trigger,n.trigger]),p=Re.useMemo(()=>Te(_e,s.floating,n.floating),[s.floating,n.floating]);return $t(t,{activeTriggerProps:l,inactiveTriggerProps:d,popupProps:p}),null}i($s,"TooltipInteractions");var or=R(D(),1);var tr=R(D(),1);var Tr=tr.createContext(void 0);function ja(){return tr.useContext(Tr)}i(ja,"useTooltipProviderContext");var Ka=(function(t){return t[t.popupOpen=Nn.popupOpen]="popupOpen",t.triggerDisabled="data-trigger-disabled",t})({});var Ua="data-base-ui-tooltip-trigger";function za(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(yo(n))return n}}let e=t.target;return yo(e)?e:null}i(za,"getTargetElement");function qs(t){let e=t;for(;e;){if(e.hasAttribute(Ua))return e;let o=e.parentElement;if(o){e=o;continue}let r=e.getRootNode();e="host"in r&&yo(r.host)?r.host:null}return null}i(qs,"closestEnabledTooltipTrigger");var Za=yn(i(function(e,o){let{render:r,className:n,style:s,handle:l,payload:d,disabled:p,delay:c,closeOnClick:u=!0,closeDelay:h,id:v,...f}=e,m=xe(!0),g=l?.store??m;if(!g)throw new Error(q(82));let b=fe(v),x=g.useState("isTriggerActive",b),C=g.useState("isOpenedByTrigger",b),y=g.useState("floatingRootContext"),S=or.useRef(null),P=c??600,E=h??0,{registerTrigger:N,isMountedByThisTrigger:T}=Ut(b,S,g,{payload:d,closeOnClick:u,closeDelay:E}),w=ja(),{delayRef:k,isInstantPhase:O,hasProvider:F}=dn(y,{open:C}),I=Sn(y);g.useSyncedValue("isInstantPhase",O);let K=g.useState("disabled"),B=p??K,z=pn(B),Z=g.useState("trackCursorAxis"),A=g.useState("disableHoverablePopup"),V=or.useRef(!1),L=sn(),te=or.useRef(void 0);function ee(){let $=w?.delay,ne=typeof k.current=="object"?k.current.open:void 0,ae=P;return F&&(ne!==0?ae=c??$??P:ae=0),ae}i(ee,"getOpenDelay");function le($){let ne=S.current;if(!ne||!$)return!1;let ae=qs($);return ae!==null&&ae!==ne&&io(ne,ae)}i(le,"isEnabledNestedTriggerTarget");function J($){let ne=le($);return V.current=ne,ne&&(I.openChangeTimeout.clear(),I.restTimeout.clear(),I.restTimeoutPending=!1,L.clear()),ne}i(J,"detectNestedTriggerHover");let Q=Mo(y,{enabled:!B,mouseOnly:!0,move:!1,handleClose:!A&&Z!=="both"?Do():null,restMs:ee,delay(){let $=typeof k.current=="object"?k.current.close:void 0,ne=E;return h==null&&F&&(ne=$),{close:ne}},triggerElementRef:S,isActiveTrigger:x,isClosing:i(()=>g.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!V.current}}),re=Rn(y,{enabled:!B}).reference,ue=i($=>{let ne=V.current,ae=za($),Ne=J(ae),ye=S.current,De=ye&&ae&&io(ye,ae);if(Ne&&g.select("open")&&g.select("lastOpenChangeReason")===H.triggerHover){g.setOpen(!1,G(H.triggerHover,$));return}if(ne&&!Ne&&De&&!z.current&&!g.select("open")&&ye&&nn(te.current)){let we=i(()=>{!V.current&&!z.current&&!g.select("open")&&g.setOpen(!0,G(H.triggerHover,$,ye))},"open"),Ee=ee();Ee===0?(L.clear(),we()):L.start(Ee,we)}},"handleNestedTriggerHover"),me=g.useState("triggerProps",T);return j("button",e,{state:{open:C},ref:[o,N,S],props:[Q,re,T||Z!=="none"?me:void 0,{onMouseOver($){ue($.nativeEvent)},onFocus($){le(za($.nativeEvent))&&$.preventBaseUIHandler()},onMouseLeave(){V.current=!1,L.clear(),te.current=void 0},onPointerEnter($){te.current=$.pointerType},onPointerDown($){te.current=$.pointerType,g.set("closeOnClick",u),u&&!g.select("open")&&g.cancelPendingOpen($.nativeEvent)},onClick($){u&&!g.select("open")&&g.cancelPendingOpen($.nativeEvent)},id:b,[Ka.triggerDisabled]:B?"":void 0,[Ua]:B?void 0:""},f],stateAttributesMapping:Yt})},"TooltipTrigger"));var Ja=R(D(),1);var rr=R(D(),1);var kr=rr.createContext(void 0);function Wa(){let t=rr.useContext(kr);if(t===void 0)throw new Error(q(70));return t}i(Wa,"useTooltipPortalContext");var nr=R(D(),1),$a=R(Fr(),1);var qa=R(se(),1);var Ga=nr.forwardRef(i(function(e,o){let{children:r,container:n,className:s,render:l,style:d,...p}=e,{portalNode:c,portalSubtree:u}=un({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!c?null:(0,qa.jsxs)(nr.Fragment,{children:[u,c&&$a.createPortal(r,c)]})},"FloatingPortalLite"));var Or=R(se(),1);var Qa=Ja.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e;return xe().useState("mounted")||r?(0,Or.jsx)(kr.Provider,{value:r,children:(0,Or.jsx)(Ga,{ref:o,...n})}):null},"TooltipPortal"));var sr=R(D(),1);var ar=R(D(),1);var Mr=ar.createContext(void 0);function ao(){let t=ar.useContext(Mr);if(t===void 0)throw new Error(q(71));return t}i(ao,"useTooltipPositionerContext");var Ya=R(se(),1);var Xa=sr.forwardRef(i(function(e,o){let{render:r,className:n,anchor:s,positionMethod:l="absolute",side:d="top",align:p="center",sideOffset:c=0,alignOffset:u=0,collisionBoundary:h="clipping-ancestors",collisionPadding:v=5,arrowPadding:f=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:b=Po,style:x,...C}=e,y=xe(),S=Wa(),P=y.useState("open"),E=y.useState("mounted"),N=y.useState("trackCursorAxis"),T=y.useState("disableHoverablePopup"),w=y.useState("floatingRootContext"),k=y.useState("instantType"),O=y.useState("transitionStatus"),F=y.useState("hasViewport"),I=Vo({anchor:s,positionMethod:l,floatingRootContext:w,mounted:E,side:d,sideOffset:c,align:p,alignOffset:u,collisionBoundary:h,collisionPadding:v,sticky:m,arrowPadding:f,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:b,adaptiveOrigin:F?Ao:void 0}),K=sr.useMemo(()=>({open:P,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:N!=="none"?"tracking-cursor":k}),[P,I.side,I.align,I.anchorHidden,N,k]),B=Bo(e,K,{styles:I.positionerStyles,transitionStatus:O,props:C,refs:[o,y.useStateSetter("positionerElement")],hidden:!E,inert:!P||N==="both"||T});return(0,Ya.jsx)(Mr.Provider,{value:I,children:B})},"TooltipPositioner"));var es=R(D(),1);var Gs={...de,...be},ts=es.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,d=xe(),{side:p,align:c}=ao(),u=d.useState("open"),h=d.useState("instantType"),v=d.useState("transitionStatus"),f=d.useState("popupProps"),m=d.useState("floatingRootContext"),g=d.useState("disabled"),b=d.useState("closeDelay");Ft({open:u,ref:d.context.popupRef,onComplete(){u&&d.context.onOpenChangeComplete?.(!0)}}),Oo(m,{enabled:!g,closeDelay:b});let x=d.useStateSetter("popupElement");return j("div",e,{state:{open:u,side:p,align:c,instant:h,transitionStatus:v},ref:[o,d.context.popupRef,x],props:[f,Ho(v),l],stateAttributesMapping:Gs})},"TooltipPopup"));var os=R(D(),1);var rs=os.forwardRef(i(function(e,o){let{render:r,className:n,style:s,...l}=e,d=xe(),{arrowRef:p,side:c,align:u,arrowUncentered:h,arrowStyles:v}=ao(),f=d.useState("open"),m=d.useState("instantType");return j("div",e,{state:{open:f,side:c,align:u,uncentered:h,instant:m},ref:[o,p],props:[{style:v,"aria-hidden":!0},l],stateAttributesMapping:de})},"TooltipArrow"));var Dr=R(D(),1);var Ir=R(se(),1);var ns=i(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,s=Dr.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),l=Dr.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Ir.jsx)(Tr.Provider,{value:s,children:(0,Ir.jsx)(cn,{delay:l,timeoutMs:n,children:e.children})})},"TooltipProvider");var ss=R(D(),1);var as=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var Js={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},is=ss.forwardRef(i(function(e,o){let{render:r,className:n,style:s,children:l,...d}=e,p=xe(),c=ao(),u=p.useState("instantType"),{children:h,state:v}=jo({store:p,side:c.side,cssVars:as,children:l}),f={activationDirection:v.activationDirection,transitioning:v.transitioning,instant:u};return j("div",e,{state:f,ref:o,props:[d,{children:h}],stateAttributesMapping:Js})},"TooltipViewport"));var ho=class{static{i(this,"TooltipHandle")}constructor(){this.store=new no}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!o)throw new Error(q(81,e));this.store.setOpen(!0,G(H.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,G(H.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function ls(){return new ho}i(ls,"createTooltipHandle");var cs=R(ur(),1);var ds=R(se(),1);var Qs=i((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?Yr:Qr(e,o),"p"),ps=i(t=>{let e=(0,cs.c)(7),{catalogs:o,children:r,i18n:n,locale:s}=t,l;e[0]!==o||e[1]!==n||e[2]!==s?(l=Qs(n,s,o),e[0]=o,e[1]=n,e[2]=s,e[3]=l):l=e[3];let d=l,p;return e[4]!==r||e[5]!==d?(p=(0,ds.jsx)(Xr,{value:d,children:r}),e[4]=r,e[5]=d,e[6]=p):p=e[6],p},"S");var Ar=R(ur(),1);var Fe=R(D(),1);var oe=R(se(),1);var _r="lunora:command-palette",us=i(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(_r))},"re"),Ys=i(t=>{let e=(0,Ar.c)(18),{active:o,index:r,item:n,onActivate:s,onSelect:l}=t,d;e[0]!==n||e[1]!==l?(d=i(()=>{l(n)},"s"),e[0]=n,e[1]=l,e[2]=d):d=e[2];let p=d,c;e[3]!==r||e[4]!==s?(c=i(()=>{s(r)},"c"),e[3]=r,e[4]=s,e[5]=c):c=e[5];let u=c,h=o?"bg-accent text-accent-foreground":"text-foreground",v;e[6]!==h?(v=W("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",h),e[6]=h,e[7]=v):v=e[7];let f;e[8]!==n.label?(f=(0,oe.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=f):f=e[9];let m;e[10]!==n.group?(m=(0,oe.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.group,e[11]=m):m=e[11];let g;return e[12]!==p||e[13]!==u||e[14]!==v||e[15]!==f||e[16]!==m?(g=(0,oe.jsx)("li",{children:(0,oe.jsxs)("button",{className:v,onClick:p,onMouseEnter:u,type:"button",children:[f,m]})}),e[12]=p,e[13]=u,e[14]=v,e[15]=f,e[16]=m,e[17]=g):g=e[17],g},"q"),Xs=i((t,e)=>{let o=e.trim().toLowerCase();return o===""?t:t.filter(r=>r.label.toLowerCase().includes(o)||r.group.toLowerCase().includes(o))},"G"),ms=i(t=>{let e=(0,Ar.c)(39),{items:o}=t,r=ge(),n=so(),[s,l]=(0,Fe.useState)(!1),[d,p]=(0,Fe.useState)(""),[c,u]=(0,Fe.useState)(0),h=(0,Fe.useRef)(null),v,f;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=i(()=>{let A=i(L=>{(L.metaKey||L.ctrlKey)&&L.key.toLowerCase()==="k"&&(L.preventDefault(),l(!0))},"o"),V=i(()=>{l(!0)},"r");return globalThis.addEventListener("keydown",A),globalThis.addEventListener(_r,V),()=>{globalThis.removeEventListener("keydown",A),globalThis.removeEventListener(_r,V)}},"i"),f=[],e[0]=v,e[1]=f):(v=e[0],f=e[1]),(0,Fe.useEffect)(v,f);let m;e[2]!==o||e[3]!==d?(m=Xs(o,d),e[2]=o,e[3]=d,e[4]=m):m=e[4];let g=m,b;e[5]===Symbol.for("react.memo_cache_sentinel")?(b=i(A=>{l(A),A||(p(""),u(0))},"T"),e[5]=b):b=e[5];let x=b,C;e[6]!==n?(C=i(A=>{x(!1),Xt(n({to:A.to}))},"D"),e[6]=n,e[7]=C):C=e[7];let y=C,S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i(A=>{p(A.target.value),u(0)},"A"),e[8]=S):S=e[8];let P=S,E;e[9]!==c||e[10]!==g||e[11]!==y?(E=i(A=>{e:switch(A.key){case"ArrowDown":{A.preventDefault(),u(V=>g.length===0?0:(V+1)%g.length);break e}case"ArrowUp":{A.preventDefault(),u(V=>g.length===0?0:(V-1+g.length)%g.length);break e}case"Enter":{A.preventDefault();let V=g[c];V!==void 0&&y(V);break e}}},"j"),e[9]=c,e[10]=g,e[11]=y,e[12]=E):E=e[12];let N=E,T;e[13]===Symbol.for("react.memo_cache_sentinel")?(T=(0,oe.jsx)(pe.Backdrop,{className:"fixed inset-0 z-50 bg-black/40 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),e[13]=T):T=e[13];let w;e[14]!==r?(w=r("Command palette"),e[14]=r,e[15]=w):w=e[15];let k;e[16]!==w?(k=(0,oe.jsx)(pe.Title,{className:"sr-only",children:w}),e[16]=w,e[17]=k):k=e[17];let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O=(0,oe.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,oe.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,oe.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[18]=O):O=e[18];let F;e[19]!==r?(F=r("Search\u2026"),e[19]=r,e[20]=F):F=e[20];let I;e[21]!==N||e[22]!==d||e[23]!==F?(I=(0,oe.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[O,(0,oe.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:P,onKeyDown:N,placeholder:F,ref:h,type:"text",value:d})]}),e[21]=N,e[22]=d,e[23]=F,e[24]=I):I=e[24];let K;e[25]!==c||e[26]!==g||e[27]!==y||e[28]!==r?(K=g.length===0?(0,oe.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):g.map((A,V)=>(0,oe.jsx)(Ys,{active:V===c,index:V,item:A,onActivate:u,onSelect:y},A.to)),e[25]=c,e[26]=g,e[27]=y,e[28]=r,e[29]=K):K=e[29];let B;e[30]!==K?(B=(0,oe.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:K}),e[30]=K,e[31]=B):B=e[31];let z;e[32]!==k||e[33]!==I||e[34]!==B?(z=(0,oe.jsxs)(pe.Portal,{children:[T,(0,oe.jsxs)(pe.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[k,I,B]})]}),e[32]=k,e[33]=I,e[34]=B,e[35]=z):z=e[35];let Z;return e[36]!==s||e[37]!==z?(Z=(0,oe.jsx)(pe.Root,{onOpenChange:x,open:s,children:z}),e[36]=s,e[37]=z,e[38]=Z):Z=e[38],Z},"le");var xs="(prefers-color-scheme: dark)",ys=i(()=>{try{return globalThis.localStorage}catch{return}},"Ot"),ei=i(t=>t==="system"||t==="light"||t==="dark","Sa"),Cs=i(()=>globalThis.matchMedia,"qt"),Ps="lunora-studio-theme",Vr=["system","light","dark"],ti=i((t="system")=>{try{let e=ys()?.getItem(Ps);return ei(e)?e:t}catch{return t}},"Ma"),fs=i(t=>{let e=ys();if(e!==void 0)try{e.setItem(Ps,t)}catch{}},"Ct"),oi=i(()=>{try{return Cs()?.(xs).matches?"dark":"light"}catch{return"light"}},"Ca"),ri=i((t,e)=>t==="system"?e:t,"_a"),ni=i(t=>{let e;try{e=Cs()?.(xs)}catch{e=void 0}if(e===void 0)return()=>{};let o=i(r=>{t(r.matches?"dark":"light")},"a");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"La"),Br=(0,M.createContext)(null),ai=i(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,M.useState)(()=>ti(e)),[n,s]=(0,M.useState)(()=>oi());(0,M.useEffect)(()=>ni(s),[]);let l=i(p=>{fs(p),r(p)},"i"),d={cycleTheme:i(()=>{r(p=>{let c=Vr[(Vr.indexOf(p)+1)%Vr.length]??p;return fs(c),c})},"cycleTheme"),resolvedTheme:ri(o,n),setTheme:l,systemTheme:n,theme:o};return(0,a.jsx)(Br,{value:d,children:t})},"$a"),si=i(t=>{let e=(0,_.c)(3),{children:o}=t,r=(0,M.use)(Br),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,a.jsx)(ai,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"Pa"),ii=i(()=>{let t=(0,M.use)(Br);if(t===null)throw new pr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"Ta");function Bg({delay:t=0,...e}){return(0,a.jsx)(Se.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}i(Bg,"hn");function li(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Se.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}i(li,"Aa");function ci(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Se.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(ci,"za");function di({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:s,...l}){return(0,a.jsx)(Se.Portal,{children:(0,a.jsx)(Se.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,a.jsxs)(Se.Popup,{"data-slot":"tooltip-content",className:W("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-md data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...l,children:[s,(0,a.jsx)(Se.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-md bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}i(di,"Ea");var pi=i(t=>{let e=(0,_.c)(5),{className:o}=t,r;e[0]!==o?(r=W("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=n):n=e[2];let s;return e[3]!==r?(s=(0,a.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=s):s=e[4],s},"Ra"),Rs="lunora.studio.rulesBannerDismissed",ui=i(()=>{try{return globalThis.localStorage.getItem(Rs)==="1"}catch{return!1}},"Ha"),mi=i(()=>{try{globalThis.localStorage.setItem(Rs,"1")}catch{}},"Ia"),fi=i(()=>{let t=(0,_.c)(18),e=ge(),[o,r]=(0,M.useState)(gi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i(()=>{r(!0),mi()},"n"),t[0]=n):n=t[0];let s=n;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=l):l=t[1];let d;t[2]!==e?(d=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=d):d=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let c;t[5]!==e?(c=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=c):c=t[6];let u;t[7]!==d||t[8]!==c?(u=(0,a.jsxs)("span",{children:[d," ",p," ",c]}),t[7]=d,t[8]=c,t[9]=u):u=t[9];let h;t[10]!==e?(h=e("Dismiss"),t[10]=e,t[11]=h):h=t[11];let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=v):v=t[12];let f;t[13]!==h?(f=(0,a.jsx)("button",{"aria-label":h,className:"ms-auto flex size-5 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent","data-testid":"dash-app-rules-banner-dismiss",onClick:s,type:"button",children:v}),t[13]=h,t[14]=f):f=t[14];let m;return t[15]!==u||t[16]!==f?(m=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[l,u,f]}),t[15]=u,t[16]=f,t[17]=m):m=t[17],m},"Ka");function gi(){return ui()}i(gi,"Va");function Ss(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Be.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ss,"Wt");function Ns(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Be.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ns,"jt");function ws({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:s=6,...l}){return(0,a.jsx)(Be.Portal,{keepMounted:r,children:(0,a.jsx)(Be.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:s,children:(0,a.jsx)(Be.Popup,{className:W("z-50 w-72 origin-(--transform-origin) rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o),"data-slot":"popover-content",...l})})})}i(ws,"Ft");var Lr=768;function hi(){let t=(0,_.c)(2),[e,o]=(0,M.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=i(()=>{let s=globalThis.matchMedia(`(max-width: ${Lr-1}px)`),l=i(()=>{o(globalThis.innerWidth<Lr)},"i");return s.addEventListener("change",l),o(globalThis.innerWidth<Lr),()=>{s.removeEventListener("change",l)}},"r"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,M.useEffect)(r,n),!!e}i(hi,"Za");function vi(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(pe.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}i(vi,"Oa");function bi(t){let e=(0,_.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(pe.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}i(bi,"qa");function xi(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)(pe.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(xi,"Ba");function yi({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,a.jsxs)(bi,{children:[(0,a.jsx)(xi,{}),(0,a.jsxs)(pe.Popup,{"data-slot":"sheet-content","data-side":o,className:W("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...n,children:[e,r&&(0,a.jsxs)(pe.Close,{"data-slot":"sheet-close",render:(0,a.jsx)(br,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,a.jsx)(vr,{icon:Mn,strokeWidth:2}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}i(yi,"Da");function Ci(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Ci,"Wa");function Pi(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)(pe.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Pi,"ja");function Ri(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)(pe.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Ri,"Fa");var Si="sidebar_state",Ni=3600*24*7,wi="16rem",Ei="18rem",Ti="3rem",ki="b",Es=Ce.createContext(null);function ir(){let t=Ce.useContext(Es);if(!t)throw new pr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}i(ir,"pt");function Oi({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:s,...l}){let d=hi(),[p,c]=Ce.useState(!1),[u,h]=Ce.useState(t),v=e??u,f=i(x=>{let C=typeof x=="function"?x(v):x;o?o(C):h(C),document.cookie=`${Si}=${C}; path=/; max-age=${Ni}`},"h"),m=i(()=>d?c(x=>!x):f(x=>!x),"f"),g=Ce.useEffectEvent(()=>{m()});Ce.useEffect(()=>{let x=i(C=>{C.key===ki&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),g())},"m");return globalThis.addEventListener("keydown",x),()=>globalThis.removeEventListener("keydown",x)},[]);let b={state:v?"expanded":"collapsed",open:v,setOpen:f,isMobile:d,openMobile:p,setOpenMobile:c,toggleSidebar:m};return(0,a.jsx)(Es.Provider,{value:b,children:(0,a.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":wi,"--sidebar-width-icon":Ti,...n},className:W("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:s})})}i(Oi,"er");function Mi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:s,...l}){let{isMobile:d,state:p,openMobile:c,setOpenMobile:u}=ir();return o==="none"?(0,a.jsx)("div",{"data-slot":"sidebar",className:W("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:n}):d?(0,a.jsx)(vi,{open:c,onOpenChange:u,...l,children:(0,a.jsxs)(yi,{dir:s,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ei},side:t,children:[(0,a.jsxs)(Ci,{className:"sr-only",children:[(0,a.jsx)(Pi,{children:"Sidebar"}),(0,a.jsx)(Ri,{children:"Displays the mobile sidebar."})]}),(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,a.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,a.jsx)("div",{"data-slot":"sidebar-gap",className:W("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,a.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:W("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...l,children:(0,a.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:n})})]})}i(Mi,"tr");function Di(t){let e=(0,_.c)(15),o,r,n;e[0]!==t?({className:o,onClick:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let{toggleSidebar:s}=ir(),l;e[4]!==o?(l=W(o),e[4]=o,e[5]=l):l=e[5];let d;e[6]!==r||e[7]!==s?(d=i(h=>{r?.(h),s()},"l"),e[6]=r,e[7]=s,e[8]=d):d=e[8];let p,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(vr,{icon:Dn,strokeWidth:2,className:"rtl:rotate-180"}),c=(0,a.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=c):(p=e[9],c=e[10]);let u;return e[11]!==n||e[12]!==l||e[13]!==d?(u=(0,a.jsxs)(br,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:d,...n,children:[p,c]}),e[11]=n,e[12]=l,e[13]=d,e[14]=u):u=e[14],u}i(Di,"ar");function Ii(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Ii,"rr");function _i(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(_i,"sr");function Ai(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Ai,"nr");function Vi(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Vi,"or");function Li(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Li,"ir");function Hi(t){let e=(0,_.c)(10),o,r,n,s;if(e[0]!==t){let{className:p,render:c,...u}=t;o=c,s=fr,r="div",n=Te({className:W("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s}else o=e[1],r=e[2],n=e[3],s=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=l):l=e[5];let d;return e[6]!==o||e[7]!==r||e[8]!==n?(d={defaultTagName:r,props:n,render:o,state:l},e[6]=o,e[7]=r,e[8]=n,e[9]=d):d=e[9],s(d)}i(Hi,"lr");function Bi(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(Bi,"dr");function gs(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(gs,"_t");function hs(t){let e=(0,_.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=W("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let s;return e[5]!==r||e[6]!==n?(s=(0,a.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=s):s=e[7],s}i(hs,"Lt");var Fi=en("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-none p-2 text-start text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-xs",sm:"h-7 text-xs",lg:"h-12 text-xs group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ts({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:s,...l}){let{isMobile:d,state:p}=ir(),c=fr({defaultTagName:"button",props:Te({className:W(Fi({variant:o,size:r}),s)},l),render:n?(0,a.jsx)(ci,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,a.jsxs)(li,{children:[c,(0,a.jsx)(di,{side:"right",align:"center",hidden:p!=="collapsed"||d,...n})]})):c}i(Ts,"Qt");var ji=i(t=>t.replace("__lunora_admin__:",""),"ur"),Ki=i(()=>(0,M.useSyncExternalStore)(lo.subscribe,lo.getSnapshot,lo.getSnapshot),"hr"),zi=i(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","mr"),Ui=i(t=>{let e=(0,_.c)(56),{entry:o,focused:r}=t,n=ge(),s;e[0]!==r?(s=i(F=>{F!==null&&r&&F.scrollIntoView({block:"nearest"})},"o"),e[0]=r,e[1]=s):s=e[1];let l=s,d;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(d=i(()=>{In(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"l"),e[2]=o.functionPath,e[3]=o.shardKey,e[4]=o.summary,e[5]=d):d=e[5];let p=d,c=r&&"bg-accent ring-1 ring-inset ring-primary/40",u;e[6]!==c?(u=W("border-b border-border/60 last:border-b-0",c),e[6]=c,e[7]=u):u=e[7];let h;e[8]!==o.status?(h=zi(o.status),e[8]=o.status,e[9]=h):h=e[9];let v=o.status==="pending"?"\u2026":o.status,f;e[10]!==h||e[11]!==v?(f=(0,a.jsx)(Bt,{className:"mt-px shrink-0",variant:h,children:v}),e[10]=h,e[11]=v,e[12]=f):f=e[12];let m;e[13]!==o.functionPath?(m=ji(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let g;e[15]!==m?(g=(0,a.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=g):g=e[16];let b;e[17]!==o.kind||e[18]!==n?(b=o.kind==="subscription"&&(0,a.jsx)(Bt,{className:"shrink-0",variant:"outline",children:n("live")}),e[17]=o.kind,e[18]=n,e[19]=b):b=e[19];let x;e[20]!==o.summary?(x=o.summary!==""&&(0,a.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=x):x=e[21];let C;e[22]!==o.shardKey?(C=o.shardKey!==""&&(0,a.jsx)("span",{className:"font-mono",children:o.shardKey}),e[22]=o.shardKey,e[23]=C):C=e[23];let y;e[24]!==o.resultCount||e[25]!==n?(y=o.resultCount!==void 0&&(0,a.jsx)("span",{children:n("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=n,e[26]=y):y=e[26];let S;e[27]!==o.pushes||e[28]!==n?(S=o.pushes!==void 0&&o.pushes>0&&(0,a.jsx)("span",{children:n("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=n,e[29]=S):S=e[29];let P;e[30]!==o.durationMs?(P=o.durationMs!==void 0&&(0,a.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=P):P=e[31];let E;e[32]!==n?(E=n("Copy"),e[32]=n,e[33]=E):E=e[33];let N;e[34]!==p||e[35]!==E?(N=(0,a.jsx)("button",{"aria-label":E,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:p,type:"button",children:"\u29C9"}),e[34]=p,e[35]=E,e[36]=N):N=e[36];let T;e[37]!==C||e[38]!==y||e[39]!==S||e[40]!==P||e[41]!==N?(T=(0,a.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[C,y,S,P,N]}),e[37]=C,e[38]=y,e[39]=S,e[40]=P,e[41]=N,e[42]=T):T=e[42];let w;e[43]!==b||e[44]!==x||e[45]!==T||e[46]!==f||e[47]!==g?(w=(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[f,g,b,x,T]}),e[43]=b,e[44]=x,e[45]=T,e[46]=f,e[47]=g,e[48]=w):w=e[48];let k;e[49]!==o.error?(k=o.error!==void 0&&(0,a.jsx)("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:o.error}),e[49]=o.error,e[50]=k):k=e[50];let O;return e[51]!==l||e[52]!==w||e[53]!==k||e[54]!==u?(O=(0,a.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[w,k]}),e[51]=l,e[52]=w,e[53]=k,e[54]=u,e[55]=O):O=e[55],O},"pr"),Zi=i(t=>{let e=(0,_.c)(62),{focusSeq:o,onClose:r,onShownChange:n,shown:s}=t,l=ge(),d=Ki(),[p,c]=(0,M.useState)(""),u;if(e[0]!==d||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==n||e[5]!==s||e[6]!==l){let h=p.trim().toLowerCase(),v=d.filter(L=>(s==="errors"?L.status==="error":!0)&&(h===""||`${L.functionPath} ${L.summary} ${L.shardKey}`.toLowerCase().includes(h))).toReversed(),f;e[8]!==d?(f=d.filter(Wi),e[8]=d,e[9]=f):f=e[9];let m=f.length,g;e[10]!==l?(g=l("Operation console"),e[10]=l,e[11]=g):g=e[11];let b;e[12]!==l?(b=l("Operation console"),e[12]=l,e[13]=b):b=e[13];let x;e[14]!==b?(x=(0,a.jsx)("span",{className:"text-xs font-medium",children:b}),e[14]=b,e[15]=x):x=e[15];let C;e[16]!==d.length||e[17]!==l?(C=l("{count} calls",{count:d.length}),e[16]=d.length,e[17]=l,e[18]=C):C=e[18];let y;e[19]!==C?(y=(0,a.jsx)(Bt,{variant:"secondary",children:C}),e[19]=C,e[20]=y):y=e[20];let S;e[21]!==m||e[22]!==l?(S=m>0&&(0,a.jsx)(Bt,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=S):S=e[23];let P=s==="errors",E=s==="errors"&&"bg-accent",N;e[24]!==E?(N=W("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",E),e[24]=E,e[25]=N):N=e[25];let T;e[26]!==n||e[27]!==s?(T=i(()=>{n(s==="errors"?"all":"errors")},"L"),e[26]=n,e[27]=s,e[28]=T):T=e[28];let w;e[29]!==l?(w=l("Errors"),e[29]=l,e[30]=w):w=e[30];let k;e[31]!==N||e[32]!==T||e[33]!==w||e[34]!==P?(k=(0,a.jsx)("button",{"aria-pressed":P,className:N,"data-testid":"oc-filter-errors",onClick:T,type:"button",children:w}),e[31]=N,e[32]=T,e[33]=w,e[34]=P,e[35]=k):k=e[35];let O;e[36]!==l?(O=l("Filter"),e[36]=l,e[37]=O):O=e[37];let F;e[38]===Symbol.for("react.memo_cache_sentinel")?(F=i(L=>{c(L.target.value)},"R"),e[38]=F):F=e[38];let I;e[39]!==l?(I=l("Filter"),e[39]=l,e[40]=I):I=e[40];let K;e[41]!==p||e[42]!==O||e[43]!==I?(K=(0,a.jsx)(gr,{"aria-label":O,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:F,placeholder:I,value:p}),e[41]=p,e[42]=O,e[43]=I,e[44]=K):K=e[44];let B;e[45]!==l?(B=l("Clear"),e[45]=l,e[46]=B):B=e[46];let z;e[47]!==B?(z=(0,a.jsx)("button",{className:"ms-auto rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-clear",onClick:$i,type:"button",children:B}),e[47]=B,e[48]=z):z=e[48];let Z;e[49]!==l?(Z=l("Hide"),e[49]=l,e[50]=Z):Z=e[50];let A;e[51]!==r||e[52]!==Z?(A=(0,a.jsx)("button",{"aria-label":Z,className:"rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-close",onClick:r,type:"button",children:"\u2715"}),e[51]=r,e[52]=Z,e[53]=A):A=e[53];let V;e[54]!==k||e[55]!==K||e[56]!==z||e[57]!==A||e[58]!==x||e[59]!==y||e[60]!==S?(V=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[x,y,S,k,K,z,A]}),e[54]=k,e[55]=K,e[56]=z,e[57]=A,e[58]=x,e[59]=y,e[60]=S,e[61]=V):V=e[61],u=(0,a.jsxs)("section",{"aria-label":g,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[V,v.length===0?(0,a.jsx)("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):(0,a.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:v.map(L=>(0,a.jsx)(Ui,{entry:L,focused:L.seq===o},L.seq))})]}),e[0]=d,e[1]=o,e[2]=p,e[3]=r,e[4]=n,e[5]=s,e[6]=l,e[7]=u}else u=e[7];return u},"fr");function Wi(t){return t.status==="error"}i(Wi,"gr");function $i(){lo.clear()}i($i,"br");var qi=i(()=>{let t=(0,_.c)(310),e=ge(),o;t[0]!==e?(o=e("Health score"),t[0]=e,t[1]=o):o=t[1];let r;t[2]!==e?(r=e("Agents"),t[2]=e,t[3]=r):r=t[3];let n;t[4]!==e?(n=e("Evals"),t[4]=e,t[5]=n):n=t[5];let s;t[6]!==e?(s=e("Analytics"),t[6]=e,t[7]=s):s=t[7];let l;t[8]!==e?(l=e("API"),t[8]=e,t[9]=l):l=t[9];let d;t[10]!==e?(d=e("Audit"),t[10]=e,t[11]=d):d=t[11];let p;t[12]!==e?(p=e("Auth audit"),t[12]=e,t[13]=p):p=t[13];let c;t[14]!==e?(c=e("Configuration"),t[14]=e,t[15]=c):c=t[15];let u;t[16]!==e?(u=e("Sessions"),t[16]=e,t[17]=u):u=t[17];let h;t[18]!==e?(h=e("Containers"),t[18]=e,t[19]=h):h=t[19];let v;t[20]!==e?(v=e("Dashboards"),t[20]=e,t[21]=v):v=t[21];let f;t[22]!==e?(f=e("Data"),t[22]=e,t[23]=f):f=t[23];let m;t[24]!==e?(m=e("Deployment health"),t[24]=e,t[25]=m):m=t[25];let g;t[26]!==e?(g=e("Log drains"),t[26]=e,t[27]=g):g=t[27];let b;t[28]!==e?(b=e("Export / Import"),t[28]=e,t[29]=b):b=t[29];let x;t[30]!==e?(x=e("Fan-out"),t[30]=e,t[31]=x):x=t[31];let C;t[32]!==e?(C=e("Files"),t[32]=e,t[33]=C):C=t[33];let y;t[34]!==e?(y=e("Flags"),t[34]=e,t[35]=y):y=t[35];let S;t[36]!==e?(S=e("Functions"),t[36]=e,t[37]=S):S=t[37];let P;t[38]!==e?(P=e("Health"),t[38]=e,t[39]=P):P=t[39];let E;t[40]!==e?(E=e("Home"),t[40]=e,t[41]=E):E=t[41];let N;t[42]!==e?(N=e("Performance"),t[42]=e,t[43]=N):N=t[43];let T;t[44]!==e?(T=e("Issues"),t[44]=e,t[45]=T):T=t[45];let w;t[46]!==e?(w=e("KV"),t[46]=e,t[47]=w):w=t[47];let k;t[48]!==e?(k=e("Logs"),t[48]=e,t[49]=k):k=t[49];let O;t[50]!==e?(O=e("Metrics"),t[50]=e,t[51]=O):O=t[51];let F;t[52]!==e?(F=e("Migrations"),t[52]=e,t[53]=F):F=t[53];let I;t[54]!==e?(I=e("Notifications"),t[54]=e,t[55]=I):I=t[55];let K;t[56]!==e?(K=e("Organizations"),t[56]=e,t[57]=K):K=t[57];let B;t[58]!==e?(B=e("Time Travel"),t[58]=e,t[59]=B):B=t[59];let z;t[60]!==e?(z=e("Mail"),t[60]=e,t[61]=z):z=t[61];let Z;t[62]!==e?(Z=e("Payments"),t[62]=e,t[63]=Z):Z=t[63];let A;t[64]!==e?(A=e("Permissions"),t[64]=e,t[65]=A):A=t[65];let V;t[66]!==e?(V=e("Queues"),t[66]=e,t[67]=V):V=t[67];let L;t[68]!==e?(L=e("Realtime"),t[68]=e,t[69]=L):L=t[69];let te;t[70]!==e?(te=e("RLS Policies"),t[70]=e,t[71]=te):te=t[71];let ee;t[72]!==e?(ee=e("Scheduled"),t[72]=e,t[73]=ee):ee=t[73];let le;t[74]!==e?(le=e("Schema"),t[74]=e,t[75]=le):le=t[75];let J;t[76]!==e?(J=e("Security"),t[76]=e,t[77]=J):J=t[77];let Q;t[78]!==e?(Q=e("Settings"),t[78]=e,t[79]=Q):Q=t[79];let re;t[80]!==e?(re=e("SQL editor"),t[80]=e,t[81]=re):re=t[81];let ue;t[82]!==e?(ue=e("Traces"),t[82]=e,t[83]=ue):ue=t[83];let me;t[84]!==e?(me=e("Access Rules"),t[84]=e,t[85]=me):me=t[85];let he;t[86]!==e?(he=e("Users"),t[86]=e,t[87]=he):he=t[87];let ce;t[88]!==e?(ce=e("Vectors"),t[88]=e,t[89]=ce):ce=t[89];let ve;t[90]!==e?(ve=e("Workflows"),t[90]=e,t[91]=ve):ve=t[91];let $;t[92]!==o||t[93]!==r||t[94]!==v||t[95]!==f||t[96]!==m||t[97]!==g||t[98]!==b||t[99]!==x||t[100]!==C||t[101]!==y||t[102]!==S||t[103]!==P||t[104]!==n||t[105]!==E||t[106]!==N||t[107]!==T||t[108]!==w||t[109]!==k||t[110]!==O||t[111]!==F||t[112]!==I||t[113]!==K||t[114]!==B||t[115]!==s||t[116]!==z||t[117]!==Z||t[118]!==A||t[119]!==V||t[120]!==L||t[121]!==te||t[122]!==ee||t[123]!==le||t[124]!==J||t[125]!==Q||t[126]!==l||t[127]!==re||t[128]!==ue||t[129]!==me||t[130]!==he||t[131]!==ce||t[132]!==ve||t[133]!==d||t[134]!==p||t[135]!==c||t[136]!==u||t[137]!==h?($={advisorHealth:o,agents:r,evals:n,analytics:s,api:l,audit:d,authAudit:p,authConfig:c,authSessions:u,containers:h,dashboards:v,data:f,deploymentHealth:m,drains:g,export:b,fanout:x,files:C,flags:y,functions:S,health:P,home:E,insights:N,issues:T,kv:w,logs:k,metrics:O,migrations:F,notifications:I,organizations:K,pitr:B,mail:z,payments:Z,permissions:A,queues:V,realtime:L,rls:te,schedule:ee,schema:le,security:J,settings:Q,sql:re,traces:ue,storageRules:me,users:he,vectors:ce,workflows:ve},t[92]=o,t[93]=r,t[94]=v,t[95]=f,t[96]=m,t[97]=g,t[98]=b,t[99]=x,t[100]=C,t[101]=y,t[102]=S,t[103]=P,t[104]=n,t[105]=E,t[106]=N,t[107]=T,t[108]=w,t[109]=k,t[110]=O,t[111]=F,t[112]=I,t[113]=K,t[114]=B,t[115]=s,t[116]=z,t[117]=Z,t[118]=A,t[119]=V,t[120]=L,t[121]=te,t[122]=ee,t[123]=le,t[124]=J,t[125]=Q,t[126]=l,t[127]=re,t[128]=ue,t[129]=me,t[130]=he,t[131]=ce,t[132]=ve,t[133]=d,t[134]=p,t[135]=c,t[136]=u,t[137]=h,t[138]=$):$=t[138];let ne=$,ae;t[139]!==e?(ae=e("Advisors"),t[139]=e,t[140]=ae):ae=t[140];let Ne;t[141]!==e?(Ne=e("Auth"),t[141]=e,t[142]=Ne):Ne=t[142];let ye;t[143]!==e?(ye=e("Database"),t[143]=e,t[144]=ye):ye=t[144];let De;t[145]!==e?(De=e("Functions"),t[145]=e,t[146]=De):De=t[146];let we;t[147]!==e?(we=e("Observability"),t[147]=e,t[148]=we):we=t[148];let Ee;t[149]!==e?(Ee=e("Operations"),t[149]=e,t[150]=Ee):Ee=t[150];let Ue;t[151]!==e?(Ue=e("Overview"),t[151]=e,t[152]=Ue):Ue=t[152];let Ze;t[153]!==e?(Ze=e("Settings"),t[153]=e,t[154]=Ze):Ze=t[154];let We;t[155]!==e?(We=e("Storage"),t[155]=e,t[156]=We):We=t[156];let vo;t[157]!==ae||t[158]!==Ne||t[159]!==ye||t[160]!==De||t[161]!==we||t[162]!==Ee||t[163]!==Ue||t[164]!==Ze||t[165]!==We?(vo={advisors:ae,auth:Ne,database:ye,functions:De,observability:we,operations:Ee,overview:Ue,settings:Ze,storage:We},t[157]=ae,t[158]=Ne,t[159]=ye,t[160]=De,t[161]=we,t[162]=Ee,t[163]=Ue,t[164]=Ze,t[165]=We,t[166]=vo):vo=t[166];let lr=vo,$e;t[167]!==e?($e=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[167]=e,t[168]=$e):$e=t[168];let qe;t[169]!==e?(qe=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[169]=e,t[170]=qe):qe=t[170];let Ge;t[171]!==e?(Ge=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[171]=e,t[172]=Ge):Ge=t[172];let Je;t[173]!==e?(Je=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[173]=e,t[174]=Je):Je=t[174];let Qe;t[175]!==e?(Qe=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[175]=e,t[176]=Qe):Qe=t[176];let Ye;t[177]!==e?(Ye=e("A durable log of admin state-changing operations."),t[177]=e,t[178]=Ye):Ye=t[178];let Xe;t[179]!==e?(Xe=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[179]=e,t[180]=Xe):Xe=t[180];let et;t[181]!==e?(et=e("Enabled plugins and session config (read-only)."),t[181]=e,t[182]=et):et=t[182];let tt;t[183]!==e?(tt=e("Browse and revoke active sessions across all users."),t[183]=e,t[184]=tt):tt=t[184];let ot;t[185]!==e?(ot=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[185]=e,t[186]=ot):ot=t[186];let rt;t[187]!==e?(rt=e("Chart widgets backed by saved read-only SQL queries."),t[187]=e,t[188]=rt):rt=t[188];let nt;t[189]!==e?(nt=e("Browse and edit rows across your shard and global tables."),t[189]=e,t[190]=nt):nt=t[190];let at;t[191]!==e?(at=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[191]=e,t[192]=at):at=t[192];let st;t[193]!==e?(st=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[193]=e,t[194]=st):st=t[194];let it;t[195]!==e?(it=e("Export a shard to NDJSON, or import rows from it."),t[195]=e,t[196]=it):it=t[196];let lt;t[197]!==e?(lt=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[197]=e,t[198]=lt):lt=t[198];let ct;t[199]!==e?(ct=e("Browse objects in your R2 storage buckets."),t[199]=e,t[200]=ct):ct=t[200];let dt;t[201]!==e?(dt=e("Inspect feature flags and their live evaluation under a targeting context."),t[201]=e,t[202]=dt):dt=t[202];let pt;t[203]!==e?(pt=e("Run registered queries, mutations, and actions."),t[203]=e,t[204]=pt):pt=t[204];let ut;t[205]!==e?(ut=e("At-a-glance connection, error, and shard signals."),t[205]=e,t[206]=ut):ut=t[206];let mt;t[207]!==e?(mt=e("Connection, health, and advisor summary for your deployment."),t[207]=e,t[208]=mt):mt=t[208];let ft;t[209]!==e?(ft=e("Surface slow functions, error spikes, and cache problems."),t[209]=e,t[210]=ft):ft=t[210];let gt;t[211]!==e?(gt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[211]=e,t[212]=gt):gt=t[212];let ht;t[213]!==e?(ht=e("A live stream of recent function logs."),t[213]=e,t[214]=ht):ht=t[214];let vt;t[215]!==e?(vt=e("Per-shard health and aggregate metrics."),t[215]=e,t[216]=vt):vt=t[216];let bt;t[217]!==e?(bt=e("Review migration status and run them."),t[217]=e,t[218]=bt):bt=t[218];let xt;t[219]!==e?(xt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[219]=e,t[220]=xt):xt=t[220];let yt;t[221]!==e?(yt=e("Browse and manage organizations, members, and invitations."),t[221]=e,t[222]=yt):yt=t[222];let Ct;t[223]!==e?(Ct=e("Restore a shard to a point in the last 30 days."),t[223]=e,t[224]=Ct):Ct=t[224];let Pt;t[225]!==e?(Pt=e("Email your app sent, captured in dev."),t[225]=e,t[226]=Pt):Pt=t[226];let Rt;t[227]!==e?(Rt=e("Synced customers, subscriptions, and webhook events."),t[227]=e,t[228]=Rt):Rt=t[228];let St;t[229]!==e?(St=e("Inspect access policies per table, and probe a function as any identity."),t[229]=e,t[230]=St):St=t[230];let Nt;t[231]!==e?(Nt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[231]=e,t[232]=Nt):Nt=t[232];let wt;t[233]!==e?(wt=e("Active WebSocket subscriptions on this shard."),t[233]=e,t[234]=wt):wt=t[234];let Et;t[235]!==e?(Et=e("Inspect row-level-security policies and roles, per table."),t[235]=e,t[236]=Et):Et=t[236];let Tt;t[237]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[237]=e,t[238]=Tt):Tt=t[238];let kt;t[239]!==e?(kt=e("Inspect each table and its columns."),t[239]=e,t[240]=kt):kt=t[240];let Ot;t[241]!==e?(Ot=e("Review admin gates, credentials, and log redaction."),t[241]=e,t[242]=Ot):Ot=t[242];let Mt;t[243]!==e?(Mt=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[243]=e,t[244]=Mt):Mt=t[244];let Dt;t[245]!==e?(Dt=e("Run read-only SQL against a shard."),t[245]=e,t[246]=Dt):Dt=t[246];let It;t[247]!==e?(It=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[247]=e,t[248]=It):It=t[248];let _t;t[249]!==e?(_t=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[249]=e,t[250]=_t):_t=t[250];let At;t[251]!==e?(At=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[251]=e,t[252]=At):At=t[252];let Vt;t[253]!==e?(Vt=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[253]=e,t[254]=Vt):Vt=t[254];let Lt;t[255]!==e?(Lt=e("Browse Vectorize indexes and run similarity searches."),t[255]=e,t[256]=Lt):Lt=t[256];let Ht;t[257]!==e?(Ht=e("Inspect declared Cloudflare Workflows and their bindings."),t[257]=e,t[258]=Ht):Ht=t[258];let bo;t[259]!==Vt||t[260]!==Lt||t[261]!==Ht||t[262]!==$e||t[263]!==qe||t[264]!==Ge||t[265]!==Je||t[266]!==Qe||t[267]!==Ye||t[268]!==Xe||t[269]!==et||t[270]!==tt||t[271]!==ot||t[272]!==rt||t[273]!==nt||t[274]!==at||t[275]!==st||t[276]!==it||t[277]!==lt||t[278]!==ct||t[279]!==dt||t[280]!==pt||t[281]!==ut||t[282]!==mt||t[283]!==ft||t[284]!==gt||t[285]!==ht||t[286]!==vt||t[287]!==bt||t[288]!==xt||t[289]!==yt||t[290]!==Ct||t[291]!==Pt||t[292]!==Rt||t[293]!==St||t[294]!==Nt||t[295]!==wt||t[296]!==Et||t[297]!==Tt||t[298]!==kt||t[299]!==Ot||t[300]!==Mt||t[301]!==Dt||t[302]!==It||t[303]!==_t||t[304]!==At?(bo={advisorHealth:$e,agents:qe,evals:Ge,analytics:Je,api:Qe,audit:Ye,authAudit:Xe,authConfig:et,authSessions:tt,containers:ot,dashboards:rt,data:nt,deploymentHealth:at,drains:st,export:it,fanout:lt,files:ct,flags:dt,functions:pt,health:ut,home:mt,insights:ft,issues:gt,logs:ht,metrics:vt,migrations:bt,notifications:xt,organizations:yt,pitr:Ct,mail:Pt,payments:Rt,permissions:St,queues:Nt,realtime:wt,rls:Et,schedule:Tt,schema:kt,security:Ot,settings:Mt,sql:Dt,kv:It,storageRules:_t,traces:At,users:Vt,vectors:Lt,workflows:Ht},t[259]=Vt,t[260]=Lt,t[261]=Ht,t[262]=$e,t[263]=qe,t[264]=Ge,t[265]=Je,t[266]=Qe,t[267]=Ye,t[268]=Xe,t[269]=et,t[270]=tt,t[271]=ot,t[272]=rt,t[273]=nt,t[274]=at,t[275]=st,t[276]=it,t[277]=lt,t[278]=ct,t[279]=dt,t[280]=pt,t[281]=ut,t[282]=mt,t[283]=ft,t[284]=gt,t[285]=ht,t[286]=vt,t[287]=bt,t[288]=xt,t[289]=yt,t[290]=Ct,t[291]=Pt,t[292]=Rt,t[293]=St,t[294]=Nt,t[295]=wt,t[296]=Et,t[297]=Tt,t[298]=kt,t[299]=Ot,t[300]=Mt,t[301]=Dt,t[302]=It,t[303]=_t,t[304]=At,t[305]=bo):bo=t[305];let cr=bo,xo;return t[306]!==lr||t[307]!==cr||t[308]!==ne?(xo={groupLabel:lr,tabDescription:cr,tabLabel:ne},t[306]=lr,t[307]=cr,t[308]=ne,t[309]=xo):xo=t[309],xo},"vr"),Gi=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,a.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"yr"),Ji=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,a.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"xr"),Qi=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"wr"),Yi=[{Icon:Gi,value:"system"},{Icon:Ji,value:"light"},{Icon:Qi,value:"dark"}],Xi=i(()=>{let t=(0,_.c)(19),{theme:e,setTheme:o}=ii(),r=ge(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let s;t[2]!==r?(s=r("Light theme"),t[2]=r,t[3]=s):s=t[3];let l;t[4]!==r?(l=r("System theme"),t[4]=r,t[5]=l):l=t[5];let d;t[6]!==n||t[7]!==s||t[8]!==l?(d={dark:n,light:s,system:l},t[6]=n,t[7]=s,t[8]=l,t[9]=d):d=t[9];let p=d,c;t[10]!==r?(c=r("Theme"),t[10]=r,t[11]=c):c=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=Yi.map(v=>{let{Icon:f,value:m}=v,g=e===m;return(0,a.jsxs)("button",{"aria-checked":g,"aria-label":p[m],className:W("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",g?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:i(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[g&&(0,a.jsx)(_n.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,a.jsx)("span",{className:"relative",children:(0,a.jsx)(f,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let h;return t[16]!==c||t[17]!==u?(h=(0,a.jsx)("div",{"aria-label":c,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=c,t[17]=u,t[18]=h):h=t[18],h},"Nr"),el=i(t=>{let e=(0,_.c)(23),{domain:o,onOpenCommandPalette:r,page:n}=t,s=ge(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(Di,{className:"-ms-1"}),e[0]=l):l=e[0];let d;e[1]!==s?(d=s("Breadcrumb"),e[1]=s,e[2]=d):d=e[2];let p;e[3]!==o?(p=(0,a.jsx)("span",{className:"text-muted-foreground",children:o}),e[3]=o,e[4]=p):p=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=c):c=e[5];let u;e[6]!==n?(u=(0,a.jsx)("span",{className:"font-medium text-foreground",children:n}),e[6]=n,e[7]=u):u=e[7];let h;e[8]!==d||e[9]!==p||e[10]!==u?(h=(0,a.jsxs)("nav",{"aria-label":d,className:"flex items-center gap-1.5 text-[13px]",children:[p,c,u]}),e[8]=d,e[9]=p,e[10]=u,e[11]=h):h=e[11];let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=v):v=e[12];let f;e[13]!==s?(f=s("Search\u2026"),e[13]=s,e[14]=f):f=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),e[15]=m):m=e[15];let g;e[16]!==r||e[17]!==f?(g=(0,a.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:r,type:"button",children:[v,f,m]}),e[16]=r,e[17]=f,e[18]=g):g=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,a.jsx)(Xi,{})}),e[19]=b):b=e[19];let x;return e[20]!==g||e[21]!==h?(x=(0,a.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[l,h,g,b]}),e[20]=g,e[21]=h,e[22]=x):x=e[22],x},"Sr"),tl=i(t=>{let e=(0,_.c)(3),o,r;e[0]!==t?(o=i(()=>{if(t===void 0)return;let n=i(s=>{if(!s.ctrlKey||s.metaKey||s.altKey||s.shiftKey||s.repeat||s.key!=="`")return;let{target:l}=s;l instanceof HTMLElement&&(l.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(l.tagName))||(s.preventDefault(),t())},"n");return globalThis.addEventListener("keydown",n),()=>{globalThis.removeEventListener("keydown",n)}},"a"),r=[t],e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]),(0,M.useEffect)(o,r)},"Mr"),X=i((t,e)=>(0,M.lazy)(()=>t().then(o=>({default:o[e]}))),"E"),ol=X(()=>import("./chunk-KZRWBSYQ.js"),"InsightsPanel"),rl=(0,M.lazy)(()=>import("./chunk-25IDU7IW.js")),nl=(0,M.lazy)(()=>import("./chunk-BXJPPINU.js")),al=(0,M.lazy)(()=>import("./chunk-HX7IXD7I.js")),sl=(0,M.lazy)(()=>import("./chunk-RJS7UD5U.js")),il=X(()=>import("./chunk-OENUM3OW.js"),"AnalyticsPanel"),ll=(0,M.lazy)(()=>import("./chunk-F3J6ER2V.js")),cl=(0,M.lazy)(()=>import("./chunk-6QBOXH2I.js")),dl=(0,M.lazy)(()=>import("./chunk-7P7NURTD.js")),pl=(0,M.lazy)(()=>import("./chunk-VIJLMIC3.js")),ul=(0,M.lazy)(()=>import("./chunk-HLENOQDN.js")),ml=X(()=>import("./chunk-S23KCFVU.js"),"UsersPanel"),fl=(0,M.lazy)(()=>import("./chunk-RFSPHFKM.js")),gl=X(()=>import("./chunk-63D4ABMW.js"),"DeploymentHealthPanel"),hl=X(()=>import("./chunk-XNSCEAHM.js"),"TableEditor"),vl=X(()=>import("./chunk-YJ25NVR2.js"),"ExportImportPanel"),bl=(0,M.lazy)(()=>import("./chunk-TCV7MMYR.js")),xl={data:Ln,migrations:Hn},yl=X(()=>import("./chunk-5MJ3G4DY.js"),"PitrPanel"),Cl=(0,M.lazy)(()=>import("./chunk-7UP7OQJG.js")),Pl=X(()=>import("./chunk-DRR3KV5L.js"),"FunctionRunner"),Rl=X(()=>import("./chunk-EXL35M7T.js"),"FunctionStatsPanel"),Sl=(0,M.lazy)(()=>import("./chunk-WZ65AZKA.js")),Nl=X(()=>import("./chunk-C3YACIEE.js"),"AuditPanel"),wl=(0,M.lazy)(()=>import("./chunk-SBZXUGZ7.js")),El=(0,M.lazy)(()=>import("./chunk-6KWKX3RH.js").then(t=>({default:t.LogsPanel}))),Tl=X(()=>import("./chunk-LWE6NWQX.js"),"MailPanel"),kl=X(()=>import("./chunk-XEGWCG5S.js"),"SchedulePanel"),Ol=(0,M.lazy)(()=>import("./chunk-BG5ELOW6.js")),Ml=(0,M.lazy)(()=>import("./chunk-EF5J67J3.js")),Dl=X(()=>import("./chunk-UTK6JUTY.js"),"KvBrowser"),Il=(0,M.lazy)(()=>import("./chunk-WJCKVELA.js")),_l=X(()=>import("./chunk-5RIKPDDA.js"),"PaymentsPanel"),Al=X(()=>import("./chunk-7QOXFLZB.js"),"PermissionsPanel"),Vl=(0,M.lazy)(()=>import("./chunk-XVD7HWY7.js")),Ll=(0,M.lazy)(()=>import("./chunk-EP4JQH5X.js")),Hl=(0,M.lazy)(()=>import("./chunk-2ZG23BA5.js")),Bl=X(()=>import("./chunk-XYV7TMYI.js"),"HealthPanel"),Fl=X(()=>import("./chunk-SY6ANTKE.js"),"MetricsPanel"),jl=X(()=>import("./chunk-BZDIRP7L.js"),"SchemaViewer"),Kl=X(()=>import("./chunk-CKG2DTZ2.js"),"SettingsPanel"),zl=X(()=>import("./chunk-UFESYXCE.js"),"SqlEditorPanel"),Ul=X(()=>import("./chunk-S4665UG5.js"),"FileBrowser"),Zl=(0,M.lazy)(()=>import("./chunk-UKI2ZYB2.js")),Wl=(0,M.lazy)(()=>import("./chunk-EJWTF334.js")),$l=(0,M.lazy)(()=>import("./chunk-BCOT3QRZ.js")),ql=X(()=>import("./chunk-F2I4JLFR.js"),"VectorBrowser"),Gl=(0,M.lazy)(()=>import("./chunk-6WB63KTN.js")),ks=(0,M.createContext)(null),Jl={analytics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:(0,a.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,a.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,a.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,a.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,a.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,a.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,a.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,a.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,a.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,a.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,a.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,a.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),health:(0,a.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,a.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,a.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,a.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,a.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,a.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,a.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,a.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,a.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,a.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,a.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),realtime:(0,a.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,a.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),advisorHealth:(0,a.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,a.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,a.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,a.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,a.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,a.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},vs=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","audit","realtime","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags"]},{key:"settings",tabs:["settings"]}],Ql={analytics:"analytics",authAudit:"auth",authConfig:"auth",authSessions:"auth",containers:"containers",files:"storage",flags:"flags",kv:"kv",mail:"mail",notifications:"notifications",organizations:"auth",payments:"payments",queues:"queues",schedule:"scheduler",storageRules:"storage",users:"auth",vectors:"vectors",workflows:"workflows"},bs=i((t,e)=>{let o=Ql[t];return o===void 0||e[o]},"Pt"),Hr=i(t=>{let e=(0,_.c)(2),{tab:o}=t,r=Jl[o],n;return e[0]!==r?(n=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=n):n=e[1],n},"kt"),Yl=i(t=>t,"ks"),Os=Yl(["home","data","sql","functions","api","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","settings"]),Xl=new Set(["api","data","migrations","sql"]),ec=i(t=>{let e=t.split("/").findLast(Boolean)??"";return Os.includes(e)?e:"home"},"Ss"),tc=i(t=>{let e=(0,_.c)(19),{chrome:o,connected:r}=t,n=ge(),s;e[0]!==n?(s=n("admin token"),e[0]=n,e[1]=s):s=e[1];let l;e[2]!==s?(l=(0,a.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:s}),e[2]=s,e[3]=l):l=e[3];let d;e[4]!==o.onTokenChange||e[5]!==o.token?(d=(0,a.jsx)(gr,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:o.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:o.token}),e[4]=o.onTokenChange,e[5]=o.token,e[6]=d):d=e[6];let p;e[7]!==r||e[8]!==n?(p=r&&(0,a.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),n("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=n,e[9]=p):p=e[9];let c;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(c=r&&(0,a.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:n("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=n,e[13]=c):c=e[13];let u;return e[14]!==l||e[15]!==d||e[16]!==p||e[17]!==c?(u=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[l,d,p,c]}),e[14]=l,e[15]=d,e[16]=p,e[17]=c,e[18]=u):u=e[18],u},"Ms"),oc=i(t=>{let e=(0,_.c)(25),{current:o,group:r,groupLabel:n,selectTab:s,tabDescription:l,tabLabel:d}=t,p=r.tabs.includes(o)?"page":void 0,c=n[r.key],u=r.tabs[0],h;e[0]!==u?(h=(0,a.jsx)(Hr,{tab:u}),e[0]=u,e[1]=h):h=e[1];let v;e[2]!==p||e[3]!==c||e[4]!==h?(v=(0,a.jsx)(Ns,{"aria-current":p,"aria-label":c,className:"mx-auto flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent data-[popup-open]:bg-sidebar-accent data-[popup-open]:text-sidebar-accent-foreground data-[popup-open]:shadow-xs aria-[current=page]:bg-sidebar-accent aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:shadow-xs",delay:120,openOnHover:!0,children:h}),e[2]=p,e[3]=c,e[4]=h,e[5]=v):v=e[5];let f=n[r.key],m;e[6]!==f?(m=(0,a.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:f}),e[6]=f,e[7]=m):m=e[7];let g;if(e[8]!==o||e[9]!==r.tabs||e[10]!==s||e[11]!==l||e[12]!==d){let C;e[14]!==o||e[15]!==s||e[16]!==l||e[17]!==d?(C=i(y=>(0,a.jsxs)("button",{"aria-current":o===y?"page":void 0,className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100","data-tab":y,"data-testid":`dash-tab-${y}`,onClick:s,title:l[y],type:"button",children:[(0,a.jsx)(Hr,{tab:y}),(0,a.jsx)("span",{children:d[y]})]},y),"y"),e[14]=o,e[15]=s,e[16]=l,e[17]=d,e[18]=C):C=e[18],g=r.tabs.map(C),e[8]=o,e[9]=r.tabs,e[10]=s,e[11]=l,e[12]=d,e[13]=g}else g=e[13];let b;e[19]!==m||e[20]!==g?(b=(0,a.jsxs)(ws,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[m,g]}),e[19]=m,e[20]=g,e[21]=b):b=e[21];let x;return e[22]!==v||e[23]!==b?(x=(0,a.jsxs)(Ss,{children:[v,b]}),e[22]=v,e[23]=b,e[24]=x):x=e[24],x},"Cs"),rc=i(t=>{let e=(0,_.c)(45),{chrome:o,collapsed:r,connected:n}=t,s=ge();if(o===null){let y;e[0]!==s?(y=s("Admin"),e[0]=s,e[1]=y):y=e[1];let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=S):S=e[2];let P;e[3]!==s?(P=s("Admin"),e[3]=s,e[4]=P):P=e[4];let E;e[5]!==P?(E=(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:P}),e[5]=P,e[6]=E):E=e[6];let N;e[7]!==s?(N=s("Studio"),e[7]=s,e[8]=N):N=e[8];let T;e[9]!==N?(T=(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:N}),e[9]=N,e[10]=T):T=e[10];let w;e[11]!==E||e[12]!==T?(w=(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[E,T]}),e[11]=E,e[12]=T,e[13]=w):w=e[13];let k;return e[14]!==y||e[15]!==w?(k=(0,a.jsxs)(Ts,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[S,w]}),e[14]=y,e[15]=w,e[16]=k):k=e[16],k}let l=r?"mx-auto size-8 justify-center":"w-full p-2",d;e[17]!==l?(d=W("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",l),e[17]=l,e[18]=d):d=e[18];let p;e[19]!==n||e[20]!==s?(p=s(n?"Connected":"Not connected"),e[19]=n,e[20]=s,e[21]=p):p=e[21];let c=n?"bg-success":"bg-muted-foreground/50",u;e[22]!==c?(u=W("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",c),e[22]=c,e[23]=u):u=e[23];let h;e[24]!==u?(h=(0,a.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,a.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=h):h=e[25];let v;e[26]!==r||e[27]!==n||e[28]!==s?(v=!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:s("Admin")}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:s(n?"Connected":"Not connected")})]}),(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=n,e[28]=s,e[29]=v):v=e[29];let f;e[30]!==d||e[31]!==p||e[32]!==h||e[33]!==v?(f=(0,a.jsxs)(Ns,{className:d,"data-testid":"dash-app-connect",title:p,children:[h,v]}),e[30]=d,e[31]=p,e[32]=h,e[33]=v,e[34]=f):f=e[34];let m=r?"end":"start",g=r?"right":"top",b;e[35]!==o||e[36]!==n?(b=(0,a.jsx)(tc,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=b):b=e[37];let x;e[38]!==g||e[39]!==b||e[40]!==m?(x=(0,a.jsx)(ws,{align:m,keepMounted:!0,side:g,children:b}),e[38]=g,e[39]=b,e[40]=m,e[41]=x):x=e[41];let C;return e[42]!==x||e[43]!==f?(C=(0,a.jsxs)(Ss,{children:[f,x]}),e[42]=x,e[43]=f,e[44]=C):C=e[44],C},"_s"),nc=i(t=>{let e=(0,_.c)(28),{chrome:o,connected:r,current:n,groupLabel:s,groups:l,selectTab:d,tabDescription:p,tabLabel:c}=t,u=ge(),{state:h}=ir(),v=h==="collapsed",f=v&&"justify-center px-0",m;e[0]!==f?(m=W("flex items-center gap-2.5 px-1.5 py-1",f),e[0]=f,e[1]=m):m=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)(pi,{className:"size-9 shrink-0 text-foreground"}),e[2]=g):g=e[2];let b;e[3]!==v||e[4]!==r||e[5]!==u?(b=!v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:u("Studio")})]}),(0,a.jsx)(Bt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:u(r?"Live":"Local")})]}),e[3]=v,e[4]=r,e[5]=u,e[6]=b):b=e[6];let x;e[7]!==m||e[8]!==b?(x=(0,a.jsx)(_i,{children:(0,a.jsxs)("div",{className:m,children:[g,b]})}),e[7]=m,e[8]=b,e[9]=x):x=e[9];let C;e[10]!==v||e[11]!==n||e[12]!==s||e[13]!==l||e[14]!==d||e[15]!==p||e[16]!==c?(C=v?l.map(E=>(0,a.jsx)(oc,{current:n,group:E,groupLabel:s,selectTab:d,tabDescription:p,tabLabel:c},E.key)):l.map(E=>(0,a.jsxs)(Li,{children:[(0,a.jsx)(Hi,{className:"text-[11px] font-medium tracking-wider uppercase",children:s[E.key]}),(0,a.jsx)(Bi,{children:(0,a.jsx)(gs,{children:E.tabs.map(N=>(0,a.jsx)(hs,{children:(0,a.jsxs)(Ts,{className:"data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]","data-tab":N,"data-testid":`dash-tab-${N}`,isActive:n===N,onClick:d,title:p[N],tooltip:p[N],children:[(0,a.jsx)(Hr,{tab:N}),(0,a.jsx)("span",{children:c[N]})]})},N))})})]},E.key)),e[10]=v,e[11]=n,e[12]=s,e[13]=l,e[14]=d,e[15]=p,e[16]=c,e[17]=C):C=e[17];let y;e[18]!==C?(y=(0,a.jsx)(Vi,{children:C}),e[18]=C,e[19]=y):y=e[19];let S;e[20]!==o||e[21]!==v||e[22]!==r?(S=(0,a.jsx)(Ai,{children:(0,a.jsx)(gs,{children:(0,a.jsx)(hs,{children:(0,a.jsx)(rc,{chrome:o,collapsed:v,connected:r})})})}),e[20]=o,e[21]=v,e[22]=r,e[23]=S):S=e[23];let P;return e[24]!==x||e[25]!==y||e[26]!==S?(P=(0,a.jsxs)(Mi,{collapsible:"icon",variant:"inset",children:[x,y,S]}),e[24]=x,e[25]=y,e[26]=S,e[27]=P):P=e[27],P},"Ls"),Ms=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Ko,{className:"h-8 w-40"}),(0,a.jsx)(Ko,{className:"h-8 w-24"})]}),(0,a.jsx)(Ko,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Yt"),ac=i(()=>{let t=(0,_.c)(64),e=ge(),o=so(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:pc},t[0]=r):r=t[0];let n=qr(r),s,l;t[1]!==n?(s=ec(n),l=Xl.has(s),t[1]=n,t[2]=s,t[3]=l):(s=t[2],l=t[3]);let d=l,p=Jr(),c=p?.toggle;tl(c);let u=An(),{groupLabel:h,tabDescription:v,tabLabel:f}=qi(),m;t[4]!==u?(m=i(ce=>({...ce,tabs:ce.tabs.filter(ve=>bs(ve,u))}),"f"),t[4]=u,t[5]=m):m=t[5];let g=vs.map(m).filter(uc),b,x;t[6]!==s||t[7]!==u||t[8]!==o?(b=i(()=>{bs(s,u)||Xt(o({replace:!0,to:"/home"}))},"b"),x=[s,u,o],t[6]=s,t[7]=u,t[8]=o,t[9]=b,t[10]=x):(b=t[9],x=t[10]),(0,M.useEffect)(b,x);let C;t[11]!==o?(C=i(ce=>{Xt(o({to:`/${ce.currentTarget.dataset.tab??""}`}))},"y"),t[11]=o,t[12]=C):C=t[12];let y=C,S,P;t[13]!==s||t[14]!==f?(S=i(()=>{typeof document<"u"&&(document.title=`${f[s]} \xB7 lunora`)},"S"),P=[s,f],t[13]=s,t[14]=f,t[15]=S,t[16]=P):(S=t[15],P=t[16]),(0,M.useEffect)(S,P);let E=g.find(ce=>ce.tabs.includes(s))??vs[0],N;t[17]!==h||t[18]!==f?(N=i(ce=>ce.tabs.map(ve=>({group:h[ce.key],label:f[ve],to:`/${ve}`})),"N"),t[17]=h,t[18]=f,t[19]=N):N=t[19];let T=g.flatMap(N),w=(0,M.use)(ks),k=w!==null&&w.token!=="",O;t[20]!==T?(O=(0,a.jsx)(ms,{items:T}),t[20]=T,t[21]=O):O=t[21];let F;t[22]!==w||t[23]!==k||t[24]!==s||t[25]!==h||t[26]!==y||t[27]!==v||t[28]!==f||t[29]!==g?(F=(0,a.jsx)(nc,{chrome:w,connected:k,current:s,groupLabel:h,groups:g,selectTab:y,tabDescription:v,tabLabel:f}),t[22]=w,t[23]=k,t[24]=s,t[25]=h,t[26]=y,t[27]=v,t[28]=f,t[29]=g,t[30]=F):F=t[30];let I=h[E.key],K=f[s],B;t[31]!==I||t[32]!==K?(B=(0,a.jsx)(el,{domain:I,onOpenCommandPalette:us,page:K}),t[31]=I,t[32]=K,t[33]=B):B=t[33];let z;t[34]!==w?.rulesInstalled?(z=w?.rulesInstalled===!1&&(0,a.jsx)(fi,{}),t[34]=w?.rulesInstalled,t[35]=z):z=t[35];let Z=`dash-tab-${s}`,A=d?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",V=f[s],L;t[36]!==e||t[37]!==V?(L=e("{title} failed",{title:V}),t[36]=e,t[37]=V,t[38]=L):L=t[38];let te=f[s],ee;t[39]!==e?(ee=e("Try again"),t[39]=e,t[40]=ee):ee=t[40];let le;t[41]===Symbol.for("react.memo_cache_sentinel")?(le=(0,a.jsx)(M.Suspense,{fallback:(0,a.jsx)(Ms,{}),children:(0,a.jsx)(Zr,{})}),t[41]=le):le=t[41];let J;t[42]!==s||t[43]!==L||t[44]!==te||t[45]!==ee?(J=(0,a.jsx)(zo,{fallbackTitle:L,label:te,retryLabel:ee,children:le},s),t[42]=s,t[43]=L,t[44]=te,t[45]=ee,t[46]=J):J=t[46];let Q;t[47]!==A||t[48]!==J?(Q=(0,a.jsx)("div",{className:A,children:J}),t[47]=A,t[48]=J,t[49]=Q):Q=t[49];let re;t[50]!==p?(re=p?.open===!0&&(0,a.jsx)(Zi,{focusSeq:p.focusSeq,onClose:p.close,onShownChange:p.setShown,shown:p.shown}),t[50]=p,t[51]=re):re=t[51];let ue;t[52]!==Z||t[53]!==Q||t[54]!==re?(ue=(0,a.jsxs)("div",{"aria-labelledby":Z,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[Q,re]}),t[52]=Z,t[53]=Q,t[54]=re,t[55]=ue):ue=t[55];let me;t[56]!==B||t[57]!==z||t[58]!==ue?(me=(0,a.jsxs)(Ii,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[B,z,ue]}),t[56]=B,t[57]=z,t[58]=ue,t[59]=me):me=t[59];let he;return t[60]!==F||t[61]!==me||t[62]!==O?(he=(0,a.jsxs)(Oi,{className:"min-h-0 flex-1","data-testid":"lunora-studio",children:[O,F,me]}),t[60]=F,t[61]=me,t[62]=O,t[63]=he):he=t[63],he},"$s"),sc=i(()=>{let t=(0,_.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(Gr,{children:(0,a.jsx)(ac,{})}),t[0]=e):e=t[0],e},"Ps"),ic=i(t=>{let e=(0,_.c)(5),{initialShardKey:o,schemaEditable:r}=t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];let s=zr(n),{table:l}=s,d=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==d||e[3]!==r?(p=(0,a.jsx)(jl,{initialShardKey:o,initialTable:d,schemaEditable:r}),e[1]=o,e[2]=d,e[3]=r,e[4]=p):p=e[4],p},"Ts"),lc=i(()=>{let t=(0,_.c)(3),e=so(),o,r;return t[0]!==e?(o=i(()=>{Xt(e({replace:!0,to:"/home"}))},"a"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,M.useEffect)(o,r),null},"As"),cc=i(({basePath:t,dataEditable:e=!1,functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:s,runAsIdentity:l=!1,schemaEditable:d=!1,scheduledCancel:p,scheduledCron:c,scheduledLoad:u})=>{let h=Ur({component:sc}),v={agents:(0,a.jsx)(sl,{initialShardKey:r}),analytics:(0,a.jsx)(il,{}),api:(0,a.jsx)(ll,{functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:s}),audit:(0,a.jsx)(Nl,{initialShardKey:r}),authAudit:(0,a.jsx)(cl,{}),authConfig:(0,a.jsx)(dl,{}),authSessions:(0,a.jsx)(pl,{}),containers:(0,a.jsx)(fl,{}),dashboards:(0,a.jsx)(Ll,{initialShardKey:r}),data:(0,a.jsx)(hl,{editable:e,initialShardKey:r}),deploymentHealth:(0,a.jsx)(gl,{}),drains:(0,a.jsx)(wl,{}),export:(0,a.jsx)(vl,{initialShardKey:r}),fanout:(0,a.jsx)(Hl,{initialShardKey:r}),files:(0,a.jsx)(Ul,{}),kv:(0,a.jsx)(Dl,{}),flags:(0,a.jsx)(Cl,{initialShardKey:r}),functions:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Rl,{functions:o,initialShardKey:r}),(0,a.jsx)(Pl,{functions:o,runAsIdentity:l})]}),health:(0,a.jsx)(Bl,{initialShardKey:r}),home:(0,a.jsx)(Vn,{initialShardKey:r}),insights:(0,a.jsx)(ol,{initialShardKey:r}),issues:(0,a.jsx)(Sl,{initialShardKey:r}),logs:(0,a.jsx)(El,{initialShardKey:r}),traces:(0,a.jsx)(Wl,{initialShardKey:r}),evals:(0,a.jsx)($l,{initialShardKey:r}),metrics:(0,a.jsx)(Fl,{initialShardKey:r}),migrations:(0,a.jsx)(bl,{initialShardKey:r}),notifications:(0,a.jsx)(Il,{}),organizations:(0,a.jsx)(ul,{}),permissions:(0,a.jsx)(Al,{functions:o,runAsIdentity:l,schemaEditable:d}),pitr:(0,a.jsx)(yl,{initialShardKey:r}),mail:(0,a.jsx)(Tl,{}),payments:(0,a.jsx)(_l,{}),queues:(0,a.jsx)(Vl,{}),realtime:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Ol,{initialShardKey:r}),(0,a.jsx)(Ml,{})]}),rls:(0,a.jsx)(rl,{}),schedule:(0,a.jsx)(kl,{loadCronJobs:c,scheduledCancel:p,scheduledLoad:u}),schema:(0,a.jsx)(ic,{initialShardKey:r,schemaEditable:d}),advisorHealth:(0,a.jsx)(nl,{}),security:(0,a.jsx)(al,{}),settings:(0,a.jsx)(Kl,{initialShardKey:r}),sql:(0,a.jsx)(zl,{initialShardKey:r}),storageRules:(0,a.jsx)(Zl,{}),users:(0,a.jsx)(ml,{}),vectors:(0,a.jsx)(ql,{}),workflows:(0,a.jsx)(Gl,{})},f=mr({component:i(()=>v.home,"component"),getParentRoute:i(()=>h,"getParentRoute"),path:"/"}),m=Os.map(x=>mr({component:i(()=>v[x],"component"),getParentRoute:i(()=>h,"getParentRoute"),path:`/${x}`,validateSearch:xl[x]})),g=h.addChildren([f,...m]),b="window"in globalThis?jr():Kr({initialEntries:["/home"]});return Wr({...t===void 0||t==="/"?{}:{basepath:t},defaultNotFoundComponent:lc,defaultPendingComponent:Ms,defaultPendingMinMs:0,defaultPendingMs:0,history:b,routeTree:g})},"zs"),dc=i(t=>{let e=(0,_.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:s,initialShardKey:l,openApiSpec:d,openRpcSpec:p,runAsIdentity:c,schemaEditable:u,scheduledCancel:h,scheduledCron:v,scheduledLoad:f}=t,m;e[0]!==o||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==d||e[5]!==p||e[6]!==c||e[7]!==h||e[8]!==v||e[9]!==f||e[10]!==u?(m=cc({basePath:o,dataEditable:n,functions:s,initialShardKey:l,openApiSpec:d,openRpcSpec:p,runAsIdentity:c,schemaEditable:u,scheduledCancel:h,scheduledCron:v,scheduledLoad:f}),e[0]=o,e[1]=n,e[2]=s,e[3]=l,e[4]=d,e[5]=p,e[6]=c,e[7]=h,e[8]=v,e[9]=f,e[10]=u,e[11]=m):m=e[11];let g=m,b=r??null,x;e[12]!==g?(x=(0,a.jsx)($r,{router:g}),e[12]=g,e[13]=x):x=e[13];let C;return e[14]!==b||e[15]!==x?(C=(0,a.jsx)(ks,{value:b,children:x}),e[14]=b,e[15]=x,e[16]=C):C=e[16],C},"Es"),Fg=i(t=>{let e=(0,_.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:s,i18n:l,initialShardKey:d,locale:p,openApiSpec:c,openRpcSpec:u,runAsIdentity:h,schemaEditable:v,scheduledCancel:f,scheduledCron:m,scheduledLoad:g}=t,b;e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==s||e[4]!==d||e[5]!==c||e[6]!==u||e[7]!==h||e[8]!==f||e[9]!==m||e[10]!==g||e[11]!==v?(b=(0,a.jsx)(si,{children:(0,a.jsx)(dc,{basePath:o,chrome:r,dataEditable:n,functions:s,initialShardKey:d,openApiSpec:c,openRpcSpec:u,runAsIdentity:h,scheduledCancel:f,scheduledCron:m,scheduledLoad:g,schemaEditable:v})}),e[0]=o,e[1]=r,e[2]=n,e[3]=s,e[4]=d,e[5]=c,e[6]=u,e[7]=h,e[8]=f,e[9]=m,e[10]=g,e[11]=v,e[12]=b):b=e[12];let x=b;if(l===void 0&&p===void 0)return x;let C;return e[13]!==l||e[14]!==p||e[15]!==x?(C=(0,a.jsx)(ps,{i18n:l,locale:p,children:x}),e[13]=l,e[14]=p,e[15]=x,e[16]=C):C=e[16],C},"mn");function pc(t){return t.location.pathname}i(pc,"Rs");function uc(t){return t.tabs.length>0}i(uc,"Hs");export{zo as a,ps as b,ai as c,ii as d,Bg as e,pi as f,vi as g,yi as h,Ci as i,Pi as j,Fg as k};