@lunora/studio 1.0.0-alpha.7 → 1.0.0-alpha.71
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/LICENSE.md +6 -0
- package/dist/index.d.ts +762 -779
- package/dist/index.js +1 -41
- package/dist/mount.d.ts +10 -10
- package/dist/mount.js +1 -26
- package/dist/packem_chunks/ApiTab.js +1 -0
- package/dist/packem_chunks/AuditPanel.js +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
- package/dist/packem_chunks/ExportImportPanel.js +3 -0
- package/dist/packem_chunks/FileBrowser.js +4 -0
- package/dist/packem_chunks/FunctionRunner.js +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
- package/dist/packem_chunks/HealthPanel.js +1 -0
- package/dist/packem_chunks/InsightsPanel.js +1 -0
- package/dist/packem_chunks/LogsPanel.js +1 -0
- package/dist/packem_chunks/MailPanel.js +2 -0
- package/dist/packem_chunks/MetricsPanel.js +1 -0
- package/dist/packem_chunks/MigrationsPanel.js +1 -0
- package/dist/packem_chunks/NotificationsPanel.js +1 -0
- package/dist/packem_chunks/PitrPanel.js +1 -0
- package/dist/packem_chunks/SchemaViewer.js +2 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -0
- package/dist/packem_chunks/SettingsPanel.js +1 -0
- package/dist/packem_chunks/SqlEditorPanel.js +4 -0
- package/dist/packem_chunks/TableEditor.js +1 -0
- package/dist/packem_chunks/agents-panel.js +1 -0
- package/dist/packem_chunks/analytics-panel.js +1 -0
- package/dist/packem_chunks/auth-audit-panel.js +1 -0
- package/dist/packem_chunks/auth-config-panel.js +1 -0
- package/dist/packem_chunks/auth-sessions-panel.js +1 -0
- package/dist/packem_chunks/containers-panel.js +1 -0
- package/dist/packem_chunks/dashboards-panel.js +1 -0
- package/dist/packem_chunks/fanout-panel.js +1 -0
- package/dist/packem_chunks/flags-panel.js +1 -0
- package/dist/packem_chunks/issues-panel.js +1 -0
- package/dist/packem_chunks/kv-browser.js +1 -0
- package/dist/packem_chunks/log-drains-panel.js +4 -0
- package/dist/packem_chunks/organizations-panel.js +1 -0
- package/dist/packem_chunks/payments-panel.js +1 -0
- package/dist/packem_chunks/permissions-panel.js +1 -0
- package/dist/packem_chunks/queues-panel.js +1 -0
- package/dist/packem_chunks/rls-panel.js +1 -0
- package/dist/packem_chunks/schedule-panel.js +1 -0
- package/dist/packem_chunks/sparkline.js +1 -0
- package/dist/packem_chunks/storage-rules-panel.js +1 -0
- package/dist/packem_chunks/subscriptions-panel.js +1 -0
- package/dist/packem_chunks/sync-client-panel.js +1 -0
- package/dist/packem_chunks/traces-panel.js +1 -0
- package/dist/packem_chunks/users-panel.js +1 -0
- package/dist/packem_chunks/vector-browser.js +1 -0
- package/dist/packem_chunks/workflows-panel.js +1 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-BYNSbBVE.js +1 -0
- package/dist/packem_shared/ApiDocsPanel-eJYZlylw.js +2 -0
- package/dist/packem_shared/ApiReferencePanel-C42v1jr6.js +1 -0
- package/dist/packem_shared/CommandPalette-CVIaY3j8.js +1 -0
- package/dist/packem_shared/ConfirmButton-CTL3f3kr.js +1 -0
- package/dist/packem_shared/ConnectionBadge-DOk0CQWo.js +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-B-hcFVoi.js +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-BZ4NojpD.js +1 -0
- package/dist/packem_shared/DataBrowser-B8J5lHjP.js +1 -0
- package/dist/packem_shared/DataFilters-Csb30F0C.js +1 -0
- package/dist/packem_shared/ErrorBoundary-DvzYskH7.js +1 -0
- package/dist/packem_shared/GlobalDataBrowser-RLJ6NvOs.js +1 -0
- package/dist/packem_shared/HomePanel-DL1HupAN.js +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-sGsIgYWj.js +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
- package/dist/packem_shared/ScheduledJobs-DUbo6epc.js +1 -0
- package/dist/packem_shared/ShardInput-BVn2iCU0.js +1 -0
- package/dist/packem_shared/Studio-BWBclm_C.js +1 -0
- package/dist/packem_shared/StudioApp-BFm73yVr.js +1 -0
- package/dist/packem_shared/StudioI18nProvider-CZ5h4nrV.js +1 -0
- package/dist/packem_shared/advisor-view-DaCX9Jy5.js +1 -0
- package/dist/packem_shared/aggregateMetrics-BNfajLa2.js +1 -0
- package/dist/packem_shared/alert-CVcOFuDR.js +1 -0
- package/dist/packem_shared/app.d-bRPJhby-.d.ts +254 -0
- package/dist/packem_shared/badge-BbuuAio7.js +1 -0
- package/dist/packem_shared/bar-chart-AryFCeoa.js +9 -0
- package/dist/packem_shared/browser-storage-xjTyMKY0.js +1 -0
- package/dist/packem_shared/button-BkCrNcAs.js +1 -0
- package/dist/packem_shared/card-CIDGUN6K.js +1 -0
- package/dist/packem_shared/cf-links-gbDy51nR.js +1 -0
- package/dist/packem_shared/checkbox-StT4Gob6.js +1 -0
- package/dist/packem_shared/data-grid-BMBKzMEJ.js +1 -0
- package/dist/packem_shared/data-view-params-C8T3bW1z.js +1 -0
- package/dist/packem_shared/dropdown-menu-C3RQ_HlW.js +2 -0
- package/dist/packem_shared/empty-state-Cg7t_8qu.js +1 -0
- package/dist/packem_shared/error-alert-B59DnrDI.js +1 -0
- package/dist/packem_shared/grid-features-uZCUj955.js +6 -0
- package/dist/packem_shared/home-panel-B-8BCffw.js +3 -0
- package/dist/packem_shared/input-JHu63lTv.js +1 -0
- package/dist/packem_shared/internal-AtZ4bTal.js +2 -0
- package/dist/packem_shared/label-6uP1obNF.js +1 -0
- package/dist/packem_shared/live-status-CGW2JHf_.js +1 -0
- package/dist/packem_shared/log-fields-CoL3hsIQ.js +1 -0
- package/dist/packem_shared/modal-shell-CUwwWC2o.js +1 -0
- package/dist/packem_shared/reference-view-KvhektwF.js +12 -0
- package/dist/packem_shared/result-chart-CwKhhKM0.js +1 -0
- package/dist/packem_shared/scroll-area-DTEq6Jec.js +2 -0
- package/dist/packem_shared/select-Bul-DeII.js +2 -0
- package/dist/packem_shared/shard-history-DMEW5VBE.js +1 -0
- package/dist/packem_shared/skeleton-C1wQ9M5t.js +1 -0
- package/dist/packem_shared/sparkline-DtcZoU48.js +1 -0
- package/dist/packem_shared/storage-tier-DznqOf-q.js +1 -0
- package/dist/packem_shared/studio-BHA7hnI3.js +2 -0
- package/dist/packem_shared/table-DdJBrClo.js +2 -0
- package/dist/packem_shared/table-list-sidebar-CMCcNALK.js +1 -0
- package/dist/packem_shared/textarea-Bu2-jKAs.js +1 -0
- package/dist/packem_shared/trace-handoff-Dw7mwjxu.js +1 -0
- package/dist/packem_shared/use-admin-query-Di3fLE8H.js +1 -0
- package/dist/packem_shared/use-async-submit-H68GHPz8.js +1 -0
- package/dist/packem_shared/useDebounced-Ihdiid_k.js +1 -0
- package/dist/packem_shared/utils-bhneXptQ.js +1 -0
- package/dist/packem_shared/virtual-rect-1o1veP7R.js +1 -0
- package/dist/standalone/chunk-2F7G7IWQ.js +1 -0
- package/dist/standalone/chunk-2OUPA2WJ.js +1 -0
- package/dist/standalone/chunk-2PJNAWB3.js +1 -0
- package/dist/standalone/chunk-2Y36BVVM.js +4 -0
- package/dist/standalone/chunk-34UVAASH.js +1 -0
- package/dist/standalone/chunk-35II7U25.js +11 -0
- package/dist/standalone/chunk-3FUFEZ65.js +1 -0
- package/dist/standalone/chunk-3QRTYSSX.js +1 -0
- package/dist/standalone/chunk-3RTTXLMU.js +1 -0
- package/dist/standalone/chunk-3XIESWL4.js +1 -0
- package/dist/standalone/chunk-4CGALXS3.js +19 -0
- package/dist/standalone/chunk-4UOFSGUS.js +1 -0
- package/dist/standalone/chunk-4WLYA3XE.js +1 -0
- package/dist/standalone/chunk-54MMVNPT.js +1 -0
- package/dist/standalone/chunk-5L2MD6F6.js +1 -0
- package/dist/standalone/chunk-5OWIOACV.js +13 -0
- package/dist/standalone/chunk-5RF4QDDA.js +6 -0
- package/dist/standalone/chunk-5U2THBI7.js +1 -0
- package/dist/standalone/chunk-5Y3QLNWX.js +1 -0
- package/dist/standalone/chunk-65OTWFS3.js +1 -0
- package/dist/standalone/chunk-6DWCIIHE.js +1 -0
- package/dist/standalone/chunk-6ST5ECQA.js +1 -0
- package/dist/standalone/chunk-7J5N6DGQ.js +1 -0
- package/dist/standalone/chunk-7LQWFOEU.js +1 -0
- package/dist/standalone/chunk-7QIFDWQV.js +1 -0
- package/dist/standalone/chunk-7RXOPYR5.js +1 -0
- package/dist/standalone/chunk-7T7UOTYK.js +1 -0
- package/dist/standalone/chunk-7YEFOSPH.js +1 -0
- package/dist/standalone/chunk-AVAC26HJ.js +1 -0
- package/dist/standalone/chunk-B43FTQJ7.js +1 -0
- package/dist/standalone/chunk-BEH5N5ZA.js +1 -0
- package/dist/standalone/chunk-BGBLQ563.js +1 -0
- package/dist/standalone/chunk-BNUJ7QMG.js +3 -0
- package/dist/standalone/chunk-C43X4M5U.js +1 -0
- package/dist/standalone/chunk-CFPZYHPY.js +2 -0
- package/dist/standalone/chunk-D7XXWV4E.js +1 -0
- package/dist/standalone/chunk-DVOBKIUX.js +1 -0
- package/dist/standalone/chunk-EKRN4ZQM.js +1 -0
- package/dist/standalone/chunk-ESVP44Y3.js +1 -0
- package/dist/standalone/chunk-EVN46TVV.js +1 -0
- package/dist/standalone/chunk-EXFBIISG.js +2 -0
- package/dist/standalone/chunk-F5QWLENA.js +1 -0
- package/dist/standalone/chunk-F6GOKFMU.js +3 -0
- package/dist/standalone/chunk-FGTK44LR.js +1 -0
- package/dist/standalone/chunk-FXCBF4XT.js +1 -0
- package/dist/standalone/chunk-GMR677FL.js +1 -0
- package/dist/standalone/chunk-GRL5MG3Z.js +1 -0
- package/dist/standalone/chunk-GSPTEMYN.js +1 -0
- package/dist/standalone/chunk-GXZAXNZI.js +1 -0
- package/dist/standalone/chunk-H7NIIBHH.js +1 -0
- package/dist/standalone/chunk-HP2UCWND.js +1 -0
- package/dist/standalone/chunk-HPFLBYRI.js +1 -0
- package/dist/standalone/chunk-IC4L6G56.js +1 -0
- package/dist/standalone/chunk-IDNNI63H.js +1 -0
- package/dist/standalone/chunk-ILNELDFC.js +1 -0
- package/dist/standalone/chunk-IVFHIQOT.js +1 -0
- package/dist/standalone/chunk-JN2Y24PY.js +1 -0
- package/dist/standalone/chunk-KDOC2DP5.js +1 -0
- package/dist/standalone/chunk-KUVMORDQ.js +1 -0
- package/dist/standalone/chunk-KYF2E5CJ.js +1 -0
- package/dist/standalone/chunk-L7N7F3DA.js +1 -0
- package/dist/standalone/chunk-LE56LPNH.js +13 -0
- package/dist/standalone/chunk-LEDWUPXM.js +1 -0
- package/dist/standalone/chunk-LFKCLLPT.js +1 -0
- package/dist/standalone/chunk-LFXFP4IF.js +1 -0
- package/dist/standalone/chunk-LJDP7NRB.js +1 -0
- package/dist/standalone/chunk-LLXFYRGQ.js +1 -0
- package/dist/standalone/chunk-M536Y2KX.js +1 -0
- package/dist/standalone/chunk-MIQTKZAR.js +1 -0
- package/dist/standalone/chunk-OHKRN65U.js +1 -0
- package/dist/standalone/chunk-P24JBHEZ.js +4 -0
- package/dist/standalone/chunk-PF7V3G2Z.js +62 -0
- package/dist/standalone/chunk-PWWHP76O.js +1 -0
- package/dist/standalone/chunk-QBWRC5YX.js +1 -0
- package/dist/standalone/chunk-QGKAJTQQ.js +1 -0
- package/dist/standalone/chunk-QLJJ5YYZ.js +1 -0
- package/dist/standalone/chunk-QVEHPYA5.js +1 -0
- package/dist/standalone/chunk-QWGT25SE.js +1 -0
- package/dist/standalone/chunk-QWJ3NPE3.js +1 -0
- package/dist/standalone/chunk-RAA2RGG6.js +1 -0
- package/dist/standalone/chunk-RBU52M5T.js +1 -0
- package/dist/standalone/chunk-SA3MDZC3.js +1 -0
- package/dist/standalone/chunk-SD4BERSA.js +1 -0
- package/dist/standalone/chunk-SFDOII3B.js +1 -0
- package/dist/standalone/chunk-SKHEGARW.js +1 -0
- package/dist/standalone/chunk-SMIESS7P.js +1 -0
- package/dist/standalone/chunk-T2JIUFOD.js +4 -0
- package/dist/standalone/chunk-T6VMSOBB.js +1 -0
- package/dist/standalone/chunk-THIXMMZD.js +1 -0
- package/dist/standalone/chunk-TJ2WZ5OP.js +1 -0
- package/dist/standalone/chunk-TLHJRWNK.js +1 -0
- package/dist/standalone/chunk-UIS34ZPB.js +8 -0
- package/dist/standalone/chunk-UNUU7CJJ.js +1 -0
- package/dist/standalone/chunk-UZERI5YC.js +1 -0
- package/dist/standalone/chunk-V53KNYRN.js +1 -0
- package/dist/standalone/chunk-VPAXCQ2Y.js +4 -0
- package/dist/standalone/chunk-X2FQ6B5V.js +1 -0
- package/dist/standalone/chunk-XBDKZZ67.js +1 -0
- package/dist/standalone/chunk-XEDU5FO4.js +1 -0
- package/dist/standalone/chunk-XQBTNJUQ.js +1 -0
- package/dist/standalone/chunk-XQCVZAGU.js +1 -0
- package/dist/standalone/chunk-XQGANNLS.js +1 -0
- package/dist/standalone/chunk-XSD4Y6SQ.js +1 -0
- package/dist/standalone/chunk-XXQUMVWH.js +1 -0
- package/dist/standalone/chunk-YD5NF6UT.js +1 -0
- package/dist/standalone/chunk-YI3WYUXK.js +1 -0
- package/dist/standalone/chunk-ZJGP6EKR.js +1 -0
- package/dist/standalone/chunk-ZNNAGR6N.js +1 -0
- package/dist/standalone/studio.js +9 -356
- package/dist/styles.css +2 -2
- package/package.json +17 -15
- package/dist/packem_shared/ADMIN_FUNCTIONS-DmBqMZ-z.js +0 -45
- package/dist/packem_shared/ApiDocsPanel-C5-yJ1p7.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
- package/dist/packem_shared/ApiTab-W3no0KOj.js +0 -251
- package/dist/packem_shared/AuditPanel-Bq4o_IqT.js +0 -212
- package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
- package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
- package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
- package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
- package/dist/packem_shared/DataBrowser-CtBe1So9.js +0 -4542
- package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/ExportImportPanel-dxY56TDF.js +0 -193
- package/dist/packem_shared/FileBrowser-Dhy4zES8.js +0 -2932
- package/dist/packem_shared/FunctionRunner--fQJRPAD.js +0 -343
- package/dist/packem_shared/FunctionStatsPanel-BjRUA_G3.js +0 -432
- package/dist/packem_shared/GlobalDataBrowser-BTEmGrph.js +0 -318
- package/dist/packem_shared/HealthPanel-PxclMWmA.js +0 -640
- package/dist/packem_shared/HomePanel-Cw16stjq.js +0 -1273
- package/dist/packem_shared/InsightsPanel-CWS_C-xW.js +0 -423
- package/dist/packem_shared/LogsPanel-CTW8CFcM.js +0 -839
- package/dist/packem_shared/MailPanel-BwkvfIHF.js +0 -447
- package/dist/packem_shared/MetricsPanel-BLuOhZQ4.js +0 -1625
- package/dist/packem_shared/MigrationsPanel-DT3lnwHF.js +0 -246
- package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
- package/dist/packem_shared/PitrPanel-CdErL7EJ.js +0 -252
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-CabfKbyM.js +0 -159
- package/dist/packem_shared/SchemaViewer-LJDcmNIO.js +0 -2512
- package/dist/packem_shared/SecurityAdvisorPanel-C_ETsPih.js +0 -79
- package/dist/packem_shared/SettingsPanel-C0uLRf5P.js +0 -176
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
- package/dist/packem_shared/SqlEditorPanel-CguV7otm.js +0 -13
- package/dist/packem_shared/Studio-BmSGSIuY.js +0 -33
- package/dist/packem_shared/StudioApp-D4azxYBu.js +0 -657
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/TableEditor-ChfUOZec.js +0 -371
- package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
- package/dist/packem_shared/app.d-CCmwDEVs.d.ts +0 -300
- package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
- package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
- package/dist/packem_shared/button-BhsN2uZH.js +0 -49
- package/dist/packem_shared/card-DURq3ElK.js +0 -175
- package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
- package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
- package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
- package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
- package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
- package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
- package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
- package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
- package/dist/packem_shared/label-D8ykjn5J.js +0 -46
- package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
- package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
- package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
- package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
- package/dist/packem_shared/sql-editor-panel-BFRpzj6r.js +0 -2562
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-H9fuQgSj.js +0 -10303
- package/dist/packem_shared/table-_RzNvy3R.js +0 -246
- package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
- package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
- package/dist/packem_shared/use-live-admin-Dq6g3daN.js +0 -73
- package/dist/packem_shared/use-live-shard-seed-Cuk3dnH0.js +0 -76
- package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
- package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
- package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as as,b as is}from"./chunk-F6GOKFMU.js";import{a as ls}from"./chunk-M536Y2KX.js";import{a as ao,b as io,c as lo,d as es,e as cr}from"./chunk-KYF2E5CJ.js";import{$ as Yn,A as Jt,C as Zn,D as B,E as Wn,F as qn,I as Xt,L as Ie,M as Go,N as eo,P as $o,Q as Gn,R as $n,S as Qo,T as to,U as oo,V as ro,W as no,X as Yo,Y as so,_ as Qn,aa as Jo,b as Mn,ba as Xo,ea as er,fa as ge,ga as Jn,ha as co,i as Vn,ia as Xn,j as Ln,ja as se,k as Bn,ka as tr,l as zr,m as Uo,ma as or,na as rr,o as Ko,oa as nr,p as Hn,pa as sr,q as Zo,qa as ar,ra as ir,s as Fn,sa as ts,ta as os,u as jn,ua as lr,v as zn,va as rs,w as Un,x as Wo,y as qo,z as Kn}from"./chunk-7YEFOSPH.js";import{f as Nn}from"./chunk-ILNELDFC.js";import{a as fn,b as gn,d as hn,e as xo,f as jo,g as vn,h as xn,i as bn,j as yn,k as Pn}from"./chunk-SMIESS7P.js";import{a as dr}from"./chunk-HPFLBYRI.js";import{c as ns,h as ss,k as Ur}from"./chunk-QBWRC5YX.js";import{B as Dn,C as In,I as pe,J as _n,K as Yt,O,P as q,R as An,e as le,p as bo,q as kn}from"./chunk-CFPZYHPY.js";import{a as mn}from"./chunk-7QIFDWQV.js";import{b as _e,c as Kr}from"./chunk-FXCBF4XT.js";import{a as De,c as wn,h as zo,i as On}from"./chunk-2OUPA2WJ.js";import{a as jr,b as En}from"./chunk-THIXMMZD.js";import{a as Se,c as W,i as Ue,j as _}from"./chunk-6ST5ECQA.js";import{a as Tn}from"./chunk-XBDKZZ67.js";import{a as Cn,b as Rn,c as Sn,d as Re,m as po}from"./chunk-4CGALXS3.js";import{b as Hr}from"./chunk-LE56LPNH.js";import{a as i,d as Br,e as C,f as E,g as Fr,h as oe,j as z}from"./chunk-3XIESWL4.js";var D=C(Fr(),1);var we=C(E(),1),F=C(E(),1);var s=C(oe(),1);var cs=C(E(),1),Ne=C(oe(),1);var ai={border:"1px solid var(--destructive)",color:"var(--destructive)",padding:12},ii={overflow:"auto",whiteSpace:"pre-wrap"},pr=class extends cs.Component{static{i(this,"g")}static getDerivedStateFromError(e){return{error:e}}state={error:null};componentDidCatch(e,o){console.error("[lunora-studio] panel error",e,o.componentStack)}reset=i(()=>{this.setState({error:null})},"reset");render(){let{children:e,fallbackTitle:o,label:r,retryLabel:n}=this.props,{error:a}=this.state;if(a===null)return(0,Ne.jsx)(Ne.Fragment,{children:e});let c=o??(r===void 0?"Something went wrong":`${r} failed`);return(0,Ne.jsxs)("div",{"data-testid":"dash-error-boundary",role:"alert",style:ai,children:[(0,Ne.jsx)("strong",{children:c}),(0,Ne.jsx)("pre",{"data-testid":"dash-error-message",style:ii,children:a.message}),(0,Ne.jsx)("button",{"data-testid":"dash-error-retry",onClick:this.reset,type:"button",children:n??"Try again"})]})}};var Be={};Br(Be,{Arrow:()=>Ns,Backdrop:()=>Es,Close:()=>Is,Description:()=>Ms,Handle:()=>Po,Popup:()=>Rs,Portal:()=>hs,Positioner:()=>vs,Root:()=>us,Title:()=>Os,Trigger:()=>ms,Viewport:()=>Vs,createHandle:()=>Ls});var Te=C(E(),1);var ur=C(E(),1);var Zr=ur.createContext(void 0);function Q(t){let e=ur.useContext(Zr);if(e===void 0&&!t)throw new Error(W(47));return e}i(Q,"usePopoverRootContext");var Ae=C(E(),1),ds=C(mn(),1);function li(){return{...ao(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}i(li,"createInitialState");var ci={...lo,disabled:B(t=>t.disabled),instantType:B(t=>t.instantType),openMethod:B(t=>t.openMethod),openChangeReason:B(t=>t.openChangeReason),modal:B(t=>t.modal),focusManagerModal:B(t=>t.focusManagerModal),stickIfOpen:B(t=>t.stickIfOpen),titleElementId:B(t=>t.titleElementId),descriptionElementId:B(t=>t.descriptionElementId),openOnHover:B(t=>t.openOnHover),closeDelay:B(t=>t.closeDelay),hasViewport:B(t=>t.hasViewport)},uo=class t extends Xt{static{i(this,"PopoverStore")}constructor(e,o,r=!1){let n={...li(),...e},a=new so;n.open&&e?.mounted===void 0&&(n.mounted=!0),n.floatingRootContext=io(a,o,r),super(n,{popupRef:Ae.createRef(),backdropRef:Ae.createRef(),internalBackdropRef:Ae.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Ae.createRef(),beforeContentFocusGuardRef:Ae.createRef(),stickIfOpenTimeout:new Dn,triggerElements:a},ci)}setOpen=i((e,o)=>{let r=o.reason===O.triggerHover,n=o.reason===O.triggerPress&&o.event.detail===0,a=!e&&(o.reason===O.escapeKey||o.reason==null),c=Gn(o),d=this.select("activeTriggerId");if(!e&&o.reason===O.closePress&&o.trigger==null&&d!=null&&(o.trigger=this.context.triggerElements.getById(d)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let p=i(()=>{let l={open:e,openChangeReason:o.reason};$o(l,e,o.trigger,c()),this.update(l)},"changeState");r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),ds.flushSync(p)):p(),n||a?this.set("instantType",n?"click":"dismiss"):o.reason===O.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)},"setOpen");static useStore(e,o){let{store:r,internalStore:n}=eo(e,(a,c)=>new t(o,a,c));return Ae.useEffect(()=>n?.disposeEffect(),[n]),r}disposeEffect=i(()=>this.context.stickIfOpenTimeout.disposeEffect(),"disposeEffect")};var Ke=C(oe(),1);function ps({props:t}){let{children:e,open:o,defaultOpen:r=!1,onOpenChange:n,onOpenChangeComplete:a,modal:c=!1,handle:d,triggerId:p,defaultTriggerId:l=null}=t,u=uo.useStore(d?.store,{modal:c,open:r,openProp:o,activeTriggerId:l,triggerIdProp:p});Qo(u,o,r,l),u.useControlledProp("openProp",o),u.useControlledProp("triggerIdProp",p);let h=u.useState("open"),f=u.useState("mounted"),v=u.useState("payload"),m=Fn()!=null;u.useContextCallback("onOpenChange",n),u.useContextCallback("onOpenChangeComplete",a),Yo(u,h),oo(u);let{forceUnmount:g}=ro(h,u,()=>{u.update({stickIfOpen:!0,openChangeReason:null})});u.useSyncedValues({modal:c,nested:m}),Te.useEffect(()=>{h||u.context.stickIfOpenTimeout.clear()},[u,h]);let x=Te.useCallback(()=>{u.setOpen(!1,q(O.imperativeAction))},[u]);Te.useImperativeHandle(t.actionsRef,()=>({unmount:g,close:x}),[g,x]);let b=h||f,P=Te.useMemo(()=>({store:u}),[u]);return(0,Ke.jsxs)(Zr.Provider,{value:P,children:[b&&(0,Ke.jsx)(di,{store:u,modal:c}),typeof e=="function"?e({payload:v}):e]})}i(ps,"PopoverRootComponent");function us(t){return Q(!0)?(0,Ke.jsx)(ps,{props:t}):(0,Ke.jsx)(Un,{children:(0,Ke.jsx)(ps,{props:t})})}i(us,"PopoverRoot");function di({store:t,modal:e}){let o=t.useState("floatingRootContext"),r=Jt(o,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),n=r.reference??Ue,a=r.trigger??Ue,c=Te.useMemo(()=>Se(Ie,r.floating),[r.floating]);return no(t,{activeTriggerProps:n,inactiveTriggerProps:a,popupProps:c}),null}i(di,"PopoverInteractions");var Ve=C(E(),1);var Ze=C(oe(),1);var ms=Ve.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,handle:p,payload:l,openOnHover:u=!1,delay:h=300,closeDelay:f=0,id:v,...m}=e,g=Q(!0),x=p?.store??g?.store;if(!x)throw new Error(W(74));let b=le(v),P=x.useState("isTriggerActive",b),y=x.useState("floatingRootContext"),S=x.useState("isOpenedByTrigger",b),R=x.useState("triggerPopupId",b),N=Ve.useRef(null),{registerTrigger:T,isMountedByThisTrigger:k}=to(b,N,x,{payload:l,disabled:c,openOnHover:u,closeDelay:f}),w=x.useState("openChangeReason"),M=x.useState("stickIfOpen"),H=x.useState("openMethod"),G=x.useState("focusManagerModal"),V=Xo(y,{enabled:!c&&y!=null&&u&&(H!=="touch"||w!==O.triggerPress),mouseOnly:!0,move:!1,handleClose:er(),restMs:h,delay:{close:f},triggerElementRef:N,isActiveTrigger:P,isClosing:i(()=>x.select("transitionStatus")==="ending","isClosing")}),K=qo(y,{enabled:y!=null,stickIfOpen:M}),U=tr(()=>x.select("open"),ne=>{x.set("openMethod",ne)}),$=x.useState("triggerProps",k),{getButtonProps:Y,buttonRef:A}=_e({disabled:c,native:d}),I={open(ne){return ne&&w===O.triggerPress?Xn.open(ne):co.open(ne)}},{preFocusGuardRef:Z,handlePreFocusGuardFocus:ie,handleFocusTargetFocus:ce}=es(x,N),ee=_("button",e,{state:{disabled:c,open:S},ref:[A,o,T,N],props:[K.reference,V,$,U,{[Uo]:"",id:b,"aria-haspopup":"dialog","aria-expanded":S,"aria-controls":R},m,Y],stateAttributesMapping:I});return k&&!G?(0,Ze.jsxs)(Ve.Fragment,{children:[(0,Ze.jsx)(zr,{ref:Z,onFocus:ie}),(0,Ze.jsx)(Ve.Fragment,{children:ee},b),(0,Ze.jsx)(zr,{ref:x.context.triggerFocusTargetRef,onFocus:ce})]}):(0,Ze.jsx)(Ve.Fragment,{children:ee},b)},"PopoverTrigger"));var gs=C(E(),1);var mr=C(E(),1);var Wr=mr.createContext(void 0);function fs(){let t=mr.useContext(Wr);if(t===void 0)throw new Error(W(45));return t}i(fs,"usePopoverPortalContext");var qr=C(oe(),1);var hs=gs.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:a}=Q();return a.useState("mounted")||r?(0,qr.jsx)(Wr.Provider,{value:r,children:(0,qr.jsx)(Zo,{ref:o,...n})}):null},"PopoverPortal"));var fo=C(E(),1);var fr=C(E(),1);var Gr=fr.createContext(void 0);function mo(){let t=fr.useContext(Gr);if(!t)throw new Error(W(46));return t}i(mo,"usePopoverPositionerContext");var yo=C(oe(),1);var vs=fo.forwardRef(i(function(e,o){let{render:r,className:n,style:a,anchor:c,positionMethod:d="absolute",side:p="bottom",align:l="center",sideOffset:u=0,alignOffset:h=0,collisionBoundary:f="clipping-ancestors",collisionPadding:v=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:x=!1,collisionAvoidance:b=Ko,...P}=e,{store:y}=Q(),S=fs(),R=jn(),N=y.useState("floatingRootContext"),T=y.useState("mounted"),k=y.useState("open"),w=y.useState("openChangeReason"),M=y.useState("activeTriggerElement"),H=y.useState("modal"),G=y.useState("openMethod"),V=y.useState("positionerElement"),K=y.useState("instantType"),U=y.useState("transitionStatus"),$=y.useState("hasViewport"),Y=fo.useRef(null),A=_n(V,!1,!1),I=nr({anchor:c,floatingRootContext:N,positionMethod:d,mounted:T,side:p,sideOffset:u,align:l,alignOffset:h,arrowPadding:m,collisionBoundary:f,collisionPadding:v,sticky:g,disableAnchorTracking:x,keepMounted:S,nodeId:R,collisionAvoidance:b,adaptiveOrigin:$?rr:void 0}),Z=N.useState("domReferenceElement");De(()=>{let ee=Z,ne=Y.current;if(ee&&(Y.current=ee),ne&&ee&&ee!==ne){y.set("instantType",void 0);let me=new AbortController;return A(()=>{y.set("instantType","trigger-change")},me.signal),()=>{me.abort()}}},[Z,A,y]),os(k&&H===!0&&w!==O.triggerHover,G==="touch",V,M);let ie=fo.useCallback(ee=>{y.set("positionerElement",ee)},[y]),ce={open:k,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:K},de=ir(e,ce,{styles:I.positionerStyles,transitionStatus:U,props:P,refs:[o,ie],hidden:!T,inert:!k});return(0,yo.jsxs)(Gr.Provider,{value:I,children:[T&&H===!0&&w!==O.triggerHover&&(0,yo.jsx)(sr,{ref:y.context.internalBackdropRef,inert:or(!k),cutout:M}),(0,yo.jsx)(zn,{id:R,children:de})]})},"PopoverPositioner"));var gr=C(E(),1);var Le=C(E(),1);var xs=C(oe(),1);var bs=Le.createContext(void 0);function ys(){let[t,e]=Le.useState(0),o=wn(()=>(e(n=>n+1),()=>{e(n=>Math.max(0,n-1))}));return{context:Le.useMemo(()=>({register:o}),[o]),hasClosePart:t>0}}i(ys,"useClosePartCount");function Ps(t){let{value:e,children:o}=t;return(0,xs.jsx)(bs.Provider,{value:e,children:o})}i(Ps,"ClosePartProvider");function Cs(){let t=Le.useContext(bs);De(()=>t?.register(),[t])}i(Cs,"useClosePartRegistration");var $r=C(oe(),1);var pi={...se,...pe},Rs=gr.forwardRef(i(function(e,o){let{render:r,className:n,style:a,initialFocus:c,finalFocus:d,...p}=e,{store:l}=Q(),u=mo(),h=rs(!0)!=null,{context:f,hasClosePart:v}=ys(),m=l.useState("open"),g=l.useState("openMethod"),x=l.useState("instantType"),b=l.useState("transitionStatus"),P=l.useState("popupProps"),y=l.useState("titleElementId"),S=l.useState("descriptionElementId"),R=l.useState("modal"),N=l.useState("mounted"),T=l.useState("openChangeReason"),k=l.useState("activeTriggerElement"),w=l.useState("floatingRootContext"),M=w.useState("floatingId"),H=l.useState("disabled"),G=l.useState("openOnHover"),V=l.useState("closeDelay"),K=p.id??M;Yt({open:m,ref:l.context.popupRef,onComplete(){m&&l.context.onOpenChangeComplete?.(!0)}}),Jo(w,{enabled:G&&!H,closeDelay:V});let U=c===void 0?Go(l.context.popupRef):c,$=R!==!1&&v;l.useSyncedValue("focusManagerModal",$);let Y=gr.useCallback(Z=>{l.set("popupElement",Z)},[l]),A={open:m,side:u.side,align:u.align,instant:x,transitionStatus:b},I=_("div",e,{state:A,ref:[o,l.context.popupRef,Y],props:[P,{id:K,role:"dialog",...Ie,"aria-labelledby":y,"aria-describedby":S,onKeyDown(Z){h&&lr.has(Z.key)&&Z.stopPropagation()}},ar(b),p],stateAttributesMapping:pi});return(0,$r.jsx)(Wo,{context:w,openInteractionType:g,modal:$,disabled:!N||T===O.triggerHover,initialFocus:U,returnFocus:d,restoreFocus:"popup",previousFocusableElement:On(k)?k:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:(0,$r.jsx)(Ps,{value:f,children:I})})},"PopoverPopup"));var Ss=C(E(),1);var Ns=Ss.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=d.useState("open"),{arrowRef:l,side:u,align:h,arrowUncentered:f,arrowStyles:v}=mo();return _("div",e,{state:{open:p,side:u,align:h,uncentered:f},ref:[o,l],props:[{style:v,"aria-hidden":!0},c],stateAttributesMapping:se})},"PopoverArrow"));var Ts=C(E(),1);var ui={...se,...pe},Es=Ts.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=d.useState("open"),l=d.useState("mounted"),u=d.useState("transitionStatus"),h=d.useState("openChangeReason");return _("div",e,{state:{open:p,transitionStatus:u},ref:[d.context.backdropRef,o],props:[{role:"presentation",hidden:!l,style:{pointerEvents:h===O.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},c],stateAttributesMapping:ui})},"PopoverBackdrop"));var ws=C(E(),1);var Os=ws.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=le(c.id);return d.useSyncedValueWithCleanup("titleElementId",p),_("h2",e,{ref:o,props:[{id:p},c]})},"PopoverTitle"));var ks=C(E(),1);var Ms=ks.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,{store:d}=Q(),p=le(c.id);return d.useSyncedValueWithCleanup("descriptionElementId",p),_("p",e,{ref:o,props:[{id:p},c]})},"PopoverDescription"));var Ds=C(E(),1);var Is=Ds.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,...p}=e,{buttonRef:l,getButtonProps:u}=_e({disabled:c,focusableWhenDisabled:!1,native:d}),{store:h}=Q();return Cs(),_("button",e,{ref:[o,l],props:[{onClick(v){h.setOpen(!1,q(O.closePress,v.nativeEvent))}},p,u]})},"PopoverClose"));var As=C(E(),1);var _s=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var mi={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},Vs=As.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,{store:p}=Q(),{side:l}=mo(),u=p.useState("instantType"),{children:h,state:f}=cr({store:p,side:l,cssVars:_s,children:c}),v={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:u};return _("div",e,{state:v,ref:o,props:[d,{children:h}],stateAttributesMapping:mi})},"PopoverViewport"));var Po=class{static{i(this,"PopoverHandle")}constructor(){this.store=new uo}open(e){let o=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!o)throw new Error(W(80,e));this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Ls(){return new Po}i(Ls,"createPopoverHandle");var ae={};Br(ae,{Backdrop:()=>Hs,Close:()=>js,Description:()=>Us,Handle:()=>No,Popup:()=>Gs,Portal:()=>Qs,Root:()=>oa,Title:()=>aa,Trigger:()=>ia,Viewport:()=>na,createHandle:()=>la});var Bs=C(E(),1);var Co=C(E(),1);var hr=Co.createContext(!1),Qr=Co.createContext(void 0);function re(t){let e=Co.useContext(Qr);if(t===!1&&e===void 0)throw new Error(W(27));return e}i(re,"useDialogRootContext");var fi={...se,...pe},Hs=Bs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,forceRender:c=!1,...d}=e,{store:p}=re(),l=p.useState("open"),u=p.useState("nested"),h=p.useState("mounted"),f=p.useState("transitionStatus");return _("div",e,{state:{open:l,transitionStatus:f},ref:[p.context.backdropRef,o],stateAttributesMapping:fi,props:[{role:"presentation",hidden:!h,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:c||!u})},"DialogBackdrop"));var Fs=C(E(),1);var js=Fs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,...p}=e,{store:l}=re(),u=l.useState("open"),{getButtonProps:h,buttonRef:f}=_e({disabled:c,native:d}),v={disabled:c};function m(g){u&&l.setOpen(!1,q(O.closePress,g.nativeEvent))}return i(m,"handleClick"),_("button",e,{state:v,ref:[o,f],props:[{onClick:m},p,h]})},"DialogClose"));var zs=C(E(),1);var Us=zs.forwardRef(i(function(e,o){let{render:r,className:n,style:a,id:c,...d}=e,{store:p}=re(),l=le(c);return p.useSyncedValueWithCleanup("descriptionElementId",l),_("p",e,{ref:o,props:[{id:l},d]})},"DialogDescription"));var Ws=C(E(),1);var Ks=(function(t){return t.nestedDialogs="--nested-dialogs",t})({});var Zs=(function(t){return t[t.open=ge.open]="open",t[t.closed=ge.closed]="closed",t[t.startingStyle=ge.startingStyle]="startingStyle",t[t.endingStyle=ge.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var vr=C(E(),1);var Yr=vr.createContext(void 0);function xr(){let t=vr.useContext(Yr);if(t===void 0)throw new Error(W(26));return t}i(xr,"useDialogPortalContext");var qs=C(oe(),1);var gi={...se,...pe,nestedDialogOpen(t){return t?{[Zs.nestedDialogOpen]:""}:null}},Gs=Ws.forwardRef(i(function(e,o){let{render:r,className:n,style:a,finalFocus:c,initialFocus:d,...p}=e,{store:l}=re(),u=l.useState("descriptionElementId"),h=l.useState("disablePointerDismissal"),f=l.useState("floatingRootContext"),v=l.useState("popupProps"),m=l.useState("modal"),g=l.useState("mounted"),x=l.useState("nested"),b=l.useState("nestedOpenDialogCount"),P=l.useState("open"),y=l.useState("openMethod"),S=l.useState("titleElementId"),R=l.useState("transitionStatus"),N=l.useState("role"),T=f.useState("floatingId"),k=p.id??T;xr(),Yt({open:P,ref:l.context.popupRef,onComplete(){P&&l.context.onOpenChangeComplete?.(!0)}});let w=d===void 0?Go(l.context.popupRef):d,M=b>0,H=l.useStateSetter("popupElement"),V=_("div",e,{state:{open:P,nested:x,transitionStatus:R,nestedDialogOpen:M},props:[v,{id:k,"aria-labelledby":S??void 0,"aria-describedby":u??void 0,role:N,...Ie,hidden:!g,onKeyDown(K){lr.has(K.key)&&K.stopPropagation()},style:{[Ks.nestedDialogs]:b}},p],ref:[o,l.context.popupRef,H],stateAttributesMapping:gi});return(0,qs.jsx)(Wo,{context:f,openInteractionType:y,disabled:!g,closeOnFocusOut:!h,initialFocus:w,returnFocus:c,modal:m!==!1,restoreFocus:"popup",children:V})},"DialogPopup"));var $s=C(E(),1);var Ro=C(oe(),1);var Qs=$s.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e,{store:a}=re(),c=a.useState("mounted"),d=a.useState("modal"),p=a.useState("open");return c||r?(0,Ro.jsx)(Yr.Provider,{value:r,children:(0,Ro.jsxs)(Zo,{ref:o,...n,children:[c&&d===!0&&(0,Ro.jsx)(sr,{ref:a.context.internalBackdropRef,inert:or(!p)}),e.children]})}):null},"DialogPortal"));var ta=C(E(),1);var Xs=C(E(),1);var Ee=C(E(),1);function Ys(t){let{store:e,actionsRef:o}=t,r=e.useState("open");Yo(e,r),oo(e);let{forceUnmount:n}=ro(r,e),a=Ee.useCallback(()=>{e.setOpen(!1,q(O.imperativeAction))},[e]);Ee.useImperativeHandle(o,()=>({unmount:n,close:a}),[n,a])}i(Ys,"useDialogRoot");function Js({store:t,parentContext:e,isDrawer:o}){let r=t.useState("open"),n=t.useState("disablePointerDismissal"),a=t.useState("modal"),c=t.useState("popupElement"),d=t.useState("floatingRootContext"),[p,l]=Ee.useState(0),[u,h]=Ee.useState(0),f=p===0,v=Jt(d,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:a==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(b){if(!t.context.outsidePressEnabledRef.current||"button"in b&&b.button!==0||"touches"in b&&b.touches.length!==1)return!1;let P=kn(b);return f&&!n?a&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===P||t.context.backdropRef.current===P||bo(P,c)&&!P?.hasAttribute("data-base-ui-portal"):!0:!1},escapeKey:f});ts(r&&a===!0,c),t.useContextCallback("onNestedDialogOpen",(b,P)=>{l(b),h(P)}),t.useContextCallback("onNestedDialogClose",()=>{l(0),h(0)}),Ee.useEffect(()=>(e?.onNestedDialogOpen&&r&&e.onNestedDialogOpen(p+1,u+(o?1:0)),e?.onNestedDialogClose&&!r&&e.onNestedDialogClose(),()=>{e?.onNestedDialogClose&&r&&e.onNestedDialogClose()}),[o,r,p,u,e]);let m=v.reference??Ue,g=v.trigger??Ue,x=v.floating??Ue;return no(t,{activeTriggerProps:m,inactiveTriggerProps:g,popupProps:x,nestedOpenDialogCount:p,nestedOpenDrawerCount:u}),null}i(Js,"DialogInteractions");var br=C(E(),1);var hi={...lo,modal:B(t=>t.modal),nested:B(t=>t.nested),nestedOpenDialogCount:B(t=>t.nestedOpenDialogCount),nestedOpenDrawerCount:B(t=>t.nestedOpenDrawerCount),disablePointerDismissal:B(t=>t.disablePointerDismissal),openMethod:B(t=>t.openMethod),descriptionElementId:B(t=>t.descriptionElementId),titleElementId:B(t=>t.titleElementId),viewportElement:B(t=>t.viewportElement),role:B(t=>t.role)},go=class t extends Xt{static{i(this,"DialogStore")}constructor(e,o,r=!1){let n=new so,a=vi(e);a.floatingRootContext=io(n,o,r),super(a,{popupRef:br.createRef(),backdropRef:br.createRef(),internalBackdropRef:br.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:n,onOpenChange:void 0,onOpenChangeComplete:void 0},hi)}setOpen=i((e,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,o);let r={open:e};$o(r,e,o.trigger),this.update(r)},"setOpen");static useStore(e,o){return eo(e,(n,a)=>new t(o,n,a),!0).store}};function vi(t={}){return{...ao(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...t}}i(vi,"createInitialState");var So=C(oe(),1);function ea(t,e="dialog"){let{children:o,open:r,defaultOpen:n=!1,onOpenChange:a,onOpenChangeComplete:c,disablePointerDismissal:d=!1,modal:p=!0,actionsRef:l,handle:u,triggerId:h,defaultTriggerId:f=null}=t,v=e==="drawer",m=e==="alert-dialog",g=m?!0:p,x=m||d,b=m?"alertdialog":"dialog",P=re(!0),S={modal:g,disablePointerDismissal:x,nested:!!P,role:b},R=go.useStore(u?.store,{open:n,openProp:r,activeTriggerId:f,triggerIdProp:h,...S});Zn(()=>{let H=r===void 0&&R.state.open===!1&&n===!0?{open:!0,activeTriggerId:f}:null;m?R.update(H?{...S,...H}:S):H&&R.update(H)}),R.useControlledProp("openProp",r),R.useControlledProp("triggerIdProp",h),R.useSyncedValues(S),R.useContextCallback("onOpenChange",a),R.useContextCallback("onOpenChangeComplete",c);let N=R.useState("open"),T=R.useState("mounted"),k=R.useState("payload");Ys({store:R,actionsRef:l});let w=N||T,M=Xs.useMemo(()=>({store:R}),[R]);return(0,So.jsx)(hr.Provider,{value:!1,children:(0,So.jsxs)(Qr.Provider,{value:M,children:[w&&(0,So.jsx)(Js,{store:R,parentContext:P?.store.context,isDrawer:v}),typeof o=="function"?o({payload:k}):o]})})}i(ea,"useRenderDialogRoot");function oa(t){let e=ta.useContext(hr)?"drawer":"dialog";return ea(t,e)}i(oa,"DialogRoot");var ra=C(E(),1);var Jr=(function(t){return t[t.open=ge.open]="open",t[t.closed=ge.closed]="closed",t[t.startingStyle=ge.startingStyle]="startingStyle",t[t.endingStyle=ge.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});var xi={...se,...pe,nested(t){return t?{[Jr.nested]:""}:null},nestedDialogOpen(t){return t?{[Jr.nestedDialogOpen]:""}:null}},na=ra.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,p=xr(),{store:l}=re(),u=l.useState("open"),h=l.useState("nested"),f=l.useState("transitionStatus"),v=l.useState("nestedOpenDialogCount"),m=l.useState("mounted"),g=l.useStateSetter("viewportElement"),x=v>0;return _("div",e,{enabled:p||m,state:{open:u,nested:h,transitionStatus:f,nestedDialogOpen:x},ref:[o,g],stateAttributesMapping:xi,props:[{role:"presentation",hidden:!m,style:{pointerEvents:u?void 0:"none"},children:c},d]})},"DialogViewport"));var sa=C(E(),1);var aa=sa.forwardRef(i(function(e,o){let{render:r,className:n,style:a,id:c,...d}=e,{store:p}=re(),l=le(c);return p.useSyncedValueWithCleanup("titleElementId",l),_("h2",e,{ref:o,props:[{id:l},d]})},"DialogTitle"));var yr=C(E(),1);var ia=yr.forwardRef(i(function(e,o){let{render:r,className:n,style:a,disabled:c=!1,nativeButton:d=!0,id:p,payload:l,handle:u,...h}=e,f=re(!0),v=u?.store??f?.store;if(!v)throw new Error(W(79));let m=le(p),g=v.useState("floatingRootContext"),x=v.useState("isOpenedByTrigger",m),b=v.useState("triggerPopupId",m),P=yr.useRef(null),{registerTrigger:y,isMountedByThisTrigger:S}=to(m,P,v,{payload:l}),{getButtonProps:R,buttonRef:N}=_e({disabled:c,native:d}),T=qo(g,{enabled:g!=null}),k=tr(()=>v.select("open"),H=>{v.set("openMethod",H)}),w={disabled:c,open:x},M=v.useState("triggerProps",S);return _("button",e,{state:w,ref:[N,o,y,P],props:[T.reference,M,k,{[Uo]:"",id:m,"aria-haspopup":"dialog","aria-expanded":x,"aria-controls":b},h,R],stateAttributesMapping:co})},"DialogTrigger"));var No=class{static{i(this,"DialogHandle")}constructor(e){this.store=e??new go}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,q(O.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function la(){return new No}i(la,"createDialogHandle");var ve={};Br(ve,{Arrow:()=>Ea,Handle:()=>To,Popup:()=>Na,Portal:()=>Pa,Positioner:()=>Ra,Provider:()=>wa,Root:()=>da,Trigger:()=>ga,Viewport:()=>Ma,createHandle:()=>Da});var he=C(E(),1);var Pr=C(E(),1);var Xr=Pr.createContext(void 0);function ue(t){let e=Pr.useContext(Xr);if(e===void 0&&!t)throw new Error(W(72));return e}i(ue,"useTooltipRootContext");var ca=C(E(),1);var bi={...lo,disabled:B(t=>t.disabled),instantType:B(t=>t.instantType),isInstantPhase:B(t=>t.isInstantPhase),trackCursorAxis:B(t=>t.trackCursorAxis),disableHoverablePopup:B(t=>t.disableHoverablePopup),lastOpenChangeReason:B(t=>t.openChangeReason),closeOnClick:B(t=>t.closeOnClick),closeDelay:B(t=>t.closeDelay),hasViewport:B(t=>t.hasViewport)},ho=class t extends Xt{static{i(this,"TooltipStore")}constructor(e,o,r=!1){let n=new so,a={...yi(),...e};a.floatingRootContext=io(n,o,r),super(a,{popupRef:ca.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:n},bi)}setOpen=i((e,o)=>{$n(this,e,o,{extraState:{openChangeReason:o.reason}})},"setOpen");cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,q(O.triggerPress,e))}static useStore(e,o){return eo(e,(n,a)=>new t(o,n,a)).store}};function yi(){return{...ao(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}i(yi,"createInitialState");var Cr=C(oe(),1);var da=Wn(i(function(e){let{disabled:o=!1,defaultOpen:r=!1,open:n,disableHoverablePopup:a=!1,trackCursorAxis:c="none",actionsRef:d,onOpenChange:p,onOpenChangeComplete:l,handle:u,triggerId:h,defaultTriggerId:f=null,children:v}=e,m=ho.useStore(u?.store,{open:r,openProp:n,activeTriggerId:f,triggerIdProp:h});Qo(m,n,r,f),m.useControlledProp("openProp",n),m.useControlledProp("triggerIdProp",h),m.useContextCallback("onOpenChange",p),m.useContextCallback("onOpenChangeComplete",l);let g=m.useState("open"),x=!o&&g,b=m.useState("activeTriggerId"),P=m.useState("mounted"),y=m.useState("payload");m.useSyncedValues({trackCursorAxis:c,disableHoverablePopup:a}),m.useSyncedValue("disabled",o),oo(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S,transitionStatus:R}=ro(x,m),N=m.useState("isInstantPhase"),T=m.useState("instantType"),k=m.useState("lastOpenChangeReason"),w=he.useRef(null);De(()=>{g&&o&&m.setOpen(!1,q(O.disabled))},[g,o,m]),De(()=>{R==="ending"&&k===O.none||R!=="ending"&&N?(T!=="delay"&&(w.current=T),m.set("instantType","delay")):w.current!==null&&(m.set("instantType",w.current),w.current=null)},[R,N,k,T,m]),De(()=>{x&&b==null&&m.set("payload",void 0)},[m,b,x]);let M=he.useCallback(()=>{m.setOpen(!1,q(O.imperativeAction))},[m]);he.useImperativeHandle(d,()=>({unmount:S,close:M}),[S,M]);let H=x||P||!o&&c!=="none";return(0,Cr.jsxs)(Xr.Provider,{value:m,children:[H&&(0,Cr.jsx)(Pi,{store:m,disabled:o,trackCursorAxis:c}),typeof v=="function"?v({payload:y}):v]})},"TooltipRoot"));function Pi({store:t,disabled:e,trackCursorAxis:o}){let r=t.useState("floatingRootContext"),n=Jt(r,{enabled:!e,referencePress:i(()=>t.select("closeOnClick"),"referencePress")}),a=Kn(r,{enabled:!e&&o!=="none",axis:o==="none"?void 0:o}),c=he.useMemo(()=>Se(a.reference,n.reference),[a.reference,n.reference]),d=he.useMemo(()=>Se(a.trigger,n.trigger),[a.trigger,n.trigger]),p=he.useMemo(()=>Se(Ie,a.floating,n.floating),[a.floating,n.floating]);return no(t,{activeTriggerProps:c,inactiveTriggerProps:d,popupProps:p}),null}i(Pi,"TooltipInteractions");var Sr=C(E(),1);var Rr=C(E(),1);var en=Rr.createContext(void 0);function pa(){return Rr.useContext(en)}i(pa,"useTooltipProviderContext");var ua=(function(t){return t[t.popupOpen=Jn.popupOpen]="popupOpen",t.triggerDisabled="data-trigger-disabled",t})({});var fa="data-base-ui-tooltip-trigger";function ma(t){if("composedPath"in t){let o=t.composedPath();for(let r=0;r<o.length;r+=1){let n=o[r];if(zo(n))return n}}let e=t.target;return zo(e)?e:null}i(ma,"getTargetElement");function Ci(t){let e=t;for(;e;){if(e.hasAttribute(fa))return e;let o=e.parentElement;if(o){e=o;continue}let r=e.getRootNode();e="host"in r&&zo(r.host)?r.host:null}return null}i(Ci,"closestEnabledTooltipTrigger");var ga=qn(i(function(e,o){let{render:r,className:n,style:a,handle:c,payload:d,disabled:p,delay:l,closeOnClick:u=!0,closeDelay:h,id:f,...v}=e,m=ue(!0),g=c?.store??m;if(!g)throw new Error(W(82));let x=le(f),b=g.useState("isTriggerActive",x),P=g.useState("isOpenedByTrigger",x),y=g.useState("floatingRootContext"),S=Sr.useRef(null),R=l??600,N=h??0,{registerTrigger:T,isMountedByThisTrigger:k}=to(x,S,g,{payload:d,closeOnClick:u,closeDelay:N}),w=pa(),{delayRef:M,isInstantPhase:H,hasProvider:G}=Ln(y,{open:P}),V=Yn(y);g.useSyncedValue("isInstantPhase",H);let K=g.useState("disabled"),U=p??K,$=Bn(U),Y=g.useState("trackCursorAxis"),A=g.useState("disableHoverablePopup"),I=Sr.useRef(!1),Z=In(),ie=Sr.useRef(void 0);function ce(){let j=w?.delay,J=typeof M.current=="object"?M.current.open:void 0,te=R;return G&&(J!==0?te=l??j??R:te=0),te}i(ce,"getOpenDelay");function de(j){let J=S.current;if(!J||!j)return!1;let te=Ci(j);return te!==null&&te!==J&&bo(J,te)}i(de,"isEnabledNestedTriggerTarget");function ee(j){let J=de(j);return I.current=J,J&&(V.openChangeTimeout.clear(),V.restTimeout.clear(),V.restTimeoutPending=!1,Z.clear()),J}i(ee,"detectNestedTriggerHover");let ne=Xo(y,{enabled:!U,mouseOnly:!0,move:!1,handleClose:!A&&Y!=="both"?er():null,restMs:ce,delay(){let j=typeof M.current=="object"?M.current.close:void 0,J=N;return h==null&&G&&(J=j),{close:J}},triggerElementRef:S,isActiveTrigger:b,isClosing:i(()=>g.select("transitionStatus")==="ending","isClosing"),shouldOpen(){return!I.current}}),me=Qn(y,{enabled:!U}).reference,Oe=i(j=>{let J=I.current,te=ma(j),xe=ee(te),fe=S.current,Me=fe&&te&&bo(fe,te);if(xe&&g.select("open")&&g.select("lastOpenChangeReason")===O.triggerHover){g.setOpen(!1,q(O.triggerHover,j));return}if(J&&!xe&&Me&&!$.current&&!g.select("open")&&fe&&Mn(ie.current)){let be=i(()=>{!I.current&&!$.current&&!g.select("open")&&g.setOpen(!0,q(O.triggerHover,j,fe))},"open"),ye=ce();ye===0?(Z.clear(),be()):Z.start(ye,be)}},"handleNestedTriggerHover"),ke=g.useState("triggerProps",k);return _("button",e,{state:{open:P},ref:[o,T,S],props:[ne,me,k||Y!=="none"?ke:void 0,{onMouseOver(j){Oe(j.nativeEvent)},onFocus(j){de(ma(j.nativeEvent))&&j.preventBaseUIHandler()},onMouseLeave(){I.current=!1,Z.clear(),ie.current=void 0},onPointerEnter(j){ie.current=j.pointerType},onPointerDown(j){ie.current=j.pointerType,g.set("closeOnClick",u),u&&!g.select("open")&&g.cancelPendingOpen(j.nativeEvent)},onClick(j){u&&!g.select("open")&&g.cancelPendingOpen(j.nativeEvent)},id:x,[ua.triggerDisabled]:U?"":void 0,[fa]:U?void 0:""},v],stateAttributesMapping:co})},"TooltipTrigger"));var ya=C(E(),1);var Nr=C(E(),1);var tn=Nr.createContext(void 0);function ha(){let t=Nr.useContext(tn);if(t===void 0)throw new Error(W(70));return t}i(ha,"useTooltipPortalContext");var Tr=C(E(),1),va=C(mn(),1);var xa=C(oe(),1);var ba=Tr.forwardRef(i(function(e,o){let{children:r,container:n,className:a,render:c,style:d,...p}=e,{portalNode:l,portalSubtree:u}=Hn({container:n,ref:o,componentProps:e,elementProps:p});return!u&&!l?null:(0,xa.jsxs)(Tr.Fragment,{children:[u,l&&va.createPortal(r,l)]})},"FloatingPortalLite"));var on=C(oe(),1);var Pa=ya.forwardRef(i(function(e,o){let{keepMounted:r=!1,...n}=e;return ue().useState("mounted")||r?(0,on.jsx)(tn.Provider,{value:r,children:(0,on.jsx)(ba,{ref:o,...n})}):null},"TooltipPortal"));var wr=C(E(),1);var Er=C(E(),1);var rn=Er.createContext(void 0);function vo(){let t=Er.useContext(rn);if(t===void 0)throw new Error(W(71));return t}i(vo,"useTooltipPositionerContext");var Ca=C(oe(),1);var Ra=wr.forwardRef(i(function(e,o){let{render:r,className:n,anchor:a,positionMethod:c="absolute",side:d="top",align:p="center",sideOffset:l=0,alignOffset:u=0,collisionBoundary:h="clipping-ancestors",collisionPadding:f=5,arrowPadding:v=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:x=Ko,style:b,...P}=e,y=ue(),S=ha(),R=y.useState("open"),N=y.useState("mounted"),T=y.useState("trackCursorAxis"),k=y.useState("disableHoverablePopup"),w=y.useState("floatingRootContext"),M=y.useState("instantType"),H=y.useState("transitionStatus"),G=y.useState("hasViewport"),V=nr({anchor:a,positionMethod:c,floatingRootContext:w,mounted:N,side:d,sideOffset:l,align:p,alignOffset:u,collisionBoundary:h,collisionPadding:f,sticky:m,arrowPadding:v,disableAnchorTracking:g,keepMounted:S,collisionAvoidance:x,adaptiveOrigin:G?rr:void 0}),K=wr.useMemo(()=>({open:R,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:T!=="none"?"tracking-cursor":M}),[R,V.side,V.align,V.anchorHidden,T,M]),U=ir(e,K,{styles:V.positionerStyles,transitionStatus:H,props:P,refs:[o,y.useStateSetter("positionerElement")],hidden:!N,inert:!R||T==="both"||k});return(0,Ca.jsx)(rn.Provider,{value:V,children:U})},"TooltipPositioner"));var Sa=C(E(),1);var Ri={...se,...pe},Na=Sa.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,d=ue(),{side:p,align:l}=vo(),u=d.useState("open"),h=d.useState("instantType"),f=d.useState("transitionStatus"),v=d.useState("popupProps"),m=d.useState("floatingRootContext"),g=d.useState("disabled"),x=d.useState("closeDelay");Yt({open:u,ref:d.context.popupRef,onComplete(){u&&d.context.onOpenChangeComplete?.(!0)}}),Jo(m,{enabled:!g,closeDelay:x});let b=d.useStateSetter("popupElement");return _("div",e,{state:{open:u,side:p,align:l,instant:h,transitionStatus:f},ref:[o,d.context.popupRef,b],props:[v,ar(f),c],stateAttributesMapping:Ri})},"TooltipPopup"));var Ta=C(E(),1);var Ea=Ta.forwardRef(i(function(e,o){let{render:r,className:n,style:a,...c}=e,d=ue(),{arrowRef:p,side:l,align:u,arrowUncentered:h,arrowStyles:f}=vo(),v=d.useState("open"),m=d.useState("instantType");return _("div",e,{state:{open:v,side:l,align:u,uncentered:h,instant:m},ref:[o,p],props:[{style:f,"aria-hidden":!0},c],stateAttributesMapping:se})},"TooltipArrow"));var nn=C(E(),1);var sn=C(oe(),1);var wa=i(function(e){let{delay:o,closeDelay:r,timeout:n=400}=e,a=nn.useMemo(()=>({delay:o,closeDelay:r}),[o,r]),c=nn.useMemo(()=>({open:o,close:r}),[o,r]);return(0,sn.jsx)(en.Provider,{value:a,children:(0,sn.jsx)(Vn,{delay:c,timeoutMs:n,children:e.children})})},"TooltipProvider");var ka=C(E(),1);var Oa=(function(t){return t.popupWidth="--popup-width",t.popupHeight="--popup-height",t})({});var Si={activationDirection:i(t=>t?{"data-activation-direction":t}:null,"activationDirection")},Ma=ka.forwardRef(i(function(e,o){let{render:r,className:n,style:a,children:c,...d}=e,p=ue(),l=vo(),u=p.useState("instantType"),{children:h,state:f}=cr({store:p,side:l.side,cssVars:Oa,children:c}),v={activationDirection:f.activationDirection,transitioning:f.transitioning,instant:u};return _("div",e,{state:v,ref:o,props:[d,{children:h}],stateAttributesMapping:Si})},"TooltipViewport"));var To=class{static{i(this,"TooltipHandle")}constructor(){this.store=new ho}open(e){let o=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!o)throw new Error(W(81,e));this.store.setOpen(!0,q(O.imperativeAction,void 0,o))}close(){this.store.setOpen(!1,q(O.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}};function Da(){return new To}i(Da,"createTooltipHandle");var Ia=C(Fr(),1);var _a=C(oe(),1);var Ni=i((t,e,o)=>t!==void 0?t:e===void 0&&o===void 0?Rn:Cn(e,o),"p"),Aa=i(t=>{let e=(0,Ia.c)(7),{catalogs:o,children:r,i18n:n,locale:a}=t,c;e[0]!==o||e[1]!==n||e[2]!==a?(c=Ni(n,a,o),e[0]=o,e[1]=n,e[2]=a,e[3]=c):c=e[3];let d=c,p;return e[4]!==r||e[5]!==d?(p=(0,_a.jsx)(Sn,{value:d,children:r}),e[4]=r,e[5]=d,e[6]=p):p=e[6],p},"S");var ln=C(Fr(),1);var He=C(E(),1);var X=C(oe(),1);var an="lunora:command-palette",Va=i(()=>{"window"in globalThis&&globalThis.dispatchEvent(new Event(an))},"ne"),Ti=i(t=>{let e=(0,ln.c)(18),{active:o,index:r,item:n,onActivate:a,onSelect:c}=t,d;e[0]!==n||e[1]!==c?(d=i(()=>{c(n)},"c"),e[0]=n,e[1]=c,e[2]=d):d=e[2];let p=d,l;e[3]!==r||e[4]!==a?(l=i(()=>{a(r)},"i"),e[3]=r,e[4]=a,e[5]=l):l=e[5];let u=l,h=o?"bg-accent text-accent-foreground":"text-foreground",f;e[6]!==h?(f=z("flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-start text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",h),e[6]=h,e[7]=f):f=e[7];let v;e[8]!==n.label?(v=(0,X.jsx)("span",{children:n.label}),e[8]=n.label,e[9]=v):v=e[9];let m;e[10]!==n.group?(m=(0,X.jsx)("span",{className:"text-xs text-muted-foreground",children:n.group}),e[10]=n.group,e[11]=m):m=e[11];let g;return e[12]!==p||e[13]!==u||e[14]!==f||e[15]!==v||e[16]!==m?(g=(0,X.jsx)("li",{children:(0,X.jsxs)("button",{className:f,onClick:p,onMouseEnter:u,type:"button",children:[v,m]})}),e[12]=p,e[13]=u,e[14]=f,e[15]=v,e[16]=m,e[17]=g):g=e[17],g},"G"),La=i(t=>{let e=(0,ln.c)(39),{items:o}=t,r=Re(),n=xo(),[a,c]=(0,He.useState)(!1),[d,p]=(0,He.useState)(""),[l,u]=(0,He.useState)(0),h=(0,He.useRef)(null),f,v;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=i(()=>{let A=i(Z=>{(Z.metaKey||Z.ctrlKey)&&Z.key.toLowerCase()==="k"&&(Z.preventDefault(),c(!0))},"t"),I=i(()=>{c(!0)},"a");return globalThis.addEventListener("keydown",A),globalThis.addEventListener(an,I),()=>{globalThis.removeEventListener("keydown",A),globalThis.removeEventListener(an,I)}},"d"),v=[],e[0]=f,e[1]=v):(f=e[0],v=e[1]),(0,He.useEffect)(f,v);let m;if(e[2]!==o||e[3]!==d){e:{let A=d.trim().toLowerCase();if(A===""){m=o;break e}m=o.filter(I=>I.label.toLowerCase().includes(A)||I.group.toLowerCase().includes(A))}e[2]=o,e[3]=d,e[4]=m}else m=e[4];let g=m,x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=i(A=>{c(A),A||(p(""),u(0))},"S"),e[5]=x):x=e[5];let b=x,P;e[6]!==n?(P=i(A=>{b(!1),po(n({to:A.to}))},"T"),e[6]=n,e[7]=P):P=e[7];let y=P,S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i(A=>{p(A.target.value),u(0)},"D"),e[8]=S):S=e[8];let R=S,N;e[9]!==l||e[10]!==g||e[11]!==y?(N=i(A=>{e:switch(A.key){case"ArrowDown":{A.preventDefault(),u(I=>g.length===0?0:(I+1)%g.length);break e}case"ArrowUp":{A.preventDefault(),u(I=>g.length===0?0:(I-1+g.length)%g.length);break e}case"Enter":{A.preventDefault();let I=g[l];I!==void 0&&y(I);break e}}},"A"),e[9]=l,e[10]=g,e[11]=y,e[12]=N):N=e[12];let T=N,k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=(0,X.jsx)(ae.Backdrop,{className:"fixed inset-0 z-50 bg-black/40 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),e[13]=k):k=e[13];let w;e[14]!==r?(w=r("Command palette"),e[14]=r,e[15]=w):w=e[15];let M;e[16]!==w?(M=(0,X.jsx)(ae.Title,{className:"sr-only",children:w}),e[16]=w,e[17]=M):M=e[17];let H;e[18]===Symbol.for("react.memo_cache_sentinel")?(H=(0,X.jsxs)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,X.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,X.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),e[18]=H):H=e[18];let G;e[19]!==r?(G=r("Search\u2026"),e[19]=r,e[20]=G):G=e[20];let V;e[21]!==T||e[22]!==d||e[23]!==G?(V=(0,X.jsxs)("div",{className:"flex items-center gap-2 border-b border-border px-3",children:[H,(0,X.jsx)("input",{className:"h-11 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground","data-testid":"dash-command-input",onChange:R,onKeyDown:T,placeholder:G,ref:h,type:"text",value:d})]}),e[21]=T,e[22]=d,e[23]=G,e[24]=V):V=e[24];let K;e[25]!==l||e[26]!==g||e[27]!==y||e[28]!==r?(K=g.length===0?(0,X.jsx)("li",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:r("No results.")}):g.map((A,I)=>(0,X.jsx)(Ti,{active:I===l,index:I,item:A,onActivate:u,onSelect:y},A.to)),e[25]=l,e[26]=g,e[27]=y,e[28]=r,e[29]=K):K=e[29];let U;e[30]!==K?(U=(0,X.jsx)("ul",{className:"max-h-80 overflow-y-auto p-1.5","data-testid":"dash-command-list",children:K}),e[30]=K,e[31]=U):U=e[31];let $;e[32]!==M||e[33]!==V||e[34]!==U?($=(0,X.jsxs)(ae.Portal,{children:[k,(0,X.jsxs)(ae.Popup,{className:"fixed start-1/2 top-24 z-50 w-[36rem] max-w-[90vw] -translate-x-1/2 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-lg outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95","data-testid":"dash-command-palette",initialFocus:h,children:[M,V,U]})]}),e[32]=M,e[33]=V,e[34]=U,e[35]=$):$=e[35];let Y;return e[36]!==a||e[37]!==$?(Y=(0,X.jsx)(ae.Root,{onOpenChange:b,open:a,children:$}),e[36]=a,e[37]=$,e[38]=Y):Y=e[38],Y},"re");var Ua="(prefers-color-scheme: dark)",Ka=i(()=>{try{return globalThis.localStorage}catch{return}},"ma"),Ei=i(t=>t==="system"||t==="light"||t==="dark","Ja"),Za=i(()=>globalThis.matchMedia,"pa"),Wa="lunora-studio-theme",cn=["system","light","dark"],wi=i((t="system")=>{try{let e=Ka()?.getItem(Wa);return Ei(e)?e:t}catch{return t}},"Xa"),Ba=i(t=>{let e=Ka();if(e!==void 0)try{e.setItem(Wa,t)}catch{}},"Yt"),Oi=i(()=>{try{return Za()?.(Ua).matches?"dark":"light"}catch{return"light"}},"Ya"),ki=i((t,e)=>t==="system"?e:t,"es"),Mi=i(t=>{let e;try{e=Za()?.(Ua)}catch{e=void 0}if(e===void 0)return()=>{};let o=i(r=>{t(r.matches?"dark":"light")},"s");return e.addEventListener("change",o),()=>{e.removeEventListener("change",o)}},"ts"),un=(0,F.createContext)(null),Di=i(({children:t,defaultTheme:e="system"})=>{let[o,r]=(0,F.useState)(()=>wi(e)),[n,a]=(0,F.useState)(()=>Oi());(0,F.useEffect)(()=>Mi(a),[]);let c=i(p=>{Ba(p),r(p)},"o"),d={cycleTheme:i(()=>{r(p=>{let l=cn[(cn.indexOf(p)+1)%cn.length]??p;return Ba(l),l})},"cycleTheme"),resolvedTheme:ki(o,n),setTheme:c,systemTheme:n,theme:o};return(0,s.jsx)(un,{value:d,children:t})},"as"),Ii=i(t=>{let e=(0,D.c)(3),{children:o}=t,r=(0,F.use)(un),n;return e[0]!==o||e[1]!==r?(n=r===null?(0,s.jsx)(Di,{children:o}):o,e[0]=o,e[1]=r,e[2]=n):n=e[2],n},"ss"),_i=i(()=>{let t=(0,F.use)(un);if(t===null)throw new Hr("INTERNAL","useTheme must be used within a <ThemeProvider>");return t},"rs");function Qg({delay:t=0,...e}){return(0,s.jsx)(ve.Provider,{"data-slot":"tooltip-provider",delay:t,...e})}i(Qg,"Nn");function Ai(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ve.Root,{"data-slot":"tooltip",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ai,"ns");function Vi(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ve.Trigger,{"data-slot":"tooltip-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Vi,"is");function Li({className:t,side:e="top",sideOffset:o=4,align:r="center",alignOffset:n=0,children:a,...c}){return(0,s.jsx)(ve.Portal,{children:(0,s.jsx)(ve.Positioner,{align:r,alignOffset:n,side:e,sideOffset:o,className:"isolate z-50",children:(0,s.jsxs)(ve.Popup,{"data-slot":"tooltip-content",className:z("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-md data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...c,children:[a,(0,s.jsx)(ve.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-md bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-start-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-end-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}i(Li,"os");var Bi=i(t=>{let e=(0,D.c)(5),{className:o}=t,r;e[0]!==o?(r=z("h-full w-full text-foreground",o),e[0]=o,e[1]=r):r=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsx)("path",{d:"M 259.500 10.552 C 220.080 15.859, 182.424 32.566, 152.500 58.025 C 110.179 94.031, 85.380 137.183, 77.518 188.500 C 75.410 202.255, 74.569 225.677, 75.796 236.466 C 76.757 244.917, 76.683 245.692, 74.518 249.966 C 63.118 272.466, 53.141 303.876, 51.382 322.799 L 50.718 329.943 71.960 320.471 C 83.643 315.262, 93.326 311, 93.478 311 C 93.630 311, 96.547 316.063, 99.959 322.250 C 103.371 328.438, 107.249 334.850, 108.577 336.500 L 110.990 339.500 110.981 336 C 110.977 334.075, 111.499 324.991, 112.143 315.813 L 113.312 299.127 121.406 293.336 C 132.495 285.403, 149.593 271.554, 161 261.268 C 171.556 251.748, 189.116 235, 188.540 235 C 188.337 235, 183.069 238.648, 176.835 243.106 C 142.318 267.789, 68.537 314, 63.646 314 C 61.843 314, 72.791 281.179, 80.905 262.259 C 92.233 235.845, 107.473 212.389, 132.106 183.453 L 138.451 176 148.268 176 C 176.192 176, 197.512 187.154, 212.868 209.797 C 216.470 215.108, 217.035 216.595, 216.477 219.297 C 211.386 243.968, 202.359 274.496, 193.797 296 C 183.898 320.861, 167.147 352.101, 152.395 373.215 L 147.004 380.930 152.891 385.830 C 161.400 392.911, 165.563 396, 166.594 395.998 C 167.092 395.998, 168.772 391.641, 170.327 386.317 C 176.279 365.934, 188.422 338.749, 200.942 317.778 C 223.060 280.731, 256.432 244.369, 294.500 215.836 C 309.956 204.252, 313.937 201.603, 314.719 202.385 C 315.116 202.783, 315.449 213.096, 315.460 225.304 C 315.474 241.855, 315.021 250.405, 313.680 258.924 C 307.009 301.272, 291.175 336.677, 263.112 372 C 255.259 381.883, 227.182 410.673, 218.516 417.727 L 213.532 421.783 223.439 424.880 C 281.705 443.093, 349.165 436.018, 398.616 406.508 C 446.728 377.797, 483.322 331.466, 497.366 281.481 C 503.381 260.075, 504.480 250.741, 504.491 221 C 504.501 191.997, 503.598 184.047, 497.987 163.732 C 484.768 115.871, 452.505 72.708, 407.718 42.964 C 381.051 25.254, 352.818 14.828, 319.695 10.460 C 305.932 8.645, 273.298 8.695, 259.500 10.552",fillRule:"evenodd"}),e[2]=n):n=e[2];let a;return e[3]!==r?(a=(0,s.jsx)("svg",{"aria-hidden":"true",className:r,fill:"currentColor",viewBox:"0 0 543 446",children:n}),e[3]=r,e[4]=a):a=e[4],a},"ls"),qa="lunora.studio.rulesBannerDismissed",Hi=i(()=>{try{return globalThis.localStorage.getItem(qa)==="1"}catch{return!1}},"ds"),Fi=i(()=>{try{globalThis.localStorage.setItem(qa,"1")}catch{}},"cs"),ji=i(()=>{let t=(0,D.c)(18),e=Re(),[o,r]=(0,F.useState)(zi),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i(()=>{r(!0),Fi()},"n"),t[0]=n):n=t[0];let a=n;if(o)return null;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),t[1]=c):c=t[1];let d;t[2]!==e?(d=e("Lunora AI rules aren't installed."),t[2]=e,t[3]=d):d=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[11px]",children:"lunora rules install"}),t[4]=p):p=t[4];let l;t[5]!==e?(l=e("lets your coding agent use Lunora correctly."),t[5]=e,t[6]=l):l=t[6];let u;t[7]!==d||t[8]!==l?(u=(0,s.jsxs)("span",{children:[d," ",p," ",l]}),t[7]=d,t[8]=l,t[9]=u):u=t[9];let h;t[10]!==e?(h=e("Dismiss"),t[10]=e,t[11]=h):h=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})}),t[12]=f):f=t[12];let v;t[13]!==h?(v=(0,s.jsx)("button",{"aria-label":h,className:"ms-auto flex size-5 items-center justify-center rounded text-muted-foreground outline-none transition-colors hover:bg-accent hover:text-foreground focus-visible:bg-accent","data-testid":"dash-app-rules-banner-dismiss",onClick:a,type:"button",children:f}),t[13]=h,t[14]=v):v=t[14];let m;return t[15]!==u||t[16]!==v?(m=(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-warning/30 bg-warning/10 px-6 py-2 text-[12px] text-foreground","data-testid":"dash-app-rules-banner",role:"note",children:[c,u,v]}),t[15]=u,t[16]=v,t[17]=m):m=t[17],m},"us");function zi(){return Hi()}i(zi,"hs");var Ui=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{height:"14",rx:"2",width:"20",x:"2",y:"3"}),(0,s.jsx)("path",{d:"M8 21h8M12 17v4"})]}),t[0]=e):e=t[0],e},"ms"),Ki=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,s.jsx)("path",{d:"M12 2v2m0 16v2M4.9 4.9l1.4 1.4m11.4 11.4 1.4 1.4M2 12h2m16 0h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),t[0]=e):e=t[0],e},"ps"),Zi=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),t[0]=e):e=t[0],e},"gs"),Wi=[{Icon:Ui,value:"system"},{Icon:Ki,value:"light"},{Icon:Zi,value:"dark"}],qi=i(()=>{let t=(0,D.c)(19),{theme:e,setTheme:o}=_i(),r=Re(),n;t[0]!==r?(n=r("Dark theme"),t[0]=r,t[1]=n):n=t[1];let a;t[2]!==r?(a=r("Light theme"),t[2]=r,t[3]=a):a=t[3];let c;t[4]!==r?(c=r("System theme"),t[4]=r,t[5]=c):c=t[5];let d;t[6]!==n||t[7]!==a||t[8]!==c?(d={dark:n,light:a,system:c},t[6]=n,t[7]=a,t[8]=c,t[9]=d):d=t[9];let p=d,l;t[10]!==r?(l=r("Theme"),t[10]=r,t[11]=l):l=t[11];let u;t[12]!==p||t[13]!==o||t[14]!==e?(u=Wi.map(f=>{let{Icon:v,value:m}=f,g=e===m;return(0,s.jsxs)("button",{"aria-checked":g,"aria-label":p[m],className:z("relative flex size-7 cursor-pointer items-center justify-center rounded-md outline-none transition-colors focus-visible:bg-accent",g?"text-foreground":"text-muted-foreground hover:text-foreground"),"data-testid":`dash-app-theme-${m}`,onClick:i(()=>{o(m)},"onClick"),role:"radio",title:p[m],type:"button",children:[g&&(0,s.jsx)(Nn.span,{className:"absolute inset-0 rounded-md border border-muted-foreground/40 bg-background/40",layoutId:"studio-theme-active",transition:{bounce:.1,duration:.45,type:"spring"}}),(0,s.jsx)("span",{className:"relative",children:(0,s.jsx)(v,{})})]},m)}),t[12]=p,t[13]=o,t[14]=e,t[15]=u):u=t[15];let h;return t[16]!==l||t[17]!==u?(h=(0,s.jsx)("div",{"aria-label":l,className:"inline-flex items-center gap-0.5 overflow-hidden rounded-md border border-border bg-muted/60 p-0.5","data-testid":"dash-app-theme",role:"radiogroup",children:u}),t[16]=l,t[17]=u,t[18]=h):h=t[18],h},"bs");function Ga(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(Be.Root,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Ga,"ba");function $a(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(Be.Trigger,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}i($a,"va");function Qa({align:t="end",alignOffset:e=0,className:o,keepMounted:r=!1,side:n="bottom",sideOffset:a=6,...c}){return(0,s.jsx)(Be.Portal,{keepMounted:r,children:(0,s.jsx)(Be.Positioner,{align:t,alignOffset:e,className:"isolate z-50 outline-none",side:n,sideOffset:a,children:(0,s.jsx)(Be.Popup,{className:z("z-50 w-72 origin-(--transform-origin) rounded-lg border border-border bg-popover p-3 text-popover-foreground shadow-md outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",o),"data-slot":"popover-content",...c})})})}i(Qa,"ya");var dn=768;function Gi(){let t=(0,D.c)(2),[e,o]=(0,F.useState)(void 0),r,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=i(()=>{let a=globalThis.matchMedia(`(max-width: ${dn-1}px)`),c=i(()=>{o(globalThis.innerWidth<dn)},"o");return a.addEventListener("change",c),o(globalThis.innerWidth<dn),()=>{a.removeEventListener("change",c)}},"a"),n=[],t[0]=r,t[1]=n):(r=t[0],n=t[1]),(0,F.useEffect)(r,n),!!e}i(Gi,"vs");function $i(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ae.Root,{"data-slot":"sheet",...o}),e[2]=o,e[3]=r):r=e[3],r}i($i,"ys");function Qi(t){let e=(0,D.c)(4),o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=(0,s.jsx)(ae.Portal,{"data-slot":"sheet-portal",...o}),e[2]=o,e[3]=r):r=e[3],r}i(Qi,"xs");function Yi(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("fixed inset-0 z-50 bg-black/10 text-xs/relaxed transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Backdrop,{"data-slot":"sheet-overlay",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Yi,"ws");function Ji({className:t,children:e,side:o="right",showCloseButton:r=!0,...n}){return(0,s.jsxs)(Qi,{children:[(0,s.jsx)(Yi,{}),(0,s.jsxs)(ae.Popup,{"data-slot":"sheet-content","data-side":o,className:z("fixed z-50 flex flex-col bg-popover bg-clip-padding text-xs/relaxed text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=left]:data-ending-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-ending-style:-translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] rtl:data-[side=left]:data-starting-style:-translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=right]:data-ending-style:translate-x-[2.5rem] rtl:data-[side=right]:data-ending-style:-translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] rtl:data-[side=right]:data-starting-style:-translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",t),...n,children:[e,r&&(0,s.jsxs)(ae.Close,{"data-slot":"sheet-close",render:(0,s.jsx)(Kr,{variant:"ghost",className:"absolute top-3 end-3",size:"icon-sm"}),children:[(0,s.jsx)(Ur,{icon:ns,strokeWidth:2}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}i(Ji,"ks");function Xi(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-0.5 p-4",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sheet-header",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Xi,"Ns");function el(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("text-sm font-medium text-foreground",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Title,{"data-slot":"sheet-title",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(el,"Ms");function tl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("text-xs/relaxed text-muted-foreground",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)(ae.Description,{"data-slot":"sheet-description",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(tl,"Ss");var ol="sidebar_state",rl=3600*24*7,nl="16rem",sl="18rem",al="3rem",il="b",Ya=we.createContext(null);function Or(){let t=we.useContext(Ya);if(!t)throw new Hr("INTERNAL","useSidebar must be used within a SidebarProvider.");return t}i(Or,"Vt");function ll({defaultOpen:t=!0,open:e,onOpenChange:o,className:r,style:n,children:a,...c}){let d=Gi(),[p,l]=we.useState(!1),[u,h]=we.useState(t),f=e??u,v=i(x=>{let b=typeof x=="function"?x(f):x;o?o(b):h(b),document.cookie=`${ol}=${b}; path=/; max-age=${rl}`},"b"),m=i(()=>d?l(x=>!x):v(x=>!x),"p");we.useEffect(()=>{let x=i(b=>{b.key===il&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),m())},"f");return globalThis.addEventListener("keydown",x),()=>globalThis.removeEventListener("keydown",x)},[m]);let g={state:f?"expanded":"collapsed",open:f,setOpen:v,isMobile:d,openMobile:p,setOpenMobile:l,toggleSidebar:m};return(0,s.jsx)(Ya.Provider,{value:g,children:(0,s.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":nl,"--sidebar-width-icon":al,...n},className:z("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),...c,children:a})})}i(ll,"zs");function cl({side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:n,dir:a,...c}){let{isMobile:d,state:p,openMobile:l,setOpenMobile:u}=Or();return o==="none"?(0,s.jsx)("div",{"data-slot":"sidebar",className:z("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...c,children:n}):d?(0,s.jsx)($i,{open:l,onOpenChange:u,...c,children:(0,s.jsxs)(Ji,{dir:a,"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":sl},side:t,children:[(0,s.jsxs)(Xi,{className:"sr-only",children:[(0,s.jsx)(el,{children:"Sidebar"}),(0,s.jsx)(tl,{children:"Displays the mobile sidebar."})]}),(0,s.jsx)("div",{className:"flex h-full w-full flex-col",children:n})]})}):(0,s.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":p,"data-collapsible":p==="collapsed"?o:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[(0,s.jsx)("div",{"data-slot":"sidebar-gap",className:z("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,s.jsx)("div",{"data-slot":"sidebar-container","data-side":t,className:z("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",r),...c,children:(0,s.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-none group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:n})})]})}i(cl,"$s");function dl(t){let e=(0,D.c)(15),o,r,n;e[0]!==t?({className:o,onClick:r,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n):(o=e[1],r=e[2],n=e[3]);let{toggleSidebar:a}=Or(),c;e[4]!==o?(c=z(o),e[4]=o,e[5]=c):c=e[5];let d;e[6]!==r||e[7]!==a?(d=i(h=>{r?.(h),a()},"d"),e[6]=r,e[7]=a,e[8]=d):d=e[8];let p,l;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(Ur,{icon:ss,strokeWidth:2,className:"rtl:rotate-180"}),l=(0,s.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=p,e[10]=l):(p=e[9],l=e[10]);let u;return e[11]!==n||e[12]!==c||e[13]!==d?(u=(0,s.jsxs)(Kr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:c,onClick:d,...n,children:[p,l]}),e[11]=n,e[12]=c,e[13]=d,e[14]=u):u=e[14],u}i(dl,"Rs");function pl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-none md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("main",{"data-slot":"sidebar-inset",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(pl,"Is");function ul(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(ul,"Vs");function ml(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex flex-col gap-2 p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(ml,"Zs");function fl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto [scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_25%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/25 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 hover:[scrollbar-color:color-mix(in_oklch,var(--muted-foreground)_50%,transparent)_transparent] hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/50",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(fl,"Ks");function gl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("relative flex w-full min-w-0 flex-col p-2",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(gl,"Es");function hl(t){let e=(0,D.c)(10),o,r,n,a;if(e[0]!==t){let{className:p,render:l,...u}=t;o=l,a=jr,r="div",n=Se({className:z("flex h-8 shrink-0 items-center rounded-none px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",p)},u),e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=a}else o=e[1],r=e[2],n=e[3],a=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c={slot:"sidebar-group-label",sidebar:"group-label"},e[5]=c):c=e[5];let d;return e[6]!==o||e[7]!==r||e[8]!==n?(d={defaultTagName:r,props:n,render:o,state:c},e[6]=o,e[7]=r,e[8]=n,e[9]=d):d=e[9],a(d)}i(hl,"Hs");function vl(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("w-full text-xs",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(vl,"Os");function Ha(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("flex w-full min-w-0 flex-col gap-0",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Ha,"ea");function Fa(t){let e=(0,D.c)(8),o,r;e[0]!==t?({className:o,...r}=t,e[0]=t,e[1]=o,e[2]=r):(o=e[1],r=e[2]);let n;e[3]!==o?(n=z("group/menu-item relative",o),e[3]=o,e[4]=n):n=e[4];let a;return e[5]!==r||e[6]!==n?(a=(0,s.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...r}),e[5]=r,e[6]=n,e[7]=a):a=e[7],a}i(Fa,"ta");var xl=Tn("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 Ja({render:t,isActive:e=!1,variant:o="default",size:r="default",tooltip:n,className:a,...c}){let{isMobile:d,state:p}=Or(),l=jr({defaultTagName:"button",props:Se({className:z(xl({variant:o,size:r}),a)},c),render:n?(0,s.jsx)(Vi,{render:t}):t,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:e}});return n?(typeof n=="string"&&(n={children:n}),(0,s.jsxs)(Ai,{children:[l,(0,s.jsx)(Li,{side:"right",align:"center",hidden:p!=="collapsed"||d,...n})]})):l}i(Ja,"wa");var L=i((t,e)=>(0,F.lazy)(()=>t().then(o=>({default:o[e]}))),"w"),bl=L(()=>import("./chunk-QWJ3NPE3.js"),"InsightsPanel"),yl=(0,F.lazy)(()=>import("./chunk-ZNNAGR6N.js")),Pl=(0,F.lazy)(()=>import("./chunk-XEDU5FO4.js")),Cl=L(()=>import("./chunk-GSPTEMYN.js"),"AgentsPanel"),Rl=L(()=>import("./chunk-BEH5N5ZA.js"),"AnalyticsPanel"),Sl=(0,F.lazy)(()=>import("./chunk-5OWIOACV.js")),Nl=L(()=>import("./chunk-HP2UCWND.js"),"AuthAuditPanel"),Tl=L(()=>import("./chunk-7J5N6DGQ.js"),"AuthConfigPanel"),El=L(()=>import("./chunk-FGTK44LR.js"),"AuthSessionsPanel"),wl=L(()=>import("./chunk-B43FTQJ7.js"),"OrganizationsPanel"),Ol=L(()=>import("./chunk-YI3WYUXK.js"),"UsersPanel"),kl=L(()=>import("./chunk-OHKRN65U.js"),"ContainersPanel"),Ml=L(()=>import("./chunk-IDNNI63H.js"),"DeploymentHealthPanel"),Dl=L(()=>import("./chunk-T2JIUFOD.js"),"TableEditor"),Il=L(()=>import("./chunk-BNUJ7QMG.js"),"ExportImportPanel"),_l=L(()=>import("./chunk-4WLYA3XE.js"),"MigrationsPanel"),Al=L(()=>import("./chunk-L7N7F3DA.js"),"PitrPanel"),Vl=L(()=>import("./chunk-TLHJRWNK.js"),"FlagsPanel"),Ll=L(()=>import("./chunk-2F7G7IWQ.js"),"FunctionRunner"),Bl=L(()=>import("./chunk-5U2THBI7.js"),"FunctionStatsPanel"),Hl=L(()=>import("./chunk-PWWHP76O.js"),"IssuesPanel"),Fl=L(()=>import("./chunk-XQBTNJUQ.js"),"AuditPanel"),jl=L(()=>import("./chunk-2Y36BVVM.js"),"LogDrainsPanel"),zl=(0,F.lazy)(()=>import("./chunk-C43X4M5U.js").then(t=>({default:t.LogsPanel}))),Ul=L(()=>import("./chunk-EXFBIISG.js"),"MailPanel"),Kl=L(()=>import("./chunk-DVOBKIUX.js"),"SchedulePanel"),Zl=(0,F.lazy)(()=>import("./chunk-RAA2RGG6.js")),Wl=(0,F.lazy)(()=>import("./chunk-F5QWLENA.js")),ql=L(()=>import("./chunk-TJ2WZ5OP.js"),"KvBrowser"),Gl=L(()=>import("./chunk-KDOC2DP5.js"),"NotificationsPanel"),$l=L(()=>import("./chunk-34UVAASH.js"),"PaymentsPanel"),Ql=L(()=>import("./chunk-QVEHPYA5.js"),"PermissionsPanel"),Yl=(0,F.lazy)(()=>import("./chunk-65OTWFS3.js")),Jl=(0,F.lazy)(()=>import("./chunk-EVN46TVV.js")),Xl=(0,F.lazy)(()=>import("./chunk-YD5NF6UT.js")),ec=L(()=>import("./chunk-EKRN4ZQM.js"),"HealthPanel"),tc=L(()=>import("./chunk-6DWCIIHE.js"),"MetricsPanel"),oc=L(()=>import("./chunk-UIS34ZPB.js"),"SchemaViewer"),rc=L(()=>import("./chunk-QGKAJTQQ.js"),"SettingsPanel"),nc=L(()=>import("./chunk-VPAXCQ2Y.js"),"SqlEditorPanel"),sc=L(()=>import("./chunk-P24JBHEZ.js"),"FileBrowser"),ac=L(()=>import("./chunk-SA3MDZC3.js"),"StorageRulesPanel"),ic=L(()=>import("./chunk-3FUFEZ65.js"),"TracesPanel"),lc=L(()=>import("./chunk-LJDP7NRB.js"),"VectorBrowser"),cc=(0,F.lazy)(()=>import("./chunk-D7XXWV4E.js")),Xa=(0,F.createContext)(null),dc={analytics:(0,s.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),api:(0,s.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4M13 5l-2 14"}),audit:(0,s.jsx)("path",{d:"M7 4h7l4 4v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm6 0v5h5M9 13h6M9 16h6M9 10h2"}),authAudit:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8h6m-6 3h6"}),authConfig:(0,s.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6h-3.6l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),agents:(0,s.jsx)("path",{d:"M12 8V5m0 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 8h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Zm3 5h.01M15 13h.01M9 21h6"}),authSessions:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),containers:(0,s.jsx)("path",{d:"M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Zm0 0 9 4.5m0 0 9-4.5m-9 4.5V21"}),dashboards:(0,s.jsx)("path",{d:"M4 5h7v6H4V5Zm9 0h7v4h-7V5ZM4 14h7v5H4v-5Zm9-1h7v6h-7v-6Z"}),deploymentHealth:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2 3 4-5"}),drains:(0,s.jsx)("path",{d:"M5 5h14M7 5v6a5 5 0 0 0 10 0V5M10 16h4v3h-4zM12 19v2"}),data:(0,s.jsx)("path",{d:"M5 6c0-1.4 3.1-2.5 7-2.5s7 1.1 7 2.5-3.1 2.5-7 2.5S5 7.4 5 6Zm0 0v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5"}),export:(0,s.jsx)("path",{d:"M12 3v11m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2"}),fanout:(0,s.jsx)("path",{d:"M12 5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm-7 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm14 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 7v3.5M12 10.5 6 17m6-6.5 6 6.5"}),files:(0,s.jsx)("path",{d:"M4 7a2 2 0 0 1 2-2h3l2 2.5h7a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7Z"}),flags:(0,s.jsx)("path",{d:"M6 21V4m0 0h11l-2 3 2 3H6"}),functions:(0,s.jsx)("path",{d:"m9 8-4 4 4 4m6-8 4 4-4 4"}),health:(0,s.jsx)("path",{d:"M3 12h4l2 6 4-14 2 8h6"}),home:(0,s.jsx)("path",{d:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9"}),insights:(0,s.jsx)("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.5.4.8.9.9 1.5l.2 1.2h5l.2-1.2c.1-.6.4-1.1.9-1.5A6 6 0 0 0 12 3ZM9.5 20.5h5M10 18h4"}),issues:(0,s.jsx)("path",{d:"M10.3 4.3 2.5 18a2 2 0 0 0 1.7 3h15.6a2 2 0 0 0 1.7-3L13.7 4.3a2 2 0 0 0-3.4 0ZM12 9v4m0 3v.01"}),kv:(0,s.jsx)("path",{d:"M5 5h14v4H5V5Zm0 5h14v4H5v-4Zm0 5h14v4H5v-4Z"}),logs:(0,s.jsx)("path",{d:"M5 6h14M5 10h14M5 14h9M5 18h11"}),mail:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm0 1.5 8 6 8-6"}),payments:(0,s.jsx)("path",{d:"M3 7h18v10H3V7Zm0 3h18M7 14h4"}),metrics:(0,s.jsx)("path",{d:"M5 20V10m6.5 10V4M18 20v-7M3 20h18"}),migrations:(0,s.jsx)("path",{d:"M4 12a8 8 0 0 1 13.7-5.6L20 8M20 4v4h-4M20 12a8 8 0 0 1-13.7 5.6L4 16m0 4v-4h4"}),notifications:(0,s.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 0 0-4-5.7V5a2 2 0 1 0-4 0v.3A6 6 0 0 0 6 11v3.2a2 2 0 0 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1m6 0H9"}),organizations:(0,s.jsx)("path",{d:"M3 21V8l6-4 6 4v13M9 21v-5h2v5M15 11h6v10M18 14v.01M18 17v.01M6 9v.01M6 12v.01M6 15v.01"}),permissions:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-3 8 2.2 2.2L15 9.5M8.5 16h7"}),pitr:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0-9-9M12 7.5V12l3 2M3 12l-2-2m2 2 2-2"}),queues:(0,s.jsx)("path",{d:"M4 6h16M4 10h16M4 14h10M4 18h10m4-2 3 2-3 2v-4Z"}),realtime:(0,s.jsx)("path",{d:"M5 12a7 7 0 0 1 14 0M8 12a4 4 0 0 1 8 0M12 12v8m0-8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),rls:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3ZM8.5 10h7M8.5 13h7"}),schedule:(0,s.jsx)("path",{d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-13.5V12l4 2"}),schema:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm0 5h16M10 10v9M4 14.5h16"}),sql:(0,s.jsx)("path",{d:"M4 5h16v14H4V5Zm3 4 3 3-3 3m6 0h4"}),storageRules:(0,s.jsx)("path",{d:"M7 10V7a5 5 0 0 1 10 0v3m-11 0h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1Zm6 4v2"}),security:(0,s.jsx)("path",{d:"M12 3 5 6v5c0 4.5 3 7.8 7 9 4-1.2 7-4.5 7-9V6l-7-3Zm-2.5 8.5 2 2 4-4"}),traces:(0,s.jsx)("path",{d:"M3 6h9M6 12h12M10 18h7"}),settings:(0,s.jsx)("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm7.4-3a7.4 7.4 0 0 0-.1-1.2l2-1.6-2-3.4-2.4 1a7.3 7.3 0 0 0-2-1.2l-.4-2.6H10.5l-.4 2.6a7.3 7.3 0 0 0-2 1.2l-2.4-1-2 3.4 2 1.6a7.4 7.4 0 0 0 0 2.4l-2 1.6 2 3.4 2.4-1a7.3 7.3 0 0 0 2 1.2l.4 2.6h3.6l.4-2.6a7.3 7.3 0 0 0 2-1.2l2.4 1 2-3.4-2-1.6a7.4 7.4 0 0 0 .1-1.2Z"}),users:(0,s.jsx)("path",{d:"M16 20v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2M9.5 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm11.5 10v-2a4 4 0 0 0-3-3.85M16 3.13A4 4 0 0 1 16 11"}),vectors:(0,s.jsx)("path",{d:"M4 7l8-4 8 4-8 4-8-4Zm0 5 8 4 8-4M4 17l8 4 8-4"}),workflows:(0,s.jsx)("path",{d:"M5 5h5v5H5V5Zm9 9h5v5h-5v-5ZM7.5 10v2a2 2 0 0 0 2 2H14m2.5-4V8a2 2 0 0 0-2-2H10"})},ja=[{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","audit","realtime","fanout","containers","metrics","analytics","health","deploymentHealth"]},{key:"advisors",tabs:["security","rls","permissions","insights"]},{key:"operations",tabs:["schedule","mail","drains","notifications","payments","flags"]},{key:"settings",tabs:["settings"]}],pc={analytics:"analytics",authConfig:"auth",authSessions:"auth",containers:"containers",files:"storage",flags:"flags",kv:"kv",mail:"mail",organizations:"auth",payments:"payments",queues:"queues",schedule:"scheduler",storageRules:"storage",users:"auth",vectors:"vectors",workflows:"workflows"},za=i((t,e)=>{let o=pc[t];return o===void 0||e[o]},"sa"),pn=i(t=>{let e=(0,D.c)(2),{tab:o}=t,r=dc[o],n;return e[0]!==r?(n=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-4 shrink-0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:r}),e[0]=r,e[1]=n):n=e[1],n},"Gt"),uc=i(t=>t,"Vr"),ei=uc(["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","security","rls","permissions","insights","issues","logs","traces","realtime","fanout","mail","notifications","payments","audit","schedule","drains","flags","settings"]),mc=new Set(["api","data","sql"]),fc=i(t=>{let e=t.split("/").findLast(Boolean)??"";return ei.includes(e)?e:"home"},"Kr"),gc=i(t=>{let e=(0,D.c)(19),{chrome:o,connected:r}=t,n=Re(),a;e[0]!==n?(a=n("admin token"),e[0]=n,e[1]=a):a=e[1];let c;e[2]!==a?(c=(0,s.jsx)("label",{className:"text-xs font-medium text-foreground",htmlFor:"dash-app-token",children:a}),e[2]=a,e[3]=c):c=e[3];let d;e[4]!==o.onTokenChange||e[5]!==o.token?(d=(0,s.jsx)(An,{className:"h-8","data-testid":"dash-app-token",id:"dash-app-token",onChange:o.onTokenChange,placeholder:"LUNORA_ADMIN_TOKEN",type:"password",value:o.token}),e[4]=o.onTokenChange,e[5]=o.token,e[6]=d):d=e[6];let p;e[7]!==r||e[8]!==n?(p=r&&(0,s.jsxs)("p",{className:"flex items-start gap-1.5 text-[11px] text-muted-foreground","data-testid":"dash-app-token-warning",role:"note",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"text-warning",children:"\u26A0"}),n("Token rides the WebSocket URL \u2014 it can surface in browser DevTools and server logs. Use a dev-only token.")]}),e[7]=r,e[8]=n,e[9]=p):p=e[9];let l;e[10]!==o.clearToken||e[11]!==r||e[12]!==n?(l=r&&(0,s.jsx)("button",{className:"self-start rounded-md border border-border px-2.5 py-1 text-xs font-medium outline-none transition-colors hover:bg-accent focus-visible:bg-accent","data-testid":"dash-app-clear-token",onClick:o.clearToken,type:"button",children:n("Clear")}),e[10]=o.clearToken,e[11]=r,e[12]=n,e[13]=l):l=e[13];let u;return e[14]!==c||e[15]!==d||e[16]!==p||e[17]!==l?(u=(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[c,d,p,l]}),e[14]=c,e[15]=d,e[16]=p,e[17]=l,e[18]=u):u=e[18],u},"Er"),hc=i(t=>{let e=(0,D.c)(25),{current:o,group:r,groupLabel:n,selectTab:a,tabDescription:c,tabLabel:d}=t,p=r.tabs.includes(o)?"page":void 0,l=n[r.key],u=r.tabs[0],h;e[0]!==u?(h=(0,s.jsx)(pn,{tab:u}),e[0]=u,e[1]=h):h=e[1];let f;e[2]!==p||e[3]!==l||e[4]!==h?(f=(0,s.jsx)($a,{"aria-current":p,"aria-label":l,className:"mx-auto flex size-8 items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:bg-sidebar-accent data-[popup-open]:bg-sidebar-accent data-[popup-open]:text-sidebar-accent-foreground data-[popup-open]:shadow-xs aria-[current=page]:bg-sidebar-accent aria-[current=page]:text-sidebar-accent-foreground aria-[current=page]:shadow-xs",delay:120,openOnHover:!0,children:h}),e[2]=p,e[3]=l,e[4]=h,e[5]=f):f=e[5];let v=n[r.key],m;e[6]!==v?(m=(0,s.jsx)("div",{className:"px-2 py-1.5 text-[11px] font-medium tracking-wider text-muted-foreground uppercase",children:v}),e[6]=v,e[7]=m):m=e[7];let g;if(e[8]!==o||e[9]!==r.tabs||e[10]!==a||e[11]!==c||e[12]!==d){let P;e[14]!==o||e[15]!==a||e[16]!==c||e[17]!==d?(P=i(y=>(0,s.jsxs)("button",{"aria-current":o===y?"page":void 0,className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[13px] text-foreground outline-none transition-colors hover:bg-accent focus-visible:bg-accent aria-[current=page]:bg-accent aria-[current=page]:font-medium [&_svg]:opacity-70 aria-[current=page]:[&_svg]:opacity-100","data-tab":y,"data-testid":`dash-tab-${y}`,onClick:a,title:c[y],type:"button",children:[(0,s.jsx)(pn,{tab:y}),(0,s.jsx)("span",{children:d[y]})]},y),"k"),e[14]=o,e[15]=a,e[16]=c,e[17]=d,e[18]=P):P=e[18],g=r.tabs.map(P),e[8]=o,e[9]=r.tabs,e[10]=a,e[11]=c,e[12]=d,e[13]=g}else g=e[13];let x;e[19]!==m||e[20]!==g?(x=(0,s.jsxs)(Qa,{align:"start",className:"w-56 p-1",side:"right",sideOffset:8,children:[m,g]}),e[19]=m,e[20]=g,e[21]=x):x=e[21];let b;return e[22]!==f||e[23]!==x?(b=(0,s.jsxs)(Ga,{children:[f,x]}),e[22]=f,e[23]=x,e[24]=b):b=e[24],b},"Hr"),vc=i(t=>{let e=(0,D.c)(45),{chrome:o,collapsed:r,connected:n}=t,a=Re();if(o===null){let y;e[0]!==a?(y=a("Admin"),e[0]=a,e[1]=y):y=e[1];let S;e[2]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:"C"}),e[2]=S):S=e[2];let R;e[3]!==a?(R=a("Admin"),e[3]=a,e[4]=R):R=e[4];let N;e[5]!==R?(N=(0,s.jsx)("span",{className:"truncate text-[13px] font-medium",children:R}),e[5]=R,e[6]=N):N=e[6];let T;e[7]!==a?(T=a("Studio"),e[7]=a,e[8]=T):T=e[8];let k;e[9]!==T?(k=(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:T}),e[9]=T,e[10]=k):k=e[10];let w;e[11]!==N||e[12]!==k?(w=(0,s.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[N,k]}),e[11]=N,e[12]=k,e[13]=w):w=e[13];let M;return e[14]!==y||e[15]!==w?(M=(0,s.jsxs)(Ja,{className:"data-active:bg-transparent",size:"lg",tooltip:y,children:[S,w]}),e[14]=y,e[15]=w,e[16]=M):M=e[16],M}let c=r?"mx-auto size-8 justify-center":"w-full p-2",d;e[17]!==c?(d=z("flex items-center gap-2 rounded-md text-start outline-none transition-colors hover:bg-sidebar-accent focus-visible:bg-sidebar-accent",c),e[17]=c,e[18]=d):d=e[18];let p;e[19]!==n||e[20]!==a?(p=a(n?"Connected":"Not connected"),e[19]=n,e[20]=a,e[21]=p):p=e[21];let l=n?"bg-success":"bg-muted-foreground/50",u;e[22]!==l?(u=z("absolute -end-0.5 -bottom-0.5 size-2.5 rounded-full border-2 border-sidebar",l),e[22]=l,e[23]=u):u=e[23];let h;e[24]!==u?(h=(0,s.jsxs)("span",{className:"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-sidebar-accent text-[11px] font-medium",children:["C",(0,s.jsx)("span",{"aria-hidden":"true",className:u})]}),e[24]=u,e[25]=h):h=e[25];let f;e[26]!==r||e[27]!==n||e[28]!==a?(f=!r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"grid flex-1 text-start leading-tight",children:[(0,s.jsx)("span",{className:"truncate text-[13px] font-medium",children:a("Admin")}),(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:a(n?"Connected":"Not connected")})]}),(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-4 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"m8 9 4-4 4 4M8 15l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e[26]=r,e[27]=n,e[28]=a,e[29]=f):f=e[29];let v;e[30]!==d||e[31]!==p||e[32]!==h||e[33]!==f?(v=(0,s.jsxs)($a,{className:d,"data-testid":"dash-app-connect",title:p,children:[h,f]}),e[30]=d,e[31]=p,e[32]=h,e[33]=f,e[34]=v):v=e[34];let m=r?"end":"start",g=r?"right":"top",x;e[35]!==o||e[36]!==n?(x=(0,s.jsx)(gc,{chrome:o,connected:n}),e[35]=o,e[36]=n,e[37]=x):x=e[37];let b;e[38]!==g||e[39]!==x||e[40]!==m?(b=(0,s.jsx)(Qa,{align:m,keepMounted:!0,side:g,children:x}),e[38]=g,e[39]=x,e[40]=m,e[41]=b):b=e[41];let P;return e[42]!==b||e[43]!==v?(P=(0,s.jsxs)(Ga,{children:[v,b]}),e[42]=b,e[43]=v,e[44]=P):P=e[44],P},"Or"),xc=i(t=>{let e=(0,D.c)(28),{chrome:o,connected:r,current:n,groupLabel:a,groups:c,selectTab:d,tabDescription:p,tabLabel:l}=t,u=Re(),{state:h}=Or(),f=h==="collapsed",v=f&&"justify-center px-0",m;e[0]!==v?(m=z("flex items-center gap-2.5 px-1.5 py-1",v),e[0]=v,e[1]=m):m=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)(Bi,{className:"size-9 shrink-0 text-foreground"}),e[2]=g):g=e[2];let x;e[3]!==f||e[4]!==r||e[5]!==u?(x=!f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"grid flex-1 leading-tight",children:[(0,s.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:"lunora"}),(0,s.jsx)("span",{className:"truncate text-[11px] text-muted-foreground",children:u("Studio")})]}),(0,s.jsx)(En,{className:"px-1.5 text-[10px] tracking-wider uppercase",variant:"secondary",children:u(r?"Live":"Local")})]}),e[3]=f,e[4]=r,e[5]=u,e[6]=x):x=e[6];let b;e[7]!==m||e[8]!==x?(b=(0,s.jsx)(ul,{children:(0,s.jsxs)("div",{className:m,children:[g,x]})}),e[7]=m,e[8]=x,e[9]=b):b=e[9];let P;e[10]!==f||e[11]!==n||e[12]!==a||e[13]!==c||e[14]!==d||e[15]!==p||e[16]!==l?(P=f?c.map(N=>(0,s.jsx)(hc,{current:n,group:N,groupLabel:a,selectTab:d,tabDescription:p,tabLabel:l},N.key)):c.map(N=>(0,s.jsxs)(gl,{children:[(0,s.jsx)(hl,{className:"text-[11px] font-medium tracking-wider uppercase",children:a[N.key]}),(0,s.jsx)(vl,{children:(0,s.jsx)(Ha,{children:N.tabs.map(T=>(0,s.jsx)(Fa,{children:(0,s.jsxs)(Ja,{className:"data-active:text-foreground dark:data-active:text-royal-amethyst data-active:shadow-[inset_2px_0_0_0_var(--royal-amethyst)]","data-tab":T,"data-testid":`dash-tab-${T}`,isActive:n===T,onClick:d,title:p[T],tooltip:p[T],children:[(0,s.jsx)(pn,{tab:T}),(0,s.jsx)("span",{children:l[T]})]})},T))})})]},N.key)),e[10]=f,e[11]=n,e[12]=a,e[13]=c,e[14]=d,e[15]=p,e[16]=l,e[17]=P):P=e[17];let y;e[18]!==P?(y=(0,s.jsx)(fl,{children:P}),e[18]=P,e[19]=y):y=e[19];let S;e[20]!==o||e[21]!==f||e[22]!==r?(S=(0,s.jsx)(ml,{children:(0,s.jsx)(Ha,{children:(0,s.jsx)(Fa,{children:(0,s.jsx)(vc,{chrome:o,collapsed:f,connected:r})})})}),e[20]=o,e[21]=f,e[22]=r,e[23]=S):S=e[23];let R;return e[24]!==b||e[25]!==y||e[26]!==S?(R=(0,s.jsxs)(cl,{collapsible:"icon",variant:"inset",children:[b,y,S]}),e[24]=b,e[25]=y,e[26]=S,e[27]=R):R=e[27],R},"Br"),ti=i(()=>{let t=(0,D.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"dash-pending",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(dr,{className:"h-8 w-40"}),(0,s.jsx)(dr,{className:"h-8 w-24"})]}),(0,s.jsx)(dr,{className:"h-72 w-full"})]}),t[0]=e):e=t[0],e},"Ma"),bc=i(()=>{let t=(0,D.c)(330),e=Re(),o=xo(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={select:Sc},t[0]=r):r=t[0];let n=Pn(r),a,c;t[1]!==n?(a=fc(n),c=mc.has(a),t[1]=n,t[2]=a,t[3]=c):(a=t[2],c=t[3]);let d=c,p=as(),l;t[4]!==p?(l=i(Ce=>({...Ce,tabs:Ce.tabs.filter(Fo=>za(Fo,p))}),"c"),t[4]=p,t[5]=l):l=t[5];let u=ja.map(l).filter(Nc),h,f;t[6]!==a||t[7]!==p||t[8]!==o?(h=i(()=>{za(a,p)||po(o({replace:!0,to:"/home"}))},"g"),f=[a,p,o],t[6]=a,t[7]=p,t[8]=o,t[9]=h,t[10]=f):(h=t[9],f=t[10]),(0,F.useEffect)(h,f);let v;t[11]!==e?(v=e("Agents"),t[11]=e,t[12]=v):v=t[12];let m;t[13]!==e?(m=e("Analytics"),t[13]=e,t[14]=m):m=t[14];let g;t[15]!==e?(g=e("API"),t[15]=e,t[16]=g):g=t[16];let x;t[17]!==e?(x=e("Audit"),t[17]=e,t[18]=x):x=t[18];let b;t[19]!==e?(b=e("Auth audit"),t[19]=e,t[20]=b):b=t[20];let P;t[21]!==e?(P=e("Configuration"),t[21]=e,t[22]=P):P=t[22];let y;t[23]!==e?(y=e("Sessions"),t[23]=e,t[24]=y):y=t[24];let S;t[25]!==e?(S=e("Containers"),t[25]=e,t[26]=S):S=t[26];let R;t[27]!==e?(R=e("Dashboards"),t[27]=e,t[28]=R):R=t[28];let N;t[29]!==e?(N=e("Data"),t[29]=e,t[30]=N):N=t[30];let T;t[31]!==e?(T=e("Deployment health"),t[31]=e,t[32]=T):T=t[32];let k;t[33]!==e?(k=e("Log drains"),t[33]=e,t[34]=k):k=t[34];let w;t[35]!==e?(w=e("Export / Import"),t[35]=e,t[36]=w):w=t[36];let M;t[37]!==e?(M=e("Fan-out"),t[37]=e,t[38]=M):M=t[38];let H;t[39]!==e?(H=e("Files"),t[39]=e,t[40]=H):H=t[40];let G;t[41]!==e?(G=e("Flags"),t[41]=e,t[42]=G):G=t[42];let V;t[43]!==e?(V=e("Functions"),t[43]=e,t[44]=V):V=t[44];let K;t[45]!==e?(K=e("Health"),t[45]=e,t[46]=K):K=t[46];let U;t[47]!==e?(U=e("Home"),t[47]=e,t[48]=U):U=t[48];let $;t[49]!==e?($=e("Performance"),t[49]=e,t[50]=$):$=t[50];let Y;t[51]!==e?(Y=e("Issues"),t[51]=e,t[52]=Y):Y=t[52];let A;t[53]!==e?(A=e("KV"),t[53]=e,t[54]=A):A=t[54];let I;t[55]!==e?(I=e("Logs"),t[55]=e,t[56]=I):I=t[56];let Z;t[57]!==e?(Z=e("Metrics"),t[57]=e,t[58]=Z):Z=t[58];let ie;t[59]!==e?(ie=e("Migrations"),t[59]=e,t[60]=ie):ie=t[60];let ce;t[61]!==e?(ce=e("Notifications"),t[61]=e,t[62]=ce):ce=t[62];let de;t[63]!==e?(de=e("Organizations"),t[63]=e,t[64]=de):de=t[64];let ee;t[65]!==e?(ee=e("Time Travel"),t[65]=e,t[66]=ee):ee=t[66];let ne;t[67]!==e?(ne=e("Mail"),t[67]=e,t[68]=ne):ne=t[68];let me;t[69]!==e?(me=e("Payments"),t[69]=e,t[70]=me):me=t[70];let Oe;t[71]!==e?(Oe=e("Permissions"),t[71]=e,t[72]=Oe):Oe=t[72];let ke;t[73]!==e?(ke=e("Queues"),t[73]=e,t[74]=ke):ke=t[74];let Fe;t[75]!==e?(Fe=e("Realtime"),t[75]=e,t[76]=Fe):Fe=t[76];let je;t[77]!==e?(je=e("RLS Policies"),t[77]=e,t[78]=je):je=t[78];let ze;t[79]!==e?(ze=e("Scheduled"),t[79]=e,t[80]=ze):ze=t[80];let j;t[81]!==e?(j=e("Schema"),t[81]=e,t[82]=j):j=t[82];let J;t[83]!==e?(J=e("Security"),t[83]=e,t[84]=J):J=t[84];let te;t[85]!==e?(te=e("Settings"),t[85]=e,t[86]=te):te=t[86];let xe;t[87]!==e?(xe=e("SQL editor"),t[87]=e,t[88]=xe):xe=t[88];let fe;t[89]!==e?(fe=e("Traces"),t[89]=e,t[90]=fe):fe=t[90];let Me;t[91]!==e?(Me=e("Access Rules"),t[91]=e,t[92]=Me):Me=t[92];let be;t[93]!==e?(be=e("Users"),t[93]=e,t[94]=be):be=t[94];let ye;t[95]!==e?(ye=e("Vectors"),t[95]=e,t[96]=ye):ye=t[96];let We;t[97]!==e?(We=e("Workflows"),t[97]=e,t[98]=We):We=t[98];let Eo;t[99]!==P||t[100]!==y||t[101]!==S||t[102]!==R||t[103]!==N||t[104]!==T||t[105]!==k||t[106]!==w||t[107]!==M||t[108]!==H||t[109]!==G||t[110]!==V||t[111]!==K||t[112]!==U||t[113]!==$||t[114]!==Y||t[115]!==A||t[116]!==I||t[117]!==Z||t[118]!==ie||t[119]!==ce||t[120]!==de||t[121]!==ee||t[122]!==ne||t[123]!==me||t[124]!==Oe||t[125]!==ke||t[126]!==Fe||t[127]!==je||t[128]!==ze||t[129]!==j||t[130]!==J||t[131]!==te||t[132]!==xe||t[133]!==fe||t[134]!==Me||t[135]!==be||t[136]!==ye||t[137]!==We||t[138]!==v||t[139]!==m||t[140]!==g||t[141]!==x||t[142]!==b?(Eo={agents:v,analytics:m,api:g,audit:x,authAudit:b,authConfig:P,authSessions:y,containers:S,dashboards:R,data:N,deploymentHealth:T,drains:k,export:w,fanout:M,files:H,flags:G,functions:V,health:K,home:U,insights:$,issues:Y,kv:A,logs:I,metrics:Z,migrations:ie,notifications:ce,organizations:de,pitr:ee,mail:ne,payments:me,permissions:Oe,queues:ke,realtime:Fe,rls:je,schedule:ze,schema:j,security:J,settings:te,sql:xe,traces:fe,storageRules:Me,users:be,vectors:ye,workflows:We},t[99]=P,t[100]=y,t[101]=S,t[102]=R,t[103]=N,t[104]=T,t[105]=k,t[106]=w,t[107]=M,t[108]=H,t[109]=G,t[110]=V,t[111]=K,t[112]=U,t[113]=$,t[114]=Y,t[115]=A,t[116]=I,t[117]=Z,t[118]=ie,t[119]=ce,t[120]=de,t[121]=ee,t[122]=ne,t[123]=me,t[124]=Oe,t[125]=ke,t[126]=Fe,t[127]=je,t[128]=ze,t[129]=j,t[130]=J,t[131]=te,t[132]=xe,t[133]=fe,t[134]=Me,t[135]=be,t[136]=ye,t[137]=We,t[138]=v,t[139]=m,t[140]=g,t[141]=x,t[142]=b,t[143]=Eo):Eo=t[143];let Pe=Eo,kr={advisors:e("Advisors"),auth:e("Auth"),database:e("Database"),functions:e("Functions"),observability:e("Observability"),operations:e("Operations"),overview:e("Overview"),settings:e("Settings"),storage:e("Storage")},qe;t[144]!==e?(qe=e("Inspect agent threads, message timelines, tool calls, and token usage."),t[144]=e,t[145]=qe):qe=t[145];let Ge;t[146]!==e?(Ge=e("Usage and latency from Analytics Engine \u2014 request volume, p50/p95, and hot shards."),t[146]=e,t[147]=Ge):Ge=t[147];let $e;t[148]!==e?($e=e("Interactive OpenAPI reference and copy-paste snippets for your functions."),t[148]=e,t[149]=$e):$e=t[149];let Qe;t[150]!==e?(Qe=e("A durable log of admin state-changing operations."),t[150]=e,t[151]=Qe):Qe=t[151];let Ye;t[152]!==e?(Ye=e("Authentication and security events \u2014 sign-ins, MFA, and session changes."),t[152]=e,t[153]=Ye):Ye=t[153];let Je;t[154]!==e?(Je=e("Enabled plugins and session config (read-only)."),t[154]=e,t[155]=Je):Je=t[155];let Xe;t[156]!==e?(Xe=e("Browse and revoke active sessions across all users."),t[156]=e,t[157]=Xe):Xe=t[157];let et;t[158]!==e?(et=e("Live Cloudflare Containers \u2014 current lifecycle state per instance from the log stream."),t[158]=e,t[159]=et):et=t[159];let tt;t[160]!==e?(tt=e("Chart widgets backed by saved read-only SQL queries."),t[160]=e,t[161]=tt):tt=t[161];let ot;t[162]!==e?(ot=e("Browse and edit rows across your shard and global tables."),t[162]=e,t[163]=ot):ot=t[163];let rt;t[164]!==e?(rt=e("Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint."),t[164]=e,t[165]=rt):rt=t[165];let nt;t[166]!==e?(nt=e("Forward logs to Logpush, Tail Workers, or a webhook collector."),t[166]=e,t[167]=nt):nt=t[167];let st;t[168]!==e?(st=e("Export a shard to NDJSON, or import rows from it."),t[168]=e,t[169]=st):st=t[169];let at;t[170]!==e?(at=e("Realtime fan-out cost and per-topic subscriber counts for this shard."),t[170]=e,t[171]=at):at=t[171];let it;t[172]!==e?(it=e("Browse objects in your R2 storage buckets."),t[172]=e,t[173]=it):it=t[173];let lt;t[174]!==e?(lt=e("Inspect feature flags and their live evaluation under a targeting context."),t[174]=e,t[175]=lt):lt=t[175];let ct;t[176]!==e?(ct=e("Run registered queries, mutations, and actions."),t[176]=e,t[177]=ct):ct=t[177];let dt;t[178]!==e?(dt=e("At-a-glance connection, error, and shard signals."),t[178]=e,t[179]=dt):dt=t[179];let pt;t[180]!==e?(pt=e("Connection, health, and advisor summary for your deployment."),t[180]=e,t[181]=pt):pt=t[181];let ut;t[182]!==e?(ut=e("Surface slow functions, error spikes, and cache problems."),t[182]=e,t[183]=ut):ut=t[183];let mt;t[184]!==e?(mt=e("Grouped error triage \u2014 Worker throws and container crashes folded by fingerprint."),t[184]=e,t[185]=mt):mt=t[185];let ft;t[186]!==e?(ft=e("A live stream of recent function logs."),t[186]=e,t[187]=ft):ft=t[187];let gt;t[188]!==e?(gt=e("Per-shard health and aggregate metrics."),t[188]=e,t[189]=gt):gt=t[189];let ht;t[190]!==e?(ht=e("Review migration status and run them."),t[190]=e,t[191]=ht):ht=t[191];let vt;t[192]!==e?(vt=e("Registered push devices \u2014 endpoint, kind, last-send status, and delivery errors."),t[192]=e,t[193]=vt):vt=t[193];let xt;t[194]!==e?(xt=e("Browse and manage organizations, members, and invitations."),t[194]=e,t[195]=xt):xt=t[195];let bt;t[196]!==e?(bt=e("Restore a shard to a point in the last 30 days."),t[196]=e,t[197]=bt):bt=t[197];let yt;t[198]!==e?(yt=e("Email your app sent, captured in dev."),t[198]=e,t[199]=yt):yt=t[199];let Pt;t[200]!==e?(Pt=e("Synced customers, subscriptions, and webhook events."),t[200]=e,t[201]=Pt):Pt=t[201];let Ct;t[202]!==e?(Ct=e("Inspect access policies per table, and probe a function as any identity."),t[202]=e,t[203]=Ct):Ct=t[203];let Rt;t[204]!==e?(Rt=e("Inspect declared Cloudflare Queues \u2014 their producer bindings, consumer mode, and dead-letter queue."),t[204]=e,t[205]=Rt):Rt=t[205];let St;t[206]!==e?(St=e("Active WebSocket subscriptions on this shard."),t[206]=e,t[207]=St):St=t[207];let Nt;t[208]!==e?(Nt=e("Inspect row-level-security policies and roles, per table."),t[208]=e,t[209]=Nt):Nt=t[209];let Tt;t[210]!==e?(Tt=e("Inspect and cancel scheduled jobs."),t[210]=e,t[211]=Tt):Tt=t[211];let Et;t[212]!==e?(Et=e("Inspect each table and its columns."),t[212]=e,t[213]=Et):Et=t[213];let wt;t[214]!==e?(wt=e("Review admin gates, credentials, and log redaction."),t[214]=e,t[215]=wt):wt=t[215];let Ot;t[216]!==e?(Ot=e("Read-only deployment config \u2014 vars, secrets, and bindings."),t[216]=e,t[217]=Ot):Ot=t[217];let kt;t[218]!==e?(kt=e("Run read-only SQL against a shard."),t[218]=e,t[219]=kt):kt=t[219];let Mt;t[220]!==e?(Mt=e("Browse and edit key-value pairs in your Workers KV namespaces."),t[220]=e,t[221]=Mt):Mt=t[221];let Dt;t[222]!==e?(Dt=e("Inspect storage access rules \u2014 per bucket, operation, and key prefix."),t[222]=e,t[223]=Dt):Dt=t[223];let It;t[224]!==e?(It=e("Recent ctx.trace waterfalls for this shard \u2014 the drill-down from a log line."),t[224]=e,t[225]=It):It=t[225];let _t;t[226]!==e?(_t=e("Manage auth users \u2014 roles, bans, sessions, and identity."),t[226]=e,t[227]=_t):_t=t[227];let At;t[228]!==e?(At=e("Browse Vectorize indexes and run similarity searches."),t[228]=e,t[229]=At):At=t[229];let Vt;t[230]!==e?(Vt=e("Inspect declared Cloudflare Workflows and their bindings."),t[230]=e,t[231]=Vt):Vt=t[231];let wo;t[232]!==qe||t[233]!==Ge||t[234]!==$e||t[235]!==Qe||t[236]!==Ye||t[237]!==Je||t[238]!==Xe||t[239]!==et||t[240]!==tt||t[241]!==ot||t[242]!==rt||t[243]!==nt||t[244]!==st||t[245]!==at||t[246]!==it||t[247]!==lt||t[248]!==ct||t[249]!==dt||t[250]!==pt||t[251]!==ut||t[252]!==mt||t[253]!==ft||t[254]!==gt||t[255]!==ht||t[256]!==vt||t[257]!==xt||t[258]!==bt||t[259]!==yt||t[260]!==Pt||t[261]!==Ct||t[262]!==Rt||t[263]!==St||t[264]!==Nt||t[265]!==Tt||t[266]!==Et||t[267]!==wt||t[268]!==Ot||t[269]!==kt||t[270]!==Mt||t[271]!==Dt||t[272]!==It||t[273]!==_t||t[274]!==At||t[275]!==Vt?(wo={agents:qe,analytics:Ge,api:$e,audit:Qe,authAudit:Ye,authConfig:Je,authSessions:Xe,containers:et,dashboards:tt,data:ot,deploymentHealth:rt,drains:nt,export:st,fanout:at,files:it,flags:lt,functions:ct,health:dt,home:pt,insights:ut,issues:mt,logs:ft,metrics:gt,migrations:ht,notifications:vt,organizations:xt,pitr:bt,mail:yt,payments:Pt,permissions:Ct,queues:Rt,realtime:St,rls:Nt,schedule:Tt,schema:Et,security:wt,settings:Ot,sql:kt,kv:Mt,storageRules:Dt,traces:It,users:_t,vectors:At,workflows:Vt},t[232]=qe,t[233]=Ge,t[234]=$e,t[235]=Qe,t[236]=Ye,t[237]=Je,t[238]=Xe,t[239]=et,t[240]=tt,t[241]=ot,t[242]=rt,t[243]=nt,t[244]=st,t[245]=at,t[246]=it,t[247]=lt,t[248]=ct,t[249]=dt,t[250]=pt,t[251]=ut,t[252]=mt,t[253]=ft,t[254]=gt,t[255]=ht,t[256]=vt,t[257]=xt,t[258]=bt,t[259]=yt,t[260]=Pt,t[261]=Ct,t[262]=Rt,t[263]=St,t[264]=Nt,t[265]=Tt,t[266]=Et,t[267]=wt,t[268]=Ot,t[269]=kt,t[270]=Mt,t[271]=Dt,t[272]=It,t[273]=_t,t[274]=At,t[275]=Vt,t[276]=wo):wo=t[276];let oi=wo,Oo;t[277]!==o?(Oo=i(Ce=>{po(o({to:`/${Ce.currentTarget.dataset.tab??""}`}))},"Nt"),t[277]=o,t[278]=Oo):Oo=t[278];let ri=Oo,ko,Mo;t[279]!==a||t[280]!==Pe?(ko=i(()=>{typeof document<"u"&&(document.title=`${Pe[a]} \xB7 lunora`)},"Mt"),Mo=[a,Pe],t[279]=a,t[280]=Pe,t[281]=ko,t[282]=Mo):(ko=t[281],Mo=t[282]),(0,F.useEffect)(ko,Mo);let ni=u.find(Ce=>Ce.tabs.includes(a))??ja[0],Mr=u.flatMap(Ce=>Ce.tabs.map(Fo=>({group:kr[Ce.key],label:Pe[Fo],to:`/${Fo}`}))),Lt=(0,F.use)(Xa),si=Lt!==null&&Lt.token!=="",Do;t[283]!==Mr?(Do=(0,s.jsx)(La,{items:Mr}),t[283]=Mr,t[284]=Do):Do=t[284];let Io;t[285]===Symbol.for("react.memo_cache_sentinel")?(Io=(0,s.jsx)(dl,{className:"-ms-1"}),t[285]=Io):Io=t[285];let Bt;t[286]!==e?(Bt=e("Breadcrumb"),t[286]=e,t[287]=Bt):Bt=t[287];let Dr=kr[ni.key],Ht;t[288]!==Dr?(Ht=(0,s.jsx)("span",{className:"text-muted-foreground",children:Dr}),t[288]=Dr,t[289]=Ht):Ht=t[289];let _o;t[290]===Symbol.for("react.memo_cache_sentinel")?(_o=(0,s.jsx)("svg",{"aria-hidden":"true",className:"size-3.5 text-muted-foreground/60",fill:"none",stroke:"currentColor",strokeWidth:1.7,viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"m9 6 6 6-6 6",strokeLinecap:"round",strokeLinejoin:"round"})}),t[290]=_o):_o=t[290];let Ir=Pe[a],Ft;t[291]!==Ir?(Ft=(0,s.jsx)("span",{className:"font-medium text-foreground",children:Ir}),t[291]=Ir,t[292]=Ft):Ft=t[292];let jt;t[293]!==Bt||t[294]!==Ht||t[295]!==Ft?(jt=(0,s.jsxs)("nav",{"aria-label":Bt,className:"flex items-center gap-1.5 text-[13px]",children:[Ht,_o,Ft]}),t[293]=Bt,t[294]=Ht,t[295]=Ft,t[296]=jt):jt=t[296];let Ao;t[297]===Symbol.for("react.memo_cache_sentinel")?(Ao=(0,s.jsxs)("svg",{"aria-hidden":"true",className:"size-3.5",fill:"none",stroke:"currentColor",strokeWidth:1.8,viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,s.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]}),t[297]=Ao):Ao=t[297];let zt;t[298]!==e?(zt=e("Search\u2026"),t[298]=e,t[299]=zt):zt=t[299];let Vo;t[300]===Symbol.for("react.memo_cache_sentinel")?(Vo=(0,s.jsx)("kbd",{className:"ms-auto rounded border border-border bg-background px-1 font-sans text-[10px] text-muted-foreground",children:"\u2318K"}),t[300]=Vo):Vo=t[300];let Ut;t[301]!==zt?(Ut=(0,s.jsxs)("button",{className:"mx-auto hidden h-8 w-72 items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 text-xs text-muted-foreground transition-colors hover:bg-muted md:flex","data-testid":"dash-app-search",onClick:Va,type:"button",children:[Ao,zt,Vo]}),t[301]=zt,t[302]=Ut):Ut=t[302];let Lo;t[303]===Symbol.for("react.memo_cache_sentinel")?(Lo=(0,s.jsx)("div",{className:"ms-auto flex items-center gap-1.5 md:ms-0",children:(0,s.jsx)(qi,{})}),t[303]=Lo):Lo=t[303];let Kt;t[304]!==jt||t[305]!==Ut?(Kt=(0,s.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border px-4","data-testid":"dash-app-header",children:[Io,jt,Ut,Lo]}),t[304]=jt,t[305]=Ut,t[306]=Kt):Kt=t[306];let Zt;t[307]!==Lt?.rulesInstalled?(Zt=Lt?.rulesInstalled===!1&&(0,s.jsx)(ji,{}),t[307]=Lt?.rulesInstalled,t[308]=Zt):Zt=t[308];let _r=`dash-tab-${a}`,Ar=d?"flex min-w-0 flex-1 flex-col overflow-hidden":"min-w-0 flex-1 overflow-auto p-6",Vr=Pe[a],Wt;t[309]!==e||t[310]!==Vr?(Wt=e("{title} failed",{title:Vr}),t[309]=e,t[310]=Vr,t[311]=Wt):Wt=t[311];let Lr=Pe[a],qt;t[312]!==e?(qt=e("Try again"),t[312]=e,t[313]=qt):qt=t[313];let Bo;t[314]===Symbol.for("react.memo_cache_sentinel")?(Bo=(0,s.jsx)(F.Suspense,{fallback:(0,s.jsx)(ti,{}),children:(0,s.jsx)(xn,{})}),t[314]=Bo):Bo=t[314];let Gt;t[315]!==a||t[316]!==Wt||t[317]!==Lr||t[318]!==qt?(Gt=(0,s.jsx)(pr,{fallbackTitle:Wt,label:Lr,retryLabel:qt,children:Bo},a),t[315]=a,t[316]=Wt,t[317]=Lr,t[318]=qt,t[319]=Gt):Gt=t[319];let $t;t[320]!==Ar||t[321]!==Gt?($t=(0,s.jsx)("div",{className:Ar,children:Gt}),t[320]=Ar,t[321]=Gt,t[322]=$t):$t=t[322];let Qt;t[323]!==_r||t[324]!==$t?(Qt=(0,s.jsx)("div",{"aria-labelledby":_r,className:"flex min-w-0 flex-1 flex-col overflow-hidden","data-testid":"dash-panel",id:"dash-panel",role:"tabpanel",children:$t}),t[323]=_r,t[324]=$t,t[325]=Qt):Qt=t[325];let Ho;return t[326]!==Kt||t[327]!==Zt||t[328]!==Qt?(Ho=(0,s.jsxs)(pl,{className:"overflow-hidden md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",children:[Kt,Zt,Qt]}),t[326]=Kt,t[327]=Zt,t[328]=Qt,t[329]=Ho):Ho=t[329],(0,s.jsxs)(ll,{className:"min-h-0 flex-1","data-testid":"lunora-studio",children:[Do,(0,s.jsx)(xc,{chrome:Lt,connected:si,current:a,groupLabel:kr,groups:u,selectTab:ri,tabDescription:oi,tabLabel:Pe}),Ho]})},"Dr"),yc=i(t=>{let e=(0,D.c)(5),{initialShardKey:o,schemaEditable:r}=t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];let a=hn(n),{table:c}=a,d=typeof c=="string"?c:void 0,p;return e[1]!==o||e[2]!==d||e[3]!==r?(p=(0,s.jsx)(oc,{initialShardKey:o,initialTable:d,schemaEditable:r}),e[1]=o,e[2]=d,e[3]=r,e[4]=p):p=e[4],p},"qr"),Pc=i(()=>{let t=(0,D.c)(3),e=xo(),o,r;return t[0]!==e?(o=i(()=>{po(e({replace:!0,to:"/home"}))},"s"),r=[e],t[0]=e,t[1]=o,t[2]=r):(o=t[1],r=t[2]),(0,F.useEffect)(o,r),null},"Wr"),Cc=i(({basePath:t,dataEditable:e=!1,functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:a,runAsIdentity:c=!1,schemaEditable:d=!1,scheduledCancel:p,scheduledCron:l,scheduledLoad:u})=>{let h=vn({component:bc}),f={agents:(0,s.jsx)(Cl,{initialShardKey:r}),analytics:(0,s.jsx)(Rl,{}),api:(0,s.jsx)(Sl,{functions:o,initialShardKey:r,openApiSpec:n,openRpcSpec:a}),audit:(0,s.jsx)(Fl,{initialShardKey:r}),authAudit:(0,s.jsx)(Nl,{}),authConfig:(0,s.jsx)(Tl,{}),authSessions:(0,s.jsx)(El,{}),containers:(0,s.jsx)(kl,{}),dashboards:(0,s.jsx)(Jl,{initialShardKey:r}),data:(0,s.jsx)(Dl,{editable:e,initialShardKey:r}),deploymentHealth:(0,s.jsx)(Ml,{}),drains:(0,s.jsx)(jl,{}),export:(0,s.jsx)(Il,{initialShardKey:r}),fanout:(0,s.jsx)(Xl,{initialShardKey:r}),files:(0,s.jsx)(sc,{}),kv:(0,s.jsx)(ql,{}),flags:(0,s.jsx)(Vl,{initialShardKey:r}),functions:(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(Bl,{functions:o,initialShardKey:r}),(0,s.jsx)(Ll,{functions:o,runAsIdentity:c})]}),health:(0,s.jsx)(ec,{initialShardKey:r}),home:(0,s.jsx)(is,{initialShardKey:r}),insights:(0,s.jsx)(bl,{initialShardKey:r}),issues:(0,s.jsx)(Hl,{initialShardKey:r}),logs:(0,s.jsx)(zl,{initialShardKey:r}),traces:(0,s.jsx)(ic,{initialShardKey:r}),metrics:(0,s.jsx)(tc,{initialShardKey:r}),migrations:(0,s.jsx)(_l,{initialShardKey:r}),notifications:(0,s.jsx)(Gl,{}),organizations:(0,s.jsx)(wl,{}),permissions:(0,s.jsx)(Ql,{functions:o,runAsIdentity:c,schemaEditable:d}),pitr:(0,s.jsx)(Al,{initialShardKey:r}),mail:(0,s.jsx)(Ul,{}),payments:(0,s.jsx)($l,{}),queues:(0,s.jsx)(Yl,{}),realtime:(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(Zl,{initialShardKey:r}),(0,s.jsx)(Wl,{})]}),rls:(0,s.jsx)(yl,{}),schedule:(0,s.jsx)(Kl,{loadCronJobs:l,scheduledCancel:p,scheduledLoad:u}),schema:(0,s.jsx)(yc,{initialShardKey:r,schemaEditable:d}),security:(0,s.jsx)(Pl,{}),settings:(0,s.jsx)(rc,{initialShardKey:r}),sql:(0,s.jsx)(nc,{initialShardKey:r}),storageRules:(0,s.jsx)(ac,{}),users:(0,s.jsx)(Ol,{}),vectors:(0,s.jsx)(lc,{}),workflows:(0,s.jsx)(cc,{})},v=jo({component:i(()=>f.home,"component"),getParentRoute:i(()=>h,"getParentRoute"),path:"/"}),m=ei.map(b=>b==="data"?jo({component:i(()=>f[b],"component"),getParentRoute:i(()=>h,"getParentRoute"),path:`/${b}`,validateSearch:ls}):jo({component:i(()=>f[b],"component"),getParentRoute:i(()=>h,"getParentRoute"),path:`/${b}`})),g=h.addChildren([v,...m]),x="window"in globalThis?fn():gn({initialEntries:["/home"]});return bn({...t===void 0||t==="/"?{}:{basepath:t},defaultNotFoundComponent:Pc,defaultPendingComponent:ti,defaultPendingMinMs:0,defaultPendingMs:0,history:x,routeTree:g})},"jr"),Rc=i(t=>{let e=(0,D.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:a,initialShardKey:c,openApiSpec:d,openRpcSpec:p,runAsIdentity:l,schemaEditable:u,scheduledCancel:h,scheduledCron:f,scheduledLoad:v}=t,m;e[0]!==o||e[1]!==n||e[2]!==a||e[3]!==c||e[4]!==d||e[5]!==p||e[6]!==l||e[7]!==h||e[8]!==f||e[9]!==v||e[10]!==u?(m=Cc({basePath:o,dataEditable:n,functions:a,initialShardKey:c,openApiSpec:d,openRpcSpec:p,runAsIdentity:l,schemaEditable:u,scheduledCancel:h,scheduledCron:f,scheduledLoad:v}),e[0]=o,e[1]=n,e[2]=a,e[3]=c,e[4]=d,e[5]=p,e[6]=l,e[7]=h,e[8]=f,e[9]=v,e[10]=u,e[11]=m):m=e[11];let g=m,x=r??null,b;e[12]!==g?(b=(0,s.jsx)(yn,{router:g}),e[12]=g,e[13]=b):b=e[13];let P;return e[14]!==x||e[15]!==b?(P=(0,s.jsx)(Xa,{value:x,children:b}),e[14]=x,e[15]=b,e[16]=P):P=e[16],P},"Fr"),Yg=i(t=>{let e=(0,D.c)(17),{basePath:o,chrome:r,dataEditable:n,functions:a,i18n:c,initialShardKey:d,locale:p,openApiSpec:l,openRpcSpec:u,runAsIdentity:h,schemaEditable:f,scheduledCancel:v,scheduledCron:m,scheduledLoad:g}=t,x;e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==a||e[4]!==d||e[5]!==l||e[6]!==u||e[7]!==h||e[8]!==v||e[9]!==m||e[10]!==g||e[11]!==f?(x=(0,s.jsx)(Ii,{children:(0,s.jsx)(Rc,{basePath:o,chrome:r,dataEditable:n,functions:a,initialShardKey:d,openApiSpec:l,openRpcSpec:u,runAsIdentity:h,scheduledCancel:v,scheduledCron:m,scheduledLoad:g,schemaEditable:f})}),e[0]=o,e[1]=r,e[2]=n,e[3]=a,e[4]=d,e[5]=l,e[6]=u,e[7]=h,e[8]=v,e[9]=m,e[10]=g,e[11]=f,e[12]=x):x=e[12];let b=x;if(c===void 0&&p===void 0)return b;let P;return e[13]!==c||e[14]!==p||e[15]!==b?(P=(0,s.jsx)(Aa,{i18n:c,locale:p,children:b}),e[13]=c,e[14]=p,e[15]=b,e[16]=P):P=e[16],P},"Mn");function Sc(t){return t.location.pathname}i(Sc,"Ur");function Nc(t){return t.tabs.length>0}i(Nc,"Qr");export{pr as a,Aa as b,Di as c,_i as d,Qg as e,Bi as f,$i as g,Ji as h,Xi as i,el as j,Yg as k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v}from"./chunk-UNUU7CJJ.js";import"./chunk-XXQUMVWH.js";import{b as $}from"./chunk-XSD4Y6SQ.js";import{a as A,b as I,c as j,d as x,e as n,f as c}from"./chunk-MIQTKZAR.js";import{a as k,e as S}from"./chunk-UZERI5YC.js";import{b as y}from"./chunk-THIXMMZD.js";import"./chunk-6ST5ECQA.js";import{a as R}from"./chunk-GXZAXNZI.js";import"./chunk-35II7U25.js";import"./chunk-XBDKZZ67.js";import{a as w}from"./chunk-XQCVZAGU.js";import{d as b}from"./chunk-4CGALXS3.js";import"./chunk-LE56LPNH.js";import{a as f,e as N,g as E,h as _}from"./chunk-3XIESWL4.js";var T=N(E(),1);var r=N(_(),1);var D=f((e,t)=>({delete:e("Delete"),list:e("List"),read:e("Read"),write:e("Write")})[t],"C"),C={delete:2,list:3,read:0,write:1},K=f(e=>[...e].toSorted((t,a)=>t.bucket.localeCompare(a.bucket)||C[t.on]-C[a.on]||(t.prefix??"").localeCompare(a.prefix??"")),"T"),W=f(()=>{let e=(0,T.c)(14),t=b(),a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={},e[0]=a):a=e[0];let{data:l,error:i,errorSource:d}=$(R.storageRules,a),h=l!==void 0,m;if(e[1]!==l||e[2]!==i||e[3]!==d||e[4]!==h||e[5]!==t){let g=K(Array.isArray(l?.rules)?l.rules:[]),u;e[7]!==i||e[8]!==d?(u=i!==null&&(0,r.jsx)(v,{error:d,testId:"storage-rules-error"}),e[7]=i,e[8]=d,e[9]=u):u=e[9];let o;e[10]!==t?(o=t("Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only."),e[10]=t,e[11]=o):o=e[11];let p;e[12]!==o?(p=(0,r.jsx)("p",{className:"text-sm text-muted-foreground","data-testid":"storage-rules-note",children:o}),e[12]=o,e[13]=p):p=e[13],m=(0,r.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"lunora-storage-rules-panel",children:[u,p,h&&g.length===0?(0,r.jsx)(w,{description:t("No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix."),testId:"storage-rules-empty",title:t("No storage rules defined")}):(0,r.jsx)(k,{className:"overflow-hidden py-0",children:(0,r.jsx)(S,{className:"px-0",children:(0,r.jsxs)(A,{"data-testid":"storage-rules-table",children:[(0,r.jsx)(I,{children:(0,r.jsxs)(x,{children:[(0,r.jsx)(n,{children:t("Bucket")}),(0,r.jsx)(n,{children:t("Operation")}),(0,r.jsx)(n,{children:t("Key prefix")}),(0,r.jsx)(n,{children:t("Guarded by")})]})}),(0,r.jsx)(j,{children:g.map(s=>(0,r.jsxs)(x,{"data-testid":`storage-rule-${s.bucket}-${s.on}-${s.prefix??""}`,children:[(0,r.jsx)(c,{className:"font-mono text-xs",children:s.bucket}),(0,r.jsx)(c,{children:(0,r.jsx)(y,{variant:"secondary",children:D(t,s.on)})}),(0,r.jsx)(c,{className:"font-mono text-xs",children:s.prefix??(0,r.jsx)("span",{className:"text-muted-foreground",children:t("(whole bucket)")})}),(0,r.jsx)(c,{className:"font-mono text-xs text-muted-foreground",children:s.procedure})]},`${s.bucket}:${s.on}:${s.prefix??""}:${s.procedure}`))})]})})})]}),e[1]=l,e[2]=i,e[3]=d,e[4]=h,e[5]=t,e[6]=m}else m=e[6];return m},"U");export{W as StorageRulesPanel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as y}from"./chunk-CFPZYHPY.js";import{a as C,c as M,e as P}from"./chunk-2OUPA2WJ.js";import{d as T}from"./chunk-6ST5ECQA.js";import{a as o,e as L,f as S,h as z}from"./chunk-3XIESWL4.js";var O=L(S(),1);var w=L(S(),1);var _=w.createContext({register:o(()=>{},"register"),unregister:o(()=>{},"unregister"),subscribeMapChange:o(()=>()=>{},"subscribeMapChange"),elementsRef:{current:[]},nextIndexRef:{current:0}});function F(){return w.useContext(_)}o(F,"useCompositeListContext");var W=(function(t){return t[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t})({});function V(t={}){let{label:n,metadata:r,textRef:s,indexGuessBehavior:N,index:m}=t,{register:x,unregister:p,subscribeMapChange:f,elementsRef:d,labelsRef:h,nextIndexRef:c}=F(),g=O.useRef(-1),[a,i]=O.useState(m??(N===W.GuessFromOrder?()=>{if(g.current===-1){let e=c.current;c.current+=1,g.current=e}return g.current}:-1)),E=O.useRef(null),D=O.useCallback(e=>{if(E.current=e,a!==-1&&e!==null&&(d.current[a]=e,h)){let l=n!==void 0;h.current[a]=l?n:s?.current?.textContent??e.textContent}},[a,d,h,n,s]);return C(()=>{if(m!=null)return;let e=E.current;if(e)return x(e,r),()=>{p(e)}},[m,x,p,r]),C(()=>{if(m==null)return f(e=>{let l=E.current?e.get(E.current)?.index:null;l!=null&&i(l)})},[m,f,i]),{ref:D,index:a}}o(V,"useCompositeListItem");var b=L(S(),1);var v=L(z(),1);function Z(t){let{children:n,elementsRef:r,labelsRef:s,onMapChange:N}=t,m=M(N),x=b.useRef(0),p=T(U).current,f=T(k).current,[d,h]=b.useState(0),c=b.useRef(d),g=M((e,l)=>{f.set(e,l??null),c.current+=1,h(c.current)}),a=M(e=>{f.delete(e),c.current+=1,h(c.current)}),i=b.useMemo(()=>{let e=new Map;return Array.from(f.keys()).filter(u=>u.isConnected).sort(A).forEach((u,I)=>{let R=f.get(u)??{};e.set(u,{...R,index:I})}),e},[f,d]);C(()=>{if(typeof MutationObserver!="function"||i.size===0)return;let e=new MutationObserver(l=>{let u=new Set,I=o(R=>u.has(R)?u.delete(R):u.add(R),"updateDiff");l.forEach(R=>{R.removedNodes.forEach(I),R.addedNodes.forEach(I)}),u.size===0&&(c.current+=1,h(c.current))});return i.forEach((l,u)=>{u.parentElement&&e.observe(u.parentElement,{childList:!0})}),()=>{e.disconnect()}},[i]),C(()=>{c.current===d&&(r.current.length!==i.size&&(r.current.length=i.size),s&&s.current.length!==i.size&&(s.current.length=i.size),x.current=i.size),m(i)},[m,i,r,s,d]),C(()=>()=>{r.current=[]},[r]),C(()=>()=>{s&&(s.current=[])},[s]);let E=M(e=>(p.add(e),()=>{p.delete(e)}));C(()=>{p.forEach(e=>e(i))},[p,i]);let D=b.useMemo(()=>({register:g,unregister:a,subscribeMapChange:E,elementsRef:r,labelsRef:s,nextIndexRef:x}),[g,a,E,r,s,x]);return(0,v.jsx)(_.Provider,{value:D,children:n})}o(Z,"CompositeList");function k(){return new Map}o(k,"createMap");function U(){return new Set}o(U,"createListeners");function A(t,n){let r=t.compareDocumentPosition(n);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}o(A,"sortByDocumentPosition");function re(t){let n=t.getBoundingClientRect(),r=P(t);if(y.env.jsdom)return n;let s=r.getComputedStyle(t,"::before"),N=r.getComputedStyle(t,"::after");if(!(s.content!=="none"||N.content!=="none"))return n;let x=parseFloat(s.width)||0,p=parseFloat(s.height)||0,f=parseFloat(N.width)||0,d=parseFloat(N.height)||0,h=Math.max(n.width,x,f),c=Math.max(n.height,p,d),g=h-n.width,a=c-n.height;return{left:n.left-g/2,right:n.right+g/2,top:n.top-a/2,bottom:n.bottom+a/2}}o(re,"getPseudoElementBounds");function ie(t){return t==null||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true"}o(ie,"isElementDisabled");export{W as a,V as b,Z as c,re as d,ie as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-3XIESWL4.js";var u={highErrorRate:.05,highWriteContention:.1,lowCacheHitRate:.5,minCacheSamples:10,minConflictCalls:5,minErrorCalls:5,slowFunctionMs:1e3},h={error:0,info:2,warning:1},g=o((e,a)=>{let s=[];if(e.maxDurationMs>=a.slowFunctionMs){let n=e.scannedTables??[];n.length>0?s.push({fn:e.path,kind:"missing-index",severity:"warning",tables:n.map(t=>t.table),value:e.maxDurationMs}):s.push({fn:e.path,kind:"slow-function",severity:"info",value:e.maxDurationMs})}e.calls>=a.minErrorCalls&&e.errors/e.calls>=a.highErrorRate&&s.push({fn:e.path,kind:"high-error-rate",message:e.lastErrorMessage??void 0,severity:"error",value:e.errors/e.calls});let r=e.conflicts??0;return r>0&&e.calls>=a.minConflictCalls&&r/e.calls>=a.highWriteContention&&s.push({fn:e.path,kind:"high-write-contention",severity:"warning",value:r/e.calls}),s},"u"),v=o((e,a,s=u)=>{let r=[];if(e?.cache){let{evictions:n,hits:t,misses:c}=e.cache,i=t+c;if(i>=s.minCacheSamples){let l=t/i;l<s.lowCacheHitRate&&r.push({kind:"low-cache-hit-rate",severity:"warning",value:l})}n>0&&n>t&&r.push({kind:"high-evictions",severity:"warning",value:n})}for(let n of a??[])r.push(...g(n,s));return r.toSorted((n,t)=>h[n.severity]-h[t.severity])},"g");export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s="https://dash.cloudflare.com/?to=/:account",a=`${s}/workers-and-pages/observability`,r=`${s}/workers-and-pages`,o=`${s}/r2`,e=`${s}/workers/d1`,t=`${s}/workers/durable-objects`;export{a,r as b,o as c,e as d,t as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as Rs}from"./chunk-T6VMSOBB.js";import{a as ys}from"./chunk-7QIFDWQV.js";import{a as i,e as k,f as W,h as ot}from"./chunk-3XIESWL4.js";var Go=k(W(),1),ue=Go.createContext(null);var Jo=k(W(),1);function D(t){return Jo.useContext(ue)}i(D,"useRouter");var ze=k(W(),1),Mt=ze.createContext(void 0),Yo=ze.createContext(void 0);function pt(t){return t[t.length-1]}i(pt,"last");function Ss(t){return typeof t=="function"}i(Ss,"isFunction");function Y(t,o){return Ss(t)?t(o):t}i(Y,"functionalUpdate");var er=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable;function mt(t){for(let o in t)if(er.call(t,o))return!0;return!1}i(mt,"hasKeys");var Ps=i(()=>Object.create(null),"createNull"),gt=i((t,o)=>at(t,o,Ps),"nullReplaceEqualDeep");function at(t,o,e=()=>({}),s=0){if(!1)return o;if(t===o)return t;if(s>500)return o;let r=o,n=Ke(t)&&Ke(r);if(!n&&!(Yt(t)&&Yt(r)))return r;let a=n?t:Zo(t);if(!a)return r;let c=n?r:Zo(r);if(!c)return r;let u=a.length,d=c.length,f=n?new Array(d):e(),l=0;for(let p=0;p<d;p++){let h=n?p:c[p],m=t[h],y=r[h];if(m===y){f[h]=m,(n?p<u:er.call(t,h))&&l++;continue}if(m===null||y===null||typeof m!="object"||typeof y!="object"){f[h]=y;continue}let g=at(m,y,e,s+1);f[h]=g,g===m&&l++}return u===d&&l===u?t:f}i(at,"replaceEqualDeep");function Zo(t){let o=Object.getOwnPropertyNames(t);for(let r of o)if(!Xo.call(t,r))return!1;let e=Object.getOwnPropertySymbols(t);if(e.length===0)return o;let s=o;for(let r of e){if(!Xo.call(t,r))return!1;s.push(r)}return s}i(Zo,"getEnumerableOwnKeys");function Yt(t){if(!Qo(t))return!1;let o=t.constructor;if(typeof o>"u")return!0;let e=o.prototype;return!(!Qo(e)||!e.hasOwnProperty("isPrototypeOf"))}i(Yt,"isPlainObject");function Qo(t){return Object.prototype.toString.call(t)==="[object Object]"}i(Qo,"hasObjectPrototype");function Ke(t){return Array.isArray(t)&&t.length===Object.keys(t).length}i(Ke,"isPlainArray");function st(t,o,e){if(t===o)return!0;if(typeof t!=typeof o)return!1;if(Array.isArray(t)&&Array.isArray(o)){if(t.length!==o.length)return!1;for(let s=0,r=t.length;s<r;s++)if(!st(t[s],o[s],e))return!1;return!0}if(Yt(t)&&Yt(o)){let s=e?.ignoreUndefined??!0;if(e?.partial){for(let a in o)if((!s||o[a]!==void 0)&&!st(t[a],o[a],e))return!1;return!0}let r=0;if(!s)r=Object.keys(t).length;else for(let a in t)t[a]!==void 0&&r++;let n=0;for(let a in o)if((!s||o[a]!==void 0)&&(n++,n>r||!st(t[a],o[a],e)))return!1;return r===n}return!1}i(st,"deepEqual");function ct(t){let o,e,s=new Promise((r,n)=>{o=r,e=n});return s.status="pending",s.resolve=r=>{s.status="resolved",s.value=r,o(r),t?.(r)},s.reject=r=>{s.status="rejected",e(r)},s}i(ct,"createControlledPromise");function vt(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}i(vt,"isPromise");var xs=/[\x00-\x1f\x7f"<>`{}]/g;function ws(t){return t.replace(xs,o=>"%"+o.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}i(ws,"sanitizePathSegment");function tr(t){let o;try{o=decodeURI(t)}catch{o=t.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return ws(o)}i(tr,"decodeSegment");var qe=["http:","https:","mailto:","tel:"];function ut(t,o){if(!t)return!1;try{let e=new URL(t);return!o.has(e.protocol)}catch{return!1}}i(ut,"isDangerousProtocol");function At(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};let o=/%25|%5C/gi,e=0,s="",r;for(;(r=o.exec(t))!==null;)s+=tr(t.slice(e,r.index))+r[0],e=o.lastIndex;s=s+tr(e?t.slice(e):t);let n=!1;return s.startsWith("//")&&(n=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:n}}i(At,"decodePath");function or(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}i(or,"encodePathLikeUrl");function rr(t,o){if(t===o)return!0;if(t.length!==o.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==o[e])return!1;return!0}i(rr,"arraysEqual");function $(){throw new Error("Invariant failed")}i($,"invariant");function yt(t){let o=new Map,e,s,r=i(n=>{n.next&&(n.prev?(n.prev.next=n.next,n.next.prev=n.prev,n.next=void 0,s&&(s.next=n,n.prev=s)):(n.next.prev=void 0,e=n.next,n.next=void 0,s&&(n.prev=s,s.next=n)),s=n)},"touch");return{get(n){let a=o.get(n);if(a)return r(a),a.value},set(n,a){if(o.size>=t&&e){let u=e;o.delete(u.key),u.next&&(e=u.next,u.next.prev=void 0),u===s&&(s=void 0)}let c=o.get(n);if(c)c.value=a,r(c);else{let u={key:n,value:a,prev:s};s&&(s.next=u),s=u,e||(e=u),o.set(n,u)}},clear(){o.clear(),e=void 0,s=void 0}}}i(yt,"createLRUCache");var St=4,nr=5;function _s(t){let o=t.indexOf("{");if(o===-1)return null;let e=t.indexOf("}",o);return e===-1||o+1>=t.length?null:[o,e]}i(_s,"getOpenAndCloseBraces");function Ye(t,o,e=new Uint16Array(6)){let s=t.indexOf("/",o),r=s===-1?t.length:s,n=t.substring(o,r);if(!n||!n.includes("$"))return e[0]=0,e[1]=o,e[2]=o,e[3]=r,e[4]=r,e[5]=r,e;if(n==="$"){let c=t.length;return e[0]=2,e[1]=o,e[2]=o,e[3]=c,e[4]=c,e[5]=c,e}if(n.charCodeAt(0)===36)return e[0]=1,e[1]=o,e[2]=o+1,e[3]=r,e[4]=r,e[5]=r,e;let a=_s(n);if(a){let[c,u]=a,d=n.charCodeAt(c+1);if(d===45){if(c+2<n.length&&n.charCodeAt(c+2)===36){let f=c+3,l=u;if(f<l)return e[0]=3,e[1]=o+c,e[2]=o+f,e[3]=o+l,e[4]=o+u+1,e[5]=r,e}}else if(d===36){let f=c+1,l=c+2;return l===u?(e[0]=2,e[1]=o+c,e[2]=o+f,e[3]=o+l,e[4]=o+u+1,e[5]=t.length,e):(e[0]=1,e[1]=o+c,e[2]=o+l,e[3]=o+u,e[4]=o+u+1,e[5]=r,e)}}return e[0]=0,e[1]=o,e[2]=o,e[3]=r,e[4]=r,e[5]=r,e}i(Ye,"parseSegment");function de(t,o,e,s,r,n,a){a?.(e);let c=s;{let u=e.fullPath??e.from,d=u.length,f=e.options?.caseSensitive??t,l=e.options?.params?.parse??e.options?.parseParams;for(;c<d;){let h=Ye(u,c,o),m,y=c,g=h[5];switch(c=g+1,n++,h[0]){case 0:{let v=u.substring(h[2],h[3]);if(f){let R=r.static?.get(v);if(R)m=R;else{r.static??=new Map;let S=It(e.fullPath??e.from);S.parent=r,S.depth=n,m=S,r.static.set(v,S)}}else{let R=v.toLowerCase(),S=r.staticInsensitive?.get(R);if(S)m=S;else{r.staticInsensitive??=new Map;let P=It(e.fullPath??e.from);P.parent=r,P.depth=n,m=P,r.staticInsensitive.set(R,P)}}break}case 1:{let v=u.substring(y,h[1]),R=u.substring(h[4],g),S=f&&!!(v||R),P=v?S?v:v.toLowerCase():void 0,_=R?S?R:R.toLowerCase():void 0,b=!l&&r.dynamic?.find(x=>!x.parse&&x.caseSensitive===S&&x.prefix===P&&x.suffix===_);if(b)m=b;else{let x=Je(1,e.fullPath??e.from,S,P,_);m=x,x.depth=n,x.parent=r,r.dynamic??=[],r.dynamic.push(x)}break}case 3:{let v=u.substring(y,h[1]),R=u.substring(h[4],g),S=f&&!!(v||R),P=v?S?v:v.toLowerCase():void 0,_=R?S?R:R.toLowerCase():void 0,b=!l&&r.optional?.find(x=>!x.parse&&x.caseSensitive===S&&x.prefix===P&&x.suffix===_);if(b)m=b;else{let x=Je(3,e.fullPath??e.from,S,P,_);m=x,x.parent=r,x.depth=n,r.optional??=[],r.optional.push(x)}break}case 2:{let v=u.substring(y,h[1]),R=u.substring(h[4],g),S=f&&!!(v||R),P=v?S?v:v.toLowerCase():void 0,_=R?S?R:R.toLowerCase():void 0,b=Je(2,e.fullPath??e.from,S,P,_);m=b,b.parent=r,b.depth=n,r.wildcard??=[],r.wildcard.push(b)}}r=m}if(l&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){let h=It(e.fullPath??e.from);h.kind=nr,h.parent=r,n++,h.depth=n,r.pathless??=[],r.pathless.push(h),r=h}let p=(e.path||!e.children)&&!e.isRoot;if(p&&u.endsWith("/")){let h=It(e.fullPath??e.from);h.kind=St,h.parent=r,n++,h.depth=n,r.index=h,r=h}r.parse=l??null,r.priority=e.options?.params?.priority??0,p&&!r.route&&(r.route=e,r.fullPath=e.fullPath??e.from)}if(e.children)for(let u of e.children)de(t,o,u,c,r,n,a)}i(de,"parseSegments");function Ge(t,o){if(t.parse&&!o.parse)return-1;if(!t.parse&&o.parse)return 1;if(t.parse&&o.parse&&(t.priority||o.priority))return o.priority-t.priority;if(t.prefix&&o.prefix&&t.prefix!==o.prefix){if(t.prefix.startsWith(o.prefix))return-1;if(o.prefix.startsWith(t.prefix))return 1}if(t.suffix&&o.suffix&&t.suffix!==o.suffix){if(t.suffix.endsWith(o.suffix))return-1;if(o.suffix.endsWith(t.suffix))return 1}return t.prefix&&!o.prefix?-1:!t.prefix&&o.prefix?1:t.suffix&&!o.suffix?-1:!t.suffix&&o.suffix?1:t.caseSensitive&&!o.caseSensitive?-1:!t.caseSensitive&&o.caseSensitive?1:0}i(Ge,"sortDynamic");function Rt(t){if(t.pathless)for(let o of t.pathless)Rt(o);if(t.static)for(let o of t.static.values())Rt(o);if(t.staticInsensitive)for(let o of t.staticInsensitive.values())Rt(o);if(t.dynamic?.length){t.dynamic.sort(Ge);for(let o of t.dynamic)Rt(o)}if(t.optional?.length){t.optional.sort(Ge);for(let o of t.optional)Rt(o)}if(t.wildcard?.length){t.wildcard.sort(Ge);for(let o of t.wildcard)Rt(o)}}i(Rt,"sortTreeNodes");function It(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0}}i(It,"createStaticNode");function Je(t,o,e,s,r){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:o,parent:null,parse:null,priority:0,caseSensitive:e,prefix:s,suffix:r}}i(Je,"createDynamicNode");function ir(t,o){let e=It("/"),s=new Uint16Array(6);for(let r of t)de(!1,s,r,1,e,0);Rt(e),o.masksTree=e,o.flatCache=yt(1e3)}i(ir,"processRouteMasks");function ar(t,o){t||="/";let e=o.flatCache.get(t);if(e)return e;let s=Xe(t,o.masksTree);return o.flatCache.set(t,s),s}i(ar,"findFlatMatch");function cr(t,o,e,s,r){t||="/",s||="/";let n=o?`case\0${t}`:t,a=r.singleCache.get(n);return a||(a=It("/"),de(o,new Uint16Array(6),{from:t},1,a,0),r.singleCache.set(n,a)),Xe(s,a,e)}i(cr,"findSingleMatch");function ur(t,o,e=!1){let s=e?t:`nofuzz\0${t}`,r=o.matchCache.get(s);if(r!==void 0)return r;t||="/";let n;try{n=Xe(t,o.segmentTree,e)}catch(a){if(a instanceof URIError)n=null;else throw a}return n&&(n.branch=Ze(n.route)),o.matchCache.set(s,n),n}i(ur,"findRouteMatch");function Cs(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}i(Cs,"trimPathRight");function lr(t,o=!1,e){let s=It(t.fullPath),r=new Uint16Array(6),n={},a={},c=0;return de(o,r,t,1,s,0,u=>{if(e?.(u,c),u.id in n&&$(),n[u.id]=u,c!==0&&u.path){let d=Cs(u.fullPath);(!a[d]||u.fullPath.endsWith("/"))&&(a[d]=u)}c++}),Rt(s),{processedTree:{segmentTree:s,singleCache:yt(1e3),matchCache:yt(1e3),flatCache:null,masksTree:null},routesById:n,routesByPath:a}}i(lr,"processRouteTree");function Xe(t,o,e=!1){let s=t.split("/"),r=Ls(t,s,o,e);if(!r)return null;let[n]=fr(t,s,r);return{route:r.node.route,rawParams:n}}i(Xe,"findMatch");function fr(t,o,e){let s=bs(e.node),r=null,n=Object.create(null),a=e.extract?.part??0,c=e.extract?.node??0,u=e.extract?.path??0,d=e.extract?.segment??0;for(;c<s.length;a++,c++,u++,d++){let f=s[c];if(f.kind===St)break;if(f.kind===nr){d--,a--,u--;continue}let l=o[a],p=u;if(l&&(u+=l.length),f.kind===1){r??=e.node.fullPath.split("/");let h=r[d],m=f.prefix?.length??0;if(h.charCodeAt(m)===123){let y=f.suffix?.length??0,g=h.substring(m+2,h.length-y-1),v=l.substring(m,l.length-y);n[g]=decodeURIComponent(v)}else{let y=h.substring(1);n[y]=decodeURIComponent(l)}}else if(f.kind===3){if(e.skipped&1<<c){a--,u=p-1;continue}r??=e.node.fullPath.split("/");let h=r[d],m=f.prefix?.length??0,y=f.suffix?.length??0,g=h.substring(m+3,h.length-y-1),v=f.suffix||f.prefix?l.substring(m,l.length-y):l;v&&(n[g]=decodeURIComponent(v))}else if(f.kind===2){let h=f,m=t.substring(p+(h.prefix?.length??0),t.length-(h.suffix?.length??0)),y=decodeURIComponent(m);n["*"]=y,n._splat=y;break}}return e.rawParams&&Object.assign(n,e.rawParams),[n,{part:a,node:c,path:u,segment:d}]}i(fr,"extractParams");function Ze(t){let o=[t];for(;t.parentRoute;)t=t.parentRoute,o.push(t);return o.reverse(),o}i(Ze,"buildRouteBranch");function bs(t){let o=Array(t.depth+1);do o[t.depth]=t,t=t.parent;while(t);return o}i(bs,"buildBranch");function Ls(t,o,e,s){if(t==="/"&&e.index)return{node:e.index,skipped:0};let r=!pt(o),n=r&&t!=="/",a=o.length-(r?1:0),c=[{node:e,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],u=null,d=null;for(;c.length;){let f=c.pop(),{node:l,index:p,skipped:h,depth:m,statics:y,dynamics:g,optionals:v}=f,{extract:R,rawParams:S}=f;if(l.kind===2&&l.route&&!fe(d,f))continue;if(l.parse){if(!sr(t,o,f))continue;S=f.rawParams,R=f.extract}s&&l.route&&l.kind!==St&&fe(u,f)&&(u=f);let P=p===a;if(P&&(l.route&&(!n||l.kind===St||l.kind===2)&&fe(d,f)&&(d=f),!l.optional&&!l.wildcard&&!l.index&&!l.pathless))continue;let _=P?void 0:o[p],b;if(P&&l.index){let x={node:l.index,index:p,skipped:h,depth:m+1,statics:y,dynamics:g,optionals:v,extract:R,rawParams:S},w=!0;if(l.index.parse&&(sr(t,o,x)||(w=!1)),w){if(!g&&!v&&!h&&Ms(y,a))return x;fe(d,x)&&(d=x)}}if(l.wildcard)for(let x=l.wildcard.length-1;x>=0;x--){let w=l.wildcard[x],{prefix:C,suffix:M}=w;if(!(C&&(P||!(w.caseSensitive?_:b??=_.toLowerCase()).startsWith(C)))){if(M){if(P)continue;let L=o.slice(p).join("/").slice(-M.length);if((w.caseSensitive?L:L.toLowerCase())!==M)continue}c.push({node:w,index:a,skipped:h,depth:m+1,statics:y,dynamics:g,optionals:v,extract:R,rawParams:S})}}if(l.optional){let x=h|1<<m,w=m+1;for(let C=l.optional.length-1;C>=0;C--){let M=l.optional[C];c.push({node:M,index:p,skipped:x,depth:w,statics:y,dynamics:g,optionals:v,extract:R,rawParams:S})}if(!P)for(let C=l.optional.length-1;C>=0;C--){let M=l.optional[C],{prefix:L,suffix:I}=M;if(L||I){let rt=M.caseSensitive?_:b??=_.toLowerCase();if(L&&!rt.startsWith(L)||I&&!rt.endsWith(I))continue}c.push({node:M,index:p+1,skipped:h,depth:w,statics:y,dynamics:g,optionals:v+le(a,p),extract:R,rawParams:S})}}if(!P&&l.dynamic&&_)for(let x=l.dynamic.length-1;x>=0;x--){let w=l.dynamic[x],{prefix:C,suffix:M}=w;if(C||M){let L=w.caseSensitive?_:b??=_.toLowerCase();if(C&&!L.startsWith(C)||M&&!L.endsWith(M))continue}c.push({node:w,index:p+1,skipped:h,depth:m+1,statics:y,dynamics:g+le(a,p),optionals:v,extract:R,rawParams:S})}if(!P&&l.staticInsensitive){let x=l.staticInsensitive.get(b??=_.toLowerCase());x&&c.push({node:x,index:p+1,skipped:h,depth:m+1,statics:y+le(a,p),dynamics:g,optionals:v,extract:R,rawParams:S})}if(!P&&l.static){let x=l.static.get(_);x&&c.push({node:x,index:p+1,skipped:h,depth:m+1,statics:y+le(a,p),dynamics:g,optionals:v,extract:R,rawParams:S})}if(l.pathless){let x=m+1;for(let w=l.pathless.length-1;w>=0;w--){let C=l.pathless[w];c.push({node:C,index:p,skipped:h,depth:x,statics:y,dynamics:g,optionals:v,extract:R,rawParams:S})}}}if(d)return d;if(s&&u){let f=u.index;for(let p=0;p<u.index;p++)f+=o[p].length;let l=f===t.length?"/":t.slice(f);return u.rawParams??=Object.create(null),u.rawParams["**"]=decodeURIComponent(l),u}return null}i(Ls,"getNodeMatch");function le(t,o){return 2**(t-o-1)}i(le,"segmentScore");function Ms(t,o){return t===2**(o-1)-1}i(Ms,"isPerfectStaticMatch");function sr(t,o,e){let s,r;try{[s,r]=fr(t,o,e)}catch{return null}if(e.rawParams=s,e.extract=r,!e.node.parse)return!0;try{if(e.node.parse(s)===!1)return null}catch{}return!0}i(sr,"validateParseParams");function fe(t,o){return t?o.statics>t.statics||o.statics===t.statics&&(o.dynamics>t.dynamics||o.dynamics===t.dynamics&&(o.optionals>t.optionals||o.optionals===t.optionals&&((o.node.kind===St)>(t.node.kind===St)||o.node.kind===St==(t.node.kind===St)&&o.depth>t.depth))):!0}i(fe,"isFrameMoreSpecific");function Et(t){return Zt(t.filter(o=>o!==void 0).join("/"))}i(Et,"joinPaths");function Zt(t){return t.replace(/\/{2,}/g,"/")}i(Zt,"cleanPath");function he(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}i(he,"trimPathLeft");function Z(t){let o=t.length;return o>1&&t[o-1]==="/"?t.replace(/\/{1,}$/,""):t}i(Z,"trimPathRight");function Qt(t){return Z(he(t))}i(Qt,"trimPath");function Pt(t,o){return t?.endsWith("/")&&t!=="/"&&t!==`${o}/`?t.slice(0,-1):t}i(Pt,"removeTrailingSlash");function pe(t,o,e){return Pt(t,e)===Pt(o,e)}i(pe,"exactPathTest");function Qe({base:t,to:o,trailingSlash:e="never",cache:s}){let r=o.startsWith("/"),n=!r&&o===".",a;if(s){a=r?o:n?t:t+"\0"+o;let d=s.get(a);if(d)return d}let c;if(n)c=t.split("/");else if(r)c=o.split("/");else{for(c=t.split("/");c.length>1&&pt(c)==="";)c.pop();let d=o.split("/");for(let f=0,l=d.length;f<l;f++){let p=d[f];p===""?f?f===l-1&&c.push(p):c=[p]:p===".."?c.pop():p==="."||c.push(p)}}c.length>1&&(pt(c)===""?e==="never"&&c.pop():e==="always"&&c.push(""));let u=Zt(c.join("/"))||"/";return a&&s&&s.set(a,u),u}i(Qe,"resolvePath");function hr(t){let o=new Map(t.map(r=>[encodeURIComponent(r),r])),e=Array.from(o.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(e,"g");return r=>r.replace(s,n=>o.get(n)??n)}i(hr,"compileDecodeCharMap");function Xt(t,o,e){let s=o[t];return typeof s!="string"?s:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(r=>dr(r,e)).join("/"):dr(s,e)}i(Xt,"encodeParam");function me({path:t,params:o,decoder:e,...s}){let r=!1,n=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:n,isMissingParams:r};if(!t.includes("$"))return{interpolatedPath:t,usedParams:n,isMissingParams:r};if(!1){let f=t.length,l=0,p="";for(;l<f;){for(;l<f&&t.charCodeAt(l)===47;)l++;if(l>=f)break;let h=l,m=t.indexOf("/",l);m===-1&&(m=f),l=m;let y=t.substring(h,m);if(y)if(y.charCodeAt(0)===36)if(y.length===1){let g=o._splat;if(n._splat=g,n["*"]=g,!g){r=!0;continue}let v=Xt("_splat",o,e);p+="/"+v}else{let g=y.substring(1);!r&&!(g in o)&&(r=!0),n[g]=o[g];let v=Xt(g,o,e)??"undefined";p+="/"+v}else p+="/"+y}return t.endsWith("/")&&(p+="/"),{usedParams:n,interpolatedPath:p||"/",isMissingParams:r}}let a=t.length,c=0,u,d="";for(;c<a;){let f=c;u=Ye(t,f,u);let l=u[5];if(c=l+1,f===l)continue;let p=u[0];if(p===0){d+="/"+t.substring(f,l);continue}if(p===2){let h=o._splat;n._splat=h,n["*"]=h;let m=t.substring(f,u[1]),y=t.substring(u[4],l);if(!h){r=!0,(m||y)&&(d+="/"+m+y);continue}let g=Xt("_splat",o,e);d+="/"+m+g+y;continue}if(p===1){let h=t.substring(u[2],u[3]);!r&&!(h in o)&&(r=!0),n[h]=o[h];let m=t.substring(f,u[1]),y=t.substring(u[4],l),g=Xt(h,o,e)??"undefined";d+="/"+m+g+y;continue}if(p===3){let h=t.substring(u[2],u[3]),m=o[h];if(m==null)continue;n[h]=m;let y=t.substring(f,u[1]),g=t.substring(u[4],l),v=Xt(h,o,e)??"";d+="/"+y+v+g;continue}}return t.endsWith("/")&&(d+="/"),{usedParams:n,interpolatedPath:d||"/",isMissingParams:r}}i(me,"interpolatePath");function dr(t,o){let e=encodeURIComponent(t);return o?.(e)??e}i(dr,"encodePathParam");function A(t){return t?.isNotFound===!0}i(A,"isNotFound");function Is(){try{return sessionStorage}catch{return}}i(Is,"getSafeSessionStorage");var Es="tsr-scroll-restoration-v1_3",gr=Is();function ks(){try{return JSON.parse(gr?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}i(ks,"createScrollRestorationCache");function Ts(){try{gr?.setItem(Es,JSON.stringify(Bt))}catch{}}i(Ts,"persistScrollRestorationCache");var Bt=ks(),pr="data-scroll-restoration-id",Os=i(t=>t.state.__TSR_key||t.href,"defaultGetScrollRestorationKey");function Ns(t){let o=t.getAttribute(pr);if(o)return`[${pr}="${o}"]`;let e="",s=t,r;for(;r=s.parentNode;){let n=1,a=s;for(;a=a.previousElementSibling;)n++;let c=`${s.localName}:nth-child(${n})`;e=e?`${c} > ${e}`:c,s=r}return e}i(Ns,"getScrollRestorationSelector");var ge=!1,ve="window";function to(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}i(to,"getElement");function mr(t){let o=new Set;for(let e of t){if(e===ve)continue;let s=to(e);s&&o.add(s)}return o}i(mr,"getScrollToTopElements");function vr(t,o){let e=o??t.options.scrollRestoration,s=t._scroll;if(e&&(s.restoring=!0),!1)return;let r=t.options.getScrollRestorationKey||Os,n=new Set,a=i(c=>{let u=Bt[c]||={};for(let d of n)d===document?u[ve]={scrollX,scrollY}:d.isConnected&&(u[Ns(d)]={scrollX:d.scrollLeft,scrollY:d.scrollTop})},"snapshotCurrentScrollTargets");e&&!s.restoration&&(s.restoration=!0,ge=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{ge||n.add(c.target)},!0),t.subscribe("onBeforeLoad",c=>{c.fromLocation&&a(r(c.fromLocation)),n.clear()}),addEventListener("pagehide",()=>{a(r(t.stores.resolvedLocation.get()??t.stores.location.get())),Ts()})),!s.reset&&(s.reset=!0,t.subscribe("onRendered",c=>{let u=t.options.scrollRestorationBehavior,d=t.options.scrollToTopSelectors,f=s.next,l=s.hash,p;if(n.clear(),s.next=!0,s.hash=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;let h=r(c.toLocation),m=c.fromLocation&&r(c.fromLocation);if(s.restoring&&m&&m!==h){let y=Bt[m];if(y){let g=Bt[h];for(let v in y){if(v===ve){if(f)continue}else{let R=to(v);if(!R||f&&d&&(p??=mr(d),p.has(R)))continue}g||(g=Bt[h]={}),g[v]??=y[v]}}}ge=!0;try{let y=c.toLocation.hash,g=c.toLocation.state.__hashScrollIntoViewOptions??!0,v=!1;if(f){!y&&d&&(p??=mr(d));let R=y&&g&&l,S=s.restoring?Bt[h]:void 0;if(S)for(let P in S){let{scrollX:_,scrollY:b}=S[P];if(P===ve){if(R)continue;scrollTo({top:b,left:_,behavior:u}),v=!0}else{let x=to(P);x&&(x.scrollLeft=_,x.scrollTop=b,p?.delete(x))}}if(!y){let P={top:0,left:0,behavior:u};if(v||scrollTo(P),p)for(let _ of p)_.scrollTo(P)}}!v&&y&&g&&document.getElementById(y)?.scrollIntoView(g)}finally{ge=!1}}))}i(vr,"setupScrollRestoration");function yr(t,o=String){let e=new URLSearchParams;for(let s in t){let r=t[s];r!==void 0&&e.set(s,o(r))}return e.toString()}i(yr,"encode");function eo(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}i(eo,"toValue");function Rr(t){let o=new URLSearchParams(t),e=Object.create(null);for(let[s,r]of o.entries()){let n=e[s];n==null?e[s]=eo(r):Array.isArray(n)?n.push(eo(r)):e[s]=[n,eo(r)]}return e}i(Rr,"decode");var Sr=Ds(JSON.parse),Pr=Fs(JSON.stringify,JSON.parse);function Ds(t){return o=>{o[0]==="?"&&(o=o.substring(1));let e=Rr(o);for(let s in e){let r=e[s];if(typeof r=="string")try{e[s]=t(r)}catch{}}return e}}i(Ds,"parseSearchWith");function Fs(t,o){let e=typeof o=="function";function s(r){if(typeof r=="object"&&r!==null)try{return t(r)}catch{}else if(e&&typeof r=="string")try{return o(r),t(r)}catch{}return r}return i(s,"stringifyValue"),r=>{let n=yr(r,s);return n?`?${n}`:""}}i(Fs,"stringifySearchWith");var X="__root__";function $t(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}let o=new Headers(t.headers);t.href&&o.get("Location")===null&&o.set("Location",t.href);let e=new Response(null,{status:t.statusCode,headers:o});if(e.options=t,t.throw)throw e;return e}i($t,"redirect");function H(t){return t instanceof Response&&!!t.options}i(H,"isRedirect");function xr(t){return{input:i(({url:o})=>{for(let e of t)o=ye(e,o);return o},"input"),output:i(({url:o})=>{for(let e=t.length-1;e>=0;e--)o=oo(t[e],o);return o},"output")}}i(xr,"composeRewrites");function wr(t){let o=Qt(t.basepath),e=`/${o}`,s=t.caseSensitive?e:e.toLowerCase(),r=`${s}/`;return{input:i(({url:n})=>{let a=t.caseSensitive?n.pathname:n.pathname.toLowerCase();return a===s?n.pathname="/":a.startsWith(r)&&(n.pathname=n.pathname.slice(e.length)),n},"input"),output:i(({url:n})=>(n.pathname=Et(["/",o,n.pathname]),n),"output")}}i(wr,"rewriteBasepath");function ye(t,o){let e=t?.input?.({url:o});if(e){if(typeof e=="string")return new URL(e);if(e instanceof URL)return e}return o}i(ye,"executeRewriteInput");function oo(t,o){let e=t?.output?.({url:o});if(e){if(typeof e=="string")return new URL(e);if(e instanceof URL)return e}return o}i(oo,"executeRewriteOutput");function no(t){let o=t;return{get(){return o},set(e){o=Y(e,o)}}}i(no,"createNonReactiveMutableStore");function io(t){return{get(){return t()}}}i(io,"createNonReactiveReadonlyStore");function _r(t,o){let{createMutableStore:e,createReadonlyStore:s,batch:r,init:n}=o,a=new Map,c=new Map,u=new Map,d=e(t.status),f=e(t.loadedAt),l=e(t.isLoading),p=e(t.isTransitioning),h=e(t.location),m=e(t.resolvedLocation),y=e(t.statusCode),g=e(t.redirect),v=e([]),R=e([]),S=e([]),P=s(()=>ro(a,v.get())),_=s(()=>ro(c,R.get())),b=s(()=>ro(u,S.get())),x=s(()=>v.get()[0]),w=s(()=>v.get().some(tt=>a.get(tt)?.get().status==="pending")),C=s(()=>({locationHref:h.get().href,resolvedLocationHref:m.get()?.href,status:d.get()})),M=s(()=>({status:d.get(),loadedAt:f.get(),isLoading:l.get(),isTransitioning:p.get(),matches:P.get(),location:h.get(),resolvedLocation:m.get(),statusCode:y.get(),redirect:g.get()})),L=yt(64);function I(tt){let zt=L.get(tt);return zt||(zt=s(()=>{let Fo=v.get();for(let Ao of Fo){let ie=a.get(Ao);if(ie&&ie.routeId===tt)return ie.get()}}),L.set(tt,zt)),zt}i(I,"getRouteMatchStore");let rt={status:d,loadedAt:f,isLoading:l,isTransitioning:p,location:h,resolvedLocation:m,statusCode:y,redirect:g,matchesId:v,pendingIds:R,cachedIds:S,matches:P,pendingMatches:_,cachedMatches:b,firstId:x,hasPending:w,matchRouteDeps:C,matchStores:a,pendingMatchStores:c,cachedMatchStores:u,__store:M,getRouteMatchStore:I,setMatches:K,setPending:dt,setCached:ne};K(t.matches),n?.(rt);function K(tt){so(tt,a,v,e,r)}i(K,"setMatches");function dt(tt){so(tt,c,R,e,r)}i(dt,"setPending");function ne(tt){so(tt,u,S,e,r)}return i(ne,"setCached"),rt}i(_r,"createRouterStores");function ro(t,o){let e=[];for(let s of o){let r=t.get(s);r&&e.push(r.get())}return e}i(ro,"readPoolMatches");function so(t,o,e,s,r){let n=t.map(c=>c.id),a=new Set(n);r(()=>{for(let c of o.keys())a.has(c)||o.delete(c);for(let c of t){let u=o.get(c.id);if(!u){let d=s(c);d.routeId=c.routeId,o.set(c.id,d);continue}u.routeId=c.routeId,u.get()!==c&&u.set(c)}rr(e.get(),n)||e.set(n)})}i(so,"reconcileMatchPool");var ao=i(t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},"triggerOnReady"),As=i(t=>t.stores.matchesId.get().some(o=>t.stores.matchStores.get(o)?.get()._forcePending),"hasForcePendingActiveMatch"),Pe=i((t,o)=>!!(t.preload&&!t.router.stores.matchStores.has(o)),"resolvePreload"),kt=i((t,o,e=!0)=>{let s={...t.router.options.context??{}},r=e?o:o-1;for(let n=0;n<=r;n++){let a=t.matches[n];if(!a)continue;let c=t.router.getMatch(a.id);c&&Object.assign(s,c.__routeContext,c.__beforeLoadContext)}return s},"buildMatchContext"),Cr=i((t,o)=>{if(!t.matches.length)return;let e=o.routeId,s=t.matches.findIndex(a=>a.routeId===t.router.routeTree.id),r=s>=0?s:0,n=e?t.matches.findIndex(a=>a.routeId===e):t.firstBadMatchIndex??t.matches.length-1;n<0&&(n=r);for(let a=n;a>=0;a--){let c=t.matches[a];if(t.router.looseRoutesById[c.routeId].options.notFoundComponent)return a}return e?n:r},"getNotFoundBoundaryIndex"),xt=i((t,o,e)=>{if(!(!H(e)&&!A(e)))throw H(e)&&e.redirectHandled&&!e.options.reloadDocument||(o&&(o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.loaderPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,o._nonReactive.loaderPromise=void 0,o._nonReactive.error=e,t.updateMatch(o.id,s=>({...s,status:H(e)?"redirected":A(e)?"notFound":s.status==="pending"?"success":s.status,context:kt(t,o.index),isFetching:!1,error:e})),A(e)&&!e.routeId&&(e.routeId=o.routeId),o._nonReactive.loadPromise?.resolve()),H(e)&&(t.rendered=!0,e.options._fromLocation=t.location,e.redirectHandled=!0,e=t.router.resolveRedirect(e))),e},"handleRedirectAndNotFound"),Ir=i((t,o)=>{let e=t.router.getMatch(o);return!!(!e||!!1&&e._nonReactive.dehydrated||!1)},"shouldSkipLoader"),br=i((t,o,e)=>{let s=kt(t,e);t.updateMatch(o,r=>({...r,context:s}))},"syncMatchContext"),te=i((t,o,e)=>{let{id:s,routeId:r}=t.matches[o],n=t.router.looseRoutesById[r];if(e instanceof Promise)throw e;t.firstBadMatchIndex??=o,xt(t,t.router.getMatch(s),e);try{n.options.onError?.(e)}catch(a){e=a,xt(t,t.router.getMatch(s),e)}t.updateMatch(s,a=>(a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loadPromise?.resolve(),{...a,error:e,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!t.preload&&!H(e)&&!A(e)&&(t.serialError??=e)},"handleSerialError"),Bs=i((t,o,e,s)=>{let r=t.router.getMatch(o),n=t.matches[e-1]?.id,a=n?t.router.getMatch(n):void 0;if(t.router.isShell()){r.ssr=s.id===X;return}if(a?.ssr===!1){r.ssr=!1;return}let c=i(h=>h===!0&&a?.ssr==="data-only"?"data-only":h,"parentOverride"),u=t.router.options.defaultSsr??!0;if(s.options.ssr===void 0){r.ssr=c(u);return}if(typeof s.options.ssr!="function"){r.ssr=c(s.options.ssr);return}let{search:d,params:f}=r,l={search:Re(d,r.searchError),params:Re(f,r.paramsError),location:t.location,matches:t.matches.map(h=>({index:h.index,pathname:h.pathname,fullPath:h.fullPath,staticData:h.staticData,id:h.id,routeId:h.routeId,search:Re(h.search,h.searchError),params:Re(h.params,h.paramsError),ssr:h.ssr}))},p=s.options.ssr(l);if(vt(p))return p.then(h=>{r.ssr=c(h??u)});r.ssr=c(p??u)},"isBeforeLoadSsr"),Er=i((t,o,e,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;let r=e.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!!1&&!Pe(t,o)&&(e.options.loader||e.options.beforeLoad||uo(e))&&typeof r=="number"&&r!==1/0&&(e.options.pendingComponent??t.router.options?.defaultPendingComponent)){let n=setTimeout(()=>{ao(t)},r);s._nonReactive.pendingTimeout=n}},"setupPendingTimeout"),$s=i((t,o,e)=>{let s=t.router.getMatch(o);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;Er(t,o,e,s);let r=i(()=>{let n=t.router.getMatch(o);n.preload&&(n.status==="redirected"||n.status==="notFound")&&xt(t,n,n.error)},"then");return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(r):r()},"preBeforeLoadSetup"),Us=i((t,o,e,s)=>{let r=t.router.getMatch(o),n=r._nonReactive.loadPromise;r._nonReactive.loadPromise=ct(()=>{n?.resolve(),n=void 0});let{paramsError:a,searchError:c}=r;a&&te(t,e,a),c&&te(t,e,c),Er(t,o,s,r);let u=new AbortController,d=!1,f=i(()=>{d||(d=!0,t.updateMatch(o,P=>({...P,isFetching:"beforeLoad",fetchCount:P.fetchCount+1,abortController:u})))},"pending"),l=i(()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,t.updateMatch(o,P=>({...P,isFetching:!1}))},"resolve");if(!s.options.beforeLoad){t.router.batch(()=>{f(),l()});return}r._nonReactive.beforeLoadPromise=ct();let p={...kt(t,e,!1),...r.__routeContext},{search:h,params:m,cause:y}=r,g=Pe(t,o),v={search:h,abortController:u,params:m,preload:g,context:p,location:t.location,navigate:i(P=>t.router.navigate({...P,_fromLocation:t.location}),"navigate"),buildLocation:t.router.buildLocation,cause:g?"preload":y,matches:t.matches,routeId:s.id,...t.router.options.additionalContext},R=i(P=>{if(P===void 0){t.router.batch(()=>{f(),l()});return}(H(P)||A(P))&&(f(),te(t,e,P)),t.router.batch(()=>{f(),t.updateMatch(o,_=>({..._,__beforeLoadContext:P})),l()})},"updateContext"),S;try{if(S=s.options.beforeLoad(v),vt(S))return f(),S.catch(P=>{te(t,e,P)}).then(R)}catch(P){f(),te(t,e,P)}R(S)},"executeBeforeLoad"),Hs=i((t,o)=>{let{id:e,routeId:s}=t.matches[o],r=t.router.looseRoutesById[s],n=i(()=>{if(!1){let u=Bs(t,e,o,r);if(vt(u))return u.then(c)}return c()},"serverSsr"),a=i(()=>Us(t,e,o,r),"execute"),c=i(()=>{if(Ir(t,e))return;let u=$s(t,e,r);return vt(u)?u.then(a):a()},"queueExecution");return n()},"handleBeforeLoad"),Vs=i((t,o,e)=>{let s=t.router.getMatch(o);if(!s||!e.options.head&&!e.options.scripts&&!e.options.headers)return;let r={ssr:t.router.options.ssr,matches:t.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([e.options.head?.(r),e.options.scripts?.(r),e.options.headers?.(r)]).then(([n,a,c])=>({meta:n?.meta,links:n?.links,headScripts:n?.scripts,headers:c,scripts:a,styles:n?.styles}))},"executeHead"),kr=i((t,o,e,s,r)=>{let n=o[s-1],{params:a,loaderDeps:c,abortController:u,cause:d}=t.router.getMatch(e),f=kt(t,s),l=Pe(t,e);return{params:a,deps:c,preload:!!l,parentMatchPromise:n,abortController:u,context:f,location:t.location,navigate:i(p=>t.router.navigate({...p,_fromLocation:t.location}),"navigate"),cause:l?"preload":d,route:r,...t.router.options.additionalContext}},"getLoaderContext"),Lr=i(async(t,o,e,s,r)=>{try{let n=t.router.getMatch(e);try{(!!1||n.ssr===!0)&&Ut(r);let a=r.options.loader,c=typeof a=="function"?a:a?.handler,u=c?.(kr(t,o,e,s,r)),d=!!c&&vt(u);if((d||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||n._nonReactive.minPendingPromise)&&t.updateMatch(e,l=>({...l,isFetching:"loader"})),c){let l=d?await u:u;xt(t,t.router.getMatch(e),l),l!==void 0&&t.updateMatch(e,p=>({...p,loaderData:l}))}r._lazyPromise&&await r._lazyPromise;let f=n._nonReactive.minPendingPromise;f&&await f,r._componentsPromise&&await r._componentsPromise,t.updateMatch(e,l=>({...l,error:void 0,context:kt(t,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(a){let c=a;if(c?.name==="AbortError"){if(n.abortController.signal.aborted){n._nonReactive.loaderPromise?.resolve(),n._nonReactive.loaderPromise=void 0;return}t.updateMatch(e,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:kt(t,s)}));return}let u=n._nonReactive.minPendingPromise;u&&await u,A(a)&&await r.options.notFoundComponent?.preload?.(),xt(t,t.router.getMatch(e),a);try{r.options.onError?.(a)}catch(d){c=d,xt(t,t.router.getMatch(e),d)}!H(c)&&!A(c)&&await Ut(r,["errorComponent"]),t.updateMatch(e,d=>({...d,error:c,context:kt(t,s),status:"error",isFetching:!1}))}}catch(n){let a=t.router.getMatch(e);a&&(a._nonReactive.loaderPromise=void 0),xt(t,a,n)}},"runLoader"),Ws=i(async(t,o,e)=>{async function s(h,m,y,g,v){let R=Date.now()-m.updatedAt,S=h?v.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:v.options.staleTime??t.router.options.defaultStaleTime??0,P=v.options.shouldReload,_=typeof P=="function"?P(kr(t,o,r,e,v)):P,{status:b,invalid:x}=g,w=R>=S&&(!!t.forceStaleReload||g.cause==="enter"||y!==void 0&&y!==g.id);a=b==="success"&&(x||(_??w)),h&&v.options.preload===!1||(a&&!t.sync&&f?(c=!0,(async()=>{try{await Lr(t,o,r,e,v);let C=t.router.getMatch(r);C._nonReactive.loaderPromise?.resolve(),C._nonReactive.loadPromise?.resolve(),C._nonReactive.loaderPromise=void 0,C._nonReactive.loadPromise=void 0}catch(C){H(C)&&await t.router.navigate(C.options)}})()):b!=="success"||a?await Lr(t,o,r,e,v):br(t,r,e))}i(s,"handleLoader");let{id:r,routeId:n}=t.matches[e],a=!1,c=!1,u=t.router.looseRoutesById[n],d=u.options.loader,f=((typeof d=="function"?void 0:d?.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(Ir(t,r)){if(!t.router.getMatch(r))return t.matches[e];if(br(t,r,e),!1)return t.router.getMatch(r)}else{let h=t.router.getMatch(r),m=t.router.stores.matchesId.get()[e],y=(m&&t.router.stores.matchStores.get(m)||null)?.routeId===n?m:t.router.stores.matches.get().find(v=>v.routeId===n)?.id,g=Pe(t,r);if(h._nonReactive.loaderPromise){if(h.status==="success"&&!t.sync&&!h.preload&&f)return h;await h._nonReactive.loaderPromise;let v=t.router.getMatch(r),R=v._nonReactive.error||v.error;R&&xt(t,v,R),v.status==="pending"&&await s(g,h,y,v,u)}else{let v=g&&!t.router.stores.matchStores.has(r),R=t.router.getMatch(r);R._nonReactive.loaderPromise=ct(),v!==R.preload&&t.updateMatch(r,S=>({...S,preload:v})),await s(g,h,y,R,u)}}let l=t.router.getMatch(r);c||(l._nonReactive.loaderPromise?.resolve(),l._nonReactive.loadPromise?.resolve(),l._nonReactive.loadPromise=void 0),clearTimeout(l._nonReactive.pendingTimeout),l._nonReactive.pendingTimeout=void 0,c||(l._nonReactive.loaderPromise=void 0),l._nonReactive.dehydrated=void 0;let p=c?l.isFetching:!1;return p!==l.isFetching||l.invalid!==!1?(t.updateMatch(r,h=>({...h,isFetching:p,invalid:!1})),t.router.getMatch(r)):l},"loadRouteMatch");async function co(t){let o=t,e=[];!!1&&As(o.router)&&ao(o);let s;for(let p=0;p<o.matches.length;p++){try{let h=Hs(o,p);vt(h)&&await h}catch(h){if(H(h))throw h;if(A(h))s=h;else if(!o.preload)throw h;break}if(o.serialError||o.firstBadMatchIndex!=null)break}let r=o.firstBadMatchIndex??o.matches.length,n=s&&!o.preload?Cr(o,s):void 0,a=s&&o.preload?0:n!==void 0?Math.min(n+1,r):r,c,u;for(let p=0;p<a;p++)e.push(Ws(o,e,p));try{await Promise.all(e)}catch{let p=await Promise.allSettled(e);for(let h of p){if(h.status!=="rejected")continue;let m=h.reason;if(H(m))throw m;A(m)?c??=m:u??=m}if(u!==void 0)throw u}let d=c??(s&&!o.preload?s:void 0),f=o.firstBadMatchIndex!==void 0?o.firstBadMatchIndex:o.matches.length-1;if(!d&&s&&o.preload)return o.matches;if(d){let p=Cr(o,d);p===void 0&&$();let h=o.matches[p],m=o.router.looseRoutesById[h.routeId],y=o.router.options?.defaultNotFoundComponent;!m.options.notFoundComponent&&y&&(m.options.notFoundComponent=y),d.routeId=h.routeId;let g=h.routeId===o.router.routeTree.id;o.updateMatch(h.id,v=>({...v,...g?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),f=p,await Ut(m,["notFoundComponent"])}else if(!o.preload){let p=o.matches[0];p.globalNotFound||o.router.getMatch(p.id)?.globalNotFound&&o.updateMatch(p.id,h=>({...h,globalNotFound:!1,error:void 0}))}if(o.serialError&&o.firstBadMatchIndex!==void 0){let p=o.router.looseRoutesById[o.matches[o.firstBadMatchIndex].routeId];await Ut(p,["errorComponent"])}for(let p=0;p<=f;p++){let{id:h,routeId:m}=o.matches[p],y=o.router.looseRoutesById[m];try{let g=Vs(o,h,y);if(g){let v=await g;o.updateMatch(h,R=>({...R,...v}))}}catch(g){console.error(`Error executing head for route ${m}:`,g)}}let l=ao(o);if(vt(l)&&await l,d)throw d;if(o.serialError&&!o.preload&&!o.onReady)throw o.serialError;return o.matches}i(co,"loadMatches");function Mr(t,o){let e=o.map(s=>t.options[s]?.preload?.()).filter(Boolean);if(e.length!==0)return Promise.all(e)}i(Mr,"preloadRouteComponents");function Ut(t,o=Se){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(s=>{let{id:r,...n}=s.options;Object.assign(t.options,n),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);let e=i(()=>t._componentsLoaded?void 0:o===Se?(()=>{if(t._componentsPromise===void 0){let s=Mr(t,Se);s?t._componentsPromise=s.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():Mr(t,o),"runAfterLazy");return t._lazyPromise?t._lazyPromise.then(e):e()}i(Ut,"loadRouteChunk");function Re(t,o){return o?{status:"error",error:o}:{status:"success",value:t}}i(Re,"makeMaybe");function uo(t){for(let o of Se)if(t.options[o]?.preload)return!0;return!1}i(uo,"routeNeedsPreload");var Se=["component","errorComponent","pendingComponent","notFoundComponent"];var wt="__TSR_index",Tr="popstate",Or="beforeunload";function fo(t){let o=t.getLocation(),e=new Set,s=i(a=>{o=t.getLocation(),e.forEach(c=>c({location:o,action:a}))},"notify"),r=i(a=>{t.notifyOnIndexChange??!0?s(a):o=t.getLocation()},"handleIndexChange"),n=i(async({task:a,navigateOpts:c,...u})=>{if(c?.ignoreBlocker??!1){a();return}let d=t.getBlockers?.()??[],f=u.type==="PUSH"||u.type==="REPLACE";if(typeof document<"u"&&d.length&&f)for(let l of d){let p=Ht(u.path,u.state);if(await l.blockerFn({currentLocation:o,nextLocation:p,action:u.type})){t.onBlocked?.();return}}a()},"tryNavigation");return{get location(){return o},get length(){return t.getLength()},subscribers:e,subscribe:i(a=>(e.add(a),()=>{e.delete(a)}),"subscribe"),push:i((a,c,u)=>{let d=o.state[wt];c=lo(d+1,c),n({task:i(()=>{t.pushState(a,c),s({type:"PUSH"})},"task"),navigateOpts:u,type:"PUSH",path:a,state:c})},"push"),replace:i((a,c,u)=>{let d=o.state[wt];c=lo(d,c),n({task:i(()=>{t.replaceState(a,c),s({type:"REPLACE"})},"task"),navigateOpts:u,type:"REPLACE",path:a,state:c})},"replace"),go:i((a,c)=>{n({task:i(()=>{t.go(a),r({type:"GO",index:a})},"task"),navigateOpts:c,type:"GO"})},"go"),back:i(a=>{n({task:i(()=>{t.back(a?.ignoreBlocker??!1),r({type:"BACK"})},"task"),navigateOpts:a,type:"BACK"})},"back"),forward:i(a=>{n({task:i(()=>{t.forward(a?.ignoreBlocker??!1),r({type:"FORWARD"})},"task"),navigateOpts:a,type:"FORWARD"})},"forward"),canGoBack:i(()=>o.state[wt]!==0,"canGoBack"),createHref:i(a=>t.createHref(a),"createHref"),block:i(a=>{if(!t.setBlockers)return()=>{};let c=t.getBlockers?.()??[];return t.setBlockers([...c,a]),()=>{let u=t.getBlockers?.()??[];t.setBlockers?.(u.filter(d=>d!==a))}},"block"),flush:i(()=>t.flush?.(),"flush"),destroy:i(()=>t.destroy?.(),"destroy"),notify:s}}i(fo,"createHistory");function lo(t,o){o||(o={});let e=po();return{...o,key:e,__TSR_key:e,[wt]:t}}i(lo,"assignKeyAndIndex");function ho(t){let o=t?.window??(typeof document<"u"?window:void 0),e=o.history.pushState,s=o.history.replaceState,r=[],n=i(()=>r,"_getBlockers"),a=i(w=>r=w,"_setBlockers"),c=t?.createHref??(w=>w),u=t?.parseLocation??(()=>Ht(`${o.location.pathname}${o.location.search}${o.location.hash}`,o.history.state));if(!o.history.state?.__TSR_key&&!o.history.state?.key){let w=po();o.history.replaceState({[wt]:0,key:w,__TSR_key:w},"")}let d=u(),f,l=!1,p=!1,h=!1,m=!1,y=i(()=>d,"getLocation"),g,v,R=i(()=>{g&&(x._ignoreSubscribers=!0,(g.isPush?o.history.pushState:o.history.replaceState)(g.state,"",g.href),x._ignoreSubscribers=!1,g=void 0,v=void 0,f=void 0)},"flush"),S=i((w,C,M)=>{let L=c(C);v||(f=d),d=Ht(C,M),g={href:L,state:M,isPush:g?.isPush||w==="push"},v||(v=Promise.resolve().then(()=>R()))},"queueHistoryAction"),P=i(w=>{d=u(),x.notify({type:w})},"onPushPop"),_=i(async()=>{if(p){p=!1;return}let w=u(),C=w.state[wt]-d.state[wt],M=C===1,L=C===-1,I=!M&&!L||l;l=!1;let rt=I?"GO":L?"BACK":"FORWARD",K=I?{type:"GO",index:C}:{type:L?"BACK":"FORWARD"};if(h)h=!1;else{let dt=n();if(typeof document<"u"&&dt.length){for(let ne of dt)if(await ne.blockerFn({currentLocation:d,nextLocation:w,action:rt})){p=!0,o.history.go(1),x.notify(K);return}}}d=u(),x.notify(K)},"onPushPopEvent"),b=i(w=>{if(m){m=!1;return}let C=!1,M=n();if(typeof document<"u"&&M.length)for(let L of M){let I=L.enableBeforeUnload??!0;if(I===!0){C=!0;break}if(typeof I=="function"&&I()===!0){C=!0;break}}if(C)return w.preventDefault(),w.returnValue=""},"onBeforeUnload"),x=fo({getLocation:y,getLength:i(()=>o.history.length,"getLength"),pushState:i((w,C)=>S("push",w,C),"pushState"),replaceState:i((w,C)=>S("replace",w,C),"replaceState"),back:i(w=>(w&&(h=!0),m=!0,o.history.back()),"back"),forward:i(w=>{w&&(h=!0),m=!0,o.history.forward()},"forward"),go:i(w=>{l=!0,o.history.go(w)},"go"),createHref:i(w=>c(w),"createHref"),flush:R,destroy:i(()=>{o.history.pushState=e,o.history.replaceState=s,o.removeEventListener(Or,b,{capture:!0}),o.removeEventListener(Tr,_)},"destroy"),onBlocked:i(()=>{f&&d!==f&&(d=f)},"onBlocked"),getBlockers:n,setBlockers:a,notifyOnIndexChange:!1});return o.addEventListener(Or,b,{capture:!0}),o.addEventListener(Tr,_),o.history.pushState=function(...w){let C=e.apply(o.history,w);return x._ignoreSubscribers||P("PUSH"),C},o.history.replaceState=function(...w){let C=s.apply(o.history,w);return x._ignoreSubscribers||P("REPLACE"),C},x}i(ho,"createBrowserHistory");function js(t={initialEntries:["/"]}){let o=t.initialEntries,e=t.initialIndex?Math.min(Math.max(t.initialIndex,0),o.length-1):o.length-1,s=o.map((u,d)=>lo(d,void 0)),r=i(()=>Ht(o[e],s[e]),"getLocation"),n=[];return fo({getLocation:r,getLength:i(()=>o.length,"getLength"),pushState:i((u,d)=>{e<o.length-1&&(o.splice(e+1),s.splice(e+1)),s.push(d),o.push(u),e=Math.max(o.length-1,0)},"pushState"),replaceState:i((u,d)=>{s[e]=d,o[e]=u},"replaceState"),back:i(()=>{e=Math.max(e-1,0)},"back"),forward:i(()=>{e=Math.min(e+1,o.length-1)},"forward"),go:i(u=>{e=Math.min(Math.max(e+u,0),o.length-1)},"go"),createHref:i(u=>u,"createHref"),getBlockers:i(()=>n,"_getBlockers"),setBlockers:i(u=>n=u,"_setBlockers")})}i(js,"createMemoryHistory");function zs(t){let o=t.replace(/[\x00-\x1f\x7f]/g,"");return o.startsWith("//")&&(o="/"+o.replace(/^\/+/,"")),o}i(zs,"sanitizePath");function Ht(t,o){let e=zs(t),s=e.indexOf("#"),r=e.indexOf("?"),n=po();return{href:e,pathname:e.substring(0,s>0?r>0?Math.min(s,r):s:r>0?r:e.length),hash:s>-1?e.substring(s):"",search:r>-1?e.slice(r,s===-1?void 0:s):"",state:o||{[wt]:0,key:n,__TSR_key:n}}}i(Ht,"parseHref");function po(){return(Math.random()+1).toString(36).substring(7)}i(po,"createRandomKey");function ht(t,o){let e=o,s=t;return{fromLocation:e,toLocation:s,pathChanged:e?.pathname!==s.pathname,hrefChanged:e?.href!==s.href,hashChanged:e?.hash!==s.hash}}i(ht,"getLocationChangeInfo");var mo=class{static{i(this,"RouterCore")}constructor(t,o){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let s=this.options,r=this.basepath??s?.basepath??"/",n=this.basepath===void 0,a=s?.rewrite;if(this.options={...s,...e},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=hr(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=ho()),this.origin=this.options.origin,this.origin||(!!1&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let f;if(!1){let l=globalThis.__TSR_CACHE__;this.resolvePathCache=l.resolvePathCache,f=l.processRouteTreeResult}else this.resolvePathCache=yt(1e3),f=this.buildRouteTree(),!1;this.setRoutes(f)}if(!this.stores&&this.latestLocation){let f=this.getStoreConfig(this);this.batch=f.batch,this.stores=_r(Fr(this.latestLocation),f),vr(this)}let c=!1,u=this.options.basepath??"/",d=this.options.rewrite;if(n||r!==u||a!==d){this.basepath=u;let f=[],l=Qt(u);l&&l!=="/"&&f.push(wr({basepath:u})),d&&f.push(d),this.rewrite=f.length===0?void 0:f.length===1?f[0]:xr(f),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=lr(this.routeTree,this.options.caseSensitive,(s,r)=>{s.init({originalIndex:r})});return this.options.routeMasks&&ir(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,s)=>{let r={eventType:e,fn:s};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=e=>{this.subscribers.forEach(s=>{s.eventType===e.type&&s.fn(e)})},this.parseLocation=(e,s)=>{let r=i(({pathname:u,search:d,hash:f,href:l,state:p})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(u)){let v=this.options.parseSearch(d),R=this.options.stringifySearch(v);return{href:u+R+f,publicHref:u+R+f,pathname:At(u).path,external:!1,searchStr:R,search:gt(s?.search,v),hash:At(f.slice(1)).path,state:at(s?.state,p)}}let h=new URL(l,this.origin),m=ye(this.rewrite,h),y=this.options.parseSearch(m.search),g=this.options.stringifySearch(y);return m.search=g,{href:m.href.replace(m.origin,""),publicHref:l,pathname:At(m.pathname).path,external:!!this.rewrite&&m.origin!==this.origin,searchStr:g,search:gt(s?.search,y),hash:At(m.hash.slice(1)).path,state:at(s?.state,p)}},"parse"),n=r(e),{__tempLocation:a,__tempKey:c}=n.state;if(a&&(!c||c===this.tempLocationKey)){let u=r(a);return u.state.key=n.state.key,u.state.__TSR_key=n.state.__TSR_key,delete u.state.__tempLocation,{...u,maskedLocation:n}}return n},this.resolvePathWithBase=(e,s)=>Qe({base:e,to:s.includes("//")?Zt(s):s,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,s,r)=>typeof e=="string"?this.matchRoutesInternal({pathname:e,search:s},r):this.matchRoutesInternal(e,s),this.getMatchedRoutes=e=>Ar({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let s=this.getMatch(e);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let s=this.stores.matchStores.get(e)?.get();s&&(s.status==="pending"||s.isFetching==="loader")&&this.cancelMatch(e)})},this.buildLocation=e=>{let s=i((n={})=>{let a=n._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(a);n.from;let u=n.unsafeRelative==="path"?a.pathname:n.from??c.fullPath,d=n.to?`${n.to}`:void 0,f=c.search,l=Object.assign(Object.create(null),c.params),p=d?.charCodeAt(0)===47?"/":this.resolvePathWithBase(u,"."),h=d?this.resolvePathWithBase(p,d):p,m=n.params===!1||n.params===null?Object.create(null):(n.params??!0)===!0?l:Object.assign(l,Y(n.params,l)),y=this.routesByPath[Z(h)],g;if(y)g=this.getRouteBranch(y);else if(h.includes("$"))g=[];else{let L=this.getMatchedRoutes(h);g=L.matchedRoutes,this.options.notFoundRoute&&(!L.foundRoute||L.foundRoute.path!=="/"&&L.routeParams["**"])&&(g=[...g,this.options.notFoundRoute])}if(g.length&&mt(m))for(let L of g){let I=L.options.params?.stringify??L.options.stringifyParams;if(I)try{Object.assign(m,I(m))}catch{}}let v=e.leaveParams?h:At(me({path:h,params:m,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,R=f;if(e._includeValidateSearch&&this.options.search?.strict){let L={};g.forEach(I=>{if(I.options.validateSearch)try{Object.assign(L,xe(I.options.validateSearch,{...L,...R}))}catch{}}),R=L}R=Ks({search:R,dest:n,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),R=gt(f,R);let S=this.options.stringifySearch(R),P=n.hash===!0?a.hash:n.hash?Y(n.hash,a.hash):void 0,_=P?`#${P}`:"",b=n.state===!0?a.state:n.state?Y(n.state,a.state):{};b=at(a.state,b);let x=`${v}${S}${_}`,w,C,M=!1;if(this.rewrite){let L=new URL(x,this.origin),I=oo(this.rewrite,L);w=L.href.replace(L.origin,""),I.origin!==this.origin?(C=I.href,M=!0):C=I.pathname+I.search+I.hash}else w=or(x),C=w;return{publicHref:C,href:w,pathname:v,search:R,searchStr:S,state:b,hash:P??"",external:M,unmaskOnReload:n.unmaskOnReload}},"build"),r=i((n={},a)=>{let c=s(n),u=a?s(a):void 0;if(!u){let d=Object.create(null);if(this.options.routeMasks){let f=ar(c.pathname,this.processedTree);if(f){Object.assign(d,f.rawParams);let{from:l,params:p,...h}=f.route,m=p===!1||p===null?Object.create(null):(p??!0)===!0?d:Object.assign(d,Y(p,d));a={from:e.from,...h,params:m},u=s(a)}}}return u&&(c.maskedLocation=u),c},"buildWithMatches");return e.mask?r(e,{from:e.from,...e.mask}):r(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:s,...r})=>{let n,a=i(()=>{let d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(l=>{r.state[l]=this.latestLocation.state[l]});let f=st(r.state,this.latestLocation.state);return d.forEach(l=>{delete r.state[l]}),f},"isSameState"),c=Z(this.latestLocation.href)===Z(r.href),u=this.commitLocationPromise;if(this.commitLocationPromise=ct(()=>{u?.resolve(),u=void 0}),c&&a())this.load();else{let{maskedLocation:d,hashScrollIntoView:f,...l}=r;d&&(l={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...l,search:l.searchStr,state:{...l.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(l.unmaskOnReload??this.options.unmaskOnReload??!1)&&(l.state.__tempKey=this.tempLocationKey)),l.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,n=r.replace?"REPLACE":"PUSH",this.history[n==="REPLACE"?"replace":"push"](l.publicHref,l.state,{ignoreBlocker:s})}return this._scroll.next=r.resetScroll??!0,this.history.subscribers.size||this.load(n?{action:{type:n}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:s,hashScrollIntoView:r,viewTransition:n,ignoreBlocker:a,href:c,...u}={})=>{if(c){let l=this.history.location.state.__TSR_index,p=Ht(c,{__TSR_index:e?l:l+1}),h=new URL(p.pathname,this.origin);u.to=ye(this.rewrite,h).pathname,u.search=this.options.parseSearch(p.search),u.hash=p.hash.slice(1)}let d=this.buildLocation({...u,_includeValidateSearch:!0});this.pendingBuiltLocation=d;let f=this.commitLocation({...d,viewTransition:n,replace:e,resetScroll:s,hashScrollIntoView:r,ignoreBlocker:a});return queueMicrotask(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),f},this.navigate=async({to:e,reloadDocument:s,href:r,publicHref:n,...a})=>{let c=!1;if(r)try{new URL(`${r}`),c=!0}catch{}if(c&&!s&&(s=!0),s){if(e!==void 0||!r){let d=this.buildLocation({to:e,...a});r=r??d.publicHref,n=n??d.publicHref}let u=!c&&n?n:r;if(ut(u,this.protocolAllowlist))return;if(!a.ignoreBlocker){let d=this.history.getBlockers?.()??[];for(let f of d)if(f?.blockerFn&&await f.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}a.replace?window.location.replace(u):window.location.href=u;return}return this.buildAndCommitLocation({...a,href:r,to:e,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),!1){let r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(this.latestLocation.publicHref!==r.publicHref){let n=this.getParsedLocationHref(r);throw r.external?$t({href:n}):$t({href:n,_builtLocation:r})}}let e=this.matchRoutes(this.latestLocation),s=this.stores.cachedMatches.get().filter(r=>!e.some(n=>n.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(s)})},this.load=async e=>{let s=e?.action?.type,r,n,a,c=this.stores.resolvedLocation.get()??this.stores.location.get();for(a=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad(),s&&(this._scroll.hash=s==="PUSH"||s==="REPLACE");let f=this.latestLocation,l=ht(f,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...l}),this.emit({type:"onBeforeLoad",...l}),await co({router:this,sync:e?.sync,forceStaleReload:c.href===f.href,matches:this.stores.pendingMatches.get(),location:f,updateMatch:this.updateMatch,onReady:i(async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=null,h=null,m=null,y=null;this.batch(()=>{let g=this.stores.pendingMatches.get(),v=g.length,R=this.stores.matches.get();p=v?R.filter(_=>!this.stores.pendingMatchStores.has(_.id)):null;let S=new Set;for(let _ of this.stores.pendingMatchStores.values())_.routeId&&S.add(_.routeId);let P=new Set;for(let _ of this.stores.matchStores.values())_.routeId&&P.add(_.routeId);h=v?R.filter(_=>!S.has(_.routeId)):null,m=v?g.filter(_=>!P.has(_.routeId)):null,y=v?g.filter(_=>P.has(_.routeId)):R,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),v&&(this.stores.setMatches(g),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...p.filter(_=>_.status!=="error"&&_.status!=="notFound"&&_.status!=="redirected")]),this.clearExpiredCache())});for(let[g,v]of[[h,"onLeave"],[m,"onEnter"],[y,"onStay"]])if(g)for(let R of g)this.looseRoutesById[R.routeId].options[v]?.(R)})})},"onReady")})}catch(f){H(f)?(r=f,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):A(f)&&(n=f);let l=r?r.status:n?404:this.stores.matches.get().some(p=>p.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(l),this.stores.redirect.set(r)})}this.latestLoadPromise===a&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=a,await a;this.latestLoadPromise&&a!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.stores.matches.get().some(d=>d.status==="error")&&(u=500),u!==void 0&&this.stores.statusCode.set(u)},this.startViewTransition=e=>{let s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof s=="object"&&this.isViewTransitionTypesSupported){let n=this.latestLocation,a=this.stores.resolvedLocation.get(),c=typeof s.types=="function"?s.types(ht(n,a)):s.types;if(c===!1){e();return}r={update:e,types:c}}else r=e;document.startViewTransition(r)}else e()},this.updateMatch=(e,s)=>{this.startTransition(()=>{let r=this.stores.pendingMatchStores.get(e);if(r){r.set(s);return}let n=this.stores.matchStores.get(e);if(n){n.set(s);return}let a=this.stores.cachedMatchStores.get(e);if(a){let c=s(a.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(u=>u.filter(d=>d!==e)):a.set(c)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let s=i(r=>e?.filter?.(r)??!0?{...r,invalid:!0,...e?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r,"invalidate");return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(s)),this.stores.setCached(this.stores.cachedMatches.get().map(s)),this.stores.setPending(this.stores.pendingMatches.get().map(s))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||"/",this.resolveRedirect=e=>{let s=e.headers.get("Location");if(!e.options.href||e.options._builtLocation){let r=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(r);e.options.href=n,e.headers.set("Location",n)}else if(s)try{let r=new URL(s);if(this.origin&&r.origin===this.origin){let n=r.pathname+r.search+r.hash;e.options.href=n,e.headers.set("Location",n)}}catch{}if(e.options.href&&!e.options._builtLocation&&ut(e.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return e.headers.get("Location")||e.headers.set("Location",e.options.href),e},this.clearCache=e=>{let s=e?.filter;s!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!s(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{let e=Date.now(),s=i(r=>{let n=this.looseRoutesById[r.routeId];if(!n.options.loader)return!0;let a=(r.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:e-r.updatedAt>=a},"filter");this.clearCache({filter:s})},this.loadRouteChunk=Ut,this.preloadRoute=async e=>{let s=e._builtLocation??this.buildLocation(e),r=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:e}),n=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),a=new Set([...n,...this.stores.cachedIds.get()]),c=r.filter(u=>!a.has(u.id));if(c.length){let u=this.stores.cachedMatches.get();this.stores.setCached([...u,...c])}try{return r=await co({router:this,matches:r,location:s,preload:!0,updateMatch:i((u,d)=>{n.has(u)?r=r.map(f=>f.id===u?d(f):f):this.updateMatch(u,d)},"updateMatch")}),r}catch(u){if(H(u))return u.options.reloadDocument?void 0:await this.preloadRoute({...u.options,_fromLocation:s});A(u)||console.error(u);return}},this.matchRoute=(e,s)=>{let r={...e,to:e.to?this.resolvePathWithBase(e.from||"",e.to):void 0,params:e.params||{},leaveParams:!0},n=this.buildLocation(r);if(s?.pending&&this.stores.status.get()!=="pending")return!1;let a=(s?.pending===void 0?!this.stores.isLoading.get():s.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=cr(n.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,a.pathname,this.processedTree);return!c||e.params&&!st(c.rawParams,e.params,{partial:!0})?!1:s?.includeSearch??!0?st(a.search,n.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status==="notFound"||e.globalNotFound),this.getStoreConfig=o,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??Pr,parseSearch:t.parseSearch??Sr,protocolAllowlist:t.protocolAllowlist??qe}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:t,routesByPath:o,processedTree:e}){this.routesById=t,this.routesByPath=o,this.processedTree=e;let s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}getRouteBranch(t){let o=this.routeBranchCache.get(t);return o||(o=Ze(t),this.routeBranchCache.set(t,o)),o}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,o){let e=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:r}=e,{matchedRoutes:n}=e,a=!1;(s?s.path!=="/"&&r["**"]:Z(t.pathname))&&(this.options.notFoundRoute?n=[...n,this.options.notFoundRoute]:a=!0);let c=a?Gs(this.options.notFoundMode,n):void 0,u=new Array(n.length),d=new Map;for(let f of this.stores.matchStores.values())f.routeId&&d.set(f.routeId,f.get());for(let f=0;f<n.length;f++){let l=n[f],p=u[f-1],h,m,y;{let I=p?.search??t.search,rt=p?._strictSearch??void 0;try{let K=xe(l.options.validateSearch,{...I})??void 0;h={...I,...K},m={...rt,...K},y=void 0}catch(K){let dt=K;if(K instanceof ee||(dt=new ee(K.message,{cause:K})),o?.throwOnError)throw dt;h=I,m={},y=dt}}let g=l.options.loaderDeps?.({search:h})??"",v=g?JSON.stringify(g):"",{interpolatedPath:R,usedParams:S}=me({path:l.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),P=l.id+R+v,_=this.getMatch(P),b=d.get(l.id),x=_?._strictParams??S,w;if(!_)try{Nr(l,x)}catch(I){if(A(I)||H(I)?w=I:w=new Dr(I.message,{cause:I}),o?.throwOnError)throw w}Object.assign(r,x);let C=b?"stay":"enter",M;if(_)M={..._,cause:C,params:b?.params??r,_strictParams:x,search:b?gt(b.search,h):gt(_.search,h),_strictSearch:m};else{let I=l.options.loader||l.options.beforeLoad||l.lazyFn||uo(l)?"pending":"success";M={id:P,ssr:l.options.ssr,index:f,routeId:l.id,params:b?.params??r,_strictParams:x,pathname:R,updatedAt:Date.now(),search:b?gt(b.search,h):h,_strictSearch:m,searchError:void 0,status:I,isFetching:!1,error:void 0,paramsError:w,__routeContext:void 0,_nonReactive:{loadPromise:ct()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:C,loaderDeps:b?at(b.loaderDeps,g):g,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:l.options.staticData||{},fullPath:l.fullPath}}o?.preload||(M.globalNotFound=c===l.id),M.searchError=y;let L=this.getParentContext(p);M.context={...L,...M.__routeContext,...M.__beforeLoadContext},u[f]=M}for(let f=0;f<u.length;f++){let l=u[f],p=this.looseRoutesById[l.routeId],h=this.getMatch(l.id),m=d.get(l.routeId);if(l.params=m?gt(m.params,r):r,!h){let y=u[f-1],g=this.getParentContext(y);if(p.options.context){let v={deps:l.loaderDeps,params:l.params,context:g??{},location:t,navigate:i(R=>this.navigate({...R,_fromLocation:t}),"navigate"),buildLocation:this.buildLocation,cause:l.cause,abortController:l.abortController,preload:!!l.preload,matches:u,routeId:p.id};l.__routeContext=p.options.context(v)??void 0}l.context={...g,...l.__routeContext,...l.__beforeLoadContext}}}return u}matchRoutesLightweight(t){let o=pt(this.stores.matchesId.get()),e=this.lightweightCache.get(t);if(e&&e[0]===o)return e[1];let{matchedRoutes:s,routeParams:r}=this.getMatchedRoutes(t.pathname),n=pt(s),a={...t.search};for(let l of s)try{Object.assign(a,xe(l.options.validateSearch,a))}catch{}let c=o&&this.stores.matchStores.get(o)?.get(),u=c&&c.routeId===n.id&&c.pathname===t.pathname,d;if(u)d=c.params;else{let l=Object.assign(Object.create(null),r);for(let p of s)try{Nr(p,l)}catch{}d=l}let f={matchedRoutes:s,fullPath:n.fullPath,search:a,params:d};return this.lightweightCache.set(t,[o,f]),f}},ee=class extends Error{static{i(this,"SearchParamError")}},Dr=class extends Error{static{i(this,"PathParamError")}};function Fr(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}i(Fr,"getInitialRouterState");function xe(t,o){if(t==null)return{};if("~standard"in t){let e=t["~standard"].validate(o);if(e instanceof Promise)throw new ee("Async validation not supported");if(e.issues)throw new ee(JSON.stringify(e.issues,void 0,2),{cause:e});return e.value}return"parse"in t?t.parse(o):typeof t=="function"?t(o):{}}i(xe,"validateSearch");function Ar({pathname:t,routesById:o,processedTree:e}){let s=Object.create(null),r=Z(t),n,a=ur(r,e,!0);return a&&(n=a.route,Object.assign(s,a.rawParams)),{matchedRoutes:a?.branch||[o.__root__],routeParams:s,foundRoute:n}}i(Ar,"getMatchedRoutes");function Ks({search:t,dest:o,destRoutes:e,_includeValidateSearch:s}){return qs(e)(t,o,s??!1)}i(Ks,"applySearchMiddleware");function qs(t){let o,e,s=[];for(let n of t){let a=n.options;if("search"in a)a.search?.middlewares&&s.push(...a.search.middlewares);else if(a.preSearchFilters||a.postSearchFilters){let u=i(({search:d,next:f})=>{let l=f(a.preSearchFilters?a.preSearchFilters.reduce((p,h)=>h(p),d):d);return a.postSearchFilters?a.postSearchFilters.reduce((p,h)=>h(p),l):l},"legacyMiddleware");s.push(u)}let c=a.validateSearch;if(c){let u=i(({search:d,next:f,meta:l})=>{let p=f(d);if(e)try{let h=xe(c,p);if(l&&h)for(let m in h)m in p||(l.defaulted||=new Map).set(m,h[m]);return{...p,...h}}catch{}return p},"validate");s.push(u)}}let r=i((n,a,c)=>{if(n>=s.length){if(!o.search)return{};if(o.search===!0)return a;let d=Y(o.search,a);return c&&(c.explicit=d),d}let u=i((d,f)=>{if(f){let l=c||{};return{search:r(n+1,d,l),meta:l}}return r(n+1,d,c)},"next");return s[n]({search:a,next:u,meta:c})},"applyNext");return i(function(a,c,u){return o=c,e=u,r(0,a)},"middleware")}i(qs,"buildMiddlewareChain");function Gs(t,o){if(t!=="root")for(let e=o.length-1;e>=0;e--){let s=o[e];if(s.children)return s.id}return X}i(Gs,"findGlobalNotFoundRouteId");function Nr(t,o){let e=t.options.params?.parse??t.options.parseParams;if(e){let s=e(o);if(s===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(o,s)}}i(Nr,"extractStrictParams");var go="Error preloading route! \u261D\uFE0F";var we=class{static{i(this,"BaseRoute")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=o=>{this.originalIndex=o.originalIndex;let e=this.options,s=!e?.path&&!e?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=X:this.parentRoute||$();let r=s?X:e?.path;r&&r!=="/"&&(r=he(r));let n=e?.id||r,a=s?X:Et([this.parentRoute.id==="__root__"?"":this.parentRoute.id,n]);r==="__root__"&&(r="/"),a!=="__root__"&&(a=Et(["/",a]));let c=a==="__root__"?"/":Et([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=c,this._to=Z(c)},this.addChildren=o=>this._addFileChildren(o),this._addFileChildren=o=>(Array.isArray(o)&&(this.children=o),typeof o=="object"&&o!==null&&(this.children=Object.values(o)),this),this._addFileTypes=()=>this,this.updateLoader=o=>(Object.assign(this.options,o),this),this.update=o=>(Object.assign(this.options,o),this),this.lazy=o=>(this.lazyFn=o,this),this.redirect=o=>$t({from:this.fullPath,...o}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}};var vo=class extends we{static{i(this,"BaseRootRoute")}constructor(t){super(t)}};var Me=k(W(),1);var F=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(F||{});function Br({update:t,notify:o,unwatched:e}){return{link:s,unlink:r,propagate:n,checkDirty:a,shallowPropagate:c};function s(d,f,l){let p=f.depsTail;if(p!==void 0&&p.dep===d)return;let h=p!==void 0?p.nextDep:f.deps;if(h!==void 0&&h.dep===d){h.version=l,f.depsTail=h;return}let m=d.subsTail;if(m!==void 0&&m.version===l&&m.sub===f)return;let y=f.depsTail=d.subsTail={version:l,dep:d,sub:f,prevDep:p,nextDep:h,prevSub:m,nextSub:void 0};h!==void 0&&(h.prevDep=y),p!==void 0?p.nextDep=y:f.deps=y,m!==void 0?m.nextSub=y:d.subs=y}function r(d,f=d.sub){let l=d.dep,p=d.prevDep,h=d.nextDep,m=d.nextSub,y=d.prevSub;return h!==void 0?h.prevDep=p:f.depsTail=p,p!==void 0?p.nextDep=h:f.deps=h,m!==void 0?m.prevSub=y:l.subsTail=y,y!==void 0?y.nextSub=m:(l.subs=m)===void 0&&e(l),h}function n(d){let f=d.nextSub,l;t:do{let p=d.sub,h=p.flags;if(h&60?h&12?h&4?!(h&48)&&u(d,p)?(p.flags=h|40,h&=1):h=0:p.flags=h&-9|32:h=0:p.flags=h|32,h&2&&o(p),h&1){let m=p.subs;if(m!==void 0){let y=(d=m).nextSub;y!==void 0&&(l={value:f,prev:l},f=y);continue}}if((d=f)!==void 0){f=d.nextSub;continue}for(;l!==void 0;)if(d=l.value,l=l.prev,d!==void 0){f=d.nextSub;continue t}break}while(!0)}function a(d,f){let l,p=0,h=!1;t:do{let m=d.dep,y=m.flags;if(f.flags&16)h=!0;else if((y&17)===17){if(t(m)){let g=m.subs;g.nextSub!==void 0&&c(g),h=!0}}else if((y&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(l={value:d,prev:l}),d=m.deps,f=m,++p;continue}if(!h){let g=d.nextDep;if(g!==void 0){d=g;continue}}for(;p--;){let g=f.subs,v=g.nextSub!==void 0;if(v?(d=l.value,l=l.prev):d=g,h){if(t(f)){v&&c(g),f=d.sub;continue}h=!1}else f.flags&=-33;f=d.sub;let R=d.nextDep;if(R!==void 0){d=R;continue t}}return h}while(!0)}function c(d){do{let f=d.sub,l=f.flags;(l&48)===32&&(f.flags=l|16,(l&6)===2&&o(f))}while((d=d.nextSub)!==void 0)}function u(d,f){let l=f.depsTail;for(;l!==void 0;){if(l===d)return!0;l=l.prevDep}return!1}}i(Br,"createReactiveSystem");function Hr(t,o,e){let s=typeof t=="object",r=s?t:void 0;return{next:(s?t.next:t)?.bind(r),error:(s?t.error:o)?.bind(r),complete:(s?t.complete:e)?.bind(r)}}i(Hr,"toObserver");var yo=[],Ce=0,{link:$r,unlink:Xs,propagate:Zs,checkDirty:Vr,shallowPropagate:Ur}=Br({update(t){return t._update()},notify(t){yo[Ro++]=t,t.flags&=~F.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=F.Mutable|F.Dirty,be(t))}}),_e=0,Ro=0,lt,So=0;function oe(t){try{++So,t()}finally{--So||Po()}}i(oe,"batch");function be(t){let o=t.depsTail,e=o!==void 0?o.nextDep:t.deps;for(;e!==void 0;)e=Xs(e,t)}i(be,"purgeDeps");function Po(){if(!(So>0)){for(;_e<Ro;){let t=yo[_e];yo[_e++]=void 0,t.notify()}_e=0,Ro=0}}i(Po,"flush");function Le(t,o){let e=typeof t=="function",s=t,r={_snapshot:e?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:e?F.None:F.Mutable,get(){return lt!==void 0&&$r(r,lt,Ce),r._snapshot},subscribe(n){let a=Hr(n),c={current:!1},u=Qs(()=>{r.get(),c.current?a.next?.(r._snapshot):c.current=!0});return{unsubscribe:i(()=>{u.stop()},"unsubscribe")}},_update(n){let a=lt,c=o?.compare??Object.is;if(e)lt=r,++Ce,r.depsTail=void 0;else if(n===void 0)return!1;e&&(r.flags=F.Mutable|F.RecursedCheck);try{let u=r._snapshot,d=typeof n=="function"?n(u):n===void 0&&e?s(u):n;return u===void 0||!c(u,d)?(r._snapshot=d,!0):!1}finally{lt=a,e&&(r.flags&=~F.RecursedCheck),be(r)}}};return e?(r.flags=F.Mutable|F.Dirty,r.get=function(){let n=r.flags;if(n&F.Dirty||n&F.Pending&&Vr(r.deps,r)){if(r._update()){let a=r.subs;a!==void 0&&Ur(a)}}else n&F.Pending&&(r.flags=n&~F.Pending);return lt!==void 0&&$r(r,lt,Ce),r._snapshot}):r.set=function(n){if(r._update(n)){let a=r.subs;a!==void 0&&(Zs(a),Ur(a),Po())}},r}i(Le,"createAtom");function Qs(t){let o=i(()=>{let s=lt;lt=e,++Ce,e.depsTail=void 0,e.flags=F.Watching|F.RecursedCheck;try{return t()}finally{lt=s,e.flags&=~F.RecursedCheck,be(e)}},"run"),e={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:F.Watching|F.RecursedCheck,notify(){let s=this.flags;s&F.Dirty||s&F.Pending&&Vr(this.deps,this)?o():this.flags=F.Watching},stop(){this.flags=F.None,this.depsTail=void 0,be(this)}};return o(),e}i(Qs,"effect");var xo=k(W(),1),Wr=k(Rs(),1);function tn(t,o){return t===o}i(tn,"defaultCompare");function B(t,o,e=tn){let s=(0,xo.useCallback)(a=>{if(!t)return()=>{};let{unsubscribe:c}=t.subscribe(a);return c},[t]),r=(0,xo.useCallback)(()=>t?.get(),[t]);return(0,Wr.useSyncExternalStoreWithSelector)(s,r,r,o,e)}i(B,"useStore");var wo={get(){},subscribe(){return{unsubscribe(){}}}};function _o(t,o){let e=Me.useRef();return s=>{let r=t?.select?t.select(s):s;return t?.structuralSharing??o.options.defaultStructuralSharing?e.current=at(e.current,r):r}}i(_o,"useStructuralSharing");function Q(t){let o=D(),e=Me.useContext(t.from?Yo:Mt),s=t.from?o.stores.getRouteMatchStore(t.from):o.stores.matchStores.get(e);if(!1){let a=s?.get();if(!a){(t.shouldThrow??!0)&&$();return}return t.select?t.select(a):a}let r=_o(t,o),n=B(s??wo,a=>a?r(a):wo);if(n!==wo)return n;(t.shouldThrow??!0)&&$()}i(Q,"useMatch");function Ie(t){return Q({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:i(o=>t.select?t.select(o.search):o.search,"select")})}i(Ie,"useSearch");var nt=k(W(),1);var Tt=typeof window<"u"?nt.useLayoutEffect:nt.useEffect;function Ee(t){let o=nt.useRef({value:t,prev:null}),e=o.current.value;return t!==e&&(o.current={value:t,prev:e}),o.current.prev}i(Ee,"usePrevious");function jr(t,o,e={},s={}){nt.useEffect(()=>{if(!t.current||s.disabled||typeof IntersectionObserver!="function")return;let r=new IntersectionObserver(([n])=>{o(n)},e);return r.observe(t.current),()=>{r.disconnect()}},[o,e,s.disabled,t])}i(jr,"useIntersectionObserver");function zr(t){let o=nt.useRef(null);return nt.useImperativeHandle(t,()=>o.current,[]),o}i(zr,"useForwardedRef");var Co=k(W(),1);function ke(t){let o=D();return Co.useCallback(e=>o.navigate({...e,from:e.from??t?.from}),[t?.from,o])}i(ke,"useNavigate");var Vt=k(W(),1),it=k(ot(),1);function Ot(t){let o=t.errorComponent??Nt;return(0,it.jsx)(en,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:i(({error:e,reset:s})=>e?Vt.createElement(o,{error:e,reset:s}):t.children,"children")})}i(Ot,"CatchBoundary");var en=class extends Vt.Component{static{i(this,"CatchBoundaryImpl")}constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,o){let e=t.getResetKey();return o.error&&o.resetKey!==e?{resetKey:e,error:null}:{resetKey:e}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,o){this.props.onCatch&&this.props.onCatch(t,o)}render(){return this.props.children({error:this.state.error,reset:i(()=>{this.reset()},"reset")})}};function Nt({error:t}){let[o,e]=Vt.useState(!1);return(0,it.jsxs)("div",{style:{padding:".5rem",maxWidth:"100%"},children:[(0,it.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[(0,it.jsx)("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),(0,it.jsx)("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:i(()=>e(s=>!s),"onClick"),children:o?"Hide Error":"Show Error"})]}),(0,it.jsx)("div",{style:{height:".25rem"}}),o?(0,it.jsx)("div",{children:(0,it.jsx)("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?(0,it.jsx)("code",{children:t.message}):null})}):null]})}i(Nt,"ErrorComponent");var Te=k(W(),1),bo=k(ot(),1);function Kr({children:t,fallback:o=null}){return Lo()?(0,bo.jsx)(Te.default.Fragment,{children:t}):(0,bo.jsx)(Te.default.Fragment,{children:o})}i(Kr,"ClientOnly");function Lo(){return Te.default.useSyncExternalStore(on,()=>!0,()=>!1)}i(Lo,"useHydrated");function on(){return()=>{}}i(on,"subscribe");function Mo(t){return Q({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:i(o=>t.select?t.select(o.loaderData):o.loaderData,"select")})}i(Mo,"useLoaderData");function Io(t){let{select:o,...e}=t;return Q({...e,select:i(s=>o?o(s.loaderDeps):s.loaderDeps,"select")})}i(Io,"useLoaderDeps");function Eo(t){return Q({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:i(o=>{let e=t.strict===!1?o.params:o._strictParams;return t.select?t.select(e):e},"select")})}i(Eo,"useParams");function ko(t){return Q({...t,select:i(o=>t.select?t.select(o.context):o.context,"select")})}i(ko,"useRouteContext");var U=k(W(),1),rn=k(ot(),1);var Zr=k(ys(),1);function sn(t,o){let e=D(),s=zr(o),r=!1,{activeProps:n,inactiveProps:a,activeOptions:c,to:u,preload:d,preloadDelay:f,preloadIntentProximity:l,hashScrollIntoView:p,replace:h,startTransition:m,resetScroll:y,viewTransition:g,children:v,target:R,disabled:S,style:P,className:_,onClick:b,onBlur:x,onFocus:w,onMouseEnter:C,onMouseLeave:M,onTouchStart:L,ignoreBlocker:I,params:rt,search:K,hash:dt,state:ne,mask:tt,reloadDocument:zt,unsafeRelative:Fo,from:Ao,_fromLocation:ie,...Dt}=t;if(r){let O=Xr(u);if(typeof u=="string"&&!O&&u.indexOf(":")>-1)try{return new URL(u),ut(u,e.protocolAllowlist)?{...Dt,ref:s,href:void 0,...v&&{children:v},...R&&{target:R},...S&&{disabled:S},...P&&{style:P},..._&&{className:_}}:{...Dt,ref:s,href:u,...v&&{children:v},...R&&{target:R},...S&&{disabled:S},...P&&{style:P},..._&&{className:_}}}catch{}let T=e.buildLocation({...t,from:t.from}),et=Yr(T.maskedLocation?T.maskedLocation.publicHref:T.publicHref,T.maskedLocation?T.maskedLocation.external:T.external,e.history,S),Jt=(()=>{if(et?.external)return ut(et.href,e.protocolAllowlist)?void 0:et.href;if(!O&&typeof u=="string"&&u.indexOf(":")>-1)try{return new URL(u),ut(u,e.protocolAllowlist)?void 0:u}catch{}})(),Ve=(()=>{if(Jt)return!1;let V=e.stores.location.get(),G=c?.exact??!1;if(G){if(!pe(V.pathname,T.pathname,e.basepath))return!1}else{let j=Pt(V.pathname,e.basepath),J=Pt(T.pathname,e.basepath);if(!(j.startsWith(J)&&(j.length===J.length||j[J.length]==="/")))return!1}if((c?.includeSearch??!0)&&V.search!==T.search){let j=!V.search||typeof V.search=="object"&&!mt(V.search),J=!T.search||typeof T.search=="object"&&!mt(T.search);if(!(j&&J)&&!st(V.search,T.search,{partial:!G,ignoreUndefined:!c?.explicitUndefined}))return!1}return!c?.includeHash})();if(Jt)return{...Dt,ref:s,href:Jt,...v&&{children:v},...R&&{target:R},...S&&{disabled:S},...P&&{style:P},..._&&{className:_}};let We=Ve?Y(n,{})??qr:Wt,je=Ve?Wt:Y(a,{})??Wt,Ko=(()=>{let V=P,G=We.style,j=je.style;if(!(!V&&!G&&!j))return V&&!G&&!j?V:!V&&G&&!j?G:!V&&!G&&j?j:{...V,...G,...j}})(),qo=(()=>{let V=_,G=We.className,j=je.className;if(!V&&!G&&!j)return"";let J="";return V&&(J=V),G&&(J=J?`${J} ${G}`:G),j&&(J=J?`${J} ${j}`:j),J})();return{...Dt,...We,...je,href:et?.href,ref:s,disabled:!!S,target:R,...Ko&&{style:Ko},...qo&&{className:qo},...S&&Gr,...Ve&&Jr}}let $e=Lo(),Kt=U.useMemo(()=>t,[e,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),bt=B(e.stores.location,O=>O,(O,T)=>O.href===T.href),q=U.useMemo(()=>{let O={_fromLocation:bt,...Kt};return e.buildLocation(O)},[e,bt,Kt]),Bo=q.maskedLocation?q.maskedLocation.publicHref:q.publicHref,$o=q.maskedLocation?q.maskedLocation.external:q.external,qt=U.useMemo(()=>Yr(Bo,$o,e.history,S),[S,$o,Bo,e.history]),Gt=U.useMemo(()=>{if(qt?.external)return ut(qt.href,e.protocolAllowlist)?void 0:qt.href;if(!Xr(u)&&!(typeof u!="string"||u.indexOf(":")===-1))try{return new URL(u),ut(u,e.protocolAllowlist)?void 0:u}catch{}},[u,qt,e.protocolAllowlist]),Ue=U.useMemo(()=>{if(Gt)return!1;if(c?.exact){if(!pe(bt.pathname,q.pathname,e.basepath))return!1}else{let O=Pt(bt.pathname,e.basepath),T=Pt(q.pathname,e.basepath);if(!(O.startsWith(T)&&(O.length===T.length||O[T.length]==="/")))return!1}return(c?.includeSearch??!0)&&!st(bt.search,q.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?$e&&bt.hash===q.hash:!0},[c?.exact,c?.explicitUndefined,c?.includeHash,c?.includeSearch,bt,Gt,$e,q.hash,q.pathname,q.search,e.basepath]),ae=Ue?Y(n,{})??qr:Wt,ce=Ue?Wt:Y(a,{})??Wt,Uo=[_,ae.className,ce.className].filter(Boolean).join(" "),Ho=(P||ae.style||ce.style)&&{...P,...ae.style,...ce.style},[ms,Vo]=U.useState(!1),Wo=U.useRef(!1),Ft=t.reloadDocument||Gt?!1:d??e.options.defaultPreload,He=f??e.options.defaultPreloadDelay??0,Lt=U.useCallback(()=>{e.preloadRoute({...Kt,_builtLocation:q}).catch(O=>{console.warn(O),console.warn(go)})},[e,Kt,q]);jr(s,U.useCallback(O=>{O?.isIntersecting&&Lt()},[Lt]),an,{disabled:!!S||Ft!=="viewport"}),U.useEffect(()=>{Wo.current||!S&&Ft==="render"&&(Lt(),Wo.current=!0)},[S,Lt,Ft]);let gs=i(O=>{let T=O.currentTarget.getAttribute("target"),et=R!==void 0?R:T;if(!S&&!cn(O)&&!O.defaultPrevented&&(!et||et==="_self")&&O.button===0){O.preventDefault(),(0,Zr.flushSync)(()=>{Vo(!0)});let Jt=e.subscribe("onResolved",()=>{Jt(),Vo(!1)});e.navigate({...Kt,replace:h,resetScroll:y,hashScrollIntoView:p,startTransition:m,viewTransition:g,ignoreBlocker:I})}},"handleClick");if(Gt)return{...Dt,ref:s,href:Gt,...v&&{children:v},...R&&{target:R},...S&&{disabled:S},...P&&{style:P},..._&&{className:_},...b&&{onClick:b},...x&&{onBlur:x},...w&&{onFocus:w},...C&&{onMouseEnter:C},...M&&{onMouseLeave:M},...L&&{onTouchStart:L}};let jo=i(O=>{if(S||Ft!=="intent")return;if(!He){Lt();return}let T=O.currentTarget;if(re.has(T))return;let et=setTimeout(()=>{re.delete(T),Lt()},He);re.set(T,et)},"enqueueIntentPreload"),vs=i(O=>{S||Ft!=="intent"||Lt()},"handleTouchStart"),zo=i(O=>{if(S||!Ft||!He)return;let T=O.currentTarget,et=re.get(T);et&&(clearTimeout(et),re.delete(T))},"handleLeave");return{...Dt,...ae,...ce,href:qt?.href,ref:s,onClick:jt([b,gs]),onBlur:jt([x,zo]),onFocus:jt([w,jo]),onMouseEnter:jt([C,jo]),onMouseLeave:jt([M,zo]),onTouchStart:jt([L,vs]),disabled:!!S,target:R,...Ho&&{style:Ho},...Uo&&{className:Uo},...S&&Gr,...Ue&&Jr,...$e&&ms&&nn}}i(sn,"useLinkProps");var Wt={},qr={className:"active"},Gr={role:"link","aria-disabled":!0},Jr={"data-status":"active","aria-current":"page"},nn={"data-transitioning":"transitioning"},re=new WeakMap,an={rootMargin:"100px"},jt=i(t=>o=>{for(let e of t)if(e){if(o.defaultPrevented)return;e(o)}},"composeHandlers");function Yr(t,o,e,s){if(!s)return o?{href:t,external:!0}:{href:e.createHref(t)||"/",external:!1}}i(Yr,"getHrefOption");function Xr(t){if(typeof t!="string")return!1;let o=t.charCodeAt(0);return o===47?t.charCodeAt(1)!==47:o===46}i(Xr,"isSafeInternal");var To=U.forwardRef((t,o)=>{let{_asChild:e,...s}=t,{type:r,...n}=sn(s,o),a=typeof s.children=="function"?s.children({isActive:n["data-status"]==="active"}):s.children;if(!e){let{disabled:c,...u}=n;return U.createElement("a",u,a)}return U.createElement(e,n,a)});function cn(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}i(cn,"isCtrlEvent");var Oo=k(W(),1),No=k(ot(),1);var Qr=class extends we{static{i(this,"Route")}constructor(t){super(t),this.useMatch=o=>Q({select:o?.select,from:this.id,structuralSharing:o?.structuralSharing}),this.useRouteContext=o=>ko({...o,from:this.id}),this.useSearch=o=>Ie({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useParams=o=>Eo({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useLoaderDeps=o=>Io({...o,from:this.id}),this.useLoaderData=o=>Mo({...o,from:this.id}),this.useNavigate=()=>ke({from:this.fullPath}),this.Link=Oo.default.forwardRef((o,e)=>(0,No.jsx)(To,{ref:e,from:this.fullPath,...o}))}};function un(t){return new Qr(t)}i(un,"createRoute");var ts=class extends vo{static{i(this,"RootRoute")}constructor(t){super(t),this.useMatch=o=>Q({select:o?.select,from:this.id,structuralSharing:o?.structuralSharing}),this.useRouteContext=o=>ko({...o,from:this.id}),this.useSearch=o=>Ie({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useParams=o=>Eo({select:o?.select,structuralSharing:o?.structuralSharing,from:this.id}),this.useLoaderDeps=o=>Io({...o,from:this.id}),this.useLoaderData=o=>Mo({...o,from:this.id}),this.useNavigate=()=>ke({from:this.fullPath}),this.Link=Oo.default.forwardRef((o,e)=>(0,No.jsx)(To,{ref:e,from:this.fullPath,...o}))}};function ln(t){return new ts(t)}i(ln,"createRootRoute");var Rc=k(W(),1),Oe=k(ot(),1);function es(t){let o=D();if(!1){let s=`not-found-${o.stores.location.get().pathname}-${o.stores.status.get()}`;return(0,Oe.jsx)(Ot,{getResetKey:i(()=>s,"getResetKey"),onCatch:i((r,n)=>{if(A(r))t.onCatch?.(r,n);else throw r},"onCatch"),errorComponent:i(({error:r})=>{if(A(r))return t.fallback?.(r);throw r},"errorComponent"),children:t.children})}let e=`not-found-${B(o.stores.location,s=>s.pathname)}-${B(o.stores.status,s=>s)}`;return(0,Oe.jsx)(Ot,{getResetKey:i(()=>e,"getResetKey"),onCatch:i((s,r)=>{if(A(s))t.onCatch?.(s,r);else throw s},"onCatch"),errorComponent:i(({error:s})=>{if(A(s))return t.fallback?.(s);throw s},"errorComponent"),children:t.children})}i(es,"CatchNotFound");function os(){return(0,Oe.jsx)("p",{children:"Not Found"})}i(os,"DefaultGlobalNotFound");var rs=k(ot(),1);function ss({children:t}){let o=D();return null}i(ss,"ScriptOnce");var bc=k(W(),1),Ne=k(ot(),1);function _t(t){return(0,Ne.jsx)(Ne.Fragment,{children:t.children})}i(_t,"SafeFragment");var Ec=k(W(),1),De=k(ot(),1);function Fe(t,o,e){return o.options.notFoundComponent?(0,De.jsx)(o.options.notFoundComponent,{...e}):t.options.defaultNotFoundComponent?(0,De.jsx)(t.options.defaultNotFoundComponent,{...e}):(0,De.jsx)(os,{})}i(Fe,"renderRouteNotFound");var is=k(ot(),1);function ns(t){return null}i(ns,"getScrollRestorationScriptForRouter");function as(){let t=ns(D());return t?(0,is.jsx)(ss,{children:t}):null}i(as,"ScrollRestoration");var z=k(W(),1),N=k(ot(),1);var fn=i((t,o)=>t.routeId===o.routeId&&t._displayPending===o._displayPending,"matchViewFieldsEqual"),dn=i((t,o)=>t[0]===o[0]&&t[1]===o[1],"outletMatchSelectionEqual"),Ae=z.memo(i(function({matchId:o}){let e=D();if(!1){let a=e.stores.matchStores.get(o)?.get();a||$();let c=a.routeId,u=e.routesById[c].parentRoute?.id;return(0,N.jsx)(cs,{router:e,matchId:o,resetKey:e.stores.loadedAt.get(),matchState:{routeId:c,ssr:a.ssr,_displayPending:a._displayPending,parentRouteId:u}})}let s=e.stores.matchStores.get(o);s||$();let r=B(e.stores.loadedAt,a=>a),n=B(s,a=>a,fn);return(0,N.jsx)(cs,{router:e,matchId:o,resetKey:r,matchState:z.useMemo(()=>{let a=n.routeId,c=e.routesById[a].parentRoute?.id;return{routeId:a,ssr:n.ssr,_displayPending:n._displayPending,parentRouteId:c}},[n._displayPending,n.routeId,n.ssr,e.routesById])})},"MatchImpl"));function cs({router:t,matchId:o,resetKey:e,matchState:s}){let r=t.routesById[s.routeId],n=r.options.pendingComponent??t.options.defaultPendingComponent,a=n?(0,N.jsx)(n,{}):null,c=r.options.errorComponent??t.options.defaultErrorComponent,u=r.options.onCatch??t.options.defaultOnCatch,d=r.isRoot?r.options.notFoundComponent??t.options.notFoundRoute?.options.component:r.options.notFoundComponent,f=s.ssr===!1||s.ssr==="data-only",l=(!r.isRoot||r.options.wrapInSuspense||f)&&(r.options.wrapInSuspense??n??(r.options.errorComponent?.preload||f))?z.Suspense:_t,p=c?Ot:_t,h=d?es:_t;return(0,N.jsxs)(r.isRoot?r.options.shellComponent??_t:_t,{children:[(0,N.jsx)(Mt.Provider,{value:o,children:(0,N.jsx)(l,{fallback:a,children:(0,N.jsx)(p,{getResetKey:i(()=>e,"getResetKey"),errorComponent:c||Nt,onCatch:i((m,y)=>{if(A(m))throw m.routeId??=s.routeId,m;u?.(m,y)},"onCatch"),children:(0,N.jsx)(h,{fallback:i(m=>{if(m.routeId??=s.routeId,!d||m.routeId&&m.routeId!==s.routeId||!m.routeId&&!r.isRoot)throw m;return z.createElement(d,m)},"fallback"),children:f||s._displayPending?(0,N.jsx)(Kr,{fallback:a,children:(0,N.jsx)(us,{matchId:o})}):(0,N.jsx)(us,{matchId:o})})})})}),s.parentRouteId===X?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(hn,{}),t.options.scrollRestoration&&!1?(0,N.jsx)(as,{}):null]}):null]})}i(cs,"MatchView");function hn(){let t=D();if(!1)return null;let o=z.useRef();return Tt(()=>{let e=t.stores.resolvedLocation.get(),s=o.current;e&&(!s||s.href!==e.href)&&t.emit({type:"onRendered",...ht(t.stores.location.get(),s??e)}),o.current=e},[B(t.stores.resolvedLocation,e=>e?.state.__TSR_key),t]),null}i(hn,"OnRendered");var us=z.memo(i(function({matchId:o}){let e=D(),s=i((f,l)=>e.getMatch(f.id)?._nonReactive[l]??f._nonReactive[l],"getMatchPromise");if(!1){let f=e.stores.matchStores.get(o)?.get();f||$();let l=f.routeId,p=e.routesById[l],h=(e.routesById[l].options.remountDeps??e.options.defaultRemountDeps)?.({routeId:l,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch}),m=h?JSON.stringify(h):void 0,y=p.options.component??e.options.defaultComponent,g=y?(0,N.jsx)(y,{},m):(0,N.jsx)(Do,{});if(f._displayPending)throw s(f,"displayPendingPromise");if(f._forcePending)throw s(f,"minPendingPromise");if(f.status==="pending")throw s(f,"loadPromise");if(f.status==="notFound")return A(f.error)||$(),Fe(e,p,f.error);if(f.status==="redirected")throw H(f.error)||$(),s(f,"loadPromise");return f.status==="error"?(0,N.jsx)((p.options.errorComponent??e.options.defaultErrorComponent)||Nt,{error:f.error,reset:void 0,info:{componentStack:""}}):g}let r=e.stores.matchStores.get(o);r||$();let n=B(r,f=>f),a=n.routeId,c=e.routesById[a],u=z.useMemo(()=>{let f=(e.routesById[a].options.remountDeps??e.options.defaultRemountDeps)?.({routeId:a,loaderDeps:n.loaderDeps,params:n._strictParams,search:n._strictSearch});return f?JSON.stringify(f):void 0},[a,n.loaderDeps,n._strictParams,n._strictSearch,e.options.defaultRemountDeps,e.routesById]),d=z.useMemo(()=>{let f=c.options.component??e.options.defaultComponent;return f?(0,N.jsx)(f,{},u):(0,N.jsx)(Do,{})},[u,c.options.component,e.options.defaultComponent]);if(n._displayPending)throw s(n,"displayPendingPromise");if(n._forcePending)throw s(n,"minPendingPromise");if(n.status==="pending"){let f=c.options.pendingMinMs??e.options.defaultPendingMinMs;if(f){let l=e.getMatch(n.id);if(l&&!l._nonReactive.minPendingPromise&&!!1){let p=ct();l._nonReactive.minPendingPromise=p,setTimeout(()=>{p.resolve(),l._nonReactive.minPendingPromise=void 0},f)}}throw s(n,"loadPromise")}if(n.status==="notFound")return A(n.error)||$(),Fe(e,c,n.error);if(n.status==="redirected")throw H(n.error)||$(),s(n,"loadPromise");if(n.status==="error"){if(!1)return(0,N.jsx)((c.options.errorComponent??e.options.defaultErrorComponent)||Nt,{error:n.error,reset:void 0,info:{componentStack:""}});throw n.error}return d},"MatchInnerImpl")),Do=z.memo(i(function(){let o=D(),e=z.useContext(Mt),s,r=!1,n;if(!1){let d=o.stores.matches.get(),f=e?d.findIndex(p=>p.id===e):-1,l=f>=0?d[f]:void 0;s=l?.routeId,r=l?.globalNotFound??!1,n=f>=0?d[f+1]?.id:void 0}else{let d=e?o.stores.matchStores.get(e):void 0;[s,r]=B(d,f=>[f?.routeId,f?.globalNotFound??!1],dn),n=B(o.stores.matchesId,f=>f[f.findIndex(l=>l===e)+1])}let a=s?o.routesById[s]:void 0,c=o.options.defaultPendingComponent?(0,N.jsx)(o.options.defaultPendingComponent,{}):null;if(r)return a||$(),Fe(o,a,void 0);if(!n)return null;let u=(0,N.jsx)(Ae,{matchId:n});return s===X?(0,N.jsx)(z.Suspense,{fallback:c,children:u}):u},"OutletImpl"));var Ct=k(W(),1);function ls(){let t=D(),o=Ct.useRef({router:t,mounted:!1}),[e,s]=Ct.useState(!1),r=B(t.stores.isLoading,l=>l),n=B(t.stores.hasPending,l=>l),a=Ee(r),c=r||e||n,u=Ee(c),d=r||n,f=Ee(d);return t.startTransition=l=>{s(!0),Ct.startTransition(()=>{l(),s(!1)})},Ct.useEffect(()=>{let l=t.history.subscribe(t.load),p=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Z(t.latestLocation.publicHref)!==Z(p.publicHref)&&t.commitLocation({...p,replace:!0}),()=>{l()}},[t,t.history]),Tt(()=>{if(typeof window<"u"&&t.ssr||o.current.router===t&&o.current.mounted)return;o.current={router:t,mounted:!0},i(async()=>{try{await t.load()}catch(p){console.error(p)}},"tryLoad")()},[t]),Tt(()=>{a&&!r&&t.emit({type:"onLoad",...ht(t.stores.location.get(),t.stores.resolvedLocation.get())})},[a,t,r]),Tt(()=>{f&&!d&&t.emit({type:"onBeforeRouteMount",...ht(t.stores.location.get(),t.stores.resolvedLocation.get())})},[d,f,t]),Tt(()=>{if(u&&!c){let l=ht(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...l}),oe(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[c,u,t]),null}i(ls,"Transitioner");var Be=k(W(),1),ft=k(ot(),1);function fs(){let t=D(),o=t.routesById[X].options.pendingComponent??t.options.defaultPendingComponent,e=o?(0,ft.jsx)(o,{}):null,s=(0,ft.jsxs)(typeof document<"u"&&t.ssr?_t:Be.Suspense,{fallback:e,children:[!!1&&(0,ft.jsx)(ls,{}),(0,ft.jsx)(pn,{})]});return t.options.InnerWrap?(0,ft.jsx)(t.options.InnerWrap,{children:s}):s}i(fs,"Matches");function pn(){let t=D(),o=!1,e=o?t.stores.firstId.get():B(t.stores.firstId,n=>n),s=o?t.stores.loadedAt.get():B(t.stores.loadedAt,n=>n),r=e?(0,ft.jsx)(Ae,{matchId:e}):null;return(0,ft.jsx)(Mt.Provider,{value:e,children:t.options.disableGlobalCatchBoundary?r:(0,ft.jsx)(Ot,{getResetKey:i(()=>s,"getResetKey"),errorComponent:Nt,onCatch:void 0,children:r})})}i(pn,"MatchesInner");var ds=i(t=>({createMutableStore:Le,createReadonlyStore:Le,batch:oe}),"getStoreFactory");var mn=i(t=>new hs(t),"createRouter"),hs=class extends mo{static{i(this,"Router")}constructor(t){super(t,ds)}};var Lu=k(W(),1),se=k(ot(),1);function ps({router:t,children:o,...e}){mt(e)&&t.update({...t.options,...e,context:{...t.options.context,...e.context}});let s=(0,se.jsx)(ue.Provider,{value:t,children:o});return t.options.Wrap?(0,se.jsx)(t.options.Wrap,{children:s}):s}i(ps,"RouterContextProvider");function gn({router:t,...o}){return(0,se.jsx)(ps,{router:t,...o,children:(0,se.jsx)(fs,{})})}i(gn,"RouterProvider");function vn(t){let o=D({warn:t?.router===void 0}),e=t?.router||o;if(!1){let s=e.stores.__store.get();return t?.select?t.select(s):s}return B(e.stores.__store,_o(t,e))}i(vn,"useRouterState");export{ho as a,js as b,D as c,Ie as d,ke as e,un as f,ln as g,Do as h,mn as i,gn as j,vn as k};
|