dorkos 0.124.0 → 0.125.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.
- package/dist/bin/cli.js +2319 -1483
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-BH8Ndn3e.js → AboutPage-GdrU2Z3k.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-K5Mew9EX.js → ActivityErrorState-D1T74VJE.js} +1 -1
- package/dist/client/assets/{ActivityPage-BB20L5HU.js → ActivityPage-7GXGUwd1.js} +1 -1
- package/dist/client/assets/{ActivityRow-C5O7rnmS.js → ActivityRow-C-8dACWp.js} +1 -1
- package/dist/client/assets/{AdapterIcon-Bmybvrzb.js → AdapterIcon-CRRs6yil.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-CkdV7Hhh.js → AdapterSetupWizard-K6DsejqG.js} +2 -2
- package/dist/client/assets/{AgentOptionRow-BA2cDa7r.js → AgentOptionRow-CF5XZmBx.js} +1 -1
- package/dist/client/assets/{AgentPicker-CsIIPGZJ.js → AgentPicker-BXes2ymU.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-0fOxvaoe.js → AgentRequestCard-BuXVpWfb.js} +4 -4
- package/dist/client/assets/{AppearancePage-XOjkkoli.js → AppearancePage-DoqoCU4j.js} +1 -1
- package/dist/client/assets/ApplyToOverridesDialog-By8jgPX3.js +1 -0
- package/dist/client/assets/AttentionSignalRow-CgGyTDmT.js +1 -0
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-9TVHyRPJ.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BzDxZ-G5.js} +3 -3
- package/dist/client/assets/{BindingDialog-DLoAQauL.js → BindingDialog-BXfjFGvP.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-CYHsXAcY.js → BlintzCanvas-C-dobEns.js} +4 -4
- package/dist/client/assets/{CanvasCsvContent--Gr7Fe_U.js → CanvasCsvContent-ClMFJX7T.js} +4 -4
- package/dist/client/assets/CanvasFileContent-BoDE2jjA.js +2 -0
- package/dist/client/assets/CanvasModel3dContent-fnWc0B7B.js +2 -0
- package/dist/client/assets/ChannelComposer-DIRPjyyf.js +44 -0
- package/dist/client/assets/{ChatAppsOff-D4L1zJVN.js → ChatAppsOff-DlCWmwEz.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-DY_6ju-z.js → CodeMirrorDiff-COsbYyNC.js} +2 -2
- package/dist/client/assets/{CodeMirrorEditor-BUoDBsBv.js → CodeMirrorEditor-n3l14rY7.js} +1 -1
- package/dist/client/assets/{CommitmentList-wDkcVP9c.js → CommitmentList-S2O_hvwR.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-CzSM6b8R.js → CommitmentsPage-COOCQFpL.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-cERD9H2L.js → ComputerResourceView-PA9T4FZP.js} +1 -1
- package/dist/client/assets/{ComputerViewer-rMcfbk2_.js → ComputerViewer-CnYUWQBS.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-f7QeQbQo.js → ConnectionAccessLists-C1ZJtNl-.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-BmjtA6pw.js → ConnectionsPage-BBpWiN4-.js} +2 -2
- package/dist/client/assets/{ConventionPage-CH-ah6nI.js → ConventionPage-sa0Yn2uq.js} +3 -3
- package/dist/client/assets/{ExtensionPageRoute-CJIxa6ST.js → ExtensionPageRoute-BztrmZNp.js} +2 -2
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-BP7EJ2JL.js → FloatingTanStackRouterDevtools-CqogiFob-CJrqr29-.js} +1 -1
- package/dist/client/assets/HandlePage-tZidnrlt.js +1 -0
- package/dist/client/assets/{HeartbeatPage-BUsf-qrU.js → HeartbeatPage-BkyUpdZt.js} +1 -1
- package/dist/client/assets/{KeyEntry-C2kWdN8q.js → KeyEntry-DAMr1NNY.js} +1 -1
- package/dist/client/assets/{LexicalField-CR8ulsI_.js → LexicalField-Cnzrh08A.js} +2 -2
- package/dist/client/assets/{ManagesPage-DTtsIOGi.js → ManagesPage-EAbQtygH.js} +1 -1
- package/dist/client/assets/{Marketplace-iaV5XAzv.js → Marketplace-BfADALGd.js} +2 -2
- package/dist/client/assets/{MarketplaceSourcesView-6tgzUfFj.js → MarketplaceSourcesView-u1WKUk-p.js} +1 -1
- package/dist/client/assets/{McpAppFrame-C7eYYdI9.js → McpAppFrame-Cz-Ttlqr.js} +1 -1
- package/dist/client/assets/{McpSigninBody-BDyGbJ7I.js → McpSigninBody-CkOBUhOz.js} +1 -1
- package/dist/client/assets/{Model3dViewer-BujDNuVS.js → Model3dViewer-CvLaSO7V.js} +1 -1
- package/dist/client/assets/NamePage-BS-oN_Hi.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-D4e-z2Jt.js → NewDirectMessageMenu-Be_4mBPd.js} +1 -1
- package/dist/client/assets/{NotificationsPage-CkDeTaJp.js → NotificationsPage-GCk9gfsW.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-CtbOt3r5.js → OpenMeshSwitch-BBzgYSUc.js} +2 -2
- package/dist/client/assets/{OperatorIdentityForm-Vr4qZnmM.js → OperatorIdentityForm-ZAbJ4FJn.js} +1 -1
- package/dist/client/assets/PermissionHistory-DgmFpdJK.js +1 -0
- package/dist/client/assets/{PermissionsPage-f4QaX8oM.js → PermissionsPage-DHFt_34a.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-BkZruwF-.js → PersonalityPopover-CobRy95S.js} +1 -1
- package/dist/client/assets/PhotoPage-BmFypD13.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-BXC2K0tx.js → PreviewRefusedNotice-Ux5sq2Om.js} +1 -1
- package/dist/client/assets/ProfileFields-kBzeRPfc.js +1 -0
- package/dist/client/assets/{ProfilePanelContainer-DZoL65zQ.js → ProfilePanelContainer-CREt4ZC3.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-D9H7wsuT.js → ProfileRolePicker-hQbo8P6M.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-B5fDmc-g.js → PromptSuggestionChips-CmW1lIso.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-uVYhSqj7.js → ReportsToPopover-Dpa-_NsO.js} +1 -1
- package/dist/client/assets/RoomSurface-BQhgKnIE.js +1 -0
- package/dist/client/assets/{RoomsPage-yflYFulU.js → RoomsPage-BHUDRYzJ.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-DtGrX1Vq.js → RunsOnPopover-bGZ6VJoF.js} +1 -1
- package/dist/client/assets/RuntimeConnectFlow-DN2ElvcH.js +1 -0
- package/dist/client/assets/{RuntimeSetupDialog-Cr4GRi8c.js → RuntimeSetupDialog-CUFie4LV.js} +1 -1
- package/dist/client/assets/SeenDevices-D_FnsL7V.js +19 -0
- package/dist/client/assets/{SessionsPage-BWu-en78.js → SessionsPage-1uOPUCP9.js} +1 -1
- package/dist/client/assets/SettingsDialog-AbwEHDG8.js +12 -0
- package/dist/client/assets/{SkillsPage-BdUb9SZy.js → SkillsPage-BEobBuAr.js} +1 -1
- package/dist/client/assets/TaskDialogWrapper-BAFSmT-z.js +1 -0
- package/dist/client/assets/{TasksEmptyState-Bgcg9vxF.js → TasksEmptyState-BFw2ODM-.js} +2 -2
- package/dist/client/assets/{TasksPage-Ch5W2WQS.js → TasksPage-C0CMgSFx.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-CPwSIMRw.js → TeamComputerEntry-BpjxLA1n.js} +1 -1
- package/dist/client/assets/ToolsPage-dx-rQ2F1.js +2 -0
- package/dist/client/assets/TopologyGraph-LpxkBhGK.js +30 -0
- package/dist/client/assets/{TourHost-BPaSwh9I.js → TourHost--UYZoKlJ.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-BUWZUu5P.js → UnlinkDialog-BN2odbqD.js} +1 -1
- package/dist/client/assets/UnreadDivider-LbVIAoxM.js +1 -0
- package/dist/client/assets/{WidgetErrorCard-cS8yMCxU.js → WidgetErrorCard-CAUx4KUI.js} +7 -7
- package/dist/client/assets/WorkView-DVx4WoVI.js +63 -0
- package/dist/client/assets/_shell-D7Jp6t6_.js +80 -0
- package/dist/client/assets/{_shell._home-DCA5k-jb.js → _shell._home-uuqgFA3M.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-BX4nFLna.js → _shell._home.activity-CiMsy7bF.js} +1 -1
- package/dist/client/assets/_shell._home.index-0Zm5q3-G.js +3 -0
- package/dist/client/assets/{_shell._home.tasks-BgUeEvhK.js → _shell._home.tasks-BClPai4g.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-BPBdnkRt.js → _shell._home.workspaces-DH4BgLT0.js} +1 -1
- package/dist/client/assets/{_shell.channels-CX4kki7G.js → _shell.channels-BGXkXPhY.js} +4 -4
- package/dist/client/assets/{_shell.connections-0vP7g7E4.js → _shell.connections-BwjXkgi1.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-TsuaO4eR.js → _shell.feedback-requests-j7gTBF5b.js} +1 -1
- package/dist/client/assets/_shell.marketplace-6JRXJ9gt.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-DriHXfBM.js +1 -0
- package/dist/client/assets/_shell.session-BXSWGdwi.js +1 -0
- package/dist/client/assets/{_shell.team-Bm6cOBhR.js → _shell.team-BgJu1gDa.js} +5 -5
- package/dist/client/assets/_shell.threads-C1IJJzcf.js +1 -0
- package/dist/client/assets/_shell.x._extensionId-BNgicBXG.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-BNgicBXG.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-CrvoN15x.js → abnfDiagram-WEYOIA3C-BuEHMh0D.js} +1 -1
- package/dist/client/assets/{access-copy-B3yNZ7Gz.js → access-copy-BZNjpw9v.js} +1 -1
- package/dist/client/assets/{arc-CuT6QA_y.js → arc-BbGU9Ctb.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-CPXCZ9H4.js → architectureDiagram-ZHVYKT53-CdRG5sTM.js} +2 -2
- package/dist/client/assets/{banner-DRumuw3F.js → banner-C7kHJJGz.js} +2 -2
- package/dist/client/assets/{blockDiagram-RJAE7QA3-CM0rka9p.js → blockDiagram-RJAE7QA3-CBQ6YXoI.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-D4j2cXRy.js → c4Diagram-XDPPPE54-DavNcKCF.js} +1 -1
- package/dist/client/assets/{card-B3CtfC3R.js → card-D4ek-VvX.js} +1 -1
- package/dist/client/assets/channel-ClNeQ2PQ.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-KGyqhVpO.js → chunk-2E7WHVMD-ClO15ze9.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-Dl0BHoqK.js → chunk-2Q5K7J3B-DsLDzf_i.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-Da7vH6Kv.js → chunk-4EMNKR2T-D20fXIIK.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-DgBUEROO.js → chunk-55XCU76K-no_S5sRX.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-BQ4mn-_I.js → chunk-5VM5RSS4-D5xWEZ2p.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-8LPR3mXf.js → chunk-JWPE2WC7-CnsdZOv0.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-BkIVXi4W.js → chunk-VQ5W62QI-DxYg8tsH.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-DQXJx06h.js → chunk-XXDRQBXY-7CQ-MKdC.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-DzCE7qlD.js → chunk-ZCHMQSOR-Ca7Jh42b.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-C_cZra7c.js → classDiagram-v2-4MYWR3UA-BvZXavcI.js} +1 -1
- package/dist/client/assets/{command-CDKbyppr.js → command-srO4Wv-5.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-DlXHdGwT.js → cose-bilkent-JH36ORCC-1NCiJaHv.js} +1 -1
- package/dist/client/assets/{cpu-B7xLO7jn.js → cpu-CFIu4JtK.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-HhP4ArLc.js → cynefin-EF2NZ3EQ-DgZeohG3.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-D4GgWnZV.js → cynefinDiagram-WF24UDRP-MQB2xbJK.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-SZ_OI2Zi.js → dagre-NK4GIZVX-BFHk_Y44.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-BN-_Ja5m.js → diagram-CBK3MWTC-CloEvZfp.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-t7AK6xnL.js → diagram-I5XIIV2D-9nzUtfKI.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-C1V7szSc.js → diagram-ODIL2UCW-DVdnelgu.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-DPtraQ2g.js → diagram-PFBEJUXE-tTEeiAHa.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-D2XNRB2b.js → diagram-RJA3I4VV-QFehV9_1.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-BieaRy38.js → diagram-TYUNFSNR-CYU5li-4.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-Bwki86UY.js → ebnfDiagram-V4P3TTPT-Cn040Beg.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-WEXSAyHB.js → elk-QONTBCTQ-tBbnwcb3.js} +1 -1
- package/dist/client/assets/{empty-state-J-UJ0BUU.js → empty-state-Bxfi7_ss.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-DIKASnoc.js → erDiagram-KYQIGQAA-DAA0fFlD.js} +1 -1
- package/dist/client/assets/{execution-config-ILQiJAmy.js → execution-config-afKaYukD.js} +1 -1
- package/dist/client/assets/{file-D40js1Zx.js → file-C-ooqbRY.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-Dg3ZpiAe.js → file-exclamation-point-BWWgLsMF.js} +1 -1
- package/dist/client/assets/{file-text-DgdvRfMk.js → file-text-BJt8biPY.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-D4kBWC_1.js → find-latest-widget-fence-DPQimlUD.js} +2 -2
- package/dist/client/assets/{flowDiagram-IUGLLWBU-CoavNw0M.js → flowDiagram-IUGLLWBU-vYI6TodS.js} +1 -1
- package/dist/client/assets/{form-DlPwEgQH.js → form-LJ2Rf9ny.js} +1 -1
- package/dist/client/assets/{format-cron-BrK8RzgT.js → format-cron-DrUISrHj.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-DccKAz7f.js → ganttDiagram-R7GPNTJY-DLYpSX7r.js} +3 -3
- package/dist/client/assets/{git-branch-BpxhecMq.js → git-branch-D5xr7U5P.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DEbo_dgQ.js → gitGraphDiagram-PDYL7XHY-DNIbVOaY.js} +1 -1
- package/dist/client/assets/{graph-DROgI3M3.js → graph-DNjxkUSL.js} +1 -1
- package/dist/client/assets/{heart-c7u4Ezxt.js → heart-DnR_GX4I.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-CrATNdTR.js → highlighted-body-KPVGNVTW-L_Jd2uei.js} +1 -1
- package/dist/client/assets/image-lightbox-DZIhMyF3.js +1 -0
- package/dist/client/assets/{image-off-BExgZjfM.js → image-off-DdvvVxmq.js} +2 -2
- package/dist/client/assets/index-5eNHb7up.js +1 -0
- package/dist/client/assets/{index-BVqSmajJ.js → index-5hCWBj-r.js} +1 -1
- package/dist/client/assets/{index-Be0OJLWK.js → index-9GoQjBFo.js} +1 -1
- package/dist/client/assets/{index-DswGXheF.js → index-ANmu61E0.js} +1 -1
- package/dist/client/assets/{index-dyAahqKe.js → index-B0jt7Nng.js} +1 -1
- package/dist/client/assets/index-B1gC3xYN.js +1 -0
- package/dist/client/assets/{index-DDgOoXP1.js → index-B2wx4J9U.js} +1 -1
- package/dist/client/assets/{index-DksjixUS.js → index-BAIKz_P0.js} +1 -1
- package/dist/client/assets/{index-CT_pFeX_.js → index-BFecX5dC.js} +1 -1
- package/dist/client/assets/{index-CqPRAM_6.js → index-BWQfqbbe.js} +1 -1
- package/dist/client/assets/{index-BlyoyIck.js → index-BYeyKNKj.js} +1 -1
- package/dist/client/assets/{index-CD8aw6Jb.js → index-Ba9q2CoQ.js} +1 -1
- package/dist/client/assets/{index-DeRDq7bD.js → index-Blhsfk7u.js} +1 -1
- package/dist/client/assets/{index-mwf7ZNk2.js → index-Bpwvxz0c.js} +1 -1
- package/dist/client/assets/{index-CYy1cjtq.js → index-BqKjnd_r.js} +1 -1
- package/dist/client/assets/{index-2wezsLA_.js → index-Bri5bZfv.js} +1 -1
- package/dist/client/assets/{index-CZmqtJWZ.js → index-BsHyymmC.js} +1 -1
- package/dist/client/assets/index-BsmR2hi4.js +23 -0
- package/dist/client/assets/index-By-VWzSF.js +43 -0
- package/dist/client/assets/{index-D150FXCC.js → index-By8pKNSM.js} +1 -1
- package/dist/client/assets/{index-B3eeEDWj.js → index-BzKkoaB1.js} +3 -3
- package/dist/client/assets/{index-DaZ1I8s-.js → index-CDGWl8qL.js} +1 -1
- package/dist/client/assets/{index-J3Hh1MnL.js → index-CDo6TA8n.js} +1 -1
- package/dist/client/assets/{index-DINk1YfD.js → index-CLQIvYHP.js} +1 -1
- package/dist/client/assets/{index-D3YeRrne.js → index-CLbs0fcq.js} +1 -1
- package/dist/client/assets/{index-DxiRRZRo.js → index-CQ2atcs_.js} +1 -1
- package/dist/client/assets/index-CSqz4B0v.js +1 -0
- package/dist/client/assets/{index-BizvylBV.js → index-CXWlrRzK.js} +1 -1
- package/dist/client/assets/{index-CbHCZsbE.js → index-D-Q7CW4p.js} +1 -1
- package/dist/client/assets/index-D0ujPZdD.js +1 -0
- package/dist/client/assets/index-D1kQ19Gb.css +1 -0
- package/dist/client/assets/index-DHi8-3w0.js +1 -0
- package/dist/client/assets/index-DKTd8X7n.js +1053 -0
- package/dist/client/assets/{index-D0eJtRlK.js → index-DTuNXPGU.js} +1 -1
- package/dist/client/assets/{index-Ccf1XBTs.js → index-DXWsH2Ep.js} +1 -1
- package/dist/client/assets/index-DjFFFMc-.js +2 -0
- package/dist/client/assets/{index-C7B3eSOP.js → index-DqCxUalt.js} +1 -1
- package/dist/client/assets/{index-C5or4L_3.js → index-Ixk2o7yl.js} +1 -1
- package/dist/client/assets/{index-AzyLwYS_.js → index-ZYbeRA5f.js} +3 -3
- package/dist/client/assets/index-a6ojvFqI.js +1 -0
- package/dist/client/assets/{index-DT7pv2iW.js → index-adYd35CJ.js} +1 -1
- package/dist/client/assets/{index-DhHobJd3.js → index-ld6lMfGU.js} +1 -1
- package/dist/client/assets/{index-DNGNMW3c.js → index-r0stHl-2.js} +1 -1
- package/dist/client/assets/index-uIonuakd.js +1 -0
- package/dist/client/assets/{index-BEkYBuOq.js → index-xfRcAp50.js} +1 -1
- package/dist/client/assets/{index.esm-BFJ9SG0n.js → index.esm-j5KQ_b6S.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-VL8q5pKx.js → infoDiagram-MVDRKAX5-DjvSkTas.js} +1 -1
- package/dist/client/assets/{inline-code-BE9ckzPs.js → inline-code-DlVYFFW7.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-BLKkPYF-.js → ishikawaDiagram-HPEHV2GE-BBivrI5n.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-CSYpRobu.js → journeyDiagram-BOSHW7O7-DKdhbtdx.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-HilAqtZo.js → kanban-definition-FNSA4HC5-CkgAodR5.js} +1 -1
- package/dist/client/assets/{layers-Cm7coqdo.js → layers-CzyhuVSM.js} +1 -1
- package/dist/client/assets/{lightbulb-DqdWS75d.js → lightbulb-DwGE7s99.js} +1 -1
- package/dist/client/assets/{link-2-CDJapTSa.js → link-2-CljREnN9.js} +1 -1
- package/dist/client/assets/{list-runtime-types-CP82p1u4.js → list-runtime-types-D5ZO30FL.js} +1 -1
- package/dist/client/assets/{markdown-content-m_qereFc.js → markdown-content-CN_dGlgE.js} +1 -1
- package/dist/client/assets/{mention-pill-DV5HIG5Q.js → mention-pill-C6OT4gx4.js} +1 -1
- package/dist/client/assets/{mermaid.core-zxW6MBr-.js → mermaid.core-DNuzxE7q.js} +4 -4
- package/dist/client/assets/{message-square-off-YVtpbaJ0.js → message-square-off-DlkAPJdd.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-IAYemvOg.js → mindmap-definition-6OY57UG3-f9ygKKO1.js} +1 -1
- package/dist/client/assets/{more-details-ReA2ZFBn.js → more-details-DRPervoL.js} +1 -1
- package/dist/client/assets/{owner-notice-M4hn_1ep.js → owner-notice-C-Q9ySA7.js} +1 -1
- package/dist/client/assets/{package-CUuTl39E.js → package-BVNiaGrb.js} +1 -1
- package/dist/client/assets/{page-container-BnmNikNZ.js → page-container-D03bhclt.js} +1 -1
- package/dist/client/assets/pane-resize-handle-CZ9rHhNr.js +1 -0
- package/dist/client/assets/{paperclip-C6fYq5Zf.js → paperclip-DQQVX5tJ.js} +1 -1
- package/dist/client/assets/{path-input-DHn9-XaE.js → path-input-CQ16nhYd.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-CojaUwe7.js → pegDiagram-ECIUJNBX-CZ_YkcKh.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-CjP3pw6V.js → pieDiagram-GNMPY74T-DLHSPEH7.js} +1 -1
- package/dist/client/assets/{plug-DHQcxt7N.js → plug-CadJyjTp.js} +1 -1
- package/dist/client/assets/primer-trigger-DH4xfrlM.js +3 -0
- package/dist/client/assets/profile-errors-DSnHlauU.js +1 -0
- package/dist/client/assets/{progress-4FQQfnS6.js → progress-BB97hlmb.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-OP0Z8zcR.js → quadrantDiagram-D57K4MC3-BWcUu48x.js} +1 -1
- package/dist/client/assets/{query-error-state-BkUdxenP.js → query-error-state-B456s96E.js} +1 -1
- package/dist/client/assets/{radio-ta5Bw763.js → radio-DrpN3x3S.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-CT3NCb9b.js → railroadDiagram-Y72NRBL7-C2VRM83h.js} +1 -1
- package/dist/client/assets/registry-DRvQ3ChB.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-DwUuyxao.js → relay-trace-schemas-BYCaGsVJ.js} +2 -2
- package/dist/client/assets/repeat-DPzic7-j.js +11 -0
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-tde4lYGp.js → requirementDiagram-EQYSW5RA-B1bpdcM7.js} +1 -1
- package/dist/client/assets/{room-files-source-CZWhaaOy.js → room-files-source-aN4p_kDV.js} +2 -2
- package/dist/client/assets/{rotate-ccw-clock-RfbbgUa4.js → rotate-ccw-clock-gqBy98sI.js} +1 -1
- package/dist/client/assets/{rotate-cw-B3rB_YSw.js → rotate-cw-mHsqEte-.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-sdCzIA7-.js → sankeyDiagram-SY24JHO5-QCGTTh9k.js} +1 -1
- package/dist/client/assets/{scroll-area-B4WB7Q40.js → scroll-area-DVd6ctli.js} +1 -1
- package/dist/client/assets/{search-x-DCUmWW2_.js → search-x-CzgTzL0z.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-DvzTJcKu.js → sequenceDiagram-BLEHNHQU-kiR1gX_u.js} +1 -1
- package/dist/client/assets/{shield-x-CANziVLc.js → shield-x-Btfd3Xnx.js} +1 -1
- package/dist/client/assets/{signed-in-DctJ2IWe.js → signed-in-gS3tMpTW.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-DuDA7TKE.js → sizeCapture-INFHLROL-Da56aMj0.js} +1 -1
- package/dist/client/assets/{soul-file-Co_8f1qw.js → soul-file-C7zd1yXt.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-BJPX5JTC.js → stateDiagram-v2-A6IESKWZ-BZ3qlQWl.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-CiLSffGv.js → swimlanes-B3ENRKFQ-B-wp91_T.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Drg_8k1s.js +8 -0
- package/dist/client/assets/{table-BSAvOYPp.js → table-BIdFvzBs.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-5oq8sl82.js → timeline-definition-JXYKGLGB-CQojjy-8.js} +1 -1
- package/dist/client/assets/{trust-posture-D-Yjm6ot.js → trust-posture-DszobEjt.js} +1 -1
- package/dist/client/assets/{unplug-Bq_1WdV7.js → unplug-xlfZ61jC.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-CEzu54YH.js → unverified-catalog-notice-DymrAwtm.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-Tn3ZbPAj.js → use-adapter-catalog-CytBTafV.js} +1 -1
- package/dist/client/assets/{use-bindings-Bz9YRgO7.js → use-bindings-BPNK3sUh.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-D9oKJSQN.js → use-composer-prefs-DMQT0qiv.js} +1 -1
- package/dist/client/assets/{use-connector-management-CLYFraXN.js → use-connector-management-PDVdWccW.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-DkS713kG.js → use-deep-link-scroll-CwapSmGj.js} +1 -1
- package/dist/client/assets/{use-delete-binding-CukKpHBK.js → use-delete-binding-CgTwS83G.js} +1 -1
- package/dist/client/assets/{use-dev-links-DQ32IcGe.js → use-dev-links-BoZCIc4h.js} +1 -1
- package/dist/client/assets/use-direct-message-panel-Cs4I6669.js +1 -0
- package/dist/client/assets/{use-external-adapter-catalog-D-FO_XW6.js → use-external-adapter-catalog-PBrsasQ8.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-BNxcyb1j.js → use-full-activity-feed-C2seN-V1.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-pvzUlnxh.js +1 -0
- package/dist/client/assets/use-is-hub-CvEPWuj0.js +1 -0
- package/dist/client/assets/{use-local-browser-xg7WXAVK.js → use-local-browser-CF0uGQ6e.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-BgCSFw8s.js → use-mesh-topology-CnCeK4gS.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-qRbdZfOU.js → use-mounted-ref-BtAb14HI.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-B-4kZR7I.js → use-notification-prefs-B8LHpZTt.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-CCq-mZlY.js → use-panel-tab-placements-DOXj0Pii.js} +1 -1
- package/dist/client/assets/use-pending-read-DBaC7e8N.js +1 -0
- package/dist/client/assets/{use-personality-commit-DwSisUfF.js → use-personality-commit-YV9FVC-a.js} +1 -1
- package/dist/client/assets/{use-promo-activation-Botoso6l.js → use-promo-activation-CjtGhz_3.js} +3 -3
- package/dist/client/assets/{use-promo-dismissals-RJXp-r_J.js → use-promo-dismissals-4rbLgSDG.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-B3390hGg.js → use-pulse-freshness-CGqANpVO.js} +1 -1
- package/dist/client/assets/{use-relay-config-BV0xcLwS.js → use-relay-config-CvU_70WJ.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-Du4hKHIJ.js → use-room-follow-claim-Doq_lWjk.js} +1 -1
- package/dist/client/assets/use-room-sessions-CoEIaBRt.js +1 -0
- package/dist/client/assets/{use-roving-tab-list-g2hO6Ruz.js → use-roving-tab-list-BzsrpjWV.js} +1 -1
- package/dist/client/assets/use-session-canvas-DQ9ND8il.js +27 -0
- package/dist/client/assets/use-status-budget-AnHroEO0.js +16 -0
- package/dist/client/assets/{use-unclaimed-chats-B92om889.js → use-unclaimed-chats-DzOLK27i.js} +1 -1
- package/dist/client/assets/use-update-config-NRkQbxae.js +1 -0
- package/dist/client/assets/{useMutationState-DdOGdpjP.js → useMutationState-BAU_J-u3.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-Di5pJvcw.js → usecaseDiagram-WPOLBNNX-BrHN0c6G.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-K7KAf26T.js → vennDiagram-Q3Y3IDCW-CbeP0Pbp.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-DVTaxQt9.js → wardleyDiagram-IVAIDKWA-mn5ebFhs.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-x-lSJm_B.js → xychartDiagram-4URNHDU4-C8fXRQEv.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/drizzle/20261019185620_dor3037_wifi_holds.sql +8 -0
- package/dist/drizzle/20261020142444_read_cursor_room_thread.sql +17 -0
- package/dist/drizzle/20261021004938_dor3203_settle_turn_holds.sql +7 -0
- package/dist/drizzle/20261021153328_dor3175_person_chat_mode.sql +1 -0
- package/dist/drizzle/meta/20261019185620_snapshot.json +14079 -0
- package/dist/drizzle/meta/20261020142444_snapshot.json +14079 -0
- package/dist/drizzle/meta/20261021004938_snapshot.json +14079 -0
- package/dist/drizzle/meta/20261021153328_snapshot.json +14086 -0
- package/dist/drizzle/meta/_journal.json +28 -0
- package/dist/server/extension-child.cjs +45 -3
- package/dist/server/index.js +61358 -29913
- package/dist/server/index.js.map +2 -2
- package/package.json +9 -9
- package/dist/client/assets/ApplyToOverridesDialog-CoO6V1G4.js +0 -1
- package/dist/client/assets/AttentionSignalRow-CjjZobp7.js +0 -1
- package/dist/client/assets/CanvasFileContent-estXyAbr.js +0 -2
- package/dist/client/assets/CanvasModel3dContent-CkOo930M.js +0 -2
- package/dist/client/assets/HandlePage-Cg8H3mQS.js +0 -1
- package/dist/client/assets/NamePage-Bx8T98OF.js +0 -1
- package/dist/client/assets/PermissionHistory-DzU1rf2B.js +0 -1
- package/dist/client/assets/PhotoPage-CmrOIRjf.js +0 -1
- package/dist/client/assets/ProfileFields-BebX5oiv.js +0 -1
- package/dist/client/assets/RoomSurface-Bg5WV4Ep.js +0 -44
- package/dist/client/assets/RuntimeConnectFlow-DjReuQ-T.js +0 -1
- package/dist/client/assets/SeenDevices-SPWkdzoK.js +0 -19
- package/dist/client/assets/SettingsDialog-_dEXUhHe.js +0 -12
- package/dist/client/assets/TaskDialogWrapper-qYJPEoSR.js +0 -1
- package/dist/client/assets/ToolsPage-Idimrn3o.js +0 -2
- package/dist/client/assets/TopologyGraph-I4_mkMHM.js +0 -30
- package/dist/client/assets/_shell-ClVN2pUj.js +0 -80
- package/dist/client/assets/_shell._home.index-C8t8cw72.js +0 -3
- package/dist/client/assets/_shell.marketplace-CiL6YRbl.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-C0sI8e21.js +0 -1
- package/dist/client/assets/_shell.session-_hhBvFc6.js +0 -63
- package/dist/client/assets/_shell.x._extensionId-BWy5v1YE.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-BWy5v1YE.js +0 -1
- package/dist/client/assets/channel-DjBlTcCV.js +0 -1
- package/dist/client/assets/image-lightbox-DE_fHkw-.js +0 -1
- package/dist/client/assets/index-7jby-RRg.js +0 -1
- package/dist/client/assets/index-BGqvci3k.js +0 -1
- package/dist/client/assets/index-BkoMsjtM.js +0 -2
- package/dist/client/assets/index-BqIHtiaE.js +0 -1
- package/dist/client/assets/index-Cga0qx1T.js +0 -1033
- package/dist/client/assets/index-Ct4At33X.js +0 -1
- package/dist/client/assets/index-DCJQGDZk.js +0 -1
- package/dist/client/assets/index-DITPwUa9.js +0 -38
- package/dist/client/assets/index-DUZrTFYD.css +0 -1
- package/dist/client/assets/index-F-vqXYqa.js +0 -1
- package/dist/client/assets/index-InEBtYxw.js +0 -23
- package/dist/client/assets/primer-trigger-BmV5wjek.js +0 -3
- package/dist/client/assets/profile-errors-BSCuj3rT.js +0 -1
- package/dist/client/assets/registry-Dc102rws.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Dv1-QS9J.js +0 -8
- package/dist/client/assets/terminal-6CdY-T1V.js +0 -6
- package/dist/client/assets/use-is-below-desktop-gTvJDvw4.js +0 -1
- package/dist/client/assets/use-is-hub-B1vPpkYU.js +0 -1
- package/dist/client/assets/use-jump-back-in-Bibj5tVk.js +0 -11
- package/dist/client/assets/use-pending-read-C8L_v4Zw.js +0 -1
- package/dist/client/assets/use-session-canvas-i30oMO_Q.js +0 -25
- package/dist/client/assets/use-session-diagnostics-a4b83F5J.js +0 -16
- package/dist/client/assets/use-update-config-Tbn3SodN.js +0 -1
- /package/dist/client/assets/{_shell-DIs3GY4I.css → WorkView-DIs3GY4I.css} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a1 as l,a2 as u,j as e,
|
|
1
|
+
import{a1 as l,a2 as u,j as e,fg as i,e as a,fh as m,b8 as x,G as h,eb as p}from"./index-DKTd8X7n.js";import{P as f}from"./page-container-D03bhclt.js";import{Q as g}from"./query-error-state-B456s96E.js";import{L as j}from"./lightbulb-DwGE7s99.js";import{P as N}from"./paperclip-DQQVX5tJ.js";import"./empty-state-Bxfi7_ss.js";const b=["feedback","mine"];function y(){const s=l();return u({queryKey:b,queryFn:()=>s.listMyFeedback()})}const k=/^\d+\.\d+/;function w(s){return k.test(s)?`v${s}`:s}const v={bug:m,idea:j,feedback:i},R={bug:"Bug",idea:"Idea",feedback:"Feedback"};function S(s){switch(s.status){case"received":return"Received";case"triaged":return"Triaged";case"in_progress":return"In progress";case"shipped":return s.shippedVersion?`Shipped ${w(s.shippedVersion)}`:"Shipped";case"closed":return"Closed"}}function E(s){switch(s){case"in_progress":return"bg-amber-500/10 text-amber-600 dark:text-amber-400";case"shipped":return"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400";default:return"bg-muted text-muted-foreground"}}function F(s,r=140){const t=s.split(`
|
|
2
2
|
`)[0]??"";return t.length>r?`${t.slice(0,r)}…`:t}function C(s){const r=[s.hasScreenshot&&"screenshot",s.hasTranscript&&"transcript"].filter(t=>!!t);return r.length>0?r.join(", "):null}function L({item:s}){const r=v[s.kind]??i,t=C(s);return e.jsxs("li",{className:"hover:bg-muted/50 flex items-start gap-3 rounded-md px-2 py-2.5 transition-colors",children:[e.jsx(r,{className:"text-muted-foreground mt-0.5 size-4 shrink-0","aria-hidden":"true"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-foreground truncate text-sm",title:s.message,children:F(s.message)}),e.jsxs("p",{className:"text-muted-foreground mt-0.5 flex items-center gap-1 text-xs",children:[e.jsxs("span",{children:[R[s.kind]," · ",x(s.createdAt)]}),t&&e.jsxs("span",{className:"inline-flex items-center gap-0.5",children:[e.jsx("span",{"aria-hidden":"true",children:"·"}),e.jsx(N,{className:"size-3","aria-hidden":"true"}),t]})]})]}),e.jsx("span",{className:h("shrink-0 rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap",E(s.status)),children:S(s)})]})}function n(){return e.jsxs("li",{className:"flex items-start gap-3 rounded-md px-2 py-2.5","aria-hidden":"true",children:[e.jsx(a,{className:"mt-0.5 size-4 shrink-0 rounded-full"}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[e.jsx(a,{className:"h-3.5 w-3/4"}),e.jsx(a,{className:"h-3 w-1/3"})]}),e.jsx(a,{className:"h-4 w-16 shrink-0 rounded-full"})]})}function _(){const{data:s,isLoading:r,isError:t,refetch:o,isFetching:c}=y();return r?e.jsxs("ul",{className:"space-y-0.5","aria-label":"Loading your reports…",children:[e.jsx(n,{}),e.jsx(n,{}),e.jsx(n,{})]}):t?e.jsx(g,{className:"h-full",title:"Couldn’t load your reports",description:"Check that you’re online and try again.",onRetry:()=>void o(),isRetrying:c}):!s||s.length===0?e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-8 text-center",children:[e.jsx(i,{className:"text-muted-foreground/50 size-8","aria-hidden":"true"}),e.jsx("p",{className:"text-sm font-medium",children:"Nothing sent yet"}),e.jsx("p",{className:"text-muted-foreground max-w-xs text-xs",children:"Send a report from the help menu to see it here."})]}):e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("ul",{className:"min-h-0 flex-1 space-y-0.5 overflow-y-auto",children:s.map(d=>e.jsx(L,{item:d},d.id))}),e.jsx("p",{className:"text-muted-foreground border-border mt-2 border-t px-2 pt-2 text-xs",children:"Add your email to a report to hear when it ships."})]})}function B(){return e.jsxs(f,{width:"wide",scroll:!1,children:[e.jsxs("header",{className:"mb-6 shrink-0",children:[e.jsx(p,{children:"Your reports"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"What you sent DorkOS, and where each stands."})]}),e.jsx("div",{className:"min-h-0 flex-1",children:e.jsx(_,{})})]})}const D=B;export{D as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./index-DKTd8X7n.js";import{M as o}from"./Marketplace-BfADALGd.js";import{P as r}from"./page-container-D03bhclt.js";import"./PreviewRefusedNotice-Ux5sq2Om.js";import"./shield-x-Btfd3Xnx.js";import"./card-D4ek-VvX.js";import"./empty-state-Bxfi7_ss.js";import"./markdown-content-CN_dGlgE.js";import"./use-unclaimed-chats-DzOLK27i.js";import"./use-bindings-BPNK3sUh.js";import"./UnlinkDialog-BN2odbqD.js";import"./use-dev-links-BoZCIc4h.js";import"./more-details-DRPervoL.js";import"./file-C-ooqbRY.js";import"./AgentPicker-BXes2ymU.js";import"./command-srO4Wv-5.js";import"./AgentOptionRow-CF5XZmBx.js";import"./useMutationState-BAU_J-u3.js";import"./file-exclamation-point-BWWgLsMF.js";import"./rotate-ccw-clock-gqBy98sI.js";import"./path-input-CQ16nhYd.js";function i(){return t.jsx(r,{width:"wide",children:t.jsx(o,{})})}const R=i;export{R as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-DKTd8X7n.js";import{P as r}from"./page-container-D03bhclt.js";import{M as e}from"./MarketplaceSourcesView-u1WKUk-p.js";import"./use-pending-read-DBaC7e8N.js";function t(){return o.jsx(r,{width:"reading",children:o.jsx(e,{})})}const s=t;export{s as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as o}from"./WorkView-DVx4WoVI.js";import"./index-DKTd8X7n.js";import"./WidgetErrorCard-CAUx4KUI.js";import"./index-BsmR2hi4.js";import"./PromptSuggestionChips-CmW1lIso.js";import"./primer-trigger-DH4xfrlM.js";import"./use-is-below-desktop-pvzUlnxh.js";import"./use-notification-prefs-B8LHpZTt.js";import"./card-D4ek-VvX.js";import"./use-status-budget-AnHroEO0.js";import"./git-branch-D5xr7U5P.js";import"./use-update-config-NRkQbxae.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./RuntimeSetupDialog-CUFie4LV.js";import"./inline-code-DlVYFFW7.js";import"./list-runtime-types-D5ZO30FL.js";import"./RuntimeConnectFlow-DN2ElvcH.js";import"./useMutationState-BAU_J-u3.js";import"./runtime-connect-Dn0T5YWv.js";import"./unverified-catalog-notice-DymrAwtm.js";import"./layers-CzyhuVSM.js";import"./cpu-CFIu4JtK.js";import"./banner-C7kHJJGz.js";import"./UnreadDivider-LbVIAoxM.js";import"./composer-insert-BpyATrmR.js";import"./use-composer-prefs-DMQT0qiv.js";import"./McpAppFrame-Cz-Ttlqr.js";import"./more-details-DRPervoL.js";import"./find-latest-widget-fence-DPQimlUD.js";import"./file-C-ooqbRY.js";import"./use-session-canvas-DQ9ND8il.js";import"./rotate-cw-mHsqEte-.js";import"./query-keys-DeYqUDia.js";import"./index.esm-j5KQ_b6S.js";import"./file-text-BJt8biPY.js";import"./markdown-content-CN_dGlgE.js";import"./shield-x-Btfd3Xnx.js";import"./McpSigninBody-CkOBUhOz.js";import"./image-off-DdvvVxmq.js";import"./format-duration-BCr6uzby.js";import"./use-connector-management-PDVdWccW.js";import"./AgentRequestCard-BuXVpWfb.js";import"./access-copy-BZNjpw9v.js";import"./query-error-state-B456s96E.js";import"./empty-state-Bxfi7_ss.js";import"./use-bindings-BPNK3sUh.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-DAMr1NNY.js";import"./index-CSqz4B0v.js";import"./progress-BB97hlmb.js";import"./table-BIdFvzBs.js";import"./package-BVNiaGrb.js";import"./heart-DnR_GX4I.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-DQQVX5tJ.js";import"./index-B0jt7Nng.js";const mo=o;export{mo as component};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TopologyGraph-
|
|
2
|
-
import{W as yt,r as y,ad as Ue,j as i,G as
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TopologyGraph-LpxkBhGK.js","assets/index-DKTd8X7n.js","assets/index-D1kQ19Gb.css","assets/transform-BqqRT-Iy.js","assets/value-wA6veExk.js","assets/heart-DnR_GX4I.js","assets/AdapterIcon-CRRs6yil.js","assets/relay-trace-schemas-BYCaGsVJ.js","assets/form-LJ2Rf9ny.js","assets/BindingDialog-BXfjFGvP.js","assets/use-bindings-BPNK3sUh.js","assets/use-adapter-catalog-CytBTafV.js","assets/trust-posture-DszobEjt.js","assets/session-strategy-labels-C7Wduch3.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/use-mesh-topology-CnCeK4gS.js","assets/empty-state-Bxfi7_ss.js","assets/query-error-state-B456s96E.js","assets/use-delete-binding-CgTwS83G.js","assets/use-relay-config-CvU_70WJ.js","assets/use-pending-read-DBaC7e8N.js","assets/search-x-CzgTzL0z.js","assets/scroll-area-DVd6ctli.js","assets/OpenMeshSwitch-BBzgYSUc.js","assets/table-BIdFvzBs.js","assets/use-is-hub-CvEPWuj0.js","assets/page-container-D03bhclt.js","assets/profile-errors-DSnHlauU.js","assets/CommitmentList-S2O_hvwR.js","assets/TeamComputerEntry-BpjxLA1n.js","assets/ComputerViewer-CnYUWQBS.js","assets/TopologyGraph-C7eadB24.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{W as yt,r as y,ad as Ue,j as i,G as z,ar as $,cs as jt,B as I,ak as G,k4 as Ke,b8 as ce,_ as A,Y as _t,k5 as Nt,ai as Ft,dV as Ye,aj as Mt,k6 as Pt,a0 as Xe,cj as We,a1 as $t,k7 as Se,k8 as It,z as Qe,k9 as te,e6 as At,a2 as Vt,au as Et,ka as Ze,kb as K,bS as Je,kc as kt,kd as Dt,ke as zt,e as E,e9 as H,kf as _e,kg as Tt,kh as bt,ki as Lt,eK as Ht,f as et,kj as Gt,x as J,ew as Ot,eP as Ne,ho as Bt,T as qt,C as Ut,kk as tt,ba as Kt,eX as Yt,eu as Fe,en as Me,eo as Pe,ep as $e,eq as Ie,er as Ae,kl as ne,bL as Xt,X as Ce,t as nt,bk as Wt,g as st,km as Qt,kn as Zt,dW as Jt,ko as en,ea as tn,by as ge,kp as nn,dI as sn,I as on,kq as rn,d as an,eb as ln,c$ as un,g6 as dn,gR as cn,o as gn,kr as fn,l as Y,ae as mn,af as pn,aZ as hn}from"./index-DKTd8X7n.js";import{u as ot}from"./use-pending-read-DBaC7e8N.js";import{Q as rt}from"./query-error-state-B456s96E.js";import{u as it}from"./use-mesh-topology-CnCeK4gS.js";import{S as xn,u as vn}from"./search-x-CzgTzL0z.js";import{S as Sn}from"./scroll-area-DVd6ctli.js";import{u as Cn,a as wn,O as Ve,b as Rn}from"./OpenMeshSwitch-BBzgYSUc.js";import{T as yn,d as jn,b as X,e as Ee,a as _n,c as ke}from"./table-BIdFvzBs.js";import{u as Nn}from"./use-is-hub-CvEPWuj0.js";import{E as at}from"./empty-state-Bxfi7_ss.js";import{P as Fn}from"./page-container-D03bhclt.js";import{e as Mn,i as Pn}from"./profile-errors-DSnHlauU.js";import{r as $n,C as In}from"./CommitmentList-S2O_hvwR.js";import{T as An}from"./TeamComputerEntry-BpjxLA1n.js";/**
|
|
3
3
|
* @license lucide-react v1.48.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
@@ -13,10 +13,10 @@ import{W as yt,r as y,ad as Ue,j as i,G as k,ar as $,ce as jt,B as I,ak as G,jt
|
|
|
13
13
|
* LICENSE.md file in the root directory of this source tree.
|
|
14
14
|
*
|
|
15
15
|
* @license MIT
|
|
16
|
-
*/function T(e,s){return typeof e=="function"?e(s):e}function P(e,s){return t=>{s.setState(n=>({...n,[e]:T(t,n[e])}))}}function ee(e){return e instanceof Function}function En(e){return Array.isArray(e)&&e.every(s=>typeof s=="number")}function
|
|
16
|
+
*/function T(e,s){return typeof e=="function"?e(s):e}function P(e,s){return t=>{s.setState(n=>({...n,[e]:T(t,n[e])}))}}function ee(e){return e instanceof Function}function En(e){return Array.isArray(e)&&e.every(s=>typeof s=="number")}function kn(e,s){const t=[],n=o=>{o.forEach(r=>{t.push(r);const a=s(r);a!=null&&a.length&&n(a)})};return n(e),t}function S(e,s,t){let n=[],o;return r=>{let a;t.key&&t.debug&&(a=Date.now());const l=e(r);if(!(l.length!==n.length||l.some((f,h)=>n[h]!==f)))return o;n=l;let d;if(t.key&&t.debug&&(d=Date.now()),o=s(...l),t==null||t.onChange==null||t.onChange(o),t.key&&t.debug&&t!=null&&t.debug()){const f=Math.round((Date.now()-a)*100)/100,h=Math.round((Date.now()-d)*100)/100,g=h/16,c=(p,m)=>{for(p=String(p);p.length<m;)p=" "+p;return p};console.info(`%c⏱ ${c(h,5)} /${c(f,5)} ms`,`
|
|
17
17
|
font-size: .6rem;
|
|
18
18
|
font-weight: bold;
|
|
19
|
-
color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,t==null?void 0:t.key)}return o}}function C(e,s,t,n){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[s]},key:!1,onChange:n}}function zn(e,s,t,n){const o=()=>{var a;return(a=r.getValue())!=null?a:e.options.renderFallbackValue},r={id:`${s.id}_${t.id}`,row:s,column:t,getValue:()=>s.getValue(n),renderValue:o,getContext:S(()=>[e,t,s,r],(a,l,u,d)=>({table:a,column:l,row:u,cell:d,getValue:d.getValue,renderValue:d.renderValue}),C(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(r,t,s,e)},{}),r}function kn(e,s,t,n){var o,r;const l={...e._getDefaultColumnDef(),...s},u=l.accessorKey;let d=(o=(r=l.id)!=null?r:u?typeof String.prototype.replaceAll=="function"?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,f;if(l.accessorFn?f=l.accessorFn:u&&(u.includes(".")?f=g=>{let c=g;for(const m of u.split(".")){var p;c=(p=c)==null?void 0:p[m]}return c}:f=g=>g[l.accessorKey]),!d)throw new Error;let h={id:`${String(d)}`,accessorFn:f,parent:n,depth:t,columnDef:l,columns:[],getFlatColumns:S(()=>[!0],()=>{var g;return[h,...(g=h.columns)==null?void 0:g.flatMap(c=>c.getFlatColumns())]},C(e.options,"debugColumns")),getLeafColumns:S(()=>[e._getOrderColumnsFn()],g=>{var c;if((c=h.columns)!=null&&c.length){let p=h.columns.flatMap(m=>m.getLeafColumns());return g(p)}return[h]},C(e.options,"debugColumns"))};for(const g of e._features)g.createColumn==null||g.createColumn(h,e);return h}const M="debugHeaders";function ze(e,s,t){var n;let r={id:(n=t.id)!=null?n:s.id,column:s,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],l=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(l),a.push(u)};return l(r),a},getContext:()=>({table:e,header:r,column:s})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(r,e)}),r}const Tn={createTable:e=>{e.getHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(s,t,n,o)=>{var r,a;const l=(r=n==null?void 0:n.map(h=>t.find(g=>g.id===h)).filter(Boolean))!=null?r:[],u=(a=o==null?void 0:o.map(h=>t.find(g=>g.id===h)).filter(Boolean))!=null?a:[],d=t.filter(h=>!(n!=null&&n.includes(h.id))&&!(o!=null&&o.includes(h.id)));return W(s,[...l,...d,...u],e)},C(e.options,M)),e.getCenterHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(s,t,n,o)=>(t=t.filter(r=>!(n!=null&&n.includes(r.id))&&!(o!=null&&o.includes(r.id))),W(s,t,e,"center")),C(e.options,M)),e.getLeftHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(s,t,n)=>{var o;const r=(o=n==null?void 0:n.map(a=>t.find(l=>l.id===a)).filter(Boolean))!=null?o:[];return W(s,r,e,"left")},C(e.options,M)),e.getRightHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(s,t,n)=>{var o;const r=(o=n==null?void 0:n.map(a=>t.find(l=>l.id===a)).filter(Boolean))!=null?o:[];return W(s,r,e,"right")},C(e.options,M)),e.getFooterGroups=S(()=>[e.getHeaderGroups()],s=>[...s].reverse(),C(e.options,M)),e.getLeftFooterGroups=S(()=>[e.getLeftHeaderGroups()],s=>[...s].reverse(),C(e.options,M)),e.getCenterFooterGroups=S(()=>[e.getCenterHeaderGroups()],s=>[...s].reverse(),C(e.options,M)),e.getRightFooterGroups=S(()=>[e.getRightHeaderGroups()],s=>[...s].reverse(),C(e.options,M)),e.getFlatHeaders=S(()=>[e.getHeaderGroups()],s=>s.map(t=>t.headers).flat(),C(e.options,M)),e.getLeftFlatHeaders=S(()=>[e.getLeftHeaderGroups()],s=>s.map(t=>t.headers).flat(),C(e.options,M)),e.getCenterFlatHeaders=S(()=>[e.getCenterHeaderGroups()],s=>s.map(t=>t.headers).flat(),C(e.options,M)),e.getRightFlatHeaders=S(()=>[e.getRightHeaderGroups()],s=>s.map(t=>t.headers).flat(),C(e.options,M)),e.getCenterLeafHeaders=S(()=>[e.getCenterFlatHeaders()],s=>s.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,M)),e.getLeftLeafHeaders=S(()=>[e.getLeftFlatHeaders()],s=>s.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,M)),e.getRightLeafHeaders=S(()=>[e.getRightFlatHeaders()],s=>s.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,M)),e.getLeafHeaders=S(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(s,t,n)=>{var o,r,a,l,u,d;return[...(o=(r=s[0])==null?void 0:r.headers)!=null?o:[],...(a=(l=t[0])==null?void 0:l.headers)!=null?a:[],...(u=(d=n[0])==null?void 0:d.headers)!=null?u:[]].map(f=>f.getLeafHeaders()).flat()},C(e.options,M))}};function W(e,s,t,n){var o,r;let a=0;const l=function(g,c){c===void 0&&(c=1),a=Math.max(a,c),g.filter(p=>p.getIsVisible()).forEach(p=>{var m;(m=p.columns)!=null&&m.length&&l(p.columns,c+1)},0)};l(e);let u=[];const d=(g,c)=>{const p={depth:c,id:[n,`${c}`].filter(Boolean).join("_"),headers:[]},m=[];g.forEach(x=>{const v=[...m].reverse()[0],w=x.column.depth===p.depth;let R,j=!1;if(w&&x.column.parent?R=x.column.parent:(R=x.column,j=!0),v&&(v==null?void 0:v.column)===R)v.subHeaders.push(x);else{const _=ze(t,R,{id:[n,c,R.id,x==null?void 0:x.id].filter(Boolean).join("_"),isPlaceholder:j,placeholderId:j?`${m.filter(V=>V.column===R).length}`:void 0,depth:c,index:m.length});_.subHeaders.push(x),m.push(_)}p.headers.push(x),x.headerGroup=p}),u.push(p),c>0&&d(m,c-1)},f=s.map((g,c)=>ze(t,g,{depth:a,index:c}));d(f,a-1),u.reverse();const h=g=>g.filter(p=>p.column.getIsVisible()).map(p=>{let m=0,x=0,v=[0];p.subHeaders&&p.subHeaders.length?(v=[],h(p.subHeaders).forEach(R=>{let{colSpan:j,rowSpan:_}=R;m+=j,v.push(_)})):m=1;const w=Math.min(...v);return x=x+w,p.colSpan=m,p.rowSpan=x,{colSpan:m,rowSpan:x}});return h((o=(r=u[0])==null?void 0:r.headers)!=null?o:[]),u}const bn=(e,s,t,n,o,r,a)=>{let l={id:s,index:n,original:t,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(l._valuesCache.hasOwnProperty(u))return l._valuesCache[u];const d=e.getColumn(u);if(d!=null&&d.accessorFn)return l._valuesCache[u]=d.accessorFn(l.original,n),l._valuesCache[u]},getUniqueValues:u=>{if(l._uniqueValuesCache.hasOwnProperty(u))return l._uniqueValuesCache[u];const d=e.getColumn(u);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(l._uniqueValuesCache[u]=d.columnDef.getUniqueValues(l.original,n),l._uniqueValuesCache[u]):(l._uniqueValuesCache[u]=[l.getValue(u)],l._uniqueValuesCache[u])},renderValue:u=>{var d;return(d=l.getValue(u))!=null?d:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Dn(l.subRows,u=>u.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let u=[],d=l;for(;;){const f=d.getParentRow();if(!f)break;u.push(f),d=f}return u.reverse()},getAllCells:S(()=>[e.getAllLeafColumns()],u=>u.map(d=>zn(e,l,d,d.id)),C(e.options,"debugRows")),_getAllCellsByColumnId:S(()=>[l.getAllCells()],u=>u.reduce((d,f)=>(d[f.column.id]=f,d),{}),C(e.options,"debugRows"))};for(let u=0;u<e._features.length;u++){const d=e._features[u];d==null||d.createRow==null||d.createRow(l,e)}return l},Ln={createColumn:(e,s)=>{e._getFacetedRowModel=s.options.getFacetedRowModel&&s.options.getFacetedRowModel(s,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():s.getPreFilteredRowModel(),e._getFacetedUniqueValues=s.options.getFacetedUniqueValues&&s.options.getFacetedUniqueValues(s,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=s.options.getFacetedMinMaxValues&&s.options.getFacetedMinMaxValues(s,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},ut=(e,s,t)=>{var n,o;const r=t==null||(n=t.toString())==null?void 0:n.toLowerCase();return!!(!((o=e.getValue(s))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(r))};ut.autoRemove=e=>D(e);const dt=(e,s,t)=>{var n;return!!(!((n=e.getValue(s))==null||(n=n.toString())==null)&&n.includes(t))};dt.autoRemove=e=>D(e);const ct=(e,s,t)=>{var n;return((n=e.getValue(s))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(t==null?void 0:t.toLowerCase())};ct.autoRemove=e=>D(e);const gt=(e,s,t)=>{var n;return(n=e.getValue(s))==null?void 0:n.includes(t)};gt.autoRemove=e=>D(e);const ft=(e,s,t)=>!t.some(n=>{var o;return!((o=e.getValue(s))!=null&&o.includes(n))});ft.autoRemove=e=>D(e)||!(e!=null&&e.length);const mt=(e,s,t)=>t.some(n=>{var o;return(o=e.getValue(s))==null?void 0:o.includes(n)});mt.autoRemove=e=>D(e)||!(e!=null&&e.length);const pt=(e,s,t)=>e.getValue(s)===t;pt.autoRemove=e=>D(e);const ht=(e,s,t)=>e.getValue(s)==t;ht.autoRemove=e=>D(e);const we=(e,s,t)=>{let[n,o]=t;const r=e.getValue(s);return r>=n&&r<=o};we.resolveFilterValue=e=>{let[s,t]=e,n=typeof s!="number"?parseFloat(s):s,o=typeof t!="number"?parseFloat(t):t,r=s===null||Number.isNaN(n)?-1/0:n,a=t===null||Number.isNaN(o)?1/0:o;if(r>a){const l=r;r=a,a=l}return[r,a]};we.autoRemove=e=>D(e)||D(e[0])&&D(e[1]);const z={includesString:ut,includesStringSensitive:dt,equalsString:ct,arrIncludes:gt,arrIncludesAll:ft,arrIncludesSome:mt,equals:pt,weakEquals:ht,inNumberRange:we};function D(e){return e==null||e===""}const Hn={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:P("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,s)=>{e.getAutoFilterFn=()=>{const t=s.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(e.id);return typeof n=="string"?z.includesString:typeof n=="number"?z.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?z.equals:Array.isArray(n)?z.arrIncludes:z.weakEquals},e.getFilterFn=()=>{var t,n;return ee(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(n=s.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?t:z[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,n,o;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((n=s.options.enableColumnFilters)!=null?n:!0)&&((o=s.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=s.getState().columnFilters)==null||(t=t.find(n=>n.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,n;return(t=(n=s.getState().columnFilters)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?t:-1},e.setFilterValue=t=>{s.setColumnFilters(n=>{const o=e.getFilterFn(),r=n==null?void 0:n.find(f=>f.id===e.id),a=T(t,r?r.value:void 0);if(ke(o,a,e)){var l;return(l=n==null?void 0:n.filter(f=>f.id!==e.id))!=null?l:[]}const u={id:e.id,value:a};if(r){var d;return(d=n==null?void 0:n.map(f=>f.id===e.id?u:f))!=null?d:[]}return n!=null&&n.length?[...n,u]:[u]})}},createRow:(e,s)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=s=>{const t=e.getAllLeafColumns(),n=o=>{var r;return(r=T(s,o))==null?void 0:r.filter(a=>{const l=t.find(u=>u.id===a.id);if(l){const u=l.getFilterFn();if(ke(u,a.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=s=>{var t,n;e.setColumnFilters(s?[]:(t=(n=e.initialState)==null?void 0:n.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function ke(e,s,t){return(e&&e.autoRemove?e.autoRemove(s,t):!1)||typeof s>"u"||typeof s=="string"&&!s}const Gn=(e,s,t)=>t.reduce((n,o)=>{const r=o.getValue(e);return n+(typeof r=="number"?r:0)},0),On=(e,s,t)=>{let n;return t.forEach(o=>{const r=o.getValue(e);r!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}),n},Bn=(e,s,t)=>{let n;return t.forEach(o=>{const r=o.getValue(e);r!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}),n},qn=(e,s,t)=>{let n,o;return t.forEach(r=>{const a=r.getValue(e);a!=null&&(n===void 0?a>=a&&(n=o=a):(n>a&&(n=a),o<a&&(o=a)))}),[n,o]},Un=(e,s)=>{let t=0,n=0;if(s.forEach(o=>{let r=o.getValue(e);r!=null&&(r=+r)>=r&&(++t,n+=r)}),t)return n/t},Kn=(e,s)=>{if(!s.length)return;const t=s.map(r=>r.getValue(e));if(!En(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),o=t.sort((r,a)=>r-a);return t.length%2!==0?o[n]:(o[n-1]+o[n])/2},Yn=(e,s)=>Array.from(new Set(s.map(t=>t.getValue(e))).values()),Xn=(e,s)=>new Set(s.map(t=>t.getValue(e))).size,Wn=(e,s)=>s.length,se={sum:Gn,min:On,max:Bn,extent:qn,mean:Un,median:Kn,unique:Yn,uniqueCount:Xn,count:Wn},Qn={getDefaultColumnDef:()=>({aggregatedCell:e=>{var s,t;return(s=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?s:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:P("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,s)=>{e.toggleGrouping=()=>{s.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(n=>n!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,n;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((n=s.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=s.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=s.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=s.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(e.id);if(typeof n=="number")return se.sum;if(Object.prototype.toString.call(n)==="[object Date]")return se.extent},e.getAggregationFn=()=>{var t,n;if(!e)throw new Error;return ee(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(n=s.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?t:se[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=s=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(s),e.resetGrouping=s=>{var t,n;e.setGrouping(s?[]:(t=(n=e.initialState)==null?void 0:n.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,s)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const n=s.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[t]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,s,t,n)=>{e.getIsGrouped=()=>s.getIsGrouped()&&s.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&s.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=t.subRows)!=null&&o.length)}}};function Jn(e,s,t){if(!(s!=null&&s.length)||!t)return e;const n=e.filter(r=>!s.includes(r.id));return t==="remove"?n:[...s.map(r=>e.find(a=>a.id===r)).filter(Boolean),...n]}const Zn={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:P("columnOrder",e)}),createColumn:(e,s)=>{e.getIndex=S(t=>[U(s,t)],t=>t.findIndex(n=>n.id===e.id),C(s.options,"debugColumns")),e.getIsFirstColumn=t=>{var n;return((n=U(s,t)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=t=>{var n;const o=U(s,t);return((n=o[o.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=s=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(s),e.resetColumnOrder=s=>{var t;e.setColumnOrder(s?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=S(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(s,t,n)=>o=>{let r=[];if(!(s!=null&&s.length))r=o;else{const a=[...s],l=[...o];for(;l.length&&a.length;){const u=a.shift(),d=l.findIndex(f=>f.id===u);d>-1&&r.push(l.splice(d,1)[0])}r=[...r,...l]}return Jn(r,t,n)},C(e.options,"debugTable"))}},oe=()=>({left:[],right:[]}),es={getInitialState:e=>({columnPinning:oe(),...e}),getDefaultOptions:e=>({onColumnPinningChange:P("columnPinning",e)}),createColumn:(e,s)=>{e.pin=t=>{const n=e.getLeafColumns().map(o=>o.id).filter(Boolean);s.setColumnPinning(o=>{var r,a;if(t==="right"){var l,u;return{left:((l=o==null?void 0:o.left)!=null?l:[]).filter(h=>!(n!=null&&n.includes(h))),right:[...((u=o==null?void 0:o.right)!=null?u:[]).filter(h=>!(n!=null&&n.includes(h))),...n]}}if(t==="left"){var d,f;return{left:[...((d=o==null?void 0:o.left)!=null?d:[]).filter(h=>!(n!=null&&n.includes(h))),...n],right:((f=o==null?void 0:o.right)!=null?f:[]).filter(h=>!(n!=null&&n.includes(h)))}}return{left:((r=o==null?void 0:o.left)!=null?r:[]).filter(h=>!(n!=null&&n.includes(h))),right:((a=o==null?void 0:o.right)!=null?a:[]).filter(h=>!(n!=null&&n.includes(h)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var o,r,a;return((o=n.columnDef.enablePinning)!=null?o:!0)&&((r=(a=s.options.enableColumnPinning)!=null?a:s.options.enablePinning)!=null?r:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(l=>l.id),{left:n,right:o}=s.getState().columnPinning,r=t.some(l=>n==null?void 0:n.includes(l)),a=t.some(l=>o==null?void 0:o.includes(l));return r?"left":a?"right":!1},e.getPinnedIndex=()=>{var t,n;const o=e.getIsPinned();return o?(t=(n=s.getState().columnPinning)==null||(n=n[o])==null?void 0:n.indexOf(e.id))!=null?t:-1:0}},createRow:(e,s)=>{e.getCenterVisibleCells=S(()=>[e._getAllVisibleCells(),s.getState().columnPinning.left,s.getState().columnPinning.right],(t,n,o)=>{const r=[...n??[],...o??[]];return t.filter(a=>!r.includes(a.column.id))},C(s.options,"debugRows")),e.getLeftVisibleCells=S(()=>[e._getAllVisibleCells(),s.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(a=>a.column.id===r)).filter(Boolean).map(r=>({...r,position:"left"})),C(s.options,"debugRows")),e.getRightVisibleCells=S(()=>[e._getAllVisibleCells(),s.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(a=>a.column.id===r)).filter(Boolean).map(r=>({...r,position:"right"})),C(s.options,"debugRows"))},createTable:e=>{e.setColumnPinning=s=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(s),e.resetColumnPinning=s=>{var t,n;return e.setColumnPinning(s?oe():(t=(n=e.initialState)==null?void 0:n.columnPinning)!=null?t:oe())},e.getIsSomeColumnsPinned=s=>{var t;const n=e.getState().columnPinning;if(!s){var o,r;return!!((o=n.left)!=null&&o.length||(r=n.right)!=null&&r.length)}return!!((t=n[s])!=null&&t.length)},e.getLeftLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(s,t)=>(t??[]).map(n=>s.find(o=>o.id===n)).filter(Boolean),C(e.options,"debugColumns")),e.getRightLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(s,t)=>(t??[]).map(n=>s.find(o=>o.id===n)).filter(Boolean),C(e.options,"debugColumns")),e.getCenterLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(s,t,n)=>{const o=[...t??[],...n??[]];return s.filter(r=>!o.includes(r.id))},C(e.options,"debugColumns"))}};function ts(e){return e||(typeof document<"u"?document:null)}const Q={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},re=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),ns={getDefaultColumnDef:()=>Q,getInitialState:e=>({columnSizing:{},columnSizingInfo:re(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:P("columnSizing",e),onColumnSizingInfoChange:P("columnSizingInfo",e)}),createColumn:(e,s)=>{e.getSize=()=>{var t,n,o;const r=s.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:Q.minSize,(n=r??e.columnDef.size)!=null?n:Q.size),(o=e.columnDef.maxSize)!=null?o:Q.maxSize)},e.getStart=S(t=>[t,U(s,t),s.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((o,r)=>o+r.getSize(),0),C(s.options,"debugColumns")),e.getAfter=S(t=>[t,U(s,t),s.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((o,r)=>o+r.getSize(),0),C(s.options,"debugColumns")),e.resetSize=()=>{s.setColumnSizing(t=>{let{[e.id]:n,...o}=t;return o})},e.getCanResize=()=>{var t,n;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((n=s.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>s.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,s)=>{e.getSize=()=>{let t=0;const n=o=>{if(o.subHeaders.length)o.subHeaders.forEach(n);else{var r;t+=(r=o.column.getSize())!=null?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const n=s.getColumn(e.column.id),o=n==null?void 0:n.getCanResize();return r=>{if(!n||!o||(r.persist==null||r.persist(),ie(r)&&r.touches&&r.touches.length>1))return;const a=e.getSize(),l=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[n.id,n.getSize()]],u=ie(r)?Math.round(r.touches[0].clientX):r.clientX,d={},f=(v,w)=>{typeof w=="number"&&(s.setColumnSizingInfo(R=>{var j,_;const V=s.options.columnResizeDirection==="rtl"?-1:1,O=(w-((j=R==null?void 0:R.startOffset)!=null?j:0))*V,N=Math.max(O/((_=R==null?void 0:R.startSize)!=null?_:0),-.999999);return R.columnSizingStart.forEach(F=>{let[L,je]=F;d[L]=Math.round(Math.max(je+je*N,0)*100)/100}),{...R,deltaOffset:O,deltaPercentage:N}}),(s.options.columnResizeMode==="onChange"||v==="end")&&s.setColumnSizing(R=>({...R,...d})))},h=v=>f("move",v),g=v=>{f("end",v),s.setColumnSizingInfo(w=>({...w,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=ts(t),p={moveHandler:v=>h(v.clientX),upHandler:v=>{c==null||c.removeEventListener("mousemove",p.moveHandler),c==null||c.removeEventListener("mouseup",p.upHandler),g(v.clientX)}},m={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),h(v.touches[0].clientX),!1),upHandler:v=>{var w;c==null||c.removeEventListener("touchmove",m.moveHandler),c==null||c.removeEventListener("touchend",m.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),g((w=v.touches[0])==null?void 0:w.clientX)}},x=ss()?{passive:!1}:!1;ie(r)?(c==null||c.addEventListener("touchmove",m.moveHandler,x),c==null||c.addEventListener("touchend",m.upHandler,x)):(c==null||c.addEventListener("mousemove",p.moveHandler,x),c==null||c.addEventListener("mouseup",p.upHandler,x)),s.setColumnSizingInfo(v=>({...v,startOffset:u,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=s=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(s),e.setColumnSizingInfo=s=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(s),e.resetColumnSizing=s=>{var t;e.setColumnSizing(s?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=s=>{var t;e.setColumnSizingInfo(s?re():(t=e.initialState.columnSizingInfo)!=null?t:re())},e.getTotalSize=()=>{var s,t;return(s=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,o)=>n+o.getSize(),0))!=null?s:0},e.getLeftTotalSize=()=>{var s,t;return(s=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,o)=>n+o.getSize(),0))!=null?s:0},e.getCenterTotalSize=()=>{var s,t;return(s=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,o)=>n+o.getSize(),0))!=null?s:0},e.getRightTotalSize=()=>{var s,t;return(s=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,o)=>n+o.getSize(),0))!=null?s:0}}};let J=null;function ss(){if(typeof J=="boolean")return J;let e=!1;try{const s={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,s),window.removeEventListener("test",t)}catch{e=!1}return J=e,J}function ie(e){return e.type==="touchstart"}const os={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:P("columnVisibility",e)}),createColumn:(e,s)=>{e.toggleVisibility=t=>{e.getCanHide()&&s.setColumnVisibility(n=>({...n,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,n;const o=e.columns;return(t=o.length?o.some(r=>r.getIsVisible()):(n=s.getState().columnVisibility)==null?void 0:n[e.id])!=null?t:!0},e.getCanHide=()=>{var t,n;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((n=s.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,s)=>{e._getAllVisibleCells=S(()=>[e.getAllCells(),s.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),C(s.options,"debugRows")),e.getVisibleCells=S(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,n,o)=>[...t,...n,...o],C(s.options,"debugRows"))},createTable:e=>{const s=(t,n)=>S(()=>[n(),n().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(r=>r.getIsVisible==null?void 0:r.getIsVisible()),C(e.options,"debugColumns"));e.getVisibleFlatColumns=s("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=s("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=s("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=s("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=s("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,r)=>({...o,[r.id]:t||!(r.getCanHide!=null&&r.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked)}}};function U(e,s){return s?s==="center"?e.getCenterVisibleLeafColumns():s==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const rs={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},is={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:P("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:s=>{var t;const n=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[s.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,s)=>{e.getCanGlobalFilter=()=>{var t,n,o,r;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((n=s.options.enableGlobalFilter)!=null?n:!0)&&((o=s.options.enableFilters)!=null?o:!0)&&((r=s.options.getColumnCanGlobalFilter==null?void 0:s.options.getColumnCanGlobalFilter(e))!=null?r:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>z.includesString,e.getGlobalFilterFn=()=>{var s,t;const{globalFilterFn:n}=e.options;return ee(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(s=(t=e.options.filterFns)==null?void 0:t[n])!=null?s:z[n]},e.setGlobalFilter=s=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(s)},e.resetGlobalFilter=s=>{e.setGlobalFilter(s?void 0:e.initialState.globalFilter)}}},as={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:P("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let s=!1,t=!1;e._autoResetExpanded=()=>{var n,o;if(!s){e._queue(()=>{s=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var o,r;e.setExpanded(n?{}:(o=(r=e.initialState)==null?void 0:r.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(r=>{const a=r.split(".");n=Math.max(n,a.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,s)=>{e.toggleExpanded=t=>{s.setExpanded(n=>{var o;const r=n===!0?!0:!!(n!=null&&n[e.id]);let a={};if(n===!0?Object.keys(s.getRowModel().rowsById).forEach(l=>{a[l]=!0}):a=n,t=(o=t)!=null?o:!r,!r&&t)return{...a,[e.id]:!0};if(r&&!t){const{[e.id]:l,...u}=a;return u}return n})},e.getIsExpanded=()=>{var t;const n=s.getState().expanded;return!!((t=s.options.getIsRowExpanded==null?void 0:s.options.getIsRowExpanded(e))!=null?t:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var t,n,o;return(t=s.options.getRowCanExpand==null?void 0:s.options.getRowCanExpand(e))!=null?t:((n=s.options.enableExpanding)!=null?n:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let t=!0,n=e;for(;t&&n.parentId;)n=s.getRow(n.parentId,!0),t=n.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},fe=0,me=10,ae=()=>({pageIndex:fe,pageSize:me}),ls={getInitialState:e=>({...e,pagination:{...ae(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:P("pagination",e)}),createTable:e=>{let s=!1,t=!1;e._autoResetPageIndex=()=>{var n,o;if(!s){e._queue(()=>{s=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=n=>{const o=r=>T(n,r);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=n=>{var o;e.setPagination(n?ae():(o=e.initialState.pagination)!=null?o:ae())},e.setPageIndex=n=>{e.setPagination(o=>{let r=T(n,o.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,a)),{...o,pageIndex:r}})},e.resetPageIndex=n=>{var o,r;e.setPageIndex(n?fe:(o=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageIndex)!=null?o:fe)},e.resetPageSize=n=>{var o,r;e.setPageSize(n?me:(o=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageSize)!=null?o:me)},e.setPageSize=n=>{e.setPagination(o=>{const r=Math.max(1,T(n,o.pageSize)),a=o.pageSize*o.pageIndex,l=Math.floor(a/r);return{...o,pageIndex:l,pageSize:r}})},e.setPageCount=n=>e.setPagination(o=>{var r;let a=T(n,(r=e.options.pageCount)!=null?r:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=S(()=>[e.getPageCount()],n=>{let o=[];return n&&n>0&&(o=[...new Array(n)].fill(null).map((r,a)=>a)),o},C(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:n<o-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},le=()=>({top:[],bottom:[]}),us={getInitialState:e=>({rowPinning:le(),...e}),getDefaultOptions:e=>({onRowPinningChange:P("rowPinning",e)}),createRow:(e,s)=>{e.pin=(t,n,o)=>{const r=n?e.getLeafRows().map(u=>{let{id:d}=u;return d}):[],a=o?e.getParentRows().map(u=>{let{id:d}=u;return d}):[],l=new Set([...a,e.id,...r]);s.setRowPinning(u=>{var d,f;if(t==="bottom"){var h,g;return{top:((h=u==null?void 0:u.top)!=null?h:[]).filter(m=>!(l!=null&&l.has(m))),bottom:[...((g=u==null?void 0:u.bottom)!=null?g:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)]}}if(t==="top"){var c,p;return{top:[...((c=u==null?void 0:u.top)!=null?c:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)],bottom:((p=u==null?void 0:u.bottom)!=null?p:[]).filter(m=>!(l!=null&&l.has(m)))}}return{top:((d=u==null?void 0:u.top)!=null?d:[]).filter(m=>!(l!=null&&l.has(m))),bottom:((f=u==null?void 0:u.bottom)!=null?f:[]).filter(m=>!(l!=null&&l.has(m)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:n,enablePinning:o}=s.options;return typeof n=="function"?n(e):(t=n??o)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:n,bottom:o}=s.getState().rowPinning,r=t.some(l=>n==null?void 0:n.includes(l)),a=t.some(l=>o==null?void 0:o.includes(l));return r?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var t,n;const o=e.getIsPinned();if(!o)return-1;const r=(t=o==="top"?s.getTopRows():s.getBottomRows())==null?void 0:t.map(a=>{let{id:l}=a;return l});return(n=r==null?void 0:r.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=s=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(s),e.resetRowPinning=s=>{var t,n;return e.setRowPinning(s?le():(t=(n=e.initialState)==null?void 0:n.rowPinning)!=null?t:le())},e.getIsSomeRowsPinned=s=>{var t;const n=e.getState().rowPinning;if(!s){var o,r;return!!((o=n.top)!=null&&o.length||(r=n.bottom)!=null&&r.length)}return!!((t=n[s])!=null&&t.length)},e._getPinnedRows=(s,t,n)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(t??[]).map(a=>{const l=e.getRow(a,!0);return l.getIsAllParentsExpanded()?l:null}):(t??[]).map(a=>s.find(l=>l.id===a))).filter(Boolean).map(a=>({...a,position:n}))},e.getTopRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(s,t)=>e._getPinnedRows(s,t,"top"),C(e.options,"debugRows")),e.getBottomRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(s,t)=>e._getPinnedRows(s,t,"bottom"),C(e.options,"debugRows")),e.getCenterRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(s,t,n)=>{const o=new Set([...t??[],...n??[]]);return s.filter(r=>!o.has(r.id))},C(e.options,"debugRows"))}},ds={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:P("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=s=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(s),e.resetRowSelection=s=>{var t;return e.setRowSelection(s?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=s=>{e.setRowSelection(t=>{s=typeof s<"u"?s:!e.getIsAllRowsSelected();const n={...t},o=e.getPreGroupedRowModel().flatRows;return s?o.forEach(r=>{r.getCanSelect()&&(n[r.id]=!0)}):o.forEach(r=>{delete n[r.id]}),n})},e.toggleAllPageRowsSelected=s=>e.setRowSelection(t=>{const n=typeof s<"u"?s:!e.getIsAllPageRowsSelected(),o={...t};return e.getRowModel().rows.forEach(r=>{pe(o,r.id,n,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=S(()=>[e.getState().rowSelection,e.getCoreRowModel()],(s,t)=>Object.keys(s).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getFilteredSelectedRowModel=S(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(s,t)=>Object.keys(s).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getGroupedSelectedRowModel=S(()=>[e.getState().rowSelection,e.getSortedRowModel()],(s,t)=>Object.keys(s).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const s=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let n=!!(s.length&&Object.keys(t).length);return n&&s.some(o=>o.getCanSelect()&&!t[o.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const s=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:t}=e.getState();let n=!!s.length;return n&&s.some(o=>!t[o.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var s;const t=Object.keys((s=e.getState().rowSelection)!=null?s:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const s=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:s.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>s=>{e.toggleAllRowsSelected(s.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>s=>{e.toggleAllPageRowsSelected(s.target.checked)}},createRow:(e,s)=>{e.toggleSelected=(t,n)=>{const o=e.getIsSelected();s.setRowSelection(r=>{var a;if(t=typeof t<"u"?t:!o,e.getCanSelect()&&o===t)return r;const l={...r};return pe(l,e.id,t,(a=n==null?void 0:n.selectChildren)!=null?a:!0,s),l})},e.getIsSelected=()=>{const{rowSelection:t}=s.getState();return Re(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=s.getState();return he(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=s.getState();return he(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof s.options.enableRowSelection=="function"?s.options.enableRowSelection(e):(t=s.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof s.options.enableSubRowSelection=="function"?s.options.enableSubRowSelection(e):(t=s.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof s.options.enableMultiRowSelection=="function"?s.options.enableMultiRowSelection(e):(t=s.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected((o=n.target)==null?void 0:o.checked)}}}},pe=(e,s,t,n,o)=>{var r;const a=o.getRow(s,!0);t?(a.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),a.getCanSelect()&&(e[s]=!0)):delete e[s],n&&(r=a.subRows)!=null&&r.length&&a.getCanSelectSubRows()&&a.subRows.forEach(l=>pe(e,l.id,t,n,o))};function ue(e,s){const t=e.getState().rowSelection,n=[],o={},r=function(a,l){return a.map(u=>{var d;const f=Re(u,t);if(f&&(n.push(u),o[u.id]=u),(d=u.subRows)!=null&&d.length&&(u={...u,subRows:r(u.subRows)}),f)return u}).filter(Boolean)};return{rows:r(s.rows),flatRows:n,rowsById:o}}function Re(e,s){var t;return(t=s[e.id])!=null?t:!1}function he(e,s,t){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let o=!0,r=!1;return e.subRows.forEach(a=>{if(!(r&&!o)&&(a.getCanSelect()&&(Re(a,s)?r=!0:o=!1),a.subRows&&a.subRows.length)){const l=he(a,s);l==="all"?r=!0:(l==="some"&&(r=!0),o=!1)}}),o?"all":r?"some":!1}const xe=/([0-9]+)/gm,cs=(e,s,t)=>xt(b(e.getValue(t)).toLowerCase(),b(s.getValue(t)).toLowerCase()),gs=(e,s,t)=>xt(b(e.getValue(t)),b(s.getValue(t))),fs=(e,s,t)=>ye(b(e.getValue(t)).toLowerCase(),b(s.getValue(t)).toLowerCase()),ms=(e,s,t)=>ye(b(e.getValue(t)),b(s.getValue(t))),ps=(e,s,t)=>{const n=e.getValue(t),o=s.getValue(t);return n>o?1:n<o?-1:0},hs=(e,s,t)=>ye(e.getValue(t),s.getValue(t));function ye(e,s){return e===s?0:e>s?1:-1}function b(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function xt(e,s){const t=e.split(xe).filter(Boolean),n=s.split(xe).filter(Boolean);for(;t.length&&n.length;){const o=t.shift(),r=n.shift(),a=parseInt(o,10),l=parseInt(r,10),u=[a,l].sort();if(isNaN(u[0])){if(o>r)return 1;if(r>o)return-1;continue}if(isNaN(u[1]))return isNaN(a)?-1:1;if(a>l)return 1;if(l>a)return-1}return t.length-n.length}const B={alphanumeric:cs,alphanumericCaseSensitive:gs,text:fs,textCaseSensitive:ms,datetime:ps,basic:hs},xs={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:P("sorting",e),isMultiSortEvent:s=>s.shiftKey}),createColumn:(e,s)=>{e.getAutoSortingFn=()=>{const t=s.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const o of t){const r=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(r)==="[object Date]")return B.datetime;if(typeof r=="string"&&(n=!0,r.split(xe).length>1))return B.alphanumeric}return n?B.text:B.basic},e.getAutoSortDir=()=>{const t=s.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,n;if(!e)throw new Error;return ee(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(n=s.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?t:B[e.columnDef.sortingFn]},e.toggleSorting=(t,n)=>{const o=e.getNextSortingOrder(),r=typeof t<"u"&&t!==null;s.setSorting(a=>{const l=a==null?void 0:a.find(c=>c.id===e.id),u=a==null?void 0:a.findIndex(c=>c.id===e.id);let d=[],f,h=r?t:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&n?l?f="toggle":f="add":a!=null&&a.length&&u!==a.length-1?f="replace":l?f="toggle":f="replace",f==="toggle"&&(r||o||(f="remove")),f==="add"){var g;d=[...a,{id:e.id,desc:h}],d.splice(0,d.length-((g=s.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else f==="toggle"?d=a.map(c=>c.id===e.id?{...c,desc:h}:c):f==="remove"?d=a.filter(c=>c.id!==e.id):d=[{id:e.id,desc:h}];return d})},e.getFirstSortDir=()=>{var t,n;return((t=(n=e.columnDef.sortDescFirst)!=null?n:s.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var n,o;const r=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==r&&((n=s.options.enableSortingRemoval)==null||n)&&(!(t&&(o=s.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":r},e.getCanSort=()=>{var t,n;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((n=s.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,n;return(t=(n=e.columnDef.enableMultiSort)!=null?n:s.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const n=(t=s.getState().sorting)==null?void 0:t.find(o=>o.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,n;return(t=(n=s.getState().sorting)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?t:-1},e.clearSorting=()=>{s.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return n=>{t&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?s.options.isMultiSortEvent==null?void 0:s.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=s=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(s),e.resetSorting=s=>{var t,n;e.setSorting(s?[]:(t=(n=e.initialState)==null?void 0:n.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},vs=[Tn,os,Zn,es,Ln,Hn,rs,is,xs,Qn,as,ls,us,ds,ns];function Ss(e){var s,t;const n=[...vs,...(s=e._features)!=null?s:[]];let o={_features:n};const r=o._features.reduce((g,c)=>Object.assign(g,c.getDefaultOptions==null?void 0:c.getDefaultOptions(o)),{}),a=g=>o.options.mergeOptions?o.options.mergeOptions(r,g):{...r,...g};let u={...{},...(t=e.initialState)!=null?t:{}};o._features.forEach(g=>{var c;u=(c=g.getInitialState==null?void 0:g.getInitialState(u))!=null?c:u});const d=[];let f=!1;const h={_features:n,options:{...r,...e},initialState:u,_queue:g=>{d.push(g),f||(f=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();f=!1}).catch(c=>setTimeout(()=>{throw c})))},reset:()=>{o.setState(o.initialState)},setOptions:g=>{const c=T(g,o.options);o.options=a(c)},getState:()=>o.options.state,setState:g=>{o.options.onStateChange==null||o.options.onStateChange(g)},_getRowId:(g,c,p)=>{var m;return(m=o.options.getRowId==null?void 0:o.options.getRowId(g,c,p))!=null?m:`${p?[p.id,c].join("."):c}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(g,c)=>{let p=(c?o.getPrePaginationRowModel():o.getRowModel()).rowsById[g];if(!p&&(p=o.getCoreRowModel().rowsById[g],!p))throw new Error;return p},_getDefaultColumnDef:S(()=>[o.options.defaultColumn],g=>{var c;return g=(c=g)!=null?c:{},{header:p=>{const m=p.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:p=>{var m,x;return(m=(x=p.renderValue())==null||x.toString==null?void 0:x.toString())!=null?m:null},...o._features.reduce((p,m)=>Object.assign(p,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...g}},C(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:S(()=>[o._getColumnDefs()],g=>{const c=function(p,m,x){return x===void 0&&(x=0),p.map(v=>{const w=kn(o,v,x,m),R=v;return w.columns=R.columns?c(R.columns,w,x+1):[],w})};return c(g)},C(e,"debugColumns")),getAllFlatColumns:S(()=>[o.getAllColumns()],g=>g.flatMap(c=>c.getFlatColumns()),C(e,"debugColumns")),_getAllFlatColumnsById:S(()=>[o.getAllFlatColumns()],g=>g.reduce((c,p)=>(c[p.id]=p,c),{}),C(e,"debugColumns")),getAllLeafColumns:S(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(g,c)=>{let p=g.flatMap(m=>m.getLeafColumns());return c(p)},C(e,"debugColumns")),getColumn:g=>o._getAllFlatColumnsById()[g]};Object.assign(o,h);for(let g=0;g<o._features.length;g++){const c=o._features[g];c==null||c.createTable==null||c.createTable(o)}return o}function Cs(){return e=>S(()=>[e.options.data],s=>{const t={rows:[],flatRows:[],rowsById:{}},n=function(o,r,a){r===void 0&&(r=0);const l=[];for(let d=0;d<o.length;d++){const f=bn(e,e._getRowId(o[d],d,a),o[d],d,r,void 0,a==null?void 0:a.id);if(t.flatRows.push(f),t.rowsById[f.id]=f,l.push(f),e.options.getSubRows){var u;f.originalSubRows=e.options.getSubRows(o[d],d),(u=f.originalSubRows)!=null&&u.length&&(f.subRows=n(f.originalSubRows,r+1,f))}}return l};return t.rows=n(s),t},C(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
19
|
+
color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,t==null?void 0:t.key)}return o}}function C(e,s,t,n){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[s]},key:!1,onChange:n}}function Dn(e,s,t,n){const o=()=>{var a;return(a=r.getValue())!=null?a:e.options.renderFallbackValue},r={id:`${s.id}_${t.id}`,row:s,column:t,getValue:()=>s.getValue(n),renderValue:o,getContext:S(()=>[e,t,s,r],(a,l,u,d)=>({table:a,column:l,row:u,cell:d,getValue:d.getValue,renderValue:d.renderValue}),C(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(r,t,s,e)},{}),r}function zn(e,s,t,n){var o,r;const l={...e._getDefaultColumnDef(),...s},u=l.accessorKey;let d=(o=(r=l.id)!=null?r:u?typeof String.prototype.replaceAll=="function"?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,f;if(l.accessorFn?f=l.accessorFn:u&&(u.includes(".")?f=g=>{let c=g;for(const m of u.split(".")){var p;c=(p=c)==null?void 0:p[m]}return c}:f=g=>g[l.accessorKey]),!d)throw new Error;let h={id:`${String(d)}`,accessorFn:f,parent:n,depth:t,columnDef:l,columns:[],getFlatColumns:S(()=>[!0],()=>{var g;return[h,...(g=h.columns)==null?void 0:g.flatMap(c=>c.getFlatColumns())]},C(e.options,"debugColumns")),getLeafColumns:S(()=>[e._getOrderColumnsFn()],g=>{var c;if((c=h.columns)!=null&&c.length){let p=h.columns.flatMap(m=>m.getLeafColumns());return g(p)}return[h]},C(e.options,"debugColumns"))};for(const g of e._features)g.createColumn==null||g.createColumn(h,e);return h}const M="debugHeaders";function De(e,s,t){var n;let r={id:(n=t.id)!=null?n:s.id,column:s,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],l=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(l),a.push(u)};return l(r),a},getContext:()=>({table:e,header:r,column:s})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(r,e)}),r}const Tn={createTable:e=>{e.getHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(s,t,n,o)=>{var r,a;const l=(r=n==null?void 0:n.map(h=>t.find(g=>g.id===h)).filter(Boolean))!=null?r:[],u=(a=o==null?void 0:o.map(h=>t.find(g=>g.id===h)).filter(Boolean))!=null?a:[],d=t.filter(h=>!(n!=null&&n.includes(h.id))&&!(o!=null&&o.includes(h.id)));return W(s,[...l,...d,...u],e)},C(e.options,M)),e.getCenterHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(s,t,n,o)=>(t=t.filter(r=>!(n!=null&&n.includes(r.id))&&!(o!=null&&o.includes(r.id))),W(s,t,e,"center")),C(e.options,M)),e.getLeftHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(s,t,n)=>{var o;const r=(o=n==null?void 0:n.map(a=>t.find(l=>l.id===a)).filter(Boolean))!=null?o:[];return W(s,r,e,"left")},C(e.options,M)),e.getRightHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(s,t,n)=>{var o;const r=(o=n==null?void 0:n.map(a=>t.find(l=>l.id===a)).filter(Boolean))!=null?o:[];return W(s,r,e,"right")},C(e.options,M)),e.getFooterGroups=S(()=>[e.getHeaderGroups()],s=>[...s].reverse(),C(e.options,M)),e.getLeftFooterGroups=S(()=>[e.getLeftHeaderGroups()],s=>[...s].reverse(),C(e.options,M)),e.getCenterFooterGroups=S(()=>[e.getCenterHeaderGroups()],s=>[...s].reverse(),C(e.options,M)),e.getRightFooterGroups=S(()=>[e.getRightHeaderGroups()],s=>[...s].reverse(),C(e.options,M)),e.getFlatHeaders=S(()=>[e.getHeaderGroups()],s=>s.map(t=>t.headers).flat(),C(e.options,M)),e.getLeftFlatHeaders=S(()=>[e.getLeftHeaderGroups()],s=>s.map(t=>t.headers).flat(),C(e.options,M)),e.getCenterFlatHeaders=S(()=>[e.getCenterHeaderGroups()],s=>s.map(t=>t.headers).flat(),C(e.options,M)),e.getRightFlatHeaders=S(()=>[e.getRightHeaderGroups()],s=>s.map(t=>t.headers).flat(),C(e.options,M)),e.getCenterLeafHeaders=S(()=>[e.getCenterFlatHeaders()],s=>s.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,M)),e.getLeftLeafHeaders=S(()=>[e.getLeftFlatHeaders()],s=>s.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,M)),e.getRightLeafHeaders=S(()=>[e.getRightFlatHeaders()],s=>s.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,M)),e.getLeafHeaders=S(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(s,t,n)=>{var o,r,a,l,u,d;return[...(o=(r=s[0])==null?void 0:r.headers)!=null?o:[],...(a=(l=t[0])==null?void 0:l.headers)!=null?a:[],...(u=(d=n[0])==null?void 0:d.headers)!=null?u:[]].map(f=>f.getLeafHeaders()).flat()},C(e.options,M))}};function W(e,s,t,n){var o,r;let a=0;const l=function(g,c){c===void 0&&(c=1),a=Math.max(a,c),g.filter(p=>p.getIsVisible()).forEach(p=>{var m;(m=p.columns)!=null&&m.length&&l(p.columns,c+1)},0)};l(e);let u=[];const d=(g,c)=>{const p={depth:c,id:[n,`${c}`].filter(Boolean).join("_"),headers:[]},m=[];g.forEach(x=>{const v=[...m].reverse()[0],w=x.column.depth===p.depth;let R,j=!1;if(w&&x.column.parent?R=x.column.parent:(R=x.column,j=!0),v&&(v==null?void 0:v.column)===R)v.subHeaders.push(x);else{const _=De(t,R,{id:[n,c,R.id,x==null?void 0:x.id].filter(Boolean).join("_"),isPlaceholder:j,placeholderId:j?`${m.filter(V=>V.column===R).length}`:void 0,depth:c,index:m.length});_.subHeaders.push(x),m.push(_)}p.headers.push(x),x.headerGroup=p}),u.push(p),c>0&&d(m,c-1)},f=s.map((g,c)=>De(t,g,{depth:a,index:c}));d(f,a-1),u.reverse();const h=g=>g.filter(p=>p.column.getIsVisible()).map(p=>{let m=0,x=0,v=[0];p.subHeaders&&p.subHeaders.length?(v=[],h(p.subHeaders).forEach(R=>{let{colSpan:j,rowSpan:_}=R;m+=j,v.push(_)})):m=1;const w=Math.min(...v);return x=x+w,p.colSpan=m,p.rowSpan=x,{colSpan:m,rowSpan:x}});return h((o=(r=u[0])==null?void 0:r.headers)!=null?o:[]),u}const bn=(e,s,t,n,o,r,a)=>{let l={id:s,index:n,original:t,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(l._valuesCache.hasOwnProperty(u))return l._valuesCache[u];const d=e.getColumn(u);if(d!=null&&d.accessorFn)return l._valuesCache[u]=d.accessorFn(l.original,n),l._valuesCache[u]},getUniqueValues:u=>{if(l._uniqueValuesCache.hasOwnProperty(u))return l._uniqueValuesCache[u];const d=e.getColumn(u);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(l._uniqueValuesCache[u]=d.columnDef.getUniqueValues(l.original,n),l._uniqueValuesCache[u]):(l._uniqueValuesCache[u]=[l.getValue(u)],l._uniqueValuesCache[u])},renderValue:u=>{var d;return(d=l.getValue(u))!=null?d:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>kn(l.subRows,u=>u.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let u=[],d=l;for(;;){const f=d.getParentRow();if(!f)break;u.push(f),d=f}return u.reverse()},getAllCells:S(()=>[e.getAllLeafColumns()],u=>u.map(d=>Dn(e,l,d,d.id)),C(e.options,"debugRows")),_getAllCellsByColumnId:S(()=>[l.getAllCells()],u=>u.reduce((d,f)=>(d[f.column.id]=f,d),{}),C(e.options,"debugRows"))};for(let u=0;u<e._features.length;u++){const d=e._features[u];d==null||d.createRow==null||d.createRow(l,e)}return l},Ln={createColumn:(e,s)=>{e._getFacetedRowModel=s.options.getFacetedRowModel&&s.options.getFacetedRowModel(s,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():s.getPreFilteredRowModel(),e._getFacetedUniqueValues=s.options.getFacetedUniqueValues&&s.options.getFacetedUniqueValues(s,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=s.options.getFacetedMinMaxValues&&s.options.getFacetedMinMaxValues(s,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},ut=(e,s,t)=>{var n,o;const r=t==null||(n=t.toString())==null?void 0:n.toLowerCase();return!!(!((o=e.getValue(s))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(r))};ut.autoRemove=e=>k(e);const dt=(e,s,t)=>{var n;return!!(!((n=e.getValue(s))==null||(n=n.toString())==null)&&n.includes(t))};dt.autoRemove=e=>k(e);const ct=(e,s,t)=>{var n;return((n=e.getValue(s))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(t==null?void 0:t.toLowerCase())};ct.autoRemove=e=>k(e);const gt=(e,s,t)=>{var n;return(n=e.getValue(s))==null?void 0:n.includes(t)};gt.autoRemove=e=>k(e);const ft=(e,s,t)=>!t.some(n=>{var o;return!((o=e.getValue(s))!=null&&o.includes(n))});ft.autoRemove=e=>k(e)||!(e!=null&&e.length);const mt=(e,s,t)=>t.some(n=>{var o;return(o=e.getValue(s))==null?void 0:o.includes(n)});mt.autoRemove=e=>k(e)||!(e!=null&&e.length);const pt=(e,s,t)=>e.getValue(s)===t;pt.autoRemove=e=>k(e);const ht=(e,s,t)=>e.getValue(s)==t;ht.autoRemove=e=>k(e);const we=(e,s,t)=>{let[n,o]=t;const r=e.getValue(s);return r>=n&&r<=o};we.resolveFilterValue=e=>{let[s,t]=e,n=typeof s!="number"?parseFloat(s):s,o=typeof t!="number"?parseFloat(t):t,r=s===null||Number.isNaN(n)?-1/0:n,a=t===null||Number.isNaN(o)?1/0:o;if(r>a){const l=r;r=a,a=l}return[r,a]};we.autoRemove=e=>k(e)||k(e[0])&&k(e[1]);const D={includesString:ut,includesStringSensitive:dt,equalsString:ct,arrIncludes:gt,arrIncludesAll:ft,arrIncludesSome:mt,equals:pt,weakEquals:ht,inNumberRange:we};function k(e){return e==null||e===""}const Hn={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:P("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,s)=>{e.getAutoFilterFn=()=>{const t=s.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(e.id);return typeof n=="string"?D.includesString:typeof n=="number"?D.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?D.equals:Array.isArray(n)?D.arrIncludes:D.weakEquals},e.getFilterFn=()=>{var t,n;return ee(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(n=s.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?t:D[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,n,o;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((n=s.options.enableColumnFilters)!=null?n:!0)&&((o=s.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=s.getState().columnFilters)==null||(t=t.find(n=>n.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,n;return(t=(n=s.getState().columnFilters)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?t:-1},e.setFilterValue=t=>{s.setColumnFilters(n=>{const o=e.getFilterFn(),r=n==null?void 0:n.find(f=>f.id===e.id),a=T(t,r?r.value:void 0);if(ze(o,a,e)){var l;return(l=n==null?void 0:n.filter(f=>f.id!==e.id))!=null?l:[]}const u={id:e.id,value:a};if(r){var d;return(d=n==null?void 0:n.map(f=>f.id===e.id?u:f))!=null?d:[]}return n!=null&&n.length?[...n,u]:[u]})}},createRow:(e,s)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=s=>{const t=e.getAllLeafColumns(),n=o=>{var r;return(r=T(s,o))==null?void 0:r.filter(a=>{const l=t.find(u=>u.id===a.id);if(l){const u=l.getFilterFn();if(ze(u,a.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=s=>{var t,n;e.setColumnFilters(s?[]:(t=(n=e.initialState)==null?void 0:n.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function ze(e,s,t){return(e&&e.autoRemove?e.autoRemove(s,t):!1)||typeof s>"u"||typeof s=="string"&&!s}const Gn=(e,s,t)=>t.reduce((n,o)=>{const r=o.getValue(e);return n+(typeof r=="number"?r:0)},0),On=(e,s,t)=>{let n;return t.forEach(o=>{const r=o.getValue(e);r!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}),n},Bn=(e,s,t)=>{let n;return t.forEach(o=>{const r=o.getValue(e);r!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}),n},qn=(e,s,t)=>{let n,o;return t.forEach(r=>{const a=r.getValue(e);a!=null&&(n===void 0?a>=a&&(n=o=a):(n>a&&(n=a),o<a&&(o=a)))}),[n,o]},Un=(e,s)=>{let t=0,n=0;if(s.forEach(o=>{let r=o.getValue(e);r!=null&&(r=+r)>=r&&(++t,n+=r)}),t)return n/t},Kn=(e,s)=>{if(!s.length)return;const t=s.map(r=>r.getValue(e));if(!En(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),o=t.sort((r,a)=>r-a);return t.length%2!==0?o[n]:(o[n-1]+o[n])/2},Yn=(e,s)=>Array.from(new Set(s.map(t=>t.getValue(e))).values()),Xn=(e,s)=>new Set(s.map(t=>t.getValue(e))).size,Wn=(e,s)=>s.length,se={sum:Gn,min:On,max:Bn,extent:qn,mean:Un,median:Kn,unique:Yn,uniqueCount:Xn,count:Wn},Qn={getDefaultColumnDef:()=>({aggregatedCell:e=>{var s,t;return(s=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?s:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:P("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,s)=>{e.toggleGrouping=()=>{s.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(n=>n!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,n;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((n=s.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=s.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=s.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=s.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(e.id);if(typeof n=="number")return se.sum;if(Object.prototype.toString.call(n)==="[object Date]")return se.extent},e.getAggregationFn=()=>{var t,n;if(!e)throw new Error;return ee(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(n=s.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?t:se[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=s=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(s),e.resetGrouping=s=>{var t,n;e.setGrouping(s?[]:(t=(n=e.initialState)==null?void 0:n.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,s)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const n=s.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[t]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,s,t,n)=>{e.getIsGrouped=()=>s.getIsGrouped()&&s.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&s.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=t.subRows)!=null&&o.length)}}};function Zn(e,s,t){if(!(s!=null&&s.length)||!t)return e;const n=e.filter(r=>!s.includes(r.id));return t==="remove"?n:[...s.map(r=>e.find(a=>a.id===r)).filter(Boolean),...n]}const Jn={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:P("columnOrder",e)}),createColumn:(e,s)=>{e.getIndex=S(t=>[U(s,t)],t=>t.findIndex(n=>n.id===e.id),C(s.options,"debugColumns")),e.getIsFirstColumn=t=>{var n;return((n=U(s,t)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=t=>{var n;const o=U(s,t);return((n=o[o.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=s=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(s),e.resetColumnOrder=s=>{var t;e.setColumnOrder(s?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=S(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(s,t,n)=>o=>{let r=[];if(!(s!=null&&s.length))r=o;else{const a=[...s],l=[...o];for(;l.length&&a.length;){const u=a.shift(),d=l.findIndex(f=>f.id===u);d>-1&&r.push(l.splice(d,1)[0])}r=[...r,...l]}return Zn(r,t,n)},C(e.options,"debugTable"))}},oe=()=>({left:[],right:[]}),es={getInitialState:e=>({columnPinning:oe(),...e}),getDefaultOptions:e=>({onColumnPinningChange:P("columnPinning",e)}),createColumn:(e,s)=>{e.pin=t=>{const n=e.getLeafColumns().map(o=>o.id).filter(Boolean);s.setColumnPinning(o=>{var r,a;if(t==="right"){var l,u;return{left:((l=o==null?void 0:o.left)!=null?l:[]).filter(h=>!(n!=null&&n.includes(h))),right:[...((u=o==null?void 0:o.right)!=null?u:[]).filter(h=>!(n!=null&&n.includes(h))),...n]}}if(t==="left"){var d,f;return{left:[...((d=o==null?void 0:o.left)!=null?d:[]).filter(h=>!(n!=null&&n.includes(h))),...n],right:((f=o==null?void 0:o.right)!=null?f:[]).filter(h=>!(n!=null&&n.includes(h)))}}return{left:((r=o==null?void 0:o.left)!=null?r:[]).filter(h=>!(n!=null&&n.includes(h))),right:((a=o==null?void 0:o.right)!=null?a:[]).filter(h=>!(n!=null&&n.includes(h)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var o,r,a;return((o=n.columnDef.enablePinning)!=null?o:!0)&&((r=(a=s.options.enableColumnPinning)!=null?a:s.options.enablePinning)!=null?r:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(l=>l.id),{left:n,right:o}=s.getState().columnPinning,r=t.some(l=>n==null?void 0:n.includes(l)),a=t.some(l=>o==null?void 0:o.includes(l));return r?"left":a?"right":!1},e.getPinnedIndex=()=>{var t,n;const o=e.getIsPinned();return o?(t=(n=s.getState().columnPinning)==null||(n=n[o])==null?void 0:n.indexOf(e.id))!=null?t:-1:0}},createRow:(e,s)=>{e.getCenterVisibleCells=S(()=>[e._getAllVisibleCells(),s.getState().columnPinning.left,s.getState().columnPinning.right],(t,n,o)=>{const r=[...n??[],...o??[]];return t.filter(a=>!r.includes(a.column.id))},C(s.options,"debugRows")),e.getLeftVisibleCells=S(()=>[e._getAllVisibleCells(),s.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(a=>a.column.id===r)).filter(Boolean).map(r=>({...r,position:"left"})),C(s.options,"debugRows")),e.getRightVisibleCells=S(()=>[e._getAllVisibleCells(),s.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(a=>a.column.id===r)).filter(Boolean).map(r=>({...r,position:"right"})),C(s.options,"debugRows"))},createTable:e=>{e.setColumnPinning=s=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(s),e.resetColumnPinning=s=>{var t,n;return e.setColumnPinning(s?oe():(t=(n=e.initialState)==null?void 0:n.columnPinning)!=null?t:oe())},e.getIsSomeColumnsPinned=s=>{var t;const n=e.getState().columnPinning;if(!s){var o,r;return!!((o=n.left)!=null&&o.length||(r=n.right)!=null&&r.length)}return!!((t=n[s])!=null&&t.length)},e.getLeftLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(s,t)=>(t??[]).map(n=>s.find(o=>o.id===n)).filter(Boolean),C(e.options,"debugColumns")),e.getRightLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(s,t)=>(t??[]).map(n=>s.find(o=>o.id===n)).filter(Boolean),C(e.options,"debugColumns")),e.getCenterLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(s,t,n)=>{const o=[...t??[],...n??[]];return s.filter(r=>!o.includes(r.id))},C(e.options,"debugColumns"))}};function ts(e){return e||(typeof document<"u"?document:null)}const Q={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},re=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),ns={getDefaultColumnDef:()=>Q,getInitialState:e=>({columnSizing:{},columnSizingInfo:re(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:P("columnSizing",e),onColumnSizingInfoChange:P("columnSizingInfo",e)}),createColumn:(e,s)=>{e.getSize=()=>{var t,n,o;const r=s.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:Q.minSize,(n=r??e.columnDef.size)!=null?n:Q.size),(o=e.columnDef.maxSize)!=null?o:Q.maxSize)},e.getStart=S(t=>[t,U(s,t),s.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((o,r)=>o+r.getSize(),0),C(s.options,"debugColumns")),e.getAfter=S(t=>[t,U(s,t),s.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((o,r)=>o+r.getSize(),0),C(s.options,"debugColumns")),e.resetSize=()=>{s.setColumnSizing(t=>{let{[e.id]:n,...o}=t;return o})},e.getCanResize=()=>{var t,n;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((n=s.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>s.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,s)=>{e.getSize=()=>{let t=0;const n=o=>{if(o.subHeaders.length)o.subHeaders.forEach(n);else{var r;t+=(r=o.column.getSize())!=null?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const n=s.getColumn(e.column.id),o=n==null?void 0:n.getCanResize();return r=>{if(!n||!o||(r.persist==null||r.persist(),ie(r)&&r.touches&&r.touches.length>1))return;const a=e.getSize(),l=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[n.id,n.getSize()]],u=ie(r)?Math.round(r.touches[0].clientX):r.clientX,d={},f=(v,w)=>{typeof w=="number"&&(s.setColumnSizingInfo(R=>{var j,_;const V=s.options.columnResizeDirection==="rtl"?-1:1,O=(w-((j=R==null?void 0:R.startOffset)!=null?j:0))*V,N=Math.max(O/((_=R==null?void 0:R.startSize)!=null?_:0),-.999999);return R.columnSizingStart.forEach(F=>{let[L,je]=F;d[L]=Math.round(Math.max(je+je*N,0)*100)/100}),{...R,deltaOffset:O,deltaPercentage:N}}),(s.options.columnResizeMode==="onChange"||v==="end")&&s.setColumnSizing(R=>({...R,...d})))},h=v=>f("move",v),g=v=>{f("end",v),s.setColumnSizingInfo(w=>({...w,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=ts(t),p={moveHandler:v=>h(v.clientX),upHandler:v=>{c==null||c.removeEventListener("mousemove",p.moveHandler),c==null||c.removeEventListener("mouseup",p.upHandler),g(v.clientX)}},m={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),h(v.touches[0].clientX),!1),upHandler:v=>{var w;c==null||c.removeEventListener("touchmove",m.moveHandler),c==null||c.removeEventListener("touchend",m.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),g((w=v.touches[0])==null?void 0:w.clientX)}},x=ss()?{passive:!1}:!1;ie(r)?(c==null||c.addEventListener("touchmove",m.moveHandler,x),c==null||c.addEventListener("touchend",m.upHandler,x)):(c==null||c.addEventListener("mousemove",p.moveHandler,x),c==null||c.addEventListener("mouseup",p.upHandler,x)),s.setColumnSizingInfo(v=>({...v,startOffset:u,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=s=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(s),e.setColumnSizingInfo=s=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(s),e.resetColumnSizing=s=>{var t;e.setColumnSizing(s?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=s=>{var t;e.setColumnSizingInfo(s?re():(t=e.initialState.columnSizingInfo)!=null?t:re())},e.getTotalSize=()=>{var s,t;return(s=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,o)=>n+o.getSize(),0))!=null?s:0},e.getLeftTotalSize=()=>{var s,t;return(s=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,o)=>n+o.getSize(),0))!=null?s:0},e.getCenterTotalSize=()=>{var s,t;return(s=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,o)=>n+o.getSize(),0))!=null?s:0},e.getRightTotalSize=()=>{var s,t;return(s=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,o)=>n+o.getSize(),0))!=null?s:0}}};let Z=null;function ss(){if(typeof Z=="boolean")return Z;let e=!1;try{const s={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,s),window.removeEventListener("test",t)}catch{e=!1}return Z=e,Z}function ie(e){return e.type==="touchstart"}const os={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:P("columnVisibility",e)}),createColumn:(e,s)=>{e.toggleVisibility=t=>{e.getCanHide()&&s.setColumnVisibility(n=>({...n,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,n;const o=e.columns;return(t=o.length?o.some(r=>r.getIsVisible()):(n=s.getState().columnVisibility)==null?void 0:n[e.id])!=null?t:!0},e.getCanHide=()=>{var t,n;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((n=s.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,s)=>{e._getAllVisibleCells=S(()=>[e.getAllCells(),s.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),C(s.options,"debugRows")),e.getVisibleCells=S(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,n,o)=>[...t,...n,...o],C(s.options,"debugRows"))},createTable:e=>{const s=(t,n)=>S(()=>[n(),n().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(r=>r.getIsVisible==null?void 0:r.getIsVisible()),C(e.options,"debugColumns"));e.getVisibleFlatColumns=s("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=s("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=s("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=s("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=s("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,r)=>({...o,[r.id]:t||!(r.getCanHide!=null&&r.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked)}}};function U(e,s){return s?s==="center"?e.getCenterVisibleLeafColumns():s==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const rs={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},is={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:P("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:s=>{var t;const n=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[s.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,s)=>{e.getCanGlobalFilter=()=>{var t,n,o,r;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((n=s.options.enableGlobalFilter)!=null?n:!0)&&((o=s.options.enableFilters)!=null?o:!0)&&((r=s.options.getColumnCanGlobalFilter==null?void 0:s.options.getColumnCanGlobalFilter(e))!=null?r:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>D.includesString,e.getGlobalFilterFn=()=>{var s,t;const{globalFilterFn:n}=e.options;return ee(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(s=(t=e.options.filterFns)==null?void 0:t[n])!=null?s:D[n]},e.setGlobalFilter=s=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(s)},e.resetGlobalFilter=s=>{e.setGlobalFilter(s?void 0:e.initialState.globalFilter)}}},as={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:P("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let s=!1,t=!1;e._autoResetExpanded=()=>{var n,o;if(!s){e._queue(()=>{s=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var o,r;e.setExpanded(n?{}:(o=(r=e.initialState)==null?void 0:r.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(r=>{const a=r.split(".");n=Math.max(n,a.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,s)=>{e.toggleExpanded=t=>{s.setExpanded(n=>{var o;const r=n===!0?!0:!!(n!=null&&n[e.id]);let a={};if(n===!0?Object.keys(s.getRowModel().rowsById).forEach(l=>{a[l]=!0}):a=n,t=(o=t)!=null?o:!r,!r&&t)return{...a,[e.id]:!0};if(r&&!t){const{[e.id]:l,...u}=a;return u}return n})},e.getIsExpanded=()=>{var t;const n=s.getState().expanded;return!!((t=s.options.getIsRowExpanded==null?void 0:s.options.getIsRowExpanded(e))!=null?t:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var t,n,o;return(t=s.options.getRowCanExpand==null?void 0:s.options.getRowCanExpand(e))!=null?t:((n=s.options.enableExpanding)!=null?n:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let t=!0,n=e;for(;t&&n.parentId;)n=s.getRow(n.parentId,!0),t=n.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},fe=0,me=10,ae=()=>({pageIndex:fe,pageSize:me}),ls={getInitialState:e=>({...e,pagination:{...ae(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:P("pagination",e)}),createTable:e=>{let s=!1,t=!1;e._autoResetPageIndex=()=>{var n,o;if(!s){e._queue(()=>{s=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=n=>{const o=r=>T(n,r);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=n=>{var o;e.setPagination(n?ae():(o=e.initialState.pagination)!=null?o:ae())},e.setPageIndex=n=>{e.setPagination(o=>{let r=T(n,o.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,a)),{...o,pageIndex:r}})},e.resetPageIndex=n=>{var o,r;e.setPageIndex(n?fe:(o=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageIndex)!=null?o:fe)},e.resetPageSize=n=>{var o,r;e.setPageSize(n?me:(o=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageSize)!=null?o:me)},e.setPageSize=n=>{e.setPagination(o=>{const r=Math.max(1,T(n,o.pageSize)),a=o.pageSize*o.pageIndex,l=Math.floor(a/r);return{...o,pageIndex:l,pageSize:r}})},e.setPageCount=n=>e.setPagination(o=>{var r;let a=T(n,(r=e.options.pageCount)!=null?r:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=S(()=>[e.getPageCount()],n=>{let o=[];return n&&n>0&&(o=[...new Array(n)].fill(null).map((r,a)=>a)),o},C(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:n<o-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},le=()=>({top:[],bottom:[]}),us={getInitialState:e=>({rowPinning:le(),...e}),getDefaultOptions:e=>({onRowPinningChange:P("rowPinning",e)}),createRow:(e,s)=>{e.pin=(t,n,o)=>{const r=n?e.getLeafRows().map(u=>{let{id:d}=u;return d}):[],a=o?e.getParentRows().map(u=>{let{id:d}=u;return d}):[],l=new Set([...a,e.id,...r]);s.setRowPinning(u=>{var d,f;if(t==="bottom"){var h,g;return{top:((h=u==null?void 0:u.top)!=null?h:[]).filter(m=>!(l!=null&&l.has(m))),bottom:[...((g=u==null?void 0:u.bottom)!=null?g:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)]}}if(t==="top"){var c,p;return{top:[...((c=u==null?void 0:u.top)!=null?c:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)],bottom:((p=u==null?void 0:u.bottom)!=null?p:[]).filter(m=>!(l!=null&&l.has(m)))}}return{top:((d=u==null?void 0:u.top)!=null?d:[]).filter(m=>!(l!=null&&l.has(m))),bottom:((f=u==null?void 0:u.bottom)!=null?f:[]).filter(m=>!(l!=null&&l.has(m)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:n,enablePinning:o}=s.options;return typeof n=="function"?n(e):(t=n??o)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:n,bottom:o}=s.getState().rowPinning,r=t.some(l=>n==null?void 0:n.includes(l)),a=t.some(l=>o==null?void 0:o.includes(l));return r?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var t,n;const o=e.getIsPinned();if(!o)return-1;const r=(t=o==="top"?s.getTopRows():s.getBottomRows())==null?void 0:t.map(a=>{let{id:l}=a;return l});return(n=r==null?void 0:r.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=s=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(s),e.resetRowPinning=s=>{var t,n;return e.setRowPinning(s?le():(t=(n=e.initialState)==null?void 0:n.rowPinning)!=null?t:le())},e.getIsSomeRowsPinned=s=>{var t;const n=e.getState().rowPinning;if(!s){var o,r;return!!((o=n.top)!=null&&o.length||(r=n.bottom)!=null&&r.length)}return!!((t=n[s])!=null&&t.length)},e._getPinnedRows=(s,t,n)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(t??[]).map(a=>{const l=e.getRow(a,!0);return l.getIsAllParentsExpanded()?l:null}):(t??[]).map(a=>s.find(l=>l.id===a))).filter(Boolean).map(a=>({...a,position:n}))},e.getTopRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(s,t)=>e._getPinnedRows(s,t,"top"),C(e.options,"debugRows")),e.getBottomRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(s,t)=>e._getPinnedRows(s,t,"bottom"),C(e.options,"debugRows")),e.getCenterRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(s,t,n)=>{const o=new Set([...t??[],...n??[]]);return s.filter(r=>!o.has(r.id))},C(e.options,"debugRows"))}},ds={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:P("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=s=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(s),e.resetRowSelection=s=>{var t;return e.setRowSelection(s?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=s=>{e.setRowSelection(t=>{s=typeof s<"u"?s:!e.getIsAllRowsSelected();const n={...t},o=e.getPreGroupedRowModel().flatRows;return s?o.forEach(r=>{r.getCanSelect()&&(n[r.id]=!0)}):o.forEach(r=>{delete n[r.id]}),n})},e.toggleAllPageRowsSelected=s=>e.setRowSelection(t=>{const n=typeof s<"u"?s:!e.getIsAllPageRowsSelected(),o={...t};return e.getRowModel().rows.forEach(r=>{pe(o,r.id,n,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=S(()=>[e.getState().rowSelection,e.getCoreRowModel()],(s,t)=>Object.keys(s).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getFilteredSelectedRowModel=S(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(s,t)=>Object.keys(s).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getGroupedSelectedRowModel=S(()=>[e.getState().rowSelection,e.getSortedRowModel()],(s,t)=>Object.keys(s).length?ue(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const s=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let n=!!(s.length&&Object.keys(t).length);return n&&s.some(o=>o.getCanSelect()&&!t[o.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const s=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:t}=e.getState();let n=!!s.length;return n&&s.some(o=>!t[o.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var s;const t=Object.keys((s=e.getState().rowSelection)!=null?s:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const s=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:s.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>s=>{e.toggleAllRowsSelected(s.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>s=>{e.toggleAllPageRowsSelected(s.target.checked)}},createRow:(e,s)=>{e.toggleSelected=(t,n)=>{const o=e.getIsSelected();s.setRowSelection(r=>{var a;if(t=typeof t<"u"?t:!o,e.getCanSelect()&&o===t)return r;const l={...r};return pe(l,e.id,t,(a=n==null?void 0:n.selectChildren)!=null?a:!0,s),l})},e.getIsSelected=()=>{const{rowSelection:t}=s.getState();return Re(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=s.getState();return he(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=s.getState();return he(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof s.options.enableRowSelection=="function"?s.options.enableRowSelection(e):(t=s.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof s.options.enableSubRowSelection=="function"?s.options.enableSubRowSelection(e):(t=s.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof s.options.enableMultiRowSelection=="function"?s.options.enableMultiRowSelection(e):(t=s.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var o;t&&e.toggleSelected((o=n.target)==null?void 0:o.checked)}}}},pe=(e,s,t,n,o)=>{var r;const a=o.getRow(s,!0);t?(a.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),a.getCanSelect()&&(e[s]=!0)):delete e[s],n&&(r=a.subRows)!=null&&r.length&&a.getCanSelectSubRows()&&a.subRows.forEach(l=>pe(e,l.id,t,n,o))};function ue(e,s){const t=e.getState().rowSelection,n=[],o={},r=function(a,l){return a.map(u=>{var d;const f=Re(u,t);if(f&&(n.push(u),o[u.id]=u),(d=u.subRows)!=null&&d.length&&(u={...u,subRows:r(u.subRows)}),f)return u}).filter(Boolean)};return{rows:r(s.rows),flatRows:n,rowsById:o}}function Re(e,s){var t;return(t=s[e.id])!=null?t:!1}function he(e,s,t){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let o=!0,r=!1;return e.subRows.forEach(a=>{if(!(r&&!o)&&(a.getCanSelect()&&(Re(a,s)?r=!0:o=!1),a.subRows&&a.subRows.length)){const l=he(a,s);l==="all"?r=!0:(l==="some"&&(r=!0),o=!1)}}),o?"all":r?"some":!1}const xe=/([0-9]+)/gm,cs=(e,s,t)=>xt(b(e.getValue(t)).toLowerCase(),b(s.getValue(t)).toLowerCase()),gs=(e,s,t)=>xt(b(e.getValue(t)),b(s.getValue(t))),fs=(e,s,t)=>ye(b(e.getValue(t)).toLowerCase(),b(s.getValue(t)).toLowerCase()),ms=(e,s,t)=>ye(b(e.getValue(t)),b(s.getValue(t))),ps=(e,s,t)=>{const n=e.getValue(t),o=s.getValue(t);return n>o?1:n<o?-1:0},hs=(e,s,t)=>ye(e.getValue(t),s.getValue(t));function ye(e,s){return e===s?0:e>s?1:-1}function b(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function xt(e,s){const t=e.split(xe).filter(Boolean),n=s.split(xe).filter(Boolean);for(;t.length&&n.length;){const o=t.shift(),r=n.shift(),a=parseInt(o,10),l=parseInt(r,10),u=[a,l].sort();if(isNaN(u[0])){if(o>r)return 1;if(r>o)return-1;continue}if(isNaN(u[1]))return isNaN(a)?-1:1;if(a>l)return 1;if(l>a)return-1}return t.length-n.length}const B={alphanumeric:cs,alphanumericCaseSensitive:gs,text:fs,textCaseSensitive:ms,datetime:ps,basic:hs},xs={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:P("sorting",e),isMultiSortEvent:s=>s.shiftKey}),createColumn:(e,s)=>{e.getAutoSortingFn=()=>{const t=s.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const o of t){const r=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(r)==="[object Date]")return B.datetime;if(typeof r=="string"&&(n=!0,r.split(xe).length>1))return B.alphanumeric}return n?B.text:B.basic},e.getAutoSortDir=()=>{const t=s.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,n;if(!e)throw new Error;return ee(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(n=s.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?t:B[e.columnDef.sortingFn]},e.toggleSorting=(t,n)=>{const o=e.getNextSortingOrder(),r=typeof t<"u"&&t!==null;s.setSorting(a=>{const l=a==null?void 0:a.find(c=>c.id===e.id),u=a==null?void 0:a.findIndex(c=>c.id===e.id);let d=[],f,h=r?t:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&n?l?f="toggle":f="add":a!=null&&a.length&&u!==a.length-1?f="replace":l?f="toggle":f="replace",f==="toggle"&&(r||o||(f="remove")),f==="add"){var g;d=[...a,{id:e.id,desc:h}],d.splice(0,d.length-((g=s.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else f==="toggle"?d=a.map(c=>c.id===e.id?{...c,desc:h}:c):f==="remove"?d=a.filter(c=>c.id!==e.id):d=[{id:e.id,desc:h}];return d})},e.getFirstSortDir=()=>{var t,n;return((t=(n=e.columnDef.sortDescFirst)!=null?n:s.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var n,o;const r=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==r&&((n=s.options.enableSortingRemoval)==null||n)&&(!(t&&(o=s.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":r},e.getCanSort=()=>{var t,n;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((n=s.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,n;return(t=(n=e.columnDef.enableMultiSort)!=null?n:s.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const n=(t=s.getState().sorting)==null?void 0:t.find(o=>o.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,n;return(t=(n=s.getState().sorting)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?t:-1},e.clearSorting=()=>{s.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return n=>{t&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?s.options.isMultiSortEvent==null?void 0:s.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=s=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(s),e.resetSorting=s=>{var t,n;e.setSorting(s?[]:(t=(n=e.initialState)==null?void 0:n.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},vs=[Tn,os,Jn,es,Ln,Hn,rs,is,xs,Qn,as,ls,us,ds,ns];function Ss(e){var s,t;const n=[...vs,...(s=e._features)!=null?s:[]];let o={_features:n};const r=o._features.reduce((g,c)=>Object.assign(g,c.getDefaultOptions==null?void 0:c.getDefaultOptions(o)),{}),a=g=>o.options.mergeOptions?o.options.mergeOptions(r,g):{...r,...g};let u={...{},...(t=e.initialState)!=null?t:{}};o._features.forEach(g=>{var c;u=(c=g.getInitialState==null?void 0:g.getInitialState(u))!=null?c:u});const d=[];let f=!1;const h={_features:n,options:{...r,...e},initialState:u,_queue:g=>{d.push(g),f||(f=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();f=!1}).catch(c=>setTimeout(()=>{throw c})))},reset:()=>{o.setState(o.initialState)},setOptions:g=>{const c=T(g,o.options);o.options=a(c)},getState:()=>o.options.state,setState:g=>{o.options.onStateChange==null||o.options.onStateChange(g)},_getRowId:(g,c,p)=>{var m;return(m=o.options.getRowId==null?void 0:o.options.getRowId(g,c,p))!=null?m:`${p?[p.id,c].join("."):c}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(g,c)=>{let p=(c?o.getPrePaginationRowModel():o.getRowModel()).rowsById[g];if(!p&&(p=o.getCoreRowModel().rowsById[g],!p))throw new Error;return p},_getDefaultColumnDef:S(()=>[o.options.defaultColumn],g=>{var c;return g=(c=g)!=null?c:{},{header:p=>{const m=p.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:p=>{var m,x;return(m=(x=p.renderValue())==null||x.toString==null?void 0:x.toString())!=null?m:null},...o._features.reduce((p,m)=>Object.assign(p,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...g}},C(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:S(()=>[o._getColumnDefs()],g=>{const c=function(p,m,x){return x===void 0&&(x=0),p.map(v=>{const w=zn(o,v,x,m),R=v;return w.columns=R.columns?c(R.columns,w,x+1):[],w})};return c(g)},C(e,"debugColumns")),getAllFlatColumns:S(()=>[o.getAllColumns()],g=>g.flatMap(c=>c.getFlatColumns()),C(e,"debugColumns")),_getAllFlatColumnsById:S(()=>[o.getAllFlatColumns()],g=>g.reduce((c,p)=>(c[p.id]=p,c),{}),C(e,"debugColumns")),getAllLeafColumns:S(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(g,c)=>{let p=g.flatMap(m=>m.getLeafColumns());return c(p)},C(e,"debugColumns")),getColumn:g=>o._getAllFlatColumnsById()[g]};Object.assign(o,h);for(let g=0;g<o._features.length;g++){const c=o._features[g];c==null||c.createTable==null||c.createTable(o)}return o}function Cs(){return e=>S(()=>[e.options.data],s=>{const t={rows:[],flatRows:[],rowsById:{}},n=function(o,r,a){r===void 0&&(r=0);const l=[];for(let d=0;d<o.length;d++){const f=bn(e,e._getRowId(o[d],d,a),o[d],d,r,void 0,a==null?void 0:a.id);if(t.flatRows.push(f),t.rowsById[f.id]=f,l.push(f),e.options.getSubRows){var u;f.originalSubRows=e.options.getSubRows(o[d],d),(u=f.originalSubRows)!=null&&u.length&&(f.subRows=n(f.originalSubRows,r+1,f))}}return l};return t.rows=n(s),t},C(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
20
20
|
* react-table
|
|
21
21
|
*
|
|
22
22
|
* Copyright (c) TanStack
|
|
@@ -25,4 +25,4 @@ import{W as yt,r as y,ad as Ue,j as i,G as k,ar as $,ce as jt,B as I,ak as G,jt
|
|
|
25
25
|
* LICENSE.md file in the root directory of this source tree.
|
|
26
26
|
*
|
|
27
27
|
* @license MIT
|
|
28
|
-
*/function Te(e,s){return e?ws(e)?y.createElement(e,s):e:null}function ws(e){return Rs(e)||typeof e=="function"||ys(e)}function Rs(e){return typeof e=="function"&&(()=>{const s=Object.getPrototypeOf(e);return s.prototype&&s.prototype.isReactComponent})()}function ys(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function js(e){const s={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=y.useState(()=>({current:Ss(s)})),[n,o]=y.useState(()=>t.current.initialState);return t.current.setOptions(r=>({...r,...e,state:{...n,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),t.current}function _s(e){if("id"in e&&e.id)return e.id;if("accessorKey"in e&&typeof e.accessorKey=="string")return e.accessorKey}function Ns({columns:e,data:s,emptyMessage:t="No results.",tableOptions:n,groupBy:o,className:r,tableClassName:a}){var p;const l=Ue(),u=y.useMemo(()=>{var x;if(!l)return{};const m={};for(const v of e){const w=_s(v);w&&((x=v.meta)!=null&&x.hideOnMobile)&&(m[w]=!1)}return m},[e,l]),d=y.useMemo(()=>{var m;return{...u,...((m=n==null?void 0:n.state)==null?void 0:m.columnVisibility)??{}}},[u,(p=n==null?void 0:n.state)==null?void 0:p.columnVisibility]),f=js({data:s,columns:e,getCoreRowModel:Cs(),...n,state:{...n==null?void 0:n.state,columnVisibility:d}}),h=f.getRowModel().rows,g=f.getVisibleLeafColumns().length,c=y.useMemo(()=>{if(!o)return new Map;const m=new Map;for(const x of h){const v=o.key(x.original);m.set(v,(m.get(v)??0)+1)}return m},[o,h]);return i.jsx("div",{"data-slot":"data-table",className:k("rounded-md border",r),children:i.jsxs(yn,{className:a,children:[i.jsx(jn,{children:f.getHeaderGroups().map(m=>i.jsx(X,{children:m.headers.map(x=>{var v;return i.jsx(Ee,{className:(v=x.column.columnDef.meta)==null?void 0:v.headClassName,children:x.isPlaceholder?null:Te(x.column.columnDef.header,x.getContext())},x.id)})},m.id))}),i.jsx(_n,{children:h.length?h.map((m,x)=>{const v=o==null?void 0:o.key(m.original),w=x>0?o==null?void 0:o.key(h[x-1].original):void 0,R=v!==void 0&&v!==w;return i.jsxs(y.Fragment,{children:[R&&i.jsx(X,{"data-slot":"data-table-group-header",className:"bg-muted/40 hover:bg-muted/40",children:i.jsx(Ee,{colSpan:g,className:"h-8",children:o==null?void 0:o.header(v,c.get(v)??0)})}),i.jsx(X,{"data-state":m.getIsSelected()?"selected":void 0,children:m.getVisibleCells().map(j=>{var _;return i.jsx(De,{className:(_=j.column.columnDef.meta)==null?void 0:_.cellClassName,children:Te(j.column.columnDef.cell,j.getContext())},j.id)})})]},m.id)}):i.jsx(X,{children:i.jsx(De,{colSpan:g,className:"h-24 text-center",children:t})})})]})})}function Fs({onClearFilters:e,filterDescription:s}){return i.jsxs($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[i.jsx(xn,{className:"text-muted-foreground/50 size-10"}),i.jsx("p",{className:"text-muted-foreground text-sm",children:s?`No agents match ${s}`:"No agents match your filters"}),i.jsx(I,{variant:"outline",size:"sm",onClick:e,children:"Clear filters"})]})}function Ms({peopleOnly:e}){return i.jsxs($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col items-center justify-center gap-2 py-12 text-center","data-slot":"agent-roster-filter-empty",children:[i.jsx(jt,{className:"text-muted-foreground/50 size-10"}),i.jsx("p",{className:"text-muted-foreground max-w-xs text-sm",children:e?"This table lists agents. Switch to Cards to see people.":"No agents match this filter. Change it in Cards."})]})}const be=["needs-you","working","quiet"],Ps=1440*60*1e3;function $s(e,s=Date.now()){const t=Date.parse(e);return Number.isNaN(t)?!0:s-t>=Ps}const Is=30,As=25,Vs=20,Es=20,Ds=10,zs=0;function ve(e){const{healthStatus:s,taskCount:t,chatState:n}=e;return s==="unreachable"?{group:"needs-you",severity:Is}:n==="needs-attention"?{group:"needs-you",severity:As}:s==="stale"&&t>0&&e.isPastOnboardingGrace?{group:"needs-you",severity:Vs}:n==="active"?{group:"working",severity:Es}:s==="active"?{group:"working",severity:Ds}:{group:"quiet",severity:zs}}function Le(e){if(!e)return Number.NEGATIVE_INFINITY;const s=Date.parse(e);return Number.isNaN(s)?Number.NEGATIVE_INFINITY:s}function ks(e,s){const t=ve(e),n=ve(s),o=be.indexOf(t.group)-be.indexOf(n.group);if(o!==0)return o;const r=n.severity-t.severity;if(r!==0)return r;const a=Le(s.lastSeenAt)-Le(e.lastSeenAt);return a!==0?a:G(e).localeCompare(G(s))}function Ts(e,s="asc"){const t=s==="desc"?-1:1;return[...e].sort((n,o)=>t*ks(n,o))}const bs={"needs-you":{label:"Needs you",toneClass:"text-destructive"},working:{label:"Working",toneClass:"text-foreground"},quiet:{label:"Quiet",toneClass:"text-muted-foreground"}};function Ls(e,s,t){if(!t)return e;if(t.kind==="people")return[];if(!(t.owner!==void 0||(t.q??"").trim()!==""))return e;const o=s.filter(a=>a.kind==="agent");if(o.length===0)return e;const r=new Set(Ke(o,t).map(a=>a.id));return e.filter(a=>r.has(a.id))}const He=32,Hs=5,vt="Checked in",Gs={heartbeat:"Checked in",message_sent:"Got a message",response_complete:"Finished a reply"};function Os(e,s){return s===null&&e==="stale"}function Ge(e){return e.length<2||e.length>Hs?!1:e===e.toUpperCase()&&new RegExp("\\p{Lu}","u").test(e)}function Bs(e){const s=Gs[e.trim().toLowerCase()];if(s)return s;const t=e.replace(/[^\p{L}\p{N}]+/gu," ").trim().split(" ").filter(Boolean).map(a=>Ge(a)?a:a.toLowerCase());if(t.length===0)return vt;const n=t[0];t[0]=Ge(n)?n:n.replace(/^./u,a=>a.toUpperCase());const o=t.join(" "),r=Array.from(o);return r.length<=He?o:`${r.slice(0,He-1).join("").trimEnd()}…`}function Oe(e){const s=e.filter(t=>!!t);return s.length>0?s.join(" · "):null}function qs(e){const{healthStatus:s,lastSeenAt:t,lastSeenEvent:n,chatState:o}=e,r=t?ce(t):null,a=n?Bs(n):null;return s==="unreachable"?{primary:"Can’t be reached",secondary:Oe([a,r??"never seen"]),toneClass:"text-destructive"}:o==="needs-attention"?{primary:"A chat needs you",secondary:Oe([a,r]),toneClass:"text-destructive"}:Os(s,t)?o==="active"?{primary:"Active in a chat",secondary:null,toneClass:"text-foreground"}:{primary:"Not used yet",secondary:null,toneClass:"text-muted-foreground"}:{primary:a??vt,secondary:r,toneClass:s==="active"?"text-foreground":"text-muted-foreground"}}function Us(e){if(!e)return null;const s=e.split("/").filter(Boolean);return s.length<=2?e:s.slice(-2).join("/")}function Ks({row:e,onOpen:s}){const{color:t,emoji:n}=Ft(e),o=Us(e.projectPath),r=Ye(e.runtime).label;return i.jsxs("button",{type:"button",className:"flex w-full min-w-0 items-center gap-2 text-left",onClick:s,children:[i.jsx(Mt,{color:t,emoji:n,size:"xs"}),i.jsxs("span",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"block truncate text-sm font-medium hover:underline",children:G(e)}),i.jsxs("span",{className:"text-muted-foreground block truncate text-xs",children:[o??r,o&&i.jsxs("span",{className:"hidden md:inline",children:[" · ",r]})]})]}),e.isDefault&&i.jsxs(A,{size:"xs",variant:"outline",className:"shrink-0 max-md:border-0 max-md:px-0 max-md:py-0",children:[i.jsx(Pt,{className:"size-2.5 fill-current md:mr-0.5"}),i.jsx("span",{className:"sr-only md:not-sr-only",children:"Default"})]})]})}function Ys({row:e}){const{primary:s,secondary:t,toneClass:n}=qs(e);return i.jsxs("span",{className:"block min-w-0",children:[i.jsx("span",{className:k("block truncate text-sm",n),children:s}),t&&i.jsx("span",{className:"text-muted-foreground block truncate text-xs tabular-nums",children:t})]})}function Xs(e){return[{accessorKey:"name",header:"Agent",meta:{headClassName:"w-[42%] md:w-[38%]",cellClassName:"overflow-hidden"},cell:({row:s})=>i.jsx(Ks,{row:s.original,onOpen:()=>e.onNavigate(s.original.projectPath??"")})},{accessorKey:"lastSeenEvent",header:"Activity",meta:{headClassName:"truncate",cellClassName:"truncate"},cell:({row:s})=>i.jsx(Ys,{row:s.original})},{id:"managedBy",header:"Managed by",meta:{hideOnMobile:!0,headClassName:"w-[140px]",cellClassName:"overflow-hidden"},cell:({row:s})=>{const t=s.original.managedBy;return i.jsx("span",{"data-slot":"agent-managed-by",className:"text-muted-foreground block truncate text-xs",children:t??"—"})}},{accessorKey:"taskCount",header:"Scheduled",meta:{hideOnMobile:!0,headClassName:"w-[110px]"},cell:({row:s})=>{const t=s.original.taskCount;return t===0?i.jsx("span",{className:"text-muted-foreground text-xs",children:"—"}):i.jsxs(A,{variant:"outline",className:"whitespace-nowrap",children:[t," ",t===1?"schedule":"schedules"]})}},{id:"actions",header:"",meta:{headClassName:"w-[88px]"},cell:({row:s})=>{const t=s.original;return i.jsxs("div",{className:"flex items-center justify-end gap-1",children:[i.jsx(I,{variant:"ghost",size:"sm",className:"size-8 p-0",onClick:n=>{n.stopPropagation(),e.onNavigate(t.projectPath??"")},"aria-label":`Open chat with ${G(t)}`,children:i.jsx(_t,{className:"size-4"})}),i.jsx(I,{variant:"ghost",size:"sm",className:"size-8 p-0",onClick:n=>{n.stopPropagation(),e.onViewProfile(t.projectPath??"")},"aria-label":`Open ${G(t)}’s profile`,children:i.jsx(Nt,{className:"size-4"})})]})}}]}function Ws({group:e,count:s}){const{label:t,toneClass:n}=bs[e];return i.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-semibold tracking-wide uppercase",children:[e==="needs-you"&&i.jsx(Xe,{className:k("size-3.5",n)}),i.jsx("span",{className:n,children:t}),i.jsx("span",{className:"text-muted-foreground font-normal tabular-nums",children:s})]})}function Qs({rows:e,grouped:s,callbacks:t}){const n=y.useMemo(()=>Xs(t),[t]),o=y.useMemo(()=>s?{key:r=>ve(r).group,header:(r,a)=>i.jsx(Ws,{group:r,count:a})}:void 0,[s]);return i.jsx(Ns,{columns:n,data:e,groupBy:o,emptyMessage:"No agents registered.",className:"border-0",tableClassName:"table-fixed"})}function Js({agents:e,isLoading:s,rosterFilters:t}){var O;const n=We(),o=$t(),{open:r}=Se(),a=It(),l=vn(te,{debounce:{search:200}}),{data:u}=Qe(),d=y.useMemo(()=>(u==null?void 0:u.members)??[],[u]),f=y.useMemo(()=>Ls(e,d,t),[e,d,t]),h=y.useMemo(()=>[...new Set(f.map(N=>N.namespace).filter(N=>!!N))],[f]),g=!l.sortField||l.sortField===_e,c=y.useMemo(()=>g?te.applyFilters(f,l.values):At(f,te,l.values,bt,{field:l.sortField,direction:l.sortDirection}),[f,g,l.values,l.sortField,l.sortDirection]),p=y.useMemo(()=>e.map(N=>N.projectPath).filter(N=>!!N),[e]),m=Cn(p),{data:x}=Vt({queryKey:Et.current(),queryFn:()=>o.getConfig(),staleTime:3e4}),v=y.useMemo(()=>{const N=new Map;for(const F of d){if(F.kind!=="agent")continue;const L=Je(F,d);L&&N.set(F.id,K(L))}return N},[d]),w=y.useMemo(()=>{const N=c.map(F=>{var L;return{...F,chatState:(F.projectPath?m[F.projectPath]:void 0)??"fresh",isPastOnboardingGrace:$s(F.registeredAt),isDefault:((L=x==null?void 0:x.agents)==null?void 0:L.defaultAgent)===F.name,managedBy:v.get(F.id)??null}});return g?Ts(N,l.sortDirection):N},[c,m,(O=x==null?void 0:x.agents)==null?void 0:O.defaultAgent,v,g,l.sortDirection]),R=y.useCallback(N=>{const F=a.get(N);if(F===void 0){Ze.getState().openProfileDocked(N);return}r(F)},[a,r]),j=y.useCallback(N=>{Dt(o,N).then(F=>n(F)).catch(F=>{zt(o,F),kt(N)})},[n,o]),_=y.useMemo(()=>({onNavigate:j,onViewProfile:R}),[j,R]);function V(){return f.length===0&&e.length>0?i.jsx(Ms,{peopleOnly:(t==null?void 0:t.kind)==="people"}):c.length===0&&f.length>0?i.jsx(Fs,{onClearFilters:l.clearAll,filterDescription:l.describeActive()}):i.jsx(Qs,{rows:w,grouped:g,callbacks:_})}return s?i.jsx("div",{className:"space-y-3 p-4 sm:px-6",children:Array.from({length:3}).map((N,F)=>i.jsx(E,{className:"h-14 w-full rounded-xl"},F))}):i.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[i.jsxs(H,{state:l,className:"sm:px-6",children:[i.jsx(H.Search,{placeholder:"Filter agents…"}),i.jsx(H.Primary,{name:"status"}),i.jsx(H.AddFilter,{dynamicOptions:{namespace:h}}),i.jsx(H.Sort,{options:Tt,defaultField:_e}),i.jsx(H.ResultCount,{count:c.length,total:f.length,noun:"agent"}),i.jsx(H.ActiveFilters,{})]}),i.jsx(Sn,{className:"min-h-0 flex-1",children:i.jsx("div",{className:"px-4 pb-4 sm:px-6",children:V()})})]})}const Zs={animate:{transition:{staggerChildren:.1}}},eo={initial:{opacity:0},animate:{opacity:.2,transition:{duration:.3}}};function de(){return i.jsxs($.div,{variants:eo,className:"rounded-xl border border-dashed px-4 py-3",children:[i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx(E,{className:"size-3 rounded-full"}),i.jsx(E,{className:"h-3 w-32"}),i.jsx(E,{className:"h-3 w-16"}),i.jsx(E,{className:"ml-auto h-3 w-10"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(E,{className:"h-2.5 w-48"}),i.jsx(E,{className:"h-2.5 w-20"})]})]})}function St(){const e=Lt(n=>n.open),s=Ht(n=>n.open),t=Nn();return i.jsxs("div",{className:"relative w-full max-w-2xl px-4",children:[i.jsxs($.div,{variants:Zs,initial:"initial",animate:"animate",className:"space-y-3",children:[i.jsx(de,{}),i.jsx(de,{}),i.jsx(de,{})]}),i.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:t?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-lg font-semibold",children:"No agents yet"}),i.jsxs(I,{size:"sm",className:"gap-1.5",onClick:()=>s(),children:[i.jsx(et,{className:"size-3.5"}),"Create agent"]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-lg font-semibold",children:"Bring in existing projects"}),i.jsxs(I,{size:"sm",className:"gap-1.5",onClick:e,children:[i.jsx(Vn,{className:"size-3.5"}),"Search for projects"]})]})})]})}function to(){const{data:e,isLoading:s}=Gt(),t=(e==null?void 0:e.denied)??[];return s?i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(Z,{size:"md",className:"text-muted-foreground",label:"Loading blocked paths"})}):t.length===0?i.jsx(at,{icon:Ot,headline:"No blocked paths",description:"Folders you block from scans show up here."}):i.jsx("div",{className:"space-y-2 p-4",children:t.map(n=>i.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border px-4 py-3",children:[i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("p",{className:"truncate font-mono text-sm",title:n.path,children:n.path}),n.reason&&i.jsx("p",{className:"text-muted-foreground truncate text-xs",title:n.reason,children:n.reason})]}),i.jsx(A,{variant:"outline",className:"shrink-0",children:n.deniedBy})]},n.path))})}function no({namespace:e,agentCount:s,agents:t}){const[n,o]=y.useState(!1);return i.jsxs("div",{className:"rounded-xl border",children:[i.jsxs("button",{type:"button",onClick:()=>o(!n),className:"hover:bg-muted/50 flex w-full items-center gap-2 px-4 py-3 text-left transition-colors duration-150",children:[n?i.jsx(qt,{className:"size-4"}):i.jsx(Ut,{className:"size-4"}),i.jsx("span",{className:"text-sm font-medium",children:e}),i.jsxs(A,{variant:"secondary",className:"ml-auto",children:[s," agent",s!==1?"s":""]})]}),n&&i.jsx("div",{className:"space-y-2 border-t px-4 py-2",children:t.map(r=>i.jsx("div",{className:"flex items-center justify-between py-1",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-sm",children:G(r)}),i.jsx(A,{variant:"outline",children:tt(r.runtime)})]})},r.id))})]})}function so({sourceNamespace:e,targetNamespace:s,action:t,origin:n,onRemove:o}){const r=n==="default";return i.jsxs("div",{className:"flex items-center justify-between rounded-lg border px-3 py-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[i.jsx("span",{className:"font-mono",children:e}),i.jsx("span",{className:"text-muted-foreground",children:"→"}),i.jsx("span",{className:"font-mono",children:s}),i.jsx(A,{variant:t==="allow"?"default":"destructive",children:t}),r&&i.jsx(A,{tone:"neutral",variant:"outline",children:"built-in"})]}),r?i.jsx("span",{className:"text-muted-foreground flex size-8 items-center justify-center",title:"Built-in rule, always enforced. Not removable",children:i.jsx(Kt,{className:"size-4","aria-hidden":"true"})}):i.jsx(I,{type:"button",variant:"ghost",size:"icon-sm",onClick:o,className:"text-muted-foreground hover:bg-destructive/10 hover:text-destructive","aria-label":`Remove access from ${e} to ${s}`,children:i.jsx(Yt,{})})]})}const Ct="acl-open-mesh-explanation";function oo({namespaces:e,onAdd:s,isPending:t,inert:n}){const[o,r]=y.useState(""),[a,l]=y.useState("");function u(f){f.preventDefault(),!n&&o&&a&&o!==a&&(s(o,a),r(""),l(""))}const d=n?{"aria-disabled":!0,"aria-describedby":Ct}:{};return i.jsxs("form",{onSubmit:u,className:"flex items-end gap-2",children:[i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsx(Fe,{htmlFor:"acl-source",className:"text-muted-foreground text-xs font-medium",children:"Source"}),i.jsxs(Me,{value:o,onValueChange:n?()=>{}:r,children:[i.jsx(Pe,{id:"acl-source",className:"w-full aria-disabled:pointer-events-none aria-disabled:opacity-50",...d,children:i.jsx($e,{placeholder:"Pick a project"})}),i.jsx(Ie,{children:e.map(f=>i.jsx(Ae,{value:f,children:f},f))})]})]}),i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsx(Fe,{htmlFor:"acl-target",className:"text-muted-foreground text-xs font-medium",children:"Target"}),i.jsxs(Me,{value:a,onValueChange:n?()=>{}:l,children:[i.jsx(Pe,{id:"acl-target",className:"w-full aria-disabled:pointer-events-none aria-disabled:opacity-50",...d,children:i.jsx($e,{placeholder:"Pick a project"})}),i.jsx(Ie,{children:e.map(f=>i.jsx(Ae,{value:f,children:f},f))})]})]}),i.jsxs(I,{type:"submit",className:"aria-disabled:pointer-events-none aria-disabled:opacity-50",disabled:!n&&(t||!o||!a||o===a),...d,children:[t?i.jsx(Z,{}):i.jsx(et,{}),"Allow access"]})]})}function ro({onGoToDiscovery:e}={}){const{data:s,isLoading:t}=it(),{mutate:n,isPending:o}=wn();if(t)return i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(Z,{size:"md",className:"text-muted-foreground"})});const r=(s==null?void 0:s.namespaces)??[],a=(s==null?void 0:s.openMesh)??!1,l=((s==null?void 0:s.accessRules)??[]).filter(d=>!(d.origin==="explicit"&&d.sourceNamespace===Ne&&d.targetNamespace===Ne)),u=r.map(d=>d.namespace);return r.length===0?i.jsxs("div",{className:"space-y-6 p-4",children:[i.jsx(Ve,{}),i.jsx(at,{icon:Bt,headline:"You need agents in more than one project",description:"Add agents from a second folder to let two projects talk.",action:e?{label:"Go to Discovery",onClick:e}:void 0})]}):i.jsxs("div",{className:"space-y-6 p-4",children:[i.jsx(Ve,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Projects"}),r.map(d=>i.jsx(no,{namespace:d.namespace,agentCount:d.agentCount,agents:d.agents},d.namespace))]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Cross-project access rules"}),l.length===0?i.jsx("p",{className:"text-muted-foreground text-xs",children:"No rules yet. Agents only talk within their own project."}):i.jsx("div",{className:"space-y-1",children:l.map(d=>i.jsx(so,{sourceNamespace:d.sourceNamespace,targetNamespace:d.targetNamespace,action:d.action,origin:d.origin,onRemove:()=>n({sourceNamespace:d.sourceNamespace,targetNamespace:d.targetNamespace,action:"deny"})},`${d.sourceNamespace}-${d.targetNamespace}-${d.action}-${d.origin}`))})]}),u.length>=2&&i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Allow cross-project access"}),a&&i.jsx("p",{id:Ct,className:"text-muted-foreground text-xs",children:"Already allowed by the switch above. Turn it off to pick pairs."}),i.jsx(oo,{namespaces:u,isPending:o,inert:a,onAdd:(d,f)=>n({sourceNamespace:d,targetNamespace:f,action:"allow"})})]})]})}const wt={active:{label:"Active",dot:ne.working},inactive:{label:"Inactive",dot:ne["needs-you"]},stale:{label:"Stale",dot:"bg-muted-foreground/50"},unreachable:{label:"Unreachable",dot:ne.error}};function io(e){return e in wt}function Be({onClick:e}){return i.jsx("button",{type:"button",onClick:e,"aria-label":"Close detail panel",className:"text-muted-foreground hover:text-foreground",children:i.jsx(Ce,{className:"size-(--size-icon-sm)"})})}function qe({agentId:e,onClose:s}){const{data:t,isLoading:n}=Rn(e),{open:o}=Se();if(n)return i.jsx("div",{className:"flex w-64 items-center justify-center border-l p-4",children:i.jsx("span",{className:"text-muted-foreground text-sm",children:"Loading…"})});if(!t)return i.jsxs("div",{className:"w-64 border-l p-4",children:[i.jsx("div",{className:"flex justify-end",children:i.jsx(Be,{onClick:s})}),i.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:"Agent not found"})]});const r=io(t.status)?t.status:"stale",a=wt[r];return i.jsxs("div",{className:"w-64 overflow-y-auto border-l p-4",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsx("h3",{className:"truncate text-sm font-semibold",children:t.name}),i.jsx(Be,{onClick:s})]}),i.jsxs("div",{className:"space-y-3 text-xs",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:k("h-2.5 w-2.5 rounded-full",a.dot),"aria-hidden":"true"}),i.jsx("span",{children:a.label})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Last seen: "}),i.jsx("span",{children:t.lastSeenAt?ce(t.lastSeenAt):"Never"})]}),t.lastSeenEvent&&i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Last event: "}),i.jsx("span",{children:t.lastSeenEvent})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Runs on: "}),i.jsx(A,{size:"xs",variant:"secondary",children:tt(t.runtime)})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Registered: "}),i.jsx("span",{children:t.registeredAt?ce(t.registeredAt):"Unknown"})]}),Array.isArray(t.capabilities)&&t.capabilities.length>0&&i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground mb-1 block",children:"Capabilities:"}),i.jsx("div",{className:"flex flex-wrap gap-1",children:t.capabilities.map(l=>i.jsx(A,{size:"xs",variant:"outline",children:l},l))})]})]}),i.jsx("div",{className:"mt-4 space-y-2 border-t pt-3",children:i.jsxs("button",{type:"button",onClick:()=>o(e),className:"hover:bg-muted inline-flex w-full items-center justify-center gap-2 rounded-md border px-3 py-1.5 text-xs font-medium transition-colors duration-150",children:[i.jsx(Xt,{className:"size-3.5"}),"View profile"]})})]})}function ao(){return i.jsx(ro,{})}function lo(e){var s;if(e.agent){const t=Ye(e.agent.runtime).label;return e.agent.model?`${t} · ${e.agent.model}`:t}return(s=e.person)!=null&&s.role?e.person.role:e.origin==="local"?"On this machine":`On ${Jt(e.origin.platform)}`}const uo={layout:"position",initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.97,transition:{duration:.15}},transition:{layout:{type:"spring",stiffness:280,damping:32},duration:.2,ease:[0,0,.2,1]}};function co({member:e,owner:s,onSelectOwner:t,onOpenProfile:n,onSetLinkedToMe:o,linkPending:r=!1,linkError:a,ownedAgentCount:l,layoutAnimated:u=!1,ref:d,className:f}){var p,m,x;const h=nt(e),g=Wt(e),c=(p=e.person)==null?void 0:p.linkedToYou;return i.jsxs($.article,{ref:d,...u?uo:{},"data-slot":"team-member-card","data-member-id":e.id,"data-layout-animated":String(u),style:{"--identity-color":h.color},className:k("bg-card shadow-soft relative flex items-start gap-3 rounded-lg border p-4","border-[color-mix(in_oklch,var(--identity-color)_var(--identity-border-strength),hsl(var(--border)))]","[--identity-border-strength:0%]",n&&["transition-[box-shadow,border-color,translate,scale] duration-(--identity-settle) ease-(--identity-ease-standard)","hover:shadow-elevated hover:-translate-y-px","hover:[--identity-border-strength:var(--identity-border-mix)]","has-[[data-slot=team-member-open]:focus-visible]:shadow-elevated has-[[data-slot=team-member-open]:focus-visible]:-translate-y-px","has-[[data-slot=team-member-open]:focus-visible]:[--identity-border-strength:var(--identity-border-mix)]","active:translate-y-0 active:scale-[0.99] active:duration-(--identity-press)",Qt,"has-[[data-card-aside]:hover]:shadow-soft has-[[data-card-aside]:hover]:translate-y-0 has-[[data-card-aside]:hover]:[--identity-border-strength:0%]","has-[[data-card-aside]:focus-visible]:shadow-soft has-[[data-card-aside]:focus-visible]:translate-y-0 has-[[data-card-aside]:focus-visible]:[--identity-border-strength:0%]","[&:has([data-card-aside]:hover)_[data-slot=identity-badge]]:scale-100 [&:has([data-card-aside]:hover)_[data-slot=identity-badge]]:rotate-0","[&:has([data-card-aside]:focus-visible)_[data-slot=identity-badge]]:scale-100 [&:has([data-card-aside]:focus-visible)_[data-slot=identity-badge]]:rotate-0","has-[[data-card-aside]:active]:scale-100"],f),children:[i.jsx(st,{size:"md",kind:h.kind,color:h.color,emoji:h.emoji,imageUrl:h.imageUrl,fallback:h.fallback,origin:h.origin}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:[i.jsx("h3",{className:"min-w-0 truncate text-sm font-medium",children:n?i.jsx("button",{type:"button","data-slot":"team-member-open",onClick:()=>n(e.id),"aria-label":`Open ${e.displayName}’s profile`,className:"focus-ring max-w-full truncate rounded text-left after:absolute after:inset-0 after:rounded-lg after:content-['']",children:e.displayName}):e.displayName}),e.isSelf&&i.jsx(A,{size:"xs",variant:"secondary",children:"you"}),((m=e.agent)==null?void 0:m.isDefault)&&i.jsx(A,{size:"xs",variant:"outline",children:"default"}),c&&i.jsx(A,{size:"xs",variant:"secondary",children:"also you"})]}),e.handle!==null&&i.jsxs("p",{"data-slot":"team-member-handle",className:"text-muted-foreground truncate text-xs",children:["@",e.handle]}),g&&i.jsx("p",{"data-slot":"team-member-name-source",className:"text-muted-foreground truncate text-xs",children:g}),i.jsx("p",{className:"text-muted-foreground mt-1.5 truncate text-xs",children:lo(e)}),((x=e.agent)==null?void 0:x.recentlyActive)&&i.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Active in the last hour"}),c!==void 0&&o&&i.jsx("button",{type:"button","data-slot":"team-member-link-to-me","data-card-aside":"",disabled:r,onClick:()=>o(e.id,!c),"aria-label":c?`Stop treating ${e.displayName} as you`:`Tell DorkOS that ${e.displayName} is you`,className:"text-muted-foreground hover:text-foreground focus-visible:text-foreground focus-ring relative mt-1.5 block w-fit max-w-full truncate rounded text-xs underline-offset-2 transition-[color] duration-(--identity-answer) ease-(--identity-ease-standard) hover:underline focus-visible:underline disabled:pointer-events-none disabled:opacity-60",children:c?"Not me":"This is me"}),a&&i.jsx("p",{role:"alert","data-slot":"team-member-link-error",className:"text-destructive relative mt-1 text-xs",children:a}),s&&t&&i.jsxs("div",{className:"relative mt-1.5 flex w-fit max-w-full items-baseline",children:[i.jsxs("button",{type:"button","data-slot":"team-member-owner","data-card-aside":"",onClick:()=>t(s.id),"aria-label":`Show only ${s.displayName} and their agents`,className:"text-muted-foreground hover:text-foreground focus-visible:text-foreground focus-ring peer/owner relative min-w-0 truncate rounded text-xs underline-offset-2 transition-[color] duration-(--identity-answer) ease-(--identity-ease-standard) hover:underline focus-visible:underline",children:["by ",K(s)]}),l!==void 0&&l>0&&i.jsxs("span",{"aria-hidden":!0,"data-slot":"team-member-owner-count",className:"text-muted-foreground pointer-events-none absolute top-0 left-full ml-1 hidden text-xs whitespace-nowrap opacity-0 transition-opacity duration-(--identity-answer) ease-(--identity-ease-standard) peer-hover/owner:opacity-100 peer-focus-visible/owner:opacity-100 [@media(hover:hover)]:block",children:["· ",l," ",l===1?"agent":"agents"]})]})]})]})}const go=120;function fo({memberCount:e,reducedMotion:s}){return!s&&e<=go}const Rt="grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3";function mo({owner:e,onSelectOwner:s,ref:t}){const n=nt(e),o="col-span-full mt-3 flex min-w-0 items-center first:mt-0",r=i.jsxs(i.Fragment,{children:[i.jsx(st,{size:"xs",kind:n.kind,color:n.color,emoji:n.emoji,imageUrl:n.imageUrl,fallback:n.fallback,origin:n.origin}),i.jsx("span",{className:"truncate text-sm font-medium",children:e.displayName}),i.jsx("span",{className:"text-muted-foreground truncate text-xs",children:K(e)})]});return s?i.jsx("h2",{ref:t,className:o,children:i.jsx("button",{type:"button",onClick:()=>s(e.id),className:"focus-ring flex min-w-0 items-center gap-2 rounded",children:r})}):i.jsx("h2",{ref:t,className:k(o,"gap-2"),children:r})}function po({members:e,roster:s,grouped:t,onSelectOwner:n,onOpenProfile:o,onSetLinkedToMe:r,identityLinkState:a,className:l}){const u=Zt(),d=fo({memberCount:e.length,reducedMotion:u===!0}),f=(g,c)=>{const p=c?Je(g,s):void 0;return i.jsx(co,{member:g,owner:p,ownedAgentCount:p?nn(p.id,s):void 0,onSelectOwner:c?n:void 0,onOpenProfile:o,onSetLinkedToMe:r,linkPending:(a==null?void 0:a.pendingId)===g.id,...(a==null?void 0:a.errorId)===g.id&&a.errorMessage?{linkError:a.errorMessage}:{},layoutAnimated:d},g.id)},h=t?en(e,s).flatMap(g=>[g.owner?i.jsx(mo,{owner:g.owner,onSelectOwner:n},`cluster:${g.owner.id}`):i.jsx("h2",{className:"text-muted-foreground col-span-full mt-3 text-sm font-medium first:mt-0",children:"No owner"},"cluster:__unowned"),...g.members.map(c=>f(c,!1))]):e.map(g=>f(g,!0));return i.jsx("div",{"data-slot":t?"team-roster-groups":"team-roster-grid","data-testid":tn.teamRoster,"data-layout-animated":String(d),className:k(Rt,l),children:i.jsx(ge,{mode:"popLayout",initial:!1,children:h})})}const ho=6;function xo({count:e=ho}={}){return i.jsx("div",{className:Rt,"aria-busy":"true","aria-label":"Loading the team",children:Array.from({length:e}).map((s,t)=>i.jsxs("div",{className:"bg-card shadow-soft flex items-start gap-3 rounded-lg border p-4",children:[i.jsx(E,{className:"size-9 shrink-0 rounded-full"}),i.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[i.jsx(E,{className:"h-4 w-24"}),i.jsx(E,{className:"h-3 w-16"}),i.jsx(E,{className:"h-3 w-32"})]})]},t))})}const vo=[{value:"all",label:"All"},{value:"people",label:"People"},{value:"agents",label:"Agents"}];function So({filters:e,onFiltersChange:s,people:t,className:n}){const o=e.owner?t.find(r=>r.id===e.owner):void 0;return i.jsxs("div",{className:k("space-y-3",n),children:[i.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[i.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 overflow-x-auto pb-0.5",children:[i.jsx("div",{role:"group","aria-label":"Filter by kind",className:"flex items-center gap-1.5",children:vo.map(r=>i.jsx(I,{type:"button",size:"xs",variant:e.kind===r.value?"default":"outline","aria-pressed":e.kind===r.value,onClick:()=>s({kind:r.value}),className:"shrink-0",children:r.label},r.value))}),t.length>1&&i.jsx("div",{role:"group","aria-label":"Filter by person",className:"flex items-center gap-1.5",children:t.map(r=>i.jsx(I,{type:"button",size:"xs",variant:e.owner===r.id?"default":"outline","aria-pressed":e.owner===r.id,"aria-label":`Show only ${r.displayName} and their agents`,onClick:()=>s({owner:e.owner===r.id?void 0:r.id}),className:"max-w-40 shrink-0 truncate",children:K(r)},r.id))})]}),i.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[i.jsx(I,{type:"button",size:"xs",variant:e.group==="manager"?"default":"outline","aria-pressed":e.group==="manager",onClick:()=>s({group:e.group==="manager"?"none":"manager"}),className:"shrink-0",children:"Group by owner"}),i.jsxs("div",{className:"relative flex-1 sm:w-56 sm:flex-none",children:[i.jsx(sn,{"aria-hidden":!0,className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2"}),i.jsx(on,{type:"search","aria-label":"Search the team",placeholder:"Search",value:e.q??"",onChange:r=>s({q:r.target.value===""?void 0:r.target.value}),className:"h-8 pl-8 text-xs"})]})]})]}),o&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("p",{className:"text-muted-foreground text-xs",children:["Showing ",K(o)," and their agents"]}),i.jsxs(I,{type:"button",size:"xs",variant:"ghost",onClick:()=>s({owner:void 0}),children:[i.jsx(Ce,{"aria-hidden":!0,className:"size-3"}),"Clear"]})]})]})}const Co={agents:"Couldn’t read all your agents. Showing the rest.",authors:"Couldn’t read everyone on this install. Showing the rest.",account:"Couldn’t read your account, so your own name may be missing.",claims:"Couldn’t tell which of your agents are working right now.",rooms:"Couldn’t read your rooms, so where agents work may be missing.",sessions:"Couldn’t read recent chats, so “last active” may be missing."};function wo(e){return Co[e]??"Some of your team couldn’t be loaded."}function Ro({warnings:e,className:s}){const[t,n]=y.useState(!1);return!e||e.length===0||t?null:i.jsxs("div",{role:"status","data-slot":"team-roster-warnings",className:k("border-status-warning/40 bg-status-warning/10 flex items-start gap-2 rounded-lg border px-3 py-2",s),children:[i.jsx(Xe,{"aria-hidden":!0,className:"text-status-warning mt-0.5 size-4 shrink-0"}),i.jsx("ul",{className:"min-w-0 flex-1 space-y-0.5 text-xs",children:e.map(o=>i.jsx("li",{children:wo(o.source)},o.source))}),i.jsx(I,{type:"button",size:"xs",variant:"ghost","aria-label":"Dismiss",onClick:()=>n(!0),className:"-my-0.5 shrink-0",children:i.jsx(Ce,{"aria-hidden":!0,className:"size-3"})})]})}function yo({filters:e,onFiltersChange:s}){const[t,n]=y.useState(rn),o=e??t,r=j=>{e!==void 0?s(j):n(_=>({..._,...j}))},{open:a}=Se(),l=Mn(),{data:u,isLoading:d,isError:f,refetch:h}=Qe(),g=ot(d),c=y.useMemo(()=>(u==null?void 0:u.members)??[],[u]),p=y.useMemo(()=>Ke(c,o),[c,o]),m=y.useMemo(()=>c.filter(j=>j.kind==="human"),[c]),x=c.some(j=>j.kind==="agent"),v=y.useMemo(()=>$n(c),[c]),w=y.useMemo(()=>{const j=new Set(c.filter(_=>{const V=an(_,c);return V==="managed"||V==="system"}).flatMap(_=>{var V;return(V=_.agent)!=null&&V.manifestId?[_.agent.manifestId]:[]}));return _=>j.has(_.agentId)},[c]),R=o.kind!=="all"||o.owner!==void 0||(o.q??"")!=="";return f?i.jsx(rt,{className:"h-full",title:"Couldn’t load your team",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void h()}):i.jsxs(Fn,{width:"full",className:"flex flex-col gap-4",children:[i.jsx(Ro,{warnings:u==null?void 0:u.warnings}),i.jsx(So,{filters:o,onFiltersChange:r,people:m}),g?i.jsx(xo,{}):p.length>0?i.jsx(po,{members:p,roster:c,grouped:o.group==="manager",onSelectOwner:j=>r({owner:j}),onOpenProfile:a,onSetLinkedToMe:(j,_)=>l.mutate({memberId:j,linked:_}),identityLinkState:{...l.isPending&&l.variables?{pendingId:l.variables.memberId}:{},...l.isError&&l.variables?{errorId:l.variables.memberId,errorMessage:Pn(l.error,l.variables.linked)}:{}}}):i.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:R?"Nobody here matches that.":"Nobody to show yet."}),!g&&c.length>0&&!x&&i.jsx("div",{className:"flex justify-center py-6",children:i.jsx(St,{})}),!g&&x&&i.jsxs("section",{"aria-labelledby":"team-commitments",className:"flex flex-col gap-2 pt-2",children:[i.jsx("h2",{id:"team-commitments",className:"text-sm font-medium",children:"Commitments"}),i.jsx(In,{nameOf:v,canChange:w})]})]})}const jo=y.lazy(()=>hn(()=>import("./TopologyGraph-I4_mkMHM.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])).then(e=>({default:e.TopologyGraph}))),_o=.15,q={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:_o}};function No(){return i.jsxs(i.Fragment,{children:[i.jsx(ln,{children:"Team"}),i.jsx(Fo,{})]})}function Fo(){const e=un({from:"/_shell/team"}),s=We(),t=Ue(),n=dn(),[,o]=cn(),r=gn(),{data:a,isLoading:l,isError:u,refetch:d}=it(),f=ot(l),h=fn(e.view),g=e.agent,c=y.useMemo(()=>({kind:e.kind,owner:e.owner,group:e.group,q:e.q}),[e.kind,e.owner,e.group,e.q]);function p(w){s({...Y.team(),search:R=>({...R,...w})})}function m(){s({...Y.team(),search:w=>({...w,agent:void 0})})}const x=y.useMemo(()=>(a==null?void 0:a.namespaces.flatMap(w=>w.agents))??[],[a]),v=x.length===0&&!f&&!u&&(h==="table"||h==="topology");return u&&h!=="cards"?i.jsx(rt,{className:"h-full",title:"Couldn’t load agents",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void d()}):v?i.jsx("div",{className:"flex h-full flex-col items-center justify-center",children:i.jsx(St,{})}):i.jsx("div",{className:"flex h-full flex-col",children:i.jsxs(ge,{mode:"wait",initial:!1,children:[h==="cards"&&i.jsx($.div,{...q,className:"flex h-full flex-col",children:i.jsx(yo,{filters:c,onFiltersChange:p})},"view-cards"),h==="table"&&i.jsx($.div,{...q,className:"flex h-full flex-col",children:i.jsx(Js,{agents:x,isLoading:f,rosterFilters:c})},"view-table"),h==="topology"&&i.jsx($.div,{...q,className:"relative flex-1 overflow-hidden",children:i.jsxs("div",{className:"flex h-full",children:[i.jsx($.div,{layout:!0,className:"min-w-0 flex-1",transition:{type:"spring",stiffness:300,damping:30},children:i.jsx("div",{className:"absolute inset-0",children:i.jsx(y.Suspense,{fallback:i.jsxs("div",{className:"text-muted-foreground flex h-full items-center justify-center text-sm",children:[i.jsx(Z,{className:"mr-2"}),"Loading topology…"]}),children:i.jsx(jo,{onSelectAgent:w=>void s({...Y.team(),search:R=>({...R,agent:w})}),onViewProfile:(w,R)=>{Ze.getState().openProfileDocked(R)},onOpenChat:w=>{var j;const R=(j=x.find(_=>_.projectPath===w))==null?void 0:j.effectiveRuntimeId;R?r(w,{runtime:R}):o(w)},onOpenAdapterCatalog:()=>n(),onGoToDiscovery:()=>void s({...Y.team(),search:w=>({...w,view:"table"})})})})})}),t?i.jsx(mn,{open:!!g,onOpenChange:w=>!w&&m(),children:i.jsx(pn,{children:g&&i.jsx(qe,{agentId:g,onClose:m})})}):i.jsx(ge,{children:g&&i.jsx($.div,{initial:{width:0,opacity:0},animate:{width:256,opacity:1},exit:{width:0,opacity:0},transition:{type:"spring",stiffness:300,damping:30},className:"bg-background overflow-y-auto border-l",children:i.jsx(qe,{agentId:g,onClose:m})})})]})},"view-topology"),h==="denied"&&i.jsx($.div,{...q,children:i.jsx(to,{})},"view-denied"),h==="access"&&i.jsx($.div,{...q,children:i.jsx(ao,{})},"view-access")]})})}function Mo(){return i.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto",children:[i.jsx(An,{}),i.jsx("div",{className:"min-h-0 flex-1",children:i.jsx(No,{})})]})}const Oo=Object.freeze(Object.defineProperty({__proto__:null,component:Mo},Symbol.toStringTag,{value:"Module"}));export{wt as H,Oo as _};
|
|
28
|
+
*/function Te(e,s){return e?ws(e)?y.createElement(e,s):e:null}function ws(e){return Rs(e)||typeof e=="function"||ys(e)}function Rs(e){return typeof e=="function"&&(()=>{const s=Object.getPrototypeOf(e);return s.prototype&&s.prototype.isReactComponent})()}function ys(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function js(e){const s={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=y.useState(()=>({current:Ss(s)})),[n,o]=y.useState(()=>t.current.initialState);return t.current.setOptions(r=>({...r,...e,state:{...n,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),t.current}function _s(e){if("id"in e&&e.id)return e.id;if("accessorKey"in e&&typeof e.accessorKey=="string")return e.accessorKey}function Ns({columns:e,data:s,emptyMessage:t="No results.",tableOptions:n,groupBy:o,className:r,tableClassName:a}){var p;const l=Ue(),u=y.useMemo(()=>{var x;if(!l)return{};const m={};for(const v of e){const w=_s(v);w&&((x=v.meta)!=null&&x.hideOnMobile)&&(m[w]=!1)}return m},[e,l]),d=y.useMemo(()=>{var m;return{...u,...((m=n==null?void 0:n.state)==null?void 0:m.columnVisibility)??{}}},[u,(p=n==null?void 0:n.state)==null?void 0:p.columnVisibility]),f=js({data:s,columns:e,getCoreRowModel:Cs(),...n,state:{...n==null?void 0:n.state,columnVisibility:d}}),h=f.getRowModel().rows,g=f.getVisibleLeafColumns().length,c=y.useMemo(()=>{if(!o)return new Map;const m=new Map;for(const x of h){const v=o.key(x.original);m.set(v,(m.get(v)??0)+1)}return m},[o,h]);return i.jsx("div",{"data-slot":"data-table",className:z("rounded-md border",r),children:i.jsxs(yn,{className:a,children:[i.jsx(jn,{children:f.getHeaderGroups().map(m=>i.jsx(X,{children:m.headers.map(x=>{var v;return i.jsx(Ee,{className:(v=x.column.columnDef.meta)==null?void 0:v.headClassName,children:x.isPlaceholder?null:Te(x.column.columnDef.header,x.getContext())},x.id)})},m.id))}),i.jsx(_n,{children:h.length?h.map((m,x)=>{const v=o==null?void 0:o.key(m.original),w=x>0?o==null?void 0:o.key(h[x-1].original):void 0,R=v!==void 0&&v!==w;return i.jsxs(y.Fragment,{children:[R&&i.jsx(X,{"data-slot":"data-table-group-header",className:"bg-muted/40 hover:bg-muted/40",children:i.jsx(Ee,{colSpan:g,className:"h-8",children:o==null?void 0:o.header(v,c.get(v)??0)})}),i.jsx(X,{"data-state":m.getIsSelected()?"selected":void 0,children:m.getVisibleCells().map(j=>{var _;return i.jsx(ke,{className:(_=j.column.columnDef.meta)==null?void 0:_.cellClassName,children:Te(j.column.columnDef.cell,j.getContext())},j.id)})})]},m.id)}):i.jsx(X,{children:i.jsx(ke,{colSpan:g,className:"h-24 text-center",children:t})})})]})})}function Fs({onClearFilters:e,filterDescription:s}){return i.jsxs($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[i.jsx(xn,{className:"text-muted-foreground/50 size-10"}),i.jsx("p",{className:"text-muted-foreground text-sm",children:s?`No agents match ${s}`:"No agents match your filters"}),i.jsx(I,{variant:"outline",size:"sm",onClick:e,children:"Clear filters"})]})}function Ms({peopleOnly:e}){return i.jsxs($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col items-center justify-center gap-2 py-12 text-center","data-slot":"agent-roster-filter-empty",children:[i.jsx(jt,{className:"text-muted-foreground/50 size-10"}),i.jsx("p",{className:"text-muted-foreground max-w-xs text-sm",children:e?"This table lists agents. Switch to Cards to see people.":"No agents match this filter. Change it in Cards."})]})}const be=["needs-you","working","quiet"],Ps=1440*60*1e3;function $s(e,s=Date.now()){const t=Date.parse(e);return Number.isNaN(t)?!0:s-t>=Ps}const Is=30,As=25,Vs=20,Es=20,ks=10,Ds=0;function ve(e){const{healthStatus:s,taskCount:t,chatState:n}=e;return s==="unreachable"?{group:"needs-you",severity:Is}:n==="needs-attention"?{group:"needs-you",severity:As}:s==="stale"&&t>0&&e.isPastOnboardingGrace?{group:"needs-you",severity:Vs}:n==="active"?{group:"working",severity:Es}:s==="active"?{group:"working",severity:ks}:{group:"quiet",severity:Ds}}function Le(e){if(!e)return Number.NEGATIVE_INFINITY;const s=Date.parse(e);return Number.isNaN(s)?Number.NEGATIVE_INFINITY:s}function zs(e,s){const t=ve(e),n=ve(s),o=be.indexOf(t.group)-be.indexOf(n.group);if(o!==0)return o;const r=n.severity-t.severity;if(r!==0)return r;const a=Le(s.lastSeenAt)-Le(e.lastSeenAt);return a!==0?a:G(e).localeCompare(G(s))}function Ts(e,s="asc"){const t=s==="desc"?-1:1;return[...e].sort((n,o)=>t*zs(n,o))}const bs={"needs-you":{label:"Needs you",toneClass:"text-destructive"},working:{label:"Working",toneClass:"text-foreground"},quiet:{label:"Quiet",toneClass:"text-muted-foreground"}};function Ls(e,s,t){if(!t)return e;if(t.kind==="people")return[];if(!(t.owner!==void 0||(t.q??"").trim()!==""))return e;const o=s.filter(a=>a.kind==="agent");if(o.length===0)return e;const r=new Set(Ke(o,t).map(a=>a.id));return e.filter(a=>r.has(a.id))}const He=32,Hs=5,vt="Checked in",Gs={heartbeat:"Checked in",message_sent:"Got a message",response_complete:"Finished a reply"};function Os(e,s){return s===null&&e==="stale"}function Ge(e){return e.length<2||e.length>Hs?!1:e===e.toUpperCase()&&new RegExp("\\p{Lu}","u").test(e)}function Bs(e){const s=Gs[e.trim().toLowerCase()];if(s)return s;const t=e.replace(/[^\p{L}\p{N}]+/gu," ").trim().split(" ").filter(Boolean).map(a=>Ge(a)?a:a.toLowerCase());if(t.length===0)return vt;const n=t[0];t[0]=Ge(n)?n:n.replace(/^./u,a=>a.toUpperCase());const o=t.join(" "),r=Array.from(o);return r.length<=He?o:`${r.slice(0,He-1).join("").trimEnd()}…`}function Oe(e){const s=e.filter(t=>!!t);return s.length>0?s.join(" · "):null}function qs(e){const{healthStatus:s,lastSeenAt:t,lastSeenEvent:n,chatState:o}=e,r=t?ce(t):null,a=n?Bs(n):null;return s==="unreachable"?{primary:"Can’t be reached",secondary:Oe([a,r??"never seen"]),toneClass:"text-destructive"}:o==="needs-attention"?{primary:"A chat needs you",secondary:Oe([a,r]),toneClass:"text-destructive"}:Os(s,t)?o==="active"?{primary:"Active in a chat",secondary:null,toneClass:"text-foreground"}:{primary:"Not used yet",secondary:null,toneClass:"text-muted-foreground"}:{primary:a??vt,secondary:r,toneClass:s==="active"?"text-foreground":"text-muted-foreground"}}function Us(e){if(!e)return null;const s=e.split("/").filter(Boolean);return s.length<=2?e:s.slice(-2).join("/")}function Ks({row:e,onOpen:s}){const{color:t,emoji:n}=Ft(e),o=Us(e.projectPath),r=Ye(e.runtime).label;return i.jsxs("button",{type:"button",className:"flex w-full min-w-0 items-center gap-2 text-left",onClick:s,children:[i.jsx(Mt,{color:t,emoji:n,size:"xs"}),i.jsxs("span",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"block truncate text-sm font-medium hover:underline",children:G(e)}),i.jsxs("span",{className:"text-muted-foreground block truncate text-xs",children:[o??r,o&&i.jsxs("span",{className:"hidden md:inline",children:[" · ",r]})]})]}),e.isDefault&&i.jsxs(A,{size:"xs",variant:"outline",className:"shrink-0 max-md:border-0 max-md:px-0 max-md:py-0",children:[i.jsx(Pt,{className:"size-2.5 fill-current md:mr-0.5"}),i.jsx("span",{className:"sr-only md:not-sr-only",children:"Default"})]})]})}function Ys({row:e}){const{primary:s,secondary:t,toneClass:n}=qs(e);return i.jsxs("span",{className:"block min-w-0",children:[i.jsx("span",{className:z("block truncate text-sm",n),children:s}),t&&i.jsx("span",{className:"text-muted-foreground block truncate text-xs tabular-nums",children:t})]})}function Xs(e){return[{accessorKey:"name",header:"Agent",meta:{headClassName:"w-[42%] md:w-[38%]",cellClassName:"overflow-hidden"},cell:({row:s})=>i.jsx(Ks,{row:s.original,onOpen:()=>e.onNavigate(s.original.projectPath??"")})},{accessorKey:"lastSeenEvent",header:"Activity",meta:{headClassName:"truncate",cellClassName:"truncate"},cell:({row:s})=>i.jsx(Ys,{row:s.original})},{id:"managedBy",header:"Managed by",meta:{hideOnMobile:!0,headClassName:"w-[140px]",cellClassName:"overflow-hidden"},cell:({row:s})=>{const t=s.original.managedBy;return i.jsx("span",{"data-slot":"agent-managed-by",className:"text-muted-foreground block truncate text-xs",children:t??"—"})}},{accessorKey:"taskCount",header:"Scheduled",meta:{hideOnMobile:!0,headClassName:"w-[110px]"},cell:({row:s})=>{const t=s.original.taskCount;return t===0?i.jsx("span",{className:"text-muted-foreground text-xs",children:"—"}):i.jsxs(A,{variant:"outline",className:"whitespace-nowrap",children:[t," ",t===1?"schedule":"schedules"]})}},{id:"actions",header:"",meta:{headClassName:"w-[88px]"},cell:({row:s})=>{const t=s.original;return i.jsxs("div",{className:"flex items-center justify-end gap-1",children:[i.jsx(I,{variant:"ghost",size:"sm",className:"size-8 p-0",onClick:n=>{n.stopPropagation(),e.onNavigate(t.projectPath??"")},"aria-label":`Open chat with ${G(t)}`,children:i.jsx(_t,{className:"size-4"})}),i.jsx(I,{variant:"ghost",size:"sm",className:"size-8 p-0",onClick:n=>{n.stopPropagation(),e.onViewProfile(t.projectPath??"")},"aria-label":`Open ${G(t)}’s profile`,children:i.jsx(Nt,{className:"size-4"})})]})}}]}function Ws({group:e,count:s}){const{label:t,toneClass:n}=bs[e];return i.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-semibold tracking-wide uppercase",children:[e==="needs-you"&&i.jsx(Xe,{className:z("size-3.5",n)}),i.jsx("span",{className:n,children:t}),i.jsx("span",{className:"text-muted-foreground font-normal tabular-nums",children:s})]})}function Qs({rows:e,grouped:s,callbacks:t}){const n=y.useMemo(()=>Xs(t),[t]),o=y.useMemo(()=>s?{key:r=>ve(r).group,header:(r,a)=>i.jsx(Ws,{group:r,count:a})}:void 0,[s]);return i.jsx(Ns,{columns:n,data:e,groupBy:o,emptyMessage:"No agents registered.",className:"border-0",tableClassName:"table-fixed"})}function Zs({agents:e,isLoading:s,rosterFilters:t}){var O;const n=We(),o=$t(),{open:r}=Se(),a=It(),l=vn(te,{debounce:{search:200}}),{data:u}=Qe(),d=y.useMemo(()=>(u==null?void 0:u.members)??[],[u]),f=y.useMemo(()=>Ls(e,d,t),[e,d,t]),h=y.useMemo(()=>[...new Set(f.map(N=>N.namespace).filter(N=>!!N))],[f]),g=!l.sortField||l.sortField===_e,c=y.useMemo(()=>g?te.applyFilters(f,l.values):At(f,te,l.values,bt,{field:l.sortField,direction:l.sortDirection}),[f,g,l.values,l.sortField,l.sortDirection]),p=y.useMemo(()=>e.map(N=>N.projectPath).filter(N=>!!N),[e]),m=Cn(p),{data:x}=Vt({queryKey:Et.current(),queryFn:()=>o.getConfig(),staleTime:3e4}),v=y.useMemo(()=>{const N=new Map;for(const F of d){if(F.kind!=="agent")continue;const L=Ze(F,d);L&&N.set(F.id,K(L))}return N},[d]),w=y.useMemo(()=>{const N=c.map(F=>{var L;return{...F,chatState:(F.projectPath?m[F.projectPath]:void 0)??"fresh",isPastOnboardingGrace:$s(F.registeredAt),isDefault:((L=x==null?void 0:x.agents)==null?void 0:L.defaultAgent)===F.name,managedBy:v.get(F.id)??null}});return g?Ts(N,l.sortDirection):N},[c,m,(O=x==null?void 0:x.agents)==null?void 0:O.defaultAgent,v,g,l.sortDirection]),R=y.useCallback(N=>{const F=a.get(N);if(F===void 0){Je.getState().openProfileDocked(N);return}r(F)},[a,r]),j=y.useCallback(N=>{kt(o,N).then(F=>n(F)).catch(F=>{Dt(o,F),zt(N)})},[n,o]),_=y.useMemo(()=>({onNavigate:j,onViewProfile:R}),[j,R]);function V(){return f.length===0&&e.length>0?i.jsx(Ms,{peopleOnly:(t==null?void 0:t.kind)==="people"}):c.length===0&&f.length>0?i.jsx(Fs,{onClearFilters:l.clearAll,filterDescription:l.describeActive()}):i.jsx(Qs,{rows:w,grouped:g,callbacks:_})}return s?i.jsx("div",{className:"space-y-3 p-4 sm:px-6",children:Array.from({length:3}).map((N,F)=>i.jsx(E,{className:"h-14 w-full rounded-xl"},F))}):i.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[i.jsxs(H,{state:l,className:"sm:px-6",children:[i.jsx(H.Search,{placeholder:"Filter agents…"}),i.jsx(H.Primary,{name:"status"}),i.jsx(H.AddFilter,{dynamicOptions:{namespace:h}}),i.jsx(H.Sort,{options:Tt,defaultField:_e}),i.jsx(H.ResultCount,{count:c.length,total:f.length,noun:"agent"}),i.jsx(H.ActiveFilters,{})]}),i.jsx(Sn,{className:"min-h-0 flex-1",children:i.jsx("div",{className:"px-4 pb-4 sm:px-6",children:V()})})]})}const Js={animate:{transition:{staggerChildren:.1}}},eo={initial:{opacity:0},animate:{opacity:.2,transition:{duration:.3}}};function de(){return i.jsxs($.div,{variants:eo,className:"rounded-xl border border-dashed px-4 py-3",children:[i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx(E,{className:"size-3 rounded-full"}),i.jsx(E,{className:"h-3 w-32"}),i.jsx(E,{className:"h-3 w-16"}),i.jsx(E,{className:"ml-auto h-3 w-10"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(E,{className:"h-2.5 w-48"}),i.jsx(E,{className:"h-2.5 w-20"})]})]})}function St(){const e=Lt(n=>n.open),s=Ht(n=>n.open),t=Nn();return i.jsxs("div",{className:"relative w-full max-w-2xl px-4",children:[i.jsxs($.div,{variants:Js,initial:"initial",animate:"animate",className:"space-y-3",children:[i.jsx(de,{}),i.jsx(de,{}),i.jsx(de,{})]}),i.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:t?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-lg font-semibold",children:"No agents yet"}),i.jsxs(I,{size:"sm",className:"gap-1.5",onClick:()=>s(),children:[i.jsx(et,{className:"size-3.5"}),"Create agent"]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-lg font-semibold",children:"Bring in existing projects"}),i.jsxs(I,{size:"sm",className:"gap-1.5",onClick:e,children:[i.jsx(Vn,{className:"size-3.5"}),"Search for projects"]})]})})]})}function to(){const{data:e,isLoading:s}=Gt(),t=(e==null?void 0:e.denied)??[];return s?i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(J,{size:"md",className:"text-muted-foreground",label:"Loading blocked paths"})}):t.length===0?i.jsx(at,{icon:Ot,headline:"No blocked paths",description:"Folders you block from scans show up here."}):i.jsx("div",{className:"space-y-2 p-4",children:t.map(n=>i.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border px-4 py-3",children:[i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("p",{className:"truncate font-mono text-sm",title:n.path,children:n.path}),n.reason&&i.jsx("p",{className:"text-muted-foreground truncate text-xs",title:n.reason,children:n.reason})]}),i.jsx(A,{variant:"outline",className:"shrink-0",children:n.deniedBy})]},n.path))})}function no({namespace:e,agentCount:s,agents:t}){const[n,o]=y.useState(!1);return i.jsxs("div",{className:"rounded-xl border",children:[i.jsxs("button",{type:"button",onClick:()=>o(!n),className:"hover:bg-muted/50 flex w-full items-center gap-2 px-4 py-3 text-left transition-colors duration-150",children:[n?i.jsx(qt,{className:"size-4"}):i.jsx(Ut,{className:"size-4"}),i.jsx("span",{className:"text-sm font-medium",children:e}),i.jsxs(A,{variant:"secondary",className:"ml-auto",children:[s," agent",s!==1?"s":""]})]}),n&&i.jsx("div",{className:"space-y-2 border-t px-4 py-2",children:t.map(r=>i.jsx("div",{className:"flex items-center justify-between py-1",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-sm",children:G(r)}),i.jsx(A,{variant:"outline",children:tt(r.runtime)})]})},r.id))})]})}function so({sourceNamespace:e,targetNamespace:s,action:t,origin:n,onRemove:o}){const r=n==="default";return i.jsxs("div",{className:"flex items-center justify-between rounded-lg border px-3 py-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[i.jsx("span",{className:"font-mono",children:e}),i.jsx("span",{className:"text-muted-foreground",children:"→"}),i.jsx("span",{className:"font-mono",children:s}),i.jsx(A,{variant:t==="allow"?"default":"destructive",children:t}),r&&i.jsx(A,{tone:"neutral",variant:"outline",children:"built-in"})]}),r?i.jsx("span",{className:"text-muted-foreground flex size-8 items-center justify-center",title:"Built-in rule, always enforced. Not removable",children:i.jsx(Kt,{className:"size-4","aria-hidden":"true"})}):i.jsx(I,{type:"button",variant:"ghost",size:"icon-sm",onClick:o,className:"text-muted-foreground hover:bg-destructive/10 hover:text-destructive","aria-label":`Remove access from ${e} to ${s}`,children:i.jsx(Yt,{})})]})}const Ct="acl-open-mesh-explanation";function oo({namespaces:e,onAdd:s,isPending:t,inert:n}){const[o,r]=y.useState(""),[a,l]=y.useState("");function u(f){f.preventDefault(),!n&&o&&a&&o!==a&&(s(o,a),r(""),l(""))}const d=n?{"aria-disabled":!0,"aria-describedby":Ct}:{};return i.jsxs("form",{onSubmit:u,className:"flex items-end gap-2",children:[i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsx(Fe,{htmlFor:"acl-source",className:"text-muted-foreground text-xs font-medium",children:"Source"}),i.jsxs(Me,{value:o,onValueChange:n?()=>{}:r,children:[i.jsx(Pe,{id:"acl-source",className:"w-full aria-disabled:pointer-events-none aria-disabled:opacity-50",...d,children:i.jsx($e,{placeholder:"Pick a project"})}),i.jsx(Ie,{children:e.map(f=>i.jsx(Ae,{value:f,children:f},f))})]})]}),i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsx(Fe,{htmlFor:"acl-target",className:"text-muted-foreground text-xs font-medium",children:"Target"}),i.jsxs(Me,{value:a,onValueChange:n?()=>{}:l,children:[i.jsx(Pe,{id:"acl-target",className:"w-full aria-disabled:pointer-events-none aria-disabled:opacity-50",...d,children:i.jsx($e,{placeholder:"Pick a project"})}),i.jsx(Ie,{children:e.map(f=>i.jsx(Ae,{value:f,children:f},f))})]})]}),i.jsxs(I,{type:"submit",className:"aria-disabled:pointer-events-none aria-disabled:opacity-50",disabled:!n&&(t||!o||!a||o===a),...d,children:[t?i.jsx(J,{}):i.jsx(et,{}),"Allow access"]})]})}function ro({onGoToDiscovery:e}={}){const{data:s,isLoading:t}=it(),{mutate:n,isPending:o}=wn();if(t)return i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(J,{size:"md",className:"text-muted-foreground"})});const r=(s==null?void 0:s.namespaces)??[],a=(s==null?void 0:s.openMesh)??!1,l=((s==null?void 0:s.accessRules)??[]).filter(d=>!(d.origin==="explicit"&&d.sourceNamespace===Ne&&d.targetNamespace===Ne)),u=r.map(d=>d.namespace);return r.length===0?i.jsxs("div",{className:"space-y-6 p-4",children:[i.jsx(Ve,{}),i.jsx(at,{icon:Bt,headline:"You need agents in more than one project",description:"Add agents from a second folder to let two projects talk.",action:e?{label:"Go to Discovery",onClick:e}:void 0})]}):i.jsxs("div",{className:"space-y-6 p-4",children:[i.jsx(Ve,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Projects"}),r.map(d=>i.jsx(no,{namespace:d.namespace,agentCount:d.agentCount,agents:d.agents},d.namespace))]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Cross-project access rules"}),l.length===0?i.jsx("p",{className:"text-muted-foreground text-xs",children:"No rules yet. Agents only talk within their own project."}):i.jsx("div",{className:"space-y-1",children:l.map(d=>i.jsx(so,{sourceNamespace:d.sourceNamespace,targetNamespace:d.targetNamespace,action:d.action,origin:d.origin,onRemove:()=>n({sourceNamespace:d.sourceNamespace,targetNamespace:d.targetNamespace,action:"deny"})},`${d.sourceNamespace}-${d.targetNamespace}-${d.action}-${d.origin}`))})]}),u.length>=2&&i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Allow cross-project access"}),a&&i.jsx("p",{id:Ct,className:"text-muted-foreground text-xs",children:"Already allowed by the switch above. Turn it off to pick pairs."}),i.jsx(oo,{namespaces:u,isPending:o,inert:a,onAdd:(d,f)=>n({sourceNamespace:d,targetNamespace:f,action:"allow"})})]})]})}const wt={active:{label:"Active",dot:ne.working},inactive:{label:"Inactive",dot:ne["needs-you"]},stale:{label:"Stale",dot:"bg-muted-foreground/50"},unreachable:{label:"Unreachable",dot:ne.error}};function io(e){return e in wt}function Be({onClick:e}){return i.jsx("button",{type:"button",onClick:e,"aria-label":"Close detail panel",className:"text-muted-foreground hover:text-foreground",children:i.jsx(Ce,{className:"size-(--size-icon-sm)"})})}function qe({agentId:e,onClose:s}){const{data:t,isLoading:n}=Rn(e),{open:o}=Se();if(n)return i.jsx("div",{className:"flex w-64 items-center justify-center border-l p-4",children:i.jsx("span",{className:"text-muted-foreground text-sm",children:"Loading…"})});if(!t)return i.jsxs("div",{className:"w-64 border-l p-4",children:[i.jsx("div",{className:"flex justify-end",children:i.jsx(Be,{onClick:s})}),i.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:"Agent not found"})]});const r=io(t.status)?t.status:"stale",a=wt[r];return i.jsxs("div",{className:"w-64 overflow-y-auto border-l p-4",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsx("h3",{className:"truncate text-sm font-semibold",children:t.name}),i.jsx(Be,{onClick:s})]}),i.jsxs("div",{className:"space-y-3 text-xs",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:z("h-2.5 w-2.5 rounded-full",a.dot),"aria-hidden":"true"}),i.jsx("span",{children:a.label})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Last seen: "}),i.jsx("span",{children:t.lastSeenAt?ce(t.lastSeenAt):"Never"})]}),t.lastSeenEvent&&i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Last event: "}),i.jsx("span",{children:t.lastSeenEvent})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Runs on: "}),i.jsx(A,{size:"xs",variant:"secondary",children:tt(t.runtime)})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Registered: "}),i.jsx("span",{children:t.registeredAt?ce(t.registeredAt):"Unknown"})]}),Array.isArray(t.capabilities)&&t.capabilities.length>0&&i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground mb-1 block",children:"Capabilities:"}),i.jsx("div",{className:"flex flex-wrap gap-1",children:t.capabilities.map(l=>i.jsx(A,{size:"xs",variant:"outline",children:l},l))})]})]}),i.jsx("div",{className:"mt-4 space-y-2 border-t pt-3",children:i.jsxs("button",{type:"button",onClick:()=>o(e),className:"hover:bg-muted inline-flex w-full items-center justify-center gap-2 rounded-md border px-3 py-1.5 text-xs font-medium transition-colors duration-150",children:[i.jsx(Xt,{className:"size-3.5"}),"View profile"]})})]})}function ao(){return i.jsx(ro,{})}function lo(e){var s;if(e.agent){const t=Ye(e.agent.runtime).label;return e.agent.model?`${t} · ${e.agent.model}`:t}return(s=e.person)!=null&&s.role?e.person.role:e.origin==="local"?"On this machine":`On ${Zt(e.origin.platform)}`}const uo={layout:"position",initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.97,transition:{duration:.15}},transition:{layout:{type:"spring",stiffness:280,damping:32},duration:.2,ease:[0,0,.2,1]}};function co({member:e,owner:s,onSelectOwner:t,onOpenProfile:n,onSetLinkedToMe:o,linkPending:r=!1,linkError:a,ownedAgentCount:l,layoutAnimated:u=!1,ref:d,className:f}){var p,m,x;const h=nt(e),g=Wt(e),c=(p=e.person)==null?void 0:p.linkedToYou;return i.jsxs($.article,{ref:d,...u?uo:{},"data-slot":"team-member-card","data-member-id":e.id,"data-layout-animated":String(u),style:{"--identity-color":h.color},className:z("bg-card shadow-soft relative flex items-start gap-3 rounded-lg border p-4","border-[color-mix(in_oklch,var(--identity-color)_var(--identity-border-strength),hsl(var(--border)))]","[--identity-border-strength:0%]",n&&["transition-[box-shadow,border-color,translate,scale] duration-(--identity-settle) ease-(--identity-ease-standard)","hover:shadow-elevated hover:-translate-y-px","hover:[--identity-border-strength:var(--identity-border-mix)]","has-[[data-slot=team-member-open]:focus-visible]:shadow-elevated has-[[data-slot=team-member-open]:focus-visible]:-translate-y-px","has-[[data-slot=team-member-open]:focus-visible]:[--identity-border-strength:var(--identity-border-mix)]","active:translate-y-0 active:scale-[0.99] active:duration-(--identity-press)",Qt,"has-[[data-card-aside]:hover]:shadow-soft has-[[data-card-aside]:hover]:translate-y-0 has-[[data-card-aside]:hover]:[--identity-border-strength:0%]","has-[[data-card-aside]:focus-visible]:shadow-soft has-[[data-card-aside]:focus-visible]:translate-y-0 has-[[data-card-aside]:focus-visible]:[--identity-border-strength:0%]","[&:has([data-card-aside]:hover)_[data-slot=identity-badge]]:scale-100 [&:has([data-card-aside]:hover)_[data-slot=identity-badge]]:rotate-0","[&:has([data-card-aside]:focus-visible)_[data-slot=identity-badge]]:scale-100 [&:has([data-card-aside]:focus-visible)_[data-slot=identity-badge]]:rotate-0","has-[[data-card-aside]:active]:scale-100"],f),children:[i.jsx(st,{size:"md",kind:h.kind,color:h.color,emoji:h.emoji,imageUrl:h.imageUrl,fallback:h.fallback,origin:h.origin}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:[i.jsx("h3",{className:"min-w-0 truncate text-sm font-medium",children:n?i.jsx("button",{type:"button","data-slot":"team-member-open",onClick:()=>n(e.id),"aria-label":`Open ${e.displayName}’s profile`,className:"focus-ring max-w-full truncate rounded text-left after:absolute after:inset-0 after:rounded-lg after:content-['']",children:e.displayName}):e.displayName}),e.isSelf&&i.jsx(A,{size:"xs",variant:"secondary",children:"you"}),((m=e.agent)==null?void 0:m.isDefault)&&i.jsx(A,{size:"xs",variant:"outline",children:"default"}),c&&i.jsx(A,{size:"xs",variant:"secondary",children:"also you"})]}),e.handle!==null&&i.jsxs("p",{"data-slot":"team-member-handle",className:"text-muted-foreground truncate text-xs",children:["@",e.handle]}),g&&i.jsx("p",{"data-slot":"team-member-name-source",className:"text-muted-foreground truncate text-xs",children:g}),i.jsx("p",{className:"text-muted-foreground mt-1.5 truncate text-xs",children:lo(e)}),((x=e.agent)==null?void 0:x.recentlyActive)&&i.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Active in the last hour"}),c!==void 0&&o&&i.jsx("button",{type:"button","data-slot":"team-member-link-to-me","data-card-aside":"",disabled:r,onClick:()=>o(e.id,!c),"aria-label":c?`Stop treating ${e.displayName} as you`:`Tell DorkOS that ${e.displayName} is you`,className:"text-muted-foreground hover:text-foreground focus-visible:text-foreground focus-ring relative mt-1.5 block w-fit max-w-full truncate rounded text-xs underline-offset-2 transition-[color] duration-(--identity-answer) ease-(--identity-ease-standard) hover:underline focus-visible:underline disabled:pointer-events-none disabled:opacity-60",children:c?"Not me":"This is me"}),a&&i.jsx("p",{role:"alert","data-slot":"team-member-link-error",className:"text-destructive relative mt-1 text-xs",children:a}),s&&t&&i.jsxs("div",{className:"relative mt-1.5 flex w-fit max-w-full items-baseline",children:[i.jsxs("button",{type:"button","data-slot":"team-member-owner","data-card-aside":"",onClick:()=>t(s.id),"aria-label":`Show only ${s.displayName} and their agents`,className:"text-muted-foreground hover:text-foreground focus-visible:text-foreground focus-ring peer/owner relative min-w-0 truncate rounded text-xs underline-offset-2 transition-[color] duration-(--identity-answer) ease-(--identity-ease-standard) hover:underline focus-visible:underline",children:["by ",K(s)]}),l!==void 0&&l>0&&i.jsxs("span",{"aria-hidden":!0,"data-slot":"team-member-owner-count",className:"text-muted-foreground pointer-events-none absolute top-0 left-full ml-1 hidden text-xs whitespace-nowrap opacity-0 transition-opacity duration-(--identity-answer) ease-(--identity-ease-standard) peer-hover/owner:opacity-100 peer-focus-visible/owner:opacity-100 [@media(hover:hover)]:block",children:["· ",l," ",l===1?"agent":"agents"]})]})]})]})}const go=120;function fo({memberCount:e,reducedMotion:s}){return!s&&e<=go}const Rt="grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3";function mo({owner:e,onSelectOwner:s,ref:t}){const n=nt(e),o="col-span-full mt-3 flex min-w-0 items-center first:mt-0",r=i.jsxs(i.Fragment,{children:[i.jsx(st,{size:"xs",kind:n.kind,color:n.color,emoji:n.emoji,imageUrl:n.imageUrl,fallback:n.fallback,origin:n.origin}),i.jsx("span",{className:"truncate text-sm font-medium",children:e.displayName}),i.jsx("span",{className:"text-muted-foreground truncate text-xs",children:K(e)})]});return s?i.jsx("h2",{ref:t,className:o,children:i.jsx("button",{type:"button",onClick:()=>s(e.id),className:"focus-ring flex min-w-0 items-center gap-2 rounded",children:r})}):i.jsx("h2",{ref:t,className:z(o,"gap-2"),children:r})}function po({members:e,roster:s,grouped:t,onSelectOwner:n,onOpenProfile:o,onSetLinkedToMe:r,identityLinkState:a,className:l}){const u=Jt(),d=fo({memberCount:e.length,reducedMotion:u===!0}),f=(g,c)=>{const p=c?Ze(g,s):void 0;return i.jsx(co,{member:g,owner:p,ownedAgentCount:p?nn(p.id,s):void 0,onSelectOwner:c?n:void 0,onOpenProfile:o,onSetLinkedToMe:r,linkPending:(a==null?void 0:a.pendingId)===g.id,...(a==null?void 0:a.errorId)===g.id&&a.errorMessage?{linkError:a.errorMessage}:{},layoutAnimated:d},g.id)},h=t?en(e,s).flatMap(g=>[g.owner?i.jsx(mo,{owner:g.owner,onSelectOwner:n},`cluster:${g.owner.id}`):i.jsx("h2",{className:"text-muted-foreground col-span-full mt-3 text-sm font-medium first:mt-0",children:"No owner"},"cluster:__unowned"),...g.members.map(c=>f(c,!1))]):e.map(g=>f(g,!0));return i.jsx("div",{"data-slot":t?"team-roster-groups":"team-roster-grid","data-testid":tn.teamRoster,"data-layout-animated":String(d),className:z(Rt,l),children:i.jsx(ge,{mode:"popLayout",initial:!1,children:h})})}const ho=6;function xo({count:e=ho}={}){return i.jsx("div",{className:Rt,"aria-busy":"true","aria-label":"Loading the team",children:Array.from({length:e}).map((s,t)=>i.jsxs("div",{className:"bg-card shadow-soft flex items-start gap-3 rounded-lg border p-4",children:[i.jsx(E,{className:"size-9 shrink-0 rounded-full"}),i.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[i.jsx(E,{className:"h-4 w-24"}),i.jsx(E,{className:"h-3 w-16"}),i.jsx(E,{className:"h-3 w-32"})]})]},t))})}const vo=[{value:"all",label:"All"},{value:"people",label:"People"},{value:"agents",label:"Agents"}];function So({filters:e,onFiltersChange:s,people:t,className:n}){const o=e.owner?t.find(r=>r.id===e.owner):void 0;return i.jsxs("div",{className:z("space-y-3",n),children:[i.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[i.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 overflow-x-auto pb-0.5",children:[i.jsx("div",{role:"group","aria-label":"Filter by kind",className:"flex items-center gap-1.5",children:vo.map(r=>i.jsx(I,{type:"button",size:"xs",variant:e.kind===r.value?"default":"outline","aria-pressed":e.kind===r.value,onClick:()=>s({kind:r.value}),className:"shrink-0",children:r.label},r.value))}),t.length>1&&i.jsx("div",{role:"group","aria-label":"Filter by person",className:"flex items-center gap-1.5",children:t.map(r=>i.jsx(I,{type:"button",size:"xs",variant:e.owner===r.id?"default":"outline","aria-pressed":e.owner===r.id,"aria-label":`Show only ${r.displayName} and their agents`,onClick:()=>s({owner:e.owner===r.id?void 0:r.id}),className:"max-w-40 shrink-0 truncate",children:K(r)},r.id))})]}),i.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[i.jsx(I,{type:"button",size:"xs",variant:e.group==="manager"?"default":"outline","aria-pressed":e.group==="manager",onClick:()=>s({group:e.group==="manager"?"none":"manager"}),className:"shrink-0",children:"Group by owner"}),i.jsxs("div",{className:"relative flex-1 sm:w-56 sm:flex-none",children:[i.jsx(sn,{"aria-hidden":!0,className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2"}),i.jsx(on,{type:"search","aria-label":"Search the team",placeholder:"Search",value:e.q??"",onChange:r=>s({q:r.target.value===""?void 0:r.target.value}),className:"h-8 pl-8 text-xs"})]})]})]}),o&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("p",{className:"text-muted-foreground text-xs",children:["Showing ",K(o)," and their agents"]}),i.jsxs(I,{type:"button",size:"xs",variant:"ghost",onClick:()=>s({owner:void 0}),children:[i.jsx(Ce,{"aria-hidden":!0,className:"size-3"}),"Clear"]})]})]})}const Co={agents:"Couldn’t read all your agents. Showing the rest.",authors:"Couldn’t read everyone on this install. Showing the rest.",account:"Couldn’t read your account, so your own name may be missing.",claims:"Couldn’t tell which of your agents are working right now.",rooms:"Couldn’t read your rooms, so where agents work may be missing.",sessions:"Couldn’t read recent chats, so “last active” may be missing."};function wo(e){return Co[e]??"Some of your team couldn’t be loaded."}function Ro({warnings:e,className:s}){const[t,n]=y.useState(!1);return!e||e.length===0||t?null:i.jsxs("div",{role:"status","data-slot":"team-roster-warnings",className:z("border-status-warning/40 bg-status-warning/10 flex items-start gap-2 rounded-lg border px-3 py-2",s),children:[i.jsx(Xe,{"aria-hidden":!0,className:"text-status-warning mt-0.5 size-4 shrink-0"}),i.jsx("ul",{className:"min-w-0 flex-1 space-y-0.5 text-xs",children:e.map(o=>i.jsx("li",{children:wo(o.source)},o.source))}),i.jsx(I,{type:"button",size:"xs",variant:"ghost","aria-label":"Dismiss",onClick:()=>n(!0),className:"-my-0.5 shrink-0",children:i.jsx(Ce,{"aria-hidden":!0,className:"size-3"})})]})}function yo({filters:e,onFiltersChange:s}){const[t,n]=y.useState(rn),o=e??t,r=j=>{e!==void 0?s(j):n(_=>({..._,...j}))},{open:a}=Se(),l=Mn(),{data:u,isLoading:d,isError:f,refetch:h}=Qe(),g=ot(d),c=y.useMemo(()=>(u==null?void 0:u.members)??[],[u]),p=y.useMemo(()=>Ke(c,o),[c,o]),m=y.useMemo(()=>c.filter(j=>j.kind==="human"),[c]),x=c.some(j=>j.kind==="agent"),v=y.useMemo(()=>$n(c),[c]),w=y.useMemo(()=>{const j=new Set(c.filter(_=>{const V=an(_,c);return V==="managed"||V==="system"}).flatMap(_=>{var V;return(V=_.agent)!=null&&V.manifestId?[_.agent.manifestId]:[]}));return _=>j.has(_.agentId)},[c]),R=o.kind!=="all"||o.owner!==void 0||(o.q??"")!=="";return f?i.jsx(rt,{className:"h-full",title:"Couldn’t load your team",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void h()}):i.jsxs(Fn,{width:"full",className:"flex flex-col gap-4",children:[i.jsx(Ro,{warnings:u==null?void 0:u.warnings}),i.jsx(So,{filters:o,onFiltersChange:r,people:m}),g?i.jsx(xo,{}):p.length>0?i.jsx(po,{members:p,roster:c,grouped:o.group==="manager",onSelectOwner:j=>r({owner:j}),onOpenProfile:a,onSetLinkedToMe:(j,_)=>l.mutate({memberId:j,linked:_}),identityLinkState:{...l.isPending&&l.variables?{pendingId:l.variables.memberId}:{},...l.isError&&l.variables?{errorId:l.variables.memberId,errorMessage:Pn(l.error,l.variables.linked)}:{}}}):i.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:R?"Nobody here matches that.":"Nobody to show yet."}),!g&&c.length>0&&!x&&i.jsx("div",{className:"flex justify-center py-6",children:i.jsx(St,{})}),!g&&x&&i.jsxs("section",{"aria-labelledby":"team-commitments",className:"flex flex-col gap-2 pt-2",children:[i.jsx("h2",{id:"team-commitments",className:"text-sm font-medium",children:"Commitments"}),i.jsx(In,{nameOf:v,canChange:w})]})]})}const jo=y.lazy(()=>hn(()=>import("./TopologyGraph-LpxkBhGK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])).then(e=>({default:e.TopologyGraph}))),_o=.15,q={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:_o}};function No(){return i.jsxs(i.Fragment,{children:[i.jsx(ln,{children:"Team"}),i.jsx(Fo,{})]})}function Fo(){const e=un({from:"/_shell/team"}),s=We(),t=Ue(),n=dn(),[,o]=cn(),r=gn(),{data:a,isLoading:l,isError:u,refetch:d}=it(),f=ot(l),h=fn(e.view),g=e.agent,c=y.useMemo(()=>({kind:e.kind,owner:e.owner,group:e.group,q:e.q}),[e.kind,e.owner,e.group,e.q]);function p(w){s({...Y.team(),search:R=>({...R,...w})})}function m(){s({...Y.team(),search:w=>({...w,agent:void 0})})}const x=y.useMemo(()=>(a==null?void 0:a.namespaces.flatMap(w=>w.agents))??[],[a]),v=x.length===0&&!f&&!u&&(h==="table"||h==="topology");return u&&h!=="cards"?i.jsx(rt,{className:"h-full",title:"Couldn’t load agents",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void d()}):v?i.jsx("div",{className:"flex h-full flex-col items-center justify-center",children:i.jsx(St,{})}):i.jsx("div",{className:"flex h-full flex-col",children:i.jsxs(ge,{mode:"wait",initial:!1,children:[h==="cards"&&i.jsx($.div,{...q,className:"flex h-full flex-col",children:i.jsx(yo,{filters:c,onFiltersChange:p})},"view-cards"),h==="table"&&i.jsx($.div,{...q,className:"flex h-full flex-col",children:i.jsx(Zs,{agents:x,isLoading:f,rosterFilters:c})},"view-table"),h==="topology"&&i.jsx($.div,{...q,className:"relative flex-1 overflow-hidden",children:i.jsxs("div",{className:"flex h-full",children:[i.jsx($.div,{layout:!0,className:"min-w-0 flex-1",transition:{type:"spring",stiffness:300,damping:30},children:i.jsx("div",{className:"absolute inset-0",children:i.jsx(y.Suspense,{fallback:i.jsxs("div",{className:"text-muted-foreground flex h-full items-center justify-center text-sm",children:[i.jsx(J,{className:"mr-2"}),"Loading topology…"]}),children:i.jsx(jo,{onSelectAgent:w=>void s({...Y.team(),search:R=>({...R,agent:w})}),onViewProfile:(w,R)=>{Je.getState().openProfileDocked(R)},onOpenChat:w=>{var j;const R=(j=x.find(_=>_.projectPath===w))==null?void 0:j.effectiveRuntimeId;R?r(w,{runtime:R}):o(w)},onOpenAdapterCatalog:()=>n(),onGoToDiscovery:()=>void s({...Y.team(),search:w=>({...w,view:"table"})})})})})}),t?i.jsx(mn,{open:!!g,onOpenChange:w=>!w&&m(),children:i.jsx(pn,{children:g&&i.jsx(qe,{agentId:g,onClose:m})})}):i.jsx(ge,{children:g&&i.jsx($.div,{initial:{width:0,opacity:0},animate:{width:256,opacity:1},exit:{width:0,opacity:0},transition:{type:"spring",stiffness:300,damping:30},className:"bg-background overflow-y-auto border-l",children:i.jsx(qe,{agentId:g,onClose:m})})})]})},"view-topology"),h==="denied"&&i.jsx($.div,{...q,children:i.jsx(to,{})},"view-denied"),h==="access"&&i.jsx($.div,{...q,children:i.jsx(ao,{})},"view-access")]})})}function Mo(){return i.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto",children:[i.jsx(An,{}),i.jsx("div",{className:"min-h-0 flex-1",children:i.jsx(No,{})})]})}const Oo=Object.freeze(Object.defineProperty({__proto__:null,component:Mo},Symbol.toStringTag,{value:"Module"}));export{wt as H,Oo as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a1 as R,a2 as C,aP as j,a3 as T,r as c,gW as S,gX as N,gk as A,j as t,G as M,e as x,gY as k,gZ as P,eb as q,B as v,g_ as _,cj as B,g$ as D,h0 as F,l as b}from"./index-DKTd8X7n.js";import{C as O,P as Q}from"./index-BsmR2hi4.js";import{t as H,u as K,a as $,A as L,R as z,C as G,b as Y,c as Z,d as W,e as X}from"./ChannelComposer-DIRPjyyf.js";import{E as J}from"./empty-state-Bxfi7_ss.js";import{P as U}from"./page-container-D03bhclt.js";import"./file-C-ooqbRY.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-DPQimlUD.js";import"./WidgetErrorCard-CAUx4KUI.js";import"./index-CSqz4B0v.js";import"./card-D4ek-VvX.js";import"./progress-BB97hlmb.js";import"./markdown-content-CN_dGlgE.js";import"./table-BIdFvzBs.js";import"./package-BVNiaGrb.js";import"./heart-DnR_GX4I.js";import"./git-branch-D5xr7U5P.js";import"./file-text-BJt8biPY.js";import"./paperclip-DQQVX5tJ.js";import"./index-B0jt7Nng.js";import"./RuntimeSetupDialog-CUFie4LV.js";import"./inline-code-DlVYFFW7.js";import"./list-runtime-types-D5ZO30FL.js";import"./RuntimeConnectFlow-DN2ElvcH.js";import"./useMutationState-BAU_J-u3.js";import"./runtime-connect-Dn0T5YWv.js";import"./repeat-DPzic7-j.js";import"./use-room-sessions-CoEIaBRt.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-C6OT4gx4.js";import"./rotate-ccw-clock-gqBy98sI.js";import"./unplug-xlfZ61jC.js";import"./message-square-off-DlkAPJdd.js";import"./registry-DRvQ3ChB.js";const V=3e4;function ee(){const e=R();return C({queryKey:j.threads(),queryFn:()=>e.listThreads(),staleTime:V})}function te(e){const o=T(),n=c.useRef(null);c.useEffect(()=>{if(e===void 0)return;const r=n.current,i=new Map(e.map(s=>[s.rootEntryId,s.lastActivityAt]));if(n.current=i,r===null)return;const a=new Set;for(const s of e){const d=r.get(s.rootEntryId);d!==void 0&&d!==s.lastActivityAt&&a.add(s.roomId)}for(const s of a)o.invalidateQueries({queryKey:j.entries(s)})},[e,o])}const y=12;function oe(e){const[o,n]=c.useState(y),[r,i]=c.useState(null),a=c.useRef(new Set),s=c.useMemo(()=>e.filter((p,m)=>m<o||a.current.has(p.rootEntryId)),[e,o]);c.useEffect(()=>{for(const p of s)a.current.add(p.rootEntryId)},[s]);const d=e.length>s.length,f=c.useCallback(()=>{const p=new Set(s.map(u=>u.rootEntryId)),m=e.filter(u=>!p.has(u.rootEntryId));m.length<=y&&m[0]!==void 0&&i(m[0].rootEntryId),n(u=>u+y)},[e,s]),h=c.useCallback(()=>i(null),[]);return{visible:s,hasMore:d,showMore:f,focusId:r,focused:h}}function re(e,o){const r=S(e).data;return c.useMemo(()=>{let i;const a=[];for(const s of r??[])s.id===o?i=s:H(s)===o&&a.push(s);return{root:i,latest:a.slice(-2),loaded:r!==void 0}},[r,o])}function se(e){var n;return e.target.closest('button, a, input, textarea, [role="button"], [role="menuitem"]')?!1:(((n=window.getSelection())==null?void 0:n.toString())??"")===""}function ne({thread:e,agents:o,onOpen:n}){const i=N(e.roomId).data,a=A({kind:e.roomKind,slug:e.roomSlug,title:e.roomTitle});return t.jsxs("article",{"aria-label":`Thread in ${a}`,"data-testid":"thread-card","data-thread-root":e.rootEntryId,className:"bg-card rounded-lg border",children:[t.jsxs("header",{className:"flex items-center gap-2 border-b px-4 py-2",children:[t.jsx("button",{type:"button",onClick:()=>n(e),className:M("focus-ring hover:text-foreground min-w-0 truncate rounded text-sm",e.unreadCount>0?"text-foreground font-semibold":"text-muted-foreground"),children:a}),e.unreadCount>0&&t.jsxs("span",{className:"text-primary shrink-0 text-xs font-medium",children:[e.unreadCount," new"]})]}),i===void 0?t.jsx(ie,{}):t.jsx(ae,{room:i,thread:e,agents:o,onOpen:n})]})}function ae({room:e,thread:o,agents:n,onOpen:r}){const{root:i,latest:a,loaded:s}=re(e.id,o.rootEntryId),d=K({room:e,threadRootId:o.rootEntryId}),f=k(e.id,o.rootEntryId),[h,p]=c.useState(!1),m=P(e.members,e.viewerAuthorId),u=c.useMemo(()=>$(e.members,e.formerAuthors),[e.members,e.formerAuthors]),w=c.useMemo(()=>new Map([...u].map(([l,E])=>[l,E.displayName])),[u]),g=Math.max(0,o.replyCount-a.length),I=l=>t.jsx(Y,{roomId:e.id,entry:l,author:Z(W(l,u),u,n.faces),authorRef:u.get(l.authorId),authors:u,viewerAuthorId:e.viewerAuthorId,authorNames:w,reactionFrequents:e.reactionFrequents,isMember:m,grouping:{position:"only"}},l.id);return t.jsx(L,{known:n,children:t.jsxs(O.Root,{surface:"room",capabilities:z,target:d.target,anchor:"rail",children:[t.jsxs("div",{className:"py-2",children:[i!==void 0?t.jsx("div",{"data-testid":"thread-card-root",className:"cursor-pointer",onClick:l=>{se(l)&&r(o)},children:I(i)}):t.jsx("button",{type:"button",onClick:()=>r(o),className:"focus-ring text-foreground hover:bg-accent/40 mx-2 block w-[calc(100%-1rem)] rounded px-2 py-1.5 text-left text-sm",children:s?o.rootPreview||"A message with no text":t.jsx(x,{className:"h-4 w-2/3"})}),g>0&&t.jsx("button",{type:"button","data-testid":"thread-card-more",onClick:()=>r(o),className:"focus-ring text-muted-foreground hover:text-foreground mx-[var(--msg-padding-x)] my-1 rounded text-xs",children:g===1?"1 more reply":`${g} more replies`}),a.map(I),f.map(l=>t.jsx(Q,{post:l,viewerAuthorId:e.viewerAuthorId},l.clientId))]}),m&&t.jsx("div",{className:"border-t",children:h?t.jsx(G,{room:e,threadRootId:o.rootEntryId,attachments:d.attachments,focusOnMount:!0}):t.jsx("button",{type:"button","data-testid":"thread-card-reply",onClick:()=>p(!0),className:"focus-ring text-muted-foreground hover:text-foreground w-full rounded-b-lg px-4 py-2.5 text-left text-sm",children:"Reply…"})})]})})}function ie(){return t.jsxs("div",{className:"flex flex-col gap-2 px-4 py-3","aria-hidden":!0,children:[t.jsx(x,{className:"h-4 w-1/3"}),t.jsx(x,{className:"h-4 w-4/5"})]})}function de(){var n;const e=B(),o=((n=D().room)==null?void 0:n.id)??null;return c.useCallback(r=>{if(F.getState().openThread(r.roomId,r.rootEntryId,!1),r.roomId===o){e({...b.home(),search:{thread:r.rootEntryId}});return}e({...b.channels(),search:{id:r.roomId,thread:r.rootEntryId}})},[e,o])}const ce=[];function ue(){const e=ee(),o=X(),n=de(),r=oe(e.data??ce),i=c.useRef(null);te(e.data);const{focusId:a,focused:s}=r;return c.useEffect(()=>{var f,h;if(a===null)return;const d=(f=i.current)==null?void 0:f.querySelector(`[data-thread-root="${CSS.escape(a)}"]`);(h=d==null?void 0:d.querySelector("button"))==null||h.focus(),s()},[a,s]),t.jsxs(U,{width:"reading",children:[t.jsx("header",{className:"mb-4",children:t.jsx(q,{children:"Threads"})}),e.isPending?t.jsx("div",{className:"flex flex-col gap-3","aria-busy":!0,"data-testid":"threads-loading",children:[0,1,2].map(d=>t.jsx(x,{className:"h-32 w-full rounded-lg"},d))}):e.isError?t.jsxs("div",{className:"text-muted-foreground flex flex-col items-start gap-2 text-sm",children:[t.jsx("p",{children:"Couldn’t load your threads."}),t.jsx(v,{variant:"outline",size:"sm",onClick:()=>void e.refetch(),children:"Try again"})]}):e.data.length===0?t.jsx(J,{icon:_,headline:"No threads yet",description:"Reply to a message in any channel or DM, and the thread shows up here."}):t.jsxs(t.Fragment,{children:[t.jsx("ul",{ref:i,className:"flex flex-col gap-3","aria-label":"Your threads",children:r.visible.map(d=>t.jsx("li",{children:t.jsx(ne,{thread:d,agents:o,onOpen:n})},d.rootEntryId))}),r.hasMore&&t.jsx(v,{variant:"outline",size:"sm",className:"mt-3 self-start",onClick:r.showMore,children:"Show more"})]})]})}const ze=ue;export{ze as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as o}from"./ExtensionPageRoute-BztrmZNp.js";import"./index-DKTd8X7n.js";import"./empty-state-Bxfi7_ss.js";import"./page-container-D03bhclt.js";import"./use-dev-links-BoZCIc4h.js";import"./UnlinkDialog-BN2odbqD.js";const e=o;export{e as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as o}from"./ExtensionPageRoute-BztrmZNp.js";import"./index-DKTd8X7n.js";import"./empty-state-Bxfi7_ss.js";import"./page-container-D03bhclt.js";import"./use-dev-links-BoZCIc4h.js";import"./UnlinkDialog-BN2odbqD.js";const e=o;export{e as component};
|
package/dist/client/assets/{abnfDiagram-WEYOIA3C-CrvoN15x.js → abnfDiagram-WEYOIA3C-BuEHMh0D.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as a}from"./chunk-2E7WHVMD-
|
|
1
|
+
import{g as p,r as u,d as a}from"./chunk-2E7WHVMD-ClO15ze9.js";import{p as f}from"./chunk-JWPE2WC7-CnsdZOv0.js";import{_ as n,l as o}from"./mermaid.core-DNuzxE7q.js";import"./transform-BqqRT-Iy.js";import{M as c,b as d}from"./cynefin-EF2NZ3EQ-DgZeohG3.js";import"./index-DKTd8X7n.js";import"./BlintzCanvas-C-dobEns.js";import"./index-BAIKz_P0.js";import"./index-ZYbeRA5f.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),m=t?parseInt(t,10):0,l=s?parseInt(s,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},D={parser:R,db:a,renderer:u,styles:p};export{D as diagram};
|