@lunora/studio 1.0.0-alpha.390 → 1.0.0-alpha.391
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/packem_chunks/auth-audit-panel.mjs +1 -1
- package/dist/standalone/{chunk-RJJRUUTE.js → chunk-24N5RZRI.js} +1 -1
- package/dist/standalone/{chunk-KIQ34774.js → chunk-2G7JHC6S.js} +1 -1
- package/dist/standalone/{chunk-OJR7BDKC.js → chunk-2QYMVMYR.js} +1 -1
- package/dist/standalone/{chunk-OWCTA7GY.js → chunk-3IGIBOCF.js} +1 -1
- package/dist/standalone/{chunk-L6VJTINV.js → chunk-3K56NZDT.js} +1 -1
- package/dist/standalone/{chunk-NFI2TNKU.js → chunk-4RII5S3H.js} +1 -1
- package/dist/standalone/{chunk-I6YVDNKQ.js → chunk-4YWFAODW.js} +1 -1
- package/dist/standalone/{chunk-ZP453BM4.js → chunk-4ZEERXMN.js} +1 -1
- package/dist/standalone/{chunk-LRUYEVHH.js → chunk-6C555TU5.js} +1 -1
- package/dist/standalone/{chunk-CO6R6GCX.js → chunk-73D52JHL.js} +1 -1
- package/dist/standalone/{chunk-HCK62XWB.js → chunk-7Z5MTBZB.js} +1 -1
- package/dist/standalone/{chunk-UFS6UP4Z.js → chunk-B3GOYA2R.js} +1 -1
- package/dist/standalone/{chunk-SGIEXE5J.js → chunk-BBJJJI7F.js} +1 -1
- package/dist/standalone/{chunk-2CDROYSG.js → chunk-BULGXI7X.js} +1 -1
- package/dist/standalone/chunk-C6FOSG2A.js +7 -0
- package/dist/standalone/{chunk-BU5VWXRR.js → chunk-CDJMXV45.js} +1 -1
- package/dist/standalone/{chunk-OQTMT64P.js → chunk-DRFBJBEN.js} +1 -1
- package/dist/standalone/{chunk-6K4F727K.js → chunk-E7QYOQWH.js} +1 -1
- package/dist/standalone/{chunk-CY45AO5T.js → chunk-EAYN3IGE.js} +1 -1
- package/dist/standalone/{chunk-AXDXIMCN.js → chunk-EGUFPKS4.js} +1 -1
- package/dist/standalone/{chunk-7ASIMMZY.js → chunk-EHU26D2V.js} +1 -1
- package/dist/standalone/{chunk-HJOXP6C3.js → chunk-FGHKL42J.js} +1 -1
- package/dist/standalone/{chunk-JZN3MNJX.js → chunk-FKF2BRRN.js} +1 -1
- package/dist/standalone/{chunk-AXB32N5O.js → chunk-FR22DHUN.js} +1 -1
- package/dist/standalone/{chunk-DZV6YFWZ.js → chunk-GERWUNAM.js} +1 -1
- package/dist/standalone/{chunk-BRPLE2Z6.js → chunk-GTJYJW4A.js} +1 -1
- package/dist/standalone/{chunk-QTWNCDLK.js → chunk-H54J65DJ.js} +1 -1
- package/dist/standalone/{chunk-U7NVTULW.js → chunk-HB6ABGZU.js} +1 -1
- package/dist/standalone/{chunk-ZADOHFZB.js → chunk-HQZ7B5EU.js} +1 -1
- package/dist/standalone/{chunk-BWBECJFT.js → chunk-I2XT2POX.js} +1 -1
- package/dist/standalone/chunk-IPDJJHZK.js +1 -0
- package/dist/standalone/{chunk-WEPANQGT.js → chunk-KRSQ6N4R.js} +1 -1
- package/dist/standalone/{chunk-V4B7ZPEG.js → chunk-KYZZGUIG.js} +1 -1
- package/dist/standalone/{chunk-Y2AKO63C.js → chunk-KZXAVLQ4.js} +1 -1
- package/dist/standalone/{chunk-PBXRUYD3.js → chunk-LIZUJ6AU.js} +1 -1
- package/dist/standalone/{chunk-KGQPMSNY.js → chunk-LQWEU5ZI.js} +1 -1
- package/dist/standalone/{chunk-EKXAE4PS.js → chunk-MAWEZEX6.js} +1 -1
- package/dist/standalone/{chunk-L7TFQUD7.js → chunk-MKH4V2DR.js} +1 -1
- package/dist/standalone/{chunk-2YDK4MZM.js → chunk-NMZ34D2Z.js} +1 -1
- package/dist/standalone/{chunk-4YVCKOYF.js → chunk-NNKVZBKP.js} +1 -1
- package/dist/standalone/{chunk-2M37OAK3.js → chunk-NTVQ4PWU.js} +1 -1
- package/dist/standalone/{chunk-HUL247LG.js → chunk-OG7AJWFV.js} +1 -1
- package/dist/standalone/{chunk-HLBZ7OAO.js → chunk-PPC2ESMI.js} +1 -1
- package/dist/standalone/{chunk-KZXSJF7K.js → chunk-PTL32GA6.js} +1 -1
- package/dist/standalone/{chunk-5EIGSLIK.js → chunk-Q6VRHDZJ.js} +1 -1
- package/dist/standalone/{chunk-3OVQC66W.js → chunk-QJFCK6J4.js} +1 -1
- package/dist/standalone/{chunk-ELPLRD4S.js → chunk-SKK6PGQ3.js} +1 -1
- package/dist/standalone/{chunk-3YCWRKSW.js → chunk-SKMAKUOG.js} +1 -1
- package/dist/standalone/{chunk-NP6CBOPK.js → chunk-SQ3M7JDP.js} +1 -1
- package/dist/standalone/{chunk-375GZTYC.js → chunk-TS4CMM2L.js} +1 -1
- package/dist/standalone/{chunk-CVJDEN5L.js → chunk-UYW53K2N.js} +1 -1
- package/dist/standalone/{chunk-LYWT6GTX.js → chunk-VJGP3BTD.js} +1 -1
- package/dist/standalone/{chunk-FYAUOSTX.js → chunk-W6UUGZH7.js} +1 -1
- package/dist/standalone/{chunk-P3ML7HGE.js → chunk-WLMTK3FN.js} +1 -1
- package/dist/standalone/{chunk-AQG5OGO4.js → chunk-WMKSIEJP.js} +1 -1
- package/dist/standalone/{chunk-CXXCVBMK.js → chunk-WODOEE2A.js} +1 -1
- package/dist/standalone/{chunk-U5UEDY4E.js → chunk-Y34WXKCA.js} +1 -1
- package/dist/standalone/{chunk-2OSZRVNW.js → chunk-YDFZA3T4.js} +1 -1
- package/dist/standalone/{chunk-IXCSVK2Z.js → chunk-Z3AINTU6.js} +1 -1
- package/dist/standalone/{chunk-ERUKFS3I.js → chunk-ZLAVM2NT.js} +1 -1
- package/dist/standalone/{chunk-4MFQ4XEJ.js → chunk-ZQ7KYIN6.js} +1 -1
- package/dist/standalone/studio.js +1 -1
- package/package.json +3 -3
- package/dist/standalone/chunk-K5W5C237.js +0 -1
- package/dist/standalone/chunk-QFN62JQJ.js +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Yo}from"./chunk-AFLNQEZ5.js";import{a as Xa,b as Ja}from"./chunk-ZADOHFZB.js";import{a as en,d as tn}from"./chunk-CL3JOU6F.js";import{a as fa}from"./chunk-ERUKFS3I.js";import{a as Ut,b as Jt,c as eo,d as to,e as oo,f as Za,g as $o,h as Go}from"./chunk-IQ5CIBXJ.js";import{$ as Bo,A as Ba,B as Io,C as _o,D as Fa,E as Kt,G as Zt,J as qt,K as Ao,L as Wt,M as $t,O as Vo,P as ja,Q as za,R as Gt,S as Qt,T as Yt,U as Xt,V as Ho,W as Te,Y as Ka,Z as Ua,_ as Lo,b as Ta,ca as Fo,da as jo,fa as zo,j as jt,k as zt,l as Ma,la as Ko,m as Ia,ma as Uo,n as _a,na as Zo,o as Aa,oa as qo,p as kr,pa as qa,q as Oo,qa as Wa,ra as Wo,s as Do,sa as $a,t as Va,u as Mo,y as Ha,z as La}from"./chunk-YNCZVYCO.js";import{a as Qo}from"./chunk-Y5QMX4YG.js";import{c as Ga,h as Qa,k as Or}from"./chunk-2NUCBQFU.js";import{a as wr}from"./chunk-W5BTAOHO.js";import{a as ta,b as oa,h as ra,i as io,j as Nr,k as aa,l as na,m as sa,n as ia,o as la}from"./chunk-7WGZSDRS.js";import{i as ko}from"./chunk-2D4WBSDO.js";import{C as wa,D as Ea,H as ka,I as Bt,M as K,N as ne,b as he,e as uo,f as Ca,l as Ra,m as mo,o as Ht,p as Sa,q as Lt,r as Oe,s as Na}from"./chunk-4SY2N2RS.js";import{a as ea}from"./chunk-4AG356VE.js";import{a as Tr}from"./chunk-CBTPJPCZ.js";import{c as ke}from"./chunk-SCTYLLJT.js";import{e as Eo,f as ba,u as xa,v as Ce}from"./chunk-OZID3UYF.js";import{a as Ya}from"./chunk-HMMALUXM.js";import{a as Er,b as Ft}from"./chunk-BHUWAGFN.js";import{b as co,d as X,g as po,i as ya,j as B}from"./chunk-L27FKJTG.js";import{a as ua,b as ma}from"./chunk-NFI2TNKU.js";import{a as Oa,b as Da}from"./chunk-EOFWXI3T.js";import{a as lo,b as pa}from"./chunk-LRUYEVHH.js";import{n as wo}from"./chunk-QFN62JQJ.js";import{a as Pa}from"./chunk-ZPQBVYNN.js";import{A as va,B as ue,b as Rr,j as To,s as Ee,v as ca,w as da,x as q,y as ga,z as ha}from"./chunk-2ZJJH4YN.js";import{a as Sr}from"./chunk-A6TVTNKO.js";import{a as A,b as le}from"./chunk-ADABTCDI.js";import{a as s,c as Cr,d as T}from"./chunk-5PEAXTYQ.js";var M=T(Sr(),1);var Pe=T(A(),1),E=T(A(),1);var n=T(le(),1);var on=T(A(),1),we=T(le(),1);var ni={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},si={overflow:"auto",whiteSpace:"pre-wrap"},Xo=class extends on.Component{static{s(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=s(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:a}=this.props,{error:i}=this.state;if(i===null)return(0,we.jsx)(we.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,we.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:ni,children:[(0,we.jsx)("strong",{children:l}),(0,we.jsx)("pre",{"data-testid":"dash-error-message",style:si,children:i.message}),(0,we.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:a??"Try again"})]})}};var Ie={};Cr(Ie,{Arrow:()=>Pn,Backdrop:()=>Rn,Close:()=>kn,Description:()=>wn,Handle:()=>vo,Popup:()=>xn,Portal:()=>fn,Positioner:()=>gn,Root:()=>dn,Title:()=>Nn,Trigger:()=>pn,Viewport:()=>Dn,createHandle:()=>Mn});var fo=T(A(),1);var Jo=T(A(),1);var Dr=Jo.createContext(void 0);function J(t){let e=Jo.useContext(Dr);if(e===void 0&&!t)throw new Error(X(47));return e}s(J,"usePopoverRootContext");var er=T(A(),1),rn=T(ea(),1);var an={...eo,disabled:s(t=>t.disabled,"disabled"),instantType:s(t=>t.instantType,"instantType"),openMethod:s(t=>t.openMethod,"openMethod"),openChangeReason:s(t=>t.openChangeReason,"openChangeReason"),modal:s(t=>t.modal,"modal"),focusManagerModal:s(t=>t.focusManagerModal,"focusManagerModal"),stickIfOpen:s(t=>t.stickIfOpen,"stickIfOpen"),titleElementId:s(t=>t.titleElementId,"titleElementId"),descriptionElementId:s(t=>t.descriptionElementId,"descriptionElementId"),openOnHover:s(t=>t.openOnHover,"openOnHover"),closeDelay:s(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:s(t=>t.adaptiveOrigin,"adaptiveOrigin")},tr=class extends Zt{static{s(this,"PopoverStore")}constructor(e,o,r){let a=new Te;super(sn(e,a,o,r),ln(a),an)}setOpen=s((e,o)=>{let r=o.reason===K.triggerHover,a=o.reason===K.triggerPress&&o.event.detail===0,i=!e&&(o.reason===K.escapeKey||o.reason==null),l=ja(o),d=this.select("activeTriggerId");if(!e&&o.reason===K.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=s(()=>{let u=Vo(this.state,e,o.trigger,l());u.openChangeReason=o.reason,this.update(u)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),rn.flushSync(p)):p();let c;a?c="click":i?c="dismiss":o.reason===K.focusOut&&(c="focus"),this.set("instantType",c)},"setOpen")};function nn(){let t=new Te,e=new oo(Object.freeze(sn(void 0,t)),Object.freeze(ln(t)),an);return Object.assign(e,{setOpen:po})}s(nn,"createNullPopoverStore");function sn(t,e,o,r=!1){let a={...Jt(e,o,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...t};return a.open&&t?.mounted===void 0&&(a.mounted=!0),a}s(sn,"createInitialState");function ln(t){return{popupRef:er.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:er.createRef(),beforeContentFocusGuardRef:er.createRef(),stickIfOpenTimeout:new wa,triggerElements:t}}s(ln,"createInitialContext");var De=T(le(),1);var cn=jt(s(function({props:e}){let{children:o,open:r,defaultOpen:a=!1,onOpenChange:i,onOpenChangeComplete:l,modal:d=!1,handle:p,triggerId:c,defaultTriggerId:u=null}=e,f=ii(p,{modal:d,open:a,openProp:r,activeTriggerId:u,triggerIdProp:c});f.useControlledProp("openProp",r),f.useControlledProp("triggerIdProp",c);let b=f.useState("open"),g=f.useState("mounted"),m=f.useState("payload");f.useContextCallback("onOpenChange",i),f.useContextCallback("onOpenChangeComplete",l),Ho(f,b),Qt(f);let{forceUnmount:x}=Yt(b,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:d}),fo.useEffect(()=>{b||f.context.stickIfOpenTimeout.clear()},[f,b]),fo.useImperativeHandle(e.actionsRef,()=>({unmount:x,close:s(()=>f.setOpen(!1,ne(K.imperativeAction)),"close")}),[x,f]);let h=b||g;return(0,De.jsxs)(Dr.Provider,{value:f,children:[p&&(0,De.jsx)($t,{handle:p,store:f}),h&&(0,De.jsx)(li,{store:f,modal:d}),typeof o=="function"?o({payload:m}):o]})},"PopoverRootComponent"));function dn(t){return J(!0)?(0,De.jsx)(cn,{props:t}):(0,De.jsx)(Ba,{children:(0,De.jsx)(cn,{props:t})})}s(dn,"PopoverRoot");function ii(t,e){let o=Wt((r,a)=>new tr(e,r,a));return fo.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o}s(ii,"usePopoverRootStore");function li({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Kt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),a=r.reference,i=r.floating;return Xt(t,{activeTriggerProps:a,inactiveTriggerProps:a,popupProps:i}),null}s(li,"PopoverInteractions");var go=T(A(),1);var ro=T(le(),1);var pn=zt(s(function(e,o){let{render:r,className:a,style:i,disabled:l=!1,nativeButton:d=!0,handle:p,payload:c,openOnHover:u=!1,delay:f=300,closeDelay:b=0,id:g,...m}=e,x=J(!0),v=to(p)??x;if(!v)throw new Error(X(74));let P=he(g),y=v.useState("isTriggerActive",P),R=v.useState("floatingRootContext"),C=v.useState("isOpenedByTrigger",P),w=v.useState("triggerPopupId",P),S=go.useRef(null),{registerTrigger:N,isMountedByThisTrigger:k}=Gt(P,S,v,{payload:c,disabled:l,openOnHover:u,closeDelay:b}),O=v.useState("openChangeReason"),_=v.useState("stickIfOpen"),H=v.useState("openMethod"),V=v.useState("focusManagerModal"),L=Bo(R,{enabled:!l&&u&&(H!=="touch"||O!==K.triggerPress),mouseOnly:!0,move:!1,handleClose:Fo(),restMs:f,delay:{close:b},triggerElementRef:S,isActiveTrigger:y,isClosing:s(()=>v.select("transitionStatus")==="ending","isClosing")}),F=_o(R,{stickIfOpen:_}),j=jo(()=>v.select("open"),Y=>{v.set("openMethod",Y)}),U=v.useState("triggerProps",k),{getButtonProps:z,buttonRef:D}=ke({disabled:l,native:d}),I={open(Y){return Y&&O===K.triggerPress?Sa.open(Y):Ht.open(Y)}},{preFocusGuardRef:W,handlePreFocusGuardFocus:$,handleFocusTargetFocus:ie}=Za(v,S),re=B("button",e,{state:{disabled:l,open:C},ref:[D,o,N,S],props:[F.reference,L,U,j,{[Oo]:"",id:P,"aria-haspopup":"dialog","aria-expanded":C,"aria-controls":w},m,z],stateAttributesMapping:I}),ee=(0,ro.jsx)(go.Fragment,{children:re},P);return k&&!V?(0,ro.jsxs)(go.Fragment,{children:[(0,ro.jsx)(kr,{ref:W,onFocus:$}),ee,(0,ro.jsx)(kr,{ref:v.context.triggerFocusTargetRef,onFocus:ie})]}):ee},"PopoverTrigger"));var mn=T(A(),1);var or=T(A(),1);var Mr=or.createContext(void 0);function un(){let t=or.useContext(Mr);if(t===void 0)throw new Error(X(45));return t}s(un,"usePopoverPortalContext");var Ir=T(le(),1);var fn=mn.forwardRef(s(function(e,o){let{keepMounted:r=!1,...a}=e;return J().useState("mounted")||r?(0,Ir.jsx)(Mr.Provider,{value:r,children:(0,Ir.jsx)(Mo,{ref:o,...a})}):null},"PopoverPortal"));var ar=T(A(),1);var rr=T(A(),1);var _r=rr.createContext(void 0);function ao(){let t=rr.useContext(_r);if(!t)throw new Error(X(46));return t}s(ao,"usePopoverPositionerContext");var ho=T(le(),1);var gn=ar.forwardRef(s(function(e,o){let{render:r,className:a,style:i,anchor:l,positionMethod:d,side:p,align:c,sideOffset:u,alignOffset:f,collisionBoundary:b="clipping-ancestors",collisionPadding:g,arrowPadding:m,sticky:x,disableAnchorTracking:h=!1,collisionAvoidance:v=Do,...P}=e,y=J(),R=un(),C=Ha(),w=y.useState("floatingRootContext"),S=y.useState("mounted"),N=y.useState("open"),k=y.useState("openChangeReason"),O=y.useState("activeTriggerElement"),_=y.useState("modal"),H=y.useState("openMethod"),V=y.useState("positionerElement"),L=y.useState("instantType"),F=y.useState("transitionStatus"),j=y.useState("adaptiveOrigin"),U=ar.useRef(null),z=ka(V),D=Ko({anchor:l,floatingRootContext:w,positionMethod:d,mounted:S,side:p,sideOffset:u,align:c,alignOffset:f,arrowPadding:m,collisionBoundary:b,collisionPadding:g,sticky:x,disableAnchorTracking:h,keepMounted:R,nodeId:C,collisionAvoidance:v,adaptiveOrigin:j}),I=w.useState("domReferenceElement");Ce(()=>{let re=I,ee=U.current;if(re&&(U.current=re),ee&&re&&re!==ee){y.set("instantType",void 0);let Y=new AbortController;return z(()=>{y.set("instantType","trigger-change")},Y.signal),()=>{Y.abort()}}},[I,z,y]);let W=_===!0&&k!==K.triggerHover;Wa(N&&W,H==="touch",V,O);let $=y.useStateSetter("positionerElement"),ie={open:N,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:L},oe=qo(e,ie,{styles:D.positionerStyles,transitionStatus:F,props:P,refs:[o,$],hidden:!S,inert:!N});return(0,ho.jsxs)(_r.Provider,{value:D,children:[S&&W&&(0,ho.jsx)(Uo,{inert:zo(!N),cutout:O}),(0,ho.jsx)(La,{id:C,children:oe})]})},"PopoverPositioner"));var bn=T(A(),1);var Me=T(A(),1);var Ar=Me.createContext(void 0);function hn(){let[t,e]=Me.useState(0),o=xa(()=>(e(a=>a+1),()=>{e(a=>Math.max(0,a-1))}));return{context:Me.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}s(hn,"useClosePartCount");function vn(){let t=Me.useContext(Ar);Ce(()=>t?.register(),[t])}s(vn,"useClosePartRegistration");var Vr=T(le(),1);var xn=bn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,initialFocus:l,finalFocus:d,...p}=e,c=J(),u=ao(),f=$a(!0)!=null,{context:b,hasClosePart:g}=hn(),m=c.useState("open"),x=c.useState("openMethod"),h=c.useState("instantType"),v=c.useState("transitionStatus"),P=c.useState("popupProps"),y=c.useState("titleElementId"),R=c.useState("descriptionElementId"),C=c.useState("modal"),w=c.useState("mounted"),S=c.useState("openChangeReason"),N=c.useState("activeTriggerElement"),k=c.useState("floatingRootContext"),O=k.useState("floatingId"),_=c.useState("disabled"),H=c.useState("openOnHover"),V=c.useState("closeDelay");Bt({open:m,ref:c.context.popupRef,onComplete(){m&&c.context.onOpenChangeComplete?.(!0)}}),Lo(k,{enabled:H&&!_,closeDelay:V});let L=l===void 0?Ao(c.context.popupRef):l,F=C!==!1&&g;c.useSyncedValue("focusManagerModal",F);let j=c.useStateSetter("popupElement"),U={open:m,side:u.side,align:u.align,instant:h,transitionStatus:v},z=B("div",e,{state:U,ref:[o,c.context.popupRef,j],props:[P,{id:O,role:"dialog",...qt,"aria-labelledby":y,"aria-describedby":R,onKeyDown(D){f&&Wo.has(D.key)&&D.stopPropagation()}},Zo(v),p],stateAttributesMapping:Oe});return(0,Vr.jsx)(Io,{context:k,openInteractionType:x,modal:F,disabled:!w||S===K.triggerHover,initialFocus:L,returnFocus:d,restoreFocus:"popup",previousFocusableElement:ba(N)?N:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Vr.jsx)(Ar.Provider,{value:b,children:z})})},"PopoverPopup"));var yn=T(A(),1);var Pn=yn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,p=J().useState("open"),{arrowRef:c,side:u,align:f,arrowUncentered:b,arrowStyles:g}=ao();return B("div",e,{state:{open:p,side:u,align:f,uncentered:b},ref:[o,c],props:[{style:g,"aria-hidden":!0},l],stateAttributesMapping:Lt})},"PopoverArrow"));var Cn=T(A(),1);var Rn=Cn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=J(),p=d.useState("open"),c=d.useState("mounted"),u=d.useState("transitionStatus"),f=d.useState("openChangeReason");return B("div",e,{state:{open:p,transitionStatus:u},ref:o,props:[{role:"presentation",hidden:!c,style:{pointerEvents:f===K.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:Oe})},"PopoverBackdrop"));var Sn=T(A(),1);var Nn=Sn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=J(),p=he(l.id);return d.useSyncedValueWithCleanup("titleElementId",p),B("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var Tn=T(A(),1);var wn=Tn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=J(),p=he(l.id);return d.useSyncedValueWithCleanup("descriptionElementId",p),B("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var En=T(A(),1);var kn=En.forwardRef(s(function(e,o){let{render:r,className:a,style:i,disabled:l=!1,nativeButton:d=!0,...p}=e,{buttonRef:c,getButtonProps:u}=ke({disabled:l,focusableWhenDisabled:!1,native:d}),f=J();return vn(),B("button",e,{ref:[o,c],props:[{onClick(g){f.setOpen(!1,ne(K.closePress,g.nativeEvent))}},p,u]})},"PopoverClose"));var On=T(A(),1);var Dn=On.forwardRef(s(function(e,o){let{render:r,className:a,style:i,children:l,...d}=e,p=J(),{side:c}=ao(),u=p.useState("instantType"),{children:f,state:b}=Go({store:p,side:c,children:l}),g={activationDirection:b.activationDirection,transitioning:b.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[d,{children:f}],stateAttributesMapping:$o})},"PopoverViewport"));var vo=class extends Ut{static{s(this,"PopoverHandle")}constructor(){super(nn(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Mn(){return new vo}s(Mn,"createPopoverHandle");var ce={};Cr(ce,{Backdrop:()=>_n,Close:()=>Vn,Description:()=>Ln,Handle:()=>yo,Popup:()=>Kn,Portal:()=>Zn,Root:()=>Jn,Title:()=>rs,Trigger:()=>ns,Viewport:()=>ts,createHandle:()=>ss});var In=T(A(),1);var nr=T(A(),1);var Hr=nr.createContext(void 0);function se(t){let e=nr.useContext(Hr);if(!t&&e===void 0)throw new Error(X(27));return e}s(se,"useDialogRootContext");var _n=In.forwardRef(s(function(e,o){let{render:r,className:a,style:i,forceRender:l=!1,...d}=e,p=se(),c=p.useState("open"),u=p.useState("nested"),f=p.useState("mounted"),b=p.useState("transitionStatus");return B("div",e,{state:{open:c,transitionStatus:b},ref:[p.context.backdropRef,o],stateAttributesMapping:Oe,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!u})},"DialogBackdrop"));var An=T(A(),1);var Vn=An.forwardRef(s(function(e,o){let{render:r,className:a,style:i,disabled:l=!1,nativeButton:d=!0,...p}=e,c=se(),u=c.useState("open"),{getButtonProps:f,buttonRef:b}=ke({disabled:l,native:d}),g={disabled:l};function m(x){u&&c.setOpen(!1,ne(K.closePress,x.nativeEvent))}return s(m,"handleClick"),B("button",e,{state:g,ref:[o,b],props:[{onClick:m},p,f]})},"DialogClose"));var Hn=T(A(),1);var Ln=Hn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,id:l,...d}=e,p=se(),c=he(l);return p.useSyncedValueWithCleanup("descriptionElementId",c),B("p",e,{ref:o,props:[{id:c},d]})},"DialogDescription"));var jn=T(A(),1);var sr=T(A(),1);var Lr=sr.createContext(void 0);function ir(){let t=sr.useContext(Lr);if(t===void 0)throw new Error(X(26));return t}s(ir,"useDialogPortalContext");var Bn="--nested-dialogs";var Uu=mo.open,Zu=mo.closed,qu=mo.startingStyle,Wu=mo.endingStyle;var Fn="data-nested-dialog-open";var lr={...Lt,...Ra,nestedDialogOpen(t){return t?{[Fn]:""}:null}};var zn=T(le(),1);var Kn=jn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,finalFocus:l,initialFocus:d,...p}=e,c=se(),u=c.useState("descriptionElementId"),f=c.useState("disablePointerDismissal"),b=c.useState("floatingRootContext"),g=c.useState("popupProps"),m=c.useState("modal"),x=c.useState("mounted"),h=c.useState("nested"),v=c.useState("nestedOpenDialogCount"),P=c.useState("open"),y=c.useState("openMethod"),R=c.useState("titleElementId"),C=c.useState("transitionStatus"),w=c.useState("role"),S=b.useState("floatingId");ir(),Bt({open:P,ref:c.context.popupRef,onComplete(){P&&c.context.onOpenChangeComplete?.(!0)}});let N=d===void 0?Ao(c.context.popupRef):d,k=v>0,O=c.useStateSetter("popupElement"),H=B("div",e,{state:{open:P,nested:h,transitionStatus:C,nestedDialogOpen:k},props:[g,{id:S,"aria-labelledby":R,"aria-describedby":u,role:w,...qt,hidden:!x,onKeyDown(V){Wo.has(V.key)&&V.stopPropagation()},style:{[Bn]:v}},p],ref:[o,c.context.popupRef,O],stateAttributesMapping:lr});return(0,zn.jsx)(Io,{context:b,openInteractionType:y,disabled:!x,closeOnFocusOut:!f,initialFocus:N,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:H})},"DialogPopup"));var Un=T(A(),1);var bo=T(le(),1);var Zn=Un.forwardRef(s(function(e,o){let{keepMounted:r=!1,...a}=e,i=se(),l=i.useState("mounted"),d=i.useState("modal"),p=i.useState("open");return l||r?(0,bo.jsx)(Lr.Provider,{value:r,children:(0,bo.jsxs)(Mo,{ref:o,...a,children:[l&&d===!0&&(0,bo.jsx)(Uo,{ref:i.context.internalBackdropRef,inert:zo(!p)}),e.children]})}):null},"DialogPortal"));var Yn=T(A(),1);var Br=T(A(),1);function qn({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),a=t.useState("disablePointerDismissal"),i=t.useState("modal"),l=t.useState("popupElement"),d=t.useState("floatingRootContext"),[p,c]=Br.useState(0),[u,f]=Br.useState(0),b=p===0,g=Kt(d,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:i==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!t.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0)return!1;if("touches"in m){if(m.type==="touchend"){if(m.changedTouches.length!==1||m.touches.length!==0)return!1}else if(m.touches.length!==1)return!1}let x=Ca(m);if(b&&!a){if(i){let h=t.context.internalBackdropRef.current,v=t.context.backdropRef.current;return h||v?h===x||v===x||uo(x,l)&&!x?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:b});return qa(r&&i===!0,l),t.useContextCallback("onNestedDialogOpen",(m,x)=>{c(m),f(x)}),Ce(()=>(e?.onNestedDialogOpen&&(r?e.onNestedDialogOpen(p+1,u+(o?1:0)):e.onNestedDialogOpen(0,0)),()=>{e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(0,0)}),[o,r,p,u,e]),Xt(t,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}s(qn,"DialogInteractions");var cr=T(A(),1);var Wn={...eo,modal:s(t=>t.modal,"modal"),nested:s(t=>t.nested,"nested"),nestedOpenDialogCount:s(t=>t.nestedOpenDialogCount,"nestedOpenDialogCount"),nestedOpenDrawerCount:s(t=>t.nestedOpenDrawerCount,"nestedOpenDrawerCount"),disablePointerDismissal:s(t=>t.disablePointerDismissal,"disablePointerDismissal"),openMethod:s(t=>t.openMethod,"openMethod"),descriptionElementId:s(t=>t.descriptionElementId,"descriptionElementId"),titleElementId:s(t=>t.titleElementId,"titleElementId"),viewportElement:s(t=>t.viewportElement,"viewportElement"),role:s(t=>t.role,"role")},dr=class extends Zt{static{s(this,"DialogStore")}constructor(e,o,r){let a=new Te,i=Gn(e,a,o,r);super(i,Qn(a),Wn)}setOpen=s((e,o)=>{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&&(this.state.floatingRootContext.dispatchOpenChange(e,o),this.update(Vo(this.state,e,o.trigger)))},"setOpen")};function $n(){let t=new Te;return new oo(Object.freeze(Gn(void 0,t)),Object.freeze(Qn(t)),Wn)}s($n,"createNullDialogStore");function Gn(t,e,o,r=!1){return{...Jt(e,o,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}s(Gn,"createInitialState");function Qn(t){return{popupRef:cr.createRef(),backdropRef:cr.createRef(),internalBackdropRef:cr.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:t,onOpenChange:void 0,onOpenChangeComplete:void 0}}s(Qn,"createInitialContext");var xo=T(le(),1);function Xn(t,e){let{children:o,open:r,defaultOpen:a=!1,onOpenChange:i,onOpenChangeComplete:l,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:c,handle:u,triggerId:f,defaultTriggerId:b=null}=e,g=t==="drawer",m=t==="alert-dialog",x=m?!0:p,h=m||d,v=m?"alertdialog":"dialog",P=se(!0),y=P!=null,R={modal:x,disablePointerDismissal:h,nested:y,role:v},C=Wt((_,H)=>new dr({open:a,openProp:r,activeTriggerId:b,triggerIdProp:f,...R},_,H),!0);C.useControlledProp("openProp",r),C.useControlledProp("triggerIdProp",f),C.useSyncedValues(R),C.useContextCallback("onOpenChange",i),C.useContextCallback("onOpenChangeComplete",l);let w=C.useState("open"),S=C.useState("mounted"),N=C.useState("payload");Ho(C,w),Qt(C);let{forceUnmount:k}=Yt(w,C);Yn.useImperativeHandle(c,()=>({unmount:k,close:s(()=>C.setOpen(!1,ne(K.imperativeAction)),"close")}),[k,C]);let O=w||S;return(0,xo.jsxs)(Hr.Provider,{value:C,children:[u&&(0,xo.jsx)($t,{handle:u,store:C}),O&&(0,xo.jsx)(qn,{store:C,parentContext:P?.context,isDrawer:g}),typeof o=="function"?o({payload:N}):o]})}s(Xn,"useRenderDialogRoot");var Jn=jt(s(function(e){return Xn("dialog",e)},"DialogRoot"));var es=T(A(),1);var ts=es.forwardRef(s(function(e,o){let{render:r,className:a,style:i,children:l,...d}=e,p=ir(),c=se(),u=c.useState("open"),f=c.useState("nested"),b=c.useState("transitionStatus"),g=c.useState("nestedOpenDialogCount"),m=c.useState("mounted"),x=c.useStateSetter("viewportElement"),h=g>0;return B("div",e,{enabled:p||m,state:{open:u,nested:f,transitionStatus:b,nestedDialogOpen:h},ref:[o,x],stateAttributesMapping:lr,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},d]})},"DialogViewport"));var os=T(A(),1);var rs=os.forwardRef(s(function(e,o){let{render:r,className:a,style:i,id:l,...d}=e,p=se(),c=he(l);return p.useSyncedValueWithCleanup("titleElementId",c),B("h2",e,{ref:o,props:[{id:c},d]})},"DialogTitle"));var as=T(A(),1);var ns=zt(s(function(e,o){let{render:r,className:a,style:i,disabled:l=!1,nativeButton:d=!0,id:p,payload:c,handle:u,...f}=e,b=se(!0),m=to(u)??b;if(!m)throw new Error(X(79));let x=he(p),h=m.useState("floatingRootContext"),v=m.useState("isOpenedByTrigger",x),P=m.useState("triggerPopupId",x),y=as.useRef(null),{registerTrigger:R,isMountedByThisTrigger:C}=Gt(x,y,m,{payload:c}),{getButtonProps:w,buttonRef:S}=ke({disabled:l,native:d}),N=_o(h),k=jo(()=>m.select("open"),H=>{m.set("openMethod",H)}),O={disabled:l,open:v},_=m.useState("triggerProps",C);return B("button",e,{state:O,ref:[S,o,R,y],props:[N.reference,_,k,{[Oo]:"",id:x,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":P},f,w],stateAttributesMapping:Ht})},"DialogTrigger"));var yo=class extends Ut{static{s(this,"DialogHandle")}constructor(){super($n(),"Dialog",!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let o=this.attachedStore;o!==null&&(o.set("payload",e),o.setOpen(!0,ne(K.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function ss(){return new yo}s(ss,"createDialogHandle");var Re={};Cr(Re,{Arrow:()=>Es,Handle:()=>Co,Popup:()=>Ts,Portal:()=>Cs,Positioner:()=>Ss,Provider:()=>Os,Root:()=>us,Trigger:()=>hs,Viewport:()=>Ms,createHandle:()=>Is});var no=T(A(),1);var pr=T(A(),1);var Fr=pr.createContext(void 0);function ye(t){let e=pr.useContext(Fr);if(e===void 0&&!t)throw new Error(X(72));return e}s(ye,"useTooltipRootContext");var is=T(A(),1);var ls={...eo,disabled:s(t=>t.disabled,"disabled"),instantType:s(t=>t.instantType,"instantType"),isInstantPhase:s(t=>t.isInstantPhase,"isInstantPhase"),trackCursorAxis:s(t=>t.trackCursorAxis,"trackCursorAxis"),disableHoverablePopup:s(t=>t.disableHoverablePopup,"disableHoverablePopup"),lastOpenChangeReason:s(t=>t.openChangeReason,"lastOpenChangeReason"),closeOnClick:s(t=>t.closeOnClick,"closeOnClick"),closeDelay:s(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:s(t=>t.adaptiveOrigin,"adaptiveOrigin")},ur=class extends Zt{static{s(this,"TooltipStore")}constructor(e,o,r){let a=new Te;super(ds(e,a,o,r),ps(a),ls)}setOpen=s((e,o)=>{za(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,ne(K.triggerPress,e))}};function cs(){let t=new Te,e=new oo(Object.freeze(ds(void 0,t)),Object.freeze(ps(t)),ls);return Object.assign(e,{setOpen:po,cancelPendingOpen:po})}s(cs,"createNullTooltipStore");function ds(t,e,o,r=!1){return{...Jt(e,o,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...t}}s(ds,"createInitialState");function ps(t){return{popupRef:is.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}s(ps,"createInitialContext");var Po=T(le(),1);var us=jt(s(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:a,disableHoverablePopup:i=!1,trackCursorAxis:l="none",actionsRef:d,onOpenChange:p,onOpenChangeComplete:c,handle:u,triggerId:f,defaultTriggerId:b=null,children:g}=e,m=Wt((_,H)=>new ur({open:r,openProp:a,activeTriggerId:b,triggerIdProp:f},_,H));m.useControlledProp("openProp",a),m.useControlledProp("triggerIdProp",f),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",c);let x=m.useState("open"),h=!o&&x,v=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:i,disabled:o}),Qt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:R,transitionStatus:C}=Yt(h,m),w=m.useState("isInstantPhase"),S=m.useState("instantType"),N=m.useState("lastOpenChangeReason"),k=no.useRef(null);Ce(()=>{x&&o&&m.setOpen(!1,ne(K.disabled))},[x,o,m]),Ce(()=>{C==="ending"&&N===K.none||C!=="ending"&&w?(S!=="delay"&&(k.current=S),m.set("instantType","delay")):k.current!==null&&(m.set("instantType",k.current),k.current=null)},[C,w,N,S,m]),Ce(()=>{h&&v==null&&m.set("payload",void 0)},[m,v,h]),no.useImperativeHandle(d,()=>({unmount:R,close:s(()=>m.setOpen(!1,ne(K.imperativeAction)),"close")}),[R,m]);let O=h||P||!o&&l!=="none";return(0,Po.jsxs)(Fr.Provider,{value:m,children:[u&&(0,Po.jsx)($t,{handle:u,store:m}),O&&(0,Po.jsx)(pi,{store:m,disabled:o,trackCursorAxis:l}),typeof g=="function"?g({payload:y}):g]})},"TooltipRoot"));function pi({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),a=Kt(r,{enabled:!e,referencePress:s(()=>t.select("closeOnClick"),"referencePress")}),i=Fa(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=no.useMemo(()=>co(i.reference,a.reference),[i.reference,a.reference]);return Xt(t,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:a.floating??ya}),null}s(pi,"TooltipInteractions");var fr=T(A(),1);var mr=T(A(),1);var jr=mr.createContext(void 0);function ms(){return mr.useContext(jr)}s(ms,"useTooltipProviderContext");var gs="data-base-ui-tooltip-trigger";function fs(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let a=o[r];if(Eo(a))return a}}let e=t.target;return Eo(e)?e:null}s(fs,"getTargetElement");function ui(t){let e=t;for(;e;){let o=e.closest(`[${gs}]`);if(o)return o;let r=e.getRootNode();e="host"in r&&Eo(r.host)?r.host:null}return null}s(ui,"closestEnabledTooltipTrigger");var hs=zt(s(function(e,o){let{render:r,className:a,style:i,handle:l,payload:d,disabled:p,delay:c,closeOnClick:u=!0,closeDelay:f,id:b,...g}=e,m=ye(!0),h=to(l)??m;if(!h)throw new Error(X(82));let v=he(b),P=h.useState("isTriggerActive",v),y=h.useState("isOpenedByTrigger",v),R=h.useState("floatingRootContext"),C=fr.useRef(null),w=f??0,{registerTrigger:S,isMountedByThisTrigger:N}=Gt(v,C,h,{payload:d,closeOnClick:u,closeDelay:w}),k=ms(),{activeIdRef:O,delayRef:_,isInstantPhase:H,hasProvider:V}=_a(R,{open:y}),L=Ua(R);h.useSyncedValue("isInstantPhase",H);let F=h.useState("disabled"),j=p??F,U=Aa(j),z=h.useState("trackCursorAxis"),D=h.useState("disableHoverablePopup"),I=fr.useRef(!1),W=Ea(),$=fr.useRef(void 0);function ie(){return V&&O.current!=null?0:c??k??600}s(ie,"getOpenDelay");function oe(Z){let G=C.current;if(!G||!Z)return!1;let te=ui(Z);return te!==null&&te!==G&&uo(G,te)}s(oe,"isEnabledNestedTriggerTarget");function re(Z){let G=oe(Z);return I.current=G,G&&(L.openChangeTimeout.clear(),L.restTimeout.clear(),L.restTimeoutPending=!1,W.clear()),G}s(re,"detectNestedTriggerHover");let ee=Bo(R,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!D&&z!=="both"?Fo():null,restMs:ie,delay(){return f==null&&V?{close:Ma(_.current,"close")}:{close:w}},triggerElementRef:C,isActiveTrigger:P,isClosing:s(()=>h.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!I.current}}),Y=Ka(R,{enabled:!j}).reference,be=s(Z=>{let G=I.current,te=fs(Z),xe=re(te),pe=C.current,ve=pe&&te&&uo(pe,te);if(xe&&h.select("open")&&h.select("lastOpenChangeReason")===K.triggerHover){h.setOpen(!1,ne(K.triggerHover,Z));return}if(G&&!xe&&ve&&!U.current&&!h.select("open")&&pe&&Ta($.current)){let Se=s(()=>{!I.current&&!U.current&&!h.select("open")&&h.setOpen(!0,ne(K.triggerHover,Z,pe))},"open"),Ne=ie();Ne===0?(W.clear(),Se()):W.start(Ne,Se)}},"handleNestedTriggerHover"),de=h.useState("triggerProps",N);return B("button",e,{state:{open:y},ref:[o,S,C],props:[ee,Y,N||z!=="none"?de:void 0,{onMouseOver(Z){be(Z.nativeEvent)},onFocus(Z){oe(fs(Z.nativeEvent))&&Z.preventBaseUIHandler()},onMouseLeave(){I.current=!1,W.clear(),$.current=void 0},onPointerEnter(Z){$.current=Z.pointerType},onPointerDown(Z){$.current=Z.pointerType,h.set("closeOnClick",u),u&&!h.select("open")&&h.cancelPendingOpen(Z.nativeEvent)},onClick(Z){u&&!h.select("open")&&h.cancelPendingOpen(Z.nativeEvent)},id:v,[Na]:j?"":void 0,[gs]:j?void 0:""},g],stateAttributesMapping:Ht})},"TooltipTrigger"));var Ps=T(A(),1);var gr=T(A(),1);var zr=gr.createContext(void 0);function vs(){let t=gr.useContext(zr);if(t===void 0)throw new Error(X(70));return t}s(vs,"useTooltipPortalContext");var hr=T(A(),1),bs=T(ea(),1);var xs=T(le(),1);var ys=hr.forwardRef(s(function(e,o){let{children:r,container:a,className:i,render:l,style:d,...p}=e,{node:c,subtree:u}=Va({container:a,ref:o,componentProps:e,elementProps:p});return!u&&!c?null:(0,xs.jsxs)(hr.Fragment,{children:[u,c&&bs.createPortal(r,c)]})},"FloatingPortalLite"));var Kr=T(le(),1);var Cs=Ps.forwardRef(s(function(e,o){let{keepMounted:r=!1,...a}=e;return ye().useState("mounted")||r?(0,Kr.jsx)(zr.Provider,{value:r,children:(0,Kr.jsx)(ys,{ref:o,...a})}):null},"TooltipPortal"));var br=T(A(),1);var vr=T(A(),1);var Ur=vr.createContext(void 0);function so(){let t=vr.useContext(Ur);if(t===void 0)throw new Error(X(71));return t}s(so,"useTooltipPositionerContext");var Rs=T(le(),1);var Ss=br.forwardRef(s(function(e,o){let{render:r,className:a,anchor:i,positionMethod:l="absolute",side:d="top",align:p="center",sideOffset:c=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:b=5,arrowPadding:g=5,sticky:m=!1,disableAnchorTracking:x=!1,collisionAvoidance:h=Do,style:v,...P}=e,y=ye(),R=vs(),C=y.useState("open"),w=y.useState("mounted"),S=y.useState("trackCursorAxis"),N=y.useState("disableHoverablePopup"),k=y.useState("floatingRootContext"),O=y.useState("instantType"),_=y.useState("transitionStatus"),H=y.useState("adaptiveOrigin"),V=Ko({anchor:i,positionMethod:l,floatingRootContext:k,mounted:w,side:d,sideOffset:c,align:p,alignOffset:u,collisionBoundary:f,collisionPadding:b,sticky:m,arrowPadding:g,disableAnchorTracking:x,keepMounted:R,collisionAvoidance:h,adaptiveOrigin:H}),L=br.useMemo(()=>({open:C,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:S!=="none"?"tracking-cursor":O}),[C,V.side,V.align,V.anchorHidden,S,O]),F=qo(e,L,{styles:V.positionerStyles,transitionStatus:_,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!w,inert:!C||S==="both"||N});return(0,Rs.jsx)(Ur.Provider,{value:V,children:F})},"TooltipPositioner"));var Ns=T(A(),1);var Ts=Ns.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=ye(),{side:p,align:c}=so(),u=d.useState("open"),f=d.useState("instantType"),b=d.useState("transitionStatus"),g=d.useState("popupProps"),m=d.useState("floatingRootContext"),x=d.useState("disabled"),h=d.useState("closeDelay");Bt({open:u,ref:d.context.popupRef,onComplete(){u&&d.context.onOpenChangeComplete?.(!0)}}),Lo(m,{enabled:!x,closeDelay:h});let v=d.useStateSetter("popupElement");return B("div",e,{state:{open:u,side:p,align:c,instant:f,transitionStatus:b},ref:[o,d.context.popupRef,v],props:[qt,g,Zo(b),l],stateAttributesMapping:Oe})},"TooltipPopup"));var ws=T(A(),1);var Es=ws.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=ye(),{arrowRef:p,side:c,align:u,arrowUncentered:f,arrowStyles:b}=so(),g=d.useState("open"),m=d.useState("instantType");return B("div",e,{state:{open:g,side:c,align:u,uncentered:f,instant:m},ref:[o,p],props:[{style:b,"aria-hidden":!0},l],stateAttributesMapping:Lt})},"TooltipArrow"));var ks=T(A(),1);var Zr=T(le(),1);var Os=s(function(e){let{delay:o,closeDelay:r,timeout:a=400}=e,i=ks.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Zr.jsx)(jr.Provider,{value:o,children:(0,Zr.jsx)(Ia,{delay:i,timeoutMs:a,children:e.children})})},"TooltipProvider");var Ds=T(A(),1);var Ms=Ds.forwardRef(s(function(e,o){let{render:r,className:a,style:i,children:l,...d}=e,p=ye(),c=so(),u=p.useState("instantType"),{children:f,state:b}=Go({store:p,side:c.side,children:l}),g={activationDirection:b.activationDirection,transitioning:b.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[d,{children:f}],stateAttributesMapping:$o})},"TooltipViewport"));var Co=class extends Ut{static{s(this,"TooltipHandle")}constructor(){super(cs(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Is(){return new Co}s(Is,"createTooltipHandle");var _s=T(Sr(),1);var As=T(le(),1);var mi=s((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?ha:ga(e,o),"I"),Vs=s(t=>{let e=(0,_s.c)(7),{catalogs:o,children:r,i18n:a,locale:i}=t,l;e[0]!==o||e[1]!==a||e[2]!==i?(l=mi(a,i,o),e[0]=o,e[1]=a,e[2]=i,e[3]=l):l=e[3];let d=l,p;return e[4]!==r||e[5]!==d?(p=(0,As.jsx)(va,{value:d,children:r}),e[4]=r,e[5]=d,e[6]=p):p=e[6],p},"S");var Wr=T(Sr(),1);var _e=T(A(),1);var ae=T(le(),1);var qr="lunora:command-palette",Hs=s(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(qr))},"ce"),fi=s(t=>{let e=(0,Wr.c)(18),{active:o,index:r,item:a,onActivate:i,onSelect:l}=t,d;e[0]!==a||e[1]!==l?(d=s(()=>{l(a)},"g"),e[0]=a,e[1]=l,e[2]=d):d=e[2];let p=d,c;e[3]!==r||e[4]!==i?(c=s(()=>{i(r)},"x"),e[3]=r,e[4]=i,e[5]=c):c=e[5];let u=c,f=o?"bg-accent text-accent-foreground":"text-foreground",b;e[6]!==f?(b=q("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",f),e[6]=f,e[7]=b):b=e[7];let g;e[8]!==a.label?(g=(0,ae.jsx)("span",{children:a.label}),e[8]=a.label,e[9]=g):g=e[9];let m;e[10]!==a.group?(m=(0,ae.jsx)("span",{className:"text-xs text-muted-foreground",children:a.group}),e[10]=a.group,e[11]=m):m=e[11];let x;return e[12]!==p||e[13]!==u||e[14]!==b||e[15]!==g||e[16]!==m?(x=(0,ae.jsx)("li",{children:(0,ae.jsxs)("button",{className:b,onClick:p,onMouseEnter:u,type:"button",children:[g,m]})}),e[12]=p,e[13]=u,e[14]=b,e[15]=g,e[16]=m,e[17]=x):x=e[17],x},"Y"),gi=s((t,e)=>{let o=e.trim().toLowerCase();return o===""?t:t.filter(r=>r.label.toLowerCase().includes(o)||r.group.toLowerCase().includes(o))},"Z"),Ls=s(t=>{let e=(0,Wr.c)(40),{items:o}=t,r=ue(),a=io(),{palette:i}=Yo(),[l,d]=(0,_e.useState)(!1),[p,c]=(0,_e.useState)(""),[u,f]=(0,_e.useState)(0),b=(0,_e.useRef)(null),g,m;e[0]!==i?(g=s(()=>{let D=s(W=>{if(!(W.metaKey||W.ctrlKey)||W.key.toLowerCase()!==i)return;let{target:$}=W;$ instanceof HTMLElement&&($.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes($.tagName))||(W.preventDefault(),d(!0))},"t"),I=s(()=>{d(!0)},"l");return globalThis.addEventListener("keydown",D),globalThis.addEventListener(qr,I),()=>{globalThis.removeEventListener("keydown",D),globalThis.removeEventListener(qr,I)}},"s"),m=[i],e[0]=i,e[1]=g,e[2]=m):(g=e[1],m=e[2]),(0,_e.useEffect)(g,m);let x;e[3]!==o||e[4]!==p?(x=gi(o,p),e[3]=o,e[4]=p,e[5]=x):x=e[5];let h=x,v;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=s(D=>{d(D),D||(c(""),f(0))},"I"),e[6]=v):v=e[6];let P=v,y;e[7]!==a?(y=s(D=>{if(P(!1),D.run!==void 0){D.run();return}D.to!==void 0&&Ee(a({to:D.to}))},"K"),e[7]=a,e[8]=y):y=e[8];let R=y,C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=s(D=>{c(D.target.value),f(0)},"P"),e[9]=C):C=e[9];let w=C,S;e[10]!==u||e[11]!==h||e[12]!==R?(S=s(D=>{e:switch(D.key){case"ArrowDown":{D.preventDefault(),f(I=>h.length===0?0:(I+1)%h.length);break e}case"ArrowUp":{D.preventDefault(),f(I=>h.length===0?0:(I-1+h.length)%h.length);break e}case"Enter":{D.preventDefault();let I=h[u];I!==void 0&&R(I);break e}}},"z"),e[10]=u,e[11]=h,e[12]=R,e[13]=S):S=e[13];let N=S,k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=(0,ae.jsx)(ce.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[14]=k):k=e[14];let O;e[15]!==r?(O=r("Command palette"),e[15]=r,e[16]=O):O=e[16];let _;e[17]!==O?(_=(0,ae.jsx)(ce.Title,{className:"sr-only",children:O}),e[17]=O,e[18]=_):_=e[18];let H;e[19]===Symbol.for("react.memo_cache_sentinel")?(H=(0,ae.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,ae.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,ae.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[19]=H):H=e[19];let V;e[20]!==r?(V=r("Search\u2026"),e[20]=r,e[21]=V):V=e[21];let L;e[22]!==N||e[23]!==p||e[24]!==V?(L=(0,ae.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[H,(0,ae.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:w,onKeyDown:N,placeholder:V,ref:b,type:"text",value:p})]}),e[22]=N,e[23]=p,e[24]=V,e[25]=L):L=e[25];let F;e[26]!==u||e[27]!==h||e[28]!==R||e[29]!==r?(F=h.length===0?(0,ae.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):h.map((D,I)=>(0,ae.jsx)(fi,{active:I===u,index:I,item:D,onActivate:f,onSelect:R},D.to??`${D.group}:${D.label}`)),e[26]=u,e[27]=h,e[28]=R,e[29]=r,e[30]=F):F=e[30];let j;e[31]!==F?(j=(0,ae.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:F}),e[31]=F,e[32]=j):j=e[32];let U;e[33]!==_||e[34]!==L||e[35]!==j?(U=(0,ae.jsxs)(ce.Portal,{children:[k,(0,ae.jsxs)(ce.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:b,children:[_,L,j]})]}),e[33]=_,e[34]=L,e[35]=j,e[36]=U):U=e[36];let z;return e[37]!==l||e[38]!==U?(z=(0,ae.jsx)(ce.Root,{onOpenChange:P,open:l,children:U}),e[37]=l,e[38]=U,e[39]=z):z=e[39],z},"de");var Us="(prefers-color-scheme: dark)",Zs=s(()=>{try{return globalThis.localStorage}catch{return}},"ts"),hi=s(t=>t==="system"||t==="light"||t==="dark","Ws"),qs=s(()=>globalThis.matchMedia,"ss"),Ws="lunora-studio-theme",$r=["system","light","dark"],vi=s((t="system")=>{try{let e=Zs()?.getItem(Ws);return hi(e)?e:t}catch{return t}},"Us"),Bs=s(t=>{let e=Zs();if(e!==void 0)try{e.setItem(Ws,t)}catch{}},"zt"),bi=s(()=>{try{return qs()?.(Us).matches?"dark":"light"}catch{return"light"}},"js"),xi=s((t,e)=>t==="system"?e:t,"Gs"),yi=s(t=>{let e;try{e=qs()?.(Us)}catch{e=void 0}if(e===void 0)return()=>{};let o=s(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"Qs"),Xr=(0,E.createContext)(null),Pi=s(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,E.useState)(()=>vi(e)),[a,i]=(0,E.useState)(()=>bi());(0,E.useEffect)(()=>yi(i),[]);let l=s(p=>{Bs(p),r(p)},"l"),d={cycleTheme:s(()=>{r(p=>{let c=$r[($r.indexOf(p)+1)%$r.length]??p;return Bs(c),c})},"cycleTheme"),resolvedTheme:xi(o,a),setTheme:l,systemTheme:a,theme:o};return(0,n.jsx)(Xr,{value:d,children:t})},"Ks"),Ci=s(t=>{let e=(0,M.c)(3),{children:o}=t,r=(0,E.use)(Xr),a;return e[0]!==o||e[1]!==r?(a=r===null?(0,n.jsx)(Pi,{children:o}):o,e[0]=o,e[1]=r,e[2]=a):a=e[2],a},"Ys"),Ri=s(()=>{let t=(0,E.use)(Xr);if(t===null)throw new Rr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"Js");function fh({delay:t=0,...e}){return(0,n.jsx)(Re.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}s(fh,"Xr");function Si(t){let e=(0,M.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,n.jsx)(Re.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Si,"Xs");function Ni(t){let e=(0,M.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,n.jsx)(Re.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Ni,"ea");function Ti({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:a=0,children:i,...l}){return(0,n.jsx)(Re.Portal,{children:(0,n.jsx)(Re.Positioner,{align:r,alignOffset:a,side:e,sideOffset:o,className:"isolate z-50",children:(0,n.jsxs)(Re.Popup,{"data-slot":"tooltip-content",className:q("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:[i,(0,n.jsx)(Re.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"})]})})})}s(Ti,"ta");var wi=s(t=>{let e=(0,M.c)(5),{className:o}=t,r;e[0]!==o?(r=q("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.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]=a):a=e[2];let i;return e[3]!==r?(i=(0,n.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:a}),e[3]=r,e[4]=i):i=e[4],i},"sa"),Ei=["lunora-deployment-pause"],$s=s(()=>{let t=(0,M.c)(9),e=wo(),o;t[0]!==e?(o=s(async()=>e.getDeploymentPause().catch(Oi),"s"),t[0]=e,t[1]=o):o=t[1];let r=pa(Ei,o),a;t[2]!==r?(a=s(()=>r.poll(),"r"),t[2]=r,t[3]=a):a=t[3],fa(a,!0);let i;t[4]!==r?(i=s(()=>{r.refetch()},"n"),t[4]=r,t[5]=i):i=t[5];let l;return t[6]!==r.data||t[7]!==i?(l={refetch:i,state:r.data},t[6]=r.data,t[7]=i,t[8]=l):l=t[8],l},"os"),ki=s(()=>{let t=(0,M.c)(34),e=wo(),o=ue(),{refetch:r,state:a}=$s(),[i,l]=(0,E.useState)(void 0);if(a?.paused!==!0)return null;let d;t[0]!==e||t[1]!==r?(d=s(async()=>{try{await e.setDeploymentPause(!1),l(void 0),r()}catch(C){l(To(C))}},"i"),t[0]=e,t[1]=r,t[2]=d):d=t[2];let p=d,c;t[3]!==o?(c=o("Deployment paused"),t[3]=o,t[4]=c):c=t[4];let u;t[5]!==c?(u=(0,n.jsx)("strong",{children:c}),t[5]=c,t[6]=u):u=t[6];let f;t[7]!==a.pausedAt?(f=a.pausedAt!==void 0&&(0,n.jsx)("span",{className:"text-muted-foreground tabular-nums",children:da(a.pausedAt,"")}),t[7]=a.pausedAt,t[8]=f):f=t[8];let b;t[9]!==a.reason?(b=a.reason!==void 0&&(0,n.jsx)("span",{"data-testid":"deployment-paused-reason",children:a.reason}),t[9]=a.reason,t[10]=b):b=t[10];let g;t[11]!==o?(g=o("Function calls get 503, scheduled jobs are held on every scheduler instance, cron ticks are skipped and queue messages are held until you resume."),t[11]=o,t[12]=g):g=t[12];let m;t[13]!==g?(m=(0,n.jsx)("span",{className:"text-muted-foreground",children:g}),t[13]=g,t[14]=m):m=t[14];let x;t[15]!==i?(x=i!==void 0&&(0,n.jsx)("span",{className:"text-destructive",children:i}),t[15]=i,t[16]=x):x=t[16];let h;t[17]!==o?(h=o("Resume deployment?"),t[17]=o,t[18]=h):h=t[18];let v;t[19]!==p?(v=s(()=>{Ee(p())},"b"),t[19]=p,t[20]=v):v=t[20];let P;t[21]!==o?(P=o("Resume"),t[21]=o,t[22]=P):P=t[22];let y;t[23]!==P||t[24]!==h||t[25]!==v?(y=(0,n.jsx)("span",{className:"ml-auto",children:(0,n.jsx)(wr,{confirmLabel:h,onConfirm:v,testId:"deployment-resume",children:P})}),t[23]=P,t[24]=h,t[25]=v,t[26]=y):y=t[26];let R;return t[27]!==y||t[28]!==u||t[29]!==f||t[30]!==b||t[31]!==m||t[32]!==x?(R=(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-destructive/30 bg-destructive/10 px-6 py-2 text-[12px] text-foreground","data-testid":"deployment-paused-banner",role:"alert",children:[u,f,b,m,x,y]}),t[27]=y,t[28]=u,t[29]=f,t[30]=b,t[31]=m,t[32]=x,t[33]=R):R=t[33],R},"oa"),gh=s(()=>{let t=wo(),e=ue(),{refetch:o,state:r}=$s(),[a,i]=(0,E.useState)(""),[l,d]=(0,E.useState)(void 0);if(r?.supported!==!0)return null;let p=s(async c=>{try{await t.setDeploymentPause(c,c&&a!==""?a:void 0),d(void 0),o()}catch(u){d(To(u))}},"d");return(0,n.jsxs)("div",{className:"flex items-center gap-2","data-testid":"deployment-pause-toggle",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground","data-testid":"deployment-pause-state",children:r.paused?e("Deployment paused"):e("Deployment running")}),!r.paused&&(0,n.jsx)(ko,{"aria-label":e("Reason (optional)"),className:"h-8 w-56","data-testid":"deployment-pause-reason",onChange:s(c=>{i(c.target.value)},"onChange"),placeholder:e("Reason (optional)"),value:a}),(0,n.jsx)(wr,{confirmLabel:r.paused?e("Resume deployment?"):e("Pause deployment?"),onConfirm:s(()=>{Ee(p(!r.paused))},"onConfirm"),testId:r.paused?"deployment-toggle-resume":"deployment-toggle-pause",children:r.paused?e("Resume"):e("Pause")}),l!==void 0&&(0,n.jsx)("span",{className:"text-xs text-destructive",role:"alert",children:l})]})},"en");function Oi(t){if(To(t).includes("(status 404"))return{paused:!1,supported:!1};throw t}s(Oi,"ra");var Gs="lunora.studio.rulesBannerDismissed",Di=s(()=>{try{return globalThis.localStorage.getItem(Gs)==="1"}catch{return!1}},"na"),Mi=s(()=>{try{globalThis.localStorage.setItem(Gs,"1")}catch{}},"la"),Ii=s(()=>{let t=(0,M.c)(18),e=ue(),[o,r]=(0,E.useState)(_i),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=s(()=>{r(!0),Mi()},"r"),t[0]=a):a=t[0];let i=a;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.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,n.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,n.jsxs)("span",{children:[d," ",p," ",c]}),t[7]=d,t[8]=c,t[9]=u):u=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let b;t[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.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,n.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=b):b=t[12];let g;t[13]!==f?(g=(0,n.jsx)("button",{"aria-label":f,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:i,type:"button",children:b}),t[13]=f,t[14]=g):g=t[14];let m;return t[15]!==u||t[16]!==g?(m=(0,n.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,g]}),t[15]=u,t[16]=g,t[17]=m):m=t[17],m},"ia");function _i(){return Di()}s(_i,"da");function Qs(t){let e=(0,M.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,n.jsx)(Ie.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Qs,"ns");function Ys(t){let e=(0,M.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,n.jsx)(Ie.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Ys,"ls");function Xs({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:a="bottom",sideOffset:i=6,...l}){return(0,n.jsx)(Ie.Portal,{keepMounted:r,children:(0,n.jsx)(Ie.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:a,sideOffset:i,children:(0,n.jsx)(Ie.Popup,{className:q("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})})})}s(Xs,"is");var Gr=768;function Ai(){let t=(0,M.c)(2),[e,o]=(0,E.useState)(void 0),r,a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s(()=>{let i=globalThis.matchMedia(`(max-width: ${Gr-1}px)`),l=s(()=>{o(globalThis.innerWidth<Gr)},"l");return i.addEventListener("change",l),o(globalThis.innerWidth<Gr),()=>{i.removeEventListener("change",l)}},"a"),a=[],t[0]=r,t[1]=a):(r=t[0],a=t[1]),(0,E.useEffect)(r,a),!!e}s(Ai,"ca");function Vi(t){let e=(0,M.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,n.jsx)(ce.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Vi,"ua");function Hi(t){let e=(0,M.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,n.jsx)(ce.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Hi,"ma");function Li(t){let e=(0,M.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 a;e[3]!==o?(a=q("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]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)(ce.Backdrop,{"data-slot":"sheet-overlay",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Li,"fa");function Bi({className:t,children:e,side:o="right",showCloseButton:r=!0,...a}){return(0,n.jsxs)(Hi,{children:[(0,n.jsx)(Li,{}),(0,n.jsxs)(ce.Popup,{"data-slot":"sheet-content","data-side":o,className:q("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),...a,children:[e,r&&(0,n.jsxs)(ce.Close,{"data-slot":"sheet-close",render:(0,n.jsx)(Tr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,n.jsx)(Or,{icon:Ga,strokeWidth:2}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}s(Bi,"pa");function Fi(t){let e=(0,M.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 a;e[3]!==o?(a=q("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sheet-header",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Fi,"ha");function ji(t){let e=(0,M.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 a;e[3]!==o?(a=q("text-sm font-medium text-foreground",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)(ce.Title,{"data-slot":"sheet-title",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(ji,"ga");function zi(t){let e=(0,M.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 a;e[3]!==o?(a=q("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)(ce.Description,{"data-slot":"sheet-description",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(zi,"ba");var Ki="sidebar_state",Ui=3600*24*7,Zi="16rem",qi="18rem",Wi="3rem",$i="b",Js=Pe.createContext(null);function xr(){let t=Pe.useContext(Js);if(!t)throw new Rr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}s(xr,"Mt");function Gi({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:a,children:i,...l}){let d=Ai(),[p,c]=Pe.useState(!1),[u,f]=Pe.useState(t),b=e??u,g=s(v=>{let P=typeof v=="function"?v(b):v;o?o(P):f(P),document.cookie=`${Ki}=${P}; path=/; max-age=${Ui}`},"m"),m=s(()=>d?c(v=>!v):g(v=>!v),"v"),x=Pe.useEffectEvent(()=>{m()});Pe.useEffect(()=>{let v=s(P=>{P.key===$i&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),x())},"p");return globalThis.addEventListener("keydown",v),()=>globalThis.removeEventListener("keydown",v)},[]);let h={state:b?"expanded":"collapsed",open:b,setOpen:g,isMobile:d,openMobile:p,setOpenMobile:c,toggleSidebar:m};return(0,n.jsx)(Js.Provider,{value:h,children:(0,n.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Zi,"--sidebar-width-icon":Wi,...a},className:q("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:i})})}s(Gi,"Ma");function Qi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:a,dir:i,...l}){let{isMobile:d,state:p,openMobile:c,setOpenMobile:u}=xr();return o==="none"?(0,n.jsx)("div",{"data-slot":"sidebar",className:q("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:a}):d?(0,n.jsx)(Vi,{open:c,onOpenChange:u,...l,children:(0,n.jsxs)(Bi,{dir:i,"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":qi},side:t,children:[(0,n.jsxs)(Fi,{className:"sr-only",children:[(0,n.jsx)(ji,{children:"Sidebar"}),(0,n.jsx)(zi,{children:"Displays the mobile sidebar."})]}),(0,n.jsx)("div",{className:"flex h-full w-full flex-col",children:a})]})}):(0,n.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,n.jsx)("div",{"data-slot":"sidebar-gap",className:q("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,n.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:q("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,n.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:a})})]})}s(Qi,"Sa");function Yi(t){let e=(0,M.c)(15),o,r,a;e[0]!==t?({className:o,onClick:r,...a}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=a):(o=e[1],r=e[2],a=e[3]);let{toggleSidebar:i}=xr(),l;e[4]!==o?(l=q(o),e[4]=o,e[5]=l):l=e[5];let d;e[6]!==r||e[7]!==i?(d=s(f=>{r?.(f),i()},"i"),e[6]=r,e[7]=i,e[8]=d):d=e[8];let p,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)(Or,{icon:Qa,strokeWidth:2,className:"rtl:rotate-180"}),c=(0,n.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]!==a||e[12]!==l||e[13]!==d?(u=(0,n.jsxs)(Tr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:d,...a,children:[p,c]}),e[11]=a,e[12]=l,e[13]=d,e[14]=u):u=e[14],u}s(Yi,"Ca");function Xi(t){let e=(0,M.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 a;e[3]!==o?(a=q("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]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("main",{"data-slot":"sidebar-inset",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Xi,"Pa");function Ji(t){let e=(0,M.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 a;e[3]!==o?(a=q("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Ji,"_a");function el(t){let e=(0,M.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 a;e[3]!==o?(a=q("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(el,"Ta");function tl(t){let e=(0,M.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 a;e[3]!==o?(a=q("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]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(tl,"Aa");function ol(t){let e=(0,M.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 a;e[3]!==o?(a=q("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(ol,"Ra");function rl(t){let e=(0,M.c)(10),o,r,a,i;if(e[0]!==t){let{className:p,render:c,...u}=t;o=c,i=Er,r="div",a=co({className:q("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]=a,e[4]=i}else o=e[1],r=e[2],a=e[3],i=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]!==a?(d={defaultTagName:r,props:a,render:o,state:l},e[6]=o,e[7]=r,e[8]=a,e[9]=d):d=e[9],i(d)}s(rl,"La");function al(t){let e=(0,M.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 a;e[3]!==o?(a=q("w-full text-xs",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(al,"Ia");function Fs(t){let e=(0,M.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 a;e[3]!==o?(a=q("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Fs,"Ot");function js(t){let e=(0,M.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 a;e[3]!==o?(a=q("group/menu-item relative",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(js,"Zt");var nl=Pa("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 ei({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:a,className:i,...l}){let{isMobile:d,state:p}=xr(),c=Er({defaultTagName:"button",props:co({className:q(nl({variant:o,size:r}),i)},l),render:a?(0,n.jsx)(Ni,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return a?(typeof a=="string"&&(a={children:a}),(0,n.jsxs)(Si,{children:[c,(0,n.jsx)(Ti,{side:"right",align:"center",hidden:p!=="collapsed"||d,...a})]})):c}s(ei,"cs");var sl=s(t=>t.replace("__lunora_admin__:",""),"$a"),il=s(()=>(0,E.useSyncExternalStore)(lo.subscribe,lo.getSnapshot,lo.getSnapshot),"Ha"),ll=s(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","Da"),cl=s(t=>{let e=(0,M.c)(56),{entry:o,focused:r}=t,a=ue(),i;e[0]!==r?(i=s(H=>{H!==null&&r&&H.scrollIntoView({block:"nearest"})},"n"),e[0]=r,e[1]=i):i=e[1];let l=i,d;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(d=s(()=>{ca(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"i"),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=q("border-b border-border/60 last:border-b-0",c),e[6]=c,e[7]=u):u=e[7];let f;e[8]!==o.status?(f=ll(o.status),e[8]=o.status,e[9]=f):f=e[9];let b=o.status==="pending"?"\u2026":o.status,g;e[10]!==f||e[11]!==b?(g=(0,n.jsx)(Ft,{className:"mt-px shrink-0",variant:f,children:b}),e[10]=f,e[11]=b,e[12]=g):g=e[12];let m;e[13]!==o.functionPath?(m=sl(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let x;e[15]!==m?(x=(0,n.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=x):x=e[16];let h;e[17]!==o.kind||e[18]!==a?(h=o.kind==="subscription"&&(0,n.jsx)(Ft,{className:"shrink-0",variant:"outline",children:a("live")}),e[17]=o.kind,e[18]=a,e[19]=h):h=e[19];let v;e[20]!==o.summary?(v=o.summary!==""&&(0,n.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=v):v=e[21];let P;e[22]!==o.shardKey?(P=o.shardKey!==""&&(0,n.jsx)("span",{className:"font-mono",children:o.shardKey}),e[22]=o.shardKey,e[23]=P):P=e[23];let y;e[24]!==o.resultCount||e[25]!==a?(y=o.resultCount!==void 0&&(0,n.jsx)("span",{children:a("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=a,e[26]=y):y=e[26];let R;e[27]!==o.pushes||e[28]!==a?(R=o.pushes!==void 0&&o.pushes>0&&(0,n.jsx)("span",{children:a("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=a,e[29]=R):R=e[29];let C;e[30]!==o.durationMs?(C=o.durationMs!==void 0&&(0,n.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=C):C=e[31];let w;e[32]!==a?(w=a("Copy"),e[32]=a,e[33]=w):w=e[33];let S;e[34]!==p||e[35]!==w?(S=(0,n.jsx)("button",{"aria-label":w,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]=w,e[36]=S):S=e[36];let N;e[37]!==P||e[38]!==y||e[39]!==R||e[40]!==C||e[41]!==S?(N=(0,n.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[P,y,R,C,S]}),e[37]=P,e[38]=y,e[39]=R,e[40]=C,e[41]=S,e[42]=N):N=e[42];let k;e[43]!==h||e[44]!==v||e[45]!==N||e[46]!==g||e[47]!==x?(k=(0,n.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[g,x,h,v,N]}),e[43]=h,e[44]=v,e[45]=N,e[46]=g,e[47]=x,e[48]=k):k=e[48];let O;e[49]!==o.error?(O=o.error!==void 0&&(0,n.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]=O):O=e[50];let _;return e[51]!==l||e[52]!==k||e[53]!==O||e[54]!==u?(_=(0,n.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[k,O]}),e[51]=l,e[52]=k,e[53]=O,e[54]=u,e[55]=_):_=e[55],_},"Ba"),dl=s(t=>{let e=(0,M.c)(62),{focusSeq:o,onClose:r,onShownChange:a,shown:i}=t,l=ue(),d=il(),[p,c]=(0,E.useState)(""),u;if(e[0]!==d||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==a||e[5]!==i||e[6]!==l){let f=p.trim().toLowerCase(),b=d.filter(I=>(i==="errors"?I.status==="error":!0)&&(f===""||`${I.functionPath} ${I.summary} ${I.shardKey}`.toLowerCase().includes(f))).toReversed(),g;e[8]!==d?(g=d.filter(pl),e[8]=d,e[9]=g):g=e[9];let m=g.length,x;e[10]!==l?(x=l("Operation console"),e[10]=l,e[11]=x):x=e[11];let h;e[12]!==l?(h=l("Operation console"),e[12]=l,e[13]=h):h=e[13];let v;e[14]!==h?(v=(0,n.jsx)("span",{className:"text-xs font-medium",children:h}),e[14]=h,e[15]=v):v=e[15];let P;e[16]!==d.length||e[17]!==l?(P=l("{count} calls",{count:d.length}),e[16]=d.length,e[17]=l,e[18]=P):P=e[18];let y;e[19]!==P?(y=(0,n.jsx)(Ft,{variant:"secondary",children:P}),e[19]=P,e[20]=y):y=e[20];let R;e[21]!==m||e[22]!==l?(R=m>0&&(0,n.jsx)(Ft,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=R):R=e[23];let C=i==="errors",w=i==="errors"&&"bg-accent",S;e[24]!==w?(S=q("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",w),e[24]=w,e[25]=S):S=e[25];let N;e[26]!==a||e[27]!==i?(N=s(()=>{a(i==="errors"?"all":"errors")},"S"),e[26]=a,e[27]=i,e[28]=N):N=e[28];let k;e[29]!==l?(k=l("Errors"),e[29]=l,e[30]=k):k=e[30];let O;e[31]!==S||e[32]!==N||e[33]!==k||e[34]!==C?(O=(0,n.jsx)("button",{"aria-pressed":C,className:S,"data-testid":"oc-filter-errors",onClick:N,type:"button",children:k}),e[31]=S,e[32]=N,e[33]=k,e[34]=C,e[35]=O):O=e[35];let _;e[36]!==l?(_=l("Filter"),e[36]=l,e[37]=_):_=e[37];let H;e[38]===Symbol.for("react.memo_cache_sentinel")?(H=s(I=>{c(I.target.value)},"D"),e[38]=H):H=e[38];let V;e[39]!==l?(V=l("Filter"),e[39]=l,e[40]=V):V=e[40];let L;e[41]!==p||e[42]!==_||e[43]!==V?(L=(0,n.jsx)(ko,{"aria-label":_,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:H,placeholder:V,value:p}),e[41]=p,e[42]=_,e[43]=V,e[44]=L):L=e[44];let F;e[45]!==l?(F=l("Clear"),e[45]=l,e[46]=F):F=e[46];let j;e[47]!==F?(j=(0,n.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:ul,type:"button",children:F}),e[47]=F,e[48]=j):j=e[48];let U;e[49]!==l?(U=l("Hide"),e[49]=l,e[50]=U):U=e[50];let z;e[51]!==r||e[52]!==U?(z=(0,n.jsx)("button",{"aria-label":U,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]=U,e[53]=z):z=e[53];let D;e[54]!==O||e[55]!==L||e[56]!==j||e[57]!==z||e[58]!==v||e[59]!==y||e[60]!==R?(D=(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[v,y,R,O,L,j,z]}),e[54]=O,e[55]=L,e[56]=j,e[57]=z,e[58]=v,e[59]=y,e[60]=R,e[61]=D):D=e[61],u=(0,n.jsxs)("section",{"aria-label":x,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[D,b.length===0?(0,n.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,n.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:b.map(I=>(0,n.jsx)(cl,{entry:I,focused:I.seq===o},I.seq))})]}),e[0]=d,e[1]=o,e[2]=p,e[3]=r,e[4]=a,e[5]=i,e[6]=l,e[7]=u}else u=e[7];return u},"Va");function pl(t){return t.status==="error"}s(pl,"za");function ul(){lo.clear()}s(ul,"Oa");var ml=s(()=>{let t=(0,M.c)(334),e=ue(),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 a;t[4]!==e?(a=e("Evals"),t[4]=e,t[5]=a):a=t[5];let i;t[6]!==e?(i=e("AI usage"),t[6]=e,t[7]=i):i=t[7];let l;t[8]!==e?(l=e("Analytics"),t[8]=e,t[9]=l):l=t[9];let d;t[10]!==e?(d=e("API"),t[10]=e,t[11]=d):d=t[11];let p;t[12]!==e?(p=e("Architecture"),t[12]=e,t[13]=p):p=t[13];let c;t[14]!==e?(c=e("Audit"),t[14]=e,t[15]=c):c=t[15];let u;t[16]!==e?(u=e("Auth audit"),t[16]=e,t[17]=u):u=t[17];let f;t[18]!==e?(f=e("Configuration"),t[18]=e,t[19]=f):f=t[19];let b;t[20]!==e?(b=e("Sessions"),t[20]=e,t[21]=b):b=t[21];let g;t[22]!==e?(g=e("Containers"),t[22]=e,t[23]=g):g=t[23];let m;t[24]!==e?(m=e("Dashboards"),t[24]=e,t[25]=m):m=t[25];let x;t[26]!==e?(x=e("Data"),t[26]=e,t[27]=x):x=t[27];let h;t[28]!==e?(h=e("Deployment health"),t[28]=e,t[29]=h):h=t[29];let v;t[30]!==e?(v=e("Log drains"),t[30]=e,t[31]=v):v=t[31];let P;t[32]!==e?(P=e("Export / Import"),t[32]=e,t[33]=P):P=t[33];let y;t[34]!==e?(y=e("Fan-out"),t[34]=e,t[35]=y):y=t[35];let R;t[36]!==e?(R=e("Files"),t[36]=e,t[37]=R):R=t[37];let C;t[38]!==e?(C=e("Flags"),t[38]=e,t[39]=C):C=t[39];let w;t[40]!==e?(w=e("Functions"),t[40]=e,t[41]=w):w=t[41];let S;t[42]!==e?(S=e("Health"),t[42]=e,t[43]=S):S=t[43];let N;t[44]!==e?(N=e("Home"),t[44]=e,t[45]=N):N=t[45];let k;t[46]!==e?(k=e("Performance"),t[46]=e,t[47]=k):k=t[47];let O;t[48]!==e?(O=e("Issues"),t[48]=e,t[49]=O):O=t[49];let _;t[50]!==e?(_=e("KV"),t[50]=e,t[51]=_):_=t[51];let H;t[52]!==e?(H=e("Logs"),t[52]=e,t[53]=H):H=t[53];let V;t[54]!==e?(V=e("Metrics"),t[54]=e,t[55]=V):V=t[55];let L;t[56]!==e?(L=e("Migrations"),t[56]=e,t[57]=L):L=t[57];let F;t[58]!==e?(F=e("Notifications"),t[58]=e,t[59]=F):F=t[59];let j;t[60]!==e?(j=e("Organizations"),t[60]=e,t[61]=j):j=t[61];let U;t[62]!==e?(U=e("Time Travel"),t[62]=e,t[63]=U):U=t[63];let z;t[64]!==e?(z=e("Privacy requests"),t[64]=e,t[65]=z):z=t[65];let D;t[66]!==e?(D=e("Mail"),t[66]=e,t[67]=D):D=t[67];let I;t[68]!==e?(I=e("Payments"),t[68]=e,t[69]=I):I=t[69];let W;t[70]!==e?(W=e("Permissions"),t[70]=e,t[71]=W):W=t[71];let $;t[72]!==e?($=e("Queues"),t[72]=e,t[73]=$):$=t[73];let ie;t[74]!==e?(ie=e("Reactors"),t[74]=e,t[75]=ie):ie=t[75];let oe;t[76]!==e?(oe=e("Realtime"),t[76]=e,t[77]=oe):oe=t[77];let re;t[78]!==e?(re=e("RLS Policies"),t[78]=e,t[79]=re):re=t[79];let ee;t[80]!==e?(ee=e("Scheduled"),t[80]=e,t[81]=ee):ee=t[81];let Y;t[82]!==e?(Y=e("Schema"),t[82]=e,t[83]=Y):Y=t[83];let be;t[84]!==e?(be=e("Security"),t[84]=e,t[85]=be):be=t[85];let de;t[86]!==e?(de=e("Settings"),t[86]=e,t[87]=de):de=t[87];let me;t[88]!==e?(me=e("SQL editor"),t[88]=e,t[89]=me):me=t[89];let fe;t[90]!==e?(fe=e("Traces"),t[90]=e,t[91]=fe):fe=t[91];let ge;t[92]!==e?(ge=e("Access Rules"),t[92]=e,t[93]=ge):ge=t[93];let Z;t[94]!==e?(Z=e("Users"),t[94]=e,t[95]=Z):Z=t[95];let G;t[96]!==e?(G=e("Vectors"),t[96]=e,t[97]=G):G=t[97];let te;t[98]!==e?(te=e("Workflows"),t[98]=e,t[99]=te):te=t[99];let xe;t[100]!==o||t[101]!==r||t[102]!==b||t[103]!==g||t[104]!==m||t[105]!==x||t[106]!==h||t[107]!==v||t[108]!==P||t[109]!==y||t[110]!==R||t[111]!==C||t[112]!==a||t[113]!==w||t[114]!==S||t[115]!==N||t[116]!==k||t[117]!==O||t[118]!==_||t[119]!==H||t[120]!==V||t[121]!==L||t[122]!==F||t[123]!==i||t[124]!==j||t[125]!==U||t[126]!==z||t[127]!==D||t[128]!==I||t[129]!==W||t[130]!==$||t[131]!==ie||t[132]!==oe||t[133]!==re||t[134]!==l||t[135]!==ee||t[136]!==Y||t[137]!==be||t[138]!==de||t[139]!==me||t[140]!==fe||t[141]!==ge||t[142]!==Z||t[143]!==G||t[144]!==te||t[145]!==d||t[146]!==p||t[147]!==c||t[148]!==u||t[149]!==f?(xe={advisorHealth:o,agents:r,evals:a,aiUsage:i,analytics:l,api:d,architecture:p,audit:c,authAudit:u,authConfig:f,authSessions:b,containers:g,dashboards:m,data:x,deploymentHealth:h,drains:v,export:P,fanout:y,files:R,flags:C,functions:w,health:S,home:N,insights:k,issues:O,kv:_,logs:H,metrics:V,migrations:L,notifications:F,organizations:j,pitr:U,privacyRequests:z,mail:D,payments:I,permissions:W,queues:$,reactors:ie,realtime:oe,rls:re,schedule:ee,schema:Y,security:be,settings:de,sql:me,traces:fe,storageRules:ge,users:Z,vectors:G,workflows:te},t[100]=o,t[101]=r,t[102]=b,t[103]=g,t[104]=m,t[105]=x,t[106]=h,t[107]=v,t[108]=P,t[109]=y,t[110]=R,t[111]=C,t[112]=a,t[113]=w,t[114]=S,t[115]=N,t[116]=k,t[117]=O,t[118]=_,t[119]=H,t[120]=V,t[121]=L,t[122]=F,t[123]=i,t[124]=j,t[125]=U,t[126]=z,t[127]=D,t[128]=I,t[129]=W,t[130]=$,t[131]=ie,t[132]=oe,t[133]=re,t[134]=l,t[135]=ee,t[136]=Y,t[137]=be,t[138]=de,t[139]=me,t[140]=fe,t[141]=ge,t[142]=Z,t[143]=G,t[144]=te,t[145]=d,t[146]=p,t[147]=c,t[148]=u,t[149]=f,t[150]=xe):xe=t[150];let pe=xe,ve;t[151]!==e?(ve=e("Advisors"),t[151]=e,t[152]=ve):ve=t[152];let Se;t[153]!==e?(Se=e("Auth"),t[153]=e,t[154]=Se):Se=t[154];let Ne;t[155]!==e?(Ne=e("Database"),t[155]=e,t[156]=Ne):Ne=t[156];let Ae;t[157]!==e?(Ae=e("Functions"),t[157]=e,t[158]=Ae):Ae=t[158];let Ve;t[159]!==e?(Ve=e("Observability"),t[159]=e,t[160]=Ve):Ve=t[160];let He;t[161]!==e?(He=e("Operations"),t[161]=e,t[162]=He):He=t[162];let Le;t[163]!==e?(Le=e("Overview"),t[163]=e,t[164]=Le):Le=t[164];let Be;t[165]!==e?(Be=e("Settings"),t[165]=e,t[166]=Be):Be=t[166];let Fe;t[167]!==e?(Fe=e("Storage"),t[167]=e,t[168]=Fe):Fe=t[168];let Ro;t[169]!==ve||t[170]!==Se||t[171]!==Ne||t[172]!==Ae||t[173]!==Ve||t[174]!==He||t[175]!==Le||t[176]!==Be||t[177]!==Fe?(Ro={advisors:ve,auth:Se,database:Ne,functions:Ae,observability:Ve,operations:He,overview:Le,settings:Be,storage:Fe},t[169]=ve,t[170]=Se,t[171]=Ne,t[172]=Ae,t[173]=Ve,t[174]=He,t[175]=Le,t[176]=Be,t[177]=Fe,t[178]=Ro):Ro=t[178];let yr=Ro,je;t[179]!==e?(je=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[179]=e,t[180]=je):je=t[180];let ze;t[181]!==e?(ze=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[181]=e,t[182]=ze):ze=t[182];let Ke;t[183]!==e?(Ke=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[183]=e,t[184]=Ke):Ke=t[184];let Ue;t[185]!==e?(Ue=e("Tokens and spend from ctx.ai.model calls \u2014 totals, per function and per model, and the recent calls behind them."),t[185]=e,t[186]=Ue):Ue=t[186];let Ze;t[187]!==e?(Ze=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[187]=e,t[188]=Ze):Ze=t[188];let qe;t[189]!==e?(qe=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[189]=e,t[190]=qe):qe=t[190];let We;t[191]!==e?(We=e("A durable log of admin state-changing operations."),t[191]=e,t[192]=We):We=t[192];let $e;t[193]!==e?($e=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[193]=e,t[194]=$e):$e=t[194];let Ge;t[195]!==e?(Ge=e("Enabled plugins and session config (read-only)."),t[195]=e,t[196]=Ge):Ge=t[196];let Qe;t[197]!==e?(Qe=e("Your modules, and the calls, reads, writes and hand-offs between them, from codegen."),t[197]=e,t[198]=Qe):Qe=t[198];let Ye;t[199]!==e?(Ye=e("Browse and revoke active sessions across all users."),t[199]=e,t[200]=Ye):Ye=t[200];let Xe;t[201]!==e?(Xe=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[201]=e,t[202]=Xe):Xe=t[202];let Je;t[203]!==e?(Je=e("Chart widgets backed by saved read-only SQL queries."),t[203]=e,t[204]=Je):Je=t[204];let et;t[205]!==e?(et=e("Browse and edit rows across your shard and global tables."),t[205]=e,t[206]=et):et=t[206];let tt;t[207]!==e?(tt=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[207]=e,t[208]=tt):tt=t[208];let ot;t[209]!==e?(ot=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[209]=e,t[210]=ot):ot=t[210];let rt;t[211]!==e?(rt=e("Export a shard to NDJSON, or import rows from it."),t[211]=e,t[212]=rt):rt=t[212];let at;t[213]!==e?(at=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[213]=e,t[214]=at):at=t[214];let nt;t[215]!==e?(nt=e("Browse objects in your R2 storage buckets."),t[215]=e,t[216]=nt):nt=t[216];let st;t[217]!==e?(st=e("Inspect feature flags and their live evaluation under a targeting context."),t[217]=e,t[218]=st):st=t[218];let it;t[219]!==e?(it=e("Run registered queries, mutations, and actions."),t[219]=e,t[220]=it):it=t[220];let lt;t[221]!==e?(lt=e("At-a-glance connection, error, and shard signals."),t[221]=e,t[222]=lt):lt=t[222];let ct;t[223]!==e?(ct=e("Connection, health, and advisor summary for your deployment."),t[223]=e,t[224]=ct):ct=t[224];let dt;t[225]!==e?(dt=e("Surface slow functions, error spikes, and cache problems."),t[225]=e,t[226]=dt):dt=t[226];let pt;t[227]!==e?(pt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[227]=e,t[228]=pt):pt=t[228];let ut;t[229]!==e?(ut=e("A live stream of recent function logs."),t[229]=e,t[230]=ut):ut=t[230];let mt;t[231]!==e?(mt=e("Per-shard health and aggregate metrics."),t[231]=e,t[232]=mt):mt=t[232];let ft;t[233]!==e?(ft=e("Review migration status and run them."),t[233]=e,t[234]=ft):ft=t[234];let gt;t[235]!==e?(gt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[235]=e,t[236]=gt):gt=t[236];let ht;t[237]!==e?(ht=e("Browse and manage organizations, members, and invitations."),t[237]=e,t[238]=ht):ht=t[238];let vt;t[239]!==e?(vt=e("Restore a shard to a point in the last 30 days."),t[239]=e,t[240]=vt):vt=t[240];let bt;t[241]!==e?(bt=e("Open data-subject export and erasure requests, with due dates and failed-run retries."),t[241]=e,t[242]=bt):bt=t[242];let xt;t[243]!==e?(xt=e("Email your app sent, captured in dev."),t[243]=e,t[244]=xt):xt=t[244];let yt;t[245]!==e?(yt=e("Synced customers, subscriptions, and webhook events."),t[245]=e,t[246]=yt):yt=t[246];let Pt;t[247]!==e?(Pt=e("Inspect access policies per table, and probe a function as any identity."),t[247]=e,t[248]=Pt):Pt=t[248];let Ct;t[249]!==e?(Ct=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[249]=e,t[250]=Ct):Ct=t[250];let Rt;t[251]!==e?(Rt=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[251]=e,t[252]=Rt):Rt=t[252];let St;t[253]!==e?(St=e("Active WebSocket subscriptions on this shard."),t[253]=e,t[254]=St):St=t[254];let Nt;t[255]!==e?(Nt=e("Inspect row-level-security policies and roles, per table."),t[255]=e,t[256]=Nt):Nt=t[256];let Tt;t[257]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[257]=e,t[258]=Tt):Tt=t[258];let wt;t[259]!==e?(wt=e("Inspect each table and its columns."),t[259]=e,t[260]=wt):wt=t[260];let Et;t[261]!==e?(Et=e("Review admin gates, credentials, and log redaction."),t[261]=e,t[262]=Et):Et=t[262];let kt;t[263]!==e?(kt=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[263]=e,t[264]=kt):kt=t[264];let Ot;t[265]!==e?(Ot=e("Run read-only SQL against a shard."),t[265]=e,t[266]=Ot):Ot=t[266];let Dt;t[267]!==e?(Dt=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[267]=e,t[268]=Dt):Dt=t[268];let Mt;t[269]!==e?(Mt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[269]=e,t[270]=Mt):Mt=t[270];let It;t[271]!==e?(It=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[271]=e,t[272]=It):It=t[272];let _t;t[273]!==e?(_t=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[273]=e,t[274]=_t):_t=t[274];let At;t[275]!==e?(At=e("Browse Vectorize indexes and run similarity searches."),t[275]=e,t[276]=At):At=t[276];let Vt;t[277]!==e?(Vt=e("Inspect declared Cloudflare Workflows and their bindings."),t[277]=e,t[278]=Vt):Vt=t[278];let So;t[279]!==Tt||t[280]!==wt||t[281]!==Et||t[282]!==kt||t[283]!==Ot||t[284]!==Dt||t[285]!==Mt||t[286]!==It||t[287]!==_t||t[288]!==At||t[289]!==Vt||t[290]!==je||t[291]!==ze||t[292]!==Ke||t[293]!==Ue||t[294]!==Ze||t[295]!==qe||t[296]!==We||t[297]!==$e||t[298]!==Ge||t[299]!==Qe||t[300]!==Ye||t[301]!==Xe||t[302]!==Je||t[303]!==et||t[304]!==tt||t[305]!==ot||t[306]!==rt||t[307]!==at||t[308]!==nt||t[309]!==st||t[310]!==it||t[311]!==lt||t[312]!==ct||t[313]!==dt||t[314]!==pt||t[315]!==ut||t[316]!==mt||t[317]!==ft||t[318]!==gt||t[319]!==ht||t[320]!==vt||t[321]!==bt||t[322]!==xt||t[323]!==yt||t[324]!==Pt||t[325]!==Ct||t[326]!==Rt||t[327]!==St||t[328]!==Nt?(So={advisorHealth:je,agents:ze,evals:Ke,aiUsage:Ue,analytics:Ze,api:qe,audit:We,authAudit:$e,authConfig:Ge,architecture:Qe,authSessions:Ye,containers:Xe,dashboards:Je,data:et,deploymentHealth:tt,drains:ot,export:rt,fanout:at,files:nt,flags:st,functions:it,health:lt,home:ct,insights:dt,issues:pt,logs:ut,metrics:mt,migrations:ft,notifications:gt,organizations:ht,pitr:vt,privacyRequests:bt,mail:xt,payments:yt,permissions:Pt,queues:Ct,reactors:Rt,realtime:St,rls:Nt,schedule:Tt,schema:wt,security:Et,settings:kt,sql:Ot,kv:Dt,storageRules:Mt,traces:It,users:_t,vectors:At,workflows:Vt},t[279]=Tt,t[280]=wt,t[281]=Et,t[282]=kt,t[283]=Ot,t[284]=Dt,t[285]=Mt,t[286]=It,t[287]=_t,t[288]=At,t[289]=Vt,t[290]=je,t[291]=ze,t[292]=Ke,t[293]=Ue,t[294]=Ze,t[295]=qe,t[296]=We,t[297]=$e,t[298]=Ge,t[299]=Qe,t[300]=Ye,t[301]=Xe,t[302]=Je,t[303]=et,t[304]=tt,t[305]=ot,t[306]=rt,t[307]=at,t[308]=nt,t[309]=st,t[310]=it,t[311]=lt,t[312]=ct,t[313]=dt,t[314]=pt,t[315]=ut,t[316]=mt,t[317]=ft,t[318]=gt,t[319]=ht,t[320]=vt,t[321]=bt,t[322]=xt,t[323]=yt,t[324]=Pt,t[325]=Ct,t[326]=Rt,t[327]=St,t[328]=Nt,t[329]=So):So=t[329];let Pr=So,No;return t[330]!==yr||t[331]!==Pr||t[332]!==pe?(No={groupLabel:yr,tabDescription:Pr,tabLabel:pe},t[330]=yr,t[331]=Pr,t[332]=pe,t[333]=No):No=t[333],No},"Za"),fl=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.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,n.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,n.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"qa"),gl=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.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,n.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,n.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},"Fa"),hl=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.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,n.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},"Wa"),vl=s(t=>{let e=(0,M.c)(2),{className:o}=t,r;return e[0]!==o?(r=(0,n.jsx)("span",{className:o}),e[0]=o,e[1]=r):r=e[1],r},"Ua"),bl=(0,E.lazy)(()=>import("./chunk-H6VTIXVB.js").catch(()=>({default:vl}))),Qr="absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",xl=[{Icon:fl,value:"system"},{Icon:gl,value:"light"},{Icon:hl,value:"dark"}],yl=s(()=>{let t=(0,M.c)(21),{theme:e,setTheme:o}=Ri(),r=ue(),[a,i]=(0,E.useState)(!1),l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s(()=>{i(!0)},"l"),t[0]=l):l=t[0];let d=l,p;t[1]!==r?(p=r("Dark theme"),t[1]=r,t[2]=p):p=t[2];let c;t[3]!==r?(c=r("Light theme"),t[3]=r,t[4]=c):c=t[4];let u;t[5]!==r?(u=r("System theme"),t[5]=r,t[6]=u):u=t[6];let f;t[7]!==p||t[8]!==c||t[9]!==u?(f={dark:p,light:c,system:u},t[7]=p,t[8]=c,t[9]=u,t[10]=f):f=t[10];let b=f,g;t[11]!==r?(g=r("Theme"),t[11]=r,t[12]=g):g=t[12];let m;t[13]!==a||t[14]!==b||t[15]!==o||t[16]!==e?(m=xl.map(h=>{let{Icon:v,value:P}=h,y=e===P;return(0,n.jsxs)("button",{"aria-checked":y,"aria-label":b[P],className:q("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",y?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${P}`,onClick:s(()=>{d(),o(P)},"onClick"),role:"radio",title:b[P],type:"button",children:[y&&(a?(0,n.jsx)(E.Suspense,{fallback:(0,n.jsx)("span",{className:Qr}),children:(0,n.jsx)(bl,{className:Qr})}):(0,n.jsx)("span",{className:Qr})),(0,n.jsx)("span",{className:"relative",children:(0,n.jsx)(v,{})})]},P)}),t[13]=a,t[14]=b,t[15]=o,t[16]=e,t[17]=m):m=t[17];let x;return t[18]!==g||t[19]!==m?(x=(0,n.jsx)("div",{"aria-label":g,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",onFocus:d,onPointerEnter:d,role:"radiogroup",children:m}),t[18]=g,t[19]=m,t[20]=x):x=t[20],x},"Qa"),Pl=s(t=>{let e=(0,M.c)(23),{domain:o,onOpenCommandPalette:r,page:a}=t,i=ue(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(Yi,{className:"-ms-1"}),e[0]=l):l=e[0];let d;e[1]!==i?(d=i("Breadcrumb"),e[1]=i,e[2]=d):d=e[2];let p;e[3]!==o?(p=(0,n.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,n.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,n.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=c):c=e[5];let u;e[6]!==a?(u=(0,n.jsx)("span",{className:"font-medium text-foreground",children:a}),e[6]=a,e[7]=u):u=e[7];let f;e[8]!==d||e[9]!==p||e[10]!==u?(f=(0,n.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]=f):f=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=b):b=e[12];let g;e[13]!==i?(g=i("Search\u2026"),e[13]=i,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.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 x;e[16]!==r||e[17]!==g?(x=(0,n.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:[b,g,m]}),e[16]=r,e[17]=g,e[18]=x):x=e[18];let h;e[19]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,n.jsx)(yl,{})}),e[19]=h):h=e[19];let v;return e[20]!==x||e[21]!==f?(v=(0,n.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,f,x,h]}),e[20]=x,e[21]=f,e[22]=v):v=e[22],v},"Ka"),Cl={agents:{capability:"agents"},analytics:{capability:"analytics",feature:"analytics"},authAudit:{feature:"auth"},authConfig:{feature:"auth"},authSessions:{feature:"auth"},containers:{capability:"containers",feature:"containers"},fanout:{capability:"crossShardFanout"},files:{capability:"objectStorage",feature:"storage"},flags:{feature:"flags"},kv:{capability:"keyValueStore",feature:"kv"},mail:{capability:"mail",feature:"mail"},notifications:{feature:"notifications"},organizations:{feature:"auth"},payments:{feature:"payments"},pitr:{capability:"pointInTimeRecovery"},privacyRequests:{feature:"privacy"},queues:{capability:"queues",feature:"queues"},reactors:{capability:"serverReactors"},schedule:{capability:"scheduler",feature:"scheduler"},storageRules:{feature:"storage"},users:{feature:"auth"},vectors:{capability:"vectorStore",feature:"vectors"},workflows:{capability:"workflows",feature:"workflows"}},Rl={agents:"Durable agents",analytics:"Analytics",containers:"Containers",crossShardFanout:"Cross-shard fan-out",keyValueStore:"Key-value storage",mail:"Mail delivery",objectStorage:"Object storage",pointInTimeRecovery:"Point-in-time recovery",queues:"Queues",scheduler:"Scheduling",serverReactors:"Server reactors",vectorStore:"Vector search",workflows:"Workflows"},Sl={kind:"hidden"},zs={kind:"ok"},Nl={kind:"pending"},ti=s((t,e,o)=>{let r=Cl[t];return r?.feature!==void 0&&!e[r.feature]?Sl:r?.capability===void 0?zs:e.settled?e.platform?.unsupported.includes(r.capability)===!0?{kind:"unavailable",reason:o("{capability} is not supported on {platform}.",{capability:o(Rl[r.capability]),platform:e.platform.name})}:zs:Nl},"us"),Tl=s((t,e,o)=>{let r={},a=[];for(let i of t){let l=[];for(let d of i.tabs){let p=ti(d,e,o);p.kind!=="hidden"&&l.push(d),p.kind==="unavailable"&&(r[d]=p.reason)}l.length>0&&a.push({...i,tabs:l})}return{unavailable:r,visibleGroups:a}},"to"),wl=s(t=>{let e=(0,M.c)(3),{reason:o,title:r}=t,a;return e[0]!==o||e[1]!==r?(a=(0,n.jsx)(Ya,{description:o,testId:"dash-unsupported",title:r}),e[0]=o,e[1]=r,e[2]=a):a=e[2],a},"so"),El=s(t=>{let e=(0,M.c)(4),{console:o}=Yo(),r,a;e[0]!==o||e[1]!==t?(r=s(()=>{if(t===void 0)return;let i=s(l=>{if(!l.ctrlKey||l.metaKey||l.altKey||l.shiftKey||l.repeat||l.key.toLowerCase()!==o)return;let{target:d}=l;d instanceof HTMLElement&&(d.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(d.tagName))||(l.preventDefault(),t())},"n");return globalThis.addEventListener("keydown",i),()=>{globalThis.removeEventListener("keydown",i)}},"a"),a=[o,t],e[0]=o,e[1]=t,e[2]=r,e[3]=a):(r=e[2],a=e[3]),(0,E.useEffect)(r,a)},"ao"),Q=s((t,e)=>(0,E.lazy)(()=>t().then(o=>({default:o[e]}))),"$"),kl=Q(()=>import("./chunk-OJR7BDKC.js"),"InsightsPanel"),Ol=(0,E.lazy)(()=>import("./chunk-CXXCVBMK.js")),Dl=(0,E.lazy)(()=>import("./chunk-EKXAE4PS.js")),Ml=(0,E.lazy)(()=>import("./chunk-U7NVTULW.js")),Il=(0,E.lazy)(()=>import("./chunk-AXB32N5O.js")),_l=(0,E.lazy)(()=>import("./chunk-IXCSVK2Z.js")),Al=Q(()=>import("./chunk-ADS4BJ7K.js"),"AnalyticsPanel"),Vl=(0,E.lazy)(()=>import("./chunk-375GZTYC.js")),Hl=(0,E.lazy)(()=>import("./chunk-UFS6UP4Z.js")),Ll=(0,E.lazy)(()=>import("./chunk-K5W5C237.js")),Bl=(0,E.lazy)(()=>import("./chunk-SGIEXE5J.js")),Fl=(0,E.lazy)(()=>import("./chunk-BWBECJFT.js")),jl=(0,E.lazy)(()=>import("./chunk-4MFQ4XEJ.js")),zl=Q(()=>import("./chunk-I6YVDNKQ.js"),"UsersPanel"),Kl=(0,E.lazy)(()=>import("./chunk-OWCTA7GY.js")),Ul=Q(()=>import("./chunk-HCK62XWB.js"),"DeploymentHealthPanel"),Zl=Q(()=>import("./chunk-OQTMT64P.js"),"TableEditor"),ql=Q(()=>import("./chunk-HLBZ7OAO.js"),"ExportImportPanel"),Wl=(0,E.lazy)(()=>import("./chunk-L6VJTINV.js")),$l={data:en,migrations:tn},Gl=Q(()=>import("./chunk-U5UEDY4E.js"),"PitrPanel"),Ql=Q(()=>import("./chunk-2M37OAK3.js"),"PrivacyRequestsPanel"),Yl=(0,E.lazy)(()=>import("./chunk-2YDK4MZM.js")),Xl=(0,E.lazy)(()=>import("./chunk-6K4F727K.js")),Jl=Q(()=>import("./chunk-PBXRUYD3.js"),"FunctionRunner"),ec=Q(()=>import("./chunk-V4B7ZPEG.js"),"FunctionStatsPanel"),tc=(0,E.lazy)(()=>import("./chunk-CO6R6GCX.js")),oc=Q(()=>import("./chunk-CY45AO5T.js"),"AuditPanel"),rc=(0,E.lazy)(()=>import("./chunk-EMZ7RPR3.js")),ac=(0,E.lazy)(()=>import("./chunk-L7TFQUD7.js").then(t=>({default:t.LogsPanel}))),nc=Q(()=>import("./chunk-HJOXP6C3.js"),"MailPanel"),sc=Q(()=>import("./chunk-FYAUOSTX.js"),"SchedulePanel"),ic=(0,E.lazy)(()=>import("./chunk-2CDROYSG.js")),lc=(0,E.lazy)(()=>import("./chunk-P3ML7HGE.js")),cc=Q(()=>import("./chunk-2OSZRVNW.js"),"KvBrowser"),dc=(0,E.lazy)(()=>import("./chunk-NP6CBOPK.js")),pc=Q(()=>import("./chunk-CVJDEN5L.js"),"PaymentsPanel"),uc=Q(()=>import("./chunk-KIQ34774.js"),"PermissionsPanel"),mc=(0,E.lazy)(()=>import("./chunk-3YCWRKSW.js")),fc=(0,E.lazy)(()=>import("./chunk-7ASIMMZY.js")),gc=(0,E.lazy)(()=>import("./chunk-LYWT6GTX.js")),hc=Q(()=>import("./chunk-KGQPMSNY.js"),"HealthPanel"),vc=Q(()=>import("./chunk-BU5VWXRR.js"),"MetricsPanel"),bc=Q(()=>import("./chunk-AXDXIMCN.js"),"SchemaViewer"),xc=Q(()=>import("./chunk-ZP453BM4.js"),"SettingsPanel"),yc=Q(()=>import("./chunk-Y2AKO63C.js"),"SqlEditorPanel"),Pc=Q(()=>import("./chunk-BRPLE2Z6.js"),"FileBrowser"),Cc=(0,E.lazy)(()=>import("./chunk-WEPANQGT.js")),Rc=(0,E.lazy)(()=>import("./chunk-HUL247LG.js")),Sc=(0,E.lazy)(()=>import("./chunk-3OVQC66W.js")),Nc=(0,E.lazy)(()=>import("./chunk-QTWNCDLK.js")),Tc=Q(()=>import("./chunk-KZXSJF7K.js"),"VectorBrowser"),wc=(0,E.lazy)(()=>import("./chunk-4YVCKOYF.js")),oi=(0,E.createContext)(null),Ec={analytics:(0,n.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,n.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),architecture:(0,n.jsx)("path",{d:"M4 4h6v5H4V4Zm10 0h6v5h-6V4ZM9 15h6v5H9v-5ZM7 9v3h10V9M12 12v3"}),audit:(0,n.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,n.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,n.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,n.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,n.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,n.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,n.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,n.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,n.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,n.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,n.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,n.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,n.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,n.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,n.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,n.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:(0,n.jsx)("path",{d:"M12 3v3m0 12v3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1M3 12h3m12 0h3M5.6 18.4l2.1-2.1m8.6-8.6 2.1-2.1M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z"}),health:(0,n.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,n.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,n.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,n.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,n.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,n.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,n.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,n.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,n.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,n.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,n.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,n.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,n.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),privacyRequests:(0,n.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 3h4"}),queues:(0,n.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:(0,n.jsx)("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:(0,n.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,n.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,n.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,n.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,n.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,n.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,n.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,n.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,n.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,n.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,n.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Ks=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","architecture","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","aiUsage","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags","privacyRequests"]},{key:"settings",tabs:["settings"]}],Yr=s(t=>{let e=(0,M.c)(2),{tab:o}=t,r=Ec[o],a;return e[0]!==r?(a=(0,n.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]=a):a=e[1],a},"Lt"),kc=s(t=>t,"rr"),ri=kc(["home","data","sql","functions","api","architecture","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","aiUsage","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","privacyRequests","settings"]),Oc=new Set(["api","data","migrations","sql"]),Dc=s(t=>{let e=t.split("/").findLast(Boolean)??"";return ri.includes(e)?e:"home"},"lr"),Mc=s(t=>{let e=(0,M.c)(19),{chrome:o,connected:r}=t,a=ue(),i;e[0]!==a?(i=a("admin token"),e[0]=a,e[1]=i):i=e[1];let l;e[2]!==i?(l=(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:i}),e[2]=i,e[3]=l):l=e[3];let d;e[4]!==o.onTokenChange||e[5]!==o.token?(d=(0,n.jsx)(ko,{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]!==a?(p=r&&(0,n.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),a("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]=a,e[9]=p):p=e[9];let c;e[10]!==o.clearToken||e[11]!==r||e[12]!==a?(c=r&&(0,n.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:a("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=a,e[13]=c):c=e[13];let u;return e[14]!==l||e[15]!==d||e[16]!==p||e[17]!==c?(u=(0,n.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},"ir"),ai="opacity-50",Ic=s(t=>{let e=(0,M.c)(27),{current:o,group:r,groupLabel:a,selectTab:i,tabDescription:l,tabLabel:d,unavailable:p}=t,c=r.tabs.includes(o)?"page":void 0,u=a[r.key],f=r.tabs[0],b;e[0]!==f?(b=(0,n.jsx)(Yr,{tab:f}),e[0]=f,e[1]=b):b=e[1];let g;e[2]!==c||e[3]!==u||e[4]!==b?(g=(0,n.jsx)(Ys,{"aria-current":c,"aria-label":u,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:b}),e[2]=c,e[3]=u,e[4]=b,e[5]=g):g=e[5];let m=a[r.key],x;e[6]!==m?(x=(0,n.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:m}),e[6]=m,e[7]=x):x=e[7];let h;if(e[8]!==o||e[9]!==r.tabs||e[10]!==i||e[11]!==l||e[12]!==d||e[13]!==p){let y;e[15]!==o||e[16]!==i||e[17]!==l||e[18]!==d||e[19]!==p?(y=s(R=>(0,n.jsxs)("button",{"aria-current":o===R?"page":void 0,className:q("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",p[R]!==void 0&&ai),"data-tab":R,"data-testid":`dash-tab-${R}`,"data-unsupported":p[R]===void 0?void 0:"true",onClick:i,title:l[R],type:"button",children:[(0,n.jsx)(Yr,{tab:R}),(0,n.jsx)("span",{children:d[R]})]},R),"h"),e[15]=o,e[16]=i,e[17]=l,e[18]=d,e[19]=p,e[20]=y):y=e[20],h=r.tabs.map(y),e[8]=o,e[9]=r.tabs,e[10]=i,e[11]=l,e[12]=d,e[13]=p,e[14]=h}else h=e[14];let v;e[21]!==x||e[22]!==h?(v=(0,n.jsxs)(Xs,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[x,h]}),e[21]=x,e[22]=h,e[23]=v):v=e[23];let P;return e[24]!==g||e[25]!==v?(P=(0,n.jsxs)(Qs,{children:[g,v]}),e[24]=g,e[25]=v,e[26]=P):P=e[26],P},"dr"),_c=s(t=>{let e=(0,M.c)(45),{chrome:o,collapsed:r,connected:a}=t,i=ue();if(o===null){let y;e[0]!==i?(y=i("Admin"),e[0]=i,e[1]=y):y=e[1];let R;e[2]===Symbol.for("react.memo_cache_sentinel")?(R=(0,n.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=R):R=e[2];let C;e[3]!==i?(C=i("Admin"),e[3]=i,e[4]=C):C=e[4];let w;e[5]!==C?(w=(0,n.jsx)("span",{className:"truncate text-[13px] font-medium",children:C}),e[5]=C,e[6]=w):w=e[6];let S;e[7]!==i?(S=i("Studio"),e[7]=i,e[8]=S):S=e[8];let N;e[9]!==S?(N=(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:S}),e[9]=S,e[10]=N):N=e[10];let k;e[11]!==w||e[12]!==N?(k=(0,n.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[w,N]}),e[11]=w,e[12]=N,e[13]=k):k=e[13];let O;return e[14]!==y||e[15]!==k?(O=(0,n.jsxs)(ei,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[R,k]}),e[14]=y,e[15]=k,e[16]=O):O=e[16],O}let l=r?"mx-auto size-8 justify-center":"w-full p-2",d;e[17]!==l?(d=q("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]!==a||e[20]!==i?(p=i(a?"Connected":"Not connected"),e[19]=a,e[20]=i,e[21]=p):p=e[21];let c=a?"bg-success":"bg-muted-foreground/50",u;e[22]!==c?(u=q("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 f;e[24]!==u?(f=(0,n.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,n.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let b;e[26]!==r||e[27]!==a||e[28]!==i?(b=!r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,n.jsx)("span",{className:"truncate text-[13px] font-medium",children:i("Admin")}),(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:i(a?"Connected":"Not connected")})]}),(0,n.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,n.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=a,e[28]=i,e[29]=b):b=e[29];let g;e[30]!==d||e[31]!==p||e[32]!==f||e[33]!==b?(g=(0,n.jsxs)(Ys,{className:d,"data-testid":"dash-app-connect",title:p,children:[f,b]}),e[30]=d,e[31]=p,e[32]=f,e[33]=b,e[34]=g):g=e[34];let m=r?"end":"start",x=r?"right":"top",h;e[35]!==o||e[36]!==a?(h=(0,n.jsx)(Mc,{chrome:o,connected:a}),e[35]=o,e[36]=a,e[37]=h):h=e[37];let v;e[38]!==x||e[39]!==h||e[40]!==m?(v=(0,n.jsx)(Xs,{align:m,keepMounted:!0,side:x,children:h}),e[38]=x,e[39]=h,e[40]=m,e[41]=v):v=e[41];let P;return e[42]!==v||e[43]!==g?(P=(0,n.jsxs)(Qs,{children:[g,v]}),e[42]=v,e[43]=g,e[44]=P):P=e[44],P},"cr"),Ac=s(t=>{let e=(0,M.c)(29),{chrome:o,connected:r,current:a,groupLabel:i,groups:l,selectTab:d,tabDescription:p,tabLabel:c,unavailable:u}=t,f=ue(),{state:b}=xr(),g=b==="collapsed",m=g&&"justify-center px-0",x;e[0]!==m?(x=q("flex items-center gap-2.5 px-1.5 py-1",m),e[0]=m,e[1]=x):x=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(wi,{className:"size-9 shrink-0 text-foreground"}),e[2]=h):h=e[2];let v;e[3]!==g||e[4]!==r||e[5]!==f?(v=!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:f("Studio")})]}),(0,n.jsx)(Ft,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:f(r?"Live":"Local")})]}),e[3]=g,e[4]=r,e[5]=f,e[6]=v):v=e[6];let P;e[7]!==x||e[8]!==v?(P=(0,n.jsx)(Ji,{children:(0,n.jsxs)("div",{className:x,children:[h,v]})}),e[7]=x,e[8]=v,e[9]=P):P=e[9];let y;e[10]!==g||e[11]!==a||e[12]!==i||e[13]!==l||e[14]!==d||e[15]!==p||e[16]!==c||e[17]!==u?(y=g?l.map(S=>(0,n.jsx)(Ic,{current:a,group:S,groupLabel:i,selectTab:d,tabDescription:p,tabLabel:c,unavailable:u},S.key)):l.map(S=>(0,n.jsxs)(ol,{children:[(0,n.jsx)(rl,{className:"text-[11px] font-medium tracking-wider uppercase",children:i[S.key]}),(0,n.jsx)(al,{children:(0,n.jsx)(Fs,{children:S.tabs.map(N=>(0,n.jsx)(js,{children:(0,n.jsxs)(ei,{className:q("data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]",u[N]!==void 0&&ai),"data-tab":N,"data-testid":`dash-tab-${N}`,"data-unsupported":u[N]===void 0?void 0:"true",isActive:a===N,onClick:d,title:p[N],tooltip:p[N],children:[(0,n.jsx)(Yr,{tab:N}),(0,n.jsx)("span",{children:c[N]})]})},N))})})]},S.key)),e[10]=g,e[11]=a,e[12]=i,e[13]=l,e[14]=d,e[15]=p,e[16]=c,e[17]=u,e[18]=y):y=e[18];let R;e[19]!==y?(R=(0,n.jsx)(tl,{children:y}),e[19]=y,e[20]=R):R=e[20];let C;e[21]!==o||e[22]!==g||e[23]!==r?(C=(0,n.jsx)(el,{children:(0,n.jsx)(Fs,{children:(0,n.jsx)(js,{children:(0,n.jsx)(_c,{chrome:o,collapsed:g,connected:r})})})}),e[21]=o,e[22]=g,e[23]=r,e[24]=C):C=e[24];let w;return e[25]!==P||e[26]!==R||e[27]!==C?(w=(0,n.jsxs)(Qi,{collapsible:"icon",variant:"inset",children:[P,R,C]}),e[25]=P,e[26]=R,e[27]=C,e[28]=w):w=e[28],w},"ur"),Jr=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(Qo,{className:"h-8 w-40"}),(0,n.jsx)(Qo,{className:"h-8 w-24"})]}),(0,n.jsx)(Qo,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Bt"),Vc=s(t=>{let e=(0,M.c)(5),{title:o,verdict:r}=t;if(r.kind==="pending"){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(Jr,{}),e[0]=i):i=e[0],i}if(r.kind==="unavailable"){let i;return e[1]!==o||e[2]!==r.reason?(i=(0,n.jsx)(wl,{reason:r.reason,title:o}),e[1]=o,e[2]=r.reason,e[3]=i):i=e[3],i}let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(na,{}),e[4]=a):a=e[4],a},"mr"),Hc=s(()=>{let t=(0,M.c)(59),e=ue(),o=io(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Kc},t[0]=r):r=t[0];let a=la(r),i=Dc(a),l=Oc.has(i),d=Da(),p=d?.toggle,c=ma();El(p);let u=Xa(),{groupLabel:f,tabDescription:b,tabLabel:g}=ml(),{unavailable:m,visibleGroups:x}=Tl(Ks,u,e),h={...b,...m},v=ti(i,u,e),P=v.kind==="hidden",y,R;t[1]!==P||t[2]!==o?(y=s(()=>{P&&Ee(o({replace:!0,to:"/home"}))},"h"),R=[P,o],t[1]=P,t[2]=o,t[3]=y,t[4]=R):(y=t[3],R=t[4]),(0,E.useEffect)(y,R);let C;t[5]!==o?(C=s(pe=>{Ee(o({to:`/${pe.currentTarget.dataset.tab??""}`}))},"M"),t[5]=o,t[6]=C):C=t[6];let w=C,S,N;t[7]!==i||t[8]!==g?(S=s(()=>{typeof document<"u"&&(document.title=`${g[i]} \xB7 lunora`)},"C"),N=[i,g],t[7]=i,t[8]=g,t[9]=S,t[10]=N):(S=t[9],N=t[10]),(0,E.useEffect)(S,N);let k=x.find(pe=>pe.tabs.includes(i))??Ks[0],O=x.flatMap(pe=>pe.tabs.filter(ve=>m[ve]===void 0).map(ve=>({group:f[pe.key],label:g[ve],to:`/${ve}`}))),_;t[11]!==e||t[12]!==p?(_=p===void 0?[]:[{group:e("Operations"),label:e("Toggle operation console"),run:p}],t[11]=e,t[12]=p,t[13]=_):_=t[13];let H;t[14]!==c||t[15]!==e?(H=c===void 0||c.unavailable?[]:[{group:e("Operations"),label:e("Ask the assistant"),run:c.toggle}],t[14]=c,t[15]=e,t[16]=H):H=t[16];let V=[...O,..._,...H],L=(0,E.use)(oi),F=L!==null&&L.token!=="",j=f[k.key],U=g[i],z;t[17]!==j||t[18]!==U?(z=(0,n.jsx)(Pl,{domain:j,onOpenCommandPalette:Hs,page:U}),t[17]=j,t[18]=U,t[19]=z):z=t[19];let D;t[20]!==L?.rulesInstalled?(D=L?.rulesInstalled===!1&&(0,n.jsx)(Ii,{}),t[20]=L?.rulesInstalled,t[21]=D):D=t[21];let I;t[22]!==L||t[23]!==F?(I=(L===null||F)&&(0,n.jsx)(ki,{}),t[22]=L,t[23]=F,t[24]=I):I=t[24];let W=`dash-tab-${i}`,$=l?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",ie=g[i],oe;t[25]!==e||t[26]!==ie?(oe=e("{title} failed",{title:ie}),t[25]=e,t[26]=ie,t[27]=oe):oe=t[27];let re=g[i],ee;t[28]!==e?(ee=e("Try again"),t[28]=e,t[29]=ee):ee=t[29];let Y;t[30]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,n.jsx)(Jr,{}),t[30]=Y):Y=t[30];let be=g[i],de;t[31]!==be||t[32]!==v?(de=(0,n.jsx)(E.Suspense,{fallback:Y,children:(0,n.jsx)(Vc,{title:be,verdict:v})}),t[31]=be,t[32]=v,t[33]=de):de=t[33];let me;t[34]!==i||t[35]!==oe||t[36]!==re||t[37]!==ee||t[38]!==de?(me=(0,n.jsx)(Xo,{fallbackTitle:oe,label:re,retryLabel:ee,children:de},i),t[34]=i,t[35]=oe,t[36]=re,t[37]=ee,t[38]=de,t[39]=me):me=t[39];let fe;t[40]!==$||t[41]!==me?(fe=(0,n.jsx)("div",{className:$,children:me}),t[40]=$,t[41]=me,t[42]=fe):fe=t[42];let ge;t[43]!==d?(ge=d?.open===!0&&(0,n.jsx)(dl,{focusSeq:d.focusSeq,onClose:d.close,onShownChange:d.setShown,shown:d.shown}),t[43]=d,t[44]=ge):ge=t[44];let Z;t[45]!==W||t[46]!==fe||t[47]!==ge?(Z=(0,n.jsxs)("div",{"aria-labelledby":W,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[fe,ge]}),t[45]=W,t[46]=fe,t[47]=ge,t[48]=Z):Z=t[48];let G;t[49]!==z||t[50]!==D||t[51]!==I||t[52]!==Z?(G=(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[z,D,I,Z]}),t[49]=z,t[50]=D,t[51]=I,t[52]=Z,t[53]=G):G=t[53];let te;t[54]!==c?(te=c!==void 0&&c.open&&!c.unavailable&&(0,n.jsx)(E.Suspense,{fallback:null,children:(0,n.jsx)(_l,{assistant:c})}),t[54]=c,t[55]=te):te=t[55];let xe;return t[56]!==G||t[57]!==te?(xe=(0,n.jsxs)(Xi,{className:"flex flex-row overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[G,te]}),t[56]=G,t[57]=te,t[58]=xe):xe=t[58],(0,n.jsxs)(Gi,{className:"min-h-0 flex-1","data-platform":u.platform?.id,"data-testid":"lunora-studio",children:[(0,n.jsx)(Ls,{items:V}),(0,n.jsx)(Ac,{chrome:L,connected:F,current:i,groupLabel:f,groups:x,selectTab:w,tabDescription:h,tabLabel:g,unavailable:m}),xe]})},"fr"),Lc=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(Oa,{children:(0,n.jsx)(ua,{children:(0,n.jsx)(Hc,{})})}),t[0]=e):e=t[0],e},"pr"),Bc=s(t=>{let e=(0,M.c)(5),{initialShardKey:o,schemaEditable:r}=t,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];let i=ra(a),{table:l}=i,d=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==d||e[3]!==r?(p=(0,n.jsx)(bc,{initialShardKey:o,initialTable:d,schemaEditable:r}),e[1]=o,e[2]=d,e[3]=r,e[4]=p):p=e[4],p},"hr"),Fc=s(()=>{let t=(0,M.c)(3),e=io(),o,r;return t[0]!==e?(o=s(()=>{Ee(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,E.useEffect)(o,r),null},"gr"),jc=s(({advisorProcedures:t=!1,analyticsSqlQuery:e,basePath:o,privacyRequests:r,dataEditable:a=!1,functions:i,initialShardKey:l,openApiSpec:d,openRpcSpec:p,advisorCompanion:c=!1,runAsIdentity:u=!1,schemaEditable:f=!1,scheduledCancel:b,scheduledCron:g,scheduledLoad:m})=>{let x=aa({component:Lc}),h={agents:(0,n.jsx)(Il,{initialShardKey:l}),analytics:(0,n.jsx)(Al,{runQuery:e}),api:(0,n.jsx)(Vl,{functions:i,initialShardKey:l,openApiSpec:d,openRpcSpec:p}),architecture:(0,n.jsx)(Hl,{}),audit:(0,n.jsx)(oc,{initialShardKey:l}),authAudit:(0,n.jsx)(Ll,{}),authConfig:(0,n.jsx)(Bl,{}),authSessions:(0,n.jsx)(Fl,{}),containers:(0,n.jsx)(Kl,{}),dashboards:(0,n.jsx)(fc,{initialShardKey:l}),data:(0,n.jsx)(Zl,{canGenerateRows:a&&f,editable:a,initialShardKey:l}),deploymentHealth:(0,n.jsx)(Ul,{}),drains:(0,n.jsx)(rc,{}),export:(0,n.jsx)(ql,{initialShardKey:l}),fanout:(0,n.jsx)(gc,{initialShardKey:l}),files:(0,n.jsx)(Pc,{}),kv:(0,n.jsx)(cc,{}),flags:(0,n.jsx)(Yl,{initialShardKey:l}),reactors:(0,n.jsx)(Xl,{initialShardKey:l}),functions:(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(ec,{functions:i,initialShardKey:l}),(0,n.jsx)(Jl,{functions:i,runAsIdentity:u})]}),health:(0,n.jsx)(hc,{initialShardKey:l}),home:(0,n.jsx)(Ja,{initialShardKey:l}),insights:(0,n.jsx)(kl,{initialShardKey:l}),issues:(0,n.jsx)(tc,{initialShardKey:l}),logs:(0,n.jsx)(ac,{initialShardKey:l}),traces:(0,n.jsx)(Rc,{initialShardKey:l}),evals:(0,n.jsx)(Sc,{initialShardKey:l}),aiUsage:(0,n.jsx)(Nc,{initialShardKey:l}),metrics:(0,n.jsx)(vc,{initialShardKey:l}),migrations:(0,n.jsx)(Wl,{initialShardKey:l}),notifications:(0,n.jsx)(dc,{}),organizations:(0,n.jsx)(jl,{}),permissions:(0,n.jsx)(uc,{functions:i,runAsIdentity:u,schemaEditable:f}),pitr:(0,n.jsx)(Gl,{initialShardKey:l}),privacyRequests:(0,n.jsx)(Ql,{source:r}),mail:(0,n.jsx)(nc,{}),payments:(0,n.jsx)(pc,{}),queues:(0,n.jsx)(mc,{}),realtime:(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(ic,{initialShardKey:l}),(0,n.jsx)(lc,{})]}),rls:(0,n.jsx)(Ol,{}),schedule:(0,n.jsx)(sc,{initialShardKey:l,loadCronJobs:g,scheduledCancel:b,scheduledLoad:m}),schema:(0,n.jsx)(Bc,{initialShardKey:l,schemaEditable:f}),advisorHealth:(0,n.jsx)(Dl,{advisorCompanion:c,localProcedures:t}),security:(0,n.jsx)(Ml,{}),settings:(0,n.jsx)(xc,{initialShardKey:l}),sql:(0,n.jsx)(yc,{initialShardKey:l}),storageRules:(0,n.jsx)(Cc,{}),users:(0,n.jsx)(zl,{}),vectors:(0,n.jsx)(Tc,{}),workflows:(0,n.jsx)(wc,{})},v=Nr({component:s(()=>h.home,"component"),getParentRoute:s(()=>x,"getParentRoute"),path:"/"}),P=ri.map(C=>Nr({component:s(()=>h[C],"component"),getParentRoute:s(()=>x,"getParentRoute"),path:`/${C}`,validateSearch:$l[C]})),y=x.addChildren([v,...P]),R="window"in globalThis?ta():oa({initialEntries:["/home"]});return sa({...o===void 0||o==="/"?{}:{basepath:o},defaultNotFoundComponent:Fc,defaultPendingComponent:Jr,defaultPendingMinMs:0,defaultPendingMs:0,history:R,routeTree:y})},"br"),zc=s(t=>{let e=(0,M.c)(21),{advisorProcedures:o,analyticsSqlQuery:r,basePath:a,chrome:i,dataEditable:l,functions:d,initialShardKey:p,openApiSpec:c,openRpcSpec:u,privacyRequests:f,advisorCompanion:b,runAsIdentity:g,schemaEditable:m,scheduledCancel:x,scheduledCron:h,scheduledLoad:v}=t,P;e[0]!==b||e[1]!==o||e[2]!==r||e[3]!==a||e[4]!==l||e[5]!==d||e[6]!==p||e[7]!==c||e[8]!==u||e[9]!==f||e[10]!==g||e[11]!==x||e[12]!==h||e[13]!==v||e[14]!==m?(P=jc({advisorProcedures:o,analyticsSqlQuery:r,basePath:a,privacyRequests:f,dataEditable:l,functions:d,initialShardKey:p,openApiSpec:c,openRpcSpec:u,advisorCompanion:b,runAsIdentity:g,schemaEditable:m,scheduledCancel:x,scheduledCron:h,scheduledLoad:v}),e[0]=b,e[1]=o,e[2]=r,e[3]=a,e[4]=l,e[5]=d,e[6]=p,e[7]=c,e[8]=u,e[9]=f,e[10]=g,e[11]=x,e[12]=h,e[13]=v,e[14]=m,e[15]=P):P=e[15];let y=P,R=i??null,C;e[16]!==y?(C=(0,n.jsx)(ia,{router:y}),e[16]=y,e[17]=C):C=e[17];let w;return e[18]!==R||e[19]!==C?(w=(0,n.jsx)(oi,{value:R,children:C}),e[18]=R,e[19]=C,e[20]=w):w=e[20],w},"vr"),hh=s(t=>{let e=(0,M.c)(10),o,r,a;e[0]!==t?({i18n:o,locale:r,...a}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=a):(o=e[1],r=e[2],a=e[3]);let i;e[4]!==a?(i=(0,n.jsx)(Ci,{children:(0,n.jsx)(zc,{...a})}),e[4]=a,e[5]=i):i=e[5];let l=i;if(o===void 0&&r===void 0)return l;let d;return e[6]!==o||e[7]!==r||e[8]!==l?(d=(0,n.jsx)(Vs,{i18n:o,locale:r,children:l}),e[6]=o,e[7]=r,e[8]=l,e[9]=d):d=e[9],d},"tn");function Kc(t){return t.location.pathname}s(Kc,"yr");export{Xo as a,Vs as b,Pi as c,Ri as d,fh as e,wi as f,gh as g,Vi as h,Bi as i,Fi as j,ji as k,hh as l};
|
|
1
|
+
import{a as Yo}from"./chunk-AFLNQEZ5.js";import{a as Xa,b as Ja}from"./chunk-HQZ7B5EU.js";import{a as en,d as tn}from"./chunk-CL3JOU6F.js";import{a as fa}from"./chunk-ZLAVM2NT.js";import{a as Ut,b as Jt,c as eo,d as to,e as oo,f as Za,g as $o,h as Go}from"./chunk-IQ5CIBXJ.js";import{$ as Bo,A as Ba,B as Io,C as _o,D as Fa,E as Kt,G as Zt,J as qt,K as Ao,L as Wt,M as $t,O as Vo,P as ja,Q as za,R as Gt,S as Qt,T as Yt,U as Xt,V as Ho,W as Te,Y as Ka,Z as Ua,_ as Lo,b as Ta,ca as Fo,da as jo,fa as zo,j as jt,k as zt,l as Ma,la as Ko,m as Ia,ma as Uo,n as _a,na as Zo,o as Aa,oa as qo,p as kr,pa as qa,q as Oo,qa as Wa,ra as Wo,s as Do,sa as $a,t as Va,u as Mo,y as Ha,z as La}from"./chunk-YNCZVYCO.js";import{a as Qo}from"./chunk-Y5QMX4YG.js";import{c as Ga,h as Qa,k as Or}from"./chunk-2NUCBQFU.js";import{a as wr}from"./chunk-W5BTAOHO.js";import{a as ta,b as oa,h as ra,i as io,j as Nr,k as aa,l as na,m as sa,n as ia,o as la}from"./chunk-7WGZSDRS.js";import{i as ko}from"./chunk-2D4WBSDO.js";import{C as wa,D as Ea,H as ka,I as Bt,M as K,N as ne,b as he,e as uo,f as Ca,l as Ra,m as mo,o as Ht,p as Sa,q as Lt,r as Oe,s as Na}from"./chunk-4SY2N2RS.js";import{a as ea}from"./chunk-4AG356VE.js";import{a as Tr}from"./chunk-CBTPJPCZ.js";import{c as ke}from"./chunk-SCTYLLJT.js";import{e as Eo,f as ba,u as xa,v as Ce}from"./chunk-OZID3UYF.js";import{a as Ya}from"./chunk-HMMALUXM.js";import{a as Er,b as Ft}from"./chunk-BHUWAGFN.js";import{b as co,d as X,g as po,i as ya,j as B}from"./chunk-L27FKJTG.js";import{a as ua,b as ma}from"./chunk-4RII5S3H.js";import{a as Oa,b as Da}from"./chunk-EOFWXI3T.js";import{a as lo,b as pa}from"./chunk-6C555TU5.js";import{n as wo}from"./chunk-C6FOSG2A.js";import{a as Pa}from"./chunk-ZPQBVYNN.js";import{A as va,B as ue,b as Rr,j as To,s as Ee,v as ca,w as da,x as q,y as ga,z as ha}from"./chunk-2ZJJH4YN.js";import{a as Sr}from"./chunk-A6TVTNKO.js";import{a as A,b as le}from"./chunk-ADABTCDI.js";import{a as s,c as Cr,d as T}from"./chunk-5PEAXTYQ.js";var M=T(Sr(),1);var Pe=T(A(),1),E=T(A(),1);var n=T(le(),1);var on=T(A(),1),we=T(le(),1);var ni={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},si={overflow:"auto",whiteSpace:"pre-wrap"},Xo=class extends on.Component{static{s(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=s(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:a}=this.props,{error:i}=this.state;if(i===null)return(0,we.jsx)(we.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,we.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:ni,children:[(0,we.jsx)("strong",{children:l}),(0,we.jsx)("pre",{"data-testid":"dash-error-message",style:si,children:i.message}),(0,we.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:a??"Try again"})]})}};var Ie={};Cr(Ie,{Arrow:()=>Pn,Backdrop:()=>Rn,Close:()=>kn,Description:()=>wn,Handle:()=>vo,Popup:()=>xn,Portal:()=>fn,Positioner:()=>gn,Root:()=>dn,Title:()=>Nn,Trigger:()=>pn,Viewport:()=>Dn,createHandle:()=>Mn});var fo=T(A(),1);var Jo=T(A(),1);var Dr=Jo.createContext(void 0);function J(t){let e=Jo.useContext(Dr);if(e===void 0&&!t)throw new Error(X(47));return e}s(J,"usePopoverRootContext");var er=T(A(),1),rn=T(ea(),1);var an={...eo,disabled:s(t=>t.disabled,"disabled"),instantType:s(t=>t.instantType,"instantType"),openMethod:s(t=>t.openMethod,"openMethod"),openChangeReason:s(t=>t.openChangeReason,"openChangeReason"),modal:s(t=>t.modal,"modal"),focusManagerModal:s(t=>t.focusManagerModal,"focusManagerModal"),stickIfOpen:s(t=>t.stickIfOpen,"stickIfOpen"),titleElementId:s(t=>t.titleElementId,"titleElementId"),descriptionElementId:s(t=>t.descriptionElementId,"descriptionElementId"),openOnHover:s(t=>t.openOnHover,"openOnHover"),closeDelay:s(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:s(t=>t.adaptiveOrigin,"adaptiveOrigin")},tr=class extends Zt{static{s(this,"PopoverStore")}constructor(e,o,r){let a=new Te;super(sn(e,a,o,r),ln(a),an)}setOpen=s((e,o)=>{let r=o.reason===K.triggerHover,a=o.reason===K.triggerPress&&o.event.detail===0,i=!e&&(o.reason===K.escapeKey||o.reason==null),l=ja(o),d=this.select("activeTriggerId");if(!e&&o.reason===K.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=s(()=>{let u=Vo(this.state,e,o.trigger,l());u.openChangeReason=o.reason,this.update(u)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),rn.flushSync(p)):p();let c;a?c="click":i?c="dismiss":o.reason===K.focusOut&&(c="focus"),this.set("instantType",c)},"setOpen")};function nn(){let t=new Te,e=new oo(Object.freeze(sn(void 0,t)),Object.freeze(ln(t)),an);return Object.assign(e,{setOpen:po})}s(nn,"createNullPopoverStore");function sn(t,e,o,r=!1){let a={...Jt(e,o,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...t};return a.open&&t?.mounted===void 0&&(a.mounted=!0),a}s(sn,"createInitialState");function ln(t){return{popupRef:er.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:er.createRef(),beforeContentFocusGuardRef:er.createRef(),stickIfOpenTimeout:new wa,triggerElements:t}}s(ln,"createInitialContext");var De=T(le(),1);var cn=jt(s(function({props:e}){let{children:o,open:r,defaultOpen:a=!1,onOpenChange:i,onOpenChangeComplete:l,modal:d=!1,handle:p,triggerId:c,defaultTriggerId:u=null}=e,f=ii(p,{modal:d,open:a,openProp:r,activeTriggerId:u,triggerIdProp:c});f.useControlledProp("openProp",r),f.useControlledProp("triggerIdProp",c);let b=f.useState("open"),g=f.useState("mounted"),m=f.useState("payload");f.useContextCallback("onOpenChange",i),f.useContextCallback("onOpenChangeComplete",l),Ho(f,b),Qt(f);let{forceUnmount:x}=Yt(b,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:d}),fo.useEffect(()=>{b||f.context.stickIfOpenTimeout.clear()},[f,b]),fo.useImperativeHandle(e.actionsRef,()=>({unmount:x,close:s(()=>f.setOpen(!1,ne(K.imperativeAction)),"close")}),[x,f]);let h=b||g;return(0,De.jsxs)(Dr.Provider,{value:f,children:[p&&(0,De.jsx)($t,{handle:p,store:f}),h&&(0,De.jsx)(li,{store:f,modal:d}),typeof o=="function"?o({payload:m}):o]})},"PopoverRootComponent"));function dn(t){return J(!0)?(0,De.jsx)(cn,{props:t}):(0,De.jsx)(Ba,{children:(0,De.jsx)(cn,{props:t})})}s(dn,"PopoverRoot");function ii(t,e){let o=Wt((r,a)=>new tr(e,r,a));return fo.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o}s(ii,"usePopoverRootStore");function li({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Kt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),a=r.reference,i=r.floating;return Xt(t,{activeTriggerProps:a,inactiveTriggerProps:a,popupProps:i}),null}s(li,"PopoverInteractions");var go=T(A(),1);var ro=T(le(),1);var pn=zt(s(function(e,o){let{render:r,className:a,style:i,disabled:l=!1,nativeButton:d=!0,handle:p,payload:c,openOnHover:u=!1,delay:f=300,closeDelay:b=0,id:g,...m}=e,x=J(!0),v=to(p)??x;if(!v)throw new Error(X(74));let P=he(g),y=v.useState("isTriggerActive",P),R=v.useState("floatingRootContext"),C=v.useState("isOpenedByTrigger",P),w=v.useState("triggerPopupId",P),S=go.useRef(null),{registerTrigger:N,isMountedByThisTrigger:k}=Gt(P,S,v,{payload:c,disabled:l,openOnHover:u,closeDelay:b}),O=v.useState("openChangeReason"),_=v.useState("stickIfOpen"),H=v.useState("openMethod"),V=v.useState("focusManagerModal"),L=Bo(R,{enabled:!l&&u&&(H!=="touch"||O!==K.triggerPress),mouseOnly:!0,move:!1,handleClose:Fo(),restMs:f,delay:{close:b},triggerElementRef:S,isActiveTrigger:y,isClosing:s(()=>v.select("transitionStatus")==="ending","isClosing")}),F=_o(R,{stickIfOpen:_}),j=jo(()=>v.select("open"),Y=>{v.set("openMethod",Y)}),U=v.useState("triggerProps",k),{getButtonProps:z,buttonRef:D}=ke({disabled:l,native:d}),I={open(Y){return Y&&O===K.triggerPress?Sa.open(Y):Ht.open(Y)}},{preFocusGuardRef:W,handlePreFocusGuardFocus:$,handleFocusTargetFocus:ie}=Za(v,S),re=B("button",e,{state:{disabled:l,open:C},ref:[D,o,N,S],props:[F.reference,L,U,j,{[Oo]:"",id:P,"aria-haspopup":"dialog","aria-expanded":C,"aria-controls":w},m,z],stateAttributesMapping:I}),ee=(0,ro.jsx)(go.Fragment,{children:re},P);return k&&!V?(0,ro.jsxs)(go.Fragment,{children:[(0,ro.jsx)(kr,{ref:W,onFocus:$}),ee,(0,ro.jsx)(kr,{ref:v.context.triggerFocusTargetRef,onFocus:ie})]}):ee},"PopoverTrigger"));var mn=T(A(),1);var or=T(A(),1);var Mr=or.createContext(void 0);function un(){let t=or.useContext(Mr);if(t===void 0)throw new Error(X(45));return t}s(un,"usePopoverPortalContext");var Ir=T(le(),1);var fn=mn.forwardRef(s(function(e,o){let{keepMounted:r=!1,...a}=e;return J().useState("mounted")||r?(0,Ir.jsx)(Mr.Provider,{value:r,children:(0,Ir.jsx)(Mo,{ref:o,...a})}):null},"PopoverPortal"));var ar=T(A(),1);var rr=T(A(),1);var _r=rr.createContext(void 0);function ao(){let t=rr.useContext(_r);if(!t)throw new Error(X(46));return t}s(ao,"usePopoverPositionerContext");var ho=T(le(),1);var gn=ar.forwardRef(s(function(e,o){let{render:r,className:a,style:i,anchor:l,positionMethod:d,side:p,align:c,sideOffset:u,alignOffset:f,collisionBoundary:b="clipping-ancestors",collisionPadding:g,arrowPadding:m,sticky:x,disableAnchorTracking:h=!1,collisionAvoidance:v=Do,...P}=e,y=J(),R=un(),C=Ha(),w=y.useState("floatingRootContext"),S=y.useState("mounted"),N=y.useState("open"),k=y.useState("openChangeReason"),O=y.useState("activeTriggerElement"),_=y.useState("modal"),H=y.useState("openMethod"),V=y.useState("positionerElement"),L=y.useState("instantType"),F=y.useState("transitionStatus"),j=y.useState("adaptiveOrigin"),U=ar.useRef(null),z=ka(V),D=Ko({anchor:l,floatingRootContext:w,positionMethod:d,mounted:S,side:p,sideOffset:u,align:c,alignOffset:f,arrowPadding:m,collisionBoundary:b,collisionPadding:g,sticky:x,disableAnchorTracking:h,keepMounted:R,nodeId:C,collisionAvoidance:v,adaptiveOrigin:j}),I=w.useState("domReferenceElement");Ce(()=>{let re=I,ee=U.current;if(re&&(U.current=re),ee&&re&&re!==ee){y.set("instantType",void 0);let Y=new AbortController;return z(()=>{y.set("instantType","trigger-change")},Y.signal),()=>{Y.abort()}}},[I,z,y]);let W=_===!0&&k!==K.triggerHover;Wa(N&&W,H==="touch",V,O);let $=y.useStateSetter("positionerElement"),ie={open:N,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:L},oe=qo(e,ie,{styles:D.positionerStyles,transitionStatus:F,props:P,refs:[o,$],hidden:!S,inert:!N});return(0,ho.jsxs)(_r.Provider,{value:D,children:[S&&W&&(0,ho.jsx)(Uo,{inert:zo(!N),cutout:O}),(0,ho.jsx)(La,{id:C,children:oe})]})},"PopoverPositioner"));var bn=T(A(),1);var Me=T(A(),1);var Ar=Me.createContext(void 0);function hn(){let[t,e]=Me.useState(0),o=xa(()=>(e(a=>a+1),()=>{e(a=>Math.max(0,a-1))}));return{context:Me.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}s(hn,"useClosePartCount");function vn(){let t=Me.useContext(Ar);Ce(()=>t?.register(),[t])}s(vn,"useClosePartRegistration");var Vr=T(le(),1);var xn=bn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,initialFocus:l,finalFocus:d,...p}=e,c=J(),u=ao(),f=$a(!0)!=null,{context:b,hasClosePart:g}=hn(),m=c.useState("open"),x=c.useState("openMethod"),h=c.useState("instantType"),v=c.useState("transitionStatus"),P=c.useState("popupProps"),y=c.useState("titleElementId"),R=c.useState("descriptionElementId"),C=c.useState("modal"),w=c.useState("mounted"),S=c.useState("openChangeReason"),N=c.useState("activeTriggerElement"),k=c.useState("floatingRootContext"),O=k.useState("floatingId"),_=c.useState("disabled"),H=c.useState("openOnHover"),V=c.useState("closeDelay");Bt({open:m,ref:c.context.popupRef,onComplete(){m&&c.context.onOpenChangeComplete?.(!0)}}),Lo(k,{enabled:H&&!_,closeDelay:V});let L=l===void 0?Ao(c.context.popupRef):l,F=C!==!1&&g;c.useSyncedValue("focusManagerModal",F);let j=c.useStateSetter("popupElement"),U={open:m,side:u.side,align:u.align,instant:h,transitionStatus:v},z=B("div",e,{state:U,ref:[o,c.context.popupRef,j],props:[P,{id:O,role:"dialog",...qt,"aria-labelledby":y,"aria-describedby":R,onKeyDown(D){f&&Wo.has(D.key)&&D.stopPropagation()}},Zo(v),p],stateAttributesMapping:Oe});return(0,Vr.jsx)(Io,{context:k,openInteractionType:x,modal:F,disabled:!w||S===K.triggerHover,initialFocus:L,returnFocus:d,restoreFocus:"popup",previousFocusableElement:ba(N)?N:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Vr.jsx)(Ar.Provider,{value:b,children:z})})},"PopoverPopup"));var yn=T(A(),1);var Pn=yn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,p=J().useState("open"),{arrowRef:c,side:u,align:f,arrowUncentered:b,arrowStyles:g}=ao();return B("div",e,{state:{open:p,side:u,align:f,uncentered:b},ref:[o,c],props:[{style:g,"aria-hidden":!0},l],stateAttributesMapping:Lt})},"PopoverArrow"));var Cn=T(A(),1);var Rn=Cn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=J(),p=d.useState("open"),c=d.useState("mounted"),u=d.useState("transitionStatus"),f=d.useState("openChangeReason");return B("div",e,{state:{open:p,transitionStatus:u},ref:o,props:[{role:"presentation",hidden:!c,style:{pointerEvents:f===K.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:Oe})},"PopoverBackdrop"));var Sn=T(A(),1);var Nn=Sn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=J(),p=he(l.id);return d.useSyncedValueWithCleanup("titleElementId",p),B("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var Tn=T(A(),1);var wn=Tn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=J(),p=he(l.id);return d.useSyncedValueWithCleanup("descriptionElementId",p),B("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var En=T(A(),1);var kn=En.forwardRef(s(function(e,o){let{render:r,className:a,style:i,disabled:l=!1,nativeButton:d=!0,...p}=e,{buttonRef:c,getButtonProps:u}=ke({disabled:l,focusableWhenDisabled:!1,native:d}),f=J();return vn(),B("button",e,{ref:[o,c],props:[{onClick(g){f.setOpen(!1,ne(K.closePress,g.nativeEvent))}},p,u]})},"PopoverClose"));var On=T(A(),1);var Dn=On.forwardRef(s(function(e,o){let{render:r,className:a,style:i,children:l,...d}=e,p=J(),{side:c}=ao(),u=p.useState("instantType"),{children:f,state:b}=Go({store:p,side:c,children:l}),g={activationDirection:b.activationDirection,transitioning:b.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[d,{children:f}],stateAttributesMapping:$o})},"PopoverViewport"));var vo=class extends Ut{static{s(this,"PopoverHandle")}constructor(){super(nn(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Mn(){return new vo}s(Mn,"createPopoverHandle");var ce={};Cr(ce,{Backdrop:()=>_n,Close:()=>Vn,Description:()=>Ln,Handle:()=>yo,Popup:()=>Kn,Portal:()=>Zn,Root:()=>Jn,Title:()=>rs,Trigger:()=>ns,Viewport:()=>ts,createHandle:()=>ss});var In=T(A(),1);var nr=T(A(),1);var Hr=nr.createContext(void 0);function se(t){let e=nr.useContext(Hr);if(!t&&e===void 0)throw new Error(X(27));return e}s(se,"useDialogRootContext");var _n=In.forwardRef(s(function(e,o){let{render:r,className:a,style:i,forceRender:l=!1,...d}=e,p=se(),c=p.useState("open"),u=p.useState("nested"),f=p.useState("mounted"),b=p.useState("transitionStatus");return B("div",e,{state:{open:c,transitionStatus:b},ref:[p.context.backdropRef,o],stateAttributesMapping:Oe,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!u})},"DialogBackdrop"));var An=T(A(),1);var Vn=An.forwardRef(s(function(e,o){let{render:r,className:a,style:i,disabled:l=!1,nativeButton:d=!0,...p}=e,c=se(),u=c.useState("open"),{getButtonProps:f,buttonRef:b}=ke({disabled:l,native:d}),g={disabled:l};function m(x){u&&c.setOpen(!1,ne(K.closePress,x.nativeEvent))}return s(m,"handleClick"),B("button",e,{state:g,ref:[o,b],props:[{onClick:m},p,f]})},"DialogClose"));var Hn=T(A(),1);var Ln=Hn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,id:l,...d}=e,p=se(),c=he(l);return p.useSyncedValueWithCleanup("descriptionElementId",c),B("p",e,{ref:o,props:[{id:c},d]})},"DialogDescription"));var jn=T(A(),1);var sr=T(A(),1);var Lr=sr.createContext(void 0);function ir(){let t=sr.useContext(Lr);if(t===void 0)throw new Error(X(26));return t}s(ir,"useDialogPortalContext");var Bn="--nested-dialogs";var Uu=mo.open,Zu=mo.closed,qu=mo.startingStyle,Wu=mo.endingStyle;var Fn="data-nested-dialog-open";var lr={...Lt,...Ra,nestedDialogOpen(t){return t?{[Fn]:""}:null}};var zn=T(le(),1);var Kn=jn.forwardRef(s(function(e,o){let{render:r,className:a,style:i,finalFocus:l,initialFocus:d,...p}=e,c=se(),u=c.useState("descriptionElementId"),f=c.useState("disablePointerDismissal"),b=c.useState("floatingRootContext"),g=c.useState("popupProps"),m=c.useState("modal"),x=c.useState("mounted"),h=c.useState("nested"),v=c.useState("nestedOpenDialogCount"),P=c.useState("open"),y=c.useState("openMethod"),R=c.useState("titleElementId"),C=c.useState("transitionStatus"),w=c.useState("role"),S=b.useState("floatingId");ir(),Bt({open:P,ref:c.context.popupRef,onComplete(){P&&c.context.onOpenChangeComplete?.(!0)}});let N=d===void 0?Ao(c.context.popupRef):d,k=v>0,O=c.useStateSetter("popupElement"),H=B("div",e,{state:{open:P,nested:h,transitionStatus:C,nestedDialogOpen:k},props:[g,{id:S,"aria-labelledby":R,"aria-describedby":u,role:w,...qt,hidden:!x,onKeyDown(V){Wo.has(V.key)&&V.stopPropagation()},style:{[Bn]:v}},p],ref:[o,c.context.popupRef,O],stateAttributesMapping:lr});return(0,zn.jsx)(Io,{context:b,openInteractionType:y,disabled:!x,closeOnFocusOut:!f,initialFocus:N,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:H})},"DialogPopup"));var Un=T(A(),1);var bo=T(le(),1);var Zn=Un.forwardRef(s(function(e,o){let{keepMounted:r=!1,...a}=e,i=se(),l=i.useState("mounted"),d=i.useState("modal"),p=i.useState("open");return l||r?(0,bo.jsx)(Lr.Provider,{value:r,children:(0,bo.jsxs)(Mo,{ref:o,...a,children:[l&&d===!0&&(0,bo.jsx)(Uo,{ref:i.context.internalBackdropRef,inert:zo(!p)}),e.children]})}):null},"DialogPortal"));var Yn=T(A(),1);var Br=T(A(),1);function qn({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),a=t.useState("disablePointerDismissal"),i=t.useState("modal"),l=t.useState("popupElement"),d=t.useState("floatingRootContext"),[p,c]=Br.useState(0),[u,f]=Br.useState(0),b=p===0,g=Kt(d,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:i==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(m){if(!t.context.outsidePressEnabledRef.current||"button"in m&&m.button!==0)return!1;if("touches"in m){if(m.type==="touchend"){if(m.changedTouches.length!==1||m.touches.length!==0)return!1}else if(m.touches.length!==1)return!1}let x=Ca(m);if(b&&!a){if(i){let h=t.context.internalBackdropRef.current,v=t.context.backdropRef.current;return h||v?h===x||v===x||uo(x,l)&&!x?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:b});return qa(r&&i===!0,l),t.useContextCallback("onNestedDialogOpen",(m,x)=>{c(m),f(x)}),Ce(()=>(e?.onNestedDialogOpen&&(r?e.onNestedDialogOpen(p+1,u+(o?1:0)):e.onNestedDialogOpen(0,0)),()=>{e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(0,0)}),[o,r,p,u,e]),Xt(t,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}s(qn,"DialogInteractions");var cr=T(A(),1);var Wn={...eo,modal:s(t=>t.modal,"modal"),nested:s(t=>t.nested,"nested"),nestedOpenDialogCount:s(t=>t.nestedOpenDialogCount,"nestedOpenDialogCount"),nestedOpenDrawerCount:s(t=>t.nestedOpenDrawerCount,"nestedOpenDrawerCount"),disablePointerDismissal:s(t=>t.disablePointerDismissal,"disablePointerDismissal"),openMethod:s(t=>t.openMethod,"openMethod"),descriptionElementId:s(t=>t.descriptionElementId,"descriptionElementId"),titleElementId:s(t=>t.titleElementId,"titleElementId"),viewportElement:s(t=>t.viewportElement,"viewportElement"),role:s(t=>t.role,"role")},dr=class extends Zt{static{s(this,"DialogStore")}constructor(e,o,r){let a=new Te,i=Gn(e,a,o,r);super(i,Qn(a),Wn)}setOpen=s((e,o)=>{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&&(this.state.floatingRootContext.dispatchOpenChange(e,o),this.update(Vo(this.state,e,o.trigger)))},"setOpen")};function $n(){let t=new Te;return new oo(Object.freeze(Gn(void 0,t)),Object.freeze(Qn(t)),Wn)}s($n,"createNullDialogStore");function Gn(t,e,o,r=!1){return{...Jt(e,o,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}s(Gn,"createInitialState");function Qn(t){return{popupRef:cr.createRef(),backdropRef:cr.createRef(),internalBackdropRef:cr.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:t,onOpenChange:void 0,onOpenChangeComplete:void 0}}s(Qn,"createInitialContext");var xo=T(le(),1);function Xn(t,e){let{children:o,open:r,defaultOpen:a=!1,onOpenChange:i,onOpenChangeComplete:l,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:c,handle:u,triggerId:f,defaultTriggerId:b=null}=e,g=t==="drawer",m=t==="alert-dialog",x=m?!0:p,h=m||d,v=m?"alertdialog":"dialog",P=se(!0),y=P!=null,R={modal:x,disablePointerDismissal:h,nested:y,role:v},C=Wt((_,H)=>new dr({open:a,openProp:r,activeTriggerId:b,triggerIdProp:f,...R},_,H),!0);C.useControlledProp("openProp",r),C.useControlledProp("triggerIdProp",f),C.useSyncedValues(R),C.useContextCallback("onOpenChange",i),C.useContextCallback("onOpenChangeComplete",l);let w=C.useState("open"),S=C.useState("mounted"),N=C.useState("payload");Ho(C,w),Qt(C);let{forceUnmount:k}=Yt(w,C);Yn.useImperativeHandle(c,()=>({unmount:k,close:s(()=>C.setOpen(!1,ne(K.imperativeAction)),"close")}),[k,C]);let O=w||S;return(0,xo.jsxs)(Hr.Provider,{value:C,children:[u&&(0,xo.jsx)($t,{handle:u,store:C}),O&&(0,xo.jsx)(qn,{store:C,parentContext:P?.context,isDrawer:g}),typeof o=="function"?o({payload:N}):o]})}s(Xn,"useRenderDialogRoot");var Jn=jt(s(function(e){return Xn("dialog",e)},"DialogRoot"));var es=T(A(),1);var ts=es.forwardRef(s(function(e,o){let{render:r,className:a,style:i,children:l,...d}=e,p=ir(),c=se(),u=c.useState("open"),f=c.useState("nested"),b=c.useState("transitionStatus"),g=c.useState("nestedOpenDialogCount"),m=c.useState("mounted"),x=c.useStateSetter("viewportElement"),h=g>0;return B("div",e,{enabled:p||m,state:{open:u,nested:f,transitionStatus:b,nestedDialogOpen:h},ref:[o,x],stateAttributesMapping:lr,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},d]})},"DialogViewport"));var os=T(A(),1);var rs=os.forwardRef(s(function(e,o){let{render:r,className:a,style:i,id:l,...d}=e,p=se(),c=he(l);return p.useSyncedValueWithCleanup("titleElementId",c),B("h2",e,{ref:o,props:[{id:c},d]})},"DialogTitle"));var as=T(A(),1);var ns=zt(s(function(e,o){let{render:r,className:a,style:i,disabled:l=!1,nativeButton:d=!0,id:p,payload:c,handle:u,...f}=e,b=se(!0),m=to(u)??b;if(!m)throw new Error(X(79));let x=he(p),h=m.useState("floatingRootContext"),v=m.useState("isOpenedByTrigger",x),P=m.useState("triggerPopupId",x),y=as.useRef(null),{registerTrigger:R,isMountedByThisTrigger:C}=Gt(x,y,m,{payload:c}),{getButtonProps:w,buttonRef:S}=ke({disabled:l,native:d}),N=_o(h),k=jo(()=>m.select("open"),H=>{m.set("openMethod",H)}),O={disabled:l,open:v},_=m.useState("triggerProps",C);return B("button",e,{state:O,ref:[S,o,R,y],props:[N.reference,_,k,{[Oo]:"",id:x,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":P},f,w],stateAttributesMapping:Ht})},"DialogTrigger"));var yo=class extends Ut{static{s(this,"DialogHandle")}constructor(){super($n(),"Dialog",!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let o=this.attachedStore;o!==null&&(o.set("payload",e),o.setOpen(!0,ne(K.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function ss(){return new yo}s(ss,"createDialogHandle");var Re={};Cr(Re,{Arrow:()=>Es,Handle:()=>Co,Popup:()=>Ts,Portal:()=>Cs,Positioner:()=>Ss,Provider:()=>Os,Root:()=>us,Trigger:()=>hs,Viewport:()=>Ms,createHandle:()=>Is});var no=T(A(),1);var pr=T(A(),1);var Fr=pr.createContext(void 0);function ye(t){let e=pr.useContext(Fr);if(e===void 0&&!t)throw new Error(X(72));return e}s(ye,"useTooltipRootContext");var is=T(A(),1);var ls={...eo,disabled:s(t=>t.disabled,"disabled"),instantType:s(t=>t.instantType,"instantType"),isInstantPhase:s(t=>t.isInstantPhase,"isInstantPhase"),trackCursorAxis:s(t=>t.trackCursorAxis,"trackCursorAxis"),disableHoverablePopup:s(t=>t.disableHoverablePopup,"disableHoverablePopup"),lastOpenChangeReason:s(t=>t.openChangeReason,"lastOpenChangeReason"),closeOnClick:s(t=>t.closeOnClick,"closeOnClick"),closeDelay:s(t=>t.closeDelay,"closeDelay"),adaptiveOrigin:s(t=>t.adaptiveOrigin,"adaptiveOrigin")},ur=class extends Zt{static{s(this,"TooltipStore")}constructor(e,o,r){let a=new Te;super(ds(e,a,o,r),ps(a),ls)}setOpen=s((e,o)=>{za(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,ne(K.triggerPress,e))}};function cs(){let t=new Te,e=new oo(Object.freeze(ds(void 0,t)),Object.freeze(ps(t)),ls);return Object.assign(e,{setOpen:po,cancelPendingOpen:po})}s(cs,"createNullTooltipStore");function ds(t,e,o,r=!1){return{...Jt(e,o,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...t}}s(ds,"createInitialState");function ps(t){return{popupRef:is.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}s(ps,"createInitialContext");var Po=T(le(),1);var us=jt(s(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:a,disableHoverablePopup:i=!1,trackCursorAxis:l="none",actionsRef:d,onOpenChange:p,onOpenChangeComplete:c,handle:u,triggerId:f,defaultTriggerId:b=null,children:g}=e,m=Wt((_,H)=>new ur({open:r,openProp:a,activeTriggerId:b,triggerIdProp:f},_,H));m.useControlledProp("openProp",a),m.useControlledProp("triggerIdProp",f),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",c);let x=m.useState("open"),h=!o&&x,v=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:i,disabled:o}),Qt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:R,transitionStatus:C}=Yt(h,m),w=m.useState("isInstantPhase"),S=m.useState("instantType"),N=m.useState("lastOpenChangeReason"),k=no.useRef(null);Ce(()=>{x&&o&&m.setOpen(!1,ne(K.disabled))},[x,o,m]),Ce(()=>{C==="ending"&&N===K.none||C!=="ending"&&w?(S!=="delay"&&(k.current=S),m.set("instantType","delay")):k.current!==null&&(m.set("instantType",k.current),k.current=null)},[C,w,N,S,m]),Ce(()=>{h&&v==null&&m.set("payload",void 0)},[m,v,h]),no.useImperativeHandle(d,()=>({unmount:R,close:s(()=>m.setOpen(!1,ne(K.imperativeAction)),"close")}),[R,m]);let O=h||P||!o&&l!=="none";return(0,Po.jsxs)(Fr.Provider,{value:m,children:[u&&(0,Po.jsx)($t,{handle:u,store:m}),O&&(0,Po.jsx)(pi,{store:m,disabled:o,trackCursorAxis:l}),typeof g=="function"?g({payload:y}):g]})},"TooltipRoot"));function pi({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),a=Kt(r,{enabled:!e,referencePress:s(()=>t.select("closeOnClick"),"referencePress")}),i=Fa(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=no.useMemo(()=>co(i.reference,a.reference),[i.reference,a.reference]);return Xt(t,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:a.floating??ya}),null}s(pi,"TooltipInteractions");var fr=T(A(),1);var mr=T(A(),1);var jr=mr.createContext(void 0);function ms(){return mr.useContext(jr)}s(ms,"useTooltipProviderContext");var gs="data-base-ui-tooltip-trigger";function fs(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let a=o[r];if(Eo(a))return a}}let e=t.target;return Eo(e)?e:null}s(fs,"getTargetElement");function ui(t){let e=t;for(;e;){let o=e.closest(`[${gs}]`);if(o)return o;let r=e.getRootNode();e="host"in r&&Eo(r.host)?r.host:null}return null}s(ui,"closestEnabledTooltipTrigger");var hs=zt(s(function(e,o){let{render:r,className:a,style:i,handle:l,payload:d,disabled:p,delay:c,closeOnClick:u=!0,closeDelay:f,id:b,...g}=e,m=ye(!0),h=to(l)??m;if(!h)throw new Error(X(82));let v=he(b),P=h.useState("isTriggerActive",v),y=h.useState("isOpenedByTrigger",v),R=h.useState("floatingRootContext"),C=fr.useRef(null),w=f??0,{registerTrigger:S,isMountedByThisTrigger:N}=Gt(v,C,h,{payload:d,closeOnClick:u,closeDelay:w}),k=ms(),{activeIdRef:O,delayRef:_,isInstantPhase:H,hasProvider:V}=_a(R,{open:y}),L=Ua(R);h.useSyncedValue("isInstantPhase",H);let F=h.useState("disabled"),j=p??F,U=Aa(j),z=h.useState("trackCursorAxis"),D=h.useState("disableHoverablePopup"),I=fr.useRef(!1),W=Ea(),$=fr.useRef(void 0);function ie(){return V&&O.current!=null?0:c??k??600}s(ie,"getOpenDelay");function oe(Z){let G=C.current;if(!G||!Z)return!1;let te=ui(Z);return te!==null&&te!==G&&uo(G,te)}s(oe,"isEnabledNestedTriggerTarget");function re(Z){let G=oe(Z);return I.current=G,G&&(L.openChangeTimeout.clear(),L.restTimeout.clear(),L.restTimeoutPending=!1,W.clear()),G}s(re,"detectNestedTriggerHover");let ee=Bo(R,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!D&&z!=="both"?Fo():null,restMs:ie,delay(){return f==null&&V?{close:Ma(_.current,"close")}:{close:w}},triggerElementRef:C,isActiveTrigger:P,isClosing:s(()=>h.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!I.current}}),Y=Ka(R,{enabled:!j}).reference,be=s(Z=>{let G=I.current,te=fs(Z),xe=re(te),pe=C.current,ve=pe&&te&&uo(pe,te);if(xe&&h.select("open")&&h.select("lastOpenChangeReason")===K.triggerHover){h.setOpen(!1,ne(K.triggerHover,Z));return}if(G&&!xe&&ve&&!U.current&&!h.select("open")&&pe&&Ta($.current)){let Se=s(()=>{!I.current&&!U.current&&!h.select("open")&&h.setOpen(!0,ne(K.triggerHover,Z,pe))},"open"),Ne=ie();Ne===0?(W.clear(),Se()):W.start(Ne,Se)}},"handleNestedTriggerHover"),de=h.useState("triggerProps",N);return B("button",e,{state:{open:y},ref:[o,S,C],props:[ee,Y,N||z!=="none"?de:void 0,{onMouseOver(Z){be(Z.nativeEvent)},onFocus(Z){oe(fs(Z.nativeEvent))&&Z.preventBaseUIHandler()},onMouseLeave(){I.current=!1,W.clear(),$.current=void 0},onPointerEnter(Z){$.current=Z.pointerType},onPointerDown(Z){$.current=Z.pointerType,h.set("closeOnClick",u),u&&!h.select("open")&&h.cancelPendingOpen(Z.nativeEvent)},onClick(Z){u&&!h.select("open")&&h.cancelPendingOpen(Z.nativeEvent)},id:v,[Na]:j?"":void 0,[gs]:j?void 0:""},g],stateAttributesMapping:Ht})},"TooltipTrigger"));var Ps=T(A(),1);var gr=T(A(),1);var zr=gr.createContext(void 0);function vs(){let t=gr.useContext(zr);if(t===void 0)throw new Error(X(70));return t}s(vs,"useTooltipPortalContext");var hr=T(A(),1),bs=T(ea(),1);var xs=T(le(),1);var ys=hr.forwardRef(s(function(e,o){let{children:r,container:a,className:i,render:l,style:d,...p}=e,{node:c,subtree:u}=Va({container:a,ref:o,componentProps:e,elementProps:p});return!u&&!c?null:(0,xs.jsxs)(hr.Fragment,{children:[u,c&&bs.createPortal(r,c)]})},"FloatingPortalLite"));var Kr=T(le(),1);var Cs=Ps.forwardRef(s(function(e,o){let{keepMounted:r=!1,...a}=e;return ye().useState("mounted")||r?(0,Kr.jsx)(zr.Provider,{value:r,children:(0,Kr.jsx)(ys,{ref:o,...a})}):null},"TooltipPortal"));var br=T(A(),1);var vr=T(A(),1);var Ur=vr.createContext(void 0);function so(){let t=vr.useContext(Ur);if(t===void 0)throw new Error(X(71));return t}s(so,"useTooltipPositionerContext");var Rs=T(le(),1);var Ss=br.forwardRef(s(function(e,o){let{render:r,className:a,anchor:i,positionMethod:l="absolute",side:d="top",align:p="center",sideOffset:c=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:b=5,arrowPadding:g=5,sticky:m=!1,disableAnchorTracking:x=!1,collisionAvoidance:h=Do,style:v,...P}=e,y=ye(),R=vs(),C=y.useState("open"),w=y.useState("mounted"),S=y.useState("trackCursorAxis"),N=y.useState("disableHoverablePopup"),k=y.useState("floatingRootContext"),O=y.useState("instantType"),_=y.useState("transitionStatus"),H=y.useState("adaptiveOrigin"),V=Ko({anchor:i,positionMethod:l,floatingRootContext:k,mounted:w,side:d,sideOffset:c,align:p,alignOffset:u,collisionBoundary:f,collisionPadding:b,sticky:m,arrowPadding:g,disableAnchorTracking:x,keepMounted:R,collisionAvoidance:h,adaptiveOrigin:H}),L=br.useMemo(()=>({open:C,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:S!=="none"?"tracking-cursor":O}),[C,V.side,V.align,V.anchorHidden,S,O]),F=qo(e,L,{styles:V.positionerStyles,transitionStatus:_,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!w,inert:!C||S==="both"||N});return(0,Rs.jsx)(Ur.Provider,{value:V,children:F})},"TooltipPositioner"));var Ns=T(A(),1);var Ts=Ns.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=ye(),{side:p,align:c}=so(),u=d.useState("open"),f=d.useState("instantType"),b=d.useState("transitionStatus"),g=d.useState("popupProps"),m=d.useState("floatingRootContext"),x=d.useState("disabled"),h=d.useState("closeDelay");Bt({open:u,ref:d.context.popupRef,onComplete(){u&&d.context.onOpenChangeComplete?.(!0)}}),Lo(m,{enabled:!x,closeDelay:h});let v=d.useStateSetter("popupElement");return B("div",e,{state:{open:u,side:p,align:c,instant:f,transitionStatus:b},ref:[o,d.context.popupRef,v],props:[qt,g,Zo(b),l],stateAttributesMapping:Oe})},"TooltipPopup"));var ws=T(A(),1);var Es=ws.forwardRef(s(function(e,o){let{render:r,className:a,style:i,...l}=e,d=ye(),{arrowRef:p,side:c,align:u,arrowUncentered:f,arrowStyles:b}=so(),g=d.useState("open"),m=d.useState("instantType");return B("div",e,{state:{open:g,side:c,align:u,uncentered:f,instant:m},ref:[o,p],props:[{style:b,"aria-hidden":!0},l],stateAttributesMapping:Lt})},"TooltipArrow"));var ks=T(A(),1);var Zr=T(le(),1);var Os=s(function(e){let{delay:o,closeDelay:r,timeout:a=400}=e,i=ks.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Zr.jsx)(jr.Provider,{value:o,children:(0,Zr.jsx)(Ia,{delay:i,timeoutMs:a,children:e.children})})},"TooltipProvider");var Ds=T(A(),1);var Ms=Ds.forwardRef(s(function(e,o){let{render:r,className:a,style:i,children:l,...d}=e,p=ye(),c=so(),u=p.useState("instantType"),{children:f,state:b}=Go({store:p,side:c.side,children:l}),g={activationDirection:b.activationDirection,transitioning:b.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[d,{children:f}],stateAttributesMapping:$o})},"TooltipViewport"));var Co=class extends Ut{static{s(this,"TooltipHandle")}constructor(){super(cs(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Is(){return new Co}s(Is,"createTooltipHandle");var _s=T(Sr(),1);var As=T(le(),1);var mi=s((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?ha:ga(e,o),"I"),Vs=s(t=>{let e=(0,_s.c)(7),{catalogs:o,children:r,i18n:a,locale:i}=t,l;e[0]!==o||e[1]!==a||e[2]!==i?(l=mi(a,i,o),e[0]=o,e[1]=a,e[2]=i,e[3]=l):l=e[3];let d=l,p;return e[4]!==r||e[5]!==d?(p=(0,As.jsx)(va,{value:d,children:r}),e[4]=r,e[5]=d,e[6]=p):p=e[6],p},"S");var Wr=T(Sr(),1);var _e=T(A(),1);var ae=T(le(),1);var qr="lunora:command-palette",Hs=s(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(qr))},"ce"),fi=s(t=>{let e=(0,Wr.c)(18),{active:o,index:r,item:a,onActivate:i,onSelect:l}=t,d;e[0]!==a||e[1]!==l?(d=s(()=>{l(a)},"g"),e[0]=a,e[1]=l,e[2]=d):d=e[2];let p=d,c;e[3]!==r||e[4]!==i?(c=s(()=>{i(r)},"x"),e[3]=r,e[4]=i,e[5]=c):c=e[5];let u=c,f=o?"bg-accent text-accent-foreground":"text-foreground",b;e[6]!==f?(b=q("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",f),e[6]=f,e[7]=b):b=e[7];let g;e[8]!==a.label?(g=(0,ae.jsx)("span",{children:a.label}),e[8]=a.label,e[9]=g):g=e[9];let m;e[10]!==a.group?(m=(0,ae.jsx)("span",{className:"text-xs text-muted-foreground",children:a.group}),e[10]=a.group,e[11]=m):m=e[11];let x;return e[12]!==p||e[13]!==u||e[14]!==b||e[15]!==g||e[16]!==m?(x=(0,ae.jsx)("li",{children:(0,ae.jsxs)("button",{className:b,onClick:p,onMouseEnter:u,type:"button",children:[g,m]})}),e[12]=p,e[13]=u,e[14]=b,e[15]=g,e[16]=m,e[17]=x):x=e[17],x},"Y"),gi=s((t,e)=>{let o=e.trim().toLowerCase();return o===""?t:t.filter(r=>r.label.toLowerCase().includes(o)||r.group.toLowerCase().includes(o))},"Z"),Ls=s(t=>{let e=(0,Wr.c)(40),{items:o}=t,r=ue(),a=io(),{palette:i}=Yo(),[l,d]=(0,_e.useState)(!1),[p,c]=(0,_e.useState)(""),[u,f]=(0,_e.useState)(0),b=(0,_e.useRef)(null),g,m;e[0]!==i?(g=s(()=>{let D=s(W=>{if(!(W.metaKey||W.ctrlKey)||W.key.toLowerCase()!==i)return;let{target:$}=W;$ instanceof HTMLElement&&($.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes($.tagName))||(W.preventDefault(),d(!0))},"t"),I=s(()=>{d(!0)},"l");return globalThis.addEventListener("keydown",D),globalThis.addEventListener(qr,I),()=>{globalThis.removeEventListener("keydown",D),globalThis.removeEventListener(qr,I)}},"s"),m=[i],e[0]=i,e[1]=g,e[2]=m):(g=e[1],m=e[2]),(0,_e.useEffect)(g,m);let x;e[3]!==o||e[4]!==p?(x=gi(o,p),e[3]=o,e[4]=p,e[5]=x):x=e[5];let h=x,v;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=s(D=>{d(D),D||(c(""),f(0))},"I"),e[6]=v):v=e[6];let P=v,y;e[7]!==a?(y=s(D=>{if(P(!1),D.run!==void 0){D.run();return}D.to!==void 0&&Ee(a({to:D.to}))},"K"),e[7]=a,e[8]=y):y=e[8];let R=y,C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=s(D=>{c(D.target.value),f(0)},"P"),e[9]=C):C=e[9];let w=C,S;e[10]!==u||e[11]!==h||e[12]!==R?(S=s(D=>{e:switch(D.key){case"ArrowDown":{D.preventDefault(),f(I=>h.length===0?0:(I+1)%h.length);break e}case"ArrowUp":{D.preventDefault(),f(I=>h.length===0?0:(I-1+h.length)%h.length);break e}case"Enter":{D.preventDefault();let I=h[u];I!==void 0&&R(I);break e}}},"z"),e[10]=u,e[11]=h,e[12]=R,e[13]=S):S=e[13];let N=S,k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=(0,ae.jsx)(ce.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[14]=k):k=e[14];let O;e[15]!==r?(O=r("Command palette"),e[15]=r,e[16]=O):O=e[16];let _;e[17]!==O?(_=(0,ae.jsx)(ce.Title,{className:"sr-only",children:O}),e[17]=O,e[18]=_):_=e[18];let H;e[19]===Symbol.for("react.memo_cache_sentinel")?(H=(0,ae.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,ae.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,ae.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[19]=H):H=e[19];let V;e[20]!==r?(V=r("Search\u2026"),e[20]=r,e[21]=V):V=e[21];let L;e[22]!==N||e[23]!==p||e[24]!==V?(L=(0,ae.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[H,(0,ae.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:w,onKeyDown:N,placeholder:V,ref:b,type:"text",value:p})]}),e[22]=N,e[23]=p,e[24]=V,e[25]=L):L=e[25];let F;e[26]!==u||e[27]!==h||e[28]!==R||e[29]!==r?(F=h.length===0?(0,ae.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):h.map((D,I)=>(0,ae.jsx)(fi,{active:I===u,index:I,item:D,onActivate:f,onSelect:R},D.to??`${D.group}:${D.label}`)),e[26]=u,e[27]=h,e[28]=R,e[29]=r,e[30]=F):F=e[30];let j;e[31]!==F?(j=(0,ae.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:F}),e[31]=F,e[32]=j):j=e[32];let U;e[33]!==_||e[34]!==L||e[35]!==j?(U=(0,ae.jsxs)(ce.Portal,{children:[k,(0,ae.jsxs)(ce.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:b,children:[_,L,j]})]}),e[33]=_,e[34]=L,e[35]=j,e[36]=U):U=e[36];let z;return e[37]!==l||e[38]!==U?(z=(0,ae.jsx)(ce.Root,{onOpenChange:P,open:l,children:U}),e[37]=l,e[38]=U,e[39]=z):z=e[39],z},"de");var Us="(prefers-color-scheme: dark)",Zs=s(()=>{try{return globalThis.localStorage}catch{return}},"ts"),hi=s(t=>t==="system"||t==="light"||t==="dark","Ws"),qs=s(()=>globalThis.matchMedia,"ss"),Ws="lunora-studio-theme",$r=["system","light","dark"],vi=s((t="system")=>{try{let e=Zs()?.getItem(Ws);return hi(e)?e:t}catch{return t}},"Us"),Bs=s(t=>{let e=Zs();if(e!==void 0)try{e.setItem(Ws,t)}catch{}},"zt"),bi=s(()=>{try{return qs()?.(Us).matches?"dark":"light"}catch{return"light"}},"js"),xi=s((t,e)=>t==="system"?e:t,"Gs"),yi=s(t=>{let e;try{e=qs()?.(Us)}catch{e=void 0}if(e===void 0)return()=>{};let o=s(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"Qs"),Xr=(0,E.createContext)(null),Pi=s(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,E.useState)(()=>vi(e)),[a,i]=(0,E.useState)(()=>bi());(0,E.useEffect)(()=>yi(i),[]);let l=s(p=>{Bs(p),r(p)},"l"),d={cycleTheme:s(()=>{r(p=>{let c=$r[($r.indexOf(p)+1)%$r.length]??p;return Bs(c),c})},"cycleTheme"),resolvedTheme:xi(o,a),setTheme:l,systemTheme:a,theme:o};return(0,n.jsx)(Xr,{value:d,children:t})},"Ks"),Ci=s(t=>{let e=(0,M.c)(3),{children:o}=t,r=(0,E.use)(Xr),a;return e[0]!==o||e[1]!==r?(a=r===null?(0,n.jsx)(Pi,{children:o}):o,e[0]=o,e[1]=r,e[2]=a):a=e[2],a},"Ys"),Ri=s(()=>{let t=(0,E.use)(Xr);if(t===null)throw new Rr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"Js");function fh({delay:t=0,...e}){return(0,n.jsx)(Re.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}s(fh,"Xr");function Si(t){let e=(0,M.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,n.jsx)(Re.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Si,"Xs");function Ni(t){let e=(0,M.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,n.jsx)(Re.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Ni,"ea");function Ti({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:a=0,children:i,...l}){return(0,n.jsx)(Re.Portal,{children:(0,n.jsx)(Re.Positioner,{align:r,alignOffset:a,side:e,sideOffset:o,className:"isolate z-50",children:(0,n.jsxs)(Re.Popup,{"data-slot":"tooltip-content",className:q("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:[i,(0,n.jsx)(Re.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"})]})})})}s(Ti,"ta");var wi=s(t=>{let e=(0,M.c)(5),{className:o}=t,r;e[0]!==o?(r=q("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.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]=a):a=e[2];let i;return e[3]!==r?(i=(0,n.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:a}),e[3]=r,e[4]=i):i=e[4],i},"sa"),Ei=["lunora-deployment-pause"],$s=s(()=>{let t=(0,M.c)(9),e=wo(),o;t[0]!==e?(o=s(async()=>e.getDeploymentPause().catch(Oi),"s"),t[0]=e,t[1]=o):o=t[1];let r=pa(Ei,o),a;t[2]!==r?(a=s(()=>r.poll(),"r"),t[2]=r,t[3]=a):a=t[3],fa(a,!0);let i;t[4]!==r?(i=s(()=>{r.refetch()},"n"),t[4]=r,t[5]=i):i=t[5];let l;return t[6]!==r.data||t[7]!==i?(l={refetch:i,state:r.data},t[6]=r.data,t[7]=i,t[8]=l):l=t[8],l},"os"),ki=s(()=>{let t=(0,M.c)(34),e=wo(),o=ue(),{refetch:r,state:a}=$s(),[i,l]=(0,E.useState)(void 0);if(a?.paused!==!0)return null;let d;t[0]!==e||t[1]!==r?(d=s(async()=>{try{await e.setDeploymentPause(!1),l(void 0),r()}catch(C){l(To(C))}},"i"),t[0]=e,t[1]=r,t[2]=d):d=t[2];let p=d,c;t[3]!==o?(c=o("Deployment paused"),t[3]=o,t[4]=c):c=t[4];let u;t[5]!==c?(u=(0,n.jsx)("strong",{children:c}),t[5]=c,t[6]=u):u=t[6];let f;t[7]!==a.pausedAt?(f=a.pausedAt!==void 0&&(0,n.jsx)("span",{className:"text-muted-foreground tabular-nums",children:da(a.pausedAt,"")}),t[7]=a.pausedAt,t[8]=f):f=t[8];let b;t[9]!==a.reason?(b=a.reason!==void 0&&(0,n.jsx)("span",{"data-testid":"deployment-paused-reason",children:a.reason}),t[9]=a.reason,t[10]=b):b=t[10];let g;t[11]!==o?(g=o("Function calls get 503, scheduled jobs are held on every scheduler instance, cron ticks are skipped and queue messages are held until you resume."),t[11]=o,t[12]=g):g=t[12];let m;t[13]!==g?(m=(0,n.jsx)("span",{className:"text-muted-foreground",children:g}),t[13]=g,t[14]=m):m=t[14];let x;t[15]!==i?(x=i!==void 0&&(0,n.jsx)("span",{className:"text-destructive",children:i}),t[15]=i,t[16]=x):x=t[16];let h;t[17]!==o?(h=o("Resume deployment?"),t[17]=o,t[18]=h):h=t[18];let v;t[19]!==p?(v=s(()=>{Ee(p())},"b"),t[19]=p,t[20]=v):v=t[20];let P;t[21]!==o?(P=o("Resume"),t[21]=o,t[22]=P):P=t[22];let y;t[23]!==P||t[24]!==h||t[25]!==v?(y=(0,n.jsx)("span",{className:"ml-auto",children:(0,n.jsx)(wr,{confirmLabel:h,onConfirm:v,testId:"deployment-resume",children:P})}),t[23]=P,t[24]=h,t[25]=v,t[26]=y):y=t[26];let R;return t[27]!==y||t[28]!==u||t[29]!==f||t[30]!==b||t[31]!==m||t[32]!==x?(R=(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-destructive/30 bg-destructive/10 px-6 py-2 text-[12px] text-foreground","data-testid":"deployment-paused-banner",role:"alert",children:[u,f,b,m,x,y]}),t[27]=y,t[28]=u,t[29]=f,t[30]=b,t[31]=m,t[32]=x,t[33]=R):R=t[33],R},"oa"),gh=s(()=>{let t=wo(),e=ue(),{refetch:o,state:r}=$s(),[a,i]=(0,E.useState)(""),[l,d]=(0,E.useState)(void 0);if(r?.supported!==!0)return null;let p=s(async c=>{try{await t.setDeploymentPause(c,c&&a!==""?a:void 0),d(void 0),o()}catch(u){d(To(u))}},"d");return(0,n.jsxs)("div",{className:"flex items-center gap-2","data-testid":"deployment-pause-toggle",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground","data-testid":"deployment-pause-state",children:r.paused?e("Deployment paused"):e("Deployment running")}),!r.paused&&(0,n.jsx)(ko,{"aria-label":e("Reason (optional)"),className:"h-8 w-56","data-testid":"deployment-pause-reason",onChange:s(c=>{i(c.target.value)},"onChange"),placeholder:e("Reason (optional)"),value:a}),(0,n.jsx)(wr,{confirmLabel:r.paused?e("Resume deployment?"):e("Pause deployment?"),onConfirm:s(()=>{Ee(p(!r.paused))},"onConfirm"),testId:r.paused?"deployment-toggle-resume":"deployment-toggle-pause",children:r.paused?e("Resume"):e("Pause")}),l!==void 0&&(0,n.jsx)("span",{className:"text-xs text-destructive",role:"alert",children:l})]})},"en");function Oi(t){if(To(t).includes("(status 404"))return{paused:!1,supported:!1};throw t}s(Oi,"ra");var Gs="lunora.studio.rulesBannerDismissed",Di=s(()=>{try{return globalThis.localStorage.getItem(Gs)==="1"}catch{return!1}},"na"),Mi=s(()=>{try{globalThis.localStorage.setItem(Gs,"1")}catch{}},"la"),Ii=s(()=>{let t=(0,M.c)(18),e=ue(),[o,r]=(0,E.useState)(_i),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=s(()=>{r(!0),Mi()},"r"),t[0]=a):a=t[0];let i=a;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.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,n.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,n.jsxs)("span",{children:[d," ",p," ",c]}),t[7]=d,t[8]=c,t[9]=u):u=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let b;t[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.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,n.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=b):b=t[12];let g;t[13]!==f?(g=(0,n.jsx)("button",{"aria-label":f,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:i,type:"button",children:b}),t[13]=f,t[14]=g):g=t[14];let m;return t[15]!==u||t[16]!==g?(m=(0,n.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,g]}),t[15]=u,t[16]=g,t[17]=m):m=t[17],m},"ia");function _i(){return Di()}s(_i,"da");function Qs(t){let e=(0,M.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,n.jsx)(Ie.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Qs,"ns");function Ys(t){let e=(0,M.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,n.jsx)(Ie.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Ys,"ls");function Xs({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:a="bottom",sideOffset:i=6,...l}){return(0,n.jsx)(Ie.Portal,{keepMounted:r,children:(0,n.jsx)(Ie.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:a,sideOffset:i,children:(0,n.jsx)(Ie.Popup,{className:q("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})})})}s(Xs,"is");var Gr=768;function Ai(){let t=(0,M.c)(2),[e,o]=(0,E.useState)(void 0),r,a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s(()=>{let i=globalThis.matchMedia(`(max-width: ${Gr-1}px)`),l=s(()=>{o(globalThis.innerWidth<Gr)},"l");return i.addEventListener("change",l),o(globalThis.innerWidth<Gr),()=>{i.removeEventListener("change",l)}},"a"),a=[],t[0]=r,t[1]=a):(r=t[0],a=t[1]),(0,E.useEffect)(r,a),!!e}s(Ai,"ca");function Vi(t){let e=(0,M.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,n.jsx)(ce.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Vi,"ua");function Hi(t){let e=(0,M.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,n.jsx)(ce.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Hi,"ma");function Li(t){let e=(0,M.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 a;e[3]!==o?(a=q("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]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)(ce.Backdrop,{"data-slot":"sheet-overlay",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Li,"fa");function Bi({className:t,children:e,side:o="right",showCloseButton:r=!0,...a}){return(0,n.jsxs)(Hi,{children:[(0,n.jsx)(Li,{}),(0,n.jsxs)(ce.Popup,{"data-slot":"sheet-content","data-side":o,className:q("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),...a,children:[e,r&&(0,n.jsxs)(ce.Close,{"data-slot":"sheet-close",render:(0,n.jsx)(Tr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,n.jsx)(Or,{icon:Ga,strokeWidth:2}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}s(Bi,"pa");function Fi(t){let e=(0,M.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 a;e[3]!==o?(a=q("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sheet-header",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Fi,"ha");function ji(t){let e=(0,M.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 a;e[3]!==o?(a=q("text-sm font-medium text-foreground",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)(ce.Title,{"data-slot":"sheet-title",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(ji,"ga");function zi(t){let e=(0,M.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 a;e[3]!==o?(a=q("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)(ce.Description,{"data-slot":"sheet-description",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(zi,"ba");var Ki="sidebar_state",Ui=3600*24*7,Zi="16rem",qi="18rem",Wi="3rem",$i="b",Js=Pe.createContext(null);function xr(){let t=Pe.useContext(Js);if(!t)throw new Rr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}s(xr,"Mt");function Gi({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:a,children:i,...l}){let d=Ai(),[p,c]=Pe.useState(!1),[u,f]=Pe.useState(t),b=e??u,g=s(v=>{let P=typeof v=="function"?v(b):v;o?o(P):f(P),document.cookie=`${Ki}=${P}; path=/; max-age=${Ui}`},"m"),m=s(()=>d?c(v=>!v):g(v=>!v),"v"),x=Pe.useEffectEvent(()=>{m()});Pe.useEffect(()=>{let v=s(P=>{P.key===$i&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),x())},"p");return globalThis.addEventListener("keydown",v),()=>globalThis.removeEventListener("keydown",v)},[]);let h={state:b?"expanded":"collapsed",open:b,setOpen:g,isMobile:d,openMobile:p,setOpenMobile:c,toggleSidebar:m};return(0,n.jsx)(Js.Provider,{value:h,children:(0,n.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Zi,"--sidebar-width-icon":Wi,...a},className:q("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:i})})}s(Gi,"Ma");function Qi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:a,dir:i,...l}){let{isMobile:d,state:p,openMobile:c,setOpenMobile:u}=xr();return o==="none"?(0,n.jsx)("div",{"data-slot":"sidebar",className:q("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:a}):d?(0,n.jsx)(Vi,{open:c,onOpenChange:u,...l,children:(0,n.jsxs)(Bi,{dir:i,"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":qi},side:t,children:[(0,n.jsxs)(Fi,{className:"sr-only",children:[(0,n.jsx)(ji,{children:"Sidebar"}),(0,n.jsx)(zi,{children:"Displays the mobile sidebar."})]}),(0,n.jsx)("div",{className:"flex h-full w-full flex-col",children:a})]})}):(0,n.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,n.jsx)("div",{"data-slot":"sidebar-gap",className:q("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,n.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:q("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,n.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:a})})]})}s(Qi,"Sa");function Yi(t){let e=(0,M.c)(15),o,r,a;e[0]!==t?({className:o,onClick:r,...a}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=a):(o=e[1],r=e[2],a=e[3]);let{toggleSidebar:i}=xr(),l;e[4]!==o?(l=q(o),e[4]=o,e[5]=l):l=e[5];let d;e[6]!==r||e[7]!==i?(d=s(f=>{r?.(f),i()},"i"),e[6]=r,e[7]=i,e[8]=d):d=e[8];let p,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)(Or,{icon:Qa,strokeWidth:2,className:"rtl:rotate-180"}),c=(0,n.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]!==a||e[12]!==l||e[13]!==d?(u=(0,n.jsxs)(Tr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:d,...a,children:[p,c]}),e[11]=a,e[12]=l,e[13]=d,e[14]=u):u=e[14],u}s(Yi,"Ca");function Xi(t){let e=(0,M.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 a;e[3]!==o?(a=q("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]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("main",{"data-slot":"sidebar-inset",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Xi,"Pa");function Ji(t){let e=(0,M.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 a;e[3]!==o?(a=q("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Ji,"_a");function el(t){let e=(0,M.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 a;e[3]!==o?(a=q("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(el,"Ta");function tl(t){let e=(0,M.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 a;e[3]!==o?(a=q("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]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(tl,"Aa");function ol(t){let e=(0,M.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 a;e[3]!==o?(a=q("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(ol,"Ra");function rl(t){let e=(0,M.c)(10),o,r,a,i;if(e[0]!==t){let{className:p,render:c,...u}=t;o=c,i=Er,r="div",a=co({className:q("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]=a,e[4]=i}else o=e[1],r=e[2],a=e[3],i=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]!==a?(d={defaultTagName:r,props:a,render:o,state:l},e[6]=o,e[7]=r,e[8]=a,e[9]=d):d=e[9],i(d)}s(rl,"La");function al(t){let e=(0,M.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 a;e[3]!==o?(a=q("w-full text-xs",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(al,"Ia");function Fs(t){let e=(0,M.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 a;e[3]!==o?(a=q("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(Fs,"Ot");function js(t){let e=(0,M.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 a;e[3]!==o?(a=q("group/menu-item relative",o),e[3]=o,e[4]=a):a=e[4];let i;return e[5]!==r||e[6]!==a?(i=(0,n.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...r}),e[5]=r,e[6]=a,e[7]=i):i=e[7],i}s(js,"Zt");var nl=Pa("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 ei({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:a,className:i,...l}){let{isMobile:d,state:p}=xr(),c=Er({defaultTagName:"button",props:co({className:q(nl({variant:o,size:r}),i)},l),render:a?(0,n.jsx)(Ni,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return a?(typeof a=="string"&&(a={children:a}),(0,n.jsxs)(Si,{children:[c,(0,n.jsx)(Ti,{side:"right",align:"center",hidden:p!=="collapsed"||d,...a})]})):c}s(ei,"cs");var sl=s(t=>t.replace("__lunora_admin__:",""),"$a"),il=s(()=>(0,E.useSyncExternalStore)(lo.subscribe,lo.getSnapshot,lo.getSnapshot),"Ha"),ll=s(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","Da"),cl=s(t=>{let e=(0,M.c)(56),{entry:o,focused:r}=t,a=ue(),i;e[0]!==r?(i=s(H=>{H!==null&&r&&H.scrollIntoView({block:"nearest"})},"n"),e[0]=r,e[1]=i):i=e[1];let l=i,d;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(d=s(()=>{ca(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"i"),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=q("border-b border-border/60 last:border-b-0",c),e[6]=c,e[7]=u):u=e[7];let f;e[8]!==o.status?(f=ll(o.status),e[8]=o.status,e[9]=f):f=e[9];let b=o.status==="pending"?"\u2026":o.status,g;e[10]!==f||e[11]!==b?(g=(0,n.jsx)(Ft,{className:"mt-px shrink-0",variant:f,children:b}),e[10]=f,e[11]=b,e[12]=g):g=e[12];let m;e[13]!==o.functionPath?(m=sl(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let x;e[15]!==m?(x=(0,n.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=x):x=e[16];let h;e[17]!==o.kind||e[18]!==a?(h=o.kind==="subscription"&&(0,n.jsx)(Ft,{className:"shrink-0",variant:"outline",children:a("live")}),e[17]=o.kind,e[18]=a,e[19]=h):h=e[19];let v;e[20]!==o.summary?(v=o.summary!==""&&(0,n.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=v):v=e[21];let P;e[22]!==o.shardKey?(P=o.shardKey!==""&&(0,n.jsx)("span",{className:"font-mono",children:o.shardKey}),e[22]=o.shardKey,e[23]=P):P=e[23];let y;e[24]!==o.resultCount||e[25]!==a?(y=o.resultCount!==void 0&&(0,n.jsx)("span",{children:a("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=a,e[26]=y):y=e[26];let R;e[27]!==o.pushes||e[28]!==a?(R=o.pushes!==void 0&&o.pushes>0&&(0,n.jsx)("span",{children:a("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=a,e[29]=R):R=e[29];let C;e[30]!==o.durationMs?(C=o.durationMs!==void 0&&(0,n.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=C):C=e[31];let w;e[32]!==a?(w=a("Copy"),e[32]=a,e[33]=w):w=e[33];let S;e[34]!==p||e[35]!==w?(S=(0,n.jsx)("button",{"aria-label":w,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]=w,e[36]=S):S=e[36];let N;e[37]!==P||e[38]!==y||e[39]!==R||e[40]!==C||e[41]!==S?(N=(0,n.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[P,y,R,C,S]}),e[37]=P,e[38]=y,e[39]=R,e[40]=C,e[41]=S,e[42]=N):N=e[42];let k;e[43]!==h||e[44]!==v||e[45]!==N||e[46]!==g||e[47]!==x?(k=(0,n.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[g,x,h,v,N]}),e[43]=h,e[44]=v,e[45]=N,e[46]=g,e[47]=x,e[48]=k):k=e[48];let O;e[49]!==o.error?(O=o.error!==void 0&&(0,n.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]=O):O=e[50];let _;return e[51]!==l||e[52]!==k||e[53]!==O||e[54]!==u?(_=(0,n.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[k,O]}),e[51]=l,e[52]=k,e[53]=O,e[54]=u,e[55]=_):_=e[55],_},"Ba"),dl=s(t=>{let e=(0,M.c)(62),{focusSeq:o,onClose:r,onShownChange:a,shown:i}=t,l=ue(),d=il(),[p,c]=(0,E.useState)(""),u;if(e[0]!==d||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==a||e[5]!==i||e[6]!==l){let f=p.trim().toLowerCase(),b=d.filter(I=>(i==="errors"?I.status==="error":!0)&&(f===""||`${I.functionPath} ${I.summary} ${I.shardKey}`.toLowerCase().includes(f))).toReversed(),g;e[8]!==d?(g=d.filter(pl),e[8]=d,e[9]=g):g=e[9];let m=g.length,x;e[10]!==l?(x=l("Operation console"),e[10]=l,e[11]=x):x=e[11];let h;e[12]!==l?(h=l("Operation console"),e[12]=l,e[13]=h):h=e[13];let v;e[14]!==h?(v=(0,n.jsx)("span",{className:"text-xs font-medium",children:h}),e[14]=h,e[15]=v):v=e[15];let P;e[16]!==d.length||e[17]!==l?(P=l("{count} calls",{count:d.length}),e[16]=d.length,e[17]=l,e[18]=P):P=e[18];let y;e[19]!==P?(y=(0,n.jsx)(Ft,{variant:"secondary",children:P}),e[19]=P,e[20]=y):y=e[20];let R;e[21]!==m||e[22]!==l?(R=m>0&&(0,n.jsx)(Ft,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=R):R=e[23];let C=i==="errors",w=i==="errors"&&"bg-accent",S;e[24]!==w?(S=q("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",w),e[24]=w,e[25]=S):S=e[25];let N;e[26]!==a||e[27]!==i?(N=s(()=>{a(i==="errors"?"all":"errors")},"S"),e[26]=a,e[27]=i,e[28]=N):N=e[28];let k;e[29]!==l?(k=l("Errors"),e[29]=l,e[30]=k):k=e[30];let O;e[31]!==S||e[32]!==N||e[33]!==k||e[34]!==C?(O=(0,n.jsx)("button",{"aria-pressed":C,className:S,"data-testid":"oc-filter-errors",onClick:N,type:"button",children:k}),e[31]=S,e[32]=N,e[33]=k,e[34]=C,e[35]=O):O=e[35];let _;e[36]!==l?(_=l("Filter"),e[36]=l,e[37]=_):_=e[37];let H;e[38]===Symbol.for("react.memo_cache_sentinel")?(H=s(I=>{c(I.target.value)},"D"),e[38]=H):H=e[38];let V;e[39]!==l?(V=l("Filter"),e[39]=l,e[40]=V):V=e[40];let L;e[41]!==p||e[42]!==_||e[43]!==V?(L=(0,n.jsx)(ko,{"aria-label":_,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:H,placeholder:V,value:p}),e[41]=p,e[42]=_,e[43]=V,e[44]=L):L=e[44];let F;e[45]!==l?(F=l("Clear"),e[45]=l,e[46]=F):F=e[46];let j;e[47]!==F?(j=(0,n.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:ul,type:"button",children:F}),e[47]=F,e[48]=j):j=e[48];let U;e[49]!==l?(U=l("Hide"),e[49]=l,e[50]=U):U=e[50];let z;e[51]!==r||e[52]!==U?(z=(0,n.jsx)("button",{"aria-label":U,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]=U,e[53]=z):z=e[53];let D;e[54]!==O||e[55]!==L||e[56]!==j||e[57]!==z||e[58]!==v||e[59]!==y||e[60]!==R?(D=(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[v,y,R,O,L,j,z]}),e[54]=O,e[55]=L,e[56]=j,e[57]=z,e[58]=v,e[59]=y,e[60]=R,e[61]=D):D=e[61],u=(0,n.jsxs)("section",{"aria-label":x,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[D,b.length===0?(0,n.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,n.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:b.map(I=>(0,n.jsx)(cl,{entry:I,focused:I.seq===o},I.seq))})]}),e[0]=d,e[1]=o,e[2]=p,e[3]=r,e[4]=a,e[5]=i,e[6]=l,e[7]=u}else u=e[7];return u},"Va");function pl(t){return t.status==="error"}s(pl,"za");function ul(){lo.clear()}s(ul,"Oa");var ml=s(()=>{let t=(0,M.c)(334),e=ue(),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 a;t[4]!==e?(a=e("Evals"),t[4]=e,t[5]=a):a=t[5];let i;t[6]!==e?(i=e("AI usage"),t[6]=e,t[7]=i):i=t[7];let l;t[8]!==e?(l=e("Analytics"),t[8]=e,t[9]=l):l=t[9];let d;t[10]!==e?(d=e("API"),t[10]=e,t[11]=d):d=t[11];let p;t[12]!==e?(p=e("Architecture"),t[12]=e,t[13]=p):p=t[13];let c;t[14]!==e?(c=e("Audit"),t[14]=e,t[15]=c):c=t[15];let u;t[16]!==e?(u=e("Auth audit"),t[16]=e,t[17]=u):u=t[17];let f;t[18]!==e?(f=e("Configuration"),t[18]=e,t[19]=f):f=t[19];let b;t[20]!==e?(b=e("Sessions"),t[20]=e,t[21]=b):b=t[21];let g;t[22]!==e?(g=e("Containers"),t[22]=e,t[23]=g):g=t[23];let m;t[24]!==e?(m=e("Dashboards"),t[24]=e,t[25]=m):m=t[25];let x;t[26]!==e?(x=e("Data"),t[26]=e,t[27]=x):x=t[27];let h;t[28]!==e?(h=e("Deployment health"),t[28]=e,t[29]=h):h=t[29];let v;t[30]!==e?(v=e("Log drains"),t[30]=e,t[31]=v):v=t[31];let P;t[32]!==e?(P=e("Export / Import"),t[32]=e,t[33]=P):P=t[33];let y;t[34]!==e?(y=e("Fan-out"),t[34]=e,t[35]=y):y=t[35];let R;t[36]!==e?(R=e("Files"),t[36]=e,t[37]=R):R=t[37];let C;t[38]!==e?(C=e("Flags"),t[38]=e,t[39]=C):C=t[39];let w;t[40]!==e?(w=e("Functions"),t[40]=e,t[41]=w):w=t[41];let S;t[42]!==e?(S=e("Health"),t[42]=e,t[43]=S):S=t[43];let N;t[44]!==e?(N=e("Home"),t[44]=e,t[45]=N):N=t[45];let k;t[46]!==e?(k=e("Performance"),t[46]=e,t[47]=k):k=t[47];let O;t[48]!==e?(O=e("Issues"),t[48]=e,t[49]=O):O=t[49];let _;t[50]!==e?(_=e("KV"),t[50]=e,t[51]=_):_=t[51];let H;t[52]!==e?(H=e("Logs"),t[52]=e,t[53]=H):H=t[53];let V;t[54]!==e?(V=e("Metrics"),t[54]=e,t[55]=V):V=t[55];let L;t[56]!==e?(L=e("Migrations"),t[56]=e,t[57]=L):L=t[57];let F;t[58]!==e?(F=e("Notifications"),t[58]=e,t[59]=F):F=t[59];let j;t[60]!==e?(j=e("Organizations"),t[60]=e,t[61]=j):j=t[61];let U;t[62]!==e?(U=e("Time Travel"),t[62]=e,t[63]=U):U=t[63];let z;t[64]!==e?(z=e("Privacy requests"),t[64]=e,t[65]=z):z=t[65];let D;t[66]!==e?(D=e("Mail"),t[66]=e,t[67]=D):D=t[67];let I;t[68]!==e?(I=e("Payments"),t[68]=e,t[69]=I):I=t[69];let W;t[70]!==e?(W=e("Permissions"),t[70]=e,t[71]=W):W=t[71];let $;t[72]!==e?($=e("Queues"),t[72]=e,t[73]=$):$=t[73];let ie;t[74]!==e?(ie=e("Reactors"),t[74]=e,t[75]=ie):ie=t[75];let oe;t[76]!==e?(oe=e("Realtime"),t[76]=e,t[77]=oe):oe=t[77];let re;t[78]!==e?(re=e("RLS Policies"),t[78]=e,t[79]=re):re=t[79];let ee;t[80]!==e?(ee=e("Scheduled"),t[80]=e,t[81]=ee):ee=t[81];let Y;t[82]!==e?(Y=e("Schema"),t[82]=e,t[83]=Y):Y=t[83];let be;t[84]!==e?(be=e("Security"),t[84]=e,t[85]=be):be=t[85];let de;t[86]!==e?(de=e("Settings"),t[86]=e,t[87]=de):de=t[87];let me;t[88]!==e?(me=e("SQL editor"),t[88]=e,t[89]=me):me=t[89];let fe;t[90]!==e?(fe=e("Traces"),t[90]=e,t[91]=fe):fe=t[91];let ge;t[92]!==e?(ge=e("Access Rules"),t[92]=e,t[93]=ge):ge=t[93];let Z;t[94]!==e?(Z=e("Users"),t[94]=e,t[95]=Z):Z=t[95];let G;t[96]!==e?(G=e("Vectors"),t[96]=e,t[97]=G):G=t[97];let te;t[98]!==e?(te=e("Workflows"),t[98]=e,t[99]=te):te=t[99];let xe;t[100]!==o||t[101]!==r||t[102]!==b||t[103]!==g||t[104]!==m||t[105]!==x||t[106]!==h||t[107]!==v||t[108]!==P||t[109]!==y||t[110]!==R||t[111]!==C||t[112]!==a||t[113]!==w||t[114]!==S||t[115]!==N||t[116]!==k||t[117]!==O||t[118]!==_||t[119]!==H||t[120]!==V||t[121]!==L||t[122]!==F||t[123]!==i||t[124]!==j||t[125]!==U||t[126]!==z||t[127]!==D||t[128]!==I||t[129]!==W||t[130]!==$||t[131]!==ie||t[132]!==oe||t[133]!==re||t[134]!==l||t[135]!==ee||t[136]!==Y||t[137]!==be||t[138]!==de||t[139]!==me||t[140]!==fe||t[141]!==ge||t[142]!==Z||t[143]!==G||t[144]!==te||t[145]!==d||t[146]!==p||t[147]!==c||t[148]!==u||t[149]!==f?(xe={advisorHealth:o,agents:r,evals:a,aiUsage:i,analytics:l,api:d,architecture:p,audit:c,authAudit:u,authConfig:f,authSessions:b,containers:g,dashboards:m,data:x,deploymentHealth:h,drains:v,export:P,fanout:y,files:R,flags:C,functions:w,health:S,home:N,insights:k,issues:O,kv:_,logs:H,metrics:V,migrations:L,notifications:F,organizations:j,pitr:U,privacyRequests:z,mail:D,payments:I,permissions:W,queues:$,reactors:ie,realtime:oe,rls:re,schedule:ee,schema:Y,security:be,settings:de,sql:me,traces:fe,storageRules:ge,users:Z,vectors:G,workflows:te},t[100]=o,t[101]=r,t[102]=b,t[103]=g,t[104]=m,t[105]=x,t[106]=h,t[107]=v,t[108]=P,t[109]=y,t[110]=R,t[111]=C,t[112]=a,t[113]=w,t[114]=S,t[115]=N,t[116]=k,t[117]=O,t[118]=_,t[119]=H,t[120]=V,t[121]=L,t[122]=F,t[123]=i,t[124]=j,t[125]=U,t[126]=z,t[127]=D,t[128]=I,t[129]=W,t[130]=$,t[131]=ie,t[132]=oe,t[133]=re,t[134]=l,t[135]=ee,t[136]=Y,t[137]=be,t[138]=de,t[139]=me,t[140]=fe,t[141]=ge,t[142]=Z,t[143]=G,t[144]=te,t[145]=d,t[146]=p,t[147]=c,t[148]=u,t[149]=f,t[150]=xe):xe=t[150];let pe=xe,ve;t[151]!==e?(ve=e("Advisors"),t[151]=e,t[152]=ve):ve=t[152];let Se;t[153]!==e?(Se=e("Auth"),t[153]=e,t[154]=Se):Se=t[154];let Ne;t[155]!==e?(Ne=e("Database"),t[155]=e,t[156]=Ne):Ne=t[156];let Ae;t[157]!==e?(Ae=e("Functions"),t[157]=e,t[158]=Ae):Ae=t[158];let Ve;t[159]!==e?(Ve=e("Observability"),t[159]=e,t[160]=Ve):Ve=t[160];let He;t[161]!==e?(He=e("Operations"),t[161]=e,t[162]=He):He=t[162];let Le;t[163]!==e?(Le=e("Overview"),t[163]=e,t[164]=Le):Le=t[164];let Be;t[165]!==e?(Be=e("Settings"),t[165]=e,t[166]=Be):Be=t[166];let Fe;t[167]!==e?(Fe=e("Storage"),t[167]=e,t[168]=Fe):Fe=t[168];let Ro;t[169]!==ve||t[170]!==Se||t[171]!==Ne||t[172]!==Ae||t[173]!==Ve||t[174]!==He||t[175]!==Le||t[176]!==Be||t[177]!==Fe?(Ro={advisors:ve,auth:Se,database:Ne,functions:Ae,observability:Ve,operations:He,overview:Le,settings:Be,storage:Fe},t[169]=ve,t[170]=Se,t[171]=Ne,t[172]=Ae,t[173]=Ve,t[174]=He,t[175]=Le,t[176]=Be,t[177]=Fe,t[178]=Ro):Ro=t[178];let yr=Ro,je;t[179]!==e?(je=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[179]=e,t[180]=je):je=t[180];let ze;t[181]!==e?(ze=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[181]=e,t[182]=ze):ze=t[182];let Ke;t[183]!==e?(Ke=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[183]=e,t[184]=Ke):Ke=t[184];let Ue;t[185]!==e?(Ue=e("Tokens and spend from ctx.ai.model calls \u2014 totals, per function and per model, and the recent calls behind them."),t[185]=e,t[186]=Ue):Ue=t[186];let Ze;t[187]!==e?(Ze=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[187]=e,t[188]=Ze):Ze=t[188];let qe;t[189]!==e?(qe=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[189]=e,t[190]=qe):qe=t[190];let We;t[191]!==e?(We=e("A durable log of admin state-changing operations."),t[191]=e,t[192]=We):We=t[192];let $e;t[193]!==e?($e=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[193]=e,t[194]=$e):$e=t[194];let Ge;t[195]!==e?(Ge=e("Enabled plugins and session config (read-only)."),t[195]=e,t[196]=Ge):Ge=t[196];let Qe;t[197]!==e?(Qe=e("Your modules, and the calls, reads, writes and hand-offs between them, from codegen."),t[197]=e,t[198]=Qe):Qe=t[198];let Ye;t[199]!==e?(Ye=e("Browse and revoke active sessions across all users."),t[199]=e,t[200]=Ye):Ye=t[200];let Xe;t[201]!==e?(Xe=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[201]=e,t[202]=Xe):Xe=t[202];let Je;t[203]!==e?(Je=e("Chart widgets backed by saved read-only SQL queries."),t[203]=e,t[204]=Je):Je=t[204];let et;t[205]!==e?(et=e("Browse and edit rows across your shard and global tables."),t[205]=e,t[206]=et):et=t[206];let tt;t[207]!==e?(tt=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[207]=e,t[208]=tt):tt=t[208];let ot;t[209]!==e?(ot=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[209]=e,t[210]=ot):ot=t[210];let rt;t[211]!==e?(rt=e("Export a shard to NDJSON, or import rows from it."),t[211]=e,t[212]=rt):rt=t[212];let at;t[213]!==e?(at=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[213]=e,t[214]=at):at=t[214];let nt;t[215]!==e?(nt=e("Browse objects in your R2 storage buckets."),t[215]=e,t[216]=nt):nt=t[216];let st;t[217]!==e?(st=e("Inspect feature flags and their live evaluation under a targeting context."),t[217]=e,t[218]=st):st=t[218];let it;t[219]!==e?(it=e("Run registered queries, mutations, and actions."),t[219]=e,t[220]=it):it=t[220];let lt;t[221]!==e?(lt=e("At-a-glance connection, error, and shard signals."),t[221]=e,t[222]=lt):lt=t[222];let ct;t[223]!==e?(ct=e("Connection, health, and advisor summary for your deployment."),t[223]=e,t[224]=ct):ct=t[224];let dt;t[225]!==e?(dt=e("Surface slow functions, error spikes, and cache problems."),t[225]=e,t[226]=dt):dt=t[226];let pt;t[227]!==e?(pt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[227]=e,t[228]=pt):pt=t[228];let ut;t[229]!==e?(ut=e("A live stream of recent function logs."),t[229]=e,t[230]=ut):ut=t[230];let mt;t[231]!==e?(mt=e("Per-shard health and aggregate metrics."),t[231]=e,t[232]=mt):mt=t[232];let ft;t[233]!==e?(ft=e("Review migration status and run them."),t[233]=e,t[234]=ft):ft=t[234];let gt;t[235]!==e?(gt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[235]=e,t[236]=gt):gt=t[236];let ht;t[237]!==e?(ht=e("Browse and manage organizations, members, and invitations."),t[237]=e,t[238]=ht):ht=t[238];let vt;t[239]!==e?(vt=e("Restore a shard to a point in the last 30 days."),t[239]=e,t[240]=vt):vt=t[240];let bt;t[241]!==e?(bt=e("Open data-subject export and erasure requests, with due dates and failed-run retries."),t[241]=e,t[242]=bt):bt=t[242];let xt;t[243]!==e?(xt=e("Email your app sent, captured in dev."),t[243]=e,t[244]=xt):xt=t[244];let yt;t[245]!==e?(yt=e("Synced customers, subscriptions, and webhook events."),t[245]=e,t[246]=yt):yt=t[246];let Pt;t[247]!==e?(Pt=e("Inspect access policies per table, and probe a function as any identity."),t[247]=e,t[248]=Pt):Pt=t[248];let Ct;t[249]!==e?(Ct=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[249]=e,t[250]=Ct):Ct=t[250];let Rt;t[251]!==e?(Rt=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[251]=e,t[252]=Rt):Rt=t[252];let St;t[253]!==e?(St=e("Active WebSocket subscriptions on this shard."),t[253]=e,t[254]=St):St=t[254];let Nt;t[255]!==e?(Nt=e("Inspect row-level-security policies and roles, per table."),t[255]=e,t[256]=Nt):Nt=t[256];let Tt;t[257]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[257]=e,t[258]=Tt):Tt=t[258];let wt;t[259]!==e?(wt=e("Inspect each table and its columns."),t[259]=e,t[260]=wt):wt=t[260];let Et;t[261]!==e?(Et=e("Review admin gates, credentials, and log redaction."),t[261]=e,t[262]=Et):Et=t[262];let kt;t[263]!==e?(kt=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[263]=e,t[264]=kt):kt=t[264];let Ot;t[265]!==e?(Ot=e("Run read-only SQL against a shard."),t[265]=e,t[266]=Ot):Ot=t[266];let Dt;t[267]!==e?(Dt=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[267]=e,t[268]=Dt):Dt=t[268];let Mt;t[269]!==e?(Mt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[269]=e,t[270]=Mt):Mt=t[270];let It;t[271]!==e?(It=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[271]=e,t[272]=It):It=t[272];let _t;t[273]!==e?(_t=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[273]=e,t[274]=_t):_t=t[274];let At;t[275]!==e?(At=e("Browse Vectorize indexes and run similarity searches."),t[275]=e,t[276]=At):At=t[276];let Vt;t[277]!==e?(Vt=e("Inspect declared Cloudflare Workflows and their bindings."),t[277]=e,t[278]=Vt):Vt=t[278];let So;t[279]!==Tt||t[280]!==wt||t[281]!==Et||t[282]!==kt||t[283]!==Ot||t[284]!==Dt||t[285]!==Mt||t[286]!==It||t[287]!==_t||t[288]!==At||t[289]!==Vt||t[290]!==je||t[291]!==ze||t[292]!==Ke||t[293]!==Ue||t[294]!==Ze||t[295]!==qe||t[296]!==We||t[297]!==$e||t[298]!==Ge||t[299]!==Qe||t[300]!==Ye||t[301]!==Xe||t[302]!==Je||t[303]!==et||t[304]!==tt||t[305]!==ot||t[306]!==rt||t[307]!==at||t[308]!==nt||t[309]!==st||t[310]!==it||t[311]!==lt||t[312]!==ct||t[313]!==dt||t[314]!==pt||t[315]!==ut||t[316]!==mt||t[317]!==ft||t[318]!==gt||t[319]!==ht||t[320]!==vt||t[321]!==bt||t[322]!==xt||t[323]!==yt||t[324]!==Pt||t[325]!==Ct||t[326]!==Rt||t[327]!==St||t[328]!==Nt?(So={advisorHealth:je,agents:ze,evals:Ke,aiUsage:Ue,analytics:Ze,api:qe,audit:We,authAudit:$e,authConfig:Ge,architecture:Qe,authSessions:Ye,containers:Xe,dashboards:Je,data:et,deploymentHealth:tt,drains:ot,export:rt,fanout:at,files:nt,flags:st,functions:it,health:lt,home:ct,insights:dt,issues:pt,logs:ut,metrics:mt,migrations:ft,notifications:gt,organizations:ht,pitr:vt,privacyRequests:bt,mail:xt,payments:yt,permissions:Pt,queues:Ct,reactors:Rt,realtime:St,rls:Nt,schedule:Tt,schema:wt,security:Et,settings:kt,sql:Ot,kv:Dt,storageRules:Mt,traces:It,users:_t,vectors:At,workflows:Vt},t[279]=Tt,t[280]=wt,t[281]=Et,t[282]=kt,t[283]=Ot,t[284]=Dt,t[285]=Mt,t[286]=It,t[287]=_t,t[288]=At,t[289]=Vt,t[290]=je,t[291]=ze,t[292]=Ke,t[293]=Ue,t[294]=Ze,t[295]=qe,t[296]=We,t[297]=$e,t[298]=Ge,t[299]=Qe,t[300]=Ye,t[301]=Xe,t[302]=Je,t[303]=et,t[304]=tt,t[305]=ot,t[306]=rt,t[307]=at,t[308]=nt,t[309]=st,t[310]=it,t[311]=lt,t[312]=ct,t[313]=dt,t[314]=pt,t[315]=ut,t[316]=mt,t[317]=ft,t[318]=gt,t[319]=ht,t[320]=vt,t[321]=bt,t[322]=xt,t[323]=yt,t[324]=Pt,t[325]=Ct,t[326]=Rt,t[327]=St,t[328]=Nt,t[329]=So):So=t[329];let Pr=So,No;return t[330]!==yr||t[331]!==Pr||t[332]!==pe?(No={groupLabel:yr,tabDescription:Pr,tabLabel:pe},t[330]=yr,t[331]=Pr,t[332]=pe,t[333]=No):No=t[333],No},"Za"),fl=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.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,n.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,n.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"qa"),gl=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.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,n.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,n.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},"Fa"),hl=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.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,n.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},"Wa"),vl=s(t=>{let e=(0,M.c)(2),{className:o}=t,r;return e[0]!==o?(r=(0,n.jsx)("span",{className:o}),e[0]=o,e[1]=r):r=e[1],r},"Ua"),bl=(0,E.lazy)(()=>import("./chunk-H6VTIXVB.js").catch(()=>({default:vl}))),Qr="absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",xl=[{Icon:fl,value:"system"},{Icon:gl,value:"light"},{Icon:hl,value:"dark"}],yl=s(()=>{let t=(0,M.c)(21),{theme:e,setTheme:o}=Ri(),r=ue(),[a,i]=(0,E.useState)(!1),l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s(()=>{i(!0)},"l"),t[0]=l):l=t[0];let d=l,p;t[1]!==r?(p=r("Dark theme"),t[1]=r,t[2]=p):p=t[2];let c;t[3]!==r?(c=r("Light theme"),t[3]=r,t[4]=c):c=t[4];let u;t[5]!==r?(u=r("System theme"),t[5]=r,t[6]=u):u=t[6];let f;t[7]!==p||t[8]!==c||t[9]!==u?(f={dark:p,light:c,system:u},t[7]=p,t[8]=c,t[9]=u,t[10]=f):f=t[10];let b=f,g;t[11]!==r?(g=r("Theme"),t[11]=r,t[12]=g):g=t[12];let m;t[13]!==a||t[14]!==b||t[15]!==o||t[16]!==e?(m=xl.map(h=>{let{Icon:v,value:P}=h,y=e===P;return(0,n.jsxs)("button",{"aria-checked":y,"aria-label":b[P],className:q("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",y?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${P}`,onClick:s(()=>{d(),o(P)},"onClick"),role:"radio",title:b[P],type:"button",children:[y&&(a?(0,n.jsx)(E.Suspense,{fallback:(0,n.jsx)("span",{className:Qr}),children:(0,n.jsx)(bl,{className:Qr})}):(0,n.jsx)("span",{className:Qr})),(0,n.jsx)("span",{className:"relative",children:(0,n.jsx)(v,{})})]},P)}),t[13]=a,t[14]=b,t[15]=o,t[16]=e,t[17]=m):m=t[17];let x;return t[18]!==g||t[19]!==m?(x=(0,n.jsx)("div",{"aria-label":g,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",onFocus:d,onPointerEnter:d,role:"radiogroup",children:m}),t[18]=g,t[19]=m,t[20]=x):x=t[20],x},"Qa"),Pl=s(t=>{let e=(0,M.c)(23),{domain:o,onOpenCommandPalette:r,page:a}=t,i=ue(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,n.jsx)(Yi,{className:"-ms-1"}),e[0]=l):l=e[0];let d;e[1]!==i?(d=i("Breadcrumb"),e[1]=i,e[2]=d):d=e[2];let p;e[3]!==o?(p=(0,n.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,n.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,n.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=c):c=e[5];let u;e[6]!==a?(u=(0,n.jsx)("span",{className:"font-medium text-foreground",children:a}),e[6]=a,e[7]=u):u=e[7];let f;e[8]!==d||e[9]!==p||e[10]!==u?(f=(0,n.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]=f):f=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=b):b=e[12];let g;e[13]!==i?(g=i("Search\u2026"),e[13]=i,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.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 x;e[16]!==r||e[17]!==g?(x=(0,n.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:[b,g,m]}),e[16]=r,e[17]=g,e[18]=x):x=e[18];let h;e[19]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,n.jsx)(yl,{})}),e[19]=h):h=e[19];let v;return e[20]!==x||e[21]!==f?(v=(0,n.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,f,x,h]}),e[20]=x,e[21]=f,e[22]=v):v=e[22],v},"Ka"),Cl={agents:{capability:"agents"},analytics:{capability:"analytics",feature:"analytics"},authAudit:{feature:"auth"},authConfig:{feature:"auth"},authSessions:{feature:"auth"},containers:{capability:"containers",feature:"containers"},fanout:{capability:"crossShardFanout"},files:{capability:"objectStorage",feature:"storage"},flags:{feature:"flags"},kv:{capability:"keyValueStore",feature:"kv"},mail:{capability:"mail",feature:"mail"},notifications:{feature:"notifications"},organizations:{feature:"auth"},payments:{feature:"payments"},pitr:{capability:"pointInTimeRecovery"},privacyRequests:{feature:"privacy"},queues:{capability:"queues",feature:"queues"},reactors:{capability:"serverReactors"},schedule:{capability:"scheduler",feature:"scheduler"},storageRules:{feature:"storage"},users:{feature:"auth"},vectors:{capability:"vectorStore",feature:"vectors"},workflows:{capability:"workflows",feature:"workflows"}},Rl={agents:"Durable agents",analytics:"Analytics",containers:"Containers",crossShardFanout:"Cross-shard fan-out",keyValueStore:"Key-value storage",mail:"Mail delivery",objectStorage:"Object storage",pointInTimeRecovery:"Point-in-time recovery",queues:"Queues",scheduler:"Scheduling",serverReactors:"Server reactors",vectorStore:"Vector search",workflows:"Workflows"},Sl={kind:"hidden"},zs={kind:"ok"},Nl={kind:"pending"},ti=s((t,e,o)=>{let r=Cl[t];return r?.feature!==void 0&&!e[r.feature]?Sl:r?.capability===void 0?zs:e.settled?e.platform?.unsupported.includes(r.capability)===!0?{kind:"unavailable",reason:o("{capability} is not supported on {platform}.",{capability:o(Rl[r.capability]),platform:e.platform.name})}:zs:Nl},"us"),Tl=s((t,e,o)=>{let r={},a=[];for(let i of t){let l=[];for(let d of i.tabs){let p=ti(d,e,o);p.kind!=="hidden"&&l.push(d),p.kind==="unavailable"&&(r[d]=p.reason)}l.length>0&&a.push({...i,tabs:l})}return{unavailable:r,visibleGroups:a}},"to"),wl=s(t=>{let e=(0,M.c)(3),{reason:o,title:r}=t,a;return e[0]!==o||e[1]!==r?(a=(0,n.jsx)(Ya,{description:o,testId:"dash-unsupported",title:r}),e[0]=o,e[1]=r,e[2]=a):a=e[2],a},"so"),El=s(t=>{let e=(0,M.c)(4),{console:o}=Yo(),r,a;e[0]!==o||e[1]!==t?(r=s(()=>{if(t===void 0)return;let i=s(l=>{if(!l.ctrlKey||l.metaKey||l.altKey||l.shiftKey||l.repeat||l.key.toLowerCase()!==o)return;let{target:d}=l;d instanceof HTMLElement&&(d.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(d.tagName))||(l.preventDefault(),t())},"n");return globalThis.addEventListener("keydown",i),()=>{globalThis.removeEventListener("keydown",i)}},"a"),a=[o,t],e[0]=o,e[1]=t,e[2]=r,e[3]=a):(r=e[2],a=e[3]),(0,E.useEffect)(r,a)},"ao"),Q=s((t,e)=>(0,E.lazy)(()=>t().then(o=>({default:o[e]}))),"$"),kl=Q(()=>import("./chunk-2QYMVMYR.js"),"InsightsPanel"),Ol=(0,E.lazy)(()=>import("./chunk-WODOEE2A.js")),Dl=(0,E.lazy)(()=>import("./chunk-MAWEZEX6.js")),Ml=(0,E.lazy)(()=>import("./chunk-HB6ABGZU.js")),Il=(0,E.lazy)(()=>import("./chunk-FR22DHUN.js")),_l=(0,E.lazy)(()=>import("./chunk-Z3AINTU6.js")),Al=Q(()=>import("./chunk-ADS4BJ7K.js"),"AnalyticsPanel"),Vl=(0,E.lazy)(()=>import("./chunk-TS4CMM2L.js")),Hl=(0,E.lazy)(()=>import("./chunk-B3GOYA2R.js")),Ll=(0,E.lazy)(()=>import("./chunk-IPDJJHZK.js")),Bl=(0,E.lazy)(()=>import("./chunk-BBJJJI7F.js")),Fl=(0,E.lazy)(()=>import("./chunk-I2XT2POX.js")),jl=(0,E.lazy)(()=>import("./chunk-ZQ7KYIN6.js")),zl=Q(()=>import("./chunk-4YWFAODW.js"),"UsersPanel"),Kl=(0,E.lazy)(()=>import("./chunk-3IGIBOCF.js")),Ul=Q(()=>import("./chunk-7Z5MTBZB.js"),"DeploymentHealthPanel"),Zl=Q(()=>import("./chunk-DRFBJBEN.js"),"TableEditor"),ql=Q(()=>import("./chunk-PPC2ESMI.js"),"ExportImportPanel"),Wl=(0,E.lazy)(()=>import("./chunk-3K56NZDT.js")),$l={data:en,migrations:tn},Gl=Q(()=>import("./chunk-Y34WXKCA.js"),"PitrPanel"),Ql=Q(()=>import("./chunk-NTVQ4PWU.js"),"PrivacyRequestsPanel"),Yl=(0,E.lazy)(()=>import("./chunk-NMZ34D2Z.js")),Xl=(0,E.lazy)(()=>import("./chunk-E7QYOQWH.js")),Jl=Q(()=>import("./chunk-LIZUJ6AU.js"),"FunctionRunner"),ec=Q(()=>import("./chunk-KYZZGUIG.js"),"FunctionStatsPanel"),tc=(0,E.lazy)(()=>import("./chunk-73D52JHL.js")),oc=Q(()=>import("./chunk-EAYN3IGE.js"),"AuditPanel"),rc=(0,E.lazy)(()=>import("./chunk-EMZ7RPR3.js")),ac=(0,E.lazy)(()=>import("./chunk-MKH4V2DR.js").then(t=>({default:t.LogsPanel}))),nc=Q(()=>import("./chunk-FGHKL42J.js"),"MailPanel"),sc=Q(()=>import("./chunk-W6UUGZH7.js"),"SchedulePanel"),ic=(0,E.lazy)(()=>import("./chunk-BULGXI7X.js")),lc=(0,E.lazy)(()=>import("./chunk-WLMTK3FN.js")),cc=Q(()=>import("./chunk-YDFZA3T4.js"),"KvBrowser"),dc=(0,E.lazy)(()=>import("./chunk-SQ3M7JDP.js")),pc=Q(()=>import("./chunk-UYW53K2N.js"),"PaymentsPanel"),uc=Q(()=>import("./chunk-2G7JHC6S.js"),"PermissionsPanel"),mc=(0,E.lazy)(()=>import("./chunk-SKMAKUOG.js")),fc=(0,E.lazy)(()=>import("./chunk-EHU26D2V.js")),gc=(0,E.lazy)(()=>import("./chunk-VJGP3BTD.js")),hc=Q(()=>import("./chunk-LQWEU5ZI.js"),"HealthPanel"),vc=Q(()=>import("./chunk-CDJMXV45.js"),"MetricsPanel"),bc=Q(()=>import("./chunk-EGUFPKS4.js"),"SchemaViewer"),xc=Q(()=>import("./chunk-4ZEERXMN.js"),"SettingsPanel"),yc=Q(()=>import("./chunk-KZXAVLQ4.js"),"SqlEditorPanel"),Pc=Q(()=>import("./chunk-GTJYJW4A.js"),"FileBrowser"),Cc=(0,E.lazy)(()=>import("./chunk-KRSQ6N4R.js")),Rc=(0,E.lazy)(()=>import("./chunk-OG7AJWFV.js")),Sc=(0,E.lazy)(()=>import("./chunk-QJFCK6J4.js")),Nc=(0,E.lazy)(()=>import("./chunk-H54J65DJ.js")),Tc=Q(()=>import("./chunk-PTL32GA6.js"),"VectorBrowser"),wc=(0,E.lazy)(()=>import("./chunk-NNKVZBKP.js")),oi=(0,E.createContext)(null),Ec={analytics:(0,n.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,n.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),architecture:(0,n.jsx)("path",{d:"M4 4h6v5H4V4Zm10 0h6v5h-6V4ZM9 15h6v5H9v-5ZM7 9v3h10V9M12 12v3"}),audit:(0,n.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,n.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,n.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,n.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,n.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,n.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,n.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,n.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,n.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,n.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,n.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,n.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,n.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,n.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,n.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,n.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),aiUsage:(0,n.jsx)("path",{d:"M12 3v3m0 12v3M5.6 5.6l2.1 2.1m8.6 8.6 2.1 2.1M3 12h3m12 0h3M5.6 18.4l2.1-2.1m8.6-8.6 2.1-2.1M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z"}),health:(0,n.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,n.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,n.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,n.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,n.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,n.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,n.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,n.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,n.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,n.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,n.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,n.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,n.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),privacyRequests:(0,n.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 3h4"}),queues:(0,n.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:(0,n.jsx)("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:(0,n.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,n.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,n.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,n.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,n.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,n.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,n.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,n.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,n.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,n.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,n.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,n.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Ks=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","architecture","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","aiUsage","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags","privacyRequests"]},{key:"settings",tabs:["settings"]}],Yr=s(t=>{let e=(0,M.c)(2),{tab:o}=t,r=Ec[o],a;return e[0]!==r?(a=(0,n.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]=a):a=e[1],a},"Lt"),kc=s(t=>t,"rr"),ri=kc(["home","data","sql","functions","api","architecture","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","aiUsage","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","privacyRequests","settings"]),Oc=new Set(["api","data","migrations","sql"]),Dc=s(t=>{let e=t.split("/").findLast(Boolean)??"";return ri.includes(e)?e:"home"},"lr"),Mc=s(t=>{let e=(0,M.c)(19),{chrome:o,connected:r}=t,a=ue(),i;e[0]!==a?(i=a("admin token"),e[0]=a,e[1]=i):i=e[1];let l;e[2]!==i?(l=(0,n.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:i}),e[2]=i,e[3]=l):l=e[3];let d;e[4]!==o.onTokenChange||e[5]!==o.token?(d=(0,n.jsx)(ko,{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]!==a?(p=r&&(0,n.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),a("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]=a,e[9]=p):p=e[9];let c;e[10]!==o.clearToken||e[11]!==r||e[12]!==a?(c=r&&(0,n.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:a("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=a,e[13]=c):c=e[13];let u;return e[14]!==l||e[15]!==d||e[16]!==p||e[17]!==c?(u=(0,n.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},"ir"),ai="opacity-50",Ic=s(t=>{let e=(0,M.c)(27),{current:o,group:r,groupLabel:a,selectTab:i,tabDescription:l,tabLabel:d,unavailable:p}=t,c=r.tabs.includes(o)?"page":void 0,u=a[r.key],f=r.tabs[0],b;e[0]!==f?(b=(0,n.jsx)(Yr,{tab:f}),e[0]=f,e[1]=b):b=e[1];let g;e[2]!==c||e[3]!==u||e[4]!==b?(g=(0,n.jsx)(Ys,{"aria-current":c,"aria-label":u,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:b}),e[2]=c,e[3]=u,e[4]=b,e[5]=g):g=e[5];let m=a[r.key],x;e[6]!==m?(x=(0,n.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:m}),e[6]=m,e[7]=x):x=e[7];let h;if(e[8]!==o||e[9]!==r.tabs||e[10]!==i||e[11]!==l||e[12]!==d||e[13]!==p){let y;e[15]!==o||e[16]!==i||e[17]!==l||e[18]!==d||e[19]!==p?(y=s(R=>(0,n.jsxs)("button",{"aria-current":o===R?"page":void 0,className:q("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",p[R]!==void 0&&ai),"data-tab":R,"data-testid":`dash-tab-${R}`,"data-unsupported":p[R]===void 0?void 0:"true",onClick:i,title:l[R],type:"button",children:[(0,n.jsx)(Yr,{tab:R}),(0,n.jsx)("span",{children:d[R]})]},R),"h"),e[15]=o,e[16]=i,e[17]=l,e[18]=d,e[19]=p,e[20]=y):y=e[20],h=r.tabs.map(y),e[8]=o,e[9]=r.tabs,e[10]=i,e[11]=l,e[12]=d,e[13]=p,e[14]=h}else h=e[14];let v;e[21]!==x||e[22]!==h?(v=(0,n.jsxs)(Xs,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[x,h]}),e[21]=x,e[22]=h,e[23]=v):v=e[23];let P;return e[24]!==g||e[25]!==v?(P=(0,n.jsxs)(Qs,{children:[g,v]}),e[24]=g,e[25]=v,e[26]=P):P=e[26],P},"dr"),_c=s(t=>{let e=(0,M.c)(45),{chrome:o,collapsed:r,connected:a}=t,i=ue();if(o===null){let y;e[0]!==i?(y=i("Admin"),e[0]=i,e[1]=y):y=e[1];let R;e[2]===Symbol.for("react.memo_cache_sentinel")?(R=(0,n.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=R):R=e[2];let C;e[3]!==i?(C=i("Admin"),e[3]=i,e[4]=C):C=e[4];let w;e[5]!==C?(w=(0,n.jsx)("span",{className:"truncate text-[13px] font-medium",children:C}),e[5]=C,e[6]=w):w=e[6];let S;e[7]!==i?(S=i("Studio"),e[7]=i,e[8]=S):S=e[8];let N;e[9]!==S?(N=(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:S}),e[9]=S,e[10]=N):N=e[10];let k;e[11]!==w||e[12]!==N?(k=(0,n.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[w,N]}),e[11]=w,e[12]=N,e[13]=k):k=e[13];let O;return e[14]!==y||e[15]!==k?(O=(0,n.jsxs)(ei,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[R,k]}),e[14]=y,e[15]=k,e[16]=O):O=e[16],O}let l=r?"mx-auto size-8 justify-center":"w-full p-2",d;e[17]!==l?(d=q("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]!==a||e[20]!==i?(p=i(a?"Connected":"Not connected"),e[19]=a,e[20]=i,e[21]=p):p=e[21];let c=a?"bg-success":"bg-muted-foreground/50",u;e[22]!==c?(u=q("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 f;e[24]!==u?(f=(0,n.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,n.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let b;e[26]!==r||e[27]!==a||e[28]!==i?(b=!r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,n.jsx)("span",{className:"truncate text-[13px] font-medium",children:i("Admin")}),(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:i(a?"Connected":"Not connected")})]}),(0,n.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,n.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=a,e[28]=i,e[29]=b):b=e[29];let g;e[30]!==d||e[31]!==p||e[32]!==f||e[33]!==b?(g=(0,n.jsxs)(Ys,{className:d,"data-testid":"dash-app-connect",title:p,children:[f,b]}),e[30]=d,e[31]=p,e[32]=f,e[33]=b,e[34]=g):g=e[34];let m=r?"end":"start",x=r?"right":"top",h;e[35]!==o||e[36]!==a?(h=(0,n.jsx)(Mc,{chrome:o,connected:a}),e[35]=o,e[36]=a,e[37]=h):h=e[37];let v;e[38]!==x||e[39]!==h||e[40]!==m?(v=(0,n.jsx)(Xs,{align:m,keepMounted:!0,side:x,children:h}),e[38]=x,e[39]=h,e[40]=m,e[41]=v):v=e[41];let P;return e[42]!==v||e[43]!==g?(P=(0,n.jsxs)(Qs,{children:[g,v]}),e[42]=v,e[43]=g,e[44]=P):P=e[44],P},"cr"),Ac=s(t=>{let e=(0,M.c)(29),{chrome:o,connected:r,current:a,groupLabel:i,groups:l,selectTab:d,tabDescription:p,tabLabel:c,unavailable:u}=t,f=ue(),{state:b}=xr(),g=b==="collapsed",m=g&&"justify-center px-0",x;e[0]!==m?(x=q("flex items-center gap-2.5 px-1.5 py-1",m),e[0]=m,e[1]=x):x=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=(0,n.jsx)(wi,{className:"size-9 shrink-0 text-foreground"}),e[2]=h):h=e[2];let v;e[3]!==g||e[4]!==r||e[5]!==f?(v=!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,n.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:f("Studio")})]}),(0,n.jsx)(Ft,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:f(r?"Live":"Local")})]}),e[3]=g,e[4]=r,e[5]=f,e[6]=v):v=e[6];let P;e[7]!==x||e[8]!==v?(P=(0,n.jsx)(Ji,{children:(0,n.jsxs)("div",{className:x,children:[h,v]})}),e[7]=x,e[8]=v,e[9]=P):P=e[9];let y;e[10]!==g||e[11]!==a||e[12]!==i||e[13]!==l||e[14]!==d||e[15]!==p||e[16]!==c||e[17]!==u?(y=g?l.map(S=>(0,n.jsx)(Ic,{current:a,group:S,groupLabel:i,selectTab:d,tabDescription:p,tabLabel:c,unavailable:u},S.key)):l.map(S=>(0,n.jsxs)(ol,{children:[(0,n.jsx)(rl,{className:"text-[11px] font-medium tracking-wider uppercase",children:i[S.key]}),(0,n.jsx)(al,{children:(0,n.jsx)(Fs,{children:S.tabs.map(N=>(0,n.jsx)(js,{children:(0,n.jsxs)(ei,{className:q("data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]",u[N]!==void 0&&ai),"data-tab":N,"data-testid":`dash-tab-${N}`,"data-unsupported":u[N]===void 0?void 0:"true",isActive:a===N,onClick:d,title:p[N],tooltip:p[N],children:[(0,n.jsx)(Yr,{tab:N}),(0,n.jsx)("span",{children:c[N]})]})},N))})})]},S.key)),e[10]=g,e[11]=a,e[12]=i,e[13]=l,e[14]=d,e[15]=p,e[16]=c,e[17]=u,e[18]=y):y=e[18];let R;e[19]!==y?(R=(0,n.jsx)(tl,{children:y}),e[19]=y,e[20]=R):R=e[20];let C;e[21]!==o||e[22]!==g||e[23]!==r?(C=(0,n.jsx)(el,{children:(0,n.jsx)(Fs,{children:(0,n.jsx)(js,{children:(0,n.jsx)(_c,{chrome:o,collapsed:g,connected:r})})})}),e[21]=o,e[22]=g,e[23]=r,e[24]=C):C=e[24];let w;return e[25]!==P||e[26]!==R||e[27]!==C?(w=(0,n.jsxs)(Qi,{collapsible:"icon",variant:"inset",children:[P,R,C]}),e[25]=P,e[26]=R,e[27]=C,e[28]=w):w=e[28],w},"ur"),Jr=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(Qo,{className:"h-8 w-40"}),(0,n.jsx)(Qo,{className:"h-8 w-24"})]}),(0,n.jsx)(Qo,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Bt"),Vc=s(t=>{let e=(0,M.c)(5),{title:o,verdict:r}=t;if(r.kind==="pending"){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(Jr,{}),e[0]=i):i=e[0],i}if(r.kind==="unavailable"){let i;return e[1]!==o||e[2]!==r.reason?(i=(0,n.jsx)(wl,{reason:r.reason,title:o}),e[1]=o,e[2]=r.reason,e[3]=i):i=e[3],i}let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.jsx)(na,{}),e[4]=a):a=e[4],a},"mr"),Hc=s(()=>{let t=(0,M.c)(59),e=ue(),o=io(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Kc},t[0]=r):r=t[0];let a=la(r),i=Dc(a),l=Oc.has(i),d=Da(),p=d?.toggle,c=ma();El(p);let u=Xa(),{groupLabel:f,tabDescription:b,tabLabel:g}=ml(),{unavailable:m,visibleGroups:x}=Tl(Ks,u,e),h={...b,...m},v=ti(i,u,e),P=v.kind==="hidden",y,R;t[1]!==P||t[2]!==o?(y=s(()=>{P&&Ee(o({replace:!0,to:"/home"}))},"h"),R=[P,o],t[1]=P,t[2]=o,t[3]=y,t[4]=R):(y=t[3],R=t[4]),(0,E.useEffect)(y,R);let C;t[5]!==o?(C=s(pe=>{Ee(o({to:`/${pe.currentTarget.dataset.tab??""}`}))},"M"),t[5]=o,t[6]=C):C=t[6];let w=C,S,N;t[7]!==i||t[8]!==g?(S=s(()=>{typeof document<"u"&&(document.title=`${g[i]} \xB7 lunora`)},"C"),N=[i,g],t[7]=i,t[8]=g,t[9]=S,t[10]=N):(S=t[9],N=t[10]),(0,E.useEffect)(S,N);let k=x.find(pe=>pe.tabs.includes(i))??Ks[0],O=x.flatMap(pe=>pe.tabs.filter(ve=>m[ve]===void 0).map(ve=>({group:f[pe.key],label:g[ve],to:`/${ve}`}))),_;t[11]!==e||t[12]!==p?(_=p===void 0?[]:[{group:e("Operations"),label:e("Toggle operation console"),run:p}],t[11]=e,t[12]=p,t[13]=_):_=t[13];let H;t[14]!==c||t[15]!==e?(H=c===void 0||c.unavailable?[]:[{group:e("Operations"),label:e("Ask the assistant"),run:c.toggle}],t[14]=c,t[15]=e,t[16]=H):H=t[16];let V=[...O,..._,...H],L=(0,E.use)(oi),F=L!==null&&L.token!=="",j=f[k.key],U=g[i],z;t[17]!==j||t[18]!==U?(z=(0,n.jsx)(Pl,{domain:j,onOpenCommandPalette:Hs,page:U}),t[17]=j,t[18]=U,t[19]=z):z=t[19];let D;t[20]!==L?.rulesInstalled?(D=L?.rulesInstalled===!1&&(0,n.jsx)(Ii,{}),t[20]=L?.rulesInstalled,t[21]=D):D=t[21];let I;t[22]!==L||t[23]!==F?(I=(L===null||F)&&(0,n.jsx)(ki,{}),t[22]=L,t[23]=F,t[24]=I):I=t[24];let W=`dash-tab-${i}`,$=l?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",ie=g[i],oe;t[25]!==e||t[26]!==ie?(oe=e("{title} failed",{title:ie}),t[25]=e,t[26]=ie,t[27]=oe):oe=t[27];let re=g[i],ee;t[28]!==e?(ee=e("Try again"),t[28]=e,t[29]=ee):ee=t[29];let Y;t[30]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,n.jsx)(Jr,{}),t[30]=Y):Y=t[30];let be=g[i],de;t[31]!==be||t[32]!==v?(de=(0,n.jsx)(E.Suspense,{fallback:Y,children:(0,n.jsx)(Vc,{title:be,verdict:v})}),t[31]=be,t[32]=v,t[33]=de):de=t[33];let me;t[34]!==i||t[35]!==oe||t[36]!==re||t[37]!==ee||t[38]!==de?(me=(0,n.jsx)(Xo,{fallbackTitle:oe,label:re,retryLabel:ee,children:de},i),t[34]=i,t[35]=oe,t[36]=re,t[37]=ee,t[38]=de,t[39]=me):me=t[39];let fe;t[40]!==$||t[41]!==me?(fe=(0,n.jsx)("div",{className:$,children:me}),t[40]=$,t[41]=me,t[42]=fe):fe=t[42];let ge;t[43]!==d?(ge=d?.open===!0&&(0,n.jsx)(dl,{focusSeq:d.focusSeq,onClose:d.close,onShownChange:d.setShown,shown:d.shown}),t[43]=d,t[44]=ge):ge=t[44];let Z;t[45]!==W||t[46]!==fe||t[47]!==ge?(Z=(0,n.jsxs)("div",{"aria-labelledby":W,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[fe,ge]}),t[45]=W,t[46]=fe,t[47]=ge,t[48]=Z):Z=t[48];let G;t[49]!==z||t[50]!==D||t[51]!==I||t[52]!==Z?(G=(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[z,D,I,Z]}),t[49]=z,t[50]=D,t[51]=I,t[52]=Z,t[53]=G):G=t[53];let te;t[54]!==c?(te=c!==void 0&&c.open&&!c.unavailable&&(0,n.jsx)(E.Suspense,{fallback:null,children:(0,n.jsx)(_l,{assistant:c})}),t[54]=c,t[55]=te):te=t[55];let xe;return t[56]!==G||t[57]!==te?(xe=(0,n.jsxs)(Xi,{className:"flex flex-row overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[G,te]}),t[56]=G,t[57]=te,t[58]=xe):xe=t[58],(0,n.jsxs)(Gi,{className:"min-h-0 flex-1","data-platform":u.platform?.id,"data-testid":"lunora-studio",children:[(0,n.jsx)(Ls,{items:V}),(0,n.jsx)(Ac,{chrome:L,connected:F,current:i,groupLabel:f,groups:x,selectTab:w,tabDescription:h,tabLabel:g,unavailable:m}),xe]})},"fr"),Lc=s(()=>{let t=(0,M.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(Oa,{children:(0,n.jsx)(ua,{children:(0,n.jsx)(Hc,{})})}),t[0]=e):e=t[0],e},"pr"),Bc=s(t=>{let e=(0,M.c)(5),{initialShardKey:o,schemaEditable:r}=t,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];let i=ra(a),{table:l}=i,d=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==d||e[3]!==r?(p=(0,n.jsx)(bc,{initialShardKey:o,initialTable:d,schemaEditable:r}),e[1]=o,e[2]=d,e[3]=r,e[4]=p):p=e[4],p},"hr"),Fc=s(()=>{let t=(0,M.c)(3),e=io(),o,r;return t[0]!==e?(o=s(()=>{Ee(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,E.useEffect)(o,r),null},"gr"),jc=s(({advisorProcedures:t=!1,analyticsSqlQuery:e,basePath:o,privacyRequests:r,dataEditable:a=!1,functions:i,initialShardKey:l,openApiSpec:d,openRpcSpec:p,advisorCompanion:c=!1,runAsIdentity:u=!1,schemaEditable:f=!1,scheduledCancel:b,scheduledCron:g,scheduledLoad:m})=>{let x=aa({component:Lc}),h={agents:(0,n.jsx)(Il,{initialShardKey:l}),analytics:(0,n.jsx)(Al,{runQuery:e}),api:(0,n.jsx)(Vl,{functions:i,initialShardKey:l,openApiSpec:d,openRpcSpec:p}),architecture:(0,n.jsx)(Hl,{}),audit:(0,n.jsx)(oc,{initialShardKey:l}),authAudit:(0,n.jsx)(Ll,{}),authConfig:(0,n.jsx)(Bl,{}),authSessions:(0,n.jsx)(Fl,{}),containers:(0,n.jsx)(Kl,{}),dashboards:(0,n.jsx)(fc,{initialShardKey:l}),data:(0,n.jsx)(Zl,{canGenerateRows:a&&f,editable:a,initialShardKey:l}),deploymentHealth:(0,n.jsx)(Ul,{}),drains:(0,n.jsx)(rc,{}),export:(0,n.jsx)(ql,{initialShardKey:l}),fanout:(0,n.jsx)(gc,{initialShardKey:l}),files:(0,n.jsx)(Pc,{}),kv:(0,n.jsx)(cc,{}),flags:(0,n.jsx)(Yl,{initialShardKey:l}),reactors:(0,n.jsx)(Xl,{initialShardKey:l}),functions:(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(ec,{functions:i,initialShardKey:l}),(0,n.jsx)(Jl,{functions:i,runAsIdentity:u})]}),health:(0,n.jsx)(hc,{initialShardKey:l}),home:(0,n.jsx)(Ja,{initialShardKey:l}),insights:(0,n.jsx)(kl,{initialShardKey:l}),issues:(0,n.jsx)(tc,{initialShardKey:l}),logs:(0,n.jsx)(ac,{initialShardKey:l}),traces:(0,n.jsx)(Rc,{initialShardKey:l}),evals:(0,n.jsx)(Sc,{initialShardKey:l}),aiUsage:(0,n.jsx)(Nc,{initialShardKey:l}),metrics:(0,n.jsx)(vc,{initialShardKey:l}),migrations:(0,n.jsx)(Wl,{initialShardKey:l}),notifications:(0,n.jsx)(dc,{}),organizations:(0,n.jsx)(jl,{}),permissions:(0,n.jsx)(uc,{functions:i,runAsIdentity:u,schemaEditable:f}),pitr:(0,n.jsx)(Gl,{initialShardKey:l}),privacyRequests:(0,n.jsx)(Ql,{source:r}),mail:(0,n.jsx)(nc,{}),payments:(0,n.jsx)(pc,{}),queues:(0,n.jsx)(mc,{}),realtime:(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(ic,{initialShardKey:l}),(0,n.jsx)(lc,{})]}),rls:(0,n.jsx)(Ol,{}),schedule:(0,n.jsx)(sc,{initialShardKey:l,loadCronJobs:g,scheduledCancel:b,scheduledLoad:m}),schema:(0,n.jsx)(Bc,{initialShardKey:l,schemaEditable:f}),advisorHealth:(0,n.jsx)(Dl,{advisorCompanion:c,localProcedures:t}),security:(0,n.jsx)(Ml,{}),settings:(0,n.jsx)(xc,{initialShardKey:l}),sql:(0,n.jsx)(yc,{initialShardKey:l}),storageRules:(0,n.jsx)(Cc,{}),users:(0,n.jsx)(zl,{}),vectors:(0,n.jsx)(Tc,{}),workflows:(0,n.jsx)(wc,{})},v=Nr({component:s(()=>h.home,"component"),getParentRoute:s(()=>x,"getParentRoute"),path:"/"}),P=ri.map(C=>Nr({component:s(()=>h[C],"component"),getParentRoute:s(()=>x,"getParentRoute"),path:`/${C}`,validateSearch:$l[C]})),y=x.addChildren([v,...P]),R="window"in globalThis?ta():oa({initialEntries:["/home"]});return sa({...o===void 0||o==="/"?{}:{basepath:o},defaultNotFoundComponent:Fc,defaultPendingComponent:Jr,defaultPendingMinMs:0,defaultPendingMs:0,history:R,routeTree:y})},"br"),zc=s(t=>{let e=(0,M.c)(21),{advisorProcedures:o,analyticsSqlQuery:r,basePath:a,chrome:i,dataEditable:l,functions:d,initialShardKey:p,openApiSpec:c,openRpcSpec:u,privacyRequests:f,advisorCompanion:b,runAsIdentity:g,schemaEditable:m,scheduledCancel:x,scheduledCron:h,scheduledLoad:v}=t,P;e[0]!==b||e[1]!==o||e[2]!==r||e[3]!==a||e[4]!==l||e[5]!==d||e[6]!==p||e[7]!==c||e[8]!==u||e[9]!==f||e[10]!==g||e[11]!==x||e[12]!==h||e[13]!==v||e[14]!==m?(P=jc({advisorProcedures:o,analyticsSqlQuery:r,basePath:a,privacyRequests:f,dataEditable:l,functions:d,initialShardKey:p,openApiSpec:c,openRpcSpec:u,advisorCompanion:b,runAsIdentity:g,schemaEditable:m,scheduledCancel:x,scheduledCron:h,scheduledLoad:v}),e[0]=b,e[1]=o,e[2]=r,e[3]=a,e[4]=l,e[5]=d,e[6]=p,e[7]=c,e[8]=u,e[9]=f,e[10]=g,e[11]=x,e[12]=h,e[13]=v,e[14]=m,e[15]=P):P=e[15];let y=P,R=i??null,C;e[16]!==y?(C=(0,n.jsx)(ia,{router:y}),e[16]=y,e[17]=C):C=e[17];let w;return e[18]!==R||e[19]!==C?(w=(0,n.jsx)(oi,{value:R,children:C}),e[18]=R,e[19]=C,e[20]=w):w=e[20],w},"vr"),hh=s(t=>{let e=(0,M.c)(10),o,r,a;e[0]!==t?({i18n:o,locale:r,...a}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=a):(o=e[1],r=e[2],a=e[3]);let i;e[4]!==a?(i=(0,n.jsx)(Ci,{children:(0,n.jsx)(zc,{...a})}),e[4]=a,e[5]=i):i=e[5];let l=i;if(o===void 0&&r===void 0)return l;let d;return e[6]!==o||e[7]!==r||e[8]!==l?(d=(0,n.jsx)(Vs,{i18n:o,locale:r,children:l}),e[6]=o,e[7]=r,e[8]=l,e[9]=d):d=e[9],d},"tn");function Kc(t){return t.location.pathname}s(Kc,"yr");export{Xo as a,Vs as b,Pi as c,Ri as d,fh as e,wi as f,gh as g,Vi as h,Bi as i,Fi as j,ji as k,hh as l};
|