railwatch 0.5.1 → 0.6.0
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.
- checksums.yaml +4 -4
- data/AGENTS.md +6 -2
- data/CHANGELOG.md +119 -0
- data/README.md +21 -13
- data/app/controllers/railwatch/dashboard_controller.rb +1 -0
- data/app/models/railwatch/application_record.rb +2 -2
- data/app/models/railwatch/telemetry_record.rb +2 -2
- data/docs/configuration.md +29 -13
- data/docs/embedded.md +32 -12
- data/docs/faq.md +6 -5
- data/docs/getting-started.md +9 -5
- data/docs/troubleshooting.md +10 -6
- data/lib/generators/railwatch/install/install_generator.rb +31 -16
- data/lib/generators/railwatch/install/templates/initializer.rb.tt +4 -4
- data/lib/puma/plugin/railwatch.rb +48 -3
- data/lib/railwatch/configuration.rb +16 -1
- data/lib/railwatch/engine.rb +14 -3
- data/lib/railwatch/reporter.rb +52 -16
- data/lib/railwatch/transport/http.rb +4 -9
- data/lib/railwatch/version.rb +1 -1
- data/lib/railwatch.rb +23 -1
- data/lib/tasks/railwatch_tasks.rake +11 -4
- data/llms.txt +8 -4
- data/public/railwatch/assets/{app-layout-DDyQa72H.js → app-layout-2xAKndVD.js} +1 -1
- data/public/railwatch/assets/{app-wordmark-o9CODKP0.js → app-wordmark-Bt6XqURo.js} +1 -1
- data/public/railwatch/assets/{appearance-BwuCXabr.js → appearance-DyCfeh9o.js} +1 -1
- data/public/railwatch/assets/{arrow-up-C6PxDiY3.js → arrow-up-EmePsTKP.js} +1 -1
- data/public/railwatch/assets/{auth-layout-BRt8MGFD.js → auth-layout-BuwogWMZ.js} +1 -1
- data/public/railwatch/assets/{badge-CAxXV8za.js → badge-Dv7I-ebP.js} +1 -1
- data/public/railwatch/assets/{braces-DgomTCNf.js → braces-iZ7MEfYP.js} +1 -1
- data/public/railwatch/assets/{card-cAtqCxWl.js → card-DqdEEKcJ.js} +1 -1
- data/public/railwatch/assets/{chart-BBeBkkNa.js → chart-C4k7Ub9W.js} +1 -1
- data/public/railwatch/assets/{chart-hover-B1M9jc0y.js → chart-hover-2yZG3w2u.js} +1 -1
- data/public/railwatch/assets/{chart-panel-DUQTz_C8.js → chart-panel-CONkZcn9.js} +1 -1
- data/public/railwatch/assets/{checkbox-CmhMHWZO.js → checkbox-DKbThbxr.js} +1 -1
- data/public/railwatch/assets/{code-DESvxyTj.js → code-CYahYQHZ.js} +1 -1
- data/public/railwatch/assets/{copy-block-BkSU5832.js → copy-block-CbJum9s8.js} +1 -1
- data/public/railwatch/assets/{copy-id-D03GhN9F.js → copy-id-JmvLfkmx.js} +1 -1
- data/public/railwatch/assets/{cursor-load-more-CRyuMeQb.js → cursor-load-more-C1ylbqqL.js} +1 -1
- data/public/railwatch/assets/{data-table-BIlt7Rtm.js → data-table-CVKR2wkq.js} +1 -1
- data/public/railwatch/assets/{edit-DJ0D0wHN.js → edit-BXF5oNYA.js} +1 -1
- data/public/railwatch/assets/{edit-O0NSBWxo.js → edit-BwSEVrTG.js} +1 -1
- data/public/railwatch/assets/{edit-Bb6MKoe4.js → edit-D5BRDwLT.js} +1 -1
- data/public/railwatch/assets/{empty-state-C38il627.js → empty-state-Bn48Gplm.js} +1 -1
- data/public/railwatch/assets/{env-layout-REF7OM4q.js → env-layout-CKLL8Ds7.js} +1 -1
- data/public/railwatch/assets/{execution-path-FYLq1TwC.js → execution-path-DWovhgLi.js} +1 -1
- data/public/railwatch/assets/{filter-bar-CYog9Alp.js → filter-bar-xcbJC93z.js} +1 -1
- data/public/railwatch/assets/{flamegraph-DSs69foN.js → flamegraph-BNbNIuKT.js} +1 -1
- data/public/railwatch/assets/{frames-BUi2J5Mk.js → frames-Bk39xfJG.js} +1 -1
- data/public/railwatch/assets/{google-sign-in-button-BQiIKFdd.js → google-sign-in-button-B5as2ps1.js} +1 -1
- data/public/railwatch/assets/{index-QpTtwFwu.js → index-Atp1FTgX.js} +1 -1
- data/public/railwatch/assets/{index-C-PmdhXA.js → index-B-FXAo1w.js} +1 -1
- data/public/railwatch/assets/{index-DqTFTP8p.js → index-B0xgzHuN.js} +1 -1
- data/public/railwatch/assets/{index-so4lRrRq.js → index-BDVShWMs.js} +1 -1
- data/public/railwatch/assets/{index-C_upSl_k.js → index-BRvRkfob.js} +1 -1
- data/public/railwatch/assets/{index-CsoN51vW.js → index-BVWapDeB.js} +1 -1
- data/public/railwatch/assets/{index-CrZ3vHDL.js → index-Bd4YpOIO.js} +1 -1
- data/public/railwatch/assets/{index-BaR1U9An.js → index-BeQw69GM.js} +1 -1
- data/public/railwatch/assets/{index-Dh4IRLFI.js → index-BfitxVBv.js} +1 -1
- data/public/railwatch/assets/{index-umIAl-pL.js → index-C-EwH4lO.js} +1 -1
- data/public/railwatch/assets/{index-CICUIFHL.js → index-C8JIdb3_.js} +1 -1
- data/public/railwatch/assets/{index-CFFpnzIS.js → index-CBFCtJAR.js} +1 -1
- data/public/railwatch/assets/{index-tpz-OGUP.js → index-CDXlITyG.js} +1 -1
- data/public/railwatch/assets/{index-DW2CBbxU.js → index-COd9lT84.js} +1 -1
- data/public/railwatch/assets/{index-FhUaPPab.js → index-C_hQmVTP.js} +1 -1
- data/public/railwatch/assets/{index-JdCVBrw8.js → index-CcennT28.js} +1 -1
- data/public/railwatch/assets/{index-DrcKVG2f.js → index-CiaeS-n7.js} +1 -1
- data/public/railwatch/assets/{index-BoUBioBP.js → index-CrA7jBTK.js} +1 -1
- data/public/railwatch/assets/{index-C3A_9imx.js → index-D0mKj3Hg.js} +1 -1
- data/public/railwatch/assets/{index-BiiyMcA0.js → index-DV5MdmpY.js} +1 -1
- data/public/railwatch/assets/{index-CiPo4Gob.js → index-DaE-1xhx.js} +1 -1
- data/public/railwatch/assets/{index-CpkI015n.js → index-DdVg9LKX.js} +1 -1
- data/public/railwatch/assets/{index-DvjY3dPD.js → index-DeLtMWou.js} +1 -1
- data/public/railwatch/assets/{index-CFRLPs4J.js → index-DiQ4mqT_.js} +1 -1
- data/public/railwatch/assets/{index-DtHmuB9Q.js → index-LKgpCzoR.js} +1 -1
- data/public/railwatch/assets/{index-BeOh2t_S.js → index-S0NVaLj9.js} +1 -1
- data/public/railwatch/assets/{index-C7OtLq_3.js → index-Vj93BTR5.js} +1 -1
- data/public/railwatch/assets/{index-ZOGOB8SA.js → index-XjXcV-EO.js} +1 -1
- data/public/railwatch/assets/{index-ZSZg9rtq.js → index-Zkt4W_CM.js} +1 -1
- data/public/railwatch/assets/{index-8-hnAhOD.js → index-aPCZX-pW.js} +1 -1
- data/public/railwatch/assets/{index-DDI_Zx5V.js → index-cTzBycCg.js} +1 -1
- data/public/railwatch/assets/{index-sTYvcbkh.js → index-dpG-19ZN.js} +1 -1
- data/public/railwatch/assets/{index-r0tSIplE.js → index-gCvuyG1l.js} +1 -1
- data/public/railwatch/assets/{index-DSvlZVWG.js → index-o1xqGvLo.js} +1 -1
- data/public/railwatch/assets/{index-CGs4m_fa.js → index-w_skgMmK.js} +1 -1
- data/public/railwatch/assets/{inertia-DLew8ZNx.js → inertia-CqnzqPVD.js} +2 -2
- data/public/railwatch/assets/{input-error-cvM6_Jht.js → input-error-ByT28UdP.js} +1 -1
- data/public/railwatch/assets/{json-viewer-D922McGi.js → json-viewer-Bnu9RsJL.js} +1 -1
- data/public/railwatch/assets/{klass-CrwICqN8.js → klass-nLiBV-Az.js} +1 -1
- data/public/railwatch/assets/{label-GWl7I6sf.js → label-1nSzpSB6.js} +1 -1
- data/public/railwatch/assets/{layout-0ZAnD3zl.js → layout-D7lE1Doo.js} +1 -1
- data/public/railwatch/assets/{live-dot-D1n_BreY.js → live-dot-UdzOfzJb.js} +1 -1
- data/public/railwatch/assets/{nav-DPxr1NNC.js → nav-BRCgp2w3.js} +1 -1
- data/public/railwatch/assets/{new-DHAHDrN7.js → new-C60G72DR.js} +1 -1
- data/public/railwatch/assets/{new-D-ZzUK9a.js → new-COyDKOOb.js} +1 -1
- data/public/railwatch/assets/{new-DEVkYv-z.js → new-Cd9zPNJ8.js} +1 -1
- data/public/railwatch/assets/{new-Dz4lZf1L.js → new-DMJGKjmH.js} +1 -1
- data/public/railwatch/assets/{new-GMrRFurX.js → new-Omvf-c9s.js} +1 -1
- data/public/railwatch/assets/{new-Cdl6pqST.js → new-vjRzERL3.js} +1 -1
- data/public/railwatch/assets/onboarding-gUjJQc-6.js +1 -0
- data/public/railwatch/assets/{origin-identity-Bk9yHWZ1.js → origin-identity-M1YUPYS0.js} +1 -1
- data/public/railwatch/assets/{percentile-picker-DfSx9yJO.js → percentile-picker-BxIVblBw.js} +1 -1
- data/public/railwatch/assets/{relative-time-CjIjb8Lg.js → relative-time-DQ4kjowZ.js} +1 -1
- data/public/railwatch/assets/{release-health-4b3tivEf.js → release-health-Cb1tMOOO.js} +1 -1
- data/public/railwatch/assets/{route-C_5BUtHK.js → route-BJkoEm7r.js} +1 -1
- data/public/railwatch/assets/{segmented-BgbT3wZa.js → segmented-C4oWE73o.js} +1 -1
- data/public/railwatch/assets/{select-DmunxCKE.js → select-ocdQJdQo.js} +1 -1
- data/public/railwatch/assets/{separator-BXzEdZ_8.js → separator-Ct2UcZ2x.js} +1 -1
- data/public/railwatch/assets/{series-chart-Xf49v9cv.js → series-chart-D6upsrSn.js} +1 -1
- data/public/railwatch/assets/{show-DlRVS18-.js → show-B4bwI9x2.js} +1 -1
- data/public/railwatch/assets/{show-DnR1Dnjd.js → show-BAjfddEn.js} +1 -1
- data/public/railwatch/assets/{show-mU38uGTg.js → show-BLJOyLb_.js} +1 -1
- data/public/railwatch/assets/{show-DYskfl3-.js → show-BoVyMQS6.js} +1 -1
- data/public/railwatch/assets/{show-DXs4deaC.js → show-Bsu1rvnK.js} +1 -1
- data/public/railwatch/assets/{show-Dn-GwFZL.js → show-C6OiJ6Hr.js} +1 -1
- data/public/railwatch/assets/{show-CAl7xcex.js → show-C8TkpEgm.js} +1 -1
- data/public/railwatch/assets/{show-BLpWUHWD.js → show-CBFBiBY2.js} +1 -1
- data/public/railwatch/assets/{show-Y74rM0VT.js → show-CEhPVMMT.js} +1 -1
- data/public/railwatch/assets/{show-SHwZjXb7.js → show-CV-lG2b6.js} +1 -1
- data/public/railwatch/assets/{show-Dily73Xk.js → show-CX_pab9S.js} +1 -1
- data/public/railwatch/assets/{show-DcpTFiLi.js → show-D6lgzL6n.js} +1 -1
- data/public/railwatch/assets/{show-vQ4bndYD.js → show-DDVsv-uS.js} +1 -1
- data/public/railwatch/assets/{show-SvLOcPrx.js → show-Dwiq-8hA.js} +1 -1
- data/public/railwatch/assets/{show-B2zLAW83.js → show-eKazflRI.js} +1 -1
- data/public/railwatch/assets/{show-DSP9Cq_C.js → show-gtwKsTsl.js} +1 -1
- data/public/railwatch/assets/{show-DI8IhNUH.js → show-yEOrk6Pt.js} +1 -1
- data/public/railwatch/assets/{sort-header-Dcq9bzmo.js → sort-header-CPM6fhXv.js} +1 -1
- data/public/railwatch/assets/{sparkline-cell-BON3qQUB.js → sparkline-cell-CXCxXPWt.js} +1 -1
- data/public/railwatch/assets/{stat-DFEyFxkO.js → stat-BNEfE8X1.js} +1 -1
- data/public/railwatch/assets/{status-badge-BaUKP7Yo.js → status-badge-D0aylrM5.js} +1 -1
- data/public/railwatch/assets/{tenant-path-DPZPc985.js → tenant-path-C4aM_cO0.js} +1 -1
- data/public/railwatch/assets/{text-link-BO77t9Xk.js → text-link-CP4lqUi6.js} +1 -1
- data/public/railwatch/assets/{textarea-DTqrCiV0.js → textarea-DzJo2ds4.js} +1 -1
- data/public/railwatch/assets/{timeline-D5rJ0es2.js → timeline-BNcJ9PMc.js} +1 -1
- data/public/railwatch/assets/{transition-DMIrZVth.js → transition-BX2M1iaq.js} +1 -1
- data/public/railwatch/assets/{use-clipboard-ByoUGQqA.js → use-clipboard-C1ApSwzA.js} +1 -1
- data/public/railwatch/assets/{use-live-D7xKz2ma.js → use-live-DWwLg1Nj.js} +1 -1
- data/public/railwatch/manifest.json +1283 -1283
- metadata +115 -115
- data/public/railwatch/assets/onboarding-D1vwaHYT.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var gn=n=>{throw TypeError(n)};var xn=(n,e,t)=>e.has(n)||gn("Cannot "+t);var ne=(n,e,t)=>(xn(n,e,"read from private field"),t?t.call(n):e.get(n)),bn=(n,e,t)=>e.has(n)?gn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),kt=(n,e,t,o)=>(xn(n,e,"write to private field"),o?o.call(n,t):e.set(n,t),t);import{B as $,c as M,j as a,C as T,a5 as nr,r as f,u as ce,L as me,a3 as or,e as ee,a6 as rr,a2 as sr,a7 as ar,a8 as ir,a9 as lr,aa as cr,o as Be,ab as Rn,X as Pn,ac as dr,ad as ur,E as fr,ae as Tn,af as pr,ag as mr,ah as hr,ai as vr,v as gr,$ as xr,aj as br,ak as yr,a0 as wr,Z as Cr,al as jr,_ as kr,A as _r,am as Mr,an as Sr,ao as Nr,z as Ir,ap as Er,aq as Rr,b as Pr,ar as Tr,as as Ar,h as $r,x as ct,S as Ke,d as Dr,at as An,au as $n}from"./inertia-DLew8ZNx.js";import{u as se,b as Or,S as dt,c as Lr,B as He,a as qe,A as zr,d as Ue}from"./app-wordmark-o9CODKP0.js";import{j as Dn,k as Fr,l as Gr,m as On,n as Ln,o as Vr,p as zn,d as ut,P as Fn,e as Gn,C as Vn,q as Hr,A as Hn,u as le,R as Bn,i as ft,h as Br,f as Kr,g as qr,F as Ur,r as Vt,D as Ht,a as Bt,s as Wr,b as Kt,c as qt,B as Yr,L as Xr}from"./live-dot-D1n_BreY.js";import{c as ye,P as Ge,b as Xe,a as V,u as pt,C as Ut}from"./index-umIAl-pL.js";import{P as X,d as Jr}from"./index-so4lRrRq.js";import{C as yn}from"./checkbox-CmhMHWZO.js";import{L as _t,I as Qr}from"./label-GWl7I6sf.js";const Zr=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],es=$("activity",Zr);const ts=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],ns=$("arrow-up-right",ts);const os=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],Kn=$("bell-ring",os);const rs=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],ss=$("book-open",rs);const as=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],is=$("bookmark-plus",as);const ls=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],Wt=$("bookmark",ls);const cs=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],ds=$("bug",cs);const us=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],qn=$("building-2",us);const fs=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],ps=$("cable",fs);const ms=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],hs=$("calendar-clock",ms);const vs=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],gs=$("chart-pie",vs);const xs=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Un=$("chevron-down",xs);const bs=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Wn=$("chevron-right",bs);const ys=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Yn=$("chevrons-up-down",ys);const ws=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Cs=$("circle",ws);const js=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],ks=$("database",js);const _s=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ms=$("file-text",_s);const Ss=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Ns=$("flame",Ss);const Is=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Es=$("gauge",Is);const Rs=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Ps=$("git-commit-horizontal",Rs);const Ts=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],As=$("hard-drive",Ts);const $s=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ds=$("layers",$s);const Os=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Xn=$("layout-grid",Os);const Ls=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],zs=$("layout-template",Ls);const Fs=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Gs=$("link-2",Fs);const Vs=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Hs=$("log-out",Vs);const Bs=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ks=$("mail",Bs);const qs=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],Us=$("monitor-smartphone",qs);const Ws=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],Jn=$("octagon-alert",Ws);const Ys=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Xs=$("package",Ys);const Js=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Qs=$("panel-left",Js);const Zs=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],ea=$("pin-off",Zs);const ta=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],na=$("pin",ta);const oa=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Qn=$("plug",oa);const ra=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],sa=$("plus",ra);const aa=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],ia=$("rocket",aa);const la=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Yt=$("search",la);const ca=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],da=$("server",ca);const ua=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],fa=$("settings",ua);const pa=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],ma=$("siren",pa);const ha=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],va=$("sparkles",ha);const ga=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],xa=$("terminal",ga);const ba=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],ya=$("timer",ba);const wa=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ca=$("trash-2",wa);const ja=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Xt=$("users",ja);const ka=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],_a=$("workflow",ka);function Ma(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Dn,{"data-slot":"sheet",...t}),e[2]=t,e[3]=o):o=e[3],o}function Sa(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Ln,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=o):o=e[3],o}function Na(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(zn,{"data-slot":"sheet-overlay",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ia(n){const e=M.c(17);let t,o,r,s;e[0]!==n?({className:o,children:t,side:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?"right":s;let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Na,{}),e[5]=l):l=e[5];const d=i==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",c=i==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",u=i==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=i==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==o||e[7]!==d||e[8]!==c||e[9]!==u||e[10]!==p?(m=T("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",d,c,u,p,o),e[6]=o,e[7]=d,e[8]=c,e[9]=u,e[10]=p,e[11]=m):m=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsxs(Vr,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[a.jsx(nr,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=h):h=e[12];let x;return e[13]!==t||e[14]!==r||e[15]!==m?(x=a.jsxs(Sa,{children:[l,a.jsxs(On,{"data-slot":"sheet-content",className:m,...r,children:[t,h]})]}),e[13]=t,e[14]=r,e[15]=m,e[16]=x):x=e[16],x}function Ea(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sheet-header",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ra(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground font-semibold",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Fr,{"data-slot":"sheet-title",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Pa(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-muted-foreground text-sm",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Gr,{"data-slot":"sheet-description",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}var Ta=Object.defineProperty,Aa=(n,e)=>Ta(n,"name",{value:e,configurable:!0}),$a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Da=f.forwardRef(Aa(function(e,t){return a.jsx(X.span,{...e,ref:t,style:{...$a,...e.style}})},"VisuallyHidden")),Oa=Da,La=Object.defineProperty,Q=(n,e)=>La(n,"name",{value:e,configurable:!0}),[Jt,pu]=ye("Tooltip",[ut]),mt=ut(),za="TooltipProvider",Fa=700,Pt="tooltip.open",[Ga,Qt]=Jt(za),Va=Q(n=>{const{__scopeTooltip:e,delayDuration:t=Fa,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=n,i=f.useRef(!0),l=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const c=d.current;return()=>window.clearTimeout(c)},[]),a.jsx(Ga,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:f.useCallback(()=>{o<=0||(window.clearTimeout(d.current),i.current=!1)},[o]),onClose:f.useCallback(()=>{o<=0||(window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,o))},[o]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(c=>{l.current=c},[]),disableHoverableContent:r,children:s})},"TooltipProvider"),Tt="Tooltip",[Ha,Je]=Jt(Tt),Ba=Q(n=>{const{__scopeTooltip:e,children:t,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=n,d=Qt(Tt,n.__scopeTooltip),c=mt(e),[u,p]=f.useState(null),[m,h]=f.useState(void 0),x=le(),v=f.useRef(0),g=i??d.disableHoverableContent,w=l??d.delayDuration,y=f.useRef(!1),[b,j]=pt({prop:o,defaultProp:r??!1,onChange:Q(P=>{P?(d.onOpen(),document.dispatchEvent(new CustomEvent(Pt))):d.onClose(),s?.(P)},"onChange"),caller:Tt}),_=f.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),k=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,j(!0)},[j]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j(!1)},[j]),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,j(!0),v.current=0},w)},[w,j]);f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]);const N=m??x;return a.jsx(Bn,{...c,children:a.jsx(Ha,{scope:e,contentId:N,setContentId:h,open:b,stateAttribute:_,trigger:u,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?E():k()},[d.isOpenDelayedRef,E,k]),onTriggerLeave:f.useCallback(()=>{g?S():(window.clearTimeout(v.current),v.current=0)},[S,g]),onOpen:k,onClose:S,disableHoverableContent:g,children:t})})},"Tooltip"),wn="TooltipTrigger",Ka=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,...r}=e,s=Je(wn,o),i=Qt(wn,o),l=mt(o),d=f.useRef(null),c=se(t,d,s.onTriggerChange),u=f.useRef(!1),p=f.useRef(!1),m=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),a.jsx(Hn,{asChild:!0,...l,children:a.jsx(X.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:V(e.onPointerMove,h=>{h.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:V(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:V(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:V(e.onBlur,s.onClose),onClick:V(e.onClick,s.onClose)})})},"TooltipTrigger")),Zn="TooltipPortal",[qa,Ua]=Jt(Zn,{forceMount:void 0}),Wa=Q(n=>{const{__scopeTooltip:e,forceMount:t,children:o,container:r}=n,s=Je(Zn,e);return a.jsx(qa,{scope:e,forceMount:t,children:a.jsx(Ge,{present:t||s.open,children:a.jsx(Fn,{asChild:!0,container:r,children:o})})})},"TooltipPortal"),We="TooltipContent",Ya=f.forwardRef(Q(function(e,t){const o=Ua(We,e.__scopeTooltip),{forceMount:r=o.forceMount,side:s="top",...i}=e,l=Je(We,e.__scopeTooltip);return a.jsx(Ge,{present:r||l.open,children:l.disableHoverableContent?a.jsx(eo,{side:s,...i,ref:t}):a.jsx(Xa,{side:s,...i,ref:t})})},"TooltipContent")),Xa=f.forwardRef(Q(function(e,t){const o=Je(We,e.__scopeTooltip),r=Qt(We,e.__scopeTooltip),s=f.useRef(null),i=se(t,s),[l,d]=f.useState(null),{trigger:c,onClose:u}=o,p=s.current,{onPointerInTransitChange:m}=r,h=f.useCallback(()=>{d(null),m(!1)},[m]),x=f.useCallback((v,g)=>{const w=v.currentTarget,y={x:v.clientX,y:v.clientY},b=to(y,w.getBoundingClientRect()),j=no(y,b),_=oo(g.getBoundingClientRect()),k=so([...j,..._]);d(k),m(!0)},[m]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(c&&p){const v=Q(w=>x(w,p),"handleTriggerLeave"),g=Q(w=>x(w,c),"handleContentLeave");return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",g)}}},[c,p,x,h]),f.useEffect(()=>{if(l){const v=Q(g=>{const w=g.target,y={x:g.clientX,y:g.clientY},b=c?.contains(w)||p?.contains(w),j=!ro(y,l);b?h():j&&(h(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,l,u,h]),a.jsx(eo,{...e,ref:i})},"TooltipContentHoverable")),Ja=Or("TooltipContent"),eo=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,children:r,"aria-label":s,id:i,onEscapeKeyDown:l,onPointerDownOutside:d,...c}=e,u=Je(We,o),p=mt(o),{onClose:m}=u;f.useEffect(()=>(document.addEventListener(Pt,m),()=>document.removeEventListener(Pt,m)),[m]),f.useEffect(()=>{if(u.trigger){const x=Q(v=>{v.target instanceof Node&&v.target.contains(u.trigger)&&m()},"handleScroll");return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[u.trigger,m]);const{setContentId:h}=u;return Xe(()=>(h(i),()=>{h(void 0)}),[i,h]),a.jsx(Gn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:x=>x.preventDefault(),onDismiss:m,children:a.jsxs(Vn,{"data-state":u.stateAttribute,role:s?void 0:"tooltip",id:s?void 0:u.contentId,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(Ja,{children:r}),s?a.jsx(Oa,{id:u.contentId,role:"tooltip",children:s}):null]})})},"TooltipContentImpl")),Qa=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,...r}=e,s=mt(o);return a.jsx(Hr,{...s,...r,ref:t})},"TooltipArrow"));function to(n,e){const t=Math.abs(e.top-n.y),o=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),s=Math.abs(e.left-n.x);switch(Math.min(t,o,r,s)){case s:return"left";case r:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}Q(to,"getExitSideFromRect");function no(n,e,t=5){const o=[];switch(e){case"top":o.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":o.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":o.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":o.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return o}Q(no,"getPaddedExitPoints");function oo(n){const{top:e,right:t,bottom:o,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:o},{x:r,y:o}]}Q(oo,"getPointsFromRect");function ro(n,e){const{x:t,y:o}=n;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const l=e[s],d=e[i],c=l.x,u=l.y,p=d.x,m=d.y;u>o!=m>o&&t<(p-c)*(o-u)/(m-u)+c&&(r=!r)}return r}Q(ro,"isPointInPolygon");function so(n){const e=n.slice();return e.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),ao(e)}Q(so,"getHull");function ao(n){if(n.length<=1)return n.slice();const e=[];for(let o=0;o<n.length;o++){const r=n[o];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let o=n.length-1;o>=0;o--){const r=n[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}Q(ao,"getHullPresorted");var Za=Va,ei=Ba,ti=Ka,ni=Wa,oi=Ya,ri=Qa;function io(n){const e=M.c(6);let t,o;e[0]!==n?({delayDuration:o,...t}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);const r=o===void 0?0:o;let s;return e[3]!==r||e[4]!==t?(s=a.jsx(Za,{"data-slot":"tooltip-provider",delayDuration:r,...t}),e[3]=r,e[4]=t,e[5]=s):s=e[5],s}function si(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(io,{children:a.jsx(ei,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=o):o=e[3],o}function ai(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(ti,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function ii(n){const e=M.c(13);let t,o,r,s;e[0]!==n?({className:o,sideOffset:s,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?0:s;let l;e[5]!==o?(l=T("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",o),e[5]=o,e[6]=l):l=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(ri,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=d):d=e[7];let c;return e[8]!==t||e[9]!==r||e[10]!==i||e[11]!==l?(c=a.jsx(ni,{children:a.jsxs(oi,{"data-slot":"tooltip-content",sideOffset:i,className:l,...r,children:[t,d]})}),e[8]=t,e[9]=r,e[10]=i,e[11]=l,e[12]=c):c=e[12],c}const li=768,At=window.matchMedia(`(max-width: ${li-1}px)`);function ci(n){return At.addEventListener("change",n),()=>{At.removeEventListener("change",n)}}function di(){return At.matches}function lo(){return f.useSyncExternalStore(ci,di)}const ui="sidebar_state",fi=3600*24*7,pi="14.25rem",mi="18rem",hi="3rem",vi="b",co=f.createContext(null);function ht(){const n=f.useContext(co);if(!n)throw new Error("useSidebar must be used within a SidebarProvider.");return n}function gi(n){const e=M.c(36);let t,o,r,s,i,l,d;e[0]!==n?({defaultOpen:d,open:r,onOpenChange:i,className:o,style:l,children:t,...s}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l,e[7]=d):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6],d=e[7]);const c=d===void 0?!0:d,u=lo(),[p,m]=f.useState(!1),[h,x]=f.useState(c),v=r??h;let g;e[8]!==v||e[9]!==i?(g=q=>{const B=typeof q=="function"?q(v):q;i?i(B):x(B),document.cookie=`${ui}=${B}; path=/; max-age=${fi}`},e[8]=v,e[9]=i,e[10]=g):g=e[10];const w=g;let y;e[11]!==u||e[12]!==w?(y=()=>u?m(bi):w(xi),e[11]=u,e[12]=w,e[13]=y):y=e[13];const b=y;let j,_;e[14]!==b?(j=()=>{const q=B=>{B.key===vi&&(B.metaKey||B.ctrlKey)&&(B.preventDefault(),b())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},_=[b],e[14]=b,e[15]=j,e[16]=_):(j=e[15],_=e[16]),f.useEffect(j,_);const k=v?"expanded":"collapsed";let S;e[17]!==u||e[18]!==v||e[19]!==p||e[20]!==w||e[21]!==k||e[22]!==b?(S={state:k,open:v,setOpen:w,isMobile:u,openMobile:p,setOpenMobile:m,toggleSidebar:b},e[17]=u,e[18]=v,e[19]=p,e[20]=w,e[21]=k,e[22]=b,e[23]=S):S=e[23];const E=S;let N;e[24]!==l?(N={"--sidebar-width":pi,"--sidebar-width-icon":hi,...l},e[24]=l,e[25]=N):N=e[25];const P=N;let O;e[26]!==o?(O=T("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",o),e[26]=o,e[27]=O):O=e[27];let G;e[28]!==t||e[29]!==s||e[30]!==P||e[31]!==O?(G=a.jsx(io,{delayDuration:0,children:a.jsx("div",{"data-slot":"sidebar-wrapper",style:P,className:O,...s,children:t})}),e[28]=t,e[29]=s,e[30]=P,e[31]=O,e[32]=G):G=e[32];let K;return e[33]!==E||e[34]!==G?(K=a.jsx(co.Provider,{value:E,children:G}),e[33]=E,e[34]=G,e[35]=K):K=e[35],K}function xi(n){return!n}function bi(n){return!n}function yi(n){const e=M.c(46);let t,o,r,s,i,l;e[0]!==n?({side:s,variant:i,collapsible:l,className:o,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6]);const d=s===void 0?"left":s,c=i===void 0?"sidebar":i,u=l===void 0?"offcanvas":l,{isMobile:p,state:m,openMobile:h,setOpenMobile:x}=ht();if(u==="none"){let N;e[7]!==o?(N=T("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),e[7]=o,e[8]=N):N=e[8];let P;return e[9]!==t||e[10]!==r||e[11]!==N?(P=a.jsx("div",{"data-slot":"sidebar",className:N,...r,children:t}),e[9]=t,e[10]=r,e[11]=N,e[12]=P):P=e[12],P}if(p){let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":mi},e[13]=N):N=e[13];let P;e[14]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsxs(Ea,{className:"sr-only",children:[a.jsx(Ra,{children:"Sidebar"}),a.jsx(Pa,{children:"Displays the mobile sidebar."})]}),e[14]=P):P=e[14];let O;e[15]!==t?(O=a.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[15]=t,e[16]=O):O=e[16];let G;e[17]!==d||e[18]!==O?(G=a.jsxs(Ia,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:d,children:[P,O]}),e[17]=d,e[18]=O,e[19]=G):G=e[19];let K;return e[20]!==h||e[21]!==r||e[22]!==x||e[23]!==G?(K=a.jsx(Ma,{open:h,onOpenChange:x,...r,children:G}),e[20]=h,e[21]=r,e[22]=x,e[23]=G,e[24]=K):K=e[24],K}const v=m==="collapsed"?u:"",g=c==="floating"||c==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let w;e[25]!==g?(w=T("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",g),e[25]=g,e[26]=w):w=e[26];let y;e[27]!==w?(y=a.jsx("div",{"data-slot":"sidebar-gap",className:w}),e[27]=w,e[28]=y):y=e[28];const b=d==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",j=c==="floating"||c==="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-r group-data-[side=right]:border-l";let _;e[29]!==o||e[30]!==b||e[31]!==j?(_=T("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",b,j,o),e[29]=o,e[30]=b,e[31]=j,e[32]=_):_=e[32];let k;e[33]!==t?(k=a.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:t}),e[33]=t,e[34]=k):k=e[34];let S;e[35]!==r||e[36]!==_||e[37]!==k?(S=a.jsx("div",{"data-slot":"sidebar-container",className:_,...r,children:k}),e[35]=r,e[36]=_,e[37]=k,e[38]=S):S=e[38];let E;return e[39]!==d||e[40]!==m||e[41]!==S||e[42]!==v||e[43]!==y||e[44]!==c?(E=a.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":v,"data-variant":c,"data-side":d,"data-slot":"sidebar",children:[y,S]}),e[39]=d,e[40]=m,e[41]=S,e[42]=v,e[43]=y,e[44]=c,e[45]=E):E=e[45],E}function wi(n){const e=M.c(15);let t,o,r;e[0]!==n?({className:t,onClick:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const{toggleSidebar:s}=ht();let i;e[4]!==t?(i=T("size-7",t),e[4]=t,e[5]=i):i=e[5];let l;e[6]!==o||e[7]!==s?(l=p=>{o?.(p),s()},e[6]=o,e[7]=s,e[8]=l):l=e[8];let d,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Qs,{}),c=a.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=c):(d=e[9],c=e[10]);let u;return e[11]!==r||e[12]!==i||e[13]!==l?(u=a.jsxs(He,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:i,onClick:l,...r,children:[d,c]}),e[11]=r,e[12]=i,e[13]=l,e[14]=u):u=e[14],u}function Ci(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("main",{"data-slot":"sidebar-inset",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ji(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ki(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function _i(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Zt(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("relative flex w-full min-w-0 flex-col p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Mi(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,asChild:r,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const i=(r===void 0?!1:r)?dt:"div";let l;e[4]!==t?(l=T("text-muted-foreground ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 pt-2 text-xs font-semibold outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),e[4]=t,e[5]=l):l=e[5];let d;return e[6]!==i||e[7]!==o||e[8]!==l?(d=a.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l,...o}),e[6]=i,e[7]=o,e[8]=l,e[9]=d):d=e[9],d}function Si(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("w-full text-sm",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function we(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex w-full min-w-0 flex-col gap-1",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ge(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("group/menu-item relative",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}const Ni=Lr("peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md border border-transparent px-2 text-left text-sm text-sidebar-foreground outline-hidden ring-sidebar-ring transition-colors hover:text-sidebar-accent-foreground focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:border-sidebar-border data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-lg data-[active=true]:shadow-black/4 data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-9 text-sm",sm:"h-7 text-xs",lg:"h-14 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function xe(n){const e=M.c(28);let t,o,r,s,i,l,d;e[0]!==n?({asChild:r,isActive:s,variant:i,size:l,tooltip:d,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l,e[7]=d):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6],d=e[7]);const c=r===void 0?!1:r,u=s===void 0?!1:s,p=i===void 0?"default":i,m=l===void 0?"default":l,h=c?dt:"button",{isMobile:x,state:v}=ht();let g;e[8]!==t||e[9]!==m||e[10]!==p?(g=T(Ni({variant:p,size:m}),t),e[8]=t,e[9]=m,e[10]=p,e[11]=g):g=e[11];let w;e[12]!==h||e[13]!==u||e[14]!==o||e[15]!==m||e[16]!==g?(w=a.jsx(h,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":u,className:g,...o}),e[12]=h,e[13]=u,e[14]=o,e[15]=m,e[16]=g,e[17]=w):w=e[17];const y=w;if(!d)return y;if(typeof d=="string"){let S;e[18]!==d?(S={children:d},e[18]=d,e[19]=S):S=e[19],d=S}let b;e[20]!==y?(b=a.jsx(ai,{asChild:!0,children:y}),e[20]=y,e[21]=b):b=e[21];const j=v!=="collapsed"||x;let _;e[22]!==j||e[23]!==d?(_=a.jsx(ii,{side:"right",align:"center",hidden:j,...d}),e[22]=j,e[23]=d,e[24]=_):_=e[24];let k;return e[25]!==b||e[26]!==_?(k=a.jsxs(si,{children:[b,_]}),e[25]=b,e[26]=_,e[27]=k):k=e[27],k}function Ii(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex min-w-0 flex-col gap-0.5 py-0.5 pl-6","group-data-[collapsible=icon]:hidden",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ei(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("group/menu-sub-item relative",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Cn(n){const e=M.c(16);let t,o,r,s,i;e[0]!==n?({asChild:r,size:s,isActive:i,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5]);const l=r===void 0?!1:r,d=s===void 0?"md":s,c=i===void 0?!1:i,u=l?dt:"a",p=d==="sm"&&"text-xs",m=d==="md"&&"text-sm";let h;e[6]!==t||e[7]!==p||e[8]!==m?(h=T("text-sidebar-foreground ring-sidebar-ring hover:text-sidebar-accent-foreground flex h-8 min-w-0 items-center gap-2 overflow-hidden rounded-md border border-transparent px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:border-sidebar-border data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-lg data-[active=true]:shadow-black/4",p,m,"group-data-[collapsible=icon]:hidden",t),e[6]=t,e[7]=p,e[8]=m,e[9]=h):h=e[9];let x;return e[10]!==u||e[11]!==c||e[12]!==o||e[13]!==d||e[14]!==h?(x=a.jsx(u,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":d,"data-active":c,className:h,...o}),e[10]=u,e[11]=c,e[12]=o,e[13]=d,e[14]=h,e[15]=x):x=e[15],x}function Ri(n){const e=M.c(10);let t,o,r;if(e[0]!==n?({variant:r,children:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]),(r===void 0?"header":r)==="sidebar"){let l;return e[4]!==t||e[5]!==o?(l=a.jsx(Ci,{...o,children:t}),e[4]=t,e[5]=o,e[6]=l):l=e[6],l}let i;return e[7]!==t||e[8]!==o?(i=a.jsx("main",{className:"mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl",...o,children:t}),e[7]=t,e[8]=o,e[9]=i):i=e[9],i}function Pi(n){const e=M.c(6),{children:t,variant:o}=n,r=o===void 0?"header":o,[s,i]=f.useState(Ti);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=u=>{i(u),typeof window<"u"&&localStorage.setItem("sidebar",String(u))},e[0]=l):l=e[0];const d=l;if(r==="header"){let u;return e[1]!==t?(u=a.jsx("div",{className:"flex min-h-screen w-full flex-col",children:t}),e[1]=t,e[2]=u):u=e[2],u}let c;return e[3]!==t||e[4]!==s?(c=a.jsx(gi,{defaultOpen:s,open:s,onOpenChange:d,children:t}),e[3]=t,e[4]=s,e[5]=c):c=e[5],c}function Ti(){return typeof window<"u"?localStorage.getItem("sidebar")!=="false":!0}function Ai(n){const e=M.c(10);let t,o,r;e[0]!==n?({iconNode:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("h-4 w-4",o),e[4]=o,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==r||e[8]!==s?(i=a.jsx(t,{className:s,...r}),e[6]=t,e[7]=r,e[8]=s,e[9]=i):i=e[9],i}function $i(n){const e=M.c(12);let t,o,r;e[0]!==n?({items:o,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=`group-data-[collapsible=icon]:p-0 ${t??""}`;let i;e[4]!==o?(i=o.map(Di),e[4]=o,e[5]=i):i=e[5];let l;e[6]!==i?(l=a.jsx(Si,{children:a.jsx(we,{children:i})}),e[6]=i,e[7]=l):l=e[7];let d;return e[8]!==r||e[9]!==s||e[10]!==l?(d=a.jsx(Zt,{...r,className:s,children:l}),e[8]=r,e[9]=s,e[10]=l,e[11]=d):d=e[11],d}function Di(n){return a.jsx(ge,{children:a.jsx(xe,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:a.jsxs("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",children:[n.icon&&a.jsx(Ai,{iconNode:n.icon,className:"h-5 w-5"}),a.jsx("span",{children:n.title})]})})},n.title)}function Oi(n){const e=M.c(14),{items:t,label:o}=n;let r;e[0]!==t?(r=t===void 0?[]:t,e[0]=t,e[1]=r):r=e[1];const s=r,i=o===void 0?"Platform":o,l=ce();let d;e[2]!==i?(d=i&&a.jsx(Mi,{children:i}),e[2]=i,e[3]=d):d=e[3];let c;if(e[4]!==s||e[5]!==l){let m;e[7]!==l?(m=h=>a.jsx(ge,{children:a.jsx(xe,{asChild:!0,isActive:l.url.startsWith(h.href),tooltip:{children:h.title},children:a.jsxs(me,{href:h.href,prefetch:!0,children:[h.icon&&a.jsx(h.icon,{}),a.jsx("span",{children:h.title})]})})},h.title),e[7]=l,e[8]=m):m=e[8],c=s.map(m),e[4]=s,e[5]=l,e[6]=c}else c=e[6];let u;e[9]!==c?(u=a.jsx(we,{children:c}),e[9]=c,e[10]=u):u=e[10];let p;return e[11]!==d||e[12]!==u?(p=a.jsxs(Zt,{className:"p-0",children:[d,u]}),e[11]=d,e[12]=u,e[13]=p):p=e[13],p}var Li=Object.defineProperty,Z=(n,e)=>Li(n,"name",{value:e,configurable:!0});function en(n){const e=n+"CollectionProvider",[t,o]=ye(e),[r,s]=t(e,{collectionRef:{current:null},itemMap:new Map}),i=Z(v=>{const{scope:g,children:w}=v,y=f.useRef(null),b=f.useRef(new Map).current;return a.jsx(r,{scope:g,itemMap:b,collectionRef:y,children:w})},"CollectionProvider");i.displayName=e;const l=n+"CollectionSlot",d=qe(l),c=f.forwardRef((v,g)=>{const{scope:w,children:y}=v,b=s(l,w),j=se(g,b.collectionRef);return a.jsx(d,{ref:j,children:y})});c.displayName=l;const u=n+"CollectionItemSlot",p="data-radix-collection-item",m=qe(u),h=f.forwardRef((v,g)=>{const{scope:w,children:y,...b}=v,j=f.useRef(null),_=se(g,j),k=s(u,w);return f.useEffect(()=>(k.itemMap.set(j,{ref:j,...b}),()=>{k.itemMap.delete(j)})),a.jsx(m,{[p]:"",ref:_,children:y})});h.displayName=u;function x(v){const g=s(n+"CollectionConsumer",v);return f.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((k,S)=>b.indexOf(k.ref.current)-b.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return Z(x,"useCollection"),[{Provider:i,Slot:c,ItemSlot:h},x,o]}Z(en,"createCollection");var jn=new WeakMap,J,ae,Mt=(ae=class extends Map{constructor(t){super(t);bn(this,J);kt(this,J,[...super.keys()]),jn.set(this,!0)}set(t,o){return jn.get(this)&&(this.has(t)?ne(this,J)[ne(this,J).indexOf(t)]=t:ne(this,J).push(t)),super.set(t,o),this}insert(t,o,r){const s=this.has(o),i=ne(this,J).length,l=tn(t);let d=l>=0?l:i+l;const c=d<0||d>=i?-1:d;if(c===this.size||s&&c===this.size-1||c===-1)return this.set(o,r),this;const u=this.size+(s?0:1);l<0&&d++;const p=[...ne(this,J)];let m,h=!1;for(let x=d;x<u;x++)if(d===x){let v=p[x];p[x]===o&&(v=p[x+1]),s&&this.delete(o),m=this.get(v),this.set(o,r)}else{!h&&p[x-1]===o&&(h=!0);const v=p[h?x:x-1],g=m;m=this.get(v),this.delete(v),this.set(v,g)}return this}with(t,o,r){const s=new ae(this);return s.insert(t,o,r),s}before(t){const o=ne(this,J).indexOf(t)-1;if(!(o<0))return this.entryAt(o)}setBefore(t,o,r){const s=ne(this,J).indexOf(t);return s===-1?this:this.insert(s,o,r)}after(t){let o=ne(this,J).indexOf(t);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(t,o,r){const s=ne(this,J).indexOf(t);return s===-1?this:this.insert(s+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return kt(this,J,[]),super.clear()}delete(t){const o=super.delete(t);return o&&ne(this,J).splice(ne(this,J).indexOf(t),1),o}deleteAt(t){const o=this.keyAt(t);return o!==void 0?this.delete(o):!1}at(t){const o=it(ne(this,J),t);if(o!==void 0)return this.get(o)}entryAt(t){const o=it(ne(this,J),t);if(o!==void 0)return[o,this.get(o)]}indexOf(t){return ne(this,J).indexOf(t)}keyAt(t){return it(ne(this,J),t)}from(t,o){const r=this.indexOf(t);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(t,o){const r=this.indexOf(t);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return s;r++}}findIndex(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return r;r++}return-1}filter(t,o){const r=[];let s=0;for(const i of this)Reflect.apply(t,o,[i,s,this])&&r.push(i),s++;return new ae(r)}map(t,o){const r=[];let s=0;for(const i of this)r.push([i[0],Reflect.apply(t,o,[i,s,this])]),s++;return new ae(r)}reduce(...t){const[o,r]=t;let s=0,i=r??this.at(0);for(const l of this)s===0&&t.length===1?i=l:i=Reflect.apply(o,this,[i,l,s,this]),s++;return i}reduceRight(...t){const[o,r]=t;let s=r??this.at(-1);for(let i=this.size-1;i>=0;i--){const l=this.at(i);i===this.size-1&&t.length===1?s=l:s=Reflect.apply(o,this,[s,l,i,this])}return s}toSorted(t){const o=[...this.entries()].sort(t);return new ae(o)}toReversed(){const t=new ae;for(let o=this.size-1;o>=0;o--){const r=this.keyAt(o),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){const o=[...this.entries()];return o.splice(...t),new ae(o)}slice(t,o){const r=new ae;let s=this.size-1;if(t===void 0)return r;t<0&&(t=t+this.size),o!==void 0&&o>0&&(s=o-1);for(let i=t;i<=s;i++){const l=this.keyAt(i),d=this.get(l);r.set(l,d)}return r}every(t,o){let r=0;for(const s of this){if(!Reflect.apply(t,o,[s,r,this]))return!1;r++}return!0}some(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return!0;r++}return!1}},J=new WeakMap,Z(ae,"OrderedDict"),ae);function it(n,e){if("at"in Array.prototype)return Array.prototype.at.call(n,e);const t=uo(n,e);return t===-1?void 0:n[t]}Z(it,"at");function uo(n,e){const t=n.length,o=tn(e),r=o>=0?o:t+o;return r<0||r>=t?-1:r}Z(uo,"toSafeIndex");function tn(n){return n!==n||n===0?0:Math.trunc(n)}Z(tn,"toSafeInteger");function zi(n){const e=n+"CollectionProvider",[t,o]=ye(e),[r,s]=t(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Mt,setItemMap:Z(()=>{},"setItemMap")}),i=Z(({state:b,...j})=>b?a.jsx(d,{...j,state:b}):a.jsx(l,{...j}),"CollectionProvider");i.displayName=e;const l=Z(b=>{const j=g();return a.jsx(d,{...b,state:j})},"CollectionInit");l.displayName=e+"Init";const d=Z(b=>{const{scope:j,children:_,state:k}=b,S=f.useRef(null),[E,N]=f.useState(null),P=se(S,N),[O,G]=k;return f.useEffect(()=>{if(!E)return;const K=mo(()=>{});return K.observe(E,{childList:!0,subtree:!0}),()=>{K.disconnect()}},[E]),a.jsx(r,{scope:j,itemMap:O,setItemMap:G,collectionRef:P,collectionRefObject:S,collectionElement:E,children:_})},"CollectionProviderImpl");d.displayName=e+"Impl";const c=n+"CollectionSlot",u=qe(c),p=f.forwardRef((b,j)=>{const{scope:_,children:k}=b,S=s(c,_),E=se(j,S.collectionRef);return a.jsx(u,{ref:E,children:k})});p.displayName=c;const m=n+"CollectionItemSlot",h="data-radix-collection-item",x=qe(m),v=f.forwardRef((b,j)=>{const{scope:_,children:k,...S}=b,E=f.useRef(null),[N,P]=f.useState(null),O=se(j,E,P),G=s(m,_),{setItemMap:K}=G,q=f.useRef(S);fo(q.current,S)||(q.current=S);const B=q.current;return f.useEffect(()=>{const oe=B;return K(U=>N?U.has(N)?U.set(N,{...oe,element:N}).toSorted($t):(U.set(N,{...oe,element:N}),U.toSorted($t)):U),()=>{K(U=>!N||!U.has(N)?U:(U.delete(N),new Mt(U)))}},[N,B,K]),a.jsx(x,{[h]:"",ref:O,children:k})});v.displayName=m;function g(){return f.useState(new Mt)}Z(g,"useInitCollection");function w(b){const{itemMap:j}=s(n+"CollectionConsumer",b);return j}return Z(w,"useCollection"),[{Provider:i,Slot:p,ItemSlot:v},{createCollectionScope:o,useCollection:w,useInitCollection:g}]}Z(zi,"createCollection");function fo(n,e){if(n===e)return!0;if(typeof n!="object"||typeof e!="object"||n==null||e==null)return!1;const t=Object.keys(n),o=Object.keys(e);if(t.length!==o.length)return!1;for(const r of t)if(!Object.prototype.hasOwnProperty.call(e,r)||n[r]!==e[r])return!1;return!0}Z(fo,"shallowEqual");function po(n,e){return!!(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)}Z(po,"isElementPreceding");function $t(n,e){return!n[1].element||!e[1].element?0:po(n[1].element,e[1].element)?-1:1}Z($t,"sortByDocumentPosition");function mo(n){return new MutationObserver(t=>{for(const o of t)if(o.type==="childList"){n();return}})}Z(mo,"getChildListObserver");var Fi=Object.defineProperty,Gi=(n,e)=>Fi(n,"name",{value:e,configurable:!0}),Vi=f.createContext(void 0);function nn(n){const e=f.useContext(Vi);return n||e||"ltr"}Gi(nn,"useDirection");var Hi=Object.defineProperty,on=(n,e)=>Hi(n,"name",{value:e,configurable:!0}),St=!1;function ho(){const[n,e]=f.useState(St);return f.useEffect(()=>{St||(St=!0,e(!0))},[]),n}on(ho,"useIsHydrated");var vo=or[" useSyncExternalStore ".trim().toString()];function go(){return()=>{}}on(go,"subscribe");function xo(){return vo(go,()=>!0,()=>!1)}on(xo,"useIsHydratedModern");var Bi=typeof vo=="function"?xo:ho,Ki=Object.defineProperty,je=(n,e)=>Ki(n,"name",{value:e,configurable:!0}),Nt="rovingFocusGroup.onEntryFocus",qi={bubbles:!1,cancelable:!0},vt="RovingFocusGroup",[Dt,bo,Ui]=en(vt),[Wi,yo]=ye(vt,[Ui]),[Yi,Xi]=Wi(vt),Ji=f.forwardRef(je(function(e,t){return a.jsx(Dt.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Dt.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Qi,{...e,ref:t})})})},"RovingFocusGroup")),Qi=f.forwardRef(je(function(e,t){const{__scopeRovingFocusGroup:o,orientation:r,loop:s=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...m}=e,h=f.useRef(null),x=se(t,h),v=nn(i),[g,w]=pt({prop:l,defaultProp:d??null,onChange:c,caller:vt}),[y,b]=f.useState(!1),j=ft(u),_=bo(o),k=f.useRef(!1),[S,E]=f.useState(0);return f.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Nt,j),()=>N.removeEventListener(Nt,j)},[j]),a.jsx(Yi,{scope:o,orientation:r,dir:v,loop:s,currentTabStopId:g,onItemFocus:f.useCallback(N=>w(N),[w]),onItemShiftTab:f.useCallback(()=>b(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(N=>N+1),[]),onFocusableItemRemove:f.useCallback(()=>E(N=>N-1),[]),children:a.jsx(X.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{k.current=!0}),onFocus:V(e.onFocus,N=>{const P=!k.current;if(N.target===N.currentTarget&&P&&!y){const O=new CustomEvent(Nt,qi);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const G=_().filter(U=>U.focusable),K=G.find(U=>U.active),q=G.find(U=>U.id===g),oe=[K,q,...G].filter(Boolean).map(U=>U.ref.current);rn(oe,p)}}k.current=!1}),onBlur:V(e.onBlur,()=>b(!1))})})},"RovingFocusGroupImpl")),Zi="RovingFocusGroupItem",el=f.forwardRef(je(function(e,t){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:s=!1,tabStopId:i,children:l,...d}=e,c=le(),u=i||c,p=Xi(Zi,o),m=p.currentTabStopId===u,h=bo(o),{onFocusableItemAdd:x,onFocusableItemRemove:v,currentTabStopId:g}=p,w=Bi();return Xe(()=>{if(!(!w||!r))return x(),()=>v()},[w,r,x,v]),f.useEffect(()=>{if(!(w||!r))return x(),()=>v()},[w,r,x,v]),a.jsx(Dt.ItemSlot,{scope:o,id:u,focusable:r,active:s,children:a.jsx(X.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:V(e.onMouseDown,y=>{r?p.onItemFocus(u):y.preventDefault()}),onFocus:V(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:V(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){p.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=Co(y,p.orientation,p.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let _=h().filter(k=>k.focusable).map(k=>k.ref.current);if(b==="last")_.reverse();else if(b==="prev"||b==="next"){b==="prev"&&_.reverse();const k=_.indexOf(y.currentTarget);_=p.loop?jo(_,k+1):_.slice(k+1)}setTimeout(()=>rn(_))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:g!=null}):l})})},"RovingFocusGroupItem")),tl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wo(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}je(wo,"getDirectionAwareKey");function Co(n,e,t){const o=wo(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return tl[o]}je(Co,"getFocusIntent");function rn(n,e=!1){const t=document.activeElement;for(const o of n)if(o===t||(o.focus({preventScroll:e}),document.activeElement!==t))return}je(rn,"focusFirst");function jo(n,e){return n.map((t,o)=>n[(e+o)%n.length])}je(jo,"wrapArray");var nl=Ji,ol=el,rl=Object.defineProperty,H=(n,e)=>rl(n,"name",{value:e,configurable:!0}),sl=["Enter"," "],al=["ArrowDown","PageUp","Home"],ko=["ArrowUp","PageDown","End"],il=[...al,...ko],gt="Menu",[Ot,ll,cl]=en(gt),[ke,_o]=ye(gt,[cl,ut,yo]),sn=ut(),Mo=yo(),[dl,Qe]=ke(gt),[ul,an]=ke(gt),fl=H(n=>{const{__scopeMenu:e,open:t=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=n,l=sn(e),[d,c]=f.useState(null),u=f.useRef(!1),p=ft(s),m=nn(r);return f.useEffect(()=>{const h=H(()=>{u.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},"handleKeyDown"),x=H(()=>u.current=!1,"handlePointer");return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),f.useEffect(()=>{if(!t)return;const h=H(()=>p(!1),"handleBlur");return window.addEventListener("blur",h),()=>window.removeEventListener("blur",h)},[t,p]),a.jsx(Bn,{...l,children:a.jsx(dl,{scope:e,open:t,onOpenChange:p,content:d,onContentChange:c,children:a.jsx(ul,{scope:e,onClose:f.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:u,dir:m,modal:i,children:o})})})},"Menu"),pl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,...r}=e,s=sn(o);return a.jsx(Hn,{...s,...r,ref:t})},"MenuAnchor")),So="MenuPortal",[ml,hl]=ke(So,{forceMount:void 0}),vl=H(n=>{const{__scopeMenu:e,forceMount:t,children:o,container:r}=n,s=Qe(So,e);return a.jsx(ml,{scope:e,forceMount:t,children:a.jsx(Ge,{present:t||s.open,children:a.jsx(Fn,{asChild:!0,container:r,children:o})})})},"MenuPortal"),ve="MenuContent",[gl,No]=ke(ve),xl=f.forwardRef(H(function(e,t){const o=hl(ve,e.__scopeMenu),{forceMount:r=o.forceMount,...s}=e,i=Qe(ve,e.__scopeMenu),l=an(ve,e.__scopeMenu);return a.jsx(Ot.Provider,{scope:e.__scopeMenu,children:a.jsx(Ge,{present:r||i.open,children:a.jsx(Ot.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsx(bl,{...s,ref:t}):a.jsx(yl,{...s,ref:t})})})})},"MenuContent")),bl=f.forwardRef(H(function(e,t){const o=Qe(ve,e.__scopeMenu),r=f.useRef(null),s=se(t,r);return f.useEffect(()=>{const i=r.current;if(i)return Br(i)},[]),a.jsx(Io,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),yl=f.forwardRef(H(function(e,t){const o=Qe(ve,e.__scopeMenu);return a.jsx(Io,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),wl=qe("MenuContent.ScrollLock"),Io=f.forwardRef(H(function(e,t){const{__scopeMenu:o,loop:r=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:d,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:x,disableOutsideScroll:v,...g}=e,w=Qe(ve,o),y=an(ve,o),b=sn(o),j=Mo(o),_=ll(o),[k,S]=f.useState(null),E=f.useRef(null),N=se(t,E,w.onContentChange),P=f.useRef(0),O=f.useRef(""),G=f.useRef(0),K=f.useRef(null),q=f.useRef("right"),B=f.useRef(0),oe=v?qr:f.Fragment,U=v?{as:wl,allowPinchZoom:!0}:void 0,Me=H(A=>{const re=O.current+A,C=_().filter(F=>!F.disabled),R=document.activeElement,D=C.find(F=>F.ref.current===R)?.textValue,I=C.map(F=>F.textValue),L=Do(I,re,D),z=C.find(F=>F.textValue===L)?.ref.current;H((function F(W){O.current=W,window.clearTimeout(P.current),W!==""&&(P.current=window.setTimeout(()=>F(""),1e3))}),"updateSearch")(re),z&&setTimeout(()=>z.focus())},"handleTypeaheadSearch");f.useEffect(()=>()=>window.clearTimeout(P.current),[]),Kr();const te=f.useCallback(A=>q.current===K.current?.side&&Lo(A,K.current?.area),[]);return a.jsx(gl,{scope:o,searchRef:O,onItemEnter:f.useCallback(A=>{te(A)&&A.preventDefault()},[te]),onItemLeave:f.useCallback(A=>{te(A)||(E.current?.focus(),S(null))},[te]),onTriggerLeave:f.useCallback(A=>{te(A)&&A.preventDefault()},[te]),pointerGraceTimerRef:G,onPointerGraceIntentChange:f.useCallback(A=>{K.current=A},[]),children:a.jsx(oe,{...U,children:a.jsx(Ur,{asChild:!0,trapped:s,onMountAutoFocus:V(i,A=>{A.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsx(Gn,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:x,children:a.jsx(nl,{asChild:!0,...j,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:V(c,A=>{y.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(Vn,{role:"menu","aria-orientation":"vertical","data-state":To(w.open),"data-radix-menu-content":"",dir:y.dir,...b,...g,ref:N,style:{outline:"none",...g.style},onKeyDown:V(g.onKeyDown,A=>{const C=A.target.closest("[data-radix-menu-content]")===A.currentTarget,R=A.ctrlKey||A.altKey||A.metaKey,D=A.key.length===1;C&&(A.key==="Tab"&&A.preventDefault(),!R&&D&&Me(A.key));const I=E.current;if(A.target!==I||!il.includes(A.key))return;A.preventDefault();const z=_().filter(F=>!F.disabled).map(F=>F.ref.current);ko.includes(A.key)&&z.reverse(),Ao(z)}),onBlur:V(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(P.current),O.current="")}),onPointerMove:V(e.onPointerMove,lt(A=>{const re=A.target,C=B.current!==A.clientX;if(A.currentTarget.contains(re)&&C){const R=A.clientX>B.current?"right":"left";q.current=R,B.current=A.clientX}}))})})})})})})},"MenuContentImpl")),Eo=f.forwardRef(H(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{role:"group",...r,ref:t})},"MenuGroup")),Cl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{...r,ref:t})},"MenuLabel")),Lt="MenuItem",kn="menu.itemSelect",Ro=f.forwardRef(H(function(e,t){const{disabled:o=!1,onSelect:r,...s}=e,i=f.useRef(null),l=an(Lt,e.__scopeMenu),d=No(Lt,e.__scopeMenu),c=se(t,i),u=f.useRef(!1),p=H(()=>{const m=i.current;if(!o&&m){const h=new CustomEvent(kn,{bubbles:!0,cancelable:!0});m.addEventListener(kn,x=>r?.(x),{once:!0}),Jr(m,h),h.defaultPrevented?u.current=!1:l.onClose()}},"handleSelect");return a.jsx(jl,{...s,ref:c,disabled:o,onClick:V(e.onClick,p),onPointerDown:m=>{e.onPointerDown?.(m),u.current=!0},onPointerUp:V(e.onPointerUp,m=>{u.current||m.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,m=>{o||m.target!==m.currentTarget||d.searchRef.current!==""&&m.key===" "||sl.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})},"MenuItem")),jl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,disabled:r=!1,textValue:s,...i}=e,l=No(Lt,o),d=Mo(o),c=f.useRef(null),u=se(t,c),[p,m]=f.useState(!1),[h,x]=f.useState("");return f.useEffect(()=>{const v=c.current;v&&x((v.textContent??"").trim())},[i.children]),a.jsx(Ot.ItemSlot,{scope:o,disabled:r,textValue:s??h,children:a.jsx(ol,{asChild:!0,...d,focusable:!r,children:a.jsx(X.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:V(e.onPointerMove,lt(v=>{r?l.onItemLeave(v):(l.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,lt(v=>l.onItemLeave(v))),onFocus:V(e.onFocus,()=>m(!0)),onBlur:V(e.onBlur,()=>m(!1))})})})},"MenuItemImpl")),kl="MenuRadioGroup",[_l,Ml]=ke(kl,{value:void 0,onValueChange:H(()=>{},"onValueChange")}),Sl=f.forwardRef(H(function(e,t){const{value:o,onValueChange:r,...s}=e,i=ft(r);return a.jsx(_l,{scope:e.__scopeMenu,value:o,onValueChange:i,children:a.jsx(Eo,{...s,ref:t})})},"MenuRadioGroup")),Nl="MenuRadioItem",Il=f.forwardRef(H(function(e,t){const{value:o,...r}=e,s=Ml(Nl,e.__scopeMenu),i=o===s.value;return a.jsx(El,{scope:e.__scopeMenu,checked:i,children:a.jsx(Ro,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":cn(i),onSelect:V(r.onSelect,()=>s.onValueChange?.(o),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),Po="MenuItemIndicator",[El,Rl]=ke(Po,{checked:!1}),Pl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,forceMount:r,...s}=e,i=Rl(Po,o);return a.jsx(Ge,{present:r||ln(i.checked)||i.checked===!0,children:a.jsx(X.span,{...s,ref:t,"data-state":cn(i.checked)})})},"MenuItemIndicator")),Tl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})},"MenuSeparator")),Al="MenuSub",[mu,hu]=ke(Al);function To(n){return n?"open":"closed"}H(To,"getOpenState");function ln(n){return n==="indeterminate"}H(ln,"isIndeterminate");function cn(n){return ln(n)?"indeterminate":n?"checked":"unchecked"}H(cn,"getCheckedState");function Ao(n){const e=document.activeElement;for(const t of n)if(t===e||(t.focus(),document.activeElement!==e))return}H(Ao,"focusFirst");function $o(n,e){return n.map((t,o)=>n[(e+o)%n.length])}H($o,"wrapArray");function Do(n,e,t){const r=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=t?n.indexOf(t):-1;let i=$o(n,Math.max(s,0));r.length===1&&(i=i.filter(c=>c!==t));const d=i.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return d!==t?d:void 0}H(Do,"getNextMatch");function Oo(n,e){const{x:t,y:o}=n;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const l=e[s],d=e[i],c=l.x,u=l.y,p=d.x,m=d.y;u>o!=m>o&&t<(p-c)*(o-u)/(m-u)+c&&(r=!r)}return r}H(Oo,"isPointInPolygon");function Lo(n,e){if(!e)return!1;const t={x:n.clientX,y:n.clientY};return Oo(t,e)}H(Lo,"isPointerInGraceArea");function lt(n){return e=>e.pointerType==="mouse"?n(e):void 0}H(lt,"whenMouse");var $l=fl,Dl=pl,Ol=vl,Ll=xl,zl=Eo,Fl=Cl,Gl=Ro,Vl=Sl,Hl=Il,Bl=Pl,Kl=Tl,ql=Object.defineProperty,de=(n,e)=>ql(n,"name",{value:e,configurable:!0}),dn="DropdownMenu",[Ul,vu]=ye(dn,[_o]),ue=_o(),[Wl,zo]=Ul(dn),Yl=de(n=>{const{__scopeDropdownMenu:e,children:t,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:l=!0}=n,d=ue(e),c=f.useRef(null),[u,p]=pt({prop:r,defaultProp:s??!1,onChange:i,caller:dn});return a.jsx(Wl,{scope:e,triggerId:le(),triggerRef:c,contentId:le(),open:u,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(m=>!m),[p]),modal:l,children:a.jsx($l,{...d,open:u,onOpenChange:p,dir:o,modal:l,children:t})})},"DropdownMenu"),Xl="DropdownMenuTrigger",Jl=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,disabled:r=!1,...s}=e,i=zo(Xl,o),l=ue(o),d=se(t,i.triggerRef);return a.jsx(Dl,{asChild:!0,...l,children:a.jsx(X.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:d,onPointerDown:V(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:V(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})},"DropdownMenuTrigger")),Ql=de(n=>{const{__scopeDropdownMenu:e,...t}=n,o=ue(e);return a.jsx(Ol,{...o,...t})},"DropdownMenuPortal"),Zl="DropdownMenuContent",ec=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=zo(Zl,o),i=ue(o),l=f.useRef(!1);return a.jsx(Ll,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,d=>{l.current||s.triggerRef.current?.focus(),l.current=!1,d.preventDefault()}),onInteractOutside:V(e.onInteractOutside,d=>{const c=d.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,p=c.button===2||u;(!s.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),tc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(zl,{...s,...r,ref:t})},"DropdownMenuGroup")),nc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Fl,{...s,...r,ref:t})},"DropdownMenuLabel")),oc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Gl,{...s,...r,ref:t})},"DropdownMenuItem")),rc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Vl,{...s,...r,ref:t})},"DropdownMenuRadioGroup")),sc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Hl,{...s,...r,ref:t})},"DropdownMenuRadioItem")),ac=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Bl,{...s,...r,ref:t})},"DropdownMenuItemIndicator")),ic=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Kl,{...s,...r,ref:t})},"DropdownMenuSeparator")),lc=Yl,cc=Jl,dc=Ql,uc=ec,fc=tc,pc=nc,mc=oc,hc=rc,vc=sc,gc=ac,xc=ic;function xt(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(lc,{"data-slot":"dropdown-menu",...t}),e[2]=t,e[3]=o):o=e[3],o}function bt(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(cc,{"data-slot":"dropdown-menu-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function yt(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,sideOffset:r,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=r===void 0?4:r;let i;e[4]!==t?(i=T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),e[4]=t,e[5]=i):i=e[5];let l;return e[6]!==o||e[7]!==s||e[8]!==i?(l=a.jsx(dc,{children:a.jsx(uc,{"data-slot":"dropdown-menu-content",sideOffset:s,className:i,...o})}),e[6]=o,e[7]=s,e[8]=i,e[9]=l):l=e[9],l}function _n(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(fc,{"data-slot":"dropdown-menu-group",...t}),e[2]=t,e[3]=o):o=e[3],o}function fe(n){const e=M.c(12);let t,o,r,s;e[0]!==n?({className:t,inset:o,variant:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?"default":s;let l;e[5]!==t?(l=T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=l):l=e[6];let d;return e[7]!==o||e[8]!==r||e[9]!==l||e[10]!==i?(d=a.jsx(mc,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":i,className:l,...r}),e[7]=o,e[8]=r,e[9]=l,e[10]=i,e[11]=d):d=e[11],d}function gu(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(hc,{"data-slot":"dropdown-menu-radio-group",...t}),e[2]=t,e[3]=o):o=e[3],o}function xu(n){const e=M.c(11);let t,o,r;e[0]!==n?({className:o,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[4]=o,e[5]=s):s=e[5];let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(gc,{children:a.jsx(Cs,{className:"size-2 fill-current"})})}),e[6]=i):i=e[6];let l;return e[7]!==t||e[8]!==r||e[9]!==s?(l=a.jsxs(vc,{"data-slot":"dropdown-menu-radio-item",className:s,...r,children:[i,t]}),e[7]=t,e[8]=r,e[9]=s,e[10]=l):l=e[10],l}function Ye(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,inset:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==t?(s=T("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==r||e[8]!==s?(i=a.jsx(pc,{"data-slot":"dropdown-menu-label","data-inset":o,className:s,...r}),e[6]=o,e[7]=r,e[8]=s,e[9]=i):i=e[9],i}function Fe(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-border -mx-1 my-1 h-px",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(xc,{"data-slot":"dropdown-menu-separator",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}var bc=Object.defineProperty,he=(n,e)=>bc(n,"name",{value:e,configurable:!0}),Fo="Avatar",[yc,bu]=ye(Fo),wc=[0,()=>{}],[Cc,Go]=yc(Fo),jc=f.forwardRef(he(function(e,t){const{__scopeAvatar:o,...r}=e,[s,i]=f.useState("idle"),[l,d]=Ho();return a.jsx(Cc,{scope:o,imageLoadingStatus:s,setImageLoadingStatus:i,imageCount:l,setImageCount:d,children:a.jsx(X.span,{...r,ref:t})})},"Avatar")),kc="AvatarImage",_c=f.forwardRef(he(function(e,t){const{__scopeAvatar:o,src:r,onLoadingStatusChange:s,...i}=e,l=Go(kc,o);l.setImageCount;const d=Vo(r,{referrerPolicy:i.referrerPolicy,crossOrigin:i.crossOrigin,loadingStatus:l.imageLoadingStatus,setLoadingStatus:l.setImageLoadingStatus}),c=ft(p=>{s?.(p)}),u=f.useRef(d);return Xe(()=>{const p=u.current;u.current=d,d!==p&&c(d)},[d,c]),d==="loaded"?a.jsx(X.img,{...i,ref:t,src:r}):null},"AvatarImage")),Mc="AvatarFallback",Sc=f.forwardRef(he(function(e,t){const{__scopeAvatar:o,delayMs:r,...s}=e,i=Go(Mc,o),[l,d]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>d(!0),r);return()=>window.clearTimeout(c)}},[r]),l&&i.imageLoadingStatus!=="loaded"?a.jsx(X.span,{...s,ref:t}):null},"AvatarFallback"));function Vo(n,{loadingStatus:e,setLoadingStatus:t,referrerPolicy:o,crossOrigin:r}){return Xe(()=>{if(!n){t("error");return}const s=new window.Image,i=he(d=>{const c=d.currentTarget;t(zt(c))},"handleLoad"),l=he(()=>t("error"),"handleError");return s.addEventListener("load",i),s.addEventListener("error",l),o&&(s.referrerPolicy=o),s.crossOrigin=r??null,s.src=n,t(zt(s)),()=>{s.removeEventListener("load",i),s.removeEventListener("error",l),t("idle")}},[n,r,o,t]),e}he(Vo,"useImageLoadingStatus");function zt(n){return n.complete?n.naturalWidth>0?"loaded":"error":"loading"}he(zt,"getImageLoadingStatus");function Ho(){return wc}he(Ho,"useImageCount");function Nc(n){}he(Nc,"useUpdateImageCount");function Ic(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(jc,{"data-slot":"avatar",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ec(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("aspect-square size-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_c,{"data-slot":"avatar-image",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Rc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-muted flex size-full items-center justify-center rounded-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Sc,{"data-slot":"avatar-fallback",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Pc(){return Tc}function Tc(n){const e=n.trim().split(" ");if(e.length===0)return"";if(e.length===1)return e[0].charAt(0).toUpperCase();const t=e[0].charAt(0),o=e[e.length-1].charAt(0);return`${t}${o}`.toUpperCase()}function Bo(n){const e=M.c(22),{user:t,showEmail:o}=n,r=o===void 0?!1:o,s=Pc();let i;e[0]!==t.avatar||e[1]!==t.name?(i=a.jsx(Ec,{src:t.avatar,alt:t.name}),e[0]=t.avatar,e[1]=t.name,e[2]=i):i=e[2];let l;e[3]!==s||e[4]!==t.name?(l=s(t.name),e[3]=s,e[4]=t.name,e[5]=l):l=e[5];let d;e[6]!==l?(d=a.jsx(Rc,{className:"bg-muted text-foreground rounded-full text-[11px] font-medium",children:l}),e[6]=l,e[7]=d):d=e[7];let c;e[8]!==i||e[9]!==d?(c=a.jsxs(Ic,{className:"size-6 overflow-hidden rounded-full",children:[i,d]}),e[8]=i,e[9]=d,e[10]=c):c=e[10];let u;e[11]!==t.name?(u=a.jsx("span",{className:"truncate font-medium",children:t.name}),e[11]=t.name,e[12]=u):u=e[12];let p;e[13]!==r||e[14]!==t.email?(p=r&&a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:t.email}),e[13]=r,e[14]=t.email,e[15]=p):p=e[15];let m;e[16]!==u||e[17]!==p?(m=a.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[u,p]}),e[16]=u,e[17]=p,e[18]=m):m=e[18];let h;return e[19]!==c||e[20]!==m?(h=a.jsxs(a.Fragment,{children:[c,m]}),e[19]=c,e[20]=m,e[21]=h):h=e[21],h}function Ac(){return $c}function $c(){document.body.style.removeProperty("pointer-events")}function Dc(n){const e=M.c(25),{auth:t}=n,{session:o,user:r}=t,{account:s,accounts:i}=ce().props,l=Ac();let d;e[0]!==l?(d=()=>{l(),ee.flushAll()},e[0]=l,e[1]=d):d=e[1];const c=d;let u;e[2]!==r?(u=a.jsx(Ye,{className:"p-0 font-normal",children:a.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:a.jsx(Bo,{user:r,showEmail:!0})})}),e[2]=r,e[3]=u):u=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Fe,{}),e[4]=p):p=e[4];let m;e[5]!==s?.id||e[6]!==i||e[7]!==l?(m=i.length>1&&a.jsxs(a.Fragment,{children:[a.jsxs(_n,{children:[a.jsx(Ye,{className:"text-muted-foreground text-xs",children:"Accounts"}),i.map(_=>a.jsxs(fe,{onSelect:()=>{l(),ee.post(rr(_.id))},children:[a.jsx(qn,{className:"mr-2"}),a.jsx("span",{className:"flex-1",children:_.name}),s?.id===_.id&&a.jsx(Ut,{className:"size-4"})]},_.id))]}),a.jsx(Fe,{})]}),e[5]=s?.id,e[6]=i,e[7]=l,e[8]=m):m=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=sr(),e[9]=h):h=e[9];let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(fa,{className:"mr-2"}),e[10]=x):x=e[10];let v;e[11]!==l?(v=a.jsx(_n,{children:a.jsx(fe,{asChild:!0,children:a.jsxs(me,{className:"block w-full",href:h,as:"button",prefetch:!0,onClick:l,children:[x,"Settings"]})})}),e[11]=l,e[12]=v):v=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Fe,{}),e[13]=g):g=e[13];let w;e[14]!==o.id?(w=ar({id:o.id}),e[14]=o.id,e[15]=w):w=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Hs,{className:"mr-2"}),e[16]=y):y=e[16];let b;e[17]!==c||e[18]!==w?(b=a.jsx(fe,{asChild:!0,children:a.jsxs(me,{className:"block w-full",method:"delete",href:w,as:"button",onClick:c,children:[y,"Log out"]})}),e[17]=c,e[18]=w,e[19]=b):b=e[19];let j;return e[20]!==b||e[21]!==u||e[22]!==m||e[23]!==v?(j=a.jsxs(a.Fragment,{children:[u,p,m,v,g,b]}),e[20]=b,e[21]=u,e[22]=m,e[23]=v,e[24]=j):j=e[24],j}function Oc(){const n=M.c(13),{auth:e}=ce().props,{state:t}=ht(),o=lo();let r;n[0]!==e.user?(r=a.jsx(Bo,{user:e.user}),n[0]=e.user,n[1]=r):r=n[1];let s;n[2]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Yn,{className:"ml-auto size-4"}),n[2]=s):s=n[2];let i;n[3]!==r?(i=a.jsx(bt,{asChild:!0,children:a.jsxs(xe,{size:"default",className:"data-[state=open]:bg-sidebar-accent group gap-2",children:[r,s]})}),n[3]=r,n[4]=i):i=n[4];const l=o?"bottom":t==="collapsed"?"left":"bottom";let d;n[5]!==e?(d=a.jsx(Dc,{auth:e}),n[5]=e,n[6]=d):d=n[6];let c;n[7]!==l||n[8]!==d?(c=a.jsx(yt,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",align:"end",side:l,children:d}),n[7]=l,n[8]=d,n[9]=c):c=n[9];let u;return n[10]!==i||n[11]!==c?(u=a.jsx(we,{children:a.jsx(ge,{children:a.jsxs(xt,{children:[i,c]})})}),n[10]=i,n[11]=c,n[12]=u):u=n[12],u}var Lc=Object.defineProperty,Ze=(n,e)=>Lc(n,"name",{value:e,configurable:!0}),un="Collapsible",[zc,yu]=ye(un),[Fc,fn]=zc(un),Gc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,open:r,defaultOpen:s,disabled:i,onOpenChange:l,...d}=e,[c,u]=pt({prop:r,defaultProp:s??!1,onChange:l,caller:un});return a.jsx(Fc,{scope:o,disabled:i,contentId:le(),open:c,onOpenToggle:f.useCallback(()=>u(p=>!p),[u]),children:a.jsx(X.div,{"data-state":wt(c),"data-disabled":i?"":void 0,...d,ref:t})})},"Collapsible")),Vc="CollapsibleTrigger",Hc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,...r}=e,s=fn(Vc,o);return a.jsx(X.button,{type:"button","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open||!1,"data-state":wt(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:V(e.onClick,s.onOpenToggle)})},"CollapsibleTrigger")),Ko="CollapsibleContent",Bc=f.forwardRef(Ze(function(e,t){const{forceMount:o,...r}=e,s=fn(Ko,e.__scopeCollapsible);return a.jsx(Ge,{present:o||s.open,children:({present:i})=>a.jsx(Kc,{...r,ref:t,present:i})})},"CollapsibleContent")),Kc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,present:r,children:s,...i}=e,l=fn(Ko,o),[d,c]=f.useState(r),u=f.useRef(null),p=se(t,u),m=f.useRef(0),h=m.current,x=f.useRef(0),v=x.current,g=l.open||d,w=f.useRef(g),y=f.useRef(void 0);return f.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),Xe(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const j=b.getBoundingClientRect();m.current=j.height,x.current=j.width,w.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),c(r)}},[l.open,r]),a.jsx(X.div,{"data-state":wt(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!g,...i,ref:p,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&s})},"CollapsibleContentImpl"));function wt(n){return n?"open":"closed"}Ze(wt,"getState");var qc=Gc;function Mn(n){const[e,t]=n.split("?"),o=[...new URLSearchParams(t)].filter(([,r])=>r!=="").sort(([r],[s])=>r.localeCompare(s));return`${e}?${new URLSearchParams(o).toString()}`}function pn(n,e){return Mn(n)===Mn(e)}function qo(n,e){return n.split("?")[0]===e.split("?")[0]}function wu(n){const e=M.c(84),{page:t}=n,o=ce(),{environment:r,saved_views:s}=o.props,i=s===void 0?[]:s,[l,d]=f.useState(!1),[c,u]=f.useState(""),[p,m]=f.useState(!0),[h,x]=f.useState(!0),[v,g]=f.useState(!1),w=r.application_id,y=r.id;let b;e[0]!==t?(b=Y=>Y.page===t,e[0]=t,e[1]=b):b=e[1];const j=i.filter(b);let _;e[2]!==o.url?(_=new URLSearchParams(o.url.split("?")[1]??""),e[2]=o.url,e[3]=_):_=e[3];const k=_;let S;e[4]!==w||e[5]!==y?(S=Y=>ir(w,y,Y.id),e[4]=w,e[5]=y,e[6]=S):S=e[6];const E=S;let N;e[7]!==w||e[8]!==y||e[9]!==o.props.window||e[10]!==c||e[11]!==t||e[12]!==p||e[13]!==k||e[14]!==u||e[15]!==d||e[16]!==h?(N=()=>{const Y={};for(const[pe,vn]of k)pe!=="window"&&pe!=="q"&&vn&&(Y[pe]=vn);ee.post(lr(w,y),{name:c.trim(),page:t,query:k.get("q")??"",window:k.get("window")??o.props.window??"",pinned:p,shared:h,params:Y},{preserveScroll:!0}),d(!1),u("")},e[7]=w,e[8]=y,e[9]=o.props.window,e[10]=c,e[11]=t,e[12]=p,e[13]=k,e[14]=u,e[15]=d,e[16]=h,e[17]=N):N=e[17];const P=N;let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{navigator.clipboard?.writeText(globalThis.location.href),g(!0),globalThis.setTimeout(()=>g(!1),1500)},e[18]=O):O=e[18];const G=O,K="flex shrink-0 items-center gap-1",q=xt;let B;e[19]===Symbol.for("react.memo_cache_sentinel")?(B=a.jsx(bt,{asChild:!0,children:a.jsxs(He,{variant:"outline",size:"sm",className:"h-8 gap-1.5 px-2",children:[a.jsx(Wt,{className:"size-3.5"}),a.jsx("span",{className:"label-caps text-foreground",children:"Views"}),a.jsx(Un,{className:"size-3 opacity-60"})]})}),e[19]=B):B=e[19];const oe=yt,U="end",Me="w-64";let te;e[20]===Symbol.for("react.memo_cache_sentinel")?(te=a.jsx(Ye,{className:"label-caps",children:"Saved views"}),e[20]=te):te=e[20];const A=j.length===0&&a.jsx(fe,{disabled:!0,children:"No saved views yet"});let re;e[21]!==o.url||e[22]!==E?(re=Y=>a.jsxs(fe,{onSelect:()=>ee.visit(Y.url),className:T(pn(o.url,Y.url)&&"bg-accent"),children:[a.jsx("span",{className:"truncate",children:Y.name}),Y.mine&&a.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-0.5",children:[a.jsx("button",{type:"button","aria-label":`${Y.pinned?"Unpin":"Pin"} ${Y.name}`,className:"text-muted-foreground hover:text-foreground p-0.5",onClick:pe=>{pe.preventDefault(),pe.stopPropagation(),ee.patch(E(Y),{pinned:!Y.pinned},{preserveScroll:!0})},children:Y.pinned?a.jsx(ea,{className:"size-3.5"}):a.jsx(na,{className:"size-3.5"})}),a.jsx("button",{type:"button","aria-label":`Delete ${Y.name}`,className:"text-muted-foreground hover:text-destructive p-0.5",onClick:pe=>{pe.preventDefault(),pe.stopPropagation(),ee.delete(E(Y),{preserveScroll:!0})},children:a.jsx(Ca,{className:"size-3.5"})})]})]},Y.id),e[21]=o.url,e[22]=E,e[23]=re):re=e[23];const C=j.map(re);let R;e[24]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(Fe,{}),e[24]=R):R=e[24];let D;e[25]!==d?(D=()=>d(!0),e[25]=d,e[26]=D):D=e[26];let I;e[27]===Symbol.for("react.memo_cache_sentinel")?(I=a.jsx(is,{className:"size-3.5"}),e[27]=I):I=e[27];let L;e[28]!==D?(L=a.jsxs(fe,{onSelect:D,children:[I,"Save current view…"]}),e[28]=D,e[29]=L):L=e[29];let z;e[30]!==oe||e[31]!==te||e[32]!==A||e[33]!==C||e[34]!==L?(z=a.jsxs(oe,{align:U,className:Me,children:[te,A,C,R,L]}),e[30]=oe,e[31]=te,e[32]=A,e[33]=C,e[34]=L,e[35]=z):z=e[35];let F;e[36]!==q||e[37]!==z||e[38]!==B?(F=a.jsxs(q,{children:[B,z]}),e[36]=q,e[37]=z,e[38]=B,e[39]=F):F=e[39];let W;e[40]!==v?(W=v?a.jsx(Ut,{className:"size-3.5"}):a.jsx(Gs,{className:"size-3.5"}),e[40]=v,e[41]=W):W=e[41];let ie;e[42]!==G||e[43]!==W?(ie=a.jsx(He,{variant:"outline",size:"sm",className:"h-8 px-2","aria-label":"Copy link to this view",onClick:G,children:W}),e[42]=G,e[43]=W,e[44]=ie):ie=e[44];let Se;e[45]!==F||e[46]!==ie?(Se=a.jsxs("div",{className:K,children:[F,ie]}),e[45]=F,e[46]=ie,e[47]=Se):Se=e[47];let tt;e[48]===Symbol.for("react.memo_cache_sentinel")?(tt=a.jsxs(Vt,{children:[a.jsx(Ht,{children:"Save this view"}),a.jsx(Bt,{children:"Keeps the filters, window, and sort currently in the URL under a name you can link to."})]}),e[48]=tt):tt=e[48];let nt;e[49]===Symbol.for("react.memo_cache_sentinel")?(nt=a.jsx(_t,{htmlFor:"saved-view-name",children:"Name"}),e[49]=nt):nt=e[49];let Ne;e[50]!==u?(Ne=Y=>u(Y.target.value),e[50]=u,e[51]=Ne):Ne=e[51];let Ie;e[52]!==c||e[53]!==Ne?(Ie=a.jsxs("div",{className:"grid gap-1.5",children:[nt,a.jsx(Qr,{id:"saved-view-name",value:c,onChange:Ne,placeholder:"5xx checkout requests"})]}),e[52]=c,e[53]=Ne,e[54]=Ie):Ie=e[54];let Ee;e[55]!==m?(Ee=Y=>m(Y===!0),e[55]=m,e[56]=Ee):Ee=e[56];let Re;e[57]!==p||e[58]!==Ee?(Re=a.jsxs(_t,{className:"gap-2 font-normal",children:[a.jsx(yn,{checked:p,onCheckedChange:Ee}),"Pin to the sidebar"]}),e[57]=p,e[58]=Ee,e[59]=Re):Re=e[59];let Pe;e[60]!==x?(Pe=Y=>x(Y===!0),e[60]=x,e[61]=Pe):Pe=e[61];let Te;e[62]!==h||e[63]!==Pe?(Te=a.jsxs(_t,{className:"gap-2 font-normal",children:[a.jsx(yn,{checked:h,onCheckedChange:Pe}),"Share with the team"]}),e[62]=h,e[63]=Pe,e[64]=Te):Te=e[64];let Ae;e[65]!==Ie||e[66]!==Re||e[67]!==Te?(Ae=a.jsxs("div",{className:"flex flex-col gap-3",children:[Ie,Re,Te]}),e[65]=Ie,e[66]=Re,e[67]=Te,e[68]=Ae):Ae=e[68];let ot;e[69]!==c?(ot=c.trim(),e[69]=c,e[70]=ot):ot=e[70];const jt=!ot;let $e;e[71]!==P||e[72]!==jt?($e=a.jsx(Wr,{children:a.jsx(He,{size:"sm",onClick:P,disabled:jt,children:"Save view"})}),e[71]=P,e[72]=jt,e[73]=$e):$e=e[73];let De;e[74]!==Ae||e[75]!==$e?(De=a.jsxs(Kt,{className:"sm:max-w-sm",children:[tt,Ae,$e]}),e[74]=Ae,e[75]=$e,e[76]=De):De=e[76];let Oe;e[77]!==l||e[78]!==d||e[79]!==De?(Oe=a.jsx(qt,{open:l,onOpenChange:d,children:De}),e[77]=l,e[78]=d,e[79]=De,e[80]=Oe):Oe=e[80];let rt;return e[81]!==Se||e[82]!==Oe?(rt=a.jsxs(a.Fragment,{children:[Se,Oe]}),e[81]=Se,e[82]=Oe,e[83]=rt):rt=e[83],rt}function Uc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(qc,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=o):o=e[3],o}function Wc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Hc,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function Yc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Bc,{"data-slot":"collapsible-content",...t}),e[2]=t,e[3]=o):o=e[3],o}function mn(n,e,t){const o=n,r=e,s={window:t};return[{title:"Overview",href:Be(o,r,s),icon:Es,group:"activity"},{title:"Requests",href:Rn(o,r,s),icon:es,group:"activity"},{title:"Jobs",href:Pn(o,r,s),icon:_a,group:"activity"},{title:"Scheduled tasks",href:dr(o,r,s),icon:hs,group:"activity"},{title:"Commands",href:ur(o,r,s),icon:xa,group:"activity"},{title:"Exceptions",href:fr(o,r,s),icon:ds,group:"activity"},{title:"Queries",href:Tn(o,r,s),icon:ks,group:"activity"},{title:"Spans",href:pr(o,r,s),icon:ya,group:"activity"},{title:"Profiles",href:mr(o,r,s),icon:Ns,group:"activity"},{title:"Transactions",href:hr(o,r,s),icon:Ps,group:"activity"},{title:"View renders",href:vr(o,r,s),icon:zs,group:"activity"},{title:"Cache",href:gr(o,r,s),icon:Ds,group:"activity"},{title:"Mail",href:xr(o,r,s),icon:Ks,group:"activity"},{title:"Notifications",href:br(o,r,s),icon:Kn,group:"activity"},{title:"Broadcasts",href:yr(o,r,s),icon:ps,group:"activity"},{title:"Outgoing requests",href:wr(o,r,s),icon:ns,group:"activity"},{title:"LLM",href:Cr(o,r,s),icon:va,group:"activity"},{title:"Storage",href:jr(o,r,s),icon:As,group:"activity"},{title:"Logs",href:kr(o,r,s),icon:Ms,group:"activity"},{title:"Deprecations",href:_r(o,r,s),icon:cr,group:"activity"},{title:"Visits",href:Mr(o,r,s),icon:Us,group:"monitoring"},{title:"Users",href:Sr(o,r,s),icon:Xt,group:"monitoring"},{title:"Tenants",href:Nr(o,r,s),icon:qn,group:"monitoring"},{title:"Deploys",href:Ir(o,r),icon:ia,group:"monitoring"},{title:"Releases",href:Er(o,r,s),icon:Xs,group:"monitoring"},{title:"Processes",href:Rr(o,r),icon:da,group:"monitoring"},{title:"Alerts",href:Pr(o,r),icon:ma,group:"monitoring"},{title:"Thresholds",href:Tr(o,r),icon:Yr,group:"settings"},{title:"Usage",href:Ar(o,r),icon:gs,group:"settings"}]}const Uo=[{key:"activity",title:"Activity"},{key:"monitoring",title:"Monitoring"},{key:"settings",title:"Settings"}];function Xc(){const n=M.c(1),e=ce(),{environment:t}=e.props,o=e.url.split("?")[0];let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={},n[0]=r):r=n[0];const[s,i]=f.useState(r);if(!t)return null;const l=mn(t.application_id,t.id,e.props.window),d=(e.props.saved_views??[]).filter(Jc),c=p=>{const m=p.split("?")[0];return o===m||o.startsWith(m+"/")},u=l[0];return a.jsx(Zt,{className:"p-0",children:a.jsxs(we,{children:[a.jsx(ge,{children:a.jsx(xe,{asChild:!0,isActive:o===u.href.split("?")[0],tooltip:{children:u.title},children:a.jsxs(me,{href:u.href,prefetch:!0,children:[u.icon&&a.jsx(u.icon,{}),a.jsx("span",{children:u.title})]})})}),Uo.map(p=>{const m=l.filter(g=>g.group===p.key&&g!==u),h=m.some(g=>c(g.href)),x=s[p.key]??h,v=m[0]?.icon;return a.jsx(Uc,{open:x,onOpenChange:g=>i(w=>({...w,[p.key]:g})),className:"group/collapsible",children:a.jsxs(ge,{children:[a.jsx(Wc,{asChild:!0,children:a.jsxs(xe,{tooltip:{children:p.title},className:T(h&&"text-sidebar-foreground"),children:[v&&a.jsx(v,{}),a.jsx("span",{children:p.title}),a.jsx(Wn,{className:"ml-auto size-3.5 opacity-60 transition-transform group-data-[state=open]/collapsible:rotate-90"})]})}),a.jsx(Yc,{children:a.jsx(Ii,{className:"mr-0 gap-0.5 pr-0",children:m.map(g=>a.jsxs(Ei,{children:[a.jsx(Cn,{asChild:!0,isActive:c(g.href),children:a.jsx(me,{href:g.href,prefetch:!0,children:a.jsx("span",{children:g.title})})}),d.filter(w=>qo(w.url,g.href)).map(w=>a.jsx(Cn,{asChild:!0,size:"sm",className:"pl-4",isActive:pn(e.url,w.url),children:a.jsxs(me,{href:w.url,children:[a.jsx(Wt,{className:"opacity-60"}),a.jsx("span",{children:w.name})]})},w.id))]},g.title))})})]})},p.key)})]})})}function Jc(n){return n.pinned}function Sn(n){const e=M.c(7),{name:t,className:o}=n;let r;e[0]!==o?(r=T("bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",o),e[0]=o,e[1]=r):r=e[1];let s;e[2]!==t?(s=t.slice(0,2).toUpperCase(),e[2]=t,e[3]=s):s=e[3];let i;return e[4]!==r||e[5]!==s?(i=a.jsx("span",{className:r,children:s}),e[4]=r,e[5]=s,e[6]=i):i=e[6],i}function Qc(){const n=M.c(44),{applications:e,environment:t,embedded:o}=ce().props;if(e.length===0)return null;let r;n[0]!==e||n[1]!==t?.application_id?(r=e.find(y=>y.id===t?.application_id)??e[0],n[0]=e,n[1]=t?.application_id,n[2]=r):r=n[2];const s=r;if(o){const y=t??s.environments[0];let b;n[3]!==s.id||n[4]!==y.id?(b=Be(s.id,y.id),n[3]=s.id,n[4]=y.id,n[5]=b):b=n[5];let j;n[6]!==s.name?(j=a.jsx(Sn,{name:s.name}),n[6]=s.name,n[7]=j):j=n[7];let _;n[8]!==s.name?(_=a.jsx("span",{className:"truncate text-sm font-semibold",children:s.name}),n[8]=s.name,n[9]=_):_=n[9];let k;n[10]!==y.name?(k=a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:y.name}),n[10]=y.name,n[11]=k):k=n[11];let S;n[12]!==_||n[13]!==k?(S=a.jsxs("span",{className:"grid flex-1 text-left leading-tight",children:[_,k]}),n[12]=_,n[13]=k,n[14]=S):S=n[14];let E;return n[15]!==b||n[16]!==j||n[17]!==S?(E=a.jsx(we,{children:a.jsx(ge,{children:a.jsx(xe,{size:"lg",asChild:!0,className:"border-0 py-2 pr-3 pl-2 hover:bg-transparent",children:a.jsxs(me,{href:b,prefetch:!0,children:[j,S]})})})}),n[15]=b,n[16]=j,n[17]=S,n[18]=E):E=n[18],E}let i;n[19]!==s.name?(i=a.jsx(Sn,{name:s.name}),n[19]=s.name,n[20]=i):i=n[20];let l;n[21]!==s.name?(l=a.jsx("span",{className:"truncate text-sm font-semibold",children:s.name}),n[21]=s.name,n[22]=l):l=n[22];const d=t?t.name:`${s.environments.length} environment${s.environments.length===1?"":"s"}`;let c;n[23]!==d?(c=a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:d}),n[23]=d,n[24]=c):c=n[24];let u;n[25]!==l||n[26]!==c?(u=a.jsxs("span",{className:"grid flex-1 text-left leading-tight",children:[l,c]}),n[25]=l,n[26]=c,n[27]=u):u=n[27];let p;n[28]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Yn,{className:"size-3.5 opacity-60"}),n[28]=p):p=n[28];let m;n[29]!==i||n[30]!==u?(m=a.jsx(bt,{asChild:!0,children:a.jsxs(xe,{size:"lg",className:"data-[state=open]:bg-sidebar-accent hover:bg-sidebar-accent border-0 py-2 pr-3 pl-2",children:[i,u,p]})}),n[29]=i,n[30]=u,n[31]=m):m=n[31];let h;if(n[32]!==e||n[33]!==t?.id){let y;n[35]!==t?.id?(y=b=>a.jsxs("div",{children:[a.jsx(Ye,{className:"label-caps",children:b.name}),b.environments.map(j=>a.jsxs(fe,{onSelect:()=>ee.visit(Be(b.id,j.id)),children:[a.jsx(Xr,{lastSeenAt:j.paused?null:j.last_seen_at,thresholdMs:6e5}),a.jsx("span",{className:"flex-1",children:j.name}),j.id===t?.id&&a.jsx(Ut,{className:"size-3.5"})]},j.id))]},b.id),n[35]=t?.id,n[36]=y):y=n[36],h=e.map(y),n[32]=e,n[33]=t?.id,n[34]=h}else h=n[34];let x;n[37]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Fe,{}),n[37]=x):x=n[37];let v;n[38]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsxs(fe,{onSelect:Zc,children:[a.jsx(sa,{className:"size-3.5"}),"Add application"]}),n[38]=v):v=n[38];let g;n[39]!==h?(g=a.jsxs(yt,{align:"start",className:"w-(--radix-dropdown-menu-trigger-width) min-w-64",children:[h,x,v]}),n[39]=h,n[40]=g):g=n[40];let w;return n[41]!==g||n[42]!==m?(w=a.jsx(we,{children:a.jsx(ge,{children:a.jsxs(xt,{children:[m,g]})})}),n[41]=g,n[42]=m,n[43]=w):w=n[43],w}function Zc(){return ee.visit($r())}function ed(n){const e=M.c(4);let t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsx("path",{d:"M 236 324.989 L 236 404.978 496.750 405.239 L 757.500 405.500 765.665 408.577 C 777.060 412.870, 784.110 417.355, 792.381 425.574 C 833.878 466.807, 812.048 538.520, 752.263 557.363 C 737.593 561.987, 732.018 562.115, 560.250 561.798 C 471.562 561.634, 399 561.557, 399 561.626 C 399 561.695, 406.313 568.648, 415.250 577.077 C 436.108 596.747, 508.719 665.823, 525 681.483 C 612.468 765.614, 693.318 845.033, 770.500 922.639 L 840.500 993.023 951.250 993.011 C 1012.163 993.005, 1062 992.732, 1062 992.404 C 1062 992.076, 1056.942 986.113, 1050.761 979.154 C 1039.889 966.913, 1035.649 962.220, 1005.428 928.979 C 997.688 920.465, 984.624 906.075, 976.396 897 C 933.021 849.161, 888.142 799.872, 868.953 779 C 857.071 766.075, 841.562 749.200, 834.490 741.500 C 827.417 733.800, 814.456 719.721, 805.686 710.213 C 796.916 700.705, 789.994 692.673, 790.303 692.363 C 790.613 692.054, 795.578 690.983, 801.338 689.983 C 895.506 673.637, 967.601 596.363, 980.578 497.866 C 982.637 482.242, 982.086 446.289, 979.576 432.500 C 960.757 329.105, 884.022 255.740, 784.576 246.063 C 777.168 245.342, 687.144 245, 504.826 245 L 236 245 236 324.989",fill:"currentColor"}),o=a.jsx("path",{d:"M 243.550 507.838 C 244.072 508.299, 247.425 510.859, 251 513.526 C 294.327 545.849, 358.703 617.861, 503.521 796 C 560.192 865.711, 593.994 908.954, 627.414 954.500 L 642.090 974.500 689.045 975 C 714.871 975.275, 736 975.275, 735.999 975 C 735.994 973.773, 698.564 930.428, 663.901 891.507 C 571.946 788.257, 436.131 649.261, 367.500 588.162 C 325.285 550.581, 286.033 524.106, 252.457 510.567 C 243.188 506.829, 241.991 506.462, 243.550 507.838 M 236 520 C 236 521.800, 236.667 522, 242.655 522 C 249.247 522, 249.293 521.981, 247.500 520 C 246.164 518.524, 244.420 518, 240.845 518 C 236.667 518, 236 518.275, 236 520 M 236 532.500 L 236 537 249.067 537 L 262.134 537 258.446 532.500 L 254.759 528 245.380 528 L 236 528 236 532.500 M 236 553.500 L 236 562 258.500 562 C 270.875 562, 280.991 561.663, 280.981 561.250 C 280.970 560.837, 278.237 557.013, 274.908 552.750 L 268.854 545 252.427 545 L 236 545 236 553.500 M 235.909 585 C 235.859 589.950, 235.777 595.462, 235.727 597.250 L 235.636 600.500 273.840 600.762 L 312.044 601.024 302.772 588.569 L 293.500 576.114 264.750 576.057 L 236 576 235.909 585 M 235.570 627.477 C 235.212 629.389, 234.979 637.714, 235.053 645.977 L 235.188 661 295.571 661 L 355.955 661 342.326 642.500 L 328.698 624 282.460 624 L 236.223 624 235.570 627.477 M 236 717.750 L 236 741.500 324.591 741.326 C 373.315 741.230, 413.343 740.990, 413.541 740.792 C 413.739 740.594, 406.184 729.985, 396.752 717.216 L 379.603 694 307.802 694 L 236 694 236 717.750 M 236.235 813.250 L 236.500 842.500 362.358 842.754 C 472.189 842.975, 488.146 842.822, 487.658 841.552 C 487.351 840.751, 477.621 827.475, 466.036 812.048 L 444.973 784 340.471 784 L 235.970 784 236.235 813.250 M 235.683 898.750 C 234.872 900.147, 235.511 973.844, 236.341 974.675 C 237.491 975.825, 392.185 976.287, 495.665 975.450 L 581.829 974.753 578.959 970.126 C 575.681 964.845, 552.884 930.825, 539.500 911.243 L 530.500 898.075 383.309 898.038 C 302.354 898.017, 235.922 898.337, 235.683 898.750",fill:"#FFC22B"}),e[0]=t,e[1]=o):(t=e[0],o=e[1]);let r;return e[2]!==n?(r=a.jsxs("svg",{viewBox:"213 184 870 870",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[t,o]}),e[2]=n,e[3]=r):r=e[3],r}function td(){const n=M.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"hidden aspect-square size-8 shrink-0 items-center justify-center rounded-md bg-[#0F1729] text-white group-data-[collapsible=icon]:flex",children:a.jsx(ed,{className:"size-6"})}),a.jsx(zr,{className:"h-4 w-auto group-data-[collapsible=icon]:hidden"})]}),n[0]=e):e=n[0],e}const nd=n=>[...n?[]:[{title:"Dashboard",href:ct(),icon:Xn}],{title:"Issues",href:Ke(),icon:Jn},{title:"Alerts",href:Dr(),icon:Kn},...n?[]:[{title:"Integrations",href:An(),icon:Qn},{title:"Members",href:$n(),icon:Xt}]],od=n=>[{title:"Documentation",href:n?"https://railwatch.rebulk.com/docs":"/docs",icon:ss}];function rd(){const n=M.c(23),{environment:e,applications:t,embedded:o}=ce().props;let r;n[0]!==t.length?(r=a.jsx(ji,{className:"border-sidebar-border gap-0 border-b p-1.5",children:t.length>0?a.jsx(Qc,{}):a.jsx(we,{children:a.jsx(ge,{children:a.jsx(xe,{size:"lg",asChild:!0,children:a.jsx(me,{href:ct(),prefetch:!0,children:a.jsx(td,{})})})})})}),n[0]=t.length,n[1]=r):r=n[1];let s;n[2]!==e?(s=e&&a.jsx(Xc,{}),n[2]=e,n[3]=s):s=n[3];const i=!!o;let l;n[4]!==i?(l=nd(i),n[4]=i,n[5]=l):l=n[5];const d=e?"Account":"";let c;n[6]!==l||n[7]!==d?(c=a.jsx(Oi,{items:l,label:d}),n[6]=l,n[7]=d,n[8]=c):c=n[8];let u;n[9]!==s||n[10]!==c?(u=a.jsxs(_i,{className:"gap-0 p-1.5",children:[s,c]}),n[9]=s,n[10]=c,n[11]=u):u=n[11];const p=!!o;let m;n[12]!==p?(m=od(p),n[12]=p,n[13]=m):m=n[13];let h;n[14]!==m?(h=a.jsx($i,{items:m,className:"mt-auto"}),n[14]=m,n[15]=h):h=n[15];let x;n[16]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Oc,{}),n[16]=x):x=n[16];let v;n[17]!==h?(v=a.jsxs(ki,{children:[h,x]}),n[17]=h,n[18]=v):v=n[18];let g;return n[19]!==r||n[20]!==v||n[21]!==u?(g=a.jsxs(yi,{collapsible:"icon",variant:"sidebar",children:[r,u,v]}),n[19]=r,n[20]=v,n[21]=u,n[22]=g):g=n[22],g}function sd(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t}),e[2]=t,e[3]=o):o=e[3],o}function ad(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function id(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("inline-flex items-center gap-1.5",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"breadcrumb-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ld(n){const e=M.c(10);let t,o,r;e[0]!==n?({asChild:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=t?dt:"a";let i;e[4]!==o?(i=T("hover:text-foreground transition-colors",o),e[4]=o,e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==r||e[8]!==i?(l=a.jsx(s,{"data-slot":"breadcrumb-link",className:i,...r}),e[6]=s,e[7]=r,e[8]=i,e[9]=l):l=e[9],l}function cd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground font-normal",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function dd(n){const e=M.c(12);let t,o,r;e[0]!==n?({children:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("[&>svg]:size-3.5",o),e[4]=o,e[5]=s):s=e[5];let i;e[6]!==t?(i=t??a.jsx(Wn,{}),e[6]=t,e[7]=i):i=e[7];let l;return e[8]!==r||e[9]!==s||e[10]!==i?(l=a.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:s,...r,children:i}),e[8]=r,e[9]=s,e[10]=i,e[11]=l):l=e[11],l}function ud(n){const e=M.c(4),{breadcrumbs:t}=n;let o;e[0]!==t?(o=t.length>0&&a.jsx(sd,{children:a.jsx(ad,{children:t.map((s,i)=>{const l=i===t.length-1;return a.jsxs(f.Fragment,{children:[a.jsx(id,{children:l?a.jsx(cd,{children:s.title}):a.jsx(ld,{asChild:!0,children:a.jsx(me,{href:s.href,children:s.title})})}),!l&&a.jsx(dd,{})]},i)})})}),e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=a.jsx(a.Fragment,{children:o}),e[2]=o,e[3]=r):r=e[3],r}function fd(){const n=M.c(21),e=ce(),{environment:t}=e.props;if(!t)return null;let o,r,s,i,l,d;if(n[0]!==t.application_id||n[1]!==t.id||n[2]!==e.props.saved_views||n[3]!==e.props.window||n[4]!==e.url){const p=mn(t.application_id,t.id,e.props.window),m=e.url.split("?")[0],h=(e.props.saved_views??[]).filter(md),x=p.filter(g=>{const w=g.href.split("?")[0];return m===w||m.startsWith(w+"/")}).sort(pd)[0]??p[0];r=xt;let v;n[11]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx(Un,{className:"size-3.5 shrink-0 opacity-60"}),n[11]=v):v=n[11],d=a.jsxs(bt,{className:"flex min-w-0 items-center gap-1 text-sm font-medium",children:[x.icon&&a.jsx(x.icon,{className:"size-4 shrink-0 opacity-70"}),a.jsx("span",{className:"truncate",children:x.title}),v]}),o=yt,s="start",i="max-h-[70vh] w-60 overflow-y-auto",l=Uo.map((g,w)=>a.jsxs("div",{children:[w>0&&a.jsx(Fe,{}),a.jsx(Ye,{className:"label-caps",children:g.title}),p.filter(y=>y.group===g.key).map(y=>a.jsxs("div",{children:[a.jsxs(fe,{onSelect:()=>ee.visit(y.href),className:y===x?"bg-accent":void 0,children:[y.icon&&a.jsx(y.icon,{className:"size-4"}),y.title]}),h.filter(b=>qo(b.url,y.href)).map(b=>a.jsxs(fe,{onSelect:()=>ee.visit(b.url),className:T("pl-8 text-xs",pn(e.url,b.url)&&"bg-accent"),children:[a.jsx(Wt,{className:"size-3.5 opacity-60"}),b.name]},b.id))]},y.title))]},g.key)),n[0]=t.application_id,n[1]=t.id,n[2]=e.props.saved_views,n[3]=e.props.window,n[4]=e.url,n[5]=o,n[6]=r,n[7]=s,n[8]=i,n[9]=l,n[10]=d}else o=n[5],r=n[6],s=n[7],i=n[8],l=n[9],d=n[10];let c;n[12]!==o||n[13]!==s||n[14]!==i||n[15]!==l?(c=a.jsx(o,{align:s,className:i,children:l}),n[12]=o,n[13]=s,n[14]=i,n[15]=l,n[16]=c):c=n[16];let u;return n[17]!==r||n[18]!==d||n[19]!==c?(u=a.jsxs(r,{children:[d,c]}),n[17]=r,n[18]=d,n[19]=c,n[20]=u):u=n[20],u}function pd(n,e){return e.href.length-n.href.length}function md(n){return n.pinned}function hd(n){const e=M.c(16),{breadcrumbs:t,onOpenCommandPalette:o}=n;let r;e[0]!==t?(r=t===void 0?[]:t,e[0]=t,e[1]=r):r=e[1];const s=r,{environment:i}=ce().props;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(wi,{className:"text-muted-foreground -ml-1"}),e[2]=l):l=e[2];let d;e[3]!==s?(d=a.jsx("div",{className:"text-muted-foreground hidden min-w-0 text-xs md:block",children:a.jsx(ud,{breadcrumbs:s})}),e[3]=s,e[4]=d):d=e[4];let c;e[5]!==s||e[6]!==i?(c=a.jsx("div",{className:"min-w-0 md:hidden",children:i?a.jsx(fd,{}):a.jsx("span",{className:"truncate text-sm font-medium",children:s[s.length-1]?.title})}),e[5]=s,e[6]=i,e[7]=c):c=e[7];let u;e[8]!==d||e[9]!==c?(u=a.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[l,d,c]}),e[8]=d,e[9]=c,e[10]=u):u=e[10];let p;e[11]!==o?(p=o&&a.jsxs(He,{type:"button",variant:"outline",size:"sm",className:"text-muted-foreground h-8 gap-1.5",onClick:o,children:[a.jsx(Yt,{className:"size-3.5"}),a.jsx("span",{className:"hidden sm:inline",children:"Search"}),a.jsx("kbd",{className:"bg-muted hidden rounded px-1 py-0.5 font-mono text-[10px] sm:inline",children:"⌘K"})]}),e[11]=o,e[12]=p):p=e[12];let m;return e[13]!==u||e[14]!==p?(m=a.jsxs("header",{className:"bg-background/80 sticky top-0 z-20 flex h-12 shrink-0 items-center justify-between gap-2 border-b px-3 backdrop-blur md:h-11 md:border-0 md:bg-transparent md:px-6 md:pt-2 md:backdrop-blur-none",children:[u,p]}),e[13]=u,e[14]=p,e[15]=m):m=e[15],m}var Nn=1,vd=.9,gd=.8,xd=.17,It=.1,Et=.999,bd=.9999,yd=.99,wd=/[\\\/_+.#"@\[\(\{&]/,Cd=/[\\\/_+.#"@\[\(\{&]/g,jd=/[\s-]/,Wo=/[\s-]/g;function Ft(n,e,t,o,r,s,i){if(s===e.length)return r===n.length?Nn:yd;var l=`${r},${s}`;if(i[l]!==void 0)return i[l];for(var d=o.charAt(s),c=t.indexOf(d,r),u=0,p,m,h,x;c>=0;)p=Ft(n,e,t,o,c+1,s+1,i),p>u&&(c===r?p*=Nn:wd.test(n.charAt(c-1))?(p*=gd,h=n.slice(r,c-1).match(Cd),h&&r>0&&(p*=Math.pow(Et,h.length))):jd.test(n.charAt(c-1))?(p*=vd,x=n.slice(r,c-1).match(Wo),x&&r>0&&(p*=Math.pow(Et,x.length))):(p*=xd,r>0&&(p*=Math.pow(Et,c-r))),n.charAt(c)!==e.charAt(s)&&(p*=bd)),(p<It&&t.charAt(c-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&t.charAt(c-1)!==o.charAt(s))&&(m=Ft(n,e,t,o,c+1,s+2,i),m*It>p&&(p=m*It)),p>u&&(u=p),c=t.indexOf(d,c+1);return i[l]=u,u}function In(n){return n.toLowerCase().replace(Wo," ")}function kd(n,e,t){return n=t&&t.length>0?`${n+" "+t.join(" ")}`:n,Ft(n,e,In(n),In(e),0,0,{})}var Ve='[cmdk-group=""]',Rt='[cmdk-group-items=""]',_d='[cmdk-group-heading=""]',Yo='[cmdk-item=""]',En=`${Yo}:not([aria-disabled="true"])`,Gt="cmdk-item-select",Le="data-value",Md=(n,e,t)=>kd(n,e,t),Xo=f.createContext(void 0),et=()=>f.useContext(Xo),Jo=f.createContext(void 0),hn=()=>f.useContext(Jo),Qo=f.createContext(void 0),Zo=f.forwardRef((n,e)=>{let t=ze(()=>{var C,R;return{search:"",value:(R=(C=n.value)!=null?C:n.defaultValue)!=null?R:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=ze(()=>new Set),r=ze(()=>new Map),s=ze(()=>new Map),i=ze(()=>new Set),l=er(n),{label:d,children:c,value:u,onValueChange:p,filter:m,shouldFilter:h,loop:x,disablePointerSelection:v=!1,vimBindings:g=!0,...w}=n,y=le(),b=le(),j=le(),_=f.useRef(null),k=Od();Ce(()=>{if(u!==void 0){let C=u.trim();t.current.value=C,S.emit()}},[u]),Ce(()=>{k(6,K)},[]);let S=f.useMemo(()=>({subscribe:C=>(i.current.add(C),()=>i.current.delete(C)),snapshot:()=>t.current,setState:(C,R,D)=>{var I,L,z,F;if(!Object.is(t.current[C],R)){if(t.current[C]=R,C==="search")G(),P(),k(1,O);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(j);W?W.focus():(I=document.getElementById(y))==null||I.focus()}if(k(7,()=>{var W;t.current.selectedItemId=(W=q())==null?void 0:W.id,S.emit()}),D||k(5,K),((L=l.current)==null?void 0:L.value)!==void 0){let W=R??"";(F=(z=l.current).onValueChange)==null||F.call(z,W);return}}S.emit()}},emit:()=>{i.current.forEach(C=>C())}}),[]),E=f.useMemo(()=>({value:(C,R,D)=>{var I;R!==((I=s.current.get(C))==null?void 0:I.value)&&(s.current.set(C,{value:R,keywords:D}),t.current.filtered.items.set(C,N(R,D)),k(2,()=>{P(),S.emit()}))},item:(C,R)=>(o.current.add(C),R&&(r.current.has(R)?r.current.get(R).add(C):r.current.set(R,new Set([C]))),k(3,()=>{G(),P(),t.current.value||O(),S.emit()}),()=>{s.current.delete(C),o.current.delete(C),t.current.filtered.items.delete(C);let D=q();k(4,()=>{G(),D?.getAttribute("id")===C&&O(),S.emit()})}),group:C=>(r.current.has(C)||r.current.set(C,new Set),()=>{s.current.delete(C),r.current.delete(C)}),filter:()=>l.current.shouldFilter,label:d||n["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:y,inputId:j,labelId:b,listInnerRef:_}),[]);function N(C,R){var D,I;let L=(I=(D=l.current)==null?void 0:D.filter)!=null?I:Md;return C?L(C,t.current.search,R):0}function P(){if(!t.current.search||l.current.shouldFilter===!1)return;let C=t.current.filtered.items,R=[];t.current.filtered.groups.forEach(I=>{let L=r.current.get(I),z=0;L.forEach(F=>{let W=C.get(F);z=Math.max(W,z)}),R.push([I,z])});let D=_.current;B().sort((I,L)=>{var z,F;let W=I.getAttribute("id"),ie=L.getAttribute("id");return((z=C.get(ie))!=null?z:0)-((F=C.get(W))!=null?F:0)}).forEach(I=>{let L=I.closest(Rt);L?L.appendChild(I.parentElement===L?I:I.closest(`${Rt} > *`)):D.appendChild(I.parentElement===D?I:I.closest(`${Rt} > *`))}),R.sort((I,L)=>L[1]-I[1]).forEach(I=>{var L;let z=(L=_.current)==null?void 0:L.querySelector(`${Ve}[${Le}="${encodeURIComponent(I[0])}"]`);z?.parentElement.appendChild(z)})}function O(){let C=B().find(D=>D.getAttribute("aria-disabled")!=="true"),R=C?.getAttribute(Le);S.setState("value",R||void 0)}function G(){var C,R,D,I;if(!t.current.search||l.current.shouldFilter===!1){t.current.filtered.count=o.current.size;return}t.current.filtered.groups=new Set;let L=0;for(let z of o.current){let F=(R=(C=s.current.get(z))==null?void 0:C.value)!=null?R:"",W=(I=(D=s.current.get(z))==null?void 0:D.keywords)!=null?I:[],ie=N(F,W);t.current.filtered.items.set(z,ie),ie>0&&L++}for(let[z,F]of r.current)for(let W of F)if(t.current.filtered.items.get(W)>0){t.current.filtered.groups.add(z);break}t.current.filtered.count=L}function K(){var C,R,D;let I=q();I&&(((C=I.parentElement)==null?void 0:C.firstChild)===I&&((D=(R=I.closest(Ve))==null?void 0:R.querySelector(_d))==null||D.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function q(){var C;return(C=_.current)==null?void 0:C.querySelector(`${Yo}[aria-selected="true"]`)}function B(){var C;return Array.from(((C=_.current)==null?void 0:C.querySelectorAll(En))||[])}function oe(C){let R=B()[C];R&&S.setState("value",R.getAttribute(Le))}function U(C){var R;let D=q(),I=B(),L=I.findIndex(F=>F===D),z=I[L+C];(R=l.current)!=null&&R.loop&&(z=L+C<0?I[I.length-1]:L+C===I.length?I[0]:I[L+C]),z&&S.setState("value",z.getAttribute(Le))}function Me(C){let R=q(),D=R?.closest(Ve),I;for(;D&&!I;)D=C>0?$d(D,Ve):Dd(D,Ve),I=D?.querySelector(En);I?S.setState("value",I.getAttribute(Le)):U(C)}let te=()=>oe(B().length-1),A=C=>{C.preventDefault(),C.metaKey?te():C.altKey?Me(1):U(1)},re=C=>{C.preventDefault(),C.metaKey?oe(0):C.altKey?Me(-1):U(-1)};return f.createElement(X.div,{ref:e,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:C=>{var R;(R=w.onKeyDown)==null||R.call(w,C);let D=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||D))switch(C.key){case"n":case"j":{g&&C.ctrlKey&&A(C);break}case"ArrowDown":{A(C);break}case"p":case"k":{g&&C.ctrlKey&&re(C);break}case"ArrowUp":{re(C);break}case"Home":{C.preventDefault(),oe(0);break}case"End":{C.preventDefault(),te();break}case"Enter":{C.preventDefault();let I=q();if(I){let L=new Event(Gt);I.dispatchEvent(L)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:zd},d),Ct(n,C=>f.createElement(Jo.Provider,{value:S},f.createElement(Xo.Provider,{value:E},C))))}),Sd=f.forwardRef((n,e)=>{var t,o;let r=le(),s=f.useRef(null),i=f.useContext(Qo),l=et(),d=er(n),c=(o=(t=d.current)==null?void 0:t.forceMount)!=null?o:i?.forceMount;Ce(()=>{if(!c)return l.item(r,i?.id)},[c]);let u=tr(r,s,[n.value,n.children,s],n.keywords),p=hn(),m=be(k=>k.value&&k.value===u.current),h=be(k=>c||l.filter()===!1?!0:k.search?k.filtered.items.get(r)>0:!0);f.useEffect(()=>{let k=s.current;if(!(!k||n.disabled))return k.addEventListener(Gt,x),()=>k.removeEventListener(Gt,x)},[h,n.onSelect,n.disabled]);function x(){var k,S;v(),(S=(k=d.current).onSelect)==null||S.call(k,u.current)}function v(){p.setState("value",u.current,!0)}if(!h)return null;let{disabled:g,value:w,onSelect:y,forceMount:b,keywords:j,..._}=n;return f.createElement(X.div,{ref:Ue(s,e),..._,id:r,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!m,"data-disabled":!!g,"data-selected":!!m,onPointerMove:g||l.getDisablePointerSelection()?void 0:v,onClick:g?void 0:x},n.children)}),Nd=f.forwardRef((n,e)=>{let{heading:t,children:o,forceMount:r,...s}=n,i=le(),l=f.useRef(null),d=f.useRef(null),c=le(),u=et(),p=be(h=>r||u.filter()===!1?!0:h.search?h.filtered.groups.has(i):!0);Ce(()=>u.group(i),[]),tr(i,l,[n.value,n.heading,d]);let m=f.useMemo(()=>({id:i,forceMount:r}),[r]);return f.createElement(X.div,{ref:Ue(l,e),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},t&&f.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:c},t),Ct(n,h=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":t?c:void 0},f.createElement(Qo.Provider,{value:m},h))))}),Id=f.forwardRef((n,e)=>{let{alwaysRender:t,...o}=n,r=f.useRef(null),s=be(i=>!i.search);return!t&&!s?null:f.createElement(X.div,{ref:Ue(r,e),...o,"cmdk-separator":"",role:"separator"})}),Ed=f.forwardRef((n,e)=>{let{onValueChange:t,...o}=n,r=n.value!=null,s=hn(),i=be(c=>c.search),l=be(c=>c.selectedItemId),d=et();return f.useEffect(()=>{n.value!=null&&s.setState("search",n.value)},[n.value]),f.createElement(X.input,{ref:e,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":l,id:d.inputId,type:"text",value:r?n.value:i,onChange:c=>{r||s.setState("search",c.target.value),t?.(c.target.value)}})}),Rd=f.forwardRef((n,e)=>{let{children:t,label:o="Suggestions",...r}=n,s=f.useRef(null),i=f.useRef(null),l=be(c=>c.selectedItemId),d=et();return f.useEffect(()=>{if(i.current&&s.current){let c=i.current,u=s.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=c.offsetHeight;u.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(c),()=>{cancelAnimationFrame(p),m.unobserve(c)}}},[]),f.createElement(X.div,{ref:Ue(s,e),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":o,id:d.listId},Ct(n,c=>f.createElement("div",{ref:Ue(i,d.listInnerRef),"cmdk-list-sizer":""},c)))}),Pd=f.forwardRef((n,e)=>{let{open:t,onOpenChange:o,overlayClassName:r,contentClassName:s,container:i,...l}=n;return f.createElement(Dn,{open:t,onOpenChange:o},f.createElement(Ln,{container:i},f.createElement(zn,{"cmdk-overlay":"",className:r}),f.createElement(On,{"aria-label":n.label,"cmdk-dialog":"",className:s},f.createElement(Zo,{ref:e,...l}))))}),Td=f.forwardRef((n,e)=>be(t=>t.filtered.count===0)?f.createElement(X.div,{ref:e,...n,"cmdk-empty":"",role:"presentation"}):null),Ad=f.forwardRef((n,e)=>{let{progress:t,children:o,label:r="Loading...",...s}=n;return f.createElement(X.div,{ref:e,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},Ct(n,i=>f.createElement("div",{"aria-hidden":!0},i)))}),_e=Object.assign(Zo,{List:Rd,Item:Sd,Input:Ed,Group:Nd,Separator:Id,Dialog:Pd,Empty:Td,Loading:Ad});function $d(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return t;t=t.nextElementSibling}}function Dd(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return t;t=t.previousElementSibling}}function er(n){let e=f.useRef(n);return Ce(()=>{e.current=n}),e}var Ce=typeof window>"u"?f.useEffect:f.useLayoutEffect;function ze(n){let e=f.useRef();return e.current===void 0&&(e.current=n()),e}function be(n){let e=hn(),t=()=>n(e.snapshot());return f.useSyncExternalStore(e.subscribe,t,t)}function tr(n,e,t,o=[]){let r=f.useRef(),s=et();return Ce(()=>{var i;let l=(()=>{var c;for(let u of t){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():r.current}})(),d=o.map(c=>c.trim());s.value(n,l,d),(i=e.current)==null||i.setAttribute(Le,l),r.current=l}),r}var Od=()=>{let[n,e]=f.useState(),t=ze(()=>new Map);return Ce(()=>{t.current.forEach(o=>o()),t.current=new Map},[n]),(o,r)=>{t.current.set(o,r),e({})}};function Ld(n){let e=n.type;return typeof e=="function"?e(n.props):"render"in e?e.render(n.props):n}function Ct({asChild:n,children:e},t){return n&&f.isValidElement(e)?f.cloneElement(Ld(e),{ref:e.ref},t(e.props.children)):t(e)}var zd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Fd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e,{"data-slot":"command",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Gd(n){const e=M.c(26);let t,o,r,s,i,l;e[0]!==n?({title:s,description:i,children:t,className:o,showCloseButton:l,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6]);const d=s===void 0?"Command Palette":s,c=i===void 0?"Search for a command to run...":i,u=l===void 0?!0:l;let p;e[7]!==d?(p=a.jsx(Ht,{children:d}),e[7]=d,e[8]=p):p=e[8];let m;e[9]!==c?(m=a.jsx(Bt,{children:c}),e[9]=c,e[10]=m):m=e[10];let h;e[11]!==p||e[12]!==m?(h=a.jsxs(Vt,{className:"sr-only",children:[p,m]}),e[11]=p,e[12]=m,e[13]=h):h=e[13];let x;e[14]!==o?(x=T("overflow-hidden p-0",o),e[14]=o,e[15]=x):x=e[15];let v;e[16]!==t?(v=a.jsx(Fd,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[16]=t,e[17]=v):v=e[17];let g;e[18]!==u||e[19]!==x||e[20]!==v?(g=a.jsx(Kt,{className:x,showCloseButton:u,children:v}),e[18]=u,e[19]=x,e[20]=v,e[21]=g):g=e[21];let w;return e[22]!==r||e[23]!==h||e[24]!==g?(w=a.jsxs(qt,{...r,children:[h,g]}),e[22]=r,e[23]=h,e[24]=g,e[25]=w):w=e[25],w}function Vd(n){const e=M.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Yt,{className:"size-4 shrink-0 opacity-50"}),e[3]=r):r=e[3];let s;e[4]!==t?(s=T("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==s?(i=a.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[r,a.jsx(_e.Input,{"data-slot":"command-input",className:s,...o})]}),e[6]=o,e[7]=s,e[8]=i):i=e[8],i}function Hd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.List,{"data-slot":"command-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Bd(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(_e.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=o):o=e[3],o}function st(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Group,{"data-slot":"command-group",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Kd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-border -mx-1 h-px",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Separator,{"data-slot":"command-separator",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function at(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Item,{"data-slot":"command-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}const qd=n=>[...n?[]:[{title:"Dashboard",href:ct(),icon:Xn}],{title:"Issues",href:Ke(),icon:Jn},...n?[]:[{title:"Integrations",href:An(),icon:Qn},{title:"Members",href:$n(),icon:Xt}]];function Ud(n){const e=M.c(47),{open:t,onOpenChange:o}=n,[r,s]=f.useState(""),{applications:i,environment:l,embedded:d,window:c}=ce().props;let u;e[0]!==o?(u=E=>{o(!1),ee.visit(E)},e[0]=o,e[1]=u):u=e[1];const p=u;let m,h,x,v,g,w,y,b;if(e[2]!==c||e[3]!==d||e[4]!==l||e[5]!==p||e[6]!==o||e[7]!==t||e[8]!==r){const E=l?mn(l.application_id,l.id,c??"24h"):[];h=Gd,w=t,y=o,e[17]!==r?(b=a.jsx(Vd,{placeholder:"Search pages, applications, issues…",value:r,onValueChange:s}),e[17]=r,e[18]=b):b=e[18],m=Hd,e[19]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Bd,{children:"No results found."}),e[19]=x):x=e[19];let N;if(e[20]!==d||e[21]!==p){let P;e[23]!==p?(P=O=>a.jsxs(at,{onSelect:()=>p(O.href),children:[O.icon&&a.jsx(O.icon,{}),a.jsx("span",{children:O.title})]},O.title),e[23]=p,e[24]=P):P=e[24],N=qd(!!d).map(P),e[20]=d,e[21]=p,e[22]=N}else N=e[22];e[25]!==N?(v=a.jsx(st,{heading:"Navigation",children:N}),e[25]=N,e[26]=v):v=e[26],g=E.length>0&&a.jsx(st,{heading:`${l.application_name} · ${l.name}`,children:E.map(P=>a.jsxs(at,{onSelect:()=>p(P.href),children:[P.icon&&a.jsx(P.icon,{}),a.jsx("span",{children:P.title})]},P.title))}),e[2]=c,e[3]=d,e[4]=l,e[5]=p,e[6]=o,e[7]=t,e[8]=r,e[9]=m,e[10]=h,e[11]=x,e[12]=v,e[13]=g,e[14]=w,e[15]=y,e[16]=b}else m=e[9],h=e[10],x=e[11],v=e[12],g=e[13],w=e[14],y=e[15],b=e[16];let j;e[27]!==i||e[28]!==d||e[29]!==p?(j=!d&&a.jsx(st,{heading:"Applications",children:i.flatMap(E=>E.environments.map(N=>a.jsx(at,{value:`${E.name} ${N.name}`,onSelect:()=>p(Be(E.id,N.id)),children:a.jsxs("span",{children:[E.name," · ",N.name]})},`${E.id}-${N.id}`)))}),e[27]=i,e[28]=d,e[29]=p,e[30]=j):j=e[30];let _;e[31]!==p||e[32]!==r?(_=r.trim()&&a.jsxs(a.Fragment,{children:[a.jsx(Kd,{}),a.jsx(st,{heading:"Search",children:a.jsxs(at,{value:r,onSelect:()=>p(`${Ke()}?q=${encodeURIComponent(r)}`),children:[a.jsx(Yt,{}),a.jsxs("span",{children:["Search issues for “",r,"”"]})]})})]}),e[31]=p,e[32]=r,e[33]=_):_=e[33];let k;e[34]!==m||e[35]!==x||e[36]!==v||e[37]!==g||e[38]!==j||e[39]!==_?(k=a.jsxs(m,{children:[x,v,g,j,_]}),e[34]=m,e[35]=x,e[36]=v,e[37]=g,e[38]=j,e[39]=_,e[40]=k):k=e[40];let S;return e[41]!==h||e[42]!==k||e[43]!==w||e[44]!==y||e[45]!==b?(S=a.jsxs(h,{open:w,onOpenChange:y,children:[b,k]}),e[41]=h,e[42]=k,e[43]=w,e[44]=y,e[45]=b,e[46]=S):S=e[46],S}const Wd=[{title:"Navigation",shortcuts:[{keys:["⌘","K"],description:"Open command palette"},{keys:["g","d"],description:"Go to dashboard"},{keys:["g","o"],description:"Go to Overview"},{keys:["g","r"],description:"Go to Requests"},{keys:["g","j"],description:"Go to Jobs"},{keys:["g","q"],description:"Go to Queries"},{keys:["g","i"],description:"Go to Issues"},{keys:["?"],description:"Show this help"}]},{title:"Lists (requests, jobs, queries, issues, logs, …)",shortcuts:[{keys:["j"],description:"Move highlight down"},{keys:["k"],description:"Move highlight up"},{keys:["↵"],description:"Open highlighted row"},{keys:["o"],description:"Open highlighted row in a new tab"},{keys:["Esc"],description:"Clear highlight"},{keys:["/"],description:"Focus the filter bar"}]}];function Yd(n){const e=M.c(5),{open:t,onOpenChange:o}=n;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsxs(Vt,{children:[a.jsx(Ht,{children:"Keyboard shortcuts"}),a.jsx(Bt,{children:"Available anywhere in the app."})]}),e[0]=r):r=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsxs(Kt,{className:"sm:max-w-sm",children:[r,a.jsx("div",{className:"flex flex-col gap-4",children:Wd.map(Xd)})]}),e[1]=s):s=e[1];let i;return e[2]!==o||e[3]!==t?(i=a.jsx(qt,{open:t,onOpenChange:o,children:s}),e[2]=o,e[3]=t,e[4]=i):i=e[4],i}function Xd(n){return a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:n.title}),a.jsx("ul",{className:"flex flex-col gap-2",children:n.shortcuts.map(Jd)})]},n.title)}function Jd(n){return a.jsxs("li",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{className:"text-muted-foreground",children:n.description}),a.jsx("span",{className:"flex items-center gap-1",children:n.keys.map(Qd)})]},n.description)}function Qd(n,e){return a.jsx("kbd",{className:"bg-muted rounded border px-1.5 py-0.5 font-mono text-xs",children:n},e)}const Zd=800;function eu(n){const e=M.c(4),t=f.useRef(n);let o;e[0]!==n?(o=()=>{t.current=n},e[0]=n,e[1]=o):o=e[1],f.useEffect(o);const r=f.useRef(null),s=f.useRef(void 0);let i,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const d=c=>{const u=c.target;if(!(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.tagName==="SELECT"||u.isContentEditable)&&!(c.metaKey||c.ctrlKey||c.altKey)){if(r.current){const p=`${r.current} ${c.key}`;if(window.clearTimeout(s.current),r.current=null,t.current[p]){c.preventDefault(),t.current[p]();return}}if(t.current[c.key]){c.preventDefault(),t.current[c.key]();return}c.key==="g"&&(r.current="g",s.current=window.setTimeout(()=>{r.current=null},Zd))}};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d),window.clearTimeout(s.current)}},l=[],e[2]=i,e[3]=l):(i=e[2],l=e[3]),f.useEffect(i,l)}function tu(n){const e=M.c(28),{children:t,breadcrumbs:o}=n;let r;e[0]!==o?(r=o===void 0?[]:o,e[0]=o,e[1]=r):r=e[1];const s=r,[i,l]=f.useState(!1),[d,c]=f.useState(!1),{environment:u,window:p}=ce().props;let m,h;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{const N=P=>{P.key==="k"&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),l(ru))};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},h=[],e[2]=m,e[3]=h):(m=e[2],h=e[3]),f.useEffect(m,h);let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=()=>c(ou),e[4]=x):x=e[4];let v;e[5]!==u?(v=()=>ee.visit(u?Ke({application_id:u.application_id,environment_id:u.id}):Ke()),e[5]=u,e[6]=v):v=e[6];let g;e[7]!==u||e[8]!==p?(g=u&&{"g o":()=>ee.visit(Be(u.application_id,u.id,{window:p})),"g r":()=>ee.visit(Rn(u.application_id,u.id,{window:p})),"g j":()=>ee.visit(Pn(u.application_id,u.id,{window:p})),"g q":()=>ee.visit(Tn(u.application_id,u.id,{window:p}))},e[7]=u,e[8]=p,e[9]=g):g=e[9];let w;e[10]!==v||e[11]!==g?(w={"?":x,"g d":nu,"g i":v,...g},e[10]=v,e[11]=g,e[12]=w):w=e[12],eu(w);let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(rd,{}),e[13]=y):y=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=()=>l(!0),e[14]=b):b=e[14];let j;e[15]!==s?(j=a.jsx(hd,{breadcrumbs:s,onOpenCommandPalette:b}),e[15]=s,e[16]=j):j=e[16];let _;e[17]!==t||e[18]!==j?(_=a.jsxs(Ri,{variant:"sidebar",className:"overflow-x-hidden",children:[j,t]}),e[17]=t,e[18]=j,e[19]=_):_=e[19];let k;e[20]!==i?(k=a.jsx(Ud,{open:i,onOpenChange:l}),e[20]=i,e[21]=k):k=e[21];let S;e[22]!==d?(S=a.jsx(Yd,{open:d,onOpenChange:c}),e[22]=d,e[23]=S):S=e[23];let E;return e[24]!==_||e[25]!==k||e[26]!==S?(E=a.jsxs(Pi,{variant:"sidebar",children:[y,_,k,S]}),e[24]=_,e[25]=k,e[26]=S,e[27]=E):E=e[27],E}function nu(){return ee.visit(ct())}function ou(n){return!n}function ru(n){return!n}function Cu(n){const e=M.c(8);let t,o,r;e[0]!==n?({children:o,breadcrumbs:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;return e[4]!==t||e[5]!==o||e[6]!==r?(s=a.jsx(tu,{breadcrumbs:t,...r,children:o}),e[4]=t,e[5]=o,e[6]=r,e[7]=s):s=e[7],s}export{qn as $,Cu as A,Kn as B,Un as C,xu as D,yt as E,Ms as F,Ps as G,gu as H,ol as I,xt as J,hs as K,Ds as L,Ks as M,Ns as N,Jn as O,sa as P,ks as Q,ia as R,wu as S,xa as T,Xt as U,$a as V,_a as W,Xs as X,Us as Y,es as Z,As as _,Wn as a,ps as b,yo as c,nl as d,Yt as e,st as f,at as g,Ic as h,Rc as i,Pc as j,Vd as k,Bd as l,Hd as m,Gd as n,en as o,va as p,ns as q,da as r,Fd as s,si as t,nn as u,ai as v,ii as w,bt as x,Ye as y,Fe as z};
|
|
1
|
+
var gn=n=>{throw TypeError(n)};var xn=(n,e,t)=>e.has(n)||gn("Cannot "+t);var ne=(n,e,t)=>(xn(n,e,"read from private field"),t?t.call(n):e.get(n)),bn=(n,e,t)=>e.has(n)?gn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),kt=(n,e,t,o)=>(xn(n,e,"write to private field"),o?o.call(n,t):e.set(n,t),t);import{B as $,c as M,j as a,C as T,a5 as nr,r as f,u as ce,L as me,a3 as or,e as ee,a6 as rr,a2 as sr,a7 as ar,a8 as ir,a9 as lr,aa as cr,o as Be,ab as Rn,X as Pn,ac as dr,ad as ur,E as fr,ae as Tn,af as pr,ag as mr,ah as hr,ai as vr,v as gr,$ as xr,aj as br,ak as yr,a0 as wr,Z as Cr,al as jr,_ as kr,A as _r,am as Mr,an as Sr,ao as Nr,z as Ir,ap as Er,aq as Rr,b as Pr,ar as Tr,as as Ar,h as $r,x as ct,S as Ke,d as Dr,at as An,au as $n}from"./inertia-CqnzqPVD.js";import{u as se,b as Or,S as dt,c as Lr,B as He,a as qe,A as zr,d as Ue}from"./app-wordmark-Bt6XqURo.js";import{j as Dn,k as Fr,l as Gr,m as On,n as Ln,o as Vr,p as zn,d as ut,P as Fn,e as Gn,C as Vn,q as Hr,A as Hn,u as le,R as Bn,i as ft,h as Br,f as Kr,g as qr,F as Ur,r as Vt,D as Ht,a as Bt,s as Wr,b as Kt,c as qt,B as Yr,L as Xr}from"./live-dot-UdzOfzJb.js";import{c as ye,P as Ge,b as Xe,a as V,u as pt,C as Ut}from"./index-C-EwH4lO.js";import{P as X,d as Jr}from"./index-BDVShWMs.js";import{C as yn}from"./checkbox-DKbThbxr.js";import{L as _t,I as Qr}from"./label-1nSzpSB6.js";const Zr=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],es=$("activity",Zr);const ts=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],ns=$("arrow-up-right",ts);const os=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],Kn=$("bell-ring",os);const rs=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],ss=$("book-open",rs);const as=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],is=$("bookmark-plus",as);const ls=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],Wt=$("bookmark",ls);const cs=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],ds=$("bug",cs);const us=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],qn=$("building-2",us);const fs=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],ps=$("cable",fs);const ms=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],hs=$("calendar-clock",ms);const vs=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],gs=$("chart-pie",vs);const xs=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Un=$("chevron-down",xs);const bs=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Wn=$("chevron-right",bs);const ys=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Yn=$("chevrons-up-down",ys);const ws=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Cs=$("circle",ws);const js=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],ks=$("database",js);const _s=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ms=$("file-text",_s);const Ss=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Ns=$("flame",Ss);const Is=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Es=$("gauge",Is);const Rs=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Ps=$("git-commit-horizontal",Rs);const Ts=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],As=$("hard-drive",Ts);const $s=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ds=$("layers",$s);const Os=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Xn=$("layout-grid",Os);const Ls=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],zs=$("layout-template",Ls);const Fs=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Gs=$("link-2",Fs);const Vs=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Hs=$("log-out",Vs);const Bs=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ks=$("mail",Bs);const qs=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],Us=$("monitor-smartphone",qs);const Ws=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],Jn=$("octagon-alert",Ws);const Ys=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Xs=$("package",Ys);const Js=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Qs=$("panel-left",Js);const Zs=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],ea=$("pin-off",Zs);const ta=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],na=$("pin",ta);const oa=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Qn=$("plug",oa);const ra=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],sa=$("plus",ra);const aa=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],ia=$("rocket",aa);const la=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Yt=$("search",la);const ca=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],da=$("server",ca);const ua=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],fa=$("settings",ua);const pa=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],ma=$("siren",pa);const ha=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],va=$("sparkles",ha);const ga=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],xa=$("terminal",ga);const ba=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],ya=$("timer",ba);const wa=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ca=$("trash-2",wa);const ja=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Xt=$("users",ja);const ka=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],_a=$("workflow",ka);function Ma(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Dn,{"data-slot":"sheet",...t}),e[2]=t,e[3]=o):o=e[3],o}function Sa(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Ln,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=o):o=e[3],o}function Na(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(zn,{"data-slot":"sheet-overlay",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ia(n){const e=M.c(17);let t,o,r,s;e[0]!==n?({className:o,children:t,side:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?"right":s;let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Na,{}),e[5]=l):l=e[5];const d=i==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",c=i==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",u=i==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",p=i==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==o||e[7]!==d||e[8]!==c||e[9]!==u||e[10]!==p?(m=T("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",d,c,u,p,o),e[6]=o,e[7]=d,e[8]=c,e[9]=u,e[10]=p,e[11]=m):m=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsxs(Vr,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[a.jsx(nr,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=h):h=e[12];let x;return e[13]!==t||e[14]!==r||e[15]!==m?(x=a.jsxs(Sa,{children:[l,a.jsxs(On,{"data-slot":"sheet-content",className:m,...r,children:[t,h]})]}),e[13]=t,e[14]=r,e[15]=m,e[16]=x):x=e[16],x}function Ea(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sheet-header",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ra(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground font-semibold",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Fr,{"data-slot":"sheet-title",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Pa(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-muted-foreground text-sm",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Gr,{"data-slot":"sheet-description",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}var Ta=Object.defineProperty,Aa=(n,e)=>Ta(n,"name",{value:e,configurable:!0}),$a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Da=f.forwardRef(Aa(function(e,t){return a.jsx(X.span,{...e,ref:t,style:{...$a,...e.style}})},"VisuallyHidden")),Oa=Da,La=Object.defineProperty,Q=(n,e)=>La(n,"name",{value:e,configurable:!0}),[Jt,pu]=ye("Tooltip",[ut]),mt=ut(),za="TooltipProvider",Fa=700,Pt="tooltip.open",[Ga,Qt]=Jt(za),Va=Q(n=>{const{__scopeTooltip:e,delayDuration:t=Fa,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=n,i=f.useRef(!0),l=f.useRef(!1),d=f.useRef(0);return f.useEffect(()=>{const c=d.current;return()=>window.clearTimeout(c)},[]),a.jsx(Ga,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:f.useCallback(()=>{o<=0||(window.clearTimeout(d.current),i.current=!1)},[o]),onClose:f.useCallback(()=>{o<=0||(window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,o))},[o]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(c=>{l.current=c},[]),disableHoverableContent:r,children:s})},"TooltipProvider"),Tt="Tooltip",[Ha,Je]=Jt(Tt),Ba=Q(n=>{const{__scopeTooltip:e,children:t,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=n,d=Qt(Tt,n.__scopeTooltip),c=mt(e),[u,p]=f.useState(null),[m,h]=f.useState(void 0),x=le(),v=f.useRef(0),g=i??d.disableHoverableContent,w=l??d.delayDuration,y=f.useRef(!1),[b,j]=pt({prop:o,defaultProp:r??!1,onChange:Q(P=>{P?(d.onOpen(),document.dispatchEvent(new CustomEvent(Pt))):d.onClose(),s?.(P)},"onChange"),caller:Tt}),_=f.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),k=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,y.current=!1,j(!0)},[j]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,j(!1)},[j]),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{y.current=!0,j(!0),v.current=0},w)},[w,j]);f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]);const N=m??x;return a.jsx(Bn,{...c,children:a.jsx(Ha,{scope:e,contentId:N,setContentId:h,open:b,stateAttribute:_,trigger:u,onTriggerChange:p,onTriggerEnter:f.useCallback(()=>{d.isOpenDelayedRef.current?E():k()},[d.isOpenDelayedRef,E,k]),onTriggerLeave:f.useCallback(()=>{g?S():(window.clearTimeout(v.current),v.current=0)},[S,g]),onOpen:k,onClose:S,disableHoverableContent:g,children:t})})},"Tooltip"),wn="TooltipTrigger",Ka=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,...r}=e,s=Je(wn,o),i=Qt(wn,o),l=mt(o),d=f.useRef(null),c=se(t,d,s.onTriggerChange),u=f.useRef(!1),p=f.useRef(!1),m=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),a.jsx(Hn,{asChild:!0,...l,children:a.jsx(X.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:V(e.onPointerMove,h=>{h.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:V(e.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:V(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:V(e.onBlur,s.onClose),onClick:V(e.onClick,s.onClose)})})},"TooltipTrigger")),Zn="TooltipPortal",[qa,Ua]=Jt(Zn,{forceMount:void 0}),Wa=Q(n=>{const{__scopeTooltip:e,forceMount:t,children:o,container:r}=n,s=Je(Zn,e);return a.jsx(qa,{scope:e,forceMount:t,children:a.jsx(Ge,{present:t||s.open,children:a.jsx(Fn,{asChild:!0,container:r,children:o})})})},"TooltipPortal"),We="TooltipContent",Ya=f.forwardRef(Q(function(e,t){const o=Ua(We,e.__scopeTooltip),{forceMount:r=o.forceMount,side:s="top",...i}=e,l=Je(We,e.__scopeTooltip);return a.jsx(Ge,{present:r||l.open,children:l.disableHoverableContent?a.jsx(eo,{side:s,...i,ref:t}):a.jsx(Xa,{side:s,...i,ref:t})})},"TooltipContent")),Xa=f.forwardRef(Q(function(e,t){const o=Je(We,e.__scopeTooltip),r=Qt(We,e.__scopeTooltip),s=f.useRef(null),i=se(t,s),[l,d]=f.useState(null),{trigger:c,onClose:u}=o,p=s.current,{onPointerInTransitChange:m}=r,h=f.useCallback(()=>{d(null),m(!1)},[m]),x=f.useCallback((v,g)=>{const w=v.currentTarget,y={x:v.clientX,y:v.clientY},b=to(y,w.getBoundingClientRect()),j=no(y,b),_=oo(g.getBoundingClientRect()),k=so([...j,..._]);d(k),m(!0)},[m]);return f.useEffect(()=>()=>h(),[h]),f.useEffect(()=>{if(c&&p){const v=Q(w=>x(w,p),"handleTriggerLeave"),g=Q(w=>x(w,c),"handleContentLeave");return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",g)}}},[c,p,x,h]),f.useEffect(()=>{if(l){const v=Q(g=>{const w=g.target,y={x:g.clientX,y:g.clientY},b=c?.contains(w)||p?.contains(w),j=!ro(y,l);b?h():j&&(h(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,l,u,h]),a.jsx(eo,{...e,ref:i})},"TooltipContentHoverable")),Ja=Or("TooltipContent"),eo=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,children:r,"aria-label":s,id:i,onEscapeKeyDown:l,onPointerDownOutside:d,...c}=e,u=Je(We,o),p=mt(o),{onClose:m}=u;f.useEffect(()=>(document.addEventListener(Pt,m),()=>document.removeEventListener(Pt,m)),[m]),f.useEffect(()=>{if(u.trigger){const x=Q(v=>{v.target instanceof Node&&v.target.contains(u.trigger)&&m()},"handleScroll");return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[u.trigger,m]);const{setContentId:h}=u;return Xe(()=>(h(i),()=>{h(void 0)}),[i,h]),a.jsx(Gn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:x=>x.preventDefault(),onDismiss:m,children:a.jsxs(Vn,{"data-state":u.stateAttribute,role:s?void 0:"tooltip",id:s?void 0:u.contentId,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(Ja,{children:r}),s?a.jsx(Oa,{id:u.contentId,role:"tooltip",children:s}):null]})})},"TooltipContentImpl")),Qa=f.forwardRef(Q(function(e,t){const{__scopeTooltip:o,...r}=e,s=mt(o);return a.jsx(Hr,{...s,...r,ref:t})},"TooltipArrow"));function to(n,e){const t=Math.abs(e.top-n.y),o=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),s=Math.abs(e.left-n.x);switch(Math.min(t,o,r,s)){case s:return"left";case r:return"right";case t:return"top";case o:return"bottom";default:throw new Error("unreachable")}}Q(to,"getExitSideFromRect");function no(n,e,t=5){const o=[];switch(e){case"top":o.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":o.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":o.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":o.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return o}Q(no,"getPaddedExitPoints");function oo(n){const{top:e,right:t,bottom:o,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:o},{x:r,y:o}]}Q(oo,"getPointsFromRect");function ro(n,e){const{x:t,y:o}=n;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const l=e[s],d=e[i],c=l.x,u=l.y,p=d.x,m=d.y;u>o!=m>o&&t<(p-c)*(o-u)/(m-u)+c&&(r=!r)}return r}Q(ro,"isPointInPolygon");function so(n){const e=n.slice();return e.sort((t,o)=>t.x<o.x?-1:t.x>o.x?1:t.y<o.y?-1:t.y>o.y?1:0),ao(e)}Q(so,"getHull");function ao(n){if(n.length<=1)return n.slice();const e=[];for(let o=0;o<n.length;o++){const r=n[o];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let o=n.length-1;o>=0;o--){const r=n[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}Q(ao,"getHullPresorted");var Za=Va,ei=Ba,ti=Ka,ni=Wa,oi=Ya,ri=Qa;function io(n){const e=M.c(6);let t,o;e[0]!==n?({delayDuration:o,...t}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);const r=o===void 0?0:o;let s;return e[3]!==r||e[4]!==t?(s=a.jsx(Za,{"data-slot":"tooltip-provider",delayDuration:r,...t}),e[3]=r,e[4]=t,e[5]=s):s=e[5],s}function si(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(io,{children:a.jsx(ei,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=o):o=e[3],o}function ai(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(ti,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function ii(n){const e=M.c(13);let t,o,r,s;e[0]!==n?({className:o,sideOffset:s,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?0:s;let l;e[5]!==o?(l=T("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",o),e[5]=o,e[6]=l):l=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(ri,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=d):d=e[7];let c;return e[8]!==t||e[9]!==r||e[10]!==i||e[11]!==l?(c=a.jsx(ni,{children:a.jsxs(oi,{"data-slot":"tooltip-content",sideOffset:i,className:l,...r,children:[t,d]})}),e[8]=t,e[9]=r,e[10]=i,e[11]=l,e[12]=c):c=e[12],c}const li=768,At=window.matchMedia(`(max-width: ${li-1}px)`);function ci(n){return At.addEventListener("change",n),()=>{At.removeEventListener("change",n)}}function di(){return At.matches}function lo(){return f.useSyncExternalStore(ci,di)}const ui="sidebar_state",fi=3600*24*7,pi="14.25rem",mi="18rem",hi="3rem",vi="b",co=f.createContext(null);function ht(){const n=f.useContext(co);if(!n)throw new Error("useSidebar must be used within a SidebarProvider.");return n}function gi(n){const e=M.c(36);let t,o,r,s,i,l,d;e[0]!==n?({defaultOpen:d,open:r,onOpenChange:i,className:o,style:l,children:t,...s}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l,e[7]=d):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6],d=e[7]);const c=d===void 0?!0:d,u=lo(),[p,m]=f.useState(!1),[h,x]=f.useState(c),v=r??h;let g;e[8]!==v||e[9]!==i?(g=q=>{const B=typeof q=="function"?q(v):q;i?i(B):x(B),document.cookie=`${ui}=${B}; path=/; max-age=${fi}`},e[8]=v,e[9]=i,e[10]=g):g=e[10];const w=g;let y;e[11]!==u||e[12]!==w?(y=()=>u?m(bi):w(xi),e[11]=u,e[12]=w,e[13]=y):y=e[13];const b=y;let j,_;e[14]!==b?(j=()=>{const q=B=>{B.key===vi&&(B.metaKey||B.ctrlKey)&&(B.preventDefault(),b())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},_=[b],e[14]=b,e[15]=j,e[16]=_):(j=e[15],_=e[16]),f.useEffect(j,_);const k=v?"expanded":"collapsed";let S;e[17]!==u||e[18]!==v||e[19]!==p||e[20]!==w||e[21]!==k||e[22]!==b?(S={state:k,open:v,setOpen:w,isMobile:u,openMobile:p,setOpenMobile:m,toggleSidebar:b},e[17]=u,e[18]=v,e[19]=p,e[20]=w,e[21]=k,e[22]=b,e[23]=S):S=e[23];const E=S;let N;e[24]!==l?(N={"--sidebar-width":pi,"--sidebar-width-icon":hi,...l},e[24]=l,e[25]=N):N=e[25];const P=N;let O;e[26]!==o?(O=T("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",o),e[26]=o,e[27]=O):O=e[27];let G;e[28]!==t||e[29]!==s||e[30]!==P||e[31]!==O?(G=a.jsx(io,{delayDuration:0,children:a.jsx("div",{"data-slot":"sidebar-wrapper",style:P,className:O,...s,children:t})}),e[28]=t,e[29]=s,e[30]=P,e[31]=O,e[32]=G):G=e[32];let K;return e[33]!==E||e[34]!==G?(K=a.jsx(co.Provider,{value:E,children:G}),e[33]=E,e[34]=G,e[35]=K):K=e[35],K}function xi(n){return!n}function bi(n){return!n}function yi(n){const e=M.c(46);let t,o,r,s,i,l;e[0]!==n?({side:s,variant:i,collapsible:l,className:o,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6]);const d=s===void 0?"left":s,c=i===void 0?"sidebar":i,u=l===void 0?"offcanvas":l,{isMobile:p,state:m,openMobile:h,setOpenMobile:x}=ht();if(u==="none"){let N;e[7]!==o?(N=T("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),e[7]=o,e[8]=N):N=e[8];let P;return e[9]!==t||e[10]!==r||e[11]!==N?(P=a.jsx("div",{"data-slot":"sidebar",className:N,...r,children:t}),e[9]=t,e[10]=r,e[11]=N,e[12]=P):P=e[12],P}if(p){let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":mi},e[13]=N):N=e[13];let P;e[14]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsxs(Ea,{className:"sr-only",children:[a.jsx(Ra,{children:"Sidebar"}),a.jsx(Pa,{children:"Displays the mobile sidebar."})]}),e[14]=P):P=e[14];let O;e[15]!==t?(O=a.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[15]=t,e[16]=O):O=e[16];let G;e[17]!==d||e[18]!==O?(G=a.jsxs(Ia,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:d,children:[P,O]}),e[17]=d,e[18]=O,e[19]=G):G=e[19];let K;return e[20]!==h||e[21]!==r||e[22]!==x||e[23]!==G?(K=a.jsx(Ma,{open:h,onOpenChange:x,...r,children:G}),e[20]=h,e[21]=r,e[22]=x,e[23]=G,e[24]=K):K=e[24],K}const v=m==="collapsed"?u:"",g=c==="floating"||c==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let w;e[25]!==g?(w=T("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",g),e[25]=g,e[26]=w):w=e[26];let y;e[27]!==w?(y=a.jsx("div",{"data-slot":"sidebar-gap",className:w}),e[27]=w,e[28]=y):y=e[28];const b=d==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",j=c==="floating"||c==="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-r group-data-[side=right]:border-l";let _;e[29]!==o||e[30]!==b||e[31]!==j?(_=T("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",b,j,o),e[29]=o,e[30]=b,e[31]=j,e[32]=_):_=e[32];let k;e[33]!==t?(k=a.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:t}),e[33]=t,e[34]=k):k=e[34];let S;e[35]!==r||e[36]!==_||e[37]!==k?(S=a.jsx("div",{"data-slot":"sidebar-container",className:_,...r,children:k}),e[35]=r,e[36]=_,e[37]=k,e[38]=S):S=e[38];let E;return e[39]!==d||e[40]!==m||e[41]!==S||e[42]!==v||e[43]!==y||e[44]!==c?(E=a.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":v,"data-variant":c,"data-side":d,"data-slot":"sidebar",children:[y,S]}),e[39]=d,e[40]=m,e[41]=S,e[42]=v,e[43]=y,e[44]=c,e[45]=E):E=e[45],E}function wi(n){const e=M.c(15);let t,o,r;e[0]!==n?({className:t,onClick:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const{toggleSidebar:s}=ht();let i;e[4]!==t?(i=T("size-7",t),e[4]=t,e[5]=i):i=e[5];let l;e[6]!==o||e[7]!==s?(l=p=>{o?.(p),s()},e[6]=o,e[7]=s,e[8]=l):l=e[8];let d,c;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Qs,{}),c=a.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=d,e[10]=c):(d=e[9],c=e[10]);let u;return e[11]!==r||e[12]!==i||e[13]!==l?(u=a.jsxs(He,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:i,onClick:l,...r,children:[d,c]}),e[11]=r,e[12]=i,e[13]=l,e[14]=u):u=e[14],u}function Ci(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("main",{"data-slot":"sidebar-inset",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ji(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ki(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function _i(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Zt(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("relative flex w-full min-w-0 flex-col p-2",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Mi(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,asChild:r,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const i=(r===void 0?!1:r)?dt:"div";let l;e[4]!==t?(l=T("text-muted-foreground ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 pt-2 text-xs font-semibold outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),e[4]=t,e[5]=l):l=e[5];let d;return e[6]!==i||e[7]!==o||e[8]!==l?(d=a.jsx(i,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l,...o}),e[6]=i,e[7]=o,e[8]=l,e[9]=d):d=e[9],d}function Si(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("w-full text-sm",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function we(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex w-full min-w-0 flex-col gap-1",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ge(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("group/menu-item relative",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}const Ni=Lr("peer/menu-button flex w-full items-center gap-3 overflow-hidden rounded-md border border-transparent px-2 text-left text-sm text-sidebar-foreground outline-hidden ring-sidebar-ring transition-colors hover:text-sidebar-accent-foreground focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:border-sidebar-border data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-lg data-[active=true]:shadow-black/4 data-[state=open]:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-9 text-sm",sm:"h-7 text-xs",lg:"h-14 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function xe(n){const e=M.c(28);let t,o,r,s,i,l,d;e[0]!==n?({asChild:r,isActive:s,variant:i,size:l,tooltip:d,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l,e[7]=d):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6],d=e[7]);const c=r===void 0?!1:r,u=s===void 0?!1:s,p=i===void 0?"default":i,m=l===void 0?"default":l,h=c?dt:"button",{isMobile:x,state:v}=ht();let g;e[8]!==t||e[9]!==m||e[10]!==p?(g=T(Ni({variant:p,size:m}),t),e[8]=t,e[9]=m,e[10]=p,e[11]=g):g=e[11];let w;e[12]!==h||e[13]!==u||e[14]!==o||e[15]!==m||e[16]!==g?(w=a.jsx(h,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":u,className:g,...o}),e[12]=h,e[13]=u,e[14]=o,e[15]=m,e[16]=g,e[17]=w):w=e[17];const y=w;if(!d)return y;if(typeof d=="string"){let S;e[18]!==d?(S={children:d},e[18]=d,e[19]=S):S=e[19],d=S}let b;e[20]!==y?(b=a.jsx(ai,{asChild:!0,children:y}),e[20]=y,e[21]=b):b=e[21];const j=v!=="collapsed"||x;let _;e[22]!==j||e[23]!==d?(_=a.jsx(ii,{side:"right",align:"center",hidden:j,...d}),e[22]=j,e[23]=d,e[24]=_):_=e[24];let k;return e[25]!==b||e[26]!==_?(k=a.jsxs(si,{children:[b,_]}),e[25]=b,e[26]=_,e[27]=k):k=e[27],k}function Ii(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("flex min-w-0 flex-col gap-0.5 py-0.5 pl-6","group-data-[collapsible=icon]:hidden",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ei(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("group/menu-sub-item relative",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Cn(n){const e=M.c(16);let t,o,r,s,i;e[0]!==n?({asChild:r,size:s,isActive:i,className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5]);const l=r===void 0?!1:r,d=s===void 0?"md":s,c=i===void 0?!1:i,u=l?dt:"a",p=d==="sm"&&"text-xs",m=d==="md"&&"text-sm";let h;e[6]!==t||e[7]!==p||e[8]!==m?(h=T("text-sidebar-foreground ring-sidebar-ring hover:text-sidebar-accent-foreground flex h-8 min-w-0 items-center gap-2 overflow-hidden rounded-md border border-transparent px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:border-sidebar-border data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[active=true]:shadow-lg data-[active=true]:shadow-black/4",p,m,"group-data-[collapsible=icon]:hidden",t),e[6]=t,e[7]=p,e[8]=m,e[9]=h):h=e[9];let x;return e[10]!==u||e[11]!==c||e[12]!==o||e[13]!==d||e[14]!==h?(x=a.jsx(u,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":d,"data-active":c,className:h,...o}),e[10]=u,e[11]=c,e[12]=o,e[13]=d,e[14]=h,e[15]=x):x=e[15],x}function Ri(n){const e=M.c(10);let t,o,r;if(e[0]!==n?({variant:r,children:t,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]),(r===void 0?"header":r)==="sidebar"){let l;return e[4]!==t||e[5]!==o?(l=a.jsx(Ci,{...o,children:t}),e[4]=t,e[5]=o,e[6]=l):l=e[6],l}let i;return e[7]!==t||e[8]!==o?(i=a.jsx("main",{className:"mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl",...o,children:t}),e[7]=t,e[8]=o,e[9]=i):i=e[9],i}function Pi(n){const e=M.c(6),{children:t,variant:o}=n,r=o===void 0?"header":o,[s,i]=f.useState(Ti);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=u=>{i(u),typeof window<"u"&&localStorage.setItem("sidebar",String(u))},e[0]=l):l=e[0];const d=l;if(r==="header"){let u;return e[1]!==t?(u=a.jsx("div",{className:"flex min-h-screen w-full flex-col",children:t}),e[1]=t,e[2]=u):u=e[2],u}let c;return e[3]!==t||e[4]!==s?(c=a.jsx(gi,{defaultOpen:s,open:s,onOpenChange:d,children:t}),e[3]=t,e[4]=s,e[5]=c):c=e[5],c}function Ti(){return typeof window<"u"?localStorage.getItem("sidebar")!=="false":!0}function Ai(n){const e=M.c(10);let t,o,r;e[0]!==n?({iconNode:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("h-4 w-4",o),e[4]=o,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==r||e[8]!==s?(i=a.jsx(t,{className:s,...r}),e[6]=t,e[7]=r,e[8]=s,e[9]=i):i=e[9],i}function $i(n){const e=M.c(12);let t,o,r;e[0]!==n?({items:o,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=`group-data-[collapsible=icon]:p-0 ${t??""}`;let i;e[4]!==o?(i=o.map(Di),e[4]=o,e[5]=i):i=e[5];let l;e[6]!==i?(l=a.jsx(Si,{children:a.jsx(we,{children:i})}),e[6]=i,e[7]=l):l=e[7];let d;return e[8]!==r||e[9]!==s||e[10]!==l?(d=a.jsx(Zt,{...r,className:s,children:l}),e[8]=r,e[9]=s,e[10]=l,e[11]=d):d=e[11],d}function Di(n){return a.jsx(ge,{children:a.jsx(xe,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:a.jsxs("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",children:[n.icon&&a.jsx(Ai,{iconNode:n.icon,className:"h-5 w-5"}),a.jsx("span",{children:n.title})]})})},n.title)}function Oi(n){const e=M.c(14),{items:t,label:o}=n;let r;e[0]!==t?(r=t===void 0?[]:t,e[0]=t,e[1]=r):r=e[1];const s=r,i=o===void 0?"Platform":o,l=ce();let d;e[2]!==i?(d=i&&a.jsx(Mi,{children:i}),e[2]=i,e[3]=d):d=e[3];let c;if(e[4]!==s||e[5]!==l){let m;e[7]!==l?(m=h=>a.jsx(ge,{children:a.jsx(xe,{asChild:!0,isActive:l.url.startsWith(h.href),tooltip:{children:h.title},children:a.jsxs(me,{href:h.href,prefetch:!0,children:[h.icon&&a.jsx(h.icon,{}),a.jsx("span",{children:h.title})]})})},h.title),e[7]=l,e[8]=m):m=e[8],c=s.map(m),e[4]=s,e[5]=l,e[6]=c}else c=e[6];let u;e[9]!==c?(u=a.jsx(we,{children:c}),e[9]=c,e[10]=u):u=e[10];let p;return e[11]!==d||e[12]!==u?(p=a.jsxs(Zt,{className:"p-0",children:[d,u]}),e[11]=d,e[12]=u,e[13]=p):p=e[13],p}var Li=Object.defineProperty,Z=(n,e)=>Li(n,"name",{value:e,configurable:!0});function en(n){const e=n+"CollectionProvider",[t,o]=ye(e),[r,s]=t(e,{collectionRef:{current:null},itemMap:new Map}),i=Z(v=>{const{scope:g,children:w}=v,y=f.useRef(null),b=f.useRef(new Map).current;return a.jsx(r,{scope:g,itemMap:b,collectionRef:y,children:w})},"CollectionProvider");i.displayName=e;const l=n+"CollectionSlot",d=qe(l),c=f.forwardRef((v,g)=>{const{scope:w,children:y}=v,b=s(l,w),j=se(g,b.collectionRef);return a.jsx(d,{ref:j,children:y})});c.displayName=l;const u=n+"CollectionItemSlot",p="data-radix-collection-item",m=qe(u),h=f.forwardRef((v,g)=>{const{scope:w,children:y,...b}=v,j=f.useRef(null),_=se(g,j),k=s(u,w);return f.useEffect(()=>(k.itemMap.set(j,{ref:j,...b}),()=>{k.itemMap.delete(j)})),a.jsx(m,{[p]:"",ref:_,children:y})});h.displayName=u;function x(v){const g=s(n+"CollectionConsumer",v);return f.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((k,S)=>b.indexOf(k.ref.current)-b.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return Z(x,"useCollection"),[{Provider:i,Slot:c,ItemSlot:h},x,o]}Z(en,"createCollection");var jn=new WeakMap,J,ae,Mt=(ae=class extends Map{constructor(t){super(t);bn(this,J);kt(this,J,[...super.keys()]),jn.set(this,!0)}set(t,o){return jn.get(this)&&(this.has(t)?ne(this,J)[ne(this,J).indexOf(t)]=t:ne(this,J).push(t)),super.set(t,o),this}insert(t,o,r){const s=this.has(o),i=ne(this,J).length,l=tn(t);let d=l>=0?l:i+l;const c=d<0||d>=i?-1:d;if(c===this.size||s&&c===this.size-1||c===-1)return this.set(o,r),this;const u=this.size+(s?0:1);l<0&&d++;const p=[...ne(this,J)];let m,h=!1;for(let x=d;x<u;x++)if(d===x){let v=p[x];p[x]===o&&(v=p[x+1]),s&&this.delete(o),m=this.get(v),this.set(o,r)}else{!h&&p[x-1]===o&&(h=!0);const v=p[h?x:x-1],g=m;m=this.get(v),this.delete(v),this.set(v,g)}return this}with(t,o,r){const s=new ae(this);return s.insert(t,o,r),s}before(t){const o=ne(this,J).indexOf(t)-1;if(!(o<0))return this.entryAt(o)}setBefore(t,o,r){const s=ne(this,J).indexOf(t);return s===-1?this:this.insert(s,o,r)}after(t){let o=ne(this,J).indexOf(t);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(t,o,r){const s=ne(this,J).indexOf(t);return s===-1?this:this.insert(s+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return kt(this,J,[]),super.clear()}delete(t){const o=super.delete(t);return o&&ne(this,J).splice(ne(this,J).indexOf(t),1),o}deleteAt(t){const o=this.keyAt(t);return o!==void 0?this.delete(o):!1}at(t){const o=it(ne(this,J),t);if(o!==void 0)return this.get(o)}entryAt(t){const o=it(ne(this,J),t);if(o!==void 0)return[o,this.get(o)]}indexOf(t){return ne(this,J).indexOf(t)}keyAt(t){return it(ne(this,J),t)}from(t,o){const r=this.indexOf(t);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(t,o){const r=this.indexOf(t);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return s;r++}}findIndex(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return r;r++}return-1}filter(t,o){const r=[];let s=0;for(const i of this)Reflect.apply(t,o,[i,s,this])&&r.push(i),s++;return new ae(r)}map(t,o){const r=[];let s=0;for(const i of this)r.push([i[0],Reflect.apply(t,o,[i,s,this])]),s++;return new ae(r)}reduce(...t){const[o,r]=t;let s=0,i=r??this.at(0);for(const l of this)s===0&&t.length===1?i=l:i=Reflect.apply(o,this,[i,l,s,this]),s++;return i}reduceRight(...t){const[o,r]=t;let s=r??this.at(-1);for(let i=this.size-1;i>=0;i--){const l=this.at(i);i===this.size-1&&t.length===1?s=l:s=Reflect.apply(o,this,[s,l,i,this])}return s}toSorted(t){const o=[...this.entries()].sort(t);return new ae(o)}toReversed(){const t=new ae;for(let o=this.size-1;o>=0;o--){const r=this.keyAt(o),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){const o=[...this.entries()];return o.splice(...t),new ae(o)}slice(t,o){const r=new ae;let s=this.size-1;if(t===void 0)return r;t<0&&(t=t+this.size),o!==void 0&&o>0&&(s=o-1);for(let i=t;i<=s;i++){const l=this.keyAt(i),d=this.get(l);r.set(l,d)}return r}every(t,o){let r=0;for(const s of this){if(!Reflect.apply(t,o,[s,r,this]))return!1;r++}return!0}some(t,o){let r=0;for(const s of this){if(Reflect.apply(t,o,[s,r,this]))return!0;r++}return!1}},J=new WeakMap,Z(ae,"OrderedDict"),ae);function it(n,e){if("at"in Array.prototype)return Array.prototype.at.call(n,e);const t=uo(n,e);return t===-1?void 0:n[t]}Z(it,"at");function uo(n,e){const t=n.length,o=tn(e),r=o>=0?o:t+o;return r<0||r>=t?-1:r}Z(uo,"toSafeIndex");function tn(n){return n!==n||n===0?0:Math.trunc(n)}Z(tn,"toSafeInteger");function zi(n){const e=n+"CollectionProvider",[t,o]=ye(e),[r,s]=t(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Mt,setItemMap:Z(()=>{},"setItemMap")}),i=Z(({state:b,...j})=>b?a.jsx(d,{...j,state:b}):a.jsx(l,{...j}),"CollectionProvider");i.displayName=e;const l=Z(b=>{const j=g();return a.jsx(d,{...b,state:j})},"CollectionInit");l.displayName=e+"Init";const d=Z(b=>{const{scope:j,children:_,state:k}=b,S=f.useRef(null),[E,N]=f.useState(null),P=se(S,N),[O,G]=k;return f.useEffect(()=>{if(!E)return;const K=mo(()=>{});return K.observe(E,{childList:!0,subtree:!0}),()=>{K.disconnect()}},[E]),a.jsx(r,{scope:j,itemMap:O,setItemMap:G,collectionRef:P,collectionRefObject:S,collectionElement:E,children:_})},"CollectionProviderImpl");d.displayName=e+"Impl";const c=n+"CollectionSlot",u=qe(c),p=f.forwardRef((b,j)=>{const{scope:_,children:k}=b,S=s(c,_),E=se(j,S.collectionRef);return a.jsx(u,{ref:E,children:k})});p.displayName=c;const m=n+"CollectionItemSlot",h="data-radix-collection-item",x=qe(m),v=f.forwardRef((b,j)=>{const{scope:_,children:k,...S}=b,E=f.useRef(null),[N,P]=f.useState(null),O=se(j,E,P),G=s(m,_),{setItemMap:K}=G,q=f.useRef(S);fo(q.current,S)||(q.current=S);const B=q.current;return f.useEffect(()=>{const oe=B;return K(U=>N?U.has(N)?U.set(N,{...oe,element:N}).toSorted($t):(U.set(N,{...oe,element:N}),U.toSorted($t)):U),()=>{K(U=>!N||!U.has(N)?U:(U.delete(N),new Mt(U)))}},[N,B,K]),a.jsx(x,{[h]:"",ref:O,children:k})});v.displayName=m;function g(){return f.useState(new Mt)}Z(g,"useInitCollection");function w(b){const{itemMap:j}=s(n+"CollectionConsumer",b);return j}return Z(w,"useCollection"),[{Provider:i,Slot:p,ItemSlot:v},{createCollectionScope:o,useCollection:w,useInitCollection:g}]}Z(zi,"createCollection");function fo(n,e){if(n===e)return!0;if(typeof n!="object"||typeof e!="object"||n==null||e==null)return!1;const t=Object.keys(n),o=Object.keys(e);if(t.length!==o.length)return!1;for(const r of t)if(!Object.prototype.hasOwnProperty.call(e,r)||n[r]!==e[r])return!1;return!0}Z(fo,"shallowEqual");function po(n,e){return!!(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)}Z(po,"isElementPreceding");function $t(n,e){return!n[1].element||!e[1].element?0:po(n[1].element,e[1].element)?-1:1}Z($t,"sortByDocumentPosition");function mo(n){return new MutationObserver(t=>{for(const o of t)if(o.type==="childList"){n();return}})}Z(mo,"getChildListObserver");var Fi=Object.defineProperty,Gi=(n,e)=>Fi(n,"name",{value:e,configurable:!0}),Vi=f.createContext(void 0);function nn(n){const e=f.useContext(Vi);return n||e||"ltr"}Gi(nn,"useDirection");var Hi=Object.defineProperty,on=(n,e)=>Hi(n,"name",{value:e,configurable:!0}),St=!1;function ho(){const[n,e]=f.useState(St);return f.useEffect(()=>{St||(St=!0,e(!0))},[]),n}on(ho,"useIsHydrated");var vo=or[" useSyncExternalStore ".trim().toString()];function go(){return()=>{}}on(go,"subscribe");function xo(){return vo(go,()=>!0,()=>!1)}on(xo,"useIsHydratedModern");var Bi=typeof vo=="function"?xo:ho,Ki=Object.defineProperty,je=(n,e)=>Ki(n,"name",{value:e,configurable:!0}),Nt="rovingFocusGroup.onEntryFocus",qi={bubbles:!1,cancelable:!0},vt="RovingFocusGroup",[Dt,bo,Ui]=en(vt),[Wi,yo]=ye(vt,[Ui]),[Yi,Xi]=Wi(vt),Ji=f.forwardRef(je(function(e,t){return a.jsx(Dt.Provider,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Dt.Slot,{scope:e.__scopeRovingFocusGroup,children:a.jsx(Qi,{...e,ref:t})})})},"RovingFocusGroup")),Qi=f.forwardRef(je(function(e,t){const{__scopeRovingFocusGroup:o,orientation:r,loop:s=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...m}=e,h=f.useRef(null),x=se(t,h),v=nn(i),[g,w]=pt({prop:l,defaultProp:d??null,onChange:c,caller:vt}),[y,b]=f.useState(!1),j=ft(u),_=bo(o),k=f.useRef(!1),[S,E]=f.useState(0);return f.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Nt,j),()=>N.removeEventListener(Nt,j)},[j]),a.jsx(Yi,{scope:o,orientation:r,dir:v,loop:s,currentTabStopId:g,onItemFocus:f.useCallback(N=>w(N),[w]),onItemShiftTab:f.useCallback(()=>b(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(N=>N+1),[]),onFocusableItemRemove:f.useCallback(()=>E(N=>N-1),[]),children:a.jsx(X.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...m,ref:x,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{k.current=!0}),onFocus:V(e.onFocus,N=>{const P=!k.current;if(N.target===N.currentTarget&&P&&!y){const O=new CustomEvent(Nt,qi);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const G=_().filter(U=>U.focusable),K=G.find(U=>U.active),q=G.find(U=>U.id===g),oe=[K,q,...G].filter(Boolean).map(U=>U.ref.current);rn(oe,p)}}k.current=!1}),onBlur:V(e.onBlur,()=>b(!1))})})},"RovingFocusGroupImpl")),Zi="RovingFocusGroupItem",el=f.forwardRef(je(function(e,t){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:s=!1,tabStopId:i,children:l,...d}=e,c=le(),u=i||c,p=Xi(Zi,o),m=p.currentTabStopId===u,h=bo(o),{onFocusableItemAdd:x,onFocusableItemRemove:v,currentTabStopId:g}=p,w=Bi();return Xe(()=>{if(!(!w||!r))return x(),()=>v()},[w,r,x,v]),f.useEffect(()=>{if(!(w||!r))return x(),()=>v()},[w,r,x,v]),a.jsx(Dt.ItemSlot,{scope:o,id:u,focusable:r,active:s,children:a.jsx(X.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:V(e.onMouseDown,y=>{r?p.onItemFocus(u):y.preventDefault()}),onFocus:V(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:V(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){p.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=Co(y,p.orientation,p.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let _=h().filter(k=>k.focusable).map(k=>k.ref.current);if(b==="last")_.reverse();else if(b==="prev"||b==="next"){b==="prev"&&_.reverse();const k=_.indexOf(y.currentTarget);_=p.loop?jo(_,k+1):_.slice(k+1)}setTimeout(()=>rn(_))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:g!=null}):l})})},"RovingFocusGroupItem")),tl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wo(n,e){return e!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}je(wo,"getDirectionAwareKey");function Co(n,e,t){const o=wo(n.key,t);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return tl[o]}je(Co,"getFocusIntent");function rn(n,e=!1){const t=document.activeElement;for(const o of n)if(o===t||(o.focus({preventScroll:e}),document.activeElement!==t))return}je(rn,"focusFirst");function jo(n,e){return n.map((t,o)=>n[(e+o)%n.length])}je(jo,"wrapArray");var nl=Ji,ol=el,rl=Object.defineProperty,H=(n,e)=>rl(n,"name",{value:e,configurable:!0}),sl=["Enter"," "],al=["ArrowDown","PageUp","Home"],ko=["ArrowUp","PageDown","End"],il=[...al,...ko],gt="Menu",[Ot,ll,cl]=en(gt),[ke,_o]=ye(gt,[cl,ut,yo]),sn=ut(),Mo=yo(),[dl,Qe]=ke(gt),[ul,an]=ke(gt),fl=H(n=>{const{__scopeMenu:e,open:t=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=n,l=sn(e),[d,c]=f.useState(null),u=f.useRef(!1),p=ft(s),m=nn(r);return f.useEffect(()=>{const h=H(()=>{u.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},"handleKeyDown"),x=H(()=>u.current=!1,"handlePointer");return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),f.useEffect(()=>{if(!t)return;const h=H(()=>p(!1),"handleBlur");return window.addEventListener("blur",h),()=>window.removeEventListener("blur",h)},[t,p]),a.jsx(Bn,{...l,children:a.jsx(dl,{scope:e,open:t,onOpenChange:p,content:d,onContentChange:c,children:a.jsx(ul,{scope:e,onClose:f.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:u,dir:m,modal:i,children:o})})})},"Menu"),pl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,...r}=e,s=sn(o);return a.jsx(Hn,{...s,...r,ref:t})},"MenuAnchor")),So="MenuPortal",[ml,hl]=ke(So,{forceMount:void 0}),vl=H(n=>{const{__scopeMenu:e,forceMount:t,children:o,container:r}=n,s=Qe(So,e);return a.jsx(ml,{scope:e,forceMount:t,children:a.jsx(Ge,{present:t||s.open,children:a.jsx(Fn,{asChild:!0,container:r,children:o})})})},"MenuPortal"),ve="MenuContent",[gl,No]=ke(ve),xl=f.forwardRef(H(function(e,t){const o=hl(ve,e.__scopeMenu),{forceMount:r=o.forceMount,...s}=e,i=Qe(ve,e.__scopeMenu),l=an(ve,e.__scopeMenu);return a.jsx(Ot.Provider,{scope:e.__scopeMenu,children:a.jsx(Ge,{present:r||i.open,children:a.jsx(Ot.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsx(bl,{...s,ref:t}):a.jsx(yl,{...s,ref:t})})})})},"MenuContent")),bl=f.forwardRef(H(function(e,t){const o=Qe(ve,e.__scopeMenu),r=f.useRef(null),s=se(t,r);return f.useEffect(()=>{const i=r.current;if(i)return Br(i)},[]),a.jsx(Io,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),yl=f.forwardRef(H(function(e,t){const o=Qe(ve,e.__scopeMenu);return a.jsx(Io,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),wl=qe("MenuContent.ScrollLock"),Io=f.forwardRef(H(function(e,t){const{__scopeMenu:o,loop:r=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:d,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:x,disableOutsideScroll:v,...g}=e,w=Qe(ve,o),y=an(ve,o),b=sn(o),j=Mo(o),_=ll(o),[k,S]=f.useState(null),E=f.useRef(null),N=se(t,E,w.onContentChange),P=f.useRef(0),O=f.useRef(""),G=f.useRef(0),K=f.useRef(null),q=f.useRef("right"),B=f.useRef(0),oe=v?qr:f.Fragment,U=v?{as:wl,allowPinchZoom:!0}:void 0,Me=H(A=>{const re=O.current+A,C=_().filter(F=>!F.disabled),R=document.activeElement,D=C.find(F=>F.ref.current===R)?.textValue,I=C.map(F=>F.textValue),L=Do(I,re,D),z=C.find(F=>F.textValue===L)?.ref.current;H((function F(W){O.current=W,window.clearTimeout(P.current),W!==""&&(P.current=window.setTimeout(()=>F(""),1e3))}),"updateSearch")(re),z&&setTimeout(()=>z.focus())},"handleTypeaheadSearch");f.useEffect(()=>()=>window.clearTimeout(P.current),[]),Kr();const te=f.useCallback(A=>q.current===K.current?.side&&Lo(A,K.current?.area),[]);return a.jsx(gl,{scope:o,searchRef:O,onItemEnter:f.useCallback(A=>{te(A)&&A.preventDefault()},[te]),onItemLeave:f.useCallback(A=>{te(A)||(E.current?.focus(),S(null))},[te]),onTriggerLeave:f.useCallback(A=>{te(A)&&A.preventDefault()},[te]),pointerGraceTimerRef:G,onPointerGraceIntentChange:f.useCallback(A=>{K.current=A},[]),children:a.jsx(oe,{...U,children:a.jsx(Ur,{asChild:!0,trapped:s,onMountAutoFocus:V(i,A=>{A.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsx(Gn,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:x,children:a.jsx(nl,{asChild:!0,...j,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:V(c,A=>{y.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsx(Vn,{role:"menu","aria-orientation":"vertical","data-state":To(w.open),"data-radix-menu-content":"",dir:y.dir,...b,...g,ref:N,style:{outline:"none",...g.style},onKeyDown:V(g.onKeyDown,A=>{const C=A.target.closest("[data-radix-menu-content]")===A.currentTarget,R=A.ctrlKey||A.altKey||A.metaKey,D=A.key.length===1;C&&(A.key==="Tab"&&A.preventDefault(),!R&&D&&Me(A.key));const I=E.current;if(A.target!==I||!il.includes(A.key))return;A.preventDefault();const z=_().filter(F=>!F.disabled).map(F=>F.ref.current);ko.includes(A.key)&&z.reverse(),Ao(z)}),onBlur:V(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(P.current),O.current="")}),onPointerMove:V(e.onPointerMove,lt(A=>{const re=A.target,C=B.current!==A.clientX;if(A.currentTarget.contains(re)&&C){const R=A.clientX>B.current?"right":"left";q.current=R,B.current=A.clientX}}))})})})})})})},"MenuContentImpl")),Eo=f.forwardRef(H(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{role:"group",...r,ref:t})},"MenuGroup")),Cl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{...r,ref:t})},"MenuLabel")),Lt="MenuItem",kn="menu.itemSelect",Ro=f.forwardRef(H(function(e,t){const{disabled:o=!1,onSelect:r,...s}=e,i=f.useRef(null),l=an(Lt,e.__scopeMenu),d=No(Lt,e.__scopeMenu),c=se(t,i),u=f.useRef(!1),p=H(()=>{const m=i.current;if(!o&&m){const h=new CustomEvent(kn,{bubbles:!0,cancelable:!0});m.addEventListener(kn,x=>r?.(x),{once:!0}),Jr(m,h),h.defaultPrevented?u.current=!1:l.onClose()}},"handleSelect");return a.jsx(jl,{...s,ref:c,disabled:o,onClick:V(e.onClick,p),onPointerDown:m=>{e.onPointerDown?.(m),u.current=!0},onPointerUp:V(e.onPointerUp,m=>{u.current||m.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,m=>{o||m.target!==m.currentTarget||d.searchRef.current!==""&&m.key===" "||sl.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})},"MenuItem")),jl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,disabled:r=!1,textValue:s,...i}=e,l=No(Lt,o),d=Mo(o),c=f.useRef(null),u=se(t,c),[p,m]=f.useState(!1),[h,x]=f.useState("");return f.useEffect(()=>{const v=c.current;v&&x((v.textContent??"").trim())},[i.children]),a.jsx(Ot.ItemSlot,{scope:o,disabled:r,textValue:s??h,children:a.jsx(ol,{asChild:!0,...d,focusable:!r,children:a.jsx(X.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:V(e.onPointerMove,lt(v=>{r?l.onItemLeave(v):(l.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,lt(v=>l.onItemLeave(v))),onFocus:V(e.onFocus,()=>m(!0)),onBlur:V(e.onBlur,()=>m(!1))})})})},"MenuItemImpl")),kl="MenuRadioGroup",[_l,Ml]=ke(kl,{value:void 0,onValueChange:H(()=>{},"onValueChange")}),Sl=f.forwardRef(H(function(e,t){const{value:o,onValueChange:r,...s}=e,i=ft(r);return a.jsx(_l,{scope:e.__scopeMenu,value:o,onValueChange:i,children:a.jsx(Eo,{...s,ref:t})})},"MenuRadioGroup")),Nl="MenuRadioItem",Il=f.forwardRef(H(function(e,t){const{value:o,...r}=e,s=Ml(Nl,e.__scopeMenu),i=o===s.value;return a.jsx(El,{scope:e.__scopeMenu,checked:i,children:a.jsx(Ro,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":cn(i),onSelect:V(r.onSelect,()=>s.onValueChange?.(o),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),Po="MenuItemIndicator",[El,Rl]=ke(Po,{checked:!1}),Pl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,forceMount:r,...s}=e,i=Rl(Po,o);return a.jsx(Ge,{present:r||ln(i.checked)||i.checked===!0,children:a.jsx(X.span,{...s,ref:t,"data-state":cn(i.checked)})})},"MenuItemIndicator")),Tl=f.forwardRef(H(function(e,t){const{__scopeMenu:o,...r}=e;return a.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})},"MenuSeparator")),Al="MenuSub",[mu,hu]=ke(Al);function To(n){return n?"open":"closed"}H(To,"getOpenState");function ln(n){return n==="indeterminate"}H(ln,"isIndeterminate");function cn(n){return ln(n)?"indeterminate":n?"checked":"unchecked"}H(cn,"getCheckedState");function Ao(n){const e=document.activeElement;for(const t of n)if(t===e||(t.focus(),document.activeElement!==e))return}H(Ao,"focusFirst");function $o(n,e){return n.map((t,o)=>n[(e+o)%n.length])}H($o,"wrapArray");function Do(n,e,t){const r=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=t?n.indexOf(t):-1;let i=$o(n,Math.max(s,0));r.length===1&&(i=i.filter(c=>c!==t));const d=i.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return d!==t?d:void 0}H(Do,"getNextMatch");function Oo(n,e){const{x:t,y:o}=n;let r=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const l=e[s],d=e[i],c=l.x,u=l.y,p=d.x,m=d.y;u>o!=m>o&&t<(p-c)*(o-u)/(m-u)+c&&(r=!r)}return r}H(Oo,"isPointInPolygon");function Lo(n,e){if(!e)return!1;const t={x:n.clientX,y:n.clientY};return Oo(t,e)}H(Lo,"isPointerInGraceArea");function lt(n){return e=>e.pointerType==="mouse"?n(e):void 0}H(lt,"whenMouse");var $l=fl,Dl=pl,Ol=vl,Ll=xl,zl=Eo,Fl=Cl,Gl=Ro,Vl=Sl,Hl=Il,Bl=Pl,Kl=Tl,ql=Object.defineProperty,de=(n,e)=>ql(n,"name",{value:e,configurable:!0}),dn="DropdownMenu",[Ul,vu]=ye(dn,[_o]),ue=_o(),[Wl,zo]=Ul(dn),Yl=de(n=>{const{__scopeDropdownMenu:e,children:t,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:l=!0}=n,d=ue(e),c=f.useRef(null),[u,p]=pt({prop:r,defaultProp:s??!1,onChange:i,caller:dn});return a.jsx(Wl,{scope:e,triggerId:le(),triggerRef:c,contentId:le(),open:u,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(m=>!m),[p]),modal:l,children:a.jsx($l,{...d,open:u,onOpenChange:p,dir:o,modal:l,children:t})})},"DropdownMenu"),Xl="DropdownMenuTrigger",Jl=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,disabled:r=!1,...s}=e,i=zo(Xl,o),l=ue(o),d=se(t,i.triggerRef);return a.jsx(Dl,{asChild:!0,...l,children:a.jsx(X.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:d,onPointerDown:V(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:V(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})},"DropdownMenuTrigger")),Ql=de(n=>{const{__scopeDropdownMenu:e,...t}=n,o=ue(e);return a.jsx(Ol,{...o,...t})},"DropdownMenuPortal"),Zl="DropdownMenuContent",ec=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=zo(Zl,o),i=ue(o),l=f.useRef(!1);return a.jsx(Ll,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,d=>{l.current||s.triggerRef.current?.focus(),l.current=!1,d.preventDefault()}),onInteractOutside:V(e.onInteractOutside,d=>{const c=d.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,p=c.button===2||u;(!s.modal||p)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),tc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(zl,{...s,...r,ref:t})},"DropdownMenuGroup")),nc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Fl,{...s,...r,ref:t})},"DropdownMenuLabel")),oc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Gl,{...s,...r,ref:t})},"DropdownMenuItem")),rc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Vl,{...s,...r,ref:t})},"DropdownMenuRadioGroup")),sc=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Hl,{...s,...r,ref:t})},"DropdownMenuRadioItem")),ac=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Bl,{...s,...r,ref:t})},"DropdownMenuItemIndicator")),ic=f.forwardRef(de(function(e,t){const{__scopeDropdownMenu:o,...r}=e,s=ue(o);return a.jsx(Kl,{...s,...r,ref:t})},"DropdownMenuSeparator")),lc=Yl,cc=Jl,dc=Ql,uc=ec,fc=tc,pc=nc,mc=oc,hc=rc,vc=sc,gc=ac,xc=ic;function xt(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(lc,{"data-slot":"dropdown-menu",...t}),e[2]=t,e[3]=o):o=e[3],o}function bt(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(cc,{"data-slot":"dropdown-menu-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function yt(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,sideOffset:r,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=r===void 0?4:r;let i;e[4]!==t?(i=T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),e[4]=t,e[5]=i):i=e[5];let l;return e[6]!==o||e[7]!==s||e[8]!==i?(l=a.jsx(dc,{children:a.jsx(uc,{"data-slot":"dropdown-menu-content",sideOffset:s,className:i,...o})}),e[6]=o,e[7]=s,e[8]=i,e[9]=l):l=e[9],l}function _n(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(fc,{"data-slot":"dropdown-menu-group",...t}),e[2]=t,e[3]=o):o=e[3],o}function fe(n){const e=M.c(12);let t,o,r,s;e[0]!==n?({className:t,inset:o,variant:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s):(t=e[1],o=e[2],r=e[3],s=e[4]);const i=s===void 0?"default":s;let l;e[5]!==t?(l=T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[5]=t,e[6]=l):l=e[6];let d;return e[7]!==o||e[8]!==r||e[9]!==l||e[10]!==i?(d=a.jsx(mc,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":i,className:l,...r}),e[7]=o,e[8]=r,e[9]=l,e[10]=i,e[11]=d):d=e[11],d}function gu(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(hc,{"data-slot":"dropdown-menu-radio-group",...t}),e[2]=t,e[3]=o):o=e[3],o}function xu(n){const e=M.c(11);let t,o,r;e[0]!==n?({className:o,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[4]=o,e[5]=s):s=e[5];let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:a.jsx(gc,{children:a.jsx(Cs,{className:"size-2 fill-current"})})}),e[6]=i):i=e[6];let l;return e[7]!==t||e[8]!==r||e[9]!==s?(l=a.jsxs(vc,{"data-slot":"dropdown-menu-radio-item",className:s,...r,children:[i,t]}),e[7]=t,e[8]=r,e[9]=s,e[10]=l):l=e[10],l}function Ye(n){const e=M.c(10);let t,o,r;e[0]!==n?({className:t,inset:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==t?(s=T("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==r||e[8]!==s?(i=a.jsx(pc,{"data-slot":"dropdown-menu-label","data-inset":o,className:s,...r}),e[6]=o,e[7]=r,e[8]=s,e[9]=i):i=e[9],i}function Fe(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-border -mx-1 my-1 h-px",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(xc,{"data-slot":"dropdown-menu-separator",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}var bc=Object.defineProperty,he=(n,e)=>bc(n,"name",{value:e,configurable:!0}),Fo="Avatar",[yc,bu]=ye(Fo),wc=[0,()=>{}],[Cc,Go]=yc(Fo),jc=f.forwardRef(he(function(e,t){const{__scopeAvatar:o,...r}=e,[s,i]=f.useState("idle"),[l,d]=Ho();return a.jsx(Cc,{scope:o,imageLoadingStatus:s,setImageLoadingStatus:i,imageCount:l,setImageCount:d,children:a.jsx(X.span,{...r,ref:t})})},"Avatar")),kc="AvatarImage",_c=f.forwardRef(he(function(e,t){const{__scopeAvatar:o,src:r,onLoadingStatusChange:s,...i}=e,l=Go(kc,o);l.setImageCount;const d=Vo(r,{referrerPolicy:i.referrerPolicy,crossOrigin:i.crossOrigin,loadingStatus:l.imageLoadingStatus,setLoadingStatus:l.setImageLoadingStatus}),c=ft(p=>{s?.(p)}),u=f.useRef(d);return Xe(()=>{const p=u.current;u.current=d,d!==p&&c(d)},[d,c]),d==="loaded"?a.jsx(X.img,{...i,ref:t,src:r}):null},"AvatarImage")),Mc="AvatarFallback",Sc=f.forwardRef(he(function(e,t){const{__scopeAvatar:o,delayMs:r,...s}=e,i=Go(Mc,o),[l,d]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>d(!0),r);return()=>window.clearTimeout(c)}},[r]),l&&i.imageLoadingStatus!=="loaded"?a.jsx(X.span,{...s,ref:t}):null},"AvatarFallback"));function Vo(n,{loadingStatus:e,setLoadingStatus:t,referrerPolicy:o,crossOrigin:r}){return Xe(()=>{if(!n){t("error");return}const s=new window.Image,i=he(d=>{const c=d.currentTarget;t(zt(c))},"handleLoad"),l=he(()=>t("error"),"handleError");return s.addEventListener("load",i),s.addEventListener("error",l),o&&(s.referrerPolicy=o),s.crossOrigin=r??null,s.src=n,t(zt(s)),()=>{s.removeEventListener("load",i),s.removeEventListener("error",l),t("idle")}},[n,r,o,t]),e}he(Vo,"useImageLoadingStatus");function zt(n){return n.complete?n.naturalWidth>0?"loaded":"error":"loading"}he(zt,"getImageLoadingStatus");function Ho(){return wc}he(Ho,"useImageCount");function Nc(n){}he(Nc,"useUpdateImageCount");function Ic(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(jc,{"data-slot":"avatar",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ec(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("aspect-square size-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_c,{"data-slot":"avatar-image",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Rc(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-muted flex size-full items-center justify-center rounded-full",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(Sc,{"data-slot":"avatar-fallback",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Pc(){return Tc}function Tc(n){const e=n.trim().split(" ");if(e.length===0)return"";if(e.length===1)return e[0].charAt(0).toUpperCase();const t=e[0].charAt(0),o=e[e.length-1].charAt(0);return`${t}${o}`.toUpperCase()}function Bo(n){const e=M.c(22),{user:t,showEmail:o}=n,r=o===void 0?!1:o,s=Pc();let i;e[0]!==t.avatar||e[1]!==t.name?(i=a.jsx(Ec,{src:t.avatar,alt:t.name}),e[0]=t.avatar,e[1]=t.name,e[2]=i):i=e[2];let l;e[3]!==s||e[4]!==t.name?(l=s(t.name),e[3]=s,e[4]=t.name,e[5]=l):l=e[5];let d;e[6]!==l?(d=a.jsx(Rc,{className:"bg-muted text-foreground rounded-full text-[11px] font-medium",children:l}),e[6]=l,e[7]=d):d=e[7];let c;e[8]!==i||e[9]!==d?(c=a.jsxs(Ic,{className:"size-6 overflow-hidden rounded-full",children:[i,d]}),e[8]=i,e[9]=d,e[10]=c):c=e[10];let u;e[11]!==t.name?(u=a.jsx("span",{className:"truncate font-medium",children:t.name}),e[11]=t.name,e[12]=u):u=e[12];let p;e[13]!==r||e[14]!==t.email?(p=r&&a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:t.email}),e[13]=r,e[14]=t.email,e[15]=p):p=e[15];let m;e[16]!==u||e[17]!==p?(m=a.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[u,p]}),e[16]=u,e[17]=p,e[18]=m):m=e[18];let h;return e[19]!==c||e[20]!==m?(h=a.jsxs(a.Fragment,{children:[c,m]}),e[19]=c,e[20]=m,e[21]=h):h=e[21],h}function Ac(){return $c}function $c(){document.body.style.removeProperty("pointer-events")}function Dc(n){const e=M.c(25),{auth:t}=n,{session:o,user:r}=t,{account:s,accounts:i}=ce().props,l=Ac();let d;e[0]!==l?(d=()=>{l(),ee.flushAll()},e[0]=l,e[1]=d):d=e[1];const c=d;let u;e[2]!==r?(u=a.jsx(Ye,{className:"p-0 font-normal",children:a.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:a.jsx(Bo,{user:r,showEmail:!0})})}),e[2]=r,e[3]=u):u=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Fe,{}),e[4]=p):p=e[4];let m;e[5]!==s?.id||e[6]!==i||e[7]!==l?(m=i.length>1&&a.jsxs(a.Fragment,{children:[a.jsxs(_n,{children:[a.jsx(Ye,{className:"text-muted-foreground text-xs",children:"Accounts"}),i.map(_=>a.jsxs(fe,{onSelect:()=>{l(),ee.post(rr(_.id))},children:[a.jsx(qn,{className:"mr-2"}),a.jsx("span",{className:"flex-1",children:_.name}),s?.id===_.id&&a.jsx(Ut,{className:"size-4"})]},_.id))]}),a.jsx(Fe,{})]}),e[5]=s?.id,e[6]=i,e[7]=l,e[8]=m):m=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=sr(),e[9]=h):h=e[9];let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(fa,{className:"mr-2"}),e[10]=x):x=e[10];let v;e[11]!==l?(v=a.jsx(_n,{children:a.jsx(fe,{asChild:!0,children:a.jsxs(me,{className:"block w-full",href:h,as:"button",prefetch:!0,onClick:l,children:[x,"Settings"]})})}),e[11]=l,e[12]=v):v=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Fe,{}),e[13]=g):g=e[13];let w;e[14]!==o.id?(w=ar({id:o.id}),e[14]=o.id,e[15]=w):w=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Hs,{className:"mr-2"}),e[16]=y):y=e[16];let b;e[17]!==c||e[18]!==w?(b=a.jsx(fe,{asChild:!0,children:a.jsxs(me,{className:"block w-full",method:"delete",href:w,as:"button",onClick:c,children:[y,"Log out"]})}),e[17]=c,e[18]=w,e[19]=b):b=e[19];let j;return e[20]!==b||e[21]!==u||e[22]!==m||e[23]!==v?(j=a.jsxs(a.Fragment,{children:[u,p,m,v,g,b]}),e[20]=b,e[21]=u,e[22]=m,e[23]=v,e[24]=j):j=e[24],j}function Oc(){const n=M.c(13),{auth:e}=ce().props,{state:t}=ht(),o=lo();let r;n[0]!==e.user?(r=a.jsx(Bo,{user:e.user}),n[0]=e.user,n[1]=r):r=n[1];let s;n[2]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Yn,{className:"ml-auto size-4"}),n[2]=s):s=n[2];let i;n[3]!==r?(i=a.jsx(bt,{asChild:!0,children:a.jsxs(xe,{size:"default",className:"data-[state=open]:bg-sidebar-accent group gap-2",children:[r,s]})}),n[3]=r,n[4]=i):i=n[4];const l=o?"bottom":t==="collapsed"?"left":"bottom";let d;n[5]!==e?(d=a.jsx(Dc,{auth:e}),n[5]=e,n[6]=d):d=n[6];let c;n[7]!==l||n[8]!==d?(c=a.jsx(yt,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",align:"end",side:l,children:d}),n[7]=l,n[8]=d,n[9]=c):c=n[9];let u;return n[10]!==i||n[11]!==c?(u=a.jsx(we,{children:a.jsx(ge,{children:a.jsxs(xt,{children:[i,c]})})}),n[10]=i,n[11]=c,n[12]=u):u=n[12],u}var Lc=Object.defineProperty,Ze=(n,e)=>Lc(n,"name",{value:e,configurable:!0}),un="Collapsible",[zc,yu]=ye(un),[Fc,fn]=zc(un),Gc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,open:r,defaultOpen:s,disabled:i,onOpenChange:l,...d}=e,[c,u]=pt({prop:r,defaultProp:s??!1,onChange:l,caller:un});return a.jsx(Fc,{scope:o,disabled:i,contentId:le(),open:c,onOpenToggle:f.useCallback(()=>u(p=>!p),[u]),children:a.jsx(X.div,{"data-state":wt(c),"data-disabled":i?"":void 0,...d,ref:t})})},"Collapsible")),Vc="CollapsibleTrigger",Hc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,...r}=e,s=fn(Vc,o);return a.jsx(X.button,{type:"button","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open||!1,"data-state":wt(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:t,onClick:V(e.onClick,s.onOpenToggle)})},"CollapsibleTrigger")),Ko="CollapsibleContent",Bc=f.forwardRef(Ze(function(e,t){const{forceMount:o,...r}=e,s=fn(Ko,e.__scopeCollapsible);return a.jsx(Ge,{present:o||s.open,children:({present:i})=>a.jsx(Kc,{...r,ref:t,present:i})})},"CollapsibleContent")),Kc=f.forwardRef(Ze(function(e,t){const{__scopeCollapsible:o,present:r,children:s,...i}=e,l=fn(Ko,o),[d,c]=f.useState(r),u=f.useRef(null),p=se(t,u),m=f.useRef(0),h=m.current,x=f.useRef(0),v=x.current,g=l.open||d,w=f.useRef(g),y=f.useRef(void 0);return f.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),Xe(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const j=b.getBoundingClientRect();m.current=j.height,x.current=j.width,w.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),c(r)}},[l.open,r]),a.jsx(X.div,{"data-state":wt(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!g,...i,ref:p,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&s})},"CollapsibleContentImpl"));function wt(n){return n?"open":"closed"}Ze(wt,"getState");var qc=Gc;function Mn(n){const[e,t]=n.split("?"),o=[...new URLSearchParams(t)].filter(([,r])=>r!=="").sort(([r],[s])=>r.localeCompare(s));return`${e}?${new URLSearchParams(o).toString()}`}function pn(n,e){return Mn(n)===Mn(e)}function qo(n,e){return n.split("?")[0]===e.split("?")[0]}function wu(n){const e=M.c(84),{page:t}=n,o=ce(),{environment:r,saved_views:s}=o.props,i=s===void 0?[]:s,[l,d]=f.useState(!1),[c,u]=f.useState(""),[p,m]=f.useState(!0),[h,x]=f.useState(!0),[v,g]=f.useState(!1),w=r.application_id,y=r.id;let b;e[0]!==t?(b=Y=>Y.page===t,e[0]=t,e[1]=b):b=e[1];const j=i.filter(b);let _;e[2]!==o.url?(_=new URLSearchParams(o.url.split("?")[1]??""),e[2]=o.url,e[3]=_):_=e[3];const k=_;let S;e[4]!==w||e[5]!==y?(S=Y=>ir(w,y,Y.id),e[4]=w,e[5]=y,e[6]=S):S=e[6];const E=S;let N;e[7]!==w||e[8]!==y||e[9]!==o.props.window||e[10]!==c||e[11]!==t||e[12]!==p||e[13]!==k||e[14]!==u||e[15]!==d||e[16]!==h?(N=()=>{const Y={};for(const[pe,vn]of k)pe!=="window"&&pe!=="q"&&vn&&(Y[pe]=vn);ee.post(lr(w,y),{name:c.trim(),page:t,query:k.get("q")??"",window:k.get("window")??o.props.window??"",pinned:p,shared:h,params:Y},{preserveScroll:!0}),d(!1),u("")},e[7]=w,e[8]=y,e[9]=o.props.window,e[10]=c,e[11]=t,e[12]=p,e[13]=k,e[14]=u,e[15]=d,e[16]=h,e[17]=N):N=e[17];const P=N;let O;e[18]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{navigator.clipboard?.writeText(globalThis.location.href),g(!0),globalThis.setTimeout(()=>g(!1),1500)},e[18]=O):O=e[18];const G=O,K="flex shrink-0 items-center gap-1",q=xt;let B;e[19]===Symbol.for("react.memo_cache_sentinel")?(B=a.jsx(bt,{asChild:!0,children:a.jsxs(He,{variant:"outline",size:"sm",className:"h-8 gap-1.5 px-2",children:[a.jsx(Wt,{className:"size-3.5"}),a.jsx("span",{className:"label-caps text-foreground",children:"Views"}),a.jsx(Un,{className:"size-3 opacity-60"})]})}),e[19]=B):B=e[19];const oe=yt,U="end",Me="w-64";let te;e[20]===Symbol.for("react.memo_cache_sentinel")?(te=a.jsx(Ye,{className:"label-caps",children:"Saved views"}),e[20]=te):te=e[20];const A=j.length===0&&a.jsx(fe,{disabled:!0,children:"No saved views yet"});let re;e[21]!==o.url||e[22]!==E?(re=Y=>a.jsxs(fe,{onSelect:()=>ee.visit(Y.url),className:T(pn(o.url,Y.url)&&"bg-accent"),children:[a.jsx("span",{className:"truncate",children:Y.name}),Y.mine&&a.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-0.5",children:[a.jsx("button",{type:"button","aria-label":`${Y.pinned?"Unpin":"Pin"} ${Y.name}`,className:"text-muted-foreground hover:text-foreground p-0.5",onClick:pe=>{pe.preventDefault(),pe.stopPropagation(),ee.patch(E(Y),{pinned:!Y.pinned},{preserveScroll:!0})},children:Y.pinned?a.jsx(ea,{className:"size-3.5"}):a.jsx(na,{className:"size-3.5"})}),a.jsx("button",{type:"button","aria-label":`Delete ${Y.name}`,className:"text-muted-foreground hover:text-destructive p-0.5",onClick:pe=>{pe.preventDefault(),pe.stopPropagation(),ee.delete(E(Y),{preserveScroll:!0})},children:a.jsx(Ca,{className:"size-3.5"})})]})]},Y.id),e[21]=o.url,e[22]=E,e[23]=re):re=e[23];const C=j.map(re);let R;e[24]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(Fe,{}),e[24]=R):R=e[24];let D;e[25]!==d?(D=()=>d(!0),e[25]=d,e[26]=D):D=e[26];let I;e[27]===Symbol.for("react.memo_cache_sentinel")?(I=a.jsx(is,{className:"size-3.5"}),e[27]=I):I=e[27];let L;e[28]!==D?(L=a.jsxs(fe,{onSelect:D,children:[I,"Save current view…"]}),e[28]=D,e[29]=L):L=e[29];let z;e[30]!==oe||e[31]!==te||e[32]!==A||e[33]!==C||e[34]!==L?(z=a.jsxs(oe,{align:U,className:Me,children:[te,A,C,R,L]}),e[30]=oe,e[31]=te,e[32]=A,e[33]=C,e[34]=L,e[35]=z):z=e[35];let F;e[36]!==q||e[37]!==z||e[38]!==B?(F=a.jsxs(q,{children:[B,z]}),e[36]=q,e[37]=z,e[38]=B,e[39]=F):F=e[39];let W;e[40]!==v?(W=v?a.jsx(Ut,{className:"size-3.5"}):a.jsx(Gs,{className:"size-3.5"}),e[40]=v,e[41]=W):W=e[41];let ie;e[42]!==G||e[43]!==W?(ie=a.jsx(He,{variant:"outline",size:"sm",className:"h-8 px-2","aria-label":"Copy link to this view",onClick:G,children:W}),e[42]=G,e[43]=W,e[44]=ie):ie=e[44];let Se;e[45]!==F||e[46]!==ie?(Se=a.jsxs("div",{className:K,children:[F,ie]}),e[45]=F,e[46]=ie,e[47]=Se):Se=e[47];let tt;e[48]===Symbol.for("react.memo_cache_sentinel")?(tt=a.jsxs(Vt,{children:[a.jsx(Ht,{children:"Save this view"}),a.jsx(Bt,{children:"Keeps the filters, window, and sort currently in the URL under a name you can link to."})]}),e[48]=tt):tt=e[48];let nt;e[49]===Symbol.for("react.memo_cache_sentinel")?(nt=a.jsx(_t,{htmlFor:"saved-view-name",children:"Name"}),e[49]=nt):nt=e[49];let Ne;e[50]!==u?(Ne=Y=>u(Y.target.value),e[50]=u,e[51]=Ne):Ne=e[51];let Ie;e[52]!==c||e[53]!==Ne?(Ie=a.jsxs("div",{className:"grid gap-1.5",children:[nt,a.jsx(Qr,{id:"saved-view-name",value:c,onChange:Ne,placeholder:"5xx checkout requests"})]}),e[52]=c,e[53]=Ne,e[54]=Ie):Ie=e[54];let Ee;e[55]!==m?(Ee=Y=>m(Y===!0),e[55]=m,e[56]=Ee):Ee=e[56];let Re;e[57]!==p||e[58]!==Ee?(Re=a.jsxs(_t,{className:"gap-2 font-normal",children:[a.jsx(yn,{checked:p,onCheckedChange:Ee}),"Pin to the sidebar"]}),e[57]=p,e[58]=Ee,e[59]=Re):Re=e[59];let Pe;e[60]!==x?(Pe=Y=>x(Y===!0),e[60]=x,e[61]=Pe):Pe=e[61];let Te;e[62]!==h||e[63]!==Pe?(Te=a.jsxs(_t,{className:"gap-2 font-normal",children:[a.jsx(yn,{checked:h,onCheckedChange:Pe}),"Share with the team"]}),e[62]=h,e[63]=Pe,e[64]=Te):Te=e[64];let Ae;e[65]!==Ie||e[66]!==Re||e[67]!==Te?(Ae=a.jsxs("div",{className:"flex flex-col gap-3",children:[Ie,Re,Te]}),e[65]=Ie,e[66]=Re,e[67]=Te,e[68]=Ae):Ae=e[68];let ot;e[69]!==c?(ot=c.trim(),e[69]=c,e[70]=ot):ot=e[70];const jt=!ot;let $e;e[71]!==P||e[72]!==jt?($e=a.jsx(Wr,{children:a.jsx(He,{size:"sm",onClick:P,disabled:jt,children:"Save view"})}),e[71]=P,e[72]=jt,e[73]=$e):$e=e[73];let De;e[74]!==Ae||e[75]!==$e?(De=a.jsxs(Kt,{className:"sm:max-w-sm",children:[tt,Ae,$e]}),e[74]=Ae,e[75]=$e,e[76]=De):De=e[76];let Oe;e[77]!==l||e[78]!==d||e[79]!==De?(Oe=a.jsx(qt,{open:l,onOpenChange:d,children:De}),e[77]=l,e[78]=d,e[79]=De,e[80]=Oe):Oe=e[80];let rt;return e[81]!==Se||e[82]!==Oe?(rt=a.jsxs(a.Fragment,{children:[Se,Oe]}),e[81]=Se,e[82]=Oe,e[83]=rt):rt=e[83],rt}function Uc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(qc,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=o):o=e[3],o}function Wc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Hc,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=o):o=e[3],o}function Yc(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(Bc,{"data-slot":"collapsible-content",...t}),e[2]=t,e[3]=o):o=e[3],o}function mn(n,e,t){const o=n,r=e,s={window:t};return[{title:"Overview",href:Be(o,r,s),icon:Es,group:"activity"},{title:"Requests",href:Rn(o,r,s),icon:es,group:"activity"},{title:"Jobs",href:Pn(o,r,s),icon:_a,group:"activity"},{title:"Scheduled tasks",href:dr(o,r,s),icon:hs,group:"activity"},{title:"Commands",href:ur(o,r,s),icon:xa,group:"activity"},{title:"Exceptions",href:fr(o,r,s),icon:ds,group:"activity"},{title:"Queries",href:Tn(o,r,s),icon:ks,group:"activity"},{title:"Spans",href:pr(o,r,s),icon:ya,group:"activity"},{title:"Profiles",href:mr(o,r,s),icon:Ns,group:"activity"},{title:"Transactions",href:hr(o,r,s),icon:Ps,group:"activity"},{title:"View renders",href:vr(o,r,s),icon:zs,group:"activity"},{title:"Cache",href:gr(o,r,s),icon:Ds,group:"activity"},{title:"Mail",href:xr(o,r,s),icon:Ks,group:"activity"},{title:"Notifications",href:br(o,r,s),icon:Kn,group:"activity"},{title:"Broadcasts",href:yr(o,r,s),icon:ps,group:"activity"},{title:"Outgoing requests",href:wr(o,r,s),icon:ns,group:"activity"},{title:"LLM",href:Cr(o,r,s),icon:va,group:"activity"},{title:"Storage",href:jr(o,r,s),icon:As,group:"activity"},{title:"Logs",href:kr(o,r,s),icon:Ms,group:"activity"},{title:"Deprecations",href:_r(o,r,s),icon:cr,group:"activity"},{title:"Visits",href:Mr(o,r,s),icon:Us,group:"monitoring"},{title:"Users",href:Sr(o,r,s),icon:Xt,group:"monitoring"},{title:"Tenants",href:Nr(o,r,s),icon:qn,group:"monitoring"},{title:"Deploys",href:Ir(o,r),icon:ia,group:"monitoring"},{title:"Releases",href:Er(o,r,s),icon:Xs,group:"monitoring"},{title:"Processes",href:Rr(o,r),icon:da,group:"monitoring"},{title:"Alerts",href:Pr(o,r),icon:ma,group:"monitoring"},{title:"Thresholds",href:Tr(o,r),icon:Yr,group:"settings"},{title:"Usage",href:Ar(o,r),icon:gs,group:"settings"}]}const Uo=[{key:"activity",title:"Activity"},{key:"monitoring",title:"Monitoring"},{key:"settings",title:"Settings"}];function Xc(){const n=M.c(1),e=ce(),{environment:t}=e.props,o=e.url.split("?")[0];let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={},n[0]=r):r=n[0];const[s,i]=f.useState(r);if(!t)return null;const l=mn(t.application_id,t.id,e.props.window),d=(e.props.saved_views??[]).filter(Jc),c=p=>{const m=p.split("?")[0];return o===m||o.startsWith(m+"/")},u=l[0];return a.jsx(Zt,{className:"p-0",children:a.jsxs(we,{children:[a.jsx(ge,{children:a.jsx(xe,{asChild:!0,isActive:o===u.href.split("?")[0],tooltip:{children:u.title},children:a.jsxs(me,{href:u.href,prefetch:!0,children:[u.icon&&a.jsx(u.icon,{}),a.jsx("span",{children:u.title})]})})}),Uo.map(p=>{const m=l.filter(g=>g.group===p.key&&g!==u),h=m.some(g=>c(g.href)),x=s[p.key]??h,v=m[0]?.icon;return a.jsx(Uc,{open:x,onOpenChange:g=>i(w=>({...w,[p.key]:g})),className:"group/collapsible",children:a.jsxs(ge,{children:[a.jsx(Wc,{asChild:!0,children:a.jsxs(xe,{tooltip:{children:p.title},className:T(h&&"text-sidebar-foreground"),children:[v&&a.jsx(v,{}),a.jsx("span",{children:p.title}),a.jsx(Wn,{className:"ml-auto size-3.5 opacity-60 transition-transform group-data-[state=open]/collapsible:rotate-90"})]})}),a.jsx(Yc,{children:a.jsx(Ii,{className:"mr-0 gap-0.5 pr-0",children:m.map(g=>a.jsxs(Ei,{children:[a.jsx(Cn,{asChild:!0,isActive:c(g.href),children:a.jsx(me,{href:g.href,prefetch:!0,children:a.jsx("span",{children:g.title})})}),d.filter(w=>qo(w.url,g.href)).map(w=>a.jsx(Cn,{asChild:!0,size:"sm",className:"pl-4",isActive:pn(e.url,w.url),children:a.jsxs(me,{href:w.url,children:[a.jsx(Wt,{className:"opacity-60"}),a.jsx("span",{children:w.name})]})},w.id))]},g.title))})})]})},p.key)})]})})}function Jc(n){return n.pinned}function Sn(n){const e=M.c(7),{name:t,className:o}=n;let r;e[0]!==o?(r=T("bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-md font-mono text-xs font-semibold",o),e[0]=o,e[1]=r):r=e[1];let s;e[2]!==t?(s=t.slice(0,2).toUpperCase(),e[2]=t,e[3]=s):s=e[3];let i;return e[4]!==r||e[5]!==s?(i=a.jsx("span",{className:r,children:s}),e[4]=r,e[5]=s,e[6]=i):i=e[6],i}function Qc(){const n=M.c(44),{applications:e,environment:t,embedded:o}=ce().props;if(e.length===0)return null;let r;n[0]!==e||n[1]!==t?.application_id?(r=e.find(y=>y.id===t?.application_id)??e[0],n[0]=e,n[1]=t?.application_id,n[2]=r):r=n[2];const s=r;if(o){const y=t??s.environments[0];let b;n[3]!==s.id||n[4]!==y.id?(b=Be(s.id,y.id),n[3]=s.id,n[4]=y.id,n[5]=b):b=n[5];let j;n[6]!==s.name?(j=a.jsx(Sn,{name:s.name}),n[6]=s.name,n[7]=j):j=n[7];let _;n[8]!==s.name?(_=a.jsx("span",{className:"truncate text-sm font-semibold",children:s.name}),n[8]=s.name,n[9]=_):_=n[9];let k;n[10]!==y.name?(k=a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:y.name}),n[10]=y.name,n[11]=k):k=n[11];let S;n[12]!==_||n[13]!==k?(S=a.jsxs("span",{className:"grid flex-1 text-left leading-tight",children:[_,k]}),n[12]=_,n[13]=k,n[14]=S):S=n[14];let E;return n[15]!==b||n[16]!==j||n[17]!==S?(E=a.jsx(we,{children:a.jsx(ge,{children:a.jsx(xe,{size:"lg",asChild:!0,className:"border-0 py-2 pr-3 pl-2 hover:bg-transparent",children:a.jsxs(me,{href:b,prefetch:!0,children:[j,S]})})})}),n[15]=b,n[16]=j,n[17]=S,n[18]=E):E=n[18],E}let i;n[19]!==s.name?(i=a.jsx(Sn,{name:s.name}),n[19]=s.name,n[20]=i):i=n[20];let l;n[21]!==s.name?(l=a.jsx("span",{className:"truncate text-sm font-semibold",children:s.name}),n[21]=s.name,n[22]=l):l=n[22];const d=t?t.name:`${s.environments.length} environment${s.environments.length===1?"":"s"}`;let c;n[23]!==d?(c=a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:d}),n[23]=d,n[24]=c):c=n[24];let u;n[25]!==l||n[26]!==c?(u=a.jsxs("span",{className:"grid flex-1 text-left leading-tight",children:[l,c]}),n[25]=l,n[26]=c,n[27]=u):u=n[27];let p;n[28]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Yn,{className:"size-3.5 opacity-60"}),n[28]=p):p=n[28];let m;n[29]!==i||n[30]!==u?(m=a.jsx(bt,{asChild:!0,children:a.jsxs(xe,{size:"lg",className:"data-[state=open]:bg-sidebar-accent hover:bg-sidebar-accent border-0 py-2 pr-3 pl-2",children:[i,u,p]})}),n[29]=i,n[30]=u,n[31]=m):m=n[31];let h;if(n[32]!==e||n[33]!==t?.id){let y;n[35]!==t?.id?(y=b=>a.jsxs("div",{children:[a.jsx(Ye,{className:"label-caps",children:b.name}),b.environments.map(j=>a.jsxs(fe,{onSelect:()=>ee.visit(Be(b.id,j.id)),children:[a.jsx(Xr,{lastSeenAt:j.paused?null:j.last_seen_at,thresholdMs:6e5}),a.jsx("span",{className:"flex-1",children:j.name}),j.id===t?.id&&a.jsx(Ut,{className:"size-3.5"})]},j.id))]},b.id),n[35]=t?.id,n[36]=y):y=n[36],h=e.map(y),n[32]=e,n[33]=t?.id,n[34]=h}else h=n[34];let x;n[37]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Fe,{}),n[37]=x):x=n[37];let v;n[38]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsxs(fe,{onSelect:Zc,children:[a.jsx(sa,{className:"size-3.5"}),"Add application"]}),n[38]=v):v=n[38];let g;n[39]!==h?(g=a.jsxs(yt,{align:"start",className:"w-(--radix-dropdown-menu-trigger-width) min-w-64",children:[h,x,v]}),n[39]=h,n[40]=g):g=n[40];let w;return n[41]!==g||n[42]!==m?(w=a.jsx(we,{children:a.jsx(ge,{children:a.jsxs(xt,{children:[m,g]})})}),n[41]=g,n[42]=m,n[43]=w):w=n[43],w}function Zc(){return ee.visit($r())}function ed(n){const e=M.c(4);let t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsx("path",{d:"M 236 324.989 L 236 404.978 496.750 405.239 L 757.500 405.500 765.665 408.577 C 777.060 412.870, 784.110 417.355, 792.381 425.574 C 833.878 466.807, 812.048 538.520, 752.263 557.363 C 737.593 561.987, 732.018 562.115, 560.250 561.798 C 471.562 561.634, 399 561.557, 399 561.626 C 399 561.695, 406.313 568.648, 415.250 577.077 C 436.108 596.747, 508.719 665.823, 525 681.483 C 612.468 765.614, 693.318 845.033, 770.500 922.639 L 840.500 993.023 951.250 993.011 C 1012.163 993.005, 1062 992.732, 1062 992.404 C 1062 992.076, 1056.942 986.113, 1050.761 979.154 C 1039.889 966.913, 1035.649 962.220, 1005.428 928.979 C 997.688 920.465, 984.624 906.075, 976.396 897 C 933.021 849.161, 888.142 799.872, 868.953 779 C 857.071 766.075, 841.562 749.200, 834.490 741.500 C 827.417 733.800, 814.456 719.721, 805.686 710.213 C 796.916 700.705, 789.994 692.673, 790.303 692.363 C 790.613 692.054, 795.578 690.983, 801.338 689.983 C 895.506 673.637, 967.601 596.363, 980.578 497.866 C 982.637 482.242, 982.086 446.289, 979.576 432.500 C 960.757 329.105, 884.022 255.740, 784.576 246.063 C 777.168 245.342, 687.144 245, 504.826 245 L 236 245 236 324.989",fill:"currentColor"}),o=a.jsx("path",{d:"M 243.550 507.838 C 244.072 508.299, 247.425 510.859, 251 513.526 C 294.327 545.849, 358.703 617.861, 503.521 796 C 560.192 865.711, 593.994 908.954, 627.414 954.500 L 642.090 974.500 689.045 975 C 714.871 975.275, 736 975.275, 735.999 975 C 735.994 973.773, 698.564 930.428, 663.901 891.507 C 571.946 788.257, 436.131 649.261, 367.500 588.162 C 325.285 550.581, 286.033 524.106, 252.457 510.567 C 243.188 506.829, 241.991 506.462, 243.550 507.838 M 236 520 C 236 521.800, 236.667 522, 242.655 522 C 249.247 522, 249.293 521.981, 247.500 520 C 246.164 518.524, 244.420 518, 240.845 518 C 236.667 518, 236 518.275, 236 520 M 236 532.500 L 236 537 249.067 537 L 262.134 537 258.446 532.500 L 254.759 528 245.380 528 L 236 528 236 532.500 M 236 553.500 L 236 562 258.500 562 C 270.875 562, 280.991 561.663, 280.981 561.250 C 280.970 560.837, 278.237 557.013, 274.908 552.750 L 268.854 545 252.427 545 L 236 545 236 553.500 M 235.909 585 C 235.859 589.950, 235.777 595.462, 235.727 597.250 L 235.636 600.500 273.840 600.762 L 312.044 601.024 302.772 588.569 L 293.500 576.114 264.750 576.057 L 236 576 235.909 585 M 235.570 627.477 C 235.212 629.389, 234.979 637.714, 235.053 645.977 L 235.188 661 295.571 661 L 355.955 661 342.326 642.500 L 328.698 624 282.460 624 L 236.223 624 235.570 627.477 M 236 717.750 L 236 741.500 324.591 741.326 C 373.315 741.230, 413.343 740.990, 413.541 740.792 C 413.739 740.594, 406.184 729.985, 396.752 717.216 L 379.603 694 307.802 694 L 236 694 236 717.750 M 236.235 813.250 L 236.500 842.500 362.358 842.754 C 472.189 842.975, 488.146 842.822, 487.658 841.552 C 487.351 840.751, 477.621 827.475, 466.036 812.048 L 444.973 784 340.471 784 L 235.970 784 236.235 813.250 M 235.683 898.750 C 234.872 900.147, 235.511 973.844, 236.341 974.675 C 237.491 975.825, 392.185 976.287, 495.665 975.450 L 581.829 974.753 578.959 970.126 C 575.681 964.845, 552.884 930.825, 539.500 911.243 L 530.500 898.075 383.309 898.038 C 302.354 898.017, 235.922 898.337, 235.683 898.750",fill:"#FFC22B"}),e[0]=t,e[1]=o):(t=e[0],o=e[1]);let r;return e[2]!==n?(r=a.jsxs("svg",{viewBox:"213 184 870 870",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[t,o]}),e[2]=n,e[3]=r):r=e[3],r}function td(){const n=M.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"hidden aspect-square size-8 shrink-0 items-center justify-center rounded-md bg-[#0F1729] text-white group-data-[collapsible=icon]:flex",children:a.jsx(ed,{className:"size-6"})}),a.jsx(zr,{className:"h-4 w-auto group-data-[collapsible=icon]:hidden"})]}),n[0]=e):e=n[0],e}const nd=n=>[...n?[]:[{title:"Dashboard",href:ct(),icon:Xn}],{title:"Issues",href:Ke(),icon:Jn},{title:"Alerts",href:Dr(),icon:Kn},...n?[]:[{title:"Integrations",href:An(),icon:Qn},{title:"Members",href:$n(),icon:Xt}]],od=n=>[{title:"Documentation",href:n?"https://railwatch.rebulk.com/docs":"/docs",icon:ss}];function rd(){const n=M.c(23),{environment:e,applications:t,embedded:o}=ce().props;let r;n[0]!==t.length?(r=a.jsx(ji,{className:"border-sidebar-border gap-0 border-b p-1.5",children:t.length>0?a.jsx(Qc,{}):a.jsx(we,{children:a.jsx(ge,{children:a.jsx(xe,{size:"lg",asChild:!0,children:a.jsx(me,{href:ct(),prefetch:!0,children:a.jsx(td,{})})})})})}),n[0]=t.length,n[1]=r):r=n[1];let s;n[2]!==e?(s=e&&a.jsx(Xc,{}),n[2]=e,n[3]=s):s=n[3];const i=!!o;let l;n[4]!==i?(l=nd(i),n[4]=i,n[5]=l):l=n[5];const d=e?"Account":"";let c;n[6]!==l||n[7]!==d?(c=a.jsx(Oi,{items:l,label:d}),n[6]=l,n[7]=d,n[8]=c):c=n[8];let u;n[9]!==s||n[10]!==c?(u=a.jsxs(_i,{className:"gap-0 p-1.5",children:[s,c]}),n[9]=s,n[10]=c,n[11]=u):u=n[11];const p=!!o;let m;n[12]!==p?(m=od(p),n[12]=p,n[13]=m):m=n[13];let h;n[14]!==m?(h=a.jsx($i,{items:m,className:"mt-auto"}),n[14]=m,n[15]=h):h=n[15];let x;n[16]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Oc,{}),n[16]=x):x=n[16];let v;n[17]!==h?(v=a.jsxs(ki,{children:[h,x]}),n[17]=h,n[18]=v):v=n[18];let g;return n[19]!==r||n[20]!==v||n[21]!==u?(g=a.jsxs(yi,{collapsible:"icon",variant:"sidebar",children:[r,u,v]}),n[19]=r,n[20]=v,n[21]=u,n[22]=g):g=n[22],g}function sd(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t}),e[2]=t,e[3]=o):o=e[3],o}function ad(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function id(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("inline-flex items-center gap-1.5",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("li",{"data-slot":"breadcrumb-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function ld(n){const e=M.c(10);let t,o,r;e[0]!==n?({asChild:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);const s=t?dt:"a";let i;e[4]!==o?(i=T("hover:text-foreground transition-colors",o),e[4]=o,e[5]=i):i=e[5];let l;return e[6]!==s||e[7]!==r||e[8]!==i?(l=a.jsx(s,{"data-slot":"breadcrumb-link",className:i,...r}),e[6]=s,e[7]=r,e[8]=i,e[9]=l):l=e[9],l}function cd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground font-normal",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function dd(n){const e=M.c(12);let t,o,r;e[0]!==n?({children:t,className:o,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;e[4]!==o?(s=T("[&>svg]:size-3.5",o),e[4]=o,e[5]=s):s=e[5];let i;e[6]!==t?(i=t??a.jsx(Wn,{}),e[6]=t,e[7]=i):i=e[7];let l;return e[8]!==r||e[9]!==s||e[10]!==i?(l=a.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:s,...r,children:i}),e[8]=r,e[9]=s,e[10]=i,e[11]=l):l=e[11],l}function ud(n){const e=M.c(4),{breadcrumbs:t}=n;let o;e[0]!==t?(o=t.length>0&&a.jsx(sd,{children:a.jsx(ad,{children:t.map((s,i)=>{const l=i===t.length-1;return a.jsxs(f.Fragment,{children:[a.jsx(id,{children:l?a.jsx(cd,{children:s.title}):a.jsx(ld,{asChild:!0,children:a.jsx(me,{href:s.href,children:s.title})})}),!l&&a.jsx(dd,{})]},i)})})}),e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=a.jsx(a.Fragment,{children:o}),e[2]=o,e[3]=r):r=e[3],r}function fd(){const n=M.c(21),e=ce(),{environment:t}=e.props;if(!t)return null;let o,r,s,i,l,d;if(n[0]!==t.application_id||n[1]!==t.id||n[2]!==e.props.saved_views||n[3]!==e.props.window||n[4]!==e.url){const p=mn(t.application_id,t.id,e.props.window),m=e.url.split("?")[0],h=(e.props.saved_views??[]).filter(md),x=p.filter(g=>{const w=g.href.split("?")[0];return m===w||m.startsWith(w+"/")}).sort(pd)[0]??p[0];r=xt;let v;n[11]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx(Un,{className:"size-3.5 shrink-0 opacity-60"}),n[11]=v):v=n[11],d=a.jsxs(bt,{className:"flex min-w-0 items-center gap-1 text-sm font-medium",children:[x.icon&&a.jsx(x.icon,{className:"size-4 shrink-0 opacity-70"}),a.jsx("span",{className:"truncate",children:x.title}),v]}),o=yt,s="start",i="max-h-[70vh] w-60 overflow-y-auto",l=Uo.map((g,w)=>a.jsxs("div",{children:[w>0&&a.jsx(Fe,{}),a.jsx(Ye,{className:"label-caps",children:g.title}),p.filter(y=>y.group===g.key).map(y=>a.jsxs("div",{children:[a.jsxs(fe,{onSelect:()=>ee.visit(y.href),className:y===x?"bg-accent":void 0,children:[y.icon&&a.jsx(y.icon,{className:"size-4"}),y.title]}),h.filter(b=>qo(b.url,y.href)).map(b=>a.jsxs(fe,{onSelect:()=>ee.visit(b.url),className:T("pl-8 text-xs",pn(e.url,b.url)&&"bg-accent"),children:[a.jsx(Wt,{className:"size-3.5 opacity-60"}),b.name]},b.id))]},y.title))]},g.key)),n[0]=t.application_id,n[1]=t.id,n[2]=e.props.saved_views,n[3]=e.props.window,n[4]=e.url,n[5]=o,n[6]=r,n[7]=s,n[8]=i,n[9]=l,n[10]=d}else o=n[5],r=n[6],s=n[7],i=n[8],l=n[9],d=n[10];let c;n[12]!==o||n[13]!==s||n[14]!==i||n[15]!==l?(c=a.jsx(o,{align:s,className:i,children:l}),n[12]=o,n[13]=s,n[14]=i,n[15]=l,n[16]=c):c=n[16];let u;return n[17]!==r||n[18]!==d||n[19]!==c?(u=a.jsxs(r,{children:[d,c]}),n[17]=r,n[18]=d,n[19]=c,n[20]=u):u=n[20],u}function pd(n,e){return e.href.length-n.href.length}function md(n){return n.pinned}function hd(n){const e=M.c(16),{breadcrumbs:t,onOpenCommandPalette:o}=n;let r;e[0]!==t?(r=t===void 0?[]:t,e[0]=t,e[1]=r):r=e[1];const s=r,{environment:i}=ce().props;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(wi,{className:"text-muted-foreground -ml-1"}),e[2]=l):l=e[2];let d;e[3]!==s?(d=a.jsx("div",{className:"text-muted-foreground hidden min-w-0 text-xs md:block",children:a.jsx(ud,{breadcrumbs:s})}),e[3]=s,e[4]=d):d=e[4];let c;e[5]!==s||e[6]!==i?(c=a.jsx("div",{className:"min-w-0 md:hidden",children:i?a.jsx(fd,{}):a.jsx("span",{className:"truncate text-sm font-medium",children:s[s.length-1]?.title})}),e[5]=s,e[6]=i,e[7]=c):c=e[7];let u;e[8]!==d||e[9]!==c?(u=a.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[l,d,c]}),e[8]=d,e[9]=c,e[10]=u):u=e[10];let p;e[11]!==o?(p=o&&a.jsxs(He,{type:"button",variant:"outline",size:"sm",className:"text-muted-foreground h-8 gap-1.5",onClick:o,children:[a.jsx(Yt,{className:"size-3.5"}),a.jsx("span",{className:"hidden sm:inline",children:"Search"}),a.jsx("kbd",{className:"bg-muted hidden rounded px-1 py-0.5 font-mono text-[10px] sm:inline",children:"⌘K"})]}),e[11]=o,e[12]=p):p=e[12];let m;return e[13]!==u||e[14]!==p?(m=a.jsxs("header",{className:"bg-background/80 sticky top-0 z-20 flex h-12 shrink-0 items-center justify-between gap-2 border-b px-3 backdrop-blur md:h-11 md:border-0 md:bg-transparent md:px-6 md:pt-2 md:backdrop-blur-none",children:[u,p]}),e[13]=u,e[14]=p,e[15]=m):m=e[15],m}var Nn=1,vd=.9,gd=.8,xd=.17,It=.1,Et=.999,bd=.9999,yd=.99,wd=/[\\\/_+.#"@\[\(\{&]/,Cd=/[\\\/_+.#"@\[\(\{&]/g,jd=/[\s-]/,Wo=/[\s-]/g;function Ft(n,e,t,o,r,s,i){if(s===e.length)return r===n.length?Nn:yd;var l=`${r},${s}`;if(i[l]!==void 0)return i[l];for(var d=o.charAt(s),c=t.indexOf(d,r),u=0,p,m,h,x;c>=0;)p=Ft(n,e,t,o,c+1,s+1,i),p>u&&(c===r?p*=Nn:wd.test(n.charAt(c-1))?(p*=gd,h=n.slice(r,c-1).match(Cd),h&&r>0&&(p*=Math.pow(Et,h.length))):jd.test(n.charAt(c-1))?(p*=vd,x=n.slice(r,c-1).match(Wo),x&&r>0&&(p*=Math.pow(Et,x.length))):(p*=xd,r>0&&(p*=Math.pow(Et,c-r))),n.charAt(c)!==e.charAt(s)&&(p*=bd)),(p<It&&t.charAt(c-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&t.charAt(c-1)!==o.charAt(s))&&(m=Ft(n,e,t,o,c+1,s+2,i),m*It>p&&(p=m*It)),p>u&&(u=p),c=t.indexOf(d,c+1);return i[l]=u,u}function In(n){return n.toLowerCase().replace(Wo," ")}function kd(n,e,t){return n=t&&t.length>0?`${n+" "+t.join(" ")}`:n,Ft(n,e,In(n),In(e),0,0,{})}var Ve='[cmdk-group=""]',Rt='[cmdk-group-items=""]',_d='[cmdk-group-heading=""]',Yo='[cmdk-item=""]',En=`${Yo}:not([aria-disabled="true"])`,Gt="cmdk-item-select",Le="data-value",Md=(n,e,t)=>kd(n,e,t),Xo=f.createContext(void 0),et=()=>f.useContext(Xo),Jo=f.createContext(void 0),hn=()=>f.useContext(Jo),Qo=f.createContext(void 0),Zo=f.forwardRef((n,e)=>{let t=ze(()=>{var C,R;return{search:"",value:(R=(C=n.value)!=null?C:n.defaultValue)!=null?R:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=ze(()=>new Set),r=ze(()=>new Map),s=ze(()=>new Map),i=ze(()=>new Set),l=er(n),{label:d,children:c,value:u,onValueChange:p,filter:m,shouldFilter:h,loop:x,disablePointerSelection:v=!1,vimBindings:g=!0,...w}=n,y=le(),b=le(),j=le(),_=f.useRef(null),k=Od();Ce(()=>{if(u!==void 0){let C=u.trim();t.current.value=C,S.emit()}},[u]),Ce(()=>{k(6,K)},[]);let S=f.useMemo(()=>({subscribe:C=>(i.current.add(C),()=>i.current.delete(C)),snapshot:()=>t.current,setState:(C,R,D)=>{var I,L,z,F;if(!Object.is(t.current[C],R)){if(t.current[C]=R,C==="search")G(),P(),k(1,O);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(j);W?W.focus():(I=document.getElementById(y))==null||I.focus()}if(k(7,()=>{var W;t.current.selectedItemId=(W=q())==null?void 0:W.id,S.emit()}),D||k(5,K),((L=l.current)==null?void 0:L.value)!==void 0){let W=R??"";(F=(z=l.current).onValueChange)==null||F.call(z,W);return}}S.emit()}},emit:()=>{i.current.forEach(C=>C())}}),[]),E=f.useMemo(()=>({value:(C,R,D)=>{var I;R!==((I=s.current.get(C))==null?void 0:I.value)&&(s.current.set(C,{value:R,keywords:D}),t.current.filtered.items.set(C,N(R,D)),k(2,()=>{P(),S.emit()}))},item:(C,R)=>(o.current.add(C),R&&(r.current.has(R)?r.current.get(R).add(C):r.current.set(R,new Set([C]))),k(3,()=>{G(),P(),t.current.value||O(),S.emit()}),()=>{s.current.delete(C),o.current.delete(C),t.current.filtered.items.delete(C);let D=q();k(4,()=>{G(),D?.getAttribute("id")===C&&O(),S.emit()})}),group:C=>(r.current.has(C)||r.current.set(C,new Set),()=>{s.current.delete(C),r.current.delete(C)}),filter:()=>l.current.shouldFilter,label:d||n["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:y,inputId:j,labelId:b,listInnerRef:_}),[]);function N(C,R){var D,I;let L=(I=(D=l.current)==null?void 0:D.filter)!=null?I:Md;return C?L(C,t.current.search,R):0}function P(){if(!t.current.search||l.current.shouldFilter===!1)return;let C=t.current.filtered.items,R=[];t.current.filtered.groups.forEach(I=>{let L=r.current.get(I),z=0;L.forEach(F=>{let W=C.get(F);z=Math.max(W,z)}),R.push([I,z])});let D=_.current;B().sort((I,L)=>{var z,F;let W=I.getAttribute("id"),ie=L.getAttribute("id");return((z=C.get(ie))!=null?z:0)-((F=C.get(W))!=null?F:0)}).forEach(I=>{let L=I.closest(Rt);L?L.appendChild(I.parentElement===L?I:I.closest(`${Rt} > *`)):D.appendChild(I.parentElement===D?I:I.closest(`${Rt} > *`))}),R.sort((I,L)=>L[1]-I[1]).forEach(I=>{var L;let z=(L=_.current)==null?void 0:L.querySelector(`${Ve}[${Le}="${encodeURIComponent(I[0])}"]`);z?.parentElement.appendChild(z)})}function O(){let C=B().find(D=>D.getAttribute("aria-disabled")!=="true"),R=C?.getAttribute(Le);S.setState("value",R||void 0)}function G(){var C,R,D,I;if(!t.current.search||l.current.shouldFilter===!1){t.current.filtered.count=o.current.size;return}t.current.filtered.groups=new Set;let L=0;for(let z of o.current){let F=(R=(C=s.current.get(z))==null?void 0:C.value)!=null?R:"",W=(I=(D=s.current.get(z))==null?void 0:D.keywords)!=null?I:[],ie=N(F,W);t.current.filtered.items.set(z,ie),ie>0&&L++}for(let[z,F]of r.current)for(let W of F)if(t.current.filtered.items.get(W)>0){t.current.filtered.groups.add(z);break}t.current.filtered.count=L}function K(){var C,R,D;let I=q();I&&(((C=I.parentElement)==null?void 0:C.firstChild)===I&&((D=(R=I.closest(Ve))==null?void 0:R.querySelector(_d))==null||D.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function q(){var C;return(C=_.current)==null?void 0:C.querySelector(`${Yo}[aria-selected="true"]`)}function B(){var C;return Array.from(((C=_.current)==null?void 0:C.querySelectorAll(En))||[])}function oe(C){let R=B()[C];R&&S.setState("value",R.getAttribute(Le))}function U(C){var R;let D=q(),I=B(),L=I.findIndex(F=>F===D),z=I[L+C];(R=l.current)!=null&&R.loop&&(z=L+C<0?I[I.length-1]:L+C===I.length?I[0]:I[L+C]),z&&S.setState("value",z.getAttribute(Le))}function Me(C){let R=q(),D=R?.closest(Ve),I;for(;D&&!I;)D=C>0?$d(D,Ve):Dd(D,Ve),I=D?.querySelector(En);I?S.setState("value",I.getAttribute(Le)):U(C)}let te=()=>oe(B().length-1),A=C=>{C.preventDefault(),C.metaKey?te():C.altKey?Me(1):U(1)},re=C=>{C.preventDefault(),C.metaKey?oe(0):C.altKey?Me(-1):U(-1)};return f.createElement(X.div,{ref:e,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:C=>{var R;(R=w.onKeyDown)==null||R.call(w,C);let D=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||D))switch(C.key){case"n":case"j":{g&&C.ctrlKey&&A(C);break}case"ArrowDown":{A(C);break}case"p":case"k":{g&&C.ctrlKey&&re(C);break}case"ArrowUp":{re(C);break}case"Home":{C.preventDefault(),oe(0);break}case"End":{C.preventDefault(),te();break}case"Enter":{C.preventDefault();let I=q();if(I){let L=new Event(Gt);I.dispatchEvent(L)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:zd},d),Ct(n,C=>f.createElement(Jo.Provider,{value:S},f.createElement(Xo.Provider,{value:E},C))))}),Sd=f.forwardRef((n,e)=>{var t,o;let r=le(),s=f.useRef(null),i=f.useContext(Qo),l=et(),d=er(n),c=(o=(t=d.current)==null?void 0:t.forceMount)!=null?o:i?.forceMount;Ce(()=>{if(!c)return l.item(r,i?.id)},[c]);let u=tr(r,s,[n.value,n.children,s],n.keywords),p=hn(),m=be(k=>k.value&&k.value===u.current),h=be(k=>c||l.filter()===!1?!0:k.search?k.filtered.items.get(r)>0:!0);f.useEffect(()=>{let k=s.current;if(!(!k||n.disabled))return k.addEventListener(Gt,x),()=>k.removeEventListener(Gt,x)},[h,n.onSelect,n.disabled]);function x(){var k,S;v(),(S=(k=d.current).onSelect)==null||S.call(k,u.current)}function v(){p.setState("value",u.current,!0)}if(!h)return null;let{disabled:g,value:w,onSelect:y,forceMount:b,keywords:j,..._}=n;return f.createElement(X.div,{ref:Ue(s,e),..._,id:r,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!m,"data-disabled":!!g,"data-selected":!!m,onPointerMove:g||l.getDisablePointerSelection()?void 0:v,onClick:g?void 0:x},n.children)}),Nd=f.forwardRef((n,e)=>{let{heading:t,children:o,forceMount:r,...s}=n,i=le(),l=f.useRef(null),d=f.useRef(null),c=le(),u=et(),p=be(h=>r||u.filter()===!1?!0:h.search?h.filtered.groups.has(i):!0);Ce(()=>u.group(i),[]),tr(i,l,[n.value,n.heading,d]);let m=f.useMemo(()=>({id:i,forceMount:r}),[r]);return f.createElement(X.div,{ref:Ue(l,e),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},t&&f.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:c},t),Ct(n,h=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":t?c:void 0},f.createElement(Qo.Provider,{value:m},h))))}),Id=f.forwardRef((n,e)=>{let{alwaysRender:t,...o}=n,r=f.useRef(null),s=be(i=>!i.search);return!t&&!s?null:f.createElement(X.div,{ref:Ue(r,e),...o,"cmdk-separator":"",role:"separator"})}),Ed=f.forwardRef((n,e)=>{let{onValueChange:t,...o}=n,r=n.value!=null,s=hn(),i=be(c=>c.search),l=be(c=>c.selectedItemId),d=et();return f.useEffect(()=>{n.value!=null&&s.setState("search",n.value)},[n.value]),f.createElement(X.input,{ref:e,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":l,id:d.inputId,type:"text",value:r?n.value:i,onChange:c=>{r||s.setState("search",c.target.value),t?.(c.target.value)}})}),Rd=f.forwardRef((n,e)=>{let{children:t,label:o="Suggestions",...r}=n,s=f.useRef(null),i=f.useRef(null),l=be(c=>c.selectedItemId),d=et();return f.useEffect(()=>{if(i.current&&s.current){let c=i.current,u=s.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=c.offsetHeight;u.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return m.observe(c),()=>{cancelAnimationFrame(p),m.unobserve(c)}}},[]),f.createElement(X.div,{ref:Ue(s,e),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":o,id:d.listId},Ct(n,c=>f.createElement("div",{ref:Ue(i,d.listInnerRef),"cmdk-list-sizer":""},c)))}),Pd=f.forwardRef((n,e)=>{let{open:t,onOpenChange:o,overlayClassName:r,contentClassName:s,container:i,...l}=n;return f.createElement(Dn,{open:t,onOpenChange:o},f.createElement(Ln,{container:i},f.createElement(zn,{"cmdk-overlay":"",className:r}),f.createElement(On,{"aria-label":n.label,"cmdk-dialog":"",className:s},f.createElement(Zo,{ref:e,...l}))))}),Td=f.forwardRef((n,e)=>be(t=>t.filtered.count===0)?f.createElement(X.div,{ref:e,...n,"cmdk-empty":"",role:"presentation"}):null),Ad=f.forwardRef((n,e)=>{let{progress:t,children:o,label:r="Loading...",...s}=n;return f.createElement(X.div,{ref:e,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},Ct(n,i=>f.createElement("div",{"aria-hidden":!0},i)))}),_e=Object.assign(Zo,{List:Rd,Item:Sd,Input:Ed,Group:Nd,Separator:Id,Dialog:Pd,Empty:Td,Loading:Ad});function $d(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return t;t=t.nextElementSibling}}function Dd(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return t;t=t.previousElementSibling}}function er(n){let e=f.useRef(n);return Ce(()=>{e.current=n}),e}var Ce=typeof window>"u"?f.useEffect:f.useLayoutEffect;function ze(n){let e=f.useRef();return e.current===void 0&&(e.current=n()),e}function be(n){let e=hn(),t=()=>n(e.snapshot());return f.useSyncExternalStore(e.subscribe,t,t)}function tr(n,e,t,o=[]){let r=f.useRef(),s=et();return Ce(()=>{var i;let l=(()=>{var c;for(let u of t){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():r.current}})(),d=o.map(c=>c.trim());s.value(n,l,d),(i=e.current)==null||i.setAttribute(Le,l),r.current=l}),r}var Od=()=>{let[n,e]=f.useState(),t=ze(()=>new Map);return Ce(()=>{t.current.forEach(o=>o()),t.current=new Map},[n]),(o,r)=>{t.current.set(o,r),e({})}};function Ld(n){let e=n.type;return typeof e=="function"?e(n.props):"render"in e?e.render(n.props):n}function Ct({asChild:n,children:e},t){return n&&f.isValidElement(e)?f.cloneElement(Ld(e),{ref:e.ref},t(e.props.children)):t(e)}var zd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Fd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e,{"data-slot":"command",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Gd(n){const e=M.c(26);let t,o,r,s,i,l;e[0]!==n?({title:s,description:i,children:t,className:o,showCloseButton:l,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=s,e[5]=i,e[6]=l):(t=e[1],o=e[2],r=e[3],s=e[4],i=e[5],l=e[6]);const d=s===void 0?"Command Palette":s,c=i===void 0?"Search for a command to run...":i,u=l===void 0?!0:l;let p;e[7]!==d?(p=a.jsx(Ht,{children:d}),e[7]=d,e[8]=p):p=e[8];let m;e[9]!==c?(m=a.jsx(Bt,{children:c}),e[9]=c,e[10]=m):m=e[10];let h;e[11]!==p||e[12]!==m?(h=a.jsxs(Vt,{className:"sr-only",children:[p,m]}),e[11]=p,e[12]=m,e[13]=h):h=e[13];let x;e[14]!==o?(x=T("overflow-hidden p-0",o),e[14]=o,e[15]=x):x=e[15];let v;e[16]!==t?(v=a.jsx(Fd,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[16]=t,e[17]=v):v=e[17];let g;e[18]!==u||e[19]!==x||e[20]!==v?(g=a.jsx(Kt,{className:x,showCloseButton:u,children:v}),e[18]=u,e[19]=x,e[20]=v,e[21]=g):g=e[21];let w;return e[22]!==r||e[23]!==h||e[24]!==g?(w=a.jsxs(qt,{...r,children:[h,g]}),e[22]=r,e[23]=h,e[24]=g,e[25]=w):w=e[25],w}function Vd(n){const e=M.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Yt,{className:"size-4 shrink-0 opacity-50"}),e[3]=r):r=e[3];let s;e[4]!==t?(s=T("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=s):s=e[5];let i;return e[6]!==o||e[7]!==s?(i=a.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[r,a.jsx(_e.Input,{"data-slot":"command-input",className:s,...o})]}),e[6]=o,e[7]=s,e[8]=i):i=e[8],i}function Hd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.List,{"data-slot":"command-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Bd(n){const e=M.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=a.jsx(_e.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=o):o=e[3],o}function st(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Group,{"data-slot":"command-group",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Kd(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("bg-border -mx-1 h-px",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Separator,{"data-slot":"command-separator",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function at(n){const e=M.c(8);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=T("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=a.jsx(_e.Item,{"data-slot":"command-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}const qd=n=>[...n?[]:[{title:"Dashboard",href:ct(),icon:Xn}],{title:"Issues",href:Ke(),icon:Jn},...n?[]:[{title:"Integrations",href:An(),icon:Qn},{title:"Members",href:$n(),icon:Xt}]];function Ud(n){const e=M.c(47),{open:t,onOpenChange:o}=n,[r,s]=f.useState(""),{applications:i,environment:l,embedded:d,window:c}=ce().props;let u;e[0]!==o?(u=E=>{o(!1),ee.visit(E)},e[0]=o,e[1]=u):u=e[1];const p=u;let m,h,x,v,g,w,y,b;if(e[2]!==c||e[3]!==d||e[4]!==l||e[5]!==p||e[6]!==o||e[7]!==t||e[8]!==r){const E=l?mn(l.application_id,l.id,c??"24h"):[];h=Gd,w=t,y=o,e[17]!==r?(b=a.jsx(Vd,{placeholder:"Search pages, applications, issues…",value:r,onValueChange:s}),e[17]=r,e[18]=b):b=e[18],m=Hd,e[19]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Bd,{children:"No results found."}),e[19]=x):x=e[19];let N;if(e[20]!==d||e[21]!==p){let P;e[23]!==p?(P=O=>a.jsxs(at,{onSelect:()=>p(O.href),children:[O.icon&&a.jsx(O.icon,{}),a.jsx("span",{children:O.title})]},O.title),e[23]=p,e[24]=P):P=e[24],N=qd(!!d).map(P),e[20]=d,e[21]=p,e[22]=N}else N=e[22];e[25]!==N?(v=a.jsx(st,{heading:"Navigation",children:N}),e[25]=N,e[26]=v):v=e[26],g=E.length>0&&a.jsx(st,{heading:`${l.application_name} · ${l.name}`,children:E.map(P=>a.jsxs(at,{onSelect:()=>p(P.href),children:[P.icon&&a.jsx(P.icon,{}),a.jsx("span",{children:P.title})]},P.title))}),e[2]=c,e[3]=d,e[4]=l,e[5]=p,e[6]=o,e[7]=t,e[8]=r,e[9]=m,e[10]=h,e[11]=x,e[12]=v,e[13]=g,e[14]=w,e[15]=y,e[16]=b}else m=e[9],h=e[10],x=e[11],v=e[12],g=e[13],w=e[14],y=e[15],b=e[16];let j;e[27]!==i||e[28]!==d||e[29]!==p?(j=!d&&a.jsx(st,{heading:"Applications",children:i.flatMap(E=>E.environments.map(N=>a.jsx(at,{value:`${E.name} ${N.name}`,onSelect:()=>p(Be(E.id,N.id)),children:a.jsxs("span",{children:[E.name," · ",N.name]})},`${E.id}-${N.id}`)))}),e[27]=i,e[28]=d,e[29]=p,e[30]=j):j=e[30];let _;e[31]!==p||e[32]!==r?(_=r.trim()&&a.jsxs(a.Fragment,{children:[a.jsx(Kd,{}),a.jsx(st,{heading:"Search",children:a.jsxs(at,{value:r,onSelect:()=>p(`${Ke()}?q=${encodeURIComponent(r)}`),children:[a.jsx(Yt,{}),a.jsxs("span",{children:["Search issues for “",r,"”"]})]})})]}),e[31]=p,e[32]=r,e[33]=_):_=e[33];let k;e[34]!==m||e[35]!==x||e[36]!==v||e[37]!==g||e[38]!==j||e[39]!==_?(k=a.jsxs(m,{children:[x,v,g,j,_]}),e[34]=m,e[35]=x,e[36]=v,e[37]=g,e[38]=j,e[39]=_,e[40]=k):k=e[40];let S;return e[41]!==h||e[42]!==k||e[43]!==w||e[44]!==y||e[45]!==b?(S=a.jsxs(h,{open:w,onOpenChange:y,children:[b,k]}),e[41]=h,e[42]=k,e[43]=w,e[44]=y,e[45]=b,e[46]=S):S=e[46],S}const Wd=[{title:"Navigation",shortcuts:[{keys:["⌘","K"],description:"Open command palette"},{keys:["g","d"],description:"Go to dashboard"},{keys:["g","o"],description:"Go to Overview"},{keys:["g","r"],description:"Go to Requests"},{keys:["g","j"],description:"Go to Jobs"},{keys:["g","q"],description:"Go to Queries"},{keys:["g","i"],description:"Go to Issues"},{keys:["?"],description:"Show this help"}]},{title:"Lists (requests, jobs, queries, issues, logs, …)",shortcuts:[{keys:["j"],description:"Move highlight down"},{keys:["k"],description:"Move highlight up"},{keys:["↵"],description:"Open highlighted row"},{keys:["o"],description:"Open highlighted row in a new tab"},{keys:["Esc"],description:"Clear highlight"},{keys:["/"],description:"Focus the filter bar"}]}];function Yd(n){const e=M.c(5),{open:t,onOpenChange:o}=n;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsxs(Vt,{children:[a.jsx(Ht,{children:"Keyboard shortcuts"}),a.jsx(Bt,{children:"Available anywhere in the app."})]}),e[0]=r):r=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsxs(Kt,{className:"sm:max-w-sm",children:[r,a.jsx("div",{className:"flex flex-col gap-4",children:Wd.map(Xd)})]}),e[1]=s):s=e[1];let i;return e[2]!==o||e[3]!==t?(i=a.jsx(qt,{open:t,onOpenChange:o,children:s}),e[2]=o,e[3]=t,e[4]=i):i=e[4],i}function Xd(n){return a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"text-muted-foreground text-xs font-medium tracking-wide uppercase",children:n.title}),a.jsx("ul",{className:"flex flex-col gap-2",children:n.shortcuts.map(Jd)})]},n.title)}function Jd(n){return a.jsxs("li",{className:"flex items-center justify-between text-sm",children:[a.jsx("span",{className:"text-muted-foreground",children:n.description}),a.jsx("span",{className:"flex items-center gap-1",children:n.keys.map(Qd)})]},n.description)}function Qd(n,e){return a.jsx("kbd",{className:"bg-muted rounded border px-1.5 py-0.5 font-mono text-xs",children:n},e)}const Zd=800;function eu(n){const e=M.c(4),t=f.useRef(n);let o;e[0]!==n?(o=()=>{t.current=n},e[0]=n,e[1]=o):o=e[1],f.useEffect(o);const r=f.useRef(null),s=f.useRef(void 0);let i,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const d=c=>{const u=c.target;if(!(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.tagName==="SELECT"||u.isContentEditable)&&!(c.metaKey||c.ctrlKey||c.altKey)){if(r.current){const p=`${r.current} ${c.key}`;if(window.clearTimeout(s.current),r.current=null,t.current[p]){c.preventDefault(),t.current[p]();return}}if(t.current[c.key]){c.preventDefault(),t.current[c.key]();return}c.key==="g"&&(r.current="g",s.current=window.setTimeout(()=>{r.current=null},Zd))}};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d),window.clearTimeout(s.current)}},l=[],e[2]=i,e[3]=l):(i=e[2],l=e[3]),f.useEffect(i,l)}function tu(n){const e=M.c(28),{children:t,breadcrumbs:o}=n;let r;e[0]!==o?(r=o===void 0?[]:o,e[0]=o,e[1]=r):r=e[1];const s=r,[i,l]=f.useState(!1),[d,c]=f.useState(!1),{environment:u,window:p}=ce().props;let m,h;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{const N=P=>{P.key==="k"&&(P.metaKey||P.ctrlKey)&&(P.preventDefault(),l(ru))};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},h=[],e[2]=m,e[3]=h):(m=e[2],h=e[3]),f.useEffect(m,h);let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=()=>c(ou),e[4]=x):x=e[4];let v;e[5]!==u?(v=()=>ee.visit(u?Ke({application_id:u.application_id,environment_id:u.id}):Ke()),e[5]=u,e[6]=v):v=e[6];let g;e[7]!==u||e[8]!==p?(g=u&&{"g o":()=>ee.visit(Be(u.application_id,u.id,{window:p})),"g r":()=>ee.visit(Rn(u.application_id,u.id,{window:p})),"g j":()=>ee.visit(Pn(u.application_id,u.id,{window:p})),"g q":()=>ee.visit(Tn(u.application_id,u.id,{window:p}))},e[7]=u,e[8]=p,e[9]=g):g=e[9];let w;e[10]!==v||e[11]!==g?(w={"?":x,"g d":nu,"g i":v,...g},e[10]=v,e[11]=g,e[12]=w):w=e[12],eu(w);let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(rd,{}),e[13]=y):y=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=()=>l(!0),e[14]=b):b=e[14];let j;e[15]!==s?(j=a.jsx(hd,{breadcrumbs:s,onOpenCommandPalette:b}),e[15]=s,e[16]=j):j=e[16];let _;e[17]!==t||e[18]!==j?(_=a.jsxs(Ri,{variant:"sidebar",className:"overflow-x-hidden",children:[j,t]}),e[17]=t,e[18]=j,e[19]=_):_=e[19];let k;e[20]!==i?(k=a.jsx(Ud,{open:i,onOpenChange:l}),e[20]=i,e[21]=k):k=e[21];let S;e[22]!==d?(S=a.jsx(Yd,{open:d,onOpenChange:c}),e[22]=d,e[23]=S):S=e[23];let E;return e[24]!==_||e[25]!==k||e[26]!==S?(E=a.jsxs(Pi,{variant:"sidebar",children:[y,_,k,S]}),e[24]=_,e[25]=k,e[26]=S,e[27]=E):E=e[27],E}function nu(){return ee.visit(ct())}function ou(n){return!n}function ru(n){return!n}function Cu(n){const e=M.c(8);let t,o,r;e[0]!==n?({children:o,breadcrumbs:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r):(t=e[1],o=e[2],r=e[3]);let s;return e[4]!==t||e[5]!==o||e[6]!==r?(s=a.jsx(tu,{breadcrumbs:t,...r,children:o}),e[4]=t,e[5]=o,e[6]=r,e[7]=s):s=e[7],s}export{qn as $,Cu as A,Kn as B,Un as C,xu as D,yt as E,Ms as F,Ps as G,gu as H,ol as I,xt as J,hs as K,Ds as L,Ks as M,Ns as N,Jn as O,sa as P,ks as Q,ia as R,wu as S,xa as T,Xt as U,$a as V,_a as W,Xs as X,Us as Y,es as Z,As as _,Wn as a,ps as b,yo as c,nl as d,Yt as e,st as f,at as g,Ic as h,Rc as i,Pc as j,Vd as k,Bd as l,Hd as m,Gd as n,en as o,va as p,ns as q,da as r,Fd as s,si as t,nn as u,ai as v,ii as w,bt as x,Ye as y,Fe as z};
|