@intent-hq/web 2.284.0 → 2.285.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BLEfessf.js → -KtznSS-.js} +1 -1
  3. package/web/app/immutable/chunks/{BfCf1CX7.js → 1lVCCXL6.js} +1 -1
  4. package/web/app/immutable/chunks/{rL78ODLZ.js → 2eBUyHOS.js} +1 -1
  5. package/web/app/immutable/chunks/{D-aPtTCv.js → 6ASkEKEx.js} +1 -1
  6. package/web/app/immutable/chunks/{C6Lk-C_n.js → 70g8kmTR.js} +1 -1
  7. package/web/app/immutable/chunks/{CclADFoZ.js → 9s6R6NFl.js} +1 -1
  8. package/web/app/immutable/chunks/{BghJZEqX.js → ASxUuKIZ.js} +1 -1
  9. package/web/app/immutable/chunks/{BYvXj8cv.js → B0UymEvm.js} +1 -1
  10. package/web/app/immutable/chunks/{BoffG-0C.js → B0a31Ljt.js} +1 -1
  11. package/web/app/immutable/chunks/{gNzz3jGE.js → B4GCMjY3.js} +1 -1
  12. package/web/app/immutable/chunks/B4kKZm1B.js +1 -0
  13. package/web/app/immutable/chunks/{Dkj8SIBR.js → B91hcydD.js} +1 -1
  14. package/web/app/immutable/chunks/{Bj2uvmt-.js → B9DD1rvd.js} +1 -1
  15. package/web/app/immutable/chunks/{B1s7HAuZ.js → BA2m5W5p.js} +1 -1
  16. package/web/app/immutable/chunks/{CajYOO74.js → BB-v27nE.js} +1 -1
  17. package/web/app/immutable/chunks/{CeMTgCB3.js → BDnf9UFd.js} +1 -1
  18. package/web/app/immutable/chunks/{DyQA18KQ.js → BEu9jjb7.js} +1 -1
  19. package/web/app/immutable/chunks/{Byp8PswU.js → BFDtkLj3.js} +1 -1
  20. package/web/app/immutable/chunks/{C-AxUu93.js → BFlCxloC.js} +1 -1
  21. package/web/app/immutable/chunks/{DR4RT4VO.js → BLT4lwJH.js} +1 -1
  22. package/web/app/immutable/chunks/{CyO8AnLs.js → BMCIczJY.js} +1 -1
  23. package/web/app/immutable/chunks/{BcemBG1g.js → BMqkZHSQ.js} +4 -4
  24. package/web/app/immutable/chunks/{DcoQTetB.js → BOxsG-23.js} +1 -1
  25. package/web/app/immutable/chunks/{D2hiI0dA.js → BRaDvZhu.js} +1 -1
  26. package/web/app/immutable/chunks/{BUtQhKox.js → BRiWAWWR.js} +1 -1
  27. package/web/app/immutable/chunks/{vICHfDZm.js → BRrnGZdq.js} +1 -1
  28. package/web/app/immutable/chunks/{8n4ougjP.js → BRsvqYQJ.js} +1 -1
  29. package/web/app/immutable/chunks/{Bj6-QOR3.js → BW5WMYMF.js} +1 -1
  30. package/web/app/immutable/chunks/{DZ-8K7hK.js → BYD9CrbJ.js} +1 -1
  31. package/web/app/immutable/chunks/{CEkEURUB.js → BerKnKvV.js} +1 -1
  32. package/web/app/immutable/chunks/{J2ZKQ-lu.js → BfCM8g6D.js} +1 -1
  33. package/web/app/immutable/chunks/{BFDD1pyQ.js → Bi5G5jdW.js} +1 -1
  34. package/web/app/immutable/chunks/{BSLrzoVf.js → BijxVENA.js} +1 -1
  35. package/web/app/immutable/chunks/{JqZ92YB_.js → BioKfdhs.js} +1 -1
  36. package/web/app/immutable/chunks/{5ZpW5rVB.js → Bj2REgAl.js} +1 -1
  37. package/web/app/immutable/chunks/{5BmKVYc1.js → Bj2YjLqH.js} +4 -4
  38. package/web/app/immutable/chunks/{B8xgoeqo.js → BkTES_s_.js} +1 -1
  39. package/web/app/immutable/chunks/{oPjZ8e3L.js → BlGCnZqu.js} +1 -1
  40. package/web/app/immutable/chunks/{CBF5TBJQ.js → BoAgG62K.js} +1 -1
  41. package/web/app/immutable/chunks/{cesw6DqW.js → Bpei5bK8.js} +1 -1
  42. package/web/app/immutable/chunks/{CqyYuyXE.js → BqEq2gS8.js} +1 -1
  43. package/web/app/immutable/chunks/{Bir-_mB8.js → BrPrpju0.js} +1 -1
  44. package/web/app/immutable/chunks/{DbdgMxO8.js → Btdv9Hrh.js} +1 -1
  45. package/web/app/immutable/chunks/{C1FIrZNw.js → BuKPgt_Y.js} +1 -1
  46. package/web/app/immutable/chunks/{CLDGr3DL.js → BuRX-tbO.js} +1 -1
  47. package/web/app/immutable/chunks/{BQqtq_EY.js → Butq4Y1l.js} +4 -4
  48. package/web/app/immutable/chunks/{CoEKpjkL.js → BwcCzTcz.js} +1 -1
  49. package/web/app/immutable/chunks/{DxyRwm0L.js → C-PJ15bY.js} +1 -1
  50. package/web/app/immutable/chunks/{D0GCGQZA.js → C4eeWJf-.js} +1 -1
  51. package/web/app/immutable/chunks/{lKWYFdqV.js → C4mRaa7L.js} +1 -1
  52. package/web/app/immutable/chunks/{BOV2-YtX.js → C5vTcsb2.js} +1 -1
  53. package/web/app/immutable/chunks/{Dwola7mR.js → C64d2sYd.js} +1 -1
  54. package/web/app/immutable/chunks/{D9ZfYqMq.js → C7A26Vlu.js} +1 -1
  55. package/web/app/immutable/chunks/{kjKGIJZ6.js → C8BEXIPc.js} +1 -1
  56. package/web/app/immutable/chunks/{DWW4w6Jk.js → C8xd2WWY.js} +1 -1
  57. package/web/app/immutable/chunks/{CWMWrTe0.js → C9o24MoC.js} +1 -1
  58. package/web/app/immutable/chunks/{7IZupueL.js → CAkMXI-6.js} +3 -3
  59. package/web/app/immutable/chunks/{LoyMyTg_.js → CDnN0LSW.js} +1 -1
  60. package/web/app/immutable/chunks/{Ri_Gwy-5.js → CEQqb3fD.js} +1 -1
  61. package/web/app/immutable/chunks/{DPd_IJJ7.js → CFzJYgT5.js} +1 -1
  62. package/web/app/immutable/chunks/{DSJT83nX.js → CHXt_ftw.js} +1 -1
  63. package/web/app/immutable/chunks/{RAzXpC6i.js → CHaUiotE.js} +1 -1
  64. package/web/app/immutable/chunks/{BIkNHTNp.js → CHjSilfW.js} +1 -1
  65. package/web/app/immutable/chunks/{CLCaT9pi.js → CJQrM64N.js} +3 -3
  66. package/web/app/immutable/chunks/{U9YbfUz9.js → CMO5zsjQ.js} +1 -1
  67. package/web/app/immutable/chunks/{BCkgwkHF.js → CMt5MqSJ.js} +1 -1
  68. package/web/app/immutable/chunks/{580ALcE7.js → COL0pyet.js} +1 -1
  69. package/web/app/immutable/chunks/{D_mcoMIN.js → CQ7Jnj9E.js} +1 -1
  70. package/web/app/immutable/chunks/{DoBcYmem.js → CRhgbDg2.js} +5 -5
  71. package/web/app/immutable/chunks/{DDi4fKeR.js → CTozw_6a.js} +1 -1
  72. package/web/app/immutable/chunks/{--3ZEJ9J.js → CTwzQE4y.js} +1 -1
  73. package/web/app/immutable/chunks/{Dk3JYfn4.js → CULilvBT.js} +1 -1
  74. package/web/app/immutable/chunks/{BnZq-I73.js → CV2PaujE.js} +2 -2
  75. package/web/app/immutable/chunks/{bin8Us0N.js → CVUNrf_6.js} +1 -1
  76. package/web/app/immutable/chunks/{GJVVHDkb.js → CWgAcLvx.js} +1 -1
  77. package/web/app/immutable/chunks/{CTthB0JK.js → CYElNz1m.js} +1 -1
  78. package/web/app/immutable/chunks/{CoQLGQdj.js → CZUDc12W.js} +1 -1
  79. package/web/app/immutable/chunks/{Bmnp4Cni.js → CdT170lG.js} +6 -6
  80. package/web/app/immutable/chunks/{B96HYSUr.js → Ceyasj46.js} +1 -1
  81. package/web/app/immutable/chunks/{IrWlayTZ.js → CfAqizJ3.js} +1 -1
  82. package/web/app/immutable/chunks/{D8GxmJaV.js → CfYh5raT.js} +1 -1
  83. package/web/app/immutable/chunks/{DkJafW99.js → CgWJ7tKh.js} +1 -1
  84. package/web/app/immutable/chunks/{CwYn_cZy.js → ChDcu7sM.js} +1 -1
  85. package/web/app/immutable/chunks/{C-tRLOED.js → ChmO5DTP.js} +1 -1
  86. package/web/app/immutable/chunks/{CXruy7R4.js → Cj_Tm5wU.js} +1 -1
  87. package/web/app/immutable/chunks/{BXwgWEmz.js → CkNc-1DL.js} +1 -1
  88. package/web/app/immutable/chunks/{DpiQDkOO.js → CkqPtSf5.js} +1 -1
  89. package/web/app/immutable/chunks/{Cci8BWX_.js → ClNs6jou.js} +1 -1
  90. package/web/app/immutable/chunks/{qb0bPcr5.js → CotgBJSP.js} +1 -1
  91. package/web/app/immutable/chunks/{CHK5bSfe.js → CoyHhRwd.js} +1 -1
  92. package/web/app/immutable/chunks/{Dd_avILP.js → CozIiFS7.js} +1 -1
  93. package/web/app/immutable/chunks/{B5HPrVzu.js → Cp09JH6d.js} +1 -1
  94. package/web/app/immutable/chunks/{BYhzE2Id.js → CpPsvdhC.js} +1 -1
  95. package/web/app/immutable/chunks/{v3KbAU5c.js → CrXlvCkv.js} +1 -1
  96. package/web/app/immutable/chunks/{DKwy0FDy.js → Crq4Js3_.js} +1 -1
  97. package/web/app/immutable/chunks/{BZjntufp.js → CvZhT_UL.js} +1 -1
  98. package/web/app/immutable/chunks/{Ds-TYeKV.js → Cve5pOPi.js} +2 -2
  99. package/web/app/immutable/chunks/{CQMmROUx.js → CwK4Fl7A.js} +2 -2
  100. package/web/app/immutable/chunks/{Bhov0MTz.js → Cwxvd99b.js} +1 -1
  101. package/web/app/immutable/chunks/{CbNazQqj.js → Cz9_gz0r.js} +1 -1
  102. package/web/app/immutable/chunks/{CXu6aWOL.js → Czc4IAh9.js} +1 -1
  103. package/web/app/immutable/chunks/{BmY5L1Op.js → Czzw_Pvc.js} +1 -1
  104. package/web/app/immutable/chunks/{BCHni7By.js → D0csyvlS.js} +1 -1
  105. package/web/app/immutable/chunks/{pl6-mRrC.js → D1dPbxoX.js} +1 -1
  106. package/web/app/immutable/chunks/{CNzOZ9MW.js → D2Fdja4t.js} +1 -1
  107. package/web/app/immutable/chunks/{DPfdnkfB.js → D38kCxZ9.js} +1 -1
  108. package/web/app/immutable/chunks/{DZpe54cf.js → D4K0RFHm.js} +1 -1
  109. package/web/app/immutable/chunks/{BLjf4WQt.js → D4RvTAYA.js} +1 -1
  110. package/web/app/immutable/chunks/{DG8rkBW-.js → D6XYE7JV.js} +1 -1
  111. package/web/app/immutable/chunks/{k5qVf45I.js → D6dtEt_1.js} +1 -1
  112. package/web/app/immutable/chunks/{DOdMtNpo.js → D72pFxfr.js} +1 -1
  113. package/web/app/immutable/chunks/{D6K58w6v.js → D7P2CXpO.js} +3 -3
  114. package/web/app/immutable/chunks/{BE5jLkkZ.js → D82TCSK5.js} +1 -1
  115. package/web/app/immutable/chunks/{CJuSN2hh.js → D8HMZQ9R.js} +1 -1
  116. package/web/app/immutable/chunks/{syg_Gxp6.js → D8U0PEIU.js} +1 -1
  117. package/web/app/immutable/chunks/{CrPyrftw.js → DB6_aOnf.js} +1 -1
  118. package/web/app/immutable/chunks/{4kHCfKWR.js → DB_2g4tK.js} +1 -1
  119. package/web/app/immutable/chunks/{1wcS2GHA.js → DBicYI5c.js} +1 -1
  120. package/web/app/immutable/chunks/{BQu3cSOx.js → DFXw4s8S.js} +1 -1
  121. package/web/app/immutable/chunks/{CCzzpn5X.js → DFvnP41F.js} +1 -1
  122. package/web/app/immutable/chunks/{BmeKmSN1.js → DG5KvEVf.js} +1 -1
  123. package/web/app/immutable/chunks/{oU2ii1bq.js → DKF2EjTY.js} +1 -1
  124. package/web/app/immutable/chunks/{BSIOWZWq.js → DOPcy6T2.js} +1 -1
  125. package/web/app/immutable/chunks/{Dzk1FZ-5.js → DPY72hn4.js} +1 -1
  126. package/web/app/immutable/chunks/{CAS7It7T.js → DQafeec3.js} +1 -1
  127. package/web/app/immutable/chunks/{D6CS23-9.js → DRdRLmUz.js} +1 -1
  128. package/web/app/immutable/chunks/{D5bYJMaB.js → DWzbf_aU.js} +1 -1
  129. package/web/app/immutable/chunks/{BAyTpaq3.js → DX0AlGFV.js} +1 -1
  130. package/web/app/immutable/chunks/{DI5O_gLl.js → DX0hE1oC.js} +1 -1
  131. package/web/app/immutable/chunks/{BxFP5cPu.js → DX3MlPN0.js} +1 -1
  132. package/web/app/immutable/chunks/{Tpzyol5T.js → DXJ3D6-0.js} +2 -2
  133. package/web/app/immutable/chunks/{wXtCM_sb.js → DYX4kEq9.js} +1 -1
  134. package/web/app/immutable/chunks/{BuSZooEw.js → DZRaa7LH.js} +1 -1
  135. package/web/app/immutable/chunks/{BMBobKUo.js → Dbuv3b_7.js} +2 -2
  136. package/web/app/immutable/chunks/{CEZnJlwn.js → DhQAmnDS.js} +1 -1
  137. package/web/app/immutable/chunks/{BrvhC6GL.js → DhkOw60r.js} +1 -1
  138. package/web/app/immutable/chunks/{D805RV1I.js → Dijv8faG.js} +1 -1
  139. package/web/app/immutable/chunks/{Djthn66V.js → DlYL66WK.js} +2 -2
  140. package/web/app/immutable/chunks/{BS6Z2wWv.js → DlYrPe_w.js} +1 -1
  141. package/web/app/immutable/chunks/{cfTDb37Y.js → Dlu0_GVa.js} +1 -1
  142. package/web/app/immutable/chunks/{BNfbL3_i.js → DpXfO8nM.js} +1 -1
  143. package/web/app/immutable/chunks/{BE6av5p4.js → DuKFlC9j.js} +1 -1
  144. package/web/app/immutable/chunks/{DqUTyEPN.js → DwW5MiN3.js} +1 -1
  145. package/web/app/immutable/chunks/{BRk6sSrF.js → DxJXJeWp.js} +1 -1
  146. package/web/app/immutable/chunks/{03ESLWB1.js → DxlpLNnB.js} +1 -1
  147. package/web/app/immutable/chunks/{BYB7SynS.js → F42L1irN.js} +1 -1
  148. package/web/app/immutable/chunks/{FcnPtqUv.js → I1eQnBry.js} +1 -1
  149. package/web/app/immutable/chunks/{B5KLQb3J.js → J5Q3706J.js} +1 -1
  150. package/web/app/immutable/chunks/{mf6N49ed.js → JUqct0gC.js} +1 -1
  151. package/web/app/immutable/chunks/{BxUDfZfX.js → KxpMwUsB.js} +1 -1
  152. package/web/app/immutable/chunks/{BKAQdyqG.js → LiYeJQ_y.js} +1 -1
  153. package/web/app/immutable/chunks/{CZ1Jg-sG.js → Qyi-W7KZ.js} +1 -1
  154. package/web/app/immutable/chunks/{CyBNkEuV.js → RDcDz1X1.js} +1 -1
  155. package/web/app/immutable/chunks/{Blhl4Kzo.js → SlH326tK.js} +1 -1
  156. package/web/app/immutable/chunks/{lLF0vfI3.js → UMObs5wi.js} +1 -1
  157. package/web/app/immutable/chunks/{BEQXbC7q.js → Uv0U-1kP.js} +1 -1
  158. package/web/app/immutable/chunks/{DIvWSFnj.js → WPmFGY7m.js} +1 -1
  159. package/web/app/immutable/chunks/{DRYCjR4c.js → Xb_csWgU.js} +1 -1
  160. package/web/app/immutable/chunks/{aVNMqNTp.js → Y3UAS5wV.js} +1 -1
  161. package/web/app/immutable/chunks/{CZFoI5QY.js → YpQeV5ep.js} +6 -6
  162. package/web/app/immutable/chunks/{DO0tFr72.js → _Y7Nvr11.js} +1 -1
  163. package/web/app/immutable/chunks/{lflImyZ6.js → _bgnudZi.js} +2 -2
  164. package/web/app/immutable/chunks/{CRQOCmwo.js → _eQjP0_7.js} +7 -7
  165. package/web/app/immutable/chunks/{C6NP7Wkf.js → c0MObYhr.js} +1 -1
  166. package/web/app/immutable/chunks/{CYvdhBss.js → hAyFyjes.js} +1 -1
  167. package/web/app/immutable/chunks/{BLjxHwvZ.js → iPSaMdjW.js} +1 -1
  168. package/web/app/immutable/chunks/{Jyr4akMd.js → ingscYYg.js} +1 -1
  169. package/web/app/immutable/chunks/{goXBWNik.js → lrd8vBcb.js} +1 -1
  170. package/web/app/immutable/chunks/{BlhXsK8K.js → nvBTDqJi.js} +1 -1
  171. package/web/app/immutable/chunks/{CzfXsXYz.js → oDL-pLcj.js} +1 -1
  172. package/web/app/immutable/chunks/{C83cffhG.js → s4JAFzR2.js} +1 -1
  173. package/web/app/immutable/chunks/{DyaiTi8A.js → sgXcAFR7.js} +1 -1
  174. package/web/app/immutable/chunks/{DQ_zmHT9.js → t61BPD62.js} +1 -1
  175. package/web/app/immutable/chunks/{CRqiQDbX.js → t7uelISx.js} +1 -1
  176. package/web/app/immutable/chunks/{CzTIJ9gY.js → tWOclZbM.js} +1 -1
  177. package/web/app/immutable/chunks/{i_sqIi_B.js → u9Jr5xJ2.js} +1 -1
  178. package/web/app/immutable/chunks/{CtwCGSFA.js → uKt9v9GZ.js} +1 -1
  179. package/web/app/immutable/chunks/{CsP-2ecL.js → xS44oH53.js} +1 -1
  180. package/web/app/immutable/chunks/{CX89Aogf.js → yQykulND.js} +1 -1
  181. package/web/app/immutable/chunks/{NfelpfPi.js → z5aynuor.js} +1 -1
  182. package/web/app/immutable/chunks/{B1P0TORE.js → zOdhHtWD.js} +1 -1
  183. package/web/app/immutable/chunks/{C1GRqLCq.js → zuhzlizP.js} +1 -1
  184. package/web/app/immutable/entry/{app.Cn1_ubOc.js → app.ZJRI8LL8.js} +2 -2
  185. package/web/app/immutable/entry/start.B_ChBWnN.js +1 -0
  186. package/web/app/immutable/nodes/{0.wKUTDWdz.js → 0.B_5IeAcY.js} +1 -1
  187. package/web/app/immutable/nodes/{1.DxJUaPzW.js → 1.D2RcMrk8.js} +1 -1
  188. package/web/app/immutable/nodes/{10.eeMW9oGM.js → 10.a-yBB_mg.js} +1 -1
  189. package/web/app/immutable/nodes/{14.DMbmYykJ.js → 14.BRMrhd95.js} +1 -1
  190. package/web/app/immutable/nodes/{16.D7z1ouJw.js → 16.DsObfcQu.js} +2 -2
  191. package/web/app/immutable/nodes/{2.BHOa4yl6.js → 2.BX2UV9md.js} +3 -3
  192. package/web/app/immutable/nodes/{3.DLeJMfu1.js → 3.BAb5j4vs.js} +1 -1
  193. package/web/app/immutable/nodes/{4.BEPpJpXB.js → 4.i3m7hv4J.js} +1 -1
  194. package/web/app/immutable/nodes/{5.Cb4CR-KH.js → 5.kQ7xzuNs.js} +1 -1
  195. package/web/app/immutable/nodes/{6.Bko4vkVy.js → 6.De5Z6N1w.js} +1 -1
  196. package/web/app/immutable/nodes/{7.z66lh95v.js → 7.Dqm5QJxM.js} +1 -1
  197. package/web/app/immutable/nodes/{8.Cykwxl0x.js → 8.BT-G_bE5.js} +2 -2
  198. package/web/app/immutable/nodes/{9.Bm3FCmVg.js → 9.DIcsOChV.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/DsYKN9zh.js +0 -1
  202. package/web/app/immutable/entry/start.7mFy7hlx.js +0 -1
@@ -1 +1 @@
1
- import{t as Oe,bq as U,a_ as V,bo as M,by as je,b as qe,bu as De,bs as rt,bt as xt}from"./D4MoKNoK.js";import{bs as Ge,bj as bt,a5 as u,bA as c,b_ as x,W as a,bn as Ne,aA as X,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Be,ca as yt,bk as st,bH as Pe,bV as Fe,a7 as fe,be as $e,b$ as ke,bO as F,bl as Ae}from"./B8o4lNgr.js";import{B as ot}from"./HfuFYz2u.js";import{s as He,k as Xe,d as Qe,h as Ie,c as Ye}from"./WVYGrHqE.js";import{c as P}from"./BPQohPc9.js";import{P as Le,e as Me,f as Se,d as We}from"./BjO6mATN.js";import{J as At,w as T,E as Ze,g as Pt}from"./BQ-Vdhjp.js";import{f as Ee}from"./DgFojmqv.js";import{C as Tt}from"./v3KbAU5c.js";import"./bjlKIwQF.js";import{G2 as xe,f4 as Rt,Cd as nt,AI as it,on as It}from"./C51KzdSG.js";import{aM as lt,aJ as Dt,aK as zt,dl as Ct}from"./dimBDqRX.js";import{d as Ht,r as Lt}from"./fxR7QMV8.js";import{M as Mt}from"./rL78ODLZ.js";import{k as St}from"./5BmKVYc1.js";import{e as et}from"./BMBobKUo.js";import{C as Wt,e as Et}from"./CclADFoZ.js";import{o as Bt}from"./CBF5TBJQ.js";import{S as ze}from"./Ds7can9q.js";import{F as Ce,a1 as Ft,cT as Ot,at as jt,bi as qt}from"./CG5J-qd_.js";var Gt=m('<div class="space-y-3"><!> <!></div>'),Nt=m('<div class="space-y-3"><!> <!></div> <!>',1),Jt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Kt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Vt=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Ut=m('<div class="flex h-10 items-center px-3"><!></div>'),Xt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Oe({component:dt,...b});Ge(l,!0);const Q=At();bt(Q.cleanup);let z=U(l,"detail",7,!1),O=U(l,"count",7,5),Y=U(l,"view",7,"list"),Z=U(l,"grouped",7,!1),s=U(l,"rows",7,"workspace");var C={get detail(){return z()},set detail(i=!1){z(i),X()},get count(){return O()},set count(i=5){O(i),X()},get view(){return Y()},set view(i="list"){Y(i),X()},get grouped(){return Z()},set grouped(i=!1){Z(i),X()},get rows(){return s()},set rows(i="workspace"){s(i),X()},$set:je,$on:(i,I)=>qe(l,i,I)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var I=Nt(),g=R(I),ee=u(g);T(ee,{class:"h-6 w-4/5"});var S=n(ee,2);T(S,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);Ie(d,16,()=>[0,1],h=>h,(h,A)=>{var k=Gt(),te=u(k);T(te,{class:"h-3 w-full"});var j=n(te,2);T(j,{class:"h-3 w-5/6"}),c(k),a(h,k)}),a(i,I)},Te=i=>{var I=Vt();Ie(I,20,()=>[0,1,2],g=>g,(g,ee)=>{var S=Kt(),d=u(S),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);Ie(A,16,()=>[0,1,2],k=>k,(k,te)=>{var j=Jt(),de=u(j),ae=u(de);T(ae,{class:"h-4 flex-1"});var ce=n(ae);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var q=n(w);T(q,{class:"h-3 w-6"}),c(o),c(j),a(k,j)}),c(S),a(g,S)}),c(I),a(i,I)},_e=i=>{var I=Qt(),g=R(I);{var ee=d=>{var h=Ut(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),a(d,h)};V(g,d=>{Z()&&d(ee)})}var S=n(g,2);Ie(S,16,()=>Array.from({length:O()},(d,h)=>h),d=>d,(d,h)=>{var A=Xt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var j=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},ae=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};V(j,o=>{s()==="workspace"?o(de):s()==="integration"&&o(ae,1)})}var ce=n(j,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};V(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Xe(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),a(d,A)}),a(i,I)};V(be,i=>{z()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{He(y,"aria-label",i),He(y,"data-reduced",Q.current),Xe(ie,1,Qe(z()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>M.home_integrations_loading()]),a(b,y),Ne(C)}function ct(b){return b.filter(Ht)}function Zt(){let b=null;return(l,Q)=>{const z=b?l.find(Y=>Y.id===b):void 0;if(z)return z;const O=Lt(l);return b=Q&&O?String(O.id):null,O}}function ea(b,l,Q){return l&&b.find(z=>z.id===l)||Q}var ta=m('<div class="p-4"><!></div>'),aa=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Oe({component:vt,...b});Ge(l,!0);const Q=()=>De(ie,"$agents$",O),z=()=>De(be,"$loaded$",O),[O,Y]=rt();let Z=U(l,"workspace",7),s=U(l,"preview",7,!1),C=U(l,"agent",7);const y=Be(()=>Z().id),ie=lt(y),be=Dt(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:C()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<Mt||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Fe(void 0),i=0;function I(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Fe(!1),ee;function S(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(It(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||S(),()=>clearTimeout(ee)));var d={focusAttention:I,get workspace(){return Z()},set workspace(t){Z(t),X()},get preview(){return s()},set preview(t=!1){s(t),X()},get agent(){return C()},set agent(t){C(t),X()},$set:je,$on:(t,o)=>qe(l,t,o)},h=aa(),A=u(h);{var k=t=>{Ze(t,{density:"compact",title:w=>{$e();var q=ke();x(re=>F(q,re),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),a(w,q)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>C().id,q=>{{let re=$(()=>e(_e)?.agentId===C().id?e(_e):void 0);Tt(q,{get workspace(){return Z()},get agentId(){return C().id},get agentName(){return C().name},autoFocus:!1,get attentionFocusRequest(){return e(re)},isInitialWorkspaceAgent:!1})}}),a(t,o)},j=t=>{var o=ta(),w=u(o);dt(w,{detail:!0}),c(o),a(t,o)},de=t=>{{const o=q=>{$e();var re=ke();x(ye=>F(re,ye),[()=>M.home_detail_unavailable()]),a(q,re)};let w=$(()=>M.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:S,message:o,$$slots:{message:!0}})}},ae=t=>{{const o=q=>{$e();var re=ke();x(ye=>F(re,ye),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),a(q,re)};let w=$(()=>M.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:S,title:o,$$slots:{title:!0}})}};V(A,t=>{s()?t(k):C()?t(te,1):!z()&&!e(g)?t(j,2):z()?t(ae,-1):t(de,3)})}c(h),x(()=>He(h,"data-workspace-link-target",Z().id)),a(b,h);var ce=Ne(d);return Y(),ce}var ra=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sa=m('<div class="shrink-0"><!></div>'),oa=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),at=m("<!><!>",1),na=m("<p> </p>"),ia=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),la=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),da=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),ca=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),va=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ua(b,l){if(new.target)return Oe({component:ua,...b});Ge(l,!0);const Q=()=>De(_e,"$readRevision$",Y),z=()=>De(Te,"$agents$",Y),O=()=>De(I,"$pickedId$",Y),[Y,Z]=rt();let s=U(l,"workspace",7),C=U(l,"onclose",7),y=U(l,"preview",7,!1),ie=U(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:M.workspace_links_untitled_label()),le=Be(()=>s().id),Te=lt(le),_e=zt(le),i=Be(()=>Q()),I=Wt(le),g=$(()=>ct(z())),ee=Zt(),S=$(()=>ee(e(g),Q()>i)),d=$(()=>ea(e(g),O(),e(S)));function h(r){xe.dispatch(nt(le,r)),xe.dispatch(it(le,r))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Fe(!1);async function te(){Pe(k,!1);try{await Et(s().id),Pe(k,!Ct.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function j(){Bt(s().id)}var de={get workspace(){return s()},set workspace(r){s(r),X()},get onclose(){return C()},set onclose(r){C(r),X()},get preview(){return y()},set preview(r=!1){y(r),X()},get showBackToList(){return ie()},set showBackToList(r=!0){ie(r),X()},$set:je,$on:(r,f)=>qe(l,r,f)},ae=va(),ce=u(ae),t=u(ce),o=u(t),w=u(o);P(w,()=>Le,(r,f)=>{f(r,{children:(G,oe)=>{var N=fe(),W=R(N);P(W,()=>Me,(ve,H)=>{H(ve,{children:(J,ge)=>{var me=tt(),ne=R(me);{const E=(L,B)=>{let D=()=>(B?.()).props;{let v=$(()=>M.home_open_workspace());Ee(L,xt(D,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:j,children:(p,K)=>{var _=ra(),se=R(_),ue=Ae(se,!0),we=n(se,2);Ce(we,{get icon(){return Ft},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>F(ue,e(be))),a(p,_)},$$slots:{default:!0}}))}};P(ne,()=>Se,(L,B)=>{B(L,{child:E,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>We,(E,L)=>{L(E,{children:(B,D)=>{$e();var v=ke();x(()=>F(v,e(be))),a(B,v)},$$slots:{default:!0}})}),a(J,me)},$$slots:{default:!0}})}),a(G,N)},$$slots:{default:!0}})}),c(o);var q=n(o,2);{var re=r=>{var f=sa(),G=u(f);{let oe=$(()=>M.home_close_preview()),N=$(()=>M.home_close_preview());Ee(G,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(N)},get onclick(){return C()},children:(W,ve)=>{Ce(W,{get icon(){return Ot}})},$$slots:{default:!0}})}c(f),a(r,f)};V(q,r=>{ie()&&r(re)})}c(t);var ye=n(t,2);{var ut=r=>{var f=fe(),G=R(f);P(G,()=>Le,(oe,N)=>{N(oe,{children:(W,ve)=>{var H=fe(),J=R(H);P(J,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var E=at(),L=R(E);{const D=(v,p)=>{let K=()=>(p?.()).props;var _=oa();Ye(_,()=>({...K(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{St(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{Ce(pe,{get icon(){return qt}})};V(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Ue=n(se,2),Re=Ae(Ue,!0);c(_),x(()=>F(Re,e(A))),a(v,_)};P(L,()=>Se,(v,p)=>{p(v,{child:D,$$slots:{child:!0}})})}var B=n(L);P(B,()=>We,(D,v)=>{v(D,{children:(p,K)=>{$e();var _=ke();x(()=>F(_,e(A))),a(p,_)},$$slots:{default:!0}})}),a(ne,E)},$$slots:{default:!0}})}),a(W,H)},$$slots:{default:!0}})}),a(r,f)};V(ye,r=>{e(A)&&r(ut)})}var pt=n(ye,2);{var mt=r=>{var f=fe(),G=R(f);P(G,()=>Le,(oe,N)=>{N(oe,{children:(W,ve)=>{var H=fe(),J=R(H);P(J,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var E=at(),L=R(E);{const D=(v,p)=>{let K=()=>(p?.()).props;var _=na();Ye(_,()=>({...K(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>F(se,s().statusMessage)),a(v,_)};P(L,()=>Se,(v,p)=>{p(v,{child:D,$$slots:{child:!0}})})}var B=n(L);P(B,()=>We,(D,v)=>{v(D,{children:(p,K)=>{$e();var _=ke();x(()=>F(_,s().statusMessage)),a(p,_)},$$slots:{default:!0}})}),a(ne,E)},$$slots:{default:!0}})}),a(W,H)},$$slots:{default:!0}})}),a(r,f)};V(pt,r=>{s().statusMessage&&r(mt)})}c(ce);var Je=n(ce,2);{var ft=r=>{var f=da(),G=u(f);{let oe=$(()=>e(d)?.id??"");P(G,()=>ze.Root,(N,W)=>{W(N,{get value(){return e(oe)},onchange:ve=>{const H=e(g).find(J=>J.id===ve);H&&h(H.id)},children:(ve,H)=>{var J=tt(),ge=R(J);{let ne=$(()=>M.home_agents());P(ge,()=>ze.Trigger,(he,E)=>{E(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(L,B)=>{var D=ia(),v=R(D);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};V(v,ue=>{e(d)&&ue(p)})}var K=n(v,2),_=Ae(K,!0),se=n(K,2);Ce(se,{get icon(){return jt},class:"shrink-0 text-muted-foreground"}),x(()=>F(_,e(d)?.name)),a(L,D)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>ze.Content,(ne,he)=>{he(ne,{portal:!0,children:(E,L)=>{var B=fe(),D=R(B);Ie(D,17,()=>e(g),v=>v.id,(v,p)=>{var K=fe(),_=R(K);P(_,()=>ze.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Ue)=>{var Re=la(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>F($t,e(p).name)),a(we,Re)},$$slots:{default:!0}})}),a(v,K)}),a(E,B)},$$slots:{default:!0}})}),a(ve,J)},$$slots:{default:!0}})})}c(f),a(r,f)};V(Je,r=>{e(g).length&&r(ft)})}var Ke=n(Je,2);{var _t=r=>{var f=ca(),G=u(f),oe=Ae(G,!0),N=n(G,2);Ee(N,{variant:"outline",size:"sm",onclick:te,children:(W,ve)=>{$e();var H=ke();x(J=>F(H,J),[()=>M.home_retry()]),a(W,H)},$$slots:{default:!0}}),c(f),x(W=>F(oe,W),[()=>M.home_detail_unavailable()]),a(r,f)};V(Ke,r=>{e(k)&&r(_t)})}var Ve=n(Ke,2),gt=u(Ve);ot(gt,()=>s().id,r=>{vt(r,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ve),c(ae),x(r=>He(ae,"aria-label",r),[()=>M.home_workspace_details()]),a(b,ae);var ht=Ne(de);return Z(),ht}export{dt as H,ua as a};
1
+ import{t as Oe,bq as U,a_ as V,bo as M,by as je,b as qe,bu as De,bs as rt,bt as xt}from"./D4MoKNoK.js";import{bs as Ge,bj as bt,a5 as u,bA as c,b_ as x,W as a,bn as Ne,aA as X,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Be,ca as yt,bk as st,bH as Pe,bV as Fe,a7 as fe,be as $e,b$ as ke,bO as F,bl as Ae}from"./B8o4lNgr.js";import{B as ot}from"./HfuFYz2u.js";import{s as He,k as Xe,d as Qe,h as Ie,c as Ye}from"./WVYGrHqE.js";import{c as P}from"./BPQohPc9.js";import{P as Le,e as Me,f as Se,d as We}from"./BjO6mATN.js";import{J as At,w as T,E as Ze,g as Pt}from"./BQ-Vdhjp.js";import{f as Ee}from"./DgFojmqv.js";import{C as Tt}from"./CrXlvCkv.js";import"./bjlKIwQF.js";import{G2 as xe,f4 as Rt,Cd as nt,AI as it,on as It}from"./C51KzdSG.js";import{aM as lt,aJ as Dt,aK as zt,dl as Ct}from"./dimBDqRX.js";import{d as Ht,r as Lt}from"./fxR7QMV8.js";import{M as Mt}from"./2eBUyHOS.js";import{k as St}from"./Bj2YjLqH.js";import{e as et}from"./Dbuv3b_7.js";import{C as Wt,e as Et}from"./9s6R6NFl.js";import{o as Bt}from"./BoAgG62K.js";import{S as ze}from"./Ds7can9q.js";import{F as Ce,a1 as Ft,cT as Ot,at as jt,bi as qt}from"./CG5J-qd_.js";var Gt=m('<div class="space-y-3"><!> <!></div>'),Nt=m('<div class="space-y-3"><!> <!></div> <!>',1),Jt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Kt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Vt=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Ut=m('<div class="flex h-10 items-center px-3"><!></div>'),Xt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Oe({component:dt,...b});Ge(l,!0);const Q=At();bt(Q.cleanup);let z=U(l,"detail",7,!1),O=U(l,"count",7,5),Y=U(l,"view",7,"list"),Z=U(l,"grouped",7,!1),s=U(l,"rows",7,"workspace");var C={get detail(){return z()},set detail(i=!1){z(i),X()},get count(){return O()},set count(i=5){O(i),X()},get view(){return Y()},set view(i="list"){Y(i),X()},get grouped(){return Z()},set grouped(i=!1){Z(i),X()},get rows(){return s()},set rows(i="workspace"){s(i),X()},$set:je,$on:(i,I)=>qe(l,i,I)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var I=Nt(),g=R(I),ee=u(g);T(ee,{class:"h-6 w-4/5"});var S=n(ee,2);T(S,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);Ie(d,16,()=>[0,1],h=>h,(h,A)=>{var k=Gt(),te=u(k);T(te,{class:"h-3 w-full"});var j=n(te,2);T(j,{class:"h-3 w-5/6"}),c(k),a(h,k)}),a(i,I)},Te=i=>{var I=Vt();Ie(I,20,()=>[0,1,2],g=>g,(g,ee)=>{var S=Kt(),d=u(S),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);Ie(A,16,()=>[0,1,2],k=>k,(k,te)=>{var j=Jt(),de=u(j),ae=u(de);T(ae,{class:"h-4 flex-1"});var ce=n(ae);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var q=n(w);T(q,{class:"h-3 w-6"}),c(o),c(j),a(k,j)}),c(S),a(g,S)}),c(I),a(i,I)},_e=i=>{var I=Qt(),g=R(I);{var ee=d=>{var h=Ut(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),a(d,h)};V(g,d=>{Z()&&d(ee)})}var S=n(g,2);Ie(S,16,()=>Array.from({length:O()},(d,h)=>h),d=>d,(d,h)=>{var A=Xt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var j=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},ae=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};V(j,o=>{s()==="workspace"?o(de):s()==="integration"&&o(ae,1)})}var ce=n(j,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};V(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Xe(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),a(d,A)}),a(i,I)};V(be,i=>{z()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{He(y,"aria-label",i),He(y,"data-reduced",Q.current),Xe(ie,1,Qe(z()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>M.home_integrations_loading()]),a(b,y),Ne(C)}function ct(b){return b.filter(Ht)}function Zt(){let b=null;return(l,Q)=>{const z=b?l.find(Y=>Y.id===b):void 0;if(z)return z;const O=Lt(l);return b=Q&&O?String(O.id):null,O}}function ea(b,l,Q){return l&&b.find(z=>z.id===l)||Q}var ta=m('<div class="p-4"><!></div>'),aa=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Oe({component:vt,...b});Ge(l,!0);const Q=()=>De(ie,"$agents$",O),z=()=>De(be,"$loaded$",O),[O,Y]=rt();let Z=U(l,"workspace",7),s=U(l,"preview",7,!1),C=U(l,"agent",7);const y=Be(()=>Z().id),ie=lt(y),be=Dt(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:C()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<Mt||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Fe(void 0),i=0;function I(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Fe(!1),ee;function S(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(It(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||S(),()=>clearTimeout(ee)));var d={focusAttention:I,get workspace(){return Z()},set workspace(t){Z(t),X()},get preview(){return s()},set preview(t=!1){s(t),X()},get agent(){return C()},set agent(t){C(t),X()},$set:je,$on:(t,o)=>qe(l,t,o)},h=aa(),A=u(h);{var k=t=>{Ze(t,{density:"compact",title:w=>{$e();var q=ke();x(re=>F(q,re),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),a(w,q)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>C().id,q=>{{let re=$(()=>e(_e)?.agentId===C().id?e(_e):void 0);Tt(q,{get workspace(){return Z()},get agentId(){return C().id},get agentName(){return C().name},autoFocus:!1,get attentionFocusRequest(){return e(re)},isInitialWorkspaceAgent:!1})}}),a(t,o)},j=t=>{var o=ta(),w=u(o);dt(w,{detail:!0}),c(o),a(t,o)},de=t=>{{const o=q=>{$e();var re=ke();x(ye=>F(re,ye),[()=>M.home_detail_unavailable()]),a(q,re)};let w=$(()=>M.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:S,message:o,$$slots:{message:!0}})}},ae=t=>{{const o=q=>{$e();var re=ke();x(ye=>F(re,ye),[()=>M.agentOverview_hierarchyGraph_noAgents_title()]),a(q,re)};let w=$(()=>M.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:S,title:o,$$slots:{title:!0}})}};V(A,t=>{s()?t(k):C()?t(te,1):!z()&&!e(g)?t(j,2):z()?t(ae,-1):t(de,3)})}c(h),x(()=>He(h,"data-workspace-link-target",Z().id)),a(b,h);var ce=Ne(d);return Y(),ce}var ra=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sa=m('<div class="shrink-0"><!></div>'),oa=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),at=m("<!><!>",1),na=m("<p> </p>"),ia=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),la=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),da=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),ca=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),va=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ua(b,l){if(new.target)return Oe({component:ua,...b});Ge(l,!0);const Q=()=>De(_e,"$readRevision$",Y),z=()=>De(Te,"$agents$",Y),O=()=>De(I,"$pickedId$",Y),[Y,Z]=rt();let s=U(l,"workspace",7),C=U(l,"onclose",7),y=U(l,"preview",7,!1),ie=U(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:M.workspace_links_untitled_label()),le=Be(()=>s().id),Te=lt(le),_e=zt(le),i=Be(()=>Q()),I=Wt(le),g=$(()=>ct(z())),ee=Zt(),S=$(()=>ee(e(g),Q()>i)),d=$(()=>ea(e(g),O(),e(S)));function h(r){xe.dispatch(nt(le,r)),xe.dispatch(it(le,r))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Fe(!1);async function te(){Pe(k,!1);try{await Et(s().id),Pe(k,!Ct.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function j(){Bt(s().id)}var de={get workspace(){return s()},set workspace(r){s(r),X()},get onclose(){return C()},set onclose(r){C(r),X()},get preview(){return y()},set preview(r=!1){y(r),X()},get showBackToList(){return ie()},set showBackToList(r=!0){ie(r),X()},$set:je,$on:(r,f)=>qe(l,r,f)},ae=va(),ce=u(ae),t=u(ce),o=u(t),w=u(o);P(w,()=>Le,(r,f)=>{f(r,{children:(G,oe)=>{var N=fe(),W=R(N);P(W,()=>Me,(ve,H)=>{H(ve,{children:(J,ge)=>{var me=tt(),ne=R(me);{const E=(L,B)=>{let D=()=>(B?.()).props;{let v=$(()=>M.home_open_workspace());Ee(L,xt(D,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:j,children:(p,K)=>{var _=ra(),se=R(_),ue=Ae(se,!0),we=n(se,2);Ce(we,{get icon(){return Ft},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>F(ue,e(be))),a(p,_)},$$slots:{default:!0}}))}};P(ne,()=>Se,(L,B)=>{B(L,{child:E,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>We,(E,L)=>{L(E,{children:(B,D)=>{$e();var v=ke();x(()=>F(v,e(be))),a(B,v)},$$slots:{default:!0}})}),a(J,me)},$$slots:{default:!0}})}),a(G,N)},$$slots:{default:!0}})}),c(o);var q=n(o,2);{var re=r=>{var f=sa(),G=u(f);{let oe=$(()=>M.home_close_preview()),N=$(()=>M.home_close_preview());Ee(G,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(N)},get onclick(){return C()},children:(W,ve)=>{Ce(W,{get icon(){return Ot}})},$$slots:{default:!0}})}c(f),a(r,f)};V(q,r=>{ie()&&r(re)})}c(t);var ye=n(t,2);{var ut=r=>{var f=fe(),G=R(f);P(G,()=>Le,(oe,N)=>{N(oe,{children:(W,ve)=>{var H=fe(),J=R(H);P(J,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var E=at(),L=R(E);{const D=(v,p)=>{let K=()=>(p?.()).props;var _=oa();Ye(_,()=>({...K(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{St(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{Ce(pe,{get icon(){return qt}})};V(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Ue=n(se,2),Re=Ae(Ue,!0);c(_),x(()=>F(Re,e(A))),a(v,_)};P(L,()=>Se,(v,p)=>{p(v,{child:D,$$slots:{child:!0}})})}var B=n(L);P(B,()=>We,(D,v)=>{v(D,{children:(p,K)=>{$e();var _=ke();x(()=>F(_,e(A))),a(p,_)},$$slots:{default:!0}})}),a(ne,E)},$$slots:{default:!0}})}),a(W,H)},$$slots:{default:!0}})}),a(r,f)};V(ye,r=>{e(A)&&r(ut)})}var pt=n(ye,2);{var mt=r=>{var f=fe(),G=R(f);P(G,()=>Le,(oe,N)=>{N(oe,{children:(W,ve)=>{var H=fe(),J=R(H);P(J,()=>Me,(ge,me)=>{me(ge,{children:(ne,he)=>{var E=at(),L=R(E);{const D=(v,p)=>{let K=()=>(p?.()).props;var _=na();Ye(_,()=>({...K(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>F(se,s().statusMessage)),a(v,_)};P(L,()=>Se,(v,p)=>{p(v,{child:D,$$slots:{child:!0}})})}var B=n(L);P(B,()=>We,(D,v)=>{v(D,{children:(p,K)=>{$e();var _=ke();x(()=>F(_,s().statusMessage)),a(p,_)},$$slots:{default:!0}})}),a(ne,E)},$$slots:{default:!0}})}),a(W,H)},$$slots:{default:!0}})}),a(r,f)};V(pt,r=>{s().statusMessage&&r(mt)})}c(ce);var Je=n(ce,2);{var ft=r=>{var f=da(),G=u(f);{let oe=$(()=>e(d)?.id??"");P(G,()=>ze.Root,(N,W)=>{W(N,{get value(){return e(oe)},onchange:ve=>{const H=e(g).find(J=>J.id===ve);H&&h(H.id)},children:(ve,H)=>{var J=tt(),ge=R(J);{let ne=$(()=>M.home_agents());P(ge,()=>ze.Trigger,(he,E)=>{E(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(L,B)=>{var D=ia(),v=R(D);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};V(v,ue=>{e(d)&&ue(p)})}var K=n(v,2),_=Ae(K,!0),se=n(K,2);Ce(se,{get icon(){return jt},class:"shrink-0 text-muted-foreground"}),x(()=>F(_,e(d)?.name)),a(L,D)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>ze.Content,(ne,he)=>{he(ne,{portal:!0,children:(E,L)=>{var B=fe(),D=R(B);Ie(D,17,()=>e(g),v=>v.id,(v,p)=>{var K=fe(),_=R(K);P(_,()=>ze.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Ue)=>{var Re=la(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>F($t,e(p).name)),a(we,Re)},$$slots:{default:!0}})}),a(v,K)}),a(E,B)},$$slots:{default:!0}})}),a(ve,J)},$$slots:{default:!0}})})}c(f),a(r,f)};V(Je,r=>{e(g).length&&r(ft)})}var Ke=n(Je,2);{var _t=r=>{var f=ca(),G=u(f),oe=Ae(G,!0),N=n(G,2);Ee(N,{variant:"outline",size:"sm",onclick:te,children:(W,ve)=>{$e();var H=ke();x(J=>F(H,J),[()=>M.home_retry()]),a(W,H)},$$slots:{default:!0}}),c(f),x(W=>F(oe,W),[()=>M.home_detail_unavailable()]),a(r,f)};V(Ke,r=>{e(k)&&r(_t)})}var Ve=n(Ke,2),gt=u(Ve);ot(gt,()=>s().id,r=>{vt(r,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ve),c(ae),x(r=>He(ae,"aria-label",r),[()=>M.home_workspace_details()]),a(b,ae);var ht=Ne(de);return Z(),ht}export{dt as H,ua as a};
@@ -1,4 +1,4 @@
1
- import{g as se}from"./8n4ougjP.js";import{a as p,ad as k,N as F,ax as ie,aV as re,L as ae,aG as ne,K as oe,aF as le,aI as ce,O as he,I as ue,p as z,k as de,as as fe}from"./CRQOCmwo.js";import{s as pe}from"./D2hiI0dA.js";import{c as Se}from"./DyQA18KQ.js";import{g as m,c3 as vt}from"./Bmnp4Cni.js";var xt=(function(){var t=p(function(M,o,h,a){for(h=h||{},a=M.length;a--;h[M[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],b=[1,33],I=[1,20],v=[1,21],f=[1,22],w=[1,23],$=[1,24],A=[1,26],P=[1,27],x=[1,28],B=[1,29],N=[1,30],K=[1,31],ot=[1,32],lt=[1,35],ct=[1,36],ht=[1,37],ut=[1,38],X=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],dt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Ot=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:p(m(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(m(function(o,h,a,g,_,i,G){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const st=i[l-1];st.description=g.trimColon(i[l]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Et=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Et};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],J=i[l-2].trim();if(i[l].match(":")){var ft=i[l].split(":");Y=ft[0],J=[J,ft[1]]}this.$={stmt:"state",id:Y,type:"default",description:J};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:b,57:X},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(dt,[2,44],{58:[1,56]}),t(dt,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:b,57:X},t(y,[2,17]),t(Ot,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(dt,[2,46]),t(dt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Ot,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(m(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),"parseError"),parse:p(m(function(o){var h=this,a=[0],g=[],_=[null],i=[],G=this.table,l="",Y=0,J=0,ft=2,st=1,Et=i.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(j.yy[_t]=this.yy[_t]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var mt=D.yylloc;i.push(mt);var ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Rt(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}m(Rt,"popStack"),p(Rt,"popStack");function bt(){var O;return O=g.pop()||D.lex()||st,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}m(bt,"lex"),p(bt,"lex");for(var L,H,R,kt,q={},pt,V,$t,St;;){if(H=a[a.length-1],this.defaultActions[H]?R=this.defaultActions[H]:((L===null||typeof L>"u")&&(L=bt()),R=G[H]&&G[H][L]),typeof R>"u"||!R.length||!R[0]){var Dt="";St=[];for(pt in G[H])this.terminals_[pt]&&pt>ft&&St.push("'"+this.terminals_[pt]+"'");D.showPosition?Dt="Parse error on line "+(Y+1)+`:
1
+ import{g as se}from"./BRsvqYQJ.js";import{a as p,ad as k,N as F,ax as ie,aV as re,L as ae,aG as ne,K as oe,aF as le,aI as ce,O as he,I as ue,p as z,k as de,as as fe}from"./_eQjP0_7.js";import{s as pe}from"./BRaDvZhu.js";import{c as Se}from"./BEu9jjb7.js";import{g as m,c3 as vt}from"./CdT170lG.js";var xt=(function(){var t=p(function(M,o,h,a){for(h=h||{},a=M.length;a--;h[M[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],b=[1,33],I=[1,20],v=[1,21],f=[1,22],w=[1,23],$=[1,24],A=[1,26],P=[1,27],x=[1,28],B=[1,29],N=[1,30],K=[1,31],ot=[1,32],lt=[1,35],ct=[1,36],ht=[1,37],ut=[1,38],X=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],dt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Ot=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:p(m(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(m(function(o,h,a,g,_,i,G){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const st=i[l-1];st.description=g.trimColon(i[l]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Et=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Et};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],J=i[l-2].trim();if(i[l].match(":")){var ft=i[l].split(":");Y=ft[0],J=[J,ft[1]]}this.$={stmt:"state",id:Y,type:"default",description:J};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:b,57:X},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(dt,[2,44],{58:[1,56]}),t(dt,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:b,57:X},t(y,[2,17]),t(Ot,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(dt,[2,46]),t(dt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Ot,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(m(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),"parseError"),parse:p(m(function(o){var h=this,a=[0],g=[],_=[null],i=[],G=this.table,l="",Y=0,J=0,ft=2,st=1,Et=i.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(j.yy[_t]=this.yy[_t]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var mt=D.yylloc;i.push(mt);var ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Rt(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}m(Rt,"popStack"),p(Rt,"popStack");function bt(){var O;return O=g.pop()||D.lex()||st,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}m(bt,"lex"),p(bt,"lex");for(var L,H,R,kt,q={},pt,V,$t,St;;){if(H=a[a.length-1],this.defaultActions[H]?R=this.defaultActions[H]:((L===null||typeof L>"u")&&(L=bt()),R=G[H]&&G[H][L]),typeof R>"u"||!R.length||!R[0]){var Dt="";St=[];for(pt in G[H])this.terminals_[pt]&&pt>ft&&St.push("'"+this.terminals_[pt]+"'");D.showPosition?Dt="Parse error on line "+(Y+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+St.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Dt="Parse error on line "+(Y+1)+": Unexpected "+(L==st?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Dt,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:mt,expected:St})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+L);switch(R[0]){case 1:a.push(L),_.push(D.yytext),i.push(D.yylloc),a.push(R[1]),L=null,J=D.yyleng,l=D.yytext,Y=D.yylineno,mt=D.yylloc;break;case 2:if(V=this.productions_[R[1]][1],q.$=_[_.length-V],q._$={first_line:i[i.length-(V||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(V||1)].first_column,last_column:i[i.length-1].last_column},ee&&(q._$.range=[i[i.length-(V||1)].range[0],i[i.length-1].range[1]]),kt=this.performAction.apply(q,[l,J,Y,j.yy,R[1],_,i].concat(Et)),typeof kt<"u")return kt;V&&(a=a.slice(0,-1*V*2),_=_.slice(0,-1*V),i=i.slice(0,-1*V)),a.push(this.productions_[R[1]][0]),_.push(q.$),i.push(q._$),$t=G[a[a.length-2]][a[a.length-1]],a.push($t);break;case 3:return!0}}return!0},"parse"),"parse")},te=(function(){var M={EOF:1,parseError:p(m(function(h,a){if(this.yy.parser)this.yy.parser.parseError(h,a);else throw new Error(h)},"parseError"),"parseError"),setInput:p(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var h=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===g.length?this.yylloc.first_column:0)+g[g.length-a.length].length-a[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1 +1 @@
1
- import"./B8o4lNgr.js";import{p as r}from"./CZFoI5QY.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
1
+ import"./B8o4lNgr.js";import{p as r}from"./YpQeV5ep.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
@@ -1,2 +1,2 @@
1
- import{t as ht,bq as g,bo as m,a_ as p,by as bt,b as xt}from"./D4MoKNoK.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as Ct}from"./B8o4lNgr.js";import{I as It,h as Bt}from"./WVYGrHqE.js";import{H as Pt,C as zt}from"./C8yAGnZY.js";import{f as M}from"./DgFojmqv.js";import"./WZHg24tN.js";import{F as rt,c5 as Rt,cg as St,ar as Wt}from"./CG5J-qd_.js";import{e as Dt}from"./BMBobKUo.js";import{D as Ht}from"./BYhzE2Id.js";import{G2 as Lt,sA as $t}from"./C51KzdSG.js";import{g as Nt}from"./Tpzyol5T.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Gt(U,n){if(new.target)return ht({component:Gt,...U});yt(n,!0);let A=g(n,"patches",7),O=g(n,"label",23,()=>m.ui_patchBlock_label()),V=g(n,"lastApply",7),w=g(n,"linkedAgentId",7),H=g(n,"workspaceId",7),P=g(n,"applying",7,!1),L=g(n,"onApply",7),$=g(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),G=y(()=>V()?.status==="success");function st(t){const o=t.split(`
1
+ import{t as ht,bq as g,bo as m,a_ as p,by as bt,b as xt}from"./D4MoKNoK.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as Ct}from"./B8o4lNgr.js";import{I as It,h as Bt}from"./WVYGrHqE.js";import{H as Pt,C as zt}from"./C8yAGnZY.js";import{f as M}from"./DgFojmqv.js";import"./WZHg24tN.js";import{F as rt,c5 as Rt,cg as St,ar as Wt}from"./CG5J-qd_.js";import{e as Dt}from"./Dbuv3b_7.js";import{D as Ht}from"./CpPsvdhC.js";import{G2 as Lt,sA as $t}from"./C51KzdSG.js";import{g as Nt}from"./DXJ3D6-0.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Gt(U,n){if(new.target)return ht({component:Gt,...U});yt(n,!0);let A=g(n,"patches",7),O=g(n,"label",23,()=>m.ui_patchBlock_label()),V=g(n,"lastApply",7),w=g(n,"linkedAgentId",7),H=g(n,"workspaceId",7),P=g(n,"applying",7,!1),L=g(n,"onApply",7),$=g(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),G=y(()=>V()?.status==="success");function st(t){const o=t.split(`
2
2
  `);let v=0,b=0;for(const C of o)C.startsWith("+")&&!C.startsWith("+++")?v++:C.startsWith("-")&&!C.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),T=y(()=>P()?{label:m.ui_patchBlock_applying_label(),icon:null}:e(G)?{label:m.ui_patchBlock_revert_label(),icon:St}:{label:m.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!(L()||$()));function ot(){et(j,!e(j))}function lt(){e(G)?$()?.():L()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=m.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return H()},set workspaceId(t){H(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return L()},set onApply(t){L(t),h()},get onRevert(){return $()},set onRevert(t){$(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var C=a=>{{let c=y(()=>m.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{H()&&Lt.dispatch($t(H(),{agentId:w(),...Nt(l)}))},get title(){return e(c)},children:(l,_)=>{Dt(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};p(b,a=>{w()&&a(C)})}var Z=f(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),_=Q(l);{var I=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};p(_,i=>{w()||i(I)})}var B=f(_,2),s=S(B,!0),d=f(B,2),r=F(d),R=S(r),N=f(r,2),J=S(N);W(d);var K=f(d,2);{var tt=i=>{var q=qt(),gt=S(q,!0);D(mt=>x(gt,mt),[()=>m.ui_patchBlock_applied_label()]),u(i,q)};p(K,i=>{e(G)&&i(tt)})}D(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),u(a,l)},$$slots:{default:!0}});var ut=f(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var _=Mt(),I=Q(_);{var B=r=>{It(r,{size:12})},s=r=>{rt(r,{get icon(){return e(T).icon},size:"xs"})};p(I,r=>{P()?r(B):e(T).icon&&r(s,1)})}var d=f(I);D(()=>x(d,` ${e(T).label??""}`)),u(c,_)},$$slots:{default:!0}})};p(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=f(v,2);{var _t=a=>{var c=Vt(),l=F(c);{var _=s=>{var d=Ot();Bt(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let J=y(()=>e(N)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var i=Ct();D(q=>x(i,q),[()=>e(R).filePath.split("/").pop()]),u(K,i)},$$slots:{default:!0}})}}),W(d),u(s,d)};p(l,s=>{A().length>1&&s(_)})}var I=f(l,2);{var B=s=>{Ht(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};p(I,s=>{e(z)&&s(B)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),u(a,c)};p(vt,a=>{e(j)&&a(_t)})}W(o),u(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>m.ui_patchBlock_invalid_error()]),u(t,o)};p(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return u(U,Y),At(it)}export{Gt as P};
@@ -1,4 +1,4 @@
1
- import{f as e}from"./Bmnp4Cni.js";var l=e(()=>`
1
+ import{a as e}from"./_eQjP0_7.js";var l=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- import{p as Mt}from"./lLF0vfI3.js";import{c6 as Nt,aK as Lt,aP as zt,c9 as Tt,aL as Xt,c7 as At,f as u,aX as Et,aN as Yt,$ as U,bC as Q,c4 as It,a6 as Bt,a0 as Ft,aO as V}from"./Bmnp4Cni.js";import{p as Ot}from"./H_dyzYix.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),J=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Rt=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,O=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,O,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=J(e.fromPort)??J(e.toPort);const{flow:d,label:w}=Rt(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Ot("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:zt,getAccDescription:Lt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
1
+ import{p as Mt}from"./UMObs5wi.js";import{c6 as Nt,aK as Lt,aP as zt,c9 as Tt,aL as Xt,c7 as At,f as u,aX as Et,aN as Yt,$ as U,bC as Q,c4 as It,a6 as Bt,a0 as Ft,aO as V}from"./CdT170lG.js";import{p as Ot}from"./H_dyzYix.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),J=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Rt=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,O=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,O,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=J(e.fromPort)??J(e.toPort);const{flow:d,label:w}=Rt(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Ot("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:zt,getAccDescription:Lt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
2
2
  `+o);const a=jt(),d=Ht(),w=a.nodeRadius*1.6,C=h.db,g=C.getWardleyData(),O=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,Y=It(r);Y.selectAll("*").remove(),Bt(Y,b,S,a.useMaxWidth),Y.attr("viewBox",`0 0 ${S} ${b}`);const v=Y.append("g").attr("class","wardley-map"),q=Y.append("defs");q.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const I=S-a.padding*2,B=b-a.padding*2;O&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(O);const L=u(t=>a.padding+t/100*I,"projectX"),z=u(t=>b-a.padding-t/100*B,"projectY"),R=v.append("g").attr("class","wardley-axes");R.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),R.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const wt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";R.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+I/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(wt),R.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+B/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+B/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:qt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,n=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{n.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{n.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=n[p],f=a.padding+l.start*I,x=a.padding+l.end*I,y=(f+x)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const n=s/4,i=a.padding+I*n;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-B*n).attr("y2",b-a.padding-B*n).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:L(t.x),y:z(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(n=>{if(n.componentIds.length===0)return;const i=n.componentIds.map(x=>({id:x,pos:c.get(x),node:g.nodes.find(y=>y.id===x)})).filter(x=>x.pos&&x.node).sort((x,y)=>x.node.x-y.node.x);for(let x=0;x<i.length-1;x++){const y=i[x],m=i[x+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(n.componentIds.forEach(x=>{const y=c.get(x);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,P=c.get(n.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=v.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const K=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||Z.get(t.target)?.has(t.source)));_.selectAll("line").data(K).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.x+l/x*p}).attr("y1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.y+f/x*p}).attr("x2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.x+l/x*p}).attr("y2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.y+f/x*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${r})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${r})`:null),_.selectAll("text").data(K.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=n.y-s.y,l=n.x-s.x,f=Math.sqrt(l*l+p*p),x=8,y=p/f;return i+y*x}).attr("y",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.y+n.y)/2,p=n.x-s.x,l=n.y-s.y,f=Math.sqrt(p*p+l*l),x=8,y=-p/f;return i+y*x}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=(s.y+n.y)/2,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f),y=8,m=f/x,P=-l/x,N=i+m*y,W=p+P*y;let A=Math.atan2(f,l)*180/Math.PI;return(A>90||A<-90)&&(A+=180),`rotate(${A} ${N} ${W})`}).text(t=>t.label);const kt=v.append("g").attr("class","wardley-trends"),bt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const n=L(t.targetX),i=z(t.targetY),p=n-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),x=a.nodeRadius+2,y=f>x?n-p/f*x:n,m=f>x?i-l/f*x:i;return{origin:s,targetX:n,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);kt.selectAll("line").data(bt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y1",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y-n/2}).attr("x2",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y2",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y+n/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let n=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(n+=10);const i=t.labelOffsetX??n;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let n=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(n-=10);const i=t.labelOffsetY??n;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const n=s.coordinates.map(i=>({x:L(i.x),y:z(i.y)}));if(n.length>1)for(let i=0;i<n.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",n[i].x).attr("y1",n[i].y).attr("x2",n[i+1].x).attr("y2",n[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=L(g.annotationsBox.x),n=z(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),x=[...g.annotations].filter(m=>m.text).sort((m,P)=>m.number-P.number),y=[];if(x.forEach((m,P)=>{const N=f.append("text").attr("x",s+i).attr("y",n+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(N)}),y.length>0){let m=0,P=0;y.forEach(j=>{const D=j.node(),Ct=D.getComputedTextLength();m=Math.max(m,Ct);const St=D.getBBox();P=Math.max(P,St.height)});const N=m+i*2+105,W=x.length*p+i*2+P/2,A=a.padding,$t=S-a.padding-N,vt=a.padding,Pt=b-a.padding-W;s=Math.max(A,Math.min(s,$t)),n=Math.max(vt,Math.min(n,Pt)),y.forEach((j,D)=>{j.attr("x",s+i).attr("y",n+i+(D+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",n).attr("width",N).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const n=L(s.x),i=z(s.y);t.append("text").attr("x",n).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const n=L(s.x),i=z(s.y),p=60,l=30,f=20,x=`
3
3
  M ${n} ${i-l/2}
4
4
  L ${n+p-f} ${i-l/2}
@@ -1,4 +1,4 @@
1
- import{f as p,bC as C,c4 as H,aN as B,a0 as q,aX as G,a6 as U,c2 as j,aO as K}from"./Bmnp4Cni.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
1
+ import{f as p,bC as C,c4 as H,aN as B,a0 as q,aX as G,a6 as U,c2 as j,aO as K}from"./CdT170lG.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
2
2
  `),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=B(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};