dorkos 0.123.0 → 0.124.1
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 +1688 -837
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-BmtoPqP9.js → AboutPage-DHaZvsJE.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-CEzdFJiR.js → ActivityErrorState-BP-qFk2S.js} +1 -1
- package/dist/client/assets/{ActivityPage-mFYgTr3e.js → ActivityPage-Bme3TzdQ.js} +1 -1
- package/dist/client/assets/{ActivityRow-Bkc0kkim.js → ActivityRow-BRZyW9MA.js} +1 -1
- package/dist/client/assets/{AdapterIcon-DVgTrgnM.js → AdapterIcon-BcfquTja.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-I03EluU5.js → AdapterSetupWizard-B4I23pBg.js} +2 -2
- package/dist/client/assets/{AgentOptionRow-DI1TzLaR.js → AgentOptionRow-Cb34LtmH.js} +1 -1
- package/dist/client/assets/{AgentPicker-CBYeBzjf.js → AgentPicker-ouNRFSDh.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-DQ6GYoeE.js → AgentRequestCard-B6MHIsxa.js} +3 -3
- package/dist/client/assets/{AppearancePage-62xIPNPn.js → AppearancePage-CutehigK.js} +1 -1
- package/dist/client/assets/ApplyToOverridesDialog-B-wIUI27.js +1 -0
- package/dist/client/assets/{AttentionSignalRow-Coe5pYX6.js → AttentionSignalRow-B1aMjgX_.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-D07cg75s.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-CdWF4WLz.js} +1 -1
- package/dist/client/assets/{BindingDialog-DVyxVXZM.js → BindingDialog-BAdueON5.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-BmfkiUQJ.js → BlintzCanvas-b30dG4gx.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-CRTr-AI7.js → CanvasCsvContent-DGHgSikG.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-rOmY1s3T.js → CanvasFileContent-D1bFaUeh.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-D7oRT6ey.js → CanvasModel3dContent-dST7g1v2.js} +2 -2
- package/dist/client/assets/{ChatAppsOff-BmuOTq83.js → ChatAppsOff-DiObvmJS.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-DidSWwYJ.js → CodeMirrorDiff-BncI1OY1.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-BUAWGbRo.js → CodeMirrorEditor-DV6psv19.js} +1 -1
- package/dist/client/assets/{CommitmentList-uK4CKaz0.js → CommitmentList-Dx_Ek_Gl.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-BWITH1r2.js → CommitmentsPage-Bca8NMUa.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-adgF_EZU.js → ComputerResourceView-DNVNFTdn.js} +1 -1
- package/dist/client/assets/{ComputerViewer-D87LhxwL.js → ComputerViewer-D8SxJdMm.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-BFEFqcSZ.js → ConnectionAccessLists-Bhj1YT15.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-Cd_cLoSY.js → ConnectionsPage-B20JZxoK.js} +2 -2
- package/dist/client/assets/{ConventionPage-BSztD-gU.js → ConventionPage-De645wxU.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-BSge6XRv.js → ExtensionPageRoute-nTeiOBRQ.js} +2 -2
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-TO2CUPG0.js → FloatingTanStackRouterDevtools-CqogiFob-DM79UITv.js} +1 -1
- package/dist/client/assets/HandlePage-B08V-om7.js +1 -0
- package/dist/client/assets/{HeartbeatPage-DIJzdOhj.js → HeartbeatPage-CBoUxz6t.js} +1 -1
- package/dist/client/assets/{KeyEntry-DJnzW3Mu.js → KeyEntry-Cug8ocpX.js} +1 -1
- package/dist/client/assets/{LexicalField-BxzNvIjJ.js → LexicalField-Bv_ogmAq.js} +1 -1
- package/dist/client/assets/{ManagesPage-BQj8KbYA.js → ManagesPage-DfJBQKK3.js} +1 -1
- package/dist/client/assets/{Marketplace-CIG5_a_H.js → Marketplace-swCVUbdY.js} +2 -2
- package/dist/client/assets/{MarketplaceSourcesView-16HKvFK-.js → MarketplaceSourcesView-CDZDChpV.js} +1 -1
- package/dist/client/assets/{McpAppFrame-5xlga1jD.js → McpAppFrame-BM9cNPPd.js} +1 -1
- package/dist/client/assets/McpSigninBody-DKyUKrEE.js +1 -0
- package/dist/client/assets/{Model3dViewer-CQ0sA_kr.js → Model3dViewer-rXSL5y2P.js} +1 -1
- package/dist/client/assets/NamePage-JwMDK1JD.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-D092y0K9.js → NewDirectMessageMenu-GCEMS5oV.js} +1 -1
- package/dist/client/assets/{NotificationsPage-CskOPdhh.js → NotificationsPage-DSWsOVLa.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-BHRm328L.js → OpenMeshSwitch-BTuctDj4.js} +2 -2
- package/dist/client/assets/OperatorIdentityForm-ODDMd2YN.js +1 -0
- package/dist/client/assets/PermissionHistory-41a58Se7.js +1 -0
- package/dist/client/assets/{PermissionsPage-XuPOSYll.js → PermissionsPage-DefmymZ6.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-BrZjxakx.js → PersonalityPopover-7zPVBI1I.js} +1 -1
- package/dist/client/assets/PhotoPage-DlOVhkW9.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-BANdpT9O.js → PreviewRefusedNotice-CwGlBJ7U.js} +1 -1
- package/dist/client/assets/{ProfileFields-Dp68ebW9.js → ProfileFields-DVMkpJSb.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-BKwGdI90.js → ProfilePanelContainer-RrhoPD3T.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-ClOdfLda.js → ProfileRolePicker-CXRVBCAu.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-zcW4UJ_O.js → PromptSuggestionChips-bBroJdTi.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-BwDVGqFg.js → ReportsToPopover-CfPatsWM.js} +1 -1
- package/dist/client/assets/{RoomSurface-CSKIvyHH.js → RoomSurface-CdgCdV6h.js} +10 -10
- package/dist/client/assets/{RoomsPage-CAvrRbPk.js → RoomsPage-C3dDp1Mb.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-CQ4t9EZ-.js → RunsOnPopover-BcKjfQi-.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow--fVpIf0B.js → RuntimeConnectFlow-DCIRnvOH.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-COpyPrqL.js → RuntimeSetupDialog-Bg-0b-LC.js} +1 -1
- package/dist/client/assets/SeenDevices-nMsGUQTv.js +19 -0
- package/dist/client/assets/{SessionsPage-FDyYzuXs.js → SessionsPage-Cqfx4FGW.js} +1 -1
- package/dist/client/assets/SettingsDialog-C8r2igJ_.js +12 -0
- package/dist/client/assets/{SkillsPage-PLXEY0LB.js → SkillsPage-BleHQavF.js} +1 -1
- package/dist/client/assets/TaskDialogWrapper-BhTEvf-u.js +1 -0
- package/dist/client/assets/{TasksEmptyState-8RZxhRh6.js → TasksEmptyState-Bprx1k8M.js} +2 -2
- package/dist/client/assets/{TasksPage-C-EtQXKb.js → TasksPage-Dub39yEJ.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-qx_19Htj.js → TeamComputerEntry-CJ-NG0u5.js} +1 -1
- package/dist/client/assets/ToolsPage-IsD6M-ZW.js +2 -0
- package/dist/client/assets/{TopologyGraph-1wtG1BE9.js → TopologyGraph-CwyasvFI.js} +2 -2
- package/dist/client/assets/{TourHost-C664E8OY.js → TourHost-BYfztuPb.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-Di1oBFA_.js → UnlinkDialog-BKhgxVdF.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-BfgGzyqg.js → WidgetErrorCard-1NyzIJBj.js} +7 -7
- package/dist/client/assets/_shell-Ct2Bz7D0.js +80 -0
- package/dist/client/assets/{_shell._home-Hz78BY6-.js → _shell._home-xWj7wO5z.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-BxvI0gkw.js → _shell._home.activity-BqcLoaB1.js} +1 -1
- package/dist/client/assets/{_shell._home.index-Cqq81f3P.js → _shell._home.index-D4sQsKKk.js} +1 -1
- package/dist/client/assets/{_shell._home.tasks-Cth56CwC.js → _shell._home.tasks--UhQB6h3.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-DkoOJSWz.js → _shell._home.workspaces-BPFD8Of2.js} +1 -1
- package/dist/client/assets/_shell.channels-CnFdvRzc.js +10 -0
- package/dist/client/assets/_shell.connections-Ik01wS5M.js +1 -0
- package/dist/client/assets/{_shell.feedback-requests-BTxHdsfb.js → _shell.feedback-requests-Czu42kzo.js} +2 -2
- package/dist/client/assets/_shell.marketplace-Cezv-i16.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-BTENmr4W.js +1 -0
- package/dist/client/assets/_shell.session-BjevHF_O.js +63 -0
- package/dist/client/assets/{_shell.team-ZxGwa39m.js → _shell.team-UfaJqohh.js} +4 -4
- package/dist/client/assets/_shell.x._extensionId-0OO_Xr72.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-0OO_Xr72.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-CzqPVMdw.js → abnfDiagram-WEYOIA3C-oxkfGyl6.js} +1 -1
- package/dist/client/assets/{access-copy-Dj09Xk4b.js → access-copy-Dggxx2cX.js} +1 -1
- package/dist/client/assets/{arc-Bgy7ExYl.js → arc-CqQdP0Qe.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-DYfb2p9r.js → architectureDiagram-ZHVYKT53-89xM7zJD.js} +1 -1
- package/dist/client/assets/{banner-dlsHTWSf.js → banner-DqJ2pM0Y.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-BkOzLL8s.js → blockDiagram-RJAE7QA3-CcxwDmZC.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-CsZm4qpD.js → c4Diagram-XDPPPE54-DCIhIyXa.js} +1 -1
- package/dist/client/assets/{card-Dj6ZfRgu.js → card-DT-vFAns.js} +1 -1
- package/dist/client/assets/channel-Ngk70nQZ.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-GA96Jfps.js → chunk-2E7WHVMD-BfWEXcCj.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-CW2i0IkT.js → chunk-2Q5K7J3B-KLXLZXlR.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-BwFvnPZg.js → chunk-4EMNKR2T-CL5Gttmj.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-MOezzAAB.js → chunk-55XCU76K-cfAl84Mv.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-woru6zOC.js → chunk-5VM5RSS4-BqUyGgoH.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-CUrKlP2M.js → chunk-JWPE2WC7-BWr2ST9i.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-CqZ2cdEu.js → chunk-VQ5W62QI-V5zYx50O.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-ByAcvWaE.js → chunk-XXDRQBXY-gnvheN_J.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-3nkba9kj.js → chunk-ZCHMQSOR-ClGxxZvV.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-B-zZKAmI.js → classDiagram-v2-4MYWR3UA-DvmHzDb5.js} +1 -1
- package/dist/client/assets/{command-BAOEURY7.js → command-CNx4L11m.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-sCKxRv1H.js → cose-bilkent-JH36ORCC-Df8nXBRj.js} +1 -1
- package/dist/client/assets/{cpu-TtYQqONc.js → cpu-D8KJEkdh.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-CXzvL5Cg.js → cynefin-EF2NZ3EQ-CAn6ufHs.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-C0wjhu9X.js → cynefinDiagram-WF24UDRP-Cep_NrRw.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-Doi2IPkY.js → dagre-NK4GIZVX-sWD3z9wf.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-11TVuPel.js → diagram-CBK3MWTC-CUpaBATr.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-CJq7fHFM.js → diagram-I5XIIV2D-BejWB2ry.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-2Ae6unuU.js → diagram-ODIL2UCW-BGKJfNk9.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-BXza6_iz.js → diagram-PFBEJUXE-V0dP8H8k.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-Z0i3uBW9.js → diagram-RJA3I4VV-Bf5dVsFX.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-Dq_-g1oP.js → diagram-TYUNFSNR-CLrMSqb4.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-vxzIvg-W.js → ebnfDiagram-V4P3TTPT-BGG4CWA0.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-BBIXXtg_.js → elk-QONTBCTQ-bf9D6f0w.js} +1 -1
- package/dist/client/assets/{empty-state-kISAAp0z.js → empty-state-CDoXnrKn.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-Bk2MeLBx.js → erDiagram-KYQIGQAA-fEUv-33P.js} +1 -1
- package/dist/client/assets/{execution-config-DYFe-VNC.js → execution-config-Ca9MDOtV.js} +1 -1
- package/dist/client/assets/{file-DEt4KgZG.js → file-CiyVL55_.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-QqXJhXD9.js → file-exclamation-point-DaFRIKco.js} +1 -1
- package/dist/client/assets/{file-text-CRw31ZWd.js → file-text-DsnD-A8g.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-B3aaiBNI.js → find-latest-widget-fence-CNsnCgbB.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-B53m4r8u.js → flowDiagram-IUGLLWBU-CRbeSDod.js} +1 -1
- package/dist/client/assets/{form-Bjhk9zOn.js → form-Cru78aT-.js} +1 -1
- package/dist/client/assets/{format-cron-9tmNIcgl.js → format-cron-9K38-tn1.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-CS6TN3R1.js → ganttDiagram-R7GPNTJY-Mkk7zgs_.js} +1 -1
- package/dist/client/assets/{git-branch-DWerghmw.js → git-branch-CONwEYiR.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-D096ZtqE.js → gitGraphDiagram-PDYL7XHY-Drre0vyA.js} +1 -1
- package/dist/client/assets/{graph-DQpTuPmX.js → graph-BJlnKWgo.js} +1 -1
- package/dist/client/assets/{heart-CRkjVW7-.js → heart-CqwUlIUG.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-DoVCXOMU.js → highlighted-body-KPVGNVTW-e4LXC_pS.js} +1 -1
- package/dist/client/assets/image-lightbox-DHDtzoja.js +1 -0
- package/dist/client/assets/{image-off-VyMBVwgK.js → image-off-DZuLkaRJ.js} +2 -2
- package/dist/client/assets/{index-DN2sTT2U.js → index-1yEXEZiH.js} +1 -1
- package/dist/client/assets/{index-BBcAekWE.js → index-A41zxoWk.js} +1 -1
- package/dist/client/assets/{index-CEVwhauU.js → index-B25gvCK_.js} +1 -1
- package/dist/client/assets/index-B9bZYNKR.js +1 -0
- package/dist/client/assets/{index-TnoaFCrj.js → index-BBmkfbXd.js} +1 -1
- package/dist/client/assets/{index-CvhR1oZB.js → index-BDD2EyoW.js} +1 -1
- package/dist/client/assets/{index-BcFMs7lK.js → index-BFNy-Yp3.js} +1 -1
- package/dist/client/assets/{index-CyGRWyhV.js → index-BIB-maE5.js} +1 -1
- package/dist/client/assets/{index-DBo2XfNv.js → index-BKp2B9JS.js} +1 -1
- package/dist/client/assets/index-BLP5O7X9.js +1 -0
- package/dist/client/assets/{index-2EaVZrJe.js → index-BTjZIgFn.js} +1 -1
- package/dist/client/assets/{index-DKWpwwxo.js → index-BV2Ezdxv.js} +1 -1
- package/dist/client/assets/{index-igLqtuoO.js → index-B_0LYi32.js} +1 -1
- package/dist/client/assets/{index-BpjEclkM.js → index-Bd7vUYhr.js} +1 -1
- package/dist/client/assets/{index-_emDKzsu.js → index-Bo7x9IkO.js} +1 -1
- package/dist/client/assets/{index-C3sW6rkN.js → index-BtDxwJsM.js} +22 -20
- package/dist/client/assets/{index-C6Fo2htT.js → index-By58MgcZ.js} +1 -1
- package/dist/client/assets/index-C3cvP8Fo.js +1033 -0
- package/dist/client/assets/{index-Cs3WB8yn.js → index-CVuEUzi5.js} +1 -1
- package/dist/client/assets/{index-n3-zWcH-.js → index-CoWJD3Jg.js} +2 -2
- package/dist/client/assets/{index-Ctqe81qr.js → index-CyVH876g.js} +1 -1
- package/dist/client/assets/index-D67Kfy-M.js +1 -0
- package/dist/client/assets/{index-C6udJCgz.js → index-DAlpmAIA.js} +1 -1
- package/dist/client/assets/{index-setKr4xl.js → index-DDNwNOHF.js} +1 -1
- package/dist/client/assets/{index-COMRALJO.js → index-DL8ISRMH.js} +1 -1
- package/dist/client/assets/{index-Czm6C7FZ.js → index-DabU6r9W.js} +3 -3
- package/dist/client/assets/{index-CDuYKaGY.js → index-DdJBZE0H.js} +1 -1
- package/dist/client/assets/{index-CiVeycsn.js → index-DijWcSDZ.js} +5 -5
- package/dist/client/assets/index-DyRGZyur.css +1 -0
- package/dist/client/assets/{index-DmFNztTX.js → index-DzwZJuO1.js} +1 -1
- package/dist/client/assets/{index-Csr_C1sk.js → index-HR8BYVRQ.js} +1 -1
- package/dist/client/assets/{index-BLkXoquZ.js → index-LEcodwyW.js} +1 -1
- package/dist/client/assets/index-UPF8suf2.js +1 -0
- package/dist/client/assets/{index-rCvQat0D.js → index-Vz7VUm9l.js} +1 -1
- package/dist/client/assets/index-YW-v746p.js +1 -0
- package/dist/client/assets/{index-DgyhdQnI.js → index-cI2u8WZS.js} +1 -1
- package/dist/client/assets/{index-DNzk9m1D.js → index-iTQUa_b2.js} +3 -3
- package/dist/client/assets/{index-b9p_y2Ql.js → index-mZqojApH.js} +1 -1
- package/dist/client/assets/{index-gIQ7FrL9.js → index-pVFjKNjX.js} +1 -1
- package/dist/client/assets/{index-t3eRSGcT.js → index-skAhJyIF.js} +1 -1
- package/dist/client/assets/{index-BiFJIg4n.js → index-vJy88bwb.js} +1 -1
- package/dist/client/assets/index-wY5OcS4a.js +43 -0
- package/dist/client/assets/{index-B2rBVMNl.js → index-x1yAu9zJ.js} +1 -1
- package/dist/client/assets/index-xAgihCJ7.js +1 -0
- package/dist/client/assets/{index.esm-bLeQzVWT.js → index.esm-BUPoRUaG.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-nN_N76Fn.js → infoDiagram-MVDRKAX5-B_Wyzufh.js} +1 -1
- package/dist/client/assets/{inline-code-D9bLKHjY.js → inline-code-BIzGDx6z.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-CiLFbWXd.js → ishikawaDiagram-HPEHV2GE-BDk2-6Pd.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-Dn3yOv96.js → journeyDiagram-BOSHW7O7-7qf9KWEQ.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-JxiBdBQC.js → kanban-definition-FNSA4HC5-CFYDQmXn.js} +1 -1
- package/dist/client/assets/{layers-DTnLoRvE.js → layers-C9tVVcXg.js} +1 -1
- package/dist/client/assets/{lightbulb-CRKLr5q3.js → lightbulb-f4jtsAh0.js} +1 -1
- package/dist/client/assets/{link-2-hgHg-lyw.js → link-2-ZNlK1BG1.js} +1 -1
- package/dist/client/assets/{list-runtime-types-Bb33QiMC.js → list-runtime-types-CqO-QFYD.js} +1 -1
- package/dist/client/assets/{markdown-content-D0FpU2cz.js → markdown-content-DaEVxezf.js} +1 -1
- package/dist/client/assets/{mention-pill-uuaUvwSW.js → mention-pill-BiCPflY-.js} +1 -1
- package/dist/client/assets/{mermaid.core-x3Hh6iut.js → mermaid.core-SX8SzrsU.js} +4 -4
- package/dist/client/assets/{message-square-off-B8N6YF9R.js → message-square-off-_qbedNGF.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-D0SEv5Re.js → mindmap-definition-6OY57UG3-BloJIArH.js} +1 -1
- package/dist/client/assets/{more-details-CadxnGyH.js → more-details-CdJT0Ehl.js} +1 -1
- package/dist/client/assets/{owner-notice-CJHyha58.js → owner-notice-BDafFD_I.js} +1 -1
- package/dist/client/assets/{package-B8G7jQm-.js → package-Cb7lEm7t.js} +1 -1
- package/dist/client/assets/{page-container-Bb-_N7lw.js → page-container-DsRgIMAL.js} +1 -1
- package/dist/client/assets/{paperclip-BDeYGKqh.js → paperclip-DNu1VtoX.js} +1 -1
- package/dist/client/assets/{path-input-BIfexEKz.js → path-input-D3O71b-X.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-7ivMd0-b.js → pegDiagram-ECIUJNBX-Di48kPNu.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-DGDkbFvu.js → pieDiagram-GNMPY74T-DY8B_SPD.js} +1 -1
- package/dist/client/assets/{plug-wP1d6OUX.js → plug-IIS_cL9-.js} +1 -1
- package/dist/client/assets/{primer-trigger-CEli_z4n.js → primer-trigger-DurKYe8C.js} +2 -2
- package/dist/client/assets/{profile-errors-C1qSJkiG.js → profile-errors-BdhZfdvZ.js} +1 -1
- package/dist/client/assets/{progress-DmUieXLn.js → progress-g5kkqvlR.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-AFQRVSsK.js → quadrantDiagram-D57K4MC3-Depv_dON.js} +1 -1
- package/dist/client/assets/{query-error-state--8AnWSSn.js → query-error-state-PuLGD7Jp.js} +1 -1
- package/dist/client/assets/{radio-mkA-Sqe0.js → radio-QOLZSBz1.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-3QBa2d3j.js → railroadDiagram-Y72NRBL7-BfD2AiZM.js} +1 -1
- package/dist/client/assets/registry-Ck8p6n1T.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-fScydQ3A.js → relay-trace-schemas-DF_DfZ7s.js} +2 -2
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-BVBqcASy.js → requirementDiagram-EQYSW5RA-B1iTjrkD.js} +1 -1
- package/dist/client/assets/{room-files-source-BhkPUTiP.js → room-files-source-g1th8mWs.js} +2 -2
- package/dist/client/assets/{rotate-ccw-clock-DiuTseKz.js → rotate-ccw-clock-BGwYMaGL.js} +1 -1
- package/dist/client/assets/{rotate-cw-DvoxWwSx.js → rotate-cw-B4Y0q4GY.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-DFjfOD38.js → sankeyDiagram-SY24JHO5-D5TzVJrQ.js} +1 -1
- package/dist/client/assets/{scroll-area-DYyyRqW_.js → scroll-area-BvScZKSa.js} +1 -1
- package/dist/client/assets/{search-x-CA-FzEqZ.js → search-x-CqN5twBj.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-Cr9LzoSF.js → sequenceDiagram-BLEHNHQU-BhUahaNf.js} +1 -1
- package/dist/client/assets/{shield-x-B0W_7qwR.js → shield-x-DHJrwtKp.js} +1 -1
- package/dist/client/assets/{signed-in-X2utDqQS.js → signed-in-BmywDpR5.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-Do_jfNyT.js → sizeCapture-INFHLROL-D2Vi1Kq9.js} +1 -1
- package/dist/client/assets/{soul-file-DgfhKQIK.js → soul-file-BMpVFN7U.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-BCi9yk_0.js → stateDiagram-v2-A6IESKWZ-b9gSbZnF.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-3SSAw2av.js → swimlanes-B3ENRKFQ-i47jxLY6.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-CA9gW19w.js +8 -0
- package/dist/client/assets/{table-DvU_oS4E.js → table-CN2HCi4p.js} +1 -1
- package/dist/client/assets/{terminal-Dw2QZ7Dh.js → terminal-BORQniao.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-DTLPXTMA.js → timeline-definition-JXYKGLGB-eY5gj0js.js} +1 -1
- package/dist/client/assets/{trust-posture-2MR0ap9o.js → trust-posture-Bcyy5Fub.js} +1 -1
- package/dist/client/assets/{unplug-CAVOLB2R.js → unplug-lkD35Rwp.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-u4ikVg8J.js → unverified-catalog-notice-DiCIrrhU.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-BQKfRxXC.js → use-adapter-catalog-BrqVd-47.js} +1 -1
- package/dist/client/assets/{use-bindings-BV6HA0MD.js → use-bindings-CU2RSXOy.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-DCSzOnEO.js → use-composer-prefs-Dy2oTM8Y.js} +1 -1
- package/dist/client/assets/{use-connector-management-fr1tx-GZ.js → use-connector-management-5oRqzydY.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-v02TbidQ.js → use-deep-link-scroll-Bg5nW8qq.js} +1 -1
- package/dist/client/assets/{use-delete-binding-CnziYpXo.js → use-delete-binding-qeyRkvR1.js} +1 -1
- package/dist/client/assets/{use-dev-links-k4YWFO1v.js → use-dev-links-FY4J_PjA.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-DoGUfa2F.js → use-external-adapter-catalog-HiWFZZrW.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-CQNxgxnw.js → use-full-activity-feed-K1uk9Wya.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-Cu_jKnft.js +1 -0
- package/dist/client/assets/use-is-hub-BX7ypNRJ.js +1 -0
- package/dist/client/assets/{use-jump-back-in-BuO6A0P7.js → use-jump-back-in-BjZ8EswV.js} +3 -3
- package/dist/client/assets/{use-local-browser-BNzN5O1P.js → use-local-browser-CTFiF0wf.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-CpIDE8lD.js → use-mesh-topology-CafidaIH.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-BAO3qunF.js → use-mounted-ref-B38uSLCx.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-CtqeH5Pk.js → use-notification-prefs-m9XSNB6W.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-DFobGBRm.js → use-panel-tab-placements-D9n6rNJ1.js} +1 -1
- package/dist/client/assets/use-pending-read-BoV-UI1E.js +1 -0
- package/dist/client/assets/{use-personality-commit-BvqCwzAC.js → use-personality-commit-ChLQfLrK.js} +1 -1
- package/dist/client/assets/{use-promo-activation-Dz5cYm-X.js → use-promo-activation-DbJDgp4_.js} +3 -3
- package/dist/client/assets/{use-promo-dismissals-CuOsnqnZ.js → use-promo-dismissals-Csw0j0N0.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-qcTH6PM7.js → use-pulse-freshness-BIZ7daHW.js} +1 -1
- package/dist/client/assets/{use-relay-config-1mAMDNbc.js → use-relay-config-hUB3lVFv.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-CCGhsyH3.js → use-room-follow-claim-BpKzhniV.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-Bsg2dfUx.js → use-roving-tab-list-BtM0bZL7.js} +1 -1
- package/dist/client/assets/{use-session-canvas-awPngMKg.js → use-session-canvas-DRrkNRcL.js} +3 -3
- package/dist/client/assets/use-session-diagnostics-BTNgouum.js +16 -0
- package/dist/client/assets/{use-unclaimed-chats-Db_wuzt0.js → use-unclaimed-chats-BbMZtNG9.js} +1 -1
- package/dist/client/assets/use-update-config-CkWwKNkY.js +1 -0
- package/dist/client/assets/{useMutationState-BvwBDXKc.js → useMutationState-CVpvw27W.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-1zKygEKR.js → usecaseDiagram-WPOLBNNX-CHcpeLg4.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-BR2EbgGY.js → vennDiagram-Q3Y3IDCW-gQbZL_A6.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-D0OwouJc.js → wardleyDiagram-IVAIDKWA-BFH_WHzZ.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-BM-7_FQQ.js → xychartDiagram-4URNHDU4-B0QpyqeZ.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/drizzle/20261018210140_remote_command_agent_computer_kind.sql +21 -0
- package/dist/drizzle/20261019142317_turn_marks.sql +3 -0
- package/dist/drizzle/20261019185620_dor3037_wifi_holds.sql +8 -0
- package/dist/drizzle/meta/20261018210140_snapshot.json +14027 -0
- package/dist/drizzle/meta/20261019142317_snapshot.json +14048 -0
- package/dist/drizzle/meta/20261019185620_snapshot.json +14079 -0
- package/dist/drizzle/meta/_journal.json +21 -0
- package/dist/server/extension-child.cjs +18 -2
- package/dist/server/index.js +64322 -32299
- package/dist/server/index.js.map +2 -2
- package/package.json +4 -4
- package/dist/client/assets/ApplyToOverridesDialog-CrqkeHQb.js +0 -1
- package/dist/client/assets/HandlePage-BKiqymRF.js +0 -1
- package/dist/client/assets/McpSigninBody-COIHpHq_.js +0 -1
- package/dist/client/assets/NamePage-D7W6VMYd.js +0 -1
- package/dist/client/assets/OperatorIdentityForm-C3op6BIC.js +0 -1
- package/dist/client/assets/PermissionHistory-CKebTVkq.js +0 -1
- package/dist/client/assets/PhotoPage-Ch1at4A6.js +0 -1
- package/dist/client/assets/SeenDevices-BPw3UgjX.js +0 -19
- package/dist/client/assets/SettingsDialog-Bdws5dbS.js +0 -12
- package/dist/client/assets/TaskDialogWrapper-CTcW70s8.js +0 -1
- package/dist/client/assets/ToolsPage-D5-fx1EA.js +0 -2
- package/dist/client/assets/_shell-BLTSXXDw.js +0 -80
- package/dist/client/assets/_shell.channels-D_GQU4RB.js +0 -10
- package/dist/client/assets/_shell.connections-DZrlxs4G.js +0 -1
- package/dist/client/assets/_shell.marketplace-CZxkAmFz.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-Q0BTQIuE.js +0 -1
- package/dist/client/assets/_shell.session-DvGL0DoX.js +0 -63
- package/dist/client/assets/_shell.x._extensionId-B6Tm5KuT.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-B6Tm5KuT.js +0 -1
- package/dist/client/assets/channel-CGffcDRq.js +0 -1
- package/dist/client/assets/image-lightbox-BXzbN27o.js +0 -1
- package/dist/client/assets/index-1qv8ldHx.js +0 -1
- package/dist/client/assets/index-8-iQ6PnT.js +0 -1028
- package/dist/client/assets/index-BFitbVs4.js +0 -1
- package/dist/client/assets/index-C24HfJir.js +0 -1
- package/dist/client/assets/index-CI84yP-g.js +0 -1
- package/dist/client/assets/index-D5zUdnZM.js +0 -1
- package/dist/client/assets/index-DUZrTFYD.css +0 -1
- package/dist/client/assets/index-DX_2Mxwv.js +0 -1
- package/dist/client/assets/index-Dgrk2udV.js +0 -38
- package/dist/client/assets/registry-Bnd-HFt3.js +0 -1
- package/dist/client/assets/shield-check-CpUB_Ju1.js +0 -6
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-jpZCGfva.js +0 -8
- package/dist/client/assets/use-is-below-desktop-DR8FEbRW.js +0 -1
- package/dist/client/assets/use-is-hub-BmpgFnFp.js +0 -1
- package/dist/client/assets/use-pending-read-Do0_vZ2I.js +0 -1
- package/dist/client/assets/use-session-diagnostics-D5g8Mc52.js +0 -16
- package/dist/client/assets/use-update-config-DwtH_H9Z.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LexicalField-
|
|
2
|
-
import{r as l,W as ct,j as i,a1 as Ke,a3 as We,
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LexicalField-Bv_ogmAq.js","assets/index-C3cvP8Fo.js","assets/index-DyRGZyur.css","assets/mention-pill-BiCPflY-.js","assets/file-drag-GDx2qhdk.js","assets/file-CiyVL55_.js","assets/find-latest-widget-fence-CNsnCgbB.js","assets/WidgetErrorCard-1NyzIJBj.js","assets/index-xAgihCJ7.js","assets/card-DT-vFAns.js","assets/progress-g5kkqvlR.js","assets/markdown-content-DaEVxezf.js","assets/table-CN2HCi4p.js","assets/terminal-BORQniao.js","assets/package-Cb7lEm7t.js","assets/heart-CqwUlIUG.js","assets/git-branch-CONwEYiR.js","assets/file-text-DsnD-A8g.js","assets/paperclip-DNu1VtoX.js","assets/index-pVFjKNjX.js","assets/RuntimeSetupDialog-Bg-0b-LC.js","assets/inline-code-BIzGDx6z.js","assets/list-runtime-types-CqO-QFYD.js","assets/RuntimeConnectFlow-DCIRnvOH.js","assets/useMutationState-CVpvw27W.js","assets/runtime-connect-Dn0T5YWv.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as l,W as ct,j as i,a1 as Ke,a3 as We,mA as xt,aW as ge,nQ as Ne,nR as Fn,nS as Ln,aK as Mn,nT as ze,bk as Ee,nU as Re,nV as Pn,a4 as Ht,nW as qn,nX as Bn,nY as $n,nZ as Hn,n_ as Kt,n$ as Kn,o0 as Wn,o1 as Un,o2 as Gn,o3 as Yn,o4 as Vn,o5 as Wt,o6 as Ut,dz as Gt,is as Jn,g as Xn,G as _,ir as Zn,a0 as Qn,x as Se,o7 as gt,o8 as ea,d9 as ta,o9 as De,ep as na,oa as O,R as aa,bx as he,ar as J,lg as Yt,ix as Vt,iy as Jt,T as ia,iA as Xt,iC as nt,f as oa,lx as ra,X as pt,J as sa,b7 as la,ob as ca,aX as pa,bL as da,dA as Zt,oc as dt,bw as ua,g$ as ma,fu as fa,bE as xa,jy as ga,by as va,bz as ha,bA as ba,bC as ya,B as ve,hz as vt,la as ka,I as wa,eT as ja,eU as Ea,eV as Ra,od as at,c6 as Da,hQ as Na,dw as Sa,dv as Ca,iB as Ta,oe as Aa,lJ as za,of as Ia,jq as _a,jr as Oa,ad as Fa,iV as La,iW as Ma,iX as Pa,iY as qa,og as Ba,V as $a,oh as Ha,oi as Ka,oj as Wa}from"./index-C3cvP8Fo.js";import{F as ut}from"./file-CiyVL55_.js";import{h as Ua,r as Ga}from"./file-drag-GDx2qhdk.js";import{C as Ya}from"./find-latest-widget-fence-CNsnCgbB.js";import{P as Va}from"./paperclip-DNu1VtoX.js";import{u as Ja}from"./index-pVFjKNjX.js";import{R as Xa}from"./RuntimeSetupDialog-Bg-0b-LC.js";import{r as Za}from"./RuntimeConnectFlow-DCIRnvOH.js";const mt="data-feed-article",Qa=['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([type="file"]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[contenteditable="true"]:not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(",");function ht(e){const t=e.closest("[data-composer-card]");return(t==null?void 0:t.querySelector('textarea, [contenteditable="true"]'))??e}function ei(e,t){const n=Array.from(document.querySelectorAll(Qa)).filter(r=>!e.contains(r));if(t==="after"){const r=n.find(s=>(e.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING)!==0);return r===void 0?null:ht(r)}const a=n.filter(r=>(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)!==0),o=a[a.length-1];return o===void 0?null:ht(o)}function ti(e){const t=l.useRef(null),n=l.useRef(e==null?void 0:e.onBeyondRendered);l.useEffect(()=>{n.current=e==null?void 0:e.onBeyondRendered},[e==null?void 0:e.onBeyondRendered]);const a=l.useCallback(o=>{var w;const r=t.current;if(r===null)return;if(o.key==="Home"||o.key==="End"){if(!o.ctrlKey&&!o.metaKey)return;o.preventDefault(),(w=ei(r,o.key==="End"?"after":"before"))==null||w.focus();return}if(o.key!=="PageDown"&&o.key!=="PageUp")return;const s=Array.from(r.querySelectorAll(`[${mt}]`));if(s.length===0)return;const p=document.activeElement,c=s.findIndex(j=>j===p||p!==null&&j.contains(p)),m=c!==-1?c:s.reduce((j,g,u)=>p!==null&&(g.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_FOLLOWING)!==0?u:j,-1),d=o.key==="PageDown"?m+1:m-1;if(d<0||d>s.length-1){const j=o.key==="PageDown",g=s[j?s.length-1:0],u=Number(g.getAttribute("aria-posinset")),h=Number(g.getAttribute("aria-setsize")),E=j?u<h:u>1,f=n.current;if(E&&Number.isFinite(u)&&f!==void 0){o.preventDefault(),f(j?"next":"previous",g);return}}const x=s[Math.min(Math.max(d,0),s.length-1)];x!==void 0&&(o.preventDefault(),x.focus())},[]);return{containerRef:t,handleKeyDown:a}}function ms(e){return e===void 0?{}:{[mt]:"",tabIndex:0,...e.total>=0&&{"aria-posinset":e.index,"aria-setsize":e.total},...e.total<0&&{"aria-setsize":-1}}}/**
|
|
3
3
|
* @license lucide-react v1.48.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
@@ -20,4 +20,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
20
20
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jo(e){if(Array.isArray(e))return rt(e)}function tt(e,t){return Do(e)||Ro(e,t)||hn(e,t)||Eo()}function Eo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
21
21
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hn(e,t){if(e){if(typeof e=="string")return rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rt(e,t)}}function rt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ro(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],o=!0,r=!1,s,p;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(a.push(s.value),!(t&&a.length===t));o=!0);}catch(c){r=!0,p=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(r)throw p}}return a}}function Do(e){if(Array.isArray(e))return e}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_t(Object(n),!0).forEach(function(a){st(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e,t){if(e==null)return{};var n=No(e,t),a,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function No(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,r;for(r=0;r<a.length;r++)o=a[r],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ft=l.forwardRef(function(e,t){var n=e.children,a=He(e,vo),o=yn(a),r=o.open,s=He(o,ho);return l.useImperativeHandle(t,function(){return{open:r}},[r]),aa.createElement(l.Fragment,null,n(L(L({},s),{},{open:r})))});ft.displayName="Dropzone";var bn={disabled:!1,getFilesFromEvent:Fi,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};ft.defaultProps=bn;ft.propTypes={children:O.func,accept:O.objectOf(O.arrayOf(O.string)),multiple:O.bool,preventDropOnDocument:O.bool,noClick:O.bool,noKeyboard:O.bool,noDrag:O.bool,noDragEventsBubbling:O.bool,minSize:O.number,maxSize:O.number,maxFiles:O.number,disabled:O.bool,getFilesFromEvent:O.func,onFileDialogCancel:O.func,onFileDialogOpen:O.func,useFsAccessApi:O.bool,autoFocus:O.bool,onDragEnter:O.func,onDragLeave:O.func,onDragOver:O.func,onDrop:O.func,onDropAccepted:O.func,onDropRejected:O.func,onError:O.func,validator:O.func};var lt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function yn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=L(L({},bn),e),n=t.accept,a=t.disabled,o=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,p=t.multiple,c=t.maxFiles,m=t.onDragEnter,d=t.onDragLeave,x=t.onDragOver,w=t.onDrop,j=t.onDropAccepted,g=t.onDropRejected,u=t.onFileDialogCancel,h=t.onFileDialogOpen,E=t.useFsAccessApi,f=t.autoFocus,v=t.preventDropOnDocument,y=t.noClick,C=t.noKeyboard,z=t.noDrag,D=t.noDragEventsBubbling,k=t.onError,T=t.validator,S=l.useMemo(function(){return fo(n)},[n]),F=l.useMemo(function(){return mo(n)},[n]),B=l.useMemo(function(){return typeof h=="function"?h:Ot},[h]),H=l.useMemo(function(){return typeof u=="function"?u:Ot},[u]),I=l.useRef(null),P=l.useRef(null),de=l.useReducer(So,lt),K=tt(de,2),ne=K[0],R=K[1],Q=ne.isFocused,X=ne.isFileDialogActive,G=l.useRef(typeof window<"u"&&window.isSecureContext&&E&&uo()),be=function(){!G.current&&X&&setTimeout(function(){if(P.current){var N=P.current.files;N.length||(R({type:"closeDialog"}),H())}},300)};l.useEffect(function(){return window.addEventListener("focus",be,!1),function(){window.removeEventListener("focus",be,!1)}},[P,X,H,G]);var ae=l.useRef([]),Y=l.useRef([]),Z=function(N){I.current&&I.current.contains(N.target)||(N.preventDefault(),ae.current=[])};l.useEffect(function(){return v&&(document.addEventListener("dragover",zt,!1),document.addEventListener("drop",Z,!1)),function(){v&&(document.removeEventListener("dragover",zt),document.removeEventListener("drop",Z))}},[I,v]),l.useEffect(function(){var b=function(se){Y.current=[].concat(It(Y.current),[se.target]),Te(se)&&R({isDragGlobal:!0,type:"setDragGlobal"})},N=function(se){Y.current=Y.current.filter(function(pe){return pe!==se.target&&pe!==null}),!(Y.current.length>0)&&R({isDragGlobal:!1,type:"setDragGlobal"})},M=function(){Y.current=[],R({isDragGlobal:!1,type:"setDragGlobal"})},$=function(){Y.current=[],R({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",b,!1),document.addEventListener("dragleave",N,!1),document.addEventListener("dragend",M,!1),document.addEventListener("drop",$,!1),function(){document.removeEventListener("dragenter",b),document.removeEventListener("dragleave",N),document.removeEventListener("dragend",M),document.removeEventListener("drop",$)}},[I]),l.useEffect(function(){return!a&&f&&I.current&&I.current.focus(),function(){}},[I,f,a]);var V=l.useCallback(function(b){k?k(b):console.error(b)},[k]),ie=l.useCallback(function(b){b.preventDefault(),b.persist(),ke(b),ae.current=[].concat(It(ae.current),[b.target]),Te(b)&&Promise.resolve(o(b)).then(function(N){if(!($e(b)&&!D)){var M=N.length,$=M>0&&so({files:N,accept:S,minSize:s,maxSize:r,multiple:p,maxFiles:c,validator:T}),U=M>0&&!$;R({isDragAccept:$,isDragReject:U,isDragActive:!0,type:"setDraggedFiles"}),m&&m(b)}}).catch(function(N){return V(N)})},[o,m,V,D,S,s,r,p,c,T]),ue=l.useCallback(function(b){b.preventDefault(),b.persist(),ke(b);var N=Te(b);if(N&&b.dataTransfer)try{b.dataTransfer.dropEffect="copy"}catch{}return N&&x&&x(b),!1},[x,D]),me=l.useCallback(function(b){b.preventDefault(),b.persist(),ke(b);var N=ae.current.filter(function($){return I.current&&I.current.contains($)}),M=N.indexOf(b.target);M!==-1&&N.splice(M,1),ae.current=N,!(N.length>0)&&(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Te(b)&&d&&d(b))},[I,d,D]),fe=l.useCallback(function(b,N){var M=[],$=[];b.forEach(function(U){var se=fn(U,S),pe=tt(se,2),Ue=pe[0],Ge=pe[1],Ye=xn(U,s,r),Me=tt(Ye,2),Ve=Me[0],Je=Me[1],Xe=T?T(U):null;if(Ue&&Ve&&!Xe)M.push(U);else{var Ze=[Ge,Je];Xe&&(Ze=Ze.concat(Xe)),$.push({file:U,errors:Ze.filter(function(On){return On})})}}),(!p&&M.length>1||p&&c>=1&&M.length>c)&&(M.forEach(function(U){$.push({file:U,errors:[oo]})}),M.splice(0)),R({acceptedFiles:M,fileRejections:$,type:"setFiles"}),w&&w(M,$,N),$.length>0&&g&&g($,N),M.length>0&&j&&j(M,N)},[R,p,S,s,r,c,w,j,g,T]),oe=l.useCallback(function(b){b.preventDefault(),b.persist(),ke(b),ae.current=[],Te(b)&&Promise.resolve(o(b)).then(function(N){$e(b)&&!D||fe(N,b)}).catch(function(N){return V(N)}),R({type:"reset"})},[o,fe,V,D]),te=l.useCallback(function(){if(G.current){R({type:"openDialog"}),B();var b={multiple:p,types:F};window.showOpenFilePicker(b).then(function(N){return o(N)}).then(function(N){fe(N,null),R({type:"closeDialog"})}).catch(function(N){xo(N)?(H(N),R({type:"closeDialog"})):go(N)?(G.current=!1,P.current?(P.current.value=null,P.current.click()):V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):V(N)});return}P.current&&(R({type:"openDialog"}),B(),P.current.value=null,P.current.click())},[R,B,H,E,fe,V,F,p]),A=l.useCallback(function(b){!I.current||!I.current.isEqualNode(b.target)||(b.key===" "||b.key==="Enter"||b.keyCode===32||b.keyCode===13)&&(b.preventDefault(),te())},[I,te]),W=l.useCallback(function(){R({type:"focus"})},[]),ce=l.useCallback(function(){R({type:"blur"})},[]),re=l.useCallback(function(){y||(po()?setTimeout(te,0):te())},[y,te]),xe=function(N){return a?null:N},ye=function(N){return C?null:xe(N)},ee=function(N){return z?null:xe(N)},ke=function(N){D&&N.stopPropagation()},q=l.useMemo(function(){return function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=b.refKey,M=N===void 0?"ref":N,$=b.role,U=b.onKeyDown,se=b.onFocus,pe=b.onBlur,Ue=b.onClick,Ge=b.onDragEnter,Ye=b.onDragOver,Me=b.onDragLeave,Ve=b.onDrop,Je=He(b,bo);return L(L(st({onKeyDown:ye(le(U,A)),onFocus:ye(le(se,W)),onBlur:ye(le(pe,ce)),onClick:xe(le(Ue,re)),onDragEnter:ee(le(Ge,ie)),onDragOver:ee(le(Ye,ue)),onDragLeave:ee(le(Me,me)),onDrop:ee(le(Ve,oe)),role:typeof $=="string"&&$!==""?$:"presentation"},M,I),!a&&!C?{tabIndex:0}:{}),Je)}},[I,A,W,ce,re,ie,ue,me,oe,C,z,a]),we=l.useCallback(function(b){b.stopPropagation()},[]),_n=l.useMemo(function(){return function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=b.refKey,M=N===void 0?"ref":N,$=b.onChange,U=b.onClick,se=He(b,yo),pe=st({accept:S,multiple:p,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xe(le($,oe)),onClick:xe(le(U,we)),tabIndex:-1},M,P);return L(L({},pe),se)}},[P,n,p,oe,a]);return L(L({},ne),{},{isFocused:Q&&!a,getRootProps:q,getInputProps:_n,rootRef:I,inputRef:P,open:xe(te)})}function So(e,t){switch(t.type){case"focus":return L(L({},e),{},{isFocused:!0});case"blur":return L(L({},e),{},{isFocused:!1});case"openDialog":return L(L({},lt),{},{isFileDialogActive:!0});case"closeDialog":return L(L({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return L(L({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return L(L({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:!1});case"setDragGlobal":return L(L({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return L({},lt);default:return e}}function Ot(){}function Co({onFilesSelected:e}){const t=l.useCallback(s=>{s.length>0&&e(s)},[e]),{getRootProps:n,getInputProps:a,isDragActive:o}=yn({onDrop:t,onError:s=>console.error("[composer] Could not read the dropped files.",s),noClick:!0,noKeyboard:!0}),r=l.useCallback(s=>{const p=Array.from(s.clipboardData.items).filter(c=>c.kind==="file").map(c=>c.getAsFile()).filter(c=>c!==null);p.length>0&&e(p)},[e]);return{getRootProps:n,getInputProps:a,isDragActive:o,handlePaste:r}}function kn(e){const t=l.useCallback(a=>{Ua(a.dataTransfer.types)&&(a.preventDefault(),a.dataTransfer.dropEffect="copy")},[]),n=l.useCallback(a=>{if(!e)return!1;const o=Ga(a.dataTransfer);return o===null?!1:(a.preventDefault(),e(o),!0)},[e]);return e?{onDragOver:t,onDrop:n}:null}const wn="bg-surface relative m-2 rounded-xl border p-2",jn={"data-composer-card":""};function To({children:e,onFilesDropped:t,onPathDropped:n,className:a}){return t?i.jsx(zo,{onFilesDropped:t,onPathDropped:n,className:a,children:e}):i.jsx(Ao,{onPathDropped:n,className:a,children:e})}function Ao({children:e,onPathDropped:t,className:n}){const a=kn(t);return i.jsx("div",{...jn,className:_(wn,n),onDragOver:a==null?void 0:a.onDragOver,onDrop:a?o=>void a.onDrop(o):void 0,children:e})}function zo({children:e,onFilesDropped:t,onPathDropped:n,className:a}){const{getRootProps:o,getInputProps:r,isDragActive:s,handlePaste:p}=Co({onFilesSelected:t}),c=kn(n),m=o();return i.jsxs("div",{...m,...jn,onDragOver:d=>{var x;c==null||c.onDragOver(d),(x=m.onDragOver)==null||x.call(m,d)},onDrop:d=>{var x;c==null||c.onDrop(d),(x=m.onDrop)==null||x.call(m,d)},onPaste:p,className:_(wn,a),children:[i.jsx("input",{...r()}),i.jsx(he,{children:s&&i.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"bg-primary/10 border-primary absolute inset-0 z-10 flex items-center justify-center rounded-xl border-2 border-dashed",children:i.jsx("p",{className:"text-primary text-sm font-medium",children:"Drop files to attach"})})}),e]})}const Io=500,_o=229;function Oo(e){let t=0;for(let n=e.length-1;n>=0&&e[n]==="\\";n-=1)t+=1;return t}function Fo({surface:e,value:t,isStreaming:n,isTouchOnly:a,isUploading:o=!1,onCancelUpload:r,commandPending:s=!1,canSubmit:p=!0,editingQueueItem:c,isPaletteOpen:m,paletteHasResults:d=!1,tabPicks:x=!0,queueHasItems:w,onSubmit:j,onStop:g,onEscape:u,onClear:h,onArrowUp:E,onArrowDown:f,onCommandSelect:v,onQueue:y,onSteer:C,onStage:z,onSaveEdit:D,onCancelEdit:k,onQueueNavigateUp:T,onQueueNavigateDown:S,contextKey:F}){const[B,H]=l.useState(null),I=l.useRef(null),P=B!==null&&B===(F??""),de=l.useCallback(()=>{I.current!==null&&clearTimeout(I.current),I.current=null,H(null)},[]),K=l.useCallback(()=>{I.current!==null&&clearTimeout(I.current),H(F??""),I.current=setTimeout(()=>{I.current=null,H(null)},Io)},[F]);return l.useEffect(()=>()=>{I.current!==null&&clearTimeout(I.current)},[]),{handleKeyDown:l.useCallback(R=>{var Q,X;if(!(R.nativeEvent.isComposing||R.keyCode===_o||e.isComposing())){if(R.key==="Escape"){if(m){u==null||u(),R.preventDefault();return}if(c){k==null||k(),R.preventDefault();return}if(n){g==null||g(),R.preventDefault();return}if(o&&r){r(),R.preventDefault();return}t.trim()&&P?(e.clearThroughUndoStack(),h==null||h(),de(),R.preventDefault()):(u==null||u(),K(),t.trim()&&R.preventDefault());return}if(!m&&w){if(R.key==="ArrowUp"){const G=e.isCaretAtStart();if(!t.trim()||G){R.preventDefault(),T==null||T();return}}if(R.key==="ArrowDown"){const G=e.isCaretAtEnd();if(c&&G){R.preventDefault(),S==null||S();return}}}if(R.key==="Enter"&&R.altKey){R.preventDefault(),e.insertLineBreak();return}if(m){if(R.key==="ArrowDown"){R.preventDefault(),f==null||f();return}if(R.key==="ArrowUp"){R.preventDefault(),E==null||E();return}if(d&&(R.key==="Enter"&&!R.shiftKey||R.key==="Tab"&&x)){R.preventDefault(),v==null||v();return}}if(R.key==="Enter"&&!R.shiftKey){const G=e.textBeforeCaret();if(G!==null&&Oo(G)%2===1){R.preventDefault(),e.consumeEscapeIntoNewline();return}}if(R.key==="Enter"&&(R.metaKey||R.ctrlKey)&&!a&&n&&!c&&!s&&t.trim()){R.preventDefault(),R.shiftKey?(Q=z??y)==null||Q():(X=C??y)==null||X();return}if(R.key==="Enter"&&!R.shiftKey&&!a){if(R.preventDefault(),s)return;c&&t.trim()?D==null||D():n&&t.trim()?y==null||y():!n&&!o&&p&&t.trim()&&j()}}},[n,a,o,r,s,t,j,g,u,h,m,d,x,E,f,v,c,y,C,z,D,k,w,T,S,p,e,P,K,de]),clearArmed:P}}const Lo={textBeforeCaret:()=>null,isCaretAtStart:()=>!0,isCaretAtEnd:()=>!0,insertLineBreak:()=>{},consumeEscapeIntoNewline:()=>{},clearThroughUndoStack:()=>{},isComposing:()=>!1};function En(e,t){e.focus(),document.execCommand("insertText",!1,t)}function Mo(e){const t=e.selectionStart;e.setSelectionRange(t-1,t),En(e,`
|
|
22
22
|
`)}function Po(e){e.focus(),e.setSelectionRange(0,e.value.length),document.execCommand("insertText",!1,"")}function qo(e){return{textBeforeCaret(){const t=e.current;return!t||t.selectionStart!==t.selectionEnd?null:t.value.slice(0,t.selectionStart)},isCaretAtStart(){const t=e.current;return!t||t.selectionStart===0},isCaretAtEnd(){const t=e.current;return!t||t.selectionStart===t.value.length},insertLineBreak(){const t=e.current;t&&En(t,`
|
|
23
|
-
`)},consumeEscapeIntoNewline(){const t=e.current;t&&Mo(t)},clearThroughUndoStack(){const t=e.current;t&&Po(t)},isComposing(){return!1}}}const Bo=200,Ft=24,$o=200;function Ho(e,t){l.useLayoutEffect(()=>{const n=e.current;if(!n)return;const a=()=>{n.style.transition="",n.style.height=""};if(t!==""){n.style.transition="",n.style.height="auto",n.style.height=`${Math.min(n.scrollHeight,Bo)}px`;return}const o=n.offsetHeight;if(o<=Ft){a();return}n.style.height=`${o}px`,n.style.transition=`height ${$o}ms ease`;const r=requestAnimationFrame(()=>{n.style.height=`${Ft}px`});return n.addEventListener("transitionend",a,{once:!0}),()=>{cancelAnimationFrame(r),n.removeEventListener("transitionend",a),a()}},[e,t])}const Lt=l.forwardRef(function({value:t,onChange:n,onCursorChange:a,onKeyDown:o,onFocus:r,onBlur:s,placeholder:p,placeholderOverlay:c,isPaletteOpen:m,paletteListboxId:d,activeDescendantId:x,onSurfaceChange:w},j){const g=l.useRef(null),u=Yt(),h=l.useRef(null);l.useEffect(()=>{h.current??(h.current=qo(g)),w(h.current)},[w]),l.useImperativeHandle(j,()=>({focus:()=>{var y;return(y=g.current)==null?void 0:y.focus()},focusUnlessTouch:()=>{var y;u||(y=g.current)==null||y.focus()},focusAt:y=>{const C=g.current;C&&(C.focus(),C.setSelectionRange(y,y))}})),Ho(g,t);const E=l.useCallback(y=>{n(y.target.value),a==null||a(y.target.selectionStart)},[n,a]),f=l.useCallback(()=>{g.current&&(a==null||a(g.current.selectionStart))},[a]),v=t.trim().length>0;return i.jsxs("div",{className:"relative min-h-[24px] flex-1",children:[!v&&c,i.jsx("textarea",{ref:g,value:t,onChange:E,onKeyDown:o,onFocus:r,onBlur:s,onSelect:f,role:"combobox","aria-autocomplete":"list","aria-controls":m?d:void 0,"aria-expanded":m??!1,"aria-activedescendant":m?x:void 0,"aria-label":p,placeholder:c?"":p,className:"block max-h-[200px] min-h-[24px] w-full resize-none bg-transparent py-0.5 text-sm focus:outline-none",rows:1})]})});function Ko({onSteer:e,onStage:t}){return!e&&!t?null:i.jsxs(Vt,{children:[i.jsx(Jt,{asChild:!0,children:i.jsx("button",{type:"button",className:"focus-ring bg-muted text-muted-foreground hover:bg-muted/80 shrink-0 rounded-lg p-1.5 transition-colors max-md:p-2","aria-label":"More ways to send",children:i.jsx(ia,{className:"size-(--size-icon-sm)"})})}),i.jsxs(Xt,{align:"end",children:[e&&i.jsx(nt,{icon:ni,description:"Send it into the task now",onSelect:e,children:"Steer"}),t&&i.jsx(nt,{icon:oa,description:"Use it next, without interrupting",onSelect:t,children:"Add context"})]})]})}const qe={send:{className:"bg-primary text-primary-foreground hover:bg-primary/90",label:"Send message"},stop:{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 dark:bg-destructive/60",label:"Stop generating"},queue:{className:"bg-muted text-muted-foreground hover:bg-muted/80",label:"Queue message"},update:{className:"bg-primary text-primary-foreground hover:bg-primary/90",label:"Save edit"},cancel:{className:"bg-muted text-muted-foreground hover:bg-muted/80",label:"Cancel edit"},"cancel-upload":{className:"bg-muted text-muted-foreground hover:bg-destructive/90 hover:text-destructive-foreground dark:hover:bg-destructive/60",label:"Cancel upload"},dispatching:{className:"bg-muted text-muted-foreground",label:"Running command"},stopping:{className:"bg-muted text-muted-foreground",label:"Stopping…"}},Wo={send:Ya,stop:nn,queue:la,update:sa,cancel:pt,"cancel-upload":Se,dispatching:Se,stopping:Se};function Uo(e,t,n,a,o,r){return o?"dispatching":a?e?"update":"cancel":r?"stopping":t&&e?"queue":t?"stop":n?"cancel-upload":e?"send":null}function Go(e,t){switch(e){case"send":return t.onSubmit;case"stop":return t.onStop;case"queue":return t.onQueue;case"update":return t.onSaveEdit;case"cancel":return t.onCancelEdit;case"cancel-upload":return t.onCancelUpload;default:return}}function Yo({hasText:e,isStreaming:t,commandPending:n=!1,submitDisabled:a=!1,editingQueueItem:o,queueDepth:r,isTouchOnly:s,onSubmit:p,onStop:c,onQueue:m,onSaveEdit:d,onCancelEdit:x,onCancelUpload:w,onSteer:j,onStage:g,stopPending:u=!1}){const h=Uo(e,t,w!==void 0,o,n,u),E=h==="send"&&a,f=E||h===null?void 0:Go(h,{onSubmit:p,onStop:c,onQueue:m,onSaveEdit:d,onCancelEdit:x,onCancelUpload:w}),v=h===null?null:h==="send"&&s?ra:Wo[h],y=h==="dispatching"||h==="stopping";return i.jsxs(i.Fragment,{children:[i.jsx(he,{children:t&&e&&!u&&i.jsx(J.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},whileHover:{scale:1.05},whileTap:{scale:.97},onClick:c,type:"button",className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 dark:bg-destructive/60 shrink-0 rounded-lg p-1.5 transition-colors max-md:p-2","aria-label":"Stop generating",children:i.jsx(nn,{className:"size-(--size-icon-sm)"})})}),h==="queue"&&i.jsx(Ko,{onSteer:j,onStage:g}),i.jsxs("div",{className:"relative shrink-0",children:[h==="cancel-upload"&&i.jsx("span",{role:"status",className:"sr-only",children:"Uploading attachment"}),y&&h?i.jsxs("div",{role:"status",className:_("rounded-lg p-1.5 max-md:p-2",qe[h].className),children:[i.jsx(Se,{}),i.jsx("span",{className:"sr-only",children:qe[h].label})]}):h&&v?i.jsx(J.button,{animate:{opacity:E?.5:1,scale:1},initial:!1,transition:{duration:.15},whileHover:E?void 0:{scale:1.05},whileTap:E?void 0:{scale:.97},onClick:f,disabled:E,type:"button",className:_("focus-ring rounded-lg p-1.5 transition-colors max-md:p-2",qe[h].className,E&&"pointer-events-none"),"aria-label":qe[h].label,children:i.jsx(v,{className:"size-(--size-icon-sm)"})}):i.jsx("div",{"aria-hidden":"true","data-testid":"action-slot-spacer",className:"p-1.5 max-md:p-2",children:i.jsx("div",{className:"size-(--size-icon-sm)"})}),r>0&&h==="queue"&&i.jsx("span",{className:"bg-foreground text-background text-3xs absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full font-medium",children:r})]})]})}const Vo=l.lazy(()=>pa(()=>import("./LexicalField-BxzNvIjJ.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]))),Jo=l.forwardRef(function({value:t,onChange:n,onSubmit:a,isStreaming:o,isUploading:r=!1,onCancelUpload:s,commandPending:p=!1,editingQueueItem:c=!1,editingPosition:m,queueDepth:d=0,onStop:x,stopPending:w=!1,onQueue:j,onSteer:g,onStage:u,onSaveEdit:h,onCancelEdit:E,onEscape:f,onClear:v,isPaletteOpen:y,paletteHasResults:C,tabPicks:z,onArrowUp:D,onArrowDown:k,onCommandSelect:T,activeDescendantId:S,paletteListboxId:F,onCursorChange:B,onAttach:H,placeholder:I="Send a message…",placeholderOverlay:P,onQueueNavigateUp:de,onQueueNavigateDown:K,contextKey:ne,onClearArmedChange:R,queueHasItems:Q=!1,canSubmit:X=!0,canSubmitReason:G,richText:be=!1,mentionSubjects:ae},Y){const Z=l.useRef(null),V=l.useRef(null),[ie,ue]=l.useState(!1),[me,fe]=l.useState(Lo),oe=Yt();l.useImperativeHandle(Y,()=>({focus:()=>{var q;return(q=Z.current)==null?void 0:q.focus()},focusUnlessTouch:()=>{var q;return(q=Z.current)==null?void 0:q.focusUnlessTouch()},focusAt:q=>{var we;return(we=Z.current)==null?void 0:we.focusAt(q)}}));const te=l.useRef(oe);l.useEffect(()=>{var q;te.current||ca()||(q=Z.current)==null||q.focus()},[]);const A=l.useCallback(()=>{var q;(q=Z.current)==null||q.focusAt(t.length),x==null||x()},[x,t.length]),{handleKeyDown:W,clearArmed:ce}=Fo({surface:me,value:t,isStreaming:o,isTouchOnly:oe,isUploading:r,onCancelUpload:s,commandPending:p,canSubmit:X,editingQueueItem:c,isPaletteOpen:y,paletteHasResults:C,tabPicks:z,queueHasItems:Q,onSubmit:a,onStop:x,onEscape:f,onClear:v,onArrowUp:D,onArrowDown:k,onCommandSelect:T,onQueue:j,onSteer:g,onStage:u,onSaveEdit:h,onCancelEdit:E,onQueueNavigateUp:de,onQueueNavigateDown:K,contextKey:ne}),re=l.useCallback(()=>ue(!0),[]),xe=l.useCallback(()=>{ue(!1),y&&(f==null||f())},[y,f]),ye={ref:Z,value:t,onChange:n,onCursorChange:B,onKeyDown:W,onFocus:re,onBlur:xe,placeholder:I,placeholderOverlay:P,isPaletteOpen:y,paletteHasResults:C,paletteListboxId:F,activeDescendantId:S,onSurfaceChange:fe,mentionSubjects:ae},ee=t.trim().length>0,ke=v!==void 0&ⅇreturn l.useEffect(()=>{R==null||R(ce&&ke)},[ce,ke,R]),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[!X&&G&&i.jsx("div",{role:"status",className:"text-muted-foreground px-1 text-xs",children:G}),c&&i.jsx("div",{className:"text-muted-foreground px-0.5 text-xs",children:m!==void 0&&d>0?`Editing message ${m} of ${d}`:"Editing message"}),i.jsxs("div",{className:_("border-input bg-background flex items-end gap-1.5 rounded-md border p-1.5 shadow-xs transition-[color,box-shadow]",ie&&"border-ring ring-ring ring-[1px]",c&&"border-primary/40",!H&&"pl-3"),children:[H&&i.jsxs(i.Fragment,{children:[i.jsx("input",{ref:V,type:"file",className:"hidden",multiple:!0,onChange:q=>{const we=Array.from(q.target.files??[]);we.length>0&&H(we),q.target.value=""}}),i.jsx("button",{type:"button",onClick:()=>{var q;return(q=V.current)==null?void 0:q.click()},className:"focus-ring text-muted-foreground hover:text-foreground flex shrink-0 items-center justify-center rounded-md px-1.5 py-1 transition-colors disabled:opacity-50","aria-label":"Attach file",children:i.jsx(Va,{className:"size-4"})})]}),be?i.jsx(l.Suspense,{fallback:i.jsx(Lt,{...ye}),children:i.jsx(Vo,{...ye})}):i.jsx(Lt,{...ye}),v&&i.jsx(J.button,{animate:{opacity:ee?.5:0,scale:ee?1:.8},transition:{duration:.15},whileHover:ee?{opacity:1}:void 0,onClick:v,disabled:!ee,type:"button",className:_("focus-ring text-muted-foreground hover:text-foreground shrink-0 rounded-lg p-1 transition-colors",!ee&&"pointer-events-none"),"aria-label":"Clear message",children:i.jsx(pt,{className:"size-(--size-icon-sm)"})}),i.jsx(Yo,{hasText:ee,isStreaming:o,onCancelUpload:r?s:void 0,commandPending:p,submitDisabled:!X,editingQueueItem:c,queueDepth:d,isTouchOnly:oe,onSubmit:a,onStop:A,stopPending:w,onQueue:j,onSteer:g,onStage:u,onSaveEdit:h,onCancelEdit:E})]})]})});function Xo({children:e,className:t}){return i.jsx("div",{className:_("absolute right-0 bottom-full left-0 mb-2",t),children:e})}function Mt(e){return e.type.startsWith("image/")}const Pt="This file didn’t upload";function Zo({files:e,onRemove:t,onRetry:n,onCancel:a}){const o=e.filter(s=>Mt(s.file)).map(s=>s.id).join(" "),r=l.useMemo(()=>{const s=new Map;for(const p of e)Mt(p.file)&&s.set(p.id,URL.createObjectURL(p.file));return s},[o]);return l.useEffect(()=>()=>{for(const s of r.values())URL.revokeObjectURL(s)},[r]),i.jsx("div",{className:"flex flex-wrap gap-1.5 px-1 pb-1.5",children:i.jsx(he,{children:e.map(s=>{const p=r.get(s.id),c=s.status==="error",m=s.status==="uploading"&&a!==void 0;return i.jsxs(J.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.15},className:_("flex items-center gap-1 rounded-md px-2 py-1 text-xs",c?"bg-destructive/10 border-destructive/40 border":"bg-muted"),children:[s.status==="uploading"?i.jsx(Se,{size:"xs",className:"text-muted-foreground"}):c?i.jsx(da,{className:"text-destructive size-(--size-icon-xs) shrink-0"}):p?i.jsx("img",{src:p,alt:"",className:"size-5 shrink-0 rounded object-cover"}):i.jsx(ut,{className:"text-muted-foreground size-(--size-icon-xs)"}),i.jsx("span",{className:"max-w-32 truncate",children:s.file.name}),s.status==="uploading"&&i.jsxs("span",{className:"text-muted-foreground tabular-nums",children:[s.progress,"%"]}),c&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-destructive max-w-44 truncate",title:s.error??Pt,children:s.error??Pt}),n&&i.jsx("button",{type:"button",onClick:()=>n(s.id),className:"text-foreground ml-0.5 shrink-0 rounded-sm font-medium underline decoration-dotted underline-offset-2","aria-label":`Try uploading ${s.file.name} again`,children:"Try again"})]}),i.jsx("button",{type:"button",onClick:m?a:()=>t(s.id),className:"text-muted-foreground hover:text-foreground -mr-0.5 ml-0.5 shrink-0 rounded-sm p-0.5","aria-label":m?`Cancel upload of ${s.file.name}`:`Remove ${s.file.name}`,children:i.jsx(pt,{className:"size-3"})})]},s.id)})})})}function Qo(){const e=Zt();return i.jsx(J.div,{initial:e?!1:{opacity:0,y:3},animate:{opacity:1,y:0},transition:{duration:.12,ease:"easeOut"},"aria-hidden":"true","data-testid":"clear-armed-hint",className:"bg-popover text-muted-foreground shadow-soft pointer-events-none mt-1.5 ml-auto w-fit rounded-md border px-2 py-1 text-xs",children:"Press Esc again to clear"})}const Ae={Root:To,Input:Jo,OverlayLane:Xo,Attachments:Zo,ClearArmedHint:Qo};function er({value:e,onChange:t,onSubmit:n,inputRef:a,head:o,mentionPicker:r,overlays:s,queue:p,aboveInput:c,asks:m,footer:d,children:x,className:w,onPathDropped:j,input:g}){const{capabilities:u,target:h}=Oe();if(h===null)throw new Error("<Conversation.Composer> needs a target. A host that draws a composer has to say where its words go — pass `target` to <Conversation.Root>.");const[E,f]=l.useState(!1),v=u.attachments?h.attachments:null,y=(v==null?void 0:v.staged)??[],C=(v==null?void 0:v.hasFailed)===!0,z=h.canSend&&!C&&(g.canSubmit??!0),D=C?void 0:h.canSend?g.canSubmitReason:h.canSendReason,k=i.jsxs(i.Fragment,{children:[i.jsxs(Ae.OverlayLane,{children:[u.mentions&&r,s,E&&i.jsx(Ae.ClearArmedHint,{})]}),v!==null&&y.length>0&&i.jsx(Ae.Attachments,{files:[...y],onRemove:v.remove,onRetry:v.retry,onCancel:v.cancel}),h.queue!==void 0&&p,c,i.jsx(Ae.Input,{...g,ref:a,value:e,onChange:t,onSubmit:n,placeholder:g.placeholder??h.placeholder,canSubmit:z,...D===void 0?{}:{canSubmitReason:D},...v===null?{}:{onAttach:v.add,...v.holdsSendWhileUploading?{isUploading:v.isUploading,onCancelUpload:v.cancel}:{}},onClearArmedChange:f}),d]});return i.jsxs(Ae.Root,{className:w,...v===null?{}:{onFilesDropped:v.add},...j===void 0?{}:{onPathDropped:j},children:[o,m===void 0?k:i.jsx(he,{mode:"wait",children:m!==null?i.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:m},"interactive"):i.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:k},"normal")}),x]})}function tr({asChild:e,children:t,className:n}){const a=e===!0?dt:"div";return i.jsx(a,{"data-slot":"conversation-footer",className:_(n),children:t})}function nr({surface:e,capabilities:t,target:n,density:a="comfortable",anchor:o="corner",children:r}){const s=l.useMemo(()=>({surface:e,capabilities:t,target:n??null,density:a,anchor:o}),[e,t,n,a,o]);return i.jsx(on.Provider,{value:s,children:r})}const qt=1e3;function ar(e,t=Date.now){const n=Date.parse(e)+rn,[a,o]=l.useState(()=>t());return l.useEffect(()=>{const r=()=>o(t());let s,p;const c=n-t();return c>0?p=setTimeout(()=>{o(Math.max(t(),n)),s=setInterval(r,qt)},c):s=setInterval(r,qt),()=>{clearTimeout(p),clearInterval(s)}},[n,t]),Ei(e,a)}function Rn(e){return e?"This room is gone, or you no longer have access to it.":"New messages aren’t arriving. You can still send; anything unsent will say so."}function ir(e){return e?"This room is no longer available":"Reconnecting. You can still send"}function or(e,t){switch(e.kind){case"ask":return"";case"stalled":return Rn(t);case"presence":case"held":return e.sentence;case"silent-finish":return e.sentence;case"turn-waiting":return e.waitingType==="approval"?"Waiting for your approval":"Waiting for your answer";case"turn-progress":case"turn-system":return e.message;case"turn-streaming":return"Working";case"turn-complete":return"";case"empty":return""}}function Bt(e){switch(e.kind){case"ask":return`ask:${e.ask.interaction.id}`;case"presence":return`presence:${e.sentence}`;case"held":return`held:${e.sentence}`;case"silent-finish":return`silent-finish:${e.sentence}`;case"turn-waiting":return`turn-waiting:${e.waitingType}`;case"turn-progress":case"turn-system":return`${e.kind}:${e.message}`;case"turn-streaming":return`turn-streaming:${e.verbKey}`;default:return e.kind}}const rr={room:"room-presence",thread:"thread-presence",session:"session-presence"},sr={room:"room-held",thread:"thread-held",session:"session-held"};function lr({state:e,onRetry:t,unavailable:n=!1,faces:a,reducedMotion:o=!1,scope:r="room"}){switch(e.kind){case"ask":return i.jsx(cr,{state:e,reducedMotion:o});case"stalled":return i.jsx(pr,{onRetry:t,unavailable:n});case"presence":return i.jsx(dr,{state:e,faces:a,reducedMotion:o,scope:r});case"held":return i.jsx(ur,{state:e,faces:a,scope:r});case"silent-finish":return i.jsx(mr,{state:e});case"turn-waiting":return i.jsx(fr,{state:e});case"turn-progress":return i.jsx(xr,{state:e,reducedMotion:o});case"turn-system":return i.jsx(gr,{state:e});case"turn-streaming":return i.jsx(vr,{state:e,reducedMotion:o});case"turn-complete":return i.jsx(hr,{state:e});case"empty":return null}}function cr({state:e,reducedMotion:t}){return i.jsxs("span",{"data-testid":"lane-ask",className:"flex min-w-0 items-center gap-2",children:[i.jsx(Fe,{signal:"needs-you",reducedMotion:t}),i.jsx("span",{className:"text-foreground truncate",children:e.headline}),e.count>1&&i.jsxs("span",{"aria-hidden":"true",className:"text-muted-foreground shrink-0 tabular-nums",children:["+",e.count-1]}),i.jsx("span",{className:"text-status-warning-fg shrink-0 font-medium",children:"Answer"})]})}function pr({onRetry:e,unavailable:t}){const n=Rn(t);return i.jsxs("span",{"data-testid":"room-stalled","data-unavailable":t?"true":void 0,className:"flex min-w-0 items-center gap-2",children:[i.jsx(Fe,{signal:"error",reducedMotion:!0}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground truncate sm:hidden",children:ir(t)}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground hidden truncate sm:inline",title:n,children:n}),e!==void 0&&i.jsx("button",{type:"button",onClick:e,className:"focus-ring text-muted-foreground hover:text-foreground shrink-0 rounded underline underline-offset-2",children:t?"Try again":"Reconnect"})]})}function dr({state:e,faces:t,reducedMotion:n,scope:a}){return i.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[i.jsx(Fe,{signal:"working",reducedMotion:n}),t,i.jsxs("span",{"data-testid":rr[a],"data-late":e.late?"true":void 0,className:"text-muted-foreground flex min-w-0 items-center",children:[i.jsx("span",{className:"truncate",children:e.line}),i.jsx(Dn,{since:e.since})]})]})}function ur({state:e,faces:t,scope:n}){return i.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[i.jsx(Fe,{signal:"working",reducedMotion:!0}),t,i.jsxs("span",{"data-testid":sr[n],className:"text-muted-foreground flex min-w-0 items-center",children:[i.jsx("span",{className:"truncate",children:e.sentence}),i.jsx(Dn,{since:e.since})]})]})}function mr({state:e}){return i.jsx("span",{"data-testid":"lane-silent-finish",className:"text-muted-foreground/50 flex min-w-0 items-center gap-2 opacity-60",children:i.jsx("span",{className:"truncate",children:e.sentence})})}function fr({state:e}){const t=e.waitingType==="approval"?ma:fa;return i.jsxs("span",{"data-testid":"lane-waiting",className:"flex min-w-0 items-center gap-2",children:[i.jsx(t,{"aria-hidden":"true",className:"text-status-warning-fg size-3 shrink-0"}),i.jsx("span",{className:"text-status-warning-fg truncate",children:e.waitingType==="approval"?"Waiting for your approval":"Waiting for your answer"}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/70 shrink-0 tabular-nums",children:e.elapsed})]})}function xr({state:e,reducedMotion:t}){return i.jsxs("span",{"data-testid":"lane-progress","data-determinate":e.determinate,className:"flex min-w-0 flex-1 items-center gap-2",children:[i.jsx("span",{className:"text-muted-foreground truncate",children:e.message}),i.jsx("span",{"aria-hidden":"true",className:"bg-muted/60 relative h-0.5 w-16 shrink-0 overflow-hidden rounded-full",children:e.determinate?i.jsx(J.span,{className:"bg-muted-foreground/50 absolute inset-y-0 left-0 block rounded-full",initial:!1,animate:{width:`${e.percent??0}%`},transition:t?{duration:0}:{duration:.3,ease:"easeOut"}}):i.jsx(J.span,{className:"bg-muted-foreground/50 absolute inset-y-0 block w-1/3 rounded-full",animate:t?void 0:{x:["-100%","400%"]},transition:{duration:1.4,ease:"easeInOut",repeat:1/0}})})]})}function gr({state:e}){return i.jsxs("span",{"data-testid":"lane-system",className:"flex min-w-0 items-center gap-2",children:[i.jsx(ua,{"aria-hidden":"true",className:"text-muted-foreground/60 size-3 shrink-0"}),i.jsx("span",{className:"text-muted-foreground/70 truncate",children:e.message})]})}function vr({state:e,reducedMotion:t}){return i.jsxs("span",{"data-testid":"lane-streaming","data-bypass":e.isBypass?"true":void 0,className:"flex min-w-0 items-center gap-2",children:[e.isBypass?i.jsx("span",{"aria-hidden":"true",className:"text-status-warning-fg shrink-0 font-bold",children:"☠"}):i.jsx(Fe,{signal:"working",reducedMotion:t}),i.jsx("span",{"aria-hidden":"true",className:_("truncate",e.isBypass?"text-status-warning-fg":"text-muted-foreground"),children:e.verb}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/70 shrink-0 tabular-nums",children:e.elapsed}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/60 shrink-0",children:e.tokens})]})}function hr({state:e}){return i.jsxs("span",{"data-testid":"lane-complete",className:"text-muted-foreground/50 flex min-w-0 items-center gap-2 opacity-60",children:[i.jsx("span",{className:"truncate",children:e.elapsed}),i.jsx("span",{"aria-hidden":"true",children:"·"}),i.jsx("span",{className:"shrink-0",children:e.tokens})]})}function Fe({signal:e,reducedMotion:t}){return i.jsx("span",{"aria-hidden":"true","data-lane-dot":e,className:_("size-1.5 shrink-0 rounded-full",ga[e],e==="working"&&!t&&xa)})}function Dn({since:e}){const t=ar(e);return t===null?null:i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/70 shrink-0 tabular-nums",children:` · ${t}`})}const br=.16,yr={room:"room-presence-announcer",thread:"thread-presence-announcer",session:"session-lane-announcer"};function kr({state:e,scope:t="room",onRetry:n,unavailable:a=!1,faces:o,peek:r,onPeekOpenChange:s,peekLabel:p="Show who is working",heldPeekLabel:c="Show what is waiting",askCard:m,reducedMotionOverride:d}){const[x,w]=l.useState(!1),j=l.useRef(null),g=Zt()===!0,u=d??g,h=or(e,a),E=e.kind==="empty",f=(e.kind==="presence"||e.kind==="held")&&r!==void 0,v=e.kind==="ask"&&m!==void 0,y=f||v,C=v?m:r,z=v?"Answer this":e.kind==="held"?c:p;x&&!y&&w(!1);const D=x&&y,k=l.useRef(!1);l.useEffect(()=>{var B,H;if(k.current===D)return;const F=!D&&(((B=j.current)==null?void 0:B.contains(document.activeElement))===!0||document.activeElement===document.body);k.current=D,s==null||s(D),F&&((H=j.current)==null||H.focus())},[D,s]);const T=i.jsx(lr,{state:e,onRetry:n,unavailable:a,faces:o,reducedMotion:u,scope:t}),S=y?i.jsxs(va,{open:D,onOpenChange:w,children:[i.jsx(ha,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":z,className:_("focus-ring flex min-w-0 items-center rounded text-left","hover:bg-accent/40 focus-visible:bg-accent/40"),children:T})}),i.jsxs(ba,{side:"top",align:"start",onOpenAutoFocus:v?void 0:F=>F.preventDefault(),className:"w-88 p-0",children:[i.jsx(ya,{children:z}),C]})]}):T;return i.jsxs("div",{ref:j,"data-slot":"live-lane","data-lane-scope":t,tabIndex:-1,"data-lane-state":e.kind,"data-lane-motion":u?"off":"on",className:"flex h-6 shrink-0 items-center gap-2 overflow-hidden px-3 text-xs",children:[i.jsx("span",{"data-testid":yr[t],role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:h}),u?i.jsx("div",{"aria-hidden":E?"true":void 0,className:"flex min-w-0 flex-1 items-center",children:S},Bt(e)):i.jsx(he,{mode:"wait",initial:!1,children:i.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:br},"aria-hidden":E?"true":void 0,className:"flex min-w-0 flex-1 items-center",children:S},Bt(e))})]})}const wr=1e3,jr={working:"working",working_late:"still working",held:"waiting to start"};function Er({rows:e,onScrollToRow:t,onOpenSession:n,onOpenRoom:a,onAnswerFirst:o,promoted:r,onStopAll:s,stopping:p=!1,onStopAgent:c,stoppingAgents:m}){const d=c!==void 0,x=e.length>1&&s!==void 0,w=l.useRef(new Map),j=l.useRef(null),g=l.useRef(e);return l.useEffect(()=>{var v;const u=g.current;g.current=e;const h=j.current;if(h===null||e.some(y=>y.authorId===h)||(j.current=null,document.activeElement!==document.body))return;const E=u.findIndex(y=>y.authorId===h),f=e[Math.min(Math.max(E,0),e.length-1)];f!==void 0&&((v=w.current.get(f.authorId))==null||v.focus())},[e]),i.jsxs("div",{"data-slot":"live-peek","data-testid":"live-peek",className:"flex flex-col",children:[i.jsx("ul",{className:"divide-border divide-y",children:e.map(u=>i.jsxs("li",{"data-testid":"live-peek-row",className:"flex gap-2.5 px-3 py-2.5",children:[i.jsx(sn,{author:u.author,className:"mt-0.5 shrink-0"}),i.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[i.jsxs("p",{className:"flex min-w-0 items-center gap-1.5 text-xs",children:[i.jsx("span",{className:"text-foreground truncate font-medium",children:u.author.displayName}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/50",children:"·"}),i.jsx("span",{className:"text-muted-foreground shrink-0",children:jr[u.state]}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/50",children:"·"}),i.jsx(Rr,{since:u.since})]}),u.doing!==null&&i.jsx("p",{"data-testid":"live-peek-doing",className:"text-muted-foreground truncate text-xs",children:u.doing}),u.replyingTo!==null&&t!==void 0&&i.jsx("button",{type:"button","data-testid":"live-peek-replying-to",onClick:()=>t(u.replyingTo.rowId),className:"focus-ring text-muted-foreground hover:text-foreground truncate rounded text-left text-xs underline underline-offset-2",children:`Replying to “${u.replyingTo.excerpt}”`}),i.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[u.state!=="held"&&u.sessionId!==null&&n!==void 0&&i.jsxs(ve,{type:"button",variant:"outline",size:"sm","data-testid":"live-peek-open-session",onClick:()=>n(u.sessionId),className:"h-7 gap-1 px-2 text-xs",children:["Open its chat",i.jsx(vt,{"aria-hidden":"true",className:"size-3"})]}),u.state==="held"&&u.behind!=null&&u.behind.title!==null&&a!==void 0&&i.jsxs(ve,{type:"button",variant:"outline",size:"sm","data-testid":"live-peek-open-room",onClick:()=>a(u.behind.roomId),className:"h-7 gap-1 px-2 text-xs",children:["Open where it’s working",i.jsx(vt,{"aria-hidden":"true",className:"size-3"})]}),u.state==="held"&&u.othersWaiting===!0&&o!==void 0&&((r==null?void 0:r.has(u.authorId))===!0?i.jsx("span",{"data-testid":"live-peek-next-up",className:"text-muted-foreground text-xs",children:"Next up here"}):i.jsx(ve,{type:"button",variant:"ghost",size:"sm","data-testid":"live-peek-answer-first",onClick:()=>o(u.authorId),className:"h-7 px-2 text-xs",children:"Answer here first"})),d&&i.jsx(ve,{type:"button",variant:"ghost",size:"sm","data-testid":"live-peek-stop",disabled:(m==null?void 0:m.has(u.authorId))===!0,onClick:()=>c(u.authorId),onFocus:()=>j.current=u.authorId,ref:h=>{h===null?w.current.delete(u.authorId):w.current.set(u.authorId,h)},"aria-label":`Stop ${u.author.displayName}`,className:"h-7 px-2 text-xs",children:"Stop"})]})]})]},u.authorId))}),x&&i.jsx("div",{className:"border-border border-t p-2",children:i.jsxs(ve,{type:"button",variant:"ghost",size:"sm","data-testid":"live-peek-stop-all",disabled:p,onClick:s,className:"h-auto w-full flex-col items-start gap-0.5 px-2 py-1.5 text-xs",children:[i.jsx("span",{children:"Stop everything in this room"}),i.jsx("span",{className:"text-muted-foreground font-normal",children:`Stops all ${e.length}`})]})})]})}function Rr({since:e}){const[t,n]=l.useState(()=>Date.now());return l.useEffect(()=>{const a=setInterval(()=>n(Date.now()),wr);return()=>clearInterval(a)},[e]),i.jsx("span",{className:"text-muted-foreground shrink-0 tabular-nums",children:Wt(Math.max(0,t-Date.parse(e)))})}function Dr(e,t,n){const a=l.useRef(null),o=l.useCallback((r,s)=>{const p=Number(s.getAttribute("aria-posinset")),c=r==="next"?p+1:p-1;if(!Number.isFinite(c)||c<1)return;let m=0;const d=e.findIndex(x=>x.kind==="message"&&++m===c);d!==-1&&(a.current=c,t.scrollToIndex(d,{align:r==="next"?"end":"start"}))},[e,t]);return l.useEffect(()=>{var p;const r=a.current;if(r===null)return;const s=(p=n.current)==null?void 0:p.querySelector(`[${mt}][aria-posinset="${r}"]`);s!=null&&(a.current=null,s.focus())}),o}function Nr(e){const{conversationId:t,rows:n,virtualizer:a,landOn:o,landingReady:r,resumeRow:s,landOnRow:p,onTopRow:c}=e,[m,d]=l.useState(!1);l.useLayoutEffect(()=>{d(!0)},[]);const x=l.useRef(null),[w,j]=l.useState(!1),[g,u]=l.useState(null),[h,E]=l.useState(null),f=l.useRef(null);l.useLayoutEffect(()=>{if(!m||!r||n.length===0)return;const y=p==null?void 0:p(),C=x.current!==t;if(!C&&y===void 0)return;if(x.current=t,C&&(f.current=null),j(!0),y!==void 0){const k=n.findIndex(T=>T.id===y);if(k!==-1){u("requested"),E(y),a.scrollToIndex(k,{align:"center"});return}}if(!C)return;E(null);const z=s==null?void 0:s();if(z!==void 0){const k=n.findIndex(T=>T.id===z);if(k!==-1){u("remembered"),a.scrollToIndex(k,{align:"start"});return}}const D=o==="unread"?n.findIndex(k=>k.kind==="unread-divider"):-1;if(D===-1){u(z===void 0?"end":"end-row-gone"),a.scrollToEnd();return}u("unread"),a.scrollToIndex(Math.max(0,D-1),{align:"start"})},[m,r,t,n,a,o,s,p]);const v=l.useCallback((y,C)=>{var S;const z=(y==null?void 0:y.scrollTop)??0,D=a.getVirtualItems().find(F=>F.end>z),k=D===void 0||(S=n[D.index])==null?void 0:S.id,T=C?void 0:k;T!==f.current&&(f.current=T,c==null||c(T))},[a,n,c]);return{landed:w,landedOn:g,landedRow:h,reportTopRow:v}}function Sr(e,t,n){const a=l.useCallback(r=>{var s;return((s=e[r])==null?void 0:s.id)??r},[e]);return Ja({count:e.length,getScrollElement:()=>t.current,estimateSize:()=>80,overscan:5,getItemKey:a,measureElement:(r,s,p)=>{var w;const c=(w=s==null?void 0:s.borderBoxSize)==null?void 0:w[0],m=c?Math.round(c.blockSize):r.getBoundingClientRect().height;if(m>0)return m;const d=p.indexFromElement(r),x=p.options.getItemKey(d);return p.itemSizeCache.get(x)??p.options.estimateSize(d)},anchorTo:"end",followOnAppend:!0,scrollEndThreshold:64,onChange:r=>{r.isScrolling||n==null||n()}})}const Cr=64;function Tr(e){const{conversationId:t,rowCount:n}=e,a=l.useRef(null),o=l.useRef(!0),[r,s]=l.useState(!0),[p,c]=l.useState(!1),m=l.useRef(t),d=l.useCallback(()=>{const g=a.current;if(!g)return;const u=g.scrollHeight-g.scrollTop-g.clientHeight<=Cr;o.current=u,s(h=>h===u?h:u),u&&c(!1)},[]),x=l.useCallback(g=>{a.current=g},[]);l.useEffect(()=>{if(m.current===t)return;m.current=t,o.current=!0,s(!0),c(!1);const g=a.current;g&&(g.scrollTop=g.scrollHeight)},[t]);const w=l.useRef(n);l.useEffect(()=>{const g=w.current;w.current=n,n>g&&!o.current&&c(!0)},[n]);const j=l.useCallback(g=>{const u=a.current;u&&u.scrollTo({top:u.scrollHeight,behavior:(g==null?void 0:g.behavior)??"auto"}),o.current=!0,s(!0),c(!1)},[]);return{scrollRef:x,onScroll:d,isAtBottom:r,hasNewRows:p,atBottomRef:o,scrollToBottom:j}}const Ar=800,$t=24;function zr({scrollRef:e}){const t=l.useRef(null),n=l.useRef(null),a=l.useRef(null),[o,r]=l.useState(!1),s=l.useRef(!1),p=l.useRef(!1),c=l.useRef(0),m=l.useRef(0),d=l.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{!s.current&&!p.current&&r(!1)},Ar)},[]),x=l.useCallback(()=>{r(!0),d()},[d]),w=l.useCallback(()=>{p.current=!0,x()},[x]),j=l.useCallback(()=>{p.current=!1,d()},[d]),g=l.useCallback(()=>{const E=e.current,f=t.current,v=n.current;if(!E||!f||!v)return;const{scrollTop:y,scrollHeight:C,clientHeight:z}=E;if(C<=z){f.style.display="none";return}f.style.display="";const D=v.clientHeight,k=z/C,T=Math.max(k*D,$t),S=D-T,B=y/(C-z)*S;f.style.height=`${T}px`,f.style.transform=`translateY(${B}px)`},[e]);l.useEffect(()=>{const E=e.current;if(!E)return;const f=()=>{x(),g()};return E.addEventListener("scroll",f,{passive:!0}),g(),()=>E.removeEventListener("scroll",f)},[e,x,g]);const u=l.useCallback(E=>{if(E.target===t.current)return;const f=e.current,v=n.current;if(!f||!v)return;const y=v.getBoundingClientRect(),C=(E.clientY-y.top)/y.height;f.scrollTop=C*(f.scrollHeight-f.clientHeight)},[e]),h=l.useCallback(E=>{var y;E.preventDefault(),E.stopPropagation(),s.current=!0,c.current=E.clientY,m.current=((y=e.current)==null?void 0:y.scrollTop)??0;const f=C=>{const z=e.current,D=n.current;if(!z||!D)return;const k=C.clientY-c.current,T=D.clientHeight,S=z.clientHeight/z.scrollHeight,F=Math.max(S*T,$t),B=T-F,H=z.scrollHeight-z.clientHeight,I=k/B*H;z.scrollTop=m.current+I},v=()=>{s.current=!1,document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",v),d()};document.addEventListener("pointermove",f),document.addEventListener("pointerup",v)},[e,d]);return i.jsx("div",{ref:n,role:"presentation",onClick:u,onPointerEnter:w,onPointerLeave:j,style:{top:"var(--conversation-thumb-top, 0px)"},className:"pointer-events-auto absolute right-0 bottom-0 z-10 w-2.5",children:i.jsx("div",{ref:t,onPointerDown:h,className:"bg-border hover:bg-foreground/40 absolute right-0.5 w-1.5 cursor-pointer rounded-full transition-[opacity,background-color] duration-200",style:{opacity:o?1:0}})})}function Ir({hasNewRows:e,isAtBottom:t,hasRows:n,onJump:a}){return i.jsxs(i.Fragment,{children:[i.jsx(he,{children:e&&!t&&i.jsxs(J.button,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2},onClick:a,"data-slot":"conversation-new-messages","data-testid":"conversation-new-messages",className:"bg-foreground text-background hover:bg-foreground/90 absolute bottom-4 left-1/2 z-10 -translate-x-1/2 cursor-pointer rounded-full px-3 py-1.5 text-xs font-medium shadow-sm transition-colors",children:["New messages",i.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:"New messages"})]})}),i.jsx(he,{children:!t&&n&&i.jsx(J.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.15},onClick:a,"data-slot":"conversation-jump-to-latest","data-testid":"conversation-jump-to-latest",className:"bg-background absolute right-4 bottom-4 rounded-full border p-2 shadow-sm transition-shadow hover:shadow-md","aria-label":"Scroll to bottom",children:i.jsx(ka,{className:"size-(--size-icon-md)"})})})]})}const _r=2200;function Or(e){return e===null?"auto":e.scrollHeight-e.scrollTop-e.clientHeight<=e.clientHeight?"smooth":"auto"}function Fr({conversationId:e,label:t,rows:n,renderRow:a,onOpenThread:o,domIdOf:r,landOn:s="end",landingReady:p=!0,resumeRow:c,landOnRow:m,onTopRow:d,pending:x,viewerAuthorId:w,loading:j,empty:g,transcriptAnnouncement:u,approvalAnnouncement:h,onReachedBottom:E,busy:f,className:v,"data-testid":y,feedTestId:C,ref:z}){var te;const{capabilities:D}=Oe(),k=l.useRef(null),T=x??[],S=Tr({conversationId:e,rowCount:n.length+T.length}),{scrollRef:F,atBottomRef:B}=S,H=l.useCallback(A=>{k.current=A,F(A)},[F]),I=l.useRef(null),P=l.useRef(!1),de=l.useCallback(()=>{var A;P.current&&((A=I.current)==null||A.call(I,k.current,B.current))},[B]),K=Sr(n,k,de),{landed:ne,landedOn:R,landedRow:Q,reportTopRow:X}=Nr({conversationId:e,rows:n,virtualizer:K,landOn:s,landingReady:p&&j==null,...c===void 0?{}:{resumeRow:c},...m===void 0?{}:{landOnRow:m},...d===void 0?{}:{onTopRow:d}});l.useLayoutEffect(()=>{I.current=X,P.current=ne});const G=l.useCallback(()=>{S.onScroll(),X(k.current,B.current)},[S,X,B]),be=K.isAtEnd();l.useEffect(()=>{ne&&be&&(E==null||E())},[ne,be,E]);const ae=Dr(n,K,k),Y=l.useCallback(A=>{const W=document.getElementById(A);return W===null?!1:(W.scrollIntoView({block:"center"}),W.focus({preventScroll:!0}),!0)},[]),Z=l.useRef(null),V=l.useRef(void 0),ie=l.useCallback(()=>{var A;V.current!==void 0&&(clearTimeout(V.current),V.current=void 0),(A=Z.current)==null||A.removeAttribute("data-landed"),Z.current=null},[]),ue=l.useRef(null);l.useEffect(()=>{if(R!=="requested"||Q===null||ue.current===Q||r===void 0)return;const A=n.find(re=>re.id===Q),W=A===void 0?void 0:r(A);if(W===void 0)return;const ce=requestAnimationFrame(()=>{if(!Y(W))return;const re=document.getElementById(W);re!==null&&(ue.current=Q,ie(),re.setAttribute("data-landed","true"),Z.current=re,V.current=setTimeout(ie,_r))});return()=>cancelAnimationFrame(ce)},[R,Q,r,n,Y,ie]),l.useEffect(()=>ie,[ie]);const me=l.useCallback(A=>{S.scrollToBottom(A),K.scrollToEnd({behavior:(A==null?void 0:A.behavior)??"auto"})},[S,K]);l.useImperativeHandle(z,()=>({scrollToRow(A){if(Y(A))return!0;if(r===void 0)return!1;const W=n.findIndex(ce=>r(ce)===A);return W===-1?!1:(K.scrollToIndex(W,{align:"center"}),requestAnimationFrame(()=>Y(A)),!0)},scrollToBottom:me}),[Y,r,n,K,me]);const fe=l.useMemo(()=>({onOpenThread:D.threads?o:void 0}),[D.threads,o]),oe=l.useMemo(()=>n.reduce((A,W)=>A+(W.kind==="message"?1:0),0),[n]);return j!=null?i.jsx(i.Fragment,{children:j}):g!==void 0&&n.length===0&&T.length===0?i.jsx(i.Fragment,{children:g}):i.jsxs("div",{"data-slot":"conversation-timeline","data-testid":y,"data-landed-on":R??void 0,"data-message-row-count":oe,className:_("relative min-h-0 flex-1",v),children:[i.jsxs("div",{ref:H,onScroll:G,"data-slot":"conversation-scroller","data-testid":"conversation-scroller",className:"chat-scroll-area h-full scrollbar-none overflow-y-auto",style:{overflowAnchor:"none"},children:[i.jsx(ii,{label:t,busy:f,"data-testid":C,onBeyondRendered:ae,children:i.jsx("div",{style:{height:K.getTotalSize(),position:"relative",width:"100%"},children:i.jsx("div",{"data-slot":"conversation-window",className:"absolute left-0 w-full",style:{top:((te=K.getVirtualItems()[0])==null?void 0:te.start)??0},children:K.getVirtualItems().map(A=>i.jsx("div",{"data-index":A.index,ref:K.measureElement,children:a(n[A.index],{...fe,index:A.index})},n[A.index].id))})})}),T.length>0&&w!==void 0&&i.jsx("div",{className:"flex flex-col",children:T.map(A=>i.jsx(Ci,{post:A,viewerAuthorId:w},A.clientId))})]}),u!==void 0&&i.jsx("div",{role:"log","aria-live":"polite","aria-atomic":"false","data-testid":"transcript-announcer",className:"sr-only",children:u}),h!==void 0&&i.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true","data-testid":"approval-announcer",className:"sr-only",children:h}),i.jsx(zr,{scrollRef:k}),i.jsx(Ir,{hasNewRows:S.hasNewRows,isAtBottom:S.isAtBottom,hasRows:n.length>0,onJump:()=>me({behavior:Or(k.current)})})]})}const Lr=["react","react-more","run-with","reply","copy","mention","profile"],Mr={"Yes, no, and thanks":["👍 thumbsup thumbs up yes approve like agree ok good","❤️ heart love red","🎉 tada party celebrate congrats hooray confetti","👀 eyes look watching seen reading review","🚀 rocket ship launch ship-it fast deploy","🙏 pray thanks thank you please folded hands","🔥 fire lit hot flame burn","💯 hundred perfect score full agree","✅ check tick done complete yes correct","❌ cross no wrong incorrect fail","👎 thumbsdown thumbs down no disagree bad","🙌 raised hands celebrate praise hooray","👏 clap applause bravo well done","🤝 handshake deal agreed partnership","💪 muscle strong flex power","🫡 salute yes sir acknowledged on it","✨ sparkles shiny new magic nice","⭐ star favourite favorite rating","🏆 trophy win won champion award","🎯 target bullseye exactly precise nailed it"],Faces:["😀 grin smile happy","😄 smile happy laugh joy","😂 joy laugh crying laughing funny lol","🤣 rofl rolling laughing hilarious","🙂 slight smile fine ok","😊 blush smile warm happy","😉 wink joking","😍 heart-eyes love adore","🤩 star-struck amazed wow","😎 sunglasses cool smooth","🥳 party face celebrate birthday","🤔 thinking hmm consider wondering","🧐 monocle inspect examine scrutiny","😅 sweat smile nervous phew close call","😬 grimace awkward yikes","😱 scream shocked horror fear","😮 surprised open mouth wow","🤯 mind blown exploding head whoa","😴 sleeping asleep tired zzz","🥱 yawn bored tired","😐 neutral meh straight face","🙄 eye roll unimpressed whatever","😤 triumph frustrated steam determined","😢 cry sad tear upset","😭 sob crying loudly devastated","😡 angry rage mad furious","🤒 sick ill fever unwell","🤖 robot bot agent automation machine","👻 ghost boo spooky","🤡 clown silly foolish","😇 innocent halo angel","🥲 tear smile bittersweet","🫠 melting overwhelmed hot dissolving","🤷 shrug dunno who knows unsure"],"Hands and people":["👋 wave hello hi bye greeting","🤙 call me shaka hang loose","✌️ peace victory two","🤞 fingers crossed hope luck","🫰 finger heart love money","👌 ok perfect fine good","🤌 pinched fingers italian chef what","☝️ point-up one first attention","👇 point-down below beneath","👉 point-right this next","👈 point-left back previous","✋ hand stop halt raised","🖐️ open-hand five stop","🫶 heart-hands love care","🧠 brain smart thinking mind idea","👨💻 developer coding programmer engineer","🕺 dancing celebrate dance","🏃 running run fast hurry"],"Hearts and symbols":["🧡 orange heart love","💛 yellow heart love","💚 green heart love","💙 blue heart love","💜 purple heart love","🖤 black heart love dark","🤍 white heart love","💔 broken heart sad hurt","💖 sparkling heart love shiny","❣️ heart-exclamation love","⚡ zap lightning fast power energy","💥 boom explosion collision impact","💫 dizzy stars sparkle","⚠️ warning caution careful alert","🚨 siren alert emergency urgent incident","🛑 stop sign halt blocked","♻️ recycle reuse refresh retry","🔒 lock secure locked private","🔓 unlock open unlocked","💡 idea bulb lightbulb suggestion insight","❓ question ask unknown what","❗ exclamation important attention","➕ plus add more increase","➖ minus remove less decrease","🆗 ok-button fine approved","🆕 new fresh","🔁 repeat loop again retry","⏳ hourglass waiting time slow pending","⏰ alarm clock time deadline reminder","📈 chart-up growth increase improving","📉 chart-down decline decrease regression"],"Work and things":["💻 laptop computer code work","🖥️ desktop monitor screen","📱 phone mobile device","⌨️ keyboard typing input","🐛 bug defect issue error broken","🔧 wrench fix repair tool","🔨 hammer build fix construct","🛠️ tools build fix maintenance","⚙️ gear settings config machinery","🧪 test experiment lab trial","🧹 broom clean cleanup sweep tidy","📦 package box shipment release module","🚢 ship shipping deploy release","🗑️ trash delete remove bin","📝 memo note write document","📋 clipboard copy list checklist","📌 pin pinned important stick","📎 paperclip attach link","🔍 magnifying search find look investigate","🔗 link url chain reference","🗓️ calendar date schedule plan","⏱️ stopwatch timing performance speed","🔔 bell notify notification alert ping","🔕 bell-off mute silent quiet","📮 mail post send inbox","🧾 receipt invoice record log","🗂️ files folders organise organize","🔑 key access secret credential","🧱 brick wall block foundation","🪵 log wood timber","🧯 extinguisher hotfix incident fire put out","🩹 bandage patch fix quick","🔮 crystal ball predict future guess","🧭 compass direction navigate guide","🪄 magic wand automatic magically"],"Food and drink":["☕ coffee cafe morning caffeine","🍵 tea green matcha","🍺 beer pint drink cheers","🍻 cheers beers toast celebrate","🥂 champagne toast celebrate cheers","🍕 pizza food slice","🍔 burger food hamburger","🌮 taco food mexican","🍜 noodles ramen soup food","🍎 apple fruit food","🍌 banana fruit food","🍰 cake dessert birthday sweet","🍪 cookie biscuit sweet snack","🍩 donut doughnut sweet","🧁 cupcake sweet dessert","🍫 chocolate sweet treat","🍿 popcorn watching drama entertainment","🥑 avocado food green","🌶️ chilli chili spicy hot pepper","🧊 ice cold frozen chill"],"Animals and nature":["🐶 dog puppy pet","🐱 cat kitten pet","🦊 fox clever","🐻 bear","🐼 panda","🐢 turtle slow tortoise","🐌 snail slow","🐝 bee busy buzz","🦋 butterfly transform pretty","🐙 octopus multitask arms","🐳 whale big ocean","🦄 unicorn rare magic special","🦉 owl wise night","🐘 elephant big memory","🌱 seedling growth new sprout","🌳 tree nature growth","🌸 blossom flower spring","🌊 ocean wave water sea","🌈 rainbow colour color pride hope","☀️ sun sunny bright day","🌙 moon night late evening","⛈️ storm thunder rain bad weather","❄️ snowflake cold snow winter freeze","🍂 leaves autumn fall"],"Places and travel":["🏠 house home","🏢 office building work","🌍 earth world globe europe africa","🌎 earth-americas world globe","🗺️ map plan route territory","✈️ plane flight travel","🚗 car drive travel","🚲 bike bicycle cycle","🚂 train rail","⛺ tent camping outdoors","🏝️ island holiday vacation beach","🏔️ mountain peak climb summit"]},Nn=Object.entries(Mr).map(([e,t])=>({name:e,entries:t.map(n=>{const[a,...o]=n.split(" ");return{emoji:a,keywords:o}})})),Sn=Nn.flatMap(e=>e.entries);function Pr(e){const t=e.toLowerCase().trim().split(/\s+/).filter(Boolean);return t.length===0?[]:Sn.filter(n=>n.emoji===e.trim()||t.every(a=>n.keywords.some(o=>o.startsWith(a))))}function qr(e){return Sn.find(t=>t.emoji===e)}function _e(e){var t;return((t=qr(e))==null?void 0:t.keywords[0])??e}function Cn(e,t,n){const a=l.useRef([]);l.useImperativeHandle(n,()=>({focusFirst:()=>{var s;return(s=a.current[0])==null?void 0:s.focus()}}));const o=l.useCallback(s=>p=>{a.current[s]=p},[]),r=l.useCallback((s,p)=>{const c=(m,d)=>{var x;e!==0&&((x=a.current[(m+d+e)%e])==null||x.focus())};switch(s.key){case"ArrowRight":case"ArrowDown":s.preventDefault(),c(p,1);break;case"ArrowLeft":case"ArrowUp":s.preventDefault(),c(p,-1);break;case"Home":if(s.ctrlKey||s.metaKey)break;s.preventDefault(),c(0,0);break;case"End":if(s.ctrlKey||s.metaKey)break;s.preventDefault(),c(e-1,0);break;case"Escape":s.preventDefault(),s.stopPropagation(),t();break}},[e,t]);return{register:o,handleKeyDown:r}}function Tn({mine:e,frequents:t,onPick:n,disabled:a}){const[o,r]=l.useState(""),s=l.useId(),p=l.useMemo(()=>Pr(o),[o]),c=o.trim().length>0,m=d=>i.jsx("button",{type:"button",disabled:a,onClick:()=>n(d),"aria-pressed":e.includes(d),"aria-label":_e(d),title:_e(d),className:_("focus-ring hover:bg-accent flex size-8 items-center justify-center rounded-md text-base",at,"disabled:pointer-events-none disabled:opacity-50",e.includes(d)&&"bg-brand/15 ring-brand/40 ring-1"),children:i.jsx("span",{"aria-hidden":!0,children:d})},d);return i.jsxs("div",{className:"flex flex-col gap-2","data-testid":"reaction-picker",children:[i.jsx(wa,{autoFocus:!0,value:o,onChange:d=>r(d.target.value),placeholder:"Search emoji…","aria-label":"Search emoji",className:"h-8"}),a===!0&&i.jsx("p",{role:"status",className:"text-muted-foreground px-1 text-xs",children:"Reactions send once the room reconnects."}),i.jsx("div",{className:"max-h-64 overflow-y-auto pr-1",children:c?p.length===0?i.jsx("p",{className:"text-muted-foreground px-1 py-6 text-center text-xs",children:"Nothing here matches that."}):i.jsx("div",{className:"grid grid-cols-8 gap-0.5",children:p.map(d=>m(d.emoji))}):i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsxs("section",{role:"group","aria-labelledby":`${s}-frequents`,children:[i.jsx("h3",{id:`${s}-frequents`,className:"text-muted-foreground text-2xs px-1 pb-1 font-medium",children:"Your most used"}),i.jsx("div",{className:"grid grid-cols-8 gap-0.5",children:t.map(m)})]}),Nn.map((d,x)=>i.jsxs("section",{role:"group","aria-labelledby":`${s}-group-${x}`,children:[i.jsx("h3",{id:`${s}-group-${x}`,className:"text-muted-foreground text-2xs px-1 pb-1 font-medium",children:d.name}),i.jsx("div",{className:"grid grid-cols-8 gap-0.5",children:d.entries.map(w=>m(w.emoji))})]},d.name))]})})]})}function An({appearance:e="capsule",mine:t,frequents:n,onPick:a,disabled:o,triggerRef:r,onTriggerKeyDown:s}){const[p,c]=l.useState(!1),m=e==="capsule";return i.jsxs(ja,{open:p,onOpenChange:c,children:[i.jsx(Ea,{asChild:!0,children:i.jsx(ve,{ref:r,type:"button",variant:"ghost",size:m?"icon-xs":"sm",tabIndex:-1,disabled:o,"data-entry-action":"react-more","data-testid":m?void 0:"entry-reactions-add","aria-label":"Pick a reaction",title:"Pick a reaction",onKeyDown:s,className:_("leading-none",m?"text-control":"text-muted-foreground/60 hover:text-foreground h-auto rounded-full px-2 py-0.5 text-xs"),children:i.jsx("span",{"aria-hidden":!0,children:"🙂+"})})}),i.jsx(Ra,{align:"end",className:"w-[19rem] p-2",children:i.jsx(Tn,{mine:t,frequents:n,disabled:o,onPick:d=>{a(d),c(!1)}})})]})}function Br({prompt:e,sessionId:t,triggerRef:n,onTriggerKeyDown:a}){const o=Da(),r=Ke(),{sessions:s}=Na(),{data:p}=Sa(),{data:c}=Ca(),[m,d]=l.useState({open:!1}),x=s.find(f=>f.id===t),w=x==null?void 0:x.runtime,j=x==null?void 0:x.cwd,g=Aa.filter(f=>f!==w),u=f=>(p?f in p.capabilities:!0)&&za(c,f),h=f=>{Ia(r,{dir:j,runtime:f,prompt:e}).then(v=>o(v)).catch(v=>{_a(r,v),Oa(j??null)})},E=f=>{if(!u(f)){d({open:!0,runtime:f});return}h(f)};return i.jsxs(i.Fragment,{children:[i.jsxs(Vt,{children:[i.jsx(Jt,{asChild:!0,children:i.jsx("button",{ref:n,type:"button","data-entry-action":"run-with","aria-label":"Run this prompt elsewhere",onKeyDown:a,className:"text-muted-foreground/60 hover:text-foreground hover:bg-muted inline-flex size-6 items-center justify-center rounded transition-colors duration-150",children:i.jsx(ai,{className:"size-3.5"})})}),i.jsxs(Xt,{align:"end",className:"w-52",children:[i.jsx(Ta,{children:"Run this with…"}),g.map(f=>{const v=Gt(f);return i.jsx(nt,{icon:v.icon,description:u(f)?void 0:"Connect",onSelect:()=>E(f),children:v.label},f)})]})]}),i.jsx(Xa,{runtime:m.runtime,open:m.open,onOpenChange:f=>d(v=>({...v,open:f})),renderConnect:Za,onRuntimeReady:f=>{d({open:!1}),h(f)}})]})}function $r(e,t,n){return Lr.flatMap(a=>{if(a==="react")return t?t.quick.map(r=>({kind:"quick",slot:a,emoji:r,mine:t.mine.includes(r)})):[];if(a==="react-more")return t?[{kind:"picker",slot:a}]:[];if(a==="run-with")return n?[{kind:"run-with",slot:a,runWith:n}]:[];const o=e.find(r=>r.id===a);return o?[{kind:"command",slot:a,action:o}]:[]})}const Hr=l.forwardRef(function({actions:t,reactions:n,runWith:a,onExit:o,className:r},s){const p=$r(t,n,a),{register:c,handleKeyDown:m}=Cn(p.length,o,s);return p.length===0?null:i.jsx("div",{role:"toolbar","aria-label":"Message actions","aria-orientation":"horizontal","data-testid":"entry-actions",className:r,children:p.map((d,x)=>{const w=g=>m(g,x),j=d.kind==="command"&&x>0&&p[x-1].kind!=="command";return d.kind==="run-with"?i.jsx(Br,{prompt:d.runWith.prompt,sessionId:d.runWith.sessionId,triggerRef:c(x),onTriggerKeyDown:w},"run-with"):d.kind==="picker"?i.jsx(An,{mine:n.mine,frequents:n.quick,disabled:n.disabled,onPick:n.onToggle,triggerRef:c(x),onTriggerKeyDown:w},"react-more"):i.jsxs(l.Fragment,{children:[j&&i.jsx("span",{"aria-hidden":!0,className:"bg-border mx-0.5 my-1 w-px self-stretch"}),d.kind==="quick"?i.jsx(ve,{ref:c(x),type:"button",variant:"ghost",size:"icon-xs",tabIndex:-1,disabled:n.disabled,"data-entry-action":d.slot,"data-emoji":d.emoji,"data-reacted":d.mine?"true":void 0,"aria-pressed":d.mine,"aria-label":`React with ${_e(d.emoji)}`,title:`React with ${_e(d.emoji)}`,onClick:()=>n.onToggle(d.emoji),onKeyDown:w,className:_("text-control leading-none",d.mine&&"bg-brand/15 text-foreground"),children:i.jsx("span",{"aria-hidden":!0,children:d.emoji})}):i.jsx(ve,{ref:c(x),type:"button",variant:"ghost",size:"icon-xs",tabIndex:-1,"data-entry-action":d.slot,"aria-label":d.action.label,title:d.action.label,onClick:d.action.run,onKeyDown:w,children:i.jsx(d.action.icon,{"aria-hidden":!0,className:"size-3.5"})})]},d.kind==="quick"?d.emoji:d.action.id)})})});function Kr({quick:e,mine:t,onToggle:n,disabled:a}){const{close:o}=Ba(),[r,s]=l.useState(!1),p=c=>{n(c),o()};return i.jsxs("div",{className:"border-border border-b px-4 py-3","data-testid":"drawer-reactions",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[e.map(c=>i.jsx("button",{type:"button",disabled:a,onClick:()=>p(c),"data-entry-action":"react","data-emoji":c,"aria-pressed":t.includes(c),"aria-label":`React with ${_e(c)}`,className:_("focus-ring flex size-11 items-center justify-center rounded-full border text-lg",at,"disabled:pointer-events-none disabled:opacity-50",t.includes(c)?"border-brand/70 bg-brand/12":"border-border bg-muted/60 active:bg-accent"),children:i.jsx("span",{"aria-hidden":!0,children:c})},c)),i.jsx("button",{type:"button",disabled:a,onClick:()=>s(c=>!c),"aria-expanded":r,"aria-label":"Pick a reaction",className:_("focus-ring border-border bg-muted/60 active:bg-accent flex size-11 items-center justify-center rounded-full border text-base",at,"disabled:pointer-events-none disabled:opacity-50"),children:i.jsx("span",{"aria-hidden":!0,children:"🙂+"})})]}),r&&i.jsx("div",{className:"pt-3",children:i.jsx(Tn,{mine:t,frequents:e,onPick:p,disabled:a})})]})}function Wr({actions:e,reactions:t,onPressStateChange:n,children:a}){const o=Fa();return e.length===0?i.jsx(i.Fragment,{children:a}):i.jsxs(La,{children:[i.jsx(Ma,{asChild:!0,onPressStateChange:n,children:a}),i.jsxs(Pa,{className:"w-52",children:[o&&t&&i.jsx(Kr,{...t}),e.map(r=>i.jsxs(qa,{onClick:r.run,children:[i.jsx(r.icon,{"aria-hidden":!0,className:"mr-2 size-4"}),r.label]},r.id))]})]})}function Ur({count:e,roll:t,mine:n}){const[a]=l.useState(t);return i.jsx("span",{"aria-hidden":!0,className:_("tabular-nums",n?"text-foreground/80":"text-muted-foreground",a&&"motion-safe:animate-reaction-roll"),children:e})}function Gr({reaction:e,mine:t,summary:n,arrived:a,rolled:o,onToggle:r,disabled:s,buttonRef:p,onKeyDown:c}){const[m]=l.useState(a),d=e.authorIds.length;return i.jsxs(J.button,{ref:p,type:"button",tabIndex:-1,onKeyDown:c,exit:{opacity:0},transition:{duration:.12},disabled:s,onClick:r,"aria-pressed":t,"aria-label":n,title:n,"data-testid":"entry-reaction","data-emoji":e.emoji,"data-mine":t?"true":void 0,className:_("focus-ring relative inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-xs","disabled:pointer-events-none disabled:opacity-50",t?"border-brand/70 bg-brand/12 text-foreground":"border-border bg-muted/60 text-muted-foreground hover:bg-muted",m&&"motion-safe:animate-reaction-pop"),children:[m&&i.jsx("span",{"aria-hidden":!0,className:"border-brand motion-safe:animate-reaction-ring pointer-events-none absolute -inset-1 rounded-full border opacity-0"}),i.jsx("span",{"aria-hidden":!0,children:e.emoji}),i.jsx(Ur,{count:d,roll:o,mine:t},d)]})}const Yr=l.forwardRef(function({reactions:t,viewerAuthorId:n,names:a,frequents:o,onToggle:r,disabled:s,onExit:p},c){const[m,d]=l.useState(!1),x=l.useRef(null),w=x.current,[j,g]=l.useState(!1),[u,h]=l.useState(t.length);u!==t.length&&(h(t.length),g(t.length===0&&u>0)),l.useEffect(()=>{x.current=new Map(t.map(S=>[S.emoji,S.authorIds.length]))});const{shown:E,hidden:f}=ci(t),v=m?t:E,y=t.filter(S=>yt(S,n)).map(S=>S.emoji),C=f>0&&!m?1:0,z=t.length>0?1:0,{register:D,handleKeyDown:k}=Cn(v.length+C+z,p,c),T=l.useCallback(S=>F=>k(F,S),[k]);return t.length===0&&!j?null:i.jsxs("div",{"data-testid":"entry-reactions",className:"mt-1 flex flex-wrap items-center gap-1",role:"group","aria-label":"Reactions",children:[i.jsx(he,{initial:!1,onExitComplete:()=>g(!1),children:v.map((S,F)=>i.jsx(Gr,{reaction:S,mine:yt(S,n),summary:li(S,n,a),arrived:w!==null&&!w.has(S.emoji),rolled:(w==null?void 0:w.get(S.emoji))!==void 0&&w.get(S.emoji)!==S.authorIds.length,onToggle:()=>r(S.emoji),disabled:s,buttonRef:D(F),onKeyDown:T(F)},S.emoji))}),C===1&&i.jsxs("button",{ref:D(v.length),type:"button",tabIndex:-1,onKeyDown:T(v.length),onClick:()=>d(!0),"data-testid":"entry-reactions-more",className:"focus-ring text-muted-foreground hover:text-foreground rounded-full px-2 py-0.5 text-xs",children:["+",f," more"]}),t.length>0&&i.jsx(An,{appearance:"ghost-pill",mine:y,frequents:o,disabled:s,onPick:r,triggerRef:D(v.length+C),onTriggerKeyDown:T(v.length+C)})]})}),zn=l.createContext(null);function Vr({value:e,children:t}){return i.jsx(zn.Provider,{value:e,children:t})}function Le(){const e=l.useContext(zn);if(e===null)throw new Error("A Message part must be rendered inside <Message.Root>. Each part draws itself with a slot of the row’s single messageItem() call, and there is no honest default for a row that was never computed.");return e}function In(e){return e==="first"||e==="only"}const Jr=$a("",{variants:{anchor:{corner:"contents",rail:"pointer-events-none sticky top-1 z-20 order-first -mt-(--msg-actions-height) flex h-(--msg-actions-height) items-start justify-end pr-2"}}});function Xr({actions:e=[],reactions:t,runWith:n,barRef:a,onExit:o}){const{capabilities:r,anchor:s}=Oe(),{slots:p}=Le();return i.jsxs(i.Fragment,{children:[e.length>0&&i.jsx("button",{type:"button",tabIndex:-1,"data-testid":"entry-actions-reach","aria-label":"Message actions",onClick:()=>{var c;return(c=a==null?void 0:a.current)==null?void 0:c.focusFirst()},className:"sr-only"}),i.jsx("div",{"data-slot":"message-actions",className:Jr({anchor:s}),children:i.jsx(Hr,{ref:a,actions:e,reactions:r.reactions?t:void 0,runWith:r.runWith?n:void 0,onExit:o,className:p.actions()})})]})}function Zr({id:e,author:t,at:n,origin:a,mark:o,asChild:r=!1,className:s}){const{slots:p,position:c}=Le(),m=n===void 0?"":ln(n);if(!In(c))return null;const d=r?dt:"div";return i.jsxs(d,{id:e,"data-slot":"message-author",className:_(p.header(),s),children:[i.jsx("span",{className:p.authorName(),children:t.displayName}),a!==void 0&&i.jsx(Ha,{origin:a}),o,i.jsx(Ka,{retired:t.retired}),m.length>0&&i.jsx("time",{dateTime:n,title:cn(n??""),className:_(p.timestamp(),"text-msg-timestamp"),children:m})]})}function Qr({children:e,className:t}){const{slots:n}=Le();return i.jsx("div",{"data-slot":"message-body",className:_(n.body(),t),children:e})}function es({id:e,children:t,className:n}){const{slots:a}=Le();return i.jsx("div",{id:e,"data-slot":"message-content",className:_(a.content(),n),children:t})}function ts({author:e,at:t,onViewProfile:n,isSelf:a,className:o}){const{slots:r,position:s}=Le(),{showTimestamps:p}=ge(),c=t===void 0?"":ln(t);return i.jsx("div",{"data-slot":"message-gutter",className:_(r.gutter(),o),children:In(s)?i.jsx(sn,{author:e,onViewProfile:n,isSelf:a}):c.length>0&&i.jsx("time",{dateTime:t,title:cn(t??""),className:_(r.avatarTimestamp(),p?"text-msg-timestamp":"group-focus-within:text-msg-timestamp group-hover:text-msg-timestamp text-transparent"),children:c})})}function ns({ref:e,...t}){const{capabilities:n}=Oe(),[a,o]=l.useState(t.reactions.length>0);return!a&&t.reactions.length>0&&o(!0),!n.reactions||!a?null:i.jsx("div",{"data-slot":"message-reactions",className:"contents",children:i.jsx(Yr,{ref:e,...t})})}const as={type:"spring",stiffness:320,damping:28};function is({role:e="assistant",position:t="only",isNew:n=!1,actions:a,reactions:o,asChild:r=!1,className:s,children:p,ref:c,...m}){const{capabilities:d,density:x,anchor:w}=Oe(),[j,g]=l.useState(null),u=l.useMemo(()=>({slots:Ni({role:e,position:t,density:x,anchor:w}),position:t}),[e,t,x,w]),h=a!==void 0&&a.length>0,E=r?dt:J.div,f=i.jsx(E,{ref:c,"data-slot":"message-root",role:"article",className:_(u.slots.root(),"focus-visible:ring-ring outline-none focus-visible:ring-2","origin-center",h&&"[-webkit-touch-callout:none]",j==="pressing"&&"motion-safe:animate-press-in",j==="released"&&"motion-safe:animate-press-release",s),...r?{}:{initial:n?{opacity:0,y:8}:!1,animate:{opacity:1,y:0},transition:as},...m,children:i.jsx(Vr,{value:u,children:i.jsx(Wa,{children:p})})});return i.jsx(Wr,{actions:a??[],reactions:d.reactions?o:void 0,onPressStateChange:g,children:f})}const js={Root:nr,Timeline:Fr,LiveLane:kr,LivePeek:Er,Composer:er,Footer:tr},Es={Root:is,Gutter:ts,Author:Zr,Body:Qr,Content:es,Attachments:zi,Reactions:ns,Actions:Xr};export{js as C,ys as D,Lr as E,ii as F,Es as M,gs as N,ks as U,fs as a,ln as b,Oo as c,sn as d,cn as e,ms as f,Oe as g,yt as h,ws as i,ki as j,hs as k,xs as l,si as m,vs as n,bs as t,yi as u};
|
|
23
|
+
`)},consumeEscapeIntoNewline(){const t=e.current;t&&Mo(t)},clearThroughUndoStack(){const t=e.current;t&&Po(t)},isComposing(){return!1}}}const Bo=200,Ft=24,$o=200;function Ho(e,t){l.useLayoutEffect(()=>{const n=e.current;if(!n)return;const a=()=>{n.style.transition="",n.style.height=""};if(t!==""){n.style.transition="",n.style.height="auto",n.style.height=`${Math.min(n.scrollHeight,Bo)}px`;return}const o=n.offsetHeight;if(o<=Ft){a();return}n.style.height=`${o}px`,n.style.transition=`height ${$o}ms ease`;const r=requestAnimationFrame(()=>{n.style.height=`${Ft}px`});return n.addEventListener("transitionend",a,{once:!0}),()=>{cancelAnimationFrame(r),n.removeEventListener("transitionend",a),a()}},[e,t])}const Lt=l.forwardRef(function({value:t,onChange:n,onCursorChange:a,onKeyDown:o,onFocus:r,onBlur:s,placeholder:p,placeholderOverlay:c,isPaletteOpen:m,paletteListboxId:d,activeDescendantId:x,onSurfaceChange:w},j){const g=l.useRef(null),u=Yt(),h=l.useRef(null);l.useEffect(()=>{h.current??(h.current=qo(g)),w(h.current)},[w]),l.useImperativeHandle(j,()=>({focus:()=>{var y;return(y=g.current)==null?void 0:y.focus()},focusUnlessTouch:()=>{var y;u||(y=g.current)==null||y.focus()},focusAt:y=>{const C=g.current;C&&(C.focus(),C.setSelectionRange(y,y))}})),Ho(g,t);const E=l.useCallback(y=>{n(y.target.value),a==null||a(y.target.selectionStart)},[n,a]),f=l.useCallback(()=>{g.current&&(a==null||a(g.current.selectionStart))},[a]),v=t.trim().length>0;return i.jsxs("div",{className:"relative min-h-[24px] flex-1",children:[!v&&c,i.jsx("textarea",{ref:g,value:t,onChange:E,onKeyDown:o,onFocus:r,onBlur:s,onSelect:f,role:"combobox","aria-autocomplete":"list","aria-controls":m?d:void 0,"aria-expanded":m??!1,"aria-activedescendant":m?x:void 0,"aria-label":p,placeholder:c?"":p,className:"block max-h-[200px] min-h-[24px] w-full resize-none bg-transparent py-0.5 text-sm focus:outline-none",rows:1})]})});function Ko({onSteer:e,onStage:t}){return!e&&!t?null:i.jsxs(Vt,{children:[i.jsx(Jt,{asChild:!0,children:i.jsx("button",{type:"button",className:"focus-ring bg-muted text-muted-foreground hover:bg-muted/80 shrink-0 rounded-lg p-1.5 transition-colors max-md:p-2","aria-label":"More ways to send",children:i.jsx(ia,{className:"size-(--size-icon-sm)"})})}),i.jsxs(Xt,{align:"end",children:[e&&i.jsx(nt,{icon:ni,description:"Send it into the task now",onSelect:e,children:"Steer"}),t&&i.jsx(nt,{icon:oa,description:"Use it next, without interrupting",onSelect:t,children:"Add context"})]})]})}const qe={send:{className:"bg-primary text-primary-foreground hover:bg-primary/90",label:"Send message"},stop:{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 dark:bg-destructive/60",label:"Stop generating"},queue:{className:"bg-muted text-muted-foreground hover:bg-muted/80",label:"Queue message"},update:{className:"bg-primary text-primary-foreground hover:bg-primary/90",label:"Save edit"},cancel:{className:"bg-muted text-muted-foreground hover:bg-muted/80",label:"Cancel edit"},"cancel-upload":{className:"bg-muted text-muted-foreground hover:bg-destructive/90 hover:text-destructive-foreground dark:hover:bg-destructive/60",label:"Cancel upload"},dispatching:{className:"bg-muted text-muted-foreground",label:"Running command"},stopping:{className:"bg-muted text-muted-foreground",label:"Stopping…"}},Wo={send:Ya,stop:nn,queue:la,update:sa,cancel:pt,"cancel-upload":Se,dispatching:Se,stopping:Se};function Uo(e,t,n,a,o,r){return o?"dispatching":a?e?"update":"cancel":r?"stopping":t&&e?"queue":t?"stop":n?"cancel-upload":e?"send":null}function Go(e,t){switch(e){case"send":return t.onSubmit;case"stop":return t.onStop;case"queue":return t.onQueue;case"update":return t.onSaveEdit;case"cancel":return t.onCancelEdit;case"cancel-upload":return t.onCancelUpload;default:return}}function Yo({hasText:e,isStreaming:t,commandPending:n=!1,submitDisabled:a=!1,editingQueueItem:o,queueDepth:r,isTouchOnly:s,onSubmit:p,onStop:c,onQueue:m,onSaveEdit:d,onCancelEdit:x,onCancelUpload:w,onSteer:j,onStage:g,stopPending:u=!1}){const h=Uo(e,t,w!==void 0,o,n,u),E=h==="send"&&a,f=E||h===null?void 0:Go(h,{onSubmit:p,onStop:c,onQueue:m,onSaveEdit:d,onCancelEdit:x,onCancelUpload:w}),v=h===null?null:h==="send"&&s?ra:Wo[h],y=h==="dispatching"||h==="stopping";return i.jsxs(i.Fragment,{children:[i.jsx(he,{children:t&&e&&!u&&i.jsx(J.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},whileHover:{scale:1.05},whileTap:{scale:.97},onClick:c,type:"button",className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 dark:bg-destructive/60 shrink-0 rounded-lg p-1.5 transition-colors max-md:p-2","aria-label":"Stop generating",children:i.jsx(nn,{className:"size-(--size-icon-sm)"})})}),h==="queue"&&i.jsx(Ko,{onSteer:j,onStage:g}),i.jsxs("div",{className:"relative shrink-0",children:[h==="cancel-upload"&&i.jsx("span",{role:"status",className:"sr-only",children:"Uploading attachment"}),y&&h?i.jsxs("div",{role:"status",className:_("rounded-lg p-1.5 max-md:p-2",qe[h].className),children:[i.jsx(Se,{}),i.jsx("span",{className:"sr-only",children:qe[h].label})]}):h&&v?i.jsx(J.button,{animate:{opacity:E?.5:1,scale:1},initial:!1,transition:{duration:.15},whileHover:E?void 0:{scale:1.05},whileTap:E?void 0:{scale:.97},onClick:f,disabled:E,type:"button",className:_("focus-ring rounded-lg p-1.5 transition-colors max-md:p-2",qe[h].className,E&&"pointer-events-none"),"aria-label":qe[h].label,children:i.jsx(v,{className:"size-(--size-icon-sm)"})}):i.jsx("div",{"aria-hidden":"true","data-testid":"action-slot-spacer",className:"p-1.5 max-md:p-2",children:i.jsx("div",{className:"size-(--size-icon-sm)"})}),r>0&&h==="queue"&&i.jsx("span",{className:"bg-foreground text-background text-3xs absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full font-medium",children:r})]})]})}const Vo=l.lazy(()=>pa(()=>import("./LexicalField-Bv_ogmAq.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]))),Jo=l.forwardRef(function({value:t,onChange:n,onSubmit:a,isStreaming:o,isUploading:r=!1,onCancelUpload:s,commandPending:p=!1,editingQueueItem:c=!1,editingPosition:m,queueDepth:d=0,onStop:x,stopPending:w=!1,onQueue:j,onSteer:g,onStage:u,onSaveEdit:h,onCancelEdit:E,onEscape:f,onClear:v,isPaletteOpen:y,paletteHasResults:C,tabPicks:z,onArrowUp:D,onArrowDown:k,onCommandSelect:T,activeDescendantId:S,paletteListboxId:F,onCursorChange:B,onAttach:H,placeholder:I="Send a message…",placeholderOverlay:P,onQueueNavigateUp:de,onQueueNavigateDown:K,contextKey:ne,onClearArmedChange:R,queueHasItems:Q=!1,canSubmit:X=!0,canSubmitReason:G,richText:be=!1,mentionSubjects:ae},Y){const Z=l.useRef(null),V=l.useRef(null),[ie,ue]=l.useState(!1),[me,fe]=l.useState(Lo),oe=Yt();l.useImperativeHandle(Y,()=>({focus:()=>{var q;return(q=Z.current)==null?void 0:q.focus()},focusUnlessTouch:()=>{var q;return(q=Z.current)==null?void 0:q.focusUnlessTouch()},focusAt:q=>{var we;return(we=Z.current)==null?void 0:we.focusAt(q)}}));const te=l.useRef(oe);l.useEffect(()=>{var q;te.current||ca()||(q=Z.current)==null||q.focus()},[]);const A=l.useCallback(()=>{var q;(q=Z.current)==null||q.focusAt(t.length),x==null||x()},[x,t.length]),{handleKeyDown:W,clearArmed:ce}=Fo({surface:me,value:t,isStreaming:o,isTouchOnly:oe,isUploading:r,onCancelUpload:s,commandPending:p,canSubmit:X,editingQueueItem:c,isPaletteOpen:y,paletteHasResults:C,tabPicks:z,queueHasItems:Q,onSubmit:a,onStop:x,onEscape:f,onClear:v,onArrowUp:D,onArrowDown:k,onCommandSelect:T,onQueue:j,onSteer:g,onStage:u,onSaveEdit:h,onCancelEdit:E,onQueueNavigateUp:de,onQueueNavigateDown:K,contextKey:ne}),re=l.useCallback(()=>ue(!0),[]),xe=l.useCallback(()=>{ue(!1),y&&(f==null||f())},[y,f]),ye={ref:Z,value:t,onChange:n,onCursorChange:B,onKeyDown:W,onFocus:re,onBlur:xe,placeholder:I,placeholderOverlay:P,isPaletteOpen:y,paletteHasResults:C,paletteListboxId:F,activeDescendantId:S,onSurfaceChange:fe,mentionSubjects:ae},ee=t.trim().length>0,ke=v!==void 0&ⅇreturn l.useEffect(()=>{R==null||R(ce&&ke)},[ce,ke,R]),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[!X&&G&&i.jsx("div",{role:"status",className:"text-muted-foreground px-1 text-xs",children:G}),c&&i.jsx("div",{className:"text-muted-foreground px-0.5 text-xs",children:m!==void 0&&d>0?`Editing message ${m} of ${d}`:"Editing message"}),i.jsxs("div",{className:_("border-input bg-background flex items-end gap-1.5 rounded-md border p-1.5 shadow-xs transition-[color,box-shadow]",ie&&"border-ring ring-ring ring-[1px]",c&&"border-primary/40",!H&&"pl-3"),children:[H&&i.jsxs(i.Fragment,{children:[i.jsx("input",{ref:V,type:"file",className:"hidden",multiple:!0,onChange:q=>{const we=Array.from(q.target.files??[]);we.length>0&&H(we),q.target.value=""}}),i.jsx("button",{type:"button",onClick:()=>{var q;return(q=V.current)==null?void 0:q.click()},className:"focus-ring text-muted-foreground hover:text-foreground flex shrink-0 items-center justify-center rounded-md px-1.5 py-1 transition-colors disabled:opacity-50","aria-label":"Attach file",children:i.jsx(Va,{className:"size-4"})})]}),be?i.jsx(l.Suspense,{fallback:i.jsx(Lt,{...ye}),children:i.jsx(Vo,{...ye})}):i.jsx(Lt,{...ye}),v&&i.jsx(J.button,{animate:{opacity:ee?.5:0,scale:ee?1:.8},transition:{duration:.15},whileHover:ee?{opacity:1}:void 0,onClick:v,disabled:!ee,type:"button",className:_("focus-ring text-muted-foreground hover:text-foreground shrink-0 rounded-lg p-1 transition-colors",!ee&&"pointer-events-none"),"aria-label":"Clear message",children:i.jsx(pt,{className:"size-(--size-icon-sm)"})}),i.jsx(Yo,{hasText:ee,isStreaming:o,onCancelUpload:r?s:void 0,commandPending:p,submitDisabled:!X,editingQueueItem:c,queueDepth:d,isTouchOnly:oe,onSubmit:a,onStop:A,stopPending:w,onQueue:j,onSteer:g,onStage:u,onSaveEdit:h,onCancelEdit:E})]})]})});function Xo({children:e,className:t}){return i.jsx("div",{className:_("absolute right-0 bottom-full left-0 mb-2",t),children:e})}function Mt(e){return e.type.startsWith("image/")}const Pt="This file didn’t upload";function Zo({files:e,onRemove:t,onRetry:n,onCancel:a}){const o=e.filter(s=>Mt(s.file)).map(s=>s.id).join(" "),r=l.useMemo(()=>{const s=new Map;for(const p of e)Mt(p.file)&&s.set(p.id,URL.createObjectURL(p.file));return s},[o]);return l.useEffect(()=>()=>{for(const s of r.values())URL.revokeObjectURL(s)},[r]),i.jsx("div",{className:"flex flex-wrap gap-1.5 px-1 pb-1.5",children:i.jsx(he,{children:e.map(s=>{const p=r.get(s.id),c=s.status==="error",m=s.status==="uploading"&&a!==void 0;return i.jsxs(J.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.15},className:_("flex items-center gap-1 rounded-md px-2 py-1 text-xs",c?"bg-destructive/10 border-destructive/40 border":"bg-muted"),children:[s.status==="uploading"?i.jsx(Se,{size:"xs",className:"text-muted-foreground"}):c?i.jsx(da,{className:"text-destructive size-(--size-icon-xs) shrink-0"}):p?i.jsx("img",{src:p,alt:"",className:"size-5 shrink-0 rounded object-cover"}):i.jsx(ut,{className:"text-muted-foreground size-(--size-icon-xs)"}),i.jsx("span",{className:"max-w-32 truncate",children:s.file.name}),s.status==="uploading"&&i.jsxs("span",{className:"text-muted-foreground tabular-nums",children:[s.progress,"%"]}),c&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-destructive max-w-44 truncate",title:s.error??Pt,children:s.error??Pt}),n&&i.jsx("button",{type:"button",onClick:()=>n(s.id),className:"text-foreground ml-0.5 shrink-0 rounded-sm font-medium underline decoration-dotted underline-offset-2","aria-label":`Try uploading ${s.file.name} again`,children:"Try again"})]}),i.jsx("button",{type:"button",onClick:m?a:()=>t(s.id),className:"text-muted-foreground hover:text-foreground -mr-0.5 ml-0.5 shrink-0 rounded-sm p-0.5","aria-label":m?`Cancel upload of ${s.file.name}`:`Remove ${s.file.name}`,children:i.jsx(pt,{className:"size-3"})})]},s.id)})})})}function Qo(){const e=Zt();return i.jsx(J.div,{initial:e?!1:{opacity:0,y:3},animate:{opacity:1,y:0},transition:{duration:.12,ease:"easeOut"},"aria-hidden":"true","data-testid":"clear-armed-hint",className:"bg-popover text-muted-foreground shadow-soft pointer-events-none mt-1.5 ml-auto w-fit rounded-md border px-2 py-1 text-xs",children:"Press Esc again to clear"})}const Ae={Root:To,Input:Jo,OverlayLane:Xo,Attachments:Zo,ClearArmedHint:Qo};function er({value:e,onChange:t,onSubmit:n,inputRef:a,head:o,mentionPicker:r,overlays:s,queue:p,aboveInput:c,asks:m,footer:d,children:x,className:w,onPathDropped:j,input:g}){const{capabilities:u,target:h}=Oe();if(h===null)throw new Error("<Conversation.Composer> needs a target. A host that draws a composer has to say where its words go — pass `target` to <Conversation.Root>.");const[E,f]=l.useState(!1),v=u.attachments?h.attachments:null,y=(v==null?void 0:v.staged)??[],C=(v==null?void 0:v.hasFailed)===!0,z=h.canSend&&!C&&(g.canSubmit??!0),D=C?void 0:h.canSend?g.canSubmitReason:h.canSendReason,k=i.jsxs(i.Fragment,{children:[i.jsxs(Ae.OverlayLane,{children:[u.mentions&&r,s,E&&i.jsx(Ae.ClearArmedHint,{})]}),v!==null&&y.length>0&&i.jsx(Ae.Attachments,{files:[...y],onRemove:v.remove,onRetry:v.retry,onCancel:v.cancel}),h.queue!==void 0&&p,c,i.jsx(Ae.Input,{...g,ref:a,value:e,onChange:t,onSubmit:n,placeholder:g.placeholder??h.placeholder,canSubmit:z,...D===void 0?{}:{canSubmitReason:D},...v===null?{}:{onAttach:v.add,...v.holdsSendWhileUploading?{isUploading:v.isUploading,onCancelUpload:v.cancel}:{}},onClearArmedChange:f}),d]});return i.jsxs(Ae.Root,{className:w,...v===null?{}:{onFilesDropped:v.add},...j===void 0?{}:{onPathDropped:j},children:[o,m===void 0?k:i.jsx(he,{mode:"wait",children:m!==null?i.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:m},"interactive"):i.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},children:k},"normal")}),x]})}function tr({asChild:e,children:t,className:n}){const a=e===!0?dt:"div";return i.jsx(a,{"data-slot":"conversation-footer",className:_(n),children:t})}function nr({surface:e,capabilities:t,target:n,density:a="comfortable",anchor:o="corner",children:r}){const s=l.useMemo(()=>({surface:e,capabilities:t,target:n??null,density:a,anchor:o}),[e,t,n,a,o]);return i.jsx(on.Provider,{value:s,children:r})}const qt=1e3;function ar(e,t=Date.now){const n=Date.parse(e)+rn,[a,o]=l.useState(()=>t());return l.useEffect(()=>{const r=()=>o(t());let s,p;const c=n-t();return c>0?p=setTimeout(()=>{o(Math.max(t(),n)),s=setInterval(r,qt)},c):s=setInterval(r,qt),()=>{clearTimeout(p),clearInterval(s)}},[n,t]),Ei(e,a)}function Rn(e){return e?"This room is gone, or you no longer have access to it.":"New messages aren’t arriving. You can still send; anything unsent will say so."}function ir(e){return e?"This room is no longer available":"Reconnecting. You can still send"}function or(e,t){switch(e.kind){case"ask":return"";case"stalled":return Rn(t);case"presence":case"held":return e.sentence;case"silent-finish":return e.sentence;case"turn-waiting":return e.waitingType==="approval"?"Waiting for your approval":"Waiting for your answer";case"turn-progress":case"turn-system":return e.message;case"turn-streaming":return"Working";case"turn-complete":return"";case"empty":return""}}function Bt(e){switch(e.kind){case"ask":return`ask:${e.ask.interaction.id}`;case"presence":return`presence:${e.sentence}`;case"held":return`held:${e.sentence}`;case"silent-finish":return`silent-finish:${e.sentence}`;case"turn-waiting":return`turn-waiting:${e.waitingType}`;case"turn-progress":case"turn-system":return`${e.kind}:${e.message}`;case"turn-streaming":return`turn-streaming:${e.verbKey}`;default:return e.kind}}const rr={room:"room-presence",thread:"thread-presence",session:"session-presence"},sr={room:"room-held",thread:"thread-held",session:"session-held"};function lr({state:e,onRetry:t,unavailable:n=!1,faces:a,reducedMotion:o=!1,scope:r="room"}){switch(e.kind){case"ask":return i.jsx(cr,{state:e,reducedMotion:o});case"stalled":return i.jsx(pr,{onRetry:t,unavailable:n});case"presence":return i.jsx(dr,{state:e,faces:a,reducedMotion:o,scope:r});case"held":return i.jsx(ur,{state:e,faces:a,scope:r});case"silent-finish":return i.jsx(mr,{state:e});case"turn-waiting":return i.jsx(fr,{state:e});case"turn-progress":return i.jsx(xr,{state:e,reducedMotion:o});case"turn-system":return i.jsx(gr,{state:e});case"turn-streaming":return i.jsx(vr,{state:e,reducedMotion:o});case"turn-complete":return i.jsx(hr,{state:e});case"empty":return null}}function cr({state:e,reducedMotion:t}){return i.jsxs("span",{"data-testid":"lane-ask",className:"flex min-w-0 items-center gap-2",children:[i.jsx(Fe,{signal:"needs-you",reducedMotion:t}),i.jsx("span",{className:"text-foreground truncate",children:e.headline}),e.count>1&&i.jsxs("span",{"aria-hidden":"true",className:"text-muted-foreground shrink-0 tabular-nums",children:["+",e.count-1]}),i.jsx("span",{className:"text-status-warning-fg shrink-0 font-medium",children:"Answer"})]})}function pr({onRetry:e,unavailable:t}){const n=Rn(t);return i.jsxs("span",{"data-testid":"room-stalled","data-unavailable":t?"true":void 0,className:"flex min-w-0 items-center gap-2",children:[i.jsx(Fe,{signal:"error",reducedMotion:!0}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground truncate sm:hidden",children:ir(t)}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground hidden truncate sm:inline",title:n,children:n}),e!==void 0&&i.jsx("button",{type:"button",onClick:e,className:"focus-ring text-muted-foreground hover:text-foreground shrink-0 rounded underline underline-offset-2",children:t?"Try again":"Reconnect"})]})}function dr({state:e,faces:t,reducedMotion:n,scope:a}){return i.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[i.jsx(Fe,{signal:"working",reducedMotion:n}),t,i.jsxs("span",{"data-testid":rr[a],"data-late":e.late?"true":void 0,className:"text-muted-foreground flex min-w-0 items-center",children:[i.jsx("span",{className:"truncate",children:e.line}),i.jsx(Dn,{since:e.since})]})]})}function ur({state:e,faces:t,scope:n}){return i.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[i.jsx(Fe,{signal:"working",reducedMotion:!0}),t,i.jsxs("span",{"data-testid":sr[n],className:"text-muted-foreground flex min-w-0 items-center",children:[i.jsx("span",{className:"truncate",children:e.sentence}),i.jsx(Dn,{since:e.since})]})]})}function mr({state:e}){return i.jsx("span",{"data-testid":"lane-silent-finish",className:"text-muted-foreground/50 flex min-w-0 items-center gap-2 opacity-60",children:i.jsx("span",{className:"truncate",children:e.sentence})})}function fr({state:e}){const t=e.waitingType==="approval"?ma:fa;return i.jsxs("span",{"data-testid":"lane-waiting",className:"flex min-w-0 items-center gap-2",children:[i.jsx(t,{"aria-hidden":"true",className:"text-status-warning-fg size-3 shrink-0"}),i.jsx("span",{className:"text-status-warning-fg truncate",children:e.waitingType==="approval"?"Waiting for your approval":"Waiting for your answer"}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/70 shrink-0 tabular-nums",children:e.elapsed})]})}function xr({state:e,reducedMotion:t}){return i.jsxs("span",{"data-testid":"lane-progress","data-determinate":e.determinate,className:"flex min-w-0 flex-1 items-center gap-2",children:[i.jsx("span",{className:"text-muted-foreground truncate",children:e.message}),i.jsx("span",{"aria-hidden":"true",className:"bg-muted/60 relative h-0.5 w-16 shrink-0 overflow-hidden rounded-full",children:e.determinate?i.jsx(J.span,{className:"bg-muted-foreground/50 absolute inset-y-0 left-0 block rounded-full",initial:!1,animate:{width:`${e.percent??0}%`},transition:t?{duration:0}:{duration:.3,ease:"easeOut"}}):i.jsx(J.span,{className:"bg-muted-foreground/50 absolute inset-y-0 block w-1/3 rounded-full",animate:t?void 0:{x:["-100%","400%"]},transition:{duration:1.4,ease:"easeInOut",repeat:1/0}})})]})}function gr({state:e}){return i.jsxs("span",{"data-testid":"lane-system",className:"flex min-w-0 items-center gap-2",children:[i.jsx(ua,{"aria-hidden":"true",className:"text-muted-foreground/60 size-3 shrink-0"}),i.jsx("span",{className:"text-muted-foreground/70 truncate",children:e.message})]})}function vr({state:e,reducedMotion:t}){return i.jsxs("span",{"data-testid":"lane-streaming","data-bypass":e.isBypass?"true":void 0,className:"flex min-w-0 items-center gap-2",children:[e.isBypass?i.jsx("span",{"aria-hidden":"true",className:"text-status-warning-fg shrink-0 font-bold",children:"☠"}):i.jsx(Fe,{signal:"working",reducedMotion:t}),i.jsx("span",{"aria-hidden":"true",className:_("truncate",e.isBypass?"text-status-warning-fg":"text-muted-foreground"),children:e.verb}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/70 shrink-0 tabular-nums",children:e.elapsed}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/60 shrink-0",children:e.tokens})]})}function hr({state:e}){return i.jsxs("span",{"data-testid":"lane-complete",className:"text-muted-foreground/50 flex min-w-0 items-center gap-2 opacity-60",children:[i.jsx("span",{className:"truncate",children:e.elapsed}),i.jsx("span",{"aria-hidden":"true",children:"·"}),i.jsx("span",{className:"shrink-0",children:e.tokens})]})}function Fe({signal:e,reducedMotion:t}){return i.jsx("span",{"aria-hidden":"true","data-lane-dot":e,className:_("size-1.5 shrink-0 rounded-full",ga[e],e==="working"&&!t&&xa)})}function Dn({since:e}){const t=ar(e);return t===null?null:i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/70 shrink-0 tabular-nums",children:` · ${t}`})}const br=.16,yr={room:"room-presence-announcer",thread:"thread-presence-announcer",session:"session-lane-announcer"};function kr({state:e,scope:t="room",onRetry:n,unavailable:a=!1,faces:o,peek:r,onPeekOpenChange:s,peekLabel:p="Show who is working",heldPeekLabel:c="Show what is waiting",askCard:m,reducedMotionOverride:d}){const[x,w]=l.useState(!1),j=l.useRef(null),g=Zt()===!0,u=d??g,h=or(e,a),E=e.kind==="empty",f=(e.kind==="presence"||e.kind==="held")&&r!==void 0,v=e.kind==="ask"&&m!==void 0,y=f||v,C=v?m:r,z=v?"Answer this":e.kind==="held"?c:p;x&&!y&&w(!1);const D=x&&y,k=l.useRef(!1);l.useEffect(()=>{var B,H;if(k.current===D)return;const F=!D&&(((B=j.current)==null?void 0:B.contains(document.activeElement))===!0||document.activeElement===document.body);k.current=D,s==null||s(D),F&&((H=j.current)==null||H.focus())},[D,s]);const T=i.jsx(lr,{state:e,onRetry:n,unavailable:a,faces:o,reducedMotion:u,scope:t}),S=y?i.jsxs(va,{open:D,onOpenChange:w,children:[i.jsx(ha,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":z,className:_("focus-ring flex min-w-0 items-center rounded text-left","hover:bg-accent/40 focus-visible:bg-accent/40"),children:T})}),i.jsxs(ba,{side:"top",align:"start",onOpenAutoFocus:v?void 0:F=>F.preventDefault(),className:"w-88 p-0",children:[i.jsx(ya,{children:z}),C]})]}):T;return i.jsxs("div",{ref:j,"data-slot":"live-lane","data-lane-scope":t,tabIndex:-1,"data-lane-state":e.kind,"data-lane-motion":u?"off":"on",className:"flex h-6 shrink-0 items-center gap-2 overflow-hidden px-3 text-xs",children:[i.jsx("span",{"data-testid":yr[t],role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:h}),u?i.jsx("div",{"aria-hidden":E?"true":void 0,className:"flex min-w-0 flex-1 items-center",children:S},Bt(e)):i.jsx(he,{mode:"wait",initial:!1,children:i.jsx(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:br},"aria-hidden":E?"true":void 0,className:"flex min-w-0 flex-1 items-center",children:S},Bt(e))})]})}const wr=1e3,jr={working:"working",working_late:"still working",held:"waiting to start"};function Er({rows:e,onScrollToRow:t,onOpenSession:n,onOpenRoom:a,onAnswerFirst:o,promoted:r,onStopAll:s,stopping:p=!1,onStopAgent:c,stoppingAgents:m}){const d=c!==void 0,x=e.length>1&&s!==void 0,w=l.useRef(new Map),j=l.useRef(null),g=l.useRef(e);return l.useEffect(()=>{var v;const u=g.current;g.current=e;const h=j.current;if(h===null||e.some(y=>y.authorId===h)||(j.current=null,document.activeElement!==document.body))return;const E=u.findIndex(y=>y.authorId===h),f=e[Math.min(Math.max(E,0),e.length-1)];f!==void 0&&((v=w.current.get(f.authorId))==null||v.focus())},[e]),i.jsxs("div",{"data-slot":"live-peek","data-testid":"live-peek",className:"flex flex-col",children:[i.jsx("ul",{className:"divide-border divide-y",children:e.map(u=>i.jsxs("li",{"data-testid":"live-peek-row",className:"flex gap-2.5 px-3 py-2.5",children:[i.jsx(sn,{author:u.author,className:"mt-0.5 shrink-0"}),i.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[i.jsxs("p",{className:"flex min-w-0 items-center gap-1.5 text-xs",children:[i.jsx("span",{className:"text-foreground truncate font-medium",children:u.author.displayName}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/50",children:"·"}),i.jsx("span",{className:"text-muted-foreground shrink-0",children:jr[u.state]}),i.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/50",children:"·"}),i.jsx(Rr,{since:u.since})]}),u.doing!==null&&i.jsx("p",{"data-testid":"live-peek-doing",className:"text-muted-foreground truncate text-xs",children:u.doing}),u.replyingTo!==null&&t!==void 0&&i.jsx("button",{type:"button","data-testid":"live-peek-replying-to",onClick:()=>t(u.replyingTo.rowId),className:"focus-ring text-muted-foreground hover:text-foreground truncate rounded text-left text-xs underline underline-offset-2",children:`Replying to “${u.replyingTo.excerpt}”`}),i.jsxs("div",{className:"mt-0.5 flex items-center gap-2",children:[u.state!=="held"&&u.sessionId!==null&&n!==void 0&&i.jsxs(ve,{type:"button",variant:"outline",size:"sm","data-testid":"live-peek-open-session",onClick:()=>n(u.sessionId),className:"h-7 gap-1 px-2 text-xs",children:["Open its chat",i.jsx(vt,{"aria-hidden":"true",className:"size-3"})]}),u.state==="held"&&u.behind!=null&&u.behind.title!==null&&a!==void 0&&i.jsxs(ve,{type:"button",variant:"outline",size:"sm","data-testid":"live-peek-open-room",onClick:()=>a(u.behind.roomId),className:"h-7 gap-1 px-2 text-xs",children:["Open where it’s working",i.jsx(vt,{"aria-hidden":"true",className:"size-3"})]}),u.state==="held"&&u.othersWaiting===!0&&o!==void 0&&((r==null?void 0:r.has(u.authorId))===!0?i.jsx("span",{"data-testid":"live-peek-next-up",className:"text-muted-foreground text-xs",children:"Next up here"}):i.jsx(ve,{type:"button",variant:"ghost",size:"sm","data-testid":"live-peek-answer-first",onClick:()=>o(u.authorId),className:"h-7 px-2 text-xs",children:"Answer here first"})),d&&i.jsx(ve,{type:"button",variant:"ghost",size:"sm","data-testid":"live-peek-stop",disabled:(m==null?void 0:m.has(u.authorId))===!0,onClick:()=>c(u.authorId),onFocus:()=>j.current=u.authorId,ref:h=>{h===null?w.current.delete(u.authorId):w.current.set(u.authorId,h)},"aria-label":`Stop ${u.author.displayName}`,className:"h-7 px-2 text-xs",children:"Stop"})]})]})]},u.authorId))}),x&&i.jsx("div",{className:"border-border border-t p-2",children:i.jsxs(ve,{type:"button",variant:"ghost",size:"sm","data-testid":"live-peek-stop-all",disabled:p,onClick:s,className:"h-auto w-full flex-col items-start gap-0.5 px-2 py-1.5 text-xs",children:[i.jsx("span",{children:"Stop everything in this room"}),i.jsx("span",{className:"text-muted-foreground font-normal",children:`Stops all ${e.length}`})]})})]})}function Rr({since:e}){const[t,n]=l.useState(()=>Date.now());return l.useEffect(()=>{const a=setInterval(()=>n(Date.now()),wr);return()=>clearInterval(a)},[e]),i.jsx("span",{className:"text-muted-foreground shrink-0 tabular-nums",children:Wt(Math.max(0,t-Date.parse(e)))})}function Dr(e,t,n){const a=l.useRef(null),o=l.useCallback((r,s)=>{const p=Number(s.getAttribute("aria-posinset")),c=r==="next"?p+1:p-1;if(!Number.isFinite(c)||c<1)return;let m=0;const d=e.findIndex(x=>x.kind==="message"&&++m===c);d!==-1&&(a.current=c,t.scrollToIndex(d,{align:r==="next"?"end":"start"}))},[e,t]);return l.useEffect(()=>{var p;const r=a.current;if(r===null)return;const s=(p=n.current)==null?void 0:p.querySelector(`[${mt}][aria-posinset="${r}"]`);s!=null&&(a.current=null,s.focus())}),o}function Nr(e){const{conversationId:t,rows:n,virtualizer:a,landOn:o,landingReady:r,resumeRow:s,landOnRow:p,onTopRow:c}=e,[m,d]=l.useState(!1);l.useLayoutEffect(()=>{d(!0)},[]);const x=l.useRef(null),[w,j]=l.useState(!1),[g,u]=l.useState(null),[h,E]=l.useState(null),f=l.useRef(null);l.useLayoutEffect(()=>{if(!m||!r||n.length===0)return;const y=p==null?void 0:p(),C=x.current!==t;if(!C&&y===void 0)return;if(x.current=t,C&&(f.current=null),j(!0),y!==void 0){const k=n.findIndex(T=>T.id===y);if(k!==-1){u("requested"),E(y),a.scrollToIndex(k,{align:"center"});return}}if(!C)return;E(null);const z=s==null?void 0:s();if(z!==void 0){const k=n.findIndex(T=>T.id===z);if(k!==-1){u("remembered"),a.scrollToIndex(k,{align:"start"});return}}const D=o==="unread"?n.findIndex(k=>k.kind==="unread-divider"):-1;if(D===-1){u(z===void 0?"end":"end-row-gone"),a.scrollToEnd();return}u("unread"),a.scrollToIndex(Math.max(0,D-1),{align:"start"})},[m,r,t,n,a,o,s,p]);const v=l.useCallback((y,C)=>{var S;const z=(y==null?void 0:y.scrollTop)??0,D=a.getVirtualItems().find(F=>F.end>z),k=D===void 0||(S=n[D.index])==null?void 0:S.id,T=C?void 0:k;T!==f.current&&(f.current=T,c==null||c(T))},[a,n,c]);return{landed:w,landedOn:g,landedRow:h,reportTopRow:v}}function Sr(e,t,n){const a=l.useCallback(r=>{var s;return((s=e[r])==null?void 0:s.id)??r},[e]);return Ja({count:e.length,getScrollElement:()=>t.current,estimateSize:()=>80,overscan:5,getItemKey:a,measureElement:(r,s,p)=>{var w;const c=(w=s==null?void 0:s.borderBoxSize)==null?void 0:w[0],m=c?Math.round(c.blockSize):r.getBoundingClientRect().height;if(m>0)return m;const d=p.indexFromElement(r),x=p.options.getItemKey(d);return p.itemSizeCache.get(x)??p.options.estimateSize(d)},anchorTo:"end",followOnAppend:!0,scrollEndThreshold:64,onChange:r=>{r.isScrolling||n==null||n()}})}const Cr=64;function Tr(e){const{conversationId:t,rowCount:n}=e,a=l.useRef(null),o=l.useRef(!0),[r,s]=l.useState(!0),[p,c]=l.useState(!1),m=l.useRef(t),d=l.useCallback(()=>{const g=a.current;if(!g)return;const u=g.scrollHeight-g.scrollTop-g.clientHeight<=Cr;o.current=u,s(h=>h===u?h:u),u&&c(!1)},[]),x=l.useCallback(g=>{a.current=g},[]);l.useEffect(()=>{if(m.current===t)return;m.current=t,o.current=!0,s(!0),c(!1);const g=a.current;g&&(g.scrollTop=g.scrollHeight)},[t]);const w=l.useRef(n);l.useEffect(()=>{const g=w.current;w.current=n,n>g&&!o.current&&c(!0)},[n]);const j=l.useCallback(g=>{const u=a.current;u&&u.scrollTo({top:u.scrollHeight,behavior:(g==null?void 0:g.behavior)??"auto"}),o.current=!0,s(!0),c(!1)},[]);return{scrollRef:x,onScroll:d,isAtBottom:r,hasNewRows:p,atBottomRef:o,scrollToBottom:j}}const Ar=800,$t=24;function zr({scrollRef:e}){const t=l.useRef(null),n=l.useRef(null),a=l.useRef(null),[o,r]=l.useState(!1),s=l.useRef(!1),p=l.useRef(!1),c=l.useRef(0),m=l.useRef(0),d=l.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{!s.current&&!p.current&&r(!1)},Ar)},[]),x=l.useCallback(()=>{r(!0),d()},[d]),w=l.useCallback(()=>{p.current=!0,x()},[x]),j=l.useCallback(()=>{p.current=!1,d()},[d]),g=l.useCallback(()=>{const E=e.current,f=t.current,v=n.current;if(!E||!f||!v)return;const{scrollTop:y,scrollHeight:C,clientHeight:z}=E;if(C<=z){f.style.display="none";return}f.style.display="";const D=v.clientHeight,k=z/C,T=Math.max(k*D,$t),S=D-T,B=y/(C-z)*S;f.style.height=`${T}px`,f.style.transform=`translateY(${B}px)`},[e]);l.useEffect(()=>{const E=e.current;if(!E)return;const f=()=>{x(),g()};return E.addEventListener("scroll",f,{passive:!0}),g(),()=>E.removeEventListener("scroll",f)},[e,x,g]);const u=l.useCallback(E=>{if(E.target===t.current)return;const f=e.current,v=n.current;if(!f||!v)return;const y=v.getBoundingClientRect(),C=(E.clientY-y.top)/y.height;f.scrollTop=C*(f.scrollHeight-f.clientHeight)},[e]),h=l.useCallback(E=>{var y;E.preventDefault(),E.stopPropagation(),s.current=!0,c.current=E.clientY,m.current=((y=e.current)==null?void 0:y.scrollTop)??0;const f=C=>{const z=e.current,D=n.current;if(!z||!D)return;const k=C.clientY-c.current,T=D.clientHeight,S=z.clientHeight/z.scrollHeight,F=Math.max(S*T,$t),B=T-F,H=z.scrollHeight-z.clientHeight,I=k/B*H;z.scrollTop=m.current+I},v=()=>{s.current=!1,document.removeEventListener("pointermove",f),document.removeEventListener("pointerup",v),d()};document.addEventListener("pointermove",f),document.addEventListener("pointerup",v)},[e,d]);return i.jsx("div",{ref:n,role:"presentation",onClick:u,onPointerEnter:w,onPointerLeave:j,style:{top:"var(--conversation-thumb-top, 0px)"},className:"pointer-events-auto absolute right-0 bottom-0 z-10 w-2.5",children:i.jsx("div",{ref:t,onPointerDown:h,className:"bg-border hover:bg-foreground/40 absolute right-0.5 w-1.5 cursor-pointer rounded-full transition-[opacity,background-color] duration-200",style:{opacity:o?1:0}})})}function Ir({hasNewRows:e,isAtBottom:t,hasRows:n,onJump:a}){return i.jsxs(i.Fragment,{children:[i.jsx(he,{children:e&&!t&&i.jsxs(J.button,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2},onClick:a,"data-slot":"conversation-new-messages","data-testid":"conversation-new-messages",className:"bg-foreground text-background hover:bg-foreground/90 absolute bottom-4 left-1/2 z-10 -translate-x-1/2 cursor-pointer rounded-full px-3 py-1.5 text-xs font-medium shadow-sm transition-colors",children:["New messages",i.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:"New messages"})]})}),i.jsx(he,{children:!t&&n&&i.jsx(J.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.15},onClick:a,"data-slot":"conversation-jump-to-latest","data-testid":"conversation-jump-to-latest",className:"bg-background absolute right-4 bottom-4 rounded-full border p-2 shadow-sm transition-shadow hover:shadow-md","aria-label":"Scroll to bottom",children:i.jsx(ka,{className:"size-(--size-icon-md)"})})})]})}const _r=2200;function Or(e){return e===null?"auto":e.scrollHeight-e.scrollTop-e.clientHeight<=e.clientHeight?"smooth":"auto"}function Fr({conversationId:e,label:t,rows:n,renderRow:a,onOpenThread:o,domIdOf:r,landOn:s="end",landingReady:p=!0,resumeRow:c,landOnRow:m,onTopRow:d,pending:x,viewerAuthorId:w,loading:j,empty:g,transcriptAnnouncement:u,approvalAnnouncement:h,onReachedBottom:E,busy:f,className:v,"data-testid":y,feedTestId:C,ref:z}){var te;const{capabilities:D}=Oe(),k=l.useRef(null),T=x??[],S=Tr({conversationId:e,rowCount:n.length+T.length}),{scrollRef:F,atBottomRef:B}=S,H=l.useCallback(A=>{k.current=A,F(A)},[F]),I=l.useRef(null),P=l.useRef(!1),de=l.useCallback(()=>{var A;P.current&&((A=I.current)==null||A.call(I,k.current,B.current))},[B]),K=Sr(n,k,de),{landed:ne,landedOn:R,landedRow:Q,reportTopRow:X}=Nr({conversationId:e,rows:n,virtualizer:K,landOn:s,landingReady:p&&j==null,...c===void 0?{}:{resumeRow:c},...m===void 0?{}:{landOnRow:m},...d===void 0?{}:{onTopRow:d}});l.useLayoutEffect(()=>{I.current=X,P.current=ne});const G=l.useCallback(()=>{S.onScroll(),X(k.current,B.current)},[S,X,B]),be=K.isAtEnd();l.useEffect(()=>{ne&&be&&(E==null||E())},[ne,be,E]);const ae=Dr(n,K,k),Y=l.useCallback(A=>{const W=document.getElementById(A);return W===null?!1:(W.scrollIntoView({block:"center"}),W.focus({preventScroll:!0}),!0)},[]),Z=l.useRef(null),V=l.useRef(void 0),ie=l.useCallback(()=>{var A;V.current!==void 0&&(clearTimeout(V.current),V.current=void 0),(A=Z.current)==null||A.removeAttribute("data-landed"),Z.current=null},[]),ue=l.useRef(null);l.useEffect(()=>{if(R!=="requested"||Q===null||ue.current===Q||r===void 0)return;const A=n.find(re=>re.id===Q),W=A===void 0?void 0:r(A);if(W===void 0)return;const ce=requestAnimationFrame(()=>{if(!Y(W))return;const re=document.getElementById(W);re!==null&&(ue.current=Q,ie(),re.setAttribute("data-landed","true"),Z.current=re,V.current=setTimeout(ie,_r))});return()=>cancelAnimationFrame(ce)},[R,Q,r,n,Y,ie]),l.useEffect(()=>ie,[ie]);const me=l.useCallback(A=>{S.scrollToBottom(A),K.scrollToEnd({behavior:(A==null?void 0:A.behavior)??"auto"})},[S,K]);l.useImperativeHandle(z,()=>({scrollToRow(A){if(Y(A))return!0;if(r===void 0)return!1;const W=n.findIndex(ce=>r(ce)===A);return W===-1?!1:(K.scrollToIndex(W,{align:"center"}),requestAnimationFrame(()=>Y(A)),!0)},scrollToBottom:me}),[Y,r,n,K,me]);const fe=l.useMemo(()=>({onOpenThread:D.threads?o:void 0}),[D.threads,o]),oe=l.useMemo(()=>n.reduce((A,W)=>A+(W.kind==="message"?1:0),0),[n]);return j!=null?i.jsx(i.Fragment,{children:j}):g!==void 0&&n.length===0&&T.length===0?i.jsx(i.Fragment,{children:g}):i.jsxs("div",{"data-slot":"conversation-timeline","data-testid":y,"data-landed-on":R??void 0,"data-message-row-count":oe,className:_("relative min-h-0 flex-1",v),children:[i.jsxs("div",{ref:H,onScroll:G,"data-slot":"conversation-scroller","data-testid":"conversation-scroller",className:"chat-scroll-area h-full scrollbar-none overflow-y-auto",style:{overflowAnchor:"none"},children:[i.jsx(ii,{label:t,busy:f,"data-testid":C,onBeyondRendered:ae,children:i.jsx("div",{style:{height:K.getTotalSize(),position:"relative",width:"100%"},children:i.jsx("div",{"data-slot":"conversation-window",className:"absolute left-0 w-full",style:{top:((te=K.getVirtualItems()[0])==null?void 0:te.start)??0},children:K.getVirtualItems().map(A=>i.jsx("div",{"data-index":A.index,ref:K.measureElement,children:a(n[A.index],{...fe,index:A.index})},n[A.index].id))})})}),T.length>0&&w!==void 0&&i.jsx("div",{className:"flex flex-col",children:T.map(A=>i.jsx(Ci,{post:A,viewerAuthorId:w},A.clientId))})]}),u!==void 0&&i.jsx("div",{role:"log","aria-live":"polite","aria-atomic":"false","data-testid":"transcript-announcer",className:"sr-only",children:u}),h!==void 0&&i.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true","data-testid":"approval-announcer",className:"sr-only",children:h}),i.jsx(zr,{scrollRef:k}),i.jsx(Ir,{hasNewRows:S.hasNewRows,isAtBottom:S.isAtBottom,hasRows:n.length>0,onJump:()=>me({behavior:Or(k.current)})})]})}const Lr=["react","react-more","run-with","reply","copy","mention","profile"],Mr={"Yes, no, and thanks":["👍 thumbsup thumbs up yes approve like agree ok good","❤️ heart love red","🎉 tada party celebrate congrats hooray confetti","👀 eyes look watching seen reading review","🚀 rocket ship launch ship-it fast deploy","🙏 pray thanks thank you please folded hands","🔥 fire lit hot flame burn","💯 hundred perfect score full agree","✅ check tick done complete yes correct","❌ cross no wrong incorrect fail","👎 thumbsdown thumbs down no disagree bad","🙌 raised hands celebrate praise hooray","👏 clap applause bravo well done","🤝 handshake deal agreed partnership","💪 muscle strong flex power","🫡 salute yes sir acknowledged on it","✨ sparkles shiny new magic nice","⭐ star favourite favorite rating","🏆 trophy win won champion award","🎯 target bullseye exactly precise nailed it"],Faces:["😀 grin smile happy","😄 smile happy laugh joy","😂 joy laugh crying laughing funny lol","🤣 rofl rolling laughing hilarious","🙂 slight smile fine ok","😊 blush smile warm happy","😉 wink joking","😍 heart-eyes love adore","🤩 star-struck amazed wow","😎 sunglasses cool smooth","🥳 party face celebrate birthday","🤔 thinking hmm consider wondering","🧐 monocle inspect examine scrutiny","😅 sweat smile nervous phew close call","😬 grimace awkward yikes","😱 scream shocked horror fear","😮 surprised open mouth wow","🤯 mind blown exploding head whoa","😴 sleeping asleep tired zzz","🥱 yawn bored tired","😐 neutral meh straight face","🙄 eye roll unimpressed whatever","😤 triumph frustrated steam determined","😢 cry sad tear upset","😭 sob crying loudly devastated","😡 angry rage mad furious","🤒 sick ill fever unwell","🤖 robot bot agent automation machine","👻 ghost boo spooky","🤡 clown silly foolish","😇 innocent halo angel","🥲 tear smile bittersweet","🫠 melting overwhelmed hot dissolving","🤷 shrug dunno who knows unsure"],"Hands and people":["👋 wave hello hi bye greeting","🤙 call me shaka hang loose","✌️ peace victory two","🤞 fingers crossed hope luck","🫰 finger heart love money","👌 ok perfect fine good","🤌 pinched fingers italian chef what","☝️ point-up one first attention","👇 point-down below beneath","👉 point-right this next","👈 point-left back previous","✋ hand stop halt raised","🖐️ open-hand five stop","🫶 heart-hands love care","🧠 brain smart thinking mind idea","👨💻 developer coding programmer engineer","🕺 dancing celebrate dance","🏃 running run fast hurry"],"Hearts and symbols":["🧡 orange heart love","💛 yellow heart love","💚 green heart love","💙 blue heart love","💜 purple heart love","🖤 black heart love dark","🤍 white heart love","💔 broken heart sad hurt","💖 sparkling heart love shiny","❣️ heart-exclamation love","⚡ zap lightning fast power energy","💥 boom explosion collision impact","💫 dizzy stars sparkle","⚠️ warning caution careful alert","🚨 siren alert emergency urgent incident","🛑 stop sign halt blocked","♻️ recycle reuse refresh retry","🔒 lock secure locked private","🔓 unlock open unlocked","💡 idea bulb lightbulb suggestion insight","❓ question ask unknown what","❗ exclamation important attention","➕ plus add more increase","➖ minus remove less decrease","🆗 ok-button fine approved","🆕 new fresh","🔁 repeat loop again retry","⏳ hourglass waiting time slow pending","⏰ alarm clock time deadline reminder","📈 chart-up growth increase improving","📉 chart-down decline decrease regression"],"Work and things":["💻 laptop computer code work","🖥️ desktop monitor screen","📱 phone mobile device","⌨️ keyboard typing input","🐛 bug defect issue error broken","🔧 wrench fix repair tool","🔨 hammer build fix construct","🛠️ tools build fix maintenance","⚙️ gear settings config machinery","🧪 test experiment lab trial","🧹 broom clean cleanup sweep tidy","📦 package box shipment release module","🚢 ship shipping deploy release","🗑️ trash delete remove bin","📝 memo note write document","📋 clipboard copy list checklist","📌 pin pinned important stick","📎 paperclip attach link","🔍 magnifying search find look investigate","🔗 link url chain reference","🗓️ calendar date schedule plan","⏱️ stopwatch timing performance speed","🔔 bell notify notification alert ping","🔕 bell-off mute silent quiet","📮 mail post send inbox","🧾 receipt invoice record log","🗂️ files folders organise organize","🔑 key access secret credential","🧱 brick wall block foundation","🪵 log wood timber","🧯 extinguisher hotfix incident fire put out","🩹 bandage patch fix quick","🔮 crystal ball predict future guess","🧭 compass direction navigate guide","🪄 magic wand automatic magically"],"Food and drink":["☕ coffee cafe morning caffeine","🍵 tea green matcha","🍺 beer pint drink cheers","🍻 cheers beers toast celebrate","🥂 champagne toast celebrate cheers","🍕 pizza food slice","🍔 burger food hamburger","🌮 taco food mexican","🍜 noodles ramen soup food","🍎 apple fruit food","🍌 banana fruit food","🍰 cake dessert birthday sweet","🍪 cookie biscuit sweet snack","🍩 donut doughnut sweet","🧁 cupcake sweet dessert","🍫 chocolate sweet treat","🍿 popcorn watching drama entertainment","🥑 avocado food green","🌶️ chilli chili spicy hot pepper","🧊 ice cold frozen chill"],"Animals and nature":["🐶 dog puppy pet","🐱 cat kitten pet","🦊 fox clever","🐻 bear","🐼 panda","🐢 turtle slow tortoise","🐌 snail slow","🐝 bee busy buzz","🦋 butterfly transform pretty","🐙 octopus multitask arms","🐳 whale big ocean","🦄 unicorn rare magic special","🦉 owl wise night","🐘 elephant big memory","🌱 seedling growth new sprout","🌳 tree nature growth","🌸 blossom flower spring","🌊 ocean wave water sea","🌈 rainbow colour color pride hope","☀️ sun sunny bright day","🌙 moon night late evening","⛈️ storm thunder rain bad weather","❄️ snowflake cold snow winter freeze","🍂 leaves autumn fall"],"Places and travel":["🏠 house home","🏢 office building work","🌍 earth world globe europe africa","🌎 earth-americas world globe","🗺️ map plan route territory","✈️ plane flight travel","🚗 car drive travel","🚲 bike bicycle cycle","🚂 train rail","⛺ tent camping outdoors","🏝️ island holiday vacation beach","🏔️ mountain peak climb summit"]},Nn=Object.entries(Mr).map(([e,t])=>({name:e,entries:t.map(n=>{const[a,...o]=n.split(" ");return{emoji:a,keywords:o}})})),Sn=Nn.flatMap(e=>e.entries);function Pr(e){const t=e.toLowerCase().trim().split(/\s+/).filter(Boolean);return t.length===0?[]:Sn.filter(n=>n.emoji===e.trim()||t.every(a=>n.keywords.some(o=>o.startsWith(a))))}function qr(e){return Sn.find(t=>t.emoji===e)}function _e(e){var t;return((t=qr(e))==null?void 0:t.keywords[0])??e}function Cn(e,t,n){const a=l.useRef([]);l.useImperativeHandle(n,()=>({focusFirst:()=>{var s;return(s=a.current[0])==null?void 0:s.focus()}}));const o=l.useCallback(s=>p=>{a.current[s]=p},[]),r=l.useCallback((s,p)=>{const c=(m,d)=>{var x;e!==0&&((x=a.current[(m+d+e)%e])==null||x.focus())};switch(s.key){case"ArrowRight":case"ArrowDown":s.preventDefault(),c(p,1);break;case"ArrowLeft":case"ArrowUp":s.preventDefault(),c(p,-1);break;case"Home":if(s.ctrlKey||s.metaKey)break;s.preventDefault(),c(0,0);break;case"End":if(s.ctrlKey||s.metaKey)break;s.preventDefault(),c(e-1,0);break;case"Escape":s.preventDefault(),s.stopPropagation(),t();break}},[e,t]);return{register:o,handleKeyDown:r}}function Tn({mine:e,frequents:t,onPick:n,disabled:a}){const[o,r]=l.useState(""),s=l.useId(),p=l.useMemo(()=>Pr(o),[o]),c=o.trim().length>0,m=d=>i.jsx("button",{type:"button",disabled:a,onClick:()=>n(d),"aria-pressed":e.includes(d),"aria-label":_e(d),title:_e(d),className:_("focus-ring hover:bg-accent flex size-8 items-center justify-center rounded-md text-base",at,"disabled:pointer-events-none disabled:opacity-50",e.includes(d)&&"bg-brand/15 ring-brand/40 ring-1"),children:i.jsx("span",{"aria-hidden":!0,children:d})},d);return i.jsxs("div",{className:"flex flex-col gap-2","data-testid":"reaction-picker",children:[i.jsx(wa,{autoFocus:!0,value:o,onChange:d=>r(d.target.value),placeholder:"Search emoji…","aria-label":"Search emoji",className:"h-8"}),a===!0&&i.jsx("p",{role:"status",className:"text-muted-foreground px-1 text-xs",children:"Reactions send once the room reconnects."}),i.jsx("div",{className:"max-h-64 overflow-y-auto pr-1",children:c?p.length===0?i.jsx("p",{className:"text-muted-foreground px-1 py-6 text-center text-xs",children:"Nothing here matches that."}):i.jsx("div",{className:"grid grid-cols-8 gap-0.5",children:p.map(d=>m(d.emoji))}):i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsxs("section",{role:"group","aria-labelledby":`${s}-frequents`,children:[i.jsx("h3",{id:`${s}-frequents`,className:"text-muted-foreground text-2xs px-1 pb-1 font-medium",children:"Your most used"}),i.jsx("div",{className:"grid grid-cols-8 gap-0.5",children:t.map(m)})]}),Nn.map((d,x)=>i.jsxs("section",{role:"group","aria-labelledby":`${s}-group-${x}`,children:[i.jsx("h3",{id:`${s}-group-${x}`,className:"text-muted-foreground text-2xs px-1 pb-1 font-medium",children:d.name}),i.jsx("div",{className:"grid grid-cols-8 gap-0.5",children:d.entries.map(w=>m(w.emoji))})]},d.name))]})})]})}function An({appearance:e="capsule",mine:t,frequents:n,onPick:a,disabled:o,triggerRef:r,onTriggerKeyDown:s}){const[p,c]=l.useState(!1),m=e==="capsule";return i.jsxs(ja,{open:p,onOpenChange:c,children:[i.jsx(Ea,{asChild:!0,children:i.jsx(ve,{ref:r,type:"button",variant:"ghost",size:m?"icon-xs":"sm",tabIndex:-1,disabled:o,"data-entry-action":"react-more","data-testid":m?void 0:"entry-reactions-add","aria-label":"Pick a reaction",title:"Pick a reaction",onKeyDown:s,className:_("leading-none",m?"text-control":"text-muted-foreground/60 hover:text-foreground h-auto rounded-full px-2 py-0.5 text-xs"),children:i.jsx("span",{"aria-hidden":!0,children:"🙂+"})})}),i.jsx(Ra,{align:"end",className:"w-[19rem] p-2",children:i.jsx(Tn,{mine:t,frequents:n,disabled:o,onPick:d=>{a(d),c(!1)}})})]})}function Br({prompt:e,sessionId:t,triggerRef:n,onTriggerKeyDown:a}){const o=Da(),r=Ke(),{sessions:s}=Na(),{data:p}=Sa(),{data:c}=Ca(),[m,d]=l.useState({open:!1}),x=s.find(f=>f.id===t),w=x==null?void 0:x.runtime,j=x==null?void 0:x.cwd,g=Aa.filter(f=>f!==w),u=f=>(p?f in p.capabilities:!0)&&za(c,f),h=f=>{Ia(r,{dir:j,runtime:f,prompt:e}).then(v=>o(v)).catch(v=>{_a(r,v),Oa(j??null)})},E=f=>{if(!u(f)){d({open:!0,runtime:f});return}h(f)};return i.jsxs(i.Fragment,{children:[i.jsxs(Vt,{children:[i.jsx(Jt,{asChild:!0,children:i.jsx("button",{ref:n,type:"button","data-entry-action":"run-with","aria-label":"Run this prompt elsewhere",onKeyDown:a,className:"text-muted-foreground/60 hover:text-foreground hover:bg-muted inline-flex size-6 items-center justify-center rounded transition-colors duration-150",children:i.jsx(ai,{className:"size-3.5"})})}),i.jsxs(Xt,{align:"end",className:"w-52",children:[i.jsx(Ta,{children:"Run this with…"}),g.map(f=>{const v=Gt(f);return i.jsx(nt,{icon:v.icon,description:u(f)?void 0:"Connect",onSelect:()=>E(f),children:v.label},f)})]})]}),i.jsx(Xa,{runtime:m.runtime,open:m.open,onOpenChange:f=>d(v=>({...v,open:f})),renderConnect:Za,onRuntimeReady:f=>{d({open:!1}),h(f)}})]})}function $r(e,t,n){return Lr.flatMap(a=>{if(a==="react")return t?t.quick.map(r=>({kind:"quick",slot:a,emoji:r,mine:t.mine.includes(r)})):[];if(a==="react-more")return t?[{kind:"picker",slot:a}]:[];if(a==="run-with")return n?[{kind:"run-with",slot:a,runWith:n}]:[];const o=e.find(r=>r.id===a);return o?[{kind:"command",slot:a,action:o}]:[]})}const Hr=l.forwardRef(function({actions:t,reactions:n,runWith:a,onExit:o,className:r},s){const p=$r(t,n,a),{register:c,handleKeyDown:m}=Cn(p.length,o,s);return p.length===0?null:i.jsx("div",{role:"toolbar","aria-label":"Message actions","aria-orientation":"horizontal","data-testid":"entry-actions",className:r,children:p.map((d,x)=>{const w=g=>m(g,x),j=d.kind==="command"&&x>0&&p[x-1].kind!=="command";return d.kind==="run-with"?i.jsx(Br,{prompt:d.runWith.prompt,sessionId:d.runWith.sessionId,triggerRef:c(x),onTriggerKeyDown:w},"run-with"):d.kind==="picker"?i.jsx(An,{mine:n.mine,frequents:n.quick,disabled:n.disabled,onPick:n.onToggle,triggerRef:c(x),onTriggerKeyDown:w},"react-more"):i.jsxs(l.Fragment,{children:[j&&i.jsx("span",{"aria-hidden":!0,className:"bg-border mx-0.5 my-1 w-px self-stretch"}),d.kind==="quick"?i.jsx(ve,{ref:c(x),type:"button",variant:"ghost",size:"icon-xs",tabIndex:-1,disabled:n.disabled,"data-entry-action":d.slot,"data-emoji":d.emoji,"data-reacted":d.mine?"true":void 0,"aria-pressed":d.mine,"aria-label":`React with ${_e(d.emoji)}`,title:`React with ${_e(d.emoji)}`,onClick:()=>n.onToggle(d.emoji),onKeyDown:w,className:_("text-control leading-none",d.mine&&"bg-brand/15 text-foreground"),children:i.jsx("span",{"aria-hidden":!0,children:d.emoji})}):i.jsx(ve,{ref:c(x),type:"button",variant:"ghost",size:"icon-xs",tabIndex:-1,"data-entry-action":d.slot,"aria-label":d.action.label,title:d.action.label,onClick:d.action.run,onKeyDown:w,children:i.jsx(d.action.icon,{"aria-hidden":!0,className:"size-3.5"})})]},d.kind==="quick"?d.emoji:d.action.id)})})});function Kr({quick:e,mine:t,onToggle:n,disabled:a}){const{close:o}=Ba(),[r,s]=l.useState(!1),p=c=>{n(c),o()};return i.jsxs("div",{className:"border-border border-b px-4 py-3","data-testid":"drawer-reactions",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[e.map(c=>i.jsx("button",{type:"button",disabled:a,onClick:()=>p(c),"data-entry-action":"react","data-emoji":c,"aria-pressed":t.includes(c),"aria-label":`React with ${_e(c)}`,className:_("focus-ring flex size-11 items-center justify-center rounded-full border text-lg",at,"disabled:pointer-events-none disabled:opacity-50",t.includes(c)?"border-brand/70 bg-brand/12":"border-border bg-muted/60 active:bg-accent"),children:i.jsx("span",{"aria-hidden":!0,children:c})},c)),i.jsx("button",{type:"button",disabled:a,onClick:()=>s(c=>!c),"aria-expanded":r,"aria-label":"Pick a reaction",className:_("focus-ring border-border bg-muted/60 active:bg-accent flex size-11 items-center justify-center rounded-full border text-base",at,"disabled:pointer-events-none disabled:opacity-50"),children:i.jsx("span",{"aria-hidden":!0,children:"🙂+"})})]}),r&&i.jsx("div",{className:"pt-3",children:i.jsx(Tn,{mine:t,frequents:e,onPick:p,disabled:a})})]})}function Wr({actions:e,reactions:t,onPressStateChange:n,children:a}){const o=Fa();return e.length===0?i.jsx(i.Fragment,{children:a}):i.jsxs(La,{children:[i.jsx(Ma,{asChild:!0,onPressStateChange:n,children:a}),i.jsxs(Pa,{className:"w-52",children:[o&&t&&i.jsx(Kr,{...t}),e.map(r=>i.jsxs(qa,{onClick:r.run,children:[i.jsx(r.icon,{"aria-hidden":!0,className:"mr-2 size-4"}),r.label]},r.id))]})]})}function Ur({count:e,roll:t,mine:n}){const[a]=l.useState(t);return i.jsx("span",{"aria-hidden":!0,className:_("tabular-nums",n?"text-foreground/80":"text-muted-foreground",a&&"motion-safe:animate-reaction-roll"),children:e})}function Gr({reaction:e,mine:t,summary:n,arrived:a,rolled:o,onToggle:r,disabled:s,buttonRef:p,onKeyDown:c}){const[m]=l.useState(a),d=e.authorIds.length;return i.jsxs(J.button,{ref:p,type:"button",tabIndex:-1,onKeyDown:c,exit:{opacity:0},transition:{duration:.12},disabled:s,onClick:r,"aria-pressed":t,"aria-label":n,title:n,"data-testid":"entry-reaction","data-emoji":e.emoji,"data-mine":t?"true":void 0,className:_("focus-ring relative inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-xs","disabled:pointer-events-none disabled:opacity-50",t?"border-brand/70 bg-brand/12 text-foreground":"border-border bg-muted/60 text-muted-foreground hover:bg-muted",m&&"motion-safe:animate-reaction-pop"),children:[m&&i.jsx("span",{"aria-hidden":!0,className:"border-brand motion-safe:animate-reaction-ring pointer-events-none absolute -inset-1 rounded-full border opacity-0"}),i.jsx("span",{"aria-hidden":!0,children:e.emoji}),i.jsx(Ur,{count:d,roll:o,mine:t},d)]})}const Yr=l.forwardRef(function({reactions:t,viewerAuthorId:n,names:a,frequents:o,onToggle:r,disabled:s,onExit:p},c){const[m,d]=l.useState(!1),x=l.useRef(null),w=x.current,[j,g]=l.useState(!1),[u,h]=l.useState(t.length);u!==t.length&&(h(t.length),g(t.length===0&&u>0)),l.useEffect(()=>{x.current=new Map(t.map(S=>[S.emoji,S.authorIds.length]))});const{shown:E,hidden:f}=ci(t),v=m?t:E,y=t.filter(S=>yt(S,n)).map(S=>S.emoji),C=f>0&&!m?1:0,z=t.length>0?1:0,{register:D,handleKeyDown:k}=Cn(v.length+C+z,p,c),T=l.useCallback(S=>F=>k(F,S),[k]);return t.length===0&&!j?null:i.jsxs("div",{"data-testid":"entry-reactions",className:"mt-1 flex flex-wrap items-center gap-1",role:"group","aria-label":"Reactions",children:[i.jsx(he,{initial:!1,onExitComplete:()=>g(!1),children:v.map((S,F)=>i.jsx(Gr,{reaction:S,mine:yt(S,n),summary:li(S,n,a),arrived:w!==null&&!w.has(S.emoji),rolled:(w==null?void 0:w.get(S.emoji))!==void 0&&w.get(S.emoji)!==S.authorIds.length,onToggle:()=>r(S.emoji),disabled:s,buttonRef:D(F),onKeyDown:T(F)},S.emoji))}),C===1&&i.jsxs("button",{ref:D(v.length),type:"button",tabIndex:-1,onKeyDown:T(v.length),onClick:()=>d(!0),"data-testid":"entry-reactions-more",className:"focus-ring text-muted-foreground hover:text-foreground rounded-full px-2 py-0.5 text-xs",children:["+",f," more"]}),t.length>0&&i.jsx(An,{appearance:"ghost-pill",mine:y,frequents:o,disabled:s,onPick:r,triggerRef:D(v.length+C),onTriggerKeyDown:T(v.length+C)})]})}),zn=l.createContext(null);function Vr({value:e,children:t}){return i.jsx(zn.Provider,{value:e,children:t})}function Le(){const e=l.useContext(zn);if(e===null)throw new Error("A Message part must be rendered inside <Message.Root>. Each part draws itself with a slot of the row’s single messageItem() call, and there is no honest default for a row that was never computed.");return e}function In(e){return e==="first"||e==="only"}const Jr=$a("",{variants:{anchor:{corner:"contents",rail:"pointer-events-none sticky top-1 z-20 order-first -mt-(--msg-actions-height) flex h-(--msg-actions-height) items-start justify-end pr-2"}}});function Xr({actions:e=[],reactions:t,runWith:n,barRef:a,onExit:o}){const{capabilities:r,anchor:s}=Oe(),{slots:p}=Le();return i.jsxs(i.Fragment,{children:[e.length>0&&i.jsx("button",{type:"button",tabIndex:-1,"data-testid":"entry-actions-reach","aria-label":"Message actions",onClick:()=>{var c;return(c=a==null?void 0:a.current)==null?void 0:c.focusFirst()},className:"sr-only"}),i.jsx("div",{"data-slot":"message-actions",className:Jr({anchor:s}),children:i.jsx(Hr,{ref:a,actions:e,reactions:r.reactions?t:void 0,runWith:r.runWith?n:void 0,onExit:o,className:p.actions()})})]})}function Zr({id:e,author:t,at:n,origin:a,mark:o,asChild:r=!1,className:s}){const{slots:p,position:c}=Le(),m=n===void 0?"":ln(n);if(!In(c))return null;const d=r?dt:"div";return i.jsxs(d,{id:e,"data-slot":"message-author",className:_(p.header(),s),children:[i.jsx("span",{className:p.authorName(),children:t.displayName}),a!==void 0&&i.jsx(Ha,{origin:a}),o,i.jsx(Ka,{retired:t.retired}),m.length>0&&i.jsx("time",{dateTime:n,title:cn(n??""),className:_(p.timestamp(),"text-msg-timestamp"),children:m})]})}function Qr({children:e,className:t}){const{slots:n}=Le();return i.jsx("div",{"data-slot":"message-body",className:_(n.body(),t),children:e})}function es({id:e,children:t,className:n}){const{slots:a}=Le();return i.jsx("div",{id:e,"data-slot":"message-content",className:_(a.content(),n),children:t})}function ts({author:e,at:t,onViewProfile:n,isSelf:a,className:o}){const{slots:r,position:s}=Le(),{showTimestamps:p}=ge(),c=t===void 0?"":ln(t);return i.jsx("div",{"data-slot":"message-gutter",className:_(r.gutter(),o),children:In(s)?i.jsx(sn,{author:e,onViewProfile:n,isSelf:a}):c.length>0&&i.jsx("time",{dateTime:t,title:cn(t??""),className:_(r.avatarTimestamp(),p?"text-msg-timestamp":"group-focus-within:text-msg-timestamp group-hover:text-msg-timestamp text-transparent"),children:c})})}function ns({ref:e,...t}){const{capabilities:n}=Oe(),[a,o]=l.useState(t.reactions.length>0);return!a&&t.reactions.length>0&&o(!0),!n.reactions||!a?null:i.jsx("div",{"data-slot":"message-reactions",className:"contents",children:i.jsx(Yr,{ref:e,...t})})}const as={type:"spring",stiffness:320,damping:28};function is({role:e="assistant",position:t="only",isNew:n=!1,actions:a,reactions:o,asChild:r=!1,className:s,children:p,ref:c,...m}){const{capabilities:d,density:x,anchor:w}=Oe(),[j,g]=l.useState(null),u=l.useMemo(()=>({slots:Ni({role:e,position:t,density:x,anchor:w}),position:t}),[e,t,x,w]),h=a!==void 0&&a.length>0,E=r?dt:J.div,f=i.jsx(E,{ref:c,"data-slot":"message-root",role:"article",className:_(u.slots.root(),"focus-visible:ring-ring outline-none focus-visible:ring-2","origin-center",h&&"[-webkit-touch-callout:none]",j==="pressing"&&"motion-safe:animate-press-in",j==="released"&&"motion-safe:animate-press-release",s),...r?{}:{initial:n?{opacity:0,y:8}:!1,animate:{opacity:1,y:0},transition:as},...m,children:i.jsx(Vr,{value:u,children:i.jsx(Wa,{children:p})})});return i.jsx(Wr,{actions:a??[],reactions:d.reactions?o:void 0,onPressStateChange:g,children:f})}const js={Root:nr,Timeline:Fr,LiveLane:kr,LivePeek:Er,Composer:er,Footer:tr},Es={Root:is,Gutter:ts,Author:Zr,Body:Qr,Content:es,Attachments:zi,Reactions:ns,Actions:Xr};export{js as C,ys as D,Lr as E,ii as F,Es as M,gs as N,ks as U,fs as a,ln as b,Oo as c,sn as d,cn as e,ms as f,Oe as g,yt as h,ws as i,ki as j,hs as k,xs as l,si as m,vs as n,bs as t,yi as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{L as s,E as R,a as Y,C as x}from"./index-DgyhdQnI.js";import{s as w,t as O,a as d,b as k,d as h,L as f,i as u,J as y,c as l,k as g,f as j,l as U,e as G,M as X,K as b,I as Z}from"./index-Czm6C7FZ.js";import"./index-8-iQ6PnT.js";const _=177,q=179,E=184,v=12,C=13,D=17,z=20,F=25,B=53,N=95,I=142,L=144,A=145,J=148,M=10,H=13,K=32,OO=9,$=47,QO=41,eO=125,aO=new R((Q,e)=>{for(let n=0,a=Q.next;(e.context&&(a<0||a==M||a==H||a==$&&Q.peek(n+1)==$)||a==QO||a==eO)&&Q.acceptToken(_),!(a!=K&&a!=OO);)a=Q.peek(++n)},{contextual:!0});let tO=new Set([N,E,z,v,D,L,A,I,J,C,B,F]);const iO=new x({start:!1,shift:(Q,e)=>e==q?Q:tO.has(e)}),XO=w({"func interface struct chan map const type var":O.definitionKeyword,"import package":O.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":O.controlKeyword,range:O.keyword,Bool:O.bool,String:O.string,Rune:O.character,Number:O.number,Nil:O.null,VariableName:O.variableName,DefName:O.definition(O.variableName),TypeName:O.typeName,LabelName:O.labelName,FieldName:O.propertyName,"FunctionDecl/DefName":O.function(O.definition(O.variableName)),"TypeSpec/DefName":O.definition(O.typeName),"CallExpr/VariableName":O.function(O.variableName),LineComment:O.lineComment,BlockComment:O.blockComment,LogicOp:O.logicOperator,ArithOp:O.arithmeticOperator,BitOp:O.bitwiseOperator,"DerefOp .":O.derefOperator,"UpdateOp IncDecOp":O.updateOperator,CompareOp:O.compareOperator,"= :=":O.definitionOperator,"<-":O.operator,'~ "*"':O.modifier,"; ,":O.separator,"... :":O.punctuation,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),nO={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},PO=s.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQO'#DgOOQP'#Gd'#GdO/uQQO'#DrO2bQQO'#DsO4QQTO'#GqO,^QTO'#GaO4XQQO'#DxO4^QQO'#D{OOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETO4cQQO'#EPO5}QQO'#EPOOQP'#Ga'#GaO6UQQO'#E`O6^QQO'#EcOOQP'#G`'#G`O6cQQO'#EsOOQP'#G_'#G_O&]QRO'#FnOOQO'#Fn'#FnO9QQQO'#G^QOQQOOO&]QROOO9XQQO'#C`O9^QSO'#CdO9lQQO'#C}O9tQQO'#DSO9yQQO'#D[O:kQQO'#CsO:pQQO'#DhO:uQQO'#EeO:}QQO'#EiO;VQQO'#EoO;_QQO'#EuO<uQQO'#ExO<|QQO'#FRO4cQQO'#FWO=WQQO'#FYO=]QRO'#F_O=jQRO'#FaO=uQQO'#FaOOQP'#Fe'#FeO4cQQO'#FgP=zOWO'#C^POOO)CAz)CAzOOQO'#G]'#G]OOQO,5<W,5<WOOQO-E9j-E9jO?TQTO'#CqOOQO'#C|'#C|OOQP,59g,59gO?tQQO'#D_O@fQSO'#FuO@kQQO'#C}O@pQQO'#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n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:iO,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[XO],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&y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vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[aO,1,2,new Y("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:Q=>nO[Q]||-1}],tokenPrec:5451}),oO=[X("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),X("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),X("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),X("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),X("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),X("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),X("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),X("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),X(`select {
|
|
1
|
+
import{L as s,E as R,a as Y,C as x}from"./index-cI2u8WZS.js";import{s as w,t as O,a as d,b as k,d as h,L as f,i as u,J as y,c as l,k as g,f as j,l as U,e as G,M as X,K as b,I as Z}from"./index-DabU6r9W.js";import"./index-C3cvP8Fo.js";const _=177,q=179,E=184,v=12,C=13,D=17,z=20,F=25,B=53,N=95,I=142,L=144,A=145,J=148,M=10,H=13,K=32,OO=9,$=47,QO=41,eO=125,aO=new R((Q,e)=>{for(let n=0,a=Q.next;(e.context&&(a<0||a==M||a==H||a==$&&Q.peek(n+1)==$)||a==QO||a==eO)&&Q.acceptToken(_),!(a!=K&&a!=OO);)a=Q.peek(++n)},{contextual:!0});let tO=new Set([N,E,z,v,D,L,A,I,J,C,B,F]);const iO=new x({start:!1,shift:(Q,e)=>e==q?Q:tO.has(e)}),XO=w({"func interface struct chan map const type var":O.definitionKeyword,"import package":O.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":O.controlKeyword,range:O.keyword,Bool:O.bool,String:O.string,Rune:O.character,Number:O.number,Nil:O.null,VariableName:O.variableName,DefName:O.definition(O.variableName),TypeName:O.typeName,LabelName:O.labelName,FieldName:O.propertyName,"FunctionDecl/DefName":O.function(O.definition(O.variableName)),"TypeSpec/DefName":O.definition(O.typeName),"CallExpr/VariableName":O.function(O.variableName),LineComment:O.lineComment,BlockComment:O.blockComment,LogicOp:O.logicOperator,ArithOp:O.arithmeticOperator,BitOp:O.bitwiseOperator,"DerefOp .":O.derefOperator,"UpdateOp IncDecOp":O.updateOperator,CompareOp:O.compareOperator,"= :=":O.definitionOperator,"<-":O.operator,'~ "*"':O.modifier,"; ,":O.separator,"... :":O.punctuation,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),nO={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},PO=s.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQO'#DgOOQP'#Gd'#GdO/uQQO'#DrO2bQQO'#DsO4QQTO'#GqO,^QTO'#GaO4XQQO'#DxO4^QQO'#D{OOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETO4cQQO'#EPO5}QQO'#EPOOQP'#Ga'#GaO6UQQO'#E`O6^QQO'#EcOOQP'#G`'#G`O6cQQO'#EsOOQP'#G_'#G_O&]QRO'#FnOOQO'#Fn'#FnO9QQQO'#G^QOQQOOO&]QROOO9XQQO'#C`O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#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:iO,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[XO],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${O[~~%ORO;'S$X;'S;=`%X;=`O$X~%^X[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y;=`<%l$X<%lO$X~%|P;=`<%l$X~&UP%l~!_!`&X~&^O#U~~&cR%j~vw&l!_!`&X#Q#R&q~&qO%p~~&vP%o~!_!`&X~'OWd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k<%lO&y~'mOd~~'pRO;'S&y;'S;=`'y;=`O&y~(OXd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k;=`<%l&y<%lO&y~(nP;=`<%l&y~(vO^~~({O]~~)QP%Y~!_!`&X~)YQ%f~{|)`!_!`&X~)eO#R~~)jOn~~)oQ%g~}!O)`!_!`&X~)zRZS!O!P*T!Q![*`#R#S+w~*WP!O!P*Z~*`Ou~Q*eTaQ!Q![*`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x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~6pX%O~{|+T}!O+T!Q![7]!c!}3x#R#S8P#T#o3x$g;'S3x;'S;=`4d<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[aO,1,2,new Y("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:Q=>nO[Q]||-1}],tokenPrec:5451}),oO=[X("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),X("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),X("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),X("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),X("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),X("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),X("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),X("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),X(`select {
|
|
2
2
|
\${}
|
|
3
3
|
}`,{label:"select",detail:"statement",type:"keyword"}),X("case ${}:\n${}",{label:"case",type:"keyword"}),X("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),X("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),X("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),X(`if \${} {
|
|
4
4
|
\${}
|