@lunora/studio 1.0.0-alpha.136 → 1.0.0-alpha.138
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.d.mts +1515 -0
- package/dist/index.d.ts +20 -7
- package/dist/index.mjs +1 -0
- package/dist/mount.d.mts +21 -0
- package/dist/mount.mjs +1 -0
- package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
- package/dist/packem_chunks/ApiTab.mjs +1 -0
- package/dist/packem_chunks/AuditPanel.mjs +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
- package/dist/packem_chunks/{ExportImportPanel.js → ExportImportPanel.mjs} +1 -1
- package/dist/packem_chunks/{FileBrowser.js → FileBrowser.mjs} +1 -1
- package/dist/packem_chunks/FunctionRunner.mjs +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
- package/dist/packem_chunks/HealthPanel.mjs +1 -0
- package/dist/packem_chunks/InsightsPanel.mjs +1 -0
- package/dist/packem_chunks/LogsPanel.mjs +1 -0
- package/dist/packem_chunks/MailPanel.mjs +2 -0
- package/dist/packem_chunks/MetricsPanel.mjs +1 -0
- package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
- package/dist/packem_chunks/PitrPanel.mjs +1 -0
- package/dist/packem_chunks/SchemaViewer.mjs +1 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
- package/dist/packem_chunks/SettingsPanel.mjs +1 -0
- package/dist/packem_chunks/{SqlEditorPanel.js → SqlEditorPanel.mjs} +1 -1
- package/dist/packem_chunks/TableEditor.mjs +1 -0
- package/dist/packem_chunks/agents-panel.mjs +1 -0
- package/dist/packem_chunks/analytics-panel.mjs +1 -0
- package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
- package/dist/packem_chunks/auth-config-panel.mjs +1 -0
- package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
- package/dist/packem_chunks/containers-panel.mjs +1 -0
- package/dist/packem_chunks/dashboards-panel.mjs +1 -0
- package/dist/packem_chunks/evals-panel.mjs +1 -0
- package/dist/packem_chunks/fanout-panel.mjs +1 -0
- package/dist/packem_chunks/flags-panel.mjs +1 -0
- package/dist/packem_chunks/issues-panel.mjs +1 -0
- package/dist/packem_chunks/kv-browser.mjs +1 -0
- package/dist/packem_chunks/{log-drains-panel.js → log-drains-panel.mjs} +1 -1
- package/dist/packem_chunks/migrations-route.mjs +1 -0
- package/dist/packem_chunks/organizations-panel.mjs +1 -0
- package/dist/packem_chunks/payments-panel.mjs +1 -0
- package/dist/packem_chunks/permissions-panel.mjs +1 -0
- package/dist/packem_chunks/queues-panel.mjs +1 -0
- package/dist/packem_chunks/reactors-panel.mjs +1 -0
- package/dist/packem_chunks/rls-panel.mjs +1 -0
- package/dist/packem_chunks/schedule-panel.mjs +1 -0
- package/dist/packem_chunks/sparkline.mjs +1 -0
- package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
- package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
- package/dist/packem_chunks/sync-client-panel.mjs +1 -0
- package/dist/packem_chunks/traces-panel.mjs +1 -0
- package/dist/packem_chunks/users-panel.mjs +1 -0
- package/dist/packem_chunks/vector-browser.mjs +1 -0
- package/dist/packem_chunks/workflows-panel.mjs +1 -0
- package/dist/packem_shared/{ApiDocsPanel-Du1L7Ysj.js → ApiDocsPanel-BOxViKDM.mjs} +1 -1
- package/dist/packem_shared/ApiReferencePanel--YThTzHb.mjs +1 -0
- package/dist/packem_shared/CommandPalette-C4UrhLxv.mjs +1 -0
- package/dist/packem_shared/ConfirmButton-DU4p72Er.mjs +1 -0
- package/dist/packem_shared/ConnectionBadge-B_8fcft2.mjs +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
- package/dist/packem_shared/{DataBrowser-W5TxvLB8.js → DataBrowser-CDzwqq4b.mjs} +1 -1
- package/dist/packem_shared/GlobalDataBrowser-BKm77TNC.mjs +1 -0
- package/dist/packem_shared/HomePanel-T_fBZTEM.mjs +1 -0
- package/dist/packem_shared/MigrationsPanel-CYe0ygT8.mjs +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-Bn5UVD7s.mjs +1 -0
- package/dist/packem_shared/ScheduledJobs-DN0yQoo6.mjs +1 -0
- package/dist/packem_shared/ShardInput-C6mjgAh4.mjs +1 -0
- package/dist/packem_shared/Studio-CHCAslfi.mjs +1 -0
- package/dist/packem_shared/StudioApp-DVl_E-VZ.mjs +1 -0
- package/dist/packem_shared/StudioI18nProvider-fVsCSs5L.mjs +1 -0
- package/dist/packem_shared/advisor-view-5mZH6453.mjs +1 -0
- package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
- package/dist/packem_shared/app.d-D1bPR8FO.d.mts +252 -0
- package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
- package/dist/packem_shared/{bar-chart-B6gzp_f9.js → bar-chart-BCsEIQoQ.mjs} +1 -1
- package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
- package/dist/packem_shared/card--2hKx4L2.mjs +1 -0
- package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
- package/dist/packem_shared/data-grid-BqNXJ9PF.mjs +1 -0
- package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
- package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
- package/dist/packem_shared/error-alert-CczbAfst.mjs +1 -0
- package/dist/packem_shared/{grid-features-jBzZGauv.js → grid-features-D8w5isjt.mjs} +1 -1
- package/dist/packem_shared/home-panel-CSENDmoB.mjs +3 -0
- package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
- package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
- package/dist/packem_shared/live-status-BuJdUZFU.mjs +1 -0
- package/dist/packem_shared/log-line-Dzg4YZ-K.mjs +1 -0
- package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
- package/dist/packem_shared/recording-client-BEZ6tVgo.mjs +1 -0
- package/dist/packem_shared/{reference-view-BU2dNK9Z.js → reference-view-CZxBZSRo.mjs} +1 -1
- package/dist/packem_shared/schema-diagram-DU83ObYH.mjs +2 -0
- package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
- package/dist/packem_shared/select-Cx8-CokP.mjs +2 -0
- package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
- package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
- package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
- package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
- package/dist/packem_shared/sql-result-table-DysT8h5P.mjs +1 -0
- package/dist/packem_shared/stat-card-D0Fe04cX.mjs +1 -0
- package/dist/packem_shared/studio-DRHuKwbt.mjs +2 -0
- package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
- package/dist/packem_shared/table-list-sidebar-BxZm3sBJ.mjs +1 -0
- package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
- package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
- package/dist/packem_shared/use-admin-query-Cbj2GuHu.mjs +1 -0
- package/dist/packem_shared/use-async-submit-DAKymxcP.mjs +1 -0
- package/dist/packem_shared/use-auth-config-gxJL0E1r.mjs +1 -0
- package/dist/packem_shared/use-open-trace-B5LJ96_0.mjs +1 -0
- package/dist/packem_shared/use-sql-assistant-CFRzdA9E.mjs +1 -0
- package/dist/standalone/{chunk-7PIHTTND.js → chunk-25NFR6EB.js} +1 -1
- package/dist/standalone/{chunk-R7S3ICRW.js → chunk-2AFIMJPZ.js} +1 -1
- package/dist/standalone/{chunk-ENLQ6CZE.js → chunk-2DO5EQCU.js} +1 -1
- package/dist/standalone/{chunk-XZBLPJZN.js → chunk-2QSOSRNW.js} +1 -1
- package/dist/standalone/{chunk-F7JOSNAT.js → chunk-35DM4JJG.js} +1 -1
- package/dist/standalone/{chunk-EHQU74ST.js → chunk-3FFEVZUV.js} +1 -1
- package/dist/standalone/{chunk-OE4KGVJW.js → chunk-3ILVYCWG.js} +1 -1
- package/dist/standalone/{chunk-TRS5ABTX.js → chunk-3PKWDMXA.js} +1 -1
- package/dist/standalone/{chunk-2KR32476.js → chunk-3ZKYTFKY.js} +1 -1
- package/dist/standalone/{chunk-XLU6W4LI.js → chunk-43Y54D7O.js} +1 -1
- package/dist/standalone/{chunk-AOAJGSYZ.js → chunk-46ZJ3TM4.js} +1 -1
- package/dist/standalone/{chunk-2SFSTQS4.js → chunk-4GTO7FL5.js} +1 -1
- package/dist/standalone/{chunk-TFMQSCGC.js → chunk-4L4WTGN5.js} +1 -1
- package/dist/standalone/{chunk-HOQ2PFO6.js → chunk-56AFJWER.js} +1 -1
- package/dist/standalone/chunk-5AUOM7FK.js +1 -0
- package/dist/standalone/{chunk-XQS7KSHL.js → chunk-5GFSKIB2.js} +1 -1
- package/dist/standalone/{chunk-JV7KTJPY.js → chunk-5JDWLCSH.js} +1 -1
- package/dist/standalone/{chunk-WSNONR2E.js → chunk-5PCGB55O.js} +1 -1
- package/dist/standalone/{chunk-MCLM2QJI.js → chunk-5WJXVZMZ.js} +1 -1
- package/dist/standalone/{chunk-WUW4ZHRL.js → chunk-66UGPQVC.js} +1 -1
- package/dist/standalone/{chunk-QHQTOESO.js → chunk-7EYQVAUQ.js} +1 -1
- package/dist/standalone/{chunk-AVBOVXQK.js → chunk-7QMV55PO.js} +1 -1
- package/dist/standalone/{chunk-JURAVSE7.js → chunk-7QRRR3K6.js} +1 -1
- package/dist/standalone/{chunk-EDHW2EEG.js → chunk-7RIRJD2P.js} +1 -1
- package/dist/standalone/{chunk-ITNXWR5K.js → chunk-B5FXTB7H.js} +1 -1
- package/dist/standalone/{chunk-NNJW6LZK.js → chunk-BFXBBUU6.js} +1 -1
- package/dist/standalone/{chunk-DBMUPDVJ.js → chunk-BX3F7MXP.js} +1 -1
- package/dist/standalone/{chunk-ZSOLGJFC.js → chunk-C3TOZ4LG.js} +1 -1
- package/dist/standalone/{chunk-54TELYX4.js → chunk-C5L4BSYY.js} +1 -1
- package/dist/standalone/{chunk-U5D3ABAW.js → chunk-CKZQXAZE.js} +1 -1
- package/dist/standalone/{chunk-7SROZWKL.js → chunk-CSUROWL2.js} +1 -1
- package/dist/standalone/{chunk-DUDQV6XJ.js → chunk-D27D4UUI.js} +1 -1
- package/dist/standalone/chunk-DEJLINCJ.js +1 -0
- package/dist/standalone/{chunk-KZ5V7F4W.js → chunk-DQHYNFE4.js} +1 -1
- package/dist/standalone/{chunk-METRMDIQ.js → chunk-EA2JKR5D.js} +1 -1
- package/dist/standalone/{chunk-BWEXJENB.js → chunk-EBWXFG4H.js} +1 -1
- package/dist/standalone/{chunk-4U5PYZLE.js → chunk-ECQTVV2J.js} +1 -1
- package/dist/standalone/{chunk-JUWOEHDD.js → chunk-EG6XHY7N.js} +1 -1
- package/dist/standalone/{chunk-MOVUB3HI.js → chunk-EIKBBMM4.js} +1 -1
- package/dist/standalone/{chunk-5BEXGGHV.js → chunk-EILTQDXX.js} +1 -1
- package/dist/standalone/{chunk-XYD65F6K.js → chunk-ERWZGAOA.js} +1 -1
- package/dist/standalone/{chunk-ZPGNTTQ3.js → chunk-F7UC63UN.js} +1 -1
- package/dist/standalone/{chunk-UANVABQG.js → chunk-FKVZRPV5.js} +1 -1
- package/dist/standalone/{chunk-DKSLOJDQ.js → chunk-FO26ZU7E.js} +1 -1
- package/dist/standalone/{chunk-RCZTUWG3.js → chunk-FSRSK4LY.js} +1 -1
- package/dist/standalone/{chunk-IS2BTYON.js → chunk-GD3ZRVZH.js} +1 -1
- package/dist/standalone/{chunk-L4EZAHCD.js → chunk-HEAQVSNS.js} +1 -1
- package/dist/standalone/{chunk-GD4GUF75.js → chunk-HODZXHVK.js} +1 -1
- package/dist/standalone/chunk-HPUOZHDA.js +1 -0
- package/dist/standalone/{chunk-AFKLFS74.js → chunk-I52I2DJG.js} +1 -1
- package/dist/standalone/{chunk-OG57FC7W.js → chunk-I5OKDKON.js} +1 -1
- package/dist/standalone/{chunk-TB5N24CM.js → chunk-IFLTA2OD.js} +1 -1
- package/dist/standalone/{chunk-NXXGISFB.js → chunk-IMOHEGMV.js} +1 -1
- package/dist/standalone/{chunk-5U6757U7.js → chunk-JAZCU2PP.js} +1 -1
- package/dist/standalone/{chunk-CG5OTGTR.js → chunk-JBIN7W2B.js} +1 -1
- package/dist/standalone/{chunk-BA6TK2PS.js → chunk-JHEUUNXM.js} +1 -1
- package/dist/standalone/chunk-JJA7KHJK.js +1 -0
- package/dist/standalone/{chunk-4YTSKL4R.js → chunk-JVUZEYKQ.js} +1 -1
- package/dist/standalone/{chunk-INFALEU6.js → chunk-JYMXJUJ2.js} +1 -1
- package/dist/standalone/chunk-K7AJEMKE.js +1 -0
- package/dist/standalone/{chunk-ZZBE7O77.js → chunk-KDWJAKFX.js} +1 -1
- package/dist/standalone/{chunk-EQFBG7TB.js → chunk-KEZZGUYY.js} +1 -1
- package/dist/standalone/{chunk-6DAH3SMG.js → chunk-KTTYWH6A.js} +1 -1
- package/dist/standalone/{chunk-LVZKEWNM.js → chunk-LC3XGRNU.js} +1 -1
- package/dist/standalone/{chunk-LJFIXPDF.js → chunk-LJC5BM3X.js} +1 -1
- package/dist/standalone/{chunk-6XME7G3Q.js → chunk-LWYAZ2H7.js} +1 -1
- package/dist/standalone/{chunk-B3QSXX4O.js → chunk-M6MCQSPI.js} +1 -1
- package/dist/standalone/{chunk-AFH3KSFW.js → chunk-MIVYBFY3.js} +1 -1
- package/dist/standalone/{chunk-BQK2C2Z4.js → chunk-MNAASONZ.js} +1 -1
- package/dist/standalone/{chunk-BGOEMFLU.js → chunk-MRJNT4OH.js} +1 -1
- package/dist/standalone/{chunk-OQOBY6X3.js → chunk-N6KHKQJH.js} +1 -1
- package/dist/standalone/{chunk-V6QPVFDL.js → chunk-NBC6NJFJ.js} +1 -1
- package/dist/standalone/{chunk-SPDZUX4P.js → chunk-NCCAMFB6.js} +1 -1
- package/dist/standalone/{chunk-NGQTRDBQ.js → chunk-NE7AR3N3.js} +1 -1
- package/dist/standalone/chunk-NPERN4YF.js +1 -0
- package/dist/standalone/{chunk-YNZQSHFG.js → chunk-O2FV34ZD.js} +1 -1
- package/dist/standalone/{chunk-KVSQKUWD.js → chunk-OGUKYRFM.js} +1 -1
- package/dist/standalone/{chunk-ZHPDAJBM.js → chunk-OKG3HWSJ.js} +1 -1
- package/dist/standalone/{chunk-FUVCG23X.js → chunk-OOESPRIZ.js} +1 -1
- package/dist/standalone/{chunk-443UDYWL.js → chunk-OOKV3V3X.js} +1 -1
- package/dist/standalone/{chunk-ATES7QMQ.js → chunk-PAUQAU23.js} +1 -1
- package/dist/standalone/{chunk-Q7ZPWO67.js → chunk-PKCC4J5W.js} +1 -1
- package/dist/standalone/{chunk-DPNEFSEC.js → chunk-PYT4RZJH.js} +1 -1
- package/dist/standalone/{chunk-W7ETXRN4.js → chunk-Q3HF6P2M.js} +1 -1
- package/dist/standalone/{chunk-TPAZM36C.js → chunk-Q4CAKBWN.js} +1 -1
- package/dist/standalone/{chunk-M3NNNOD5.js → chunk-QKEJLVC5.js} +1 -1
- package/dist/standalone/{chunk-U6RNLNVU.js → chunk-QSOJFV42.js} +1 -1
- package/dist/standalone/{chunk-K6O3UDLX.js → chunk-RK3WWWTT.js} +1 -1
- package/dist/standalone/{chunk-XJSWM47N.js → chunk-RLLKECZT.js} +1 -1
- package/dist/standalone/{chunk-CAOUXOL7.js → chunk-RPQL45FL.js} +1 -1
- package/dist/standalone/{chunk-CKTKI4IY.js → chunk-S3CRZLGS.js} +1 -1
- package/dist/standalone/{chunk-L6DNHL3L.js → chunk-S63ID2FC.js} +1 -1
- package/dist/standalone/{chunk-VZCS5GXZ.js → chunk-SB35BJ7A.js} +1 -1
- package/dist/standalone/{chunk-26VREVWU.js → chunk-SSNHCN4D.js} +1 -1
- package/dist/standalone/{chunk-3KLX63D7.js → chunk-T2IE5GKA.js} +1 -1
- package/dist/standalone/{chunk-74ASA4WU.js → chunk-TGHH7ZFA.js} +1 -1
- package/dist/standalone/{chunk-FJ6G6FNE.js → chunk-TJRQUJFS.js} +1 -1
- package/dist/standalone/{chunk-EYGF6TQS.js → chunk-TQCXJX4I.js} +1 -1
- package/dist/standalone/{chunk-EYENA7HZ.js → chunk-TRL7AHZK.js} +1 -1
- package/dist/standalone/{chunk-CP4ZFBVW.js → chunk-TWTNWOJU.js} +1 -1
- package/dist/standalone/{chunk-UUO257GV.js → chunk-TZI3JW3Q.js} +1 -1
- package/dist/standalone/{chunk-M3PFFLSD.js → chunk-UBVWMMQG.js} +1 -1
- package/dist/standalone/{chunk-CYX3OHJ3.js → chunk-UDCVU3Z5.js} +1 -1
- package/dist/standalone/{chunk-BNNRPK47.js → chunk-UKL4FSKP.js} +1 -1
- package/dist/standalone/{chunk-PZ4QDWTI.js → chunk-ULIQFBZU.js} +1 -1
- package/dist/standalone/{chunk-XVJIEJ5R.js → chunk-USC5APTS.js} +1 -1
- package/dist/standalone/{chunk-QO645HJU.js → chunk-UWDFH35E.js} +1 -1
- package/dist/standalone/{chunk-YN4VXWMW.js → chunk-VPPKG2IW.js} +1 -1
- package/dist/standalone/{chunk-NIX2QSSN.js → chunk-VVOVVU53.js} +1 -1
- package/dist/standalone/{chunk-BSACLUQK.js → chunk-WLGZOFKE.js} +2 -2
- package/dist/standalone/{chunk-CN2AINNY.js → chunk-WQYWA7U6.js} +1 -1
- package/dist/standalone/{chunk-ZJK2XCP3.js → chunk-WR675JUF.js} +1 -1
- package/dist/standalone/{chunk-IYWVSMAY.js → chunk-WUWBZPUK.js} +1 -1
- package/dist/standalone/{chunk-K76OQSTQ.js → chunk-X43AA6RX.js} +1 -1
- package/dist/standalone/{chunk-EGSG64TS.js → chunk-XSLMHPP2.js} +1 -1
- package/dist/standalone/{chunk-5JLIP2HH.js → chunk-XZMOZFE6.js} +1 -1
- package/dist/standalone/{chunk-6ZPTNC34.js → chunk-Y4Q25F6X.js} +1 -1
- package/dist/standalone/{chunk-INQICZYC.js → chunk-Y6CXU7T4.js} +1 -1
- package/dist/standalone/{chunk-VR3UJA7B.js → chunk-YEBHHIAY.js} +1 -1
- package/dist/standalone/{chunk-MSXT3KG5.js → chunk-YFLOZILV.js} +1 -1
- package/dist/standalone/{chunk-MIGH67EO.js → chunk-YFPU55K4.js} +1 -1
- package/dist/standalone/{chunk-2I2F6IEF.js → chunk-ZE2Q22OK.js} +1 -1
- package/dist/standalone/studio.js +1 -1
- package/package.json +11 -9
- package/dist/index.js +0 -1
- package/dist/mount.js +0 -1
- package/dist/packem_chunks/AdvisorHealthPanel.js +0 -1
- package/dist/packem_chunks/ApiTab.js +0 -1
- package/dist/packem_chunks/AuditPanel.js +0 -1
- package/dist/packem_chunks/DeploymentHealthPanel.js +0 -1
- package/dist/packem_chunks/FunctionRunner.js +0 -1
- package/dist/packem_chunks/FunctionStatsPanel.js +0 -1
- package/dist/packem_chunks/HealthPanel.js +0 -1
- package/dist/packem_chunks/InsightsPanel.js +0 -1
- package/dist/packem_chunks/LogsPanel.js +0 -1
- package/dist/packem_chunks/MailPanel.js +0 -2
- package/dist/packem_chunks/MetricsPanel.js +0 -1
- package/dist/packem_chunks/NotificationsPanel.js +0 -1
- package/dist/packem_chunks/PitrPanel.js +0 -1
- package/dist/packem_chunks/SchemaViewer.js +0 -1
- package/dist/packem_chunks/SecurityAdvisorPanel.js +0 -1
- package/dist/packem_chunks/SettingsPanel.js +0 -1
- package/dist/packem_chunks/TableEditor.js +0 -1
- package/dist/packem_chunks/agents-panel.js +0 -1
- package/dist/packem_chunks/analytics-panel.js +0 -1
- package/dist/packem_chunks/auth-audit-panel.js +0 -1
- package/dist/packem_chunks/auth-config-panel.js +0 -1
- package/dist/packem_chunks/auth-sessions-panel.js +0 -1
- package/dist/packem_chunks/containers-panel.js +0 -1
- package/dist/packem_chunks/dashboards-panel.js +0 -1
- package/dist/packem_chunks/evals-panel.js +0 -1
- package/dist/packem_chunks/fanout-panel.js +0 -1
- package/dist/packem_chunks/flags-panel.js +0 -1
- package/dist/packem_chunks/issues-panel.js +0 -1
- package/dist/packem_chunks/kv-browser.js +0 -1
- package/dist/packem_chunks/migrations-route.js +0 -1
- package/dist/packem_chunks/organizations-panel.js +0 -1
- package/dist/packem_chunks/payments-panel.js +0 -1
- package/dist/packem_chunks/permissions-panel.js +0 -1
- package/dist/packem_chunks/queues-panel.js +0 -1
- package/dist/packem_chunks/reactors-panel.js +0 -1
- package/dist/packem_chunks/rls-panel.js +0 -1
- package/dist/packem_chunks/schedule-panel.js +0 -1
- package/dist/packem_chunks/sparkline.js +0 -1
- package/dist/packem_chunks/storage-rules-panel.js +0 -1
- package/dist/packem_chunks/subscriptions-panel.js +0 -1
- package/dist/packem_chunks/sync-client-panel.js +0 -1
- package/dist/packem_chunks/traces-panel.js +0 -1
- package/dist/packem_chunks/users-panel.js +0 -1
- package/dist/packem_chunks/vector-browser.js +0 -1
- package/dist/packem_chunks/workflows-panel.js +0 -1
- package/dist/packem_shared/ApiReferencePanel-uGgGOBYj.js +0 -1
- package/dist/packem_shared/CommandPalette-HqiXrWIm.js +0 -1
- package/dist/packem_shared/ConfirmButton-Cj2SOapE.js +0 -1
- package/dist/packem_shared/ConnectionBadge-Bh16X9-u.js +0 -1
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-1Lrg55IV.js +0 -1
- package/dist/packem_shared/GlobalDataBrowser-LFznuyGe.js +0 -1
- package/dist/packem_shared/HomePanel-DmB0EKjl.js +0 -1
- package/dist/packem_shared/MigrationsPanel-BDNt136v.js +0 -1
- package/dist/packem_shared/OpenRpcReferencePanel-DgrpASYD.js +0 -1
- package/dist/packem_shared/ScheduledJobs-CiO3eXgI.js +0 -1
- package/dist/packem_shared/ShardInput-CdawpUiS.js +0 -1
- package/dist/packem_shared/Studio-CkNE_tEy.js +0 -1
- package/dist/packem_shared/StudioApp-BZP_0E2n.js +0 -1
- package/dist/packem_shared/StudioI18nProvider-Bl547evf.js +0 -1
- package/dist/packem_shared/advisor-view-C1KFTXSH.js +0 -1
- package/dist/packem_shared/alert-C2SEhYS9.js +0 -1
- package/dist/packem_shared/badge-cAk9Di1Q.js +0 -1
- package/dist/packem_shared/button-BOPLD1un.js +0 -1
- package/dist/packem_shared/card-BGlQzQY-.js +0 -1
- package/dist/packem_shared/checkbox-C5w53W-E.js +0 -1
- package/dist/packem_shared/data-grid-BFTQnkXq.js +0 -1
- package/dist/packem_shared/dropdown-menu-U7Tjg1Nb.js +0 -2
- package/dist/packem_shared/empty-state-B939z6K2.js +0 -1
- package/dist/packem_shared/error-alert-TYdKetJd.js +0 -1
- package/dist/packem_shared/home-panel-DHOa3sxt.js +0 -3
- package/dist/packem_shared/input-CY5W3wzv.js +0 -1
- package/dist/packem_shared/label-BOUo-DP0.js +0 -1
- package/dist/packem_shared/live-status-Bf7rR8o8.js +0 -1
- package/dist/packem_shared/log-line-UnE93Ovi.js +0 -1
- package/dist/packem_shared/modal-shell-wGW4CKEW.js +0 -1
- package/dist/packem_shared/recording-client-CKn4-vUx.js +0 -1
- package/dist/packem_shared/schema-diagram-DOaIh1y6.js +0 -2
- package/dist/packem_shared/scroll-area-DSJftwu_.js +0 -2
- package/dist/packem_shared/select-BPISLTcv.js +0 -2
- package/dist/packem_shared/shard-history-DU5b3QDI.js +0 -1
- package/dist/packem_shared/shortcuts-lH4Vaqjc.js +0 -1
- package/dist/packem_shared/skeleton-DFBBaJU6.js +0 -1
- package/dist/packem_shared/sparkline-CYbJzfA1.js +0 -1
- package/dist/packem_shared/sql-result-table-CqlZo2QN.js +0 -1
- package/dist/packem_shared/stat-card-B9uIvAHg.js +0 -1
- package/dist/packem_shared/studio-CXai1O2K.js +0 -2
- package/dist/packem_shared/table-BMsuYFhk.js +0 -2
- package/dist/packem_shared/table-list-sidebar-BWq_-gtu.js +0 -1
- package/dist/packem_shared/textarea-DpO3i-Qo.js +0 -1
- package/dist/packem_shared/trace-handoff-z9sy89Ci.js +0 -1
- package/dist/packem_shared/use-admin-query-P0RJrjsD.js +0 -1
- package/dist/packem_shared/use-async-submit-DdLd0MdK.js +0 -1
- package/dist/packem_shared/use-auth-config-z3KRWAqD.js +0 -1
- package/dist/packem_shared/use-open-trace-4mqqFWrn.js +0 -1
- package/dist/packem_shared/use-sql-assistant-D1K2LqpO.js +0 -1
- package/dist/standalone/chunk-35O3VETX.js +0 -1
- package/dist/standalone/chunk-57VX76PR.js +0 -1
- package/dist/standalone/chunk-76YLMHR3.js +0 -1
- package/dist/standalone/chunk-N5OS5NUG.js +0 -1
- package/dist/standalone/chunk-O5MAFDY2.js +0 -1
- package/dist/standalone/chunk-TNKECJW4.js +0 -1
- /package/dist/packem_shared/{ADMIN_FUNCTIONS-B6z7VLYt.js → ADMIN_FUNCTIONS-B6z7VLYt.mjs} +0 -0
- /package/dist/packem_shared/{DEFAULT_AUTO_REFRESH_MS-DuULO4XM.js → DEFAULT_AUTO_REFRESH_MS-DuULO4XM.mjs} +0 -0
- /package/dist/packem_shared/{DEFAULT_LOCALE-A1Yg5ORA.js → DEFAULT_LOCALE-A1Yg5ORA.mjs} +0 -0
- /package/dist/packem_shared/{DataFilters-3nbW0uax.js → DataFilters-3nbW0uax.mjs} +0 -0
- /package/dist/packem_shared/{ErrorBoundary-BWNF98VF.js → ErrorBoundary-BWNF98VF.mjs} +0 -0
- /package/dist/packem_shared/{STUDIO_ROOT_CLASS-C6MccdVk.js → STUDIO_ROOT_CLASS-C6MccdVk.mjs} +0 -0
- /package/dist/packem_shared/{aggregateMetrics-A-Y7OH6R.js → aggregateMetrics-A-Y7OH6R.mjs} +0 -0
- /package/dist/packem_shared/{browser-storage-BH1MxLZs.js → browser-storage-BH1MxLZs.mjs} +0 -0
- /package/dist/packem_shared/{cf-links-CBJ5SywP.js → cf-links-CBJ5SywP.mjs} +0 -0
- /package/dist/packem_shared/{control-button-BOZ5K-FC.js → control-button-BOZ5K-FC.mjs} +0 -0
- /package/dist/packem_shared/{data-view-params-qoSTqjAj.js → data-view-params-qoSTqjAj.mjs} +0 -0
- /package/dist/packem_shared/{internal-CwaF9YNk.js → internal-CwaF9YNk.mjs} +0 -0
- /package/dist/packem_shared/{log-fields-SBxKyBug.js → log-fields-SBxKyBug.mjs} +0 -0
- /package/dist/packem_shared/{operation-console-provider-DoloEvon.js → operation-console-provider-DoloEvon.mjs} +0 -0
- /package/dist/packem_shared/{quote-identifier-CGiYFBvY.js → quote-identifier-CGiYFBvY.mjs} +0 -0
- /package/dist/packem_shared/{storage-tier-C2mKwYRj.js → storage-tier-C2mKwYRj.mjs} +0 -0
- /package/dist/packem_shared/{use-shard-key-BsP3o5wT.js → use-shard-key-BsP3o5wT.mjs} +0 -0
- /package/dist/packem_shared/{useDebounced-DVeQ5-oW.js → useDebounced-DVeQ5-oW.mjs} +0 -0
- /package/dist/packem_shared/{utils-bhneXptQ.js → utils-bhneXptQ.mjs} +0 -0
- /package/dist/packem_shared/{virtual-rect-D_j7aLxX.js → virtual-rect-D_j7aLxX.mjs} +0 -0
- /package/dist/packem_shared/{wire-codec-Dl3VeNrd.js → wire-codec-Dl3VeNrd.mjs} +0 -0
- /package/dist/standalone/{chunk-DZGOHOOE.js → chunk-CXNZVJ3S.js} +0 -0
- /package/dist/standalone/{chunk-W2JBKQNU.js → chunk-UYEZR3BI.js} +0 -0
- /package/dist/standalone/{chunk-R5ZTCHCE.js → chunk-YKXDMIHQ.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as p}from"react/compiler-runtime";import{B as u,E as h}from"./bar-chart-BCsEIQoQ.mjs";import{c as g}from"./utils-bhneXptQ.mjs";import{jsx as d}from"react/jsx-runtime";const v={value:{colors:{dark:["var(--foreground)"],light:["var(--foreground)"]},label:""}},w=i=>{const e=p(12),{ariaLabel:n,className:c,series:r,testId:m}=i;if(r.length<2)return null;let l;e[0]!==r?(l=r.slice(-40).map(b),e[0]=r,e[1]=l):l=e[1];const f=l;let a;e[2]!==c?(a=g("h-6 w-[120px]",c),e[2]=c,e[3]=a):a=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=d(u,{dataKey:"value"}),e[4]=o):o=e[4];let t;e[5]!==f?(t=d(h,{animationType:"none",barCategoryGap:1,className:"h-full w-full",config:v,data:f,children:o}),e[5]=f,e[6]=t):t=e[6];let s;return e[7]!==n||e[8]!==a||e[9]!==t||e[10]!==m?(s=d("div",{"aria-label":n,className:a,"data-testid":m,role:"img",children:t}),e[7]=n,e[8]=a,e[9]=t,e[10]=m,e[11]=s):s=e[11],s};function b(i,e){return{index:e,value:i}}export{w as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as k}from"react/compiler-runtime";import{AreaChart as R,CartesianGrid as g,XAxis as N,Area as B,LineChart as X,Line as $}from"recharts";import{useT as S}from"./DEFAULT_LOCALE-A1Yg5ORA.mjs";import{h as E}from"./internal-CwaF9YNk.mjs";import{E as H,X as _,B as j,T as G,C as O,a as A,b as K}from"./bar-chart-BCsEIQoQ.mjs";import{jsx as l,jsxs as T}from"react/jsx-runtime";import{c as V,a as z,b as L,e as F,d as I,T as M}from"./table-D0SBiDu-.mjs";import{C as U}from"./data-grid-BqNXJ9PF.mjs";const W=50,q={value:{colors:{dark:["var(--chart-1)"],light:["var(--chart-1)"]},label:"value"}},D=o=>{const e=o.columns.find(n=>o.rows.length>0&&o.rows.every(a=>typeof a[n]=="number"))??null;return{label:o.columns.find(n=>n!==e)??null,value:e}},J=o=>{const e=k(3),{data:t,kind:n}=o;let a;return e[0]!==t||e[1]!==n?(a=l(O,{className:"h-full w-full",config:q,children:n==="area"?T(R,{data:t,children:[l(g,{vertical:!1}),l(N,{axisLine:!1,dataKey:"label",tickLine:!1}),l(A,{content:l(K,{})}),l(B,{dataKey:"value",fill:"var(--color-value-0)",fillOpacity:.2,stroke:"var(--color-value-0)",type:"monotone"})]}):T(X,{data:t,children:[l(g,{vertical:!1}),l(N,{axisLine:!1,dataKey:"label",tickLine:!1}),l(A,{content:l(K,{})}),l($,{dataKey:"value",dot:!1,stroke:"var(--color-value-0)",strokeWidth:2,type:"monotone"})]})}),e[0]=t,e[1]=n,e[2]=a):a=e[2],a},oe=o=>{const e=k(21),{axes:t,kind:n,result:a}=o,u=S();let r;e[0]!==a?(r=D(a),e[0]=a,e[1]=r):r=e[1];const d=r;let m;e[2]!==a.columns?(m=new Set(a.columns),e[2]=a.columns,e[3]=m):m=e[3];const s=m,i=t!==void 0&&s.has(t.x)?t.x:d.label;let h;e[4]!==t?.y||e[5]!==s?(h=t?.y.find(c=>s.has(c)),e[4]=t?.y,e[5]=s,e[6]=h):h=e[6];const b=h,C=b??d.value;let w;e[7]!==i||e[8]!==a.rows||e[9]!==C?(w=C===null?[]:a.rows.slice(0,W).map((c,v)=>({label:i===null?`#${(v+1).toString()}`:E(c[i]),value:Number(c[C])||0})),e[7]=i,e[8]=a.rows,e[9]=C,e[10]=w):w=e[10];const x=w;if(C===null){let c;e[11]!==u?(c=u("No numeric column to chart."),e[11]=u,e[12]=c):c=e[12];let v;return e[13]!==c?(v=l("p",{className:"p-4 text-sm text-muted-foreground","data-testid":"sql-chart-empty",children:c}),e[13]=c,e[14]=v):v=e[14],v}const f=n??(t!==void 0&&b!==void 0?t.kind:"bar");let p;e[15]!==x||e[16]!==f?(p=f==="bar"?T(H,{className:"h-full w-full",config:q,data:x,children:[l(_,{dataKey:"label"}),l(j,{dataKey:"value"}),l(G,{})]}):l(J,{data:x,kind:f}),e[15]=x,e[16]=f,e[17]=p):p=e[17];let y;return e[18]!==f||e[19]!==p?(y=l("div",{className:"h-80 w-full p-3","data-chart-kind":f,"data-testid":"sql-chart",children:p}),e[18]=f,e[19]=p,e[20]=y):y=e[20],y},ne=o=>{const e=k(19),{result:t}=o,n=S();if(t.columns.length===0){let s;e[0]!==t.rowCount||e[1]!==n?(s=n("{count} rows",{count:t.rowCount}),e[0]=t.rowCount,e[1]=n,e[2]=s):s=e[2];let i;return e[3]!==s?(i=l("p",{className:"p-4 text-sm text-muted-foreground",children:s}),e[3]=s,e[4]=i):i=e[4],i}let a;e[5]!==t.columns?(a=t.columns.map(P),e[5]=t.columns,e[6]=a):a=e[6];let u;e[7]!==a?(u=l(z,{className:"sticky top-0 z-10 bg-muted",children:l(L,{children:a})}),e[7]=a,e[8]=u):u=e[8];let r;if(e[9]!==t.columns||e[10]!==t.rows){let s;e[12]!==t.columns?(s=(i,h)=>l(L,{"data-testid":"sql-row",children:t.columns.map(b=>l(F,{className:"max-w-md truncate font-mono text-xs",children:l(U,{value:i[b]})},b))},h),e[12]=t.columns,e[13]=s):s=e[13],r=t.rows.map(s),e[9]=t.columns,e[10]=t.rows,e[11]=r}else r=e[11];let d;e[14]!==r?(d=l(I,{children:r}),e[14]=r,e[15]=d):d=e[15];let m;return e[16]!==u||e[17]!==d?(m=T(M,{"data-testid":"sql-rows",children:[u,d]}),e[16]=u,e[17]=d,e[18]=m):m=e[18],m};function P(o){return l(V,{children:o},o)}export{oe as S,ne as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as u}from"react/compiler-runtime";import{C as b}from"./card--2hKx4L2.mjs";import{jsx as m,jsxs as p}from"react/jsx-runtime";const j=x=>{const e=u(16),{chart:i,footer:o,label:n,testId:c,value:f}=x;let t;e[0]!==n?(t=m("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:n}),e[0]=n,e[1]=t):t=e[1];let l;e[2]!==c||e[3]!==f?(l=m("span",{className:"truncate text-2xl font-semibold tabular-nums text-foreground","data-testid":c,children:f}),e[2]=c,e[3]=f,e[4]=l):l=e[4];let r;e[5]!==i||e[6]!==l?(r=p("div",{className:"flex items-center justify-between gap-3",children:[l,i]}),e[5]=i,e[6]=l,e[7]=r):r=e[7];let s;e[8]!==t||e[9]!==r?(s=p("div",{className:"flex flex-col gap-2.5 p-4",children:[t,r]}),e[8]=t,e[9]=r,e[10]=s):s=e[10];let a;e[11]!==o?(a=o!=null&&m("div",{className:"border-t border-border bg-muted/50 px-4 py-2.5 text-[11px] text-muted-foreground",children:o}),e[11]=o,e[12]=a):a=e[12];let d;return e[13]!==s||e[14]!==a?(d=p(b,{className:"justify-between gap-0 py-0",children:[s,a]}),e[13]=s,e[14]=a,e[15]=d):d=e[15],d};export{j as S};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{c as k}from"react/compiler-runtime";import{createRootRoute as ts,createRoute as Pt,createBrowserHistory as ss,createMemoryHistory as as,createRouter as os,useNavigate as Et,useSearch as ns,RouterProvider as rs,useRouterState as ls,Outlet as is}from"@tanstack/react-router";import*as rt from"react";import{use as St,createContext as It,useState as dt,useEffect as lt,useSyncExternalStore as ds,lazy as A,Suspense as cs}from"react";import{c as L}from"./utils-bhneXptQ.mjs";import{jsx as o,jsxs as w,Fragment as $t}from"react/jsx-runtime";import{ErrorBoundary as us}from"./ErrorBoundary-BWNF98VF.mjs";import{O as ms,u as fs}from"./operation-console-provider-DoloEvon.mjs";import{useT as te}from"./DEFAULT_LOCALE-A1Yg5ORA.mjs";import{LunoraError as Ht}from"@lunora/errors";import{B as ct}from"./badge-r_5B4LHP.mjs";import{I as Bt}from"./input-CXhxesPC.mjs";import{Popover as it}from"@base-ui/react/popover";import{Cancel01Icon as hs,SidebarLeftIcon as ps}from"@hugeicons/core-free-icons";import{HugeiconsIcon as zt}from"@hugeicons/react";import{mergeProps as Vt}from"@base-ui/react/merge-props";import{useRender as Ot}from"@base-ui/react/use-render";import{cva as gs}from"class-variance-authority";import{B as Dt}from"./button-q0UYSmrn.mjs";import{Dialog as ae}from"@base-ui/react/dialog";import{Tooltip as se}from"@base-ui/react/tooltip";import{S as yt}from"./skeleton-DX1gfixl.mjs";import{H as bs,u as vs}from"./home-panel-CSENDmoB.mjs";import{g as xs,f as Mt}from"./internal-CwaF9YNk.mjs";import{o as pt}from"./use-admin-query-Cbj2GuHu.mjs";import{StudioI18nProvider as ys}from"./StudioI18nProvider-fVsCSs5L.mjs";import{v as ws,a as ks}from"./data-view-params-qoSTqjAj.mjs";import{CommandPalette as Ms,openCommandPalette as Ns}from"./CommandPalette-C4UrhLxv.mjs";import{motion as Ss}from"motion/react";import{u as Cs}from"./shortcuts-B9gDaXmw.mjs";const Zt="(prefers-color-scheme: dark)",Ft=()=>{try{return globalThis.localStorage}catch{return}},Ps=t=>t==="system"||t==="light"||t==="dark",qt=()=>globalThis.matchMedia,Wt="lunora-studio-theme",wt=["system","light","dark"],_s=(t="system")=>{try{const e=Ft()?.getItem(Wt);return Ps(e)?e:t}catch{return t}},_t=t=>{const e=Ft();if(e!==void 0)try{e.setItem(Wt,t)}catch{}},Ts=()=>{try{return qt()?.(Zt).matches?"dark":"light"}catch{return"light"}},Ls=(t,e)=>t==="system"?e:t,As=t=>{let e;try{e=qt()?.(Zt)}catch{e=void 0}if(e===void 0)return()=>{};const s=a=>{t(a.matches?"dark":"light")};return e.addEventListener("change",s),()=>{e.removeEventListener("change",s)}},Ct=It(null),Rs=({children:t,defaultTheme:e="system"})=>{const[s,a]=dt(()=>_s(e)),[n,r]=dt(()=>Ts());lt(()=>As(r),[]);const l=u=>{_t(u),a(u)},d={cycleTheme:()=>{a(u=>{const c=wt[(wt.indexOf(u)+1)%wt.length]??u;return _t(c),c})},resolvedTheme:Ls(s,n),setTheme:l,systemTheme:n,theme:s};return o(Ct,{value:d,children:t})},Es=t=>{const e=k(3),{children:s}=t,a=St(Ct);let n;return e[0]!==s||e[1]!==a?(n=a===null?o(Rs,{children:s}):s,e[0]=s,e[1]=a,e[2]=n):n=e[2],n},Is=()=>{const t=St(Ct);if(t===null)throw new Ht("INTERNAL","useTheme must be used within a <ThemeProvider>");return t};function vn({delay:t=0,...e}){return o(se.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}function $s(t){const e=k(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(se.Root,{"data-slot":"tooltip",...s}),e[2]=s,e[3]=a):a=e[3],a}function Hs(t){const e=k(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(se.Trigger,{"data-slot":"tooltip-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function Bs({className:t,side:e="top",sideOffset:s=4,align:a="center",alignOffset:n=0,children:r,...l}){return o(se.Portal,{children:o(se.Positioner,{align:a,alignOffset:n,side:e,sideOffset:s,className:"isolate z-50",children:w(se.Popup,{"data-slot":"tooltip-content",className:L("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:[r,o(se.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-md bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}const zs=t=>{const e=k(5),{className:s}=t;let a;e[0]!==s?(a=L("h-full w-full text-foreground",s),e[0]=s,e[1]=a):a=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o("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 r;return e[3]!==a?(r=o("svg",{"aria-hidden":"true",className:a,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=a,e[4]=r):r=e[4],r},jt="lunora.studio.rulesBannerDismissed",Vs=()=>{try{return globalThis.localStorage.getItem(jt)==="1"}catch{return!1}},Os=()=>{try{globalThis.localStorage.setItem(jt,"1")}catch{}},Ds=()=>{const t=k(18),e=te(),[s,a]=dt(Zs);let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{a(!0),Os()},t[0]=n):n=t[0];const r=n;if(s)return null;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=o("span",{"aria-hidden":"true",className:"text-warning",children:"⚠"}),t[1]=l):l=t[1];let i;t[2]!==e?(i=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=i):i=t[3];let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=o("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=d):d=t[4];let u;t[5]!==e?(u=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=u):u=t[6];let c;t[7]!==i||t[8]!==u?(c=w("span",{children:[i," ",d," ",u]}),t[7]=i,t[8]=u,t[9]=c):c=t[9];let f;t[10]!==e?(f=e("Dismiss"),t[10]=e,t[11]=f):f=t[11];let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p=o("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:o("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=p):p=t[12];let m;t[13]!==f?(m=o("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:r,type:"button",children:p}),t[13]=f,t[14]=m):m=t[14];let h;return t[15]!==c||t[16]!==m?(h=w("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,c,m]}),t[15]=c,t[16]=m,t[17]=h):h=t[17],h};function Zs(){return Vs()}function Ut(t){const e=k(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(it.Root,{"data-slot":"popover",...s}),e[2]=s,e[3]=a):a=e[3],a}function Gt(t){const e=k(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(it.Trigger,{"data-slot":"popover-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function Kt({align:t="end",alignOffset:e=0,className:s,keepMounted:a=!1,side:n="bottom",sideOffset:r=6,...l}){return o(it.Portal,{keepMounted:a,children:o(it.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:r,children:o(it.Popup,{className:L("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",s),"data-slot":"popover-content",...l})})})}const kt=768;function Fs(){const t=k(2),[e,s]=dt(void 0);let a,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{const r=globalThis.matchMedia(`(max-width: ${kt-1}px)`),l=()=>{s(globalThis.innerWidth<kt)};return r.addEventListener("change",l),s(globalThis.innerWidth<kt),()=>{r.removeEventListener("change",l)}},n=[],t[0]=a,t[1]=n):(a=t[0],n=t[1]),lt(a,n),!!e}function qs(t){const e=k(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(ae.Root,{"data-slot":"sheet",...s}),e[2]=s,e[3]=a):a=e[3],a}function Ws(t){const e=k(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=o(ae.Portal,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function js(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("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:",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o(ae.Backdrop,{"data-slot":"sheet-overlay",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Us({className:t,children:e,side:s="right",showCloseButton:a=!0,...n}){return w(Ws,{children:[o(js,{}),w(ae.Popup,{"data-slot":"sheet-content","data-side":s,className:L("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,a&&w(ae.Close,{"data-slot":"sheet-close",render:o(Dt,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[o(zt,{icon:hs,strokeWidth:2}),o("span",{className:"sr-only",children:"Close"})]})]})]})}function Gs(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("flex flex-col gap-0.5 p-4",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sheet-header",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Ks(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("text-sm font-medium text-foreground",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o(ae.Title,{"data-slot":"sheet-title",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Qs(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("text-xs/relaxed text-muted-foreground",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o(ae.Description,{"data-slot":"sheet-description",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const Ys="sidebar_state",Js=3600*24*7,Xs="16rem",ea="18rem",ta="3rem",sa="b",Qt=rt.createContext(null);function gt(){const t=rt.useContext(Qt);if(!t)throw new Ht("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}function aa({defaultOpen:t=!0,open:e,onOpenChange:s,className:a,style:n,children:r,...l}){const i=Fs(),[d,u]=rt.useState(!1),[c,f]=rt.useState(t),p=e??c,m=x=>{const y=typeof x=="function"?x(p):x;s?s(y):f(y),document.cookie=`${Ys}=${y}; path=/; max-age=${Js}`},h=()=>i?u(x=>!x):m(x=>!x),b=rt.useEffectEvent(()=>{h()});rt.useEffect(()=>{const x=y=>{y.key===sa&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return globalThis.addEventListener("keydown",x),()=>globalThis.removeEventListener("keydown",x)},[]);const g={state:p?"expanded":"collapsed",open:p,setOpen:m,isMobile:i,openMobile:d,setOpenMobile:u,toggleSidebar:h};return o(Qt.Provider,{value:g,children:o("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Xs,"--sidebar-width-icon":ta,...n},className:L("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",a),...l,children:r})})}function oa({side:t="left",variant:e="sidebar",collapsible:s="offcanvas",className:a,children:n,dir:r,...l}){const{isMobile:i,state:d,openMobile:u,setOpenMobile:c}=gt();return s==="none"?o("div",{"data-slot":"sidebar",className:L("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",a),...l,children:n}):i?o(qs,{open:u,onOpenChange:c,...l,children:w(Us,{dir:r,"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":ea},side:t,children:[w(Gs,{className:"sr-only",children:[o(Ks,{children:"Sidebar"}),o(Qs,{children:"Displays the mobile sidebar."})]}),o("div",{className:"flex h-full w-full flex-col",children:n})]})}):w("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?s:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[o("div",{"data-slot":"sidebar-gap",className:L("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)")}),o("div",{"data-slot":"sidebar-container","data-side":t,className:L("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",a),...l,children:o("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})})]})}function na(t){const e=k(15);let s,a,n;e[0]!==t?({className:s,onClick:a,...n}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n):(s=e[1],a=e[2],n=e[3]);const{toggleSidebar:r}=gt();let l;e[4]!==s?(l=L(s),e[4]=s,e[5]=l):l=e[5];let i;e[6]!==a||e[7]!==r?(i=f=>{a?.(f),r()},e[6]=a,e[7]=r,e[8]=i):i=e[8];let d,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=o(zt,{icon:ps,strokeWidth:2,className:"rtl:rotate-180"}),u=o("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=u):(d=e[9],u=e[10]);let c;return e[11]!==n||e[12]!==l||e[13]!==i?(c=w(Dt,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:l,onClick:i,...n,children:[d,u]}),e[11]=n,e[12]=l,e[13]=i,e[14]=c):c=e[14],c}function ra(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("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",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("main",{"data-slot":"sidebar-inset",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function la(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function ia(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function da(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("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",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function ca(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("relative flex w-full min-w-0 flex-col p-2",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function ua(t){const e=k(10);let s,a,n,r;if(e[0]!==t){const{className:d,render:u,...c}=t;s=u,r=Ot,a="div",n=Vt({className:L("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",d)},c),e[0]=t,e[1]=s,e[2]=a,e[3]=n,e[4]=r}else s=e[1],a=e[2],n=e[3],r=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 i;return e[6]!==s||e[7]!==a||e[8]!==n?(i={defaultTagName:a,props:n,render:s,state:l},e[6]=s,e[7]=a,e[8]=n,e[9]=i):i=e[9],r(i)}function ma(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("w-full text-xs",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Tt(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("flex w-full min-w-0 flex-col gap-0",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Lt(t){const e=k(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=L("group/menu-item relative",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=o("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const fa=gs("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 Yt({render:t,isActive:e=!1,variant:s="default",size:a="default",tooltip:n,className:r,...l}){const{isMobile:i,state:d}=gt(),u=Ot({defaultTagName:"button",props:Vt({className:L(fa({variant:s,size:a}),r)},l),render:n?o(Hs,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:a,active:e}});return n?(typeof n=="string"&&(n={children:n}),w($s,{children:[u,o(Bs,{side:"right",align:"center",hidden:d!=="collapsed"||i,...n})]})):u}const ha=t=>t.replace("__lunora_admin__:",""),pa=()=>ds(pt.subscribe,pt.getSnapshot,pt.getSnapshot),ga=t=>t==="error"?"destructive":t==="pending"?"secondary":"default",ba=t=>{const e=k(56),{entry:s,focused:a}=t,n=te();let r;e[0]!==a?(r=I=>{I!==null&&a&&I.scrollIntoView({block:"nearest"})},e[0]=a,e[1]=r):r=e[1];const l=r;let i;e[2]!==s.functionPath||e[3]!==s.shardKey||e[4]!==s.summary?(i=()=>{xs(`${s.functionPath} ${s.summary}${s.shardKey===""?"":` (shard ${s.shardKey})`}`)},e[2]=s.functionPath,e[3]=s.shardKey,e[4]=s.summary,e[5]=i):i=e[5];const d=i,u=a&&"bg-accent ring-1 ring-inset ring-primary/40";let c;e[6]!==u?(c=L("border-b border-border/60 last:border-b-0",u),e[6]=u,e[7]=c):c=e[7];let f;e[8]!==s.status?(f=ga(s.status),e[8]=s.status,e[9]=f):f=e[9];const p=s.status==="pending"?"…":s.status;let m;e[10]!==f||e[11]!==p?(m=o(ct,{className:"mt-px shrink-0",variant:f,children:p}),e[10]=f,e[11]=p,e[12]=m):m=e[12];let h;e[13]!==s.functionPath?(h=ha(s.functionPath),e[13]=s.functionPath,e[14]=h):h=e[14];let b;e[15]!==h?(b=o("span",{className:"shrink-0 font-mono text-[11px] text-foreground",children:h}),e[15]=h,e[16]=b):b=e[16];let v;e[17]!==s.kind||e[18]!==n?(v=s.kind==="subscription"&&o(ct,{className:"shrink-0",variant:"outline",children:n("live")}),e[17]=s.kind,e[18]=n,e[19]=v):v=e[19];let g;e[20]!==s.summary?(g=s.summary!==""&&o("span",{className:"min-w-0 truncate text-muted-foreground",children:s.summary}),e[20]=s.summary,e[21]=g):g=e[21];let x;e[22]!==s.shardKey?(x=s.shardKey!==""&&o("span",{className:"font-mono",children:s.shardKey}),e[22]=s.shardKey,e[23]=x):x=e[23];let y;e[24]!==s.resultCount||e[25]!==n?(y=s.resultCount!==void 0&&o("span",{children:n("{count} rows",{count:s.resultCount})}),e[24]=s.resultCount,e[25]=n,e[26]=y):y=e[26];let N;e[27]!==s.pushes||e[28]!==n?(N=s.pushes!==void 0&&s.pushes>0&&o("span",{children:n("{count} pushes",{count:s.pushes})}),e[27]=s.pushes,e[28]=n,e[29]=N):N=e[29];let S;e[30]!==s.durationMs?(S=s.durationMs!==void 0&&w("span",{children:[s.durationMs,"ms"]}),e[30]=s.durationMs,e[31]=S):S=e[31];let P;e[32]!==n?(P=n("Copy"),e[32]=n,e[33]=P):P=e[33];let M;e[34]!==d||e[35]!==P?(M=o("button",{"aria-label":P,className:"rounded px-1 outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-copy",onClick:d,type:"button",children:"⧉"}),e[34]=d,e[35]=P,e[36]=M):M=e[36];let T;e[37]!==x||e[38]!==y||e[39]!==N||e[40]!==S||e[41]!==M?(T=w("span",{className:"ms-auto flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground",children:[x,y,N,S,M]}),e[37]=x,e[38]=y,e[39]=N,e[40]=S,e[41]=M,e[42]=T):T=e[42];let _;e[43]!==v||e[44]!==g||e[45]!==T||e[46]!==m||e[47]!==b?(_=w("div",{className:"flex items-start gap-2 px-3 py-1.5 text-xs",children:[m,b,v,g,T]}),e[43]=v,e[44]=g,e[45]=T,e[46]=m,e[47]=b,e[48]=_):_=e[48];let C;e[49]!==s.error?(C=s.error!==void 0&&o("p",{className:"px-3 pb-1.5 font-mono text-[11px] text-destructive","data-testid":"oc-error",children:s.error}),e[49]=s.error,e[50]=C):C=e[50];let R;return e[51]!==l||e[52]!==_||e[53]!==C||e[54]!==c?(R=w("li",{className:c,"data-testid":"oc-row",ref:l,children:[_,C]}),e[51]=l,e[52]=_,e[53]=C,e[54]=c,e[55]=R):R=e[55],R},va=t=>{const e=k(62),{focusSeq:s,onClose:a,onShownChange:n,shown:r}=t,l=te(),i=pa(),[d,u]=dt("");let c;if(e[0]!==i||e[1]!==s||e[2]!==d||e[3]!==a||e[4]!==n||e[5]!==r||e[6]!==l){const f=d.trim().toLowerCase(),p=i.filter($=>(r==="errors"?$.status==="error":!0)&&(f===""||`${$.functionPath} ${$.summary} ${$.shardKey}`.toLowerCase().includes(f))).toReversed();let m;e[8]!==i?(m=i.filter(xa),e[8]=i,e[9]=m):m=e[9];const h=m.length;let b;e[10]!==l?(b=l("Operation console"),e[10]=l,e[11]=b):b=e[11];let v;e[12]!==l?(v=l("Operation console"),e[12]=l,e[13]=v):v=e[13];let g;e[14]!==v?(g=o("span",{className:"text-xs font-medium",children:v}),e[14]=v,e[15]=g):g=e[15];let x;e[16]!==i.length||e[17]!==l?(x=l("{count} calls",{count:i.length}),e[16]=i.length,e[17]=l,e[18]=x):x=e[18];let y;e[19]!==x?(y=o(ct,{variant:"secondary",children:x}),e[19]=x,e[20]=y):y=e[20];let N;e[21]!==h||e[22]!==l?(N=h>0&&o(ct,{variant:"destructive",children:l("{count} failed",{count:h})}),e[21]=h,e[22]=l,e[23]=N):N=e[23];const S=r==="errors",P=r==="errors"&&"bg-accent";let M;e[24]!==P?(M=L("rounded px-2 py-0.5 text-xs outline-none hover:bg-accent focus-visible:bg-accent",P),e[24]=P,e[25]=M):M=e[25];let T;e[26]!==n||e[27]!==r?(T=()=>{n(r==="errors"?"all":"errors")},e[26]=n,e[27]=r,e[28]=T):T=e[28];let _;e[29]!==l?(_=l("Errors"),e[29]=l,e[30]=_):_=e[30];let C;e[31]!==M||e[32]!==T||e[33]!==_||e[34]!==S?(C=o("button",{"aria-pressed":S,className:M,"data-testid":"oc-filter-errors",onClick:T,type:"button",children:_}),e[31]=M,e[32]=T,e[33]=_,e[34]=S,e[35]=C):C=e[35];let R;e[36]!==l?(R=l("Filter"),e[36]=l,e[37]=R):R=e[37];let I;e[38]===Symbol.for("react.memo_cache_sentinel")?(I=$=>{u($.target.value)},e[38]=I):I=e[38];let H;e[39]!==l?(H=l("Filter"),e[39]=l,e[40]=H):H=e[40];let V;e[41]!==d||e[42]!==R||e[43]!==H?(V=o(Bt,{"aria-label":R,className:"h-7 w-40 text-xs","data-testid":"oc-search",onChange:I,placeholder:H,value:d}),e[41]=d,e[42]=R,e[43]=H,e[44]=V):V=e[44];let O;e[45]!==l?(O=l("Clear"),e[45]=l,e[46]=O):O=e[46];let B;e[47]!==O?(B=o("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:ya,type:"button",children:O}),e[47]=O,e[48]=B):B=e[48];let z;e[49]!==l?(z=l("Hide"),e[49]=l,e[50]=z):z=e[50];let D;e[51]!==a||e[52]!==z?(D=o("button",{"aria-label":z,className:"rounded px-2 py-0.5 text-xs text-muted-foreground outline-none hover:bg-accent focus-visible:bg-accent","data-testid":"oc-close",onClick:a,type:"button",children:"✕"}),e[51]=a,e[52]=z,e[53]=D):D=e[53];let F;e[54]!==C||e[55]!==V||e[56]!==B||e[57]!==D||e[58]!==g||e[59]!==y||e[60]!==N?(F=w("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-3 py-1.5",children:[g,y,N,C,V,B,D]}),e[54]=C,e[55]=V,e[56]=B,e[57]=D,e[58]=g,e[59]=y,e[60]=N,e[61]=F):F=e[61],c=w("section",{"aria-label":b,className:"flex max-h-80 flex-col border-t border-border bg-card","data-testid":"lunora-operation-console",children:[F,p.length===0?o("p",{className:"p-3 text-xs text-muted-foreground","data-testid":"oc-empty",children:l("Every admin call this studio makes is recorded here.")}):o("ul",{className:"min-h-0 flex-1 overflow-y-auto","data-testid":"oc-rows",children:p.map($=>o(ba,{entry:$,focused:$.seq===s},$.seq))})]}),e[0]=i,e[1]=s,e[2]=d,e[3]=a,e[4]=n,e[5]=r,e[6]=l,e[7]=c}else c=e[7];return c};function xa(t){return t.status==="error"}function ya(){pt.clear()}const wa=()=>{const t=k(316),e=te();let s;t[0]!==e?(s=e("Health score"),t[0]=e,t[1]=s):s=t[1];let a;t[2]!==e?(a=e("Agents"),t[2]=e,t[3]=a):a=t[3];let n;t[4]!==e?(n=e("Evals"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==e?(r=e("Analytics"),t[6]=e,t[7]=r):r=t[7];let l;t[8]!==e?(l=e("API"),t[8]=e,t[9]=l):l=t[9];let i;t[10]!==e?(i=e("Audit"),t[10]=e,t[11]=i):i=t[11];let d;t[12]!==e?(d=e("Auth audit"),t[12]=e,t[13]=d):d=t[13];let u;t[14]!==e?(u=e("Configuration"),t[14]=e,t[15]=u):u=t[15];let c;t[16]!==e?(c=e("Sessions"),t[16]=e,t[17]=c):c=t[17];let f;t[18]!==e?(f=e("Containers"),t[18]=e,t[19]=f):f=t[19];let p;t[20]!==e?(p=e("Dashboards"),t[20]=e,t[21]=p):p=t[21];let m;t[22]!==e?(m=e("Data"),t[22]=e,t[23]=m):m=t[23];let h;t[24]!==e?(h=e("Deployment health"),t[24]=e,t[25]=h):h=t[25];let b;t[26]!==e?(b=e("Log drains"),t[26]=e,t[27]=b):b=t[27];let v;t[28]!==e?(v=e("Export / Import"),t[28]=e,t[29]=v):v=t[29];let g;t[30]!==e?(g=e("Fan-out"),t[30]=e,t[31]=g):g=t[31];let x;t[32]!==e?(x=e("Files"),t[32]=e,t[33]=x):x=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 S;t[38]!==e?(S=e("Health"),t[38]=e,t[39]=S):S=t[39];let P;t[40]!==e?(P=e("Home"),t[40]=e,t[41]=P):P=t[41];let M;t[42]!==e?(M=e("Performance"),t[42]=e,t[43]=M):M=t[43];let T;t[44]!==e?(T=e("Issues"),t[44]=e,t[45]=T):T=t[45];let _;t[46]!==e?(_=e("KV"),t[46]=e,t[47]=_):_=t[47];let C;t[48]!==e?(C=e("Logs"),t[48]=e,t[49]=C):C=t[49];let R;t[50]!==e?(R=e("Metrics"),t[50]=e,t[51]=R):R=t[51];let I;t[52]!==e?(I=e("Migrations"),t[52]=e,t[53]=I):I=t[53];let H;t[54]!==e?(H=e("Notifications"),t[54]=e,t[55]=H):H=t[55];let V;t[56]!==e?(V=e("Organizations"),t[56]=e,t[57]=V):V=t[57];let O;t[58]!==e?(O=e("Time Travel"),t[58]=e,t[59]=O):O=t[59];let B;t[60]!==e?(B=e("Mail"),t[60]=e,t[61]=B):B=t[61];let z;t[62]!==e?(z=e("Payments"),t[62]=e,t[63]=z):z=t[63];let D;t[64]!==e?(D=e("Permissions"),t[64]=e,t[65]=D):D=t[65];let F;t[66]!==e?(F=e("Queues"),t[66]=e,t[67]=F):F=t[67];let $;t[68]!==e?($=e("Reactors"),t[68]=e,t[69]=$):$=t[69];let q;t[70]!==e?(q=e("Realtime"),t[70]=e,t[71]=q):q=t[71];let ee;t[72]!==e?(ee=e("RLS Policies"),t[72]=e,t[73]=ee):ee=t[73];let W;t[74]!==e?(W=e("Scheduled"),t[74]=e,t[75]=W):W=t[75];let Y;t[76]!==e?(Y=e("Schema"),t[76]=e,t[77]=Y):Y=t[77];let j;t[78]!==e?(j=e("Security"),t[78]=e,t[79]=j):j=t[79];let U;t[80]!==e?(U=e("Settings"),t[80]=e,t[81]=U):U=t[81];let G;t[82]!==e?(G=e("SQL editor"),t[82]=e,t[83]=G):G=t[83];let K;t[84]!==e?(K=e("Traces"),t[84]=e,t[85]=K):K=t[85];let Q;t[86]!==e?(Q=e("Access Rules"),t[86]=e,t[87]=Q):Q=t[87];let J;t[88]!==e?(J=e("Users"),t[88]=e,t[89]=J):J=t[89];let Z;t[90]!==e?(Z=e("Vectors"),t[90]=e,t[91]=Z):Z=t[91];let X;t[92]!==e?(X=e("Workflows"),t[92]=e,t[93]=X):X=t[93];let ut;t[94]!==s||t[95]!==a||t[96]!==p||t[97]!==m||t[98]!==h||t[99]!==b||t[100]!==v||t[101]!==g||t[102]!==x||t[103]!==y||t[104]!==N||t[105]!==S||t[106]!==n||t[107]!==P||t[108]!==M||t[109]!==T||t[110]!==_||t[111]!==C||t[112]!==R||t[113]!==I||t[114]!==H||t[115]!==V||t[116]!==O||t[117]!==r||t[118]!==B||t[119]!==z||t[120]!==D||t[121]!==F||t[122]!==$||t[123]!==q||t[124]!==ee||t[125]!==W||t[126]!==Y||t[127]!==j||t[128]!==l||t[129]!==U||t[130]!==G||t[131]!==K||t[132]!==Q||t[133]!==J||t[134]!==Z||t[135]!==X||t[136]!==i||t[137]!==d||t[138]!==u||t[139]!==c||t[140]!==f?(ut={advisorHealth:s,agents:a,evals:n,analytics:r,api:l,audit:i,authAudit:d,authConfig:u,authSessions:c,containers:f,dashboards:p,data:m,deploymentHealth:h,drains:b,export:v,fanout:g,files:x,flags:y,functions:N,health:S,home:P,insights:M,issues:T,kv:_,logs:C,metrics:R,migrations:I,notifications:H,organizations:V,pitr:O,mail:B,payments:z,permissions:D,queues:F,reactors:$,realtime:q,rls:ee,schedule:W,schema:Y,security:j,settings:U,sql:G,traces:K,storageRules:Q,users:J,vectors:Z,workflows:X},t[94]=s,t[95]=a,t[96]=p,t[97]=m,t[98]=h,t[99]=b,t[100]=v,t[101]=g,t[102]=x,t[103]=y,t[104]=N,t[105]=S,t[106]=n,t[107]=P,t[108]=M,t[109]=T,t[110]=_,t[111]=C,t[112]=R,t[113]=I,t[114]=H,t[115]=V,t[116]=O,t[117]=r,t[118]=B,t[119]=z,t[120]=D,t[121]=F,t[122]=$,t[123]=q,t[124]=ee,t[125]=W,t[126]=Y,t[127]=j,t[128]=l,t[129]=U,t[130]=G,t[131]=K,t[132]=Q,t[133]=J,t[134]=Z,t[135]=X,t[136]=i,t[137]=d,t[138]=u,t[139]=c,t[140]=f,t[141]=ut):ut=t[141];const bt=ut;let oe;t[142]!==e?(oe=e("Advisors"),t[142]=e,t[143]=oe):oe=t[143];let ne;t[144]!==e?(ne=e("Auth"),t[144]=e,t[145]=ne):ne=t[145];let re;t[146]!==e?(re=e("Database"),t[146]=e,t[147]=re):re=t[147];let le;t[148]!==e?(le=e("Functions"),t[148]=e,t[149]=le):le=t[149];let ie;t[150]!==e?(ie=e("Observability"),t[150]=e,t[151]=ie):ie=t[151];let de;t[152]!==e?(de=e("Operations"),t[152]=e,t[153]=de):de=t[153];let ce;t[154]!==e?(ce=e("Overview"),t[154]=e,t[155]=ce):ce=t[155];let ue;t[156]!==e?(ue=e("Settings"),t[156]=e,t[157]=ue):ue=t[157];let me;t[158]!==e?(me=e("Storage"),t[158]=e,t[159]=me):me=t[159];let mt;t[160]!==oe||t[161]!==ne||t[162]!==re||t[163]!==le||t[164]!==ie||t[165]!==de||t[166]!==ce||t[167]!==ue||t[168]!==me?(mt={advisors:oe,auth:ne,database:re,functions:le,observability:ie,operations:de,overview:ce,settings:ue,storage:me},t[160]=oe,t[161]=ne,t[162]=re,t[163]=le,t[164]=ie,t[165]=de,t[166]=ce,t[167]=ue,t[168]=me,t[169]=mt):mt=t[169];const vt=mt;let fe;t[170]!==e?(fe=e("Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first."),t[170]=e,t[171]=fe):fe=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 pe;t[174]!==e?(pe=e("Scores recorded by recordEvaluation — the latest verdict per eval, its trend, and the graded runs behind it."),t[174]=e,t[175]=pe):pe=t[175];let ge;t[176]!==e?(ge=e("Usage and latency from Analytics Engine — request volume, p50/p95, and hot shards."),t[176]=e,t[177]=ge):ge=t[177];let be;t[178]!==e?(be=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[178]=e,t[179]=be):be=t[179];let ve;t[180]!==e?(ve=e("A durable log of admin state-changing operations."),t[180]=e,t[181]=ve):ve=t[181];let xe;t[182]!==e?(xe=e("Authentication and security events — sign-ins, MFA, and session changes."),t[182]=e,t[183]=xe):xe=t[183];let ye;t[184]!==e?(ye=e("Enabled plugins and session config (read-only)."),t[184]=e,t[185]=ye):ye=t[185];let we;t[186]!==e?(we=e("Browse and revoke active sessions across all users."),t[186]=e,t[187]=we):we=t[187];let ke;t[188]!==e?(ke=e("Live Cloudflare Containers — current lifecycle state per instance from the log stream."),t[188]=e,t[189]=ke):ke=t[189];let Me;t[190]!==e?(Me=e("Chart widgets backed by saved read-only SQL queries."),t[190]=e,t[191]=Me):Me=t[191];let Ne;t[192]!==e?(Ne=e("Browse and edit rows across your shard and global tables."),t[192]=e,t[193]=Ne):Ne=t[193];let Se;t[194]!==e?(Se=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[194]=e,t[195]=Se):Se=t[195];let Ce;t[196]!==e?(Ce=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[196]=e,t[197]=Ce):Ce=t[197];let Pe;t[198]!==e?(Pe=e("Export a shard to NDJSON, or import rows from it."),t[198]=e,t[199]=Pe):Pe=t[199];let _e;t[200]!==e?(_e=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[200]=e,t[201]=_e):_e=t[201];let Te;t[202]!==e?(Te=e("Browse objects in your R2 storage buckets."),t[202]=e,t[203]=Te):Te=t[203];let Le;t[204]!==e?(Le=e("Inspect feature flags and their live evaluation under a targeting context."),t[204]=e,t[205]=Le):Le=t[205];let Ae;t[206]!==e?(Ae=e("Run registered queries, mutations, and actions."),t[206]=e,t[207]=Ae):Ae=t[207];let Re;t[208]!==e?(Re=e("At-a-glance connection, error, and shard signals."),t[208]=e,t[209]=Re):Re=t[209];let Ee;t[210]!==e?(Ee=e("Connection, health, and advisor summary for your deployment."),t[210]=e,t[211]=Ee):Ee=t[211];let Ie;t[212]!==e?(Ie=e("Surface slow functions, error spikes, and cache problems."),t[212]=e,t[213]=Ie):Ie=t[213];let $e;t[214]!==e?($e=e("Grouped error triage — Worker throws and container crashes folded by fingerprint."),t[214]=e,t[215]=$e):$e=t[215];let He;t[216]!==e?(He=e("A live stream of recent function logs."),t[216]=e,t[217]=He):He=t[217];let Be;t[218]!==e?(Be=e("Per-shard health and aggregate metrics."),t[218]=e,t[219]=Be):Be=t[219];let ze;t[220]!==e?(ze=e("Review migration status and run them."),t[220]=e,t[221]=ze):ze=t[221];let Ve;t[222]!==e?(Ve=e("Registered push devices — endpoint, kind, last-send status, and delivery errors."),t[222]=e,t[223]=Ve):Ve=t[223];let Oe;t[224]!==e?(Oe=e("Browse and manage organizations, members, and invitations."),t[224]=e,t[225]=Oe):Oe=t[225];let De;t[226]!==e?(De=e("Restore a shard to a point in the last 30 days."),t[226]=e,t[227]=De):De=t[227];let Ze;t[228]!==e?(Ze=e("Email your app sent, captured in dev."),t[228]=e,t[229]=Ze):Ze=t[229];let Fe;t[230]!==e?(Fe=e("Synced customers, subscriptions, and webhook events."),t[230]=e,t[231]=Fe):Fe=t[231];let qe;t[232]!==e?(qe=e("Inspect access policies per table, and probe a function as any identity."),t[232]=e,t[233]=qe):qe=t[233];let We;t[234]!==e?(We=e("Inspect declared Cloudflare Queues — their producer bindings, consumer mode, and dead-letter queue."),t[234]=e,t[235]=We):We=t[235];let je;t[236]!==e?(je=e("Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing."),t[236]=e,t[237]=je):je=t[237];let Ue;t[238]!==e?(Ue=e("Active WebSocket subscriptions on this shard."),t[238]=e,t[239]=Ue):Ue=t[239];let Ge;t[240]!==e?(Ge=e("Inspect row-level-security policies and roles, per table."),t[240]=e,t[241]=Ge):Ge=t[241];let Ke;t[242]!==e?(Ke=e("Inspect and cancel scheduled jobs."),t[242]=e,t[243]=Ke):Ke=t[243];let Qe;t[244]!==e?(Qe=e("Inspect each table and its columns."),t[244]=e,t[245]=Qe):Qe=t[245];let Ye;t[246]!==e?(Ye=e("Review admin gates, credentials, and log redaction."),t[246]=e,t[247]=Ye):Ye=t[247];let Je;t[248]!==e?(Je=e("Read-only deployment config — vars, secrets, and bindings."),t[248]=e,t[249]=Je):Je=t[249];let Xe;t[250]!==e?(Xe=e("Run read-only SQL against a shard."),t[250]=e,t[251]=Xe):Xe=t[251];let et;t[252]!==e?(et=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[252]=e,t[253]=et):et=t[253];let tt;t[254]!==e?(tt=e("Inspect storage access rules — per bucket, operation, and key prefix."),t[254]=e,t[255]=tt):tt=t[255];let st;t[256]!==e?(st=e("Recent ctx.trace waterfalls for this shard — the drill-down from a log line."),t[256]=e,t[257]=st):st=t[257];let at;t[258]!==e?(at=e("Manage auth users — roles, bans, sessions, and identity."),t[258]=e,t[259]=at):at=t[259];let ot;t[260]!==e?(ot=e("Browse Vectorize indexes and run similarity searches."),t[260]=e,t[261]=ot):ot=t[261];let nt;t[262]!==e?(nt=e("Inspect declared Cloudflare Workflows and their bindings."),t[262]=e,t[263]=nt):nt=t[263];let ft;t[264]!==tt||t[265]!==st||t[266]!==at||t[267]!==ot||t[268]!==nt||t[269]!==fe||t[270]!==he||t[271]!==pe||t[272]!==ge||t[273]!==be||t[274]!==ve||t[275]!==xe||t[276]!==ye||t[277]!==we||t[278]!==ke||t[279]!==Me||t[280]!==Ne||t[281]!==Se||t[282]!==Ce||t[283]!==Pe||t[284]!==_e||t[285]!==Te||t[286]!==Le||t[287]!==Ae||t[288]!==Re||t[289]!==Ee||t[290]!==Ie||t[291]!==$e||t[292]!==He||t[293]!==Be||t[294]!==ze||t[295]!==Ve||t[296]!==Oe||t[297]!==De||t[298]!==Ze||t[299]!==Fe||t[300]!==qe||t[301]!==We||t[302]!==je||t[303]!==Ue||t[304]!==Ge||t[305]!==Ke||t[306]!==Qe||t[307]!==Ye||t[308]!==Je||t[309]!==Xe||t[310]!==et?(ft={advisorHealth:fe,agents:he,evals:pe,analytics:ge,api:be,audit:ve,authAudit:xe,authConfig:ye,authSessions:we,containers:ke,dashboards:Me,data:Ne,deploymentHealth:Se,drains:Ce,export:Pe,fanout:_e,files:Te,flags:Le,functions:Ae,health:Re,home:Ee,insights:Ie,issues:$e,logs:He,metrics:Be,migrations:ze,notifications:Ve,organizations:Oe,pitr:De,mail:Ze,payments:Fe,permissions:qe,queues:We,reactors:je,realtime:Ue,rls:Ge,schedule:Ke,schema:Qe,security:Ye,settings:Je,sql:Xe,kv:et,storageRules:tt,traces:st,users:at,vectors:ot,workflows:nt},t[264]=tt,t[265]=st,t[266]=at,t[267]=ot,t[268]=nt,t[269]=fe,t[270]=he,t[271]=pe,t[272]=ge,t[273]=be,t[274]=ve,t[275]=xe,t[276]=ye,t[277]=we,t[278]=ke,t[279]=Me,t[280]=Ne,t[281]=Se,t[282]=Ce,t[283]=Pe,t[284]=_e,t[285]=Te,t[286]=Le,t[287]=Ae,t[288]=Re,t[289]=Ee,t[290]=Ie,t[291]=$e,t[292]=He,t[293]=Be,t[294]=ze,t[295]=Ve,t[296]=Oe,t[297]=De,t[298]=Ze,t[299]=Fe,t[300]=qe,t[301]=We,t[302]=je,t[303]=Ue,t[304]=Ge,t[305]=Ke,t[306]=Qe,t[307]=Ye,t[308]=Je,t[309]=Xe,t[310]=et,t[311]=ft):ft=t[311];const xt=ft;let ht;return t[312]!==vt||t[313]!==xt||t[314]!==bt?(ht={groupLabel:vt,tabDescription:xt,tabLabel:bt},t[312]=vt,t[313]=xt,t[314]=bt,t[315]=ht):ht=t[315],ht},ka=()=>{const t=k(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=w("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:[o("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),o("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},Ma=()=>{const t=k(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=w("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:[o("circle",{cx:"12",cy:"12",r:"4"}),o("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},Na=()=>{const t=k(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o("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:o("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},Sa=[{Icon:ka,value:"system"},{Icon:Ma,value:"light"},{Icon:Na,value:"dark"}],Ca=()=>{const t=k(19),{theme:e,setTheme:s}=Is(),a=te();let n;t[0]!==a?(n=a("Dark theme"),t[0]=a,t[1]=n):n=t[1];let r;t[2]!==a?(r=a("Light theme"),t[2]=a,t[3]=r):r=t[3];let l;t[4]!==a?(l=a("System theme"),t[4]=a,t[5]=l):l=t[5];let i;t[6]!==n||t[7]!==r||t[8]!==l?(i={dark:n,light:r,system:l},t[6]=n,t[7]=r,t[8]=l,t[9]=i):i=t[9];const d=i;let u;t[10]!==a?(u=a("Theme"),t[10]=a,t[11]=u):u=t[11];let c;t[12]!==d||t[13]!==s||t[14]!==e?(c=Sa.map(p=>{const{Icon:m,value:h}=p,b=e===h;return w("button",{"aria-checked":b,"aria-label":d[h],className:L("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",b?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${h}`,onClick:()=>{s(h)},role:"radio",title:d[h],type:"button",children:[b&&o(Ss.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"}}),o("span",{className:"relative",children:o(m,{})})]},h)}),t[12]=d,t[13]=s,t[14]=e,t[15]=c):c=t[15];let f;return t[16]!==u||t[17]!==c?(f=o("div",{"aria-label":u,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:c}),t[16]=u,t[17]=c,t[18]=f):f=t[18],f},Pa=t=>{const e=k(23),{domain:s,onOpenCommandPalette:a,page:n}=t,r=te();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=o(na,{className:"-ms-1"}),e[0]=l):l=e[0];let i;e[1]!==r?(i=r("Breadcrumb"),e[1]=r,e[2]=i):i=e[2];let d;e[3]!==s?(d=o("span",{className:"text-muted-foreground",children:s}),e[3]=s,e[4]=d):d=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=o("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:o("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[5]=u):u=e[5];let c;e[6]!==n?(c=o("span",{className:"font-medium text-foreground",children:n}),e[6]=n,e[7]=c):c=e[7];let f;e[8]!==i||e[9]!==d||e[10]!==c?(f=w("nav",{"aria-label":i,className:"flex items-center gap-1.5 text-[13px]",children:[d,u,c]}),e[8]=i,e[9]=d,e[10]=c,e[11]=f):f=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=w("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[o("circle",{cx:"11",cy:"11",r:"7"}),o("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[12]=p):p=e[12];let m;e[13]!==r?(m=r("Search…"),e[13]=r,e[14]=m):m=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"⌘K"}),e[15]=h):h=e[15];let b;e[16]!==a||e[17]!==m?(b=w("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:a,type:"button",children:[p,m,h]}),e[16]=a,e[17]=m,e[18]=b):b=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=o("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:o(Ca,{})}),e[19]=v):v=e[19];let g;return e[20]!==b||e[21]!==f?(g=w("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,b,v]}),e[20]=b,e[21]=f,e[22]=g):g=e[22],g},_a=t=>{const e=k(4),{console:s}=Cs();let a,n;e[0]!==s||e[1]!==t?(a=()=>{if(t===void 0)return;const r=l=>{if(!l.ctrlKey||l.metaKey||l.altKey||l.shiftKey||l.repeat||l.key.toLowerCase()!==s)return;const{target:i}=l;i instanceof HTMLElement&&(i.isContentEditable||["INPUT","SELECT","TEXTAREA"].includes(i.tagName))||(l.preventDefault(),t())};return globalThis.addEventListener("keydown",r),()=>{globalThis.removeEventListener("keydown",r)}},n=[s,t],e[0]=s,e[1]=t,e[2]=a,e[3]=n):(a=e[2],n=e[3]),lt(a,n)},E=(t,e)=>A(()=>t().then(s=>({default:s[e]}))),Ta=E(()=>import("../packem_chunks/InsightsPanel.mjs"),"InsightsPanel"),La=A(()=>import("../packem_chunks/rls-panel.mjs")),Aa=A(()=>import("../packem_chunks/AdvisorHealthPanel.mjs")),Ra=A(()=>import("../packem_chunks/SecurityAdvisorPanel.mjs")),Ea=A(()=>import("../packem_chunks/agents-panel.mjs")),Ia=E(()=>import("../packem_chunks/analytics-panel.mjs"),"AnalyticsPanel"),$a=A(()=>import("../packem_chunks/ApiTab.mjs")),Ha=A(()=>import("../packem_chunks/auth-audit-panel.mjs")),Ba=A(()=>import("../packem_chunks/auth-config-panel.mjs")),za=A(()=>import("../packem_chunks/auth-sessions-panel.mjs")),Va=A(()=>import("../packem_chunks/organizations-panel.mjs")),Oa=E(()=>import("../packem_chunks/users-panel.mjs"),"UsersPanel"),Da=A(()=>import("../packem_chunks/containers-panel.mjs")),Za=E(()=>import("../packem_chunks/DeploymentHealthPanel.mjs"),"DeploymentHealthPanel"),Fa=E(()=>import("../packem_chunks/TableEditor.mjs"),"TableEditor"),qa=E(()=>import("../packem_chunks/ExportImportPanel.mjs"),"ExportImportPanel"),Wa=A(()=>import("../packem_chunks/migrations-route.mjs")),ja={data:ks,migrations:ws},Ua=E(()=>import("../packem_chunks/PitrPanel.mjs"),"PitrPanel"),Ga=A(()=>import("../packem_chunks/flags-panel.mjs")),Ka=A(()=>import("../packem_chunks/reactors-panel.mjs")),Qa=E(()=>import("../packem_chunks/FunctionRunner.mjs"),"FunctionRunner"),Ya=E(()=>import("../packem_chunks/FunctionStatsPanel.mjs"),"FunctionStatsPanel"),Ja=A(()=>import("../packem_chunks/issues-panel.mjs")),Xa=E(()=>import("../packem_chunks/AuditPanel.mjs"),"AuditPanel"),eo=A(()=>import("../packem_chunks/log-drains-panel.mjs")),to=A(()=>import("../packem_chunks/LogsPanel.mjs").then(t=>({default:t.LogsPanel}))),so=E(()=>import("../packem_chunks/MailPanel.mjs"),"MailPanel"),ao=E(()=>import("../packem_chunks/schedule-panel.mjs"),"SchedulePanel"),oo=A(()=>import("../packem_chunks/subscriptions-panel.mjs")),no=A(()=>import("../packem_chunks/sync-client-panel.mjs")),ro=E(()=>import("../packem_chunks/kv-browser.mjs"),"KvBrowser"),lo=A(()=>import("../packem_chunks/NotificationsPanel.mjs")),io=E(()=>import("../packem_chunks/payments-panel.mjs"),"PaymentsPanel"),co=E(()=>import("../packem_chunks/permissions-panel.mjs"),"PermissionsPanel"),uo=A(()=>import("../packem_chunks/queues-panel.mjs")),mo=A(()=>import("../packem_chunks/dashboards-panel.mjs")),fo=A(()=>import("../packem_chunks/fanout-panel.mjs")),ho=E(()=>import("../packem_chunks/HealthPanel.mjs"),"HealthPanel"),po=E(()=>import("../packem_chunks/MetricsPanel.mjs"),"MetricsPanel"),go=E(()=>import("../packem_chunks/SchemaViewer.mjs"),"SchemaViewer"),bo=E(()=>import("../packem_chunks/SettingsPanel.mjs"),"SettingsPanel"),vo=E(()=>import("../packem_chunks/SqlEditorPanel.mjs"),"SqlEditorPanel"),xo=E(()=>import("../packem_chunks/FileBrowser.mjs"),"FileBrowser"),yo=A(()=>import("../packem_chunks/storage-rules-panel.mjs")),wo=A(()=>import("../packem_chunks/traces-panel.mjs")),ko=A(()=>import("../packem_chunks/evals-panel.mjs")),Mo=E(()=>import("../packem_chunks/vector-browser.mjs"),"VectorBrowser"),No=A(()=>import("../packem_chunks/workflows-panel.mjs")),Jt=It(null),So={analytics:o("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:o("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:o("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:o("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:o("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:o("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:o("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:o("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:o("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:o("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:o("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:o("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:o("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:o("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:o("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:o("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:o("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),evals:o("path",{d:"M4 19V5m0 14h16M8 15l3-4 3 3 4-6M8 15v.01"}),health:o("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:o("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:o("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:o("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:o("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:o("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:o("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:o("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:o("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:o("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:o("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:o("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:o("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:o("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:o("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),reactors:o("path",{d:"M4 4v6h6M20 20v-6h-6M20 9a8 8 0 0 0-14.7-3M4 15a8 8 0 0 0 14.7 3"}),realtime:o("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:o("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:o("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:o("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:o("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:o("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:o("path",{d:"M3 12h4l2-5 3 10 2-5h5"}),security:o("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:o("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:o("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:o("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:o("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:o("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},At=[{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"]}],Co={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"},Rt=(t,e)=>{const s=Co[t];return s===void 0||e[s]},Nt=t=>{const e=k(2),{tab:s}=t,a=So[s];let n;return e[0]!==a?(n=o("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:a}),e[0]=a,e[1]=n):n=e[1],n},Po=t=>t,Xt=Po(["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"]),_o=new Set(["api","data","migrations","sql"]),To=t=>{const e=t.split("/").findLast(Boolean)??"";return Xt.includes(e)?e:"home"},Lo=t=>{const e=k(19),{chrome:s,connected:a}=t,n=te();let r;e[0]!==n?(r=n("admin token"),e[0]=n,e[1]=r):r=e[1];let l;e[2]!==r?(l=o("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:r}),e[2]=r,e[3]=l):l=e[3];let i;e[4]!==s.onTokenChange||e[5]!==s.token?(i=o(Bt,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:s.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:s.token}),e[4]=s.onTokenChange,e[5]=s.token,e[6]=i):i=e[6];let d;e[7]!==a||e[8]!==n?(d=a&&w("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[o("span",{"aria-hidden":"true",className:"text-warning",children:"⚠"}),n("Token rides the WebSocket URL — it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=a,e[8]=n,e[9]=d):d=e[9];let u;e[10]!==s.clearToken||e[11]!==a||e[12]!==n?(u=a&&o("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:s.clearToken,type:"button",children:n("Clear")}),e[10]=s.clearToken,e[11]=a,e[12]=n,e[13]=u):u=e[13];let c;return e[14]!==l||e[15]!==i||e[16]!==d||e[17]!==u?(c=w("div",{className:"flex flex-col gap-2",children:[l,i,d,u]}),e[14]=l,e[15]=i,e[16]=d,e[17]=u,e[18]=c):c=e[18],c},Ao=t=>{const e=k(25),{current:s,group:a,groupLabel:n,selectTab:r,tabDescription:l,tabLabel:i}=t,d=a.tabs.includes(s)?"page":void 0,u=n[a.key],c=a.tabs[0];let f;e[0]!==c?(f=o(Nt,{tab:c}),e[0]=c,e[1]=f):f=e[1];let p;e[2]!==d||e[3]!==u||e[4]!==f?(p=o(Gt,{"aria-current":d,"aria-label":u,className:"mx-auto flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent data-[popup-open]:bg-sidebar-accent data-[popup-open]:text-sidebar-accent-foreground data-[popup-open]:shadow-xs aria-[current=page]:bg-sidebar-accent aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:shadow-xs",delay:120,openOnHover:!0,children:f}),e[2]=d,e[3]=u,e[4]=f,e[5]=p):p=e[5];const m=n[a.key];let h;e[6]!==m?(h=o("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:m}),e[6]=m,e[7]=h):h=e[7];let b;if(e[8]!==s||e[9]!==a.tabs||e[10]!==r||e[11]!==l||e[12]!==i){let x;e[14]!==s||e[15]!==r||e[16]!==l||e[17]!==i?(x=y=>w("button",{"aria-current":s===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:r,title:l[y],type:"button",children:[o(Nt,{tab:y}),o("span",{children:i[y]})]},y),e[14]=s,e[15]=r,e[16]=l,e[17]=i,e[18]=x):x=e[18],b=a.tabs.map(x),e[8]=s,e[9]=a.tabs,e[10]=r,e[11]=l,e[12]=i,e[13]=b}else b=e[13];let v;e[19]!==h||e[20]!==b?(v=w(Kt,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[h,b]}),e[19]=h,e[20]=b,e[21]=v):v=e[21];let g;return e[22]!==p||e[23]!==v?(g=w(Ut,{children:[p,v]}),e[22]=p,e[23]=v,e[24]=g):g=e[24],g},Ro=t=>{const e=k(45),{chrome:s,collapsed:a,connected:n}=t,r=te();if(s===null){let y;e[0]!==r?(y=r("Admin"),e[0]=r,e[1]=y):y=e[1];let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=o("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 S;e[3]!==r?(S=r("Admin"),e[3]=r,e[4]=S):S=e[4];let P;e[5]!==S?(P=o("span",{className:"truncate text-[13px] font-medium",children:S}),e[5]=S,e[6]=P):P=e[6];let M;e[7]!==r?(M=r("Studio"),e[7]=r,e[8]=M):M=e[8];let T;e[9]!==M?(T=o("span",{className:"truncate text-[11px] text-muted-foreground",children:M}),e[9]=M,e[10]=T):T=e[10];let _;e[11]!==P||e[12]!==T?(_=w("span",{className:"grid flex-1 text-start leading-tight",children:[P,T]}),e[11]=P,e[12]=T,e[13]=_):_=e[13];let C;return e[14]!==y||e[15]!==_?(C=w(Yt,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[N,_]}),e[14]=y,e[15]=_,e[16]=C):C=e[16],C}const l=a?"mx-auto size-8 justify-center":"w-full p-2";let i;e[17]!==l?(i=L("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]=i):i=e[18];let d;e[19]!==n||e[20]!==r?(d=r(n?"Connected":"Not connected"),e[19]=n,e[20]=r,e[21]=d):d=e[21];const u=n?"bg-success":"bg-muted-foreground/50";let c;e[22]!==u?(c=L("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",u),e[22]=u,e[23]=c):c=e[23];let f;e[24]!==c?(f=w("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",o("span",{"aria-hidden":"true",className:c})]}),e[24]=c,e[25]=f):f=e[25];let p;e[26]!==a||e[27]!==n||e[28]!==r?(p=!a&&w($t,{children:[w("span",{className:"grid flex-1 text-start leading-tight",children:[o("span",{className:"truncate text-[13px] font-medium",children:r("Admin")}),o("span",{className:"truncate text-[11px] text-muted-foreground",children:r(n?"Connected":"Not connected")})]}),o("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:o("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=a,e[27]=n,e[28]=r,e[29]=p):p=e[29];let m;e[30]!==i||e[31]!==d||e[32]!==f||e[33]!==p?(m=w(Gt,{className:i,"data-testid":"dash-app-connect",title:d,children:[f,p]}),e[30]=i,e[31]=d,e[32]=f,e[33]=p,e[34]=m):m=e[34];const h=a?"end":"start",b=a?"right":"top";let v;e[35]!==s||e[36]!==n?(v=o(Lo,{chrome:s,connected:n}),e[35]=s,e[36]=n,e[37]=v):v=e[37];let g;e[38]!==b||e[39]!==v||e[40]!==h?(g=o(Kt,{align:h,keepMounted:!0,side:b,children:v}),e[38]=b,e[39]=v,e[40]=h,e[41]=g):g=e[41];let x;return e[42]!==g||e[43]!==m?(x=w(Ut,{children:[m,g]}),e[42]=g,e[43]=m,e[44]=x):x=e[44],x},Eo=t=>{const e=k(28),{chrome:s,connected:a,current:n,groupLabel:r,groups:l,selectTab:i,tabDescription:d,tabLabel:u}=t,c=te(),{state:f}=gt(),p=f==="collapsed",m=p&&"justify-center px-0";let h;e[0]!==m?(h=L("flex items-center gap-2.5 px-1.5 py-1",m),e[0]=m,e[1]=h):h=e[1];let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b=o(zs,{className:"size-9 shrink-0 text-foreground"}),e[2]=b):b=e[2];let v;e[3]!==p||e[4]!==a||e[5]!==c?(v=!p&&w($t,{children:[w("span",{className:"grid flex-1 leading-tight",children:[o("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),o("span",{className:"truncate text-[11px] text-muted-foreground",children:c("Studio")})]}),o(ct,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:c(a?"Live":"Local")})]}),e[3]=p,e[4]=a,e[5]=c,e[6]=v):v=e[6];let g;e[7]!==h||e[8]!==v?(g=o(la,{children:w("div",{className:h,children:[b,v]})}),e[7]=h,e[8]=v,e[9]=g):g=e[9];let x;e[10]!==p||e[11]!==n||e[12]!==r||e[13]!==l||e[14]!==i||e[15]!==d||e[16]!==u?(x=p?l.map(P=>o(Ao,{current:n,group:P,groupLabel:r,selectTab:i,tabDescription:d,tabLabel:u},P.key)):l.map(P=>w(ca,{children:[o(ua,{className:"text-[11px] font-medium tracking-wider uppercase",children:r[P.key]}),o(ma,{children:o(Tt,{children:P.tabs.map(M=>o(Lt,{children:w(Yt,{className:"data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]","data-tab":M,"data-testid":`dash-tab-${M}`,isActive:n===M,onClick:i,title:d[M],tooltip:d[M],children:[o(Nt,{tab:M}),o("span",{children:u[M]})]})},M))})})]},P.key)),e[10]=p,e[11]=n,e[12]=r,e[13]=l,e[14]=i,e[15]=d,e[16]=u,e[17]=x):x=e[17];let y;e[18]!==x?(y=o(da,{children:x}),e[18]=x,e[19]=y):y=e[19];let N;e[20]!==s||e[21]!==p||e[22]!==a?(N=o(ia,{children:o(Tt,{children:o(Lt,{children:o(Ro,{chrome:s,collapsed:p,connected:a})})})}),e[20]=s,e[21]=p,e[22]=a,e[23]=N):N=e[23];let S;return e[24]!==g||e[25]!==y||e[26]!==N?(S=w(oa,{collapsible:"icon",variant:"inset",children:[g,y,N]}),e[24]=g,e[25]=y,e[26]=N,e[27]=S):S=e[27],S},es=()=>{const t=k(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=w("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[w("div",{className:"flex items-center gap-2",children:[o(yt,{className:"h-8 w-40"}),o(yt,{className:"h-8 w-24"})]}),o(yt,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},Io=()=>{const t=k(64),e=te(),s=Et();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={select:Oo},t[0]=a):a=t[0];const n=ls(a);let r,l;t[1]!==n?(r=To(n),l=_o.has(r),t[1]=n,t[2]=r,t[3]=l):(r=t[2],l=t[3]);const i=l,d=fs(),u=d?.toggle;_a(u);const c=vs(),{groupLabel:f,tabDescription:p,tabLabel:m}=wa();let h;t[4]!==c?(h=Z=>({...Z,tabs:Z.tabs.filter(X=>Rt(X,c))}),t[4]=c,t[5]=h):h=t[5];const b=At.map(h).filter(Do);let v,g;t[6]!==r||t[7]!==c||t[8]!==s?(v=()=>{Rt(r,c)||Mt(s({replace:!0,to:"/home"}))},g=[r,c,s],t[6]=r,t[7]=c,t[8]=s,t[9]=v,t[10]=g):(v=t[9],g=t[10]),lt(v,g);let x;t[11]!==s?(x=Z=>{Mt(s({to:`/${Z.currentTarget.dataset.tab??""}`}))},t[11]=s,t[12]=x):x=t[12];const y=x;let N,S;t[13]!==r||t[14]!==m?(N=()=>{typeof document<"u"&&(document.title=`${m[r]} · lunora`)},S=[r,m],t[13]=r,t[14]=m,t[15]=N,t[16]=S):(N=t[15],S=t[16]),lt(N,S);const P=b.find(Z=>Z.tabs.includes(r))??At[0];let M;t[17]!==f||t[18]!==m?(M=Z=>Z.tabs.map(X=>({group:f[Z.key],label:m[X],to:`/${X}`})),t[17]=f,t[18]=m,t[19]=M):M=t[19];const T=b.flatMap(M),_=u===void 0?T:[...T,{group:e("Operations"),label:e("Toggle operation console"),run:u}],C=St(Jt),R=C!==null&&C.token!=="";let I;t[20]!==_?(I=o(Ms,{items:_}),t[20]=_,t[21]=I):I=t[21];let H;t[22]!==C||t[23]!==R||t[24]!==r||t[25]!==f||t[26]!==y||t[27]!==p||t[28]!==m||t[29]!==b?(H=o(Eo,{chrome:C,connected:R,current:r,groupLabel:f,groups:b,selectTab:y,tabDescription:p,tabLabel:m}),t[22]=C,t[23]=R,t[24]=r,t[25]=f,t[26]=y,t[27]=p,t[28]=m,t[29]=b,t[30]=H):H=t[30];const V=f[P.key],O=m[r];let B;t[31]!==V||t[32]!==O?(B=o(Pa,{domain:V,onOpenCommandPalette:Ns,page:O}),t[31]=V,t[32]=O,t[33]=B):B=t[33];let z;t[34]!==C?.rulesInstalled?(z=C?.rulesInstalled===!1&&o(Ds,{}),t[34]=C?.rulesInstalled,t[35]=z):z=t[35];const D=`dash-tab-${r}`,F=i?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",$=m[r];let q;t[36]!==e||t[37]!==$?(q=e("{title} failed",{title:$}),t[36]=e,t[37]=$,t[38]=q):q=t[38];const ee=m[r];let W;t[39]!==e?(W=e("Try again"),t[39]=e,t[40]=W):W=t[40];let Y;t[41]===Symbol.for("react.memo_cache_sentinel")?(Y=o(cs,{fallback:o(es,{}),children:o(is,{})}),t[41]=Y):Y=t[41];let j;t[42]!==r||t[43]!==q||t[44]!==ee||t[45]!==W?(j=o(us,{fallbackTitle:q,label:ee,retryLabel:W,children:Y},r),t[42]=r,t[43]=q,t[44]=ee,t[45]=W,t[46]=j):j=t[46];let U;t[47]!==F||t[48]!==j?(U=o("div",{className:F,children:j}),t[47]=F,t[48]=j,t[49]=U):U=t[49];let G;t[50]!==d?(G=d?.open===!0&&o(va,{focusSeq:d.focusSeq,onClose:d.close,onShownChange:d.setShown,shown:d.shown}),t[50]=d,t[51]=G):G=t[51];let K;t[52]!==D||t[53]!==U||t[54]!==G?(K=w("div",{"aria-labelledby":D,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:[U,G]}),t[52]=D,t[53]=U,t[54]=G,t[55]=K):K=t[55];let Q;t[56]!==B||t[57]!==z||t[58]!==K?(Q=w(ra,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[B,z,K]}),t[56]=B,t[57]=z,t[58]=K,t[59]=Q):Q=t[59];let J;return t[60]!==H||t[61]!==Q||t[62]!==I?(J=w(aa,{className:"min-h-0 flex-1","data-testid":"lunora-studio",children:[I,H,Q]}),t[60]=H,t[61]=Q,t[62]=I,t[63]=J):J=t[63],J},$o=()=>{const t=k(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o(ms,{children:o(Io,{})}),t[0]=e):e=t[0],e},Ho=t=>{const e=k(5),{initialShardKey:s,schemaEditable:a}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=ns(n),{table:l}=r,i=typeof l=="string"?l:void 0;let d;return e[1]!==s||e[2]!==i||e[3]!==a?(d=o(go,{initialShardKey:s,initialTable:i,schemaEditable:a}),e[1]=s,e[2]=i,e[3]=a,e[4]=d):d=e[4],d},Bo=()=>{const t=k(3),e=Et();let s,a;return t[0]!==e?(s=()=>{Mt(e({replace:!0,to:"/home"}))},a=[e],t[0]=e,t[1]=s,t[2]=a):(s=t[1],a=t[2]),lt(s,a),null},zo=({basePath:t,dataEditable:e=!1,functions:s,initialShardKey:a,openApiSpec:n,openRpcSpec:r,runAsIdentity:l=!1,schemaEditable:i=!1,scheduledCancel:d,scheduledCron:u,scheduledLoad:c})=>{const f=ts({component:$o}),p={agents:o(Ea,{initialShardKey:a}),analytics:o(Ia,{}),api:o($a,{functions:s,initialShardKey:a,openApiSpec:n,openRpcSpec:r}),audit:o(Xa,{initialShardKey:a}),authAudit:o(Ha,{}),authConfig:o(Ba,{}),authSessions:o(za,{}),containers:o(Da,{}),dashboards:o(mo,{initialShardKey:a}),data:o(Fa,{editable:e,initialShardKey:a}),deploymentHealth:o(Za,{}),drains:o(eo,{}),export:o(qa,{initialShardKey:a}),fanout:o(fo,{initialShardKey:a}),files:o(xo,{}),kv:o(ro,{}),flags:o(Ga,{initialShardKey:a}),reactors:o(Ka,{initialShardKey:a}),functions:w("div",{className:"flex flex-col gap-8",children:[o(Ya,{functions:s,initialShardKey:a}),o(Qa,{functions:s,runAsIdentity:l})]}),health:o(ho,{initialShardKey:a}),home:o(bs,{initialShardKey:a}),insights:o(Ta,{initialShardKey:a}),issues:o(Ja,{initialShardKey:a}),logs:o(to,{initialShardKey:a}),traces:o(wo,{initialShardKey:a}),evals:o(ko,{initialShardKey:a}),metrics:o(po,{initialShardKey:a}),migrations:o(Wa,{initialShardKey:a}),notifications:o(lo,{}),organizations:o(Va,{}),permissions:o(co,{functions:s,runAsIdentity:l,schemaEditable:i}),pitr:o(Ua,{initialShardKey:a}),mail:o(so,{}),payments:o(io,{}),queues:o(uo,{}),realtime:w("div",{className:"flex flex-col gap-8",children:[o(oo,{initialShardKey:a}),o(no,{})]}),rls:o(La,{}),schedule:o(ao,{loadCronJobs:u,scheduledCancel:d,scheduledLoad:c}),schema:o(Ho,{initialShardKey:a,schemaEditable:i}),advisorHealth:o(Aa,{}),security:o(Ra,{}),settings:o(bo,{initialShardKey:a}),sql:o(vo,{initialShardKey:a}),storageRules:o(yo,{}),users:o(Oa,{}),vectors:o(Mo,{}),workflows:o(No,{})},m=Pt({component:()=>p.home,getParentRoute:()=>f,path:"/"}),h=Xt.map(g=>Pt({component:()=>p[g],getParentRoute:()=>f,path:`/${g}`,validateSearch:ja[g]})),b=f.addChildren([m,...h]),v="window"in globalThis?ss():as({initialEntries:["/home"]});return os({...t===void 0||t==="/"?{}:{basepath:t},defaultNotFoundComponent:Bo,defaultPendingComponent:es,defaultPendingMinMs:0,defaultPendingMs:0,history:v,routeTree:b})},Vo=t=>{const e=k(17),{basePath:s,chrome:a,dataEditable:n,functions:r,initialShardKey:l,openApiSpec:i,openRpcSpec:d,runAsIdentity:u,schemaEditable:c,scheduledCancel:f,scheduledCron:p,scheduledLoad:m}=t;let h;e[0]!==s||e[1]!==n||e[2]!==r||e[3]!==l||e[4]!==i||e[5]!==d||e[6]!==u||e[7]!==f||e[8]!==p||e[9]!==m||e[10]!==c?(h=zo({basePath:s,dataEditable:n,functions:r,initialShardKey:l,openApiSpec:i,openRpcSpec:d,runAsIdentity:u,schemaEditable:c,scheduledCancel:f,scheduledCron:p,scheduledLoad:m}),e[0]=s,e[1]=n,e[2]=r,e[3]=l,e[4]=i,e[5]=d,e[6]=u,e[7]=f,e[8]=p,e[9]=m,e[10]=c,e[11]=h):h=e[11];const b=h,v=a??null;let g;e[12]!==b?(g=o(rs,{router:b}),e[12]=b,e[13]=g):g=e[13];let x;return e[14]!==v||e[15]!==g?(x=o(Jt,{value:v,children:g}),e[14]=v,e[15]=g,e[16]=x):x=e[16],x},xn=t=>{const e=k(17),{basePath:s,chrome:a,dataEditable:n,functions:r,i18n:l,initialShardKey:i,locale:d,openApiSpec:u,openRpcSpec:c,runAsIdentity:f,schemaEditable:p,scheduledCancel:m,scheduledCron:h,scheduledLoad:b}=t;let v;e[0]!==s||e[1]!==a||e[2]!==n||e[3]!==r||e[4]!==i||e[5]!==u||e[6]!==c||e[7]!==f||e[8]!==m||e[9]!==h||e[10]!==b||e[11]!==p?(v=o(Es,{children:o(Vo,{basePath:s,chrome:a,dataEditable:n,functions:r,initialShardKey:i,openApiSpec:u,openRpcSpec:c,runAsIdentity:f,scheduledCancel:m,scheduledCron:h,scheduledLoad:b,schemaEditable:p})}),e[0]=s,e[1]=a,e[2]=n,e[3]=r,e[4]=i,e[5]=u,e[6]=c,e[7]=f,e[8]=m,e[9]=h,e[10]=b,e[11]=p,e[12]=v):v=e[12];const g=v;if(l===void 0&&d===void 0)return g;let x;return e[13]!==l||e[14]!==d||e[15]!==g?(x=o(ys,{i18n:l,locale:d,children:g}),e[13]=l,e[14]=d,e[15]=g,e[16]=x):x=e[16],x};function Oo(t){return t.location.pathname}function Do(t){return t.tabs.length>0}export{zs as B,xn as S,Rs as T,vn as a,qs as b,Us as c,Gs as d,Ks as e,Is as u};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{c as d}from"react/compiler-runtime";import{c as i}from"./utils-bhneXptQ.mjs";import{jsx as r}from"react/jsx-runtime";function f(o){const e=d(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=i("w-full caption-bottom text-xs",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto overflow-y-clip",children:r("table",{"data-slot":"table",className:a,...l})}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}function p(o){const e=d(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=i("bg-muted/50 [&_tr]:border-b",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r("thead",{"data-slot":"table-header",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}function m(o){const e=d(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r("tbody",{"data-slot":"table-body",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}function u(o){const e=d(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=i("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r("tr",{"data-slot":"table-row",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}function h(o){const e=d(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=i("h-9 border-e border-border px-3 text-start align-middle font-mono text-[11px] font-medium tracking-wide whitespace-nowrap text-muted-foreground uppercase last:border-e-0 [&:has([role=checkbox])]:pe-0",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r("th",{"data-slot":"table-head",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}function x(o){const e=d(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=i("border-e border-border px-3 py-1.5 align-middle whitespace-nowrap last:border-e-0 [&:has([role=checkbox])]:pe-0",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r("td",{"data-slot":"table-cell",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}export{f as T,p as a,u as b,h as c,m as d,x as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as C}from"react/compiler-runtime";import{useT as E}from"./DEFAULT_LOCALE-A1Yg5ORA.mjs";import{jsxs as k,jsx as x}from"react/jsx-runtime";import{useRef as A,useEffect as W,useState as I,useMemo as q}from"react";import{f as L,b as H}from"./internal-CwaF9YNk.mjs";import{u as Q}from"./use-admin-query-Cbj2GuHu.mjs";import{ADMIN_FUNCTIONS as K}from"./ADMIN_FUNCTIONS-B6z7VLYt.mjs";import{useVirtualizer as Y}from"@tanstack/react-virtual";import{c as Z}from"./utils-bhneXptQ.mjs";import{f as X}from"./virtual-rect-D_j7aLxX.mjs";const ee=2166136261,te=16777619,j=(n,e=ee)=>{let t=e;for(let s=0;s<n.length;s+=1)t^=n.codePointAt(s)??0,t=Math.imul(t,te);return(t>>>0).toString(16).padStart(8,"0")},se=/([a-z\d])([A-Z])/gu,ne=/[\s_-]+/u,re=new Set(["access_token","api_key","apikey","card_number","client_secret","credit_card","cvv","passwd","password","private_key","pwd","refresh_token","secret","ssn","token"]),oe=n=>{const e=n.replaceAll(se,"$1 $2").split(ne).map(s=>s.toLowerCase()).filter(s=>s.length>0),t=new Set(e);for(let s=0;s<e.length-1;s+=1){const r=e[s],m=e[s+1];r===void 0||m===void 0||(t.add(`${r}${m}`),t.add(`${r}_${m}`))}return[...t]},P="•••",G=(n,e)=>{try{return e==="redact"?null:e==="hash"?n==null?n:j(typeof n=="bigint"?n.toString():typeof n=="string"?n:JSON.stringify(n)):P}catch{return P}},V=(n,e)=>{const t=new Map;for(const s of n)s.table===e&&t.set(s.column,s.strategy);return t},ae=n=>{for(const e of oe(n))if(re.has(e))return!0;return!1},B=(n,e)=>{const t=e.filter(r=>!n.has(r)&&ae(r));if(t.length===0)return n;const s=new Map(n);for(const r of t)s.set(r,"redact");return s},_e=(n,e,t)=>{if(!t.enabled)return n;const s=t.columns.get(e);return s===void 0?n:G(n,s)},le=(n,e)=>{if(!e.enabled||e.columns.size===0)return n;const t={...n};for(const[s,r]of e.columns)s in t&&(t[s]=G(t[s],r));return t},Fe=(n,e)=>!e.enabled||e.columns.size===0?n:n.map(t=>le(t,e)),ce=[25,50,100,250],ie=n=>{const e=C(18),{onChange:t,options:s,prefix:r,value:m}=n,u=E();let g;e[0]!==t?(g=p=>{t(Number.parseInt(p.target.value,10))},e[0]=t,e[1]=g):g=e[1];const o=g,f=`${r}-page-size`;let l;e[2]!==u?(l=u("Rows per page"),e[2]=u,e[3]=l):l=e[3];let a;e[4]!==l?(a=x("span",{children:l}),e[4]=l,e[5]=a):a=e[5];const c=`${r}-page-size`,d=`${r}-page-size`;let b;e[6]!==s?(b=s.map(ue),e[6]=s,e[7]=b):b=e[7];let h;e[8]!==o||e[9]!==c||e[10]!==d||e[11]!==b||e[12]!==m?(h=x("select",{className:"h-6 rounded-md border border-border bg-background px-1 tabular-nums outline-none focus-visible:border-ring","data-testid":c,id:d,onChange:o,value:m,children:b}),e[8]=o,e[9]=c,e[10]=d,e[11]=b,e[12]=m,e[13]=h):h=e[13];let i;return e[14]!==f||e[15]!==a||e[16]!==h?(i=k("label",{className:"flex items-center gap-1.5",htmlFor:f,children:[a,h]}),e[14]=f,e[15]=a,e[16]=h,e[17]=i):i=e[17],i},de=n=>{const e=C(25),{onJump:t,page:s,pages:r,prefix:m}=n,u=E();let g;e[0]!==t||e[1]!==r?(g=v=>{const S=Number.parseInt(v,10);Number.isNaN(S)||t(Math.min(Math.max(1,S),Math.max(1,r)))},e[0]=t,e[1]=r,e[2]=g):g=e[2];const o=g;let f;e[3]!==o?(f=v=>{v.key==="Enter"&&o(v.currentTarget.value)},e[3]=o,e[4]=f):f=e[4];const l=f;let a;e[5]!==o?(a=v=>{o(v.currentTarget.value)},e[5]=o,e[6]=a):a=e[6];const c=a;let d;e[7]!==u?(d=u("Page"),e[7]=u,e[8]=d):d=e[8];let b;e[9]!==u?(b=u("Page"),e[9]=u,e[10]=b):b=e[10];const h=`${m}-page-jump`,i=Math.max(1,r);let p;e[11]!==c||e[12]!==l||e[13]!==s||e[14]!==b||e[15]!==h||e[16]!==i?(p=x("input",{"aria-label":b,className:"h-6 w-12 rounded-md border border-border bg-background px-1 text-center tabular-nums outline-none focus-visible:border-ring","data-testid":h,defaultValue:s,max:i,min:1,onBlur:c,onKeyDown:l,type:"number"},s),e[11]=c,e[12]=l,e[13]=s,e[14]=b,e[15]=h,e[16]=i,e[17]=p):p=e[17];let N;e[18]!==r||e[19]!==u?(N=u("of {pages}",{pages:r}),e[18]=r,e[19]=u,e[20]=N):N=e[20];let y;return e[21]!==d||e[22]!==p||e[23]!==N?(y=k("span",{className:"flex items-center gap-1.5 tabular-nums",children:[d,p,N]}),e[21]=d,e[22]=p,e[23]=N,e[24]=y):y=e[24],y},Te=({hasNext:n,hasPrevious:e,onJumpToPage:t,onNext:s,onPageSizeChange:r,onPrevious:m,pageSize:u,pageSizeOptions:g=ce,prefix:o,rangeEnd:f,rangeStart:l,total:a})=>{const c=E(),d="rounded-md border border-border px-2.5 py-1 text-xs font-medium text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50",b=u!==void 0&&u>0?Math.max(1,Math.ceil(a/u)):1,h=u!==void 0&&u>0?Math.floor(Math.max(0,l-1)/u)+1:1;return k("div",{className:"flex w-full items-center justify-between gap-3 text-xs text-muted-foreground",children:[k("div",{className:"flex items-center gap-3",children:[u!==void 0&&r!==void 0&&x(ie,{onChange:r,options:g,prefix:o,value:u}),x("span",{className:"tabular-nums","data-testid":`${o}-page-info`,children:c("{rangeStart}-{rangeEnd} of {total}",{rangeEnd:f,rangeStart:l,total:a})})]}),k("div",{className:"flex items-center gap-3",children:[x("button",{className:d,"data-testid":`${o}-prev`,disabled:!e,onClick:m,type:"button",children:c("Previous")}),u!==void 0&&t!==void 0&&x(de,{onJump:t,page:h,pages:b,prefix:o}),x("button",{className:d,"data-testid":`${o}-next`,disabled:!n,onClick:s,type:"button",children:c("Next")})]})]})};function ue(n){return x("option",{value:n,children:n},n)}const D=n=>n==null?"∅":n===""?"(empty)":typeof n=="object"?JSON.stringify(n):String(n),fe=n=>{const e=C(32),{column:t,onFacetFilter:s,state:r}=n,m=E();let u;e[0]!==t||e[1]!==s||e[2]!==r.result?.values?(u=i=>{const p=Number(i.currentTarget.dataset.index),N=r.result?.values[p];N!==void 0&&s(t,N.value)},e[0]=t,e[1]=s,e[2]=r.result?.values,e[3]=u):u=e[3];const g=u,o=`db-facet-${t}`;let f;e[4]!==t?(f=x("span",{className:"font-medium text-foreground",children:t}),e[4]=t,e[5]=f):f=e[5];let l;e[6]!==r.loading||e[7]!==r.result||e[8]!==m?(l=r.loading&&r.result===null&&x("span",{className:"text-muted-foreground",children:m("Loading…")}),e[6]=r.loading,e[7]=r.result,e[8]=m,e[9]=l):l=e[9];let a;e[10]!==r.error?(a=r.error!==null&&x("span",{className:"text-destructive",role:"alert",children:r.error}),e[10]=r.error,e[11]=a):a=e[11];let c;e[12]!==r.result?.values?(c=r.result?.values??[],e[12]=r.result?.values,e[13]=c):c=e[13];let d;if(e[14]!==t||e[15]!==g||e[16]!==c){let i;e[18]!==t||e[19]!==g?(i=(p,N)=>k("button",{className:"flex items-center justify-between gap-2 rounded px-1 py-0.5 text-left text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground","data-index":N,"data-testid":`db-facet-value-${t}`,onClick:g,type:"button",children:[x("span",{className:"truncate",children:D(p.value)}),x("span",{className:"shrink-0 tabular-nums text-foreground/70",children:p.count})]},D(p.value)),e[18]=t,e[19]=g,e[20]=i):i=e[20],d=c.map(i),e[14]=t,e[15]=g,e[16]=c,e[17]=d}else d=e[17];let b;e[21]!==t||e[22]!==r.result||e[23]!==m?(b=r.result?.truncated===!0&&x("span",{className:"text-muted-foreground","data-testid":`db-facet-truncated-${t}`,children:m("Showing the {n} most common values.",{n:r.result.values.length})}),e[21]=t,e[22]=r.result,e[23]=m,e[24]=b):b=e[24];let h;return e[25]!==o||e[26]!==f||e[27]!==l||e[28]!==a||e[29]!==d||e[30]!==b?(h=k("section",{className:"flex flex-col gap-1","data-testid":o,children:[f,l,a,d,b]}),e[25]=o,e[26]=f,e[27]=l,e[28]=a,e[29]=d,e[30]=b,e[31]=h):h=e[31],h},Ee=n=>{const e=C(44),{columns:t,facets:s,mask:r,onFacetFilter:m,onToggleFacet:u}=n,g=E();let o;e[0]!==u?(o=w=>{const{column:M}=w.currentTarget.dataset;M!==void 0&&u(M)},e[0]=u,e[1]=o):o=e[1];const f=o;let l;e[2]!==r?(l=w=>r.enabled&&r.columns.has(w),e[2]=r,e[3]=l):l=e[3];const a=l;let c,d,b,h,i,p,N,y;if(e[4]!==t||e[5]!==s||e[6]!==a||e[7]!==g||e[8]!==f){y=Symbol.for("react.early_return_sentinel");e:{let w;e[17]!==a?(w=$=>!a($),e[17]=a,e[18]=w):w=e[18];const M=t.filter(w);let F;if(e[19]!==s||e[20]!==a?(F=Object.entries(s).filter($=>{const[J]=$;return!a(J)}),e[19]=s,e[20]=a,e[21]=F):F=e[21],c=F,M.length===0){y=null;break e}p="flex w-56 shrink-0 flex-col gap-3 overflow-auto border-l border-border p-3 text-xs",N="db-facets",h="flex flex-col gap-1.5";let T;e[22]!==g?(T=g("Facets"),e[22]=g,e[23]=T):T=e[23],e[24]!==T?(i=x("span",{className:"font-mono text-[11px] tracking-wide uppercase text-muted-foreground",children:T}),e[24]=T,e[25]=i):i=e[25],d="flex flex-wrap gap-1";let R;e[26]!==s||e[27]!==f?(R=$=>x("button",{"aria-pressed":$ in s,className:"rounded border border-border px-1.5 py-0.5 text-muted-foreground transition-colors hover:bg-accent aria-pressed:bg-accent aria-pressed:text-accent-foreground","data-column":$,"data-testid":`db-facet-toggle-${$}`,onClick:f,type:"button",children:$},$),e[26]=s,e[27]=f,e[28]=R):R=e[28],b=M.map(R)}e[4]=t,e[5]=s,e[6]=a,e[7]=g,e[8]=f,e[9]=c,e[10]=d,e[11]=b,e[12]=h,e[13]=i,e[14]=p,e[15]=N,e[16]=y}else c=e[9],d=e[10],b=e[11],h=e[12],i=e[13],p=e[14],N=e[15],y=e[16];if(y!==Symbol.for("react.early_return_sentinel"))return y;let v;e[29]!==d||e[30]!==b?(v=x("div",{className:d,children:b}),e[29]=d,e[30]=b,e[31]=v):v=e[31];let S;e[32]!==v||e[33]!==h||e[34]!==i?(S=k("div",{className:h,children:[i,v]}),e[32]=v,e[33]=h,e[34]=i,e[35]=S):S=e[35];let _;e[36]!==m||e[37]!==c?(_=c.map(w=>{const[M,F]=w;return x(fe,{column:M,onFacetFilter:m,state:F},M)}),e[36]=m,e[37]=c,e[38]=_):_=e[38];let O;return e[39]!==S||e[40]!==_||e[41]!==p||e[42]!==N?(O=k("aside",{className:p,"data-testid":N,children:[S,_]}),e[39]=S,e[40]=_,e[41]=p,e[42]=N,e[43]=O):O=e[43],O};function me(n){const e=C(2),t=A(n);let s;return e[0]!==n?(s=()=>{t.current=n},e[0]=n,e[1]=s):s=e[1],W(s),t}const Oe=()=>{const[n,e]=I({}),t=me(n),s=A({}),r=async(o,f)=>{const l=(s.current[o]??0)+1;s.current[o]=l,e(a=>o in a?{...a,[o]:{error:null,loading:!0,result:a[o]?.result??null}}:a);try{const a=await f(o);if(s.current[o]!==l)return;e(c=>o in c?{...c,[o]:{error:null,loading:!1,result:a}}:c)}catch(a){if(s.current[o]!==l)return;e(c=>o in c?{...c,[o]:{error:H(a),loading:!1,result:null}}:c)}};return{clearFacets:()=>{e({})},facets:n,facetsRef:t,refetchFacets:o=>{for(const f of Object.keys(t.current))L(r(f,o))},toggleFacet:(o,f)=>{if(o in t.current){e(l=>Object.fromEntries(Object.entries(l).filter(([a])=>a!==o)));return}e(l=>({...l,[o]:{error:null,loading:!0,result:null}})),f!==null&&L(r(o,f))}}},be=[],ge=()=>{const n=C(1);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e={},n[0]=e):e=n[0];const{data:t}=Q(K.maskPolicies,e);return Array.isArray(t?.columns)?t.columns:be},Re=n=>{const e=C(16),{columns:t,selectedTable:s}=n,r=ge(),[m,u]=I(!0);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{u(he)},e[0]=g):g=e[0];const o=g;let f;if(e[1]!==t||e[2]!==r||e[3]!==s){const h=V(r,s??"");f=B(h,t),e[1]=t,e[2]=r,e[3]=s,e[4]=f}else f=e[4];const l=f;let a;e[5]!==m||e[6]!==r?(a=(h,i)=>({columns:B(V(r,h),i),enabled:m}),e[5]=m,e[6]=r,e[7]=a):a=e[7];const c=a;let d;e[8]!==l||e[9]!==m?(d={columns:l,enabled:m},e[8]=l,e[9]=m,e[10]=d):d=e[10];let b;return e[11]!==l||e[12]!==m||e[13]!==c||e[14]!==d?(b={maskColumns:l,maskOn:m,maskView:d,maskViewFor:c,onToggleMask:o},e[11]=l,e[12]=m,e[13]=c,e[14]=d,e[15]=b):b=e[15],b};function he(n){return!n}const z=34,U=600,pe=n=>{const e=C(21),{item:t,onSelect:s,prefix:r,selected:m,start:u}=n;let g;e[0]!==t.name||e[1]!==s?(g=()=>{s(t.name)},e[0]=t.name,e[1]=s,e[2]=g):g=e[2];const o=g,f=`translateY(${String(u)}px)`;let l;e[3]!==f?(l={insetInline:0,position:"absolute",top:0,transform:f},e[3]=f,e[4]=l):l=e[4];const a=l,c=m?"bg-accent font-medium text-accent-foreground":"text-foreground";let d;e[5]!==c?(d=Z("flex w-full items-center justify-between gap-2 rounded-md px-2 py-1.5 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent",c),e[5]=c,e[6]=d):d=e[6];const b=`${r}-table-${t.name}`;let h;e[7]!==t.name?(h=x("span",{className:"truncate",children:t.name}),e[7]=t.name,e[8]=h):h=e[8];let i;e[9]!==t.rowCount?(i=x("span",{className:"shrink-0 rounded bg-muted px-1.5 text-xs tabular-nums text-muted-foreground",children:t.rowCount}),e[9]=t.rowCount,e[10]=i):i=e[10];let p;e[11]!==o||e[12]!==m||e[13]!==d||e[14]!==b||e[15]!==h||e[16]!==i?(p=k("button",{"aria-pressed":m,className:d,"data-testid":b,onClick:o,type:"button",children:[h,i]}),e[11]=o,e[12]=m,e[13]=d,e[14]=b,e[15]=h,e[16]=i,e[17]=p):p=e[17];let N;return e[18]!==a||e[19]!==p?(N=x("li",{style:a,children:p}),e[18]=a,e[19]=p,e[20]=N):N=e[20],N},Ae=({header:n,onReload:e,onSelect:t,prefix:s,reloadLabel:r,selected:m,tables:u})=>{const g=E(),[o,f]=I(""),l=A(null),a=i=>{f(i.target.value)},c=q(()=>{const i=o.trim().toLowerCase();return i===""?u:u.filter(p=>p.name.toLowerCase().includes(i))},[o,u]),b=Y({count:c.length,estimateSize:()=>z,getScrollElement:()=>l.current,initialRect:{height:U,width:240},observeElementRect:(i,p)=>X(i,p,U),overscan:12}).getVirtualItems(),h={height:c.length*z};return k("aside",{className:"flex h-full w-60 shrink-0 flex-col border-e border-border bg-sidebar","data-testid":`${s}-table-list`,children:[n,k("div",{className:"flex h-9 shrink-0 items-center justify-between gap-2 border-b border-border px-3",children:[x("span",{className:"font-mono text-[11px] tracking-wide uppercase text-muted-foreground",children:g("Tables")}),e!==void 0&&x("button",{"aria-label":r??g("Refresh"),className:"flex size-6 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent","data-testid":`${s}-load-tables`,onClick:e,title:r??g("Refresh"),type:"button",children:x("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:x("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"})})})]}),x("div",{className:"shrink-0 border-b border-border p-2",children:x("input",{className:"h-7 w-full rounded-md border border-border bg-background px-2 text-xs outline-none placeholder:text-muted-foreground focus-visible:border-ring","data-testid":`${s}-table-search`,onChange:a,placeholder:g("search table…"),type:"search",value:o})}),k("ul",{className:"relative flex-1 overflow-y-auto p-1.5","data-testid":`${s}-table-list-rows`,ref:l,children:[x("li",{"aria-hidden":"true",style:h}),b.map(i=>{const p=c[i.index];return p===void 0?null:x(pe,{item:p,onSelect:t,prefix:s,selected:m===p.name,start:i.start},p.name)})]})]})};export{Ee as D,Te as G,Ae as T,Oe as a,Re as b,le as c,Fe as d,_e as m,me as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n}from"react/compiler-runtime";import{c as s}from"./utils-bhneXptQ.mjs";import{jsx as o}from"react/jsx-runtime";function b(d){const e=n(8);let i,r;e[0]!==d?({className:i,...r}=d,e[0]=d,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=s("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-xs transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 md:text-xs dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=o("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{b as T};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n,s as a}from"./browser-storage-BH1MxLZs.mjs";const t="lunora:traces:pending-filter",i=e=>{a(t,e,"session")},c=()=>{const e=n("session");if(e!==void 0)try{const s=e.getItem(t);if(s===null)return;const r=JSON.parse(s);return typeof r.traceId!="string"?void 0:{traceId:r.traceId,...typeof r.shardKey=="string"?{shardKey:r.shardKey}:{}}}catch{return}},d=()=>{try{n("session")?.removeItem(t)}catch{}};export{d as c,c as p,i as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as Q}from"react/compiler-runtime";import{useLunora as A}from"@lunora/react";import{useQueryClient as g,useQuery as R,keepPreviousData as _}from"@tanstack/react-query";import{useState as M,useEffect as P}from"react";import{c as b,d as v,f as I,b as T}from"./internal-CwaF9YNk.mjs";const S=300,l=e=>typeof e=="string"?e===""?void 0:e:typeof e=="number"||typeof e=="boolean"?String(e):void 0,d=e=>e.filter(t=>t!==void 0).join(" "),K={deleteRows:e=>d([l(e.table),Array.isArray(e.ids)?`${String(e.ids.length)} rows`:void 0]),facetColumn:e=>d([l(e.table),l(e.column)]),lintSql:()=>"sql",readTablePage:e=>d([l(e.table),Array.isArray(e.filters)&&e.filters.length>0?`${String(e.filters.length)} filters`:void 0,typeof e.search=="string"&&e.search!==""?"search":void 0,typeof e.limit=="number"?`limit ${String(e.limit)}`:void 0]),runMigration:e=>d([l(e.id),l(e.direction),e.dryRun===!0?"dry-run":void 0]),runSql:e=>typeof e.sql=="string"?`${String(e.sql.length)} chars`:"",schemaVersion:e=>typeof e.hash=="string"?e.hash.slice(0,8):"",writeRow:e=>d([l(e.table),"1 row"])},q="__lunora_admin__:",j=(e,t)=>{const r=e.startsWith(q)?e.slice(q.length):e,s=K[r];if(s!==void 0)return s(t);const i=Object.keys(t);return i.length===0?"":i.join(", ")},x=e=>{if(Array.isArray(e))return e.length;if(!(typeof e!="object"||e===null)){for(const t of Object.values(e))if(Array.isArray(t))return t.length}};class C{entries=[];listeners=new Set;nextSeq=1;getSnapshot=()=>this.entries;subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});start(t,r,s){return this.append(t,r,s,"call","pending")}startSubscription(t,r,s){return this.append(t,r,s,"subscription","live")}recordPush(t){if(this.listeners.size===0){const r=this.entries.find(s=>s.seq===t);r!==void 0&&(r.pushes=(r.pushes??0)+1);return}this.patch(t,r=>({...r,pushes:(r.pushes??0)+1}))}failSubscription(t,r){this.patch(t,s=>({...s,error:r,status:"error"}))}endSubscription(t){this.patch(t,r=>r.status==="error"?r:{...r,durationMs:Date.now()-r.startedAt,status:"closed"})}lastErrorSeq(){return this.entries.findLast(t=>t.status==="error")?.seq}settle(t,r){this.patch(t,s=>({...s,durationMs:Date.now()-s.startedAt,...r.error===void 0?{resultCount:x(r.result),status:"ok"}:{error:r.error,status:"error"}}))}clear(){this.entries=[],this.emit()}append(t,r,s,i,n){const u=this.nextSeq;this.nextSeq+=1;const c={functionPath:t,kind:i,seq:u,shardKey:s,startedAt:Date.now(),status:n,summary:j(t,r),...i==="subscription"?{pushes:0}:{}},o=[...this.entries,c];return this.entries=o.length>S?o.slice(o.length-S):o,this.emit(),u}patch(t,r){const s=this.entries.findIndex(i=>i.seq===t);s!==-1&&(this.entries=this.entries.with(s,r(this.entries[s])),this.emit())}emit(){for(const t of this.listeners)t()}}const f=new C,w=(e,t,r)=>["lunora-admin",e,t,r.trim()],E=(e,t)=>[...e,t];function F(e,t,r={}){const s=A(),{enabled:i=!0,keepPreviousData:n=!1,staleTime:u=0}=r,c=E(e,s.clientIdentifier()),a=R({enabled:i,queryFn:t,placeholderData:n?_:void 0,queryKey:c,staleTime:u});return{data:a.data,error:a.error?T(a.error):a.error,errorSource:a.error??void 0,isLoading:a.isLoading,liveError:void 0,refetch:()=>{I(a.refetch())}}}function J(e,t,r={}){const s=A(),i=g(),{enabled:n=!0,keepPreviousData:u=!1,live:c=!1,shardKey:o="",staleTime:a}=r,p=w(e,t,o),D=F(p,()=>s.query(b(e),t,v(o)),{enabled:n,keepPreviousData:u,staleTime:a??(c?Number.POSITIVE_INFINITY:0)}),[k,y]=M(void 0),L=JSON.stringify(p);return P(()=>{if(!n||!c)return;y(void 0);const m=f.startSubscription(e,t,o),O=s.subscribe(b(e),t,h=>{f.recordPush(m),y(void 0),i.setQueryData(E(p,s.clientIdentifier()),h)},{...v(o),onError:h=>{f.failSubscription(m,h.message),y(h.message)}});return()=>{f.endSubscription(m),O()}},[L,n,c]),{...D,liveError:n&&c?k:void 0}}const U=()=>{const e=Q(2),t=g();let r;return e[0]!==t?(r=(s,i,n)=>{const u=i===void 0?["lunora-admin",s]:w(s,i,n??"");I(t.invalidateQueries({queryKey:u}))},e[0]=t,e[1]=r):r=e[1],r};export{U as a,F as b,f as o,J as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as m}from"react/compiler-runtime";import{useState as a}from"react";import{f as i,b as y}from"./internal-CwaF9YNk.mjs";const g=()=>{const r=m(4),[s,n]=a(!1),[o,c]=a(null);let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e=u=>{i((async()=>{n(!0),c(null);try{await u()}catch(f){c(y(f))}n(!1)})())},r[0]=e):e=r[0];const l=e;let t;return r[1]!==s||r[2]!==o?(t={busy:s,error:o,run:l},r[1]=s,r[2]=o,r[3]=t):t=r[3],t};export{g as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c}from"react/compiler-runtime";import{useLunora as f}from"@lunora/react";import{b as u}from"./use-admin-query-Cbj2GuHu.mjs";const m={capabilities:{accounts:!0,admin:!0,organization:!1,passkey:!1,twoFactor:!1},emailAndPassword:!1,organization:{enabled:!1,roles:!1,teams:!1},plugins:[],rateLimit:{enabled:!1},session:{},socialProviders:[],userFields:[]},b=()=>{const e=c(6),o=f();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=["lunora-auth-config"],e[0]=s):s=e[0];let t;e[1]!==o?(t=()=>o.getAuthConfig(),e[1]=o,e[2]=t):t=e[2];const{data:l,isLoading:r}=u(s,t),i=l??m,n=!r;let a;return e[3]!==i||e[4]!==n?(a={config:i,ready:n},e[3]=i,e[4]=n,e[5]=a):a=e[5],a};export{m as D,b as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n}from"react/compiler-runtime";import{useNavigate as a}from"@tanstack/react-router";import{f as m}from"./internal-CwaF9YNk.mjs";import{w as s}from"./trace-handoff-BV3EWqy_.mjs";const u=r=>{const t=n(3),o=a();let e;return t[0]!==o||t[1]!==r?(e=i=>{s({shardKey:r,traceId:i}),m(o({to:"/traces"}))},t[0]=o,t[1]=r,t[2]=e):e=t[2],e};export{u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useLunora as A}from"@lunora/react";import{useState as c}from"react";import{u as h}from"./use-admin-query-Cbj2GuHu.mjs";import{ADMIN_FUNCTIONS as s}from"./ADMIN_FUNCTIONS-B6z7VLYt.mjs";import{d,c as l}from"./internal-CwaF9YNk.mjs";const T={},_=l(s.aiGenerateSql),b=l(s.aiTableFilter),C=l(s.aiChartConfig),w=n=>{const o=A(),[f,u]=c({}),[v,g]=c({}),m=h(s.aiAvailable,T,{shardKey:n}),[p,y]=c(!1),q=p||m.data?.available===!1,i=e=>{u(r=>({...r,[e]:!0})),g(r=>({...r,[e]:void 0}))},a=(e,r)=>{u(t=>({...t,[e]:!1})),r!==void 0&&g(t=>({...t,[e]:r})),r==="no-ai-binding"&&y(!0)};return{generate:async(e,r)=>{i("sql");try{const{result:t}=await o.query(_,{failedError:r?.error,failedSql:r?.sql,prompt:e},d(n));return a("sql",t.degraded?t.reason:void 0),t.degraded?void 0:t.sql}catch{a("sql","ai-error");return}},inferChart:async e=>{i("chart");try{const{result:r}=await o.query(C,e,d(n));return a("chart",r.degraded?r.reason:void 0),r.degraded?void 0:r.chart}catch{a("chart","ai-error");return}},pending:e=>f[e]===!0,reason:e=>v[e],suggestFilter:async(e,r)=>{i("filter");try{const{result:t}=await o.query(b,{prompt:e,table:r},d(n));return a("filter",t.degraded?t.reason:void 0),t.degraded?void 0:t.clauses}catch{a("filter","ai-error");return}},unavailable:q}};export{w as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,d as p,e as m}from"./chunk-
|
|
1
|
+
import{a as r,d as p,e as m}from"./chunk-YKXDMIHQ.js";function d(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}r(d,"mergeObjects");var y={};function R(e,t,n,o,i){if(!n&&!o&&!i&&!e)return h(t);let c=h(e);return t&&(c=E(c,t)),n&&(c=E(c,n)),o&&(c=E(c,o)),i&&(c=E(c,i)),c}r(R,"mergeProps");function x(e){if(e.length===0)return y;if(e.length===1)return h(e[0]);let t=h(e[0]);for(let n=1;n<e.length;n+=1)t=E(t,e[n]);return t}r(x,"mergePropsN");function h(e){return b(e)?{...T(e,y)}:J(e)}r(h,"createInitialMergedProps");function E(e,t){return b(t)?T(t,e):q(e,t)}r(E,"mergeInto");function J(e){let t={...e};for(let n in t){let o=t[n];O(n,o)&&(t[n]=k(o))}return t}r(J,"copyInitialProps");function q(e,t){if(!t)return e;for(let n in t){let o=t[n];switch(n){case"style":{e[n]=d(e.style,o);break}case"className":{e[n]=g(e.className,o);break}default:O(n,o)?e[n]=K(e[n],o):e[n]=o}}return e}r(q,"mutablyMergeInto");function O(e,t){let n=e.charCodeAt(0),o=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&o===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}r(O,"isEventHandler");function b(e){return typeof e=="function"}r(b,"isPropsGetter");function T(e,t){return b(e)?e(t):e??y}r(T,"resolvePropsGetter");function K(e,t){return t?e?(...n)=>{let o=n[0];if(_(o)){let c=o;M(c);let s=t(...n);return c.baseUIHandlerPrevented||e?.(...n),s}let i=t(...n);return e?.(...n),i}:k(t):e}r(K,"mergeEventHandlers");function k(e){return e&&((...t)=>{let n=t[0];return _(n)&&M(n),e(...t)})}r(k,"wrapEventHandler");function M(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}r(M,"makeEventPreventable");function g(e,t){return t?e?t+" "+e:t:e}r(g,"mergeClassNames");function _(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}r(_,"isSyntheticEvent");function Q(e,t){return r(function(o,...i){let c=new URL(e);return c.searchParams.set("code",o.toString()),i.forEach(s=>c.searchParams.append("args[]",s)),`${t} error #${o}; visit ${c} for the full message.`},"formatErrorMessage")}r(Q,"createFormatErrorMessage");var X=Q("https://base-ui.com/production-error","Base UI"),L=X;var f=p(m(),1);var U=p(m(),1);var j={};function v(e,t){let n=U.useRef(j);return n.current===j&&(n.current=e(t)),n}r(v,"useRefWithInit");function A(e,t,n,o){let i=v(S).current;return ee(i,e,t,n,o)&&$(i,[e,t,n,o]),i.callback}r(A,"useMergedRefs");function V(e){let t=v(S).current;return te(t,e)&&$(t,e),t.callback}r(V,"useMergedRefsN");function S(){return{callback:null,cleanup:null,refs:[]}}r(S,"createForkRef");function ee(e,t,n,o,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==i}r(ee,"didChange");function te(e,t){return e.refs.length!==t.length||e.refs.some((n,o)=>n!==t[o])}r(te,"didChangeN");function $(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){let o=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){let c=t[i];if(c!=null)switch(typeof c){case"function":{let s=c(n);typeof s=="function"&&(o[i]=s);break}case"object":{c.current=n;break}default:}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){let c=t[i];if(c!=null)switch(typeof c){case"function":{let s=o[i];typeof s=="function"?s():c(null);break}case"object":{c.current=null;break}default:}}}}}}r($,"update");var z=p(m(),1);var B=p(m(),1);var ne=parseInt(B.version,10);function Y(e){return ne>=e}r(Y,"isReactVersionAtLeast");function N(e){if(!z.isValidElement(e))return null;let t=e,n=t.props;return(Y(19)?n?.ref:t.ref)??null}r(N,"getReactElementRef");function Ie(){}r(Ie,"NOOP");var we=Object.freeze([]),l=Object.freeze({});function D(e,t){let n={};for(let o in e){let i=e[o];if(t?.hasOwnProperty(o)){let c=t[o](i);c!=null&&Object.assign(n,c);continue}i===!0?n[`data-${o.toLowerCase()}`]="":i&&(n[`data-${o.toLowerCase()}`]=i.toString())}return n}r(D,"getStateAttributesProps");function F(e,t){return typeof e=="function"?e(t):e}r(F,"resolveClassName");function W(e,t){return typeof e=="function"?e(t):e}r(W,"resolveStyle");var P=p(m(),1);function Fe(e,t,n={}){let o=t.render,i=re(t,n);if(n.enabled===!1)return null;let c=n.state??l;return ce(e,o,i,c)}r(Fe,"useRenderElement");function re(e,t={}){let{className:n,style:o,render:i}=e,{state:c=l,ref:s,props:I,stateAttributesMapping:Z,enabled:a=!0}=t,w=a?F(n,c):void 0,C=a?W(o,c):void 0,G=a?D(c,Z):l,H=a&&I?oe(I):void 0,u=a?d(G,H)??{}:l;return typeof document<"u"&&(a?Array.isArray(s)?u.ref=V([u.ref,N(i),...s]):u.ref=A(u.ref,N(i),s):A(null,null)),a?(w!==void 0&&(u.className=g(u.className,w)),C!==void 0&&(u.style=d(u.style,C)),u):l}r(re,"useRenderElementProps");function oe(e){return Array.isArray(e)?x(e):R(void 0,e)}r(oe,"resolveRenderFunctionProps");var ie=Symbol.for("react.lazy");function ce(e,t,n,o){if(t){if(typeof t=="function")return t(n,o);let i=R(n,t.props);i.ref=n.ref;let c=t;return c?.$$typeof===ie&&(c=f.Children.toArray(t)[0]),f.cloneElement(c,i)}if(e&&typeof e=="string")return se(e,n);throw new Error(L(8))}r(ce,"evaluateRenderProp");function se(e,t){return e==="button"?(0,P.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,P.createElement)("img",{alt:"",...t,key:t.key}):f.createElement(e,t)}r(se,"renderTag");export{R as a,M as b,L as c,v as d,A as e,Y as f,Ie as g,we as h,l as i,Fe as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as x}from"./chunk-
|
|
1
|
+
import{a as x}from"./chunk-CXNZVJ3S.js";import{c as S}from"./chunk-ECQTVV2J.js";import{f as q}from"./chunk-JBIN7W2B.js";import{d as _,f as g,g as y,m as C}from"./chunk-Y4Q25F6X.js";import{a as u,d as w,e as L,f as T,g as F}from"./chunk-YKXDMIHQ.js";var v=w(L(),1);var j={},A=g(x.aiGenerateSql),I=g(x.aiTableFilter),O=g(x.aiChartConfig),R=u(s=>{let e=q(),[i,d]=(0,v.useState)({}),[n,r]=(0,v.useState)({}),a=S(x.aiAvailable,j,{shardKey:s}),[f,l]=(0,v.useState)(!1),b=f||a.data?.available===!1,p=u(t=>{d(o=>({...o,[t]:!0})),r(o=>({...o,[t]:void 0}))},"i"),h=u((t,o)=>{d(c=>({...c,[t]:!1})),o!==void 0&&r(c=>({...c,[t]:o})),o==="no-ai-binding"&&l(!0)},"a");return{generate:u(async(t,o)=>{p("sql");try{let{result:c}=await e.query(A,{failedError:o?.error,failedSql:o?.sql,prompt:t},y(s));return h("sql",c.degraded?c.reason:void 0),c.degraded?void 0:c.sql}catch{h("sql","ai-error");return}},"generate"),inferChart:u(async t=>{p("chart");try{let{result:o}=await e.query(O,t,y(s));return h("chart",o.degraded?o.reason:void 0),o.degraded?void 0:o.chart}catch{h("chart","ai-error");return}},"inferChart"),pending:u(t=>i[t]===!0,"pending"),reason:u(t=>n[t],"reason"),suggestFilter:u(async(t,o)=>{p("filter");try{let{result:c}=await e.query(I,{prompt:t,table:o},y(s));return h("filter",c.degraded?c.reason:void 0),c.degraded?void 0:c.clauses}catch{h("filter","ai-error");return}},"suggestFilter"),unavailable:b}},"w");var N=w(T(),1);var m=w(F(),1);var G=u((s,e)=>{if(e==="")return[{match:!1,offset:0,text:s}];let i=[],d=s.toLowerCase(),n=e.toLowerCase(),r=0;for(let a=d.indexOf(n);a!==-1;a=d.indexOf(n,r))a>r&&i.push({match:!1,offset:r,text:s.slice(r,a)}),i.push({match:!0,offset:a,text:s.slice(a,a+e.length)}),r=a+e.length;return r<s.length&&i.push({match:!1,offset:r,text:s.slice(r)}),i},"N"),U=u(s=>{let e=(0,N.c)(9),{highlight:i,value:d}=s;if(d==null){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,m.jsx)("span",{className:"text-muted-foreground/50 italic",children:"NULL"}),e[0]=l):l=e[0],l}let n,r,a;if(e[1]!==i||e[2]!==d){a=Symbol.for("react.early_return_sentinel");e:{let l=C(d);if(i===void 0||i===""){a=(0,m.jsx)("span",{title:l,children:l});break e}n=l,r=G(l,i).map(z)}e[1]=i,e[2]=d,e[3]=n,e[4]=r,e[5]=a}else n=e[3],r=e[4],a=e[5];if(a!==Symbol.for("react.early_return_sentinel"))return a;let f;return e[6]!==n||e[7]!==r?(f=(0,m.jsx)("span",{title:n,children:r}),e[6]=n,e[7]=r,e[8]=f):f=e[8],f},"v"),Q=u(s=>{let e=(0,N.c)(22),{columns:i,rows:d}=s,n=_(),r;e[0]!==n?(r=n("Field"),e[0]=n,e[1]=r):r=e[1];let a;e[2]!==r?(a=(0,m.jsx)("th",{className:"border-b border-e border-border px-3 py-1.5 text-start font-mono text-[11px] tracking-wide uppercase text-muted-foreground",children:r}),e[2]=r,e[3]=a):a=e[3];let f;if(e[4]!==d||e[5]!==n){let t;e[7]!==n?(t=u((o,c)=>(0,m.jsx)("th",{className:"border-b border-border px-3 py-1.5 text-start font-mono text-[11px] tracking-wide uppercase tabular-nums text-muted-foreground",children:n("Row {n}",{n:c+1})},c),"c"),e[7]=n,e[8]=t):t=e[8],f=d.map(t),e[4]=d,e[5]=n,e[6]=f}else f=e[6];let l;e[9]!==a||e[10]!==f?(l=(0,m.jsx)("thead",{className:"sticky top-0 z-10 bg-muted",children:(0,m.jsxs)("tr",{children:[a,f]})}),e[9]=a,e[10]=f,e[11]=l):l=e[11];let b;if(e[12]!==i||e[13]!==d){let t;e[15]!==d?(t=u(o=>(0,m.jsxs)("tr",{className:"hover:bg-muted/40",children:[(0,m.jsx)("th",{className:"border-b border-e border-border px-3 py-1.5 text-start font-mono font-medium whitespace-nowrap",scope:"row",children:o}),d.map((c,k)=>(0,m.jsx)("td",{className:"max-w-md truncate border-b border-border px-3 py-1.5 font-mono",children:(0,m.jsx)(U,{value:c[o]})},k))]},o),"c"),e[15]=d,e[16]=t):t=e[16],b=i.map(t),e[12]=i,e[13]=d,e[14]=b}else b=e[14];let p;e[17]!==b?(p=(0,m.jsx)("tbody",{children:b}),e[17]=b,e[18]=p):p=e[18];let h;return e[19]!==l||e[20]!==p?(h=(0,m.jsx)("div",{className:"min-h-0 flex-1 overflow-auto","data-testid":"db-transposed",children:(0,m.jsxs)("table",{className:"border-collapse text-xs",children:[l,p]})}),e[19]=l,e[20]=p,e[21]=h):h=e[21],h},"T"),V=u(({children:s,layout:e="card",testId:i})=>(0,m.jsx)("div",{className:e==="fill"?"flex min-h-0 flex-1 flex-col overflow-hidden border-t border-border":"overflow-x-auto border border-border bg-card","data-testid":i,children:s}),"j");function z(s){return(0,m.jsx)("mark",{className:s.match?"rounded-sm bg-warning/40 text-foreground":"bg-transparent text-inherit",children:s.text},s.offset)}u(z,"_");export{R as a,U as b,Q as c,V as d};
|