@intent-hq/web 2.286.4 → 2.286.5

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 (202) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{x1zid8su.js → 0DYbsWPQ.js} +1 -1
  3. package/web/app/immutable/chunks/{DIoX_b5x.js → 1oF51_dO.js} +1 -1
  4. package/web/app/immutable/chunks/{CyGw7JU5.js → 23E8CTp8.js} +1 -1
  5. package/web/app/immutable/chunks/{C5p3cAYv.js → 2VxyrQxU.js} +1 -1
  6. package/web/app/immutable/chunks/{Djhs3H6B.js → 6nHc3nuf.js} +1 -1
  7. package/web/app/immutable/chunks/{BvzONeHW.js → 8rNFWfVn.js} +1 -1
  8. package/web/app/immutable/chunks/{BeddIW6i.js → 9ZYfhGCk.js} +1 -1
  9. package/web/app/immutable/chunks/{BzoF1_ij.js → B-q7lHlu.js} +1 -1
  10. package/web/app/immutable/chunks/{DD6Pkbic.js → B0bGmR-9.js} +1 -1
  11. package/web/app/immutable/chunks/{YlwMMeOs.js → B454KCAb.js} +1 -1
  12. package/web/app/immutable/chunks/{BZBudGQG.js → B4mTXFX_.js} +1 -1
  13. package/web/app/immutable/chunks/{CB76QYmX.js → B4u-nJvE.js} +1 -1
  14. package/web/app/immutable/chunks/{Caf4tDH7.js → B6MEEZa5.js} +1 -1
  15. package/web/app/immutable/chunks/{B7JUZ-OL.js → B6fBpdpc.js} +2 -2
  16. package/web/app/immutable/chunks/{xHA823KN.js → B6uFvqQQ.js} +1 -1
  17. package/web/app/immutable/chunks/{CCYqEJG1.js → B7SKdhQ5.js} +1 -1
  18. package/web/app/immutable/chunks/{j1f7tS2i.js → B7zw6FSp.js} +1 -1
  19. package/web/app/immutable/chunks/{DNo8L_9b.js → B8F48053.js} +1 -1
  20. package/web/app/immutable/chunks/{CyMVqmzv.js → B8RtJJ5n.js} +1 -1
  21. package/web/app/immutable/chunks/{vKQIfgIp.js → BAhGcZNc.js} +1 -1
  22. package/web/app/immutable/chunks/{C5qP0fL9.js → BCP4ql_Z.js} +1 -1
  23. package/web/app/immutable/chunks/{DvxEHPPT.js → BDsJY1gP.js} +1 -1
  24. package/web/app/immutable/chunks/{3kw_jVcY.js → BH9CJdcr.js} +1 -1
  25. package/web/app/immutable/chunks/{BrEqoZ1p.js → BHj3hnLy.js} +1 -1
  26. package/web/app/immutable/chunks/{CmWV3gyr.js → BJDCkHOX.js} +1 -1
  27. package/web/app/immutable/chunks/{DC3ZkLye.js → BJZlVRvQ.js} +1 -1
  28. package/web/app/immutable/chunks/{DD0At2PN.js → BK-s56Ka.js} +1 -1
  29. package/web/app/immutable/chunks/{DvgbaoNK.js → BRGC9NUK.js} +1 -1
  30. package/web/app/immutable/chunks/{Cniog18G.js → BT6iNxpZ.js} +1 -1
  31. package/web/app/immutable/chunks/{5JOOVIIo.js → BTLKBS5k.js} +1 -1
  32. package/web/app/immutable/chunks/{DYiKRSyK.js → BUMa5x43.js} +1 -1
  33. package/web/app/immutable/chunks/{DGjH5-Hx.js → BW36mD_6.js} +1 -1
  34. package/web/app/immutable/chunks/{B_vj7xxI.js → BWIW2cBU.js} +1 -1
  35. package/web/app/immutable/chunks/{CSKprktf.js → BYO8onTK.js} +1 -1
  36. package/web/app/immutable/chunks/{DpTBUsJF.js → BYms4r7P.js} +1 -1
  37. package/web/app/immutable/chunks/{DiD3o6_1.js → B_i7CY5G.js} +1 -1
  38. package/web/app/immutable/chunks/{Dm08LoPV.js → BaqKvnTh.js} +1 -1
  39. package/web/app/immutable/chunks/{CLBb9J0e.js → BdS6hKk3.js} +1 -1
  40. package/web/app/immutable/chunks/{CHq8gooQ.js → BdfKIbXO.js} +1 -1
  41. package/web/app/immutable/chunks/BeTy7vuC.js +1 -0
  42. package/web/app/immutable/chunks/{BqJHaeQw.js → Beh1STKE.js} +1 -1
  43. package/web/app/immutable/chunks/{BCPDBuLJ.js → Bf1qx_0R.js} +1 -1
  44. package/web/app/immutable/chunks/{C_CE49CT.js → Bf8eQBE4.js} +1 -1
  45. package/web/app/immutable/chunks/{CrsB8npl.js → BfL7S407.js} +1 -1
  46. package/web/app/immutable/chunks/{CHwcICZW.js → BiDG2Il4.js} +1 -1
  47. package/web/app/immutable/chunks/{C2pKnlEJ.js → BlbGzi5U.js} +1 -1
  48. package/web/app/immutable/chunks/{DQpQ_Eis.js → BnoB224B.js} +1 -1
  49. package/web/app/immutable/chunks/{BctbI4aU.js → BoJtmtyo.js} +1 -1
  50. package/web/app/immutable/chunks/{FSpiE1wW.js → BpXI7wFc.js} +4 -4
  51. package/web/app/immutable/chunks/{CSEB8cDa.js → Bpc1JVYI.js} +1 -1
  52. package/web/app/immutable/chunks/{BrHwmqrG.js → BrtiFETL.js} +1 -1
  53. package/web/app/immutable/chunks/{Cui_1F-9.js → Bstlw48g.js} +1 -1
  54. package/web/app/immutable/chunks/{PCjNYuXW.js → Bt3MDn7a.js} +1 -1
  55. package/web/app/immutable/chunks/{Cx463bih.js → BtozMaaI.js} +1 -1
  56. package/web/app/immutable/chunks/{QPnNKbqJ.js → BuxkN2IX.js} +1 -1
  57. package/web/app/immutable/chunks/{DdMy5hhm.js → Bym0Bg5I.js} +1 -1
  58. package/web/app/immutable/chunks/{BUVJimmV.js → Byveo7gR.js} +1 -1
  59. package/web/app/immutable/chunks/{D0M9u_n-.js → Bzhw8fuk.js} +1 -1
  60. package/web/app/immutable/chunks/{CGy8AR53.js → BzyCNOua.js} +1 -1
  61. package/web/app/immutable/chunks/{6CBvudM-.js → C2P7OURH.js} +1 -1
  62. package/web/app/immutable/chunks/{BuEHStYX.js → C2jdhr88.js} +1 -1
  63. package/web/app/immutable/chunks/{C3jNWf9W.js → C3Fqdvg4.js} +1 -1
  64. package/web/app/immutable/chunks/{CnLkqvzY.js → C47ID617.js} +1 -1
  65. package/web/app/immutable/chunks/{DfYC2vFl.js → C5g-qXVN.js} +1 -1
  66. package/web/app/immutable/chunks/{Bpruhzz0.js → C5sLueiQ.js} +2 -2
  67. package/web/app/immutable/chunks/{B6n3m66K.js → C6d1Lpgs.js} +1 -1
  68. package/web/app/immutable/chunks/{RykOFORR.js → C7tLvCvd.js} +1 -1
  69. package/web/app/immutable/chunks/{C6AX083-.js → CC1eLY1d.js} +1 -1
  70. package/web/app/immutable/chunks/{CpiOwqpL.js → CCgQRuB1.js} +1 -1
  71. package/web/app/immutable/chunks/{HOnA76CN.js → CDUfmTeF.js} +1 -1
  72. package/web/app/immutable/chunks/{BnoRvwv3.js → CDmCuh1q.js} +1 -1
  73. package/web/app/immutable/chunks/{ByIRYR8A.js → CGjXmxxC.js} +1 -1
  74. package/web/app/immutable/chunks/{D9ScELxf.js → CHeCmfic.js} +1 -1
  75. package/web/app/immutable/chunks/{D2b1hcog.js → CKktRvnN.js} +2 -2
  76. package/web/app/immutable/chunks/{C_m_o9vM.js → CLlakE_A.js} +1 -1
  77. package/web/app/immutable/chunks/{BrhmFCB4.js → CNWCoEPX.js} +1 -1
  78. package/web/app/immutable/chunks/{BnWH1iQz.js → CNnRYNSg.js} +1 -1
  79. package/web/app/immutable/chunks/{B8mLANMy.js → COCaJoLR.js} +1 -1
  80. package/web/app/immutable/chunks/{jvKdDF7D.js → COHqw4A9.js} +1 -1
  81. package/web/app/immutable/chunks/{BLFT0vk0.js → CVJpj_hv.js} +1 -1
  82. package/web/app/immutable/chunks/{B5mo4ccL.js → CVxlLDZ3.js} +1 -1
  83. package/web/app/immutable/chunks/{BmufqNuq.js → CWphw-nF.js} +1 -1
  84. package/web/app/immutable/chunks/{H3_j1RTy.js → Ca4KlnGL.js} +1 -1
  85. package/web/app/immutable/chunks/{Dj-i-4vt.js → CawpE1BZ.js} +1 -1
  86. package/web/app/immutable/chunks/{BbJXkiov.js → Cd3EMXIu.js} +1 -1
  87. package/web/app/immutable/chunks/{976zYcoh.js → CdfqD86B.js} +1 -1
  88. package/web/app/immutable/chunks/{1iwlWivR.js → ChIVS4P3.js} +1 -1
  89. package/web/app/immutable/chunks/{D7KhJm9U.js → ChNJI9F9.js} +2 -2
  90. package/web/app/immutable/chunks/{B-GuaxD4.js → Chq-_hGH.js} +1 -1
  91. package/web/app/immutable/chunks/{DojlGzur.js → Ci4eZy6l.js} +1 -1
  92. package/web/app/immutable/chunks/{LcC8t7uh.js → CpxMu1KO.js} +1 -1
  93. package/web/app/immutable/chunks/{BCFbCagC.js → CqY1u59g.js} +1 -1
  94. package/web/app/immutable/chunks/{Cix_mnLj.js → CsjJE25D.js} +4 -4
  95. package/web/app/immutable/chunks/{HgUF9JxD.js → CtBjT8wS.js} +1 -1
  96. package/web/app/immutable/chunks/{DDFSWjQU.js → CthkaT2F.js} +3 -3
  97. package/web/app/immutable/chunks/{DZzZGRg-.js → Cu1j_f-a.js} +1 -1
  98. package/web/app/immutable/chunks/{umDdblid.js → CuQOREPd.js} +1 -1
  99. package/web/app/immutable/chunks/{1Xl1_j69.js → Cv2P5IwK.js} +1 -1
  100. package/web/app/immutable/chunks/{DbulPCWG.js → CvAwBgbR.js} +1 -1
  101. package/web/app/immutable/chunks/{xpSH95ot.js → CznZJVFP.js} +1 -1
  102. package/web/app/immutable/chunks/{3oGwK09B.js → D0kREPO2.js} +1 -1
  103. package/web/app/immutable/chunks/{DPBL52wT.js → D0lrdhHK.js} +7 -7
  104. package/web/app/immutable/chunks/{CQcnUt15.js → D3jhcRTQ.js} +6 -6
  105. package/web/app/immutable/chunks/{CK1AF7GU.js → D5JpXhYt.js} +1 -1
  106. package/web/app/immutable/chunks/{DSkl9mpQ.js → D6D5q4Ew.js} +1 -1
  107. package/web/app/immutable/chunks/{QEDJCahU.js → D8PxHJc4.js} +1 -1
  108. package/web/app/immutable/chunks/{CMAxIbm4.js → D8baytyD.js} +5 -5
  109. package/web/app/immutable/chunks/{zcEXOR-1.js → D98WboQt.js} +1 -1
  110. package/web/app/immutable/chunks/{DauuhR4o.js → D9yQlCcw.js} +1 -1
  111. package/web/app/immutable/chunks/{BfS0Q-nX.js → DA2lF32p.js} +1 -1
  112. package/web/app/immutable/chunks/{u-Y0Tv7i.js → DA9rhdZH.js} +1 -1
  113. package/web/app/immutable/chunks/{DTosDNas.js → DAH744O7.js} +1 -1
  114. package/web/app/immutable/chunks/{2N--vaHR.js → DB7J8e3o.js} +1 -1
  115. package/web/app/immutable/chunks/{NiM-1eU3.js → DBsfadl4.js} +1 -1
  116. package/web/app/immutable/chunks/{Bp8wUB3U.js → DEbQS2b7.js} +1 -1
  117. package/web/app/immutable/chunks/{CL28-RkP.js → DFS1h5bM.js} +1 -1
  118. package/web/app/immutable/chunks/{DOpb_Wa_.js → DHofGzwL.js} +1 -1
  119. package/web/app/immutable/chunks/{B3foPak9.js → DIv5DQkp.js} +1 -1
  120. package/web/app/immutable/chunks/{Bmq5LtFr.js → DJ8UsJ5g.js} +1 -1
  121. package/web/app/immutable/chunks/{CuYFxjMF.js → DJ9TV_yW.js} +1 -1
  122. package/web/app/immutable/chunks/{CAE5fLft.js → DJCDkaNO.js} +1 -1
  123. package/web/app/immutable/chunks/{BSZTRNsD.js → DKoLZG20.js} +1 -1
  124. package/web/app/immutable/chunks/{DQ070aDn.js → DMyC7yXH.js} +2 -2
  125. package/web/app/immutable/chunks/{D5VLKYyC.js → DO2Mffbw.js} +1 -1
  126. package/web/app/immutable/chunks/{C-OvZCj_.js → DOwNo9DZ.js} +1 -1
  127. package/web/app/immutable/chunks/{Bwxf2JuH.js → DP8Z_ndY.js} +1 -1
  128. package/web/app/immutable/chunks/{CeWSuA2o.js → DQ8AKqM-.js} +1 -1
  129. package/web/app/immutable/chunks/{OOZgSySO.js → DR4flnkg.js} +1 -1
  130. package/web/app/immutable/chunks/{DRbQFCiN.js → DRS1rqpE.js} +1 -1
  131. package/web/app/immutable/chunks/{DK77esWJ.js → DRnChFvy.js} +1 -1
  132. package/web/app/immutable/chunks/{pRcFjb-H.js → DV5_5WEJ.js} +1 -1
  133. package/web/app/immutable/chunks/{es3FqSjg.js → DW7ejssb.js} +1 -1
  134. package/web/app/immutable/chunks/{Cnlrbhbh.js → DZsJhl3y.js} +1 -1
  135. package/web/app/immutable/chunks/{B781x4pz.js → Dap9jPSD.js} +2 -2
  136. package/web/app/immutable/chunks/{ChBqCTy0.js → DdnYAljS.js} +1 -1
  137. package/web/app/immutable/chunks/{W48e0TcX.js → Dhio12Im.js} +1 -1
  138. package/web/app/immutable/chunks/{rgwCePpO.js → DiAETlHz.js} +1 -1
  139. package/web/app/immutable/chunks/{CXsEQ4Fe.js → Di_t3UnN.js} +3 -3
  140. package/web/app/immutable/chunks/{dbgkJ9GM.js → DizZ6oR9.js} +1 -1
  141. package/web/app/immutable/chunks/{CMUt7G5B.js → DpK3RLAt.js} +1 -1
  142. package/web/app/immutable/chunks/{CqTutsn0.js → Dwni45Od.js} +1 -1
  143. package/web/app/immutable/chunks/{Cae3uxuh.js → FBVqOFZr.js} +2 -2
  144. package/web/app/immutable/chunks/{B2jOXbpl.js → HE0Ez-BN.js} +1 -1
  145. package/web/app/immutable/chunks/{C24Rzfzk.js → IWgFnHM6.js} +1 -1
  146. package/web/app/immutable/chunks/{vGBd4whl.js → Jly8tXSz.js} +2 -2
  147. package/web/app/immutable/chunks/{B2Ta8ZYX.js → Kurxy4Ry.js} +1 -1
  148. package/web/app/immutable/chunks/{DL9fM9Z6.js → N7T-OZOp.js} +1 -1
  149. package/web/app/immutable/chunks/{BMoKffXR.js → NwLmTC8w.js} +1 -1
  150. package/web/app/immutable/chunks/{Z0VS8LLQ.js → O4dj7v1P.js} +1 -1
  151. package/web/app/immutable/chunks/{6gxnLEJP.js → ODjBUXV3.js} +3 -3
  152. package/web/app/immutable/chunks/{DQ04s54w.js → OWQNVwkr.js} +1 -1
  153. package/web/app/immutable/chunks/{BHBAtBBB.js → Qo9pMmiB.js} +1 -1
  154. package/web/app/immutable/chunks/{CGid_txv.js → TmbqKKnd.js} +1 -1
  155. package/web/app/immutable/chunks/{QLIsYm_0.js → U-VWqwv3.js} +1 -1
  156. package/web/app/immutable/chunks/{CxFDPuIk.js → U8fRO8mK.js} +1 -1
  157. package/web/app/immutable/chunks/{OduqxoGp.js → V2KE0mZQ.js} +1 -1
  158. package/web/app/immutable/chunks/{BJwk8LqM.js → VC3Qg25l.js} +1 -1
  159. package/web/app/immutable/chunks/{DzjRhthn.js → W9RBe3cV.js} +4 -4
  160. package/web/app/immutable/chunks/{BfnrA5Ab.js → XOMHYtyO.js} +1 -1
  161. package/web/app/immutable/chunks/{DQkyZkjw.js → Z7diTfMs.js} +1 -1
  162. package/web/app/immutable/chunks/{DssISSPU.js → ZkyYl7-6.js} +1 -1
  163. package/web/app/immutable/chunks/{Xsgb18SC.js → _xpBRJp7.js} +1 -1
  164. package/web/app/immutable/chunks/{BPDNj0Ug.js → aCSljV8u.js} +1 -1
  165. package/web/app/immutable/chunks/{DIFKHzYL.js → bVKG6nsX.js} +1 -1
  166. package/web/app/immutable/chunks/{Bf4Ffzqn.js → bZ2d0T9K.js} +1 -1
  167. package/web/app/immutable/chunks/{C6FMFHeq.js → cVKjBaok.js} +1 -1
  168. package/web/app/immutable/chunks/{DXJ8guE-.js → cqSRU54c.js} +1 -1
  169. package/web/app/immutable/chunks/{DQayjjKQ.js → dMGmSQbm.js} +1 -1
  170. package/web/app/immutable/chunks/{BbNzaCQR.js → ecyYYP_i.js} +1 -1
  171. package/web/app/immutable/chunks/{BOlugeJj.js → fMhLyE1S.js} +1 -1
  172. package/web/app/immutable/chunks/{FhGlrjm8.js → fX0P5ZzO.js} +1 -1
  173. package/web/app/immutable/chunks/{Bb0plfAx.js → hs0q5uXF.js} +1 -1
  174. package/web/app/immutable/chunks/{Bq3GTaKG.js → ixob39CO.js} +1 -1
  175. package/web/app/immutable/chunks/{BME8wn-Y.js → kyD2j1ao.js} +1 -1
  176. package/web/app/immutable/chunks/{BeQ1MqDU.js → mPG-dFIz.js} +1 -1
  177. package/web/app/immutable/chunks/{0azY1Euo.js → oTfA4Ka8.js} +1 -1
  178. package/web/app/immutable/chunks/{eFMkdoaf.js → qSzKyAvL.js} +1 -1
  179. package/web/app/immutable/chunks/{DyfUN8R7.js → tJZsdcEt.js} +1 -1
  180. package/web/app/immutable/chunks/{Dft5YBpv.js → u7xxpRyS.js} +1 -1
  181. package/web/app/immutable/chunks/{QjTgQQZx.js → wPF9jCkR.js} +1 -1
  182. package/web/app/immutable/chunks/{COgknoIp.js → wxuSrNBn.js} +1 -1
  183. package/web/app/immutable/chunks/{DOL39Ac3.js → zWQBgpC4.js} +1 -1
  184. package/web/app/immutable/entry/{app.DzBvG1_l.js → app.CdGBkRFI.js} +2 -2
  185. package/web/app/immutable/entry/start.EYvQAwRq.js +1 -0
  186. package/web/app/immutable/nodes/{0.C2zst7i8.js → 0.DvD_bs4V.js} +1 -1
  187. package/web/app/immutable/nodes/{1.BIkIikjL.js → 1.BNqZs0qR.js} +1 -1
  188. package/web/app/immutable/nodes/{10.NQQ6RXJ5.js → 10.CehzmYEs.js} +1 -1
  189. package/web/app/immutable/nodes/{14.DjgXWnV3.js → 14.ZYPm59xt.js} +1 -1
  190. package/web/app/immutable/nodes/{16.DIpAzx7I.js → 16.izwWMsfE.js} +2 -2
  191. package/web/app/immutable/nodes/{2.D39xDr6a.js → 2.DLErmB7W.js} +3 -3
  192. package/web/app/immutable/nodes/{3.CXiy3cZ4.js → 3.Ba2fCn_S.js} +1 -1
  193. package/web/app/immutable/nodes/{4.Dc4411ZQ.js → 4.Cweld1W0.js} +1 -1
  194. package/web/app/immutable/nodes/{5.p_n2sq1_.js → 5.Ac20ierd.js} +1 -1
  195. package/web/app/immutable/nodes/{6.D6xC5nhC.js → 6.ci3muQxH.js} +1 -1
  196. package/web/app/immutable/nodes/{7.DXE6hDOy.js → 7.Db8zvNrf.js} +1 -1
  197. package/web/app/immutable/nodes/{8.BU4_235n.js → 8.BBQbbdsX.js} +2 -2
  198. package/web/app/immutable/nodes/{9.CYdkB-g-.js → 9.c-04OhkZ.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/Pd6GM4gY.js +0 -1
  202. package/web/app/immutable/entry/start.CErE1GCU.js +0 -1
@@ -1 +1 @@
1
- import{t as ht,bq as U,by as $t,bs as It,b as yt,bu as d}from"./COCO5InB.js";import{bs as bt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as At,bH as G,bV as H,aA as E}from"./B8o4lNgr.js";import{B as wt}from"./Cdhgfy6h.js";import{b as Dt}from"./D2g8BuR1.js";import{G2 as a,ei as Pt,ej as St,mQ as Ut,xc as Et,mU as _t,mV as xt,Gz as Ft,GN as Tt,GE as Wt,th as Bt,sA as qt}from"./BjFoJgFv.js";import{aU as Gt}from"./FSpiE1wW.js";import{g as Ht}from"./CoSk1zgY.js";import{dj as Lt,bK as Nt,bz as Ot,bD as vt,bB as jt}from"./DUT4V6mb.js";import{aj as Kt}from"./6gxnLEJP.js";import{C as Mt}from"./BHBAtBBB.js";import{V as Vt}from"./DQPsLJmj.js";import{bC as zt,bA as Jt,aX as Qt}from"./Dj-i-4vt.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});bt(f,!0);const L=()=>d(Z,"$gitRoots$",n),x=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),b=()=>d(tt,"$commitRead$",n),v=()=>d(Q,"$foldUnchanged",n),j=()=>d(J,"$lineWrapping",n),K=()=>d(X,"$diffSideBySide",n),M=()=>d(at,"$ftLoading$",n),[n,V]=It(),z=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{G(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return v()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return j()},onToggleWrap:()=>a.dispatch(Tt()),get splitEnabled(){return K()},onToggleSplit:()=>a.dispatch(Ft())})},J=zt(),Q=Jt(),X=Qt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=Ht(),g=Gt(()=>i()),Y=Lt(g),Z=Kt(g),A=crypto.randomUUID(),tt=Nt(g,A),c=s(()=>h().data?.commitHash||""),T=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||x()?.worktreePath||x()?.repositoryPath||""),st=Ot(g),ot=vt(g),at=jt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),w=s(()=>t(p)?.files||[]),D=s(()=>b()?.request.kind==="commitDetails"&&b().request.commitHash===t(c)&&(b().request.gitRootId??"")===t(r)?b():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(w).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,A,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,A,u))});const ct=s(()=>t(w).length>0?t(w):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(T)}}));k(()=>{!F||!$()||F.registerActions({display:z})});const B=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,B)),()=>a.dispatch(xt(e,B))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>yt(f,e,o)},q=Ct(),gt=Rt(q);wt(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>M()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(T),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Mt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),{agentId:y,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Bt(i(),y,{openInAdjacentPanel:P,sourcePanelId:S}))}}),y=>G(R,y,!0),()=>t(R))}}),kt(_,q);var pt=At(mt);return V(),pt}export{Yt as default};
1
+ import{t as ht,bq as U,by as $t,bs as It,b as yt,bu as d}from"./COCO5InB.js";import{bs as bt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as At,bH as G,bV as H,aA as E}from"./B8o4lNgr.js";import{B as wt}from"./Cdhgfy6h.js";import{b as Dt}from"./D2g8BuR1.js";import{G2 as a,ei as Pt,ej as St,mQ as Ut,xc as Et,mU as _t,mV as xt,Gz as Ft,GN as Tt,GE as Wt,th as Bt,sA as qt}from"./BjFoJgFv.js";import{aU as Gt}from"./BpXI7wFc.js";import{g as Ht}from"./CoSk1zgY.js";import{dj as Lt,bK as Nt,bz as Ot,bD as vt,bB as jt}from"./DUT4V6mb.js";import{aj as Kt}from"./ODjBUXV3.js";import{C as Mt}from"./Qo9pMmiB.js";import{V as Vt}from"./DQPsLJmj.js";import{bC as zt,bA as Jt,aX as Qt}from"./CawpE1BZ.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});bt(f,!0);const L=()=>d(Z,"$gitRoots$",n),x=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),b=()=>d(tt,"$commitRead$",n),v=()=>d(Q,"$foldUnchanged",n),j=()=>d(J,"$lineWrapping",n),K=()=>d(X,"$diffSideBySide",n),M=()=>d(at,"$ftLoading$",n),[n,V]=It(),z=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{G(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return v()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return j()},onToggleWrap:()=>a.dispatch(Tt()),get splitEnabled(){return K()},onToggleSplit:()=>a.dispatch(Ft())})},J=zt(),Q=Jt(),X=Qt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=Ht(),g=Gt(()=>i()),Y=Lt(g),Z=Kt(g),A=crypto.randomUUID(),tt=Nt(g,A),c=s(()=>h().data?.commitHash||""),T=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||x()?.worktreePath||x()?.repositoryPath||""),st=Ot(g),ot=vt(g),at=jt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),w=s(()=>t(p)?.files||[]),D=s(()=>b()?.request.kind==="commitDetails"&&b().request.commitHash===t(c)&&(b().request.gitRootId??"")===t(r)?b():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(w).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,A,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,A,u))});const ct=s(()=>t(w).length>0?t(w):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(T)}}));k(()=>{!F||!$()||F.registerActions({display:z})});const B=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,B)),()=>a.dispatch(xt(e,B))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>yt(f,e,o)},q=Ct(),gt=Rt(q);wt(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>M()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(T),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Mt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),{agentId:y,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Bt(i(),y,{openInAdjacentPanel:P,sourcePanelId:S}))}}),y=>G(R,y,!0),()=>t(R))}}),kt(_,q);var pt=At(mt);return V(),pt}export{Yt as default};
@@ -0,0 +1 @@
1
+ import{d as a,C as n}from"./D3jhcRTQ.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BONnxsQv.js","/app/immutable/chunks/CJvhopKt.js","/app/immutable/chunks/COCO5InB.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/Crs9I2MT.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C5Xi5eLp.js","/app/immutable/chunks/Dck4Okga.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/oALOmsvi.js","/app/immutable/chunks/Cdhgfy6h.js","/app/immutable/chunks/BY3Ptqbg.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Bqoyy9yx.js","/app/immutable/chunks/BlJs0v1V.js","/app/immutable/chunks/BjFoJgFv.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/BDq7EC2K.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css"])))=>i.map(i=>d[i]);
2
- var ne=Object.defineProperty;var ae=(e,t,r)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ae(e,typeof t!="symbol"?t+"":t,r);import{a as oe,i as ce}from"./DJu_D7ND.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./Dx5-Ovf5.js";import{bo as a,_ as le}from"./COCO5InB.js";import{G2 as n,mv as _,mu as m,l0 as de,w9 as R,wa as L,w7 as ue,w8 as pe,q1 as K,vW as fe,FQ as he,a2 as ge,bR as me,bQ as be,c3 as ve,c2 as Se,mx as w}from"./BjFoJgFv.js";import{cr as ye,bs as _e,c4 as we,cj as ke,c6 as Ee,cG as Re,cK as Ce,cA as Q,av as Ae,bO as Me,cH as Pe}from"./DUT4V6mb.js";import{n as Te}from"./B7JUZ-OL.js";import{ak as Ie,F as Y,j as De,G as xe,bv as Fe,c as Oe,al as Le,bg as H,_ as Ue,aB as Ne,q as $,K as Ve,ag as He,bl as We,J as qe,H as Be,I as je,bj as Ge}from"./BUVaYTVI.js";import{r as ze}from"./CaQ_vubD.js";const x=V("Clipboard");async function Er(e){let t;if(oe())try{const r=await ce("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,x.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw x.error("Browser clipboard write failed",r,{electronError:t}),r}throw x.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Ke=n.createSelector(e=>e.githubAuth.mutationRequestId),Qe=n.createSelector(e=>e.githubAuth.callbacksCancelled),Ye=n.createSelector(e=>e.githubAuth.isDisconnecting),Z=n.createSelector(e=>e.githubAuth.isAuthenticated),$e=n.createSelector(e=>e.githubAuth.statusSettled===!0),Ze=n.createSelector(e=>e.githubAuth.requiresDaemonAuth),Je=n.createSelector(e=>e.githubAuth.user),Xe=n.createSelector(e=>e.githubAuth.isAuthenticating),et=n.createSelector(e=>e.githubAuth.deviceFlow),tt=n.createSelector(e=>e.githubAuth.error),Rr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Qe,selectGitHubAuthDeviceFlow:et,selectGitHubAuthError:tt,selectGitHubAuthIsAuthenticated:Z,selectGitHubAuthIsAuthenticating:Xe,selectGitHubAuthIsDisconnecting:Ye,selectGitHubAuthMutationRequestId:Ke,selectGitHubAuthRequiresDaemonAuth:Ze,selectGitHubAuthStatusSettled:$e,selectGitHubAuthUser:Je},Symbol.toStringTag,{value:"Module"})),rt=V("WorkspaceValidation");async function Cr(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_repoPathRequired_error(),suggestion:a.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return st(s)?nt(s):at(s,t,r)}function st(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function it(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function nt(e){return it(e)?{valid:!0,warning:a.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:a.workspace_validation_invalidGithubUrl_error(),suggestion:a.workspace_validation_invalidGithubUrl_suggestion()}}async function at(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:a.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:a.workspace_validation_pathNotAbsolute_error(),suggestion:a.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:a.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:a.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:a.workspace_validation_notDirectory_error(),suggestion:a.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?a.workspace_repoSelector_notGitRepository_label():a.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:a.workspace_validation_nonGitInit_warning()}}catch(s){if(rt.warn("Could not validate path existence",s),!t)return{valid:!1,error:a.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Ar(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchPrefixInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:a.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:a.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:a.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Mr(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Pr(e){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchNameInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:a.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:a.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchNameLock_error()}:{valid:!0}}function Tr(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:a.workspace_validation_promptTooLong_error(),suggestion:a.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Ir(e){const t=e.toLowerCase();return t.includes("maxbuffer")?a.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?a.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?a.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?a.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?a.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?a.workspace_gitError_cloneAuth():a.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?a.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?a.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_readPermission():e:t.includes("permission denied")?a.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?a.workspace_gitError_notFound():t.includes("already exists")?a.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?a.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:a.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?a.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?a.workspace_gitError_diskSpace():e}const v=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:`# Role
2
+ var ne=Object.defineProperty;var ae=(e,t,r)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ae(e,typeof t!="symbol"?t+"":t,r);import{a as oe,i as ce}from"./DJu_D7ND.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./Dx5-Ovf5.js";import{bo as a,_ as le}from"./COCO5InB.js";import{G2 as n,mv as _,mu as m,l0 as de,w9 as R,wa as L,w7 as ue,w8 as pe,q1 as K,vW as fe,FQ as he,a2 as ge,bR as me,bQ as be,c3 as ve,c2 as Se,mx as w}from"./BjFoJgFv.js";import{cr as ye,bs as _e,c4 as we,cj as ke,c6 as Ee,cG as Re,cK as Ce,cA as Q,av as Ae,bO as Me,cH as Pe}from"./DUT4V6mb.js";import{n as Te}from"./B6fBpdpc.js";import{ak as Ie,F as Y,j as De,G as xe,bv as Fe,c as Oe,al as Le,bg as H,_ as Ue,aB as Ne,q as $,K as Ve,ag as He,bl as We,J as qe,H as Be,I as je,bj as Ge}from"./BUVaYTVI.js";import{r as ze}from"./CaQ_vubD.js";const x=V("Clipboard");async function Er(e){let t;if(oe())try{const r=await ce("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,x.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw x.error("Browser clipboard write failed",r,{electronError:t}),r}throw x.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Ke=n.createSelector(e=>e.githubAuth.mutationRequestId),Qe=n.createSelector(e=>e.githubAuth.callbacksCancelled),Ye=n.createSelector(e=>e.githubAuth.isDisconnecting),Z=n.createSelector(e=>e.githubAuth.isAuthenticated),$e=n.createSelector(e=>e.githubAuth.statusSettled===!0),Ze=n.createSelector(e=>e.githubAuth.requiresDaemonAuth),Je=n.createSelector(e=>e.githubAuth.user),Xe=n.createSelector(e=>e.githubAuth.isAuthenticating),et=n.createSelector(e=>e.githubAuth.deviceFlow),tt=n.createSelector(e=>e.githubAuth.error),Rr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Qe,selectGitHubAuthDeviceFlow:et,selectGitHubAuthError:tt,selectGitHubAuthIsAuthenticated:Z,selectGitHubAuthIsAuthenticating:Xe,selectGitHubAuthIsDisconnecting:Ye,selectGitHubAuthMutationRequestId:Ke,selectGitHubAuthRequiresDaemonAuth:Ze,selectGitHubAuthStatusSettled:$e,selectGitHubAuthUser:Je},Symbol.toStringTag,{value:"Module"})),rt=V("WorkspaceValidation");async function Cr(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_repoPathRequired_error(),suggestion:a.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return st(s)?nt(s):at(s,t,r)}function st(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function it(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function nt(e){return it(e)?{valid:!0,warning:a.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:a.workspace_validation_invalidGithubUrl_error(),suggestion:a.workspace_validation_invalidGithubUrl_suggestion()}}async function at(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:a.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:a.workspace_validation_pathNotAbsolute_error(),suggestion:a.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:a.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:a.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:a.workspace_validation_notDirectory_error(),suggestion:a.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?a.workspace_repoSelector_notGitRepository_label():a.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:a.workspace_validation_nonGitInit_warning()}}catch(s){if(rt.warn("Could not validate path existence",s),!t)return{valid:!1,error:a.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Ar(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchPrefixInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:a.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:a.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:a.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Mr(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Pr(e){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchNameInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:a.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:a.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchNameLock_error()}:{valid:!0}}function Tr(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:a.workspace_validation_promptTooLong_error(),suggestion:a.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Ir(e){const t=e.toLowerCase();return t.includes("maxbuffer")?a.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?a.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?a.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?a.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?a.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?a.workspace_gitError_cloneAuth():a.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?a.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?a.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_readPermission():e:t.includes("permission denied")?a.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?a.workspace_gitError_notFound():t.includes("already exists")?a.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?a.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:a.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?a.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?a.workspace_gitError_diskSpace():e}const v=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:`# Role
3
3
  You are a PR review specialist conducting a code review for a pull request.
4
4
 
5
5
  # Objectives
@@ -1 +1 @@
1
- import{I as h}from"./Dj-i-4vt.js";import{c as v}from"./ChTqQfQN.js";import{bs as d}from"./C5Xi5eLp.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
1
+ import{I as h}from"./CawpE1BZ.js";import{c as v}from"./ChTqQfQN.js";import{bs as d}from"./C5Xi5eLp.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
@@ -1,4 +1,4 @@
1
- import{g as Xt}from"./6CBvudM-.js";import{g as Qt}from"./BfS0Q-nX.js";import{s as Zt}from"./1iwlWivR.js";import{f as k,aZ as Jt,c8 as Mt,bC as $,aO as ke,aS as $t,bZ as e1,cx as rt,c7 as t1,c6 as s1,c9 as i1,aL as r1,aK as a1,aP as n1,a4 as u1,bB as o1,J as l1,bw as c1,aQ as st,c3 as it,a0 as h1,aw as d1,c0 as p1}from"./CQcnUt15.js";import{c as f1}from"./CHwcICZW.js";import{aI as g1}from"./Dj-i-4vt.js";import{c as b1}from"./Pd6GM4gY.js";var A1="flowchart-",Pe,k1=(Pe=class{constructor(){this.vertexCounter=0,this.config=ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=t1,this.setAccDescription=s1,this.setDiagramTitle=i1,this.getAccTitle=r1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return u1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,g,l={},m){if(!i||i.trim().length===0)return;let p;if(m!==void 0){let u;m.includes(`
1
+ import{g as Xt}from"./IWgFnHM6.js";import{g as Qt}from"./DA2lF32p.js";import{s as Zt}from"./ChIVS4P3.js";import{f as k,aZ as Jt,c8 as Mt,bC as $,aO as ke,aS as $t,bZ as e1,cx as rt,c7 as t1,c6 as s1,c9 as i1,aL as r1,aK as a1,aP as n1,a4 as u1,bB as o1,J as l1,bw as c1,aQ as st,c3 as it,a0 as h1,aw as d1,c0 as p1}from"./D3jhcRTQ.js";import{c as f1}from"./BiDG2Il4.js";import{aI as g1}from"./CawpE1BZ.js";import{c as b1}from"./BeTy7vuC.js";var A1="flowchart-",Pe,k1=(Pe=class{constructor(){this.vertexCounter=0,this.config=ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=t1,this.setAccDescription=s1,this.setDiagramTitle=i1,this.getAccTitle=r1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return u1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,g,l={},m){if(!i||i.trim().length===0)return;let p;if(m!==void 0){let u;m.includes(`
2
2
  `)?u=m+`
3
3
  `:u=`{
4
4
  `+m+`
@@ -1 +1 @@
1
- import{ao as s}from"./B8o4lNgr.js";import{d as r}from"./Cae3uxuh.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
1
+ import{ao as s}from"./B8o4lNgr.js";import{d as r}from"./FBVqOFZr.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
@@ -1 +1 @@
1
- import{f as i,c3 as l,bA as d,aA as o}from"./CQcnUt15.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),f=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,f as g,h};
1
+ import{f as i,c3 as l,bA as d,aA as o}from"./D3jhcRTQ.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),f=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,f as g,h};
@@ -1 +1 @@
1
- import{g as s,r as l,d as t}from"./Dm08LoPV.js";import{p as m}from"./Bq3GTaKG.js";import{M as p,d}from"./D0M9u_n-.js";import{a as n,ad as i}from"./DPBL52wT.js";import"./CQcnUt15.js";var u=d().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),i.debug("[Railroad Parser] Starting Langium parse");const r=u.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},x={parser:y,db:t,renderer:l,styles:s};export{x as diagram};
1
+ import{g as s,r as l,d as t}from"./BaqKvnTh.js";import{p as m}from"./ixob39CO.js";import{M as p,d}from"./Bzhw8fuk.js";import{a as n,ad as i}from"./D0lrdhHK.js";import"./D3jhcRTQ.js";var u=d().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),i.debug("[Railroad Parser] Starting Langium parse");const r=u.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},x={parser:y,db:t,renderer:l,styles:s};export{x as diagram};
@@ -1,4 +1,4 @@
1
- import{g as ee}from"./BfS0Q-nX.js";import{s as se}from"./1iwlWivR.js";import{f as p,bC as b,aO as $,bZ as ie,cx as re,aL as ae,c7 as ne,aK as oe,c6 as le,c9 as ce,aP as he,aJ as ue,a4 as j,a0 as de,c3 as kt}from"./CQcnUt15.js";import{c as fe}from"./CHwcICZW.js";import{aI as pe}from"./Dj-i-4vt.js";var Ct=(function(){var t=p(function(V,o,h,a){for(h=h||{},a=V.length;a--;h[V[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],m=[1,33],L=[1,20],D=[1,21],f=[1,22],I=[1,23],R=[1,24],C=[1,26],F=[1,27],A=[1,28],P=[1,29],w=[1,30],z=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Lt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,h,a,g,_,i,B){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Tt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],X=i[l-2].trim();if(i[l].match(":")){var ut=i[l].split(":");Y=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:Y,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:K},t(y,[2,17]),t(Lt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Lt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),parse:p(function(o){var h=this,a=[0],g=[],_=[null],i=[],B=this.table,l="",Y=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),U={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(U.yy[Et]=this.yy[Et]);k.setInput(o,U.yy),U.yy.lexer=k,U.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var Qt=k.options&&k.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}p(te,"popStack");function It(){var O;return O=g.pop()||k.lex()||Q,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}p(It,"lex");for(var x,W,N,mt,J={},dt,G,wt,ft;;){if(W=a[a.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((x===null||typeof x>"u")&&(x=It()),N=B[W]&&B[W][x]),typeof N>"u"||!N.length||!N[0]){var bt="";ft=[];for(dt in B[W])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");k.showPosition?bt="Parse error on line "+(Y+1)+`:
1
+ import{g as ee}from"./DA2lF32p.js";import{s as se}from"./ChIVS4P3.js";import{f as p,bC as b,aO as $,bZ as ie,cx as re,aL as ae,c7 as ne,aK as oe,c6 as le,c9 as ce,aP as he,aJ as ue,a4 as j,a0 as de,c3 as kt}from"./D3jhcRTQ.js";import{c as fe}from"./BiDG2Il4.js";import{aI as pe}from"./CawpE1BZ.js";var Ct=(function(){var t=p(function(V,o,h,a){for(h=h||{},a=V.length;a--;h[V[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],m=[1,33],L=[1,20],D=[1,21],f=[1,22],I=[1,23],R=[1,24],C=[1,26],F=[1,27],A=[1,28],P=[1,29],w=[1,30],z=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Lt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,h,a,g,_,i,B){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Tt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],X=i[l-2].trim();if(i[l].match(":")){var ut=i[l].split(":");Y=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:Y,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:K},t(y,[2,17]),t(Lt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Lt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),parse:p(function(o){var h=this,a=[0],g=[],_=[null],i=[],B=this.table,l="",Y=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),U={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(U.yy[Et]=this.yy[Et]);k.setInput(o,U.yy),U.yy.lexer=k,U.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var Qt=k.options&&k.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}p(te,"popStack");function It(){var O;return O=g.pop()||k.lex()||Q,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}p(It,"lex");for(var x,W,N,mt,J={},dt,G,wt,ft;;){if(W=a[a.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((x===null||typeof x>"u")&&(x=It()),N=B[W]&&B[W][x]),typeof N>"u"||!N.length||!N[0]){var bt="";ft=[];for(dt in B[W])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");k.showPosition?bt="Parse error on line "+(Y+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+ft.join(", ")+", got '"+(this.terminals_[x]||x)+"'":bt="Parse error on line "+(Y+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(bt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:ft})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+x);switch(N[0]){case 1:a.push(x),_.push(k.yytext),i.push(k.yylloc),a.push(N[1]),x=null,X=k.yyleng,l=k.yytext,Y=k.yylineno,_t=k.yylloc;break;case 2:if(G=this.productions_[N[1]][1],J.$=_[_.length-G],J._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},Qt&&(J._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),mt=this.performAction.apply(J,[l,X,Y,U.yy,N[1],_,i].concat(Tt)),typeof mt<"u")return mt;G&&(a=a.slice(0,-1*G*2),_=_.slice(0,-1*G),i=i.slice(0,-1*G)),a.push(this.productions_[N[1]][0]),_.push(J.$),i.push(J._$),wt=B[a[a.length-2]][a[a.length-1]],a.push(wt);break;case 3:return!0}}return!0},"parse")},Zt=(function(){var V={EOF:1,parseError:p(function(h,a){if(this.yy.parser)this.yy.parser.parseError(h,a);else throw new Error(h)},"parseError"),setInput:p(function(o,h){return this.yy=h||this.yy||{},this._input=o,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:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var h=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=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 _=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===g.length?this.yylloc.first_column:0)+g[g.length-a.length].length-a[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{t as oe,bq as st,a_ as at,bo as Q,by as ie,bu as $t,bs as Me,b as ce}from"./COCO5InB.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as K,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as De,aj as Se,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./B8o4lNgr.js";import{k as Xt,I as ea,l as ne,h as jt,s as gt,i as Ne,d as se}from"./Crs9I2MT.js";import{b as ba}from"./D2g8BuR1.js";import{f as Ut}from"./C5Xi5eLp.js";import{A as aa,af as na,ae as sa}from"./FSpiE1wW.js";import"./Dck4Okga.js";import{ak as ra,aA as oa,am as Aa,an as ka,ao as We,af as ia,c as $a,o as Ta,dp as Ca,aM as Sa,ap as Na}from"./DUT4V6mb.js";import{R as Fa}from"./CJvhopKt.js";import{F as pe,bu as Oa,bb as Ra,az as Ma,aR as Wa,ct as Da}from"./BDq7EC2K.js";import{H as Ba}from"./DzjRhthn.js";import{e as La}from"./Bpruhzz0.js";import{s as Pa}from"./DTosDNas.js";import{f as Ea}from"./DYiKRSyK.js";import{c as Nt,G2 as Oe,mv as Ga,fr as za,bP as ja,qA as Ka,sA as Ha}from"./BjFoJgFv.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=O('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=O('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=O('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Qa=O('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Fe=O('<span class="text-xs text-subtle"> </span>'),Za=O('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=O('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=O('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=O('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=O('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=O('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(E,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),S=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),P=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Q.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),E=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ft=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return S()},set onmouseleave(A){S(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Kt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Kt)})}var Ot=C(bt,2);{let A=y(()=>d()?"border-primary-ink border-2":"");Ut(Ot,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
1
+ import{t as oe,bq as st,a_ as at,bo as Q,by as ie,bu as $t,bs as Me,b as ce}from"./COCO5InB.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as K,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as De,aj as Se,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./B8o4lNgr.js";import{k as Xt,I as ea,l as ne,h as jt,s as gt,i as Ne,d as se}from"./Crs9I2MT.js";import{b as ba}from"./D2g8BuR1.js";import{f as Ut}from"./C5Xi5eLp.js";import{A as aa,af as na,ae as sa}from"./BpXI7wFc.js";import"./Dck4Okga.js";import{ak as ra,aA as oa,am as Aa,an as ka,ao as We,af as ia,c as $a,o as Ta,dp as Ca,aM as Sa,ap as Na}from"./DUT4V6mb.js";import{R as Fa}from"./CJvhopKt.js";import{F as pe,bu as Oa,bb as Ra,az as Ma,aR as Wa,ct as Da}from"./BDq7EC2K.js";import{H as Ba}from"./W9RBe3cV.js";import{e as La}from"./C5sLueiQ.js";import{s as Pa}from"./DAH744O7.js";import{f as Ea}from"./BUMa5x43.js";import{c as Nt,G2 as Oe,mv as Ga,fr as za,bP as ja,qA as Ka,sA as Ha}from"./BjFoJgFv.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=O('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=O('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=O('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Qa=O('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Fe=O('<span class="text-xs text-subtle"> </span>'),Za=O('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=O('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=O('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=O('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=O('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=O('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(E,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),S=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),P=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Q.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),E=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ft=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return S()},set onmouseleave(A){S(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Kt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Kt)})}var Ot=C(bt,2);{let A=y(()=>d()?"border-primary-ink border-2":"");Ut(Ot,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
2
2
  hover:shadow transition-all cursor-pointer ${t(A)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return S()},children:(B,Tt)=>{var Rt=an(),Lt=Yt(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ft)},get specialist(){return n().specialist}}),$(Lt);var Zt=C(Lt,2),_e=K(Zt,!0),Jt=C(Zt,2),te=L(Jt);{var ye=ft=>{var r=Va(),f=L(r),M=L(f);{let z=y(()=>s().kind==="blocker"?Ma:Wa);pe(M,{get icon(){return t(z)},size:"xs"})}var W=C(M,2),m=K(W,!0);$(f);var H=C(f,2);{var nt=z=>{var It=Ua(),ot=K(It,!0);k(()=>D(ot,s().reason)),_(z,It)};at(H,z=>{s().reason&&z(nt)})}var N=C(H,2);{var G=z=>{Fa(z,{get date(){return s().timestamp},class:"text-ui text-ghost"})};at(N,z=>{s().timestamp&&z(G)})}$(r),k(z=>{Xt(r,1,`text-sm flex flex-col items-center gap-0.5 ${s().kind==="blocker"?"text-red-500":"text-warning-ink"}`),D(m,z)},[()=>s().kind==="blocker"?Q.chat_agentCard_attentionBlocker_label():Q.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Qa(),f=L(r);pe(f,{get icon(){return Oa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=K(M,!0);$(r),k(m=>D(W,m),[()=>Q.agentOverview_hierarchyCard_waitingFor_label({names:t(P).join(", ")})]),_(ft,r)},Ie=ft=>{const r=y(()=>n().activeToolName?$a(n().activeToolName,n().activeToolInput||{}):null),f=y(()=>t(r)&&!t(r).hidden?t(r):null);var M=tn(),W=L(M),m=L(W);ea(m,{size:14});var H=C(m,2);{var nt=Y=>{var Z=Fe(),pt=K(Z,!0);k(Pt=>D(pt,Pt),[()=>Q.agentOverview_hierarchyCard_thinking_label()]),_(Y,Z)},N=Y=>{var Z=Za(),pt=K(Z);k(()=>D(pt,`${t(f).verb??""}
3
3
  ${t(f).subject??""}`)),_(Y,Z)},G=Y=>{var Z=Fe(),pt=K(Z);k(()=>D(pt,`${t(f).verb??""}...`)),_(Y,Z)},z=Y=>{var Z=Fe(),pt=K(Z,!0);k(Pt=>D(pt,Pt),[()=>Q.agentOverview_hierarchyCard_responding_label()]),_(Y,Z)};at(H,Y=>{i()?Y(nt):t(f)&&t(f).subject?Y(N,1):t(f)?Y(G,2):Y(z,-1)})}$(W);var It=C(W,2);{var ot=Y=>{var Z=Ja(),pt=K(Z,!0);k(()=>D(pt,n().lastResponse)),_(Y,Z)};at(It,Y=>{!t(f)&&n().lastResponse&&Y(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=K(r,!0);k(()=>D(f,n().lastResponse)),_(ft,r)};at(te,ft=>{s()?ft(ye):c()?ft(yt,1):u()||i()?ft(Ie,2):n().lastResponse&&ft(xe,3)})}$(Jt),k(()=>D(_e,n().name)),_(B,Rt)},$$slots:{default:!0}})}var ge=C(Ot,2);{var Bt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Da},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(Lt=>D(Rt,` ${Lt??""}`),[()=>Q.agentOverview_hierarchyCard_note_label()]),_(A,B)};at(ge,A=>{R()&&u()&&A(Bt)})}$(ht),_(e,ht);var Qt=de(Dt);return l(),Qt}const sn=50;var rn=O('<span class="sr-only"> </span> <!>',1);function Re(e,a){if(new.target)return oe({component:Re,...e});le(a,!0);const s=()=>$t(R,"$attentionRequest$",c),g=()=>$t(h,"$agentSession$",c),u=()=>$t(p,"$agentIsWaitingForOtherAgents$",c),[c,d]=Me();let i=st(a,"agent",7),o=st(a,"onclick",7),l=st(a,"onmouseenter",7),n=st(a,"onmouseleave",7);const p=We(i().agentId),R=ia(i().agentId),h=oa(i().agentId),v=y(()=>{const x={attentionKind:s()?.kind??null};return g()?na(g(),x):sa({status:i().status,isResponding:i().status==="responding",isWaitingForOtherAgents:u()},{...x,isCompleted:i().status==="completed",isFailed:i().status==="failed"})});var b={get agent(){return i()},set agent(x){i(x),rt()},get onclick(){return o()},set onclick(x){o(x),rt()},get onmouseenter(){return l()},set onmouseenter(x){l(x),rt()},get onmouseleave(){return n()},set onmouseleave(x){n(x),rt()},$set:ie,$on:(x,it)=>ce(a,x,it)};Ut(e,{variant:"ghost",type:"button",class:"background-agent-card relative flex flex-col items-center justify-center gap-1 rounded-full bg-sidebar hover:bg-muted/70 transition-colors cursor-pointer p-2",get style(){return`width: 50px; min-height: 50px; anchor-name: --agent-hierarchy-${i().agentId??""};`},get onclick(){return o()},get onmouseenter(){return l()},get onmouseleave(){return n()},children:(x,it)=>{var P=rn(),I=Yt(P),E=K(I,!0),ct=C(I,2);aa(ct,{get agentId(){return i().agentId},size:32,get state(){return t(v)},get specialist(){return i().specialist}}),k(()=>D(E,i().name)),_(x,P)},$$slots:{default:!0}});var S=de(b);return d(),S}var re=he('<path fill="none"></path>'),on=O('<div class="batch-group-box relative z-10 bg-background border border-border rounded-xl"></div>'),cn=O('<svg class="connector-svg" style="overflow: visible; display: block;"><!><!></svg> <div class="children-items-row flex items-start justify-center"></div>',1),ln=O('<div class="children-wrapper flex flex-col items-center"></div>'),dn=O('<div class="agent-tree-node flex flex-col items-center"><div class="agent-card-wrapper relative z-10"><!></div> <!></div>'),gn=O('<div class="absolute inset-0 flex items-center justify-center"><div class="text-center text-subtle"><p class="text-lg font-medium"> </p> <p class="text-sm mt-1"> </p></div></div>'),un=O('<div class="utility-corral border border-dashed border-border rounded-lg p-3 min-w-20"><div class="corral-label text-xs text-subtle font-medium mb-2 text-center"> </div> <div class="corral-agents flex flex-col items-center gap-2"></div></div>'),fn=O('<div class="utility-corrals flex flex-col gap-4"></div>'),pn=O('<div class="text-xs text-subtle capitalize"> </div>'),vn=O('<span class="px-1.5 py-0.5 text-ui font-medium bg-muted text-subtle rounded"> </span>'),hn=O('<span class="text-warning-ink"> </span>'),mn=O('<span class="text-primary-ink"> </span>'),_n=O('<span class="text-green-500"> </span>'),yn=O('<span class="text-red-500"> </span>'),In=O("<span> </span>"),xn=O('<div class="text-xs text-subtle line-clamp-3 border-t border-border pt-2 mt-2"> </div>'),wn=O('<div class="text-xs text-subtle flex items-center gap-1"><!> <span> </span></div>'),bn=O('<div class="p-3 space-y-2"><div class="flex items-center gap-2"><!> <div class="flex-1 min-w-0"><div class="font-medium text-sm truncate"> </div> <!></div> <!></div> <div class="text-xs text-subtle"><!></div> <div class="text-xs text-subtle"> </div> <!> <!></div>'),An=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),kn=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),$n=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path></svg>'),Tn=O('<div class="canvas-content absolute inset-0 flex items-center justify-center p-8 svelte-13q5gm4"><div class="hierarchy-wrapper flex items-start gap-8"><!> <div class="main-hierarchy flex flex-col items-center gap-4"><div class="hierarchy-container flex flex-col items-center gap-4"><div class="roots-row flex justify-center"></div></div></div></div> <!></div> <div class="zoom-controls absolute bottom-4 right-4 flex items-center gap-1 bg-card border border-border rounded-lg shadow-sm p-1"><!> <!> <!> <div class="w-px h-6 bg-border mx-1"></div> <!></div> <div class="absolute bottom-4 left-4 text-xs text-subtle"> </div>',1),Cn=O('<div class="agent-hierarchy-graph relative w-full h-full overflow-hidden bg-background svelte-13q5gm4"><!></div>');function la(e,a){if(new.target)return oe({component:la,...e});le(a,!0);const s=(r,f=wa,M)=>{const W=y(()=>f().agent.isBackground),m=y(()=>f().children.length>0),H=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),N=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(H),i):[]),z=y(()=>(()=>{const F=[];for(let q=0;q<t(G).length;q+=Tt)F.push(t(G).slice(q,q+Tt));return F})()),It=y(()=>t(z).map(F=>F.reduce((q,J)=>q+J.width,0)+Math.max(0,F.length-1)*i)),ot=y(()=>Math.max(...t(It),0));var Y=dn(),Z=L(Y),pt=L(Z);{var Pt=F=>{Re(F,{get agent(){return f().agent},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})},we=F=>{ca(F,{get agent(){return f().agent},get activeFile(){return f().activeFile},get activeNote(){return f().activeNote},get agentNames(){return t(Lt)},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})};at(pt,F=>{t(W)?F(Pt):F(we,-1)})}$(Z);var be=C(Z,2);{var U=F=>{const q=y(()=>f().agent.status==="waiting"?f().agent.waitingForAgentIds||[]:[]),J=y(()=>t(q).length>0),et=y(()=>t(N)/2);var xt=ln();jt(xt,21,()=>t(z),Ne,(Ht,At,Ct)=>{const Et=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Et))/2),Ae=y(()=>(()=>{let ut=0;return t(At).map(j=>{const St=ut+j.width/2;return ut+=j.width+i,St})})());var ue=cn(),Gt=Yt(ue);gt(Gt,"height",t(N));var qt=L(Gt);{var ke=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} -${Ya} L ${t(ot)/2} ${t(N)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)},$e=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} 0 L ${t(ot)/2} ${t(N)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)};at(qt,ut=>{Ct>0?ut(ke):ut($e,-1)})}var Te=C(qt);jt(Te,17,()=>t(At),Ne,(ut,j,St)=>{const vt=y(()=>t(ee)+t(Ae)[St]),lt=y(()=>t(ot)/2),zt=y(()=>t(j).type==="batch"?t(j).children.some(wt=>t(q).includes(wt.agent.agentId)):t(q).includes(t(j).child.agent.agentId)),mt=y(()=>t(zt)?"var(--color-primary)":"currentColor"),kt=y(()=>t(zt)?"":"text-border"),w=y(()=>t(zt)?2:1),T=y(()=>t(j).type==="batch"?t(N)-A:t(N)),tt=y(()=>Math.abs(t(vt)-t(lt))),X=y(()=>Math.min(t(nt),t(tt)/2));var fe=Be(),Ce=Yt(fe);{var va=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3} L ${t(lt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(kt)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)},ha=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3}
4
4
  L ${t(lt)??""} ${t(et)-t(X)}