@saluzi/saluzi-edu 0.7.21 → 0.7.22

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.
Files changed (154) hide show
  1. package/dist/cli.js +55 -55
  2. package/dist/rcs-web/assets/{AdminPanel-jgwgrsVM.js → AdminPanel-kHOmCjvI.js} +1 -1
  3. package/dist/rcs-web/assets/{ArtifactView-BYrK33ug.js → ArtifactView-DSEwTsDl.js} +1 -1
  4. package/dist/rcs-web/assets/{ArtifactsGallery-CRFsE12L.js → ArtifactsGallery-BBnDfj2k.js} +1 -1
  5. package/{packages/remote-control-server/web/dist/assets/Claim-6emQ-SVR.js → dist/rcs-web/assets/Claim-B2Xu_cvl.js} +1 -1
  6. package/dist/rcs-web/assets/{Dashboard-DBI7CC6n.js → Dashboard-BJqvH4Wh.js} +1 -1
  7. package/dist/rcs-web/assets/{Join-DC_rWotf.js → Join-C3FQBiYX.js} +1 -1
  8. package/{packages/remote-control-server/web/dist/assets/Login-B8gUS3O-.js → dist/rcs-web/assets/Login-DMdqmsTJ.js} +1 -1
  9. package/dist/rcs-web/assets/{MemoriesPage-BsU6Szxn.js → MemoriesPage-CjRfwKDG.js} +1 -1
  10. package/{packages/remote-control-server/web/dist/assets/MemoryTypeChips-CmoLhMX_.js → dist/rcs-web/assets/MemoryTypeChips-DmuM1mnc.js} +1 -1
  11. package/dist/rcs-web/assets/{Register-C8E6Qs1U.js → Register-n4PilsVQ.js} +1 -1
  12. package/dist/rcs-web/assets/{RegisterEmpty-DZsgoKf3.js → RegisterEmpty-X-9vRPKk.js} +1 -1
  13. package/dist/rcs-web/assets/{SessionDetail-B_A6aCRq.js → SessionDetail-CM8lZ9rp.js} +2 -2
  14. package/dist/rcs-web/assets/{SessionVisibilityBadge-DYOhsKVV.js → SessionVisibilityBadge-DuPAMDm1.js} +1 -1
  15. package/dist/rcs-web/assets/{Setup-kURI6wq2.js → Setup-DfGuh7jn.js} +1 -1
  16. package/dist/rcs-web/assets/{ShareLanding-BK4eSvOG.js → ShareLanding-CkVddcMe.js} +1 -1
  17. package/dist/rcs-web/assets/{TeamDetail-EcCza1lF.js → TeamDetail-DuizvSbi.js} +1 -1
  18. package/dist/rcs-web/assets/{TeamList-DAMTHBZt.js → TeamList-BdVZ9Tjt.js} +1 -1
  19. package/dist/rcs-web/assets/{TeamSettings-BcRIGvC4.js → TeamSettings-B8P4jDlV.js} +1 -1
  20. package/dist/rcs-web/assets/{UserSearchInput-BgwNP3Sb.js → UserSearchInput-eNdovFoR.js} +1 -1
  21. package/dist/rcs-web/assets/{UserSettings-NlYkR5UG.js → UserSettings-Bif5fxbq.js} +1 -1
  22. package/dist/rcs-web/assets/{arc-C3mH9Q9f.js → arc-ApDTthsU.js} +1 -1
  23. package/dist/rcs-web/assets/{architectureDiagram-3BPJPVTR-DHjp0FgQ.js → architectureDiagram-3BPJPVTR-bsc4_GGC.js} +1 -1
  24. package/{packages/remote-control-server/web/dist/assets/blockDiagram-GPEHLZMM-KZfe-1dt.js → dist/rcs-web/assets/blockDiagram-GPEHLZMM-fIfab7zF.js} +1 -1
  25. package/dist/rcs-web/assets/{c4Diagram-AAUBKEIU-B0mzOxKG.js → c4Diagram-AAUBKEIU-CZfXwXa1.js} +1 -1
  26. package/dist/rcs-web/assets/channel-BGtRlTca.js +1 -0
  27. package/dist/rcs-web/assets/{chunk-2J33WTMH-Dm5bnN3F.js → chunk-2J33WTMH-b8OaiWft.js} +1 -1
  28. package/dist/rcs-web/assets/{chunk-4BX2VUAB-D4s6TD3B.js → chunk-4BX2VUAB-D3B2lnxT.js} +1 -1
  29. package/dist/rcs-web/assets/{chunk-55IACEB6-DxKvmXly.js → chunk-55IACEB6-Cpmx_iFV.js} +1 -1
  30. package/{packages/remote-control-server/web/dist/assets/chunk-727SXJPM-Cr-D6LQ6.js → dist/rcs-web/assets/chunk-727SXJPM-M4sLpc_k.js} +1 -1
  31. package/{packages/remote-control-server/web/dist/assets/chunk-AQP2D5EJ-DI2_e21Y.js → dist/rcs-web/assets/chunk-AQP2D5EJ-CIA-MGb9.js} +1 -1
  32. package/dist/rcs-web/assets/{chunk-FMBD7UC4-DUPy18CF.js → chunk-FMBD7UC4-CKNzLHmp.js} +1 -1
  33. package/dist/rcs-web/assets/{chunk-ND2GUHAM-Bk6WZP_y.js → chunk-ND2GUHAM-DN0Pnvc3.js} +1 -1
  34. package/dist/rcs-web/assets/{chunk-QZHKN3VN-DauwjXGF.js → chunk-QZHKN3VN-BLV90OZ4.js} +1 -1
  35. package/dist/rcs-web/assets/classDiagram-4FO5ZUOK-BgkYB8h2.js +1 -0
  36. package/dist/rcs-web/assets/classDiagram-v2-Q7XG4LA2-BgkYB8h2.js +1 -0
  37. package/dist/rcs-web/assets/{code-block-IT6T5CEO-BTZXxR5P.js → code-block-IT6T5CEO-YmW1Op0G.js} +1 -1
  38. package/dist/rcs-web/assets/{copy-nuU4lqSF.js → copy-B9nUKyEJ.js} +1 -1
  39. package/{packages/remote-control-server/web/dist/assets/cose-bilkent-S5V4N54A-DpX9JHxm.js → dist/rcs-web/assets/cose-bilkent-S5V4N54A-CcOR8zyS.js} +1 -1
  40. package/dist/rcs-web/assets/{dagre-BM42HDAG-nfHVcSW5.js → dagre-BM42HDAG-L7HbuqzP.js} +1 -1
  41. package/dist/rcs-web/assets/{diagram-2AECGRRQ-SD3VQXzS.js → diagram-2AECGRRQ-l1-ofpMb.js} +1 -1
  42. package/dist/rcs-web/assets/{diagram-5GNKFQAL-Cbc6TJZr.js → diagram-5GNKFQAL-D2K3iWps.js} +1 -1
  43. package/dist/rcs-web/assets/{diagram-KO2AKTUF-DgbsqLrt.js → diagram-KO2AKTUF-CQixgeJD.js} +1 -1
  44. package/dist/rcs-web/assets/{diagram-LMA3HP47-CQRvOl3e.js → diagram-LMA3HP47-Dn_sZo_M.js} +1 -1
  45. package/{packages/remote-control-server/web/dist/assets/diagram-OG6HWLK6-Dw7PxBc0.js → dist/rcs-web/assets/diagram-OG6HWLK6-1pw2POh5.js} +1 -1
  46. package/dist/rcs-web/assets/{dialog-BnYwGN7f.js → dialog-BrV9mMDa.js} +1 -1
  47. package/{packages/remote-control-server/web/dist/assets/erDiagram-TEJ5UH35-BYDhdF85.js → dist/rcs-web/assets/erDiagram-TEJ5UH35-BQQDCBvA.js} +1 -1
  48. package/{packages/remote-control-server/web/dist/assets/flowDiagram-I6XJVG4X-BoX-Rktr.js → dist/rcs-web/assets/flowDiagram-I6XJVG4X-B2kdDyaf.js} +1 -1
  49. package/{packages/remote-control-server/web/dist/assets/ganttDiagram-6RSMTGT7-CGVflxrp.js → dist/rcs-web/assets/ganttDiagram-6RSMTGT7-Bpl3yw8I.js} +1 -1
  50. package/dist/rcs-web/assets/{gitGraphDiagram-PVQCEYII-CDvTRphH.js → gitGraphDiagram-PVQCEYII-D-G0DXPv.js} +1 -1
  51. package/dist/rcs-web/assets/{infoDiagram-5YYISTIA-BPdidON5.js → infoDiagram-5YYISTIA-BZeanrdj.js} +1 -1
  52. package/{packages/remote-control-server/web/dist/assets/ishikawaDiagram-YF4QCWOH-Duq03F91.js → dist/rcs-web/assets/ishikawaDiagram-YF4QCWOH-DnY_nCN3.js} +1 -1
  53. package/{packages/remote-control-server/web/dist/assets/journeyDiagram-JHISSGLW-Dl2LCWzd.js → dist/rcs-web/assets/journeyDiagram-JHISSGLW-CrEsg35t.js} +1 -1
  54. package/{packages/remote-control-server/web/dist/assets/kanban-definition-UN3LZRKU-BcDlHzGd.js → dist/rcs-web/assets/kanban-definition-UN3LZRKU-C13u_rgt.js} +1 -1
  55. package/dist/rcs-web/assets/{linear-BAC9tjKk.js → linear-CvzpbjB-.js} +1 -1
  56. package/dist/rcs-web/assets/{main-D4UrY-Md.js → main-B2Nonos_.js} +3 -3
  57. package/{packages/remote-control-server/web/dist/assets/mermaid-VLURNSYL-DKH74pwH.js → dist/rcs-web/assets/mermaid-VLURNSYL-CTnstEJM.js} +4 -4
  58. package/dist/rcs-web/assets/{mermaid.core-DeXmOLAa.js → mermaid.core-B3yjGcGs.js} +5 -5
  59. package/{packages/remote-control-server/web/dist/assets/mindmap-definition-RKZ34NQL-BeseLVV4.js → dist/rcs-web/assets/mindmap-definition-RKZ34NQL-DAntFhWL.js} +1 -1
  60. package/dist/rcs-web/assets/{notifications-Dy1TLdMd.js → notifications-ohY2H57s.js} +1 -1
  61. package/{packages/remote-control-server/web/dist/assets/pieDiagram-4H26LBE5-DTAlsziT.js → dist/rcs-web/assets/pieDiagram-4H26LBE5-zxkZXG3z.js} +1 -1
  62. package/dist/rcs-web/assets/{quadrantDiagram-W4KKPZXB-DPkdJG6-.js → quadrantDiagram-W4KKPZXB-CcUtZsbh.js} +1 -1
  63. package/dist/rcs-web/assets/{refresh-cw-CDGW_U62.js → refresh-cw-Cgx8H9zR.js} +1 -1
  64. package/{packages/remote-control-server/web/dist/assets/requirementDiagram-4Y6WPE33-BxnovqkB.js → dist/rcs-web/assets/requirementDiagram-4Y6WPE33-CY2QH1gL.js} +1 -1
  65. package/{packages/remote-control-server/web/dist/assets/sankeyDiagram-5OEKKPKP-DRyb3xR-.js → dist/rcs-web/assets/sankeyDiagram-5OEKKPKP-DbcEA3qL.js} +1 -1
  66. package/dist/rcs-web/assets/{sequenceDiagram-3UESZ5HK-BXEXoeax.js → sequenceDiagram-3UESZ5HK-Dqd1vAf1.js} +1 -1
  67. package/{packages/remote-control-server/web/dist/assets/stateDiagram-AJRCARHV-DEc2DNqh.js → dist/rcs-web/assets/stateDiagram-AJRCARHV-B-atzG-h.js} +1 -1
  68. package/dist/rcs-web/assets/{stateDiagram-v2-BHNVJYJU-BtSEOTN_.js → stateDiagram-v2-BHNVJYJU-BNE2glm0.js} +1 -1
  69. package/dist/rcs-web/assets/{timeline-definition-PNZ67QCA-fS3V0gH0.js → timeline-definition-PNZ67QCA-C4O4XjXc.js} +1 -1
  70. package/dist/rcs-web/assets/{vennDiagram-CIIHVFJN-D8oebqKY.js → vennDiagram-CIIHVFJN-C60HcUPn.js} +1 -1
  71. package/{packages/remote-control-server/web/dist/assets/wardleyDiagram-YWT4CUSO-CIO62aPg.js → dist/rcs-web/assets/wardleyDiagram-YWT4CUSO-DwrjdIQB.js} +1 -1
  72. package/dist/rcs-web/assets/{workerType-Bjs5mpVV.js → workerType-DA-wSQX5.js} +1 -1
  73. package/dist/rcs-web/assets/{xychartDiagram-2RQKCTM6-CQ-Hfta3.js → xychartDiagram-2RQKCTM6-B-C8mDsp.js} +1 -1
  74. package/dist/rcs-web/index.html +1 -1
  75. package/package.json +1 -1
  76. package/packages/remote-control-server/web/dist/assets/{AdminPanel-jgwgrsVM.js → AdminPanel-kHOmCjvI.js} +1 -1
  77. package/packages/remote-control-server/web/dist/assets/{ArtifactView-BYrK33ug.js → ArtifactView-DSEwTsDl.js} +1 -1
  78. package/packages/remote-control-server/web/dist/assets/{ArtifactsGallery-CRFsE12L.js → ArtifactsGallery-BBnDfj2k.js} +1 -1
  79. package/{dist/rcs-web/assets/Claim-6emQ-SVR.js → packages/remote-control-server/web/dist/assets/Claim-B2Xu_cvl.js} +1 -1
  80. package/packages/remote-control-server/web/dist/assets/{Dashboard-DBI7CC6n.js → Dashboard-BJqvH4Wh.js} +1 -1
  81. package/packages/remote-control-server/web/dist/assets/{Join-DC_rWotf.js → Join-C3FQBiYX.js} +1 -1
  82. package/{dist/rcs-web/assets/Login-B8gUS3O-.js → packages/remote-control-server/web/dist/assets/Login-DMdqmsTJ.js} +1 -1
  83. package/packages/remote-control-server/web/dist/assets/{MemoriesPage-BsU6Szxn.js → MemoriesPage-CjRfwKDG.js} +1 -1
  84. package/{dist/rcs-web/assets/MemoryTypeChips-CmoLhMX_.js → packages/remote-control-server/web/dist/assets/MemoryTypeChips-DmuM1mnc.js} +1 -1
  85. package/packages/remote-control-server/web/dist/assets/{Register-C8E6Qs1U.js → Register-n4PilsVQ.js} +1 -1
  86. package/packages/remote-control-server/web/dist/assets/{RegisterEmpty-DZsgoKf3.js → RegisterEmpty-X-9vRPKk.js} +1 -1
  87. package/packages/remote-control-server/web/dist/assets/{SessionDetail-B_A6aCRq.js → SessionDetail-CM8lZ9rp.js} +2 -2
  88. package/packages/remote-control-server/web/dist/assets/{SessionVisibilityBadge-DYOhsKVV.js → SessionVisibilityBadge-DuPAMDm1.js} +1 -1
  89. package/packages/remote-control-server/web/dist/assets/{Setup-kURI6wq2.js → Setup-DfGuh7jn.js} +1 -1
  90. package/packages/remote-control-server/web/dist/assets/{ShareLanding-BK4eSvOG.js → ShareLanding-CkVddcMe.js} +1 -1
  91. package/packages/remote-control-server/web/dist/assets/{TeamDetail-EcCza1lF.js → TeamDetail-DuizvSbi.js} +1 -1
  92. package/packages/remote-control-server/web/dist/assets/{TeamList-DAMTHBZt.js → TeamList-BdVZ9Tjt.js} +1 -1
  93. package/packages/remote-control-server/web/dist/assets/{TeamSettings-BcRIGvC4.js → TeamSettings-B8P4jDlV.js} +1 -1
  94. package/packages/remote-control-server/web/dist/assets/{UserSearchInput-BgwNP3Sb.js → UserSearchInput-eNdovFoR.js} +1 -1
  95. package/packages/remote-control-server/web/dist/assets/{UserSettings-NlYkR5UG.js → UserSettings-Bif5fxbq.js} +1 -1
  96. package/packages/remote-control-server/web/dist/assets/{arc-C3mH9Q9f.js → arc-ApDTthsU.js} +1 -1
  97. package/packages/remote-control-server/web/dist/assets/{architectureDiagram-3BPJPVTR-DHjp0FgQ.js → architectureDiagram-3BPJPVTR-bsc4_GGC.js} +1 -1
  98. package/{dist/rcs-web/assets/blockDiagram-GPEHLZMM-KZfe-1dt.js → packages/remote-control-server/web/dist/assets/blockDiagram-GPEHLZMM-fIfab7zF.js} +1 -1
  99. package/packages/remote-control-server/web/dist/assets/{c4Diagram-AAUBKEIU-B0mzOxKG.js → c4Diagram-AAUBKEIU-CZfXwXa1.js} +1 -1
  100. package/packages/remote-control-server/web/dist/assets/channel-BGtRlTca.js +1 -0
  101. package/packages/remote-control-server/web/dist/assets/{chunk-2J33WTMH-Dm5bnN3F.js → chunk-2J33WTMH-b8OaiWft.js} +1 -1
  102. package/packages/remote-control-server/web/dist/assets/{chunk-4BX2VUAB-D4s6TD3B.js → chunk-4BX2VUAB-D3B2lnxT.js} +1 -1
  103. package/packages/remote-control-server/web/dist/assets/{chunk-55IACEB6-DxKvmXly.js → chunk-55IACEB6-Cpmx_iFV.js} +1 -1
  104. package/{dist/rcs-web/assets/chunk-727SXJPM-Cr-D6LQ6.js → packages/remote-control-server/web/dist/assets/chunk-727SXJPM-M4sLpc_k.js} +1 -1
  105. package/{dist/rcs-web/assets/chunk-AQP2D5EJ-DI2_e21Y.js → packages/remote-control-server/web/dist/assets/chunk-AQP2D5EJ-CIA-MGb9.js} +1 -1
  106. package/packages/remote-control-server/web/dist/assets/{chunk-FMBD7UC4-DUPy18CF.js → chunk-FMBD7UC4-CKNzLHmp.js} +1 -1
  107. package/packages/remote-control-server/web/dist/assets/{chunk-ND2GUHAM-Bk6WZP_y.js → chunk-ND2GUHAM-DN0Pnvc3.js} +1 -1
  108. package/packages/remote-control-server/web/dist/assets/{chunk-QZHKN3VN-DauwjXGF.js → chunk-QZHKN3VN-BLV90OZ4.js} +1 -1
  109. package/packages/remote-control-server/web/dist/assets/classDiagram-4FO5ZUOK-BgkYB8h2.js +1 -0
  110. package/packages/remote-control-server/web/dist/assets/classDiagram-v2-Q7XG4LA2-BgkYB8h2.js +1 -0
  111. package/packages/remote-control-server/web/dist/assets/{code-block-IT6T5CEO-BTZXxR5P.js → code-block-IT6T5CEO-YmW1Op0G.js} +1 -1
  112. package/packages/remote-control-server/web/dist/assets/{copy-nuU4lqSF.js → copy-B9nUKyEJ.js} +1 -1
  113. package/{dist/rcs-web/assets/cose-bilkent-S5V4N54A-DpX9JHxm.js → packages/remote-control-server/web/dist/assets/cose-bilkent-S5V4N54A-CcOR8zyS.js} +1 -1
  114. package/packages/remote-control-server/web/dist/assets/{dagre-BM42HDAG-nfHVcSW5.js → dagre-BM42HDAG-L7HbuqzP.js} +1 -1
  115. package/packages/remote-control-server/web/dist/assets/{diagram-2AECGRRQ-SD3VQXzS.js → diagram-2AECGRRQ-l1-ofpMb.js} +1 -1
  116. package/packages/remote-control-server/web/dist/assets/{diagram-5GNKFQAL-Cbc6TJZr.js → diagram-5GNKFQAL-D2K3iWps.js} +1 -1
  117. package/packages/remote-control-server/web/dist/assets/{diagram-KO2AKTUF-DgbsqLrt.js → diagram-KO2AKTUF-CQixgeJD.js} +1 -1
  118. package/packages/remote-control-server/web/dist/assets/{diagram-LMA3HP47-CQRvOl3e.js → diagram-LMA3HP47-Dn_sZo_M.js} +1 -1
  119. package/{dist/rcs-web/assets/diagram-OG6HWLK6-Dw7PxBc0.js → packages/remote-control-server/web/dist/assets/diagram-OG6HWLK6-1pw2POh5.js} +1 -1
  120. package/packages/remote-control-server/web/dist/assets/{dialog-BnYwGN7f.js → dialog-BrV9mMDa.js} +1 -1
  121. package/{dist/rcs-web/assets/erDiagram-TEJ5UH35-BYDhdF85.js → packages/remote-control-server/web/dist/assets/erDiagram-TEJ5UH35-BQQDCBvA.js} +1 -1
  122. package/{dist/rcs-web/assets/flowDiagram-I6XJVG4X-BoX-Rktr.js → packages/remote-control-server/web/dist/assets/flowDiagram-I6XJVG4X-B2kdDyaf.js} +1 -1
  123. package/{dist/rcs-web/assets/ganttDiagram-6RSMTGT7-CGVflxrp.js → packages/remote-control-server/web/dist/assets/ganttDiagram-6RSMTGT7-Bpl3yw8I.js} +1 -1
  124. package/packages/remote-control-server/web/dist/assets/{gitGraphDiagram-PVQCEYII-CDvTRphH.js → gitGraphDiagram-PVQCEYII-D-G0DXPv.js} +1 -1
  125. package/packages/remote-control-server/web/dist/assets/{infoDiagram-5YYISTIA-BPdidON5.js → infoDiagram-5YYISTIA-BZeanrdj.js} +1 -1
  126. package/{dist/rcs-web/assets/ishikawaDiagram-YF4QCWOH-Duq03F91.js → packages/remote-control-server/web/dist/assets/ishikawaDiagram-YF4QCWOH-DnY_nCN3.js} +1 -1
  127. package/{dist/rcs-web/assets/journeyDiagram-JHISSGLW-Dl2LCWzd.js → packages/remote-control-server/web/dist/assets/journeyDiagram-JHISSGLW-CrEsg35t.js} +1 -1
  128. package/{dist/rcs-web/assets/kanban-definition-UN3LZRKU-BcDlHzGd.js → packages/remote-control-server/web/dist/assets/kanban-definition-UN3LZRKU-C13u_rgt.js} +1 -1
  129. package/packages/remote-control-server/web/dist/assets/{linear-BAC9tjKk.js → linear-CvzpbjB-.js} +1 -1
  130. package/packages/remote-control-server/web/dist/assets/{main-D4UrY-Md.js → main-B2Nonos_.js} +3 -3
  131. package/{dist/rcs-web/assets/mermaid-VLURNSYL-DKH74pwH.js → packages/remote-control-server/web/dist/assets/mermaid-VLURNSYL-CTnstEJM.js} +4 -4
  132. package/packages/remote-control-server/web/dist/assets/{mermaid.core-DeXmOLAa.js → mermaid.core-B3yjGcGs.js} +5 -5
  133. package/{dist/rcs-web/assets/mindmap-definition-RKZ34NQL-BeseLVV4.js → packages/remote-control-server/web/dist/assets/mindmap-definition-RKZ34NQL-DAntFhWL.js} +1 -1
  134. package/packages/remote-control-server/web/dist/assets/{notifications-Dy1TLdMd.js → notifications-ohY2H57s.js} +1 -1
  135. package/{dist/rcs-web/assets/pieDiagram-4H26LBE5-DTAlsziT.js → packages/remote-control-server/web/dist/assets/pieDiagram-4H26LBE5-zxkZXG3z.js} +1 -1
  136. package/packages/remote-control-server/web/dist/assets/{quadrantDiagram-W4KKPZXB-DPkdJG6-.js → quadrantDiagram-W4KKPZXB-CcUtZsbh.js} +1 -1
  137. package/packages/remote-control-server/web/dist/assets/{refresh-cw-CDGW_U62.js → refresh-cw-Cgx8H9zR.js} +1 -1
  138. package/{dist/rcs-web/assets/requirementDiagram-4Y6WPE33-BxnovqkB.js → packages/remote-control-server/web/dist/assets/requirementDiagram-4Y6WPE33-CY2QH1gL.js} +1 -1
  139. package/{dist/rcs-web/assets/sankeyDiagram-5OEKKPKP-DRyb3xR-.js → packages/remote-control-server/web/dist/assets/sankeyDiagram-5OEKKPKP-DbcEA3qL.js} +1 -1
  140. package/packages/remote-control-server/web/dist/assets/{sequenceDiagram-3UESZ5HK-BXEXoeax.js → sequenceDiagram-3UESZ5HK-Dqd1vAf1.js} +1 -1
  141. package/{dist/rcs-web/assets/stateDiagram-AJRCARHV-DEc2DNqh.js → packages/remote-control-server/web/dist/assets/stateDiagram-AJRCARHV-B-atzG-h.js} +1 -1
  142. package/packages/remote-control-server/web/dist/assets/{stateDiagram-v2-BHNVJYJU-BtSEOTN_.js → stateDiagram-v2-BHNVJYJU-BNE2glm0.js} +1 -1
  143. package/packages/remote-control-server/web/dist/assets/{timeline-definition-PNZ67QCA-fS3V0gH0.js → timeline-definition-PNZ67QCA-C4O4XjXc.js} +1 -1
  144. package/packages/remote-control-server/web/dist/assets/{vennDiagram-CIIHVFJN-D8oebqKY.js → vennDiagram-CIIHVFJN-C60HcUPn.js} +1 -1
  145. package/{dist/rcs-web/assets/wardleyDiagram-YWT4CUSO-CIO62aPg.js → packages/remote-control-server/web/dist/assets/wardleyDiagram-YWT4CUSO-DwrjdIQB.js} +1 -1
  146. package/packages/remote-control-server/web/dist/assets/{workerType-Bjs5mpVV.js → workerType-DA-wSQX5.js} +1 -1
  147. package/packages/remote-control-server/web/dist/assets/{xychartDiagram-2RQKCTM6-CQ-Hfta3.js → xychartDiagram-2RQKCTM6-B-C8mDsp.js} +1 -1
  148. package/packages/remote-control-server/web/dist/index.html +1 -1
  149. package/dist/rcs-web/assets/channel-CGvAbTqs.js +0 -1
  150. package/dist/rcs-web/assets/classDiagram-4FO5ZUOK-BydJAcJO.js +0 -1
  151. package/dist/rcs-web/assets/classDiagram-v2-Q7XG4LA2-BydJAcJO.js +0 -1
  152. package/packages/remote-control-server/web/dist/assets/channel-CGvAbTqs.js +0 -1
  153. package/packages/remote-control-server/web/dist/assets/classDiagram-4FO5ZUOK-BydJAcJO.js +0 -1
  154. package/packages/remote-control-server/web/dist/assets/classDiagram-v2-Q7XG4LA2-BydJAcJO.js +0 -1
@@ -1,4 +1,4 @@
1
- import{b as c,aD as te,a4 as W,a$ as fe,ak as ye,an as be,aQ as me,b6 as ke,S as Y,aZ as G,aC as Ee,J as _e,au as Se,az as le,L as ce}from"./mermaid.core-DeXmOLAa.js";import{g as Ne}from"./chunk-FMBD7UC4-DUPy18CF.js";import"./preload-helper-BiaRt2Oj.js";import"./vendor-DE_-CLIE.js";import"./mermaid-VLURNSYL-DKH74pwH.js";import"./main-D4UrY-Md.js";import"./motion-BILbV7YQ.js";import"./shiki-ChKhlm5h.js";var $=(function(){var t=c(function(k,s,n,a){for(n=n||{},a=k.length;a--;n[k[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],E=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],M=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],U=[1,35],j=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:M}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(P,[2,14],{7:U,11:j}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:M}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:U,11:j}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);m.setInput(s,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;e.push(Q);var de=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var _,R,v,Z,F={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((_===null||typeof _>"u")&&(_=ae()),v=B[R]&&B[R][_]),typeof v>"u"||!v.length||!v[0]){var q="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");m.showPosition?q="Parse error on line "+(z+1)+`:
1
+ import{b as c,aD as te,a4 as W,a$ as fe,ak as ye,an as be,aQ as me,b6 as ke,S as Y,aZ as G,aC as Ee,J as _e,au as Se,az as le,L as ce}from"./mermaid.core-B3yjGcGs.js";import{g as Ne}from"./chunk-FMBD7UC4-CKNzLHmp.js";import"./preload-helper-BiaRt2Oj.js";import"./vendor-DE_-CLIE.js";import"./mermaid-VLURNSYL-CTnstEJM.js";import"./main-B2Nonos_.js";import"./motion-BILbV7YQ.js";import"./shiki-ChKhlm5h.js";var $=(function(){var t=c(function(k,s,n,a){for(n=n||{},a=k.length;a--;n[k[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],E=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],M=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],U=[1,35],j=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:M}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(P,[2,14],{7:U,11:j}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:M}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:U,11:j}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);m.setInput(s,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;e.push(Q);var de=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var _,R,v,Z,F={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((_===null||typeof _>"u")&&(_=ae()),v=B[R]&&B[R][_]),typeof v>"u"||!v.length||!v[0]){var q="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");m.showPosition?q="Parse error on line "+(z+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+K.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(z+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:m.match,token:this.terminals_[_]||_,line:m.yylineno,loc:Q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+_);switch(v[0]){case 1:a.push(_),u.push(m.yytext),e.push(m.yylloc),a.push(v[1]),_=null,ie=m.yyleng,l=m.yytext,z=m.yylineno,Q=m.yylloc;break;case 2:if(I=this.productions_[v[1]][1],F.$=u[u.length-I],F._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(F._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Z=this.performAction.apply(F,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Z<"u")return Z;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},y=(function(){var k={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{G as j,ar as p,x as w,as as k,at as q}from"./mermaid.core-DeXmOLAa.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as g,b as F,a as x,f as z}from"./defaultLocale-CrowFXzY.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function B(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===B?n:I,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function I(){return 0}function P(n){return n===null?NaN:+n}const V=R(M),$=V.right;R(P).center;const G=Math.sqrt(50),O=Math.sqrt(10),T=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=G?10:f>=O?5:f>=T?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function C(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function E(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=d(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=d(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function d(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=N(u,e),f=t(a,f)):(e=N(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=N(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=$(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=d,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=E(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),x(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return z(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return C(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,E as t};
1
+ import{G as j,ar as p,x as w,as as k,at as q}from"./mermaid.core-B3yjGcGs.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as g,b as F,a as x,f as z}from"./defaultLocale-CrowFXzY.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function B(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===B?n:I,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function I(){return 0}function P(n){return n===null?NaN:+n}const V=R(M),$=V.right;R(P).center;const G=Math.sqrt(50),O=Math.sqrt(10),T=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=G?10:f>=O?5:f>=T?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function C(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function E(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=d(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=d(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function d(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=N(u,e),f=t(a,f)):(e=N(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=N(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=$(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=d,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=E(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),x(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return z(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return C(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,E as t};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-VLURNSYL-DKH74pwH.js","assets/preload-helper-BiaRt2Oj.js","assets/vendor-DE_-CLIE.js","assets/shiki-ChKhlm5h.js","assets/Dashboard-DBI7CC6n.js","assets/RegisterEmpty-DZsgoKf3.js","assets/workerType-Bjs5mpVV.js","assets/SessionVisibilityBadge-DYOhsKVV.js","assets/dialog-BnYwGN7f.js","assets/motion-BILbV7YQ.js","assets/SessionDetail-B_A6aCRq.js","assets/refresh-cw-CDGW_U62.js","assets/UserSearchInput-BgwNP3Sb.js","assets/copy-nuU4lqSF.js","assets/ArtifactsGallery-CRFsE12L.js","assets/MemoryTypeChips-CmoLhMX_.js","assets/notifications-Dy1TLdMd.js","assets/ShareLanding-BK4eSvOG.js","assets/ArtifactView-BYrK33ug.js","assets/MemoriesPage-BsU6Szxn.js","assets/Claim-6emQ-SVR.js","assets/Login-B8gUS3O-.js","assets/Register-C8E6Qs1U.js","assets/Setup-kURI6wq2.js","assets/Join-DC_rWotf.js","assets/UserSettings-NlYkR5UG.js","assets/TeamList-DAMTHBZt.js","assets/TeamDetail-EcCza1lF.js","assets/TeamSettings-BcRIGvC4.js","assets/AdminPanel-jgwgrsVM.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-VLURNSYL-CTnstEJM.js","assets/preload-helper-BiaRt2Oj.js","assets/vendor-DE_-CLIE.js","assets/shiki-ChKhlm5h.js","assets/Dashboard-BJqvH4Wh.js","assets/RegisterEmpty-X-9vRPKk.js","assets/workerType-DA-wSQX5.js","assets/SessionVisibilityBadge-DuPAMDm1.js","assets/dialog-BrV9mMDa.js","assets/motion-BILbV7YQ.js","assets/SessionDetail-CM8lZ9rp.js","assets/refresh-cw-Cgx8H9zR.js","assets/UserSearchInput-eNdovFoR.js","assets/copy-B9nUKyEJ.js","assets/ArtifactsGallery-BBnDfj2k.js","assets/MemoryTypeChips-DmuM1mnc.js","assets/notifications-ohY2H57s.js","assets/ShareLanding-CkVddcMe.js","assets/ArtifactView-DSEwTsDl.js","assets/MemoriesPage-CjRfwKDG.js","assets/Claim-B2Xu_cvl.js","assets/Login-DMdqmsTJ.js","assets/Register-n4PilsVQ.js","assets/Setup-DfGuh7jn.js","assets/Join-C3FQBiYX.js","assets/UserSettings-Bif5fxbq.js","assets/TeamList-BdVZ9Tjt.js","assets/TeamDetail-DuizvSbi.js","assets/TeamSettings-B8P4jDlV.js","assets/AdminPanel-kHOmCjvI.js"])))=>i.map(i=>d[i]);
2
2
  var Fc=Object.defineProperty;var $c=(e,t,n)=>t in e?Fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var se=(e,t,n)=>$c(e,typeof t!="symbol"?t+"":t,n);import{e as p,a as mt,j as d,R as us,r as da,b as Uc,c as fs,d as zc}from"./vendor-DE_-CLIE.js";import{_ as Me}from"./preload-helper-BiaRt2Oj.js";import{m as Hc}from"./motion-BILbV7YQ.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function ua(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ua(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function fa(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ua(e))&&(s&&(s+=" "),s+=t);return s}const Bc=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},Wc=(e,t)=>({classGroupId:e,validator:t}),ma=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),zn="-",eo=[],Gc="arbitrary..",Vc=e=>{const t=Kc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return qc(a);const i=a.split(zn),m=i[0]===""&&i.length>1?1:0;return pa(i,m,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const m=s[a],f=n[a];return m?f?Bc(f,m):m:f||eo}return n[a]||eo}}},pa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const f=pa(e,t+1,o);if(f)return f}const a=n.validators;if(a===null)return;const i=t===0?e.join(zn):e.slice(t).join(zn),m=a.length;for(let f=0;f<m;f++){const l=a[f];if(l.validator(i))return l.classGroupId}},qc=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?Gc+s:void 0})(),Kc=e=>{const{theme:t,classGroups:n}=e;return Yc(n,t)},Yc=(e,t)=>{const n=ma();for(const s in e){const r=e[s];ms(r,n,s,t)}return n},ms=(e,t,n,s)=>{const r=e.length;for(let o=0;o<r;o++){const a=e[o];Xc(a,t,n,s)}},Xc=(e,t,n,s)=>{if(typeof e=="string"){Qc(e,t,n);return}if(typeof e=="function"){Jc(e,t,n,s);return}Zc(e,t,n,s)},Qc=(e,t,n)=>{const s=e===""?t:ha(t,e);s.classGroupId=n},Jc=(e,t,n,s)=>{if(ed(e)){ms(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Wc(n,e))},Zc=(e,t,n,s)=>{const r=Object.entries(e),o=r.length;for(let a=0;a<o;a++){const[i,m]=r[a];ms(m,ha(t,i),n,s)}},ha=(e,t)=>{let n=e;const s=t.split(zn),r=s.length;for(let o=0;o<r;o++){const a=s[o];let i=n.nextPart.get(a);i||(i=ma(),n.nextPart.set(a,i)),n=i}return n},ed=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,td=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const r=(o,a)=>{n[o]=a,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=s[o])!==void 0)return r(o,a),a},set(o,a){o in n?n[o]=a:r(o,a)}}},Hr="!",to=":",nd=[],no=(e,t,n,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:r}),rd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=r=>{const o=[];let a=0,i=0,m=0,f;const l=r.length;for(let v=0;v<l;v++){const w=r[v];if(a===0&&i===0){if(w===to){o.push(r.slice(m,v)),m=v+1;continue}if(w==="/"){f=v;continue}}w==="["?a++:w==="]"?a--:w==="("?i++:w===")"&&i--}const c=o.length===0?r:r.slice(m);let u=c,h=!1;c.endsWith(Hr)?(u=c.slice(0,-1),h=!0):c.startsWith(Hr)&&(u=c.slice(1),h=!0);const b=f&&f>m?f-m:void 0;return no(o,h,u,b)};if(t){const r=t+to,o=s;s=a=>a.startsWith(r)?o(a.slice(r.length)):no(nd,!1,a,void 0,!0)}if(n){const r=s;s=o=>n({className:o,parseClassName:r})}return s},sd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let r=[];for(let o=0;o<n.length;o++){const a=n[o],i=a[0]==="[",m=t.has(a);i||m?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(a)):r.push(a)}return r.length>0&&(r.sort(),s.push(...r)),s}},od=e=>({cache:td(e.cacheSize),parseClassName:rd(e),sortModifiers:sd(e),postfixLookupClassGroupIds:ad(e),...Vc(e)}),ad=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let s=0;s<n.length;s++)t[n[s]]=!0;return t},id=/\s+/,ld=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o,postfixLookupClassGroupIds:a}=t,i=[],m=e.trim().split(id);let f="";for(let l=m.length-1;l>=0;l-=1){const c=m[l],{isExternal:u,modifiers:h,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:w}=n(c);if(u){f=c+(f.length>0?" "+f:f);continue}let y=!!w,T;if(y){const _=v.substring(0,w);T=s(_);const g=T&&a[T]?s(v):void 0;g&&g!==T&&(T=g,y=!1)}else T=s(v);if(!T){if(!y){f=c+(f.length>0?" "+f:f);continue}if(T=s(v),!T){f=c+(f.length>0?" "+f:f);continue}y=!1}const A=h.length===0?"":h.length===1?h[0]:o(h).join(":"),k=b?A+Hr:A,O=k+T;if(i.indexOf(O)>-1)continue;i.push(O);const E=r(T,y);for(let _=0;_<E.length;++_){const g=E[_];i.push(k+g)}f=c+(f.length>0?" "+f:f)}return f},cd=(...e)=>{let t=0,n,s,r="";for(;t<e.length;)(n=e[t++])&&(s=ga(n))&&(r&&(r+=" "),r+=s);return r},ga=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=ga(e[s]))&&(n&&(n+=" "),n+=t);return n},dd=(e,...t)=>{let n,s,r,o;const a=m=>{const f=t.reduce((l,c)=>c(l),e());return n=od(f),s=n.cache.get,r=n.cache.set,o=i,i(m)},i=m=>{const f=s(m);if(f)return f;const l=ld(m,n);return r(m,l),l};return o=a,(...m)=>o(cd(...m))},ud=[],Te=e=>{const t=n=>n[e]||ud;return t.isThemeGetter=!0,t},ba=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,md=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=e=>fd.test(e),ie=e=>!!e&&!Number.isNaN(Number(e)),Ke=e=>!!e&&Number.isInteger(Number(e)),yr=e=>e.endsWith("%")&&ie(e.slice(0,-1)),nt=e=>md.test(e),ya=()=>!0,xd=e=>pd.test(e)&&!hd.test(e),ps=()=>!1,yd=e=>gd.test(e),vd=e=>bd.test(e),wd=e=>!J(e)&&!Z(e),Sd=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Cd=e=>vt(e,Sa,ps),J=e=>ba.test(e),Et=e=>vt(e,Ca,xd),ro=e=>vt(e,Md,ie),kd=e=>vt(e,Ea,ya),Ed=e=>vt(e,ka,ps),so=e=>vt(e,va,ps),Ad=e=>vt(e,wa,vd),_n=e=>vt(e,Aa,yd),Z=e=>xa.test(e),on=e=>It(e,Ca),Td=e=>It(e,ka),oo=e=>It(e,va),_d=e=>It(e,Sa),Rd=e=>It(e,wa),Rn=e=>It(e,Aa,!0),jd=e=>It(e,Ea,!0),vt=(e,t,n)=>{const s=ba.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},It=(e,t,n=!1)=>{const s=xa.exec(e);return s?s[1]?t(s[1]):n:!1},va=e=>e==="position"||e==="percentage",wa=e=>e==="image"||e==="url",Sa=e=>e==="length"||e==="size"||e==="bg-size",Ca=e=>e==="length",Md=e=>e==="number",ka=e=>e==="family-name",Ea=e=>e==="number"||e==="weight",Aa=e=>e==="shadow",Nd=()=>{const e=Te("color"),t=Te("font"),n=Te("text"),s=Te("font-weight"),r=Te("tracking"),o=Te("leading"),a=Te("breakpoint"),i=Te("container"),m=Te("spacing"),f=Te("radius"),l=Te("shadow"),c=Te("inset-shadow"),u=Te("text-shadow"),h=Te("drop-shadow"),b=Te("blur"),v=Te("perspective"),w=Te("aspect"),y=Te("ease"),T=Te("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...k(),Z,J],E=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],g=()=>[Z,J,m],x=()=>[ft,"full","auto",...g()],j=()=>[Ke,"none","subgrid",Z,J],I=()=>["auto",{span:["full",Ke,Z,J]},Ke,Z,J],D=()=>[Ke,"auto",Z,J],F=()=>["auto","min","max","fr",Z,J],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...g()],S=()=>[ft,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],H=()=>[ft,"screen","full","dvw","lvw","svw","min","max","fit",...g()],P=()=>[ft,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],U=()=>[e,Z,J],Y=()=>[...k(),oo,so,{position:[Z,J]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",_d,Cd,{size:[Z,J]}],$=()=>[yr,on,Et],R=()=>["","none","full",f,Z,J],B=()=>["",ie,on,Et],V=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[ie,yr,oo,so],oe=()=>["","none",b,Z,J],ee=()=>["none",ie,Z,J],re=()=>["none",ie,Z,J],ce=()=>[ie,Z,J],ve=()=>[ft,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[nt],breakpoint:[nt],color:[ya],container:[nt],"drop-shadow":[nt],ease:["in","out","in-out"],font:[wd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[nt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[nt],shadow:[nt],spacing:["px",ie],text:[nt],"text-shadow":[nt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ft,J,Z,w]}],container:["container"],"container-type":[{"@container":["","normal","size",Z,J]}],"container-named":[Sd],columns:[{columns:[ie,J,Z,i]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Ke,"auto",Z,J]}],basis:[{basis:[ft,"full","auto",i,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ie,ft,"auto","initial","none",J]}],grow:[{grow:["",ie,Z,J]}],shrink:[{shrink:["",ie,Z,J]}],order:[{order:[Ke,"first","last","none",Z,J]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pbs:[{pbs:g()}],pbe:[{pbe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mbs:[{mbs:C()}],mbe:[{mbe:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],"inline-size":[{inline:["auto",...H()]}],"min-inline-size":[{"min-inline":["auto",...H()]}],"max-inline-size":[{"max-inline":["none",...H()]}],"block-size":[{block:["auto",...P()]}],"min-block-size":[{"min-block":["auto",...P()]}],"max-block-size":[{"max-block":["none",...P()]}],w:[{w:[i,"screen",...S()]}],"min-w":[{"min-w":[i,"screen","none",...S()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,on,Et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,jd,kd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yr,J]}],"font-family":[{font:[Td,Ed,t]}],"font-features":[{"font-features":[J]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Z,J]}],"line-clamp":[{"line-clamp":[ie,"none",Z,ro]}],leading:[{leading:[o,...g()]}],"list-image":[{"list-image":["none",Z,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[ie,"from-font","auto",Z,Et]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[ie,"auto",Z,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"tab-size":[{tab:[Ke,Z,J]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ke,Z,J],radial:["",Z,J],conic:[Ke,Z,J]},Rd,Ad]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-bs":[{"border-bs":U()}],"border-color-be":[{"border-be":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ie,Z,J]}],"outline-w":[{outline:["",ie,on,Et]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",l,Rn,_n]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",c,Rn,_n]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[ie,Et]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",u,Rn,_n]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[ie,Z,J]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[Z,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,J]}],filter:[{filter:["","none",Z,J]}],blur:[{blur:oe()}],brightness:[{brightness:[ie,Z,J]}],contrast:[{contrast:[ie,Z,J]}],"drop-shadow":[{"drop-shadow":["","none",h,Rn,_n]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",ie,Z,J]}],"hue-rotate":[{"hue-rotate":[ie,Z,J]}],invert:[{invert:["",ie,Z,J]}],saturate:[{saturate:[ie,Z,J]}],sepia:[{sepia:["",ie,Z,J]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,J]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[ie,Z,J]}],"backdrop-contrast":[{"backdrop-contrast":[ie,Z,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ie,Z,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ie,Z,J]}],"backdrop-invert":[{"backdrop-invert":["",ie,Z,J]}],"backdrop-opacity":[{"backdrop-opacity":[ie,Z,J]}],"backdrop-saturate":[{"backdrop-saturate":[ie,Z,J]}],"backdrop-sepia":[{"backdrop-sepia":["",ie,Z,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ie,"initial",Z,J]}],ease:[{ease:["linear","initial",y,Z,J]}],delay:[{delay:[ie,Z,J]}],animate:[{animate:["none",T,Z,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Z,J]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[Z,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],zoom:[{zoom:[Ke,Z,J]}],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z,J]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":U()}],"scrollbar-track-color":[{"scrollbar-track":U()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mbs":[{"scroll-mbs":g()}],"scroll-mbe":[{"scroll-mbe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pbs":[{"scroll-pbs":g()}],"scroll-pbe":[{"scroll-pbe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z,J]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[ie,on,Et,ro]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Pd=dd(Nd);function Q(...e){return Pd(fa(e))}function Id(e){if(!e)return"";const t=String(e),n=document.createElement("div");return n.textContent=t,n.innerHTML}function ov(e){return e?new Date(e*1e3).toLocaleString():""}function av(e){return e==="archived"||e==="inactive"}function iv(e,t){if(!e)return"";const n=String(e);return n.length>t?n.slice(0,t)+"...":n}function Dd(e){e[6]=e[6]&15|64,e[8]=e[8]&63|128;const t=Array.from(e,n=>n.toString(16).padStart(2,"0"));return[t.slice(0,4).join(""),t.slice(4,6).join(""),t.slice(6,8).join(""),t.slice(8,10).join(""),t.slice(10,16).join("")].join("-")}function lv(){const e=globalThis.crypto;if(e&&typeof e.randomUUID=="function")return e.randomUUID();if(!e||typeof e.getRandomValues!="function")throw new Error("crypto.getRandomValues is required to generate message UUIDs");const t=new Uint8Array(16);return e.getRandomValues(t),Dd(t)}function cv(e){if(!e||typeof e!="object")return!1;if(e.status==="conversation_cleared")return!0;const t=e.raw;return!!t&&typeof t=="object"&&t.status==="conversation_cleared"}const Od=/^Remote Control connecting(?:…|\.\.\.)$/;function dv(e){return typeof e=="string"&&Od.test(e.trim())}/**
3
3
  * @license lucide-react v0.555.0 - ISC
4
4
  *
@@ -351,7 +351,7 @@ ${e.outputText}`;default:return""}}function Jv(e,t){const n=t.trim();if(!n)retur
351
351
  5e:0.5 5c:0.5 5e:0.5 5g:0.5 | 5e:2 r:1 |
352
352
  4a:0.5 4a:0.5 4a:0.5 5d:1 | 5f:0.5 5f:0.5 5f:0.5 5a:1 |
353
353
  5f:0.5 5d:0.5 5f:0.5 5a:0.5 | 6d:2 r:0.5 5a:0.5 |
354
- 5g:0.5 5e:0.5 5c:0.5 5e:0.5 | 5g:2 5e:0.5 5c:0.5 | 4g:2 r:2`,{name:"William Tell Overture",bpm:144,key:"E major"}),ns=[Jg,Lg,Vg,Hg,Dg,Qg,qg,Zg,Rg,Ug,Kg,Xg,Yg,$g,Ng,Gg,zg,Og,jg,Mg,Wg,Bg,Ig,Pg,Fg,e0];new Map(ns.map(e=>[e.name,e]));function t0(e=Math.random){const t=ns[Math.floor(e()*ns.length)];if(t===void 0)throw new Error("CLASSIC_SCORES is empty");return t}function n0(){return t0(Math.random)}function r0(e,t){return Cg(e,Math.floor(t/kg(e.bpm)))}function s0(e){return`${e.name}, ${Ag(e)}`}function o0(e){return`rgb(${e.r}, ${e.g}, ${e.b})`}function a0({score:e,stalled:t=!1,className:n}){const s=Sl(!0),r=bg(),o=Q("live-glyph inline-flex w-[0.6em] shrink-0 justify-center leading-none",t&&"live-glyph--stalled",n);if(r)return d.jsx("span",{"aria-hidden":"true",className:o,children:"●"});const a=r0(e,s);return d.jsx("span",{"aria-hidden":"true",className:o,children:d.jsx("span",{className:"live-note",style:t?void 0:{color:o0(a.color)},children:a.char})})}function i0({text:e,stalled:t=!1,className:n}){return d.jsx("span",{className:Q("live-word",t&&"live-word--stalled",n),children:e})}function Cl({active:e,since:t,className:n}){const s=xg(e,t);return!e||s<1?null:d.jsxs("span",{"aria-hidden":"true",className:Q("font-mono text-[10px] tabular-nums text-text-muted",n),children:[s,"s"]})}function l0({stalled:e=!1,since:t,className:n}){const[s]=p.useState(()=>n0());return d.jsxs("div",{className:Q("flex items-center gap-2 pt-1.5 font-display min-h-8",n),children:[d.jsx(a0,{score:s,stalled:e,className:"text-base text-brand"}),d.jsxs("span",{role:"status",className:"text-sm font-medium",children:[d.jsxs("span",{className:"sr-only",children:[G("chat.live.working")," · "]}),d.jsx(i0,{text:s0(s),stalled:e})]}),d.jsx(Cl,{active:!0,since:t,className:"self-center"})]})}var c0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wt=c0.reduce((e,t)=>{const n=Ua(`Primitive.${t}`),s=p.forwardRef((r,o)=>{const{asChild:a,...i}=r,m=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(m,{...i,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),d0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u0="VisuallyHidden",kl=p.forwardRef((e,t)=>d.jsx(be.span,{...e,ref:t,style:{...d0,...e.style}}));kl.displayName=u0;var f0=kl,[fr]=it("Tooltip",[tn]),mr=tn(),El="TooltipProvider",m0=700,rs="tooltip.open",[p0,Us]=fr(El),Al=e=>{const{__scopeTooltip:t,delayDuration:n=m0,skipDelayDuration:s=300,disableHoverableContent:r=!1,children:o}=e,a=p.useRef(!0),i=p.useRef(!1),m=p.useRef(0);return p.useEffect(()=>{const f=m.current;return()=>window.clearTimeout(f)},[]),d.jsx(p0,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(m.current),a.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>a.current=!0,s)},[s]),isPointerInTransitRef:i,onPointerInTransitChange:p.useCallback(f=>{i.current=f},[]),disableHoverableContent:r,children:o})};Al.displayName=El;var mn="Tooltip",[h0,kn]=fr(mn),Tl=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:r,onOpenChange:o,disableHoverableContent:a,delayDuration:i}=e,m=Us(mn,e.__scopeTooltip),f=mr(t),[l,c]=p.useState(null),u=De(),h=p.useRef(0),b=a??m.disableHoverableContent,v=i??m.delayDuration,w=p.useRef(!1),[y,T]=gt({prop:s,defaultProp:r??!1,onChange:_=>{_?(m.onOpen(),document.dispatchEvent(new CustomEvent(rs))):m.onClose(),o==null||o(_)},caller:mn}),A=p.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),k=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w.current=!1,T(!0)},[T]),O=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,T(!1)},[T]),E=p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{w.current=!0,T(!0),h.current=0},v)},[v,T]);return p.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(As,{...f,children:d.jsx(h0,{scope:t,contentId:u,open:y,stateAttribute:A,trigger:l,onTriggerChange:c,onTriggerEnter:p.useCallback(()=>{m.isOpenDelayedRef.current?E():k()},[m.isOpenDelayedRef,E,k]),onTriggerLeave:p.useCallback(()=>{b?O():(window.clearTimeout(h.current),h.current=0)},[O,b]),onOpen:k,onClose:O,disableHoverableContent:b,children:n})})};Tl.displayName=mn;var ss="TooltipTrigger",_l=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,r=kn(ss,n),o=Us(ss,n),a=mr(n),i=p.useRef(null),m=Ae(t,i,r.onTriggerChange),f=p.useRef(!1),l=p.useRef(!1),c=p.useCallback(()=>f.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),d.jsx(ir,{asChild:!0,...a,children:d.jsx(be.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...s,ref:m,onPointerMove:ne(e.onPointerMove,u=>{u.pointerType!=="touch"&&!l.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),l.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{r.onTriggerLeave(),l.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{r.open&&r.onClose(),f.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:ne(e.onFocus,()=>{f.current||r.onOpen()}),onBlur:ne(e.onBlur,r.onClose),onClick:ne(e.onClick,r.onClose)})})});_l.displayName=ss;var zs="TooltipPortal",[g0,b0]=fr(zs,{forceMount:void 0}),Rl=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:r}=e,o=kn(zs,t);return d.jsx(g0,{scope:t,forceMount:n,children:d.jsx(ze,{present:n||o.open,children:d.jsx(vn,{asChild:!0,container:r,children:s})})})};Rl.displayName=zs;var Qt="TooltipContent",jl=p.forwardRef((e,t)=>{const n=b0(Qt,e.__scopeTooltip),{forceMount:s=n.forceMount,side:r="top",...o}=e,a=kn(Qt,e.__scopeTooltip);return d.jsx(ze,{present:s||a.open,children:a.disableHoverableContent?d.jsx(Ml,{side:r,...o,ref:t}):d.jsx(x0,{side:r,...o,ref:t})})}),x0=p.forwardRef((e,t)=>{const n=kn(Qt,e.__scopeTooltip),s=Us(Qt,e.__scopeTooltip),r=p.useRef(null),o=Ae(t,r),[a,i]=p.useState(null),{trigger:m,onClose:f}=n,l=r.current,{onPointerInTransitChange:c}=s,u=p.useCallback(()=>{i(null),c(!1)},[c]),h=p.useCallback((b,v)=>{const w=b.currentTarget,y={x:b.clientX,y:b.clientY},T=S0(y,w.getBoundingClientRect()),A=C0(y,T),k=k0(v.getBoundingClientRect()),O=A0([...A,...k]);i(O),c(!0)},[c]);return p.useEffect(()=>()=>u(),[u]),p.useEffect(()=>{if(m&&l){const b=w=>h(w,l),v=w=>h(w,m);return m.addEventListener("pointerleave",b),l.addEventListener("pointerleave",v),()=>{m.removeEventListener("pointerleave",b),l.removeEventListener("pointerleave",v)}}},[m,l,h,u]),p.useEffect(()=>{if(a){const b=v=>{const w=v.target,y={x:v.clientX,y:v.clientY},T=(m==null?void 0:m.contains(w))||(l==null?void 0:l.contains(w)),A=!E0(y,a);T?u():A&&(u(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[m,l,a,f,u]),d.jsx(Ml,{...e,ref:o})}),[y0,v0]=fr(mn,{isInside:!1}),w0=pf("TooltipContent"),Ml=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:a,...i}=e,m=kn(Qt,n),f=mr(n),{onClose:l}=m;return p.useEffect(()=>(document.addEventListener(rs,l),()=>document.removeEventListener(rs,l)),[l]),p.useEffect(()=>{if(m.trigger){const c=u=>{const h=u.target;h!=null&&h.contains(m.trigger)&&l()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[m.trigger,l]),d.jsx(xn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c=>c.preventDefault(),onDismiss:l,children:d.jsxs(Ts,{"data-state":m.stateAttribute,...f,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(w0,{children:s}),d.jsx(y0,{scope:n,isInside:!0,children:d.jsx(f0,{id:m.contentId,role:"tooltip",children:r||s})})]})})});jl.displayName=Qt;var Nl="TooltipArrow",Pl=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,r=mr(n);return v0(Nl,n).isInside?null:d.jsx(_s,{...r,...s,ref:t})});Pl.displayName=Nl;function S0(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,s,r,o)){case o:return"left";case r:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function C0(e,t,n=5){const s=[];switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function k0(e){const{top:t,right:n,bottom:s,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:s},{x:r,y:s}]}function E0(e,t){const{x:n,y:s}=e;let r=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const i=t[o],m=t[a],f=i.x,l=i.y,c=m.x,u=m.y;l>s!=u>s&&n<(c-f)*(s-l)/(u-l)+f&&(r=!r)}return r}function A0(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),T0(t)}function T0(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const r=e[s];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const r=e[s];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var _0=Al,R0=Tl,j0=_l,M0=Rl,N0=jl,P0=Pl;function I0({delayDuration:e=0,...t}){return d.jsx(_0,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function D0({...e}){return d.jsx(I0,{children:d.jsx(R0,{"data-slot":"tooltip",...e})})}function O0({...e}){return d.jsx(j0,{"data-slot":"tooltip-trigger",...e})}function L0({className:e,sideOffset:t=0,children:n,...s}){return d.jsx(M0,{children:d.jsxs(N0,{"data-slot":"tooltip-content",sideOffset:t,className:Q("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...s,children:[n,d.jsx(P0,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const F0=p.lazy(()=>Me(()=>import("./mermaid-VLURNSYL-DKH74pwH.js").then(e=>e.i),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.Streamdown})));p.createContext(null);const Hs=p.memo(({className:e,children:t,...n})=>d.jsx(p.Suspense,{fallback:d.jsx("div",{className:Q("whitespace-pre-wrap break-words",e),children:t}),children:d.jsx(F0,{className:Q("size-full break-words [overflow-wrap:anywhere] [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...n,children:t})}),(e,t)=>e.children===t.children);Hs.displayName="MessageResponse";var pr="Collapsible",[$0]=it(pr),[U0,Bs]=$0(pr),Il=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:r,disabled:o,onOpenChange:a,...i}=e,[m,f]=gt({prop:s,defaultProp:r??!1,onChange:a,caller:pr});return d.jsx(U0,{scope:n,disabled:o,contentId:De(),open:m,onOpenToggle:p.useCallback(()=>f(l=>!l),[f]),children:d.jsx(be.div,{"data-state":Gs(m),"data-disabled":o?"":void 0,...i,ref:t})})});Il.displayName=pr;var Dl="CollapsibleTrigger",Ol=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,r=Bs(Dl,n);return d.jsx(be.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Gs(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...s,ref:t,onClick:ne(e.onClick,r.onOpenToggle)})});Ol.displayName=Dl;var Ws="CollapsibleContent",Ll=p.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Bs(Ws,e.__scopeCollapsible);return d.jsx(ze,{present:n||r.open,children:({present:o})=>d.jsx(z0,{...s,ref:t,present:o})})});Ll.displayName=Ws;var z0=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:r,...o}=e,a=Bs(Ws,n),[i,m]=p.useState(s),f=p.useRef(null),l=Ae(t,f),c=p.useRef(0),u=c.current,h=p.useRef(0),b=h.current,v=a.open||i,w=p.useRef(v),y=p.useRef(void 0);return p.useEffect(()=>{const T=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(T)},[]),rt(()=>{const T=f.current;if(T){y.current=y.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const A=T.getBoundingClientRect();c.current=A.height,h.current=A.width,w.current||(T.style.transitionDuration=y.current.transitionDuration,T.style.animationName=y.current.animationName),m(s)}},[a.open,s]),d.jsx(be.div,{"data-state":Gs(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...o,ref:l,style:{"--radix-collapsible-content-height":u?`${u}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&r})});function Gs(e){return e?"open":"closed"}var H0=Il;function B0({...e}){return d.jsx(H0,{"data-slot":"collapsible",...e})}function W0({...e}){return d.jsx(Ol,{"data-slot":"collapsible-trigger",...e})}function G0({...e}){return d.jsx(Ll,{"data-slot":"collapsible-content",...e})}const V0=({children:e,as:t="p",className:n,duration:s=2})=>{const r=Hc.create(t);return d.jsx(r,{animate:{opacity:[.5,1,.5]},className:Q("relative inline-block text-muted-foreground",n),transition:{repeat:Number.POSITIVE_INFINITY,duration:s,ease:"easeInOut"},children:e})},q0=p.memo(V0),Fl=p.createContext(null),K0=()=>{const e=p.useContext(Fl);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},Y0=1e3,X0=1e3,$l=p.memo(({className:e,isStreaming:t=!1,open:n,defaultOpen:s=!0,onOpenChange:r,duration:o,children:a,...i})=>{const[m,f]=gt({prop:n,defaultProp:s,onChange:r}),[l,c]=gt({prop:o,defaultProp:void 0}),[u,h]=p.useState(!1),[b,v]=p.useState(null);p.useEffect(()=>{t?b===null&&v(Date.now()):b!==null&&(c(Math.ceil((Date.now()-b)/X0)),v(null))},[t,b,c]);const w=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;p.useEffect(()=>{if(!w&&s&&!t&&m&&!u){const T=setTimeout(()=>{f(!1),h(!0)},Y0);return()=>clearTimeout(T)}},[t,m,s,f,u,w]);const y=T=>{f(T)};return d.jsx(Fl.Provider,{value:{isStreaming:t,isOpen:m??!1,setIsOpen:f,duration:l},children:d.jsx(B0,{className:Q("not-prose mb-4",e),onOpenChange:y,open:m,...i,children:a})})}),Q0=(e,t)=>e||t===0?d.jsx(q0,{duration:1,children:"Thinking..."}):t===void 0?d.jsx("p",{children:"Thought for a few seconds"}):d.jsxs("p",{children:["Thought for ",t," seconds"]}),Ul=p.memo(({className:e,children:t,getThinkingMessage:n=Q0,...s})=>{const{isStreaming:r,isOpen:o,duration:a}=K0();return d.jsx(W0,{className:Q("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...s,children:t??d.jsxs(d.Fragment,{children:[d.jsx(_a,{className:"size-4"}),n(r,a),d.jsx(gn,{className:Q("size-4 transition-transform",o?"rotate-180":"rotate-0")})]})})}),zl=p.memo(({className:e,children:t,...n})=>d.jsx(G0,{className:Q("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:t}));$l.displayName="Reasoning";Ul.displayName="ReasoningTrigger";zl.displayName="ReasoningContent";const Nr=200;function J0({entry:e,onRewind:t,onRewindAndEdit:n}){const[s,r]=p.useState(!1),[o,a]=p.useState(!1),i=p.useRef(null),m=p.useCallback(()=>{const f=i.current;f&&a(f.scrollHeight>Nr+4)},[]);return p.useEffect(()=>{m()},[m,e.content]),d.jsxs("div",{className:"group/user flex justify-end items-start gap-2",children:[(t||n)&&d.jsxs("div",{className:"mt-1 flex items-center gap-0.5 opacity-0 transition-opacity group-hover/user:opacity-100",children:[t&&d.jsx("button",{type:"button",onClick:t,className:"rounded-md p-1.5 text-text-muted hover:bg-surface-2 hover:text-text-primary transition-colors",title:G("message.rewindHere"),children:d.jsx(Wu,{className:"h-3.5 w-3.5"})}),n&&d.jsx("button",{type:"button",onClick:n,className:"rounded-md p-1.5 text-text-muted hover:bg-surface-2 hover:text-text-primary transition-colors",title:G("message.rewindEdit"),children:d.jsx(Na,{className:"h-3.5 w-3.5"})})]}),d.jsxs("div",{className:"max-w-[85%] sm:max-w-[70%]",children:[e.images&&e.images.length>0&&d.jsx("div",{className:"flex flex-wrap gap-2 mb-2 justify-end",children:e.images.map((f,l)=>d.jsx(eb,{image:f},l))}),e.attachments&&e.attachments.length>0&&d.jsx("div",{className:"flex flex-wrap gap-2 mb-2 justify-end",children:e.attachments.map((f,l)=>d.jsx(tb,{attachment:f},l))}),e.content&&d.jsxs("div",{className:"relative rounded-2xl rounded-br-md bg-user-bubble border border-user-bubble-border overflow-hidden",children:[d.jsx("div",{ref:i,className:Q("px-5 py-3 text-sm text-text-primary whitespace-pre-wrap font-display leading-relaxed",!s&&o&&`max-h-[${Nr}px]`),style:!s&&o?{maxHeight:`${Nr}px`}:void 0,children:Id(e.content)}),!s&&o&&d.jsx("div",{className:"absolute bottom-0 inset-x-0 flex flex-col items-center pt-8 bg-gradient-to-t from-user-bubble via-user-bubble/80 to-transparent",children:d.jsxs("button",{type:"button",onClick:()=>r(!0),className:"flex items-center gap-1 px-3 py-1 rounded-full text-xs font-display font-medium text-text-secondary hover:bg-brand/10 transition-colors",children:[d.jsx("span",{children:G("message.expand")}),d.jsx(gn,{className:"h-3 w-3"})]})})]})]})]})}function Z0({entry:e,isStreaming:t}){return d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-brand/8 flex items-center justify-center flex-shrink-0 mt-0.5 overflow-hidden",children:d.jsx("img",{src:"/code/pony.svg",alt:"Saluzi",width:28,height:28,className:"object-contain",draggable:!1})}),d.jsxs("div",{className:"flex-1 min-w-0 space-y-3",children:[d.jsx("span",{className:"text-sm font-semibold text-text-primary font-display",children:"Saluzi"}),e.chunks.map((n,s)=>{if(n.type==="thought"){const r=s===e.chunks.length-1,o=t&&r;return d.jsxs($l,{isStreaming:o,className:"mb-1",children:[d.jsx(Ul,{}),d.jsx(zl,{children:d.jsx("div",{className:"text-sm text-text-secondary leading-relaxed",children:n.text})})]},s)}return n.text.trim()?d.jsx("div",{className:"message-content text-text-primary leading-[1.75]",children:d.jsx(Hs,{children:n.text})},s):null})]})]})}function eb({image:e}){const t=`data:${e.mimeType};base64,${e.data}`;return d.jsx("button",{type:"button",className:"rounded-lg overflow-hidden border border-border hover:border-brand/40 transition-colors cursor-pointer",onClick:()=>{const n=window.open("");n&&n.document.write(`<img src="${t}" style="max-width:100%;max-height:100%" />`)},children:d.jsx("img",{src:t,alt:"Uploaded image",className:"h-20 w-20 object-cover"})})}function tb({attachment:e}){const[t,n]=p.useState(!1),s=(()=>{switch(e.kind){case"text":return d.jsx(Kt,{className:"h-4 w-4"});case"table":return d.jsx(gs,{className:"h-4 w-4"});case"directory":return d.jsx(hs,{className:"h-4 w-4"});default:return d.jsx(Kt,{className:"h-4 w-4"})}})(),r=e.size!=null?nb(e.size):null,o=e.kind==="directory"&&e.files?e.files.length:null,a=!!e.textContent;return d.jsxs("div",{className:"min-w-[160px] max-w-[300px]",children:[d.jsxs("button",{type:"button",onClick:()=>a&&n(i=>!i),className:Q("w-full flex items-center gap-2 rounded-lg border border-border bg-surface-1/50 px-3 py-2 text-xs text-text-secondary",a?"hover:border-brand/40 hover:bg-surface-1 cursor-pointer":"cursor-default"),children:[s,d.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[d.jsx("div",{className:"truncate font-mono text-text-primary",title:e.name,children:e.name}),d.jsxs("div",{className:"text-[10px] text-text-muted",children:[r&&d.jsx("span",{children:r}),r&&o!=null&&d.jsx("span",{children:" · "}),o!=null&&d.jsx("span",{children:Se("chat.fileCount",{n:o})})]})]}),a&&d.jsx(gn,{className:Q("h-3.5 w-3.5 flex-shrink-0 transition-transform",t&&"rotate-180")})]}),t&&a&&d.jsx("div",{className:"mt-1 rounded-lg border border-border bg-surface-2 p-3 max-h-[300px] overflow-auto",children:d.jsx("pre",{className:"text-[11px] text-text-secondary font-mono whitespace-pre-wrap break-words",children:e.textContent})})]})}function nb(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}const rb=new Set(["FileEditTool","Edit","SedEdit"]),sb=new Set(["FileWriteTool","Write"]),ob=new Set(["MultiEdit"]),ab=new Set(["BashTool","Bash","PowerShellTool"]);function ib(e){const t=e.match(/^([\w-]+)/);return t?t[1]:e}function Ye(e,t){for(const n of t){const s=e[n];if(typeof s=="string")return s}}function lb(e,t,n={}){if(rb.has(e)){const s=Ye(t,["old_string","oldString"]),r=Ye(t,["new_string","newString"]);return s===void 0||r===void 0?null:[{filePath:Ye(t,["file_path","filePath"])??e,oldString:s,newString:r}]}if(sb.has(e)){const s=Ye(t,["file_path","filePath"]),r=Ye(t,["content"]);if(s===void 0||r===void 0)return null;const o=n.writeOldContent;return[{filePath:s,oldString:o??"",newString:r,label:o===void 0?n.writeUnknownLabel:void 0}]}if(ob.has(e)){const s=t.edits;if(!Array.isArray(s)||s.length===0)return null;const r=Ye(t,["file_path","filePath"])??e,o=[];for(let a=0;a<s.length;a++){const i=s[a];if(!i||typeof i!="object"||Array.isArray(i))continue;const m=i,f=Ye(m,["old_string","oldString"]),l=Ye(m,["new_string","newString"]);f===void 0||l===void 0||o.push({filePath:r,oldString:f,newString:l,label:`#${a+1}`})}return o.length>0?o:null}return null}function cb(e){switch(e){case"allow_once":case"allow_always":return"default";case"reject_once":case"reject_always":return"destructive";default:return"outline"}}function db(e){switch(e){case"allow_once":case"allow_always":return"bg-approve text-white hover:bg-approve-hover";default:return""}}function ub(e){switch(e){case"allow_once":case"allow_always":return d.jsx(hn,{className:"size-4"});case"reject_once":case"reject_always":return d.jsx(bn,{className:"size-4"});default:return null}}function fb({requestId:e,options:t,onRespond:n,className:s}){nn();const r=o=>{n(e,o.optionId,o.kind)};return d.jsxs("div",{className:Q("p-3 border-t border-approve/30 bg-approve/5",s),children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(Ia,{className:"size-4 text-approve-text"}),d.jsx("span",{className:"text-xs font-medium font-display text-approve-text",children:G("permission.required")})]}),d.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(o=>d.jsxs(Dt,{variant:cb(o.kind),size:"sm",onClick:()=>r(o),className:Q("gap-1.5 font-display",db(o.kind)),children:[ub(o.kind),o.name]},o.optionId))})]})}const Ho=1e3,mb=1e6;function pb({filePath:e,oldString:t,newString:n,label:s}){const r=gb(t,n),o=Wo(r,"add"),a=Wo(r,"remove"),i=r.length>Ho?r.slice(0,Ho):r,m=r.length-i.length;return d.jsxs("div",{className:"rounded-md border border-border overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-2 border-b border-border bg-surface-2 px-2 py-1",children:[d.jsx("span",{className:"min-w-0 max-w-[60%] truncate font-mono text-[10px] text-text-primary",title:e,children:e}),o>0&&d.jsxs("span",{className:"font-mono text-[10px] text-green-600 dark:text-green-400",children:["+",o]}),a>0&&d.jsxs("span",{className:"font-mono text-[10px] text-red-600 dark:text-red-400",children:["-",a]}),s&&d.jsx("span",{className:"ml-auto flex-shrink-0 font-display text-[10px] text-text-muted",children:s})]}),d.jsxs("div",{role:"list","aria-label":Se("diff.aria",{path:e,added:o,removed:a}),className:"max-h-48 overflow-auto bg-surface-1/50 py-1 font-mono text-xs",children:[i.map((f,l)=>d.jsx(hb,{line:f},l)),m>0&&d.jsx("div",{className:"px-5 py-0.5 font-display text-[10px] text-text-muted",children:Se("diff.hidden",{n:m})})]})]})}function hb({line:e}){const t=e.type==="add"?"+":e.type==="remove"?"-":" ";return d.jsxs("div",{role:e.type==="context"?void 0:"listitem","aria-label":e.type==="add"?Se("diff.addedLine",{text:e.text}):e.type==="remove"?Se("diff.removedLine",{text:e.text}):void 0,className:Q("flex px-1 leading-relaxed",e.type==="add"&&"bg-green-500/10 text-green-700 dark:text-green-300",e.type==="remove"&&"bg-red-500/10 text-red-700 dark:text-red-300",e.type==="context"&&"text-text-secondary"),children:[d.jsx("span",{className:"w-4 flex-shrink-0 select-none text-center",children:t}),d.jsx("span",{className:"min-w-0 flex-1 whitespace-pre-wrap break-words",children:e.text.length>0?e.text:" "})]})}function Bo(e){return e.length===0?[]:e.split(`
354
+ 5g:0.5 5e:0.5 5c:0.5 5e:0.5 | 5g:2 5e:0.5 5c:0.5 | 4g:2 r:2`,{name:"William Tell Overture",bpm:144,key:"E major"}),ns=[Jg,Lg,Vg,Hg,Dg,Qg,qg,Zg,Rg,Ug,Kg,Xg,Yg,$g,Ng,Gg,zg,Og,jg,Mg,Wg,Bg,Ig,Pg,Fg,e0];new Map(ns.map(e=>[e.name,e]));function t0(e=Math.random){const t=ns[Math.floor(e()*ns.length)];if(t===void 0)throw new Error("CLASSIC_SCORES is empty");return t}function n0(){return t0(Math.random)}function r0(e,t){return Cg(e,Math.floor(t/kg(e.bpm)))}function s0(e){return`${e.name}, ${Ag(e)}`}function o0(e){return`rgb(${e.r}, ${e.g}, ${e.b})`}function a0({score:e,stalled:t=!1,className:n}){const s=Sl(!0),r=bg(),o=Q("live-glyph inline-flex w-[0.6em] shrink-0 justify-center leading-none",t&&"live-glyph--stalled",n);if(r)return d.jsx("span",{"aria-hidden":"true",className:o,children:"●"});const a=r0(e,s);return d.jsx("span",{"aria-hidden":"true",className:o,children:d.jsx("span",{className:"live-note",style:t?void 0:{color:o0(a.color)},children:a.char})})}function i0({text:e,stalled:t=!1,className:n}){return d.jsx("span",{className:Q("live-word",t&&"live-word--stalled",n),children:e})}function Cl({active:e,since:t,className:n}){const s=xg(e,t);return!e||s<1?null:d.jsxs("span",{"aria-hidden":"true",className:Q("font-mono text-[10px] tabular-nums text-text-muted",n),children:[s,"s"]})}function l0({stalled:e=!1,since:t,className:n}){const[s]=p.useState(()=>n0());return d.jsxs("div",{className:Q("flex items-center gap-2 pt-1.5 font-display min-h-8",n),children:[d.jsx(a0,{score:s,stalled:e,className:"text-base text-brand"}),d.jsxs("span",{role:"status",className:"text-sm font-medium",children:[d.jsxs("span",{className:"sr-only",children:[G("chat.live.working")," · "]}),d.jsx(i0,{text:s0(s),stalled:e})]}),d.jsx(Cl,{active:!0,since:t,className:"self-center"})]})}var c0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wt=c0.reduce((e,t)=>{const n=Ua(`Primitive.${t}`),s=p.forwardRef((r,o)=>{const{asChild:a,...i}=r,m=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(m,{...i,ref:o})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),d0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),u0="VisuallyHidden",kl=p.forwardRef((e,t)=>d.jsx(be.span,{...e,ref:t,style:{...d0,...e.style}}));kl.displayName=u0;var f0=kl,[fr]=it("Tooltip",[tn]),mr=tn(),El="TooltipProvider",m0=700,rs="tooltip.open",[p0,Us]=fr(El),Al=e=>{const{__scopeTooltip:t,delayDuration:n=m0,skipDelayDuration:s=300,disableHoverableContent:r=!1,children:o}=e,a=p.useRef(!0),i=p.useRef(!1),m=p.useRef(0);return p.useEffect(()=>{const f=m.current;return()=>window.clearTimeout(f)},[]),d.jsx(p0,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(m.current),a.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>a.current=!0,s)},[s]),isPointerInTransitRef:i,onPointerInTransitChange:p.useCallback(f=>{i.current=f},[]),disableHoverableContent:r,children:o})};Al.displayName=El;var mn="Tooltip",[h0,kn]=fr(mn),Tl=e=>{const{__scopeTooltip:t,children:n,open:s,defaultOpen:r,onOpenChange:o,disableHoverableContent:a,delayDuration:i}=e,m=Us(mn,e.__scopeTooltip),f=mr(t),[l,c]=p.useState(null),u=De(),h=p.useRef(0),b=a??m.disableHoverableContent,v=i??m.delayDuration,w=p.useRef(!1),[y,T]=gt({prop:s,defaultProp:r??!1,onChange:_=>{_?(m.onOpen(),document.dispatchEvent(new CustomEvent(rs))):m.onClose(),o==null||o(_)},caller:mn}),A=p.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),k=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w.current=!1,T(!0)},[T]),O=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,T(!1)},[T]),E=p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{w.current=!0,T(!0),h.current=0},v)},[v,T]);return p.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(As,{...f,children:d.jsx(h0,{scope:t,contentId:u,open:y,stateAttribute:A,trigger:l,onTriggerChange:c,onTriggerEnter:p.useCallback(()=>{m.isOpenDelayedRef.current?E():k()},[m.isOpenDelayedRef,E,k]),onTriggerLeave:p.useCallback(()=>{b?O():(window.clearTimeout(h.current),h.current=0)},[O,b]),onOpen:k,onClose:O,disableHoverableContent:b,children:n})})};Tl.displayName=mn;var ss="TooltipTrigger",_l=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,r=kn(ss,n),o=Us(ss,n),a=mr(n),i=p.useRef(null),m=Ae(t,i,r.onTriggerChange),f=p.useRef(!1),l=p.useRef(!1),c=p.useCallback(()=>f.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),d.jsx(ir,{asChild:!0,...a,children:d.jsx(be.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...s,ref:m,onPointerMove:ne(e.onPointerMove,u=>{u.pointerType!=="touch"&&!l.current&&!o.isPointerInTransitRef.current&&(r.onTriggerEnter(),l.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{r.onTriggerLeave(),l.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{r.open&&r.onClose(),f.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:ne(e.onFocus,()=>{f.current||r.onOpen()}),onBlur:ne(e.onBlur,r.onClose),onClick:ne(e.onClick,r.onClose)})})});_l.displayName=ss;var zs="TooltipPortal",[g0,b0]=fr(zs,{forceMount:void 0}),Rl=e=>{const{__scopeTooltip:t,forceMount:n,children:s,container:r}=e,o=kn(zs,t);return d.jsx(g0,{scope:t,forceMount:n,children:d.jsx(ze,{present:n||o.open,children:d.jsx(vn,{asChild:!0,container:r,children:s})})})};Rl.displayName=zs;var Qt="TooltipContent",jl=p.forwardRef((e,t)=>{const n=b0(Qt,e.__scopeTooltip),{forceMount:s=n.forceMount,side:r="top",...o}=e,a=kn(Qt,e.__scopeTooltip);return d.jsx(ze,{present:s||a.open,children:a.disableHoverableContent?d.jsx(Ml,{side:r,...o,ref:t}):d.jsx(x0,{side:r,...o,ref:t})})}),x0=p.forwardRef((e,t)=>{const n=kn(Qt,e.__scopeTooltip),s=Us(Qt,e.__scopeTooltip),r=p.useRef(null),o=Ae(t,r),[a,i]=p.useState(null),{trigger:m,onClose:f}=n,l=r.current,{onPointerInTransitChange:c}=s,u=p.useCallback(()=>{i(null),c(!1)},[c]),h=p.useCallback((b,v)=>{const w=b.currentTarget,y={x:b.clientX,y:b.clientY},T=S0(y,w.getBoundingClientRect()),A=C0(y,T),k=k0(v.getBoundingClientRect()),O=A0([...A,...k]);i(O),c(!0)},[c]);return p.useEffect(()=>()=>u(),[u]),p.useEffect(()=>{if(m&&l){const b=w=>h(w,l),v=w=>h(w,m);return m.addEventListener("pointerleave",b),l.addEventListener("pointerleave",v),()=>{m.removeEventListener("pointerleave",b),l.removeEventListener("pointerleave",v)}}},[m,l,h,u]),p.useEffect(()=>{if(a){const b=v=>{const w=v.target,y={x:v.clientX,y:v.clientY},T=(m==null?void 0:m.contains(w))||(l==null?void 0:l.contains(w)),A=!E0(y,a);T?u():A&&(u(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[m,l,a,f,u]),d.jsx(Ml,{...e,ref:o})}),[y0,v0]=fr(mn,{isInside:!1}),w0=pf("TooltipContent"),Ml=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:s,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:a,...i}=e,m=kn(Qt,n),f=mr(n),{onClose:l}=m;return p.useEffect(()=>(document.addEventListener(rs,l),()=>document.removeEventListener(rs,l)),[l]),p.useEffect(()=>{if(m.trigger){const c=u=>{const h=u.target;h!=null&&h.contains(m.trigger)&&l()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[m.trigger,l]),d.jsx(xn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c=>c.preventDefault(),onDismiss:l,children:d.jsxs(Ts,{"data-state":m.stateAttribute,...f,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(w0,{children:s}),d.jsx(y0,{scope:n,isInside:!0,children:d.jsx(f0,{id:m.contentId,role:"tooltip",children:r||s})})]})})});jl.displayName=Qt;var Nl="TooltipArrow",Pl=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...s}=e,r=mr(n);return v0(Nl,n).isInside?null:d.jsx(_s,{...r,...s,ref:t})});Pl.displayName=Nl;function S0(e,t){const n=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,s,r,o)){case o:return"left";case r:return"right";case n:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function C0(e,t,n=5){const s=[];switch(t){case"top":s.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":s.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":s.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":s.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return s}function k0(e){const{top:t,right:n,bottom:s,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:s},{x:r,y:s}]}function E0(e,t){const{x:n,y:s}=e;let r=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const i=t[o],m=t[a],f=i.x,l=i.y,c=m.x,u=m.y;l>s!=u>s&&n<(c-f)*(s-l)/(u-l)+f&&(r=!r)}return r}function A0(e){const t=e.slice();return t.sort((n,s)=>n.x<s.x?-1:n.x>s.x?1:n.y<s.y?-1:n.y>s.y?1:0),T0(t)}function T0(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const r=e[s];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let s=e.length-1;s>=0;s--){const r=e[s];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(r.y-a.y)>=(o.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var _0=Al,R0=Tl,j0=_l,M0=Rl,N0=jl,P0=Pl;function I0({delayDuration:e=0,...t}){return d.jsx(_0,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function D0({...e}){return d.jsx(I0,{children:d.jsx(R0,{"data-slot":"tooltip",...e})})}function O0({...e}){return d.jsx(j0,{"data-slot":"tooltip-trigger",...e})}function L0({className:e,sideOffset:t=0,children:n,...s}){return d.jsx(M0,{children:d.jsxs(N0,{"data-slot":"tooltip-content",sideOffset:t,className:Q("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...s,children:[n,d.jsx(P0,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const F0=p.lazy(()=>Me(()=>import("./mermaid-VLURNSYL-CTnstEJM.js").then(e=>e.i),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.Streamdown})));p.createContext(null);const Hs=p.memo(({className:e,children:t,...n})=>d.jsx(p.Suspense,{fallback:d.jsx("div",{className:Q("whitespace-pre-wrap break-words",e),children:t}),children:d.jsx(F0,{className:Q("size-full break-words [overflow-wrap:anywhere] [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...n,children:t})}),(e,t)=>e.children===t.children);Hs.displayName="MessageResponse";var pr="Collapsible",[$0]=it(pr),[U0,Bs]=$0(pr),Il=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:s,defaultOpen:r,disabled:o,onOpenChange:a,...i}=e,[m,f]=gt({prop:s,defaultProp:r??!1,onChange:a,caller:pr});return d.jsx(U0,{scope:n,disabled:o,contentId:De(),open:m,onOpenToggle:p.useCallback(()=>f(l=>!l),[f]),children:d.jsx(be.div,{"data-state":Gs(m),"data-disabled":o?"":void 0,...i,ref:t})})});Il.displayName=pr;var Dl="CollapsibleTrigger",Ol=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,r=Bs(Dl,n);return d.jsx(be.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Gs(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...s,ref:t,onClick:ne(e.onClick,r.onOpenToggle)})});Ol.displayName=Dl;var Ws="CollapsibleContent",Ll=p.forwardRef((e,t)=>{const{forceMount:n,...s}=e,r=Bs(Ws,e.__scopeCollapsible);return d.jsx(ze,{present:n||r.open,children:({present:o})=>d.jsx(z0,{...s,ref:t,present:o})})});Ll.displayName=Ws;var z0=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:s,children:r,...o}=e,a=Bs(Ws,n),[i,m]=p.useState(s),f=p.useRef(null),l=Ae(t,f),c=p.useRef(0),u=c.current,h=p.useRef(0),b=h.current,v=a.open||i,w=p.useRef(v),y=p.useRef(void 0);return p.useEffect(()=>{const T=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(T)},[]),rt(()=>{const T=f.current;if(T){y.current=y.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const A=T.getBoundingClientRect();c.current=A.height,h.current=A.width,w.current||(T.style.transitionDuration=y.current.transitionDuration,T.style.animationName=y.current.animationName),m(s)}},[a.open,s]),d.jsx(be.div,{"data-state":Gs(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...o,ref:l,style:{"--radix-collapsible-content-height":u?`${u}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&r})});function Gs(e){return e?"open":"closed"}var H0=Il;function B0({...e}){return d.jsx(H0,{"data-slot":"collapsible",...e})}function W0({...e}){return d.jsx(Ol,{"data-slot":"collapsible-trigger",...e})}function G0({...e}){return d.jsx(Ll,{"data-slot":"collapsible-content",...e})}const V0=({children:e,as:t="p",className:n,duration:s=2})=>{const r=Hc.create(t);return d.jsx(r,{animate:{opacity:[.5,1,.5]},className:Q("relative inline-block text-muted-foreground",n),transition:{repeat:Number.POSITIVE_INFINITY,duration:s,ease:"easeInOut"},children:e})},q0=p.memo(V0),Fl=p.createContext(null),K0=()=>{const e=p.useContext(Fl);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},Y0=1e3,X0=1e3,$l=p.memo(({className:e,isStreaming:t=!1,open:n,defaultOpen:s=!0,onOpenChange:r,duration:o,children:a,...i})=>{const[m,f]=gt({prop:n,defaultProp:s,onChange:r}),[l,c]=gt({prop:o,defaultProp:void 0}),[u,h]=p.useState(!1),[b,v]=p.useState(null);p.useEffect(()=>{t?b===null&&v(Date.now()):b!==null&&(c(Math.ceil((Date.now()-b)/X0)),v(null))},[t,b,c]);const w=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;p.useEffect(()=>{if(!w&&s&&!t&&m&&!u){const T=setTimeout(()=>{f(!1),h(!0)},Y0);return()=>clearTimeout(T)}},[t,m,s,f,u,w]);const y=T=>{f(T)};return d.jsx(Fl.Provider,{value:{isStreaming:t,isOpen:m??!1,setIsOpen:f,duration:l},children:d.jsx(B0,{className:Q("not-prose mb-4",e),onOpenChange:y,open:m,...i,children:a})})}),Q0=(e,t)=>e||t===0?d.jsx(q0,{duration:1,children:"Thinking..."}):t===void 0?d.jsx("p",{children:"Thought for a few seconds"}):d.jsxs("p",{children:["Thought for ",t," seconds"]}),Ul=p.memo(({className:e,children:t,getThinkingMessage:n=Q0,...s})=>{const{isStreaming:r,isOpen:o,duration:a}=K0();return d.jsx(W0,{className:Q("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...s,children:t??d.jsxs(d.Fragment,{children:[d.jsx(_a,{className:"size-4"}),n(r,a),d.jsx(gn,{className:Q("size-4 transition-transform",o?"rotate-180":"rotate-0")})]})})}),zl=p.memo(({className:e,children:t,...n})=>d.jsx(G0,{className:Q("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:t}));$l.displayName="Reasoning";Ul.displayName="ReasoningTrigger";zl.displayName="ReasoningContent";const Nr=200;function J0({entry:e,onRewind:t,onRewindAndEdit:n}){const[s,r]=p.useState(!1),[o,a]=p.useState(!1),i=p.useRef(null),m=p.useCallback(()=>{const f=i.current;f&&a(f.scrollHeight>Nr+4)},[]);return p.useEffect(()=>{m()},[m,e.content]),d.jsxs("div",{className:"group/user flex justify-end items-start gap-2",children:[(t||n)&&d.jsxs("div",{className:"mt-1 flex items-center gap-0.5 opacity-0 transition-opacity group-hover/user:opacity-100",children:[t&&d.jsx("button",{type:"button",onClick:t,className:"rounded-md p-1.5 text-text-muted hover:bg-surface-2 hover:text-text-primary transition-colors",title:G("message.rewindHere"),children:d.jsx(Wu,{className:"h-3.5 w-3.5"})}),n&&d.jsx("button",{type:"button",onClick:n,className:"rounded-md p-1.5 text-text-muted hover:bg-surface-2 hover:text-text-primary transition-colors",title:G("message.rewindEdit"),children:d.jsx(Na,{className:"h-3.5 w-3.5"})})]}),d.jsxs("div",{className:"max-w-[85%] sm:max-w-[70%]",children:[e.images&&e.images.length>0&&d.jsx("div",{className:"flex flex-wrap gap-2 mb-2 justify-end",children:e.images.map((f,l)=>d.jsx(eb,{image:f},l))}),e.attachments&&e.attachments.length>0&&d.jsx("div",{className:"flex flex-wrap gap-2 mb-2 justify-end",children:e.attachments.map((f,l)=>d.jsx(tb,{attachment:f},l))}),e.content&&d.jsxs("div",{className:"relative rounded-2xl rounded-br-md bg-user-bubble border border-user-bubble-border overflow-hidden",children:[d.jsx("div",{ref:i,className:Q("px-5 py-3 text-sm text-text-primary whitespace-pre-wrap font-display leading-relaxed",!s&&o&&`max-h-[${Nr}px]`),style:!s&&o?{maxHeight:`${Nr}px`}:void 0,children:Id(e.content)}),!s&&o&&d.jsx("div",{className:"absolute bottom-0 inset-x-0 flex flex-col items-center pt-8 bg-gradient-to-t from-user-bubble via-user-bubble/80 to-transparent",children:d.jsxs("button",{type:"button",onClick:()=>r(!0),className:"flex items-center gap-1 px-3 py-1 rounded-full text-xs font-display font-medium text-text-secondary hover:bg-brand/10 transition-colors",children:[d.jsx("span",{children:G("message.expand")}),d.jsx(gn,{className:"h-3 w-3"})]})})]})]})]})}function Z0({entry:e,isStreaming:t}){return d.jsxs("div",{className:"flex gap-4 items-start",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-brand/8 flex items-center justify-center flex-shrink-0 mt-0.5 overflow-hidden",children:d.jsx("img",{src:"/code/pony.svg",alt:"Saluzi",width:28,height:28,className:"object-contain",draggable:!1})}),d.jsxs("div",{className:"flex-1 min-w-0 space-y-3",children:[d.jsx("span",{className:"text-sm font-semibold text-text-primary font-display",children:"Saluzi"}),e.chunks.map((n,s)=>{if(n.type==="thought"){const r=s===e.chunks.length-1,o=t&&r;return d.jsxs($l,{isStreaming:o,className:"mb-1",children:[d.jsx(Ul,{}),d.jsx(zl,{children:d.jsx("div",{className:"text-sm text-text-secondary leading-relaxed",children:n.text})})]},s)}return n.text.trim()?d.jsx("div",{className:"message-content text-text-primary leading-[1.75]",children:d.jsx(Hs,{children:n.text})},s):null})]})]})}function eb({image:e}){const t=`data:${e.mimeType};base64,${e.data}`;return d.jsx("button",{type:"button",className:"rounded-lg overflow-hidden border border-border hover:border-brand/40 transition-colors cursor-pointer",onClick:()=>{const n=window.open("");n&&n.document.write(`<img src="${t}" style="max-width:100%;max-height:100%" />`)},children:d.jsx("img",{src:t,alt:"Uploaded image",className:"h-20 w-20 object-cover"})})}function tb({attachment:e}){const[t,n]=p.useState(!1),s=(()=>{switch(e.kind){case"text":return d.jsx(Kt,{className:"h-4 w-4"});case"table":return d.jsx(gs,{className:"h-4 w-4"});case"directory":return d.jsx(hs,{className:"h-4 w-4"});default:return d.jsx(Kt,{className:"h-4 w-4"})}})(),r=e.size!=null?nb(e.size):null,o=e.kind==="directory"&&e.files?e.files.length:null,a=!!e.textContent;return d.jsxs("div",{className:"min-w-[160px] max-w-[300px]",children:[d.jsxs("button",{type:"button",onClick:()=>a&&n(i=>!i),className:Q("w-full flex items-center gap-2 rounded-lg border border-border bg-surface-1/50 px-3 py-2 text-xs text-text-secondary",a?"hover:border-brand/40 hover:bg-surface-1 cursor-pointer":"cursor-default"),children:[s,d.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[d.jsx("div",{className:"truncate font-mono text-text-primary",title:e.name,children:e.name}),d.jsxs("div",{className:"text-[10px] text-text-muted",children:[r&&d.jsx("span",{children:r}),r&&o!=null&&d.jsx("span",{children:" · "}),o!=null&&d.jsx("span",{children:Se("chat.fileCount",{n:o})})]})]}),a&&d.jsx(gn,{className:Q("h-3.5 w-3.5 flex-shrink-0 transition-transform",t&&"rotate-180")})]}),t&&a&&d.jsx("div",{className:"mt-1 rounded-lg border border-border bg-surface-2 p-3 max-h-[300px] overflow-auto",children:d.jsx("pre",{className:"text-[11px] text-text-secondary font-mono whitespace-pre-wrap break-words",children:e.textContent})})]})}function nb(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}const rb=new Set(["FileEditTool","Edit","SedEdit"]),sb=new Set(["FileWriteTool","Write"]),ob=new Set(["MultiEdit"]),ab=new Set(["BashTool","Bash","PowerShellTool"]);function ib(e){const t=e.match(/^([\w-]+)/);return t?t[1]:e}function Ye(e,t){for(const n of t){const s=e[n];if(typeof s=="string")return s}}function lb(e,t,n={}){if(rb.has(e)){const s=Ye(t,["old_string","oldString"]),r=Ye(t,["new_string","newString"]);return s===void 0||r===void 0?null:[{filePath:Ye(t,["file_path","filePath"])??e,oldString:s,newString:r}]}if(sb.has(e)){const s=Ye(t,["file_path","filePath"]),r=Ye(t,["content"]);if(s===void 0||r===void 0)return null;const o=n.writeOldContent;return[{filePath:s,oldString:o??"",newString:r,label:o===void 0?n.writeUnknownLabel:void 0}]}if(ob.has(e)){const s=t.edits;if(!Array.isArray(s)||s.length===0)return null;const r=Ye(t,["file_path","filePath"])??e,o=[];for(let a=0;a<s.length;a++){const i=s[a];if(!i||typeof i!="object"||Array.isArray(i))continue;const m=i,f=Ye(m,["old_string","oldString"]),l=Ye(m,["new_string","newString"]);f===void 0||l===void 0||o.push({filePath:r,oldString:f,newString:l,label:`#${a+1}`})}return o.length>0?o:null}return null}function cb(e){switch(e){case"allow_once":case"allow_always":return"default";case"reject_once":case"reject_always":return"destructive";default:return"outline"}}function db(e){switch(e){case"allow_once":case"allow_always":return"bg-approve text-white hover:bg-approve-hover";default:return""}}function ub(e){switch(e){case"allow_once":case"allow_always":return d.jsx(hn,{className:"size-4"});case"reject_once":case"reject_always":return d.jsx(bn,{className:"size-4"});default:return null}}function fb({requestId:e,options:t,onRespond:n,className:s}){nn();const r=o=>{n(e,o.optionId,o.kind)};return d.jsxs("div",{className:Q("p-3 border-t border-approve/30 bg-approve/5",s),children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(Ia,{className:"size-4 text-approve-text"}),d.jsx("span",{className:"text-xs font-medium font-display text-approve-text",children:G("permission.required")})]}),d.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(o=>d.jsxs(Dt,{variant:cb(o.kind),size:"sm",onClick:()=>r(o),className:Q("gap-1.5 font-display",db(o.kind)),children:[ub(o.kind),o.name]},o.optionId))})]})}const Ho=1e3,mb=1e6;function pb({filePath:e,oldString:t,newString:n,label:s}){const r=gb(t,n),o=Wo(r,"add"),a=Wo(r,"remove"),i=r.length>Ho?r.slice(0,Ho):r,m=r.length-i.length;return d.jsxs("div",{className:"rounded-md border border-border overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-2 border-b border-border bg-surface-2 px-2 py-1",children:[d.jsx("span",{className:"min-w-0 max-w-[60%] truncate font-mono text-[10px] text-text-primary",title:e,children:e}),o>0&&d.jsxs("span",{className:"font-mono text-[10px] text-green-600 dark:text-green-400",children:["+",o]}),a>0&&d.jsxs("span",{className:"font-mono text-[10px] text-red-600 dark:text-red-400",children:["-",a]}),s&&d.jsx("span",{className:"ml-auto flex-shrink-0 font-display text-[10px] text-text-muted",children:s})]}),d.jsxs("div",{role:"list","aria-label":Se("diff.aria",{path:e,added:o,removed:a}),className:"max-h-48 overflow-auto bg-surface-1/50 py-1 font-mono text-xs",children:[i.map((f,l)=>d.jsx(hb,{line:f},l)),m>0&&d.jsx("div",{className:"px-5 py-0.5 font-display text-[10px] text-text-muted",children:Se("diff.hidden",{n:m})})]})]})}function hb({line:e}){const t=e.type==="add"?"+":e.type==="remove"?"-":" ";return d.jsxs("div",{role:e.type==="context"?void 0:"listitem","aria-label":e.type==="add"?Se("diff.addedLine",{text:e.text}):e.type==="remove"?Se("diff.removedLine",{text:e.text}):void 0,className:Q("flex px-1 leading-relaxed",e.type==="add"&&"bg-green-500/10 text-green-700 dark:text-green-300",e.type==="remove"&&"bg-red-500/10 text-red-700 dark:text-red-300",e.type==="context"&&"text-text-secondary"),children:[d.jsx("span",{className:"w-4 flex-shrink-0 select-none text-center",children:t}),d.jsx("span",{className:"min-w-0 flex-1 whitespace-pre-wrap break-words",children:e.text.length>0?e.text:" "})]})}function Bo(e){return e.length===0?[]:e.split(`
355
355
  `)}function Wo(e,t){let n=0;for(const s of e)s.type===t&&n++;return n}function gb(e,t){const n=Bo(e),s=Bo(t);let r=0;for(;r<n.length&&r<s.length&&n[r]===s[r];)r++;let o=n.length,a=s.length;for(;o>r&&a>r&&n[o-1]===s[a-1];)o--,a--;const i=[];for(let m=0;m<r;m++)i.push({type:"context",text:n[m]});bb(n.slice(r,o),s.slice(r,a),i);for(let m=o;m<n.length;m++)i.push({type:"context",text:n[m]});return i}function bb(e,t,n){const s=e.length,r=t.length;if(s===0&&r===0)return;if(s*r>mb){for(const f of e)n.push({type:"remove",text:f});for(const f of t)n.push({type:"add",text:f});return}const o=r+1,a=new Uint32Array((s+1)*o);for(let f=s-1;f>=0;f--)for(let l=r-1;l>=0;l--)a[f*o+l]=e[f]===t[l]?a[(f+1)*o+l+1]+1:Math.max(a[(f+1)*o+l],a[f*o+l+1]);let i=0,m=0;for(;i<s&&m<r;)e[i]===t[m]?(n.push({type:"context",text:e[i]}),i++,m++):a[(i+1)*o+m]>=a[i*o+m+1]?(n.push({type:"remove",text:e[i]}),i++):(n.push({type:"add",text:t[m]}),m++);for(;i<s;)n.push({type:"remove",text:e[i]}),i++;for(;m<r;)n.push({type:"add",text:t[m]}),m++}function Hl({entries:e,onPermissionRespond:t}){const[n,s]=p.useState(!1);if(e.length===0)return null;if(e.length===1)return d.jsx("div",{className:"pl-10",children:d.jsx(Go,{tool:e[0].toolCall,compact:!0,onPermissionRespond:t})});const r=Sb(e),o=e.some(a=>a.toolCall.status==="running");return d.jsx("div",{className:"pl-10",children:d.jsxs("div",{className:"rounded-lg border border-border bg-surface-2/50 overflow-hidden",children:[d.jsxs("button",{type:"button",className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-brand-text font-bold hover:bg-brand/10 transition-colors",onClick:()=>s(!n),children:[d.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:Q("transition-transform text-text-muted",n&&"rotate-90"),children:d.jsx("path",{d:"M4 2L8 6L4 10",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})}),d.jsx("span",{className:"min-w-0 flex-1 truncate text-xs text-brand-text font-bold font-display",children:r}),o&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"shrink-0 text-brand text-[10px]","aria-hidden":"true",children:"●"}),d.jsx("span",{className:"sr-only",children:G("chat.live.running")})]})]}),n&&d.jsx("div",{className:"border-t border-border divide-y divide-border",children:e.map((a,i)=>d.jsx(Go,{tool:a.toolCall,compact:!0,onPermissionRespond:t},a.toolCall.id||i))})]})})}function Go({tool:e,compact:t,onPermissionRespond:n}){const[s,r]=p.useState(!t),o=e.status==="running",a=(()=>{switch(e.status){case"running":return d.jsx("span",{className:"text-brand text-[10px]",children:"●"});case"complete":return d.jsx("span",{className:"text-status-active text-[10px]",children:"✓"});case"error":return d.jsx("span",{className:"text-status-error text-[10px]",children:"✕"});case"waiting_for_confirmation":return d.jsx("span",{className:"text-brand-text text-[10px]",children:"⍻"});case"canceled":return d.jsx("span",{className:"text-text-muted text-[10px]",children:"—"});case"rejected":return d.jsx("span",{className:"text-status-error text-[10px]",children:"✕"});default:return null}})(),i=Bl(e);return d.jsxs("div",{className:Q("px-3 py-2",t&&"py-1"),children:[d.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 text-left group",onClick:()=>r(!s),children:[a,d.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-display font-bold text-brand-text transition-colors",children:e.title}),o&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"sr-only",children:G("chat.live.running")}),d.jsx(Cl,{active:!0})]})]}),e.status==="waiting_for_confirmation"&&e.permissionRequest&&d.jsx("div",{className:"mt-1.5 ml-4",children:d.jsx(fb,{requestId:e.permissionRequest.requestId,options:e.permissionRequest.options,onRespond:n||(()=>{})})}),s&&d.jsx("div",{className:"mt-1.5 ml-4 space-y-1.5",children:vb(e)??d.jsxs(d.Fragment,{children:[e.rawInput&&Object.keys(e.rawInput).length>0&&d.jsx("pre",{className:"text-[11px] bg-surface-1 rounded-md p-2 overflow-x-auto font-mono max-h-36 text-text-secondary",children:jt(JSON.stringify(e.rawInput,null,2),2e3)}),i&&d.jsx(Gl,{tool:e})]})})]})}const xb=["old_content","oldContent","old_string","oldString","old_text","oldText","previous_content","previousContent"],yb=["output","stdout","stderr","result"];function vb(e){const t=ib(e.title),n=e.rawInput??{},s=lb(t,n,{writeOldContent:Ye(e.rawOutput??{},xb),writeUnknownLabel:G("tool.newFile")});if(s)return d.jsxs(d.Fragment,{children:[s.map((r,o)=>d.jsx(pb,{filePath:r.filePath,oldString:r.oldString,newString:r.newString,label:r.label},o)),Bl(e)&&d.jsx(Gl,{tool:e})]});if(ab.has(t)){const r=Ye(n,["command","cmd","script"]),o=kb(e);return r===void 0&&o.length===0?null:d.jsx(wb,{command:r!==void 0?jt(r,500):void 0,output:o,isError:e.status==="error"})}return null}function wb({command:e,output:t,isError:n}){return d.jsx("div",{className:Q("rounded-md border overflow-hidden",n?"border-status-error/50":"border-border"),children:d.jsxs("div",{className:"max-h-36 overflow-auto bg-zinc-900 px-2 py-1.5 font-mono text-xs text-zinc-300",children:[e&&d.jsxs("div",{className:"whitespace-pre-wrap break-words text-zinc-500",children:["$ ",e]}),t.length>0&&d.jsx("div",{className:"whitespace-pre-wrap break-words",children:t})]})})}function Sb(e){const t=new Map;for(const s of e){const r=Cb(s.toolCall.title);t.set(r,(t.get(r)||0)+1)}const n=[];for(const[s,r]of t)n.push(r===1?s:Se("tool.callTimes",{n:r,name:s}));return n.length===0?Se("tool.summaryCalls",{n:e.length}):n.length===1?n[0]:Se("tool.summaryTools",{n:e.length,names:n.join("、")})}function Cb(e){const t=e.match(/^(\w+)/);return t?t[1]:e}function Bl(e){return e.status!=="running"&&e.status!=="waiting_for_confirmation"&&!!(e.rawOutput||e.content)}function Wl(e){return!e.content||e.content.length===0?[]:e.content.filter(t=>t.type==="content").filter(t=>t.content.type==="text"&&"text"in t.content).map(t=>t.content.text)}function kb(e){const t=Wl(e);if(t.length>0)return jt(t.join(`
356
356
  `),2e3);const n=e.rawOutput;if(n){for(const s of yb){const r=n[s];if(typeof r=="string"&&r.length>0)return jt(r,2e3)}if(Object.keys(n).length>0)return jt(JSON.stringify(n,null,2),2e3)}return""}function Gl({tool:e}){return d.jsx("pre",{className:Q("text-[11px] rounded-md p-2 overflow-x-auto font-mono max-h-36",e.status==="error"?"bg-status-error/10 text-status-error":"bg-surface-1 text-text-secondary"),children:Eb(e)})}function Eb(e){const t=Wl(e);return t.length>0?jt(t.join(`
357
357
  `),2e3):e.rawOutput&&Object.keys(e.rawOutput).length>0?jt(JSON.stringify(e.rawOutput,null,2),2e3):""}function jt(e,t){return e.length>t?e.slice(0,t)+"...":e}function Ab({entry:e}){const[t,n]=p.useState(!1),{entries:s}=e;if(s.length===0)return null;const r=s.filter(i=>i.status==="completed").length,o=s.length,a=o>0?Math.round(r/o*100):0;return d.jsx("div",{className:"pl-10",children:d.jsxs("div",{className:"rounded-xl border border-border bg-brand/5 overflow-hidden",children:[d.jsxs("button",{type:"button",className:"w-full flex items-center gap-2 px-3 py-2.5 text-sm hover:bg-surface-1/50 transition-colors",onClick:()=>n(!t),children:[d.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:Q("transition-transform text-text-muted flex-shrink-0",t&&"rotate-90"),children:d.jsx("path",{d:"M4 2L8 6L4 10",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})}),d.jsx("span",{className:"text-xs font-display font-medium text-text-secondary",children:G("plan.title")}),d.jsxs("span",{className:"text-[10px] text-text-muted font-mono",children:[r,"/",o]}),d.jsx("div",{className:"flex-1 h-1 rounded-full bg-surface-1 overflow-hidden ml-1 mr-2",children:d.jsx("div",{className:"h-full rounded-full bg-brand/70 transition-all duration-500",style:{width:`${a}%`}})}),d.jsxs("span",{className:"text-[10px] text-text-muted font-mono",children:[a,"%"]})]}),!t&&d.jsx("div",{className:Q("border-t border-border px-3 py-1.5 space-y-0.5",o>5&&"max-h-64 overflow-y-auto"),children:s.map((i,m)=>d.jsx(Tb,{entry:i},m))})]})})}function Tb({entry:e}){return d.jsxs("div",{className:"flex items-start gap-2 py-1.5 px-1",children:[d.jsx("span",{className:"flex-shrink-0 mt-0.5",children:d.jsx(_b,{status:e.status})}),d.jsx("span",{className:Q("text-xs leading-relaxed flex-1",e.status==="completed"?"text-text-muted line-through":"text-text-secondary",e.status==="in_progress"&&"text-text-primary font-medium"),children:e.content}),d.jsx(Rb,{priority:e.priority})]})}function _b({status:e}){switch(e){case"completed":return d.jsx(Zd,{className:"h-3.5 w-3.5 text-status-active"});case"in_progress":return d.jsx(ja,{className:"h-3.5 w-3.5 text-brand-text animate-spin",style:{animationDuration:"2s"}});case"pending":return d.jsx(tu,{className:"h-3.5 w-3.5 text-text-muted"})}}function Rb({priority:e}){const t={high:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-300",medium:"bg-brand/10 text-brand-text dark:bg-brand/20",low:"bg-surface-1 text-text-muted"},n={high:G("plan.priority.high"),medium:G("plan.priority.medium"),low:G("plan.priority.low")};return d.jsx("span",{className:Q("text-[10px] font-display rounded-full px-1.5 py-0.5 flex-shrink-0 leading-none",t[e]),children:n[e]})}function jb({entry:e}){const t=e.variant==="error";return d.jsxs("div",{className:"w-full",children:[d.jsx("div",{className:Q("border-t-2",t?"border-status-error":"border-border")}),d.jsxs("div",{className:"pt-3",children:[d.jsx("h3",{className:Q("font-bold font-display text-base",t?"text-status-error":"text-brand-text"),children:e.title}),e.subtitle&&d.jsx("p",{className:"text-sm text-text-muted mt-0.5",children:e.subtitle})]}),d.jsx("div",{className:"py-3 message-content text-text-primary leading-[1.75]",children:d.jsx(Hs,{children:e.outputText})}),d.jsx("div",{className:"pb-1 text-xs text-text-muted italic",children:G("chat.cmdDone")})]})}/*!---------------------------------------------------------------------------------------------
@@ -390,4 +390,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
390
390
  ${ee.textContent}`}else{const ce=ee.size!=null?` (${jy(ee.size)})`:"";re=`📎 ${ee.name}${ce}
391
391
  \`\`\`
392
392
  ${ee.textContent}
393
- \`\`\``}B.push({type:"text",text:re}),q.push(ee)}}catch(re){console.error("[ChatInterface] Failed to process attachment:",re)}if(B.length===0)return;const K={type:"user_message",id:`user-${Date.now()}`,content:L,images:V.length>0?V:void 0,attachments:q.length>0?q:void 0};s(ee=>[...ee,K]),o(!0);try{await e.sendPrompt(B)}catch(ee){console.error("[ChatInterface] Failed to send prompt:",ee),o(!1)}},[r,a,e,_,g,x,O,m,j,C]);return d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsx(Wb,{entries:n,isLoading:r&&!a?!1:r,onPermissionRespond:(M,L,$)=>{H(M,L,$)},emptyTitle:a?G("session.emptyTitle"):void 0,emptyDescription:a?G("acp.emptyDescription"):void 0}),d.jsx(ax,{requests:P,onRespond:U}),u&&d.jsx("div",{className:"mx-auto max-w-3xl w-full px-4 sm:px-8 pb-1",children:d.jsxs("div",{className:"rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 px-3 py-2 text-sm text-red-700 dark:text-red-300 flex items-center justify-between",children:[d.jsx("span",{children:u}),d.jsx("button",{type:"button",onClick:()=>h(null),className:"ml-2 text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200 flex-shrink-0",children:"×"})]})}),d.jsxs("div",{className:"flex-shrink-0",children:[d.jsxs("div",{className:"max-w-3xl mx-auto w-full px-4 sm:px-8 pb-1 flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(_y,{mode:A??v,onModeChange:M=>{k(null),w(M),localStorage.setItem("acp_permission_mode",M)}}),d.jsx(hy,{client:e}),d.jsx(lx,{usage:y})]}),n.length>0&&d.jsxs(D0,{children:[d.jsx(O0,{asChild:!0,children:d.jsxs(Dt,{variant:"ghost",size:"sm",className:"h-7 text-xs text-text-muted hover:text-brand-text font-display gap-1",onClick:C,children:[d.jsx(Pa,{className:"h-3 w-3"}),G("acp.newSession")]})}),d.jsx(L0,{children:"New Thread"})]})]}),d.jsx(nx,{onSubmit:Y,isLoading:r,onInterrupt:S,disabled:!a,placeholder:G(a?"acp.inputPlaceholder":"acp.waitingPlaceholder"),supportsAttachments:O,commands:_.length>0?_:void 0,queueWhileLoading:!0})]})]})}function jy(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function My({client:e,agentId:t}){nn();const[n,s]=p.useState(!1),r=p.useCallback(async o=>{try{if(e.supportsLoadSession)await e.loadSession({sessionId:o.sessionId,cwd:o.cwd});else if(e.supportsResumeSession)await e.resumeSession({sessionId:o.sessionId,cwd:o.cwd});else throw new Error("Loading or resuming sessions is not supported by this agent.")}catch(a){console.error("Failed to load/resume session:",a)}},[e]);return d.jsxs("div",{className:"flex h-full w-full",children:[d.jsxs("div",{className:Q("hidden md:flex flex-col border-r border-border/60 bg-surface-1/50 transition-all duration-200 flex-shrink-0",n?"w-12":"w-64"),children:[d.jsxs("div",{className:"flex items-center justify-between px-3 py-4",children:[!n&&d.jsx("span",{className:"text-xs font-display font-semibold text-text-muted uppercase tracking-widest px-1",children:G("acp.sessions")}),d.jsxs("div",{className:Q("flex items-center gap-0.5",n&&"mx-auto"),children:[!n&&d.jsx("button",{type:"button",onClick:()=>{},className:"h-7 w-7 flex items-center justify-center rounded-lg text-text-muted hover:text-brand-text hover:bg-brand/10 transition-colors",title:G("acp.newSession"),children:d.jsx(Pa,{className:"h-4 w-4"})}),d.jsx("button",{type:"button",onClick:()=>s(!n),className:"h-7 w-7 flex items-center justify-center rounded-lg text-text-muted hover:text-text-primary hover:bg-surface-2 transition-colors",children:n?d.jsx(Cu,{className:"h-4 w-4"}):d.jsx(wu,{className:"h-4 w-4"})})]})]}),!n&&d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(Ny,{client:e,onSelectSession:r})})]}),d.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:d.jsx(Ry,{client:e,agentId:t})})]})}function Ny({client:e,onSelectSession:t}){const[n,s]=p.useState([]),[r,o]=p.useState(!0),[a,i]=p.useState(null),[m,f]=p.useState(null),[l,c]=p.useState(""),[u,h]=p.useState(!0),b=p.useRef(null),v=p.useCallback(async()=>{if(!e.supportsSessionList){o(!1);return}o(!0);try{const _=await e.listSessions();s(_.sessions)}catch(_){console.warn("[SidebarSessionList] Failed to load:",_)}finally{o(!1)}},[e]);p.useEffect(()=>{e.getState()==="connected"&&e.supportsSessionList&&v()},[e,v]),p.useEffect(()=>{const _=g=>{g==="connected"&&setTimeout(v,200)};return e.setConnectionStateHandler(_),()=>e.removeConnectionStateHandler(_)},[e,v]),p.useEffect(()=>{const _=setInterval(v,1e4);return()=>clearInterval(_)},[v]),p.useEffect(()=>{e.setSessionDeletedHandler(_=>{v()}),e.setSessionRenamedHandler((_,g)=>{v()})},[e,v]),p.useEffect(()=>{e.setErrorMessageHandler(_=>{/Method not found/i.test(_)&&/session\/(rename|delete)/i.test(_)&&(h(!1),f(null))})},[e]),p.useEffect(()=>{m&&b.current&&(b.current.focus(),b.current.select())},[m]);const w=p.useCallback(_=>{const g=_.title&&_.title.trim()?_.title:_.sessionId.slice(0,8);if(window.confirm(Se("acp.confirmDelete",{label:g})))try{e.deleteSession(_.sessionId),s(x=>x.filter(j=>j.sessionId!==_.sessionId)),a===_.sessionId&&i(null)}catch(x){console.error("[SidebarSessionList] delete failed:",x)}},[e,a]),y=p.useCallback(_=>{f(_.sessionId),c(_.title&&_.title.trim()?_.title:"")},[]),T=p.useCallback(()=>{if(!m)return;const _=l.trim();if(!_){f(null);return}try{e.renameSession(m,_),s(g=>g.map(x=>x.sessionId===m?{...x,title:_}:x))}catch(g){console.error("[SidebarSessionList] rename failed:",g)}f(null)},[e,m,l]),A=p.useCallback(()=>{f(null)},[]),k=p.useCallback(_=>{_.key==="Enter"?(_.preventDefault(),T()):_.key==="Escape"&&(_.preventDefault(),A())},[T,A]),O=p.useMemo(()=>[...n].sort((_,g)=>{const x=_.updatedAt?new Date(_.updatedAt).getTime():0;return(g.updatedAt?new Date(g.updatedAt).getTime():0)-x}),[n]);if(r&&n.length===0)return d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx("span",{className:"text-xs text-text-muted font-display",children:G("common.loading")})});if(n.length===0)return d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx("span",{className:"text-xs text-text-muted font-display",children:G("acp.emptySessions")})});const E=Py(O);return d.jsx("nav",{className:"py-1","aria-label":G("acp.historyNav"),children:E.map((_,g)=>d.jsxs("div",{children:[g>0&&d.jsx("div",{className:"mx-3 my-2 border-t border-border/40"}),d.jsx("div",{className:"px-4 py-2",children:d.jsx("span",{className:"text-[10px] font-display font-semibold uppercase tracking-widest text-text-muted/70",children:_.label})}),_.sessions.map(x=>{const j=m===x.sessionId;return d.jsxs("div",{className:Q("group relative flex items-center gap-2.5 px-4 py-2 transition-colors",x.sessionId===a?"bg-brand/8 text-text-primary":"text-text-secondary hover:bg-surface-2/60 hover:text-text-primary"),children:[d.jsx(gu,{className:"h-3.5 w-3.5 flex-shrink-0 opacity-50"}),j?d.jsx("input",{ref:b,type:"text",value:l,onChange:I=>c(I.target.value),onKeyDown:k,onBlur:T,className:"flex-1 min-w-0 bg-surface-2 border border-border rounded px-1 py-0.5 text-sm font-display text-text-primary outline-none focus:border-brand",onClick:I=>I.stopPropagation()}):d.jsx("button",{type:"button",onClick:()=>{i(x.sessionId),t(x)},className:"flex-1 min-w-0 text-left",title:x.title||x.sessionId,children:d.jsx("span",{className:"text-sm font-display truncate leading-snug block",children:x.title&&x.title.trim()?x.title:G("acp.newSession")})}),j?d.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[d.jsx("button",{type:"button",onClick:T,className:"h-6 w-6 flex items-center justify-center rounded text-text-muted hover:text-brand-text hover:bg-brand/10 transition-colors",title:G("acp.confirm"),children:d.jsx(hn,{className:"h-3.5 w-3.5"})}),d.jsx("button",{type:"button",onClick:A,className:"h-6 w-6 flex items-center justify-center rounded text-text-muted hover:text-status-error hover:bg-status-error/10 transition-colors",title:G("common.cancel"),children:d.jsx(bn,{className:"h-3.5 w-3.5"})})]}):d.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",title:u?void 0:G("acp.noSessionManagement"),children:[d.jsx("button",{type:"button",disabled:!u,onClick:I=>{I.stopPropagation(),u&&y(x)},className:Q("h-6 w-6 flex items-center justify-center rounded transition-colors",u?"text-text-muted hover:text-brand-text hover:bg-brand/10":"text-text-muted/30 cursor-not-allowed"),title:G(u?"acp.rename":"acp.renameUnsupported"),children:d.jsx(Na,{className:"h-3 w-3"})}),d.jsx("button",{type:"button",disabled:!u,onClick:I=>{I.stopPropagation(),u&&w(x)},className:Q("h-6 w-6 flex items-center justify-center rounded transition-colors",u?"text-text-muted hover:text-status-error hover:bg-status-error/10":"text-text-muted/30 cursor-not-allowed"),title:G(u?"acp.delete":"acp.deleteUnsupported"),children:d.jsx(Hu,{className:"h-3 w-3"})})]})]},x.sessionId)})]},_.label))})}function Py(e){const t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),s=new Date(n.getTime()-864e5),r=[{label:G("resume.today"),sessions:[]},{label:G("resume.yesterday"),sessions:[]},{label:G("resume.earlier"),sessions:[]}];for(const o of e){const a=o.updatedAt?new Date(o.updatedAt):new Date(0);a>=n?r[0].sessions.push(o):a>=s?r[1].sessions.push(o):r[2].sessions.push(o)}return r.filter(o=>o.sessions.length>0)}function Iy({url:e,token:t,onBack:n}){const[s,r]=p.useState(null),[o,a]=p.useState("disconnected"),[i,m]=p.useState(null),f=p.useRef(null);return p.useEffect(()=>{const l=new es({proxyUrl:e,token:t});return l.setConnectionStateHandler((c,u)=>{a(c),m(u||null)}),f.current=l,r(l),l.connect().catch(c=>{c instanceof ll||(m(c.message),a("error"))}),()=>{l.disconnect(),f.current=null,r(null),a("disconnected")}},[e,t]),d.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[i&&o==="error"&&d.jsxs("div",{className:"px-4 py-2 bg-status-error/10 text-status-error text-sm border-b",children:[i,d.jsx("button",{onClick:n,className:"ml-3 underline hover:no-underline",children:"Back to Dashboard"})]}),o==="connecting"&&d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"animate-spin h-8 w-8 border-2 border-brand border-t-transparent rounded-full mx-auto mb-3"}),d.jsx("p",{className:"text-text-muted text-sm",children:"Connecting to ACP agent..."})]})}),o==="error"&&!s&&d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx("p",{className:"font-medium mb-1",children:"Connection Failed"}),d.jsx("p",{className:"text-text-muted text-sm mb-3",children:i}),d.jsx("button",{onClick:n,className:"rounded-lg bg-brand px-4 py-2 text-sm font-medium text-white hover:bg-brand-light transition-colors",children:"Back to Dashboard"})]})}),s&&o==="connected"&&d.jsx(My,{client:s})]})}const ds="rcs_admin_key";function Dy(){try{return localStorage.getItem(ds)}catch{return null}}function Oy(){const[e,t]=p.useState(Dy),n=p.useCallback(s=>{const r=s.trim();t(r||null);try{r?localStorage.setItem(ds,r):localStorage.removeItem(ds)}catch{}},[]);return{adminKey:e,setAdminKey:n}}const oa=p.lazy(()=>Me(()=>import("./Dashboard-DBI7CC6n.js"),__vite__mapDeps([4,2,5,6,7,8,1,9])).then(e=>({default:e.Dashboard}))),Ly=p.lazy(()=>Me(()=>import("./SessionDetail-B_A6aCRq.js"),__vite__mapDeps([10,2,6,8,11,12,13,14,7,15,16,1,9])).then(e=>({default:e.SessionDetail}))),Fy=p.lazy(()=>Me(()=>import("./ShareLanding-BK4eSvOG.js"),__vite__mapDeps([17,2,1,9])).then(e=>({default:e.ShareLanding}))),aa=p.lazy(()=>Me(()=>import("./ArtifactsGallery-CRFsE12L.js").then(e=>e.a),__vite__mapDeps([14,2,8,13])).then(e=>({default:e.ArtifactsGallery}))),$y=p.lazy(()=>Me(()=>import("./ArtifactView-BYrK33ug.js"),__vite__mapDeps([18,2,14,8,13,11,1,9])).then(e=>({default:e.ArtifactView}))),Uy=p.lazy(()=>Me(()=>import("./MemoriesPage-BsU6Szxn.js"),__vite__mapDeps([19,2,15,8,1,9])).then(e=>({default:e.MemoriesPage}))),zy=p.lazy(()=>Me(()=>import("./Claim-6emQ-SVR.js"),__vite__mapDeps([20,2,1,9])).then(e=>({default:e.Claim}))),Hy=p.lazy(()=>Me(()=>import("./Login-B8gUS3O-.js"),__vite__mapDeps([21,2,1,9])).then(e=>({default:e.Login}))),By=p.lazy(()=>Me(()=>import("./Register-C8E6Qs1U.js"),__vite__mapDeps([22,2,1,9])).then(e=>({default:e.Register}))),Wy=p.lazy(()=>Me(()=>import("./Setup-kURI6wq2.js"),__vite__mapDeps([23,2,1,9])).then(e=>({default:e.Setup}))),Gy=p.lazy(()=>Me(()=>import("./Join-DC_rWotf.js"),__vite__mapDeps([24,2,1,9])).then(e=>({default:e.Join}))),Vy=p.lazy(()=>Me(()=>import("./UserSettings-NlYkR5UG.js"),__vite__mapDeps([25,2,16,13,1,9])).then(e=>({default:e.UserSettings}))),qy=p.lazy(()=>Me(()=>import("./TeamList-DAMTHBZt.js"),__vite__mapDeps([26,2,8,1,9])).then(e=>({default:e.TeamList}))),Ky=p.lazy(()=>Me(()=>import("./TeamDetail-EcCza1lF.js"),__vite__mapDeps([27,2,5,6,12,13,1,9])).then(e=>({default:e.TeamDetail}))),Yy=p.lazy(()=>Me(()=>import("./TeamSettings-BcRIGvC4.js"),__vite__mapDeps([28,2,1,9])).then(e=>({default:e.TeamSettings}))),Xy=p.lazy(()=>Me(()=>import("./AdminPanel-jgwgrsVM.js"),__vite__mapDeps([29,2,1,9])).then(e=>({default:e.AdminPanel}))),Qy=new Set(["login","register","setup","join","share"]),Jy=new Set(["login","register","setup","join"]);function Zy(){return d.jsx(Xu,{defaultTheme:"system",children:d.jsx(Zh,{children:d.jsx(ev,{})})})}function ev(){const[e,t]=p.useState("dashboard"),[n,s]=p.useState(null),[r,o]=p.useState(null),[a,i]=p.useState(null),[m,f]=p.useState(null),{adminKey:l}=Oy(),{user:c,isLoading:u,checkSetupStatus:h}=il();p.useEffect(()=>{zh(l)},[l]);const[b,v]=p.useState(!1);p.useEffect(()=>{!u&&!c?h().then(v):c&&v(!1)},[u,c,h]);const w=p.useCallback(()=>{const x=window.location.pathname,j=new URLSearchParams(window.location.search);if(j.get("acp")==="1"){const P=sessionStorage.getItem("acp_connection");if(P)try{const U=JSON.parse(P);if(U.url&&U.token){f({url:U.url,token:U.token}),sessionStorage.removeItem("acp_connection");const Y=new URL(window.location.href);Y.searchParams.delete("acp"),window.history.replaceState(null,"",Y),t("acp");return}}catch{sessionStorage.removeItem("acp_connection")}}const D=j.get("sid");if(D){new URL(window.location.href).searchParams.delete("sid"),window.history.replaceState(null,"",`/code/${D}`),s(D),i(null),t("session");return}if(x==="/login"){t("login");return}if(x==="/register"){t("register");return}if(x==="/setup"){t("setup");return}if(x==="/join"){t("join");return}if(x==="/settings"){t("settings");return}if(x==="/admin"){t("admin");return}if(x.match(/^\/teams\/([^/]+)\/settings$/)){t("team-settings");return}if(x.match(/^\/teams\/([^/]+)$/)){t("team-detail");return}if(x==="/teams"){t("teams");return}const z=x.match(/^\/code\/s\/([^/]+)/);if(z&&z[1]){i(z[1]),s(null),t("share");return}const C=x.match(/^\/code\/a\/([^/]+)/);if(C&&C[1]){o(C[1]),s(null),i(null),t("artifact-view");return}if(x==="/code/artifacts"||x==="/code/artifacts/"){o(null),s(null),i(null),t("artifacts");return}if(x==="/code/memories"||x==="/code/memories/"){o(null),s(null),i(null),t("memories");return}const S=x.match(/^\/code\/claim\/([^/]+)/);if(S&&S[1]){t("claim");return}const H=x.match(/^\/code\/([^/]+)/);H&&H[1]?(s(H[1]),i(null),t("session")):(s(null),i(null),t("dashboard"))},[]);p.useEffect(()=>(w(),window.addEventListener("popstate",w),()=>window.removeEventListener("popstate",w)),[w]);const y=p.useCallback(x=>{window.history.pushState(null,"",`/code/${x}`),s(x),i(null),o(null),t("session")},[]),T=p.useCallback(()=>{window.history.pushState(null,"","/code/artifacts"),o(null),s(null),i(null),t("artifacts")},[]),A=p.useCallback(()=>{window.history.pushState(null,"","/code/memories"),o(null),s(null),i(null),t("memories")},[]),k=p.useCallback(()=>{window.history.pushState(null,"","/code/"),s(null),i(null),o(null),f(null),t("dashboard")},[]),O=(()=>{let x=e;return u||(b&&x!=="setup"&&x!=="join"&&(x="setup"),!c&&!Qy.has(x)&&(x="login"),c&&(x==="login"||x==="setup")&&(x="dashboard")),x})();if(p.useEffect(()=>{u||(O==="setup"&&window.location.pathname!=="/setup"?window.history.replaceState(null,"","/setup"):O==="login"&&window.location.pathname!=="/login"?window.history.replaceState(null,"","/login"):O==="dashboard"&&c&&window.location.pathname!=="/code/"&&window.history.replaceState(null,"","/code/"))},[O,c,u]),u)return d.jsx("div",{className:"flex h-screen items-center justify-center bg-surface-0 text-text-muted",children:"Loading..."});const E=()=>{if(m&&O==="acp")return d.jsx(Iy,{url:m.url,token:m.token,onBack:k});switch(O){case"login":return d.jsx(Hy,{onSuccess:k,onNavigateRegister:()=>t("register")});case"register":return d.jsx(By,{onSuccess:k,onBack:()=>t("login")});case"setup":return d.jsx(Wy,{onSuccess:k,onAlreadyDone:k});case"join":return d.jsx(Gy,{onSuccess:k,onInvalidInvite:k});case"settings":return d.jsx(Vy,{});case"teams":return d.jsx(qy,{});case"team-detail":return d.jsx(Ky,{});case"team-settings":return d.jsx(Yy,{});case"admin":return(c==null?void 0:c.role)!=="admin"?d.jsx("div",{className:"flex flex-1 items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx("p",{className:"text-status-error",children:"403 — Admin access required"}),d.jsx("a",{href:"/code/",className:"mt-4 inline-block text-brand-text hover:underline",children:G("nav.dashboard")})]})}):d.jsx(Xy,{});case"share":return d.jsx(Fy,{});case"claim":return d.jsx(zy,{});case"artifacts":return d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(aa,{})});case"artifact-view":return r?d.jsx($y,{artifactId:r,onBack:T}):d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(aa,{})});case"memories":return d.jsx(Uy,{});case"session":return n?d.jsx(Ly,{sessionId:n,onBack:k},n):d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(oa,{onNavigateSession:y})});default:return d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(oa,{onNavigateSession:y})})}},_=!Jy.has(O)&&O!=="session",g=O==="artifact-view";return d.jsxs("div",{className:"flex h-screen flex-col bg-surface-0 text-text-primary",children:[_&&d.jsx(tg,{sessionTitle:m?"ACP":void 0,sessionSource:m?"acp":void 0,onBack:m||a?k:void 0,onNavigateArtifacts:g?void 0:T,onNavigateMemories:A}),d.jsx(p.Suspense,{fallback:d.jsx("div",{className:"flex flex-1 items-center justify-center text-text-muted",children:"Loading..."}),children:E()})]})}xy();zc.createRoot(document.getElementById("root")).render(d.jsx(p.StrictMode,{children:d.jsx(Zy,{})}));export{qv as $,es as A,_a as B,nx as C,pb as D,Ou as E,ou as F,Ia as G,Fu as H,Qv as I,ew as J,I0 as K,ja as L,Hs as M,Hu as N,Gx as O,Na as P,eg as Q,Bx as R,Ru as S,Dh as T,Oa as U,qu as V,ae as W,bn as X,Dv as Y,Av as Z,Fv as _,My as a,_v as a0,Mv as a1,$v as a2,Gv as a3,Ev as a4,hv as a5,Lv as a6,Ov as a7,yv as a8,Xv as a9,le as aA,Rt as aB,Id as aC,lb as aD,ov as aE,lv as aF,mv as aG,$n as aH,dv as aI,av as aJ,cv as aK,nw as aL,Jv as aM,fv as aN,G as aO,Se as aP,ib as aQ,iv as aR,Ey as aS,Hh as aT,Pd as aU,il as aV,nn as aW,Yh as aX,Bv as aa,Hv as ab,zv as ac,Uv as ad,gv as ae,bv as af,xv as ag,pv as ah,kv as ai,jv as aj,Vv as ak,Yv as al,Tv as am,Rv as an,Nv as ao,Sv as ap,Kv as aq,vv as ar,Cv as as,wv as at,Pv as au,Iv as av,Wv as aw,fa as ax,Q as ay,by as az,_r as b,$h as c,Wb as d,hn as e,gn as f,Ra as g,tu as h,ru as i,tw as j,Vx as k,ll as l,tl as m,rl as n,Ln as o,Ph as p,Po as q,nl as r,py as s,Pa as t,lc as u,dc as v,cc as w,Wx as x,Mu as y,Pu as z};
393
+ \`\`\``}B.push({type:"text",text:re}),q.push(ee)}}catch(re){console.error("[ChatInterface] Failed to process attachment:",re)}if(B.length===0)return;const K={type:"user_message",id:`user-${Date.now()}`,content:L,images:V.length>0?V:void 0,attachments:q.length>0?q:void 0};s(ee=>[...ee,K]),o(!0);try{await e.sendPrompt(B)}catch(ee){console.error("[ChatInterface] Failed to send prompt:",ee),o(!1)}},[r,a,e,_,g,x,O,m,j,C]);return d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsx(Wb,{entries:n,isLoading:r&&!a?!1:r,onPermissionRespond:(M,L,$)=>{H(M,L,$)},emptyTitle:a?G("session.emptyTitle"):void 0,emptyDescription:a?G("acp.emptyDescription"):void 0}),d.jsx(ax,{requests:P,onRespond:U}),u&&d.jsx("div",{className:"mx-auto max-w-3xl w-full px-4 sm:px-8 pb-1",children:d.jsxs("div",{className:"rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 px-3 py-2 text-sm text-red-700 dark:text-red-300 flex items-center justify-between",children:[d.jsx("span",{children:u}),d.jsx("button",{type:"button",onClick:()=>h(null),className:"ml-2 text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200 flex-shrink-0",children:"×"})]})}),d.jsxs("div",{className:"flex-shrink-0",children:[d.jsxs("div",{className:"max-w-3xl mx-auto w-full px-4 sm:px-8 pb-1 flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(_y,{mode:A??v,onModeChange:M=>{k(null),w(M),localStorage.setItem("acp_permission_mode",M)}}),d.jsx(hy,{client:e}),d.jsx(lx,{usage:y})]}),n.length>0&&d.jsxs(D0,{children:[d.jsx(O0,{asChild:!0,children:d.jsxs(Dt,{variant:"ghost",size:"sm",className:"h-7 text-xs text-text-muted hover:text-brand-text font-display gap-1",onClick:C,children:[d.jsx(Pa,{className:"h-3 w-3"}),G("acp.newSession")]})}),d.jsx(L0,{children:"New Thread"})]})]}),d.jsx(nx,{onSubmit:Y,isLoading:r,onInterrupt:S,disabled:!a,placeholder:G(a?"acp.inputPlaceholder":"acp.waitingPlaceholder"),supportsAttachments:O,commands:_.length>0?_:void 0,queueWhileLoading:!0})]})]})}function jy(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function My({client:e,agentId:t}){nn();const[n,s]=p.useState(!1),r=p.useCallback(async o=>{try{if(e.supportsLoadSession)await e.loadSession({sessionId:o.sessionId,cwd:o.cwd});else if(e.supportsResumeSession)await e.resumeSession({sessionId:o.sessionId,cwd:o.cwd});else throw new Error("Loading or resuming sessions is not supported by this agent.")}catch(a){console.error("Failed to load/resume session:",a)}},[e]);return d.jsxs("div",{className:"flex h-full w-full",children:[d.jsxs("div",{className:Q("hidden md:flex flex-col border-r border-border/60 bg-surface-1/50 transition-all duration-200 flex-shrink-0",n?"w-12":"w-64"),children:[d.jsxs("div",{className:"flex items-center justify-between px-3 py-4",children:[!n&&d.jsx("span",{className:"text-xs font-display font-semibold text-text-muted uppercase tracking-widest px-1",children:G("acp.sessions")}),d.jsxs("div",{className:Q("flex items-center gap-0.5",n&&"mx-auto"),children:[!n&&d.jsx("button",{type:"button",onClick:()=>{},className:"h-7 w-7 flex items-center justify-center rounded-lg text-text-muted hover:text-brand-text hover:bg-brand/10 transition-colors",title:G("acp.newSession"),children:d.jsx(Pa,{className:"h-4 w-4"})}),d.jsx("button",{type:"button",onClick:()=>s(!n),className:"h-7 w-7 flex items-center justify-center rounded-lg text-text-muted hover:text-text-primary hover:bg-surface-2 transition-colors",children:n?d.jsx(Cu,{className:"h-4 w-4"}):d.jsx(wu,{className:"h-4 w-4"})})]})]}),!n&&d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(Ny,{client:e,onSelectSession:r})})]}),d.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:d.jsx(Ry,{client:e,agentId:t})})]})}function Ny({client:e,onSelectSession:t}){const[n,s]=p.useState([]),[r,o]=p.useState(!0),[a,i]=p.useState(null),[m,f]=p.useState(null),[l,c]=p.useState(""),[u,h]=p.useState(!0),b=p.useRef(null),v=p.useCallback(async()=>{if(!e.supportsSessionList){o(!1);return}o(!0);try{const _=await e.listSessions();s(_.sessions)}catch(_){console.warn("[SidebarSessionList] Failed to load:",_)}finally{o(!1)}},[e]);p.useEffect(()=>{e.getState()==="connected"&&e.supportsSessionList&&v()},[e,v]),p.useEffect(()=>{const _=g=>{g==="connected"&&setTimeout(v,200)};return e.setConnectionStateHandler(_),()=>e.removeConnectionStateHandler(_)},[e,v]),p.useEffect(()=>{const _=setInterval(v,1e4);return()=>clearInterval(_)},[v]),p.useEffect(()=>{e.setSessionDeletedHandler(_=>{v()}),e.setSessionRenamedHandler((_,g)=>{v()})},[e,v]),p.useEffect(()=>{e.setErrorMessageHandler(_=>{/Method not found/i.test(_)&&/session\/(rename|delete)/i.test(_)&&(h(!1),f(null))})},[e]),p.useEffect(()=>{m&&b.current&&(b.current.focus(),b.current.select())},[m]);const w=p.useCallback(_=>{const g=_.title&&_.title.trim()?_.title:_.sessionId.slice(0,8);if(window.confirm(Se("acp.confirmDelete",{label:g})))try{e.deleteSession(_.sessionId),s(x=>x.filter(j=>j.sessionId!==_.sessionId)),a===_.sessionId&&i(null)}catch(x){console.error("[SidebarSessionList] delete failed:",x)}},[e,a]),y=p.useCallback(_=>{f(_.sessionId),c(_.title&&_.title.trim()?_.title:"")},[]),T=p.useCallback(()=>{if(!m)return;const _=l.trim();if(!_){f(null);return}try{e.renameSession(m,_),s(g=>g.map(x=>x.sessionId===m?{...x,title:_}:x))}catch(g){console.error("[SidebarSessionList] rename failed:",g)}f(null)},[e,m,l]),A=p.useCallback(()=>{f(null)},[]),k=p.useCallback(_=>{_.key==="Enter"?(_.preventDefault(),T()):_.key==="Escape"&&(_.preventDefault(),A())},[T,A]),O=p.useMemo(()=>[...n].sort((_,g)=>{const x=_.updatedAt?new Date(_.updatedAt).getTime():0;return(g.updatedAt?new Date(g.updatedAt).getTime():0)-x}),[n]);if(r&&n.length===0)return d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx("span",{className:"text-xs text-text-muted font-display",children:G("common.loading")})});if(n.length===0)return d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx("span",{className:"text-xs text-text-muted font-display",children:G("acp.emptySessions")})});const E=Py(O);return d.jsx("nav",{className:"py-1","aria-label":G("acp.historyNav"),children:E.map((_,g)=>d.jsxs("div",{children:[g>0&&d.jsx("div",{className:"mx-3 my-2 border-t border-border/40"}),d.jsx("div",{className:"px-4 py-2",children:d.jsx("span",{className:"text-[10px] font-display font-semibold uppercase tracking-widest text-text-muted/70",children:_.label})}),_.sessions.map(x=>{const j=m===x.sessionId;return d.jsxs("div",{className:Q("group relative flex items-center gap-2.5 px-4 py-2 transition-colors",x.sessionId===a?"bg-brand/8 text-text-primary":"text-text-secondary hover:bg-surface-2/60 hover:text-text-primary"),children:[d.jsx(gu,{className:"h-3.5 w-3.5 flex-shrink-0 opacity-50"}),j?d.jsx("input",{ref:b,type:"text",value:l,onChange:I=>c(I.target.value),onKeyDown:k,onBlur:T,className:"flex-1 min-w-0 bg-surface-2 border border-border rounded px-1 py-0.5 text-sm font-display text-text-primary outline-none focus:border-brand",onClick:I=>I.stopPropagation()}):d.jsx("button",{type:"button",onClick:()=>{i(x.sessionId),t(x)},className:"flex-1 min-w-0 text-left",title:x.title||x.sessionId,children:d.jsx("span",{className:"text-sm font-display truncate leading-snug block",children:x.title&&x.title.trim()?x.title:G("acp.newSession")})}),j?d.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[d.jsx("button",{type:"button",onClick:T,className:"h-6 w-6 flex items-center justify-center rounded text-text-muted hover:text-brand-text hover:bg-brand/10 transition-colors",title:G("acp.confirm"),children:d.jsx(hn,{className:"h-3.5 w-3.5"})}),d.jsx("button",{type:"button",onClick:A,className:"h-6 w-6 flex items-center justify-center rounded text-text-muted hover:text-status-error hover:bg-status-error/10 transition-colors",title:G("common.cancel"),children:d.jsx(bn,{className:"h-3.5 w-3.5"})})]}):d.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",title:u?void 0:G("acp.noSessionManagement"),children:[d.jsx("button",{type:"button",disabled:!u,onClick:I=>{I.stopPropagation(),u&&y(x)},className:Q("h-6 w-6 flex items-center justify-center rounded transition-colors",u?"text-text-muted hover:text-brand-text hover:bg-brand/10":"text-text-muted/30 cursor-not-allowed"),title:G(u?"acp.rename":"acp.renameUnsupported"),children:d.jsx(Na,{className:"h-3 w-3"})}),d.jsx("button",{type:"button",disabled:!u,onClick:I=>{I.stopPropagation(),u&&w(x)},className:Q("h-6 w-6 flex items-center justify-center rounded transition-colors",u?"text-text-muted hover:text-status-error hover:bg-status-error/10":"text-text-muted/30 cursor-not-allowed"),title:G(u?"acp.delete":"acp.deleteUnsupported"),children:d.jsx(Hu,{className:"h-3 w-3"})})]})]},x.sessionId)})]},_.label))})}function Py(e){const t=new Date,n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),s=new Date(n.getTime()-864e5),r=[{label:G("resume.today"),sessions:[]},{label:G("resume.yesterday"),sessions:[]},{label:G("resume.earlier"),sessions:[]}];for(const o of e){const a=o.updatedAt?new Date(o.updatedAt):new Date(0);a>=n?r[0].sessions.push(o):a>=s?r[1].sessions.push(o):r[2].sessions.push(o)}return r.filter(o=>o.sessions.length>0)}function Iy({url:e,token:t,onBack:n}){const[s,r]=p.useState(null),[o,a]=p.useState("disconnected"),[i,m]=p.useState(null),f=p.useRef(null);return p.useEffect(()=>{const l=new es({proxyUrl:e,token:t});return l.setConnectionStateHandler((c,u)=>{a(c),m(u||null)}),f.current=l,r(l),l.connect().catch(c=>{c instanceof ll||(m(c.message),a("error"))}),()=>{l.disconnect(),f.current=null,r(null),a("disconnected")}},[e,t]),d.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[i&&o==="error"&&d.jsxs("div",{className:"px-4 py-2 bg-status-error/10 text-status-error text-sm border-b",children:[i,d.jsx("button",{onClick:n,className:"ml-3 underline hover:no-underline",children:"Back to Dashboard"})]}),o==="connecting"&&d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"animate-spin h-8 w-8 border-2 border-brand border-t-transparent rounded-full mx-auto mb-3"}),d.jsx("p",{className:"text-text-muted text-sm",children:"Connecting to ACP agent..."})]})}),o==="error"&&!s&&d.jsx("div",{className:"flex-1 flex items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx("p",{className:"font-medium mb-1",children:"Connection Failed"}),d.jsx("p",{className:"text-text-muted text-sm mb-3",children:i}),d.jsx("button",{onClick:n,className:"rounded-lg bg-brand px-4 py-2 text-sm font-medium text-white hover:bg-brand-light transition-colors",children:"Back to Dashboard"})]})}),s&&o==="connected"&&d.jsx(My,{client:s})]})}const ds="rcs_admin_key";function Dy(){try{return localStorage.getItem(ds)}catch{return null}}function Oy(){const[e,t]=p.useState(Dy),n=p.useCallback(s=>{const r=s.trim();t(r||null);try{r?localStorage.setItem(ds,r):localStorage.removeItem(ds)}catch{}},[]);return{adminKey:e,setAdminKey:n}}const oa=p.lazy(()=>Me(()=>import("./Dashboard-BJqvH4Wh.js"),__vite__mapDeps([4,2,5,6,7,8,1,9])).then(e=>({default:e.Dashboard}))),Ly=p.lazy(()=>Me(()=>import("./SessionDetail-CM8lZ9rp.js"),__vite__mapDeps([10,2,6,8,11,12,13,14,7,15,16,1,9])).then(e=>({default:e.SessionDetail}))),Fy=p.lazy(()=>Me(()=>import("./ShareLanding-CkVddcMe.js"),__vite__mapDeps([17,2,1,9])).then(e=>({default:e.ShareLanding}))),aa=p.lazy(()=>Me(()=>import("./ArtifactsGallery-BBnDfj2k.js").then(e=>e.a),__vite__mapDeps([14,2,8,13])).then(e=>({default:e.ArtifactsGallery}))),$y=p.lazy(()=>Me(()=>import("./ArtifactView-DSEwTsDl.js"),__vite__mapDeps([18,2,14,8,13,11,1,9])).then(e=>({default:e.ArtifactView}))),Uy=p.lazy(()=>Me(()=>import("./MemoriesPage-CjRfwKDG.js"),__vite__mapDeps([19,2,15,8,1,9])).then(e=>({default:e.MemoriesPage}))),zy=p.lazy(()=>Me(()=>import("./Claim-B2Xu_cvl.js"),__vite__mapDeps([20,2,1,9])).then(e=>({default:e.Claim}))),Hy=p.lazy(()=>Me(()=>import("./Login-DMdqmsTJ.js"),__vite__mapDeps([21,2,1,9])).then(e=>({default:e.Login}))),By=p.lazy(()=>Me(()=>import("./Register-n4PilsVQ.js"),__vite__mapDeps([22,2,1,9])).then(e=>({default:e.Register}))),Wy=p.lazy(()=>Me(()=>import("./Setup-DfGuh7jn.js"),__vite__mapDeps([23,2,1,9])).then(e=>({default:e.Setup}))),Gy=p.lazy(()=>Me(()=>import("./Join-C3FQBiYX.js"),__vite__mapDeps([24,2,1,9])).then(e=>({default:e.Join}))),Vy=p.lazy(()=>Me(()=>import("./UserSettings-Bif5fxbq.js"),__vite__mapDeps([25,2,16,13,1,9])).then(e=>({default:e.UserSettings}))),qy=p.lazy(()=>Me(()=>import("./TeamList-BdVZ9Tjt.js"),__vite__mapDeps([26,2,8,1,9])).then(e=>({default:e.TeamList}))),Ky=p.lazy(()=>Me(()=>import("./TeamDetail-DuizvSbi.js"),__vite__mapDeps([27,2,5,6,12,13,1,9])).then(e=>({default:e.TeamDetail}))),Yy=p.lazy(()=>Me(()=>import("./TeamSettings-B8P4jDlV.js"),__vite__mapDeps([28,2,1,9])).then(e=>({default:e.TeamSettings}))),Xy=p.lazy(()=>Me(()=>import("./AdminPanel-kHOmCjvI.js"),__vite__mapDeps([29,2,1,9])).then(e=>({default:e.AdminPanel}))),Qy=new Set(["login","register","setup","join","share"]),Jy=new Set(["login","register","setup","join"]);function Zy(){return d.jsx(Xu,{defaultTheme:"system",children:d.jsx(Zh,{children:d.jsx(ev,{})})})}function ev(){const[e,t]=p.useState("dashboard"),[n,s]=p.useState(null),[r,o]=p.useState(null),[a,i]=p.useState(null),[m,f]=p.useState(null),{adminKey:l}=Oy(),{user:c,isLoading:u,checkSetupStatus:h}=il();p.useEffect(()=>{zh(l)},[l]);const[b,v]=p.useState(!1);p.useEffect(()=>{!u&&!c?h().then(v):c&&v(!1)},[u,c,h]);const w=p.useCallback(()=>{const x=window.location.pathname,j=new URLSearchParams(window.location.search);if(j.get("acp")==="1"){const P=sessionStorage.getItem("acp_connection");if(P)try{const U=JSON.parse(P);if(U.url&&U.token){f({url:U.url,token:U.token}),sessionStorage.removeItem("acp_connection");const Y=new URL(window.location.href);Y.searchParams.delete("acp"),window.history.replaceState(null,"",Y),t("acp");return}}catch{sessionStorage.removeItem("acp_connection")}}const D=j.get("sid");if(D){new URL(window.location.href).searchParams.delete("sid"),window.history.replaceState(null,"",`/code/${D}`),s(D),i(null),t("session");return}if(x==="/login"){t("login");return}if(x==="/register"){t("register");return}if(x==="/setup"){t("setup");return}if(x==="/join"){t("join");return}if(x==="/settings"){t("settings");return}if(x==="/admin"){t("admin");return}if(x.match(/^\/teams\/([^/]+)\/settings$/)){t("team-settings");return}if(x.match(/^\/teams\/([^/]+)$/)){t("team-detail");return}if(x==="/teams"){t("teams");return}const z=x.match(/^\/code\/s\/([^/]+)/);if(z&&z[1]){i(z[1]),s(null),t("share");return}const C=x.match(/^\/code\/a\/([^/]+)/);if(C&&C[1]){o(C[1]),s(null),i(null),t("artifact-view");return}if(x==="/code/artifacts"||x==="/code/artifacts/"){o(null),s(null),i(null),t("artifacts");return}if(x==="/code/memories"||x==="/code/memories/"){o(null),s(null),i(null),t("memories");return}const S=x.match(/^\/code\/claim\/([^/]+)/);if(S&&S[1]){t("claim");return}const H=x.match(/^\/code\/([^/]+)/);H&&H[1]?(s(H[1]),i(null),t("session")):(s(null),i(null),t("dashboard"))},[]);p.useEffect(()=>(w(),window.addEventListener("popstate",w),()=>window.removeEventListener("popstate",w)),[w]);const y=p.useCallback(x=>{window.history.pushState(null,"",`/code/${x}`),s(x),i(null),o(null),t("session")},[]),T=p.useCallback(()=>{window.history.pushState(null,"","/code/artifacts"),o(null),s(null),i(null),t("artifacts")},[]),A=p.useCallback(()=>{window.history.pushState(null,"","/code/memories"),o(null),s(null),i(null),t("memories")},[]),k=p.useCallback(()=>{window.history.pushState(null,"","/code/"),s(null),i(null),o(null),f(null),t("dashboard")},[]),O=(()=>{let x=e;return u||(b&&x!=="setup"&&x!=="join"&&(x="setup"),!c&&!Qy.has(x)&&(x="login"),c&&(x==="login"||x==="setup")&&(x="dashboard")),x})();if(p.useEffect(()=>{u||(O==="setup"&&window.location.pathname!=="/setup"?window.history.replaceState(null,"","/setup"):O==="login"&&window.location.pathname!=="/login"?window.history.replaceState(null,"","/login"):O==="dashboard"&&c&&window.location.pathname!=="/code/"&&window.history.replaceState(null,"","/code/"))},[O,c,u]),u)return d.jsx("div",{className:"flex h-screen items-center justify-center bg-surface-0 text-text-muted",children:"Loading..."});const E=()=>{if(m&&O==="acp")return d.jsx(Iy,{url:m.url,token:m.token,onBack:k});switch(O){case"login":return d.jsx(Hy,{onSuccess:k,onNavigateRegister:()=>t("register")});case"register":return d.jsx(By,{onSuccess:k,onBack:()=>t("login")});case"setup":return d.jsx(Wy,{onSuccess:k,onAlreadyDone:k});case"join":return d.jsx(Gy,{onSuccess:k,onInvalidInvite:k});case"settings":return d.jsx(Vy,{});case"teams":return d.jsx(qy,{});case"team-detail":return d.jsx(Ky,{});case"team-settings":return d.jsx(Yy,{});case"admin":return(c==null?void 0:c.role)!=="admin"?d.jsx("div",{className:"flex flex-1 items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx("p",{className:"text-status-error",children:"403 — Admin access required"}),d.jsx("a",{href:"/code/",className:"mt-4 inline-block text-brand-text hover:underline",children:G("nav.dashboard")})]})}):d.jsx(Xy,{});case"share":return d.jsx(Fy,{});case"claim":return d.jsx(zy,{});case"artifacts":return d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(aa,{})});case"artifact-view":return r?d.jsx($y,{artifactId:r,onBack:T}):d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(aa,{})});case"memories":return d.jsx(Uy,{});case"session":return n?d.jsx(Ly,{sessionId:n,onBack:k},n):d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(oa,{onNavigateSession:y})});default:return d.jsx("div",{className:"flex-1 overflow-y-auto",children:d.jsx(oa,{onNavigateSession:y})})}},_=!Jy.has(O)&&O!=="session",g=O==="artifact-view";return d.jsxs("div",{className:"flex h-screen flex-col bg-surface-0 text-text-primary",children:[_&&d.jsx(tg,{sessionTitle:m?"ACP":void 0,sessionSource:m?"acp":void 0,onBack:m||a?k:void 0,onNavigateArtifacts:g?void 0:T,onNavigateMemories:A}),d.jsx(p.Suspense,{fallback:d.jsx("div",{className:"flex flex-1 items-center justify-center text-text-muted",children:"Loading..."}),children:E()})]})}xy();zc.createRoot(document.getElementById("root")).render(d.jsx(p.StrictMode,{children:d.jsx(Zy,{})}));export{qv as $,es as A,_a as B,nx as C,pb as D,Ou as E,ou as F,Ia as G,Fu as H,Qv as I,ew as J,I0 as K,ja as L,Hs as M,Hu as N,Gx as O,Na as P,eg as Q,Bx as R,Ru as S,Dh as T,Oa as U,qu as V,ae as W,bn as X,Dv as Y,Av as Z,Fv as _,My as a,_v as a0,Mv as a1,$v as a2,Gv as a3,Ev as a4,hv as a5,Lv as a6,Ov as a7,yv as a8,Xv as a9,le as aA,Rt as aB,Id as aC,lb as aD,ov as aE,lv as aF,mv as aG,$n as aH,dv as aI,av as aJ,cv as aK,nw as aL,Jv as aM,fv as aN,G as aO,Se as aP,ib as aQ,iv as aR,Ey as aS,Hh as aT,Pd as aU,il as aV,nn as aW,Yh as aX,Bv as aa,Hv as ab,zv as ac,Uv as ad,gv as ae,bv as af,xv as ag,pv as ah,kv as ai,jv as aj,Vv as ak,Yv as al,Tv as am,Rv as an,Nv as ao,Sv as ap,Kv as aq,vv as ar,Cv as as,wv as at,Pv as au,Iv as av,Wv as aw,fa as ax,Q as ay,by as az,_r as b,$h as c,Wb as d,hn as e,gn as f,Ra as g,tu as h,ru as i,tw as j,Vx as k,ll as l,tl as m,rl as n,Ln as o,Ph as p,Po as q,nl as r,py as s,Pa as t,lc as u,dc as v,cc as w,Wx as x,Mu as y,Pu as z};