@lunora/studio 1.0.0-alpha.185 → 1.0.0-alpha.187
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/index.mjs +1 -1
- package/dist/packem_chunks/FileBrowser.mjs +1 -1
- package/dist/packem_chunks/SqlEditorPanel.mjs +1 -1
- package/dist/packem_chunks/TableEditor.mjs +1 -1
- package/dist/packem_chunks/migrations-route.mjs +1 -1
- package/dist/packem_shared/{DataBrowser-BUFMFvNX.mjs → DataBrowser-zqK4s0IE.mjs} +2 -2
- package/dist/packem_shared/grid-features-Dm80ngyR.mjs +6 -0
- package/dist/standalone/{chunk-3PUGTMHP.js → chunk-23C2QL7Z.js} +1 -1
- package/dist/standalone/{chunk-SMMYONB7.js → chunk-2FGXE3E5.js} +1 -1
- package/dist/standalone/{chunk-2VGRBZVS.js → chunk-367RGUUX.js} +1 -1
- package/dist/standalone/{chunk-QZJVCXWS.js → chunk-3BN3N2CX.js} +1 -1
- package/dist/standalone/{chunk-VWLX4CH4.js → chunk-62IKYVD3.js} +2 -2
- package/dist/standalone/{chunk-UCYK6YWD.js → chunk-6A34IMQS.js} +1 -1
- package/dist/standalone/{chunk-6MMHVZID.js → chunk-6DLHIMOI.js} +1 -1
- package/dist/standalone/{chunk-UD47ZOIF.js → chunk-6FTYD55M.js} +1 -1
- package/dist/standalone/{chunk-EMUTRNK5.js → chunk-6MJU7KID.js} +1 -1
- package/dist/standalone/{chunk-ZVMUTCUE.js → chunk-7VNHUUK4.js} +1 -1
- package/dist/standalone/{chunk-2254YC77.js → chunk-7VNOCXWO.js} +1 -1
- package/dist/standalone/{chunk-GXSHHAYL.js → chunk-AJU3V2XW.js} +1 -1
- package/dist/standalone/{chunk-XXB357HN.js → chunk-AO3LNXNG.js} +1 -1
- package/dist/standalone/{chunk-MH73AR4R.js → chunk-AWN2GXCK.js} +1 -1
- package/dist/standalone/{chunk-JA7FUFCP.js → chunk-B6BFVYFA.js} +1 -1
- package/dist/standalone/chunk-BDO4YYBB.js +6 -0
- package/dist/standalone/{chunk-GQQPTCCH.js → chunk-BG52HJBJ.js} +1 -1
- package/dist/standalone/{chunk-77UI3GTT.js → chunk-BI2PP4AE.js} +1 -1
- package/dist/standalone/{chunk-UREV5NIX.js → chunk-BNIDGSDE.js} +1 -1
- package/dist/standalone/{chunk-YAMJRRT2.js → chunk-BWRPOIEI.js} +1 -1
- package/dist/standalone/{chunk-FGEBPY6M.js → chunk-C3UMVVZD.js} +1 -1
- package/dist/standalone/{chunk-U5EMA2D7.js → chunk-CFN6A74K.js} +1 -1
- package/dist/standalone/{chunk-HEIGV6KL.js → chunk-CMO25UOM.js} +1 -1
- package/dist/standalone/{chunk-2TAFAGWH.js → chunk-DAAYIBSL.js} +1 -1
- package/dist/standalone/{chunk-RY2LZULX.js → chunk-DAXY4RAL.js} +1 -1
- package/dist/standalone/{chunk-EKMKNRYI.js → chunk-DK7IUHFW.js} +1 -1
- package/dist/standalone/{chunk-H7UQ7W6L.js → chunk-DLF7WRVK.js} +1 -1
- package/dist/standalone/{chunk-5G2MAI3G.js → chunk-FI3UY4QJ.js} +1 -1
- package/dist/standalone/{chunk-NSYGYSMJ.js → chunk-FUXL36RK.js} +1 -1
- package/dist/standalone/{chunk-RJZI2ZRF.js → chunk-HBWT2BXO.js} +3 -3
- package/dist/standalone/{chunk-22EHJEFE.js → chunk-I57A5YB6.js} +1 -1
- package/dist/standalone/{chunk-2PYJCU6C.js → chunk-IZDX3F65.js} +1 -1
- package/dist/standalone/{chunk-J6ESSV7B.js → chunk-KE5T44IA.js} +1 -1
- package/dist/standalone/{chunk-Q5R67CRQ.js → chunk-MKE333RB.js} +1 -1
- package/dist/standalone/{chunk-CEA2QYAI.js → chunk-MKL7VDTL.js} +2 -2
- package/dist/standalone/{chunk-PAWM6IP3.js → chunk-N4GEA5GK.js} +1 -1
- package/dist/standalone/{chunk-MVJL6J4Y.js → chunk-N6CQJUDY.js} +1 -1
- package/dist/standalone/{chunk-ZEZ5FW7V.js → chunk-NO5VGTWP.js} +1 -1
- package/dist/standalone/{chunk-NGEP4H3Q.js → chunk-ORJB5XQH.js} +1 -1
- package/dist/standalone/{chunk-QAIEAIIE.js → chunk-P5RUFDVX.js} +1 -1
- package/dist/standalone/chunk-PAZ72JHQ.js +1 -0
- package/dist/standalone/{chunk-MRI7UILC.js → chunk-PGV42T2U.js} +1 -1
- package/dist/standalone/{chunk-OUKLYU72.js → chunk-PTRUAQYA.js} +1 -1
- package/dist/standalone/{chunk-SZSHO6RE.js → chunk-PYI2MI4Q.js} +1 -1
- package/dist/standalone/{chunk-TLFNAWL6.js → chunk-Q6PUWGXK.js} +1 -1
- package/dist/standalone/{chunk-HB2AVFM7.js → chunk-QIPTFNQK.js} +1 -1
- package/dist/standalone/{chunk-QMFQGVTQ.js → chunk-QOSKGDBH.js} +1 -1
- package/dist/standalone/{chunk-METTWXRR.js → chunk-U7YOMGYN.js} +1 -1
- package/dist/standalone/{chunk-OGEHSNF7.js → chunk-UDXIBUS6.js} +1 -1
- package/dist/standalone/{chunk-RBAMNKW7.js → chunk-USCV7TYG.js} +1 -1
- package/dist/standalone/{chunk-IOPBEKDK.js → chunk-VBDYQCRQ.js} +1 -1
- package/dist/standalone/{chunk-P52AMBNB.js → chunk-VXQJWD3F.js} +1 -1
- package/dist/standalone/{chunk-K5ZNTNAC.js → chunk-W5YA2J66.js} +1 -1
- package/dist/standalone/{chunk-PCQP4NHL.js → chunk-WD22LMYA.js} +1 -1
- package/dist/standalone/{chunk-L3AFRJE2.js → chunk-WNVPC7FI.js} +1 -1
- package/dist/standalone/{chunk-HQWKWSY4.js → chunk-XSNWSHZ6.js} +1 -1
- package/dist/standalone/{chunk-XRR2R2H5.js → chunk-Y76TQLLR.js} +1 -1
- package/dist/standalone/{chunk-AMPB3H6K.js → chunk-YOKBLIIN.js} +1 -1
- package/dist/standalone/{chunk-6DGK6352.js → chunk-YVVP4DRM.js} +1 -1
- package/dist/standalone/{chunk-FHW7T5NC.js → chunk-ZNYTH4BS.js} +1 -1
- package/dist/standalone/{chunk-7F5LVCXA.js → chunk-ZTQSA34U.js} +1 -1
- package/dist/standalone/{chunk-Z4FYPU4Q.js → chunk-ZWDPWM3I.js} +1 -1
- package/dist/standalone/studio.js +1 -1
- package/package.json +6 -6
- package/dist/packem_shared/grid-features-CE8kcqsK.mjs +0 -6
- package/dist/standalone/chunk-GLTOTU4J.js +0 -1
- package/dist/standalone/chunk-M4POCI2J.js +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as zo}from"./chunk-Q4CAKBWN.js";import{a as Ln,b as Hn}from"./chunk-VWLX4CH4.js";import{a as Bn,d as Fn}from"./chunk-RLLKECZT.js";import{a as Lt,b as Wt,c as qt,d as $t,e as Gt,f as On,g as Bo,h as Fo}from"./chunk-YPRQLCKF.js";import{$ as ko,A as Rn,B as So,C as No,D as Sn,E as Vt,G as Ht,J as Bt,K as To,L as Ft,M as jt,O as wo,P as Nn,Q as Tn,R as zt,S as Kt,T as Ut,U as Zt,V as Eo,W as Ne,Y as wn,Z as En,_ as Oo,b as un,ca as Do,da as Mo,fa as Io,j as _t,k as At,l as hn,la as _o,m as vn,ma as Ao,n as bn,na as Vo,o as xn,oa as Lo,p as xr,pa as kn,q as Po,qa as Dn,ra as Ho,s as Co,sa as Mn,t as yn,u as Ro,y as Pn,z as Cn}from"./chunk-GMS77BZD.js";import{c as In,h as _n,k as yr}from"./chunk-V3VJAA4D.js";import{a as jo}from"./chunk-5WJXVZMZ.js";import{b as Vn}from"./chunk-EVTM6Q43.js";import{a as Ur,b as Zr,d as Wr,e as to,f as hr,g as qr,h as $r,i as Gr,j as Qr,k as Yr}from"./chunk-6D6Z2KXU.js";import{I as mn,J as fn,O as gn,P as It,U as K,V as re,W as br,e as ue,j as no,k as ln,q as cn,r as ao,t as Dt,u as dn,v as Mt,w as Ee,x as pn}from"./chunk-PLHA3OWK.js";import{a as Kr}from"./chunk-4L4WTGN5.js";import{a as Pr}from"./chunk-55754F6H.js";import{c as Oe}from"./chunk-IS6LVJ6L.js";import{a as ye,c as an,h as yo,i as sn}from"./chunk-AAVLPU5Q.js";import{a as vr,b as kt}from"./chunk-FEWMAPNI.js";import{a as oo,c as Y,g as ro,i as rn,j as B}from"./chunk-225VJ77I.js";import{a as Jr,b as Xr}from"./chunk-35DM4JJG.js";import{a as so}from"./chunk-5G2MAI3G.js";import{a as nn}from"./chunk-FSRSK4LY.js";import{d as fr}from"./chunk-CEA2QYAI.js";import{a as en,b as tn,c as on,d as fe,o as Qt,q as An}from"./chunk-FODLDLE2.js";import{a as s,c as mr,d as S,e as I,f as gr,g as ie,i as Z}from"./chunk-YKXDMIHQ.js";var A=S(gr(),1);var xe=S(I(),1),k=S(I(),1);var a=S(ie(),1);var jn=S(I(),1),Te=S(ie(),1);var js={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},zs={overflow:"auto",whiteSpace:"pre-wrap"},Ko=class extends jn.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:n}=this.props,{error:i}=this.state;if(i===null)return(0,Te.jsx)(Te.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Te.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:js,children:[(0,Te.jsx)("strong",{children:l}),(0,Te.jsx)("pre",{"data-testid":"dash-error-message",style:zs,children:i.message}),(0,Te.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var Me={};mr(Me,{Arrow:()=>aa,Backdrop:()=>ia,Close:()=>ma,Description:()=>pa,Handle:()=>po,Popup:()=>ra,Portal:()=>Jn,Positioner:()=>Xn,Root:()=>$n,Title:()=>ca,Trigger:()=>Gn,Viewport:()=>ga,createHandle:()=>ha});var io=S(I(),1);var Uo=S(I(),1);var Cr=Uo.createContext(void 0);function J(t){let e=Uo.useContext(Cr);if(e===void 0&&!t)throw new Error(Y(47));return e}s(J,"usePopoverRootContext");var Zo=S(I(),1),zn=S(Kr(),1);var Kn={...qt,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")},Wo=class extends Ht{static{s(this,"PopoverStore")}constructor(e,o,r){let n=new Ne;super(Zn(e,n,o,r),Wn(n),Kn)}setOpen=s((e,o)=>{let r=o.reason===K.triggerHover,n=o.reason===K.triggerPress&&o.event.detail===0,i=!e&&(o.reason===K.escapeKey||o.reason==null),l=Nn(o),c=this.select("activeTriggerId");if(!e&&o.reason===K.closePress&&o.trigger==null&&c!=null&&(o.trigger=this.context.triggerElements.getById(c)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=s(()=>{let u=wo(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)}),zn.flushSync(p)):p();let d;n?d="click":i?d="dismiss":o.reason===K.focusOut&&(d="focus"),this.set("instantType",d)},"setOpen")};function Un(){let t=new Ne,e=new Gt(Object.freeze(Zn(void 0,t)),Object.freeze(Wn(t)),Kn);return Object.assign(e,{setOpen:ro})}s(Un,"createNullPopoverStore");function Zn(t,e,o,r=!1){let n={...Wt(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 n.open&&t?.mounted===void 0&&(n.mounted=!0),n}s(Zn,"createInitialState");function Wn(t){return{popupRef:Zo.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Zo.createRef(),beforeContentFocusGuardRef:Zo.createRef(),stickIfOpenTimeout:new mn,triggerElements:t}}s(Wn,"createInitialContext");var ke=S(ie(),1);var qn=_t(s(function({props:e}){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:l,modal:c=!1,handle:p,triggerId:d,defaultTriggerId:u=null}=e,f=Ks(p,{modal:c,open:n,openProp:r,activeTriggerId:u,triggerIdProp:d});f.useControlledProp("openProp",r),f.useControlledProp("triggerIdProp",d);let h=f.useState("open"),g=f.useState("mounted"),m=f.useState("payload");f.useContextCallback("onOpenChange",i),f.useContextCallback("onOpenChangeComplete",l),Eo(f,h),Kt(f);let{forceUnmount:x}=Ut(h,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:c}),io.useEffect(()=>{h||f.context.stickIfOpenTimeout.clear()},[f,h]),io.useImperativeHandle(e.actionsRef,()=>({unmount:x,close:s(()=>f.setOpen(!1,re(K.imperativeAction)),"close")}),[x,f]);let v=h||g;return(0,ke.jsxs)(Cr.Provider,{value:f,children:[p&&(0,ke.jsx)(jt,{handle:p,store:f}),v&&(0,ke.jsx)(Us,{store:f,modal:c}),typeof o=="function"?o({payload:m}):o]})},"PopoverRootComponent"));function $n(t){return J(!0)?(0,ke.jsx)(qn,{props:t}):(0,ke.jsx)(Rn,{children:(0,ke.jsx)(qn,{props:t})})}s($n,"PopoverRoot");function Ks(t,e){let o=Ft((r,n)=>new Wo(e,r,n));return io.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o}s(Ks,"usePopoverRootStore");function Us({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Vt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference,i=r.floating;return Zt(t,{activeTriggerProps:n,inactiveTriggerProps:n,popupProps:i}),null}s(Us,"PopoverInteractions");var lo=S(I(),1);var Yt=S(ie(),1);var Gn=At(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,handle:p,payload:d,openOnHover:u=!1,delay:f=300,closeDelay:h=0,id:g,...m}=e,x=J(!0),b=$t(p)??x;if(!b)throw new Error(Y(74));let P=ue(g),y=b.useState("isTriggerActive",P),N=b.useState("floatingRootContext"),C=b.useState("isOpenedByTrigger",P),E=b.useState("triggerPopupId",P),R=lo.useRef(null),{registerTrigger:O,isMountedByThisTrigger:w}=zt(P,R,b,{payload:d,disabled:l,openOnHover:u,closeDelay:h}),T=b.useState("openChangeReason"),_=b.useState("stickIfOpen"),L=b.useState("openMethod"),M=b.useState("focusManagerModal"),j=ko(N,{enabled:!l&&u&&(L!=="touch"||T!==K.triggerPress),mouseOnly:!0,move:!1,handleClose:Do(),restMs:f,delay:{close:h},triggerElementRef:R,isActiveTrigger:y,isClosing:s(()=>b.select("transitionStatus")==="ending","isClosing")}),z=No(N,{stickIfOpen:_}),H=Mo(()=>b.select("open"),$=>{b.set("openMethod",$)}),F=b.useState("triggerProps",w),{getButtonProps:U,buttonRef:D}=Oe({disabled:l,native:c}),V={open($){return $&&T===K.triggerPress?dn.open($):Dt.open($)}},{preFocusGuardRef:W,handlePreFocusGuardFocus:G,handleFocusTargetFocus:te}=On(b,R),Q=B("button",e,{state:{disabled:l,open:C},ref:[D,o,O,R],props:[z.reference,j,F,H,{[Po]:"",id:P,"aria-haspopup":"dialog","aria-expanded":C,"aria-controls":E},m,U],stateAttributesMapping:V}),ee=(0,Yt.jsx)(lo.Fragment,{children:Q},P);return w&&!M?(0,Yt.jsxs)(lo.Fragment,{children:[(0,Yt.jsx)(xr,{ref:W,onFocus:G}),ee,(0,Yt.jsx)(xr,{ref:b.context.triggerFocusTargetRef,onFocus:te})]}):ee},"PopoverTrigger"));var Yn=S(I(),1);var qo=S(I(),1);var Rr=qo.createContext(void 0);function Qn(){let t=qo.useContext(Rr);if(t===void 0)throw new Error(Y(45));return t}s(Qn,"usePopoverPortalContext");var Sr=S(ie(),1);var Jn=Yn.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e;return J().useState("mounted")||r?(0,Sr.jsx)(Rr.Provider,{value:r,children:(0,Sr.jsx)(Ro,{ref:o,...n})}):null},"PopoverPortal"));var Go=S(I(),1);var $o=S(I(),1);var Nr=$o.createContext(void 0);function Jt(){let t=$o.useContext(Nr);if(!t)throw new Error(Y(46));return t}s(Jt,"usePopoverPositionerContext");var co=S(ie(),1);var Xn=Go.forwardRef(s(function(e,o){let{render:r,className:n,style:i,anchor:l,positionMethod:c,side:p,align:d,sideOffset:u,alignOffset:f,collisionBoundary:h="clipping-ancestors",collisionPadding:g,arrowPadding:m,sticky:x,disableAnchorTracking:v=!1,collisionAvoidance:b=Co,...P}=e,y=J(),N=Qn(),C=Pn(),E=y.useState("floatingRootContext"),R=y.useState("mounted"),O=y.useState("open"),w=y.useState("openChangeReason"),T=y.useState("activeTriggerElement"),_=y.useState("modal"),L=y.useState("openMethod"),M=y.useState("positionerElement"),j=y.useState("instantType"),z=y.useState("transitionStatus"),H=y.useState("adaptiveOrigin"),F=Go.useRef(null),U=gn(M),D=_o({anchor:l,floatingRootContext:E,positionMethod:c,mounted:R,side:p,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:x,disableAnchorTracking:v,keepMounted:N,nodeId:C,collisionAvoidance:b,adaptiveOrigin:H}),V=E.useState("domReferenceElement");ye(()=>{let Q=V,ee=F.current;if(Q&&(F.current=Q),ee&&Q&&Q!==ee){y.set("instantType",void 0);let $=new AbortController;return U(()=>{y.set("instantType","trigger-change")},$.signal),()=>{$.abort()}}},[V,U,y]);let W=_===!0&&w!==K.triggerHover;Dn(O&&W,L==="touch",M,T);let G=y.useStateSetter("positionerElement"),te={open:O,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:j},ae=Lo(e,te,{styles:D.positionerStyles,transitionStatus:z,props:P,refs:[o,G],hidden:!R,inert:!O});return(0,co.jsxs)(Nr.Provider,{value:D,children:[R&&W&&(0,co.jsx)(Ao,{inert:Io(!O),cutout:T}),(0,co.jsx)(Cn,{id:C,children:ae})]})},"PopoverPositioner"));var oa=S(I(),1);var De=S(I(),1);var Tr=De.createContext(void 0);function ea(){let[t,e]=De.useState(0),o=an(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:De.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}s(ea,"useClosePartCount");function ta(){let t=De.useContext(Tr);ye(()=>t?.register(),[t])}s(ta,"useClosePartRegistration");var wr=S(ie(),1);var ra=oa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,initialFocus:l,finalFocus:c,...p}=e,d=J(),u=Jt(),f=Mn(!0)!=null,{context:h,hasClosePart:g}=ea(),m=d.useState("open"),x=d.useState("openMethod"),v=d.useState("instantType"),b=d.useState("transitionStatus"),P=d.useState("popupProps"),y=d.useState("titleElementId"),N=d.useState("descriptionElementId"),C=d.useState("modal"),E=d.useState("mounted"),R=d.useState("openChangeReason"),O=d.useState("activeTriggerElement"),w=d.useState("floatingRootContext"),T=w.useState("floatingId"),_=d.useState("disabled"),L=d.useState("openOnHover"),M=d.useState("closeDelay");It({open:m,ref:d.context.popupRef,onComplete(){m&&d.context.onOpenChangeComplete?.(!0)}}),Oo(w,{enabled:L&&!_,closeDelay:M});let j=l===void 0?To(d.context.popupRef):l,z=C!==!1&&g;d.useSyncedValue("focusManagerModal",z);let H=d.useStateSetter("popupElement"),F={open:m,side:u.side,align:u.align,instant:v,transitionStatus:b},U=B("div",e,{state:F,ref:[o,d.context.popupRef,H],props:[P,{id:T,role:"dialog",...Bt,"aria-labelledby":y,"aria-describedby":N,onKeyDown(D){f&&Ho.has(D.key)&&D.stopPropagation()}},Vo(b),p],stateAttributesMapping:Ee});return(0,wr.jsx)(So,{context:w,openInteractionType:x,modal:z,disabled:!E||R===K.triggerHover,initialFocus:j,returnFocus:c,restoreFocus:"popup",previousFocusableElement:sn(O)?O:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,wr.jsx)(Tr.Provider,{value:h,children:U})})},"PopoverPopup"));var na=S(I(),1);var aa=na.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,p=J().useState("open"),{arrowRef:d,side:u,align:f,arrowUncentered:h,arrowStyles:g}=Jt();return B("div",e,{state:{open:p,side:u,align:f,uncentered:h},ref:[o,d],props:[{style:g,"aria-hidden":!0},l],stateAttributesMapping:Mt})},"PopoverArrow"));var sa=S(I(),1);var ia=sa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=J(),p=c.useState("open"),d=c.useState("mounted"),u=c.useState("transitionStatus"),f=c.useState("openChangeReason");return B("div",e,{state:{open:p,transitionStatus:u},ref:o,props:[{role:"presentation",hidden:!d,style:{pointerEvents:f===K.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:Ee})},"PopoverBackdrop"));var la=S(I(),1);var ca=la.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=J(),p=ue(l.id);return c.useSyncedValueWithCleanup("titleElementId",p),B("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var da=S(I(),1);var pa=da.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=J(),p=ue(l.id);return c.useSyncedValueWithCleanup("descriptionElementId",p),B("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var ua=S(I(),1);var ma=ua.forwardRef(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,...p}=e,{buttonRef:d,getButtonProps:u}=Oe({disabled:l,focusableWhenDisabled:!1,native:c}),f=J();return ta(),B("button",e,{ref:[o,d],props:[{onClick(g){f.setOpen(!1,re(K.closePress,g.nativeEvent))}},p,u]})},"PopoverClose"));var fa=S(I(),1);var ga=fa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=J(),{side:d}=Jt(),u=p.useState("instantType"),{children:f,state:h}=Fo({store:p,side:d,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:Bo})},"PopoverViewport"));var po=class extends Lt{static{s(this,"PopoverHandle")}constructor(){super(Un(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function ha(){return new po}s(ha,"createPopoverHandle");var le={};mr(le,{Backdrop:()=>ba,Close:()=>ya,Description:()=>Ca,Handle:()=>fo,Popup:()=>wa,Portal:()=>Oa,Root:()=>La,Title:()=>ja,Trigger:()=>Ka,Viewport:()=>Ba,createHandle:()=>Ua});var va=S(I(),1);var Qo=S(I(),1);var Er=Qo.createContext(void 0);function ne(t){let e=Qo.useContext(Er);if(!t&&e===void 0)throw new Error(Y(27));return e}s(ne,"useDialogRootContext");var ba=va.forwardRef(s(function(e,o){let{render:r,className:n,style:i,forceRender:l=!1,...c}=e,p=ne(),d=p.useState("open"),u=p.useState("nested"),f=p.useState("mounted"),h=p.useState("transitionStatus");return B("div",e,{state:{open:d,transitionStatus:h},ref:[p.context.backdropRef,o],stateAttributesMapping:Ee,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},c],enabled:l||!u})},"DialogBackdrop"));var xa=S(I(),1);var ya=xa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,...p}=e,d=ne(),u=d.useState("open"),{getButtonProps:f,buttonRef:h}=Oe({disabled:l,native:c}),g={disabled:l};function m(x){u&&d.setOpen(!1,re(K.closePress,x.nativeEvent))}return s(m,"handleClick"),B("button",e,{state:g,ref:[o,h],props:[{onClick:m},p,f]})},"DialogClose"));var Pa=S(I(),1);var Ca=Pa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,id:l,...c}=e,p=ne(),d=ue(l);return p.useSyncedValueWithCleanup("descriptionElementId",d),B("p",e,{ref:o,props:[{id:d},c]})},"DialogDescription"));var Na=S(I(),1);var Yo=S(I(),1);var Or=Yo.createContext(void 0);function Jo(){let t=Yo.useContext(Or);if(t===void 0)throw new Error(Y(26));return t}s(Jo,"useDialogPortalContext");var Ra="--nested-dialogs";var uu=ao.open,mu=ao.closed,fu=ao.startingStyle,gu=ao.endingStyle;var Sa="data-nested-dialog-open";var Xo={...Mt,...cn,nestedDialogOpen(t){return t?{[Sa]:""}:null}};var Ta=S(ie(),1);var wa=Na.forwardRef(s(function(e,o){let{render:r,className:n,style:i,finalFocus:l,initialFocus:c,...p}=e,d=ne(),u=d.useState("descriptionElementId"),f=d.useState("disablePointerDismissal"),h=d.useState("floatingRootContext"),g=d.useState("popupProps"),m=d.useState("modal"),x=d.useState("mounted"),v=d.useState("nested"),b=d.useState("nestedOpenDialogCount"),P=d.useState("open"),y=d.useState("openMethod"),N=d.useState("titleElementId"),C=d.useState("transitionStatus"),E=d.useState("role"),R=h.useState("floatingId");Jo(),It({open:P,ref:d.context.popupRef,onComplete(){P&&d.context.onOpenChangeComplete?.(!0)}});let O=c===void 0?To(d.context.popupRef):c,w=b>0,T=d.useStateSetter("popupElement"),L=B("div",e,{state:{open:P,nested:v,transitionStatus:C,nestedDialogOpen:w},props:[g,{id:R,"aria-labelledby":N,"aria-describedby":u,role:E,...Bt,hidden:!x,onKeyDown(M){Ho.has(M.key)&&M.stopPropagation()},style:{[Ra]:b}},p],ref:[o,d.context.popupRef,T],stateAttributesMapping:Xo});return(0,Ta.jsx)(So,{context:h,openInteractionType:y,disabled:!x,closeOnFocusOut:!f,initialFocus:O,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:L})},"DialogPopup"));var Ea=S(I(),1);var uo=S(ie(),1);var Oa=Ea.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e,i=ne(),l=i.useState("mounted"),c=i.useState("modal"),p=i.useState("open");return l||r?(0,uo.jsx)(Or.Provider,{value:r,children:(0,uo.jsxs)(Ro,{ref:o,...n,children:[l&&c===!0&&(0,uo.jsx)(Ao,{ref:i.context.internalBackdropRef,inert:Io(!p)}),e.children]})}):null},"DialogPortal"));var Aa=S(I(),1);var kr=S(I(),1);function ka({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),i=t.useState("modal"),l=t.useState("popupElement"),c=t.useState("floatingRootContext"),[p,d]=kr.useState(0),[u,f]=kr.useState(0),h=p===0,g=Vt(c,{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=ln(m);if(h&&!n){if(i){let v=t.context.internalBackdropRef.current,b=t.context.backdropRef.current;return v||b?v===x||b===x||no(x,l)&&!x?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:h});return kn(r&&i===!0,l),t.useContextCallback("onNestedDialogOpen",(m,x)=>{d(m),f(x)}),ye(()=>(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]),Zt(t,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}s(ka,"DialogInteractions");var er=S(I(),1);var Da={...qt,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")},tr=class extends Ht{static{s(this,"DialogStore")}constructor(e,o,r){let n=new Ne,i=Ia(e,n,o,r);super(i,_a(n),Da)}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(wo(this.state,e,o.trigger)))},"setOpen")};function Ma(){let t=new Ne;return new Gt(Object.freeze(Ia(void 0,t)),Object.freeze(_a(t)),Da)}s(Ma,"createNullDialogStore");function Ia(t,e,o,r=!1){return{...Wt(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(Ia,"createInitialState");function _a(t){return{popupRef:er.createRef(),backdropRef:er.createRef(),internalBackdropRef:er.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:t,onOpenChange:void 0,onOpenChangeComplete:void 0}}s(_a,"createInitialContext");var mo=S(ie(),1);function Va(t,e){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:l,disablePointerDismissal:c=!1,modal:p=!0,actionsRef:d,handle:u,triggerId:f,defaultTriggerId:h=null}=e,g=t==="drawer",m=t==="alert-dialog",x=m?!0:p,v=m||c,b=m?"alertdialog":"dialog",P=ne(!0),y=P!=null,N={modal:x,disablePointerDismissal:v,nested:y,role:b},C=Ft((_,L)=>new tr({open:n,openProp:r,activeTriggerId:h,triggerIdProp:f,...N},_,L),!0);C.useControlledProp("openProp",r),C.useControlledProp("triggerIdProp",f),C.useSyncedValues(N),C.useContextCallback("onOpenChange",i),C.useContextCallback("onOpenChangeComplete",l);let E=C.useState("open"),R=C.useState("mounted"),O=C.useState("payload");Eo(C,E),Kt(C);let{forceUnmount:w}=Ut(E,C);Aa.useImperativeHandle(d,()=>({unmount:w,close:s(()=>C.setOpen(!1,re(K.imperativeAction)),"close")}),[w,C]);let T=E||R;return(0,mo.jsxs)(Er.Provider,{value:C,children:[u&&(0,mo.jsx)(jt,{handle:u,store:C}),T&&(0,mo.jsx)(ka,{store:C,parentContext:P?.context,isDrawer:g}),typeof o=="function"?o({payload:O}):o]})}s(Va,"useRenderDialogRoot");var La=_t(s(function(e){return Va("dialog",e)},"DialogRoot"));var Ha=S(I(),1);var Ba=Ha.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=Jo(),d=ne(),u=d.useState("open"),f=d.useState("nested"),h=d.useState("transitionStatus"),g=d.useState("nestedOpenDialogCount"),m=d.useState("mounted"),x=d.useStateSetter("viewportElement"),v=g>0;return B("div",e,{enabled:p||m,state:{open:u,nested:f,transitionStatus:h,nestedDialogOpen:v},ref:[o,x],stateAttributesMapping:Xo,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},c]})},"DialogViewport"));var Fa=S(I(),1);var ja=Fa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,id:l,...c}=e,p=ne(),d=ue(l);return p.useSyncedValueWithCleanup("titleElementId",d),B("h2",e,{ref:o,props:[{id:d},c]})},"DialogTitle"));var za=S(I(),1);var Ka=At(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,id:p,payload:d,handle:u,...f}=e,h=ne(!0),m=$t(u)??h;if(!m)throw new Error(Y(79));let x=ue(p),v=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",x),P=m.useState("triggerPopupId",x),y=za.useRef(null),{registerTrigger:N,isMountedByThisTrigger:C}=zt(x,y,m,{payload:d}),{getButtonProps:E,buttonRef:R}=Oe({disabled:l,native:c}),O=No(v),w=Mo(()=>m.select("open"),L=>{m.set("openMethod",L)}),T={disabled:l,open:b},_=m.useState("triggerProps",C);return B("button",e,{state:T,ref:[R,o,N,y],props:[O.reference,_,w,{[Po]:"",id:x,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":P},f,E],stateAttributesMapping:Dt})},"DialogTrigger"));var fo=class extends Lt{static{s(this,"DialogHandle")}constructor(){super(Ma(),"Dialog",!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let o=this.attachedStore;o!==null&&(o.set("payload",e),o.setOpen(!0,re(K.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ua(){return new fo}s(Ua,"createDialogHandle");var Pe={};mr(Pe,{Arrow:()=>us,Handle:()=>ho,Popup:()=>ds,Portal:()=>ss,Positioner:()=>ls,Provider:()=>fs,Root:()=>Qa,Trigger:()=>es,Viewport:()=>hs,createHandle:()=>vs});var Xt=S(I(),1);var or=S(I(),1);var Dr=or.createContext(void 0);function ve(t){let e=or.useContext(Dr);if(e===void 0&&!t)throw new Error(Y(72));return e}s(ve,"useTooltipRootContext");var Za=S(I(),1);var Wa={...qt,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")},rr=class extends Ht{static{s(this,"TooltipStore")}constructor(e,o,r){let n=new Ne;super($a(e,n,o,r),Ga(n),Wa)}setOpen=s((e,o)=>{Tn(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,re(K.triggerPress,e))}};function qa(){let t=new Ne,e=new Gt(Object.freeze($a(void 0,t)),Object.freeze(Ga(t)),Wa);return Object.assign(e,{setOpen:ro,cancelPendingOpen:ro})}s(qa,"createNullTooltipStore");function $a(t,e,o,r=!1){return{...Wt(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($a,"createInitialState");function Ga(t){return{popupRef:Za.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}s(Ga,"createInitialContext");var go=S(ie(),1);var Qa=_t(s(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:i=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:p,onOpenChangeComplete:d,handle:u,triggerId:f,defaultTriggerId:h=null,children:g}=e,m=Ft((_,L)=>new rr({open:r,openProp:n,activeTriggerId:h,triggerIdProp:f},_,L));m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",f),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",d);let x=m.useState("open"),v=!o&&x,b=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:i,disabled:o}),Kt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:N,transitionStatus:C}=Ut(v,m),E=m.useState("isInstantPhase"),R=m.useState("instantType"),O=m.useState("lastOpenChangeReason"),w=Xt.useRef(null);ye(()=>{x&&o&&m.setOpen(!1,re(K.disabled))},[x,o,m]),ye(()=>{C==="ending"&&O===K.none||C!=="ending"&&E?(R!=="delay"&&(w.current=R),m.set("instantType","delay")):w.current!==null&&(m.set("instantType",w.current),w.current=null)},[C,E,O,R,m]),ye(()=>{v&&b==null&&m.set("payload",void 0)},[m,b,v]),Xt.useImperativeHandle(c,()=>({unmount:N,close:s(()=>m.setOpen(!1,re(K.imperativeAction)),"close")}),[N,m]);let T=v||P||!o&&l!=="none";return(0,go.jsxs)(Dr.Provider,{value:m,children:[u&&(0,go.jsx)(jt,{handle:u,store:m}),T&&(0,go.jsx)(qs,{store:m,disabled:o,trackCursorAxis:l}),typeof g=="function"?g({payload:y}):g]})},"TooltipRoot"));function qs({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=Vt(r,{enabled:!e,referencePress:s(()=>t.select("closeOnClick"),"referencePress")}),i=Sn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=Xt.useMemo(()=>oo(i.reference,n.reference),[i.reference,n.reference]);return Zt(t,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:n.floating??rn}),null}s(qs,"TooltipInteractions");var ar=S(I(),1);var nr=S(I(),1);var Mr=nr.createContext(void 0);function Ya(){return nr.useContext(Mr)}s(Ya,"useTooltipProviderContext");var Xa="data-base-ui-tooltip-trigger";function Ja(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(yo(n))return n}}let e=t.target;return yo(e)?e:null}s(Ja,"getTargetElement");function $s(t){let e=t;for(;e;){let o=e.closest(`[${Xa}]`);if(o)return o;let r=e.getRootNode();e="host"in r&&yo(r.host)?r.host:null}return null}s($s,"closestEnabledTooltipTrigger");var es=At(s(function(e,o){let{render:r,className:n,style:i,handle:l,payload:c,disabled:p,delay:d,closeOnClick:u=!0,closeDelay:f,id:h,...g}=e,m=ve(!0),v=$t(l)??m;if(!v)throw new Error(Y(82));let b=ue(h),P=v.useState("isTriggerActive",b),y=v.useState("isOpenedByTrigger",b),N=v.useState("floatingRootContext"),C=ar.useRef(null),E=f??0,{registerTrigger:R,isMountedByThisTrigger:O}=zt(b,C,v,{payload:c,closeOnClick:u,closeDelay:E}),w=Ya(),{activeIdRef:T,delayRef:_,isInstantPhase:L,hasProvider:M}=bn(N,{open:y}),j=En(N);v.useSyncedValue("isInstantPhase",L);let z=v.useState("disabled"),H=p??z,F=xn(H),U=v.useState("trackCursorAxis"),D=v.useState("disableHoverablePopup"),V=ar.useRef(!1),W=fn(),G=ar.useRef(void 0);function te(){return M&&T.current!=null?0:d??w??600}s(te,"getOpenDelay");function ae(q){let me=C.current;if(!me||!q)return!1;let pe=$s(q);return pe!==null&&pe!==me&&no(me,pe)}s(ae,"isEnabledNestedTriggerTarget");function Q(q){let me=ae(q);return V.current=me,me&&(j.openChangeTimeout.clear(),j.restTimeout.clear(),j.restTimeoutPending=!1,W.clear()),me}s(Q,"detectNestedTriggerHover");let ee=ko(N,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!D&&U!=="both"?Do():null,restMs:te,delay(){return f==null&&M?{close:hn(_.current,"close")}:{close:E}},triggerElementRef:C,isActiveTrigger:P,isClosing:s(()=>v.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!V.current}}),$=wn(N,{enabled:!H}).reference,ce=s(q=>{let me=V.current,pe=Ja(q),Ce=Q(pe),be=C.current,we=be&&pe&&no(be,pe);if(Ce&&v.select("open")&&v.select("lastOpenChangeReason")===K.triggerHover){v.setOpen(!1,re(K.triggerHover,q));return}if(me&&!Ce&&we&&!F.current&&!v.select("open")&&be&&un(G.current)){let Re=s(()=>{!V.current&&!F.current&&!v.select("open")&&v.setOpen(!0,re(K.triggerHover,q,be))},"open"),Se=te();Se===0?(W.clear(),Re()):W.start(Se,Re)}},"handleNestedTriggerHover"),de=v.useState("triggerProps",O);return B("button",e,{state:{open:y},ref:[o,R,C],props:[ee,$,O||U!=="none"?de:void 0,{onMouseOver(q){ce(q.nativeEvent)},onFocus(q){ae(Ja(q.nativeEvent))&&q.preventBaseUIHandler()},onMouseLeave(){V.current=!1,W.clear(),G.current=void 0},onPointerEnter(q){G.current=q.pointerType},onPointerDown(q){G.current=q.pointerType,v.set("closeOnClick",u),u&&!v.select("open")&&v.cancelPendingOpen(q.nativeEvent)},onClick(q){u&&!v.select("open")&&v.cancelPendingOpen(q.nativeEvent)},id:b,[pn]:H?"":void 0,[Xa]:H?void 0:""},g],stateAttributesMapping:Dt})},"TooltipTrigger"));var as=S(I(),1);var sr=S(I(),1);var Ir=sr.createContext(void 0);function ts(){let t=sr.useContext(Ir);if(t===void 0)throw new Error(Y(70));return t}s(ts,"useTooltipPortalContext");var ir=S(I(),1),os=S(Kr(),1);var rs=S(ie(),1);var ns=ir.forwardRef(s(function(e,o){let{children:r,container:n,className:i,render:l,style:c,...p}=e,{node:d,subtree:u}=yn({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!d?null:(0,rs.jsxs)(ir.Fragment,{children:[u,d&&os.createPortal(r,d)]})},"FloatingPortalLite"));var _r=S(ie(),1);var ss=as.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e;return ve().useState("mounted")||r?(0,_r.jsx)(Ir.Provider,{value:r,children:(0,_r.jsx)(ns,{ref:o,...n})}):null},"TooltipPortal"));var cr=S(I(),1);var lr=S(I(),1);var Ar=lr.createContext(void 0);function eo(){let t=lr.useContext(Ar);if(t===void 0)throw new Error(Y(71));return t}s(eo,"useTooltipPositionerContext");var is=S(ie(),1);var ls=cr.forwardRef(s(function(e,o){let{render:r,className:n,anchor:i,positionMethod:l="absolute",side:c="top",align:p="center",sideOffset:d=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:h=5,arrowPadding:g=5,sticky:m=!1,disableAnchorTracking:x=!1,collisionAvoidance:v=Co,style:b,...P}=e,y=ve(),N=ts(),C=y.useState("open"),E=y.useState("mounted"),R=y.useState("trackCursorAxis"),O=y.useState("disableHoverablePopup"),w=y.useState("floatingRootContext"),T=y.useState("instantType"),_=y.useState("transitionStatus"),L=y.useState("adaptiveOrigin"),M=_o({anchor:i,positionMethod:l,floatingRootContext:w,mounted:E,side:c,sideOffset:d,align:p,alignOffset:u,collisionBoundary:f,collisionPadding:h,sticky:m,arrowPadding:g,disableAnchorTracking:x,keepMounted:N,collisionAvoidance:v,adaptiveOrigin:L}),j=cr.useMemo(()=>({open:C,side:M.side,align:M.align,anchorHidden:M.anchorHidden,instant:R!=="none"?"tracking-cursor":T}),[C,M.side,M.align,M.anchorHidden,R,T]),z=Lo(e,j,{styles:M.positionerStyles,transitionStatus:_,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!E,inert:!C||R==="both"||O});return(0,is.jsx)(Ar.Provider,{value:M,children:z})},"TooltipPositioner"));var cs=S(I(),1);var ds=cs.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=ve(),{side:p,align:d}=eo(),u=c.useState("open"),f=c.useState("instantType"),h=c.useState("transitionStatus"),g=c.useState("popupProps"),m=c.useState("floatingRootContext"),x=c.useState("disabled"),v=c.useState("closeDelay");It({open:u,ref:c.context.popupRef,onComplete(){u&&c.context.onOpenChangeComplete?.(!0)}}),Oo(m,{enabled:!x,closeDelay:v});let b=c.useStateSetter("popupElement");return B("div",e,{state:{open:u,side:p,align:d,instant:f,transitionStatus:h},ref:[o,c.context.popupRef,b],props:[Bt,g,Vo(h),l],stateAttributesMapping:Ee})},"TooltipPopup"));var ps=S(I(),1);var us=ps.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=ve(),{arrowRef:p,side:d,align:u,arrowUncentered:f,arrowStyles:h}=eo(),g=c.useState("open"),m=c.useState("instantType");return B("div",e,{state:{open:g,side:d,align:u,uncentered:f,instant:m},ref:[o,p],props:[{style:h,"aria-hidden":!0},l],stateAttributesMapping:Mt})},"TooltipArrow"));var ms=S(I(),1);var Vr=S(ie(),1);var fs=s(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,i=ms.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Vr.jsx)(Mr.Provider,{value:o,children:(0,Vr.jsx)(vn,{delay:i,timeoutMs:n,children:e.children})})},"TooltipProvider");var gs=S(I(),1);var hs=gs.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=ve(),d=eo(),u=p.useState("instantType"),{children:f,state:h}=Fo({store:p,side:d.side,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:Bo})},"TooltipViewport"));var ho=class extends Lt{static{s(this,"TooltipHandle")}constructor(){super(qa(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function vs(){return new ho}s(vs,"createTooltipHandle");var bs=S(gr(),1);var xs=S(ie(),1);var Gs=s((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?tn:en(e,o),"I"),ys=s(t=>{let e=(0,bs.c)(7),{catalogs:o,children:r,i18n:n,locale:i}=t,l;e[0]!==o||e[1]!==n||e[2]!==i?(l=Gs(n,i,o),e[0]=o,e[1]=n,e[2]=i,e[3]=l):l=e[3];let c=l,p;return e[4]!==r||e[5]!==c?(p=(0,xs.jsx)(on,{value:c,children:r}),e[4]=r,e[5]=c,e[6]=p):p=e[6],p},"S");var Hr=S(gr(),1);var Ie=S(I(),1);var oe=S(ie(),1);var Lr="lunora:command-palette",Ps=s(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(Lr))},"ce"),Qs=s(t=>{let e=(0,Hr.c)(18),{active:o,index:r,item:n,onActivate:i,onSelect:l}=t,c;e[0]!==n||e[1]!==l?(c=s(()=>{l(n)},"g"),e[0]=n,e[1]=l,e[2]=c):c=e[2];let p=c,d;e[3]!==r||e[4]!==i?(d=s(()=>{i(r)},"x"),e[3]=r,e[4]=i,e[5]=d):d=e[5];let u=d,f=o?"bg-accent text-accent-foreground":"text-foreground",h;e[6]!==f?(h=Z("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]=h):h=e[7];let g;e[8]!==n.label?(g=(0,oe.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=g):g=e[9];let m;e[10]!==n.group?(m=(0,oe.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.group,e[11]=m):m=e[11];let x;return e[12]!==p||e[13]!==u||e[14]!==h||e[15]!==g||e[16]!==m?(x=(0,oe.jsx)("li",{children:(0,oe.jsxs)("button",{className:h,onClick:p,onMouseEnter:u,type:"button",children:[g,m]})}),e[12]=p,e[13]=u,e[14]=h,e[15]=g,e[16]=m,e[17]=x):x=e[17],x},"Y"),Ys=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"),Cs=s(t=>{let e=(0,Hr.c)(40),{items:o}=t,r=fe(),n=to(),{palette:i}=zo(),[l,c]=(0,Ie.useState)(!1),[p,d]=(0,Ie.useState)(""),[u,f]=(0,Ie.useState)(0),h=(0,Ie.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:G}=W;G instanceof HTMLElement&&(G.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(G.tagName))||(W.preventDefault(),c(!0))},"t"),V=s(()=>{c(!0)},"l");return globalThis.addEventListener("keydown",D),globalThis.addEventListener(Lr,V),()=>{globalThis.removeEventListener("keydown",D),globalThis.removeEventListener(Lr,V)}},"s"),m=[i],e[0]=i,e[1]=g,e[2]=m):(g=e[1],m=e[2]),(0,Ie.useEffect)(g,m);let x;e[3]!==o||e[4]!==p?(x=Ys(o,p),e[3]=o,e[4]=p,e[5]=x):x=e[5];let v=x,b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=s(D=>{c(D),D||(d(""),f(0))},"I"),e[6]=b):b=e[6];let P=b,y;e[7]!==n?(y=s(D=>{if(P(!1),D.run!==void 0){D.run();return}D.to!==void 0&&Qt(n({to:D.to}))},"K"),e[7]=n,e[8]=y):y=e[8];let N=y,C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=s(D=>{d(D.target.value),f(0)},"P"),e[9]=C):C=e[9];let E=C,R;e[10]!==u||e[11]!==v||e[12]!==N?(R=s(D=>{e:switch(D.key){case"ArrowDown":{D.preventDefault(),f(V=>v.length===0?0:(V+1)%v.length);break e}case"ArrowUp":{D.preventDefault(),f(V=>v.length===0?0:(V-1+v.length)%v.length);break e}case"Enter":{D.preventDefault();let V=v[u];V!==void 0&&N(V);break e}}},"z"),e[10]=u,e[11]=v,e[12]=N,e[13]=R):R=e[13];let O=R,w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=(0,oe.jsx)(le.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]=w):w=e[14];let T;e[15]!==r?(T=r("Command palette"),e[15]=r,e[16]=T):T=e[16];let _;e[17]!==T?(_=(0,oe.jsx)(le.Title,{className:"sr-only",children:T}),e[17]=T,e[18]=_):_=e[18];let L;e[19]===Symbol.for("react.memo_cache_sentinel")?(L=(0,oe.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,oe.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,oe.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[19]=L):L=e[19];let M;e[20]!==r?(M=r("Search\u2026"),e[20]=r,e[21]=M):M=e[21];let j;e[22]!==O||e[23]!==p||e[24]!==M?(j=(0,oe.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[L,(0,oe.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:E,onKeyDown:O,placeholder:M,ref:h,type:"text",value:p})]}),e[22]=O,e[23]=p,e[24]=M,e[25]=j):j=e[25];let z;e[26]!==u||e[27]!==v||e[28]!==N||e[29]!==r?(z=v.length===0?(0,oe.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):v.map((D,V)=>(0,oe.jsx)(Qs,{active:V===u,index:V,item:D,onActivate:f,onSelect:N},D.to??`${D.group}:${D.label}`)),e[26]=u,e[27]=v,e[28]=N,e[29]=r,e[30]=z):z=e[30];let H;e[31]!==z?(H=(0,oe.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:z}),e[31]=z,e[32]=H):H=e[32];let F;e[33]!==_||e[34]!==j||e[35]!==H?(F=(0,oe.jsxs)(le.Portal,{children:[w,(0,oe.jsxs)(le.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[_,j,H]})]}),e[33]=_,e[34]=j,e[35]=H,e[36]=F):F=e[36];let U;return e[37]!==l||e[38]!==F?(U=(0,oe.jsx)(le.Root,{onOpenChange:P,open:l,children:F}),e[37]=l,e[38]=F,e[39]=U):U=e[39],U},"de");var Es="(prefers-color-scheme: dark)",Os=s(()=>{try{return globalThis.localStorage}catch{return}},"Ft"),Js=s(t=>t==="system"||t==="light"||t==="dark","Ps"),ks=s(()=>globalThis.matchMedia,"qt"),Ds="lunora-studio-theme",Br=["system","light","dark"],Xs=s((t="system")=>{try{let e=Os()?.getItem(Ds);return Js(e)?e:t}catch{return t}},"_s"),Rs=s(t=>{let e=Os();if(e!==void 0)try{e.setItem(Ds,t)}catch{}},"_t"),ei=s(()=>{try{return ks()?.(Es).matches?"dark":"light"}catch{return"light"}},"Ts"),ti=s((t,e)=>t==="system"?e:t,"Ls"),oi=s(t=>{let e;try{e=ks()?.(Es)}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)}},"As"),zr=(0,k.createContext)(null),ri=s(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,k.useState)(()=>Xs(e)),[n,i]=(0,k.useState)(()=>ei());(0,k.useEffect)(()=>oi(i),[]);let l=s(p=>{Rs(p),r(p)},"l"),c={cycleTheme:s(()=>{r(p=>{let d=Br[(Br.indexOf(p)+1)%Br.length]??p;return Rs(d),d})},"cycleTheme"),resolvedTheme:ti(o,n),setTheme:l,systemTheme:n,theme:o};return(0,a.jsx)(zr,{value:c,children:t})},"Rs"),ni=s(t=>{let e=(0,A.c)(3),{children:o}=t,r=(0,k.use)(zr),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,a.jsx)(ri,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"Es"),ai=s(()=>{let t=(0,k.use)(zr);if(t===null)throw new fr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"Is");function Mg({delay:t=0,...e}){return(0,a.jsx)(Pe.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}s(Mg,"vn");function si(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Pe.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}s(si,"$s");function ii(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Pe.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(ii,"Hs");function li({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:i,...l}){return(0,a.jsx)(Pe.Portal,{children:(0,a.jsx)(Pe.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,a.jsxs)(Pe.Popup,{"data-slot":"tooltip-content",className:Z("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,a.jsx)(Pe.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(li,"Bs");var ci=s(t=>{let e=(0,A.c)(5),{className:o}=t,r;e[0]!==o?(r=Z("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=n):n=e[2];let i;return e[3]!==r?(i=(0,a.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=i):i=e[4],i},"zs"),Ms="lunora.studio.rulesBannerDismissed",di=s(()=>{try{return globalThis.localStorage.getItem(Ms)==="1"}catch{return!1}},"Vs"),pi=s(()=>{try{globalThis.localStorage.setItem(Ms,"1")}catch{}},"Os"),ui=s(()=>{let t=(0,A.c)(18),e=fe(),[o,r]=(0,k.useState)(mi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s(()=>{r(!0),pi()},"o"),t[0]=n):n=t[0];let i=n;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=l):l=t[1];let c;t[2]!==e?(c=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=c):c=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let d;t[5]!==e?(d=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=d):d=t[6];let u;t[7]!==c||t[8]!==d?(u=(0,a.jsxs)("span",{children:[c," ",p," ",d]}),t[7]=c,t[8]=d,t[9]=u):u=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=h):h=t[12];let g;t[13]!==f?(g=(0,a.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:h}),t[13]=f,t[14]=g):g=t[14];let m;return t[15]!==u||t[16]!==g?(m=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[l,u,g]}),t[15]=u,t[16]=g,t[17]=m):m=t[17],m},"Ds");function mi(){return di()}s(mi,"Zs");function Is(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Me.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Is,"Ut");function _s(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Me.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(_s,"Gt");function As({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:i=6,...l}){return(0,a.jsx)(Me.Portal,{keepMounted:r,children:(0,a.jsx)(Me.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:i,children:(0,a.jsx)(Me.Popup,{className:Z("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(As,"Kt");var Fr=768;function fi(){let t=(0,A.c)(2),[e,o]=(0,k.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s(()=>{let i=globalThis.matchMedia(`(max-width: ${Fr-1}px)`),l=s(()=>{o(globalThis.innerWidth<Fr)},"l");return i.addEventListener("change",l),o(globalThis.innerWidth<Fr),()=>{i.removeEventListener("change",l)}},"a"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,k.useEffect)(r,n),!!e}s(fi,"Fs");function gi(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(le.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}s(gi,"qs");function hi(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(le.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}s(hi,"Ws");function vi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(vi,"js");function bi({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,a.jsxs)(hi,{children:[(0,a.jsx)(vi,{}),(0,a.jsxs)(le.Popup,{"data-slot":"sheet-content","data-side":o,className:Z("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...n,children:[e,r&&(0,a.jsxs)(le.Close,{"data-slot":"sheet-close",render:(0,a.jsx)(Pr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,a.jsx)(yr,{icon:In,strokeWidth:2}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}s(bi,"Us");function xi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(xi,"Gs");function yi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(yi,"Ks");function Pi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Pi,"Qs");var Ci="sidebar_state",Ri=3600*24*7,Si="16rem",Ni="18rem",Ti="3rem",wi="b",Vs=xe.createContext(null);function dr(){let t=xe.useContext(Vs);if(!t)throw new fr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}s(dr,"gt");function Ei({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:i,...l}){let c=fi(),[p,d]=xe.useState(!1),[u,f]=xe.useState(t),h=e??u,g=s(b=>{let P=typeof b=="function"?b(h):b;o?o(P):f(P),document.cookie=`${Ci}=${P}; path=/; max-age=${Ri}`},"m"),m=s(()=>c?d(b=>!b):g(b=>!b),"h"),x=xe.useEffectEvent(()=>{m()});xe.useEffect(()=>{let b=s(P=>{P.key===wi&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),x())},"g");return globalThis.addEventListener("keydown",b),()=>globalThis.removeEventListener("keydown",b)},[]);let v={state:h?"expanded":"collapsed",open:h,setOpen:g,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:m};return(0,a.jsx)(Vs.Provider,{value:v,children:(0,a.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Si,"--sidebar-width-icon":Ti,...n},className:Z("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:i})})}s(Ei,"aa");function Oi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:i,...l}){let{isMobile:c,state:p,openMobile:d,setOpenMobile:u}=dr();return o==="none"?(0,a.jsx)("div",{"data-slot":"sidebar",className:Z("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:n}):c?(0,a.jsx)(gi,{open:d,onOpenChange:u,...l,children:(0,a.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":Ni},side:t,children:[(0,a.jsxs)(xi,{className:"sr-only",children:[(0,a.jsx)(yi,{children:"Sidebar"}),(0,a.jsx)(Pi,{children:"Displays the mobile sidebar."})]}),(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,a.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,a.jsx)("div",{"data-slot":"sidebar-gap",className:Z("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,a.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:Z("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...l,children:(0,a.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:n})})]})}s(Oi,"oa");function ki(t){let e=(0,A.c)(15),o,r,n;e[0]!==t?({className:o,onClick:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let{toggleSidebar:i}=dr(),l;e[4]!==o?(l=Z(o),e[4]=o,e[5]=l):l=e[5];let c;e[6]!==r||e[7]!==i?(c=s(f=>{r?.(f),i()},"i"),e[6]=r,e[7]=i,e[8]=c):c=e[8];let p,d;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(yr,{icon:_n,strokeWidth:2,className:"rtl:rotate-180"}),d=(0,a.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=d):(p=e[9],d=e[10]);let u;return e[11]!==n||e[12]!==l||e[13]!==c?(u=(0,a.jsxs)(Pr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:c,...n,children:[p,d]}),e[11]=n,e[12]=l,e[13]=c,e[14]=u):u=e[14],u}s(ki,"na");function Di(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Di,"ra");function Mi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Mi,"la");function Ii(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ii,"ia");function _i(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(_i,"da");function Ai(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ai,"ca");function Vi(t){let e=(0,A.c)(10),o,r,n,i;if(e[0]!==t){let{className:p,render:d,...u}=t;o=d,i=vr,r="div",n=oo({className:Z("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=i}else o=e[1],r=e[2],n=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 c;return e[6]!==o||e[7]!==r||e[8]!==n?(c={defaultTagName:r,props:n,render:o,state:l},e[6]=o,e[7]=r,e[8]=n,e[9]=c):c=e[9],i(c)}s(Vi,"ua");function Li(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Li,"ma");function Ss(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ss,"Tt");function Ns(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ns,"Lt");var Hi=nn("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 Ls({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:i,...l}){let{isMobile:c,state:p}=dr(),d=vr({defaultTagName:"button",props:oo({className:Z(Hi({variant:o,size:r}),i)},l),render:n?(0,a.jsx)(ii,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,a.jsxs)(si,{children:[d,(0,a.jsx)(li,{side:"right",align:"center",hidden:p!=="collapsed"||c,...n})]})):d}s(Ls,"Yt");var Bi=s(t=>t.replace("__lunora_admin__:",""),"ha"),Fi=s(()=>(0,k.useSyncExternalStore)(so.subscribe,so.getSnapshot,so.getSnapshot),"pa"),ji=s(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","ga"),zi=s(t=>{let e=(0,A.c)(56),{entry:o,focused:r}=t,n=fe(),i;e[0]!==r?(i=s(L=>{L!==null&&r&&L.scrollIntoView({block:"nearest"})},"r"),e[0]=r,e[1]=i):i=e[1];let l=i,c;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(c=s(()=>{An(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"i"),e[2]=o.functionPath,e[3]=o.shardKey,e[4]=o.summary,e[5]=c):c=e[5];let p=c,d=r&&"bg-accent ring-1 ring-inset ring-primary/40",u;e[6]!==d?(u=Z("border-b border-border/60 last:border-b-0",d),e[6]=d,e[7]=u):u=e[7];let f;e[8]!==o.status?(f=ji(o.status),e[8]=o.status,e[9]=f):f=e[9];let h=o.status==="pending"?"\u2026":o.status,g;e[10]!==f||e[11]!==h?(g=(0,a.jsx)(kt,{className:"mt-px shrink-0",variant:f,children:h}),e[10]=f,e[11]=h,e[12]=g):g=e[12];let m;e[13]!==o.functionPath?(m=Bi(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let x;e[15]!==m?(x=(0,a.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=x):x=e[16];let v;e[17]!==o.kind||e[18]!==n?(v=o.kind==="subscription"&&(0,a.jsx)(kt,{className:"shrink-0",variant:"outline",children:n("live")}),e[17]=o.kind,e[18]=n,e[19]=v):v=e[19];let b;e[20]!==o.summary?(b=o.summary!==""&&(0,a.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=b):b=e[21];let P;e[22]!==o.shardKey?(P=o.shardKey!==""&&(0,a.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]!==n?(y=o.resultCount!==void 0&&(0,a.jsx)("span",{children:n("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=n,e[26]=y):y=e[26];let N;e[27]!==o.pushes||e[28]!==n?(N=o.pushes!==void 0&&o.pushes>0&&(0,a.jsx)("span",{children:n("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=n,e[29]=N):N=e[29];let C;e[30]!==o.durationMs?(C=o.durationMs!==void 0&&(0,a.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=C):C=e[31];let E;e[32]!==n?(E=n("Copy"),e[32]=n,e[33]=E):E=e[33];let R;e[34]!==p||e[35]!==E?(R=(0,a.jsx)("button",{"aria-label":E,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:p,type:"button",children:"\u29C9"}),e[34]=p,e[35]=E,e[36]=R):R=e[36];let O;e[37]!==P||e[38]!==y||e[39]!==N||e[40]!==C||e[41]!==R?(O=(0,a.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[P,y,N,C,R]}),e[37]=P,e[38]=y,e[39]=N,e[40]=C,e[41]=R,e[42]=O):O=e[42];let w;e[43]!==v||e[44]!==b||e[45]!==O||e[46]!==g||e[47]!==x?(w=(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[g,x,v,b,O]}),e[43]=v,e[44]=b,e[45]=O,e[46]=g,e[47]=x,e[48]=w):w=e[48];let T;e[49]!==o.error?(T=o.error!==void 0&&(0,a.jsx)("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:o.error}),e[49]=o.error,e[50]=T):T=e[50];let _;return e[51]!==l||e[52]!==w||e[53]!==T||e[54]!==u?(_=(0,a.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[w,T]}),e[51]=l,e[52]=w,e[53]=T,e[54]=u,e[55]=_):_=e[55],_},"ba"),Ki=s(t=>{let e=(0,A.c)(62),{focusSeq:o,onClose:r,onShownChange:n,shown:i}=t,l=fe(),c=Fi(),[p,d]=(0,k.useState)(""),u;if(e[0]!==c||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==n||e[5]!==i||e[6]!==l){let f=p.trim().toLowerCase(),h=c.filter(V=>(i==="errors"?V.status==="error":!0)&&(f===""||`${V.functionPath} ${V.summary} ${V.shardKey}`.toLowerCase().includes(f))).toReversed(),g;e[8]!==c?(g=c.filter(Ui),e[8]=c,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 v;e[12]!==l?(v=l("Operation console"),e[12]=l,e[13]=v):v=e[13];let b;e[14]!==v?(b=(0,a.jsx)("span",{className:"text-xs font-medium",children:v}),e[14]=v,e[15]=b):b=e[15];let P;e[16]!==c.length||e[17]!==l?(P=l("{count} calls",{count:c.length}),e[16]=c.length,e[17]=l,e[18]=P):P=e[18];let y;e[19]!==P?(y=(0,a.jsx)(kt,{variant:"secondary",children:P}),e[19]=P,e[20]=y):y=e[20];let N;e[21]!==m||e[22]!==l?(N=m>0&&(0,a.jsx)(kt,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=N):N=e[23];let C=i==="errors",E=i==="errors"&&"bg-accent",R;e[24]!==E?(R=Z("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",E),e[24]=E,e[25]=R):R=e[25];let O;e[26]!==n||e[27]!==i?(O=s(()=>{n(i==="errors"?"all":"errors")},"T"),e[26]=n,e[27]=i,e[28]=O):O=e[28];let w;e[29]!==l?(w=l("Errors"),e[29]=l,e[30]=w):w=e[30];let T;e[31]!==R||e[32]!==O||e[33]!==w||e[34]!==C?(T=(0,a.jsx)("button",{"aria-pressed":C,className:R,"data-testid":"oc-filter-errors",onClick:O,type:"button",children:w}),e[31]=R,e[32]=O,e[33]=w,e[34]=C,e[35]=T):T=e[35];let _;e[36]!==l?(_=l("Filter"),e[36]=l,e[37]=_):_=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s(V=>{d(V.target.value)},"I"),e[38]=L):L=e[38];let M;e[39]!==l?(M=l("Filter"),e[39]=l,e[40]=M):M=e[40];let j;e[41]!==p||e[42]!==_||e[43]!==M?(j=(0,a.jsx)(br,{"aria-label":_,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:L,placeholder:M,value:p}),e[41]=p,e[42]=_,e[43]=M,e[44]=j):j=e[44];let z;e[45]!==l?(z=l("Clear"),e[45]=l,e[46]=z):z=e[46];let H;e[47]!==z?(H=(0,a.jsx)("button",{className:"ms-auto rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-clear",onClick:Zi,type:"button",children:z}),e[47]=z,e[48]=H):H=e[48];let F;e[49]!==l?(F=l("Hide"),e[49]=l,e[50]=F):F=e[50];let U;e[51]!==r||e[52]!==F?(U=(0,a.jsx)("button",{"aria-label":F,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]=F,e[53]=U):U=e[53];let D;e[54]!==T||e[55]!==j||e[56]!==H||e[57]!==U||e[58]!==b||e[59]!==y||e[60]!==N?(D=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,y,N,T,j,H,U]}),e[54]=T,e[55]=j,e[56]=H,e[57]=U,e[58]=b,e[59]=y,e[60]=N,e[61]=D):D=e[61],u=(0,a.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,h.length===0?(0,a.jsx)("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):(0,a.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:h.map(V=>(0,a.jsx)(zi,{entry:V,focused:V.seq===o},V.seq))})]}),e[0]=c,e[1]=o,e[2]=p,e[3]=r,e[4]=n,e[5]=i,e[6]=l,e[7]=u}else u=e[7];return u},"va");function Ui(t){return t.status==="error"}s(Ui,"xa");function Zi(){so.clear()}s(Zi,"ya");var Wi=s(()=>{let t=(0,A.c)(316),e=fe(),o;t[0]!==e?(o=e("Health score"),t[0]=e,t[1]=o):o=t[1];let r;t[2]!==e?(r=e("Agents"),t[2]=e,t[3]=r):r=t[3];let n;t[4]!==e?(n=e("Evals"),t[4]=e,t[5]=n):n=t[5];let i;t[6]!==e?(i=e("Analytics"),t[6]=e,t[7]=i):i=t[7];let l;t[8]!==e?(l=e("API"),t[8]=e,t[9]=l):l=t[9];let c;t[10]!==e?(c=e("Audit"),t[10]=e,t[11]=c):c=t[11];let p;t[12]!==e?(p=e("Auth audit"),t[12]=e,t[13]=p):p=t[13];let d;t[14]!==e?(d=e("Configuration"),t[14]=e,t[15]=d):d=t[15];let u;t[16]!==e?(u=e("Sessions"),t[16]=e,t[17]=u):u=t[17];let f;t[18]!==e?(f=e("Containers"),t[18]=e,t[19]=f):f=t[19];let h;t[20]!==e?(h=e("Dashboards"),t[20]=e,t[21]=h):h=t[21];let g;t[22]!==e?(g=e("Data"),t[22]=e,t[23]=g):g=t[23];let m;t[24]!==e?(m=e("Deployment health"),t[24]=e,t[25]=m):m=t[25];let x;t[26]!==e?(x=e("Log drains"),t[26]=e,t[27]=x):x=t[27];let v;t[28]!==e?(v=e("Export / Import"),t[28]=e,t[29]=v):v=t[29];let b;t[30]!==e?(b=e("Fan-out"),t[30]=e,t[31]=b):b=t[31];let P;t[32]!==e?(P=e("Files"),t[32]=e,t[33]=P):P=t[33];let y;t[34]!==e?(y=e("Flags"),t[34]=e,t[35]=y):y=t[35];let N;t[36]!==e?(N=e("Functions"),t[36]=e,t[37]=N):N=t[37];let C;t[38]!==e?(C=e("Health"),t[38]=e,t[39]=C):C=t[39];let E;t[40]!==e?(E=e("Home"),t[40]=e,t[41]=E):E=t[41];let R;t[42]!==e?(R=e("Performance"),t[42]=e,t[43]=R):R=t[43];let O;t[44]!==e?(O=e("Issues"),t[44]=e,t[45]=O):O=t[45];let w;t[46]!==e?(w=e("KV"),t[46]=e,t[47]=w):w=t[47];let T;t[48]!==e?(T=e("Logs"),t[48]=e,t[49]=T):T=t[49];let _;t[50]!==e?(_=e("Metrics"),t[50]=e,t[51]=_):_=t[51];let L;t[52]!==e?(L=e("Migrations"),t[52]=e,t[53]=L):L=t[53];let M;t[54]!==e?(M=e("Notifications"),t[54]=e,t[55]=M):M=t[55];let j;t[56]!==e?(j=e("Organizations"),t[56]=e,t[57]=j):j=t[57];let z;t[58]!==e?(z=e("Time Travel"),t[58]=e,t[59]=z):z=t[59];let H;t[60]!==e?(H=e("Mail"),t[60]=e,t[61]=H):H=t[61];let F;t[62]!==e?(F=e("Payments"),t[62]=e,t[63]=F):F=t[63];let U;t[64]!==e?(U=e("Permissions"),t[64]=e,t[65]=U):U=t[65];let D;t[66]!==e?(D=e("Queues"),t[66]=e,t[67]=D):D=t[67];let V;t[68]!==e?(V=e("Reactors"),t[68]=e,t[69]=V):V=t[69];let W;t[70]!==e?(W=e("Realtime"),t[70]=e,t[71]=W):W=t[71];let G;t[72]!==e?(G=e("RLS Policies"),t[72]=e,t[73]=G):G=t[73];let te;t[74]!==e?(te=e("Scheduled"),t[74]=e,t[75]=te):te=t[75];let ae;t[76]!==e?(ae=e("Schema"),t[76]=e,t[77]=ae):ae=t[77];let Q;t[78]!==e?(Q=e("Security"),t[78]=e,t[79]=Q):Q=t[79];let ee;t[80]!==e?(ee=e("Settings"),t[80]=e,t[81]=ee):ee=t[81];let $;t[82]!==e?($=e("SQL editor"),t[82]=e,t[83]=$):$=t[83];let ce;t[84]!==e?(ce=e("Traces"),t[84]=e,t[85]=ce):ce=t[85];let de;t[86]!==e?(de=e("Access Rules"),t[86]=e,t[87]=de):de=t[87];let ge;t[88]!==e?(ge=e("Users"),t[88]=e,t[89]=ge):ge=t[89];let se;t[90]!==e?(se=e("Vectors"),t[90]=e,t[91]=se):se=t[91];let he;t[92]!==e?(he=e("Workflows"),t[92]=e,t[93]=he):he=t[93];let q;t[94]!==o||t[95]!==r||t[96]!==h||t[97]!==g||t[98]!==m||t[99]!==x||t[100]!==v||t[101]!==b||t[102]!==P||t[103]!==y||t[104]!==N||t[105]!==C||t[106]!==n||t[107]!==E||t[108]!==R||t[109]!==O||t[110]!==w||t[111]!==T||t[112]!==_||t[113]!==L||t[114]!==M||t[115]!==j||t[116]!==z||t[117]!==i||t[118]!==H||t[119]!==F||t[120]!==U||t[121]!==D||t[122]!==V||t[123]!==W||t[124]!==G||t[125]!==te||t[126]!==ae||t[127]!==Q||t[128]!==l||t[129]!==ee||t[130]!==$||t[131]!==ce||t[132]!==de||t[133]!==ge||t[134]!==se||t[135]!==he||t[136]!==c||t[137]!==p||t[138]!==d||t[139]!==u||t[140]!==f?(q={advisorHealth:o,agents:r,evals:n,analytics:i,api:l,audit:c,authAudit:p,authConfig:d,authSessions:u,containers:f,dashboards:h,data:g,deploymentHealth:m,drains:x,export:v,fanout:b,files:P,flags:y,functions:N,health:C,home:E,insights:R,issues:O,kv:w,logs:T,metrics:_,migrations:L,notifications:M,organizations:j,pitr:z,mail:H,payments:F,permissions:U,queues:D,reactors:V,realtime:W,rls:G,schedule:te,schema:ae,security:Q,settings:ee,sql:$,traces:ce,storageRules:de,users:ge,vectors:se,workflows:he},t[94]=o,t[95]=r,t[96]=h,t[97]=g,t[98]=m,t[99]=x,t[100]=v,t[101]=b,t[102]=P,t[103]=y,t[104]=N,t[105]=C,t[106]=n,t[107]=E,t[108]=R,t[109]=O,t[110]=w,t[111]=T,t[112]=_,t[113]=L,t[114]=M,t[115]=j,t[116]=z,t[117]=i,t[118]=H,t[119]=F,t[120]=U,t[121]=D,t[122]=V,t[123]=W,t[124]=G,t[125]=te,t[126]=ae,t[127]=Q,t[128]=l,t[129]=ee,t[130]=$,t[131]=ce,t[132]=de,t[133]=ge,t[134]=se,t[135]=he,t[136]=c,t[137]=p,t[138]=d,t[139]=u,t[140]=f,t[141]=q):q=t[141];let me=q,pe;t[142]!==e?(pe=e("Advisors"),t[142]=e,t[143]=pe):pe=t[143];let Ce;t[144]!==e?(Ce=e("Auth"),t[144]=e,t[145]=Ce):Ce=t[145];let be;t[146]!==e?(be=e("Database"),t[146]=e,t[147]=be):be=t[147];let we;t[148]!==e?(we=e("Functions"),t[148]=e,t[149]=we):we=t[149];let Re;t[150]!==e?(Re=e("Observability"),t[150]=e,t[151]=Re):Re=t[151];let Se;t[152]!==e?(Se=e("Operations"),t[152]=e,t[153]=Se):Se=t[153];let _e;t[154]!==e?(_e=e("Overview"),t[154]=e,t[155]=_e):_e=t[155];let Ae;t[156]!==e?(Ae=e("Settings"),t[156]=e,t[157]=Ae):Ae=t[157];let Ve;t[158]!==e?(Ve=e("Storage"),t[158]=e,t[159]=Ve):Ve=t[159];let vo;t[160]!==pe||t[161]!==Ce||t[162]!==be||t[163]!==we||t[164]!==Re||t[165]!==Se||t[166]!==_e||t[167]!==Ae||t[168]!==Ve?(vo={advisors:pe,auth:Ce,database:be,functions:we,observability:Re,operations:Se,overview:_e,settings:Ae,storage:Ve},t[160]=pe,t[161]=Ce,t[162]=be,t[163]=we,t[164]=Re,t[165]=Se,t[166]=_e,t[167]=Ae,t[168]=Ve,t[169]=vo):vo=t[169];let pr=vo,Le;t[170]!==e?(Le=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[170]=e,t[171]=Le):Le=t[171];let He;t[172]!==e?(He=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[172]=e,t[173]=He):He=t[173];let Be;t[174]!==e?(Be=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[174]=e,t[175]=Be):Be=t[175];let Fe;t[176]!==e?(Fe=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[176]=e,t[177]=Fe):Fe=t[177];let je;t[178]!==e?(je=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[178]=e,t[179]=je):je=t[179];let ze;t[180]!==e?(ze=e("A durable log of admin state-changing operations."),t[180]=e,t[181]=ze):ze=t[181];let Ke;t[182]!==e?(Ke=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[182]=e,t[183]=Ke):Ke=t[183];let Ue;t[184]!==e?(Ue=e("Enabled plugins and session config (read-only)."),t[184]=e,t[185]=Ue):Ue=t[185];let Ze;t[186]!==e?(Ze=e("Browse and revoke active sessions across all users."),t[186]=e,t[187]=Ze):Ze=t[187];let We;t[188]!==e?(We=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[188]=e,t[189]=We):We=t[189];let qe;t[190]!==e?(qe=e("Chart widgets backed by saved read-only SQL queries."),t[190]=e,t[191]=qe):qe=t[191];let $e;t[192]!==e?($e=e("Browse and edit rows across your shard and global tables."),t[192]=e,t[193]=$e):$e=t[193];let Ge;t[194]!==e?(Ge=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[194]=e,t[195]=Ge):Ge=t[195];let Qe;t[196]!==e?(Qe=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[196]=e,t[197]=Qe):Qe=t[197];let Ye;t[198]!==e?(Ye=e("Export a shard to NDJSON, or import rows from it."),t[198]=e,t[199]=Ye):Ye=t[199];let Je;t[200]!==e?(Je=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[200]=e,t[201]=Je):Je=t[201];let Xe;t[202]!==e?(Xe=e("Browse objects in your R2 storage buckets."),t[202]=e,t[203]=Xe):Xe=t[203];let et;t[204]!==e?(et=e("Inspect feature flags and their live evaluation under a targeting context."),t[204]=e,t[205]=et):et=t[205];let tt;t[206]!==e?(tt=e("Run registered queries, mutations, and actions."),t[206]=e,t[207]=tt):tt=t[207];let ot;t[208]!==e?(ot=e("At-a-glance connection, error, and shard signals."),t[208]=e,t[209]=ot):ot=t[209];let rt;t[210]!==e?(rt=e("Connection, health, and advisor summary for your deployment."),t[210]=e,t[211]=rt):rt=t[211];let nt;t[212]!==e?(nt=e("Surface slow functions, error spikes, and cache problems."),t[212]=e,t[213]=nt):nt=t[213];let at;t[214]!==e?(at=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[214]=e,t[215]=at):at=t[215];let st;t[216]!==e?(st=e("A live stream of recent function logs."),t[216]=e,t[217]=st):st=t[217];let it;t[218]!==e?(it=e("Per-shard health and aggregate metrics."),t[218]=e,t[219]=it):it=t[219];let lt;t[220]!==e?(lt=e("Review migration status and run them."),t[220]=e,t[221]=lt):lt=t[221];let ct;t[222]!==e?(ct=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[222]=e,t[223]=ct):ct=t[223];let dt;t[224]!==e?(dt=e("Browse and manage organizations, members, and invitations."),t[224]=e,t[225]=dt):dt=t[225];let pt;t[226]!==e?(pt=e("Restore a shard to a point in the last 30 days."),t[226]=e,t[227]=pt):pt=t[227];let ut;t[228]!==e?(ut=e("Email your app sent, captured in dev."),t[228]=e,t[229]=ut):ut=t[229];let mt;t[230]!==e?(mt=e("Synced customers, subscriptions, and webhook events."),t[230]=e,t[231]=mt):mt=t[231];let ft;t[232]!==e?(ft=e("Inspect access policies per table, and probe a function as any identity."),t[232]=e,t[233]=ft):ft=t[233];let gt;t[234]!==e?(gt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[234]=e,t[235]=gt):gt=t[235];let ht;t[236]!==e?(ht=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[236]=e,t[237]=ht):ht=t[237];let vt;t[238]!==e?(vt=e("Active WebSocket subscriptions on this shard."),t[238]=e,t[239]=vt):vt=t[239];let bt;t[240]!==e?(bt=e("Inspect row-level-security policies and roles, per table."),t[240]=e,t[241]=bt):bt=t[241];let xt;t[242]!==e?(xt=e("Inspect and cancel scheduled jobs."),t[242]=e,t[243]=xt):xt=t[243];let yt;t[244]!==e?(yt=e("Inspect each table and its columns."),t[244]=e,t[245]=yt):yt=t[245];let Pt;t[246]!==e?(Pt=e("Review admin gates, credentials, and log redaction."),t[246]=e,t[247]=Pt):Pt=t[247];let Ct;t[248]!==e?(Ct=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[248]=e,t[249]=Ct):Ct=t[249];let Rt;t[250]!==e?(Rt=e("Run read-only SQL against a shard."),t[250]=e,t[251]=Rt):Rt=t[251];let St;t[252]!==e?(St=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[252]=e,t[253]=St):St=t[253];let Nt;t[254]!==e?(Nt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[254]=e,t[255]=Nt):Nt=t[255];let Tt;t[256]!==e?(Tt=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[256]=e,t[257]=Tt):Tt=t[257];let wt;t[258]!==e?(wt=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[258]=e,t[259]=wt):wt=t[259];let Et;t[260]!==e?(Et=e("Browse Vectorize indexes and run similarity searches."),t[260]=e,t[261]=Et):Et=t[261];let Ot;t[262]!==e?(Ot=e("Inspect declared Cloudflare Workflows and their bindings."),t[262]=e,t[263]=Ot):Ot=t[263];let bo;t[264]!==Nt||t[265]!==Tt||t[266]!==wt||t[267]!==Et||t[268]!==Ot||t[269]!==Le||t[270]!==He||t[271]!==Be||t[272]!==Fe||t[273]!==je||t[274]!==ze||t[275]!==Ke||t[276]!==Ue||t[277]!==Ze||t[278]!==We||t[279]!==qe||t[280]!==$e||t[281]!==Ge||t[282]!==Qe||t[283]!==Ye||t[284]!==Je||t[285]!==Xe||t[286]!==et||t[287]!==tt||t[288]!==ot||t[289]!==rt||t[290]!==nt||t[291]!==at||t[292]!==st||t[293]!==it||t[294]!==lt||t[295]!==ct||t[296]!==dt||t[297]!==pt||t[298]!==ut||t[299]!==mt||t[300]!==ft||t[301]!==gt||t[302]!==ht||t[303]!==vt||t[304]!==bt||t[305]!==xt||t[306]!==yt||t[307]!==Pt||t[308]!==Ct||t[309]!==Rt||t[310]!==St?(bo={advisorHealth:Le,agents:He,evals:Be,analytics:Fe,api:je,audit:ze,authAudit:Ke,authConfig:Ue,authSessions:Ze,containers:We,dashboards:qe,data:$e,deploymentHealth:Ge,drains:Qe,export:Ye,fanout:Je,files:Xe,flags:et,functions:tt,health:ot,home:rt,insights:nt,issues:at,logs:st,metrics:it,migrations:lt,notifications:ct,organizations:dt,pitr:pt,mail:ut,payments:mt,permissions:ft,queues:gt,reactors:ht,realtime:vt,rls:bt,schedule:xt,schema:yt,security:Pt,settings:Ct,sql:Rt,kv:St,storageRules:Nt,traces:Tt,users:wt,vectors:Et,workflows:Ot},t[264]=Nt,t[265]=Tt,t[266]=wt,t[267]=Et,t[268]=Ot,t[269]=Le,t[270]=He,t[271]=Be,t[272]=Fe,t[273]=je,t[274]=ze,t[275]=Ke,t[276]=Ue,t[277]=Ze,t[278]=We,t[279]=qe,t[280]=$e,t[281]=Ge,t[282]=Qe,t[283]=Ye,t[284]=Je,t[285]=Xe,t[286]=et,t[287]=tt,t[288]=ot,t[289]=rt,t[290]=nt,t[291]=at,t[292]=st,t[293]=it,t[294]=lt,t[295]=ct,t[296]=dt,t[297]=pt,t[298]=ut,t[299]=mt,t[300]=ft,t[301]=gt,t[302]=ht,t[303]=vt,t[304]=bt,t[305]=xt,t[306]=yt,t[307]=Pt,t[308]=Ct,t[309]=Rt,t[310]=St,t[311]=bo):bo=t[311];let ur=bo,xo;return t[312]!==pr||t[313]!==ur||t[314]!==me?(xo={groupLabel:pr,tabDescription:ur,tabLabel:me},t[312]=pr,t[313]=ur,t[314]=me,t[315]=xo):xo=t[315],xo},"wa"),qi=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,a.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"ka"),$i=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,a.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"Ma"),Gi=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"Na"),Qi=[{Icon:qi,value:"system"},{Icon:$i,value:"light"},{Icon:Gi,value:"dark"}],Yi=s(()=>{let t=(0,A.c)(19),{theme:e,setTheme:o}=ai(),r=fe(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let i;t[2]!==r?(i=r("Light theme"),t[2]=r,t[3]=i):i=t[3];let l;t[4]!==r?(l=r("System theme"),t[4]=r,t[5]=l):l=t[5];let c;t[6]!==n||t[7]!==i||t[8]!==l?(c={dark:n,light:i,system:l},t[6]=n,t[7]=i,t[8]=l,t[9]=c):c=t[9];let p=c,d;t[10]!==r?(d=r("Theme"),t[10]=r,t[11]=d):d=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=Qi.map(h=>{let{Icon:g,value:m}=h,x=e===m;return(0,a.jsxs)("button",{"aria-checked":x,"aria-label":p[m],className:Z("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",x?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:s(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[x&&(0,a.jsx)(Vn.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,a.jsx)("span",{className:"relative",children:(0,a.jsx)(g,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let f;return t[16]!==d||t[17]!==u?(f=(0,a.jsx)("div",{"aria-label":d,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=d,t[17]=u,t[18]=f):f=t[18],f},"Ca"),Ji=s(t=>{let e=(0,A.c)(23),{domain:o,onOpenCommandPalette:r,page:n}=t,i=fe(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(ki,{className:"-ms-1"}),e[0]=l):l=e[0];let c;e[1]!==i?(c=i("Breadcrumb"),e[1]=i,e[2]=c):c=e[2];let p;e[3]!==o?(p=(0,a.jsx)("span",{className:"text-muted-foreground",children:o}),e[3]=o,e[4]=p):p=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=d):d=e[5];let u;e[6]!==n?(u=(0,a.jsx)("span",{className:"font-medium text-foreground",children:n}),e[6]=n,e[7]=u):u=e[7];let f;e[8]!==c||e[9]!==p||e[10]!==u?(f=(0,a.jsxs)("nav",{"aria-label":c,className:"flex items-center gap-1.5 text-[13px]",children:[p,d,u]}),e[8]=c,e[9]=p,e[10]=u,e[11]=f):f=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=h):h=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,a.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),e[15]=m):m=e[15];let x;e[16]!==r||e[17]!==g?(x=(0,a.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:r,type:"button",children:[h,g,m]}),e[16]=r,e[17]=g,e[18]=x):x=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,a.jsx)(Yi,{})}),e[19]=v):v=e[19];let b;return e[20]!==x||e[21]!==f?(b=(0,a.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[l,f,x,v]}),e[20]=x,e[21]=f,e[22]=b):b=e[22],b},"Pa"),Xi=s(t=>{let e=(0,A.c)(4),{console:o}=zo(),r,n;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:c}=l;c instanceof HTMLElement&&(c.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(c.tagName))||(l.preventDefault(),t())},"r");return globalThis.addEventListener("keydown",i),()=>{globalThis.removeEventListener("keydown",i)}},"a"),n=[o,t],e[0]=o,e[1]=t,e[2]=r,e[3]=n):(r=e[2],n=e[3]),(0,k.useEffect)(r,n)},"_a"),X=s((t,e)=>(0,k.lazy)(()=>t().then(o=>({default:o[e]}))),"E"),el=X(()=>import("./chunk-FGEBPY6M.js"),"InsightsPanel"),tl=(0,k.lazy)(()=>import("./chunk-XXB357HN.js")),ol=(0,k.lazy)(()=>import("./chunk-EMUTRNK5.js")),rl=(0,k.lazy)(()=>import("./chunk-Z4FYPU4Q.js")),nl=(0,k.lazy)(()=>import("./chunk-NSYGYSMJ.js")),al=X(()=>import("./chunk-DX6FAHR2.js"),"AnalyticsPanel"),sl=(0,k.lazy)(()=>import("./chunk-HQWKWSY4.js")),il=(0,k.lazy)(()=>import("./chunk-FHW7T5NC.js")),ll=(0,k.lazy)(()=>import("./chunk-JA7FUFCP.js")),cl=(0,k.lazy)(()=>import("./chunk-MH73AR4R.js")),dl=(0,k.lazy)(()=>import("./chunk-QZJVCXWS.js")),pl=X(()=>import("./chunk-PCQP4NHL.js"),"UsersPanel"),ul=(0,k.lazy)(()=>import("./chunk-UREV5NIX.js")),ml=X(()=>import("./chunk-MRI7UILC.js"),"DeploymentHealthPanel"),fl=X(()=>import("./chunk-RJZI2ZRF.js"),"TableEditor"),gl=X(()=>import("./chunk-EKMKNRYI.js"),"ExportImportPanel"),hl=(0,k.lazy)(()=>import("./chunk-GLTOTU4J.js")),vl={data:Bn,migrations:Fn},bl=X(()=>import("./chunk-77UI3GTT.js"),"PitrPanel"),xl=(0,k.lazy)(()=>import("./chunk-ZEZ5FW7V.js")),yl=(0,k.lazy)(()=>import("./chunk-MVJL6J4Y.js")),Pl=X(()=>import("./chunk-P52AMBNB.js"),"FunctionRunner"),Cl=X(()=>import("./chunk-H7UQ7W6L.js"),"FunctionStatsPanel"),Rl=(0,k.lazy)(()=>import("./chunk-OUKLYU72.js")),Sl=X(()=>import("./chunk-22EHJEFE.js"),"AuditPanel"),Nl=(0,k.lazy)(()=>import("./chunk-E7TOMONS.js")),Tl=(0,k.lazy)(()=>import("./chunk-6MMHVZID.js").then(t=>({default:t.LogsPanel}))),wl=X(()=>import("./chunk-TLFNAWL6.js"),"MailPanel"),El=X(()=>import("./chunk-IOPBEKDK.js"),"SchedulePanel"),Ol=(0,k.lazy)(()=>import("./chunk-2VGRBZVS.js")),kl=(0,k.lazy)(()=>import("./chunk-XRR2R2H5.js")),Dl=X(()=>import("./chunk-QMFQGVTQ.js"),"KvBrowser"),Ml=(0,k.lazy)(()=>import("./chunk-PAWM6IP3.js")),Il=X(()=>import("./chunk-7F5LVCXA.js"),"PaymentsPanel"),_l=X(()=>import("./chunk-UCYK6YWD.js"),"PermissionsPanel"),Al=(0,k.lazy)(()=>import("./chunk-YAMJRRT2.js")),Vl=(0,k.lazy)(()=>import("./chunk-U5EMA2D7.js")),Ll=(0,k.lazy)(()=>import("./chunk-SMMYONB7.js")),Hl=X(()=>import("./chunk-GXSHHAYL.js"),"HealthPanel"),Bl=X(()=>import("./chunk-J6ESSV7B.js"),"MetricsPanel"),Fl=X(()=>import("./chunk-NGEP4H3Q.js"),"SchemaViewer"),jl=X(()=>import("./chunk-2PYJCU6C.js"),"SettingsPanel"),zl=X(()=>import("./chunk-2254YC77.js"),"SqlEditorPanel"),Kl=X(()=>import("./chunk-ZVMUTCUE.js"),"FileBrowser"),Ul=(0,k.lazy)(()=>import("./chunk-HB2AVFM7.js")),Zl=(0,k.lazy)(()=>import("./chunk-HEIGV6KL.js")),Wl=(0,k.lazy)(()=>import("./chunk-METTWXRR.js")),ql=X(()=>import("./chunk-2TAFAGWH.js"),"VectorBrowser"),$l=(0,k.lazy)(()=>import("./chunk-K5ZNTNAC.js")),Hs=(0,k.createContext)(null),Gl={analytics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:(0,a.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,a.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,a.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,a.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,a.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,a.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,a.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,a.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,a.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,a.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,a.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,a.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),health:(0,a.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,a.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,a.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,a.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,a.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,a.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,a.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,a.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,a.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,a.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,a.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:(0,a.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,a.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,a.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),advisorHealth:(0,a.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,a.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,a.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,a.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,a.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,a.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Ts=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags"]},{key:"settings",tabs:["settings"]}],Ql={analytics:"analytics",authAudit:"auth",authConfig:"auth",authSessions:"auth",containers:"containers",files:"storage",flags:"flags",kv:"kv",mail:"mail",notifications:"notifications",organizations:"auth",payments:"payments",queues:"queues",schedule:"scheduler",storageRules:"storage",users:"auth",vectors:"vectors",workflows:"workflows"},ws=s((t,e)=>{let o=Ql[t];return o===void 0||e[o]},"Rt"),jr=s(t=>{let e=(0,A.c)(2),{tab:o}=t,r=Gl[o],n;return e[0]!==r?(n=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=n):n=e[1],n},"Nt"),Yl=s(t=>t,"Po"),Bs=Yl(["home","data","sql","functions","api","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","settings"]),Jl=new Set(["api","data","migrations","sql"]),Xl=s(t=>{let e=t.split("/").findLast(Boolean)??"";return Bs.includes(e)?e:"home"},"To"),ec=s(t=>{let e=(0,A.c)(19),{chrome:o,connected:r}=t,n=fe(),i;e[0]!==n?(i=n("admin token"),e[0]=n,e[1]=i):i=e[1];let l;e[2]!==i?(l=(0,a.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 c;e[4]!==o.onTokenChange||e[5]!==o.token?(c=(0,a.jsx)(br,{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]=c):c=e[6];let p;e[7]!==r||e[8]!==n?(p=r&&(0,a.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),n("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=n,e[9]=p):p=e[9];let d;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(d=r&&(0,a.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:n("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=n,e[13]=d):d=e[13];let u;return e[14]!==l||e[15]!==c||e[16]!==p||e[17]!==d?(u=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[l,c,p,d]}),e[14]=l,e[15]=c,e[16]=p,e[17]=d,e[18]=u):u=e[18],u},"Lo"),tc=s(t=>{let e=(0,A.c)(25),{current:o,group:r,groupLabel:n,selectTab:i,tabDescription:l,tabLabel:c}=t,p=r.tabs.includes(o)?"page":void 0,d=n[r.key],u=r.tabs[0],f;e[0]!==u?(f=(0,a.jsx)(jr,{tab:u}),e[0]=u,e[1]=f):f=e[1];let h;e[2]!==p||e[3]!==d||e[4]!==f?(h=(0,a.jsx)(_s,{"aria-current":p,"aria-label":d,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:f}),e[2]=p,e[3]=d,e[4]=f,e[5]=h):h=e[5];let g=n[r.key],m;e[6]!==g?(m=(0,a.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:g}),e[6]=g,e[7]=m):m=e[7];let x;if(e[8]!==o||e[9]!==r.tabs||e[10]!==i||e[11]!==l||e[12]!==c){let P;e[14]!==o||e[15]!==i||e[16]!==l||e[17]!==c?(P=s(y=>(0,a.jsxs)("button",{"aria-current":o===y?"page":void 0,className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100","data-tab":y,"data-testid":`dash-tab-${y}`,onClick:i,title:l[y],type:"button",children:[(0,a.jsx)(jr,{tab:y}),(0,a.jsx)("span",{children:c[y]})]},y),"g"),e[14]=o,e[15]=i,e[16]=l,e[17]=c,e[18]=P):P=e[18],x=r.tabs.map(P),e[8]=o,e[9]=r.tabs,e[10]=i,e[11]=l,e[12]=c,e[13]=x}else x=e[13];let v;e[19]!==m||e[20]!==x?(v=(0,a.jsxs)(As,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[m,x]}),e[19]=m,e[20]=x,e[21]=v):v=e[21];let b;return e[22]!==h||e[23]!==v?(b=(0,a.jsxs)(Is,{children:[h,v]}),e[22]=h,e[23]=v,e[24]=b):b=e[24],b},"Ao"),oc=s(t=>{let e=(0,A.c)(45),{chrome:o,collapsed:r,connected:n}=t,i=fe();if(o===null){let y;e[0]!==i?(y=i("Admin"),e[0]=i,e[1]=y):y=e[1];let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=(0,a.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=N):N=e[2];let C;e[3]!==i?(C=i("Admin"),e[3]=i,e[4]=C):C=e[4];let E;e[5]!==C?(E=(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:C}),e[5]=C,e[6]=E):E=e[6];let R;e[7]!==i?(R=i("Studio"),e[7]=i,e[8]=R):R=e[8];let O;e[9]!==R?(O=(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:R}),e[9]=R,e[10]=O):O=e[10];let w;e[11]!==E||e[12]!==O?(w=(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[E,O]}),e[11]=E,e[12]=O,e[13]=w):w=e[13];let T;return e[14]!==y||e[15]!==w?(T=(0,a.jsxs)(Ls,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[N,w]}),e[14]=y,e[15]=w,e[16]=T):T=e[16],T}let l=r?"mx-auto size-8 justify-center":"w-full p-2",c;e[17]!==l?(c=Z("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]=c):c=e[18];let p;e[19]!==n||e[20]!==i?(p=i(n?"Connected":"Not connected"),e[19]=n,e[20]=i,e[21]=p):p=e[21];let d=n?"bg-success":"bg-muted-foreground/50",u;e[22]!==d?(u=Z("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",d),e[22]=d,e[23]=u):u=e[23];let f;e[24]!==u?(f=(0,a.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,a.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let h;e[26]!==r||e[27]!==n||e[28]!==i?(h=!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:i("Admin")}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:i(n?"Connected":"Not connected")})]}),(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=n,e[28]=i,e[29]=h):h=e[29];let g;e[30]!==c||e[31]!==p||e[32]!==f||e[33]!==h?(g=(0,a.jsxs)(_s,{className:c,"data-testid":"dash-app-connect",title:p,children:[f,h]}),e[30]=c,e[31]=p,e[32]=f,e[33]=h,e[34]=g):g=e[34];let m=r?"end":"start",x=r?"right":"top",v;e[35]!==o||e[36]!==n?(v=(0,a.jsx)(ec,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=v):v=e[37];let b;e[38]!==x||e[39]!==v||e[40]!==m?(b=(0,a.jsx)(As,{align:m,keepMounted:!0,side:x,children:v}),e[38]=x,e[39]=v,e[40]=m,e[41]=b):b=e[41];let P;return e[42]!==b||e[43]!==g?(P=(0,a.jsxs)(Is,{children:[g,b]}),e[42]=b,e[43]=g,e[44]=P):P=e[44],P},"Ro"),rc=s(t=>{let e=(0,A.c)(28),{chrome:o,connected:r,current:n,groupLabel:i,groups:l,selectTab:c,tabDescription:p,tabLabel:d}=t,u=fe(),{state:f}=dr(),h=f==="collapsed",g=h&&"justify-center px-0",m;e[0]!==g?(m=Z("flex items-center gap-2.5 px-1.5 py-1",g),e[0]=g,e[1]=m):m=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(ci,{className:"size-9 shrink-0 text-foreground"}),e[2]=x):x=e[2];let v;e[3]!==h||e[4]!==r||e[5]!==u?(v=!h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:u("Studio")})]}),(0,a.jsx)(kt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:u(r?"Live":"Local")})]}),e[3]=h,e[4]=r,e[5]=u,e[6]=v):v=e[6];let b;e[7]!==m||e[8]!==v?(b=(0,a.jsx)(Mi,{children:(0,a.jsxs)("div",{className:m,children:[x,v]})}),e[7]=m,e[8]=v,e[9]=b):b=e[9];let P;e[10]!==h||e[11]!==n||e[12]!==i||e[13]!==l||e[14]!==c||e[15]!==p||e[16]!==d?(P=h?l.map(E=>(0,a.jsx)(tc,{current:n,group:E,groupLabel:i,selectTab:c,tabDescription:p,tabLabel:d},E.key)):l.map(E=>(0,a.jsxs)(Ai,{children:[(0,a.jsx)(Vi,{className:"text-[11px] font-medium tracking-wider uppercase",children:i[E.key]}),(0,a.jsx)(Li,{children:(0,a.jsx)(Ss,{children:E.tabs.map(R=>(0,a.jsx)(Ns,{children:(0,a.jsxs)(Ls,{className:"data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]","data-tab":R,"data-testid":`dash-tab-${R}`,isActive:n===R,onClick:c,title:p[R],tooltip:p[R],children:[(0,a.jsx)(jr,{tab:R}),(0,a.jsx)("span",{children:d[R]})]})},R))})})]},E.key)),e[10]=h,e[11]=n,e[12]=i,e[13]=l,e[14]=c,e[15]=p,e[16]=d,e[17]=P):P=e[17];let y;e[18]!==P?(y=(0,a.jsx)(_i,{children:P}),e[18]=P,e[19]=y):y=e[19];let N;e[20]!==o||e[21]!==h||e[22]!==r?(N=(0,a.jsx)(Ii,{children:(0,a.jsx)(Ss,{children:(0,a.jsx)(Ns,{children:(0,a.jsx)(oc,{chrome:o,collapsed:h,connected:r})})})}),e[20]=o,e[21]=h,e[22]=r,e[23]=N):N=e[23];let C;return e[24]!==b||e[25]!==y||e[26]!==N?(C=(0,a.jsxs)(Oi,{collapsible:"icon",variant:"inset",children:[b,y,N]}),e[24]=b,e[25]=y,e[26]=N,e[27]=C):C=e[27],C},"Eo"),Fs=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(jo,{className:"h-8 w-40"}),(0,a.jsx)(jo,{className:"h-8 w-24"})]}),(0,a.jsx)(jo,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"es"),nc=s(()=>{let t=(0,A.c)(64),e=fe(),o=to(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:dc},t[0]=r):r=t[0];let n=Yr(r),i,l;t[1]!==n?(i=Xl(n),l=Jl.has(i),t[1]=n,t[2]=i,t[3]=l):(i=t[2],l=t[3]);let c=l,p=Xr(),d=p?.toggle;Xi(d);let u=Ln(),{groupLabel:f,tabDescription:h,tabLabel:g}=Wi(),m;t[4]!==u?(m=s(se=>({...se,tabs:se.tabs.filter(he=>ws(he,u))}),"h"),t[4]=u,t[5]=m):m=t[5];let x=Ts.map(m).filter(pc),v,b;t[6]!==i||t[7]!==u||t[8]!==o?(v=s(()=>{ws(i,u)||Qt(o({replace:!0,to:"/home"}))},"x"),b=[i,u,o],t[6]=i,t[7]=u,t[8]=o,t[9]=v,t[10]=b):(v=t[9],b=t[10]),(0,k.useEffect)(v,b);let P;t[11]!==o?(P=s(se=>{Qt(o({to:`/${se.currentTarget.dataset.tab??""}`}))},"g"),t[11]=o,t[12]=P):P=t[12];let y=P,N,C;t[13]!==i||t[14]!==g?(N=s(()=>{typeof document<"u"&&(document.title=`${g[i]} \xB7 lunora`)},"N"),C=[i,g],t[13]=i,t[14]=g,t[15]=N,t[16]=C):(N=t[15],C=t[16]),(0,k.useEffect)(N,C);let E=x.find(se=>se.tabs.includes(i))??Ts[0],R;t[17]!==f||t[18]!==g?(R=s(se=>se.tabs.map(he=>({group:f[se.key],label:g[he],to:`/${he}`})),"M"),t[17]=f,t[18]=g,t[19]=R):R=t[19];let O=x.flatMap(R),w=d===void 0?O:[...O,{group:e("Operations"),label:e("Toggle operation console"),run:d}],T=(0,k.use)(Hs),_=T!==null&&T.token!=="",L;t[20]!==w?(L=(0,a.jsx)(Cs,{items:w}),t[20]=w,t[21]=L):L=t[21];let M;t[22]!==T||t[23]!==_||t[24]!==i||t[25]!==f||t[26]!==y||t[27]!==h||t[28]!==g||t[29]!==x?(M=(0,a.jsx)(rc,{chrome:T,connected:_,current:i,groupLabel:f,groups:x,selectTab:y,tabDescription:h,tabLabel:g}),t[22]=T,t[23]=_,t[24]=i,t[25]=f,t[26]=y,t[27]=h,t[28]=g,t[29]=x,t[30]=M):M=t[30];let j=f[E.key],z=g[i],H;t[31]!==j||t[32]!==z?(H=(0,a.jsx)(Ji,{domain:j,onOpenCommandPalette:Ps,page:z}),t[31]=j,t[32]=z,t[33]=H):H=t[33];let F;t[34]!==T?.rulesInstalled?(F=T?.rulesInstalled===!1&&(0,a.jsx)(ui,{}),t[34]=T?.rulesInstalled,t[35]=F):F=t[35];let U=`dash-tab-${i}`,D=c?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",V=g[i],W;t[36]!==e||t[37]!==V?(W=e("{title} failed",{title:V}),t[36]=e,t[37]=V,t[38]=W):W=t[38];let G=g[i],te;t[39]!==e?(te=e("Try again"),t[39]=e,t[40]=te):te=t[40];let ae;t[41]===Symbol.for("react.memo_cache_sentinel")?(ae=(0,a.jsx)(k.Suspense,{fallback:(0,a.jsx)(Fs,{}),children:(0,a.jsx)($r,{})}),t[41]=ae):ae=t[41];let Q;t[42]!==i||t[43]!==W||t[44]!==G||t[45]!==te?(Q=(0,a.jsx)(Ko,{fallbackTitle:W,label:G,retryLabel:te,children:ae},i),t[42]=i,t[43]=W,t[44]=G,t[45]=te,t[46]=Q):Q=t[46];let ee;t[47]!==D||t[48]!==Q?(ee=(0,a.jsx)("div",{className:D,children:Q}),t[47]=D,t[48]=Q,t[49]=ee):ee=t[49];let $;t[50]!==p?($=p?.open===!0&&(0,a.jsx)(Ki,{focusSeq:p.focusSeq,onClose:p.close,onShownChange:p.setShown,shown:p.shown}),t[50]=p,t[51]=$):$=t[51];let ce;t[52]!==U||t[53]!==ee||t[54]!==$?(ce=(0,a.jsxs)("div",{"aria-labelledby":U,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[ee,$]}),t[52]=U,t[53]=ee,t[54]=$,t[55]=ce):ce=t[55];let de;t[56]!==H||t[57]!==F||t[58]!==ce?(de=(0,a.jsxs)(Di,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[H,F,ce]}),t[56]=H,t[57]=F,t[58]=ce,t[59]=de):de=t[59];let ge;return t[60]!==M||t[61]!==de||t[62]!==L?(ge=(0,a.jsxs)(Ei,{className:"min-h-0 flex-1","data-testid":"lunora-studio",children:[L,M,de]}),t[60]=M,t[61]=de,t[62]=L,t[63]=ge):ge=t[63],ge},"Io"),ac=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(Jr,{children:(0,a.jsx)(nc,{})}),t[0]=e):e=t[0],e},"$o"),sc=s(t=>{let e=(0,A.c)(5),{initialShardKey:o,schemaEditable:r}=t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];let i=Wr(n),{table:l}=i,c=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==c||e[3]!==r?(p=(0,a.jsx)(Fl,{initialShardKey:o,initialTable:c,schemaEditable:r}),e[1]=o,e[2]=c,e[3]=r,e[4]=p):p=e[4],p},"Ho"),ic=s(()=>{let t=(0,A.c)(3),e=to(),o,r;return t[0]!==e?(o=s(()=>{Qt(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,k.useEffect)(o,r),null},"Bo"),lc=s(({analyticsQuery:t,basePath:e,dataEditable:o=!1,functions:r,initialShardKey:n,openApiSpec:i,openRpcSpec:l,runAsIdentity:c=!1,schemaEditable:p=!1,scheduledCancel:d,scheduledCron:u,scheduledLoad:f})=>{let h=qr({component:ac}),g={agents:(0,a.jsx)(nl,{initialShardKey:n}),analytics:(0,a.jsx)(al,{runQuery:t}),api:(0,a.jsx)(sl,{functions:r,initialShardKey:n,openApiSpec:i,openRpcSpec:l}),audit:(0,a.jsx)(Sl,{initialShardKey:n}),authAudit:(0,a.jsx)(il,{}),authConfig:(0,a.jsx)(ll,{}),authSessions:(0,a.jsx)(cl,{}),containers:(0,a.jsx)(ul,{}),dashboards:(0,a.jsx)(Vl,{initialShardKey:n}),data:(0,a.jsx)(fl,{editable:o,initialShardKey:n}),deploymentHealth:(0,a.jsx)(ml,{}),drains:(0,a.jsx)(Nl,{}),export:(0,a.jsx)(gl,{initialShardKey:n}),fanout:(0,a.jsx)(Ll,{initialShardKey:n}),files:(0,a.jsx)(Kl,{}),kv:(0,a.jsx)(Dl,{}),flags:(0,a.jsx)(xl,{initialShardKey:n}),reactors:(0,a.jsx)(yl,{initialShardKey:n}),functions:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Cl,{functions:r,initialShardKey:n}),(0,a.jsx)(Pl,{functions:r,runAsIdentity:c})]}),health:(0,a.jsx)(Hl,{initialShardKey:n}),home:(0,a.jsx)(Hn,{initialShardKey:n}),insights:(0,a.jsx)(el,{initialShardKey:n}),issues:(0,a.jsx)(Rl,{initialShardKey:n}),logs:(0,a.jsx)(Tl,{initialShardKey:n}),traces:(0,a.jsx)(Zl,{initialShardKey:n}),evals:(0,a.jsx)(Wl,{initialShardKey:n}),metrics:(0,a.jsx)(Bl,{initialShardKey:n}),migrations:(0,a.jsx)(hl,{initialShardKey:n}),notifications:(0,a.jsx)(Ml,{}),organizations:(0,a.jsx)(dl,{}),permissions:(0,a.jsx)(_l,{functions:r,runAsIdentity:c,schemaEditable:p}),pitr:(0,a.jsx)(bl,{initialShardKey:n}),mail:(0,a.jsx)(wl,{}),payments:(0,a.jsx)(Il,{}),queues:(0,a.jsx)(Al,{}),realtime:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Ol,{initialShardKey:n}),(0,a.jsx)(kl,{})]}),rls:(0,a.jsx)(tl,{}),schedule:(0,a.jsx)(El,{loadCronJobs:u,scheduledCancel:d,scheduledLoad:f}),schema:(0,a.jsx)(sc,{initialShardKey:n,schemaEditable:p}),advisorHealth:(0,a.jsx)(ol,{}),security:(0,a.jsx)(rl,{}),settings:(0,a.jsx)(jl,{initialShardKey:n}),sql:(0,a.jsx)(zl,{initialShardKey:n}),storageRules:(0,a.jsx)(Ul,{}),users:(0,a.jsx)(pl,{}),vectors:(0,a.jsx)(ql,{}),workflows:(0,a.jsx)($l,{})},m=hr({component:s(()=>g.home,"component"),getParentRoute:s(()=>h,"getParentRoute"),path:"/"}),x=Bs.map(P=>hr({component:s(()=>g[P],"component"),getParentRoute:s(()=>h,"getParentRoute"),path:`/${P}`,validateSearch:vl[P]})),v=h.addChildren([m,...x]),b="window"in globalThis?Ur():Zr({initialEntries:["/home"]});return Gr({...e===void 0||e==="/"?{}:{basepath:e},defaultNotFoundComponent:ic,defaultPendingComponent:Fs,defaultPendingMinMs:0,defaultPendingMs:0,history:b,routeTree:v})},"zo"),cc=s(t=>{let e=(0,A.c)(18),{analyticsQuery:o,basePath:r,chrome:n,dataEditable:i,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:u,schemaEditable:f,scheduledCancel:h,scheduledCron:g,scheduledLoad:m}=t,x;e[0]!==o||e[1]!==r||e[2]!==i||e[3]!==l||e[4]!==c||e[5]!==p||e[6]!==d||e[7]!==u||e[8]!==h||e[9]!==g||e[10]!==m||e[11]!==f?(x=lc({analyticsQuery:o,basePath:r,dataEditable:i,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:u,schemaEditable:f,scheduledCancel:h,scheduledCron:g,scheduledLoad:m}),e[0]=o,e[1]=r,e[2]=i,e[3]=l,e[4]=c,e[5]=p,e[6]=d,e[7]=u,e[8]=h,e[9]=g,e[10]=m,e[11]=f,e[12]=x):x=e[12];let v=x,b=n??null,P;e[13]!==v?(P=(0,a.jsx)(Qr,{router:v}),e[13]=v,e[14]=P):P=e[14];let y;return e[15]!==b||e[16]!==P?(y=(0,a.jsx)(Hs,{value:b,children:P}),e[15]=b,e[16]=P,e[17]=y):y=e[17],y},"Vo"),Ig=s(t=>{let e=(0,A.c)(10),o,r,n;e[0]!==t?({i18n:o,locale:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let i;e[4]!==n?(i=(0,a.jsx)(ni,{children:(0,a.jsx)(cc,{...n})}),e[4]=n,e[5]=i):i=e[5];let l=i;if(o===void 0&&r===void 0)return l;let c;return e[6]!==o||e[7]!==r||e[8]!==l?(c=(0,a.jsx)(ys,{i18n:o,locale:r,children:l}),e[6]=o,e[7]=r,e[8]=l,e[9]=c):c=e[9],c},"xn");function dc(t){return t.location.pathname}s(dc,"Oo");function pc(t){return t.tabs.length>0}s(pc,"Do");export{Ko as a,ys as b,ri as c,ai as d,Mg as e,ci as f,gi as g,bi as h,xi as i,yi as j,Ig as k};
|
|
1
|
+
import{a as zo}from"./chunk-Q4CAKBWN.js";import{a as Ln,b as Hn}from"./chunk-62IKYVD3.js";import{a as Bn,d as Fn}from"./chunk-RLLKECZT.js";import{a as Lt,b as Wt,c as qt,d as $t,e as Gt,f as On,g as Bo,h as Fo}from"./chunk-YPRQLCKF.js";import{$ as ko,A as Rn,B as So,C as No,D as Sn,E as Vt,G as Ht,J as Bt,K as To,L as Ft,M as jt,O as wo,P as Nn,Q as Tn,R as zt,S as Kt,T as Ut,U as Zt,V as Eo,W as Ne,Y as wn,Z as En,_ as Oo,b as un,ca as Do,da as Mo,fa as Io,j as _t,k as At,l as hn,la as _o,m as vn,ma as Ao,n as bn,na as Vo,o as xn,oa as Lo,p as xr,pa as kn,q as Po,qa as Dn,ra as Ho,s as Co,sa as Mn,t as yn,u as Ro,y as Pn,z as Cn}from"./chunk-GMS77BZD.js";import{c as In,h as _n,k as yr}from"./chunk-V3VJAA4D.js";import{a as jo}from"./chunk-5WJXVZMZ.js";import{b as Vn}from"./chunk-EVTM6Q43.js";import{a as Ur,b as Zr,d as Wr,e as to,f as hr,g as qr,h as $r,i as Gr,j as Qr,k as Yr}from"./chunk-6D6Z2KXU.js";import{I as mn,J as fn,O as gn,P as It,U as K,V as re,W as br,e as ue,j as no,k as ln,q as cn,r as ao,t as Dt,u as dn,v as Mt,w as Ee,x as pn}from"./chunk-PLHA3OWK.js";import{a as Kr}from"./chunk-4L4WTGN5.js";import{a as Pr}from"./chunk-55754F6H.js";import{c as Oe}from"./chunk-IS6LVJ6L.js";import{a as ye,c as an,h as yo,i as sn}from"./chunk-AAVLPU5Q.js";import{a as vr,b as kt}from"./chunk-FEWMAPNI.js";import{a as oo,c as Y,g as ro,i as rn,j as B}from"./chunk-225VJ77I.js";import{a as Jr,b as Xr}from"./chunk-35DM4JJG.js";import{a as so}from"./chunk-FI3UY4QJ.js";import{a as nn}from"./chunk-FSRSK4LY.js";import{d as fr}from"./chunk-MKL7VDTL.js";import{a as en,b as tn,c as on,d as fe,o as Qt,q as An}from"./chunk-FODLDLE2.js";import{a as s,c as mr,d as S,e as I,f as gr,g as ie,i as Z}from"./chunk-YKXDMIHQ.js";var A=S(gr(),1);var xe=S(I(),1),k=S(I(),1);var a=S(ie(),1);var jn=S(I(),1),Te=S(ie(),1);var js={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},zs={overflow:"auto",whiteSpace:"pre-wrap"},Ko=class extends jn.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:n}=this.props,{error:i}=this.state;if(i===null)return(0,Te.jsx)(Te.Fragment,{children:e});let l=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Te.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:js,children:[(0,Te.jsx)("strong",{children:l}),(0,Te.jsx)("pre",{"data-testid":"dash-error-message",style:zs,children:i.message}),(0,Te.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var Me={};mr(Me,{Arrow:()=>aa,Backdrop:()=>ia,Close:()=>ma,Description:()=>pa,Handle:()=>po,Popup:()=>ra,Portal:()=>Jn,Positioner:()=>Xn,Root:()=>$n,Title:()=>ca,Trigger:()=>Gn,Viewport:()=>ga,createHandle:()=>ha});var io=S(I(),1);var Uo=S(I(),1);var Cr=Uo.createContext(void 0);function J(t){let e=Uo.useContext(Cr);if(e===void 0&&!t)throw new Error(Y(47));return e}s(J,"usePopoverRootContext");var Zo=S(I(),1),zn=S(Kr(),1);var Kn={...qt,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")},Wo=class extends Ht{static{s(this,"PopoverStore")}constructor(e,o,r){let n=new Ne;super(Zn(e,n,o,r),Wn(n),Kn)}setOpen=s((e,o)=>{let r=o.reason===K.triggerHover,n=o.reason===K.triggerPress&&o.event.detail===0,i=!e&&(o.reason===K.escapeKey||o.reason==null),l=Nn(o),c=this.select("activeTriggerId");if(!e&&o.reason===K.closePress&&o.trigger==null&&c!=null&&(o.trigger=this.context.triggerElements.getById(c)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=s(()=>{let u=wo(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)}),zn.flushSync(p)):p();let d;n?d="click":i?d="dismiss":o.reason===K.focusOut&&(d="focus"),this.set("instantType",d)},"setOpen")};function Un(){let t=new Ne,e=new Gt(Object.freeze(Zn(void 0,t)),Object.freeze(Wn(t)),Kn);return Object.assign(e,{setOpen:ro})}s(Un,"createNullPopoverStore");function Zn(t,e,o,r=!1){let n={...Wt(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 n.open&&t?.mounted===void 0&&(n.mounted=!0),n}s(Zn,"createInitialState");function Wn(t){return{popupRef:Zo.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Zo.createRef(),beforeContentFocusGuardRef:Zo.createRef(),stickIfOpenTimeout:new mn,triggerElements:t}}s(Wn,"createInitialContext");var ke=S(ie(),1);var qn=_t(s(function({props:e}){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:l,modal:c=!1,handle:p,triggerId:d,defaultTriggerId:u=null}=e,f=Ks(p,{modal:c,open:n,openProp:r,activeTriggerId:u,triggerIdProp:d});f.useControlledProp("openProp",r),f.useControlledProp("triggerIdProp",d);let h=f.useState("open"),g=f.useState("mounted"),m=f.useState("payload");f.useContextCallback("onOpenChange",i),f.useContextCallback("onOpenChangeComplete",l),Eo(f,h),Kt(f);let{forceUnmount:x}=Ut(h,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:c}),io.useEffect(()=>{h||f.context.stickIfOpenTimeout.clear()},[f,h]),io.useImperativeHandle(e.actionsRef,()=>({unmount:x,close:s(()=>f.setOpen(!1,re(K.imperativeAction)),"close")}),[x,f]);let v=h||g;return(0,ke.jsxs)(Cr.Provider,{value:f,children:[p&&(0,ke.jsx)(jt,{handle:p,store:f}),v&&(0,ke.jsx)(Us,{store:f,modal:c}),typeof o=="function"?o({payload:m}):o]})},"PopoverRootComponent"));function $n(t){return J(!0)?(0,ke.jsx)(qn,{props:t}):(0,ke.jsx)(Rn,{children:(0,ke.jsx)(qn,{props:t})})}s($n,"PopoverRoot");function Ks(t,e){let o=Ft((r,n)=>new Wo(e,r,n));return io.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o}s(Ks,"usePopoverRootStore");function Us({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Vt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference,i=r.floating;return Zt(t,{activeTriggerProps:n,inactiveTriggerProps:n,popupProps:i}),null}s(Us,"PopoverInteractions");var lo=S(I(),1);var Yt=S(ie(),1);var Gn=At(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,handle:p,payload:d,openOnHover:u=!1,delay:f=300,closeDelay:h=0,id:g,...m}=e,x=J(!0),b=$t(p)??x;if(!b)throw new Error(Y(74));let P=ue(g),y=b.useState("isTriggerActive",P),N=b.useState("floatingRootContext"),C=b.useState("isOpenedByTrigger",P),E=b.useState("triggerPopupId",P),R=lo.useRef(null),{registerTrigger:O,isMountedByThisTrigger:w}=zt(P,R,b,{payload:d,disabled:l,openOnHover:u,closeDelay:h}),T=b.useState("openChangeReason"),_=b.useState("stickIfOpen"),L=b.useState("openMethod"),M=b.useState("focusManagerModal"),j=ko(N,{enabled:!l&&u&&(L!=="touch"||T!==K.triggerPress),mouseOnly:!0,move:!1,handleClose:Do(),restMs:f,delay:{close:h},triggerElementRef:R,isActiveTrigger:y,isClosing:s(()=>b.select("transitionStatus")==="ending","isClosing")}),z=No(N,{stickIfOpen:_}),H=Mo(()=>b.select("open"),$=>{b.set("openMethod",$)}),F=b.useState("triggerProps",w),{getButtonProps:U,buttonRef:D}=Oe({disabled:l,native:c}),V={open($){return $&&T===K.triggerPress?dn.open($):Dt.open($)}},{preFocusGuardRef:W,handlePreFocusGuardFocus:G,handleFocusTargetFocus:te}=On(b,R),Q=B("button",e,{state:{disabled:l,open:C},ref:[D,o,O,R],props:[z.reference,j,F,H,{[Po]:"",id:P,"aria-haspopup":"dialog","aria-expanded":C,"aria-controls":E},m,U],stateAttributesMapping:V}),ee=(0,Yt.jsx)(lo.Fragment,{children:Q},P);return w&&!M?(0,Yt.jsxs)(lo.Fragment,{children:[(0,Yt.jsx)(xr,{ref:W,onFocus:G}),ee,(0,Yt.jsx)(xr,{ref:b.context.triggerFocusTargetRef,onFocus:te})]}):ee},"PopoverTrigger"));var Yn=S(I(),1);var qo=S(I(),1);var Rr=qo.createContext(void 0);function Qn(){let t=qo.useContext(Rr);if(t===void 0)throw new Error(Y(45));return t}s(Qn,"usePopoverPortalContext");var Sr=S(ie(),1);var Jn=Yn.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e;return J().useState("mounted")||r?(0,Sr.jsx)(Rr.Provider,{value:r,children:(0,Sr.jsx)(Ro,{ref:o,...n})}):null},"PopoverPortal"));var Go=S(I(),1);var $o=S(I(),1);var Nr=$o.createContext(void 0);function Jt(){let t=$o.useContext(Nr);if(!t)throw new Error(Y(46));return t}s(Jt,"usePopoverPositionerContext");var co=S(ie(),1);var Xn=Go.forwardRef(s(function(e,o){let{render:r,className:n,style:i,anchor:l,positionMethod:c,side:p,align:d,sideOffset:u,alignOffset:f,collisionBoundary:h="clipping-ancestors",collisionPadding:g,arrowPadding:m,sticky:x,disableAnchorTracking:v=!1,collisionAvoidance:b=Co,...P}=e,y=J(),N=Qn(),C=Pn(),E=y.useState("floatingRootContext"),R=y.useState("mounted"),O=y.useState("open"),w=y.useState("openChangeReason"),T=y.useState("activeTriggerElement"),_=y.useState("modal"),L=y.useState("openMethod"),M=y.useState("positionerElement"),j=y.useState("instantType"),z=y.useState("transitionStatus"),H=y.useState("adaptiveOrigin"),F=Go.useRef(null),U=gn(M),D=_o({anchor:l,floatingRootContext:E,positionMethod:c,mounted:R,side:p,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:x,disableAnchorTracking:v,keepMounted:N,nodeId:C,collisionAvoidance:b,adaptiveOrigin:H}),V=E.useState("domReferenceElement");ye(()=>{let Q=V,ee=F.current;if(Q&&(F.current=Q),ee&&Q&&Q!==ee){y.set("instantType",void 0);let $=new AbortController;return U(()=>{y.set("instantType","trigger-change")},$.signal),()=>{$.abort()}}},[V,U,y]);let W=_===!0&&w!==K.triggerHover;Dn(O&&W,L==="touch",M,T);let G=y.useStateSetter("positionerElement"),te={open:O,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:j},ae=Lo(e,te,{styles:D.positionerStyles,transitionStatus:z,props:P,refs:[o,G],hidden:!R,inert:!O});return(0,co.jsxs)(Nr.Provider,{value:D,children:[R&&W&&(0,co.jsx)(Ao,{inert:Io(!O),cutout:T}),(0,co.jsx)(Cn,{id:C,children:ae})]})},"PopoverPositioner"));var oa=S(I(),1);var De=S(I(),1);var Tr=De.createContext(void 0);function ea(){let[t,e]=De.useState(0),o=an(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:De.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}s(ea,"useClosePartCount");function ta(){let t=De.useContext(Tr);ye(()=>t?.register(),[t])}s(ta,"useClosePartRegistration");var wr=S(ie(),1);var ra=oa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,initialFocus:l,finalFocus:c,...p}=e,d=J(),u=Jt(),f=Mn(!0)!=null,{context:h,hasClosePart:g}=ea(),m=d.useState("open"),x=d.useState("openMethod"),v=d.useState("instantType"),b=d.useState("transitionStatus"),P=d.useState("popupProps"),y=d.useState("titleElementId"),N=d.useState("descriptionElementId"),C=d.useState("modal"),E=d.useState("mounted"),R=d.useState("openChangeReason"),O=d.useState("activeTriggerElement"),w=d.useState("floatingRootContext"),T=w.useState("floatingId"),_=d.useState("disabled"),L=d.useState("openOnHover"),M=d.useState("closeDelay");It({open:m,ref:d.context.popupRef,onComplete(){m&&d.context.onOpenChangeComplete?.(!0)}}),Oo(w,{enabled:L&&!_,closeDelay:M});let j=l===void 0?To(d.context.popupRef):l,z=C!==!1&&g;d.useSyncedValue("focusManagerModal",z);let H=d.useStateSetter("popupElement"),F={open:m,side:u.side,align:u.align,instant:v,transitionStatus:b},U=B("div",e,{state:F,ref:[o,d.context.popupRef,H],props:[P,{id:T,role:"dialog",...Bt,"aria-labelledby":y,"aria-describedby":N,onKeyDown(D){f&&Ho.has(D.key)&&D.stopPropagation()}},Vo(b),p],stateAttributesMapping:Ee});return(0,wr.jsx)(So,{context:w,openInteractionType:x,modal:z,disabled:!E||R===K.triggerHover,initialFocus:j,returnFocus:c,restoreFocus:"popup",previousFocusableElement:sn(O)?O:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,wr.jsx)(Tr.Provider,{value:h,children:U})})},"PopoverPopup"));var na=S(I(),1);var aa=na.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,p=J().useState("open"),{arrowRef:d,side:u,align:f,arrowUncentered:h,arrowStyles:g}=Jt();return B("div",e,{state:{open:p,side:u,align:f,uncentered:h},ref:[o,d],props:[{style:g,"aria-hidden":!0},l],stateAttributesMapping:Mt})},"PopoverArrow"));var sa=S(I(),1);var ia=sa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=J(),p=c.useState("open"),d=c.useState("mounted"),u=c.useState("transitionStatus"),f=c.useState("openChangeReason");return B("div",e,{state:{open:p,transitionStatus:u},ref:o,props:[{role:"presentation",hidden:!d,style:{pointerEvents:f===K.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:Ee})},"PopoverBackdrop"));var la=S(I(),1);var ca=la.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=J(),p=ue(l.id);return c.useSyncedValueWithCleanup("titleElementId",p),B("h2",e,{ref:o,props:[{id:p},l]})},"PopoverTitle"));var da=S(I(),1);var pa=da.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=J(),p=ue(l.id);return c.useSyncedValueWithCleanup("descriptionElementId",p),B("p",e,{ref:o,props:[{id:p},l]})},"PopoverDescription"));var ua=S(I(),1);var ma=ua.forwardRef(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,...p}=e,{buttonRef:d,getButtonProps:u}=Oe({disabled:l,focusableWhenDisabled:!1,native:c}),f=J();return ta(),B("button",e,{ref:[o,d],props:[{onClick(g){f.setOpen(!1,re(K.closePress,g.nativeEvent))}},p,u]})},"PopoverClose"));var fa=S(I(),1);var ga=fa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=J(),{side:d}=Jt(),u=p.useState("instantType"),{children:f,state:h}=Fo({store:p,side:d,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:Bo})},"PopoverViewport"));var po=class extends Lt{static{s(this,"PopoverHandle")}constructor(){super(Un(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function ha(){return new po}s(ha,"createPopoverHandle");var le={};mr(le,{Backdrop:()=>ba,Close:()=>ya,Description:()=>Ca,Handle:()=>fo,Popup:()=>wa,Portal:()=>Oa,Root:()=>La,Title:()=>ja,Trigger:()=>Ka,Viewport:()=>Ba,createHandle:()=>Ua});var va=S(I(),1);var Qo=S(I(),1);var Er=Qo.createContext(void 0);function ne(t){let e=Qo.useContext(Er);if(!t&&e===void 0)throw new Error(Y(27));return e}s(ne,"useDialogRootContext");var ba=va.forwardRef(s(function(e,o){let{render:r,className:n,style:i,forceRender:l=!1,...c}=e,p=ne(),d=p.useState("open"),u=p.useState("nested"),f=p.useState("mounted"),h=p.useState("transitionStatus");return B("div",e,{state:{open:d,transitionStatus:h},ref:[p.context.backdropRef,o],stateAttributesMapping:Ee,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},c],enabled:l||!u})},"DialogBackdrop"));var xa=S(I(),1);var ya=xa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,...p}=e,d=ne(),u=d.useState("open"),{getButtonProps:f,buttonRef:h}=Oe({disabled:l,native:c}),g={disabled:l};function m(x){u&&d.setOpen(!1,re(K.closePress,x.nativeEvent))}return s(m,"handleClick"),B("button",e,{state:g,ref:[o,h],props:[{onClick:m},p,f]})},"DialogClose"));var Pa=S(I(),1);var Ca=Pa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,id:l,...c}=e,p=ne(),d=ue(l);return p.useSyncedValueWithCleanup("descriptionElementId",d),B("p",e,{ref:o,props:[{id:d},c]})},"DialogDescription"));var Na=S(I(),1);var Yo=S(I(),1);var Or=Yo.createContext(void 0);function Jo(){let t=Yo.useContext(Or);if(t===void 0)throw new Error(Y(26));return t}s(Jo,"useDialogPortalContext");var Ra="--nested-dialogs";var uu=ao.open,mu=ao.closed,fu=ao.startingStyle,gu=ao.endingStyle;var Sa="data-nested-dialog-open";var Xo={...Mt,...cn,nestedDialogOpen(t){return t?{[Sa]:""}:null}};var Ta=S(ie(),1);var wa=Na.forwardRef(s(function(e,o){let{render:r,className:n,style:i,finalFocus:l,initialFocus:c,...p}=e,d=ne(),u=d.useState("descriptionElementId"),f=d.useState("disablePointerDismissal"),h=d.useState("floatingRootContext"),g=d.useState("popupProps"),m=d.useState("modal"),x=d.useState("mounted"),v=d.useState("nested"),b=d.useState("nestedOpenDialogCount"),P=d.useState("open"),y=d.useState("openMethod"),N=d.useState("titleElementId"),C=d.useState("transitionStatus"),E=d.useState("role"),R=h.useState("floatingId");Jo(),It({open:P,ref:d.context.popupRef,onComplete(){P&&d.context.onOpenChangeComplete?.(!0)}});let O=c===void 0?To(d.context.popupRef):c,w=b>0,T=d.useStateSetter("popupElement"),L=B("div",e,{state:{open:P,nested:v,transitionStatus:C,nestedDialogOpen:w},props:[g,{id:R,"aria-labelledby":N,"aria-describedby":u,role:E,...Bt,hidden:!x,onKeyDown(M){Ho.has(M.key)&&M.stopPropagation()},style:{[Ra]:b}},p],ref:[o,d.context.popupRef,T],stateAttributesMapping:Xo});return(0,Ta.jsx)(So,{context:h,openInteractionType:y,disabled:!x,closeOnFocusOut:!f,initialFocus:O,returnFocus:l,modal:m!==!1,restoreFocus:"popup",children:L})},"DialogPopup"));var Ea=S(I(),1);var uo=S(ie(),1);var Oa=Ea.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e,i=ne(),l=i.useState("mounted"),c=i.useState("modal"),p=i.useState("open");return l||r?(0,uo.jsx)(Or.Provider,{value:r,children:(0,uo.jsxs)(Ro,{ref:o,...n,children:[l&&c===!0&&(0,uo.jsx)(Ao,{ref:i.context.internalBackdropRef,inert:Io(!p)}),e.children]})}):null},"DialogPortal"));var Aa=S(I(),1);var kr=S(I(),1);function ka({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),i=t.useState("modal"),l=t.useState("popupElement"),c=t.useState("floatingRootContext"),[p,d]=kr.useState(0),[u,f]=kr.useState(0),h=p===0,g=Vt(c,{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=ln(m);if(h&&!n){if(i){let v=t.context.internalBackdropRef.current,b=t.context.backdropRef.current;return v||b?v===x||b===x||no(x,l)&&!x?.hasAttribute("data-base-ui-portal"):!0}return!0}return!1},escapeKey:h});return kn(r&&i===!0,l),t.useContextCallback("onNestedDialogOpen",(m,x)=>{d(m),f(x)}),ye(()=>(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]),Zt(t,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}s(ka,"DialogInteractions");var er=S(I(),1);var Da={...qt,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")},tr=class extends Ht{static{s(this,"DialogStore")}constructor(e,o,r){let n=new Ne,i=Ia(e,n,o,r);super(i,_a(n),Da)}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(wo(this.state,e,o.trigger)))},"setOpen")};function Ma(){let t=new Ne;return new Gt(Object.freeze(Ia(void 0,t)),Object.freeze(_a(t)),Da)}s(Ma,"createNullDialogStore");function Ia(t,e,o,r=!1){return{...Wt(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(Ia,"createInitialState");function _a(t){return{popupRef:er.createRef(),backdropRef:er.createRef(),internalBackdropRef:er.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:t,onOpenChange:void 0,onOpenChangeComplete:void 0}}s(_a,"createInitialContext");var mo=S(ie(),1);function Va(t,e){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:i,onOpenChangeComplete:l,disablePointerDismissal:c=!1,modal:p=!0,actionsRef:d,handle:u,triggerId:f,defaultTriggerId:h=null}=e,g=t==="drawer",m=t==="alert-dialog",x=m?!0:p,v=m||c,b=m?"alertdialog":"dialog",P=ne(!0),y=P!=null,N={modal:x,disablePointerDismissal:v,nested:y,role:b},C=Ft((_,L)=>new tr({open:n,openProp:r,activeTriggerId:h,triggerIdProp:f,...N},_,L),!0);C.useControlledProp("openProp",r),C.useControlledProp("triggerIdProp",f),C.useSyncedValues(N),C.useContextCallback("onOpenChange",i),C.useContextCallback("onOpenChangeComplete",l);let E=C.useState("open"),R=C.useState("mounted"),O=C.useState("payload");Eo(C,E),Kt(C);let{forceUnmount:w}=Ut(E,C);Aa.useImperativeHandle(d,()=>({unmount:w,close:s(()=>C.setOpen(!1,re(K.imperativeAction)),"close")}),[w,C]);let T=E||R;return(0,mo.jsxs)(Er.Provider,{value:C,children:[u&&(0,mo.jsx)(jt,{handle:u,store:C}),T&&(0,mo.jsx)(ka,{store:C,parentContext:P?.context,isDrawer:g}),typeof o=="function"?o({payload:O}):o]})}s(Va,"useRenderDialogRoot");var La=_t(s(function(e){return Va("dialog",e)},"DialogRoot"));var Ha=S(I(),1);var Ba=Ha.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=Jo(),d=ne(),u=d.useState("open"),f=d.useState("nested"),h=d.useState("transitionStatus"),g=d.useState("nestedOpenDialogCount"),m=d.useState("mounted"),x=d.useStateSetter("viewportElement"),v=g>0;return B("div",e,{enabled:p||m,state:{open:u,nested:f,transitionStatus:h,nestedDialogOpen:v},ref:[o,x],stateAttributesMapping:Xo,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:l},c]})},"DialogViewport"));var Fa=S(I(),1);var ja=Fa.forwardRef(s(function(e,o){let{render:r,className:n,style:i,id:l,...c}=e,p=ne(),d=ue(l);return p.useSyncedValueWithCleanup("titleElementId",d),B("h2",e,{ref:o,props:[{id:d},c]})},"DialogTitle"));var za=S(I(),1);var Ka=At(s(function(e,o){let{render:r,className:n,style:i,disabled:l=!1,nativeButton:c=!0,id:p,payload:d,handle:u,...f}=e,h=ne(!0),m=$t(u)??h;if(!m)throw new Error(Y(79));let x=ue(p),v=m.useState("floatingRootContext"),b=m.useState("isOpenedByTrigger",x),P=m.useState("triggerPopupId",x),y=za.useRef(null),{registerTrigger:N,isMountedByThisTrigger:C}=zt(x,y,m,{payload:d}),{getButtonProps:E,buttonRef:R}=Oe({disabled:l,native:c}),O=No(v),w=Mo(()=>m.select("open"),L=>{m.set("openMethod",L)}),T={disabled:l,open:b},_=m.useState("triggerProps",C);return B("button",e,{state:T,ref:[R,o,N,y],props:[O.reference,_,w,{[Po]:"",id:x,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":P},f,E],stateAttributesMapping:Dt})},"DialogTrigger"));var fo=class extends Lt{static{s(this,"DialogHandle")}constructor(){super(Ma(),"Dialog",!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let o=this.attachedStore;o!==null&&(o.set("payload",e),o.setOpen(!0,re(K.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Ua(){return new fo}s(Ua,"createDialogHandle");var Pe={};mr(Pe,{Arrow:()=>us,Handle:()=>ho,Popup:()=>ds,Portal:()=>ss,Positioner:()=>ls,Provider:()=>fs,Root:()=>Qa,Trigger:()=>es,Viewport:()=>hs,createHandle:()=>vs});var Xt=S(I(),1);var or=S(I(),1);var Dr=or.createContext(void 0);function ve(t){let e=or.useContext(Dr);if(e===void 0&&!t)throw new Error(Y(72));return e}s(ve,"useTooltipRootContext");var Za=S(I(),1);var Wa={...qt,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")},rr=class extends Ht{static{s(this,"TooltipStore")}constructor(e,o,r){let n=new Ne;super($a(e,n,o,r),Ga(n),Wa)}setOpen=s((e,o)=>{Tn(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,re(K.triggerPress,e))}};function qa(){let t=new Ne,e=new Gt(Object.freeze($a(void 0,t)),Object.freeze(Ga(t)),Wa);return Object.assign(e,{setOpen:ro,cancelPendingOpen:ro})}s(qa,"createNullTooltipStore");function $a(t,e,o,r=!1){return{...Wt(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($a,"createInitialState");function Ga(t){return{popupRef:Za.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:t}}s(Ga,"createInitialContext");var go=S(ie(),1);var Qa=_t(s(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:i=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:p,onOpenChangeComplete:d,handle:u,triggerId:f,defaultTriggerId:h=null,children:g}=e,m=Ft((_,L)=>new rr({open:r,openProp:n,activeTriggerId:h,triggerIdProp:f},_,L));m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",f),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",d);let x=m.useState("open"),v=!o&&x,b=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:i,disabled:o}),Kt(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:N,transitionStatus:C}=Ut(v,m),E=m.useState("isInstantPhase"),R=m.useState("instantType"),O=m.useState("lastOpenChangeReason"),w=Xt.useRef(null);ye(()=>{x&&o&&m.setOpen(!1,re(K.disabled))},[x,o,m]),ye(()=>{C==="ending"&&O===K.none||C!=="ending"&&E?(R!=="delay"&&(w.current=R),m.set("instantType","delay")):w.current!==null&&(m.set("instantType",w.current),w.current=null)},[C,E,O,R,m]),ye(()=>{v&&b==null&&m.set("payload",void 0)},[m,b,v]),Xt.useImperativeHandle(c,()=>({unmount:N,close:s(()=>m.setOpen(!1,re(K.imperativeAction)),"close")}),[N,m]);let T=v||P||!o&&l!=="none";return(0,go.jsxs)(Dr.Provider,{value:m,children:[u&&(0,go.jsx)(jt,{handle:u,store:m}),T&&(0,go.jsx)(qs,{store:m,disabled:o,trackCursorAxis:l}),typeof g=="function"?g({payload:y}):g]})},"TooltipRoot"));function qs({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=Vt(r,{enabled:!e,referencePress:s(()=>t.select("closeOnClick"),"referencePress")}),i=Sn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),l=Xt.useMemo(()=>oo(i.reference,n.reference),[i.reference,n.reference]);return Zt(t,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:n.floating??rn}),null}s(qs,"TooltipInteractions");var ar=S(I(),1);var nr=S(I(),1);var Mr=nr.createContext(void 0);function Ya(){return nr.useContext(Mr)}s(Ya,"useTooltipProviderContext");var Xa="data-base-ui-tooltip-trigger";function Ja(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(yo(n))return n}}let e=t.target;return yo(e)?e:null}s(Ja,"getTargetElement");function $s(t){let e=t;for(;e;){let o=e.closest(`[${Xa}]`);if(o)return o;let r=e.getRootNode();e="host"in r&&yo(r.host)?r.host:null}return null}s($s,"closestEnabledTooltipTrigger");var es=At(s(function(e,o){let{render:r,className:n,style:i,handle:l,payload:c,disabled:p,delay:d,closeOnClick:u=!0,closeDelay:f,id:h,...g}=e,m=ve(!0),v=$t(l)??m;if(!v)throw new Error(Y(82));let b=ue(h),P=v.useState("isTriggerActive",b),y=v.useState("isOpenedByTrigger",b),N=v.useState("floatingRootContext"),C=ar.useRef(null),E=f??0,{registerTrigger:R,isMountedByThisTrigger:O}=zt(b,C,v,{payload:c,closeOnClick:u,closeDelay:E}),w=Ya(),{activeIdRef:T,delayRef:_,isInstantPhase:L,hasProvider:M}=bn(N,{open:y}),j=En(N);v.useSyncedValue("isInstantPhase",L);let z=v.useState("disabled"),H=p??z,F=xn(H),U=v.useState("trackCursorAxis"),D=v.useState("disableHoverablePopup"),V=ar.useRef(!1),W=fn(),G=ar.useRef(void 0);function te(){return M&&T.current!=null?0:d??w??600}s(te,"getOpenDelay");function ae(q){let me=C.current;if(!me||!q)return!1;let pe=$s(q);return pe!==null&&pe!==me&&no(me,pe)}s(ae,"isEnabledNestedTriggerTarget");function Q(q){let me=ae(q);return V.current=me,me&&(j.openChangeTimeout.clear(),j.restTimeout.clear(),j.restTimeoutPending=!1,W.clear()),me}s(Q,"detectNestedTriggerHover");let ee=ko(N,{enabled:!H,mouseOnly:!0,move:!1,handleClose:!D&&U!=="both"?Do():null,restMs:te,delay(){return f==null&&M?{close:hn(_.current,"close")}:{close:E}},triggerElementRef:C,isActiveTrigger:P,isClosing:s(()=>v.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!V.current}}),$=wn(N,{enabled:!H}).reference,ce=s(q=>{let me=V.current,pe=Ja(q),Ce=Q(pe),be=C.current,we=be&&pe&&no(be,pe);if(Ce&&v.select("open")&&v.select("lastOpenChangeReason")===K.triggerHover){v.setOpen(!1,re(K.triggerHover,q));return}if(me&&!Ce&&we&&!F.current&&!v.select("open")&&be&&un(G.current)){let Re=s(()=>{!V.current&&!F.current&&!v.select("open")&&v.setOpen(!0,re(K.triggerHover,q,be))},"open"),Se=te();Se===0?(W.clear(),Re()):W.start(Se,Re)}},"handleNestedTriggerHover"),de=v.useState("triggerProps",O);return B("button",e,{state:{open:y},ref:[o,R,C],props:[ee,$,O||U!=="none"?de:void 0,{onMouseOver(q){ce(q.nativeEvent)},onFocus(q){ae(Ja(q.nativeEvent))&&q.preventBaseUIHandler()},onMouseLeave(){V.current=!1,W.clear(),G.current=void 0},onPointerEnter(q){G.current=q.pointerType},onPointerDown(q){G.current=q.pointerType,v.set("closeOnClick",u),u&&!v.select("open")&&v.cancelPendingOpen(q.nativeEvent)},onClick(q){u&&!v.select("open")&&v.cancelPendingOpen(q.nativeEvent)},id:b,[pn]:H?"":void 0,[Xa]:H?void 0:""},g],stateAttributesMapping:Dt})},"TooltipTrigger"));var as=S(I(),1);var sr=S(I(),1);var Ir=sr.createContext(void 0);function ts(){let t=sr.useContext(Ir);if(t===void 0)throw new Error(Y(70));return t}s(ts,"useTooltipPortalContext");var ir=S(I(),1),os=S(Kr(),1);var rs=S(ie(),1);var ns=ir.forwardRef(s(function(e,o){let{children:r,container:n,className:i,render:l,style:c,...p}=e,{node:d,subtree:u}=yn({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!d?null:(0,rs.jsxs)(ir.Fragment,{children:[u,d&&os.createPortal(r,d)]})},"FloatingPortalLite"));var _r=S(ie(),1);var ss=as.forwardRef(s(function(e,o){let{keepMounted:r=!1,...n}=e;return ve().useState("mounted")||r?(0,_r.jsx)(Ir.Provider,{value:r,children:(0,_r.jsx)(ns,{ref:o,...n})}):null},"TooltipPortal"));var cr=S(I(),1);var lr=S(I(),1);var Ar=lr.createContext(void 0);function eo(){let t=lr.useContext(Ar);if(t===void 0)throw new Error(Y(71));return t}s(eo,"useTooltipPositionerContext");var is=S(ie(),1);var ls=cr.forwardRef(s(function(e,o){let{render:r,className:n,anchor:i,positionMethod:l="absolute",side:c="top",align:p="center",sideOffset:d=0,alignOffset:u=0,collisionBoundary:f="clipping-ancestors",collisionPadding:h=5,arrowPadding:g=5,sticky:m=!1,disableAnchorTracking:x=!1,collisionAvoidance:v=Co,style:b,...P}=e,y=ve(),N=ts(),C=y.useState("open"),E=y.useState("mounted"),R=y.useState("trackCursorAxis"),O=y.useState("disableHoverablePopup"),w=y.useState("floatingRootContext"),T=y.useState("instantType"),_=y.useState("transitionStatus"),L=y.useState("adaptiveOrigin"),M=_o({anchor:i,positionMethod:l,floatingRootContext:w,mounted:E,side:c,sideOffset:d,align:p,alignOffset:u,collisionBoundary:f,collisionPadding:h,sticky:m,arrowPadding:g,disableAnchorTracking:x,keepMounted:N,collisionAvoidance:v,adaptiveOrigin:L}),j=cr.useMemo(()=>({open:C,side:M.side,align:M.align,anchorHidden:M.anchorHidden,instant:R!=="none"?"tracking-cursor":T}),[C,M.side,M.align,M.anchorHidden,R,T]),z=Lo(e,j,{styles:M.positionerStyles,transitionStatus:_,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!E,inert:!C||R==="both"||O});return(0,is.jsx)(Ar.Provider,{value:M,children:z})},"TooltipPositioner"));var cs=S(I(),1);var ds=cs.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=ve(),{side:p,align:d}=eo(),u=c.useState("open"),f=c.useState("instantType"),h=c.useState("transitionStatus"),g=c.useState("popupProps"),m=c.useState("floatingRootContext"),x=c.useState("disabled"),v=c.useState("closeDelay");It({open:u,ref:c.context.popupRef,onComplete(){u&&c.context.onOpenChangeComplete?.(!0)}}),Oo(m,{enabled:!x,closeDelay:v});let b=c.useStateSetter("popupElement");return B("div",e,{state:{open:u,side:p,align:d,instant:f,transitionStatus:h},ref:[o,c.context.popupRef,b],props:[Bt,g,Vo(h),l],stateAttributesMapping:Ee})},"TooltipPopup"));var ps=S(I(),1);var us=ps.forwardRef(s(function(e,o){let{render:r,className:n,style:i,...l}=e,c=ve(),{arrowRef:p,side:d,align:u,arrowUncentered:f,arrowStyles:h}=eo(),g=c.useState("open"),m=c.useState("instantType");return B("div",e,{state:{open:g,side:d,align:u,uncentered:f,instant:m},ref:[o,p],props:[{style:h,"aria-hidden":!0},l],stateAttributesMapping:Mt})},"TooltipArrow"));var ms=S(I(),1);var Vr=S(ie(),1);var fs=s(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,i=ms.useMemo(()=>({open:o,close:r}),[o,r]);return(0,Vr.jsx)(Mr.Provider,{value:o,children:(0,Vr.jsx)(vn,{delay:i,timeoutMs:n,children:e.children})})},"TooltipProvider");var gs=S(I(),1);var hs=gs.forwardRef(s(function(e,o){let{render:r,className:n,style:i,children:l,...c}=e,p=ve(),d=eo(),u=p.useState("instantType"),{children:f,state:h}=Fo({store:p,side:d.side,children:l}),g={activationDirection:h.activationDirection,transitioning:h.transitioning,instant:u};return B("div",e,{state:g,ref:o,props:[c,{children:f}],stateAttributesMapping:Bo})},"TooltipViewport"));var ho=class extends Lt{static{s(this,"TooltipHandle")}constructor(){super(qa(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function vs(){return new ho}s(vs,"createTooltipHandle");var bs=S(gr(),1);var xs=S(ie(),1);var Gs=s((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?tn:en(e,o),"I"),ys=s(t=>{let e=(0,bs.c)(7),{catalogs:o,children:r,i18n:n,locale:i}=t,l;e[0]!==o||e[1]!==n||e[2]!==i?(l=Gs(n,i,o),e[0]=o,e[1]=n,e[2]=i,e[3]=l):l=e[3];let c=l,p;return e[4]!==r||e[5]!==c?(p=(0,xs.jsx)(on,{value:c,children:r}),e[4]=r,e[5]=c,e[6]=p):p=e[6],p},"S");var Hr=S(gr(),1);var Ie=S(I(),1);var oe=S(ie(),1);var Lr="lunora:command-palette",Ps=s(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(Lr))},"ce"),Qs=s(t=>{let e=(0,Hr.c)(18),{active:o,index:r,item:n,onActivate:i,onSelect:l}=t,c;e[0]!==n||e[1]!==l?(c=s(()=>{l(n)},"g"),e[0]=n,e[1]=l,e[2]=c):c=e[2];let p=c,d;e[3]!==r||e[4]!==i?(d=s(()=>{i(r)},"x"),e[3]=r,e[4]=i,e[5]=d):d=e[5];let u=d,f=o?"bg-accent text-accent-foreground":"text-foreground",h;e[6]!==f?(h=Z("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]=h):h=e[7];let g;e[8]!==n.label?(g=(0,oe.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=g):g=e[9];let m;e[10]!==n.group?(m=(0,oe.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.group,e[11]=m):m=e[11];let x;return e[12]!==p||e[13]!==u||e[14]!==h||e[15]!==g||e[16]!==m?(x=(0,oe.jsx)("li",{children:(0,oe.jsxs)("button",{className:h,onClick:p,onMouseEnter:u,type:"button",children:[g,m]})}),e[12]=p,e[13]=u,e[14]=h,e[15]=g,e[16]=m,e[17]=x):x=e[17],x},"Y"),Ys=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"),Cs=s(t=>{let e=(0,Hr.c)(40),{items:o}=t,r=fe(),n=to(),{palette:i}=zo(),[l,c]=(0,Ie.useState)(!1),[p,d]=(0,Ie.useState)(""),[u,f]=(0,Ie.useState)(0),h=(0,Ie.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:G}=W;G instanceof HTMLElement&&(G.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(G.tagName))||(W.preventDefault(),c(!0))},"t"),V=s(()=>{c(!0)},"l");return globalThis.addEventListener("keydown",D),globalThis.addEventListener(Lr,V),()=>{globalThis.removeEventListener("keydown",D),globalThis.removeEventListener(Lr,V)}},"s"),m=[i],e[0]=i,e[1]=g,e[2]=m):(g=e[1],m=e[2]),(0,Ie.useEffect)(g,m);let x;e[3]!==o||e[4]!==p?(x=Ys(o,p),e[3]=o,e[4]=p,e[5]=x):x=e[5];let v=x,b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=s(D=>{c(D),D||(d(""),f(0))},"I"),e[6]=b):b=e[6];let P=b,y;e[7]!==n?(y=s(D=>{if(P(!1),D.run!==void 0){D.run();return}D.to!==void 0&&Qt(n({to:D.to}))},"K"),e[7]=n,e[8]=y):y=e[8];let N=y,C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=s(D=>{d(D.target.value),f(0)},"P"),e[9]=C):C=e[9];let E=C,R;e[10]!==u||e[11]!==v||e[12]!==N?(R=s(D=>{e:switch(D.key){case"ArrowDown":{D.preventDefault(),f(V=>v.length===0?0:(V+1)%v.length);break e}case"ArrowUp":{D.preventDefault(),f(V=>v.length===0?0:(V-1+v.length)%v.length);break e}case"Enter":{D.preventDefault();let V=v[u];V!==void 0&&N(V);break e}}},"z"),e[10]=u,e[11]=v,e[12]=N,e[13]=R):R=e[13];let O=R,w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=(0,oe.jsx)(le.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]=w):w=e[14];let T;e[15]!==r?(T=r("Command palette"),e[15]=r,e[16]=T):T=e[16];let _;e[17]!==T?(_=(0,oe.jsx)(le.Title,{className:"sr-only",children:T}),e[17]=T,e[18]=_):_=e[18];let L;e[19]===Symbol.for("react.memo_cache_sentinel")?(L=(0,oe.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,oe.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,oe.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[19]=L):L=e[19];let M;e[20]!==r?(M=r("Search\u2026"),e[20]=r,e[21]=M):M=e[21];let j;e[22]!==O||e[23]!==p||e[24]!==M?(j=(0,oe.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[L,(0,oe.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:E,onKeyDown:O,placeholder:M,ref:h,type:"text",value:p})]}),e[22]=O,e[23]=p,e[24]=M,e[25]=j):j=e[25];let z;e[26]!==u||e[27]!==v||e[28]!==N||e[29]!==r?(z=v.length===0?(0,oe.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):v.map((D,V)=>(0,oe.jsx)(Qs,{active:V===u,index:V,item:D,onActivate:f,onSelect:N},D.to??`${D.group}:${D.label}`)),e[26]=u,e[27]=v,e[28]=N,e[29]=r,e[30]=z):z=e[30];let H;e[31]!==z?(H=(0,oe.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:z}),e[31]=z,e[32]=H):H=e[32];let F;e[33]!==_||e[34]!==j||e[35]!==H?(F=(0,oe.jsxs)(le.Portal,{children:[w,(0,oe.jsxs)(le.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[_,j,H]})]}),e[33]=_,e[34]=j,e[35]=H,e[36]=F):F=e[36];let U;return e[37]!==l||e[38]!==F?(U=(0,oe.jsx)(le.Root,{onOpenChange:P,open:l,children:F}),e[37]=l,e[38]=F,e[39]=U):U=e[39],U},"de");var Es="(prefers-color-scheme: dark)",Os=s(()=>{try{return globalThis.localStorage}catch{return}},"Ft"),Js=s(t=>t==="system"||t==="light"||t==="dark","Ps"),ks=s(()=>globalThis.matchMedia,"qt"),Ds="lunora-studio-theme",Br=["system","light","dark"],Xs=s((t="system")=>{try{let e=Os()?.getItem(Ds);return Js(e)?e:t}catch{return t}},"_s"),Rs=s(t=>{let e=Os();if(e!==void 0)try{e.setItem(Ds,t)}catch{}},"_t"),ei=s(()=>{try{return ks()?.(Es).matches?"dark":"light"}catch{return"light"}},"Ts"),ti=s((t,e)=>t==="system"?e:t,"Ls"),oi=s(t=>{let e;try{e=ks()?.(Es)}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)}},"As"),zr=(0,k.createContext)(null),ri=s(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,k.useState)(()=>Xs(e)),[n,i]=(0,k.useState)(()=>ei());(0,k.useEffect)(()=>oi(i),[]);let l=s(p=>{Rs(p),r(p)},"l"),c={cycleTheme:s(()=>{r(p=>{let d=Br[(Br.indexOf(p)+1)%Br.length]??p;return Rs(d),d})},"cycleTheme"),resolvedTheme:ti(o,n),setTheme:l,systemTheme:n,theme:o};return(0,a.jsx)(zr,{value:c,children:t})},"Rs"),ni=s(t=>{let e=(0,A.c)(3),{children:o}=t,r=(0,k.use)(zr),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,a.jsx)(ri,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"Es"),ai=s(()=>{let t=(0,k.use)(zr);if(t===null)throw new fr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"Is");function Mg({delay:t=0,...e}){return(0,a.jsx)(Pe.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}s(Mg,"vn");function si(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Pe.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}s(si,"$s");function ii(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Pe.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(ii,"Hs");function li({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:i,...l}){return(0,a.jsx)(Pe.Portal,{children:(0,a.jsx)(Pe.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,a.jsxs)(Pe.Popup,{"data-slot":"tooltip-content",className:Z("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,a.jsx)(Pe.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(li,"Bs");var ci=s(t=>{let e=(0,A.c)(5),{className:o}=t,r;e[0]!==o?(r=Z("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=n):n=e[2];let i;return e[3]!==r?(i=(0,a.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=i):i=e[4],i},"zs"),Ms="lunora.studio.rulesBannerDismissed",di=s(()=>{try{return globalThis.localStorage.getItem(Ms)==="1"}catch{return!1}},"Vs"),pi=s(()=>{try{globalThis.localStorage.setItem(Ms,"1")}catch{}},"Os"),ui=s(()=>{let t=(0,A.c)(18),e=fe(),[o,r]=(0,k.useState)(mi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s(()=>{r(!0),pi()},"o"),t[0]=n):n=t[0];let i=n;if(o)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=l):l=t[1];let c;t[2]!==e?(c=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=c):c=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let d;t[5]!==e?(d=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=d):d=t[6];let u;t[7]!==c||t[8]!==d?(u=(0,a.jsxs)("span",{children:[c," ",p," ",d]}),t[7]=c,t[8]=d,t[9]=u):u=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=h):h=t[12];let g;t[13]!==f?(g=(0,a.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:h}),t[13]=f,t[14]=g):g=t[14];let m;return t[15]!==u||t[16]!==g?(m=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[l,u,g]}),t[15]=u,t[16]=g,t[17]=m):m=t[17],m},"Ds");function mi(){return di()}s(mi,"Zs");function Is(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Me.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}s(Is,"Ut");function _s(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(Me.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}s(_s,"Gt");function As({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:i=6,...l}){return(0,a.jsx)(Me.Portal,{keepMounted:r,children:(0,a.jsx)(Me.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:i,children:(0,a.jsx)(Me.Popup,{className:Z("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(As,"Kt");var Fr=768;function fi(){let t=(0,A.c)(2),[e,o]=(0,k.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s(()=>{let i=globalThis.matchMedia(`(max-width: ${Fr-1}px)`),l=s(()=>{o(globalThis.innerWidth<Fr)},"l");return i.addEventListener("change",l),o(globalThis.innerWidth<Fr),()=>{i.removeEventListener("change",l)}},"a"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,k.useEffect)(r,n),!!e}s(fi,"Fs");function gi(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(le.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}s(gi,"qs");function hi(t){let e=(0,A.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,a.jsx)(le.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}s(hi,"Ws");function vi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(vi,"js");function bi({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,a.jsxs)(hi,{children:[(0,a.jsx)(vi,{}),(0,a.jsxs)(le.Popup,{"data-slot":"sheet-content","data-side":o,className:Z("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...n,children:[e,r&&(0,a.jsxs)(le.Close,{"data-slot":"sheet-close",render:(0,a.jsx)(Pr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,a.jsx)(yr,{icon:In,strokeWidth:2}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}s(bi,"Us");function xi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(xi,"Gs");function yi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(yi,"Ks");function Pi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)(le.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Pi,"Qs");var Ci="sidebar_state",Ri=3600*24*7,Si="16rem",Ni="18rem",Ti="3rem",wi="b",Vs=xe.createContext(null);function dr(){let t=xe.useContext(Vs);if(!t)throw new fr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}s(dr,"gt");function Ei({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:i,...l}){let c=fi(),[p,d]=xe.useState(!1),[u,f]=xe.useState(t),h=e??u,g=s(b=>{let P=typeof b=="function"?b(h):b;o?o(P):f(P),document.cookie=`${Ci}=${P}; path=/; max-age=${Ri}`},"m"),m=s(()=>c?d(b=>!b):g(b=>!b),"h"),x=xe.useEffectEvent(()=>{m()});xe.useEffect(()=>{let b=s(P=>{P.key===wi&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),x())},"g");return globalThis.addEventListener("keydown",b),()=>globalThis.removeEventListener("keydown",b)},[]);let v={state:h?"expanded":"collapsed",open:h,setOpen:g,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:m};return(0,a.jsx)(Vs.Provider,{value:v,children:(0,a.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Si,"--sidebar-width-icon":Ti,...n},className:Z("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...l,children:i})})}s(Ei,"aa");function Oi({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:i,...l}){let{isMobile:c,state:p,openMobile:d,setOpenMobile:u}=dr();return o==="none"?(0,a.jsx)("div",{"data-slot":"sidebar",className:Z("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...l,children:n}):c?(0,a.jsx)(gi,{open:d,onOpenChange:u,...l,children:(0,a.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":Ni},side:t,children:[(0,a.jsxs)(xi,{className:"sr-only",children:[(0,a.jsx)(yi,{children:"Sidebar"}),(0,a.jsx)(Pi,{children:"Displays the mobile sidebar."})]}),(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,a.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,a.jsx)("div",{"data-slot":"sidebar-gap",className:Z("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,a.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:Z("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...l,children:(0,a.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:n})})]})}s(Oi,"oa");function ki(t){let e=(0,A.c)(15),o,r,n;e[0]!==t?({className:o,onClick:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let{toggleSidebar:i}=dr(),l;e[4]!==o?(l=Z(o),e[4]=o,e[5]=l):l=e[5];let c;e[6]!==r||e[7]!==i?(c=s(f=>{r?.(f),i()},"i"),e[6]=r,e[7]=i,e[8]=c):c=e[8];let p,d;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(yr,{icon:_n,strokeWidth:2,className:"rtl:rotate-180"}),d=(0,a.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=d):(p=e[9],d=e[10]);let u;return e[11]!==n||e[12]!==l||e[13]!==c?(u=(0,a.jsxs)(Pr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:c,...n,children:[p,d]}),e[11]=n,e[12]=l,e[13]=c,e[14]=u):u=e[14],u}s(ki,"na");function Di(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Di,"ra");function Mi(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Mi,"la");function Ii(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ii,"ia");function _i(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(_i,"da");function Ai(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ai,"ca");function Vi(t){let e=(0,A.c)(10),o,r,n,i;if(e[0]!==t){let{className:p,render:d,...u}=t;o=d,i=vr,r="div",n=oo({className:Z("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=i}else o=e[1],r=e[2],n=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 c;return e[6]!==o||e[7]!==r||e[8]!==n?(c={defaultTagName:r,props:n,render:o,state:l},e[6]=o,e[7]=r,e[8]=n,e[9]=c):c=e[9],i(c)}s(Vi,"ua");function Li(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Li,"ma");function Ss(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ss,"Tt");function Ns(t){let e=(0,A.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=Z("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let i;return e[5]!==r||e[6]!==n?(i=(0,a.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i}s(Ns,"Lt");var Hi=nn("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 Ls({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:i,...l}){let{isMobile:c,state:p}=dr(),d=vr({defaultTagName:"button",props:oo({className:Z(Hi({variant:o,size:r}),i)},l),render:n?(0,a.jsx)(ii,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,a.jsxs)(si,{children:[d,(0,a.jsx)(li,{side:"right",align:"center",hidden:p!=="collapsed"||c,...n})]})):d}s(Ls,"Yt");var Bi=s(t=>t.replace("__lunora_admin__:",""),"ha"),Fi=s(()=>(0,k.useSyncExternalStore)(so.subscribe,so.getSnapshot,so.getSnapshot),"pa"),ji=s(t=>t==="error"?"destructive":t==="pending"?"secondary":"default","ga"),zi=s(t=>{let e=(0,A.c)(56),{entry:o,focused:r}=t,n=fe(),i;e[0]!==r?(i=s(L=>{L!==null&&r&&L.scrollIntoView({block:"nearest"})},"r"),e[0]=r,e[1]=i):i=e[1];let l=i,c;e[2]!==o.functionPath||e[3]!==o.shardKey||e[4]!==o.summary?(c=s(()=>{An(`${o.functionPath} ${o.summary}${o.shardKey===""?"":` (shard ${o.shardKey})`}`)},"i"),e[2]=o.functionPath,e[3]=o.shardKey,e[4]=o.summary,e[5]=c):c=e[5];let p=c,d=r&&"bg-accent ring-1 ring-inset ring-primary/40",u;e[6]!==d?(u=Z("border-b border-border/60 last:border-b-0",d),e[6]=d,e[7]=u):u=e[7];let f;e[8]!==o.status?(f=ji(o.status),e[8]=o.status,e[9]=f):f=e[9];let h=o.status==="pending"?"\u2026":o.status,g;e[10]!==f||e[11]!==h?(g=(0,a.jsx)(kt,{className:"mt-px shrink-0",variant:f,children:h}),e[10]=f,e[11]=h,e[12]=g):g=e[12];let m;e[13]!==o.functionPath?(m=Bi(o.functionPath),e[13]=o.functionPath,e[14]=m):m=e[14];let x;e[15]!==m?(x=(0,a.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:m}),e[15]=m,e[16]=x):x=e[16];let v;e[17]!==o.kind||e[18]!==n?(v=o.kind==="subscription"&&(0,a.jsx)(kt,{className:"shrink-0",variant:"outline",children:n("live")}),e[17]=o.kind,e[18]=n,e[19]=v):v=e[19];let b;e[20]!==o.summary?(b=o.summary!==""&&(0,a.jsx)("span",{className:"min-w-0 truncate text-muted-foreground",children:o.summary}),e[20]=o.summary,e[21]=b):b=e[21];let P;e[22]!==o.shardKey?(P=o.shardKey!==""&&(0,a.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]!==n?(y=o.resultCount!==void 0&&(0,a.jsx)("span",{children:n("{count} rows",{count:o.resultCount})}),e[24]=o.resultCount,e[25]=n,e[26]=y):y=e[26];let N;e[27]!==o.pushes||e[28]!==n?(N=o.pushes!==void 0&&o.pushes>0&&(0,a.jsx)("span",{children:n("{count} pushes",{count:o.pushes})}),e[27]=o.pushes,e[28]=n,e[29]=N):N=e[29];let C;e[30]!==o.durationMs?(C=o.durationMs!==void 0&&(0,a.jsxs)("span",{children:[o.durationMs,"ms"]}),e[30]=o.durationMs,e[31]=C):C=e[31];let E;e[32]!==n?(E=n("Copy"),e[32]=n,e[33]=E):E=e[33];let R;e[34]!==p||e[35]!==E?(R=(0,a.jsx)("button",{"aria-label":E,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:p,type:"button",children:"\u29C9"}),e[34]=p,e[35]=E,e[36]=R):R=e[36];let O;e[37]!==P||e[38]!==y||e[39]!==N||e[40]!==C||e[41]!==R?(O=(0,a.jsxs)("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[P,y,N,C,R]}),e[37]=P,e[38]=y,e[39]=N,e[40]=C,e[41]=R,e[42]=O):O=e[42];let w;e[43]!==v||e[44]!==b||e[45]!==O||e[46]!==g||e[47]!==x?(w=(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[g,x,v,b,O]}),e[43]=v,e[44]=b,e[45]=O,e[46]=g,e[47]=x,e[48]=w):w=e[48];let T;e[49]!==o.error?(T=o.error!==void 0&&(0,a.jsx)("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:o.error}),e[49]=o.error,e[50]=T):T=e[50];let _;return e[51]!==l||e[52]!==w||e[53]!==T||e[54]!==u?(_=(0,a.jsxs)("li",{className:u,"data-testid":"oc-row",ref:l,children:[w,T]}),e[51]=l,e[52]=w,e[53]=T,e[54]=u,e[55]=_):_=e[55],_},"ba"),Ki=s(t=>{let e=(0,A.c)(62),{focusSeq:o,onClose:r,onShownChange:n,shown:i}=t,l=fe(),c=Fi(),[p,d]=(0,k.useState)(""),u;if(e[0]!==c||e[1]!==o||e[2]!==p||e[3]!==r||e[4]!==n||e[5]!==i||e[6]!==l){let f=p.trim().toLowerCase(),h=c.filter(V=>(i==="errors"?V.status==="error":!0)&&(f===""||`${V.functionPath} ${V.summary} ${V.shardKey}`.toLowerCase().includes(f))).toReversed(),g;e[8]!==c?(g=c.filter(Ui),e[8]=c,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 v;e[12]!==l?(v=l("Operation console"),e[12]=l,e[13]=v):v=e[13];let b;e[14]!==v?(b=(0,a.jsx)("span",{className:"text-xs font-medium",children:v}),e[14]=v,e[15]=b):b=e[15];let P;e[16]!==c.length||e[17]!==l?(P=l("{count} calls",{count:c.length}),e[16]=c.length,e[17]=l,e[18]=P):P=e[18];let y;e[19]!==P?(y=(0,a.jsx)(kt,{variant:"secondary",children:P}),e[19]=P,e[20]=y):y=e[20];let N;e[21]!==m||e[22]!==l?(N=m>0&&(0,a.jsx)(kt,{variant:"destructive",children:l("{count} failed",{count:m})}),e[21]=m,e[22]=l,e[23]=N):N=e[23];let C=i==="errors",E=i==="errors"&&"bg-accent",R;e[24]!==E?(R=Z("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",E),e[24]=E,e[25]=R):R=e[25];let O;e[26]!==n||e[27]!==i?(O=s(()=>{n(i==="errors"?"all":"errors")},"T"),e[26]=n,e[27]=i,e[28]=O):O=e[28];let w;e[29]!==l?(w=l("Errors"),e[29]=l,e[30]=w):w=e[30];let T;e[31]!==R||e[32]!==O||e[33]!==w||e[34]!==C?(T=(0,a.jsx)("button",{"aria-pressed":C,className:R,"data-testid":"oc-filter-errors",onClick:O,type:"button",children:w}),e[31]=R,e[32]=O,e[33]=w,e[34]=C,e[35]=T):T=e[35];let _;e[36]!==l?(_=l("Filter"),e[36]=l,e[37]=_):_=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s(V=>{d(V.target.value)},"I"),e[38]=L):L=e[38];let M;e[39]!==l?(M=l("Filter"),e[39]=l,e[40]=M):M=e[40];let j;e[41]!==p||e[42]!==_||e[43]!==M?(j=(0,a.jsx)(br,{"aria-label":_,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:L,placeholder:M,value:p}),e[41]=p,e[42]=_,e[43]=M,e[44]=j):j=e[44];let z;e[45]!==l?(z=l("Clear"),e[45]=l,e[46]=z):z=e[46];let H;e[47]!==z?(H=(0,a.jsx)("button",{className:"ms-auto rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-clear",onClick:Zi,type:"button",children:z}),e[47]=z,e[48]=H):H=e[48];let F;e[49]!==l?(F=l("Hide"),e[49]=l,e[50]=F):F=e[50];let U;e[51]!==r||e[52]!==F?(U=(0,a.jsx)("button",{"aria-label":F,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]=F,e[53]=U):U=e[53];let D;e[54]!==T||e[55]!==j||e[56]!==H||e[57]!==U||e[58]!==b||e[59]!==y||e[60]!==N?(D=(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[b,y,N,T,j,H,U]}),e[54]=T,e[55]=j,e[56]=H,e[57]=U,e[58]=b,e[59]=y,e[60]=N,e[61]=D):D=e[61],u=(0,a.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,h.length===0?(0,a.jsx)("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):(0,a.jsx)("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:h.map(V=>(0,a.jsx)(zi,{entry:V,focused:V.seq===o},V.seq))})]}),e[0]=c,e[1]=o,e[2]=p,e[3]=r,e[4]=n,e[5]=i,e[6]=l,e[7]=u}else u=e[7];return u},"va");function Ui(t){return t.status==="error"}s(Ui,"xa");function Zi(){so.clear()}s(Zi,"ya");var Wi=s(()=>{let t=(0,A.c)(316),e=fe(),o;t[0]!==e?(o=e("Health score"),t[0]=e,t[1]=o):o=t[1];let r;t[2]!==e?(r=e("Agents"),t[2]=e,t[3]=r):r=t[3];let n;t[4]!==e?(n=e("Evals"),t[4]=e,t[5]=n):n=t[5];let i;t[6]!==e?(i=e("Analytics"),t[6]=e,t[7]=i):i=t[7];let l;t[8]!==e?(l=e("API"),t[8]=e,t[9]=l):l=t[9];let c;t[10]!==e?(c=e("Audit"),t[10]=e,t[11]=c):c=t[11];let p;t[12]!==e?(p=e("Auth audit"),t[12]=e,t[13]=p):p=t[13];let d;t[14]!==e?(d=e("Configuration"),t[14]=e,t[15]=d):d=t[15];let u;t[16]!==e?(u=e("Sessions"),t[16]=e,t[17]=u):u=t[17];let f;t[18]!==e?(f=e("Containers"),t[18]=e,t[19]=f):f=t[19];let h;t[20]!==e?(h=e("Dashboards"),t[20]=e,t[21]=h):h=t[21];let g;t[22]!==e?(g=e("Data"),t[22]=e,t[23]=g):g=t[23];let m;t[24]!==e?(m=e("Deployment health"),t[24]=e,t[25]=m):m=t[25];let x;t[26]!==e?(x=e("Log drains"),t[26]=e,t[27]=x):x=t[27];let v;t[28]!==e?(v=e("Export / Import"),t[28]=e,t[29]=v):v=t[29];let b;t[30]!==e?(b=e("Fan-out"),t[30]=e,t[31]=b):b=t[31];let P;t[32]!==e?(P=e("Files"),t[32]=e,t[33]=P):P=t[33];let y;t[34]!==e?(y=e("Flags"),t[34]=e,t[35]=y):y=t[35];let N;t[36]!==e?(N=e("Functions"),t[36]=e,t[37]=N):N=t[37];let C;t[38]!==e?(C=e("Health"),t[38]=e,t[39]=C):C=t[39];let E;t[40]!==e?(E=e("Home"),t[40]=e,t[41]=E):E=t[41];let R;t[42]!==e?(R=e("Performance"),t[42]=e,t[43]=R):R=t[43];let O;t[44]!==e?(O=e("Issues"),t[44]=e,t[45]=O):O=t[45];let w;t[46]!==e?(w=e("KV"),t[46]=e,t[47]=w):w=t[47];let T;t[48]!==e?(T=e("Logs"),t[48]=e,t[49]=T):T=t[49];let _;t[50]!==e?(_=e("Metrics"),t[50]=e,t[51]=_):_=t[51];let L;t[52]!==e?(L=e("Migrations"),t[52]=e,t[53]=L):L=t[53];let M;t[54]!==e?(M=e("Notifications"),t[54]=e,t[55]=M):M=t[55];let j;t[56]!==e?(j=e("Organizations"),t[56]=e,t[57]=j):j=t[57];let z;t[58]!==e?(z=e("Time Travel"),t[58]=e,t[59]=z):z=t[59];let H;t[60]!==e?(H=e("Mail"),t[60]=e,t[61]=H):H=t[61];let F;t[62]!==e?(F=e("Payments"),t[62]=e,t[63]=F):F=t[63];let U;t[64]!==e?(U=e("Permissions"),t[64]=e,t[65]=U):U=t[65];let D;t[66]!==e?(D=e("Queues"),t[66]=e,t[67]=D):D=t[67];let V;t[68]!==e?(V=e("Reactors"),t[68]=e,t[69]=V):V=t[69];let W;t[70]!==e?(W=e("Realtime"),t[70]=e,t[71]=W):W=t[71];let G;t[72]!==e?(G=e("RLS Policies"),t[72]=e,t[73]=G):G=t[73];let te;t[74]!==e?(te=e("Scheduled"),t[74]=e,t[75]=te):te=t[75];let ae;t[76]!==e?(ae=e("Schema"),t[76]=e,t[77]=ae):ae=t[77];let Q;t[78]!==e?(Q=e("Security"),t[78]=e,t[79]=Q):Q=t[79];let ee;t[80]!==e?(ee=e("Settings"),t[80]=e,t[81]=ee):ee=t[81];let $;t[82]!==e?($=e("SQL editor"),t[82]=e,t[83]=$):$=t[83];let ce;t[84]!==e?(ce=e("Traces"),t[84]=e,t[85]=ce):ce=t[85];let de;t[86]!==e?(de=e("Access Rules"),t[86]=e,t[87]=de):de=t[87];let ge;t[88]!==e?(ge=e("Users"),t[88]=e,t[89]=ge):ge=t[89];let se;t[90]!==e?(se=e("Vectors"),t[90]=e,t[91]=se):se=t[91];let he;t[92]!==e?(he=e("Workflows"),t[92]=e,t[93]=he):he=t[93];let q;t[94]!==o||t[95]!==r||t[96]!==h||t[97]!==g||t[98]!==m||t[99]!==x||t[100]!==v||t[101]!==b||t[102]!==P||t[103]!==y||t[104]!==N||t[105]!==C||t[106]!==n||t[107]!==E||t[108]!==R||t[109]!==O||t[110]!==w||t[111]!==T||t[112]!==_||t[113]!==L||t[114]!==M||t[115]!==j||t[116]!==z||t[117]!==i||t[118]!==H||t[119]!==F||t[120]!==U||t[121]!==D||t[122]!==V||t[123]!==W||t[124]!==G||t[125]!==te||t[126]!==ae||t[127]!==Q||t[128]!==l||t[129]!==ee||t[130]!==$||t[131]!==ce||t[132]!==de||t[133]!==ge||t[134]!==se||t[135]!==he||t[136]!==c||t[137]!==p||t[138]!==d||t[139]!==u||t[140]!==f?(q={advisorHealth:o,agents:r,evals:n,analytics:i,api:l,audit:c,authAudit:p,authConfig:d,authSessions:u,containers:f,dashboards:h,data:g,deploymentHealth:m,drains:x,export:v,fanout:b,files:P,flags:y,functions:N,health:C,home:E,insights:R,issues:O,kv:w,logs:T,metrics:_,migrations:L,notifications:M,organizations:j,pitr:z,mail:H,payments:F,permissions:U,queues:D,reactors:V,realtime:W,rls:G,schedule:te,schema:ae,security:Q,settings:ee,sql:$,traces:ce,storageRules:de,users:ge,vectors:se,workflows:he},t[94]=o,t[95]=r,t[96]=h,t[97]=g,t[98]=m,t[99]=x,t[100]=v,t[101]=b,t[102]=P,t[103]=y,t[104]=N,t[105]=C,t[106]=n,t[107]=E,t[108]=R,t[109]=O,t[110]=w,t[111]=T,t[112]=_,t[113]=L,t[114]=M,t[115]=j,t[116]=z,t[117]=i,t[118]=H,t[119]=F,t[120]=U,t[121]=D,t[122]=V,t[123]=W,t[124]=G,t[125]=te,t[126]=ae,t[127]=Q,t[128]=l,t[129]=ee,t[130]=$,t[131]=ce,t[132]=de,t[133]=ge,t[134]=se,t[135]=he,t[136]=c,t[137]=p,t[138]=d,t[139]=u,t[140]=f,t[141]=q):q=t[141];let me=q,pe;t[142]!==e?(pe=e("Advisors"),t[142]=e,t[143]=pe):pe=t[143];let Ce;t[144]!==e?(Ce=e("Auth"),t[144]=e,t[145]=Ce):Ce=t[145];let be;t[146]!==e?(be=e("Database"),t[146]=e,t[147]=be):be=t[147];let we;t[148]!==e?(we=e("Functions"),t[148]=e,t[149]=we):we=t[149];let Re;t[150]!==e?(Re=e("Observability"),t[150]=e,t[151]=Re):Re=t[151];let Se;t[152]!==e?(Se=e("Operations"),t[152]=e,t[153]=Se):Se=t[153];let _e;t[154]!==e?(_e=e("Overview"),t[154]=e,t[155]=_e):_e=t[155];let Ae;t[156]!==e?(Ae=e("Settings"),t[156]=e,t[157]=Ae):Ae=t[157];let Ve;t[158]!==e?(Ve=e("Storage"),t[158]=e,t[159]=Ve):Ve=t[159];let vo;t[160]!==pe||t[161]!==Ce||t[162]!==be||t[163]!==we||t[164]!==Re||t[165]!==Se||t[166]!==_e||t[167]!==Ae||t[168]!==Ve?(vo={advisors:pe,auth:Ce,database:be,functions:we,observability:Re,operations:Se,overview:_e,settings:Ae,storage:Ve},t[160]=pe,t[161]=Ce,t[162]=be,t[163]=we,t[164]=Re,t[165]=Se,t[166]=_e,t[167]=Ae,t[168]=Ve,t[169]=vo):vo=t[169];let pr=vo,Le;t[170]!==e?(Le=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[170]=e,t[171]=Le):Le=t[171];let He;t[172]!==e?(He=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[172]=e,t[173]=He):He=t[173];let Be;t[174]!==e?(Be=e("Scores recorded by recordEvaluation \u2014 the latest verdict per eval, its trend, and the graded runs behind it."),t[174]=e,t[175]=Be):Be=t[175];let Fe;t[176]!==e?(Fe=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[176]=e,t[177]=Fe):Fe=t[177];let je;t[178]!==e?(je=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[178]=e,t[179]=je):je=t[179];let ze;t[180]!==e?(ze=e("A durable log of admin state-changing operations."),t[180]=e,t[181]=ze):ze=t[181];let Ke;t[182]!==e?(Ke=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[182]=e,t[183]=Ke):Ke=t[183];let Ue;t[184]!==e?(Ue=e("Enabled plugins and session config (read-only)."),t[184]=e,t[185]=Ue):Ue=t[185];let Ze;t[186]!==e?(Ze=e("Browse and revoke active sessions across all users."),t[186]=e,t[187]=Ze):Ze=t[187];let We;t[188]!==e?(We=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[188]=e,t[189]=We):We=t[189];let qe;t[190]!==e?(qe=e("Chart widgets backed by saved read-only SQL queries."),t[190]=e,t[191]=qe):qe=t[191];let $e;t[192]!==e?($e=e("Browse and edit rows across your shard and global tables."),t[192]=e,t[193]=$e):$e=t[193];let Ge;t[194]!==e?(Ge=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[194]=e,t[195]=Ge):Ge=t[195];let Qe;t[196]!==e?(Qe=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[196]=e,t[197]=Qe):Qe=t[197];let Ye;t[198]!==e?(Ye=e("Export a shard to NDJSON, or import rows from it."),t[198]=e,t[199]=Ye):Ye=t[199];let Je;t[200]!==e?(Je=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[200]=e,t[201]=Je):Je=t[201];let Xe;t[202]!==e?(Xe=e("Browse objects in your R2 storage buckets."),t[202]=e,t[203]=Xe):Xe=t[203];let et;t[204]!==e?(et=e("Inspect feature flags and their live evaluation under a targeting context."),t[204]=e,t[205]=et):et=t[205];let tt;t[206]!==e?(tt=e("Run registered queries, mutations, and actions."),t[206]=e,t[207]=tt):tt=t[207];let ot;t[208]!==e?(ot=e("At-a-glance connection, error, and shard signals."),t[208]=e,t[209]=ot):ot=t[209];let rt;t[210]!==e?(rt=e("Connection, health, and advisor summary for your deployment."),t[210]=e,t[211]=rt):rt=t[211];let nt;t[212]!==e?(nt=e("Surface slow functions, error spikes, and cache problems."),t[212]=e,t[213]=nt):nt=t[213];let at;t[214]!==e?(at=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[214]=e,t[215]=at):at=t[215];let st;t[216]!==e?(st=e("A live stream of recent function logs."),t[216]=e,t[217]=st):st=t[217];let it;t[218]!==e?(it=e("Per-shard health and aggregate metrics."),t[218]=e,t[219]=it):it=t[219];let lt;t[220]!==e?(lt=e("Review migration status and run them."),t[220]=e,t[221]=lt):lt=t[221];let ct;t[222]!==e?(ct=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[222]=e,t[223]=ct):ct=t[223];let dt;t[224]!==e?(dt=e("Browse and manage organizations, members, and invitations."),t[224]=e,t[225]=dt):dt=t[225];let pt;t[226]!==e?(pt=e("Restore a shard to a point in the last 30 days."),t[226]=e,t[227]=pt):pt=t[227];let ut;t[228]!==e?(ut=e("Email your app sent, captured in dev."),t[228]=e,t[229]=ut):ut=t[229];let mt;t[230]!==e?(mt=e("Synced customers, subscriptions, and webhook events."),t[230]=e,t[231]=mt):mt=t[231];let ft;t[232]!==e?(ft=e("Inspect access policies per table, and probe a function as any identity."),t[232]=e,t[233]=ft):ft=t[233];let gt;t[234]!==e?(gt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[234]=e,t[235]=gt):gt=t[235];let ht;t[236]!==e?(ht=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[236]=e,t[237]=ht):ht=t[237];let vt;t[238]!==e?(vt=e("Active WebSocket subscriptions on this shard."),t[238]=e,t[239]=vt):vt=t[239];let bt;t[240]!==e?(bt=e("Inspect row-level-security policies and roles, per table."),t[240]=e,t[241]=bt):bt=t[241];let xt;t[242]!==e?(xt=e("Inspect and cancel scheduled jobs."),t[242]=e,t[243]=xt):xt=t[243];let yt;t[244]!==e?(yt=e("Inspect each table and its columns."),t[244]=e,t[245]=yt):yt=t[245];let Pt;t[246]!==e?(Pt=e("Review admin gates, credentials, and log redaction."),t[246]=e,t[247]=Pt):Pt=t[247];let Ct;t[248]!==e?(Ct=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[248]=e,t[249]=Ct):Ct=t[249];let Rt;t[250]!==e?(Rt=e("Run read-only SQL against a shard."),t[250]=e,t[251]=Rt):Rt=t[251];let St;t[252]!==e?(St=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[252]=e,t[253]=St):St=t[253];let Nt;t[254]!==e?(Nt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[254]=e,t[255]=Nt):Nt=t[255];let Tt;t[256]!==e?(Tt=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[256]=e,t[257]=Tt):Tt=t[257];let wt;t[258]!==e?(wt=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[258]=e,t[259]=wt):wt=t[259];let Et;t[260]!==e?(Et=e("Browse Vectorize indexes and run similarity searches."),t[260]=e,t[261]=Et):Et=t[261];let Ot;t[262]!==e?(Ot=e("Inspect declared Cloudflare Workflows and their bindings."),t[262]=e,t[263]=Ot):Ot=t[263];let bo;t[264]!==Nt||t[265]!==Tt||t[266]!==wt||t[267]!==Et||t[268]!==Ot||t[269]!==Le||t[270]!==He||t[271]!==Be||t[272]!==Fe||t[273]!==je||t[274]!==ze||t[275]!==Ke||t[276]!==Ue||t[277]!==Ze||t[278]!==We||t[279]!==qe||t[280]!==$e||t[281]!==Ge||t[282]!==Qe||t[283]!==Ye||t[284]!==Je||t[285]!==Xe||t[286]!==et||t[287]!==tt||t[288]!==ot||t[289]!==rt||t[290]!==nt||t[291]!==at||t[292]!==st||t[293]!==it||t[294]!==lt||t[295]!==ct||t[296]!==dt||t[297]!==pt||t[298]!==ut||t[299]!==mt||t[300]!==ft||t[301]!==gt||t[302]!==ht||t[303]!==vt||t[304]!==bt||t[305]!==xt||t[306]!==yt||t[307]!==Pt||t[308]!==Ct||t[309]!==Rt||t[310]!==St?(bo={advisorHealth:Le,agents:He,evals:Be,analytics:Fe,api:je,audit:ze,authAudit:Ke,authConfig:Ue,authSessions:Ze,containers:We,dashboards:qe,data:$e,deploymentHealth:Ge,drains:Qe,export:Ye,fanout:Je,files:Xe,flags:et,functions:tt,health:ot,home:rt,insights:nt,issues:at,logs:st,metrics:it,migrations:lt,notifications:ct,organizations:dt,pitr:pt,mail:ut,payments:mt,permissions:ft,queues:gt,reactors:ht,realtime:vt,rls:bt,schedule:xt,schema:yt,security:Pt,settings:Ct,sql:Rt,kv:St,storageRules:Nt,traces:Tt,users:wt,vectors:Et,workflows:Ot},t[264]=Nt,t[265]=Tt,t[266]=wt,t[267]=Et,t[268]=Ot,t[269]=Le,t[270]=He,t[271]=Be,t[272]=Fe,t[273]=je,t[274]=ze,t[275]=Ke,t[276]=Ue,t[277]=Ze,t[278]=We,t[279]=qe,t[280]=$e,t[281]=Ge,t[282]=Qe,t[283]=Ye,t[284]=Je,t[285]=Xe,t[286]=et,t[287]=tt,t[288]=ot,t[289]=rt,t[290]=nt,t[291]=at,t[292]=st,t[293]=it,t[294]=lt,t[295]=ct,t[296]=dt,t[297]=pt,t[298]=ut,t[299]=mt,t[300]=ft,t[301]=gt,t[302]=ht,t[303]=vt,t[304]=bt,t[305]=xt,t[306]=yt,t[307]=Pt,t[308]=Ct,t[309]=Rt,t[310]=St,t[311]=bo):bo=t[311];let ur=bo,xo;return t[312]!==pr||t[313]!==ur||t[314]!==me?(xo={groupLabel:pr,tabDescription:ur,tabLabel:me},t[312]=pr,t[313]=ur,t[314]=me,t[315]=xo):xo=t[315],xo},"wa"),qi=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,a.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"ka"),$i=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,a.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"Ma"),Gi=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"Na"),Qi=[{Icon:qi,value:"system"},{Icon:$i,value:"light"},{Icon:Gi,value:"dark"}],Yi=s(()=>{let t=(0,A.c)(19),{theme:e,setTheme:o}=ai(),r=fe(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let i;t[2]!==r?(i=r("Light theme"),t[2]=r,t[3]=i):i=t[3];let l;t[4]!==r?(l=r("System theme"),t[4]=r,t[5]=l):l=t[5];let c;t[6]!==n||t[7]!==i||t[8]!==l?(c={dark:n,light:i,system:l},t[6]=n,t[7]=i,t[8]=l,t[9]=c):c=t[9];let p=c,d;t[10]!==r?(d=r("Theme"),t[10]=r,t[11]=d):d=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=Qi.map(h=>{let{Icon:g,value:m}=h,x=e===m;return(0,a.jsxs)("button",{"aria-checked":x,"aria-label":p[m],className:Z("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",x?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:s(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[x&&(0,a.jsx)(Vn.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,a.jsx)("span",{className:"relative",children:(0,a.jsx)(g,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let f;return t[16]!==d||t[17]!==u?(f=(0,a.jsx)("div",{"aria-label":d,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=d,t[17]=u,t[18]=f):f=t[18],f},"Ca"),Ji=s(t=>{let e=(0,A.c)(23),{domain:o,onOpenCommandPalette:r,page:n}=t,i=fe(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(ki,{className:"-ms-1"}),e[0]=l):l=e[0];let c;e[1]!==i?(c=i("Breadcrumb"),e[1]=i,e[2]=c):c=e[2];let p;e[3]!==o?(p=(0,a.jsx)("span",{className:"text-muted-foreground",children:o}),e[3]=o,e[4]=p):p=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=d):d=e[5];let u;e[6]!==n?(u=(0,a.jsx)("span",{className:"font-medium text-foreground",children:n}),e[6]=n,e[7]=u):u=e[7];let f;e[8]!==c||e[9]!==p||e[10]!==u?(f=(0,a.jsxs)("nav",{"aria-label":c,className:"flex items-center gap-1.5 text-[13px]",children:[p,d,u]}),e[8]=c,e[9]=p,e[10]=u,e[11]=f):f=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=h):h=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,a.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),e[15]=m):m=e[15];let x;e[16]!==r||e[17]!==g?(x=(0,a.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:r,type:"button",children:[h,g,m]}),e[16]=r,e[17]=g,e[18]=x):x=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,a.jsx)(Yi,{})}),e[19]=v):v=e[19];let b;return e[20]!==x||e[21]!==f?(b=(0,a.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[l,f,x,v]}),e[20]=x,e[21]=f,e[22]=b):b=e[22],b},"Pa"),Xi=s(t=>{let e=(0,A.c)(4),{console:o}=zo(),r,n;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:c}=l;c instanceof HTMLElement&&(c.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(c.tagName))||(l.preventDefault(),t())},"r");return globalThis.addEventListener("keydown",i),()=>{globalThis.removeEventListener("keydown",i)}},"a"),n=[o,t],e[0]=o,e[1]=t,e[2]=r,e[3]=n):(r=e[2],n=e[3]),(0,k.useEffect)(r,n)},"_a"),X=s((t,e)=>(0,k.lazy)(()=>t().then(o=>({default:o[e]}))),"E"),el=X(()=>import("./chunk-C3UMVVZD.js"),"InsightsPanel"),tl=(0,k.lazy)(()=>import("./chunk-AO3LNXNG.js")),ol=(0,k.lazy)(()=>import("./chunk-6MJU7KID.js")),rl=(0,k.lazy)(()=>import("./chunk-ZWDPWM3I.js")),nl=(0,k.lazy)(()=>import("./chunk-FUXL36RK.js")),al=X(()=>import("./chunk-DX6FAHR2.js"),"AnalyticsPanel"),sl=(0,k.lazy)(()=>import("./chunk-XSNWSHZ6.js")),il=(0,k.lazy)(()=>import("./chunk-ZNYTH4BS.js")),ll=(0,k.lazy)(()=>import("./chunk-B6BFVYFA.js")),cl=(0,k.lazy)(()=>import("./chunk-AWN2GXCK.js")),dl=(0,k.lazy)(()=>import("./chunk-3BN3N2CX.js")),pl=X(()=>import("./chunk-WD22LMYA.js"),"UsersPanel"),ul=(0,k.lazy)(()=>import("./chunk-BNIDGSDE.js")),ml=X(()=>import("./chunk-PGV42T2U.js"),"DeploymentHealthPanel"),fl=X(()=>import("./chunk-HBWT2BXO.js"),"TableEditor"),gl=X(()=>import("./chunk-DK7IUHFW.js"),"ExportImportPanel"),hl=(0,k.lazy)(()=>import("./chunk-PAZ72JHQ.js")),vl={data:Bn,migrations:Fn},bl=X(()=>import("./chunk-BI2PP4AE.js"),"PitrPanel"),xl=(0,k.lazy)(()=>import("./chunk-NO5VGTWP.js")),yl=(0,k.lazy)(()=>import("./chunk-N6CQJUDY.js")),Pl=X(()=>import("./chunk-VXQJWD3F.js"),"FunctionRunner"),Cl=X(()=>import("./chunk-DLF7WRVK.js"),"FunctionStatsPanel"),Rl=(0,k.lazy)(()=>import("./chunk-PTRUAQYA.js")),Sl=X(()=>import("./chunk-I57A5YB6.js"),"AuditPanel"),Nl=(0,k.lazy)(()=>import("./chunk-E7TOMONS.js")),Tl=(0,k.lazy)(()=>import("./chunk-6DLHIMOI.js").then(t=>({default:t.LogsPanel}))),wl=X(()=>import("./chunk-Q6PUWGXK.js"),"MailPanel"),El=X(()=>import("./chunk-VBDYQCRQ.js"),"SchedulePanel"),Ol=(0,k.lazy)(()=>import("./chunk-367RGUUX.js")),kl=(0,k.lazy)(()=>import("./chunk-Y76TQLLR.js")),Dl=X(()=>import("./chunk-QOSKGDBH.js"),"KvBrowser"),Ml=(0,k.lazy)(()=>import("./chunk-N4GEA5GK.js")),Il=X(()=>import("./chunk-ZTQSA34U.js"),"PaymentsPanel"),_l=X(()=>import("./chunk-6A34IMQS.js"),"PermissionsPanel"),Al=(0,k.lazy)(()=>import("./chunk-BWRPOIEI.js")),Vl=(0,k.lazy)(()=>import("./chunk-CFN6A74K.js")),Ll=(0,k.lazy)(()=>import("./chunk-2FGXE3E5.js")),Hl=X(()=>import("./chunk-AJU3V2XW.js"),"HealthPanel"),Bl=X(()=>import("./chunk-KE5T44IA.js"),"MetricsPanel"),Fl=X(()=>import("./chunk-ORJB5XQH.js"),"SchemaViewer"),jl=X(()=>import("./chunk-IZDX3F65.js"),"SettingsPanel"),zl=X(()=>import("./chunk-7VNOCXWO.js"),"SqlEditorPanel"),Kl=X(()=>import("./chunk-7VNHUUK4.js"),"FileBrowser"),Ul=(0,k.lazy)(()=>import("./chunk-QIPTFNQK.js")),Zl=(0,k.lazy)(()=>import("./chunk-CMO25UOM.js")),Wl=(0,k.lazy)(()=>import("./chunk-U7YOMGYN.js")),ql=X(()=>import("./chunk-DAAYIBSL.js"),"VectorBrowser"),$l=(0,k.lazy)(()=>import("./chunk-W5YA2J66.js")),Hs=(0,k.createContext)(null),Gl={analytics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:(0,a.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,a.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,a.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,a.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,a.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,a.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,a.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,a.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,a.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,a.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,a.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,a.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:(0,a.jsx)("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),health:(0,a.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,a.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,a.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,a.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,a.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,a.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,a.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,a.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,a.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,a.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,a.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,a.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:(0,a.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,a.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,a.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,a.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,a.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),advisorHealth:(0,a.jsx)("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:(0,a.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,a.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,a.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,a.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,a.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,a.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},Ts=[{key:"overview",tabs:["home","dashboards"]},{key:"database",tabs:["data","sql","schema","migrations","vectors","pitr","export"]},{key:"functions",tabs:["functions","api","workflows","agents","queues"]},{key:"auth",tabs:["users","organizations","authSessions","authAudit","authConfig"]},{key:"storage",tabs:["files","storageRules","kv"]},{key:"observability",tabs:["issues","logs","traces","evals","audit","realtime","reactors","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["advisorHealth","security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags"]},{key:"settings",tabs:["settings"]}],Ql={analytics:"analytics",authAudit:"auth",authConfig:"auth",authSessions:"auth",containers:"containers",files:"storage",flags:"flags",kv:"kv",mail:"mail",notifications:"notifications",organizations:"auth",payments:"payments",queues:"queues",schedule:"scheduler",storageRules:"storage",users:"auth",vectors:"vectors",workflows:"workflows"},ws=s((t,e)=>{let o=Ql[t];return o===void 0||e[o]},"Rt"),jr=s(t=>{let e=(0,A.c)(2),{tab:o}=t,r=Gl[o],n;return e[0]!==r?(n=(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=n):n=e[1],n},"Nt"),Yl=s(t=>t,"Po"),Bs=Yl(["home","data","sql","functions","api","workflows","agents","queues","containers","schema","migrations","vectors","export","pitr","users","organizations","authSessions","authAudit","authConfig","files","storageRules","kv","dashboards","metrics","analytics","health","deploymentHealth","advisorHealth","security","rls","permissions","insights","issues","logs","traces","evals","reactors","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","settings"]),Jl=new Set(["api","data","migrations","sql"]),Xl=s(t=>{let e=t.split("/").findLast(Boolean)??"";return Bs.includes(e)?e:"home"},"To"),ec=s(t=>{let e=(0,A.c)(19),{chrome:o,connected:r}=t,n=fe(),i;e[0]!==n?(i=n("admin token"),e[0]=n,e[1]=i):i=e[1];let l;e[2]!==i?(l=(0,a.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 c;e[4]!==o.onTokenChange||e[5]!==o.token?(c=(0,a.jsx)(br,{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]=c):c=e[6];let p;e[7]!==r||e[8]!==n?(p=r&&(0,a.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),n("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=n,e[9]=p):p=e[9];let d;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(d=r&&(0,a.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:n("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=n,e[13]=d):d=e[13];let u;return e[14]!==l||e[15]!==c||e[16]!==p||e[17]!==d?(u=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[l,c,p,d]}),e[14]=l,e[15]=c,e[16]=p,e[17]=d,e[18]=u):u=e[18],u},"Lo"),tc=s(t=>{let e=(0,A.c)(25),{current:o,group:r,groupLabel:n,selectTab:i,tabDescription:l,tabLabel:c}=t,p=r.tabs.includes(o)?"page":void 0,d=n[r.key],u=r.tabs[0],f;e[0]!==u?(f=(0,a.jsx)(jr,{tab:u}),e[0]=u,e[1]=f):f=e[1];let h;e[2]!==p||e[3]!==d||e[4]!==f?(h=(0,a.jsx)(_s,{"aria-current":p,"aria-label":d,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:f}),e[2]=p,e[3]=d,e[4]=f,e[5]=h):h=e[5];let g=n[r.key],m;e[6]!==g?(m=(0,a.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:g}),e[6]=g,e[7]=m):m=e[7];let x;if(e[8]!==o||e[9]!==r.tabs||e[10]!==i||e[11]!==l||e[12]!==c){let P;e[14]!==o||e[15]!==i||e[16]!==l||e[17]!==c?(P=s(y=>(0,a.jsxs)("button",{"aria-current":o===y?"page":void 0,className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100","data-tab":y,"data-testid":`dash-tab-${y}`,onClick:i,title:l[y],type:"button",children:[(0,a.jsx)(jr,{tab:y}),(0,a.jsx)("span",{children:c[y]})]},y),"g"),e[14]=o,e[15]=i,e[16]=l,e[17]=c,e[18]=P):P=e[18],x=r.tabs.map(P),e[8]=o,e[9]=r.tabs,e[10]=i,e[11]=l,e[12]=c,e[13]=x}else x=e[13];let v;e[19]!==m||e[20]!==x?(v=(0,a.jsxs)(As,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[m,x]}),e[19]=m,e[20]=x,e[21]=v):v=e[21];let b;return e[22]!==h||e[23]!==v?(b=(0,a.jsxs)(Is,{children:[h,v]}),e[22]=h,e[23]=v,e[24]=b):b=e[24],b},"Ao"),oc=s(t=>{let e=(0,A.c)(45),{chrome:o,collapsed:r,connected:n}=t,i=fe();if(o===null){let y;e[0]!==i?(y=i("Admin"),e[0]=i,e[1]=y):y=e[1];let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=(0,a.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=N):N=e[2];let C;e[3]!==i?(C=i("Admin"),e[3]=i,e[4]=C):C=e[4];let E;e[5]!==C?(E=(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:C}),e[5]=C,e[6]=E):E=e[6];let R;e[7]!==i?(R=i("Studio"),e[7]=i,e[8]=R):R=e[8];let O;e[9]!==R?(O=(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:R}),e[9]=R,e[10]=O):O=e[10];let w;e[11]!==E||e[12]!==O?(w=(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[E,O]}),e[11]=E,e[12]=O,e[13]=w):w=e[13];let T;return e[14]!==y||e[15]!==w?(T=(0,a.jsxs)(Ls,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[N,w]}),e[14]=y,e[15]=w,e[16]=T):T=e[16],T}let l=r?"mx-auto size-8 justify-center":"w-full p-2",c;e[17]!==l?(c=Z("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]=c):c=e[18];let p;e[19]!==n||e[20]!==i?(p=i(n?"Connected":"Not connected"),e[19]=n,e[20]=i,e[21]=p):p=e[21];let d=n?"bg-success":"bg-muted-foreground/50",u;e[22]!==d?(u=Z("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",d),e[22]=d,e[23]=u):u=e[23];let f;e[24]!==u?(f=(0,a.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,a.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=f):f=e[25];let h;e[26]!==r||e[27]!==n||e[28]!==i?(h=!r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-[13px] font-medium",children:i("Admin")}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:i(n?"Connected":"Not connected")})]}),(0,a.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=n,e[28]=i,e[29]=h):h=e[29];let g;e[30]!==c||e[31]!==p||e[32]!==f||e[33]!==h?(g=(0,a.jsxs)(_s,{className:c,"data-testid":"dash-app-connect",title:p,children:[f,h]}),e[30]=c,e[31]=p,e[32]=f,e[33]=h,e[34]=g):g=e[34];let m=r?"end":"start",x=r?"right":"top",v;e[35]!==o||e[36]!==n?(v=(0,a.jsx)(ec,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=v):v=e[37];let b;e[38]!==x||e[39]!==v||e[40]!==m?(b=(0,a.jsx)(As,{align:m,keepMounted:!0,side:x,children:v}),e[38]=x,e[39]=v,e[40]=m,e[41]=b):b=e[41];let P;return e[42]!==b||e[43]!==g?(P=(0,a.jsxs)(Is,{children:[g,b]}),e[42]=b,e[43]=g,e[44]=P):P=e[44],P},"Ro"),rc=s(t=>{let e=(0,A.c)(28),{chrome:o,connected:r,current:n,groupLabel:i,groups:l,selectTab:c,tabDescription:p,tabLabel:d}=t,u=fe(),{state:f}=dr(),h=f==="collapsed",g=h&&"justify-center px-0",m;e[0]!==g?(m=Z("flex items-center gap-2.5 px-1.5 py-1",g),e[0]=g,e[1]=m):m=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(ci,{className:"size-9 shrink-0 text-foreground"}),e[2]=x):x=e[2];let v;e[3]!==h||e[4]!==r||e[5]!==u?(v=!h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,a.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,a.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:u("Studio")})]}),(0,a.jsx)(kt,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:u(r?"Live":"Local")})]}),e[3]=h,e[4]=r,e[5]=u,e[6]=v):v=e[6];let b;e[7]!==m||e[8]!==v?(b=(0,a.jsx)(Mi,{children:(0,a.jsxs)("div",{className:m,children:[x,v]})}),e[7]=m,e[8]=v,e[9]=b):b=e[9];let P;e[10]!==h||e[11]!==n||e[12]!==i||e[13]!==l||e[14]!==c||e[15]!==p||e[16]!==d?(P=h?l.map(E=>(0,a.jsx)(tc,{current:n,group:E,groupLabel:i,selectTab:c,tabDescription:p,tabLabel:d},E.key)):l.map(E=>(0,a.jsxs)(Ai,{children:[(0,a.jsx)(Vi,{className:"text-[11px] font-medium tracking-wider uppercase",children:i[E.key]}),(0,a.jsx)(Li,{children:(0,a.jsx)(Ss,{children:E.tabs.map(R=>(0,a.jsx)(Ns,{children:(0,a.jsxs)(Ls,{className:"data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]","data-tab":R,"data-testid":`dash-tab-${R}`,isActive:n===R,onClick:c,title:p[R],tooltip:p[R],children:[(0,a.jsx)(jr,{tab:R}),(0,a.jsx)("span",{children:d[R]})]})},R))})})]},E.key)),e[10]=h,e[11]=n,e[12]=i,e[13]=l,e[14]=c,e[15]=p,e[16]=d,e[17]=P):P=e[17];let y;e[18]!==P?(y=(0,a.jsx)(_i,{children:P}),e[18]=P,e[19]=y):y=e[19];let N;e[20]!==o||e[21]!==h||e[22]!==r?(N=(0,a.jsx)(Ii,{children:(0,a.jsx)(Ss,{children:(0,a.jsx)(Ns,{children:(0,a.jsx)(oc,{chrome:o,collapsed:h,connected:r})})})}),e[20]=o,e[21]=h,e[22]=r,e[23]=N):N=e[23];let C;return e[24]!==b||e[25]!==y||e[26]!==N?(C=(0,a.jsxs)(Oi,{collapsible:"icon",variant:"inset",children:[b,y,N]}),e[24]=b,e[25]=y,e[26]=N,e[27]=C):C=e[27],C},"Eo"),Fs=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(jo,{className:"h-8 w-40"}),(0,a.jsx)(jo,{className:"h-8 w-24"})]}),(0,a.jsx)(jo,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"es"),nc=s(()=>{let t=(0,A.c)(64),e=fe(),o=to(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:dc},t[0]=r):r=t[0];let n=Yr(r),i,l;t[1]!==n?(i=Xl(n),l=Jl.has(i),t[1]=n,t[2]=i,t[3]=l):(i=t[2],l=t[3]);let c=l,p=Xr(),d=p?.toggle;Xi(d);let u=Ln(),{groupLabel:f,tabDescription:h,tabLabel:g}=Wi(),m;t[4]!==u?(m=s(se=>({...se,tabs:se.tabs.filter(he=>ws(he,u))}),"h"),t[4]=u,t[5]=m):m=t[5];let x=Ts.map(m).filter(pc),v,b;t[6]!==i||t[7]!==u||t[8]!==o?(v=s(()=>{ws(i,u)||Qt(o({replace:!0,to:"/home"}))},"x"),b=[i,u,o],t[6]=i,t[7]=u,t[8]=o,t[9]=v,t[10]=b):(v=t[9],b=t[10]),(0,k.useEffect)(v,b);let P;t[11]!==o?(P=s(se=>{Qt(o({to:`/${se.currentTarget.dataset.tab??""}`}))},"g"),t[11]=o,t[12]=P):P=t[12];let y=P,N,C;t[13]!==i||t[14]!==g?(N=s(()=>{typeof document<"u"&&(document.title=`${g[i]} \xB7 lunora`)},"N"),C=[i,g],t[13]=i,t[14]=g,t[15]=N,t[16]=C):(N=t[15],C=t[16]),(0,k.useEffect)(N,C);let E=x.find(se=>se.tabs.includes(i))??Ts[0],R;t[17]!==f||t[18]!==g?(R=s(se=>se.tabs.map(he=>({group:f[se.key],label:g[he],to:`/${he}`})),"M"),t[17]=f,t[18]=g,t[19]=R):R=t[19];let O=x.flatMap(R),w=d===void 0?O:[...O,{group:e("Operations"),label:e("Toggle operation console"),run:d}],T=(0,k.use)(Hs),_=T!==null&&T.token!=="",L;t[20]!==w?(L=(0,a.jsx)(Cs,{items:w}),t[20]=w,t[21]=L):L=t[21];let M;t[22]!==T||t[23]!==_||t[24]!==i||t[25]!==f||t[26]!==y||t[27]!==h||t[28]!==g||t[29]!==x?(M=(0,a.jsx)(rc,{chrome:T,connected:_,current:i,groupLabel:f,groups:x,selectTab:y,tabDescription:h,tabLabel:g}),t[22]=T,t[23]=_,t[24]=i,t[25]=f,t[26]=y,t[27]=h,t[28]=g,t[29]=x,t[30]=M):M=t[30];let j=f[E.key],z=g[i],H;t[31]!==j||t[32]!==z?(H=(0,a.jsx)(Ji,{domain:j,onOpenCommandPalette:Ps,page:z}),t[31]=j,t[32]=z,t[33]=H):H=t[33];let F;t[34]!==T?.rulesInstalled?(F=T?.rulesInstalled===!1&&(0,a.jsx)(ui,{}),t[34]=T?.rulesInstalled,t[35]=F):F=t[35];let U=`dash-tab-${i}`,D=c?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",V=g[i],W;t[36]!==e||t[37]!==V?(W=e("{title} failed",{title:V}),t[36]=e,t[37]=V,t[38]=W):W=t[38];let G=g[i],te;t[39]!==e?(te=e("Try again"),t[39]=e,t[40]=te):te=t[40];let ae;t[41]===Symbol.for("react.memo_cache_sentinel")?(ae=(0,a.jsx)(k.Suspense,{fallback:(0,a.jsx)(Fs,{}),children:(0,a.jsx)($r,{})}),t[41]=ae):ae=t[41];let Q;t[42]!==i||t[43]!==W||t[44]!==G||t[45]!==te?(Q=(0,a.jsx)(Ko,{fallbackTitle:W,label:G,retryLabel:te,children:ae},i),t[42]=i,t[43]=W,t[44]=G,t[45]=te,t[46]=Q):Q=t[46];let ee;t[47]!==D||t[48]!==Q?(ee=(0,a.jsx)("div",{className:D,children:Q}),t[47]=D,t[48]=Q,t[49]=ee):ee=t[49];let $;t[50]!==p?($=p?.open===!0&&(0,a.jsx)(Ki,{focusSeq:p.focusSeq,onClose:p.close,onShownChange:p.setShown,shown:p.shown}),t[50]=p,t[51]=$):$=t[51];let ce;t[52]!==U||t[53]!==ee||t[54]!==$?(ce=(0,a.jsxs)("div",{"aria-labelledby":U,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[ee,$]}),t[52]=U,t[53]=ee,t[54]=$,t[55]=ce):ce=t[55];let de;t[56]!==H||t[57]!==F||t[58]!==ce?(de=(0,a.jsxs)(Di,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[H,F,ce]}),t[56]=H,t[57]=F,t[58]=ce,t[59]=de):de=t[59];let ge;return t[60]!==M||t[61]!==de||t[62]!==L?(ge=(0,a.jsxs)(Ei,{className:"min-h-0 flex-1","data-testid":"lunora-studio",children:[L,M,de]}),t[60]=M,t[61]=de,t[62]=L,t[63]=ge):ge=t[63],ge},"Io"),ac=s(()=>{let t=(0,A.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(Jr,{children:(0,a.jsx)(nc,{})}),t[0]=e):e=t[0],e},"$o"),sc=s(t=>{let e=(0,A.c)(5),{initialShardKey:o,schemaEditable:r}=t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];let i=Wr(n),{table:l}=i,c=typeof l=="string"?l:void 0,p;return e[1]!==o||e[2]!==c||e[3]!==r?(p=(0,a.jsx)(Fl,{initialShardKey:o,initialTable:c,schemaEditable:r}),e[1]=o,e[2]=c,e[3]=r,e[4]=p):p=e[4],p},"Ho"),ic=s(()=>{let t=(0,A.c)(3),e=to(),o,r;return t[0]!==e?(o=s(()=>{Qt(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,k.useEffect)(o,r),null},"Bo"),lc=s(({analyticsQuery:t,basePath:e,dataEditable:o=!1,functions:r,initialShardKey:n,openApiSpec:i,openRpcSpec:l,runAsIdentity:c=!1,schemaEditable:p=!1,scheduledCancel:d,scheduledCron:u,scheduledLoad:f})=>{let h=qr({component:ac}),g={agents:(0,a.jsx)(nl,{initialShardKey:n}),analytics:(0,a.jsx)(al,{runQuery:t}),api:(0,a.jsx)(sl,{functions:r,initialShardKey:n,openApiSpec:i,openRpcSpec:l}),audit:(0,a.jsx)(Sl,{initialShardKey:n}),authAudit:(0,a.jsx)(il,{}),authConfig:(0,a.jsx)(ll,{}),authSessions:(0,a.jsx)(cl,{}),containers:(0,a.jsx)(ul,{}),dashboards:(0,a.jsx)(Vl,{initialShardKey:n}),data:(0,a.jsx)(fl,{editable:o,initialShardKey:n}),deploymentHealth:(0,a.jsx)(ml,{}),drains:(0,a.jsx)(Nl,{}),export:(0,a.jsx)(gl,{initialShardKey:n}),fanout:(0,a.jsx)(Ll,{initialShardKey:n}),files:(0,a.jsx)(Kl,{}),kv:(0,a.jsx)(Dl,{}),flags:(0,a.jsx)(xl,{initialShardKey:n}),reactors:(0,a.jsx)(yl,{initialShardKey:n}),functions:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Cl,{functions:r,initialShardKey:n}),(0,a.jsx)(Pl,{functions:r,runAsIdentity:c})]}),health:(0,a.jsx)(Hl,{initialShardKey:n}),home:(0,a.jsx)(Hn,{initialShardKey:n}),insights:(0,a.jsx)(el,{initialShardKey:n}),issues:(0,a.jsx)(Rl,{initialShardKey:n}),logs:(0,a.jsx)(Tl,{initialShardKey:n}),traces:(0,a.jsx)(Zl,{initialShardKey:n}),evals:(0,a.jsx)(Wl,{initialShardKey:n}),metrics:(0,a.jsx)(Bl,{initialShardKey:n}),migrations:(0,a.jsx)(hl,{initialShardKey:n}),notifications:(0,a.jsx)(Ml,{}),organizations:(0,a.jsx)(dl,{}),permissions:(0,a.jsx)(_l,{functions:r,runAsIdentity:c,schemaEditable:p}),pitr:(0,a.jsx)(bl,{initialShardKey:n}),mail:(0,a.jsx)(wl,{}),payments:(0,a.jsx)(Il,{}),queues:(0,a.jsx)(Al,{}),realtime:(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(Ol,{initialShardKey:n}),(0,a.jsx)(kl,{})]}),rls:(0,a.jsx)(tl,{}),schedule:(0,a.jsx)(El,{loadCronJobs:u,scheduledCancel:d,scheduledLoad:f}),schema:(0,a.jsx)(sc,{initialShardKey:n,schemaEditable:p}),advisorHealth:(0,a.jsx)(ol,{}),security:(0,a.jsx)(rl,{}),settings:(0,a.jsx)(jl,{initialShardKey:n}),sql:(0,a.jsx)(zl,{initialShardKey:n}),storageRules:(0,a.jsx)(Ul,{}),users:(0,a.jsx)(pl,{}),vectors:(0,a.jsx)(ql,{}),workflows:(0,a.jsx)($l,{})},m=hr({component:s(()=>g.home,"component"),getParentRoute:s(()=>h,"getParentRoute"),path:"/"}),x=Bs.map(P=>hr({component:s(()=>g[P],"component"),getParentRoute:s(()=>h,"getParentRoute"),path:`/${P}`,validateSearch:vl[P]})),v=h.addChildren([m,...x]),b="window"in globalThis?Ur():Zr({initialEntries:["/home"]});return Gr({...e===void 0||e==="/"?{}:{basepath:e},defaultNotFoundComponent:ic,defaultPendingComponent:Fs,defaultPendingMinMs:0,defaultPendingMs:0,history:b,routeTree:v})},"zo"),cc=s(t=>{let e=(0,A.c)(18),{analyticsQuery:o,basePath:r,chrome:n,dataEditable:i,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:u,schemaEditable:f,scheduledCancel:h,scheduledCron:g,scheduledLoad:m}=t,x;e[0]!==o||e[1]!==r||e[2]!==i||e[3]!==l||e[4]!==c||e[5]!==p||e[6]!==d||e[7]!==u||e[8]!==h||e[9]!==g||e[10]!==m||e[11]!==f?(x=lc({analyticsQuery:o,basePath:r,dataEditable:i,functions:l,initialShardKey:c,openApiSpec:p,openRpcSpec:d,runAsIdentity:u,schemaEditable:f,scheduledCancel:h,scheduledCron:g,scheduledLoad:m}),e[0]=o,e[1]=r,e[2]=i,e[3]=l,e[4]=c,e[5]=p,e[6]=d,e[7]=u,e[8]=h,e[9]=g,e[10]=m,e[11]=f,e[12]=x):x=e[12];let v=x,b=n??null,P;e[13]!==v?(P=(0,a.jsx)(Qr,{router:v}),e[13]=v,e[14]=P):P=e[14];let y;return e[15]!==b||e[16]!==P?(y=(0,a.jsx)(Hs,{value:b,children:P}),e[15]=b,e[16]=P,e[17]=y):y=e[17],y},"Vo"),Ig=s(t=>{let e=(0,A.c)(10),o,r,n;e[0]!==t?({i18n:o,locale:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let i;e[4]!==n?(i=(0,a.jsx)(ni,{children:(0,a.jsx)(cc,{...n})}),e[4]=n,e[5]=i):i=e[5];let l=i;if(o===void 0&&r===void 0)return l;let c;return e[6]!==o||e[7]!==r||e[8]!==l?(c=(0,a.jsx)(ys,{i18n:o,locale:r,children:l}),e[6]=o,e[7]=r,e[8]=l,e[9]=c):c=e[9],c},"xn");function dc(t){return t.location.pathname}s(dc,"Oo");function pc(t){return t.tabs.length>0}s(pc,"Do");export{Ko as a,ys as b,ri as c,ai as d,Mg as e,ci as f,gi as g,bi as h,xi as i,yi as j,Ig as k};
|