@intent-hq/web 2.383.5 → 2.383.7

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 (252) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{RFsxwSsB.js → -jC6R53Y.js} +1 -1
  3. package/web/app/immutable/chunks/{Co4vj0dC.js → 11IPfP64.js} +1 -1
  4. package/web/app/immutable/chunks/{wqIK2bns.js → 1VDAs3Ud.js} +1 -1
  5. package/web/app/immutable/chunks/{DnJ4jlPB.js → 2BBUaa8p.js} +1 -1
  6. package/web/app/immutable/chunks/{Bymbu99U.js → 38BB0grB.js} +1 -1
  7. package/web/app/immutable/chunks/{Dirmxn0x.js → 3FaPVDTk.js} +1 -1
  8. package/web/app/immutable/chunks/{D6G8WbHL.js → 51Rp6_AF.js} +1 -1
  9. package/web/app/immutable/chunks/{Dj14JHUo.js → 5moVT_HQ.js} +1 -1
  10. package/web/app/immutable/chunks/{B8-Q1tED.js → 6D8I0EJP.js} +1 -1
  11. package/web/app/immutable/chunks/{DW25C9MI.js → 7da8sugr.js} +2 -2
  12. package/web/app/immutable/chunks/{CiMmbOsB.js → 7g_E9v8v.js} +1 -1
  13. package/web/app/immutable/chunks/{DibfmKHg.js → 8MucyzZK.js} +1 -1
  14. package/web/app/immutable/chunks/{f24VwgrA.js → 90dwRRI_.js} +1 -1
  15. package/web/app/immutable/chunks/{B5MrjS7j.js → 96gE90DS.js} +1 -1
  16. package/web/app/immutable/chunks/9KbPq6ne.js +1 -0
  17. package/web/app/immutable/chunks/9bpkKfDs.js +1 -0
  18. package/web/app/immutable/chunks/{UMwTu6TE.js → 9p0DyBPU.js} +1 -1
  19. package/web/app/immutable/chunks/{No1eCFy3.js → B-4NNXpn.js} +1 -1
  20. package/web/app/immutable/chunks/{D6dlPeEM.js → B0-WaGMs.js} +1 -1
  21. package/web/app/immutable/chunks/{B8V-jGiS.js → B0SuIES7.js} +1 -1
  22. package/web/app/immutable/chunks/{BAKPnd3w.js → B2w13ngc.js} +1 -1
  23. package/web/app/immutable/chunks/{p7SBTgaC.js → B3WV7a-V.js} +1 -1
  24. package/web/app/immutable/chunks/{-tAyw6ob.js → B3zWdyp-.js} +1 -1
  25. package/web/app/immutable/chunks/{C6mS8uZB.js → B50rrLDJ.js} +1 -1
  26. package/web/app/immutable/chunks/{Bg_lZIRf.js → B6ERx__s.js} +2 -2
  27. package/web/app/immutable/chunks/{BmkXo3Yq.js → B6q3uVQG.js} +1 -1
  28. package/web/app/immutable/chunks/{GuiAAF9e.js → B7ZVMWBx.js} +1 -1
  29. package/web/app/immutable/chunks/{B265Nxi3.js → B91a7NqB.js} +1 -1
  30. package/web/app/immutable/chunks/{L_tYoUCb.js → B9ZFoPLo.js} +1 -1
  31. package/web/app/immutable/chunks/{Cgxwerkr.js → B9bXgFyu.js} +2 -2
  32. package/web/app/immutable/chunks/{c5QZsH9t.js → B9qXV8kb.js} +1 -1
  33. package/web/app/immutable/chunks/{C_KuQ05a.js → BAwmUXtg.js} +1 -1
  34. package/web/app/immutable/chunks/{BxoyDHGw.js → BB2DpGJV.js} +1 -1
  35. package/web/app/immutable/chunks/{C7Zl7z5c.js → BBrT6DIB.js} +1 -1
  36. package/web/app/immutable/chunks/{CO5zWp8I.js → BFPO9C1I.js} +1 -1
  37. package/web/app/immutable/chunks/{CfiKUG8A.js → BGm3f58g.js} +1 -1
  38. package/web/app/immutable/chunks/{iN763416.js → BIsdYrnK.js} +1 -1
  39. package/web/app/immutable/chunks/{3o8kzB3n.js → BM2XSA6g.js} +1 -1
  40. package/web/app/immutable/chunks/{BxEf7uwl.js → BMF9dBr3.js} +1 -1
  41. package/web/app/immutable/chunks/{B4WuQori.js → BMWq5Cem.js} +1 -1
  42. package/web/app/immutable/chunks/{DA5opfEp.js → BPjvgJzJ.js} +1 -1
  43. package/web/app/immutable/chunks/{CsD5HG3r.js → BUDFO3oC.js} +1 -1
  44. package/web/app/immutable/chunks/{Cq88mLGj.js → BUchcLc3.js} +3 -3
  45. package/web/app/immutable/chunks/BWu0YXkV.js +1 -0
  46. package/web/app/immutable/chunks/{Dp-6l6dc.js → BXMl8g0k.js} +1 -1
  47. package/web/app/immutable/chunks/{CqcqWJoa.js → BY98dnH8.js} +1 -1
  48. package/web/app/immutable/chunks/{DqWLkzGY.js → BZ1Q38PM.js} +1 -1
  49. package/web/app/immutable/chunks/{BjfHx7zJ.js → BbHdeR3v.js} +1 -1
  50. package/web/app/immutable/chunks/BcQ6Rg0V.js +10 -0
  51. package/web/app/immutable/chunks/{WGwfzXjP.js → BcUHkjB6.js} +1 -1
  52. package/web/app/immutable/chunks/{D96pHovR.js → Bf16PEz1.js} +1 -1
  53. package/web/app/immutable/chunks/{BqRWw-wJ.js → BfSTFUKA.js} +1 -1
  54. package/web/app/immutable/chunks/{C3upI-xJ.js → BgZpMc5-.js} +1 -1
  55. package/web/app/immutable/chunks/{u2aKD69u.js → BgjaD_Yy.js} +1 -1
  56. package/web/app/immutable/chunks/{KEaRLIGy.js → BhcBqtJg.js} +1 -1
  57. package/web/app/immutable/chunks/{Bs9K_x5H.js → BkPSRIlH.js} +1 -1
  58. package/web/app/immutable/chunks/{Dlk4BhFg.js → BnG797lq.js} +1 -1
  59. package/web/app/immutable/chunks/{CDK_hSiv.js → BotfI-oJ.js} +1 -1
  60. package/web/app/immutable/chunks/{EK6zOAHM.js → BsOWc0fD.js} +1 -1
  61. package/web/app/immutable/chunks/{DzB2TE-q.js → BtI19qHa.js} +40 -40
  62. package/web/app/immutable/chunks/{DizKilK3.js → Bwa_PJLB.js} +2 -2
  63. package/web/app/immutable/chunks/{BwfxdDPw.js → Byb6yuNY.js} +1 -1
  64. package/web/app/immutable/chunks/{6Bqipt1r.js → C-LBvoL7.js} +1 -1
  65. package/web/app/immutable/chunks/{ZxEOlEA2.js → C1IZMhCT.js} +1 -1
  66. package/web/app/immutable/chunks/{ozVAo4aX.js → C1JG3JxG.js} +1 -1
  67. package/web/app/immutable/chunks/{CApA6QD2.js → C1dPOfxb.js} +4 -4
  68. package/web/app/immutable/chunks/{BYChQVmd.js → C2BnXWav.js} +1 -1
  69. package/web/app/immutable/chunks/{DCRuihKm.js → C2jYl_tm.js} +2 -2
  70. package/web/app/immutable/chunks/{CkA2ItLw.js → C3Cs4xcH.js} +1 -1
  71. package/web/app/immutable/chunks/{-Q8WHsT1.js → C3KL0Dob.js} +2 -2
  72. package/web/app/immutable/chunks/{518Fef2L.js → C3kvbgti.js} +1 -1
  73. package/web/app/immutable/chunks/{C4QKwtCH.js → C429ViPJ.js} +1 -1
  74. package/web/app/immutable/chunks/{CWdKrGNN.js → C4ItHUxb.js} +1 -1
  75. package/web/app/immutable/chunks/{Cg871q2J.js → C56HY_cI.js} +1 -1
  76. package/web/app/immutable/chunks/{DATzIj-C.js → C5H3ErAr.js} +1 -1
  77. package/web/app/immutable/chunks/{_SYFiE9N.js → C7Q9MjK0.js} +1 -1
  78. package/web/app/immutable/chunks/{IK5u1LkS.js → C8ZC1xrW.js} +1 -1
  79. package/web/app/immutable/chunks/{cfdblcWY.js → C91EC830.js} +1 -1
  80. package/web/app/immutable/chunks/{CHKnj_kH.js → C9fVl7VH.js} +1 -1
  81. package/web/app/immutable/chunks/{Bty1UglO.js → CAXPT_Gw.js} +1 -1
  82. package/web/app/immutable/chunks/{DC8keNAk.js → CCjzzCpy.js} +1 -1
  83. package/web/app/immutable/chunks/{D51XIZYq.js → CDLANF8s.js} +1 -1
  84. package/web/app/immutable/chunks/{MEqItsKn.js → CE-gn8fg.js} +1 -1
  85. package/web/app/immutable/chunks/{BYq9VtBF.js → CENp25rd.js} +1 -1
  86. package/web/app/immutable/chunks/{3vWQiXY2.js → CEOk8g-Q.js} +3 -3
  87. package/web/app/immutable/chunks/{Du0DJF2z.js → CEl8yEuC.js} +1 -1
  88. package/web/app/immutable/chunks/{B5YNqIIm.js → CIeXUP7u.js} +1 -1
  89. package/web/app/immutable/chunks/{DzbS0qCL.js → CKjysSbd.js} +1 -1
  90. package/web/app/immutable/chunks/{u8znU8zy.js → CLUxyZqF.js} +1 -1
  91. package/web/app/immutable/chunks/{BHt4i6xN.js → CPIZev3Z.js} +1 -1
  92. package/web/app/immutable/chunks/{B9YYIjUd.js → CQlHJWbs.js} +3 -3
  93. package/web/app/immutable/chunks/{BiQUDh4s.js → CQvGDYQV.js} +1 -1
  94. package/web/app/immutable/chunks/{DsGUBv3k.js → CQwOMyxz.js} +1 -1
  95. package/web/app/immutable/chunks/{yFcbscNn.js → CRdOY_2z.js} +1 -1
  96. package/web/app/immutable/chunks/{lzAd2Up3.js → CS3H-hA4.js} +1 -1
  97. package/web/app/immutable/chunks/{DKHY8q_S.js → CTP1vzdq.js} +1 -1
  98. package/web/app/immutable/chunks/{nTGBknlr.js → CTYV2WCR.js} +1 -1
  99. package/web/app/immutable/chunks/{CRZZ_hOy.js → CW0Mb2k4.js} +1 -1
  100. package/web/app/immutable/chunks/{B2Ym4lhl.js → CYkPVUDx.js} +1 -1
  101. package/web/app/immutable/chunks/{W0L8GDXP.js → C_1zy40-.js} +1 -1
  102. package/web/app/immutable/chunks/{Do2giiGP.js → CaCH7xka.js} +1 -1
  103. package/web/app/immutable/chunks/{Bygq9d8w.js → CaVcxIX_.js} +1 -1
  104. package/web/app/immutable/chunks/{RWObpdxy.js → Cb9atCGq.js} +1 -1
  105. package/web/app/immutable/chunks/{DZYWuj4L.js → CdDve0EN.js} +1 -1
  106. package/web/app/immutable/chunks/{CmrjfWYI.js → Ce1_P2yR.js} +1 -1
  107. package/web/app/immutable/chunks/{C8y9EItt.js → Chp6TQgb.js} +1 -1
  108. package/web/app/immutable/chunks/{tZyAiGvb.js → ClIBKxjv.js} +1 -1
  109. package/web/app/immutable/chunks/{OtomGvb3.js → CmAb18no.js} +1 -1
  110. package/web/app/immutable/chunks/{Yyy6gahW.js → CmbyIv2W.js} +1 -1
  111. package/web/app/immutable/chunks/{BaujsV9k.js → Cppy6ZYG.js} +1 -1
  112. package/web/app/immutable/chunks/{BhSvmxU-.js → Cpw-AI-k.js} +4 -4
  113. package/web/app/immutable/chunks/{7dpPwFPi.js → CqEyPGwj.js} +1 -1
  114. package/web/app/immutable/chunks/{BTrqJIJZ.js → Cq_r_CYV.js} +1 -1
  115. package/web/app/immutable/chunks/{CFUZ-wx4.js → CqhHB0m1.js} +3 -3
  116. package/web/app/immutable/chunks/{D8UBdXB2.js → CtCH4W1N.js} +1 -1
  117. package/web/app/immutable/chunks/{Z0_LIT6x.js → CteMcmUe.js} +2 -2
  118. package/web/app/immutable/chunks/{FzlZUztb.js → CttA-M7l.js} +1 -1
  119. package/web/app/immutable/chunks/{C9dAybnM.js → Cxb8aRlA.js} +2 -2
  120. package/web/app/immutable/chunks/{C0cGUVCr.js → Cxs-r6qH.js} +1 -1
  121. package/web/app/immutable/chunks/{DbZ5HUqx.js → CzMfcD76.js} +2 -2
  122. package/web/app/immutable/chunks/{DAJnPbZk.js → CzRvdM50.js} +4 -4
  123. package/web/app/immutable/chunks/{Dac_vP74.js → D14F6Zen.js} +1 -1
  124. package/web/app/immutable/chunks/{iHxbYHJ6.js → D1Kvaw2U.js} +1 -1
  125. package/web/app/immutable/chunks/{DTuql3Rj.js → D32iIfZB.js} +1 -1
  126. package/web/app/immutable/chunks/{D_Xpj-6r.js → D5TRf27k.js} +1 -1
  127. package/web/app/immutable/chunks/{Djp7mdlG.js → D6x1PvJt.js} +1 -1
  128. package/web/app/immutable/chunks/{DY-t7Was.js → D8bef7T8.js} +1 -1
  129. package/web/app/immutable/chunks/{Bvi-fRGz.js → DA3JhNUa.js} +1 -1
  130. package/web/app/immutable/chunks/{BRJQPxpd.js → DBOkAv2-.js} +1 -1
  131. package/web/app/immutable/chunks/{fiz8N_zQ.js → DCL0Px6m.js} +1 -1
  132. package/web/app/immutable/chunks/{5c25JTI1.js → DCzWLn9w.js} +1 -1
  133. package/web/app/immutable/chunks/{DrIA1Azf.js → DDxtqhsd.js} +1 -1
  134. package/web/app/immutable/chunks/{CY4fyoCV.js → DEe4pSnF.js} +1 -1
  135. package/web/app/immutable/chunks/{Dsr4GELp.js → DFUCAM2K.js} +1 -1
  136. package/web/app/immutable/chunks/{CBB3lnfZ.js → DGP-y2GB.js} +3 -3
  137. package/web/app/immutable/chunks/{DDfr81XI.js → DGSdOlov.js} +1 -1
  138. package/web/app/immutable/chunks/{BP5uGGO_.js → DHLXX1td.js} +1 -1
  139. package/web/app/immutable/chunks/{BypvqIQM.js → DHbAORA3.js} +1 -1
  140. package/web/app/immutable/chunks/{CqnrQ6ti.js → DITUyjV2.js} +3 -3
  141. package/web/app/immutable/chunks/{B4SiDSWP.js → DI_O2uCQ.js} +1 -1
  142. package/web/app/immutable/chunks/{Ctbo6mXV.js → DJcj8WvN.js} +1 -1
  143. package/web/app/immutable/chunks/{CG-tM1HG.js → DLS35Cs2.js} +2 -2
  144. package/web/app/immutable/chunks/{Cngzlos4.js → DMVD9ZWm.js} +1 -1
  145. package/web/app/immutable/chunks/{BpcUO3Xs.js → DOAyQZ8n.js} +1 -1
  146. package/web/app/immutable/chunks/{CnZI1GOS.js → DQZ6hbu0.js} +1 -1
  147. package/web/app/immutable/chunks/{SqlvGXMi.js → DT_iJHxn.js} +1 -1
  148. package/web/app/immutable/chunks/{CHLX1QZz.js → DXn0DuET.js} +1 -1
  149. package/web/app/immutable/chunks/{eElW3aeh.js → DZ84MPQO.js} +1 -1
  150. package/web/app/immutable/chunks/{BXCVSrGo.js → D_Fe9jJy.js} +1 -1
  151. package/web/app/immutable/chunks/{BIQB3Kx5.js → DaLNZosE.js} +1 -1
  152. package/web/app/immutable/chunks/{DPCOdXX2.js → DbD3dAy_.js} +1 -1
  153. package/web/app/immutable/chunks/{C0LshS-P.js → Dc0NoKVI.js} +1 -1
  154. package/web/app/immutable/chunks/{C0o77pad.js → Dd6jkKNK.js} +2 -2
  155. package/web/app/immutable/chunks/{Bv1ckDXI.js → DggzSry-.js} +1 -1
  156. package/web/app/immutable/chunks/{BNVrbjR5.js → DgiZ-0Sp.js} +2 -2
  157. package/web/app/immutable/chunks/{B-MmNWOm.js → DhQSNgxc.js} +1 -1
  158. package/web/app/immutable/chunks/{QeBH-DWE.js → Dhy-QJgd.js} +1 -1
  159. package/web/app/immutable/chunks/{KYuLFpkq.js → DiNBgjb1.js} +1 -1
  160. package/web/app/immutable/chunks/{Dql2ogGT.js → Dj8digI5.js} +1 -1
  161. package/web/app/immutable/chunks/{C1EvfTg-.js → DjNVz8pO.js} +1 -1
  162. package/web/app/immutable/chunks/{6-uYidyP.js → DkDSK_05.js} +3 -3
  163. package/web/app/immutable/chunks/{DCK8dPAL.js → DkME16PR.js} +1 -1
  164. package/web/app/immutable/chunks/{j65te9ZT.js → Dl2c_Q4j.js} +1 -1
  165. package/web/app/immutable/chunks/{BWbkCnfm.js → Dl4B5sLX.js} +1 -1
  166. package/web/app/immutable/chunks/{BmTMWrby.js → DlUZpQ7U.js} +1 -1
  167. package/web/app/immutable/chunks/{CLkfOjAo.js → DnNC4gf3.js} +3 -3
  168. package/web/app/immutable/chunks/{CSRYV6LQ.js → Dnp239cR.js} +1 -1
  169. package/web/app/immutable/chunks/{BfojStRz.js → DpPV7WHr.js} +1 -1
  170. package/web/app/immutable/chunks/{BP3Sccje.js → DpX9aeiZ.js} +1 -1
  171. package/web/app/immutable/chunks/{B_JCVgq0.js → DqH-hVUa.js} +1 -1
  172. package/web/app/immutable/chunks/{Dr8j8hDa.js → DqMZWY-u.js} +2 -2
  173. package/web/app/immutable/chunks/{BZC6DuKQ.js → Dqhi5681.js} +1 -1
  174. package/web/app/immutable/chunks/{Cqa6LF3b.js → DrWDRmYR.js} +1 -1
  175. package/web/app/immutable/chunks/{BYdTf9Vr.js → DsCz_Hld.js} +1 -1
  176. package/web/app/immutable/chunks/{DrxfcnSy.js → DsffLoT8.js} +1 -1
  177. package/web/app/immutable/chunks/{CP9Lq5G_.js → DtekCANZ.js} +1 -1
  178. package/web/app/immutable/chunks/{ClJhkXR5.js → DwDabzpx.js} +1 -1
  179. package/web/app/immutable/chunks/{BPL5Fo2b.js → Dx3nOa5s.js} +1 -1
  180. package/web/app/immutable/chunks/{BacafptN.js → DyIsX23v.js} +4 -4
  181. package/web/app/immutable/chunks/{BcpfdNy8.js → FITmaVUJ.js} +1 -1
  182. package/web/app/immutable/chunks/{Bj84UPYb.js → FoSxZj2s.js} +1 -1
  183. package/web/app/immutable/chunks/{CAvYeStH.js → JvS7MGpw.js} +1 -1
  184. package/web/app/immutable/chunks/{DQ_mNIfK.js → L0wFy8_j.js} +1 -1
  185. package/web/app/immutable/chunks/{D8ohaX19.js → NE3LtfEb.js} +1 -1
  186. package/web/app/immutable/chunks/{CpJb1fZG.js → NaXnyxXD.js} +1 -1
  187. package/web/app/immutable/chunks/{B_kMSQKD.js → NqwdDVdt.js} +1 -1
  188. package/web/app/immutable/chunks/{B2DRKAdQ.js → Q16zd2xh.js} +1 -1
  189. package/web/app/immutable/chunks/{C4JbSg3f.js → SB0XkB7s.js} +1 -1
  190. package/web/app/immutable/chunks/{BKPEtXUT.js → SDBQMo24.js} +1 -1
  191. package/web/app/immutable/chunks/{DaFpSJap.js → SSdhXyvx.js} +1 -1
  192. package/web/app/immutable/chunks/{CwTtJpch.js → SnC5sLK-.js} +1 -1
  193. package/web/app/immutable/chunks/{CMEtJ5i1.js → SwH0lZVC.js} +1 -1
  194. package/web/app/immutable/chunks/{CbqxWBi7.js → T-y84UQ-.js} +1 -1
  195. package/web/app/immutable/chunks/{S845NCb3.js → VxaCN40t.js} +1 -1
  196. package/web/app/immutable/chunks/{C4LrSRW3.js → Y3x17kvu.js} +1 -1
  197. package/web/app/immutable/chunks/{BxJ6X-Sl.js → ZNxS70ti.js} +1 -1
  198. package/web/app/immutable/chunks/{ClMg21pU.js → ZtnoAnS2.js} +1 -1
  199. package/web/app/immutable/chunks/{tr-2J8Mf.js → _LtUY0jS.js} +1 -1
  200. package/web/app/immutable/chunks/{DwL1A1su.js → _WGu_9si.js} +1 -1
  201. package/web/app/immutable/chunks/{PIgqsYsQ.js → _Z48PZPG.js} +1 -1
  202. package/web/app/immutable/chunks/{DtF9DVpp.js → _szCylN8.js} +1 -1
  203. package/web/app/immutable/chunks/{CwtLM6uA.js → amTgh_yM.js} +1 -1
  204. package/web/app/immutable/chunks/{WiA7_4AK.js → aoCeefP4.js} +1 -1
  205. package/web/app/immutable/chunks/{OFhgRaUm.js → bq2jN3Y4.js} +1 -1
  206. package/web/app/immutable/chunks/{CDjpuJh0.js → c6a4q1y9.js} +1 -1
  207. package/web/app/immutable/chunks/{Cx37GTsM.js → cWnGUUZk.js} +1 -1
  208. package/web/app/immutable/chunks/{D37getya.js → ceYukiuF.js} +1 -1
  209. package/web/app/immutable/chunks/{BaW_cM4B.js → i2uLOz57.js} +1 -1
  210. package/web/app/immutable/chunks/{BeOwB_6G.js → iDB1itc7.js} +1 -1
  211. package/web/app/immutable/chunks/{-afdnSwu.js → lFCyJLs0.js} +1 -1
  212. package/web/app/immutable/chunks/{CJtViYfh.js → lQcc1B6x.js} +1 -1
  213. package/web/app/immutable/chunks/{DT3Kx0Qe.js → lzc_ALaY.js} +1 -1
  214. package/web/app/immutable/chunks/{CmVBRNuA.js → m2kIPDiE.js} +1 -1
  215. package/web/app/immutable/chunks/{CjTo2K46.js → nA0tsFRt.js} +1 -1
  216. package/web/app/immutable/chunks/{B2nCyo89.js → pQ6IdBCz.js} +1 -1
  217. package/web/app/immutable/chunks/{BSKFIBj2.js → ram0Xoqf.js} +1 -1
  218. package/web/app/immutable/chunks/{CCqqosml.js → rpEVAvPW.js} +1 -1
  219. package/web/app/immutable/chunks/{CSVgdt55.js → sABlNrvu.js} +1 -1
  220. package/web/app/immutable/chunks/{DMV7vEM7.js → tV0w-z-Q.js} +1 -1
  221. package/web/app/immutable/chunks/{DFi1P2MD.js → veocPVpA.js} +1 -1
  222. package/web/app/immutable/chunks/{hHMYoFyG.js → wjh5cuBI.js} +1 -1
  223. package/web/app/immutable/chunks/{BTv8uh2C.js → xGj0i83D.js} +6 -6
  224. package/web/app/immutable/entry/{app.Cqjdbldk.js → app.oKB02DpO.js} +2 -2
  225. package/web/app/immutable/entry/start.MWx9NKvl.js +1 -0
  226. package/web/app/immutable/nodes/{0.CIMKJ2v2.js → 0.Cj75U9Pb.js} +1 -1
  227. package/web/app/immutable/nodes/{1.C-zZe4mL.js → 1.COmRB5Gs.js} +1 -1
  228. package/web/app/immutable/nodes/{10.CRicXMMy.js → 10.B-EGmrBP.js} +5 -5
  229. package/web/app/immutable/nodes/{11.CFkPUf9W.js → 11.CHJVqhXh.js} +1 -1
  230. package/web/app/immutable/nodes/{13.CCKyw-_o.js → 13.C6TyTlAm.js} +1 -1
  231. package/web/app/immutable/nodes/{14.BD92xFv4.js → 14.CHiqNDyF.js} +1 -1
  232. package/web/app/immutable/nodes/{15.BDAlg-ra.js → 15.DvvqcqqW.js} +1 -1
  233. package/web/app/immutable/nodes/{16.CVCm-nfj.js → 16.Dyi9KYXl.js} +1 -1
  234. package/web/app/immutable/nodes/{17.CjKvJw8X.js → 17.CH042Yj8.js} +1 -1
  235. package/web/app/immutable/nodes/{18.DDY8Eqsn.js → 18.DVg5DSa7.js} +1 -1
  236. package/web/app/immutable/nodes/{19.DJgRbiNE.js → 19.CFGkesVY.js} +2 -2
  237. package/web/app/immutable/nodes/{2.Dl71tIky.js → 2.BSKohF8j.js} +4 -4
  238. package/web/app/immutable/nodes/{20.CLsq1QLL.js → 20.Byg15mRq.js} +1 -1
  239. package/web/app/immutable/nodes/{3.DNld1BNY.js → 3.CgM283V9.js} +1 -1
  240. package/web/app/immutable/nodes/{4.Dqn6Xii_.js → 4.pSSQL5ZR.js} +1 -1
  241. package/web/app/immutable/nodes/{5.B0BP_LYC.js → 5.gjcZy0Yo.js} +1 -1
  242. package/web/app/immutable/nodes/{6.NwMlYZya.js → 6.mfPH3Xl6.js} +1 -1
  243. package/web/app/immutable/nodes/{7.CP-QZto7.js → 7.hkLeTg6x.js} +1 -1
  244. package/web/app/immutable/nodes/{8.BsQgGFet.js → 8.CwwxHkuu.js} +1 -1
  245. package/web/app/immutable/nodes/{9.DY6xrFrM.js → 9.VYVO4dZo.js} +4 -4
  246. package/web/app/version.json +1 -1
  247. package/web/index.html +12 -12
  248. package/web/app/immutable/chunks/BIVeXMBl.js +0 -1
  249. package/web/app/immutable/chunks/D-zjf2Af.js +0 -1
  250. package/web/app/immutable/chunks/DH5O4f99.js +0 -1
  251. package/web/app/immutable/chunks/pUxZXv-3.js +0 -10
  252. package/web/app/immutable/entry/start.D0BpS8PF.js +0 -1
@@ -1,4 +1,4 @@
1
- import{t as Ke,bo as k,bm as Ce,bw as Ve,b as Je,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bs as ht,bq as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Sr,h as Cr,k as Nr}from"./C0QTy0Sy.js";import{bs as Ue,ca as Xe,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as C,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./3SdAC2_C.js";import{nZ as Rr,Jv as ct,n4 as Tt,em as Mr,eJ as Pr,eK as Lr}from"./tr-2J8Mf.js";import{i as H}from"./bhKPSdq4.js";import{n as We,j as Oe,h as at}from"./DLwWVKiF.js";import{dH as Ir,bt as Ar}from"./BaujsV9k.js";import{a9 as jt}from"./3vWQiXY2.js";import{I as it,g as Ge,i as Lt}from"./B6S6VNu7.js";import{f as xe}from"./FzlZUztb.js";import"./DCRuihKm.js";import{f as He,s as Er}from"./7UPrdiE9.js";import"./CrD0jtXE.js";import{F as fe,a2 as Hr,cR as zr,aw as ot,ax as pt,c2 as Wr,aV as Dr,bN as Tr,bH as jr,b9 as Fr,cW as Br,cn as Gr,b6 as St,c$ as Rt,cr as _t,bo as Or,cF as Kr,au as Vr}from"./U9jJmfYa.js";import{i as Jr}from"./DzB2TE-q.js";import{h as Ft}from"./BKD7o1lQ.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Jt}from"./BAKPnd3w.js";import"./A9niI_uA.js";import{q as Ur}from"./CE7dsja4.js";import{M as Mt}from"./CFUZ-wx4.js";import{B as qr}from"./B8-Q1tED.js";import{S as Ct}from"./fiz8N_zQ.js";const Qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
1
+ import{t as Ke,bo as k,bm as Ce,bw as Ve,b as Je,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bs as ht,bq as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Sr,h as Cr,k as Nr}from"./C0QTy0Sy.js";import{bs as Ue,ca as Xe,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as C,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./3SdAC2_C.js";import{nZ as Rr,Jv as ct,n4 as Tt,em as Mr,eJ as Pr,eK as Lr}from"./_LtUY0jS.js";import{i as H}from"./bhKPSdq4.js";import{n as We,j as Oe,h as at}from"./DLwWVKiF.js";import{dH as Ir,bt as Ar}from"./Cppy6ZYG.js";import{a9 as jt}from"./CEOk8g-Q.js";import{I as it,g as Ge,i as Lt}from"./B6S6VNu7.js";import{f as xe}from"./CttA-M7l.js";import"./C2jYl_tm.js";import{f as He,s as Er}from"./7UPrdiE9.js";import"./CrD0jtXE.js";import{F as fe,a2 as Hr,cR as zr,aw as ot,ax as pt,c2 as Wr,aV as Dr,bN as Tr,bH as jr,b9 as Fr,cW as Br,cn as Gr,b6 as St,c$ as Rt,cr as _t,bo as Or,cF as Kr,au as Vr}from"./U9jJmfYa.js";import{i as Jr}from"./BtI19qHa.js";import{h as Ft}from"./BKD7o1lQ.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Jt}from"./B2w13ngc.js";import"./A9niI_uA.js";import{q as Ur}from"./CE7dsja4.js";import{M as Mt}from"./CqhHB0m1.js";import{B as qr}from"./6D8I0EJP.js";import{S as Ct}from"./DCL0Px6m.js";const Qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
2
2
  `);let m=null,b=0,u=0;const T=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),U=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:U,oldLines:K,newStart:pe,newLines:q,lines:[]},r.push(m),b=U,u=pe};for(const P of d){if(P.startsWith("@@")){T(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):Qr.some(U=>U.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Zr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Ut($,r){if(new.target)return Ke({component:Ut,...$});Ue(r,!0);let d=k(r,"lineNumber",7,0),m=k(r,"fileName",7,""),b=k(r,"onSend",7),u=k(r,"onClose",7),T=k(r,"isSending",7,!1),P=k(r,"class",7,""),h=we(""),U=we(null);Xe(()=>{e(U)&&e(U).focus()});function K(){!e(h).trim()||T()||(b()?.(e(h).trim(),d(),m()),L(h,""))}function pe(I){I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),K()),I.key==="Escape"&&u()?.()}var q={get lineNumber(){return d()},set lineNumber(I=0){d(I),y()},get fileName(){return m()},set fileName(I=""){m(I),y()},get onSend(){return b()},set onSend(I){b(I),y()},get onClose(){return u()},set onClose(I){u(I),y()},get isSending(){return T()},set isSending(I=!1){T(I),y()},get class(){return P()},set class(I=""){P(I),y()},$set:Ve,$on:(I,he)=>Je(r,I,he)},w=Zr(),z=be(w),de=o(z);{let I=_(()=>Ce.codeReview_inlineComment_askLine_placeholder());Jt(de,{onkeydown:pe,get placeholder(){return e(I)},get disabled(){return T()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(U)},set ref(he){L(U,he,!0)},get value(){return e(h)},set value(he){L(h,he,!0)}})}var ce=n(de,2);{let I=_(()=>!e(h).trim()||T());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(I)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),S=be(_e);{var E=me=>{it(me,{size:14})},Ie=me=>{fe(me,{get icon(){return Hr},class:"h-3.5 w-3.5"})};H(S,me=>{T()?me(E):me(Ie,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(I,he)=>{st();var Ne=et();M(_e=>C(Ne,_e),[()=>Ce.codeReview_inlineComment_cancel_label()]),i(I,Ne)},$$slots:{default:!0}}),s(z);var te=n(z,2),ke=O(te,!0);return M(I=>{He(z,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),C(ke,I)},[()=>Ce.codeReview_inlineComment_inputHint_label()]),i($,w),qe(q)}var Xr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Ue(r,!0);let d=k(r,"annotation",7),m=k(r,"lineNumber",7),b=k(r,"fileName",7),u=k(r,"messages",23,()=>[]),T=k(r,"onSendMessage",7),P=k(r,"onClose",7),h=k(r,"isSending",7,!1),U=k(r,"isAgentResponding",7,!1),K=k(r,"timestamp",7),pe=k(r,"class",7,""),q=we(""),w=we(!1),z=we(!1),de=we(null);Xe(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(q).trim()||h()||(T()?.(e(q).trim(),m(),b()),L(q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(q)?L(q,""):L(w,!1))}function te(a){switch(a){case"highlight":return Fr;case"context":return jr;case"explanation":default:return Tr}}function ke(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function I(a){return a?Ur(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),y()},get lineNumber(){return m()},set lineNumber(a){m(a),y()},get fileName(){return b()},set fileName(a){b(a),y()},get messages(){return u()},set messages(a=[]){u(a),y()},get onSendMessage(){return T()},set onSendMessage(a){T(a),y()},get onClose(){return P()},set onClose(a){P(a),y()},get isSending(){return h()},set isSending(a=!1){h(a),y()},get isAgentResponding(){return U()},set isAgentResponding(a=!1){U(a),y()},get timestamp(){return K()},set timestamp(a){K(a),y()},get class(){return pe()},set class(a=""){pe(a),y()},$set:Ve,$on:(a,D)=>Je(r,a,D)},_e=ln(),S=o(_e),E=o(S),Ie=o(E);{let a=_(()=>te(d().type)),D=_(()=>ke(d().type));fe(Ie,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(D)??""}`}})}s(E);var me=n(E,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var Z=a=>{var D=Xr(),X=O(D,!0);M(ee=>C(X,ee),[()=>I(K())]),i(a,D)};H(A,a=>{K()&&a(Z)})}s(me);var ie=n(me,2);{var $e=a=>{{let D=_(()=>Ce.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(D)},children:(X,ee)=>{fe(X,{get icon(){return zr}})},$$slots:{default:!0}})}};H(ie,a=>{P()&&a($e)})}s(S);var Se=n(S,2);{var ye=a=>{var D=nn(),X=o(D);xe(X,{type:"button",variant:"ghost",onclick:()=>L(z,!e(z)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(Q,se)=>{var Y=en(),c=be(Y),p=O(c,!0),B=n(c,2);{let ue=_(()=>e(z)?ot:pt);fe(B,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>C(p,ue),[()=>Ce.codeReview_commentThread_suggestedChanges_label()]),i(Q,Y)},$$slots:{default:!0}});var ee=n(X,2);{var re=Q=>{var se=rn();Ge(se,21,u,Y=>Y.id,(Y,c)=>{var p=tn(),B=o(p),ue=o(B);{let g=_(()=>e(c).type==="user"?Br:Gr),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(B);var Re=n(B,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>He(B,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),We(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(Y,p)}),s(se),We(3,se,()=>Oe,()=>({tier:"moderate"})),i(Q,se)};H(ee,Q=>{e(z)&&Q(re)})}s(D),i(a,D)};H(Se,a=>{e(he)&&a(ye)})}var V=n(Se,2);{var j=a=>{var D=an(),X=o(D);it(X,{size:12});var ee=n(X,2),re=O(ee,!0);s(D),M(Q=>C(re,Q),[()=>Ce.codeReview_commentThread_agentResponding_label()]),i(a,D)};H(V,a=>{U()&&a(j)})}var f=n(V,2),W=o(f);{var F=a=>{var D=sn(),X=be(D),ee=o(X);{let c=_(()=>Ce.codeReview_commentThread_followUp_placeholder());Jt(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){L(de,p,!0)},get value(){return e(q)},set value(p){L(q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,B)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return Wr},class:"h-3 w-3"})};H(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var Q=n(re,2);xe(Q,{type:"button",variant:"ghost",onclick:()=>{L(w,!1),L(q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var B=et();M(ue=>C(B,ue),[()=>Ce.codeReview_commentThread_cancel_label()]),i(c,B)},$$slots:{default:!0}}),s(X);var se=n(X,2),Y=O(se,!0);M(c=>C(Y,c),[()=>Ce.codeReview_commentThread_inputHint_label()]),We(3,X,()=>Oe,()=>({tier:"fast"})),i(a,D)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>L(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(D,X)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Dr},class:"h-3 w-3"});var Q=n(re,2),se=O(Q,!0);M(Y=>C(se,Y),[()=>Ce.codeReview_commentThread_askQuestion_label()]),i(D,ee)},$$slots:{default:!0}})};H(W,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>He(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),We(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Gt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function It($,r){if(new.target)return Ke({component:It,...$});Ue(r,!0);let d=k(r,"fileName",7),m=k(r,"patch",7),b=k(r,"annotations",23,()=>[]),u=k(r,"initialCollapsed",7,!1),T=k(r,"contextLines",7,3),P=k(r,"onSendMessage",7),h=k(r,"isSending",7,!1),U=k(r,"additions",7,0),K=k(r,"deletions",7,0),pe=k(r,"fileDescription",7,""),q=k(r,"class",7,"");const w=_(()=>Yr(m())),z=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(z)||e(z)==="text"||e(z)==="plaintext"||!Bt.getLanguage(e(z))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const G=N.content||"",J=`${N.oldNum}-${N.newNum}`;g.push({content:G,key:J})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
3
3
  `),J=Bt.highlight(N,{language:e(z)}).value.split(`
4
4
  `);g.forEach((ne,oe)=>{oe<J.length&&t.set(ne.key,J[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ke=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),I=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ke).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(I).has(N))return!0;const G=e(w)[t];if(!G)return!1;for(let J=Math.max(0,l-T());J<=Math.min(G.lines.length-1,l+T());J++){const ne=G.lines[J];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(I).has(oe))return!0}for(const J of e(ae)){const[ne,oe,ve]=J.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let G=0;G<l.lines.length;G++){const J=Ne(t,G,l.lines[G]);!J&&N===null?N=G:J&&N!==null&&(g.push({startIndex:N,endIndex:G-1,count:G-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function S(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),L(ae,new Set(e(ae)),!0)}function E(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];S(t,0,l.lines.length-1)}}function Ie(){L(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function Z(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){L(ce,!e(ce))}function Se(t){L(te,t,!0)}function ye(){L(te,null)}function V(t,l,g){P()?.(t,l,g),L(te,null)}const j=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),W=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let G=0;G<N.lines.length&&l.length<3;G++){const J=N.lines[G];(J.type==="addition"||J.type==="deletion")&&l.push({line:J,hunkIndex:g,lineIndex:G})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function D(t){return`${t.file}:${t.line}:${t.type}`}function X(t){return e(a).get(D(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),y()},get patch(){return m()},set patch(t){m(t),y()},get annotations(){return b()},set annotations(t=[]){b(t),y()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),y()},get contextLines(){return T()},set contextLines(t=3){T(t),y()},get onSendMessage(){return P()},set onSendMessage(t){P(t),y()},get isSending(){return h()},set isSending(t=!1){h(t),y()},get additions(){return U()},set additions(t=0){U(t),y()},get deletions(){return K()},set deletions(t=0){K(t),y()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),y()},get class(){return q()},set class(t=""){q(t),y()},$set:Ve,$on:(t,l)=>Je(r,t,l)},re=wn(),Q=o(re),se=o(Q);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Le=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Le)},class:"h-3 w-3 text-ghost shrink-0"})}var G=n(N,4),J=o(G),ne=O(J,!0),oe=n(J,2),ve=O(oe,!0);s(G);var Me=n(G,2),Ae=o(Me);{var De=Le=>{var Ee=dn(),Fe=O(Ee);M(()=>C(Fe,`+${U()+K()}`)),i(Le,Ee)};H(Ae,Le=>{(U()>0||K()>0)&&Le(De)})}s(Me),M((Le,Ee)=>{C(ne,Le),C(ve,Ee)},[()=>e(j)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var Y=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>C(N,pe())),i(t,l)};H(Y,t=>{pe()&&t(c)})}s(Q);var p=n(Q,2);{var B=t=>{var l=gn(),g=o(l),N=o(g);Ge(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),De=o(Ae),Le=O(De,!0);s(Ae);var Ee=n(Ae,2),Fe=O(Ee,!0),Te=n(Ee,2),ge=o(Te);Ft(ge,()=>me(ve()),!0),s(ge),s(Te),s(Me),M((Qe,Ye,Ze,tt)=>{He(Me,1,`flex ${Qe??""}`),He(Ae,1,`w-12 shrink-0 flex select-none ${Ye??""} border-r border-border`),C(Le,ve().newNum??ve().oldNum??""),He(Ee,1,`w-5 shrink-0 text-center select-none ${Ze??""}`),C(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>Z(ve())]),i(ne,Me)});var G=n(N,2);{var J=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>C(Me,Ae),[()=>Ce.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};H(G,ne=>{e(le)>e(F).length&&ne(J)})}s(g),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};H(p,t=>{e(ce)&&e(F).length>0&&t(B)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:E,children:(De,Le)=>{st();var Ee=et();M(Fe=>C(Ee,Fe),[()=>Ce.codeReview_fileDiff_expandAll_label()]),i(De,Ee)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=De=>{var Le=fn(),Ee=n(be(Le),2);xe(Ee,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Ie,children:(Fe,Te)=>{st();var ge=et();M(Qe=>C(ge,Qe),[()=>Ce.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(De,Le)};H(Me,De=>{e(ae).size>0&&De(Ae)})}s(oe),i(ne,oe)};H(g,ne=>{e(W)&&ne(N)})}var G=n(g,2),J=o(G);Ge(J,21,()=>e(w),Lt,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(Te=>Te.startIndex===0));var De=xn(),Le=be(De);{var Ee=Te=>{xe(Te,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>S(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,Qe)=>{var Ye=Gt(),Ze=be(Ye);fe(Ze,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Ze,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>C(xt,ut),[()=>Ce.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Ye)},$$slots:{default:!0}})};H(Le,Te=>{e(Ae)&&Te(Ee)})}var Fe=n(Le,2);Ge(Fe,19,()=>e(oe).lines,(Te,ge)=>`${ve}-${ge}`,(Te,ge,Qe)=>{const Ye=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Ze=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Ye)),xt=_(()=>Ne(ve,e(Qe),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(Qe)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),Et=o(gt),rr=O(Et,!0),nr=n(Et,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),Ht=n(bt,2),wt=o(Ht),zt=o(wt);Ft(zt,()=>me(e(ge)),!0),s(zt),s(wt);var or=n(wt,2);{var ir=Pe=>{{let ze=_(()=>Ce.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Se(e(Ye)),get title(){return e(ze)},children:(je,Be)=>{fe(je,{get icon(){return St}})},$$slots:{default:!0}})}};H(or,Pe=>{P()&&Pe(ir)})}s(Ht),s(vt);var Wt=n(vt,2);Ge(Wt,19,()=>e(Ze),(Pe,ze)=>`${Pe.line}-${ze}`,(Pe,ze)=>{var je=mn(),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>X(e(ze)));qt(Be,{get annotation(){return e(ze)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(kt,yt,$t)=>V(kt,yt,$t),get isSending(){return h()}})}s(je),We(3,je,()=>Oe,()=>({tier:"moderate"})),i(Pe,je)});var Dt=n(Wt,2);{var lr=Pe=>{var ze=pn(),je=o(ze),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Ut(Be,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:V,onClose:ye,get isSending(){return h()}})}s(je),s(ze),i(Pe,ze)};H(Dt,Pe=>{e(tt)&&e(Ze).length===0&&Pe(lr)})}var dr=n(Dt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>S(ve,e(rt).startIndex,e(rt).endIndex),children:(ze,je)=>{var Be=Gt(),nt=be(Be);fe(nt,{get icon(){return St},class:"h-2.5 w-2.5"});var ft=n(nt,2),kt=O(ft,!0),yt=n(ft,2);fe(yt,{get icon(){return St},class:"h-2.5 w-2.5"}),M($t=>C(kt,$t),[()=>Ce.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(ze,Be)},$$slots:{default:!0}})};H(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,ze,je,Be)=>{He(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),He(gt,1,`w-20 shrink-0 flex select-none ${ze??""} border-r border-border`),C(rr,e(ge).oldNum??""),C(ar,e(ge).newNum??""),He(bt,1,`w-5 shrink-0 text-center select-none ${je??""}`),C(sr,Be)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>Z(e(ge))]),i(lt,At)};H(er,lt=>{e(xt)&&lt(tr)})}i(Te,ut)}),i(ne,De)}),s(J),s(G),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};H(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>He(re,1,`walkthrough-file-diff overflow-hidden bg-card ${q()??""}`)),i($,re),qe(ee)}var kn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),yn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Ue(r,!0);let d=k(r,"categories",7),m=k(r,"onCategoryClick",7),b=k(r,"class",7,"");function u(w){const z=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return z[w%z.length]}function T(w){const z=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return z[w%z.length]}var P={get categories(){return d()},set categories(w){d(w),y()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),y()},get class(){return b()},set class(w=""){b(w),y()},$set:Ve,$on:(w,z)=>Je(r,w,z)},h=yn(),U=o(h),K=o(U),pe=O(K,!0);s(U);var q=n(U,2);return Ge(q,21,d,Lt,(w,z,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ke=kn(),I=o(ke),he=O(I),Ne=n(I,2),_e=o(Ne),S=O(_e,!0),E=n(_e,2),Ie=O(E,!0),me=n(E,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,Z)=>{He(he,0,`h-5 w-5 ${A??""}`),C(S,e(z).title),C(Ie,e(z).description),C(R,Z)},[()=>T(de),()=>e(z).files.length===1?Ce.codeReview_categoriesGrid_fileCount_one({count:e(z).files.length}):Ce.codeReview_categoriesGrid_fileCount_many({count:e(z).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(q),s(h),M(w=>{He(h,1,`walkthrough-categories-grid ${b()??""}`),C(pe,w)},[()=>Ce.codeReview_categoriesGrid_whatChanged_title()]),i($,h),qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Sn=x('<p class="text-sm text-subtle mt-2"> </p>'),Cn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Ue(r,!0);let d=k(r,"category",7),m=k(r,"categoryIndex",7),b=k(r,"filePatchMap",7),u=k(r,"isLast",7,!1),T=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function U(S){const E=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return E[S%E.length]}const K=_(()=>d().files.map(S=>{const E=b().get(S.path);return{...S,patch:E?.patch,additions:E?.additions??0,deletions:E?.deletions??0}}));var pe={get category(){return d()},set category(S){d(S),y()},get categoryIndex(){return m()},set categoryIndex(S){m(S),y()},get filePatchMap(){return b()},set filePatchMap(S){b(S),y()},get isLast(){return u()},set isLast(S=!1){u(S),y()},get onSendMessage(){return T()},set onSendMessage(S){T(S),y()},get isSending(){return P()},set isSending(S=!1){P(S),y()},get class(){return h()},set class(S=""){h(S),y()},$set:Ve,$on:(S,E)=>Je(r,S,E)},q=Rn(),w=o(q),z=o(w),de=o(z),ce=n(de,2);{var ae=S=>{var E=$n();i(S,E)};H(ce,S=>{(!u()||e(K).length>0)&&S(ae)})}s(z);var te=n(z,2),ke=o(te),I=O(ke,!0),he=n(ke,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Ge(_e,23,()=>e(K),(S,E)=>`${m()}-${E}`,(S,E,Ie)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),Z=o(A);{var ie=Se=>{It(Se,{get fileName(){return e(E).path},get patch(){return e(E).patch},get annotations(){return e(E).annotations},get additions(){return e(E).additions},get deletions(){return e(E).deletions},get fileDescription(){return e(E).summary},get onSendMessage(){return T()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Se=>{var ye=Cn(),V=o(ye),j=n(o(V),2),f=O(j,!0);s(V);var W=n(V,2);{var F=le=>{var a=Sn(),D=O(a,!0);M(()=>C(D,e(E).summary)),i(le,a)};H(W,le=>{e(E).summary&&le(F)})}s(ye),M(()=>C(f,e(E).path)),i(Se,ye)};H(Z,Se=>{e(E).patch?Se(ie):Se($e,-1)})}s(A),s(me),M(()=>He(R,1,`w-0.5 flex-1 bg-border ${e(Ie)===e(K).length-1&&u()?"h-1/2":""}`)),i(S,me)}),s(_e),s(q),M(S=>{He(q,1,`walkthrough-category-section ${h()??""}`),Er(q,"id",`category-${m()??""}`),He(de,1,`w-3 h-3 rounded-full ${S??""} ring-4 ring-background shrink-0`),C(I,d().title),C(Ne,d().description)},[()=>U(m())]),i($,q),qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),Ln=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),In=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),En=x('<div class="space-y-8 pt-4"></div>'),Hn=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),zn=x('<div class="space-y-3 pt-2"></div>'),Wn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),Dn=x('<div class="flex justify-end pt-2"><!></div>'),Tn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),jn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Zt($,r){if(new.target)return Ke({component:Zt,...$});Ue(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),T=k(r,"workspacePath",7),P=k(r,"changes",23,()=>[]),h=k(r,"onSendMessage",7),U=k(r,"isSending",7,!1),K=k(r,"onRegenerate",7),pe=k(r,"showCategoriesGrid",7,!0);const q=_(()=>m()==="running"),w=_(()=>m()==="complete"),z=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((Z,ie)=>Z.line-ie.line)}))}]}return[]}),ke=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((Z,ie)=>Z.line-ie.line));return v}),I=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ke).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(I).has(v.relativePath)));Xe(()=>{if(!d()||!T())return;const v=new Set([...e(I),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Jr(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const Z=Ne(R,A.oldContent,A.newContent);if(Z){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:Z,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),L(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const Z=R.split(`
@@ -1 +1 @@
1
- import{b as i,aW as l,aw as d,P as o}from"./BhSvmxU-.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,h as g,f as h};
1
+ import{b as i,aW as l,aw as d,P as o}from"./Cpw-AI-k.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,h as g,f as h};
@@ -1 +1 @@
1
- import{h7 as O,gP as J,JJ as P,Kx as U,Dv as j,u4 as q,v1 as K,A_ as N,A$ as V,JH as z,JI as Q,B0 as X}from"./tr-2J8Mf.js";import{selectWorkspaceTabOrder as f,selectCurrentWorkspaceTabId as S,selectLastClosedWorkspaceTab as Y}from"./S845NCb3.js";import{i as Z,q as M,b as ee,j as te,l as ae}from"./EK6zOAHM.js";import{g as ne}from"./KEaRLIGy.js";import{bm as l}from"./C0QTy0Sy.js";import{z as oe,S as y}from"./DCRuihKm.js";import{B as h,S as C,Q as ce}from"./Bqd7fdCF.js";import{al as le,aj as E}from"./CG-tM1HG.js";import{g as se}from"./hHMYoFyG.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(q(o,p,a==="left"?"before":"after")),o)}function B(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=B(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function ie(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function I(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return D(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?z():Q());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function re(e,a,n){const o=I(e,a);return o?ie(e,o,a,n):null}function pe(e,a,n){const o=I(e,a);if(!o)return null;const c=Z.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,g=M.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!g)return null;const T=n??se(o)?.availableCanvasWidth??void 0;return e.dispatch(J(o,void 0,T)),s?.id??c.id}function ue(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:ee.select(e.state,a).length===0}function de(e,a,n){B(e.state)||e.dispatch(P(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function be(e,a,n){const o=I(e,a);return o?pe(e,a,n.availableCanvasWidth)!==null?"panel":ue(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(de(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function fe(e,a,n){return e.dispatch(X()),m(e,a,n)}function ke(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=Y.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(N(c)),"column"):(e.dispatch(V(c)),p.kind):s?(fe(e,a,n),"workspace"):null}function _e(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=K(o);return e.dispatch(c),te.select(e.state,o)}function D(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(P(s)),m(e,n,o))}function We({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:g,onCreateNote:T,onCreateTerminal:v,onCreateBrowser:$,onWorkspaceTabMoved:W,closeWindow:F,resolveBinding:w}){const r=e?{meta:!0}:{ctrl:!0},G=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),H=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>w?{binding:()=>w(t)}:{},_=t=>w?.(t)??ce(t);a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...G,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(U())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>_e(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),g],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),T],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),$]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:H(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>be(n,t,{navigate:c,closeWindow:F}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>re(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>ke(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!w||!h(b,d,w,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):D(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>_("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,_,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??le.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(j(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>C["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&_("navigation.go-to-tab")===C["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,_,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>_("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,_,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{be as c,We as r};
1
+ import{h7 as O,gP as J,JJ as P,Kx as U,Dv as j,u4 as q,v1 as K,A_ as N,A$ as V,JH as z,JI as Q,B0 as X}from"./_LtUY0jS.js";import{selectWorkspaceTabOrder as f,selectCurrentWorkspaceTabId as S,selectLastClosedWorkspaceTab as Y}from"./VxaCN40t.js";import{i as Z,q as M,b as ee,j as te,l as ae}from"./BsOWc0fD.js";import{g as ne}from"./BhcBqtJg.js";import{bm as l}from"./C0QTy0Sy.js";import{z as oe,S as y}from"./C2jYl_tm.js";import{B as h,S as C,Q as ce}from"./Bqd7fdCF.js";import{al as le,aj as E}from"./DLS35Cs2.js";import{g as se}from"./wjh5cuBI.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(q(o,p,a==="left"?"before":"after")),o)}function B(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=B(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function ie(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function I(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return D(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?z():Q());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function re(e,a,n){const o=I(e,a);return o?ie(e,o,a,n):null}function pe(e,a,n){const o=I(e,a);if(!o)return null;const c=Z.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,g=M.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!g)return null;const T=n??se(o)?.availableCanvasWidth??void 0;return e.dispatch(J(o,void 0,T)),s?.id??c.id}function ue(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:ee.select(e.state,a).length===0}function de(e,a,n){B(e.state)||e.dispatch(P(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function be(e,a,n){const o=I(e,a);return o?pe(e,a,n.availableCanvasWidth)!==null?"panel":ue(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(de(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function fe(e,a,n){return e.dispatch(X()),m(e,a,n)}function ke(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=Y.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(N(c)),"column"):(e.dispatch(V(c)),p.kind):s?(fe(e,a,n),"workspace"):null}function _e(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=K(o);return e.dispatch(c),te.select(e.state,o)}function D(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(P(s)),m(e,n,o))}function We({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:g,onCreateNote:T,onCreateTerminal:v,onCreateBrowser:$,onWorkspaceTabMoved:W,closeWindow:F,resolveBinding:w}){const r=e?{meta:!0}:{ctrl:!0},G=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),H=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>w?{binding:()=>w(t)}:{},_=t=>w?.(t)??ce(t);a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...G,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(U())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>_e(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),g],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),T],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),$]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:H(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>be(n,t,{navigate:c,closeWindow:F}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>re(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>ke(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&W?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!w||!h(b,d,w,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):D(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>_("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,_,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??le.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(j(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>C["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&_("navigation.go-to-tab")===C["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,_,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>_("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,_,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{be as c,We as r};
@@ -1 +1 @@
1
- import{g as o,r as l,d as t}from"./5c25JTI1.js";import{p as m}from"./ZxEOlEA2.js";import{b as n,ay as s}from"./BhSvmxU-.js";import{M as p,d as u}from"./BFeEPayU.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
1
+ import{g as o,r as l,d as t}from"./DCzWLn9w.js";import{p as m}from"./C1IZMhCT.js";import{b as n,ay as s}from"./Cpw-AI-k.js";import{M as p,d as u}from"./BFeEPayU.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
@@ -1 +1 @@
1
- import{t as le,bo as s,bw as ie,b as ce,bp as de}from"./C0QTy0Sy.js";import{bs as ve,a7 as X,ay as V,aD as r,W as c,bn as fe,bV as me,aA as o,bS as A,a5 as q,bf as ue,bA as F,b_ as ge,c9 as _,aB as p,bH as be}from"./3SdAC2_C.js";import{i as h}from"./bhKPSdq4.js";import{t as G}from"./CrD0jtXE.js";import{e as _e}from"./BFEzojY2.js";import{b as he,e as J,c as pe,f as ye,g as ze}from"./7UPrdiE9.js";import{n as xe,c as ke}from"./DLwWVKiF.js";import{b as Re}from"./Dn334wJv.js";import{a_ as Se,f as Be}from"./FzlZUztb.js";import{m as Ie,X as Le,l as we}from"./DCRuihKm.js";var Ce=new Set(["$$slots","$$events","$$legacy","ref","href","class","variant","color","size","style","dot","leadingIcon","removable","removeLabel","onRemove","children"]),Pe=p('<span data-slot="badge-dot"></span>'),Ve=p('<span data-slot="badge-icon" class="inline-flex shrink-0"><!></span>'),Ae=p('<span aria-hidden="true">×</span>'),De=p('<!> <!> <span class="[text-box:trim-both_cap_alphabetic]"><!></span> <!>',1);function je(D,a){if(new.target)return le({component:je,...D});ve(a,!0);let v=s(a,"ref",15,null),f=s(a,"href",7),y=s(a,"class",7),z=s(a,"variant",7,"solid"),x=s(a,"color",7),i=s(a,"size",7),k=s(a,"style",7),R=s(a,"dot",7,!1),m=s(a,"leadingIcon",7),u=s(a,"removable",7,!1),S=s(a,"removeLabel",7),B=s(a,"onRemove",7),I=s(a,"children",7),K=de(a,Ce);const M=Se(),l=_(()=>Le(z(),x())),L=_(()=>i()==="sm"?"compact":i()==="md"||i()==="lg"?"default":i()??M),j=_(()=>we[r(l).color]),Q=_(()=>r(l).variant==="solid"?`background-color: ${r(l).color==="gray"?"hsl(var(--accent))":`color-mix(in srgb, ${r(j)} 15%, hsl(var(--background)))`};`:"");let E=me(!0),g=null;function T(e){e.preventDefault(),e.stopPropagation(),g=e,be(E,!1)}function U(){g&&(B()?.(g),g=null)}var Y={get ref(){return v()},set ref(e=null){v(e),o()},get href(){return f()},set href(e){f(e),o()},get class(){return y()},set class(e){y(e),o()},get variant(){return z()},set variant(e="solid"){z(e),o()},get color(){return x()},set color(e){x(e),o()},get size(){return i()},set size(e){i(e),o()},get style(){return k()},set style(e){k(e),o()},get dot(){return R()},set dot(e=!1){R(e),o()},get leadingIcon(){return m()},set leadingIcon(e){m(e),o()},get removable(){return u()},set removable(e=!1){u(e),o()},get removeLabel(){return S()},set removeLabel(e){S(e),o()},get onRemove(){return B()},set onRemove(e){B(e),o()},get children(){return I()},set children(e){I(e),o()},$set:ie,$on:(e,b)=>ce(a,e,b)},H=X(),Z=V(H);{var $=e=>{var b=X(),ee=V(b);_e(ee,()=>f()?"a":"span",!1,(w,ae)=>{Re(w,t=>v(t),()=>v()),he(w,t=>({"data-slot":"badge","data-removable":u()||void 0,href:f(),class:t,style:`${r(Q)}${k()??""}`,"data-variant":r(l).variant,"data-color":r(l).color,"data-size":r(L),onoutroend:U,...K}),[()=>J(Ie({variant:r(l).variant,size:r(L)}),y())]),xe(2,w,()=>ke,()=>({tier:"fast"}));var N=De(),O=V(N);{var te=t=>{var n=Pe();let d;ge(P=>{ye(n,1,P),d=ze(n,"",d,{"background-color":r(l).color==="gray"?"hsl(var(--muted-foreground))":r(j)})},[()=>pe(J("shrink-0 rounded-full",r(L)==="compact"?"size-1.5":"size-[7px]"))]),c(t,n)};h(O,t=>{(R()||r(l).variant==="dot")&&t(te)})}var W=A(O,2);{var re=t=>{var n=Ve(),d=q(n);G(d,m),F(n),c(t,n)};h(W,t=>{m()&&t(re)})}var C=A(W,2),se=q(C);G(se,()=>I()??ue),F(C);var oe=A(C,2);{var ne=t=>{Be(t,{variant:"ghost",size:"icon-compact","data-slot":"badge-remove",get"aria-label"(){return S()},class:"-mr-1 inline-flex size-4 items-center justify-center rounded-full bg-transparent text-current transition-colors duration-spring-fast ease-spring-fast hover:bg-hover active:bg-active motion-reduce:transition-none",onclick:T,children:(n,d)=>{var P=Ae();c(n,P)},$$slots:{default:!0}})};h(oe,t=>{u()&&t(ne)})}c(ae,N)}),c(e,b)};h(Z,e=>{r(E)&&e($)})}return c(D,H),fe(Y)}export{je as B};
1
+ import{t as le,bo as s,bw as ie,b as ce,bp as de}from"./C0QTy0Sy.js";import{bs as ve,a7 as X,ay as V,aD as r,W as c,bn as fe,bV as me,aA as o,bS as A,a5 as q,bf as ue,bA as F,b_ as ge,c9 as _,aB as p,bH as be}from"./3SdAC2_C.js";import{i as h}from"./bhKPSdq4.js";import{t as G}from"./CrD0jtXE.js";import{e as _e}from"./BFEzojY2.js";import{b as he,e as J,c as pe,f as ye,g as ze}from"./7UPrdiE9.js";import{n as xe,c as ke}from"./DLwWVKiF.js";import{b as Re}from"./Dn334wJv.js";import{a_ as Se,f as Be}from"./CttA-M7l.js";import{m as Ie,X as Le,l as we}from"./C2jYl_tm.js";var Ce=new Set(["$$slots","$$events","$$legacy","ref","href","class","variant","color","size","style","dot","leadingIcon","removable","removeLabel","onRemove","children"]),Pe=p('<span data-slot="badge-dot"></span>'),Ve=p('<span data-slot="badge-icon" class="inline-flex shrink-0"><!></span>'),Ae=p('<span aria-hidden="true">×</span>'),De=p('<!> <!> <span class="[text-box:trim-both_cap_alphabetic]"><!></span> <!>',1);function je(D,a){if(new.target)return le({component:je,...D});ve(a,!0);let v=s(a,"ref",15,null),f=s(a,"href",7),y=s(a,"class",7),z=s(a,"variant",7,"solid"),x=s(a,"color",7),i=s(a,"size",7),k=s(a,"style",7),R=s(a,"dot",7,!1),m=s(a,"leadingIcon",7),u=s(a,"removable",7,!1),S=s(a,"removeLabel",7),B=s(a,"onRemove",7),I=s(a,"children",7),K=de(a,Ce);const M=Se(),l=_(()=>Le(z(),x())),L=_(()=>i()==="sm"?"compact":i()==="md"||i()==="lg"?"default":i()??M),j=_(()=>we[r(l).color]),Q=_(()=>r(l).variant==="solid"?`background-color: ${r(l).color==="gray"?"hsl(var(--accent))":`color-mix(in srgb, ${r(j)} 15%, hsl(var(--background)))`};`:"");let E=me(!0),g=null;function T(e){e.preventDefault(),e.stopPropagation(),g=e,be(E,!1)}function U(){g&&(B()?.(g),g=null)}var Y={get ref(){return v()},set ref(e=null){v(e),o()},get href(){return f()},set href(e){f(e),o()},get class(){return y()},set class(e){y(e),o()},get variant(){return z()},set variant(e="solid"){z(e),o()},get color(){return x()},set color(e){x(e),o()},get size(){return i()},set size(e){i(e),o()},get style(){return k()},set style(e){k(e),o()},get dot(){return R()},set dot(e=!1){R(e),o()},get leadingIcon(){return m()},set leadingIcon(e){m(e),o()},get removable(){return u()},set removable(e=!1){u(e),o()},get removeLabel(){return S()},set removeLabel(e){S(e),o()},get onRemove(){return B()},set onRemove(e){B(e),o()},get children(){return I()},set children(e){I(e),o()},$set:ie,$on:(e,b)=>ce(a,e,b)},H=X(),Z=V(H);{var $=e=>{var b=X(),ee=V(b);_e(ee,()=>f()?"a":"span",!1,(w,ae)=>{Re(w,t=>v(t),()=>v()),he(w,t=>({"data-slot":"badge","data-removable":u()||void 0,href:f(),class:t,style:`${r(Q)}${k()??""}`,"data-variant":r(l).variant,"data-color":r(l).color,"data-size":r(L),onoutroend:U,...K}),[()=>J(Ie({variant:r(l).variant,size:r(L)}),y())]),xe(2,w,()=>ke,()=>({tier:"fast"}));var N=De(),O=V(N);{var te=t=>{var n=Pe();let d;ge(P=>{ye(n,1,P),d=ze(n,"",d,{"background-color":r(l).color==="gray"?"hsl(var(--muted-foreground))":r(j)})},[()=>pe(J("shrink-0 rounded-full",r(L)==="compact"?"size-1.5":"size-[7px]"))]),c(t,n)};h(O,t=>{(R()||r(l).variant==="dot")&&t(te)})}var W=A(O,2);{var re=t=>{var n=Ve(),d=q(n);G(d,m),F(n),c(t,n)};h(W,t=>{m()&&t(re)})}var C=A(W,2),se=q(C);G(se,()=>I()??ue),F(C);var oe=A(C,2);{var ne=t=>{Be(t,{variant:"ghost",size:"icon-compact","data-slot":"badge-remove",get"aria-label"(){return S()},class:"-mr-1 inline-flex size-4 items-center justify-center rounded-full bg-transparent text-current transition-colors duration-spring-fast ease-spring-fast hover:bg-hover active:bg-active motion-reduce:transition-none",onclick:T,children:(n,d)=>{var P=Ae();c(n,P)},$$slots:{default:!0}})};h(oe,t=>{u()&&t(ne)})}c(ae,N)}),c(e,b)};h(Z,e=>{r(E)&&e($)})}return c(D,H),fe(Y)}export{je as B};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/u8znU8zy.js","/app/immutable/chunks/BhSvmxU-.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BqRWw-wJ.js","/app/immutable/chunks/BaujsV9k.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DCRuihKm.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/L_tYoUCb.js","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/cfdblcWY.js","/app/immutable/chunks/BmTMWrby.js","/app/immutable/chunks/FzlZUztb.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/-K3ARgq0.js","/app/immutable/chunks/B4SiDSWP.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/DLwWVKiF.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/C9dAybnM.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DKHY8q_S.js","/app/immutable/chunks/S845NCb3.js","/app/immutable/chunks/DwL1A1su.js","/app/immutable/chunks/EK6zOAHM.js","/app/immutable/chunks/DCK8dPAL.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/C6mS8uZB.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/chunks/CJtViYfh.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/fiz8N_zQ.js","/app/immutable/chunks/CAvYeStH.js","/app/immutable/chunks/BAKPnd3w.js","/app/immutable/chunks/A9niI_uA.js","/app/immutable/chunks/Co4vj0dC.js","/app/immutable/chunks/QeBH-DWE.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/lJeex2Gh.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/CJ4Z96pe.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/c5QZsH9t.js","/app/immutable/chunks/Bsh6nUhU.js","/app/immutable/chunks/CDjpuJh0.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CHLX1QZz.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/CU5jKGma.js","/app/immutable/chunks/-Q8WHsT1.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/BFEzojY2.js","/app/immutable/chunks/Cf4fmkfL.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
2
- import{_ as Z}from"./C0QTy0Sy.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./BhSvmxU-.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./u8znU8zy.js");return{captureNodeSizes:b}},__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,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CLUxyZqF.js","/app/immutable/chunks/Cpw-AI-k.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BfSTFUKA.js","/app/immutable/chunks/Cppy6ZYG.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/_LtUY0jS.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C2jYl_tm.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/B9ZFoPLo.js","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/C91EC830.js","/app/immutable/chunks/DlUZpQ7U.js","/app/immutable/chunks/CttA-M7l.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/-K3ARgq0.js","/app/immutable/chunks/DI_O2uCQ.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/DLwWVKiF.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/Cxb8aRlA.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CTP1vzdq.js","/app/immutable/chunks/VxaCN40t.js","/app/immutable/chunks/_WGu_9si.js","/app/immutable/chunks/BsOWc0fD.js","/app/immutable/chunks/DkME16PR.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/B50rrLDJ.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/chunks/lQcc1B6x.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/DCL0Px6m.js","/app/immutable/chunks/JvS7MGpw.js","/app/immutable/chunks/B2w13ngc.js","/app/immutable/chunks/A9niI_uA.js","/app/immutable/chunks/11IPfP64.js","/app/immutable/chunks/Dhy-QJgd.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/lJeex2Gh.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/CJ4Z96pe.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/B9qXV8kb.js","/app/immutable/chunks/Bsh6nUhU.js","/app/immutable/chunks/c6a4q1y9.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/DXn0DuET.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/CU5jKGma.js","/app/immutable/chunks/C3KL0Dob.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/BFEzojY2.js","/app/immutable/chunks/Cf4fmkfL.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Z}from"./C0QTy0Sy.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./Cpw-AI-k.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./CLUxyZqF.js");return{captureNodeSizes:b}},__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,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
@@ -1 +1 @@
1
- var p=Object.defineProperty;var h=(s,e,t)=>e in s?p(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>h(s,typeof e!="symbol"?e+"":e,t);import{bm as c}from"./C0QTy0Sy.js";import{o3 as g,o1 as m,o2 as d}from"./tr-2J8Mf.js";class l{constructor(){a(this,"types",new Map);a(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const t=this.types.get(e);if(!t)return Promise.reject(new Error(`Unknown tab type: ${e}`));const o=this.componentLoads.get(e);if(o?.registration===t)return o.promise;const n={registration:t},i="component"in t&&t.component?Promise.resolve(t.component):Promise.resolve().then(()=>t.loadComponent()).then(r=>r.default);return n.promise=i.then(r=>(this.componentLoads.get(e)===n&&(n.component=r),r)).catch(r=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),r}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const t=this.types.get(e);if(!t)return;if("component"in t)return t.component;const o=this.componentLoads.get(e);return o?.registration===t?o.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??c.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??g(e)}getDefaultWidth(e,t=0){const o=this.types.get(e);return o?m(o.defaultWidthTier,t):d(e,t)}}const b=new l;export{b as t};
1
+ var p=Object.defineProperty;var h=(s,e,t)=>e in s?p(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>h(s,typeof e!="symbol"?e+"":e,t);import{bm as c}from"./C0QTy0Sy.js";import{o3 as g,o1 as m,o2 as d}from"./_LtUY0jS.js";class l{constructor(){a(this,"types",new Map);a(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const t=this.types.get(e);if(!t)return Promise.reject(new Error(`Unknown tab type: ${e}`));const o=this.componentLoads.get(e);if(o?.registration===t)return o.promise;const n={registration:t},i="component"in t&&t.component?Promise.resolve(t.component):Promise.resolve().then(()=>t.loadComponent()).then(r=>r.default);return n.promise=i.then(r=>(this.componentLoads.get(e)===n&&(n.component=r),r)).catch(r=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),r}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const t=this.types.get(e);if(!t)return;if("component"in t)return t.component;const o=this.componentLoads.get(e);return o?.registration===t?o.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??c.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??g(e)}getDefaultWidth(e,t=0){const o=this.types.get(e);return o?m(o.defaultWidthTier,t):d(e,t)}}const b=new l;export{b as t};
@@ -1,4 +1,4 @@
1
- import{g as st}from"./7dpPwFPi.js";import{g as it}from"./Do2giiGP.js";import{s as at}from"./DDfr81XI.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./BhSvmxU-.js";import{c as kt}from"./Dirmxn0x.js";import{aR as Et}from"./BqRWw-wJ.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
1
+ import{g as st}from"./CqEyPGwj.js";import{g as it}from"./CaCH7xka.js";import{s as at}from"./DGSdOlov.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./Cpw-AI-k.js";import{c as kt}from"./3FaPVDTk.js";import{aR as Et}from"./BfSTFUKA.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,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:f(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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),p.length-1&&(this.yylineno-=p.length-1);var C=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:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{bm as l}from"./C0QTy0Sy.js";import{Jv as a}from"./tr-2J8Mf.js";let D=1,d=null;const y=[],m=new Set;function K(){for(const e of m)e(d)}function v(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function N(e){y.push({...e,id:D++,returnFocus:v()}),d||(d=y.shift()??null,K())}function ee(e){return new Promise(t=>N({kind:"confirm",options:e,resolve:t}))}function te(e){return new Promise(t=>N({kind:"prompt",options:e,resolve:t}))}function ne(e){return m.add(e),e(d),()=>m.delete(e)}function re(e,t){if(!d||d.id!==e)return;const n=d;d=y.shift()??null,n.resolve(t),n.returnFocus?.focus(),K()}const se={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},oe=[{value:"assigned",get label(){return l.linearAuth_filter_assigned_label()},get description(){return l.linearAuth_filter_assigned_description()}},{value:"created",get label(){return l.linearAuth_filter_created_label()},get description(){return l.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return l.linearAuth_filter_subscribed_label()},get description(){return l.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return l.linearAuth_filter_team_label()},get description(){return l.linearAuth_filter_team_description()}},{value:"all",get label(){return l.linearAuth_filter_all_label()},get description(){return l.linearAuth_filter_all_description()}}],ie=a.createSelector(e=>e.linearAuth.operation),ae=a.createSelector((e,t)=>e.linearAuth.operation?.consumerId===t?e.linearAuth.operation:null),ue=a.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),ce=a.createSelector(e=>e.linearAuth.isAuthenticated),le=a.createSelector(e=>e.linearAuth.requiresDaemonAuth),fe=a.createSelector(e=>e.linearAuth.isAuthenticating),de=a.createSelector(e=>e.linearAuth.error),Ae=a.createSelector(e=>e.sentryAuth.operation),_e=a.createSelector((e,t)=>e.sentryAuth.operation?.consumerId===t?e.sentryAuth.operation:null),Ee=a.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),he=a.createSelector(e=>e.sentryAuth.isAuthenticated),pe=a.createSelector(e=>e.sentryAuth.organization),Se=a.createSelector(e=>e.sentryAuth.isConnecting),ge=a.createSelector(e=>e.sentryAuth.error),ye="npx not found — install Node.js (with npm) to use Claude Code",H="********",I={claude:"claude-code",codex:"codex",grok:"grok",droid:"droid",auggie:"auggie",cursor:"cursor"},h={claude:"CLAUDE_CONFIG_DIR",codex:"CODEX_HOME"},C={claude:{differentLogin:{set:["CLAUDE_CONFIG_DIR"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},apiKey:{set:["ANTHROPIC_API_KEY"],optionalSet:["ANTHROPIC_BASE_URL"],unset:["ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},token:{set:["CLAUDE_CODE_OAUTH_TOKEN"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN"]}},codex:{differentLogin:{set:["CODEX_HOME"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","CODEX_API_KEY","OPENAI_API_KEY"]},apiKey:{set:["CODEX_API_KEY"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","OPENAI_API_KEY"]},token:{set:["CODEX_ACCESS_TOKEN"],optionalSet:[],unset:["CODEX_API_KEY","OPENAI_API_KEY"]}},grok:{apiKey:{set:["XAI_API_KEY"],optionalSet:[],unset:[]}},droid:{apiKey:{set:["FACTORY_API_KEY"],optionalSet:[],unset:[]}},auggie:{token:{set:["AUGMENT_SESSION_AUTH"],optionalSet:[],unset:[]}},cursor:{apiKey:{set:["CURSOR_API_KEY"],optionalSet:[],unset:["CURSOR_AUTH_TOKEN"]}}},w=["differentLogin","apiKey","token"];function p(e,t){const n=C[e][t];if(!n)throw new Error(`${e} has no ${t} profile kind`);return n}function U(e){return w.filter(t=>C[e][t]!==void 0)}function me(e){const t=U(e);return t.length===1?t[0]:void 0}function Ie(e,t){return C[e][t]!==void 0}const O="ANTHROPIC_BASE_URL";function F(e){return I[e]}function $(e){return Object.keys(I).find(t=>I[t]===e)}function Oe(e){return e.supportsProfiles===!0&&e.id!==void 0&&$(e.id)!==void 0}function Te(e,t){return p(t,e).set[0]}function Ce(e){return h[e]!==void 0}function L(e){const t=h[e];if(!t)throw new Error(`${e} has no account folder`);return t}function x(e){return`~/intent/profiles/${e}`}const A=e=>e.toUpperCase();function ke(e,t){if(t.length===0)return"advanced";const n=new Set,s=new Set;for(const r of t){const o=A(r.key);if(n.has(o)||s.has(o))return"advanced";(r.kind==="set"?n:s).add(o)}for(const r of U(e))if(M(p(e,r),n,s))return r==="differentLogin"&&!X(e,t)?"advanced":r;return"advanced"}function M(e,t,n){const s=e.set.map(A),r=new Set([...s,...e.optionalSet.map(A)]);if(!s.every(i=>t.has(i))||![...t].every(i=>r.has(i)))return!1;const o=new Set(e.unset.map(A));return[...n].every(i=>o.has(i))}function X(e,t){if(!h[e])return!1;const n=Y(e,t);return n!==void 0&&n!==""&&n!==H}function Y(e,t){const n=h[e];if(!n)return;const s=A(n),r=t.find(o=>o.kind==="set"&&A(o.key)===s);return r?.kind==="set"?r.value:void 0}const z=32;function G(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,z).replace(/-+$/g,"")||"profile"}const S="abcdefghijklmnopqrstuvwxyz0123456789",B=4;function P(){const e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/2**32}function q(e=P){let t="";for(let n=0;n<B;n++){const s=Math.min(S.length-1,Math.floor(e()*S.length));t+=S[s]}return t}const V=64;function Ke(e,t,n,s=P){const r=new Set([...n].map(i=>i.toLowerCase())),o=G(t);for(let i=0;i<V;i++){const c=`${o}-${q(s)}`;if(!r.has(c))return`${x(e)}/${c}`}throw new Error(`No unused profile folder found for "${o}"`)}function J(e){return e.map(t=>({key:t,kind:"unset"}))}function E(e,t){const n=e?.trim()??"";if(!n)throw new Error(`Missing ${t}`);return n}function Ne(e,t,n){const s=p(t,e),r=[];if(e==="differentLogin")r.push({key:L(t),kind:"set",value:E(n.folder,"folder")});else if(e==="apiKey"){r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.apiKey,"API key"))});const o=n.baseUrl?.trim();o&&t==="claude"&&r.push({key:O,kind:"set",value:o})}else r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.token,"token"))});return{baseProviderId:F(t),name:n.name.trim(),backup:n.backup??!1,env:[...r,...J(s.unset)]}}function Ue(e,t,n,s={}){const r=p(t,e),o=(u,f)=>n.find(_=>_.kind===f&&A(_.key)===A(u))?.key,i=(u,f)=>{const _=o(u,"set");if(f!==void 0){const k=E(f,u);return{key:_??u,kind:"set",value:e==="differentLogin"?k:T(t,e,k)}}if(!_)throw new Error(`Missing ${u}`);return{key:_,kind:"keep"}},c=[];if(e==="differentLogin")c.push(i(L(t),void 0));else if(e==="apiKey"){c.push(i(r.set[0],s.apiKey));const u=t==="claude"?o(O,"set"):void 0,f=t==="claude"?s.baseUrl:void 0;typeof f=="string"&&f.trim()?c.push({key:u??O,kind:"set",value:f.trim()}):f===void 0&&u&&c.push({key:u,kind:"keep"})}else c.push(i(r.set[0],s.token));for(const u of r.unset)c.push({key:o(u,"unset")??u,kind:"unset"});return c}const g="[A-Za-z0-9_-]+",R=new RegExp(`^${g}\\.${g}\\.${g}$`);function Le(e){return R.test(e.trim())}function Z(e){let t;try{t=JSON.parse(b(e))}catch{return!1}if(typeof t!="object"||t===null||Array.isArray(t))return!1;const n=t;return typeof n.accessToken=="string"&&n.accessToken.trim()!==""&&typeof n.tenantURL=="string"&&/^https:\/\/\S+$/.test(n.tenantURL)&&Array.isArray(n.scopes)}function b(e){const t=e.trim(),n=t.split(/\r?\n/).find(o=>o.trim().startsWith("SESSION="));if(n)return n.trim().slice(8).trim();const s=t.indexOf("{"),r=t.lastIndexOf("}");return s>=0&&r>s?t.slice(s,r+1):t}function T(e,t,n){return e==="auggie"&&t==="token"?b(n):n.trim()}const j={claude:{apiKey:/^sk-ant-api\d*-[A-Za-z0-9_-]{16,}$/,token:/^sk-ant-oat\d*-[A-Za-z0-9_-]{16,}$/},codex:{apiKey:/^sk-(?!ant-)[A-Za-z0-9_-]{20,}$/,token:R},grok:{apiKey:/^xai-[A-Za-z0-9]{20,}$/},droid:{apiKey:/^fk-[A-Za-z0-9_-]{20,}$/},auggie:{token:Z},cursor:{apiKey:/^\S{32,}$/}};function Pe(e,t,n,s={}){const r=n.trim();if(e==="claude"&&t==="apiKey"&&s.customEndpoint)return/^\S+$/.test(r);const o=j[e][t];return o?typeof o=="function"?o(r):o.test(r):!1}function Re(e){if(e==="claude")return"claude auth login";if(e==="codex")return"codex login --device-auth";throw new Error(`${e} has no Different login sign-in`)}export{ue as A,le as B,ye as C,_e as D,Ae as E,ge as F,he as G,Se as H,Ee as I,pe as J,re as K,se as L,H as M,me as N,G as O,ne as P,oe as a,F as b,Ne as c,Ue as d,ee as e,ke as f,L as g,Ce as h,Ie as i,Oe as j,Le as k,Pe as l,Re as m,x as n,U as o,Ke as p,$ as q,te as r,q as s,Y as t,Te as u,ae as v,ie as w,de as x,ce as y,fe as z};
1
+ import{bm as l}from"./C0QTy0Sy.js";import{Jv as a}from"./_LtUY0jS.js";let D=1,d=null;const y=[],m=new Set;function K(){for(const e of m)e(d)}function v(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function N(e){y.push({...e,id:D++,returnFocus:v()}),d||(d=y.shift()??null,K())}function ee(e){return new Promise(t=>N({kind:"confirm",options:e,resolve:t}))}function te(e){return new Promise(t=>N({kind:"prompt",options:e,resolve:t}))}function ne(e){return m.add(e),e(d),()=>m.delete(e)}function re(e,t){if(!d||d.id!==e)return;const n=d;d=y.shift()??null,n.resolve(t),n.returnFocus?.focus(),K()}const se={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},oe=[{value:"assigned",get label(){return l.linearAuth_filter_assigned_label()},get description(){return l.linearAuth_filter_assigned_description()}},{value:"created",get label(){return l.linearAuth_filter_created_label()},get description(){return l.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return l.linearAuth_filter_subscribed_label()},get description(){return l.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return l.linearAuth_filter_team_label()},get description(){return l.linearAuth_filter_team_description()}},{value:"all",get label(){return l.linearAuth_filter_all_label()},get description(){return l.linearAuth_filter_all_description()}}],ie=a.createSelector(e=>e.linearAuth.operation),ae=a.createSelector((e,t)=>e.linearAuth.operation?.consumerId===t?e.linearAuth.operation:null),ue=a.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),ce=a.createSelector(e=>e.linearAuth.isAuthenticated),le=a.createSelector(e=>e.linearAuth.requiresDaemonAuth),fe=a.createSelector(e=>e.linearAuth.isAuthenticating),de=a.createSelector(e=>e.linearAuth.error),Ae=a.createSelector(e=>e.sentryAuth.operation),_e=a.createSelector((e,t)=>e.sentryAuth.operation?.consumerId===t?e.sentryAuth.operation:null),Ee=a.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),he=a.createSelector(e=>e.sentryAuth.isAuthenticated),pe=a.createSelector(e=>e.sentryAuth.organization),Se=a.createSelector(e=>e.sentryAuth.isConnecting),ge=a.createSelector(e=>e.sentryAuth.error),ye="npx not found — install Node.js (with npm) to use Claude Code",H="********",I={claude:"claude-code",codex:"codex",grok:"grok",droid:"droid",auggie:"auggie",cursor:"cursor"},h={claude:"CLAUDE_CONFIG_DIR",codex:"CODEX_HOME"},C={claude:{differentLogin:{set:["CLAUDE_CONFIG_DIR"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},apiKey:{set:["ANTHROPIC_API_KEY"],optionalSet:["ANTHROPIC_BASE_URL"],unset:["ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},token:{set:["CLAUDE_CODE_OAUTH_TOKEN"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN"]}},codex:{differentLogin:{set:["CODEX_HOME"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","CODEX_API_KEY","OPENAI_API_KEY"]},apiKey:{set:["CODEX_API_KEY"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","OPENAI_API_KEY"]},token:{set:["CODEX_ACCESS_TOKEN"],optionalSet:[],unset:["CODEX_API_KEY","OPENAI_API_KEY"]}},grok:{apiKey:{set:["XAI_API_KEY"],optionalSet:[],unset:[]}},droid:{apiKey:{set:["FACTORY_API_KEY"],optionalSet:[],unset:[]}},auggie:{token:{set:["AUGMENT_SESSION_AUTH"],optionalSet:[],unset:[]}},cursor:{apiKey:{set:["CURSOR_API_KEY"],optionalSet:[],unset:["CURSOR_AUTH_TOKEN"]}}},w=["differentLogin","apiKey","token"];function p(e,t){const n=C[e][t];if(!n)throw new Error(`${e} has no ${t} profile kind`);return n}function U(e){return w.filter(t=>C[e][t]!==void 0)}function me(e){const t=U(e);return t.length===1?t[0]:void 0}function Ie(e,t){return C[e][t]!==void 0}const O="ANTHROPIC_BASE_URL";function F(e){return I[e]}function $(e){return Object.keys(I).find(t=>I[t]===e)}function Oe(e){return e.supportsProfiles===!0&&e.id!==void 0&&$(e.id)!==void 0}function Te(e,t){return p(t,e).set[0]}function Ce(e){return h[e]!==void 0}function L(e){const t=h[e];if(!t)throw new Error(`${e} has no account folder`);return t}function x(e){return`~/intent/profiles/${e}`}const A=e=>e.toUpperCase();function ke(e,t){if(t.length===0)return"advanced";const n=new Set,s=new Set;for(const r of t){const o=A(r.key);if(n.has(o)||s.has(o))return"advanced";(r.kind==="set"?n:s).add(o)}for(const r of U(e))if(M(p(e,r),n,s))return r==="differentLogin"&&!X(e,t)?"advanced":r;return"advanced"}function M(e,t,n){const s=e.set.map(A),r=new Set([...s,...e.optionalSet.map(A)]);if(!s.every(i=>t.has(i))||![...t].every(i=>r.has(i)))return!1;const o=new Set(e.unset.map(A));return[...n].every(i=>o.has(i))}function X(e,t){if(!h[e])return!1;const n=Y(e,t);return n!==void 0&&n!==""&&n!==H}function Y(e,t){const n=h[e];if(!n)return;const s=A(n),r=t.find(o=>o.kind==="set"&&A(o.key)===s);return r?.kind==="set"?r.value:void 0}const z=32;function G(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,z).replace(/-+$/g,"")||"profile"}const S="abcdefghijklmnopqrstuvwxyz0123456789",B=4;function P(){const e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/2**32}function q(e=P){let t="";for(let n=0;n<B;n++){const s=Math.min(S.length-1,Math.floor(e()*S.length));t+=S[s]}return t}const V=64;function Ke(e,t,n,s=P){const r=new Set([...n].map(i=>i.toLowerCase())),o=G(t);for(let i=0;i<V;i++){const c=`${o}-${q(s)}`;if(!r.has(c))return`${x(e)}/${c}`}throw new Error(`No unused profile folder found for "${o}"`)}function J(e){return e.map(t=>({key:t,kind:"unset"}))}function E(e,t){const n=e?.trim()??"";if(!n)throw new Error(`Missing ${t}`);return n}function Ne(e,t,n){const s=p(t,e),r=[];if(e==="differentLogin")r.push({key:L(t),kind:"set",value:E(n.folder,"folder")});else if(e==="apiKey"){r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.apiKey,"API key"))});const o=n.baseUrl?.trim();o&&t==="claude"&&r.push({key:O,kind:"set",value:o})}else r.push({key:s.set[0],kind:"set",value:T(t,e,E(n.token,"token"))});return{baseProviderId:F(t),name:n.name.trim(),backup:n.backup??!1,env:[...r,...J(s.unset)]}}function Ue(e,t,n,s={}){const r=p(t,e),o=(u,f)=>n.find(_=>_.kind===f&&A(_.key)===A(u))?.key,i=(u,f)=>{const _=o(u,"set");if(f!==void 0){const k=E(f,u);return{key:_??u,kind:"set",value:e==="differentLogin"?k:T(t,e,k)}}if(!_)throw new Error(`Missing ${u}`);return{key:_,kind:"keep"}},c=[];if(e==="differentLogin")c.push(i(L(t),void 0));else if(e==="apiKey"){c.push(i(r.set[0],s.apiKey));const u=t==="claude"?o(O,"set"):void 0,f=t==="claude"?s.baseUrl:void 0;typeof f=="string"&&f.trim()?c.push({key:u??O,kind:"set",value:f.trim()}):f===void 0&&u&&c.push({key:u,kind:"keep"})}else c.push(i(r.set[0],s.token));for(const u of r.unset)c.push({key:o(u,"unset")??u,kind:"unset"});return c}const g="[A-Za-z0-9_-]+",R=new RegExp(`^${g}\\.${g}\\.${g}$`);function Le(e){return R.test(e.trim())}function Z(e){let t;try{t=JSON.parse(b(e))}catch{return!1}if(typeof t!="object"||t===null||Array.isArray(t))return!1;const n=t;return typeof n.accessToken=="string"&&n.accessToken.trim()!==""&&typeof n.tenantURL=="string"&&/^https:\/\/\S+$/.test(n.tenantURL)&&Array.isArray(n.scopes)}function b(e){const t=e.trim(),n=t.split(/\r?\n/).find(o=>o.trim().startsWith("SESSION="));if(n)return n.trim().slice(8).trim();const s=t.indexOf("{"),r=t.lastIndexOf("}");return s>=0&&r>s?t.slice(s,r+1):t}function T(e,t,n){return e==="auggie"&&t==="token"?b(n):n.trim()}const j={claude:{apiKey:/^sk-ant-api\d*-[A-Za-z0-9_-]{16,}$/,token:/^sk-ant-oat\d*-[A-Za-z0-9_-]{16,}$/},codex:{apiKey:/^sk-(?!ant-)[A-Za-z0-9_-]{20,}$/,token:R},grok:{apiKey:/^xai-[A-Za-z0-9]{20,}$/},droid:{apiKey:/^fk-[A-Za-z0-9_-]{20,}$/},auggie:{token:Z},cursor:{apiKey:/^\S{32,}$/}};function Pe(e,t,n,s={}){const r=n.trim();if(e==="claude"&&t==="apiKey"&&s.customEndpoint)return/^\S+$/.test(r);const o=j[e][t];return o?typeof o=="function"?o(r):o.test(r):!1}function Re(e){if(e==="claude")return"claude auth login";if(e==="codex")return"codex login --device-auth";throw new Error(`${e} has no Different login sign-in`)}export{ue as A,le as B,ye as C,_e as D,Ae as E,ge as F,he as G,Se as H,Ee as I,pe as J,re as K,se as L,H as M,me as N,G as O,ne as P,oe as a,F as b,Ne as c,Ue as d,ee as e,ke as f,L as g,Ce as h,Ie as i,Oe as j,Le as k,Pe as l,Re as m,x as n,U as o,Ke as p,$ as q,te as r,q as s,Y as t,Te as u,ae as v,ie as w,de as x,ce as y,fe as z};
@@ -1 +1 @@
1
- import{D as C}from"./BqRWw-wJ.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./C0QTy0Sy.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as W,b_ as R,W as E,bn as le,bV as q,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./3SdAC2_C.js";import{i as de}from"./bhKPSdq4.js";import{k as me}from"./-K3ARgq0.js";import{s as D}from"./7UPrdiE9.js";import{a as ue}from"./BhSvmxU-.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,m=t[e];if(m===void 0)return{complete:!1};if(m==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(m==="{"||m==="["){const r=m==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:u})=>u)),g=n.filter(u=>u.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:u})=>u)),_=a.filter(u=>u.group===void 0||v.has(u.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),m=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,m,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),m=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!m.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,m))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),m=q(null),r=q(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(m,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(m,null):o&&k(m,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(m):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},u=Se(),A=G(u);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);W(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);me(w,()=>b(r),S=>{ue(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return W(u),R(()=>{D(u,"aria-busy",a()),D(u,"data-diagram-streaming",a())}),E(t,u),le(_)}export{_e as S,Oe as p};
1
+ import{D as C}from"./BfSTFUKA.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./C0QTy0Sy.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as W,b_ as R,W as E,bn as le,bV as q,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./3SdAC2_C.js";import{i as de}from"./bhKPSdq4.js";import{k as me}from"./-K3ARgq0.js";import{s as D}from"./7UPrdiE9.js";import{a as ue}from"./Cpw-AI-k.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,m=t[e];if(m===void 0)return{complete:!1};if(m==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(m==="{"||m==="["){const r=m==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:u})=>u)),g=n.filter(u=>u.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:u})=>u)),_=a.filter(u=>u.group===void 0||v.has(u.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),m=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,m,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),m=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!m.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,m))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),m=q(null),r=q(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(m,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(m,null):o&&k(m,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(m):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},u=Se(),A=G(u);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);W(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);me(w,()=>b(r),S=>{ue(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return W(u),R(()=>{D(u,"aria-busy",a()),D(u,"data-diagram-streaming",a())}),E(t,u),le(_)}export{_e as S,Oe as p};
@@ -0,0 +1 @@
1
+ import{n as i}from"./Cxb8aRlA.js";import{o as n}from"./BGm3f58g.js";import{m as o,Jv as a,Eq as s,vp as r,u$ as p}from"./_LtUY0jS.js";async function h(t,e){if(!(!t||!e)){if(t===o){await i("/"),a.dispatch(s(e)),a.dispatch(r("chief"));return}await n(t)&&a.dispatch(p(t,{agentId:e}))}}export{h as n};
@@ -0,0 +1 @@
1
+ import{g as t}from"./YqTahsxp.js";import{Jv as r}from"./_LtUY0jS.js";import{aK as o}from"./CTP1vzdq.js";function l(e){return!e||t().status!=="connected"?null:o.select(r.state,e)}export{l as resolveConnectedWorkspaceKeySlot};
@@ -1,4 +1,4 @@
1
- import{I as W}from"./BYdTf9Vr.js";import{p as X}from"./ZxEOlEA2.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./BhSvmxU-.js";import{p as te}from"./BFeEPayU.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
1
+ import{I as W}from"./DsCz_Hld.js";import{p as X}from"./C1IZMhCT.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./Cpw-AI-k.js";import{p as te}from"./BFeEPayU.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
2
2
  `),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||T.test(c)||V.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=re.repeat(m);o.push(O+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new W(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:z},I=de,he=g(n=>{X(n,I);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(C,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;k(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
4
4
  `+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,n);return`
@@ -1 +1 @@
1
- import{t as Ce,bo as r,bw as we,bp as Ye,b as Se,bm as O}from"./C0QTy0Sy.js";import{bs as xe,aD as a,a5 as H,bA as N,b_ as M,W as w,bn as Be,c9 as z,bH as m,aA as s,aB as ke,bV as A,bf as Oe,bS as ge,be as ye,b$ as ve,bO as _e,ca as Ze,a7 as V,ay as T}from"./3SdAC2_C.js";import{i as he}from"./bhKPSdq4.js";import{t as R}from"./CrD0jtXE.js";import{c as Ae}from"./CUkDMZwP.js";import{a_ as $e,aa as et,f as De}from"./FzlZUztb.js";import"./DCRuihKm.js";import{O as tt}from"./CAvYeStH.js";import{a as rt,D as st}from"./Co4vj0dC.js";import{b as nt,e as Ke,s as Pe,c as at,f as ot}from"./7UPrdiE9.js";import"./lJeex2Gh.js";import{e as it}from"./QeBH-DWE.js";import{b as ut}from"./Dn334wJv.js";import{i as lt}from"./CC7to1B5.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";var ct=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),ft=ke('<form><fieldset class="contents"><!></fieldset></form>');function ze(K,t){if(new.target)return Ce({component:ze,...K});xe(t,!0);let l=r(t,"children",7),d=r(t,"onSubmit",7),b=r(t,"busy",7,!1),f=r(t,"enterKey",7,"submit"),g=r(t,"modEnter",7,"submit"),h=r(t,"class",7),L=Ye(t,ct),i,y=A(!1);const v=z(()=>b()||a(y));async function E(n){if(n.preventDefault(),!a(v)){m(y,!0);try{await d()(n)}finally{m(y,!1)}}}function S(n){if(n.key!=="Enter"||n.isComposing||n.defaultPrevented||a(v))return;const _=n.target,x=lt(_),D=_.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(D&&i.contains(D)||_ instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(_.type))return;const k=n.metaKey||n.ctrlKey;(k?g()==="submit":!x&&f()==="submit")?(n.preventDefault(),i.requestSubmit()):(!x||k)&&n.preventDefault()}var p={get children(){return l()},set children(n){l(n),s()},get onSubmit(){return d()},set onSubmit(n){d(n),s()},get busy(){return b()},set busy(n=!1){b(n),s()},get enterKey(){return f()},set enterKey(n="submit"){f(n),s()},get modEnter(){return g()},set modEnter(n="submit"){g(n),s()},get class(){return h()},set class(n){h(n),s()},$set:we,$on:(n,_)=>Se(t,n,_)},u=ft();nt(u,n=>({"data-slot":"form","aria-busy":a(v)||void 0,class:n,onsubmit:E,onkeydown:S,...L}),[()=>Ke("grid gap-4",h())]);var C=H(u),o=H(C);return R(o,l),N(C),N(u),ut(u,n=>i=n,()=>i),M(()=>{C.disabled=a(v),Pe(C,"aria-busy",a(v)||void 0)}),w(K,u),Be(p)}var mt=ke('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Ve(K,t){if(new.target)return Ce({component:Ve,...K});xe(t,!0);let l=r(t,"destructive",7),d=r(t,"secondary",7),b=r(t,"primary",7),f=r(t,"hint",7),g=r(t,"class",7);const h=$e();var L={get destructive(){return l()},set destructive(o){l(o),s()},get secondary(){return d()},set secondary(o){d(o),s()},get primary(){return b()},set primary(o){b(o),s()},get hint(){return f()},set hint(o){f(o),s()},get class(){return g()},set class(o){g(o),s()},$set:we,$on:(o,n)=>Se(t,o,n)},i=mt(),y=H(i),v=H(y);R(v,()=>l()??Oe),N(y);var E=ge(y,2),S=H(E);{var p=o=>{et(o,{children:(n,_)=>{ye();var x=ve();M(()=>_e(x,f())),w(n,x)},$$slots:{default:!0}})};he(S,o=>{f()&&o(p)})}var u=ge(S,2);R(u,()=>d()??Oe);var C=ge(u,2);return R(C,b),N(E),N(i),M(o=>{Pe(i,"data-size",h),ot(i,1,o)},[()=>at(Ke("flex items-center justify-between",h==="compact"?"gap-2":"gap-3",g()))]),w(K,i),Be(L)}function dt(K,t){if(new.target)return Ce({component:dt,...K});xe(t,!0);let l=r(t,"open",15,!1),d=r(t,"static",7,!1),b=r(t,"title",7),f=r(t,"description",7),g=r(t,"titleId",7),h=r(t,"descriptionId",7),L=r(t,"children",7),i=r(t,"footer",7),y=r(t,"submitLabel",23,()=>O.modals_bulkActionConfirm_confirm_label()),v=r(t,"cancelLabel",23,()=>O.modals_bulkActionConfirm_cancel_label()),E=r(t,"submitVariant",7,"primary"),S=r(t,"canSubmit",7,!0),p=r(t,"busy",7,!1),u=r(t,"submitBusy",7,!1),C=r(t,"role",7,"dialog"),o=r(t,"dismissOnInteractOutside",7,!0),n=r(t,"showCancel",7,!0),_=r(t,"showCloseButton",7,!0),x=r(t,"closeLabel",23,()=>O.ui_dialog_close_ariaLabel()),D=r(t,"class",7),k=r(t,"size",7,"default"),j=r(t,"initialFocus",7),X=r(t,"focusContent",7,!1),q=r(t,"focusSubmit",7,!1),Y=r(t,"focusCancel",7,!1),W=r(t,"escapeKeydownBehavior",7,"close"),Z=r(t,"enterKey",7,"submit"),$=r(t,"modEnter",7,"submit"),ee=r(t,"onfocusin",7),te=r(t,"onCloseAutoFocus",7),re=r(t,"onSubmit",7),se=r(t,"onCancel",7),ne=A(!1),G=A(""),ae=A(!1),J=A(null),oe=A(null),ie=A(null);const B=z(()=>p()||a(ne));Ze(()=>{l()&&(m(ae,!1),m(G,""))});function ue(){a(B)||a(ae)||(m(ae,!0),l(!1),se()?.())}async function Te(){if(!(a(B)||u()||!S())){m(ne,!0),m(G,"");try{await re()()}catch{m(G,O.ui_dialog_submitFailed_error(),!0)}finally{m(ne,!1)}}}function He(e){const F=j()??(Y()?a(oe):q()?a(ie):X()?a(J):null);F&&(F.focus(),F.ownerDocument.activeElement===F&&e.preventDefault())}var Ne={get open(){return l()},set open(e=!1){l(e),s()},get static(){return d()},set static(e=!1){d(e),s()},get title(){return b()},set title(e){b(e),s()},get description(){return f()},set description(e){f(e),s()},get titleId(){return g()},set titleId(e){g(e),s()},get descriptionId(){return h()},set descriptionId(e){h(e),s()},get children(){return L()},set children(e){L(e),s()},get footer(){return i()},set footer(e){i(e),s()},get submitLabel(){return y()},set submitLabel(e=O.modals_bulkActionConfirm_confirm_label()){y(e),s()},get cancelLabel(){return v()},set cancelLabel(e=O.modals_bulkActionConfirm_cancel_label()){v(e),s()},get submitVariant(){return E()},set submitVariant(e="primary"){E(e),s()},get canSubmit(){return S()},set canSubmit(e=!0){S(e),s()},get busy(){return p()},set busy(e=!1){p(e),s()},get submitBusy(){return u()},set submitBusy(e=!1){u(e),s()},get role(){return C()},set role(e="dialog"){C(e),s()},get dismissOnInteractOutside(){return o()},set dismissOnInteractOutside(e=!0){o(e),s()},get showCancel(){return n()},set showCancel(e=!0){n(e),s()},get showCloseButton(){return _()},set showCloseButton(e=!0){_(e),s()},get closeLabel(){return x()},set closeLabel(e=O.ui_dialog_close_ariaLabel()){x(e),s()},get class(){return D()},set class(e){D(e),s()},get size(){return k()},set size(e="default"){k(e),s()},get initialFocus(){return j()},set initialFocus(e){j(e),s()},get focusContent(){return X()},set focusContent(e=!1){X(e),s()},get focusSubmit(){return q()},set focusSubmit(e=!1){q(e),s()},get focusCancel(){return Y()},set focusCancel(e=!1){Y(e),s()},get escapeKeydownBehavior(){return W()},set escapeKeydownBehavior(e="close"){W(e),s()},get enterKey(){return Z()},set enterKey(e="submit"){Z(e),s()},get modEnter(){return $()},set modEnter(e="submit"){$(e),s()},get onfocusin(){return ee()},set onfocusin(e){ee(e),s()},get onCloseAutoFocus(){return te()},set onCloseAutoFocus(e){te(e),s()},get onSubmit(){return re()},set onSubmit(e){re(e),s()},get onCancel(){return se()},set onCancel(e){se(e),s()},$set:we,$on:(e,F)=>Se(t,e,F)},Ee=V(),Re=T(Ee);return Ae(Re,()=>tt,(e,F)=>{F(e,{get open(){return l()},get staticPosition(){return d()},onOpenChange:le=>!le&&ue(),children:(le,bt)=>{var Fe=V(),Me=T(Fe);{let je=z(()=>Ke("flex min-h-0 flex-col overflow-hidden p-0",D()));Ae(Me,()=>rt,(qe,We)=>{We(qe,{get role(){return C()},get size(){return k()},get class(){return a(je)},get closeDisabled(){return a(B)},get showCloseButton(){return _()},get closeLabel(){return x()},get escapeKeydownBehavior(){return W()},onOpenAutoFocus:He,get onCloseAutoFocus(){return te()},get onfocusin(){return ee()},onkeydown:c=>{c.key==="Escape"&&it(a(J),c)||c.key==="Escape"&&W()==="close"&&(c.preventDefault(),c.stopPropagation(),ue())},onInteractOutside:c=>(a(B)||!o())&&c.preventDefault(),onEscapeKeydown:c=>a(B)&&c.preventDefault(),get ref(){return a(J)},set ref(c){m(J,c,!0)},children:(c,gt)=>{ze(c,{onSubmit:Te,get busy(){return a(B)},get enterKey(){return Z()},get modEnter(){return $()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Ge,yt)=>{st(Ge,{get title(){return b()},get description(){return f()},get titleId(){return g()},get descriptionId(){return h()},get children(){return L()},get error(){return a(G)},footer:Je=>{var Le=V(),Qe=T(Le);{var Ue=P=>{var ce=V(),pe=T(ce);R(pe,i),w(P,ce)},Xe=P=>{Ve(P,{secondary:fe=>{var Q=V(),me=T(Q);{var de=I=>{De(I,{variant:"ghost-light",get disabled(){return a(B)},onclick:ue,get ref(){return a(oe)},set ref(U){m(oe,U,!0)},children:(U,be)=>{ye();var Ie=ve();M(()=>_e(Ie,v())),w(U,Ie)},$$slots:{default:!0}})};he(me,I=>{n()&&I(de)})}w(fe,Q)},primary:fe=>{{let Q=z(()=>q()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),me=z(()=>a(B)||u()),de=z(()=>!S()||a(B)||u());De(fe,{type:"submit",get variant(){return E()},get class(){return a(Q)},get loading(){return a(me)},get disabled(){return a(de)},get ref(){return a(ie)},set ref(I){m(ie,I,!0)},children:(I,U)=>{ye();var be=ve();M(()=>_e(be,y())),w(I,be)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};he(Qe,P=>{i()?P(Ue):P(Xe,-1)})}w(Je,Le)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}w(le,Fe)},$$slots:{default:!0}})}),w(K,Ee),Be(Ne)}export{ze as F,Ve as a,dt as b};
1
+ import{t as Ce,bo as r,bw as we,bp as Ye,b as Se,bm as O}from"./C0QTy0Sy.js";import{bs as xe,aD as a,a5 as H,bA as N,b_ as M,W as w,bn as Be,c9 as z,bH as m,aA as s,aB as ke,bV as A,bf as Oe,bS as ge,be as ye,b$ as ve,bO as _e,ca as Ze,a7 as V,ay as T}from"./3SdAC2_C.js";import{i as he}from"./bhKPSdq4.js";import{t as R}from"./CrD0jtXE.js";import{c as Ae}from"./CUkDMZwP.js";import{a_ as $e,aa as et,f as De}from"./CttA-M7l.js";import"./C2jYl_tm.js";import{O as tt}from"./JvS7MGpw.js";import{a as rt,D as st}from"./11IPfP64.js";import{b as nt,e as Ke,s as Pe,c as at,f as ot}from"./7UPrdiE9.js";import"./lJeex2Gh.js";import{e as it}from"./Dhy-QJgd.js";import{b as ut}from"./Dn334wJv.js";import{i as lt}from"./CC7to1B5.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";var ct=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),ft=ke('<form><fieldset class="contents"><!></fieldset></form>');function ze(K,t){if(new.target)return Ce({component:ze,...K});xe(t,!0);let l=r(t,"children",7),d=r(t,"onSubmit",7),b=r(t,"busy",7,!1),f=r(t,"enterKey",7,"submit"),g=r(t,"modEnter",7,"submit"),h=r(t,"class",7),L=Ye(t,ct),i,y=A(!1);const v=z(()=>b()||a(y));async function E(n){if(n.preventDefault(),!a(v)){m(y,!0);try{await d()(n)}finally{m(y,!1)}}}function S(n){if(n.key!=="Enter"||n.isComposing||n.defaultPrevented||a(v))return;const _=n.target,x=lt(_),D=_.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(D&&i.contains(D)||_ instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(_.type))return;const k=n.metaKey||n.ctrlKey;(k?g()==="submit":!x&&f()==="submit")?(n.preventDefault(),i.requestSubmit()):(!x||k)&&n.preventDefault()}var p={get children(){return l()},set children(n){l(n),s()},get onSubmit(){return d()},set onSubmit(n){d(n),s()},get busy(){return b()},set busy(n=!1){b(n),s()},get enterKey(){return f()},set enterKey(n="submit"){f(n),s()},get modEnter(){return g()},set modEnter(n="submit"){g(n),s()},get class(){return h()},set class(n){h(n),s()},$set:we,$on:(n,_)=>Se(t,n,_)},u=ft();nt(u,n=>({"data-slot":"form","aria-busy":a(v)||void 0,class:n,onsubmit:E,onkeydown:S,...L}),[()=>Ke("grid gap-4",h())]);var C=H(u),o=H(C);return R(o,l),N(C),N(u),ut(u,n=>i=n,()=>i),M(()=>{C.disabled=a(v),Pe(C,"aria-busy",a(v)||void 0)}),w(K,u),Be(p)}var mt=ke('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Ve(K,t){if(new.target)return Ce({component:Ve,...K});xe(t,!0);let l=r(t,"destructive",7),d=r(t,"secondary",7),b=r(t,"primary",7),f=r(t,"hint",7),g=r(t,"class",7);const h=$e();var L={get destructive(){return l()},set destructive(o){l(o),s()},get secondary(){return d()},set secondary(o){d(o),s()},get primary(){return b()},set primary(o){b(o),s()},get hint(){return f()},set hint(o){f(o),s()},get class(){return g()},set class(o){g(o),s()},$set:we,$on:(o,n)=>Se(t,o,n)},i=mt(),y=H(i),v=H(y);R(v,()=>l()??Oe),N(y);var E=ge(y,2),S=H(E);{var p=o=>{et(o,{children:(n,_)=>{ye();var x=ve();M(()=>_e(x,f())),w(n,x)},$$slots:{default:!0}})};he(S,o=>{f()&&o(p)})}var u=ge(S,2);R(u,()=>d()??Oe);var C=ge(u,2);return R(C,b),N(E),N(i),M(o=>{Pe(i,"data-size",h),ot(i,1,o)},[()=>at(Ke("flex items-center justify-between",h==="compact"?"gap-2":"gap-3",g()))]),w(K,i),Be(L)}function dt(K,t){if(new.target)return Ce({component:dt,...K});xe(t,!0);let l=r(t,"open",15,!1),d=r(t,"static",7,!1),b=r(t,"title",7),f=r(t,"description",7),g=r(t,"titleId",7),h=r(t,"descriptionId",7),L=r(t,"children",7),i=r(t,"footer",7),y=r(t,"submitLabel",23,()=>O.modals_bulkActionConfirm_confirm_label()),v=r(t,"cancelLabel",23,()=>O.modals_bulkActionConfirm_cancel_label()),E=r(t,"submitVariant",7,"primary"),S=r(t,"canSubmit",7,!0),p=r(t,"busy",7,!1),u=r(t,"submitBusy",7,!1),C=r(t,"role",7,"dialog"),o=r(t,"dismissOnInteractOutside",7,!0),n=r(t,"showCancel",7,!0),_=r(t,"showCloseButton",7,!0),x=r(t,"closeLabel",23,()=>O.ui_dialog_close_ariaLabel()),D=r(t,"class",7),k=r(t,"size",7,"default"),j=r(t,"initialFocus",7),X=r(t,"focusContent",7,!1),q=r(t,"focusSubmit",7,!1),Y=r(t,"focusCancel",7,!1),W=r(t,"escapeKeydownBehavior",7,"close"),Z=r(t,"enterKey",7,"submit"),$=r(t,"modEnter",7,"submit"),ee=r(t,"onfocusin",7),te=r(t,"onCloseAutoFocus",7),re=r(t,"onSubmit",7),se=r(t,"onCancel",7),ne=A(!1),G=A(""),ae=A(!1),J=A(null),oe=A(null),ie=A(null);const B=z(()=>p()||a(ne));Ze(()=>{l()&&(m(ae,!1),m(G,""))});function ue(){a(B)||a(ae)||(m(ae,!0),l(!1),se()?.())}async function Te(){if(!(a(B)||u()||!S())){m(ne,!0),m(G,"");try{await re()()}catch{m(G,O.ui_dialog_submitFailed_error(),!0)}finally{m(ne,!1)}}}function He(e){const F=j()??(Y()?a(oe):q()?a(ie):X()?a(J):null);F&&(F.focus(),F.ownerDocument.activeElement===F&&e.preventDefault())}var Ne={get open(){return l()},set open(e=!1){l(e),s()},get static(){return d()},set static(e=!1){d(e),s()},get title(){return b()},set title(e){b(e),s()},get description(){return f()},set description(e){f(e),s()},get titleId(){return g()},set titleId(e){g(e),s()},get descriptionId(){return h()},set descriptionId(e){h(e),s()},get children(){return L()},set children(e){L(e),s()},get footer(){return i()},set footer(e){i(e),s()},get submitLabel(){return y()},set submitLabel(e=O.modals_bulkActionConfirm_confirm_label()){y(e),s()},get cancelLabel(){return v()},set cancelLabel(e=O.modals_bulkActionConfirm_cancel_label()){v(e),s()},get submitVariant(){return E()},set submitVariant(e="primary"){E(e),s()},get canSubmit(){return S()},set canSubmit(e=!0){S(e),s()},get busy(){return p()},set busy(e=!1){p(e),s()},get submitBusy(){return u()},set submitBusy(e=!1){u(e),s()},get role(){return C()},set role(e="dialog"){C(e),s()},get dismissOnInteractOutside(){return o()},set dismissOnInteractOutside(e=!0){o(e),s()},get showCancel(){return n()},set showCancel(e=!0){n(e),s()},get showCloseButton(){return _()},set showCloseButton(e=!0){_(e),s()},get closeLabel(){return x()},set closeLabel(e=O.ui_dialog_close_ariaLabel()){x(e),s()},get class(){return D()},set class(e){D(e),s()},get size(){return k()},set size(e="default"){k(e),s()},get initialFocus(){return j()},set initialFocus(e){j(e),s()},get focusContent(){return X()},set focusContent(e=!1){X(e),s()},get focusSubmit(){return q()},set focusSubmit(e=!1){q(e),s()},get focusCancel(){return Y()},set focusCancel(e=!1){Y(e),s()},get escapeKeydownBehavior(){return W()},set escapeKeydownBehavior(e="close"){W(e),s()},get enterKey(){return Z()},set enterKey(e="submit"){Z(e),s()},get modEnter(){return $()},set modEnter(e="submit"){$(e),s()},get onfocusin(){return ee()},set onfocusin(e){ee(e),s()},get onCloseAutoFocus(){return te()},set onCloseAutoFocus(e){te(e),s()},get onSubmit(){return re()},set onSubmit(e){re(e),s()},get onCancel(){return se()},set onCancel(e){se(e),s()},$set:we,$on:(e,F)=>Se(t,e,F)},Ee=V(),Re=T(Ee);return Ae(Re,()=>tt,(e,F)=>{F(e,{get open(){return l()},get staticPosition(){return d()},onOpenChange:le=>!le&&ue(),children:(le,bt)=>{var Fe=V(),Me=T(Fe);{let je=z(()=>Ke("flex min-h-0 flex-col overflow-hidden p-0",D()));Ae(Me,()=>rt,(qe,We)=>{We(qe,{get role(){return C()},get size(){return k()},get class(){return a(je)},get closeDisabled(){return a(B)},get showCloseButton(){return _()},get closeLabel(){return x()},get escapeKeydownBehavior(){return W()},onOpenAutoFocus:He,get onCloseAutoFocus(){return te()},get onfocusin(){return ee()},onkeydown:c=>{c.key==="Escape"&&it(a(J),c)||c.key==="Escape"&&W()==="close"&&(c.preventDefault(),c.stopPropagation(),ue())},onInteractOutside:c=>(a(B)||!o())&&c.preventDefault(),onEscapeKeydown:c=>a(B)&&c.preventDefault(),get ref(){return a(J)},set ref(c){m(J,c,!0)},children:(c,gt)=>{ze(c,{onSubmit:Te,get busy(){return a(B)},get enterKey(){return Z()},get modEnter(){return $()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Ge,yt)=>{st(Ge,{get title(){return b()},get description(){return f()},get titleId(){return g()},get descriptionId(){return h()},get children(){return L()},get error(){return a(G)},footer:Je=>{var Le=V(),Qe=T(Le);{var Ue=P=>{var ce=V(),pe=T(ce);R(pe,i),w(P,ce)},Xe=P=>{Ve(P,{secondary:fe=>{var Q=V(),me=T(Q);{var de=I=>{De(I,{variant:"ghost-light",get disabled(){return a(B)},onclick:ue,get ref(){return a(oe)},set ref(U){m(oe,U,!0)},children:(U,be)=>{ye();var Ie=ve();M(()=>_e(Ie,v())),w(U,Ie)},$$slots:{default:!0}})};he(me,I=>{n()&&I(de)})}w(fe,Q)},primary:fe=>{{let Q=z(()=>q()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),me=z(()=>a(B)||u()),de=z(()=>!S()||a(B)||u());De(fe,{type:"submit",get variant(){return E()},get class(){return a(Q)},get loading(){return a(me)},get disabled(){return a(de)},get ref(){return a(ie)},set ref(I){m(ie,I,!0)},children:(I,U)=>{ye();var be=ve();M(()=>_e(be,y())),w(I,be)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};he(Qe,P=>{i()?P(Ue):P(Xe,-1)})}w(Je,Le)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}w(le,Fe)},$$slots:{default:!0}})}),w(K,Ee),Be(Ne)}export{ze as F,Ve as a,dt as b};