@intent-hq/web 2.292.0 → 2.292.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.DvlMYzZB.css +1 -0
  3. package/web/app/immutable/assets/5.DBgC2kSL.css +1 -0
  4. package/web/app/immutable/chunks/{D0FrwYUQ.js → 06CP606v.js} +1 -1
  5. package/web/app/immutable/chunks/{xKX_8KWn.js → 0OdOYZJi.js} +1 -1
  6. package/web/app/immutable/chunks/{BUN1yF1L.js → 0icrH9cf.js} +1 -1
  7. package/web/app/immutable/chunks/{BHNxqf_R.js → 1cxr91i_.js} +1 -1
  8. package/web/app/immutable/chunks/{fqEAyqsN.js → 2dp9mihz.js} +1 -1
  9. package/web/app/immutable/chunks/{C4QILlBJ.js → 4i4DPzKd.js} +1 -1
  10. package/web/app/immutable/chunks/{Cm5CZ7YY.js → 6P4u1Qpi.js} +1 -1
  11. package/web/app/immutable/chunks/{Uc38XdXI.js → 8wbw8Mxv.js} +1 -1
  12. package/web/app/immutable/chunks/{BXWlOAyO.js → 9-D0Q0S6.js} +1 -1
  13. package/web/app/immutable/chunks/{BDaXmtmH.js → B1Geyr6r.js} +1 -1
  14. package/web/app/immutable/chunks/{CyFgel5k.js → B3a0tOmN.js} +1 -1
  15. package/web/app/immutable/chunks/{B3HK-q5A.js → B3tYyD3l.js} +1 -1
  16. package/web/app/immutable/chunks/{lbGH4X3r.js → B4RJxt1j.js} +1 -1
  17. package/web/app/immutable/chunks/{DBNNnuPG.js → B57g6nRd.js} +1 -1
  18. package/web/app/immutable/chunks/{Brep-rEI.js → B5IU8QZY.js} +3 -3
  19. package/web/app/immutable/chunks/{LldlwJUi.js → B6AHBw_w.js} +1 -1
  20. package/web/app/immutable/chunks/{a-vNpAtT.js → B6ZWdQk3.js} +1 -1
  21. package/web/app/immutable/chunks/{BRyWfrpo.js → B6yR2ywv.js} +1 -1
  22. package/web/app/immutable/chunks/{CRhEb0yi.js → B706oMxy.js} +3 -3
  23. package/web/app/immutable/chunks/{BTkrC1UW.js → B7U-tfjb.js} +1 -1
  24. package/web/app/immutable/chunks/{0EWUI_tF.js → BBIRqZm8.js} +1 -1
  25. package/web/app/immutable/chunks/{C4WMSxMK.js → BBW6O_MW.js} +1 -1
  26. package/web/app/immutable/chunks/{DVnaYm9M.js → BBZy8W_D.js} +1 -1
  27. package/web/app/immutable/chunks/{DGzLoy-z.js → BGGu7czf.js} +1 -1
  28. package/web/app/immutable/chunks/{DCuB-wUt.js → BIYsIqQO.js} +1 -1
  29. package/web/app/immutable/chunks/{l7ze94qr.js → BJ0eJuEr.js} +1 -1
  30. package/web/app/immutable/chunks/{CmtSXIlz.js → BJ9BJ5kr.js} +1 -1
  31. package/web/app/immutable/chunks/{n50bwg6w.js → BJudpy0q.js} +2 -2
  32. package/web/app/immutable/chunks/BKO5A3Iw.js +324 -0
  33. package/web/app/immutable/chunks/{BvW_0loN.js → BKrYyTXN.js} +1 -1
  34. package/web/app/immutable/chunks/{qiHCX_SZ.js → BO7H-py_.js} +1 -1
  35. package/web/app/immutable/chunks/{BaqlfWKa.js → BRO1WLab.js} +1 -1
  36. package/web/app/immutable/chunks/{ClioxoZj.js → BS6j7OE5.js} +1 -1
  37. package/web/app/immutable/chunks/{U2CIkvme.js → BTveGMUJ.js} +1 -1
  38. package/web/app/immutable/chunks/{D7_sioj1.js → BW2PW2g6.js} +1 -1
  39. package/web/app/immutable/chunks/{BrbLiL_x.js → BX6z7vlb.js} +1 -1
  40. package/web/app/immutable/chunks/{BgntEy_5.js → BXOgEfnf.js} +1 -1
  41. package/web/app/immutable/chunks/{Du8OSMBA.js → BYGgXMOe.js} +1 -1
  42. package/web/app/immutable/chunks/{DkZNeDFv.js → BZt_MPAk.js} +1 -1
  43. package/web/app/immutable/chunks/{DKaqc51P.js → B_Ea7vd_.js} +1 -1
  44. package/web/app/immutable/chunks/{BnQ8VATH.js → B_POKarf.js} +1 -1
  45. package/web/app/immutable/chunks/{CDGvuOsQ.js → B_yx8Ej4.js} +1 -1
  46. package/web/app/immutable/chunks/{DsD7VXOH.js → BbJ89n0c.js} +1 -1
  47. package/web/app/immutable/chunks/{bHHGnVsz.js → BfyhvmiH.js} +1 -1
  48. package/web/app/immutable/chunks/{ZWPXcFOT.js → BhCkZjyI.js} +1 -1
  49. package/web/app/immutable/chunks/{DOVovLIq.js → BjDw9Ajo.js} +1 -1
  50. package/web/app/immutable/chunks/{B5iywc0c.js → BkasMNMq.js} +1 -1
  51. package/web/app/immutable/chunks/{DvbSI76r.js → Bn4oEwGS.js} +2 -2
  52. package/web/app/immutable/chunks/{aVsZmAEF.js → BnVbje9V.js} +1 -1
  53. package/web/app/immutable/chunks/{B-gmfAcJ.js → BoZO-tBm.js} +1 -1
  54. package/web/app/immutable/chunks/{BW3vrEnw.js → Bp1cd1IE.js} +5 -5
  55. package/web/app/immutable/chunks/{4tDE6wja.js → BqJBJZqA.js} +1 -1
  56. package/web/app/immutable/chunks/{C1YheCPG.js → BsDnrJk1.js} +1 -1
  57. package/web/app/immutable/chunks/{BFY-b65a.js → BxXIBuVD.js} +1 -1
  58. package/web/app/immutable/chunks/{C99wXtMe.js → Bxg-DNLJ.js} +1 -1
  59. package/web/app/immutable/chunks/{s0Q29iiv.js → Byw0HZRE.js} +1 -1
  60. package/web/app/immutable/chunks/{DhCIIOya.js → C-0pU5-0.js} +1 -1
  61. package/web/app/immutable/chunks/{RKlkXviB.js → C-65lWvx.js} +1 -1
  62. package/web/app/immutable/chunks/{ZvX5e3AH.js → C0-5oyod.js} +1 -1
  63. package/web/app/immutable/chunks/{DsSlZ8Hs.js → C16OaEIp.js} +1 -1
  64. package/web/app/immutable/chunks/{Bn8I_2eM.js → C1xcY5Vk.js} +1 -1
  65. package/web/app/immutable/chunks/{C2-6X3Z3.js → C235722L.js} +2 -2
  66. package/web/app/immutable/chunks/{Bp70Vk4U.js → C2XyHZMq.js} +1 -1
  67. package/web/app/immutable/chunks/{BJrl0upY.js → C2_XBdun.js} +1 -1
  68. package/web/app/immutable/chunks/{Dm7OUuES.js → C2kcG-kr.js} +1 -1
  69. package/web/app/immutable/chunks/{CXbFPa4P.js → C2kqq4BW.js} +1 -1
  70. package/web/app/immutable/chunks/{CW4guVPa.js → C3II6JxD.js} +1 -1
  71. package/web/app/immutable/chunks/{Xj89EZIy.js → C3pHQ0Lo.js} +1 -1
  72. package/web/app/immutable/chunks/{BGSYASTg.js → C6Oo8BXq.js} +1 -1
  73. package/web/app/immutable/chunks/{D0lwnaH3.js → C7GMlsQo.js} +1 -1
  74. package/web/app/immutable/chunks/{DwDCAMLG.js → C88qqh5O.js} +1 -1
  75. package/web/app/immutable/chunks/{BRCenWT1.js → CActW8-2.js} +1 -1
  76. package/web/app/immutable/chunks/{D7mzoI7P.js → CEFUN1Sl.js} +1 -1
  77. package/web/app/immutable/chunks/{BjdiF3NU.js → CF5fp47H.js} +1 -1
  78. package/web/app/immutable/chunks/{DQ7w3NbE.js → CFIlMuyb.js} +1 -1
  79. package/web/app/immutable/chunks/{DWGee_yL.js → CGSuk0Cy.js} +1 -1
  80. package/web/app/immutable/chunks/{BrdmgcMW.js → CGye2JSh.js} +1 -1
  81. package/web/app/immutable/chunks/CGzJEpSM.js +1 -0
  82. package/web/app/immutable/chunks/{B-dUAUrx.js → CHja51xm.js} +1 -1
  83. package/web/app/immutable/chunks/{C2v5W_yU.js → CIJAu6bi.js} +1 -1
  84. package/web/app/immutable/chunks/{CsY3AFxY.js → CJhyAq2H.js} +1 -1
  85. package/web/app/immutable/chunks/{Bdylonvo.js → CLVYtAgH.js} +1 -1
  86. package/web/app/immutable/chunks/{DHfLNRUe.js → CNIcxzrf.js} +1 -1
  87. package/web/app/immutable/chunks/{BnbR-3eC.js → CPVCyy9H.js} +1 -1
  88. package/web/app/immutable/chunks/{lr5ofxhO.js → CPWUKQMq.js} +1 -1
  89. package/web/app/immutable/chunks/{DP7kbgS0.js → CQ8ioTJp.js} +1 -1
  90. package/web/app/immutable/chunks/{CNx8jMag.js → CRA4LiiZ.js} +3 -3
  91. package/web/app/immutable/chunks/{1gqakjEk.js → CTq4Ne1T.js} +1 -1
  92. package/web/app/immutable/chunks/{Cowgfae1.js → CU6_e7nb.js} +1 -1
  93. package/web/app/immutable/chunks/{BhHMVKkK.js → CUBgSKLj.js} +1 -1
  94. package/web/app/immutable/chunks/{CACMvEIk.js → CURoGd7C.js} +1 -1
  95. package/web/app/immutable/chunks/{B-68oH2S.js → CXfUMyfW.js} +1 -1
  96. package/web/app/immutable/chunks/CXhBPURx.js +1 -0
  97. package/web/app/immutable/chunks/{Bebubi_u.js → C_XZ4OIT.js} +2 -2
  98. package/web/app/immutable/chunks/{D3jsqDWq.js → CaO-jYXw.js} +1 -1
  99. package/web/app/immutable/chunks/{DWQ1jwFW.js → CbfVN0ay.js} +1 -1
  100. package/web/app/immutable/chunks/{DI0BmYmu.js → Cbte3-vF.js} +1 -1
  101. package/web/app/immutable/chunks/{BekOxliD.js → Cg-g09n8.js} +1 -1
  102. package/web/app/immutable/chunks/{Dj03b8fr.js → Cgqr4kLy.js} +1 -1
  103. package/web/app/immutable/chunks/{aLb41s5K.js → Ci0Iahfv.js} +1 -1
  104. package/web/app/immutable/chunks/{CehXkbc-.js → Ck0Y6rq2.js} +1 -1
  105. package/web/app/immutable/chunks/{Bu8Bi7-A.js → ClloJpHM.js} +1 -1
  106. package/web/app/immutable/chunks/{CJhZDVuE.js → Clof0uHU.js} +6 -6
  107. package/web/app/immutable/chunks/{Cxk1hw1U.js → Cn7C61pS.js} +1 -1
  108. package/web/app/immutable/chunks/{DHSIOEln.js → CnJRK_4k.js} +1 -1
  109. package/web/app/immutable/chunks/{BSwJfQ4v.js → CpvoaoFn.js} +1 -1
  110. package/web/app/immutable/chunks/{D_J63Zyl.js → CqR78knd.js} +2 -2
  111. package/web/app/immutable/chunks/{DYtAwHmE.js → Cr7b2ytM.js} +1 -1
  112. package/web/app/immutable/chunks/{Corw6Jrh.js → CrDYXSjm.js} +1 -1
  113. package/web/app/immutable/chunks/{BA_vIobR.js → Cu9PRb5L.js} +1 -1
  114. package/web/app/immutable/chunks/{C3J1SYpT.js → CuXdjaeB.js} +1 -1
  115. package/web/app/immutable/chunks/{73DumGL9.js → CyiV6pD0.js} +1 -1
  116. package/web/app/immutable/chunks/{CabEUy8J.js → Cyt8YDgF.js} +1 -1
  117. package/web/app/immutable/chunks/{Bw0bJwpw.js → D0pB9PrJ.js} +1 -1
  118. package/web/app/immutable/chunks/{ObcETXIn.js → D1erkeWj.js} +4 -4
  119. package/web/app/immutable/chunks/{BEsSRpwf.js → D3RlZ9WF.js} +1 -1
  120. package/web/app/immutable/chunks/{QwMkFOLD.js → D3ZCs28F.js} +1 -1
  121. package/web/app/immutable/chunks/{47q6TsqV.js → D3vOZLLK.js} +7 -7
  122. package/web/app/immutable/chunks/{DBLawIp_.js → D74IXn65.js} +1 -1
  123. package/web/app/immutable/chunks/{BHL5MsfB.js → D7wJhAnY.js} +1 -1
  124. package/web/app/immutable/chunks/{Cppe-wSX.js → DBIZsiql.js} +1 -1
  125. package/web/app/immutable/chunks/{DshT-ERa.js → DBV1CnUE.js} +1 -1
  126. package/web/app/immutable/chunks/{B2hdZBro.js → DDWW4aEF.js} +1 -1
  127. package/web/app/immutable/chunks/{DUl0e4O4.js → DE5PIUSw.js} +1 -1
  128. package/web/app/immutable/chunks/{C4tLIUi-.js → DFes1OFO.js} +1 -1
  129. package/web/app/immutable/chunks/{DN9Sgz-I.js → DGQD3c01.js} +1 -1
  130. package/web/app/immutable/chunks/{3Y9y-sdV.js → DHiM-AM5.js} +1 -1
  131. package/web/app/immutable/chunks/DIZ4FVb2.js +18 -0
  132. package/web/app/immutable/chunks/{DB0od0be.js → DImKkYU8.js} +1 -1
  133. package/web/app/immutable/chunks/{-GL8Xg-u.js → DIzn_5le.js} +1 -1
  134. package/web/app/immutable/chunks/{CwQ4F1Ab.js → DLuzW_sw.js} +1 -1
  135. package/web/app/immutable/chunks/{Bqwi0BWF.js → DLwjoPi-.js} +1 -1
  136. package/web/app/immutable/chunks/{Bi0GbwSO.js → DMBgFuVn.js} +1 -1
  137. package/web/app/immutable/chunks/{o8OJf27v.js → DNbwLiOD.js} +1 -1
  138. package/web/app/immutable/chunks/{BZNhUzh7.js → DPgIFT9a.js} +1 -1
  139. package/web/app/immutable/chunks/{CgjVDtx1.js → DPr1KaRP.js} +1 -1
  140. package/web/app/immutable/chunks/{wozemaTW.js → DQZE5Czs.js} +3 -3
  141. package/web/app/immutable/chunks/{BGFHZ0Gn.js → DQxz8V0J.js} +1 -1
  142. package/web/app/immutable/chunks/{D2Fb9aao.js → DShqgEnv.js} +1 -1
  143. package/web/app/immutable/chunks/{DDghWae5.js → DUl_-rTL.js} +1 -1
  144. package/web/app/immutable/chunks/{BhEPk3lK.js → DVDkPCJb.js} +1 -1
  145. package/web/app/immutable/chunks/{C9iz-mkw.js → DV_kwNjV.js} +1 -1
  146. package/web/app/immutable/chunks/{BcLb4U6k.js → DV_mjaDS.js} +1 -1
  147. package/web/app/immutable/chunks/{aCBgdpmi.js → DVtTRYro.js} +4 -4
  148. package/web/app/immutable/chunks/{Vj7OREkP.js → DW8KsuX4.js} +1 -1
  149. package/web/app/immutable/chunks/{CFBVUms-.js → D_TV1KoB.js} +1 -1
  150. package/web/app/immutable/chunks/{BdllAkCb.js → Da1sSxnj.js} +1 -1
  151. package/web/app/immutable/chunks/{Cal0nWOf.js → Da4Iij0H.js} +1 -1
  152. package/web/app/immutable/chunks/{BGhLlR2Z.js → Dc2cxcpy.js} +1 -1
  153. package/web/app/immutable/chunks/{CvLqwfko.js → Dc9RwHk1.js} +1 -1
  154. package/web/app/immutable/chunks/{C5vF3pAx.js → DddS0Lxi.js} +1 -1
  155. package/web/app/immutable/chunks/{xgWQsr-g.js → De2qZObv.js} +3 -3
  156. package/web/app/immutable/chunks/{CUtP3PhY.js → Dfq3kecl.js} +1 -1
  157. package/web/app/immutable/chunks/{DUgG-2k6.js → Di_Co9NR.js} +1 -1
  158. package/web/app/immutable/chunks/{CeOSarF3.js → Dix5ieD0.js} +1 -1
  159. package/web/app/immutable/chunks/{Bgg-wBTF.js → DjrWSiZH.js} +1 -1
  160. package/web/app/immutable/chunks/{9RsJ-LA0.js → Dky-2Jfq.js} +1 -1
  161. package/web/app/immutable/chunks/{an5t-R7s.js → Dl-1cK26.js} +1 -1
  162. package/web/app/immutable/chunks/{z5Kqmpp_.js → DlZGWt2o.js} +1 -1
  163. package/web/app/immutable/chunks/{DKmM0bqR.js → DpVk5aau.js} +1 -1
  164. package/web/app/immutable/chunks/{DRKAw6pI.js → Dpq4LLhj.js} +1 -1
  165. package/web/app/immutable/chunks/{CFvkwWFr.js → DprVQ2cA.js} +1 -1
  166. package/web/app/immutable/chunks/{VIItGFPL.js → Dq9gyYYW.js} +3 -3
  167. package/web/app/immutable/chunks/{gjFD8LCr.js → Dr8h9pQh.js} +1 -1
  168. package/web/app/immutable/chunks/{BiTsq1kw.js → DtA3iCKc.js} +1 -1
  169. package/web/app/immutable/chunks/{BrMgU118.js → DuDV8ZK3.js} +1 -1
  170. package/web/app/immutable/chunks/{CRtL6sYK.js → DvjdgbnN.js} +1 -1
  171. package/web/app/immutable/chunks/{CtFCyWOY.js → DyqEo12-.js} +1 -1
  172. package/web/app/immutable/chunks/{Bc_8WxDl.js → DzDKk1gg.js} +1 -1
  173. package/web/app/immutable/chunks/{DyJ_15yQ.js → E0mAs65C.js} +1 -1
  174. package/web/app/immutable/chunks/{D44dgkjW.js → FWWAmx1z.js} +2 -2
  175. package/web/app/immutable/chunks/{DY3dk38M.js → Ffkre1hG.js} +1 -1
  176. package/web/app/immutable/chunks/{BL9BSWt_.js → G3nZ7pCW.js} +1 -1
  177. package/web/app/immutable/chunks/{H0XHH9Lx.js → IXLuPeCo.js} +1 -1
  178. package/web/app/immutable/chunks/{CIP1ZfWd.js → JdvuJp6h.js} +2 -2
  179. package/web/app/immutable/chunks/{CdL46F2Z.js → JpmjV7Db.js} +1 -1
  180. package/web/app/immutable/chunks/{ClCKezvS.js → Jx27GIgX.js} +2 -2
  181. package/web/app/immutable/chunks/{B7Wb6zTq.js → K1lMPseK.js} +1 -1
  182. package/web/app/immutable/chunks/{_3D340Va.js → LXOG-o0_.js} +1 -1
  183. package/web/app/immutable/chunks/{DhMj2plM.js → MTrJWGR3.js} +1 -1
  184. package/web/app/immutable/chunks/{xO5nwwWo.js → MXy6fSLt.js} +1 -1
  185. package/web/app/immutable/chunks/{W4t3dmSv.js → MyzIOb1W.js} +1 -1
  186. package/web/app/immutable/chunks/{D8DZcNyr.js → PTBua5Xh.js} +1 -1
  187. package/web/app/immutable/chunks/{Dn9JK5a2.js → QM7Mq3rU.js} +1 -1
  188. package/web/app/immutable/chunks/{BxWSOWVO.js → QOrjinFU.js} +3 -3
  189. package/web/app/immutable/chunks/{DRkmccaa.js → SrK4MHE8.js} +1 -1
  190. package/web/app/immutable/chunks/{DDI0uI_H.js → SvwZEEzi.js} +1 -1
  191. package/web/app/immutable/chunks/{CKHgkzsh.js → U9kPfLYu.js} +1 -1
  192. package/web/app/immutable/chunks/{FNHey2fE.js → UZLf_gOh.js} +1 -1
  193. package/web/app/immutable/chunks/{CekHYIsk.js → WEBZ_o06.js} +1 -1
  194. package/web/app/immutable/chunks/{h1uEjX6Q.js → WcA2iudD.js} +1 -1
  195. package/web/app/immutable/chunks/{CNB2bBwk.js → XsSJjm3Z.js} +8 -8
  196. package/web/app/immutable/chunks/{HECvQSCC.js → Z8gxmaiy.js} +1 -1
  197. package/web/app/immutable/chunks/{h3ky2Xtl.js → ZXJR49AE.js} +1 -1
  198. package/web/app/immutable/chunks/{DYFkelx6.js → Zy5yxdde.js} +1 -1
  199. package/web/app/immutable/chunks/{DtYBp20I.js → aum-ppe_.js} +1 -1
  200. package/web/app/immutable/chunks/{BE4lD4BS.js → dIHdrZ0J.js} +1 -1
  201. package/web/app/immutable/chunks/{BLqH6j99.js → e4uVi_xz.js} +1 -1
  202. package/web/app/immutable/chunks/{CHF-Yq0C.js → gZyD4Xgg.js} +1 -1
  203. package/web/app/immutable/chunks/{EpMOyykO.js → hO5lTYJC.js} +1 -1
  204. package/web/app/immutable/chunks/{B4RPI3PE.js → iQC_aRCT.js} +1 -1
  205. package/web/app/immutable/chunks/{IoeO06yf.js → j08cx_T3.js} +1 -1
  206. package/web/app/immutable/chunks/{Duw-IZjh.js → koCKQeZ_.js} +1 -1
  207. package/web/app/immutable/chunks/{DNMw7H4R.js → laFj_6My.js} +1 -1
  208. package/web/app/immutable/chunks/{C6yKW00v.js → ljoDFKjK.js} +1 -1
  209. package/web/app/immutable/chunks/{WTd8htj2.js → ngC86qBA.js} +1 -1
  210. package/web/app/immutable/chunks/{D8dxdzMn.js → olmjZOKg.js} +1 -1
  211. package/web/app/immutable/chunks/{YNqVM6Pn.js → ozsIGez9.js} +1 -1
  212. package/web/app/immutable/chunks/{kslXii-P.js → p0XTH9N8.js} +1 -1
  213. package/web/app/immutable/chunks/{DQ0fhYWC.js → pJfd5MmO.js} +1 -1
  214. package/web/app/immutable/chunks/{DlAbpA5d.js → qKduNlhU.js} +1 -1
  215. package/web/app/immutable/chunks/{y6VRBo2M.js → qRsIi_ln.js} +1 -1
  216. package/web/app/immutable/chunks/{B5F8O-gO.js → rbIA3dG7.js} +1 -1
  217. package/web/app/immutable/chunks/{CWhinB9Y.js → tJ-CDXo8.js} +12 -12
  218. package/web/app/immutable/chunks/{D1gMbWP8.js → tksjIHll.js} +1 -1
  219. package/web/app/immutable/chunks/{GM1mBWt-.js → ufjD9HMd.js} +1 -1
  220. package/web/app/immutable/chunks/{D8a7wHlQ.js → vAfS3WCg.js} +1 -1
  221. package/web/app/immutable/chunks/{9a62qcQ7.js → vzubbBuY.js} +1 -1
  222. package/web/app/immutable/chunks/{Tbbe1dbh.js → xP-uKOUF.js} +1 -1
  223. package/web/app/immutable/entry/{app.D05YlZME.js → app.Dc4YeEY_.js} +2 -2
  224. package/web/app/immutable/entry/start.PtYCYwR4.js +1 -0
  225. package/web/app/immutable/nodes/{0.LnuswXdL.js → 0.DbnCL5nQ.js} +1 -1
  226. package/web/app/immutable/nodes/{1.BBz2p_l7.js → 1.CVS85gWq.js} +1 -1
  227. package/web/app/immutable/nodes/{10.Bkss7kyV.js → 10.CZl73L63.js} +1 -1
  228. package/web/app/immutable/nodes/{12.ahtCER6A.js → 12.ovtxIhM8.js} +1 -1
  229. package/web/app/immutable/nodes/{13.DYGu0QHS.js → 13.Bu_iJM_J.js} +1 -1
  230. package/web/app/immutable/nodes/{14.CHRRgsAs.js → 14.CT1XXzad.js} +1 -1
  231. package/web/app/immutable/nodes/{15.De0cpvot.js → 15.LrePapt-.js} +1 -1
  232. package/web/app/immutable/nodes/{16.DJqmOr4R.js → 16.CVL9-Zg8.js} +2 -2
  233. package/web/app/immutable/nodes/2.BoJKKzRY.js +9 -0
  234. package/web/app/immutable/nodes/{3.CjrKR4es.js → 3.DyGbBGpY.js} +1 -1
  235. package/web/app/immutable/nodes/{4.Cc1Wrh3X.js → 4.Bv-XaVrT.js} +1 -1
  236. package/web/app/immutable/nodes/{5.riH2s22o.js → 5.D3L4L-Jl.js} +1 -1
  237. package/web/app/immutable/nodes/{6.DFzfBxxH.js → 6.CCiQpsFo.js} +1 -1
  238. package/web/app/immutable/nodes/{7.DuBvggKz.js → 7.BmWbhC6E.js} +1 -1
  239. package/web/app/immutable/nodes/{8.D0_snN-z.js → 8.DqfjoiGI.js} +4 -4
  240. package/web/app/immutable/nodes/{9.FxuJzZaQ.js → 9.B6Z2Rp8_.js} +4 -4
  241. package/web/app/version.json +1 -1
  242. package/web/index.html +10 -10
  243. package/web/app/immutable/assets/0.Hnrlh_nF.css +0 -1
  244. package/web/app/immutable/assets/5.MJsnOXij.css +0 -1
  245. package/web/app/immutable/chunks/CZOawK4P.js +0 -18
  246. package/web/app/immutable/chunks/Cf3hiWsI.js +0 -1
  247. package/web/app/immutable/chunks/Dmk6CuVf.js +0 -324
  248. package/web/app/immutable/chunks/l87kbv25.js +0 -1
  249. package/web/app/immutable/entry/start.CltNpI3_.js +0 -1
  250. package/web/app/immutable/nodes/2.0WZE4VZ1.js +0 -9
@@ -1,4 +1,4 @@
1
- import{I as he}from"./DCuB-wUt.js";import{p as $e}from"./DBNNnuPG.js";import{p as fe}from"./Bc_8WxDl.js";import{O as ge,aI as ue,aF as ye,K as xe,L as me,aG as pe,a as h,M as Z,ad as w,N as W,aV as be,aL as we,k as ke,p as B,j as ve,y as Ce,at as Ee}from"./47q6TsqV.js";import{c3 as Be,g as K}from"./CJhZDVuE.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ce.gitGraph,S=h(()=>ve({...Te,...Z().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return Ee({length:7})}K(N,"getID");h(N,"getID");function ee(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}K(ee,"uniqBy");h(ee,"uniqBy");var Le=h(function(e){d.records.direction=e},"setDirection"),Me=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+N(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Oe=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ne(r),w.debug("in createBranch")},"branch"),_e=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${N()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ge=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ne=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function z(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}K(z,"upsert");h(z,"upsert");function U(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);z(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);z(e,r,o)}}e=ee(e,o=>o.id),U(e)}K(U,"prettyPrintCommitHistory");h(U,"prettyPrintCommitHistory");var He=h(function(){w.debug(d.records.commits);const e=se()[0];U([e])},"prettyPrint"),Se=h(function(){d.reset(),ke()},"clear"),Ae=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=h(function(){return d.records.branches},"getBranches"),Pe=h(function(){return d.records.commits},"getCommits"),se=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),Ne=h(function(){return d.records.head},"getHead"),oe={commitType:m,getConfig:S,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:pe,getAccTitle:me,getAccDescription:xe,setAccDescription:ye,setDiagramTitle:ue,getDiagramTitle:ge},Fe=h((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=h((e,r)=>{const s={Commit:h(o=>r.commit(Ye(o)),"Commit"),Branch:h(o=>r.branch(je(o)),"Branch"),Merge:h(o=>r.merge(Ke(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ve(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ve=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Xe={parse:h(async e=>{const r=await fe("gitGraph",e);w.debug(r),Fe(r,oe)},"parse")},O=10,_=40,L=4,I=2,G=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Q=12,re=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,Y=30,P=new Map,j=[],R=0,y="LR",Qe=h(()=>{C.clear(),E.clear(),P.clear(),R=0,j=[],y="LR"},"clear"),ce=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ie=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Ze=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),er=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=tr(a),o=Math.max(s,o)):i.push(a),ar(a,s)}),s=o,i.forEach(n=>{nr(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Ze(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),rr=h(e=>{const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=h(e=>rr(e)+_,"calculateCommitPosition"),ar=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),nr=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),sr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=V.has(n??""),l=re.has(n??""),f=Je.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),or=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),cr=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{I as he}from"./BIYsIqQO.js";import{p as $e}from"./B57g6nRd.js";import{p as fe}from"./DzDKk1gg.js";import{O as ge,aI as ue,aF as ye,K as xe,L as me,aG as pe,a as h,M as Z,ad as w,N as W,aV as be,aL as we,k as ke,p as B,j as ve,y as Ce,at as Ee}from"./D3vOZLLK.js";import{c3 as Be,g as K}from"./Clof0uHU.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ce.gitGraph,S=h(()=>ve({...Te,...Z().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return Ee({length:7})}K(N,"getID");h(N,"getID");function ee(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}K(ee,"uniqBy");h(ee,"uniqBy");var Le=h(function(e){d.records.direction=e},"setDirection"),Me=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+N(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Oe=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ne(r),w.debug("in createBranch")},"branch"),_e=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${N()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ge=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ne=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function z(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}K(z,"upsert");h(z,"upsert");function U(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);z(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);z(e,r,o)}}e=ee(e,o=>o.id),U(e)}K(U,"prettyPrintCommitHistory");h(U,"prettyPrintCommitHistory");var He=h(function(){w.debug(d.records.commits);const e=se()[0];U([e])},"prettyPrint"),Se=h(function(){d.reset(),ke()},"clear"),Ae=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=h(function(){return d.records.branches},"getBranches"),Pe=h(function(){return d.records.commits},"getCommits"),se=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),Ne=h(function(){return d.records.head},"getHead"),oe={commitType:m,getConfig:S,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:pe,getAccTitle:me,getAccDescription:xe,setAccDescription:ye,setDiagramTitle:ue,getDiagramTitle:ge},Fe=h((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=h((e,r)=>{const s={Commit:h(o=>r.commit(Ye(o)),"Commit"),Branch:h(o=>r.branch(je(o)),"Branch"),Merge:h(o=>r.merge(Ke(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ve(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ve=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Xe={parse:h(async e=>{const r=await fe("gitGraph",e);w.debug(r),Fe(r,oe)},"parse")},O=10,_=40,L=4,I=2,G=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Q=12,re=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,Y=30,P=new Map,j=[],R=0,y="LR",Qe=h(()=>{C.clear(),E.clear(),P.clear(),R=0,j=[],y="LR"},"clear"),ce=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ie=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Ze=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),er=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=tr(a),o=Math.max(s,o)):i.push(a),ar(a,s)}),s=o,i.forEach(n=>{nr(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Ze(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),rr=h(e=>{const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=h(e=>rr(e)+_,"calculateCommitPosition"),ar=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),nr=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),sr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=V.has(n??""),l=re.has(n??""),f=Je.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),or=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),cr=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+I}
3
3
  ${s-i/2-L/2},${x-I}
4
4
  ${t.posWithOffset-i/2-L},${x-c-I}
@@ -1 +1 @@
1
- import{a8 as j,bc as p,a2 as w,bd as k,be as q}from"./CJhZDVuE.js";import{i as D}from"./Gi6I4Gst.js";import{e as g,b as F,a as z,f as B}from"./CrowFXzY.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=N(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=N(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function N(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function d(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=d(u,e),f=t(a,f)):(e=d(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=d(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=N,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};
1
+ import{a8 as j,bc as p,a2 as w,bd as k,be as q}from"./Clof0uHU.js";import{i as D}from"./Gi6I4Gst.js";import{e as g,b as F,a as z,f as B}from"./CrowFXzY.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const O=Math.sqrt(50),T=Math.sqrt(10),C=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=O?10:f>=T?5:f>=C?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function E(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function G(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function H(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=N(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=N(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function N(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?L:J(r)?H:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function d(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=d(u,e),f=t(a,f)):(e=d(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=d(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=N,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=G(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return E(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,G as t};
@@ -1,4 +1,4 @@
1
- import{g as se}from"./HECvQSCC.js";import{a as p,ad as k,N as F,ax as ie,aV as re,L as ae,aG as ne,K as oe,aF as le,aI as ce,O as he,I as ue,p as z,k as de,as as fe}from"./47q6TsqV.js";import{s as pe}from"./Bgg-wBTF.js";import{c as Se}from"./BDaXmtmH.js";import{g as m,c3 as vt}from"./CJhZDVuE.js";var xt=(function(){var t=p(function(M,o,h,a){for(h=h||{},a=M.length;a--;h[M[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],b=[1,33],I=[1,20],v=[1,21],f=[1,22],w=[1,23],$=[1,24],A=[1,26],P=[1,27],x=[1,28],B=[1,29],N=[1,30],K=[1,31],ot=[1,32],lt=[1,35],ct=[1,36],ht=[1,37],ut=[1,38],X=[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],dt=[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],Ot=[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],Tt={trace:p(m(function(){},"trace"),"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(m(function(o,h,a,g,_,i,G){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 st=i[l-1];st.description=g.trimColon(i[l]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Et=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Et};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],J=i[l-2].trim();if(i[l].match(":")){var ft=i[l].split(":");Y=ft[0],J=[J,ft[1]]}this.$={stmt:"state",id:Y,type:"default",description:J};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"),"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:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},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:b,57:X},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(dt,[2,44],{58:[1,56]}),t(dt,[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:b,57:X},t(y,[2,17]),t(Ot,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:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},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(dt,[2,46]),t(dt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Ot,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:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},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(m(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),"parseError"),parse:p(m(function(o){var h=this,a=[0],g=[],_=[null],i=[],G=this.table,l="",Y=0,J=0,ft=2,st=1,Et=i.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(j.yy[_t]=this.yy[_t]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var mt=D.yylloc;i.push(mt);var ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Rt(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}m(Rt,"popStack"),p(Rt,"popStack");function bt(){var O;return O=g.pop()||D.lex()||st,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}m(bt,"lex"),p(bt,"lex");for(var L,H,R,kt,q={},pt,V,$t,St;;){if(H=a[a.length-1],this.defaultActions[H]?R=this.defaultActions[H]:((L===null||typeof L>"u")&&(L=bt()),R=G[H]&&G[H][L]),typeof R>"u"||!R.length||!R[0]){var Dt="";St=[];for(pt in G[H])this.terminals_[pt]&&pt>ft&&St.push("'"+this.terminals_[pt]+"'");D.showPosition?Dt="Parse error on line "+(Y+1)+`:
1
+ import{g as se}from"./Z8gxmaiy.js";import{a as p,ad as k,N as F,ax as ie,aV as re,L as ae,aG as ne,K as oe,aF as le,aI as ce,O as he,I as ue,p as z,k as de,as as fe}from"./D3vOZLLK.js";import{s as pe}from"./DjrWSiZH.js";import{c as Se}from"./B1Geyr6r.js";import{g as m,c3 as vt}from"./Clof0uHU.js";var xt=(function(){var t=p(function(M,o,h,a){for(h=h||{},a=M.length;a--;h[M[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],b=[1,33],I=[1,20],v=[1,21],f=[1,22],w=[1,23],$=[1,24],A=[1,26],P=[1,27],x=[1,28],B=[1,29],N=[1,30],K=[1,31],ot=[1,32],lt=[1,35],ct=[1,36],ht=[1,37],ut=[1,38],X=[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],dt=[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],Ot=[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],Tt={trace:p(m(function(){},"trace"),"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(m(function(o,h,a,g,_,i,G){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 st=i[l-1];st.description=g.trimColon(i[l]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Et=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Et};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],J=i[l-2].trim();if(i[l].match(":")){var ft=i[l].split(":");Y=ft[0],J=[J,ft[1]]}this.$={stmt:"state",id:Y,type:"default",description:J};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"),"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:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},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:b,57:X},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(dt,[2,44],{58:[1,56]}),t(dt,[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:b,57:X},t(y,[2,17]),t(Ot,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:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},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(dt,[2,46]),t(dt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Ot,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:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},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(m(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),"parseError"),parse:p(m(function(o){var h=this,a=[0],g=[],_=[null],i=[],G=this.table,l="",Y=0,J=0,ft=2,st=1,Et=i.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(j.yy[_t]=this.yy[_t]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var mt=D.yylloc;i.push(mt);var ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Rt(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}m(Rt,"popStack"),p(Rt,"popStack");function bt(){var O;return O=g.pop()||D.lex()||st,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}m(bt,"lex"),p(bt,"lex");for(var L,H,R,kt,q={},pt,V,$t,St;;){if(H=a[a.length-1],this.defaultActions[H]?R=this.defaultActions[H]:((L===null||typeof L>"u")&&(L=bt()),R=G[H]&&G[H][L]),typeof R>"u"||!R.length||!R[0]){var Dt="";St=[];for(pt in G[H])this.terminals_[pt]&&pt>ft&&St.push("'"+this.terminals_[pt]+"'");D.showPosition?Dt="Parse error on line "+(Y+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+St.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Dt="Parse error on line "+(Y+1)+": Unexpected "+(L==st?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Dt,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:mt,expected:St})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+L);switch(R[0]){case 1:a.push(L),_.push(D.yytext),i.push(D.yylloc),a.push(R[1]),L=null,J=D.yyleng,l=D.yytext,Y=D.yylineno,mt=D.yylloc;break;case 2:if(V=this.productions_[R[1]][1],q.$=_[_.length-V],q._$={first_line:i[i.length-(V||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(V||1)].first_column,last_column:i[i.length-1].last_column},ee&&(q._$.range=[i[i.length-(V||1)].range[0],i[i.length-1].range[1]]),kt=this.performAction.apply(q,[l,J,Y,j.yy,R[1],_,i].concat(Et)),typeof kt<"u")return kt;V&&(a=a.slice(0,-1*V*2),_=_.slice(0,-1*V),i=i.slice(0,-1*V)),a.push(this.productions_[R[1]][0]),_.push(q.$),i.push(q._$),$t=G[a[a.length-2]][a[a.length-1]],a.push($t);break;case 3:return!0}}return!0},"parse"),"parse")},te=(function(){var M={EOF:1,parseError:p(m(function(h,a){if(this.yy.parser)this.yy.parser.parseError(h,a);else throw new Error(h)},"parseError"),"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,3 +1,3 @@
1
- import{fv as B,Gt as n,mC as x,l5 as H,kY as U,rB as F}from"./Ba4gy30X.js";import{f as G,F as K,dL as j,cD as T,dk as m,dw as E,dG as L,cy as q,aA as Y}from"./CZOawK4P.js";import{l as V,R as $,E as z}from"./55UpOZBT.js";function J(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function g(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,o=s&&new Date(s).getTime()||0;return Math.max(t,o)}function Se(e){const t=e.filter(J).map(s=>({agent:s,activity:g(s),created:new Date(s.createdAt).getTime()||0})).sort((s,o)=>o.activity-s.activity||o.created-s.created||String(s.agent.id).localeCompare(String(o.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",N="New chat";function Q(e){const t=e?.trim();return!t||t===N||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function X(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const o=e.messages.find(l=>l.role==="user")??e.messages[0],c=o?G(o).trim():"";return!t||Q(t)?c||N:c||t}const Z="chief-of-staff",ee=6,W="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function ke(e){const t=e?.trim();return t?`${W}
1
+ import{fv as B,Gt as n,mC as x,l5 as H,kY as U,rB as F}from"./Ba4gy30X.js";import{f as G,F as K,dL as j,cD as T,dk as m,dw as E,dG as L,cy as q,aA as Y}from"./DIZ4FVb2.js";import{l as V,R as $,E as z}from"./55UpOZBT.js";function J(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function g(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,o=s&&new Date(s).getTime()||0;return Math.max(t,o)}function Se(e){const t=e.filter(J).map(s=>({agent:s,activity:g(s),created:new Date(s.createdAt).getTime()||0})).sort((s,o)=>o.activity-s.activity||o.created-s.created||String(s.agent.id).localeCompare(String(o.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",N="New chat";function Q(e){const t=e?.trim();return!t||t===N||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function X(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const o=e.messages.find(l=>l.role==="user")??e.messages[0],c=o?G(o).trim():"";return!t||Q(t)?c||N:c||t}const Z="chief-of-staff",ee=6,W="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function ke(e){const t=e?.trim();return t?`${W}
2
2
 
3
3
  ${t}`:W}const te=n.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?x(s.hooks):[]}),se=n.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),M=n.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??H),me=n.createSelector((e,t,s)=>{const o=M.select(e,t);return o.status==="unsupported"?[]:o.monitors.filter(c=>c.agentId===s)}),u=n.createSelector((e,t,s)=>{const o=F(t,s);return e.agentSubscriptionUI.entries[o]??U}),oe=n.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ne=n.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),re=n.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Ie=n.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),we=n.createSelector((e,t,s)=>u.select(e,t,s).waitingState),be=n.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function ae(e){return[...new Set(e.filter(Boolean))]}const Ae=n.createSelector((e,t,s)=>{const o=u.select(e,t,s),c=[],l=new Set,i=r=>{for(const a of ae(r))l.has(a)||(l.add(a),c.push(a))},S=[...o.subscriptions].sort((r,a)=>r.createdAt.localeCompare(a.createdAt)||r.id.localeCompare(a.id));for(const r of S)r.delegationGroup?.awaitMode!=="all"&&i(r.actorIds);const f=new Map;for(const r of o.delegationGroups)r.awaitMode==="all"&&f.set(r.groupId,r);for(const r of f.values())i(r.expectedAgentIds);for(const r of S){const a=r.delegationGroup;a?.awaitMode==="all"&&!f.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const r of o.delegationGroups){for(const a of r.completedAgentIds)d.add(a);for(const a of r.deletedAgentIds)d.add(a);for(const[a,h]of Object.entries(r.agentStatuses))h==="completed"&&d.add(a)}for(const[r,a]of Object.entries(o.agentStatuses))a==="completed"&&d.add(r);const b=e.agentSessions?.byAgentId??{},A=new Set([...d].filter(r=>{const a=b[r];return!a||!K(j(a))})),v=new Map(c.map((r,a)=>[r,a])),y=r=>{const a=b[r];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(A.has(r))return 4;const h=String(a.status).toLowerCase();return h==="responding"||h==="active"||h==="processing"?2:3},C=c.filter(r=>!A.has(r)).sort((r,a)=>y(r)-y(a)||(v.get(r)??0)-(v.get(a)??0));return{visible:o.snapshotStatus==="failed"||o.waitingState==="completed"||c.length>0||o.wokenUpInfo!==null,count:C.length,participantAgentIds:C}}),ve=n.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),ye=n.createSelector((e,t)=>{const s=`${t}:`,o=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&o.push(c.slice(s.length));return o});n.createSelector((e,t,s)=>{const o=re.select(e,t,s);let c=0,l=0;for(const i of o)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Ce=n.createSelector(e=>{const t=V.select(e);if(!t||!$.select(e))return[];const s=new Set;for(const o of z.select(e,t)){const c=o.panes.find(l=>l.id===o.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(o=>({wsId:t,agentId:o}))}),O="pinned",ce=64;function k(e){return e.trim().toLocaleLowerCase()}function P(e){return e===O}function We(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>ce)return{ok:!1,error:"tooLong"};const o=k(s);return o===O?{ok:!1,error:"reserved"}:t.some(c=>k(c)===o)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function ie(e){const t=new Map;for(const s of e){if(typeof s!="string"||P(s))continue;const o=s.trim();if(o.length===0)continue;const c=k(o);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,o)=>s.localeCompare(o,void 0,{sensitivity:"base"}))}function I(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,o=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return o?l.filter(i=>o.has(String(i.id))):l}function _(e){return e.metadata?.specialist===Z&&e.metadata?.chiefPromptVersion===ee}function D(e){return Math.max(e.messages.length,e.messageCount??0)}function w(e){return{agentId:e.id,title:X(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:D(e)}}const Te=n.createSelector(e=>e.sidebarNav.panelItem),Ee=n.createSelector(e=>e.sidebarNav.onboardingActive),Le=n.createSelector(e=>e.sidebarNav.showCreateModal),R=n.createSelector(e=>T.select(e)?.capabilities.workspaceLabels===1),Ne=n.createSelector((e,t)=>m.select(e,t)?.label??null),Me=n.createSelector(e=>ie(E.select(e).map(t=>t.label))),le=["id","label"],Oe=n.createSelector((e,t)=>R.select(e)&&L.select(e,t,le)!==null),de=n.createSelector(e=>T.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),pe=n.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Pe=n.createSelector((e,t)=>m.select(e,t)?.autoArchiveDisabled===!0),ue=["id","autoArchiveDisabled"],_e=n.createSelector((e,t)=>{if(!de.select(e)||!pe.select(e))return!1;const s=m.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:L.select(e,t,ue)!==null}),De=n.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Re=n.createSelector(e=>R.select(e)?E.select(e).filter(t=>P(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Be=n.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),xe=n.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),He=n.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),Ue=n.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Fe=n.createSelector(e=>e.sidebarNav.chiefActiveAgentId),Ge=n.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const o=se.select(e,p)==="ready"?te.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=q.select(e,p)==="ready"?Y.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=M.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,S=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(oe.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),f=ne.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:o,monitors:c+i,subscriptions:S+f}}),Ke=n.createSelector(e=>e.sidebarNav.statsOverlayOpen),je=n.createSelector(e=>I(e).slice().sort((t,s)=>g(s)-g(t)).map(w)),qe=n.createSelector(e=>{const t=I(e).filter(_).sort((s,o)=>g(o)-g(s))[0];return t?w(t):null}),Ye=n.createSelector(e=>{const t=I(e).filter(s=>D(s)===0&&!s.lastMessageId&&_(s)).sort((s,o)=>g(o)-g(s))[0];return t?w(t):null});export{Ye as A,M as B,ee as C,N as D,Le as E,Ke as F,ve as G,ye as H,we as I,be as J,Pe as K,He as L,Ue as M,Ne as N,Me as O,O as P,xe as Q,We as R,ce as W,Z as a,p as b,ke as c,J as d,Ae as e,Ie as f,oe as g,Ge as h,P as i,te as j,se as k,_e as l,Oe as m,Fe as n,je as o,qe as p,re as q,Se as r,me as s,Ce as t,R as u,De as v,Be as w,Ee as x,Te as y,Re as z};
@@ -1,4 +1,4 @@
1
- import{e as Le}from"./Bu8Bi7-A.js";import{c6 as Ie,aK as Me,aL as Be,c7 as Ve,f as d,aO as wt,bC as he,a6 as Ye,u as Fe,W as Dt,cf as Ue,c2 as be,c3 as Jt,cA as je,a4 as $t,V as de}from"./CJhZDVuE.js";var Ut=(function(){var t=d(function(yt,g,x,E){for(x=x||{},E=yt.length;E--;x[yt[E]]=g);return x},"o"),e=[1,24],s=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],r=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],st=[1,48],rt=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],Tt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],ie=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],mt=[12,33],Xt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(g,x,E,_,D,o,Pt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(Tt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:r,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Tt,[2,14]),t(Wt,[2,16],{12:[1,76]}),t(Tt,[2,36],{12:[1,77]}),t(Ot,[2,19]),t(Ot,[2,20]),{25:[1,78]},{27:[1,79]},t(Ot,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Tt,[2,15]),t(Wt,[2,17],{21:22,19:130,22:e,23:s,24:a,26:u,28:i}),t(Tt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:a,26:u,28:i,34:n,36:l,37:r,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Ot,[2,21]),t(Ot,[2,22]),t(R,[2,39]),t(ie,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Mt,[2,73]),{78:[1,133]},t(Mt,[2,75]),t(Mt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(mt,[2,28]),t(mt,[2,29]),t(mt,[2,30]),t(mt,[2,31]),t(mt,[2,32]),t(mt,[2,33]),t(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Wt,[2,18]),t(Tt,[2,38]),t(ie,[2,72]),t(Mt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Xt,[2,25]),t(Xt,[2,26],{12:[1,138]}),t(Xt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(g,x){if(x.recoverable)this.trace(g);else{var E=new Error(g);throw E.hash=x,E}},"parseError"),parse:d(function(g){var x=this,E=[0],_=[],D=[null],o=[],Pt=this.table,p="",xt=0,oe=0,Pe=2,le=1,De=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(vt.yy[Ht]=this.yy[Ht]);A.setInput(g,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Qt=A.yylloc;o.push(Qt);var Ne=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Ae,"popStack");function ce(){var B;return B=_.pop()||A.lex()||le,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ce,"lex");for(var M,Et,V,Kt,kt={},Vt,j,ue,Yt;;){if(Et=E[E.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((M===null||typeof M>"u")&&(M=ce()),V=Pt[Et]&&Pt[Et][M]),typeof V>"u"||!V.length||!V[0]){var Gt="";Yt=[];for(Vt in Pt[Et])this.terminals_[Vt]&&Vt>Pe&&Yt.push("'"+this.terminals_[Vt]+"'");A.showPosition?Gt="Parse error on line "+(xt+1)+`:
1
+ import{e as Le}from"./ClloJpHM.js";import{c6 as Ie,aK as Me,aL as Be,c7 as Ve,f as d,aO as wt,bC as he,a6 as Ye,u as Fe,W as Dt,cf as Ue,c2 as be,c3 as Jt,cA as je,a4 as $t,V as de}from"./Clof0uHU.js";var Ut=(function(){var t=d(function(yt,g,x,E){for(x=x||{},E=yt.length;E--;x[yt[E]]=g);return x},"o"),e=[1,24],s=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],r=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],st=[1,48],rt=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],Tt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],ie=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],mt=[12,33],Xt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(g,x,E,_,D,o,Pt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(Tt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:r,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Tt,[2,14]),t(Wt,[2,16],{12:[1,76]}),t(Tt,[2,36],{12:[1,77]}),t(Ot,[2,19]),t(Ot,[2,20]),{25:[1,78]},{27:[1,79]},t(Ot,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Tt,[2,15]),t(Wt,[2,17],{21:22,19:130,22:e,23:s,24:a,26:u,28:i}),t(Tt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:a,26:u,28:i,34:n,36:l,37:r,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Ot,[2,21]),t(Ot,[2,22]),t(R,[2,39]),t(ie,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Mt,[2,73]),{78:[1,133]},t(Mt,[2,75]),t(Mt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(mt,[2,28]),t(mt,[2,29]),t(mt,[2,30]),t(mt,[2,31]),t(mt,[2,32]),t(mt,[2,33]),t(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Wt,[2,18]),t(Tt,[2,38]),t(ie,[2,72]),t(Mt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Xt,[2,25]),t(Xt,[2,26],{12:[1,138]}),t(Xt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(g,x){if(x.recoverable)this.trace(g);else{var E=new Error(g);throw E.hash=x,E}},"parseError"),parse:d(function(g){var x=this,E=[0],_=[],D=[null],o=[],Pt=this.table,p="",xt=0,oe=0,Pe=2,le=1,De=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(vt.yy[Ht]=this.yy[Ht]);A.setInput(g,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Qt=A.yylloc;o.push(Qt);var Ne=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Ae,"popStack");function ce(){var B;return B=_.pop()||A.lex()||le,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ce,"lex");for(var M,Et,V,Kt,kt={},Vt,j,ue,Yt;;){if(Et=E[E.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((M===null||typeof M>"u")&&(M=ce()),V=Pt[Et]&&Pt[Et][M]),typeof V>"u"||!V.length||!V[0]){var Gt="";Yt=[];for(Vt in Pt[Et])this.terminals_[Vt]&&Vt>Pe&&Yt.push("'"+this.terminals_[Vt]+"'");A.showPosition?Gt="Parse error on line "+(xt+1)+`:
2
2
  `+A.showPosition()+`
3
3
  Expecting `+Yt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(xt+1)+": Unexpected "+(M==le?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:A.match,token:this.terminals_[M]||M,line:A.yylineno,loc:Qt,expected:Yt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+M);switch(V[0]){case 1:E.push(M),D.push(A.yytext),o.push(A.yylloc),E.push(V[1]),M=null,oe=A.yyleng,p=A.yytext,xt=A.yylineno,Qt=A.yylloc;break;case 2:if(j=this.productions_[V[1]][1],kt.$=D[D.length-j],kt._$={first_line:o[o.length-(j||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(j||1)].first_column,last_column:o[o.length-1].last_column},Ne&&(kt._$.range=[o[o.length-(j||1)].range[0],o[o.length-1].range[1]]),Kt=this.performAction.apply(kt,[p,oe,xt,vt.yy,V[1],D,o].concat(De)),typeof Kt<"u")return Kt;j&&(E=E.slice(0,-1*j*2),D=D.slice(0,-1*j),o=o.slice(0,-1*j)),E.push(this.productions_[V[1]][0]),D.push(kt.$),o.push(kt._$),ue=Pt[E[E.length-2]][E[E.length-1]],E.push(ue);break;case 3:return!0}}return!0},"parse")},Oe=(function(){var yt={EOF:1,parseError:d(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),setInput:d(function(g,x){return this.yy=x||this.yy||{},this._input=g,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:d(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var x=g.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:d(function(g){var x=g.length,E=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=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),E.length-1&&(this.yylineno-=E.length-1);var D=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:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(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:d(function(g){this.unput(this.match.slice(g))},"less"),pastInput:d(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var g=this.pastInput(),x=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/ClCKezvS.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DMsRLycu.js","/app/immutable/chunks/BsvsTmot.js","/app/immutable/chunks/an5t-R7s.js","/app/immutable/chunks/AEjnVR5F.js","/app/immutable/chunks/ZX1TUMY0.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CNB2bBwk.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/i6wjEWTF.js","/app/immutable/chunks/CY7B0zXs.js","/app/immutable/chunks/Dg4AJKkW.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C4WMSxMK.js","/app/immutable/chunks/BVtWH5RS.js","/app/immutable/chunks/Ba4gy30X.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/_3D340Va.js","/app/immutable/chunks/D0FrwYUQ.js","/app/immutable/chunks/Cy5UaoOp.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/Czr8Q6s1.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/Bw0bJwpw.js","/app/immutable/chunks/55UpOZBT.js","/app/immutable/chunks/BdrU1VNg.js","/app/immutable/chunks/CZOawK4P.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/FCmf5yeg.js","/app/immutable/chunks/utwal-1U.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DHJ5VEVY.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/D8DZcNyr.js","/app/immutable/chunks/9RsJ-LA0.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BXWlOAyO.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/VIItGFPL.js","/app/immutable/chunks/019JoT9w.js","/app/immutable/chunks/D7gNyfhu.js","/app/immutable/chunks/C2-6X3Z3.js","/app/immutable/chunks/s0Q29iiv.js","/app/immutable/chunks/BW3vrEnw.js","/app/immutable/chunks/Bp70Vk4U.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/BnQ8VATH.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bo as v,t as jt,bq as y,a_ as M,by as Wt,b as Ut,br as Sf,bu as Ot,bs as ia,bt as oi,b7 as Yi,ba as If,bl as Cf,bb as Ef,bm as Pf,a$ as Af,b9 as Tf,b8 as Rf,b2 as Lf,bf as Nf,bg as Mf,bk as Of,be as Df,bn as Bf,b0 as Ff,b4 as zf,bi as Hf,bh as jf,b6 as Wf,b5 as Uf,b3 as qf,bd as Vf,bc as Kf,bj as Gf,b1 as Jf,_ as Yf}from"./DMsRLycu.js";import{bI as Xf,bj as vs,aG as Zf,bs as qt,aD as e,a5 as I,bS as m,bA as w,W as d,bn as Vt,c9 as u,aA as _,a7 as wt,ay as ze,be as ar,b$ as Dt,aC as ba,bl as R,b_ as k,bO as x,aB as S,bo as ms,ca as It,bH as N,bV as xe,br as qr,bk as hs,c0 as Jn,ai as Pa,cd as ss,aw as Cn,a as Qf,aj as Tr,c7 as $f,c6 as Xi,c5 as Nn,bf as Os,bz as zc}from"./B8o4lNgr.js";import{D as Ds,I as ep,x as tp}from"./CY7B0zXs.js";import{c as rp,s as se,a as Mn,l as On,f as En,d as ur,k as mt,I as bs,h as Rt,i as Mr,o as np,j as ap,g as sp,n as op}from"./ZX1TUMY0.js";import{s as pn}from"./BsvsTmot.js";import{c as Zr}from"./i6wjEWTF.js";import{H as Oo,t as lr,n as ip,i as Zi,u as Qi}from"./AEjnVR5F.js";import{b as gr}from"./D2g8BuR1.js";import{h as Hc,bt as lp,cI as cp,dA as dp,dl as up,aw as fp,cs as pp,a1 as gp,cO as vp,dk as os,aB as Js,c1 as mp,H as hp,c as bp,$ as $i,cU as yp,bR as _p,L as xp,dh as wp,V as kp,dr as Sp,ae as Ip,f as Cp,t as Ep}from"./CZOawK4P.js";import{c as Pp}from"./D-62MVd3.js";import{n as $n,w as Ap,C as jc,M as Tp,R as Rp}from"./9RsJ-LA0.js";import{f as yt,ap as Wa,ai as Lp,am as Do,bc as Np}from"./CNB2bBwk.js";import{ai as Mp,a7 as el,X as Op,at as Dp,aM as Bp,I as Fp,R as zp,an as Hp,ab as jp,Y as Wp,b as tl,q as Up,n as qp,aS as Vp,m as Kp,aU as Bo,A as rl,aa as Gp,aT as Jp,ak as Wc,L as Uc,a3 as Yp,a2 as nl,J as al}from"./aCBgdpmi.js";import{cV as Xp,F as Pt,be as Fo,bI as Zp,an as Qp,aO as $p,cF as eg,bi as ii,by as tg,aE as qc,aJ as li,cU as Bs,aa as zo,cj as rg,c9 as ng,ce as ci,cA as Vc,bp as ag,e as sg,bY as sl,c5 as og,ch as ig,cQ as Kc,bS as ol,b5 as mo,bb as ts,aD as lg,ay as Ho,at as Gc,b9 as Jc,bz as cg,B as dg,bs as ug,a6 as Yc,cd as fg,ak as Xc,cH as Zc,cD as il,ar as Qc,aI as ll,a1 as pg,cr as gg,cO as vg,bL as $c,bk as mg,c1 as cl,am as ed,ax as hg,a8 as bg,a7 as yg}from"./Cy5UaoOp.js";import{c as td}from"./ChTqQfQN.js";import{h as _g}from"./utwal-1U.js";import{Gt as Lt,bH as xg,qH as dl,rh as wg,Hf as kg,Hl as Sg,g as rd,Gf as Ig,mA as nd,mP as ad,mO as sd,mt as Ys,p0 as di,we as Cg,tv as As,sQ as jo,tx as Eg,mh as od,Gy as Pg,rP as Ag,nD as id,q4 as ui,l0 as ul,a0 as fl,pD as Tg,pz as Rg,pE as Lg,pv as Ng,pB as Mg,tl as Og,yL as ld,yP as cd,mQ as pl,ba as Wo,E_ as Dg,Gb as Bg,mK as Fg,um as zg,un as Hg,ul as gl,zJ as Gn,cm as dd,ca as jg,c$ as Wg,d6 as Ug,yV as qg}from"./Ba4gy30X.js";import{k as ud,f as vl,O as ml,M as Vg,J as Kg,E as Gg,r as Jg,q as Yg,R as Xg,Q as fd,N as Uo,e as is,a2 as hl,i as Zg}from"./ClCKezvS.js";import{bi as Qg,bp as $g,h as ev,t as tv,bs as rv,U as nv,W as av,Y as sv}from"./Bw0bJwpw.js";import{i as ov,h as iv,p as qo,bQ as lv,E as cv,bP as dv,bM as uv,aw as bl,bO as fv,bn as Vo,aG as pv,n as gv,b7 as vv,s as mv}from"./VIItGFPL.js";import{c5 as hv,c7 as bv,c6 as yv,aW as _v,aU as xv,aV as wv,a0 as kv,ah as Ss,ag as Sv,au as yl,aC as Iv,af as Cv,B as Ev,i as Pv,C as Ts,cG as Av,aP as _l,cL as Tv,ac as Rv,a4 as Lv,r as Nv,p as Mv,az as Ov,cO as Dv,cx as Bv,cq as Fv,ch as zv,bH as Hv}from"./Uc38XdXI.js";import{s as jv,j as Wv,i as Uv,I as qa,c as xl}from"./C4WMSxMK.js";import"./BVtWH5RS.js";import"./Czr8Q6s1.js";import{J as fi,P as qv,s as Vv,k as Kv,G as Gv,o as Jv,l as Yv,M as Xv,H as Zv,w as Ha,a as Qv,K as $v,n as em,R as tm}from"./_3D340Va.js";import{t as ls,m as rm,O as nm,M as am,S as ma}from"./D0FrwYUQ.js";import{C as Ko}from"./CsY3AFxY.js";import{aK as sm,aS as om,aI as im,aO as lm,a6 as Ka,aY as wl,aE as cm,aL as dm,aR as pi,aM as gi,V as ho,an as um,W as fm,aU as pm,aD as gm,aN as vm,aQ as mm,a$ as hm,aZ as bm,av as pd,p as ym,n as _m,aP as xm,Z as wm,z as km}from"./Brep-rEI.js";import{s as Go}from"./C1YheCPG.js";import{M as Sm}from"./CtFCyWOY.js";import{u as vi,w as Im,v as Xs,G as Cm,A as kl,e as cs,d as ha,I as Sl,c as Em,f as Pm,g as Il,i as Am,b as Tm,o as gd,j as Rm,O as Lm,x as Nm,k as vd,S as Mm,N as Om,q as Cl,p as Dm,n as El,z as Bm,s as Fm}from"./C4QILlBJ.js";import{o as Pl,a as Al,T as bo,b as zm}from"./D44dgkjW.js";import{ad as Hm,a4 as jm,J as Wm,E as Um,ag as qm}from"./4tDE6wja.js";import{D as ds}from"./RKlkXviB.js";import"./DZmEaQ-W.js";import{C as ea}from"./ZWPXcFOT.js";import{M as Vm}from"./CJhZDVuE.js";import{g as mi}from"./an5t-R7s.js";import{f as Tl}from"./s0Q29iiv.js";import{c as Rs}from"./Cf3hiWsI.js";import{handleIntentLink as Km}from"./D_J63Zyl.js";import{s as Gm,a as Jm,f as Ym,d as Xm,r as Zm,h as Qm,w as rs,g as $m,W as eh,H as th,c as rh,M as md}from"./ObcETXIn.js";import{e as nh,q as ah}from"./55UpOZBT.js";import{showAssistantContent as sh}from"./DvbSI76r.js";import{o as Fs,c as oh,n as ih}from"./BnQ8VATH.js";import{p as lh}from"./BvW_0loN.js";import{m as ch}from"./DY0zw3Os.js";import{h as Is}from"./BSYw0uJ2.js";import{i as hd}from"./019JoT9w.js";import{b as dh,f as uh,h as fh,j as ph}from"./BdrU1VNg.js";import{T as yo}from"./BEsSRpwf.js";import{i as gh,r as Rl}from"./Xj89EZIy.js";import{a as vh}from"./BXWlOAyO.js";import{a as mh}from"./BJzHxIyr.js";import{p as hh}from"./BHNxqf_R.js";const bh="intent:inline-visual-draft";function oI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Jx27GIgX.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/DMsRLycu.js","/app/immutable/chunks/BsvsTmot.js","/app/immutable/chunks/Dl-1cK26.js","/app/immutable/chunks/AEjnVR5F.js","/app/immutable/chunks/ZX1TUMY0.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/XsSJjm3Z.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/i6wjEWTF.js","/app/immutable/chunks/CY7B0zXs.js","/app/immutable/chunks/Dg4AJKkW.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBW6O_MW.js","/app/immutable/chunks/BVtWH5RS.js","/app/immutable/chunks/Ba4gy30X.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/LXOG-o0_.js","/app/immutable/chunks/06CP606v.js","/app/immutable/chunks/Cy5UaoOp.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/Czr8Q6s1.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/D0pB9PrJ.js","/app/immutable/chunks/55UpOZBT.js","/app/immutable/chunks/BdrU1VNg.js","/app/immutable/chunks/DIZ4FVb2.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/FCmf5yeg.js","/app/immutable/chunks/utwal-1U.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DHJ5VEVY.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/PTBua5Xh.js","/app/immutable/chunks/Dky-2Jfq.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/9-D0Q0S6.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/Dq9gyYYW.js","/app/immutable/chunks/019JoT9w.js","/app/immutable/chunks/D7gNyfhu.js","/app/immutable/chunks/C235722L.js","/app/immutable/chunks/Byw0HZRE.js","/app/immutable/chunks/Bp1cd1IE.js","/app/immutable/chunks/C2XyHZMq.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B_POKarf.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bo as v,t as jt,bq as y,a_ as M,by as Wt,b as Ut,br as Sf,bu as Ot,bs as ia,bt as oi,b7 as Yi,ba as If,bl as Cf,bb as Ef,bm as Pf,a$ as Af,b9 as Tf,b8 as Rf,b2 as Lf,bf as Nf,bg as Mf,bk as Of,be as Df,bn as Bf,b0 as Ff,b4 as zf,bi as Hf,bh as jf,b6 as Wf,b5 as Uf,b3 as qf,bd as Vf,bc as Kf,bj as Gf,b1 as Jf,_ as Yf}from"./DMsRLycu.js";import{bI as Xf,bj as vs,aG as Zf,bs as qt,aD as e,a5 as I,bS as m,bA as w,W as d,bn as Vt,c9 as u,aA as _,a7 as wt,ay as ze,be as ar,b$ as Dt,aC as ba,bl as R,b_ as k,bO as x,aB as S,bo as ms,ca as It,bH as N,bV as xe,br as qr,bk as hs,c0 as Jn,ai as Pa,cd as ss,aw as Cn,a as Qf,aj as Tr,c7 as $f,c6 as Xi,c5 as Nn,bf as Os,bz as zc}from"./B8o4lNgr.js";import{D as Ds,I as ep,x as tp}from"./CY7B0zXs.js";import{c as rp,s as se,a as Mn,l as On,f as En,d as ur,k as mt,I as bs,h as Rt,i as Mr,o as np,j as ap,g as sp,n as op}from"./ZX1TUMY0.js";import{s as pn}from"./BsvsTmot.js";import{c as Zr}from"./i6wjEWTF.js";import{H as Oo,t as lr,n as ip,i as Zi,u as Qi}from"./AEjnVR5F.js";import{b as gr}from"./D2g8BuR1.js";import{h as Hc,bt as lp,cI as cp,dA as dp,dl as up,aw as fp,cs as pp,a1 as gp,cO as vp,dk as os,aB as Js,c1 as mp,H as hp,c as bp,$ as $i,cU as yp,bR as _p,L as xp,dh as wp,V as kp,dr as Sp,ae as Ip,f as Cp,t as Ep}from"./DIZ4FVb2.js";import{c as Pp}from"./D-62MVd3.js";import{n as $n,w as Ap,C as jc,M as Tp,R as Rp}from"./Dky-2Jfq.js";import{f as yt,ap as Wa,ai as Lp,am as Do,bc as Np}from"./XsSJjm3Z.js";import{ai as Mp,a7 as el,X as Op,at as Dp,aM as Bp,I as Fp,R as zp,an as Hp,ab as jp,Y as Wp,b as tl,q as Up,n as qp,aS as Vp,m as Kp,aU as Bo,A as rl,aa as Gp,aT as Jp,ak as Wc,L as Uc,a3 as Yp,a2 as nl,J as al}from"./DVtTRYro.js";import{cV as Xp,F as Pt,be as Fo,bI as Zp,an as Qp,aO as $p,cF as eg,bi as ii,by as tg,aE as qc,aJ as li,cU as Bs,aa as zo,cj as rg,c9 as ng,ce as ci,cA as Vc,bp as ag,e as sg,bY as sl,c5 as og,ch as ig,cQ as Kc,bS as ol,b5 as mo,bb as ts,aD as lg,ay as Ho,at as Gc,b9 as Jc,bz as cg,B as dg,bs as ug,a6 as Yc,cd as fg,ak as Xc,cH as Zc,cD as il,ar as Qc,aI as ll,a1 as pg,cr as gg,cO as vg,bL as $c,bk as mg,c1 as cl,am as ed,ax as hg,a8 as bg,a7 as yg}from"./Cy5UaoOp.js";import{c as td}from"./ChTqQfQN.js";import{h as _g}from"./utwal-1U.js";import{Gt as Lt,bH as xg,qH as dl,rh as wg,Hf as kg,Hl as Sg,g as rd,Gf as Ig,mA as nd,mP as ad,mO as sd,mt as Ys,p0 as di,we as Cg,tv as As,sQ as jo,tx as Eg,mh as od,Gy as Pg,rP as Ag,nD as id,q4 as ui,l0 as ul,a0 as fl,pD as Tg,pz as Rg,pE as Lg,pv as Ng,pB as Mg,tl as Og,yL as ld,yP as cd,mQ as pl,ba as Wo,E_ as Dg,Gb as Bg,mK as Fg,um as zg,un as Hg,ul as gl,zJ as Gn,cm as dd,ca as jg,c$ as Wg,d6 as Ug,yV as qg}from"./Ba4gy30X.js";import{k as ud,f as vl,O as ml,M as Vg,J as Kg,E as Gg,r as Jg,q as Yg,R as Xg,Q as fd,N as Uo,e as is,a2 as hl,i as Zg}from"./Jx27GIgX.js";import{bi as Qg,bp as $g,h as ev,t as tv,bs as rv,U as nv,W as av,Y as sv}from"./D0pB9PrJ.js";import{i as ov,h as iv,p as qo,bQ as lv,E as cv,bP as dv,bM as uv,aw as bl,bO as fv,bn as Vo,aG as pv,n as gv,b7 as vv,s as mv}from"./Dq9gyYYW.js";import{c5 as hv,c7 as bv,c6 as yv,aW as _v,aU as xv,aV as wv,a0 as kv,ah as Ss,ag as Sv,au as yl,aC as Iv,af as Cv,B as Ev,i as Pv,C as Ts,cG as Av,aP as _l,cL as Tv,ac as Rv,a4 as Lv,r as Nv,p as Mv,az as Ov,cO as Dv,cx as Bv,cq as Fv,ch as zv,bH as Hv}from"./8wbw8Mxv.js";import{s as jv,j as Wv,i as Uv,I as qa,c as xl}from"./BBW6O_MW.js";import"./BVtWH5RS.js";import"./Czr8Q6s1.js";import{J as fi,P as qv,s as Vv,k as Kv,G as Gv,o as Jv,l as Yv,M as Xv,H as Zv,w as Ha,a as Qv,K as $v,n as em,R as tm}from"./LXOG-o0_.js";import{t as ls,m as rm,O as nm,M as am,S as ma}from"./06CP606v.js";import{C as Ko}from"./CJhyAq2H.js";import{aK as sm,aS as om,aI as im,aO as lm,a6 as Ka,aY as wl,aE as cm,aL as dm,aR as pi,aM as gi,V as ho,an as um,W as fm,aU as pm,aD as gm,aN as vm,aQ as mm,a$ as hm,aZ as bm,av as pd,p as ym,n as _m,aP as xm,Z as wm,z as km}from"./B5IU8QZY.js";import{s as Go}from"./BsDnrJk1.js";import{M as Sm}from"./DyqEo12-.js";import{u as vi,w as Im,v as Xs,G as Cm,A as kl,e as cs,d as ha,I as Sl,c as Em,f as Pm,g as Il,i as Am,b as Tm,o as gd,j as Rm,O as Lm,x as Nm,k as vd,S as Mm,N as Om,q as Cl,p as Dm,n as El,z as Bm,s as Fm}from"./4i4DPzKd.js";import{o as Pl,a as Al,T as bo,b as zm}from"./FWWAmx1z.js";import{ad as Hm,a4 as jm,J as Wm,E as Um,ag as qm}from"./BqJBJZqA.js";import{D as ds}from"./C-65lWvx.js";import"./DZmEaQ-W.js";import{C as ea}from"./BhCkZjyI.js";import{M as Vm}from"./Clof0uHU.js";import{g as mi}from"./Dl-1cK26.js";import{f as Tl}from"./Byw0HZRE.js";import{c as Rs}from"./CXhBPURx.js";import{handleIntentLink as Km}from"./CqR78knd.js";import{s as Gm,a as Jm,f as Ym,d as Xm,r as Zm,h as Qm,w as rs,g as $m,W as eh,H as th,c as rh,M as md}from"./D1erkeWj.js";import{e as nh,q as ah}from"./55UpOZBT.js";import{showAssistantContent as sh}from"./Bn4oEwGS.js";import{o as Fs,c as oh,n as ih}from"./B_POKarf.js";import{p as lh}from"./BKrYyTXN.js";import{m as ch}from"./DY0zw3Os.js";import{h as Is}from"./BSYw0uJ2.js";import{i as hd}from"./019JoT9w.js";import{b as dh,f as uh,h as fh,j as ph}from"./BdrU1VNg.js";import{T as yo}from"./D3RlZ9WF.js";import{i as gh,r as Rl}from"./C3pHQ0Lo.js";import{a as vh}from"./9-D0Q0S6.js";import{a as mh}from"./BJzHxIyr.js";import{p as hh}from"./1cxr91i_.js";const bh="intent:inline-visual-draft";function oI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -257,7 +257,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
257
257
  `,A1=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],Ro=96,_c=2e4,T1=480,wu=512,R1=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function L1(r,t,n,a,s,o){const l=new MessageChannel,c=MessagePort.prototype.postMessage.bind(l.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[l.port2]);const f=(C,B={})=>{window.parent.postMessage({channel:r,type:C,...B},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const B=JSON.parse(JSON.stringify(C));return i=B.state,p=B,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let L=!1,b=-1,h=innerHeight,P=Number.NaN,A=0,H=0;const F=()=>{if(L=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const B=innerHeight,G=C-B;if(B>h+1&&G>1&&Math.abs(G-P)<=1?A+=1:(B!==h||G<=1)&&(A=0),h=B,P=G,!H&&A>=3){H=Math.max(a,B);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}H&&(C=Math.min(C,H)),C!==b&&(b=C,f("resize",{height:C}))},O=()=>{L||(L=!0,requestAnimationFrame(F))},D=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const B=document.documentElement;B.classList.toggle("dark",C.dark),B.style.colorScheme=C.dark?"dark":"light";const G=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof G=="string"&&G.length<512&&B.style.setProperty("--inline-html-root-font-size",G);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const le=C.variables[Y];typeof le=="string"&&le.length<512&&B.style.setProperty(Y,le)}O()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&D(C.data.theme)});const j=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const B=le=>{const Ee=getComputedStyle(le);if(le!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ee.overflowY)||/^(hidden|clip)$/.test(Ee.overflowY))return!1;const de=le.scrollHeight-le.clientHeight;return de>1&&(C.deltaY<0?le.scrollTop>1:le.scrollTop<de-1)};if(C.composedPath().some(le=>le instanceof Element&&B(le))||document.scrollingElement&&B(document.scrollingElement))return;const G=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,C.deltaY*G));Number.isFinite(Y)&&(C.preventDefault(),c({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",j),window.addEventListener("wheel",j,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&f("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const B=C.reason;f("error",{message:String(B instanceof Error?B.message:B).slice(0,300)})}),window.addEventListener("click",C=>{const B=C.target instanceof Element?C.target.closest("a, area"):null;if(!B)return;(B.getAttribute("href")??B.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),D(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(O).observe(document.body),new MutationObserver(O).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",O),document.addEventListener("load",O,!0),document.fonts.ready.then(O),f("ready"),O()},{once:!0})}function N1(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let l;const c=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!l&&f.ports.length===1){l=f.ports[0],l.onmessage=c;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function M1(r,t,n,a,s,o,l,c){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(le=>le.remove()),Y.querySelectorAll("template").forEach(le=>p(le.content)),Y.querySelectorAll("a, area").forEach(le=>{for(const Ee of["href","xlink:href"])le.getAttribute(Ee)?.startsWith("#")||le.removeAttribute(Ee);le.removeAttribute("target"),le.removeAttribute("ping"),le.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),L=f.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(c)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
258
258
  font-display: swap; src: url('${c}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const A=f.createElement("script"),H=g([a,s,r.maxScrollDelta,r.lockHeight,t(l)?l:null]);A.textContent=`(${r.bridge})(...${H}, (${r.validate}));`,f.head.prepend(L,b,h,A);const F=`<!doctype html>${f.documentElement.outerHTML}`,O=document.implementation.createHTMLDocument(""),D=O.createElement("meta");D.httpEquiv="Content-Security-Policy",D.content=r.csp.replace("frame-src 'none'","frame-src about:");const j=O.createElement("meta");j.setAttribute("charset","utf-8");const C=O.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const B=O.createElement("script"),G=g([a,F,o,r.maxScrollDelta]);return B.textContent=`(${r.shell})(...${G}, (${r.validate}));`,O.head.prepend(D,j,C,B),`<!doctype html>${O.documentElement.outerHTML}`}const O1=()=>({csp:R1,styles:P1,maxScrollDelta:wu,lockHeight:T1,bridge:L1.toString(),shell:N1.toString(),validate:ui.toString()});function D1(r,t,n,a,s=null,o=""){return M1(O1(),ui,r,t,n,a,s,o)}function xc(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(A1.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function B1(r,t,n,a,s=null){return D1(r,t,n,a,s,E1)}var F1=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),z1=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),H1=S('<p class="sr-only" role="status"> </p>'),j1=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),W1=S('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),U1=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),q1=S('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),V1=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),K1=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),G1=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),J1=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),Y1=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),X1=S('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),Z1=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),Q1=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function ku(r,t){if(new.target)return jt({component:ku,...r});qt(t,!0);const n=720;let a=y(t,"source",7),s=y(t,"isStreaming",7,!1),o=y(t,"isComplete",7,!0),l=y(t,"record",7),c=y(t,"storageStatus",7,"ready"),f=y(t,"onRecordChange",7),i=y(t,"onUseConfiguration",7),p=y(t,"onExport",7),g=y(t,"onRetry",7),L=y(t,"storageError",7),b=y(t,"exportStatus",7),h=y(t,"exportPath",7),P=y(t,"exportError",7),A,H=xe(void 0),F=xe(!1),O=xe(!1),D=xe(0),j=xe(""),C=xe(""),B=xe(!1),G=xe(""),Y=xe(qr(Ro)),le=xe(n),Ee=xe(""),de=xe(ul()),ne=xe(void 0),ge,Me=xe(void 0),K=xe(!1);const pe=u(()=>l()??e(de)),ce=u(()=>c()!=="loading"&&(c()!=="error"||!!e(pe).current)),Pe=u(()=>!s()&&o()&&!!a().trim()&&e(ce)),Le=u(()=>Math.min(_c,Math.max(Ro,e(Y)))),we=u(()=>s()||c()==="loading"?"loading":o()?a().trim()?e(G)?"error":e(B)?"ready":"loading":"empty":"incomplete"),Qe=u(()=>s()||c()==="loading"||e(Pe)&&!e(B)&&!e(G));function We(Q){const _e={...Q,current:e(ne)??Q.current};N(de,_e),f()?.(_e)}function $e(){const Q=e(ne);!Q||e(pe).scenarios.length>=fl||(We({...e(pe),scenarios:[...e(pe).scenarios,{id:crypto.randomUUID(),name:Of({number:Qi(e(pe).scenarios.length+1)}),snapshot:structuredClone(Q)}]}),N(K,!0))}function ee(Q,_e){const rt=_e.trim().slice(0,120);rt&&We({...e(pe),scenarios:e(pe).scenarios.map(tt=>tt.id===Q?{...tt,name:rt}:tt)})}function Z(Q){const _e=structuredClone(Q);N(ne,_e),N(Me,_e),We({...e(pe),current:_e}),N(D,e(D)+1)}function Ge(Q){return typeof Q=="number"?Qi(Q):typeof Q=="string"?Q:JSON.stringify(Q)}function J(){!e(H)?.contentWindow||!e(C)||e(H).contentWindow.postMessage({channel:e(C),type:"theme",theme:xc(A)},"*")}function V(Q){let _e=A.parentElement;for(;_e;){const rt=getComputedStyle(_e),tt=_e.scrollHeight-_e.clientHeight;if(/^(auto|scroll|overlay)$/.test(rt.overflowY)&&tt>1){if(Q<0?_e.scrollTop>0:_e.scrollTop<tt){_e.dispatchEvent(new WheelEvent("wheel",{deltaY:Q,bubbles:!0})),_e.scrollTop+=Q;return}if(/^(contain|none)$/.test(rt.overscrollBehaviorY))return}_e=_e.parentElement}window.scrollBy({top:Q,behavior:"instant"})}It(()=>{if(!e(F))return;const Q=a(),_e=e(Pe);e(D),Nn(()=>{ge!==Q&&(N(de,ul()),N(ne,void 0),N(K,!1),N(Me,void 0),ge=Q),N(B,!1),N(G,""),N(Ee,""),N(Y,Ro,!0),N(C,crypto.randomUUID(),!0),N(j,_e?B1(Q,e(C),xc(A),Yi(),e(Me)??e(ne)??e(pe).current):"",!0),N(Me,void 0)})}),hs(()=>{N(F,!0);const Q=gt=>{if(gt.source!==e(H)?.contentWindow||gt.origin!=="null")return;const He=gt.data;if(!(!He||typeof He!="object"||He.channel!==e(C)))if(He.type==="resize"&&typeof He.height=="number"&&Number.isFinite(He.height)&&He.height>=0)N(Y,Math.min(_c,Math.ceil(He.height)),!0);else if(He.type==="ready")N(B,!0),J();else if(He.type==="error"&&typeof He.message=="string")N(G,He.message.slice(0,300),!0);else if(He.type==="layout"&&typeof He.message=="string")N(Ee,He.message.slice(0,300),!0);else if(He.type==="snapshot"&&e(Pe)&&ui(He.snapshot)){const ht=He.snapshot;N(ne,ht),We({...e(pe),current:ht})}else He.type==="wheel"&&e(B)&&e(Pe)&&!e(O)&&!e(Qe)&&typeof He.deltaY=="number"&&Number.isFinite(He.deltaY)&&He.deltaY!==0&&Math.abs(He.deltaY)<=wu&&V(He.deltaY)},_e=()=>{N(le,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},rt=new MutationObserver(J);rt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const tt=window.matchMedia("(prefers-color-scheme: dark)");return tt.addEventListener("change",J),window.addEventListener("message",Q),window.addEventListener("resize",_e),_e(),()=>{rt.disconnect(),tt.removeEventListener("change",J),window.removeEventListener("message",Q),window.removeEventListener("resize",_e)}});var q={get source(){return a()},set source(Q){a(Q),_()},get isStreaming(){return s()},set isStreaming(Q=!1){s(Q),_()},get isComplete(){return o()},set isComplete(Q=!0){o(Q),_()},get record(){return l()},set record(Q){l(Q),_()},get storageStatus(){return c()},set storageStatus(Q="ready"){c(Q),_()},get onRecordChange(){return f()},set onRecordChange(Q){f(Q),_()},get onUseConfiguration(){return i()},set onUseConfiguration(Q){i(Q),_()},get onExport(){return p()},set onExport(Q){p(Q),_()},get onRetry(){return g()},set onRetry(Q){g(Q),_()},get storageError(){return L()},set storageError(Q){L(Q),_()},get exportStatus(){return b()},set exportStatus(Q){b(Q),_()},get exportPath(){return h()},set exportPath(Q){h(Q),_()},get exportError(){return P()},set exportError(Q){P(Q),_()},$set:Wt,$on:(Q,_e)=>Ut(t,Q,_e)},ue=Q1(),be=I(ue),$=I(be);yt($,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{N(O,!e(O))},children:(Q,_e)=>{ar();var rt=Dt();k(tt=>x(rt,tt),[()=>e(O)?If():Cf()]),d(Q,rt)},$$slots:{default:!0}});var fe=m($,2);{let Q=u(()=>!e(Pe));yt(fe,{variant:"ghost",size:"sm",get disabled(){return e(Q)},onclick:()=>{N(D,e(D)+1)},children:(_e,rt)=>{ar();var tt=Dt();k(gt=>x(tt,gt),[()=>Ef()]),d(_e,tt)},$$slots:{default:!0}})}w(be);var Ae=m(be,2);{var Fe=Q=>{var _e=z1(),rt=ze(_e),tt=I(rt),gt=R(tt,!0),He=m(tt,2);{var ht=pt=>{yt(pt,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Ct,At)=>{ar();var Zt=Dt();k(_t=>x(Zt,_t),[()=>Df()]),d(Ct,Zt)},$$slots:{default:!0}})};M(He,pt=>{g()&&pt(ht)})}w(rt);var dt=m(rt,2);{var vt=pt=>{var Ct=F1(),At=R(Ct,!0);k(()=>x(At,L())),d(pt,Ct)};M(dt,pt=>{L()&&pt(vt)})}k(pt=>x(gt,pt),[()=>Pf()]),d(Q,_e)};M(Ae,Q=>{c()==="error"&&Q(Fe)})}var at=m(Ae,2);{var z=Q=>{var _e=H1(),rt=R(_e,!0);k(tt=>x(rt,tt),[()=>s()?Af():Tf()]),d(Q,_e)},ae=Q=>{var _e=j1(),rt=R(_e,!0);k(tt=>x(rt,tt),[()=>o()?Lf():Rf()]),d(Q,_e)},Te=Q=>{var _e=W1(),rt=I(_e),tt=R(rt,!0),gt=m(rt,2),He=R(gt,!0);w(_e),k(ht=>{x(tt,ht),x(He,e(G))},[()=>Nf()]),d(Q,_e)};M(at,Q=>{e(Qe)?Q(z):e(Pe)?e(G)&&Q(Te,2):Q(ae,1)})}var Ze=m(at,2),me=I(Ze);{var T=Q=>{var _e=U1();let rt,tt;gr(_e,gt=>N(H,gt),()=>e(H)),k(gt=>{se(_e,"title",gt),se(_e,"srcdoc",e(j)),rt=mt(_e,1,"block w-full border-0 svelte-1kkow1d",null,rt,{"preview-hidden":e(O)||e(Qe)}),se(_e,"aria-hidden",e(O)||e(Qe)),tt=On(_e,"",tt,{height:`${e(Le)}px`})},[()=>Yi()]),d(Q,_e)};M(me,Q=>{e(Pe)&&e(j)&&Q(T)})}var U=m(me,2);{var ye=Q=>{ea(Q,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(le)}})},Ue=Q=>{var _e=q1(),rt=I(_e),tt=I(rt);Ha(tt,{class:"h-4 w-32 max-w-1/2"});var gt=m(tt,2);Ha(gt,{class:"h-3 w-2/3"}),w(rt);var He=m(rt,2);Ha(He,{class:"aspect-video max-h-60 w-full rounded-lg"});var ht=m(He,2),dt=I(ht);Ha(dt,{class:"h-3 w-16"});var vt=m(dt,2);Ha(vt,{class:"h-2 min-w-0 flex-1"});var pt=m(vt,2);Ha(pt,{class:"h-3 w-10"}),w(ht),w(_e),d(Q,_e)};M(U,Q=>{e(O)?Q(ye):e(Qe)&&Q(Ue,1)})}w(Ze);var Ie=m(Ze,2);{var qe=Q=>{var _e=Z1(),rt=ze(_e),tt=I(rt);{var gt=Et=>{{let Jt=u(()=>!e(B)||!!e(G));yt(Et,{size:"sm",get disabled(){return e(Jt)},onclick:()=>e(ne)&&i()(e(ne)),children:(Nt,ve)=>{ar();var te=Dt();k(je=>x(te,je),[()=>Bf()]),d(Nt,te)},$$slots:{default:!0}})}};M(tt,Et=>{i()&&Et(gt)})}var He=m(tt,2);{let Et=u(()=>!e(B)||!!e(G)||e(pe).scenarios.length>=fl);yt(He,{variant:"ghost",size:"sm",get disabled(){return e(Et)},onclick:$e,children:(Jt,Nt)=>{ar();var ve=Dt();k(te=>x(ve,te),[()=>Mf()]),d(Jt,ve)},$$slots:{default:!0}})}var ht=m(He,2);{var dt=Et=>{yt(Et,{variant:"ghost",size:"sm",get active(){return e(K)},get"aria-expanded"(){return e(K)},onclick:()=>N(K,!e(K)),children:(Jt,Nt)=>{ar();var ve=Dt();k(te=>x(ve,te),[()=>Ff()]),d(Jt,ve)},$$slots:{default:!0}})};M(ht,Et=>{e(pe).scenarios.length&&Et(dt)})}var vt=m(ht,2);{var pt=Et=>{{let Jt=u(()=>!e(B)||b()==="saving");yt(Et,{variant:"ghost",size:"sm",get disabled(){return e(Jt)},onclick:()=>p()({...e(pe),current:e(ne)??null}),children:(Nt,ve)=>{ar();var te=Dt();k(je=>x(te,je),[()=>zf()]),d(Nt,te)},$$slots:{default:!0}})}};M(vt,Et=>{p()&&Et(pt)})}var Ct=m(vt,2);{var At=Et=>{var Jt=V1(),Nt=R(Jt,!0);k(ve=>x(Nt,ve),[()=>c()==="saving"?Hf():c()==="ready"?jf():""]),d(Et,Jt)};M(Ct,Et=>{f()&&Et(At)})}w(rt);var Zt=m(rt,2);{var _t=Et=>{var Jt=K1(),Nt=I(Jt),ve=m(Nt);{var te=je=>{var nt=Dt();k(()=>x(nt,P())),d(je,nt)};M(ve,je=>{b()==="error"&&P()&&je(te)})}w(Jt),k(je=>x(Nt,`${je??""} `),[()=>b()==="saving"?Wf():b()==="saved"?Uf({path:h()??""}):qf()]),d(Et,Jt)};M(Zt,Et=>{b()&&Et(_t)})}var Ht=m(Zt,2);{var er=Et=>{var Jt=X1(),Nt=I(Jt),ve=I(Nt),te=I(ve),je=I(te),nt=R(je,!0),ct=m(je),Be=R(ct,!0),X=m(ct);Rt(X,17,()=>e(pe).scenarios,ie=>ie.id,(ie,ke)=>{var Ce=G1(),Oe=I(Ce);{let Se=u(()=>Gf());qa(Oe,{get value(){return e(ke).name},get"aria-label"(){return e(Se)},maxlength:120,onblur:Ye=>{Ye.currentTarget.value.trim()||(Ye.currentTarget.value=e(ke).name),ee(e(ke).id,Ye.currentTarget.value)},onkeydown:Ye=>{Ye.key==="Enter"&&Ye.currentTarget.blur(),Ye.key==="Escape"&&(Ye.currentTarget.value=e(ke).name,Ye.currentTarget.blur())}})}var De=m(Oe,2),Je=I(De);yt(Je,{variant:"ghost",size:"sm",onclick:()=>Z(e(ke).snapshot),children:(Se,Ye)=>{ar();var Ke=Dt();k(et=>x(Ke,et),[()=>Vf()]),d(Se,Ke)},$$slots:{default:!0}});var Ve=m(Je,2);yt(Ve,{variant:"ghost",size:"sm",onclick:()=>We({...e(pe),scenarios:e(pe).scenarios.filter(Se=>Se.id!==e(ke).id)}),children:(Se,Ye)=>{ar();var Ke=Dt();k(et=>x(Ke,et),[()=>Kf()]),d(Se,Ke)},$$slots:{default:!0}}),w(De),w(Ce),d(ie,Ce)}),w(te),w(ve);var oe=m(ve);Rt(oe,20,()=>["inputs","results"],Mr,(ie,ke)=>{const Ce=u(()=>ke),Oe=u(()=>Array.from(new Set([...Object.keys(e(ne)[e(Ce)]),...e(pe).scenarios.flatMap(Ve=>Object.keys(Ve.snapshot[e(Ce)]))])));var De=wt(),Je=ze(De);Rt(Je,16,()=>e(Oe),Ve=>Ve,(Ve,Se)=>{var Ye=Y1(),Ke=I(Ye),et=R(Ke,!0),ot=m(Ke);Rt(ot,17,()=>[e(ne),...e(pe).scenarios.map(it=>it.snapshot)],Mr,(it,ut)=>{var kt=J1(),bt=R(kt,!0);k(Tt=>x(bt,Tt),[()=>Object.hasOwn(e(ut)[e(Ce)],Se)?Ge(e(ut)[e(Ce)][Se]):"—"]),d(it,kt)}),w(Ye),k(()=>x(et,Se)),d(Ve,Ye)}),d(ie,De)}),w(oe),w(Nt),w(Jt),k(ie=>{x(nt,e(ne).title),x(Be,ie)},[()=>Jf()]),d(Et,Jt)};M(Ht,Et=>{e(K)&&e(pe).scenarios.length&&Et(er)})}d(Q,_e)};M(Ie,Q=>{e(ne)&&e(Pe)&&Q(qe)})}return w(ue),gr(ue,Q=>A=Q,()=>A),k(()=>{se(ue,"data-inline-html-status",e(we)),se(ue,"data-inline-html-layout",e(Ee)?"viewport-locked":void 0),se(ue,"aria-busy",e(Qe))}),d(r,ue),Vt(q)}var $1=S('<div class="w-full min-w-0"><!></div>');function e0(r,t){if(new.target)return jt({component:e0,...r});qt(t,!0);const n=()=>Ot(e(b),"$agent$",s),a=()=>Ot(e(H),"$entry$",s),[s,o]=ia();let l=y(t,"block",7),c=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),L=xe(void 0);const b=u(()=>Js(i()??"")),h=u(()=>c()==="assistant"&&f()&&i()&&p()&&l().metadata?.fenceClosed&&!l().metadata?.isStreaming&&n()&&!id(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),l().metadata?.fenceStart??0]),source:l().content}:void 0),P=u(()=>!!(f()&&i()&&p()&&l().metadata?.fenceClosed&&!n())),A=u(()=>e(h)?Mg(e(h)):""),H=u(()=>im(e(A)));It(()=>{e(h)&&Lt.dispatch(Tg(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(L)?.dispatchEvent(new CustomEvent(bh,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var O={get block(){return l()},set block(Y){l(Y),_()},get role(){return c()},set role(Y){c(Y),_()},get workspaceId(){return f()},set workspaceId(Y){f(Y),_()},get agentId(){return i()},set agentId(Y){i(Y),_()},get messageId(){return p()},set messageId(Y){p(Y),_()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),_()},$set:Wt,$on:(Y,le)=>Ut(t,Y,le)},D=wt(),j=ze(D);{var C=Y=>{var le=$1(),Ee=I(le);{let de=u(()=>l().metadata?.isStreaming??!1),ne=u(()=>l().metadata?.fenceClosed??!1),ge=u(()=>a()?.record),Me=u(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),K=u(()=>a()?.error),pe=u(()=>e(h)?$e=>Lt.dispatch(Ng(e(A),$e)):void 0),ce=u(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Pe=u(()=>e(h)?()=>Lt.dispatch(Lg(e(A))):void 0),Le=u(()=>e(h)?$e=>Lt.dispatch(Rg(e(A),crypto.randomUUID(),$e)):void 0),we=u(()=>a()?.export?.status),Qe=u(()=>a()?.export?.path),We=u(()=>a()?.export?.error);ku(Ee,{get source(){return l().content},get isStreaming(){return e(de)},get isComplete(){return e(ne)},get record(){return e(ge)},get storageStatus(){return e(Me)},get storageError(){return e(K)},get onRecordChange(){return e(pe)},get onUseConfiguration(){return e(ce)},get onRetry(){return e(Pe)},get onExport(){return e(Le)},get exportStatus(){return e(we)},get exportPath(){return e(Qe)},get exportError(){return e(We)}})}w(le),gr(le,de=>N(L,de),()=>e(L)),d(Y,le)},B=Y=>{ea(Y,{get code(){return l().content},language:"html"})};M(j,Y=>{c()==="assistant"?Y(C):Y(B,-1)})}d(r,D);var G=Vt(O);return o(),G}var t0=S('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function r0(r,t){if(new.target)return jt({component:r0,...r});qt(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(l){n(l),_()},$set:Wt,$on:(l,c)=>Ut(t,l,c)},s=t0(),o=R(s,!0);return k(()=>x(o,n())),d(r,s),Vt(a)}var n0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),a0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),s0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),o0=S('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),i0=S('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function l0(r,t){if(new.target)return jt({component:l0,...r});qt(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Wt,$on:(b,h)=>Ut(t,b,h)},s=i0(),o=I(s),l=I(o);Pt(l,{get icon(){return Kc},size:"sm",class:"text-primary-ink/70"});var c=m(l,2),f=R(c,!0);w(o);var i=m(o,2);Rt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=o0(),A=I(P),H=I(A),F=I(H),O=R(F,!0),D=m(F,2);{var j=Ee=>{var de=n0(),ne=R(de,!0);k(ge=>x(ne,ge),[()=>v.chat_detectedScripts_service_badge()]),d(Ee,de)},C=Ee=>{var de=a0(),ne=R(de,!0);k(ge=>x(ne,ge),[()=>v.chat_detectedScripts_command_badge()]),d(Ee,de)};M(D,Ee=>{e(h).mode==="service"?Ee(j):Ee(C,-1)})}var B=m(D,2);{var G=Ee=>{var de=s0(),ne=R(de,!0);k(()=>x(ne,e(h).category)),d(Ee,de)};M(B,Ee=>{e(h).category&&e(h).category!=="other"&&Ee(G)})}w(H);var Y=m(H,2),le=R(Y,!0);w(A),w(P),k(()=>{x(O,e(h).name),x(le,e(h).command)}),d(b,P)}),w(i);var p=m(i,2),g=I(p),L=R(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(L,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:lr(n().length)}):v.chat_detectedScripts_count_many({count:lr(n().length)})]),d(r,s),Vt(a)}function c0(r,t){if(new.target)return jt({component:c0,...r});qt(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),l=y(t,"onReject",7);function c(){o()?.(),$n.success(v.chat_diffViewer_applied_toast())}function f(){l()?.(),$n.info(v.chat_diffViewer_rejected_toast())}const i=u(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:c}),l()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return l()},set onReject(g){l(g),_()},$set:Wt,$on:(g,L)=>Ut(t,g,L)};{let g=u(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());ds(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return Vt(p)}var d0=ba('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),wc=ba("<circle></circle>"),u0=ba('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),f0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Ms(r,t){if(new.target)return jt({component:Ms,...r});qt(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),l=u(()=>s()/2),c=u(()=>e(l)),f=u(()=>e(l)),i=u(()=>s()*.12),p=u(()=>e(l)-e(i)/2),g=u(()=>e(l)*.35),L=u(()=>2*Math.PI*e(g)),b=u(()=>Math.max(0,Math.min(1,a()))*e(L));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=u(()=>h[n()]||"currentColor");var A={get phase(){return n()},set phase(de){n(de),_()},get progress(){return a()},set progress(de=0){a(de),_()},get size(){return s()},set size(de=16){s(de),_()},get class(){return o()},set class(de=""){o(de),_()},$set:Wt,$on:(de,ne)=>Ut(t,de,ne)},H=f0(),F=I(H),O=I(F),D=m(O);{var j=de=>{},C=de=>{var ne=d0();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(f)),se(ne,"r",e(g)*.8),se(ne,"stroke",e(P)),se(ne,"stroke-width",e(g)*1.5),se(ne,"stroke-dasharray",`${e(b)??""} ${e(L)??""}`),se(ne,"stroke-dashoffset",e(L)*.25),se(ne,"transform",`rotate(-90 ${e(c)??""} ${e(f)??""})`)}),d(de,ne)},B=de=>{var ne=wc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(f)),se(ne,"r",e(p)*.6),se(ne,"fill",e(P))}),d(de,ne)},G=de=>{var ne=wc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(f)),se(ne,"r",e(p)),se(ne,"fill",e(P))}),d(de,ne)};M(D,de=>{n()==="planning"?de(j):n()==="building"?de(C,1):n()==="reviewing"?de(B,2):n()==="shipped"&&de(G,3)})}w(F);var Y=m(F,2);{var le=de=>{},Ee=de=>{var ne=u0();k(()=>se(ne,"width",s()*.5)),d(de,ne)};M(Y,de=>{n()==="reviewing"?de(le):n()==="shipped"&&de(Ee,1)})}return w(H),k(()=>{se(F,"width",s()),se(F,"height",s()),se(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),mt(F,0,ur(o())),se(O,"cx",e(c)),se(O,"cy",e(f)),se(O,"r",e(p)),se(O,"stroke",e(P)),se(O,"stroke-width",e(i))}),d(r,H),Vt(A)}var kc=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),p0=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Sc=S('<span class="text-ui text-subtle truncate"> </span>'),Ic=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Cc=S('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),g0=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),v0=S('<span class="text-ui text-subtle pl-4"> </span>'),m0=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),h0=S('<div class="text-ui text-subtle"> </div>'),b0=S("<!> <!> <!> <!>",1),y0=S('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),_0=S('<div class="rounded-[0.5px]"></div>');function Su(r,t){if(new.target)return jt({component:Su,...r});qt(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),l=y(t,"barHeight",7,"16px"),c=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=u(()=>{const{completed:D,inProgress:j,notStarted:C,total:B}=n();if(B===0)return[];const G=[...Array(D).fill("completed"),...Array(j).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return G.length<=s()?G:G.slice(G.length-s())}),g=u(()=>a().filter(D=>D.status==="complete")),L=u(()=>a().filter(D=>D.status==="in_progress"||D.status==="review_required")),b=u(()=>a().filter(D=>D.status!=="complete"&&D.status!=="in_progress"&&D.status!=="review_required"&&D.status!=="cancelled")),h=u(()=>a().filter(D=>D.status==="cancelled")),P=u(()=>a().length>0);var A={get stats(){return n()},set stats(D){n(D),_()},get tasks(){return a()},set tasks(D=[]){a(D),_()},get maxBars(){return s()},set maxBars(D=20){s(D),_()},get barWidth(){return o()},set barWidth(D="1px"){o(D),_()},get barHeight(){return l()},set barHeight(D="16px"){l(D),_()},get gap(){return c()},set gap(D="1px"){c(D),_()},get class(){return f()},set class(D){f(D),_()},$set:Wt,$on:(D,j)=>Ut(t,D,j)},H=wt(),F=ze(H);{var O=D=>{Do(D,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var B=y0(),G=I(B),Y=I(G),le=R(Y,!0),Ee=m(Y,2),de=I(Ee);{var ne=Le=>{var we=kc(),Qe=I(we);On(Qe,"",{},{"background-color":"#22c55e"});var We=m(Qe);w(we),k(()=>x(We,` ${n().completed??""}`)),d(Le,we)};M(de,Le=>{n().completed>0&&Le(ne)})}var ge=m(de,2);{var Me=Le=>{var we=kc(),Qe=I(we);On(Qe,"",{},{"background-color":"#4F7BF7"});var We=m(Qe);w(we),k(()=>x(We,` ${n().inProgress??""}`)),d(Le,we)};M(ge,Le=>{n().inProgress>0&&Le(Me)})}var K=m(ge,2);{var pe=Le=>{var we=p0(),Qe=m(I(we));w(we),k(()=>x(Qe,` ${n().notStarted??""}`)),d(Le,we)};M(K,Le=>{n().notStarted>0&&Le(pe)})}w(Ee),w(G);var ce=m(G,2);{var Pe=Le=>{var we=b0(),Qe=ze(we);Rt(Qe,17,()=>e(L),Mr,(J,V)=>{var q=Cc(),ue=I(q),be=I(ue);bo(be,{get status(){return e(V).status},size:14}),w(ue);var $=m(ue,2),fe=I($),Ae=R(fe,!0),Fe=m(fe,2);{var at=z=>{var ae=Ic(),Te=I(ae);{let T=u(()=>e(V).agentState||"idle");rl(Te,{get agentId(){return e(V).agentId},get state(){return e(T)},size:12,get specialist(){return e(V).agentSpecialist}})}var Ze=m(Te,2);{var me=T=>{var U=Sc(),ye=R(U,!0);k(()=>x(ye,e(V).agentName)),d(T,U)};M(Ze,T=>{e(V).agentName&&T(me)})}w(ae),d(z,ae)};M(Fe,z=>{e(V).agentId&&z(at)})}w($),w(q),k(()=>x(Ae,e(V).title)),d(J,q)});var We=m(Qe,2);Rt(We,17,()=>e(b),Mr,(J,V)=>{var q=Cc(),ue=I(q),be=I(ue);bo(be,{get status(){return e(V).status},size:14}),w(ue);var $=m(ue,2),fe=I($),Ae=R(fe,!0),Fe=m(fe,2);{var at=z=>{var ae=Ic(),Te=I(ae);{let T=u(()=>e(V).agentState||"idle");rl(Te,{get agentId(){return e(V).agentId},get state(){return e(T)},size:12,get specialist(){return e(V).agentSpecialist}})}var Ze=m(Te,2);{var me=T=>{var U=Sc(),ye=R(U,!0);k(()=>x(ye,e(V).agentName)),d(T,U)};M(Ze,T=>{e(V).agentName&&T(me)})}w(ae),d(z,ae)};M(Fe,z=>{e(V).agentId&&z(at)})}w($),w(q),k(()=>x(Ae,e(V).title)),d(J,q)});var $e=m(We,2);{var ee=J=>{var V=m0(),q=I(V);Rt(q,17,()=>e(g).slice(0,3),Mr,($,fe)=>{var Ae=g0(),Fe=I(Ae),at=I(Fe);bo(at,{status:"complete",size:12}),w(Fe);var z=m(Fe,2),ae=R(z,!0);w(Ae),k(()=>x(ae,e(fe).title)),d($,Ae)});var ue=m(q,2);{var be=$=>{var fe=v0(),Ae=R(fe,!0);k(Fe=>x(Ae,Fe),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:lr(e(g).length-3)})]),d($,fe)};M(ue,$=>{e(g).length>3&&$(be)})}w(V),d(J,V)};M($e,J=>{e(g).length>0&&J(ee)})}var Z=m($e,2);{var Ge=J=>{var V=h0(),q=R(V,!0);k(ue=>x(q,ue),[()=>v.workspace_taskProgressBar_cancelled_label({count:lr(e(h).length)})]),d(J,V)};M(Z,J=>{e(h).length>0&&J(Ge)})}d(Le,we)};M(ce,Le=>{e(P)&&Le(Pe)})}w(B),k(Le=>x(le,Le),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)})]),d(C,B)},children:(C,B)=>{{let G=u(()=>En("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=u(()=>`gap: ${c()}`),le=u(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)}));yt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(G)},get style(){return e(Y)},get"aria-label"(){return e(le)},"data-task-progress-trigger":!0,children:(Ee,de)=>{var ne=wt(),ge=ze(ne);Rt(ge,17,()=>e(p),Mr,(Me,K)=>{var pe=_0();let ce;k(()=>ce=On(pe,"",ce,{width:o(),height:l(),"background-color":i[e(K)]})),d(Me,pe)}),d(Ee,ne)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};M(F,D=>{n().total>0&&D(O)})}return d(r,H),Vt(A)}function Ii(r,t){if(new.target)return jt({component:Ii,...r});qt(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),l=y(t,"selection",7),c=y(t,"class",7,"");const f=u(()=>Jp(n(),l(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return l()},set selection(p){l(p),_()},get class(){return c()},set class(p=""){c(p),_()},$set:Wt,$on:(p,g)=>Ut(t,p,g)};return Qv(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Gp(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,L)=>{let b=()=>(L?.()).props;yt(g,oi(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return c()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{$v(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),Vt(i)}var x0=S('<span class="contents"><!></span>'),w0=S("<!> <!>",1);function Iu(r,t){if(new.target)return jt({component:Iu,...r});qt(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=u(()=>_g(a()));let o=xe(null);It(()=>{e(o)&&e(o).workspaceId!==n()&&N(o,null)});function l(h){const P=Wc(h);P&&N(o,{...P,workspaceId:n()},!0)}function c(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();N(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){N(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Wt,$on:(h,P)=>Ut(t,h,P)},p=w0(),g=ze(p);{let h=u(()=>v.workspace_microKeyBadge_ariaLabel({number:lr(a()+1)})),P=u(()=>v.workspace_microKeyBadge_tooltip({number:lr(a()+1)})),A=u(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:c,oncontextmenu:l,onkeydown:l,"aria-haspopup":"menu",get"aria-expanded"(){return e(A)},children:(H,F)=>{var O=x0(),D=I(O);Tp(D,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(O),d(H,O)},$$slots:{default:!0}})}var L=m(g,2);{var b=h=>{{let P=u(()=>e(o)?.x??0),A=u(()=>e(o)?.y??0),H=u(()=>e(o)?.returnFocus),F=u(()=>v.workspace_card_assignMicroKey_label()),O=u(()=>Ym(n(),f));Uc(h,{get x(){return e(P)},get y(){return e(A)},get returnFocus(){return e(H)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(O)},onClickOutside:f})}};M(L,h=>{e(o)&&h(b)})}return d(r,p),Vt(i)}var k0=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),S0=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),I0=S('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),C0=S('<span data-workspace-card-pr-item=""><!></span>'),E0=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),P0=S('<span data-workspace-card-time=""><!></span>'),A0=S('<span aria-hidden="true"><!></span>'),T0=S("<div><!> <!> <!> <!></div>"),R0=S('<div data-workspace-card-hover-surface=""><!></div>'),L0=S('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),N0=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),M0=S('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),O0=S('<div class="text-sm font-semibold truncate"> </div>'),Ec=S('<span class="truncate"> </span>'),D0=S('<span class="text-muted-foreground">·</span>'),B0=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),F0=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),z0=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),H0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),j0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),W0=S('<div class="flex items-center text-ui"><span> </span></div>'),U0=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),q0=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),V0=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),K0=S('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function Cu(r,t){if(new.target)return jt({component:Cu,...r});qt(t,!0);const n=()=>Ot(We,"$prMonitors$",l),a=()=>Ot($e,"$microConnected$",l),s=()=>Ot(Z,"$hidesOwnerActions$",l),o=()=>Ot(ee,"$workspaceKeySlot$",l),[l,c]=ia();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),L=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),A=y(t,"isPinned",7,!1),H=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),O=y(t,"isAgentRunning",7,!1),D=y(t,"agentDigest",7),j=y(t,"trailingLabel",7),C=y(t,"title",7),B=y(t,"repoName",7),G=y(t,"branch",7),Y=y(t,"onClick",7),le=y(t,"onAction",7),Ee=y(t,"onTogglePin",7),de=y(t,"onMarkAsRead",7),ne=y(t,"onOpenInNewWindow",7),ge=y(t,"onHover",7),Me=y(t,"highlighted",7,!1),K=y(t,"selected",7,!1),pe=y(t,"highlightId",7),ce=y(t,"suppressHover",7,!1),Pe=y(t,"isolateHoverReveal",7,!1),Le=y(t,"class",7),we=y(t,"actions",7);const Qe=ss("");It(()=>{Qe.set(f()?.id??"")});const We=yp(Qe),$e=ch(),ee=rv(Qe),Z=_p(Qe),Ge=u(()=>Zm(f()??{})),J=u(()=>Qm(e(Ge)));let V=u(()=>f()?lh.url.pathname===`/workspace/${f().id}`:!1),q=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),ue=xe(!1),be=xe(null),$=xe(null);It(()=>{if(!e($))return;const re=Is(e($),{id:pe()});return()=>re.destroy()});let fe=xe(null),Ae=xe(null),Fe=xe(null),at=xe(0),z=xe(0),ae=u(()=>e(at)+(e(z)>0?e(z)+4:0));function Te(){const re=e(fe),ft=e(Fe);N(at,re?Math.max(0,re.scrollWidth-re.clientWidth):0,!0),N(z,re&&ft&&ft.getClientRects().length>0?Math.max(0,re.getBoundingClientRect().right-ft.getBoundingClientRect().left):0,!0)}It(()=>{const re=e(fe),ft=e(Ae),Bt=e(Fe);if(!re||!ft||(Te(),typeof ResizeObserver>"u"))return;const hr=new ResizeObserver(Te);return hr.observe(re),hr.observe(ft),Bt&&hr.observe(Bt),()=>hr.disconnect()});let Ze=null,me=null,T=!1,U=!1,ye=!1,Ue=!1,Ie=!1,qe=!1,Q=xe(!1),_e=!1,rt=null,tt=xe(null),gt=null,He;function ht(){Ze!==null&&(clearTimeout(Ze),Ze=null)}function dt(){me!==null&&(clearTimeout(me),me=null),gt?.(),gt=null}function vt(){dt(),N(Q,!0),N(ue,!0),!Ie&&(Ie=!0,rs.notifyOpened())}function pt(){dt(),clearTimeout(He),N(Q,!1),N(ue,!1),U=!1,Ue=!1,Ie&&(Ie=!1,rs.notifyClosed())}function Ct(){return T||U||ye||Ue}function At(){if(!e(ue)){pt();return}dt(),me=setTimeout(()=>{me=null,Ct()||pt()},eh),gt=rs.deferClose(pt)}function Zt(){U=!0,dt()}function _t(){U=!1,!ye&&!Ue&&At()}function Ht(){Ue=!0,clearTimeout(He),dt()}function er(re){const ft=re.relatedTarget instanceof Node?re.relatedTarget:null;if(ft&&oe()?.contains(ft)||(Ue=!1,ft&&e(be)?.contains(ft)))return;if(ft){!T&&!U&&pt();return}const Bt=re.target;clearTimeout(He),He=setTimeout(()=>{const hr=document.activeElement,Cr=oe()?.contains(hr)||e(be)?.contains(hr);hr&&hr!==Bt&&Cr||!T&&!U&&pt()},0)}function Et(){rt!==null&&clearTimeout(rt),_e=!0,rt=setTimeout(()=>{_e=!1,rt=null},0)}function Jt(re){const ft=re.target,Bt=oe();ft instanceof Node&&Bt?.contains(ft)||re.type==="scroll"&&e(be)&&ft instanceof Node&&!ft.contains(e(be))||(re.type==="pointerdown"&&Et(),ht(),pt())}It(()=>{if(e(Q))return window.addEventListener("pointerdown",Jt,!0),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("pointerdown",Jt,!0),window.removeEventListener("scroll",Jt,!0)}});function Nt(re){if(re.key!=="Escape")return;const ft=re.target;ft instanceof Node&&oe()?.contains(ft)||(re.preventDefault(),re.stopPropagation(),qe=ye,ht(),pt())}It(()=>{if(e(ue))return window.addEventListener("keydown",Nt,!0),()=>window.removeEventListener("keydown",Nt,!0)});const ve=u(()=>f()?wp.select(Lt.state,f().id):null),te=u(()=>e(ve)?e(ve):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),je=u(()=>xp(f())),nt=u(()=>{if(!f()||e(je))return[];const re=f(),ft=re.repositoryOwner&&re.repositoryName?`${re.repositoryOwner}/${re.repositoryName}`:void 0;return Yp({workspacePRs:re.pullRequests,activePR:e(te),monitors:n(),workspaceRepo:ft,buildPrUrl:(Bt,hr)=>Mv(Bt,re.repositoryOwner,re.repositoryName,hr),getDisplayTitle:Bt=>Bt.title})}),ct=u(()=>e(nt)[0]);function Be(re){const ft=re.resource?.repository.provider==="gitlab"?`${re.repo} !${re.number}`:re.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:re.repo,number:re.number}):v.workspace_card_prBadge_label({number:` #${re.number}`});return[kp(ft,re),re.title,re.details].filter(Boolean).join(`
259
259
  `)}function X(re){re.key==="Enter"&&Y()?.(re)}function oe(){return e(q)?document.getElementById(e(q)):null}function ie(){return Array.from(oe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function ke(){const re=e(be)?.querySelector("[data-workspace-card-trigger]"),ft=oe();if(!re||!ft)return null;const Bt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(Cr=>Cr.tabIndex>=0&&!ft.contains(Cr)),hr=Bt.indexOf(re);return hr>=0?Bt[hr+1]:null}function Ce(re){qe=!!e(be)?.contains(re),pt(),re.focus({preventScroll:!0})}function Oe(){const re=e(be)?.querySelector("[data-workspace-card-trigger]");re&&Ce(re)}async function De(re){if(re.key==="Escape"&&e(ue)){re.preventDefault(),re.stopPropagation(),pt();return}re.key!=="ArrowDown"||ce()||!f()||(re.preventDefault(),re.stopPropagation(),N(Q,!0),N(ue,!0),await Jn(),ie()[0]?.focus({preventScroll:!0}))}function Je(re){const ft=ie(),Bt=re.key==="Tab"&&re.shiftKey&&re.currentTarget===ft[0],Cr=re.key==="Tab"&&!re.shiftKey&&re.currentTarget===ft.at(-1)?ke():null;re.key!=="Escape"&&!Bt&&!Cr||(re.preventDefault(),re.stopPropagation(),Cr?Ce(Cr):Oe())}function Ve(){T=!0,dt(),rs.settleDeferredCloses(),Te(),ge()?.(),f()&&!ce()&&!ye&&(ht(),N(Q,!0),Ze=setTimeout(()=>{Ze=null,vt()},rs.currentOpenDelay))}function Se(){T=!1,ht(),!ye&&!Ue&&At()}function Ye(){ye=!0,ht(),dt(),!qe&&(_e||f()&&!ce()&&(N(Q,!0),N(ue,!0)))}function Ke(re){const ft=re.relatedTarget instanceof Node?re.relatedTarget:null;ft&&e(be)?.contains(ft)||(qe=!1,ye=!1,!(ft&&oe()?.contains(ft))&&!T&&!U&&pt())}It(()=>{ce()&&(ht(),dt(),pt())});let et=xe(null),ot=xe(!1),it;It(()=>{const re=f()?.id;it!==re&&(it=re,N(ot,!1)),e(et)&&e(et).workspaceId!==f()?.id&&kt()});function ut(re){if(!f())return;const ft=Wc(re);if(ft){if(N(ot,!1),bt().length===0){N(et,null);return}N(et,{...ft,returnFocus:re.target instanceof HTMLElement?re.target.closest("button")??e(be)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function kt(){N(et,null),N(ot,!1)}It(()=>{e(ot)&&N(et,null)}),vs(()=>{ht(),dt(),rt!==null&&(clearTimeout(rt),rt=null),pt()});function bt(){if(!f())return[];const re=[];return ne()&&re.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:Yc,onClick:()=>{ne()?.(),kt()}}),re.push(...$m(f().id,{connected:a(),onClose:kt})),s()||(e(je)||re.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:fg,onClick:()=>{Lt.dispatch(Og({workspaceId:f().id,workspaceTitle:f().title})),kt()}}),re.push({id:"archive",label:v.workspace_card_archive_label(),icon:Xc,onClick:()=>{Lt.dispatch(ld(f().id)),kt()}}),re.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:Zc,destructive:!0,onClick:()=>{Lt.dispatch(cd(f().id)),kt()}})),re}let Tt=u(()=>O()&&D()?D():i()?.subtitle??""),Yt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),$t=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),Kt=u(()=>e(je)?void 0:G()),Rr=u(()=>!p()||e(je)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),Qr=u(()=>i()?.phase==="planning"?O()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const gn={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var Dn={get workspace(){return f()},set workspace(re){f(re),_()},get phase(){return i()},set phase(re){i(re),_()},get stats(){return p()},set stats(re){p(re),_()},get variant(){return g()},set variant(re="compact"){g(re),_()},get showTime(){return L()},set showTime(re=!0){L(re),_()},get isRunning(){return b()},set isRunning(re=!1){b(re),_()},get isUnread(){return h()},set isUnread(re=!1){h(re),_()},get isWaiting(){return P()},set isWaiting(re){P(re),_()},get isPinned(){return A()},set isPinned(re=!1){A(re),_()},get streamingAgentIds(){return H()},set streamingAgentIds(re=[]){H(re),_()},get hasSpec(){return F()},set hasSpec(re=!1){F(re),_()},get isAgentRunning(){return O()},set isAgentRunning(re=!1){O(re),_()},get agentDigest(){return D()},set agentDigest(re){D(re),_()},get trailingLabel(){return j()},set trailingLabel(re){j(re),_()},get title(){return C()},set title(re){C(re),_()},get repoName(){return B()},set repoName(re){B(re),_()},get branch(){return G()},set branch(re){G(re),_()},get onClick(){return Y()},set onClick(re){Y(re),_()},get onAction(){return le()},set onAction(re){le(re),_()},get onTogglePin(){return Ee()},set onTogglePin(re){Ee(re),_()},get onMarkAsRead(){return de()},set onMarkAsRead(re){de(re),_()},get onOpenInNewWindow(){return ne()},set onOpenInNewWindow(re){ne(re),_()},get onHover(){return ge()},set onHover(re){ge(re),_()},get highlighted(){return Me()},set highlighted(re=!1){Me(re),_()},get selected(){return K()},set selected(re=!1){K(re),_()},get highlightId(){return pe()},set highlightId(re){pe(re),_()},get suppressHover(){return ce()},set suppressHover(re=!1){ce(re),_()},get isolateHoverReveal(){return Pe()},set isolateHoverReveal(re=!1){Pe(re),_()},get class(){return Le()},set class(re){Le(re),_()},get actions(){return we()},set actions(re){we(re),_()},$set:Wt,$on:(re,ft)=>Ut(t,re,ft)},cn=wt(),Xn=ze(cn);{var Pn=re=>{var ft=L0(),Bt=ze(ft);let hr;var Cr=I(Bt);{let Re=u(()=>f().title||v.workspace_links_untitled_label()),st=u(()=>`workspace-status-state-${f().id}${A()?` workspace-pinned-state-${f().id}`:""}${e(ue)?` ${e(q)}`:""}`),Qt=u(()=>e(V)?"page":void 0);yt(Cr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(Re)},get"aria-describedby"(){return e(st)},get"aria-current"(){return e(Qt)},"data-workspace-card-trigger":!0,onkeydown:De,onclick:Mt=>{Mt.stopPropagation(),Y()?.(Mt)}})}var An=m(Cr,2),kr=I(An);{var Bn=Re=>{var st=k0(),Qt=I(st);{var Mt=tr=>{Iu(tr,{get workspaceId(){return f().id},get slot(){return o()}})};M(Qt,tr=>{o()!==null&&tr(Mt)})}w(st),d(Re,st)};M(kr,Re=>{a()&&Re(Bn)})}var Fn=m(kr,2);Do(Fn,{get content(){return e(J).tooltip},side:"bottom",sideOffset:4,children:(Re,st)=>{Xm(Re,{get status(){return e(Ge)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Zn=m(Fn,2),zn=R(Zn,!0);w(An);var Vr=m(An,2),vn=I(Vr),sr=I(vn),Kr=I(sr),ra=R(Kr,!0);gr(Kr,Re=>N(Ae,Re),()=>e(Ae)),w(sr),gr(sr,Re=>N(fe,Re),()=>e(fe));var Sr=m(sr,2);{var Er=Re=>{var st=S0(),Qt=ze(st),Mt=I(Qt);Pt(Mt,{get icon(){return il},size:"xs"}),w(Qt);var tr=m(Qt,2),vr=R(tr,!0);k(dn=>{mt(Qt,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
260
- ${Ee()?Me()?"opacity-0":ce()?"":Pe()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${f().id??""}`),x(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Re,st)};M(Sr,Re=>{A()&&Re(Er)})}w(vn);var $r=m(vn,2);{var ca=Re=>{var st=I0(),Qt=R(st,!0);k(()=>x(Qt,j())),d(Re,st)};M($r,Re=>{j()&&Re(ca)})}var Gr=m($r,2);{var en=Re=>{const st=u(()=>e(ct));var Qt=E0(),Mt=I(Qt);{let tr=u(()=>Be(e(st)));Do(Mt,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=ze(xn);{var fr=Lr=>{{let yr=u(()=>Be(e(st)));yt(Lr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Pr=f().id;Yf(async()=>{const{handleLink:an}=await import("./ClCKezvS.js").then(na=>na.V);return{handleLink:an}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55]),import.meta.url).then(({handleLink:an})=>an(e(st).url,{workspaceId:Pr,event:Or}))},children:(Or,Pr)=>{Pt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Lr=>{var yr=C0(),Or=I(yr);Pt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Pr=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),se(yr,"aria-label",Pr),se(yr,"data-pr-identity",e(st).identity),se(yr,"data-pr-status",e(st).status)},[()=>Be(e(st))]),d(Lr,yr)};M(un,Lr=>{e(st).url?Lr(fr):Lr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>se(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Re,Qt)};M(Gr,Re=>{e(ct)&&Re(en)})}var Jr=m(Gr,2);{var da=Re=>{var st=P0(),Qt=I(st);{var Mt=vr=>{{let dn=u(()=>pl(f()));Rp(vr,{get date(){return e(dn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=u(()=>pl(f())>0);M(Qt,vr=>{e(tr)&&vr(Mt)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||Ee()||h()&&de()?Me()?"opacity-0":ce()?"":Pe()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Re,st)};M(Jr,Re=>{L()&&Re(da)})}w(Vr);var Ta=m(Vr,2);{var Ra=Re=>{var st=T0(),Qt=I(st);{var Mt=fr=>{{let jr=u(()=>A()?"text-primary-ink":"text-muted-foreground"),Lr=u(()=>A()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=u(()=>A()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
260
+ ${Ee()?Me()?"opacity-0":ce()?"":Pe()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${f().id??""}`),x(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Re,st)};M(Sr,Re=>{A()&&Re(Er)})}w(vn);var $r=m(vn,2);{var ca=Re=>{var st=I0(),Qt=R(st,!0);k(()=>x(Qt,j())),d(Re,st)};M($r,Re=>{j()&&Re(ca)})}var Gr=m($r,2);{var en=Re=>{const st=u(()=>e(ct));var Qt=E0(),Mt=I(Qt);{let tr=u(()=>Be(e(st)));Do(Mt,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=ze(xn);{var fr=Lr=>{{let yr=u(()=>Be(e(st)));yt(Lr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Pr=f().id;Yf(async()=>{const{handleLink:an}=await import("./Jx27GIgX.js").then(na=>na.V);return{handleLink:an}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55]),import.meta.url).then(({handleLink:an})=>an(e(st).url,{workspaceId:Pr,event:Or}))},children:(Or,Pr)=>{Pt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Lr=>{var yr=C0(),Or=I(yr);Pt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Pr=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),se(yr,"aria-label",Pr),se(yr,"data-pr-identity",e(st).identity),se(yr,"data-pr-status",e(st).status)},[()=>Be(e(st))]),d(Lr,yr)};M(un,Lr=>{e(st).url?Lr(fr):Lr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>se(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Re,Qt)};M(Gr,Re=>{e(ct)&&Re(en)})}var Jr=m(Gr,2);{var da=Re=>{var st=P0(),Qt=I(st);{var Mt=vr=>{{let dn=u(()=>pl(f()));Rp(vr,{get date(){return e(dn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=u(()=>pl(f())>0);M(Qt,vr=>{e(tr)&&vr(Mt)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||Ee()||h()&&de()?Me()?"opacity-0":ce()?"":Pe()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Re,st)};M(Jr,Re=>{L()&&Re(da)})}w(Vr);var Ta=m(Vr,2);{var Ra=Re=>{var st=T0(),Qt=I(st);{var Mt=fr=>{{let jr=u(()=>A()?"text-primary-ink":"text-muted-foreground"),Lr=u(()=>A()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=u(()=>A()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
261
261
  ${e(jr)??""}`},onclick:Or=>{Or.stopPropagation(),Ee()?.(Or)},get"aria-label"(){return e(Lr)},get title(){return e(yr)},children:(Or,Pr)=>{var an=A0(),na=I(an);Pt(na,{get icon(){return il},size:"xs"}),w(an),d(Or,an)},$$slots:{default:!0}})}};M(Qt,fr=>{Ee()&&fr(Mt)})}var tr=m(Qt,2);{var vr=fr=>{{let jr=u(()=>v.workspace_card_markAsRead_label()),Lr=u(()=>v.workspace_card_markAsRead_label());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:yr=>{yr.stopPropagation(),de()?.(yr)},get"aria-label"(){return e(jr)},get title(){return e(Lr)},children:(yr,Or)=>{Pt(yr,{get icon(){return Qc},size:"xs"})},$$slots:{default:!0}})}};M(tr,fr=>{h()&&de()&&fr(vr)})}var dn=m(tr,2);pn(dn,()=>we()??Os);var xn=m(dn,2);{var un=fr=>{{let jr=u(bt),Lr=u(()=>v.workspace_progressCard_actions_ariaLabel());Ii(fr,{get items(){return e(jr)},get ariaLabel(){return e(Lr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ot)},set open(yr){N(ot,yr,!0)}})}};M(xn,fr=>{ne()&&fr(un)})}w(st),gr(st,fr=>N(Fe,fr),()=>e(Fe)),k(()=>mt(st,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
262
262
  ${Pe()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
263
263
  ${Me()?"opacity-100":ce()?"opacity-0":Pe()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(Re,st)};M(Ta,Re=>{(we()||ne()||Ee()||h()&&de())&&Re(Ra)})}w(Bt),gr(Bt,Re=>N(be,Re),()=>e(be)),Mn(Bt,(Re,st)=>Is?.(Re,st),()=>({id:pe()}));var Yr=m(Bt,2);{var tn=Re=>{th(Re,{get id(){return e(q)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(be)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:_t,onfocusin:Ht,onfocusout:er,children:(st,Qt)=>{var Mt=R0(),tr=I(Mt);rh(tr,{get workspace(){return f()},get activeAgentIds(){return H()},onkeydown:Je}),w(Mt),gr(Mt,vr=>N(tt,vr),()=>e(tt)),Cn("pointerenter",Mt,Zt),Cn("pointerleave",Mt,_t),Tr("focusin",Mt,Ht),Tr("focusout",Mt,er),d(st,Mt)},$$slots:{default:!0}})};M(Yr,Re=>{e(ue)&&!ce()&&Re(tn)})}var W=m(Yr,2);{var Ne=Re=>{const st=u(bt);var Qt=wt(),Mt=ze(Qt);{var tr=vr=>{{let dn=u(()=>e(et)?.x??0),xn=u(()=>e(et)?.y??0),un=u(()=>e(et)?.returnFocus),fr=u(()=>v.workspace_progressCard_actions_ariaLabel());Uc(vr,{get x(){return e(dn)},get y(){return e(xn)},get returnFocus(){return e(un)},get ariaLabel(){return e(fr)},get items(){return e(st)},onClickOutside:kt})}};M(Mt,vr=>{e(st).length>0&&vr(tr)})}d(Re,Qt)};M(W,Re=>{e(et)&&Re(Ne)})}k((Re,st,Qt)=>{mt(Bt,1,Re,"svelte-1ct56pd"),se(Bt,"data-pinned",A()),se(Bt,"data-highlight-id",pe()),hr=On(Bt,"",hr,{"anchor-name":`--workspace-list-${f().id??""}`}),se(Zn,"id",`workspace-status-state-${f().id??""}`),x(zn,e(J).accessibleName),mt(sr,1,`wc-title type-body min-w-0 truncate font-normal!