@intent-hq/web 2.300.0 → 2.300.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Ba3Gl_Rx.js → -j8RilKC.js} +2 -2
  3. package/web/app/immutable/chunks/{B-g-NIPK.js → 0-b4ZvTK.js} +1 -1
  4. package/web/app/immutable/chunks/{D2MsQ7CI.js → 1-VabEZ0.js} +1 -1
  5. package/web/app/immutable/chunks/{BcK8h34a.js → 2DcZXs_F.js} +1 -1
  6. package/web/app/immutable/chunks/{DBntrybU.js → 2N3bEpgZ.js} +1 -1
  7. package/web/app/immutable/chunks/{CnpqP3W5.js → 2ZXwYJuA.js} +1 -1
  8. package/web/app/immutable/chunks/{DzZaDWGS.js → 3pZ2C7Oz.js} +1 -1
  9. package/web/app/immutable/chunks/{CDcsX4P8.js → 3sRD2IoY.js} +1 -1
  10. package/web/app/immutable/chunks/{C5BrZ9Uc.js → 4MuDb8sG.js} +1 -1
  11. package/web/app/immutable/chunks/{eUunsB8W.js → 5D7P8R1M.js} +1 -1
  12. package/web/app/immutable/chunks/{CEniOKQx.js → 5GrgBznS.js} +1 -1
  13. package/web/app/immutable/chunks/{Bhrt6-Mt.js → 5sBQ6rKD.js} +1 -1
  14. package/web/app/immutable/chunks/{BkjJpsAb.js → 6bctAAQ4.js} +2 -2
  15. package/web/app/immutable/chunks/{BLML8tyL.js → 7lKdD900.js} +1 -1
  16. package/web/app/immutable/chunks/{BxSRgl_K.js → 9A9__2dZ.js} +1 -1
  17. package/web/app/immutable/chunks/{CWh86ZYE.js → B00a-E5y.js} +1 -1
  18. package/web/app/immutable/chunks/{D8sxBEHk.js → B08ZRfRe.js} +1 -1
  19. package/web/app/immutable/chunks/{EOrMcKth.js → B1BoYgO3.js} +1 -1
  20. package/web/app/immutable/chunks/{CfXQV99h.js → B23FAgl4.js} +1 -1
  21. package/web/app/immutable/chunks/{BxepIPme.js → B2YeO1vq.js} +1 -1
  22. package/web/app/immutable/chunks/{C9oKpMS_.js → B5FD8FRF.js} +1 -1
  23. package/web/app/immutable/chunks/{CaAuKVV3.js → B648LYGe.js} +1 -1
  24. package/web/app/immutable/chunks/{B87LX9tB.js → B6GFXjaE.js} +4 -4
  25. package/web/app/immutable/chunks/{CsBt-DEV.js → B9UG1fIf.js} +1 -1
  26. package/web/app/immutable/chunks/{Jwfh1VUw.js → BBKgmsAl.js} +1 -1
  27. package/web/app/immutable/chunks/{BMvMJI9S.js → BBi8ZQ4f.js} +1 -1
  28. package/web/app/immutable/chunks/{DBdZimKy.js → BFq_nebX.js} +1 -1
  29. package/web/app/immutable/chunks/{DuBklFcM.js → BKBZBubB.js} +1 -1
  30. package/web/app/immutable/chunks/{C0fkUg5D.js → BKb2X4nY.js} +1 -1
  31. package/web/app/immutable/chunks/{ZfjlDNse.js → BKoNmPdl.js} +1 -1
  32. package/web/app/immutable/chunks/{D3C_wxG-.js → BL66wtH1.js} +1 -1
  33. package/web/app/immutable/chunks/{BaasjTfD.js → BPhCmCpT.js} +1 -1
  34. package/web/app/immutable/chunks/{C_DS9aXk.js → BQ3lIAxU.js} +1 -1
  35. package/web/app/immutable/chunks/{BN1F2G9L.js → BRFS4VDU.js} +1 -1
  36. package/web/app/immutable/chunks/{CQzSGmOk.js → BRX8YzX5.js} +1 -1
  37. package/web/app/immutable/chunks/{CfjGsJrO.js → BS-h7rm3.js} +1 -1
  38. package/web/app/immutable/chunks/{V4P2F4m3.js → BTiFAxnk.js} +1 -1
  39. package/web/app/immutable/chunks/{DNzn6PzZ.js → BVLclYIV.js} +1 -1
  40. package/web/app/immutable/chunks/{DdWrNe4g.js → BVR4ypbe.js} +1 -1
  41. package/web/app/immutable/chunks/{BJTOTozZ.js → BVT8FnwX.js} +1 -1
  42. package/web/app/immutable/chunks/{CdqaycPl.js → BVnCu4HK.js} +1 -1
  43. package/web/app/immutable/chunks/{BF2JOf_h.js → BWAM175S.js} +1 -1
  44. package/web/app/immutable/chunks/{DFcDTHE7.js → BWaQmmKL.js} +1 -1
  45. package/web/app/immutable/chunks/{GIJe6jEe.js → BXDqRhfc.js} +1 -1
  46. package/web/app/immutable/chunks/{Bu2F6uGB.js → BcN0a7iZ.js} +1 -1
  47. package/web/app/immutable/chunks/{DMlNL7XW.js → BeXyu8S7.js} +6 -6
  48. package/web/app/immutable/chunks/{C6wHGKVx.js → BggFqLcQ.js} +1 -1
  49. package/web/app/immutable/chunks/{DNu-EOlZ.js → BiyBBgWJ.js} +1 -1
  50. package/web/app/immutable/chunks/{Bkg2jzs8.js → Bkny4U08.js} +1 -1
  51. package/web/app/immutable/chunks/{DJrVxxbZ.js → BnoYK4Cg.js} +1 -1
  52. package/web/app/immutable/chunks/{DfRs59bc.js → BoVqnGlE.js} +1 -1
  53. package/web/app/immutable/chunks/{8tKgHmPk.js → BpS2Zkky.js} +1 -1
  54. package/web/app/immutable/chunks/{CJj6zr8B.js → BqQtQly_.js} +1 -1
  55. package/web/app/immutable/chunks/{DEqIZOTX.js → BsU6XLOF.js} +1 -1
  56. package/web/app/immutable/chunks/{BJbo_kKO.js → ByOlSVuA.js} +1 -1
  57. package/web/app/immutable/chunks/{ByZjDy8O.js → BzvRDF8m.js} +1 -1
  58. package/web/app/immutable/chunks/{Cxw8qNpn.js → C0sDoyzY.js} +1 -1
  59. package/web/app/immutable/chunks/{B9P5rUiO.js → C0yADNxK.js} +1 -1
  60. package/web/app/immutable/chunks/{Dp45taKt.js → C2RKkR8r.js} +1 -1
  61. package/web/app/immutable/chunks/{JMt_KPti.js → C6MidKO1.js} +1 -1
  62. package/web/app/immutable/chunks/{BhglH0qV.js → C7NJtCoD.js} +2 -2
  63. package/web/app/immutable/chunks/{CdlxRh10.js → C7jsu14h.js} +1 -1
  64. package/web/app/immutable/chunks/{pViJ0C09.js → C9KORVFh.js} +1 -1
  65. package/web/app/immutable/chunks/{1jD1K4t9.js → CAdJgRT-.js} +1 -1
  66. package/web/app/immutable/chunks/{kbiSNU8S.js → CCOyeB8l.js} +1 -1
  67. package/web/app/immutable/chunks/{qpzd1Snw.js → CGXAF4r8.js} +1 -1
  68. package/web/app/immutable/chunks/{E8EFUfsc.js → CHHzckiT.js} +1 -1
  69. package/web/app/immutable/chunks/{DpwvNWlF.js → CI_dqO7A.js} +1 -1
  70. package/web/app/immutable/chunks/{B4cRl4XZ.js → CIhr4uzF.js} +1 -1
  71. package/web/app/immutable/chunks/{Dw3FugoV.js → CJB0AMOQ.js} +2 -2
  72. package/web/app/immutable/chunks/{Irb_xhXc.js → CKXP5Dfl.js} +1 -1
  73. package/web/app/immutable/chunks/{D7rRJFzn.js → CLt_MpVR.js} +1 -1
  74. package/web/app/immutable/chunks/{g4ZkGYVX.js → CLwukbv5.js} +1 -1
  75. package/web/app/immutable/chunks/{58UGOK_x.js → CMT8W8d8.js} +1 -1
  76. package/web/app/immutable/chunks/{Bcwj2Z7c.js → CMxICaSn.js} +1 -1
  77. package/web/app/immutable/chunks/{CCZ7kcPP.js → CNcMC2eS.js} +1 -1
  78. package/web/app/immutable/chunks/{fBLUmxyl.js → CTb5E7ts.js} +1 -1
  79. package/web/app/immutable/chunks/{L35vxo_x.js → CUPUpXuX.js} +1 -1
  80. package/web/app/immutable/chunks/{CVj7bpe9.js → CURgPz9A.js} +1 -1
  81. package/web/app/immutable/chunks/{DGnZRFrD.js → CViglT06.js} +1 -1
  82. package/web/app/immutable/chunks/{DW-SCc7t.js → CYIyfTfT.js} +1 -1
  83. package/web/app/immutable/chunks/{DRPtDW2A.js → CZ0U9o7-.js} +1 -1
  84. package/web/app/immutable/chunks/{neAtdZ03.js → CZL3_4T_.js} +1 -1
  85. package/web/app/immutable/chunks/{BIXM_U1Z.js → Ca7foKhO.js} +1 -1
  86. package/web/app/immutable/chunks/{CZugVkfN.js → CbB5VTQO.js} +1 -1
  87. package/web/app/immutable/chunks/{DkpprR-E.js → CbSjEe9c.js} +1 -1
  88. package/web/app/immutable/chunks/{CSSOAZoU.js → Cc7p6my_.js} +6 -6
  89. package/web/app/immutable/chunks/{N6q6QTTx.js → CcJbNmRb.js} +1 -1
  90. package/web/app/immutable/chunks/{B6R8-b5U.js → CcRQKkS2.js} +1 -1
  91. package/web/app/immutable/chunks/{CVbstW5g.js → CeO1YObE.js} +1 -1
  92. package/web/app/immutable/chunks/{KVl6LsXf.js → CjJmucSj.js} +1 -1
  93. package/web/app/immutable/chunks/{QaGc_6xV.js → CkiTXhNV.js} +1 -1
  94. package/web/app/immutable/chunks/{DqZp-_1t.js → Cl4oF0_T.js} +1 -1
  95. package/web/app/immutable/chunks/{CiJPyUxP.js → CojjevwO.js} +3 -3
  96. package/web/app/immutable/chunks/{DwO2fxa6.js → ConaHaDS.js} +1 -1
  97. package/web/app/immutable/chunks/{DfYbWhJy.js → CqShCtgy.js} +1 -1
  98. package/web/app/immutable/chunks/{B8b1g0xo.js → Cs8-gQAN.js} +1 -1
  99. package/web/app/immutable/chunks/{BCKk6VLR.js → CtPUg4ad.js} +1 -1
  100. package/web/app/immutable/chunks/{ejHd6Wjx.js → CwSA3Dwr.js} +1 -1
  101. package/web/app/immutable/chunks/{3MzspyfQ.js → Cz3L4t3K.js} +1 -1
  102. package/web/app/immutable/chunks/{pb4lGxfr.js → D1YVXYbM.js} +7 -7
  103. package/web/app/immutable/chunks/{bzpGnhNm.js → D1mml-OO.js} +1 -1
  104. package/web/app/immutable/chunks/{Cv92lPPx.js → D31GMMqw.js} +1 -1
  105. package/web/app/immutable/chunks/{BCAXQH9B.js → D4Mfx79s.js} +1 -1
  106. package/web/app/immutable/chunks/{BM96cMym.js → D6tg0AFH.js} +1 -1
  107. package/web/app/immutable/chunks/{BNkOj7Iq.js → D7tJZDri.js} +1 -1
  108. package/web/app/immutable/chunks/{Cfeu2Jlr.js → D8RydOZp.js} +1 -1
  109. package/web/app/immutable/chunks/{BM44mGhh.js → DB9IAENr.js} +1 -1
  110. package/web/app/immutable/chunks/{Posh1PTV.js → DBYwZc8q.js} +1 -1
  111. package/web/app/immutable/chunks/{Cz9zjNu0.js → DD1B8iWW.js} +1 -1
  112. package/web/app/immutable/chunks/{CBlh2RgL.js → DDDplTKI.js} +1 -1
  113. package/web/app/immutable/chunks/{BsbUKqyQ.js → DD_wk1WS.js} +2 -2
  114. package/web/app/immutable/chunks/{C4GUFULr.js → DDs4Vg0U.js} +1 -1
  115. package/web/app/immutable/chunks/{DEKRv2SA.js → DEMyUrKD.js} +1 -1
  116. package/web/app/immutable/chunks/DGR4UUG4.js +1 -0
  117. package/web/app/immutable/chunks/{CebKpXnw.js → DHUOIULZ.js} +1 -1
  118. package/web/app/immutable/chunks/{QXxjhZE8.js → DJPQ2gWl.js} +1 -1
  119. package/web/app/immutable/chunks/{Cyt32IzK.js → DOP6s1nq.js} +4 -4
  120. package/web/app/immutable/chunks/{CIQ2KSkd.js → DOb83nqS.js} +1 -1
  121. package/web/app/immutable/chunks/{BHOlTerP.js → DOlRZEzP.js} +1 -1
  122. package/web/app/immutable/chunks/{EaXPzvmD.js → DOpzySCS.js} +1 -1
  123. package/web/app/immutable/chunks/{BPYkHxEz.js → DPODhnzy.js} +2 -2
  124. package/web/app/immutable/chunks/{ZJF5u8sT.js → DPaNvpDi.js} +1 -1
  125. package/web/app/immutable/chunks/{B5hMYT01.js → DR4IMcDF.js} +1 -1
  126. package/web/app/immutable/chunks/{CcjAwET4.js → DSoSzq2S.js} +1 -1
  127. package/web/app/immutable/chunks/{CUFD0_NB.js → DUb-Rw9h.js} +1 -1
  128. package/web/app/immutable/chunks/{C3u5H0Sx.js → DW3NYbCg.js} +1 -1
  129. package/web/app/immutable/chunks/{Ba2NpplL.js → D_HBTAOp.js} +2 -2
  130. package/web/app/immutable/chunks/{ChhEI5-A.js → D_fVcaam.js} +1 -1
  131. package/web/app/immutable/chunks/{zZaNF0gw.js → DayXN3MG.js} +1 -1
  132. package/web/app/immutable/chunks/{CQeSP20x.js → DczZ5XlV.js} +3 -3
  133. package/web/app/immutable/chunks/{DBQ6-GLb.js → DfARSELN.js} +1 -1
  134. package/web/app/immutable/chunks/{BW4Lb1gb.js → DfZpv0e6.js} +1 -1
  135. package/web/app/immutable/chunks/{hjPR6Rnc.js → Dj9vAmvP.js} +1 -1
  136. package/web/app/immutable/chunks/{B2Q9zOdQ.js → DjJQPfKI.js} +1 -1
  137. package/web/app/immutable/chunks/{DLk_QjTP.js → Djo4Utna.js} +1 -1
  138. package/web/app/immutable/chunks/{CIWCsQ8M.js → DnSvdDJQ.js} +1 -1
  139. package/web/app/immutable/chunks/{BbB0oN_T.js → Dp-w6U2a.js} +1 -1
  140. package/web/app/immutable/chunks/{D5eSz8Yy.js → Dpront9T.js} +1 -1
  141. package/web/app/immutable/chunks/{GLxqtUdl.js → DsUUGZq_.js} +1 -1
  142. package/web/app/immutable/chunks/{DJKO9mMv.js → DvuFiJGX.js} +1 -1
  143. package/web/app/immutable/chunks/{BwlSugdR.js → DxZVPzM-.js} +1 -1
  144. package/web/app/immutable/chunks/{Bb1UDU6X.js → Dy75eCEg.js} +1 -1
  145. package/web/app/immutable/chunks/{Dps6NMO7.js → EZewBOPv.js} +1 -1
  146. package/web/app/immutable/chunks/{BCyYdDY9.js → GgqVQsTS.js} +1 -1
  147. package/web/app/immutable/chunks/{Dh3Ryezx.js → IFT0w_rv.js} +1 -1
  148. package/web/app/immutable/chunks/{BpOsjl4B.js → J1JvTxzS.js} +1 -1
  149. package/web/app/immutable/chunks/{BEp708sp.js → KoGdyFdq.js} +1 -1
  150. package/web/app/immutable/chunks/{CWRCHISo.js → MSSSP_6i.js} +1 -1
  151. package/web/app/immutable/chunks/{Cqdkb92f.js → MkI4_nBU.js} +1 -1
  152. package/web/app/immutable/chunks/{BghIZW1D.js → Ozne-tFy.js} +6 -6
  153. package/web/app/immutable/chunks/{CahmCdEz.js → Q0MFbJMW.js} +1 -1
  154. package/web/app/immutable/chunks/{gybWrTHf.js → QvMOlSpE.js} +1 -1
  155. package/web/app/immutable/chunks/{DZtggwE6.js → TKDyISXm.js} +3 -3
  156. package/web/app/immutable/chunks/{DlgeVS0W.js → UiwXoSAw.js} +1 -1
  157. package/web/app/immutable/chunks/{BYPBR4fh.js → VIc8fDOK.js} +1 -1
  158. package/web/app/immutable/chunks/{8M4qD2wt.js → WAk1in99.js} +1 -1
  159. package/web/app/immutable/chunks/{DgdBkeOv.js → WC951FwE.js} +1 -1
  160. package/web/app/immutable/chunks/{DLf4jaE4.js → WhG7Bgtb.js} +1 -1
  161. package/web/app/immutable/chunks/{CNvdiqGE.js → XRDpypMz.js} +1 -1
  162. package/web/app/immutable/chunks/{DBavb7qJ.js → YJmoM74E.js} +1 -1
  163. package/web/app/immutable/chunks/{CXuptX8T.js → cF3AJqS4.js} +1 -1
  164. package/web/app/immutable/chunks/{Bmtrue3d.js → dJdm8RiY.js} +1 -1
  165. package/web/app/immutable/chunks/{VBUrUMy_.js → f3mINTV_.js} +1 -1
  166. package/web/app/immutable/chunks/{DDXtES5I.js → g8wzFaTr.js} +1 -1
  167. package/web/app/immutable/chunks/{lgAZgfoh.js → h-HGzFkJ.js} +4 -4
  168. package/web/app/immutable/chunks/{fzsNMINk.js → iYBu_bIg.js} +1 -1
  169. package/web/app/immutable/chunks/{BhVtbuhY.js → igt8MaJ4.js} +1 -1
  170. package/web/app/immutable/chunks/{BNg9ANty.js → l4QAkguk.js} +1 -1
  171. package/web/app/immutable/chunks/{DVpL0nyD.js → lfN_4jdk.js} +1 -1
  172. package/web/app/immutable/chunks/{BlvFC0m2.js → nn-FB5iu.js} +1 -1
  173. package/web/app/immutable/chunks/{CKQ8NUgf.js → qVOvfVaw.js} +1 -1
  174. package/web/app/immutable/chunks/{s81wpUv4.js → qoEkEEyr.js} +1 -1
  175. package/web/app/immutable/chunks/{VSh28uJa.js → seZ3kiWB.js} +1 -1
  176. package/web/app/immutable/chunks/{uV-IGUNy.js → txAxF1ra.js} +1 -1
  177. package/web/app/immutable/chunks/{B4bjCAKW.js → vTk7TgiT.js} +1 -1
  178. package/web/app/immutable/chunks/{DMNf8Xuf.js → waEdGUDl.js} +1 -1
  179. package/web/app/immutable/chunks/{efd11D73.js → x9rbYKj9.js} +1 -1
  180. package/web/app/immutable/chunks/{Bxl01mZe.js → xn0HgFL2.js} +1 -1
  181. package/web/app/immutable/chunks/{BLBkfdhM.js → xnqT8zWA.js} +1 -1
  182. package/web/app/immutable/chunks/{k1UqmefG.js → yr_icLi6.js} +1 -1
  183. package/web/app/immutable/chunks/{BGarQU0H.js → zFZ2p9zT.js} +1 -1
  184. package/web/app/immutable/entry/{app.Chckz9N7.js → app.MRheiWYu.js} +2 -2
  185. package/web/app/immutable/entry/start.CSXPreJt.js +1 -0
  186. package/web/app/immutable/nodes/{0.DV4OxTlt.js → 0.CtDeqO-b.js} +1 -1
  187. package/web/app/immutable/nodes/{1.Ck6qIYNd.js → 1.DkbI4cS2.js} +1 -1
  188. package/web/app/immutable/nodes/{10.BJGM7dzF.js → 10.m8CCWmGC.js} +1 -1
  189. package/web/app/immutable/nodes/{14.vxfsp_3g.js → 14.ByaMuLhR.js} +1 -1
  190. package/web/app/immutable/nodes/{16.CrYjJL43.js → 16.BmFYAQ9C.js} +2 -2
  191. package/web/app/immutable/nodes/{2.F1jEoAFf.js → 2.B4Inck9s.js} +3 -3
  192. package/web/app/immutable/nodes/{3.CTi33PwH.js → 3.C3UUZ7iK.js} +1 -1
  193. package/web/app/immutable/nodes/{4.CEVSI3tX.js → 4.CtX4qgJE.js} +1 -1
  194. package/web/app/immutable/nodes/{5.Cwr-dRRa.js → 5.yLkRrv3R.js} +1 -1
  195. package/web/app/immutable/nodes/{6.CirgPdsp.js → 6.CjUsIDeG.js} +1 -1
  196. package/web/app/immutable/nodes/{7.BTCmHFrX.js → 7.DCFEio1e.js} +1 -1
  197. package/web/app/immutable/nodes/{8.Ccr1GUq8.js → 8.CGM4vick.js} +2 -2
  198. package/web/app/immutable/nodes/{9.DtRI4gIT.js → 9.V5qvVUf3.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/CE7Mossj.js +0 -1
  202. package/web/app/immutable/entry/start.BEWBWLRT.js +0 -1
@@ -1 +1 @@
1
- import"./B8o4lNgr.js";import{j as Be}from"./D46WSk8U.js";import{C as be,D as pe,c as Me,E as Ee}from"./Dfbagr79.js";import{s as Re}from"./Irb_xhXc.js";function Pe(t,r={}){const l=(r.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const p=r.duration??160,v=p<=80?"fast":p<=160?"moderate":"slow";return be(t,{axis:r.axis,tier:v},{direction:"in"})}function Ce(){return Re.get("enableComponentTransitions")}const ve={request(){},settle(){}},k=new WeakMap,Ne=2,ke=2e3;function Ve(t,r){let l=r.enabled??!0,o=r.follow,p=r.onFollowChange,v=r.onScrollStateChange,g=r.threshold??100,d=!1,m=0,s=0,c=!1,w=null,F,y=null,E=null,L=null,T=null,A=null,O=null,R=null,C=null,M=0,N=null,h=!1,P=null;const S=new Set,q=new Map,V=new WeakSet,B=new Map,u=document.createElement("div");u.dataset.followBottomAnchor="",u.setAttribute("aria-hidden","true"),u.style.cssText=`height:1px;${r.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function I(e){e===u||B.has(e)||(B.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function Y(e){const n=B.get(e);n!==void 0&&(e.style.overflowAnchor=n,B.delete(e))}function a(e){if(e)for(const i of t.children)i instanceof HTMLElement&&I(i);else for(const i of B.keys())Y(i);const n=e?"auto":"none";u.style.overflowAnchor!==n&&(u.style.overflowAnchor=n),e?(u.parentElement!==t||u.nextSibling)&&t.append(u):u.remove()}function $(){a(o)}function ye(){u.remove();for(const e of B.keys())Y(e)}function K(e){V.add(e),T?.observe(e)}function ne(){A!==null&&cancelAnimationFrame(A),C!==null&&cancelAnimationFrame(C),A=null,C=null,M=0,N=null}function J(){return Math.max(0,t.scrollHeight-t.clientHeight)}function X(){return P??=getComputedStyle(t).overflowAnchor!=="none",P}function H(){return{maximum:J(),scrollTop:t.scrollTop}}function _(e=H()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),{maximum:e.maximum,scrollTop:e.maximum}}function G(e=H()){return e.maximum-e.scrollTop<=g}function x(e=H()){const n=Math.max(0,e.maximum-e.scrollTop),i=n<=g;E?.distanceFromBottom===n&&E.isAtBottom===i&&E.isFollowing===o||(E={distanceFromBottom:n,isAtBottom:i,isFollowing:o},v?.({distanceFromBottom:n,isAtBottom:i,isFollowing:o}))}function Q(e){F=e,w===null&&(w=requestAnimationFrame(()=>{w=null;const n=F;F=void 0,!(h||!l)&&(n&&(y?.event!==n||n.defaultPrevented||performance.now()>=y.expiresAt)||(G()?z.followAndScroll():x()))}))}function D(e,n=!0){if(y=null,!l){o=e;return}const i=o!==e;i&&(o=e,a(e)),i&&n&&p?.(e),e||ne(),x()}function Z(e,n=!0){if(!S.delete(e))return;const i=(q.get(e.element)??1)-1;i>0?q.set(e.element,i):(q.delete(e.element),V.has(e.element)||T?.unobserve?.(e.element)),M=0,n&&U()}function ee(e=!0){if(S.size===0)return;const n=performance.now();for(const i of S)(!t.contains(i.element)||n>=i.expiresAt)&&Z(i,e)}function te(){if(A=null,h||!l||!o)return;if(ee(!1),S.size>0){A=requestAnimationFrame(te);return}const e=_(),{maximum:n}=e;x(e),n===N?M+=1:(M=0,N=n),M<Ne&&(A=requestAnimationFrame(te))}function U(){h||!l||!o||A!==null||(A=requestAnimationFrame(te))}function W(e=!0){if(h||!l||!o)return;const n=_(),{maximum:i}=n;x(n),M=0,N=i,e&&U()}function oe(){R===null&&(R=requestAnimationFrame(()=>{R=null,!(h||!l)&&x()}))}function Ae(){if(C=null,h||!l)return;let e=H();const n=e.scrollTop!==e.maximum;e=_(e),(n||e.maximum!==N||S.size>0)&&(M=0,N=e.maximum,U()),x(e)}function xe(){if(!(h||!l)){if(o){if(A!==null||C!==null)return;C=requestAnimationFrame(Ae);return}oe()}}function Fe(){if(!(h||!l)){if(o){W(C===null);return}oe()}}const z={followAndScroll(){D(!0),W()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(ee(),S.size>0):!1,beforeMutation(e,n){if(h||!l||!o)return ve;const i={element:e,expiresAt:performance.now()+(n.maxHoldMs??ke)};S.add(i);const f=q.get(e)??0;return q.set(e,f+1),f===0&&!V.has(e)&&T?.observe(e),M=0,U(),{request(){!S.has(i)||h||(X()?U():W())},settle(){if(!(h||!S.has(i))){if(X()){Z(i);return}Z(i,!1),W()}}}}};function re(e){e.deltaY<0?D(!1):e.deltaY>0&&(y={event:e,expiresAt:performance.now()+1e3},Q(e))}function le(e){const n=y;y=null,e.target===t&&n&&!n.event.defaultPrevented&&performance.now()<n.expiresAt&&G()&&z.followAndScroll()}let ie=0;function se(e){y=null,ie=e.touches[0]?.clientY??0}function ae(e){const n=e.touches[0]?.clientY??0;ie-n<0&&D(!1)}function ue(){Q()}function ce(e){y=null,["ArrowUp","PageUp","Home"].includes(e.key)?D(!1):["ArrowDown","PageDown","End"].includes(e.key)&&Q()}function Se(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const i=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(i.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=i.left+f:e.clientX>=i.right-f}function fe(){if(!d){if(o&&A!==null)return;let f=H();o&&(f=_(f)),x(f);return}const e=J(),n=Math.max(0,e-t.scrollTop);if(e!==m){m=e,s=n,c=!1,x();return}const i=n-s;s=n,i>0?(c=!1,D(!1)):i<0?(c=!0,G()?z.followAndScroll():x()):x()}function me(e){y=null,d=Se(e),m=J(),s=Math.max(0,m-t.scrollTop),c=!1}function j(){d&&(d=!1,c&&G()?z.followAndScroll():x())}function Le(){if(!L){L=new MutationObserver(e=>{let n=!1;for(const i of e)if(i.type==="childList"){for(const f of i.removedNodes)n=!0,f instanceof HTMLElement&&Y(f);for(const f of i.addedNodes)f instanceof HTMLElement&&f!==u&&T&&(K(f),o&&f.parentElement===t&&I(f))}n&&ee(),a(o),xe()}),L.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),T=new ResizeObserver(Fe),K(t);for(const e of t.children)e instanceof HTMLElement&&e!==u&&K(e)}}function Te(){L?.disconnect(),L=null,T?.disconnect(),T=null}function de(e=!1){if(!l||h)return;if(k.set(t,z),t.addEventListener("scroll",fe,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",re,{passive:!0}),t.addEventListener("touchstart",se,{passive:!0}),t.addEventListener("touchmove",ae,{passive:!0}),t.addEventListener("touchend",ue,{passive:!0}),t.addEventListener("keydown",ce),t.addEventListener("pointerdown",me,{passive:!0}),window.addEventListener("pointerup",j,{passive:!0}),window.addEventListener("pointercancel",j,{passive:!0}),$(),Le(),e){O=requestAnimationFrame(()=>{O=null,!(h||!l)&&(X(),o?W():x())});return}X();let n=H();o&&(n=_(n),N=n.maximum),x(n)}function he(){y=null,F=void 0,S.clear(),q.clear(),d=!1,ne(),w!==null&&cancelAnimationFrame(w),w=null,O!==null&&cancelAnimationFrame(O),O=null,R!==null&&cancelAnimationFrame(R),R=null,E=null,P=null,k.get(t)===z&&k.delete(t),Te(),ye(),t.removeEventListener("scroll",fe),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",re),t.removeEventListener("touchstart",se),t.removeEventListener("touchmove",ae),t.removeEventListener("touchend",ue),t.removeEventListener("keydown",ce),t.removeEventListener("pointerdown",me),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j)}return de(!0),{update(e){p=e.onFollowChange,v=e.onScrollStateChange,g=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,de(!0);return}l?e.follow&&!o?(D(!0,!1),W()):!e.follow&&o?D(!1,!1):O===null&&oe():o=e.follow},destroy(){h=!0,he()}}}function Ye(t){return k.get(t)?.isFollowing()??!1}function _e(t){return k.get(t)?.isNativeScrollAnchoringActive()??!1}function Ue(t){return k.get(t)?.hasActiveMutation()??!1}function ge(t,r={}){let l=t;for(;l;){const o=k.get(l);if(o)return o.beforeMutation(t,r);l=l.parentElement}return ve}function Oe(t){const{scrollTop:r,scrollHeight:l,clientHeight:o}=t;return l-r-o}function qe(t,r=100){return Oe(t)<=r}function De(t,r=!1){t.scrollTo({top:t.scrollHeight,behavior:r?"smooth":"auto"})}function Ie(t){const r=k.get(t);if(r){r.followAndScroll();return}De(t)}function Xe(t,r,l=150,o){const p=t();if(!p)return;const v=p.scrollTop,g=performance.now();function d(s){return 1-Math.pow(1-s,3)}function m(s){const c=t();if(!c)return;const w=s-g,F=Math.min(w/l,1),y=typeof r=="function"?r(c):r;c.scrollTop=v+(y-v)*d(F),F<1?requestAnimationFrame(m):o?.(c)}requestAnimationFrame(m)}function Ge(t,r="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),p=qe(t,100);if(p&&k.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:p};const v=t.querySelectorAll(r);let g=null,d=0,m;for(const s of v){const c=s.getBoundingClientRect();if(c.top>=o.bottom)break;if(c.top>=o.top){g||(g=s,d=c.top-o.top);const w=s.getAttribute("data-message-id");if(w){m={id:w,offsetFromViewport:c.top-o.top};break}}}return{element:g,offsetFromViewport:d,scrollTop:l,isNearBottom:p,...m?{message:m}:{}}}function we(t,r){if(r.message){const l=t.querySelector(`[data-message-id="${CSS.escape(r.message.id)}"]`);if(l)return{element:l,offsetFromViewport:r.message.offsetFromViewport}}return r.element?.isConnected?{element:r.element,offsetFromViewport:r.offsetFromViewport}:null}function je(t,r){return we(t,r)!==null}function Ke(t,r){const l=we(t,r);if(l){const{element:o,offsetFromViewport:p}=l,v=t.getBoundingClientRect(),m=o.getBoundingClientRect().top-v.top-p;Math.abs(m)>5&&(t.scrollTop+=m)}}function b(t,r){const l=Number.parseFloat(String(t[r]));return Number.isFinite(l)?l:0}function Je(t,r={},l={}){const o=t,v={maxHoldMs:pe[r.tier??"moderate"].settleMs*2+500};let g=ge(o,v);const d=()=>{g?.settle(),g=null},m=()=>{g??=ge(o,v)};if(!Ce()||Be())return d(),{duration:0};const s=getComputedStyle(o),c=r.axis??"y",w=o.getBoundingClientRect(),F=c==="y"?b(s,"height")||w.height:b(s,"width")||w.width;if(!Number.isFinite(F)||F<=0)return d(),{duration:0};const y=b(s,"opacity")||1,E=r.tier??"moderate",L=pe[E],T=l.direction==="out",A=typeof s.getPropertyValue=="function"?T?Me(o,{tier:E}):Ee(o,{tier:E}):{duration:T?L.exit.duration:L.settleMs,easing:L.exit.easing},O=A.duration??(T?L.exit.duration:L.settleMs),R=r.y??-4,C=b(s,"paddingTop"),M=b(s,"paddingBottom"),N=b(s,"marginTop"),h=b(s,"marginBottom"),P=b(s,"paddingLeft"),S=b(s,"paddingRight"),q=b(s,"marginLeft"),V=b(s,"marginRight");let B=null,u=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const I=(a,$)=>{o.style.overflow="hidden",c==="y"?(o.style.height=`${a*F}px`,o.style.paddingTop=`${a*C}px`,o.style.paddingBottom=`${a*M}px`,o.style.marginTop=`${a*N}px`,o.style.marginBottom=`${a*h}px`):(o.style.width=`${a*F}px`,o.style.paddingLeft=`${a*P}px`,o.style.paddingRight=`${a*S}px`,o.style.marginLeft=`${a*q}px`,o.style.marginRight=`${a*V}px`),o.style.opacity=`${a*y}`,o.style.transform=c==="y"?`translateY(${R*$}px)`:`translateX(${R*$}px)`},Y=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:O,easing:A.easing,tick:(a,$)=>{if(l.direction==="both"&&(B===null?a<1&&(u="outro"):a<B?(m(),u="outro"):a>B&&(m(),u="intro")),B=a,a===1&&u!=="outro"){Y(),d(),u="idle";return}I(a,$),g?.request(),a===0&&u==="outro"&&(d(),u="idle")}}}export{Xe as a,Ce as b,ge as c,je as d,Ge as e,Ve as f,Ie as g,Ue as h,Ye as i,_e as j,Pe as k,De as l,Ke as r,Je as s};
1
+ import"./B8o4lNgr.js";import{j as Be}from"./D46WSk8U.js";import{C as be,D as pe,c as Me,E as Ee}from"./Dfbagr79.js";import{s as Re}from"./CKXP5Dfl.js";function Pe(t,r={}){const l=(r.axis??"y")==="y"?"height":"width",o=parseFloat(getComputedStyle(t)[l]);if(!Number.isFinite(o))return{duration:0};const p=r.duration??160,v=p<=80?"fast":p<=160?"moderate":"slow";return be(t,{axis:r.axis,tier:v},{direction:"in"})}function Ce(){return Re.get("enableComponentTransitions")}const ve={request(){},settle(){}},k=new WeakMap,Ne=2,ke=2e3;function Ve(t,r){let l=r.enabled??!0,o=r.follow,p=r.onFollowChange,v=r.onScrollStateChange,g=r.threshold??100,d=!1,m=0,s=0,c=!1,w=null,F,y=null,E=null,L=null,T=null,A=null,O=null,R=null,C=null,M=0,N=null,h=!1,P=null;const S=new Set,q=new Map,V=new WeakSet,B=new Map,u=document.createElement("div");u.dataset.followBottomAnchor="",u.setAttribute("aria-hidden","true"),u.style.cssText=`height:1px;${r.layoutNeutralBottomAnchor?"margin-top:-1px;":""}overflow-anchor:auto;pointer-events:none;flex:0 0 auto;`;function I(e){e===u||B.has(e)||(B.set(e,e.style.overflowAnchor),e.style.overflowAnchor="none")}function Y(e){const n=B.get(e);n!==void 0&&(e.style.overflowAnchor=n,B.delete(e))}function a(e){if(e)for(const i of t.children)i instanceof HTMLElement&&I(i);else for(const i of B.keys())Y(i);const n=e?"auto":"none";u.style.overflowAnchor!==n&&(u.style.overflowAnchor=n),e?(u.parentElement!==t||u.nextSibling)&&t.append(u):u.remove()}function $(){a(o)}function ye(){u.remove();for(const e of B.keys())Y(e)}function K(e){V.add(e),T?.observe(e)}function ne(){A!==null&&cancelAnimationFrame(A),C!==null&&cancelAnimationFrame(C),A=null,C=null,M=0,N=null}function J(){return Math.max(0,t.scrollHeight-t.clientHeight)}function X(){return P??=getComputedStyle(t).overflowAnchor!=="none",P}function H(){return{maximum:J(),scrollTop:t.scrollTop}}function _(e=H()){return e.scrollTop!==e.maximum&&(t.scrollTop=e.maximum),{maximum:e.maximum,scrollTop:e.maximum}}function G(e=H()){return e.maximum-e.scrollTop<=g}function x(e=H()){const n=Math.max(0,e.maximum-e.scrollTop),i=n<=g;E?.distanceFromBottom===n&&E.isAtBottom===i&&E.isFollowing===o||(E={distanceFromBottom:n,isAtBottom:i,isFollowing:o},v?.({distanceFromBottom:n,isAtBottom:i,isFollowing:o}))}function Q(e){F=e,w===null&&(w=requestAnimationFrame(()=>{w=null;const n=F;F=void 0,!(h||!l)&&(n&&(y?.event!==n||n.defaultPrevented||performance.now()>=y.expiresAt)||(G()?z.followAndScroll():x()))}))}function D(e,n=!0){if(y=null,!l){o=e;return}const i=o!==e;i&&(o=e,a(e)),i&&n&&p?.(e),e||ne(),x()}function Z(e,n=!0){if(!S.delete(e))return;const i=(q.get(e.element)??1)-1;i>0?q.set(e.element,i):(q.delete(e.element),V.has(e.element)||T?.unobserve?.(e.element)),M=0,n&&U()}function ee(e=!0){if(S.size===0)return;const n=performance.now();for(const i of S)(!t.contains(i.element)||n>=i.expiresAt)&&Z(i,e)}function te(){if(A=null,h||!l||!o)return;if(ee(!1),S.size>0){A=requestAnimationFrame(te);return}const e=_(),{maximum:n}=e;x(e),n===N?M+=1:(M=0,N=n),M<Ne&&(A=requestAnimationFrame(te))}function U(){h||!l||!o||A!==null||(A=requestAnimationFrame(te))}function W(e=!0){if(h||!l||!o)return;const n=_(),{maximum:i}=n;x(n),M=0,N=i,e&&U()}function oe(){R===null&&(R=requestAnimationFrame(()=>{R=null,!(h||!l)&&x()}))}function Ae(){if(C=null,h||!l)return;let e=H();const n=e.scrollTop!==e.maximum;e=_(e),(n||e.maximum!==N||S.size>0)&&(M=0,N=e.maximum,U()),x(e)}function xe(){if(!(h||!l)){if(o){if(A!==null||C!==null)return;C=requestAnimationFrame(Ae);return}oe()}}function Fe(){if(!(h||!l)){if(o){W(C===null);return}oe()}}const z={followAndScroll(){D(!0),W()},isFollowing:()=>o,isNativeScrollAnchoringActive:()=>!o&&getComputedStyle(t).overflowAnchor!=="none",hasActiveMutation:()=>o?(ee(),S.size>0):!1,beforeMutation(e,n){if(h||!l||!o)return ve;const i={element:e,expiresAt:performance.now()+(n.maxHoldMs??ke)};S.add(i);const f=q.get(e)??0;return q.set(e,f+1),f===0&&!V.has(e)&&T?.observe(e),M=0,U(),{request(){!S.has(i)||h||(X()?U():W())},settle(){if(!(h||!S.has(i))){if(X()){Z(i);return}Z(i,!1),W()}}}}};function re(e){e.deltaY<0?D(!1):e.deltaY>0&&(y={event:e,expiresAt:performance.now()+1e3},Q(e))}function le(e){const n=y;y=null,e.target===t&&n&&!n.event.defaultPrevented&&performance.now()<n.expiresAt&&G()&&z.followAndScroll()}let ie=0;function se(e){y=null,ie=e.touches[0]?.clientY??0}function ae(e){const n=e.touches[0]?.clientY??0;ie-n<0&&D(!1)}function ue(){Q()}function ce(e){y=null,["ArrowUp","PageUp","Home"].includes(e.key)?D(!1):["ArrowDown","PageDown","End"].includes(e.key)&&Q()}function Se(e){if(e.button!==0||e.target!==t)return!1;const n=Math.max(0,t.offsetWidth-t.clientWidth);if(n===0)return!1;const i=t.getBoundingClientRect(),f=t.offsetWidth>0?n*(i.width/t.offsetWidth):n;return getComputedStyle(t).direction==="rtl"?e.clientX<=i.left+f:e.clientX>=i.right-f}function fe(){if(!d){if(o&&A!==null)return;let f=H();o&&(f=_(f)),x(f);return}const e=J(),n=Math.max(0,e-t.scrollTop);if(e!==m){m=e,s=n,c=!1,x();return}const i=n-s;s=n,i>0?(c=!1,D(!1)):i<0?(c=!0,G()?z.followAndScroll():x()):x()}function me(e){y=null,d=Se(e),m=J(),s=Math.max(0,m-t.scrollTop),c=!1}function j(){d&&(d=!1,c&&G()?z.followAndScroll():x())}function Le(){if(!L){L=new MutationObserver(e=>{let n=!1;for(const i of e)if(i.type==="childList"){for(const f of i.removedNodes)n=!0,f instanceof HTMLElement&&Y(f);for(const f of i.addedNodes)f instanceof HTMLElement&&f!==u&&T&&(K(f),o&&f.parentElement===t&&I(f))}n&&ee(),a(o),xe()}),L.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),T=new ResizeObserver(Fe),K(t);for(const e of t.children)e instanceof HTMLElement&&e!==u&&K(e)}}function Te(){L?.disconnect(),L=null,T?.disconnect(),T=null}function de(e=!1){if(!l||h)return;if(k.set(t,z),t.addEventListener("scroll",fe,{passive:!0}),t.addEventListener("scrollend",le,{passive:!0,capture:!0}),t.addEventListener("wheel",re,{passive:!0}),t.addEventListener("touchstart",se,{passive:!0}),t.addEventListener("touchmove",ae,{passive:!0}),t.addEventListener("touchend",ue,{passive:!0}),t.addEventListener("keydown",ce),t.addEventListener("pointerdown",me,{passive:!0}),window.addEventListener("pointerup",j,{passive:!0}),window.addEventListener("pointercancel",j,{passive:!0}),$(),Le(),e){O=requestAnimationFrame(()=>{O=null,!(h||!l)&&(X(),o?W():x())});return}X();let n=H();o&&(n=_(n),N=n.maximum),x(n)}function he(){y=null,F=void 0,S.clear(),q.clear(),d=!1,ne(),w!==null&&cancelAnimationFrame(w),w=null,O!==null&&cancelAnimationFrame(O),O=null,R!==null&&cancelAnimationFrame(R),R=null,E=null,P=null,k.get(t)===z&&k.delete(t),Te(),ye(),t.removeEventListener("scroll",fe),t.removeEventListener("scrollend",le,!0),t.removeEventListener("wheel",re),t.removeEventListener("touchstart",se),t.removeEventListener("touchmove",ae),t.removeEventListener("touchend",ue),t.removeEventListener("keydown",ce),t.removeEventListener("pointerdown",me),window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j)}return de(!0),{update(e){p=e.onFollowChange,v=e.onScrollStateChange,g=e.threshold??100;const n=e.enabled??!0;if(l!==n&&(n||he(),l=n,l)){o=e.follow,de(!0);return}l?e.follow&&!o?(D(!0,!1),W()):!e.follow&&o?D(!1,!1):O===null&&oe():o=e.follow},destroy(){h=!0,he()}}}function Ye(t){return k.get(t)?.isFollowing()??!1}function _e(t){return k.get(t)?.isNativeScrollAnchoringActive()??!1}function Ue(t){return k.get(t)?.hasActiveMutation()??!1}function ge(t,r={}){let l=t;for(;l;){const o=k.get(l);if(o)return o.beforeMutation(t,r);l=l.parentElement}return ve}function Oe(t){const{scrollTop:r,scrollHeight:l,clientHeight:o}=t;return l-r-o}function qe(t,r=100){return Oe(t)<=r}function De(t,r=!1){t.scrollTo({top:t.scrollHeight,behavior:r?"smooth":"auto"})}function Ie(t){const r=k.get(t);if(r){r.followAndScroll();return}De(t)}function Xe(t,r,l=150,o){const p=t();if(!p)return;const v=p.scrollTop,g=performance.now();function d(s){return 1-Math.pow(1-s,3)}function m(s){const c=t();if(!c)return;const w=s-g,F=Math.min(w/l,1),y=typeof r=="function"?r(c):r;c.scrollTop=v+(y-v)*d(F),F<1?requestAnimationFrame(m):o?.(c)}requestAnimationFrame(m)}function Ge(t,r="[data-message-id], [data-lazy-turn-key]"){const l=t.scrollTop,o=t.getBoundingClientRect(),p=qe(t,100);if(p&&k.get(t)?.isFollowing()!==!1)return{element:null,offsetFromViewport:0,scrollTop:l,isNearBottom:p};const v=t.querySelectorAll(r);let g=null,d=0,m;for(const s of v){const c=s.getBoundingClientRect();if(c.top>=o.bottom)break;if(c.top>=o.top){g||(g=s,d=c.top-o.top);const w=s.getAttribute("data-message-id");if(w){m={id:w,offsetFromViewport:c.top-o.top};break}}}return{element:g,offsetFromViewport:d,scrollTop:l,isNearBottom:p,...m?{message:m}:{}}}function we(t,r){if(r.message){const l=t.querySelector(`[data-message-id="${CSS.escape(r.message.id)}"]`);if(l)return{element:l,offsetFromViewport:r.message.offsetFromViewport}}return r.element?.isConnected?{element:r.element,offsetFromViewport:r.offsetFromViewport}:null}function je(t,r){return we(t,r)!==null}function Ke(t,r){const l=we(t,r);if(l){const{element:o,offsetFromViewport:p}=l,v=t.getBoundingClientRect(),m=o.getBoundingClientRect().top-v.top-p;Math.abs(m)>5&&(t.scrollTop+=m)}}function b(t,r){const l=Number.parseFloat(String(t[r]));return Number.isFinite(l)?l:0}function Je(t,r={},l={}){const o=t,v={maxHoldMs:pe[r.tier??"moderate"].settleMs*2+500};let g=ge(o,v);const d=()=>{g?.settle(),g=null},m=()=>{g??=ge(o,v)};if(!Ce()||Be())return d(),{duration:0};const s=getComputedStyle(o),c=r.axis??"y",w=o.getBoundingClientRect(),F=c==="y"?b(s,"height")||w.height:b(s,"width")||w.width;if(!Number.isFinite(F)||F<=0)return d(),{duration:0};const y=b(s,"opacity")||1,E=r.tier??"moderate",L=pe[E],T=l.direction==="out",A=typeof s.getPropertyValue=="function"?T?Me(o,{tier:E}):Ee(o,{tier:E}):{duration:T?L.exit.duration:L.settleMs,easing:L.exit.easing},O=A.duration??(T?L.exit.duration:L.settleMs),R=r.y??-4,C=b(s,"paddingTop"),M=b(s,"paddingBottom"),N=b(s,"marginTop"),h=b(s,"marginBottom"),P=b(s,"paddingLeft"),S=b(s,"paddingRight"),q=b(s,"marginLeft"),V=b(s,"marginRight");let B=null,u=l.direction==="out"?"outro":l.direction==="in"?"intro":"idle";const I=(a,$)=>{o.style.overflow="hidden",c==="y"?(o.style.height=`${a*F}px`,o.style.paddingTop=`${a*C}px`,o.style.paddingBottom=`${a*M}px`,o.style.marginTop=`${a*N}px`,o.style.marginBottom=`${a*h}px`):(o.style.width=`${a*F}px`,o.style.paddingLeft=`${a*P}px`,o.style.paddingRight=`${a*S}px`,o.style.marginLeft=`${a*q}px`,o.style.marginRight=`${a*V}px`),o.style.opacity=`${a*y}`,o.style.transform=c==="y"?`translateY(${R*$}px)`:`translateX(${R*$}px)`},Y=()=>{o.style.overflow="",o.style.height="",o.style.width="",o.style.paddingTop="",o.style.paddingBottom="",o.style.marginTop="",o.style.marginBottom="",o.style.paddingLeft="",o.style.paddingRight="",o.style.marginLeft="",o.style.marginRight="",o.style.opacity="",o.style.transform=""};return{duration:O,easing:A.easing,tick:(a,$)=>{if(l.direction==="both"&&(B===null?a<1&&(u="outro"):a<B?(m(),u="outro"):a>B&&(m(),u="intro")),B=a,a===1&&u!=="outro"){Y(),d(),u="idle";return}I(a,$),g?.request(),a===0&&u==="outro"&&(d(),u="idle")}}}export{Xe as a,Ce as b,ge as c,je as d,Ge as e,Ve as f,Ie as g,Ue as h,Ye as i,_e as j,Pe as k,De as l,Ke as r,Je as s};
@@ -1,4 +1,4 @@
1
- import{e as Le}from"./DBavb7qJ.js";import{c6 as Ie,aK as Me,aL as Be,c7 as Ve,f as d,aO as wt,bC as he,a6 as Ye,u as Fe,W as Dt,cf as Ue,c2 as be,c3 as Jt,cA as je,a4 as $t,V as de}from"./CSSOAZoU.js";var Ut=(function(){var t=d(function(yt,g,x,E){for(x=x||{},E=yt.length;E--;x[yt[E]]=g);return x},"o"),e=[1,24],s=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],r=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],st=[1,48],rt=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],Tt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],ie=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],mt=[12,33],Xt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(g,x,E,_,D,o,Pt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(Tt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:r,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Tt,[2,14]),t(Wt,[2,16],{12:[1,76]}),t(Tt,[2,36],{12:[1,77]}),t(Ot,[2,19]),t(Ot,[2,20]),{25:[1,78]},{27:[1,79]},t(Ot,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Tt,[2,15]),t(Wt,[2,17],{21:22,19:130,22:e,23:s,24:a,26:u,28:i}),t(Tt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:a,26:u,28:i,34:n,36:l,37:r,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Ot,[2,21]),t(Ot,[2,22]),t(R,[2,39]),t(ie,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Mt,[2,73]),{78:[1,133]},t(Mt,[2,75]),t(Mt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(mt,[2,28]),t(mt,[2,29]),t(mt,[2,30]),t(mt,[2,31]),t(mt,[2,32]),t(mt,[2,33]),t(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Wt,[2,18]),t(Tt,[2,38]),t(ie,[2,72]),t(Mt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Xt,[2,25]),t(Xt,[2,26],{12:[1,138]}),t(Xt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(g,x){if(x.recoverable)this.trace(g);else{var E=new Error(g);throw E.hash=x,E}},"parseError"),parse:d(function(g){var x=this,E=[0],_=[],D=[null],o=[],Pt=this.table,p="",xt=0,oe=0,Pe=2,le=1,De=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(vt.yy[Ht]=this.yy[Ht]);A.setInput(g,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Qt=A.yylloc;o.push(Qt);var Ne=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Ae,"popStack");function ce(){var B;return B=_.pop()||A.lex()||le,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ce,"lex");for(var M,Et,V,Kt,kt={},Vt,j,ue,Yt;;){if(Et=E[E.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((M===null||typeof M>"u")&&(M=ce()),V=Pt[Et]&&Pt[Et][M]),typeof V>"u"||!V.length||!V[0]){var Gt="";Yt=[];for(Vt in Pt[Et])this.terminals_[Vt]&&Vt>Pe&&Yt.push("'"+this.terminals_[Vt]+"'");A.showPosition?Gt="Parse error on line "+(xt+1)+`:
1
+ import{e as Le}from"./YJmoM74E.js";import{c6 as Ie,aK as Me,aL as Be,c7 as Ve,f as d,aO as wt,bC as he,a6 as Ye,u as Fe,W as Dt,cf as Ue,c2 as be,c3 as Jt,cA as je,a4 as $t,V as de}from"./Cc7p6my_.js";var Ut=(function(){var t=d(function(yt,g,x,E){for(x=x||{},E=yt.length;E--;x[yt[E]]=g);return x},"o"),e=[1,24],s=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],r=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],st=[1,48],rt=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],Tt=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],ie=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],mt=[12,33],Xt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(g,x,E,_,D,o,Pt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:s,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(Tt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:r,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Tt,[2,14]),t(Wt,[2,16],{12:[1,76]}),t(Tt,[2,36],{12:[1,77]}),t(Ot,[2,19]),t(Ot,[2,20]),{25:[1,78]},{27:[1,79]},t(Ot,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:r,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Tt,[2,15]),t(Wt,[2,17],{21:22,19:130,22:e,23:s,24:a,26:u,28:i}),t(Tt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:a,26:u,28:i,34:n,36:l,37:r,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Ot,[2,21]),t(Ot,[2,22]),t(R,[2,39]),t(ie,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Mt,[2,73]),{78:[1,133]},t(Mt,[2,75]),t(Mt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(mt,[2,28]),t(mt,[2,29]),t(mt,[2,30]),t(mt,[2,31]),t(mt,[2,32]),t(mt,[2,33]),t(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Wt,[2,18]),t(Tt,[2,38]),t(ie,[2,72]),t(Mt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Xt,[2,25]),t(Xt,[2,26],{12:[1,138]}),t(Xt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(g,x){if(x.recoverable)this.trace(g);else{var E=new Error(g);throw E.hash=x,E}},"parseError"),parse:d(function(g){var x=this,E=[0],_=[],D=[null],o=[],Pt=this.table,p="",xt=0,oe=0,Pe=2,le=1,De=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(vt.yy[Ht]=this.yy[Ht]);A.setInput(g,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var Qt=A.yylloc;o.push(Qt);var Ne=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(Ae,"popStack");function ce(){var B;return B=_.pop()||A.lex()||le,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(ce,"lex");for(var M,Et,V,Kt,kt={},Vt,j,ue,Yt;;){if(Et=E[E.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((M===null||typeof M>"u")&&(M=ce()),V=Pt[Et]&&Pt[Et][M]),typeof V>"u"||!V.length||!V[0]){var Gt="";Yt=[];for(Vt in Pt[Et])this.terminals_[Vt]&&Vt>Pe&&Yt.push("'"+this.terminals_[Vt]+"'");A.showPosition?Gt="Parse error on line "+(xt+1)+`:
2
2
  `+A.showPosition()+`
3
3
  Expecting `+Yt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(xt+1)+": Unexpected "+(M==le?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:A.match,token:this.terminals_[M]||M,line:A.yylineno,loc:Qt,expected:Yt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+M);switch(V[0]){case 1:E.push(M),D.push(A.yytext),o.push(A.yylloc),E.push(V[1]),M=null,oe=A.yyleng,p=A.yytext,xt=A.yylineno,Qt=A.yylloc;break;case 2:if(j=this.productions_[V[1]][1],kt.$=D[D.length-j],kt._$={first_line:o[o.length-(j||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(j||1)].first_column,last_column:o[o.length-1].last_column},Ne&&(kt._$.range=[o[o.length-(j||1)].range[0],o[o.length-1].range[1]]),Kt=this.performAction.apply(kt,[p,oe,xt,vt.yy,V[1],D,o].concat(De)),typeof Kt<"u")return Kt;j&&(E=E.slice(0,-1*j*2),D=D.slice(0,-1*j),o=o.slice(0,-1*j)),E.push(this.productions_[V[1]][0]),D.push(kt.$),o.push(kt._$),ue=Pt[E[E.length-2]][E[E.length-1]],E.push(ue);break;case 3:return!0}}return!0},"parse")},Oe=(function(){var yt={EOF:1,parseError:d(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),setInput:d(function(g,x){return this.yy=x||this.yy||{},this._input=g,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var x=g.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:d(function(g){var x=g.length,E=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(g){this.unput(this.match.slice(g))},"less"),pastInput:d(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var g=this.pastInput(),x=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{t as Ke,bq as k,a_ as E,bo as Se,by as Ue,b as Ve,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./yZ5s7S5S.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as Qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./B8o4lNgr.js";import{n3 as Rr,Hb as ct,ma as Wt,e9 as Mr,et as Pr,eu as Lr}from"./WOicJa2k.js";import{H as De,C as Oe,y as Ir,h as at}from"./Dfbagr79.js";import{dk as Ar,bd as Hr}from"./D24Lh2xV.js";import{ab as jt}from"./CiJPyUxP.js";import{I as it,k as Ee,h as Ge,i as Lt,s as Er}from"./D46WSk8U.js";import{f as xe}from"./CyAayV8v.js";import"./Cb1eroFO.js";import{F as fe,a1 as zr,cH as Dr,at as ot,au as pt,bX as Tr,aQ as Wr,bH as jr,bB as Fr,b4 as Br,cM as Gr,cf as Or,b1 as Ct,cR as Rt,cj as _t,bj as Kr,cw as Ur,ar as Vr}from"./ah7LAYm4.js";import{e as Jr}from"./BghIZW1D.js";import{Q as Ft,B as Qr}from"./Dw3FugoV.js";import{H as Bt}from"./CoZ28bOB.js";import{I as Vt}from"./Bx4lXaHY.js";import"./CM5eCs6m.js";import{M as Mt}from"./B87LX9tB.js";import{w as St}from"./9ZGNcJrk.js";const qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Xr($){const r=[];if(!$)return r;const d=$.split(`
1
+ import{t as Ke,bq as k,a_ as E,bo as Se,by as Ue,b as Ve,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./yZ5s7S5S.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as Qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./B8o4lNgr.js";import{n3 as Rr,Hb as ct,ma as Wt,e9 as Mr,et as Pr,eu as Lr}from"./WOicJa2k.js";import{H as De,C as Oe,y as Ir,h as at}from"./Dfbagr79.js";import{dk as Ar,bd as Hr}from"./D24Lh2xV.js";import{ab as jt}from"./CojjevwO.js";import{I as it,k as Ee,h as Ge,i as Lt,s as Er}from"./D46WSk8U.js";import{f as xe}from"./CyAayV8v.js";import"./Cb1eroFO.js";import{F as fe,a1 as zr,cH as Dr,at as ot,au as pt,bX as Tr,aQ as Wr,bH as jr,bB as Fr,b4 as Br,cM as Gr,cf as Or,b1 as Ct,cR as Rt,cj as _t,bj as Kr,cw as Ur,ar as Vr}from"./ah7LAYm4.js";import{e as Jr}from"./Ozne-tFy.js";import{Q as Ft,B as Qr}from"./CJB0AMOQ.js";import{H as Bt}from"./CoZ28bOB.js";import{I as Vt}from"./Bx4lXaHY.js";import"./CM5eCs6m.js";import{M as Mt}from"./B6GFXjaE.js";import{w as St}from"./9ZGNcJrk.js";const qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Xr($){const r=[];if(!$)return r;const d=$.split(`
2
2
  `);let m=null,b=0,u=0;const W=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),J=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,Q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:J,oldLines:K,newStart:pe,newLines:Q,lines:[]},r.push(m),b=J,u=pe};for(const P of d){if(P.startsWith("@@")){W(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):qr.some(J=>J.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Yr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Jt($,r){if(new.target)return Ke({component:Jt,...$});Je(r,!0);let d=k(r,"lineNumber",7,0),m=k(r,"fileName",7,""),b=k(r,"onSend",7),u=k(r,"onClose",7),W=k(r,"isSending",7,!1),P=k(r,"class",7,""),h=we(""),J=we(null);Ze(()=>{e(J)&&e(J).focus()});function K(){!e(h).trim()||W()||(b()?.(e(h).trim(),d(),m()),L(h,""))}function pe(I){I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),K()),I.key==="Escape"&&u()?.()}var Q={get lineNumber(){return d()},set lineNumber(I=0){d(I),y()},get fileName(){return m()},set fileName(I=""){m(I),y()},get onSend(){return b()},set onSend(I){b(I),y()},get onClose(){return u()},set onClose(I){u(I),y()},get isSending(){return W()},set isSending(I=!1){W(I),y()},get class(){return P()},set class(I=""){P(I),y()},$set:Ue,$on:(I,he)=>Ve(r,I,he)},w=Yr(),z=be(w),de=o(z);{let I=_(()=>Se.codeReview_inlineComment_askLine_placeholder());Vt(de,{onkeydown:pe,get placeholder(){return e(I)},get disabled(){return W()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(J)},set ref(he){L(J,he,!0)},get value(){return e(h)},set value(he){L(h,he,!0)}})}var ce=n(de,2);{let I=_(()=>!e(h).trim()||W());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(I)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),C=be(_e);{var H=me=>{it(me,{size:14})},Ie=me=>{fe(me,{get icon(){return zr},class:"h-3.5 w-3.5"})};E(C,me=>{W()?me(H):me(Ie,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(I,he)=>{st();var Ne=et();M(_e=>S(Ne,_e),[()=>Se.codeReview_inlineComment_cancel_label()]),i(I,Ne)},$$slots:{default:!0}}),s(z);var te=n(z,2),ke=O(te,!0);return M(I=>{Ee(z,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),S(ke,I)},[()=>Se.codeReview_inlineComment_inputHint_label()]),i($,w),Qe(Q)}var Zr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Je(r,!0);let d=k(r,"annotation",7),m=k(r,"lineNumber",7),b=k(r,"fileName",7),u=k(r,"messages",23,()=>[]),W=k(r,"onSendMessage",7),P=k(r,"onClose",7),h=k(r,"isSending",7,!1),J=k(r,"isAgentResponding",7,!1),K=k(r,"timestamp",7),pe=k(r,"class",7,""),Q=we(""),w=we(!1),z=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(Q).trim()||h()||(W()?.(e(Q).trim(),m(),b()),L(Q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(Q)?L(Q,""):L(w,!1))}function te(a){switch(a){case"highlight":return Br;case"context":return Fr;case"explanation":default:return jr}}function ke(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function I(a){return a?Ir(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),y()},get lineNumber(){return m()},set lineNumber(a){m(a),y()},get fileName(){return b()},set fileName(a){b(a),y()},get messages(){return u()},set messages(a=[]){u(a),y()},get onSendMessage(){return W()},set onSendMessage(a){W(a),y()},get onClose(){return P()},set onClose(a){P(a),y()},get isSending(){return h()},set isSending(a=!1){h(a),y()},get isAgentResponding(){return J()},set isAgentResponding(a=!1){J(a),y()},get timestamp(){return K()},set timestamp(a){K(a),y()},get class(){return pe()},set class(a=""){pe(a),y()},$set:Ue,$on:(a,T)=>Ve(r,a,T)},_e=ln(),C=o(_e),H=o(C),Ie=o(H);{let a=_(()=>te(d().type)),T=_(()=>ke(d().type));fe(Ie,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(T)??""}`}})}s(H);var me=n(H,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var Y=a=>{var T=Zr(),Z=O(T,!0);M(ee=>S(Z,ee),[()=>I(K())]),i(a,T)};E(A,a=>{K()&&a(Y)})}s(me);var ie=n(me,2);{var $e=a=>{{let T=_(()=>Se.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(T)},children:(Z,ee)=>{fe(Z,{get icon(){return Dr}})},$$slots:{default:!0}})}};E(ie,a=>{P()&&a($e)})}s(C);var Ce=n(C,2);{var ye=a=>{var T=nn(),Z=o(T);xe(Z,{type:"button",variant:"ghost",onclick:()=>L(z,!e(z)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(q,se)=>{var X=en(),c=be(X),p=O(c,!0),B=n(c,2);{let ue=_(()=>e(z)?ot:pt);fe(B,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>S(p,ue),[()=>Se.codeReview_commentThread_suggestedChanges_label()]),i(q,X)},$$slots:{default:!0}});var ee=n(Z,2);{var re=q=>{var se=rn();Ge(se,21,u,X=>X.id,(X,c)=>{var p=tn(),B=o(p),ue=o(B);{let g=_(()=>e(c).type==="user"?Gr:Or),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(B);var Re=n(B,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>Ee(B,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),De(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(X,p)}),s(se),De(3,se,()=>Oe,()=>({tier:"moderate"})),i(q,se)};E(ee,q=>{e(z)&&q(re)})}s(T),i(a,T)};E(Ce,a=>{e(he)&&a(ye)})}var U=n(Ce,2);{var j=a=>{var T=an(),Z=o(T);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(T),M(q=>S(re,q),[()=>Se.codeReview_commentThread_agentResponding_label()]),i(a,T)};E(U,a=>{J()&&a(j)})}var f=n(U,2),D=o(f);{var F=a=>{var T=sn(),Z=be(T),ee=o(Z);{let c=_(()=>Se.codeReview_commentThread_followUp_placeholder());Vt(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){L(de,p,!0)},get value(){return e(Q)},set value(p){L(Q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(Q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,B)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return Tr},class:"h-3 w-3"})};E(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var q=n(re,2);xe(q,{type:"button",variant:"ghost",onclick:()=>{L(w,!1),L(Q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var B=et();M(ue=>S(B,ue),[()=>Se.codeReview_commentThread_cancel_label()]),i(c,B)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),X=O(se,!0);M(c=>S(X,c),[()=>Se.codeReview_commentThread_inputHint_label()]),De(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,T)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>L(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(T,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Wr},class:"h-3 w-3"});var q=n(re,2),se=O(q,!0);M(X=>S(se,X),[()=>Se.codeReview_commentThread_askQuestion_label()]),i(T,ee)},$$slots:{default:!0}})};E(D,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>Ee(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),De(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),Qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Gt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function It($,r){if(new.target)return Ke({component:It,...$});Je(r,!0);let d=k(r,"fileName",7),m=k(r,"patch",7),b=k(r,"annotations",23,()=>[]),u=k(r,"initialCollapsed",7,!1),W=k(r,"contextLines",7,3),P=k(r,"onSendMessage",7),h=k(r,"isSending",7,!1),J=k(r,"additions",7,0),K=k(r,"deletions",7,0),pe=k(r,"fileDescription",7,""),Q=k(r,"class",7,"");const w=_(()=>Xr(m())),z=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(z)||e(z)==="text"||e(z)==="plaintext"||!Bt.getLanguage(e(z))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const G=N.content||"",V=`${N.oldNum}-${N.newNum}`;g.push({content:G,key:V})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
3
3
  `),V=Bt.highlight(N,{language:e(z)}).value.split(`
4
4
  `);g.forEach((ne,oe)=>{oe<V.length&&t.set(ne.key,V[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ke=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),I=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ke).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(I).has(N))return!0;const G=e(w)[t];if(!G)return!1;for(let V=Math.max(0,l-W());V<=Math.min(G.lines.length-1,l+W());V++){const ne=G.lines[V];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(I).has(oe))return!0}for(const V of e(ae)){const[ne,oe,ve]=V.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let G=0;G<l.lines.length;G++){const V=Ne(t,G,l.lines[G]);!V&&N===null?N=G:V&&N!==null&&(g.push({startIndex:N,endIndex:G-1,count:G-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function C(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),L(ae,new Set(e(ae)),!0)}function H(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];C(t,0,l.lines.length-1)}}function Ie(){L(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function Y(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){L(ce,!e(ce))}function Ce(t){L(te,t,!0)}function ye(){L(te,null)}function U(t,l,g){P()?.(t,l,g),L(te,null)}const j=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),D=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let G=0;G<N.lines.length&&l.length<3;G++){const V=N.lines[G];(V.type==="addition"||V.type==="deletion")&&l.push({line:V,hunkIndex:g,lineIndex:G})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function T(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(T(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),y()},get patch(){return m()},set patch(t){m(t),y()},get annotations(){return b()},set annotations(t=[]){b(t),y()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),y()},get contextLines(){return W()},set contextLines(t=3){W(t),y()},get onSendMessage(){return P()},set onSendMessage(t){P(t),y()},get isSending(){return h()},set isSending(t=!1){h(t),y()},get additions(){return J()},set additions(t=0){J(t),y()},get deletions(){return K()},set deletions(t=0){K(t),y()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),y()},get class(){return Q()},set class(t=""){Q(t),y()},$set:Ue,$on:(t,l)=>Ve(r,t,l)},re=wn(),q=o(re),se=o(q);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Le=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Le)},class:"h-3 w-3 text-ghost shrink-0"})}var G=n(N,4),V=o(G),ne=O(V,!0),oe=n(V,2),ve=O(oe,!0);s(G);var Me=n(G,2),Ae=o(Me);{var Te=Le=>{var He=dn(),Fe=O(He);M(()=>S(Fe,`+${J()+K()}`)),i(Le,He)};E(Ae,Le=>{(J()>0||K()>0)&&Le(Te)})}s(Me),M((Le,He)=>{S(ne,Le),S(ve,He)},[()=>e(j)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var X=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>S(N,pe())),i(t,l)};E(X,t=>{pe()&&t(c)})}s(q);var p=n(q,2);{var B=t=>{var l=gn(),g=o(l),N=o(g);Ge(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),Te=o(Ae),Le=O(Te,!0);s(Ae);var He=n(Ae,2),Fe=O(He,!0),We=n(He,2),ge=o(We);Ft(ge,()=>me(ve()),!0),s(ge),s(We),s(Me),M((qe,Xe,Ye,tt)=>{Ee(Me,1,`flex ${qe??""}`),Ee(Ae,1,`w-12 shrink-0 flex select-none ${Xe??""} border-r border-border`),S(Le,ve().newNum??ve().oldNum??""),Ee(He,1,`w-5 shrink-0 text-center select-none ${Ye??""}`),S(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>Y(ve())]),i(ne,Me)});var G=n(N,2);{var V=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>S(Me,Ae),[()=>Se.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};E(G,ne=>{e(le)>e(F).length&&ne(V)})}s(g),s(l),De(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};E(p,t=>{e(ce)&&e(F).length>0&&t(B)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:H,children:(Te,Le)=>{st();var He=et();M(Fe=>S(He,Fe),[()=>Se.codeReview_fileDiff_expandAll_label()]),i(Te,He)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=Te=>{var Le=fn(),He=n(be(Le),2);xe(He,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Ie,children:(Fe,We)=>{st();var ge=et();M(qe=>S(ge,qe),[()=>Se.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(Te,Le)};E(Me,Te=>{e(ae).size>0&&Te(Ae)})}s(oe),i(ne,oe)};E(g,ne=>{e(D)&&ne(N)})}var G=n(g,2),V=o(G);Ge(V,21,()=>e(w),Lt,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(We=>We.startIndex===0));var Te=xn(),Le=be(Te);{var He=We=>{xe(We,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>C(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,qe)=>{var Xe=Gt(),Ye=be(Xe);fe(Ye,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Ye,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>S(xt,ut),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Xe)},$$slots:{default:!0}})};E(Le,We=>{e(Ae)&&We(He)})}var Fe=n(Le,2);Ge(Fe,19,()=>e(oe).lines,(We,ge)=>`${ve}-${ge}`,(We,ge,qe)=>{const Xe=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Ye=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Xe)),xt=_(()=>Ne(ve,e(qe),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(qe)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),Ht=o(gt),rr=O(Ht,!0),nr=n(Ht,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),Et=n(bt,2),wt=o(Et),zt=o(wt);Ft(zt,()=>me(e(ge)),!0),s(zt),s(wt);var or=n(wt,2);{var ir=Pe=>{{let ze=_(()=>Se.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Ce(e(Xe)),get title(){return e(ze)},children:(je,Be)=>{fe(je,{get icon(){return Ct}})},$$slots:{default:!0}})}};E(or,Pe=>{P()&&Pe(ir)})}s(Et),s(vt);var Dt=n(vt,2);Ge(Dt,19,()=>e(Ye),(Pe,ze)=>`${Pe.line}-${ze}`,(Pe,ze)=>{var je=mn(),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(ze)));Qt(Be,{get annotation(){return e(ze)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(kt,yt,$t)=>U(kt,yt,$t),get isSending(){return h()}})}s(je),De(3,je,()=>Oe,()=>({tier:"moderate"})),i(Pe,je)});var Tt=n(Dt,2);{var lr=Pe=>{var ze=pn(),je=o(ze),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Jt(Be,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:U,onClose:ye,get isSending(){return h()}})}s(je),s(ze),i(Pe,ze)};E(Tt,Pe=>{e(tt)&&e(Ye).length===0&&Pe(lr)})}var dr=n(Tt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>C(ve,e(rt).startIndex,e(rt).endIndex),children:(ze,je)=>{var Be=Gt(),nt=be(Be);fe(nt,{get icon(){return Ct},class:"h-2.5 w-2.5"});var ft=n(nt,2),kt=O(ft,!0),yt=n(ft,2);fe(yt,{get icon(){return Ct},class:"h-2.5 w-2.5"}),M($t=>S(kt,$t),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(ze,Be)},$$slots:{default:!0}})};E(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,ze,je,Be)=>{Ee(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),Ee(gt,1,`w-20 shrink-0 flex select-none ${ze??""} border-r border-border`),S(rr,e(ge).oldNum??""),S(ar,e(ge).newNum??""),Ee(bt,1,`w-5 shrink-0 text-center select-none ${je??""}`),S(sr,Be)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>Y(e(ge))]),i(lt,At)};E(er,lt=>{e(xt)&&lt(tr)})}i(We,ut)}),i(ne,Te)}),s(V),s(G),s(l),De(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};E(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>Ee(re,1,`walkthrough-file-diff overflow-hidden bg-card ${Q()??""}`)),i($,re),Qe(ee)}var kn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),yn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Je(r,!0);let d=k(r,"categories",7),m=k(r,"onCategoryClick",7),b=k(r,"class",7,"");function u(w){const z=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return z[w%z.length]}function W(w){const z=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return z[w%z.length]}var P={get categories(){return d()},set categories(w){d(w),y()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),y()},get class(){return b()},set class(w=""){b(w),y()},$set:Ue,$on:(w,z)=>Ve(r,w,z)},h=yn(),J=o(h),K=o(J),pe=O(K,!0);s(J);var Q=n(J,2);return Ge(Q,21,d,Lt,(w,z,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ke=kn(),I=o(ke),he=O(I),Ne=n(I,2),_e=o(Ne),C=O(_e,!0),H=n(_e,2),Ie=O(H,!0),me=n(H,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,Y)=>{Ee(he,0,`h-5 w-5 ${A??""}`),S(C,e(z).title),S(Ie,e(z).description),S(R,Y)},[()=>W(de),()=>e(z).files.length===1?Se.codeReview_categoriesGrid_fileCount_one({count:e(z).files.length}):Se.codeReview_categoriesGrid_fileCount_many({count:e(z).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(Q),s(h),M(w=>{Ee(h,1,`walkthrough-categories-grid ${b()??""}`),S(pe,w)},[()=>Se.codeReview_categoriesGrid_whatChanged_title()]),i($,h),Qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Cn=x('<p class="text-sm text-subtle mt-2"> </p>'),Sn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Je(r,!0);let d=k(r,"category",7),m=k(r,"categoryIndex",7),b=k(r,"filePatchMap",7),u=k(r,"isLast",7,!1),W=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function J(C){const H=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return H[C%H.length]}const K=_(()=>d().files.map(C=>{const H=b().get(C.path);return{...C,patch:H?.patch,additions:H?.additions??0,deletions:H?.deletions??0}}));var pe={get category(){return d()},set category(C){d(C),y()},get categoryIndex(){return m()},set categoryIndex(C){m(C),y()},get filePatchMap(){return b()},set filePatchMap(C){b(C),y()},get isLast(){return u()},set isLast(C=!1){u(C),y()},get onSendMessage(){return W()},set onSendMessage(C){W(C),y()},get isSending(){return P()},set isSending(C=!1){P(C),y()},get class(){return h()},set class(C=""){h(C),y()},$set:Ue,$on:(C,H)=>Ve(r,C,H)},Q=Rn(),w=o(Q),z=o(w),de=o(z),ce=n(de,2);{var ae=C=>{var H=$n();i(C,H)};E(ce,C=>{(!u()||e(K).length>0)&&C(ae)})}s(z);var te=n(z,2),ke=o(te),I=O(ke,!0),he=n(ke,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Ge(_e,23,()=>e(K),(C,H)=>`${m()}-${H}`,(C,H,Ie)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),Y=o(A);{var ie=Ce=>{It(Ce,{get fileName(){return e(H).path},get patch(){return e(H).patch},get annotations(){return e(H).annotations},get additions(){return e(H).additions},get deletions(){return e(H).deletions},get fileDescription(){return e(H).summary},get onSendMessage(){return W()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Ce=>{var ye=Sn(),U=o(ye),j=n(o(U),2),f=O(j,!0);s(U);var D=n(U,2);{var F=le=>{var a=Cn(),T=O(a,!0);M(()=>S(T,e(H).summary)),i(le,a)};E(D,le=>{e(H).summary&&le(F)})}s(ye),M(()=>S(f,e(H).path)),i(Ce,ye)};E(Y,Ce=>{e(H).patch?Ce(ie):Ce($e,-1)})}s(A),s(me),M(()=>Ee(R,1,`w-0.5 flex-1 bg-border ${e(Ie)===e(K).length-1&&u()?"h-1/2":""}`)),i(C,me)}),s(_e),s(Q),M(C=>{Ee(Q,1,`walkthrough-category-section ${h()??""}`),Er(Q,"id",`category-${m()??""}`),Ee(de,1,`w-3 h-3 rounded-full ${C??""} ring-4 ring-background shrink-0`),S(I,d().title),S(Ne,d().description)},[()=>J(m())]),i($,Q),Qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),Ln=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),In=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),Hn=x('<div class="space-y-8 pt-4"></div>'),En=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),zn=x('<div class="space-y-3 pt-2"></div>'),Dn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),Tn=x('<div class="flex justify-end pt-2"><!></div>'),Wn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),jn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Je(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),W=k(r,"workspacePath",7),P=k(r,"changes",23,()=>[]),h=k(r,"onSendMessage",7),J=k(r,"isSending",7,!1),K=k(r,"onRegenerate",7),pe=k(r,"showCategoriesGrid",7,!0);const Q=_(()=>m()==="running"),w=_(()=>m()==="complete"),z=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((Y,ie)=>Y.line-ie.line)}))}]}return[]}),ke=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((Y,ie)=>Y.line-ie.line));return v}),I=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ke).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(I).has(v.relativePath)));Ze(()=>{if(!d()||!W())return;const v=new Set([...e(I),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Jr(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const Y=Ne(R,A.oldContent,A.newContent);if(Y){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:Y,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),L(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const Y=R.split(`
@@ -1 +1 @@
1
- import{b as a,a as t,s as r,S as s}from"./C4GUFULr.js";import{f as i}from"./CSSOAZoU.js";var l={parser:r,get db(){return new s(2)},renderer:t,styles:a,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{l as diagram};
1
+ import{b as a,a as t,s as r,S as s}from"./DDs4Vg0U.js";import{f as i}from"./Cc7p6my_.js";var l={parser:r,get db(){return new s(2)},renderer:t,styles:a,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{l as diagram};
@@ -1 +1 @@
1
- import{t as a3,bq as p,a_ as I,by as t3,b as s3}from"./yZ5s7S5S.js";import{bs as r3,a5 as l3,aD as t,bA as L,b_ as v,W as m,bn as o3,c9 as o,bV as S,aA as u,ay as n3,bS as i3,aw as N,bz as c3,bl as Z,bO as A,aB as f,bH as B}from"./B8o4lNgr.js";import{Q as v3}from"./Dw3FugoV.js";import{k as _,l as x,s as F}from"./D46WSk8U.js";import{F as m3,aP as f3,aH as g3,aX as p3,cn as u3,am as d3}from"./ah7LAYm4.js";var h3=f("<div></div>"),b3=f('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=f("<img/> <!>",1),C3=f('<span class="type-caption text-subtle font-medium"> </span>'),_3=f("<div><!></div>");function x3(y,n){if(new.target)return a3({component:x3,...y});r3(n,!0);let r=p(n,"iconName",7),i=p(n,"label",7),l=p(n,"size",7,20),d=p(n,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},E={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},U=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:f3},H=o(()=>j[r().toLowerCase()]),W=o(()=>h[r().toLowerCase()]||h.default),z=o(()=>E[r().toLowerCase()]||null),M=o(()=>U.has(r().toLowerCase()));let b=S(!1),k=S(!1);const V=o(()=>D[r().toLowerCase()]||(t(H)?`https://cdn.simpleicons.org/${t(H)}`:null));function q(){B(b,!0)}function O(){B(k,!0)}var P={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return i()},set label(e){i(e),u()},get size(){return l()},set size(e=20){l(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(n,e,a)},c=_3(),Q=l3(c);{var X=e=>{var a=h3();v3(a,()=>t(z),!0),L(a),v(()=>_(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),m(e,a)},G=e=>{var a=w3(),s=n3(a);let g;var T=i3(s,2);{var Y=w=>{var C=b3(),$=Z(C,!0);v(e3=>{x(C,`font-size: ${l()*.45}px;`),A($,e3)},[()=>i().charAt(0)]),m(w,C)};I(T,w=>{t(b)||w(Y)})}v(()=>{F(s,"src",t(V)),F(s,"alt",i()),g=_(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),N("load",s,q),N("error",s,O),c3(s),m(e,a)},J=e=>{{let a=o(()=>l()*.7);m3(e,{get icon(){return t(W)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},K=o(()=>h[r().toLowerCase()]),R=e=>{var a=C3(),s=Z(a,!0);v(g=>{x(a,`font-size: ${l()*.45}px;`),A(s,g)},[()=>i().charAt(0)]),m(e,a)};I(Q,e=>{t(z)?e(X):t(V)&&!t(k)?e(G,1):t(K)?e(J,2):e(R,-1)})}return L(c),v(()=>{_(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${l()??""}px; height: ${l()??""}px;`)}),m(y,c),o3(P)}export{x3 as M};
1
+ import{t as a3,bq as p,a_ as I,by as t3,b as s3}from"./yZ5s7S5S.js";import{bs as r3,a5 as l3,aD as t,bA as L,b_ as v,W as m,bn as o3,c9 as o,bV as S,aA as u,ay as n3,bS as i3,aw as N,bz as c3,bl as Z,bO as A,aB as f,bH as B}from"./B8o4lNgr.js";import{Q as v3}from"./CJB0AMOQ.js";import{k as _,l as x,s as F}from"./D46WSk8U.js";import{F as m3,aP as f3,aH as g3,aX as p3,cn as u3,am as d3}from"./ah7LAYm4.js";var h3=f("<div></div>"),b3=f('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=f("<img/> <!>",1),C3=f('<span class="type-caption text-subtle font-medium"> </span>'),_3=f("<div><!></div>");function x3(y,n){if(new.target)return a3({component:x3,...y});r3(n,!0);let r=p(n,"iconName",7),i=p(n,"label",7),l=p(n,"size",7,20),d=p(n,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},E={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},U=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:f3},H=o(()=>j[r().toLowerCase()]),W=o(()=>h[r().toLowerCase()]||h.default),z=o(()=>E[r().toLowerCase()]||null),M=o(()=>U.has(r().toLowerCase()));let b=S(!1),k=S(!1);const V=o(()=>D[r().toLowerCase()]||(t(H)?`https://cdn.simpleicons.org/${t(H)}`:null));function q(){B(b,!0)}function O(){B(k,!0)}var P={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return i()},set label(e){i(e),u()},get size(){return l()},set size(e=20){l(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(n,e,a)},c=_3(),Q=l3(c);{var X=e=>{var a=h3();v3(a,()=>t(z),!0),L(a),v(()=>_(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),m(e,a)},G=e=>{var a=w3(),s=n3(a);let g;var T=i3(s,2);{var Y=w=>{var C=b3(),$=Z(C,!0);v(e3=>{x(C,`font-size: ${l()*.45}px;`),A($,e3)},[()=>i().charAt(0)]),m(w,C)};I(T,w=>{t(b)||w(Y)})}v(()=>{F(s,"src",t(V)),F(s,"alt",i()),g=_(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),N("load",s,q),N("error",s,O),c3(s),m(e,a)},J=e=>{{let a=o(()=>l()*.7);m3(e,{get icon(){return t(W)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},K=o(()=>h[r().toLowerCase()]),R=e=>{var a=C3(),s=Z(a,!0);v(g=>{x(a,`font-size: ${l()*.45}px;`),A(s,g)},[()=>i().charAt(0)]),m(e,a)};I(Q,e=>{t(z)?e(X):t(V)&&!t(k)?e(G,1):t(K)?e(J,2):e(R,-1)})}return L(c),v(()=>{_(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${l()??""}px; height: ${l()??""}px;`)}),m(y,c),o3(P)}export{x3 as M};
@@ -1,4 +1,4 @@
1
- import{e as Ie}from"./B4cRl4XZ.js";import{aF as Me,K as Be,L as Ve,aG as Fe,a as d,N as Ot,ad as pe,r as Ye,c as Ue,h as At,aD as ge,aX as je,p as ne,g as fe,aM as ze}from"./pb4lGxfr.js";import{g as N,c3 as te}from"./CSSOAZoU.js";var jt=(function(){var t=d(function(bt,m,x,E){for(x=x||{},E=bt.length;E--;x[bt[E]]=m);return x},"o"),e=[1,24],s=[1,25],r=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],a=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],A=[1,31],O=[1,32],P=[1,33],M=[1,34],q=[1,35],H=[1,36],Q=[1,37],K=[1,38],G=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],nt=[1,45],st=[1,46],at=[1,47],rt=[1,48],it=[1,50],ot=[1,51],lt=[1,52],ct=[1,53],ut=[1,54],ht=[1,55],dt=[1,56],pt=[1,57],ft=[1,58],yt=[1,59],_t=[1,60],Rt=[14,42],qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],le=[12,14,33,42],Vt=[12,14,33,42,76,77,79,80],xt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:d(N(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(N(function(m,x,E,_,D,o,Nt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let vt={};vt[o[p-1].trim()]=o[p].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:70,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:71,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:72,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:73,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{14:[1,74]},t(Rt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Rt,[2,14]),t(qt,[2,16],{12:[1,76]}),t(Rt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Rt,[2,15]),t(qt,[2,17],{21:22,19:130,22:e,23:s,24:r,26:u,28:i}),t(Rt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:r,26:u,28:i,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(le,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Vt,[2,73]),{78:[1,133]},t(Vt,[2,75]),t(Vt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(qt,[2,18]),t(Rt,[2,38]),t(le,[2,72]),t(Vt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Ht,[2,25]),t(Ht,[2,26],{12:[1,138]}),t(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(N(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),"parseError"),parse:d(N(function(m){var x=this,E=[0],_=[],D=[null],o=[],Nt=this.table,p="",vt=0,ce=0,Ne=2,ue=1,Ae=o.slice.call(arguments,1),L=Object.create(this.lexer),Et={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(Et.yy[Kt]=this.yy[Kt]);L.setInput(m,Et.yy),Et.yy.lexer=L,Et.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Gt=L.yylloc;o.push(Gt);var Le=L.options&&L.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(V){E.length=E.length-2*V,D.length=D.length-V,o.length=o.length-V}N(he,"popStack"),d(he,"popStack");function Jt(){var V;return V=_.pop()||L.lex()||ue,typeof V!="number"&&(V instanceof Array&&(_=V,V=_.pop()),V=x.symbols_[V]||V),V}N(Jt,"lex"),d(Jt,"lex");for(var B,St,F,Zt,wt={},Ft,z,de,Yt;;){if(St=E[E.length-1],this.defaultActions[St]?F=this.defaultActions[St]:((B===null||typeof B>"u")&&(B=Jt()),F=Nt[St]&&Nt[St][B]),typeof F>"u"||!F.length||!F[0]){var $t="";Yt=[];for(Ft in Nt[St])this.terminals_[Ft]&&Ft>Ne&&Yt.push("'"+this.terminals_[Ft]+"'");L.showPosition?$t="Parse error on line "+(vt+1)+`:
1
+ import{e as Ie}from"./CIhr4uzF.js";import{aF as Me,K as Be,L as Ve,aG as Fe,a as d,N as Ot,ad as pe,r as Ye,c as Ue,h as At,aD as ge,aX as je,p as ne,g as fe,aM as ze}from"./D1YVXYbM.js";import{g as N,c3 as te}from"./Cc7p6my_.js";var jt=(function(){var t=d(function(bt,m,x,E){for(x=x||{},E=bt.length;E--;x[bt[E]]=m);return x},"o"),e=[1,24],s=[1,25],r=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],a=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],A=[1,31],O=[1,32],P=[1,33],M=[1,34],q=[1,35],H=[1,36],Q=[1,37],K=[1,38],G=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],nt=[1,45],st=[1,46],at=[1,47],rt=[1,48],it=[1,50],ot=[1,51],lt=[1,52],ct=[1,53],ut=[1,54],ht=[1,55],dt=[1,56],pt=[1,57],ft=[1,58],yt=[1,59],_t=[1,60],Rt=[14,42],qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Pt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],T=[1,83],k=[1,84],C=[1,85],R=[12,14,42],le=[12,14,33,42],Vt=[12,14,33,42,76,77,79,80],xt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Qt={trace:d(N(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(N(function(m,x,E,_,D,o,Nt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let vt={};vt[o[p-1].trim()]=o[p].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:70,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:71,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:72,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{13:73,19:20,20:21,21:22,22:e,23:s,24:r,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{14:[1,74]},t(Rt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Rt,[2,14]),t(qt,[2,16],{12:[1,76]}),t(Rt,[2,36],{12:[1,77]}),t(Pt,[2,19]),t(Pt,[2,20]),{25:[1,78]},{27:[1,79]},t(Pt,[2,23]),{35:80,75:81,76:S,77:T,79:k,80:C},{35:86,75:81,76:S,77:T,79:k,80:C},{35:87,75:81,76:S,77:T,79:k,80:C},{35:88,75:81,76:S,77:T,79:k,80:C},{35:89,75:81,76:S,77:T,79:k,80:C},{35:90,75:81,76:S,77:T,79:k,80:C},{35:91,75:81,76:S,77:T,79:k,80:C},{35:92,75:81,76:S,77:T,79:k,80:C},{35:93,75:81,76:S,77:T,79:k,80:C},{35:94,75:81,76:S,77:T,79:k,80:C},{35:95,75:81,76:S,77:T,79:k,80:C},{35:96,75:81,76:S,77:T,79:k,80:C},{35:97,75:81,76:S,77:T,79:k,80:C},{35:98,75:81,76:S,77:T,79:k,80:C},{35:99,75:81,76:S,77:T,79:k,80:C},{35:100,75:81,76:S,77:T,79:k,80:C},{35:101,75:81,76:S,77:T,79:k,80:C},{35:102,75:81,76:S,77:T,79:k,80:C},{35:103,75:81,76:S,77:T,79:k,80:C},{35:104,75:81,76:S,77:T,79:k,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:T,79:k,80:C},{35:106,75:81,76:S,77:T,79:k,80:C},{35:107,75:81,76:S,77:T,79:k,80:C},{35:108,75:81,76:S,77:T,79:k,80:C},{35:109,75:81,76:S,77:T,79:k,80:C},{35:110,75:81,76:S,77:T,79:k,80:C},{35:111,75:81,76:S,77:T,79:k,80:C},{35:112,75:81,76:S,77:T,79:k,80:C},{35:113,75:81,76:S,77:T,79:k,80:C},{35:114,75:81,76:S,77:T,79:k,80:C},{35:115,75:81,76:S,77:T,79:k,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:a,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:T,79:k,80:C},{35:120,75:81,76:S,77:T,79:k,80:C},{35:121,75:81,76:S,77:T,79:k,80:C},{35:122,75:81,76:S,77:T,79:k,80:C},{35:123,75:81,76:S,77:T,79:k,80:C},{35:124,75:81,76:S,77:T,79:k,80:C},{35:125,75:81,76:S,77:T,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Rt,[2,15]),t(qt,[2,17],{21:22,19:130,22:e,23:s,24:r,26:u,28:i}),t(Rt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:s,24:r,26:u,28:i,34:n,36:l,37:a,38:h,39:y,40:f,41:b,44:v,45:w,46:A,47:O,48:P,49:M,50:q,51:H,52:Q,53:K,54:G,55:J,56:Z,57:$,58:tt,59:et,60:nt,61:st,62:at,63:rt,64:it,65:ot,66:lt,67:ct,68:ut,69:ht,70:dt,71:pt,72:ft,73:yt,74:_t}),t(Pt,[2,21]),t(Pt,[2,22]),t(R,[2,39]),t(le,[2,71],{75:81,35:132,76:S,77:T,79:k,80:C}),t(Vt,[2,73]),{78:[1,133]},t(Vt,[2,75]),t(Vt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(xt,[2,28]),t(xt,[2,29]),t(xt,[2,30]),t(xt,[2,31]),t(xt,[2,32]),t(xt,[2,33]),t(xt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(qt,[2,18]),t(Rt,[2,38]),t(le,[2,72]),t(Vt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(Ht,[2,25]),t(Ht,[2,26],{12:[1,138]}),t(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(N(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),"parseError"),parse:d(N(function(m){var x=this,E=[0],_=[],D=[null],o=[],Nt=this.table,p="",vt=0,ce=0,Ne=2,ue=1,Ae=o.slice.call(arguments,1),L=Object.create(this.lexer),Et={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(Et.yy[Kt]=this.yy[Kt]);L.setInput(m,Et.yy),Et.yy.lexer=L,Et.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Gt=L.yylloc;o.push(Gt);var Le=L.options&&L.options.ranges;typeof Et.yy.parseError=="function"?this.parseError=Et.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(V){E.length=E.length-2*V,D.length=D.length-V,o.length=o.length-V}N(he,"popStack"),d(he,"popStack");function Jt(){var V;return V=_.pop()||L.lex()||ue,typeof V!="number"&&(V instanceof Array&&(_=V,V=_.pop()),V=x.symbols_[V]||V),V}N(Jt,"lex"),d(Jt,"lex");for(var B,St,F,Zt,wt={},Ft,z,de,Yt;;){if(St=E[E.length-1],this.defaultActions[St]?F=this.defaultActions[St]:((B===null||typeof B>"u")&&(B=Jt()),F=Nt[St]&&Nt[St][B]),typeof F>"u"||!F.length||!F[0]){var $t="";Yt=[];for(Ft in Nt[St])this.terminals_[Ft]&&Ft>Ne&&Yt.push("'"+this.terminals_[Ft]+"'");L.showPosition?$t="Parse error on line "+(vt+1)+`:
2
2
  `+L.showPosition()+`
3
3
  Expecting `+Yt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":$t="Parse error on line "+(vt+1)+": Unexpected "+(B==ue?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError($t,{text:L.match,token:this.terminals_[B]||B,line:L.yylineno,loc:Gt,expected:Yt})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+B);switch(F[0]){case 1:E.push(B),D.push(L.yytext),o.push(L.yylloc),E.push(F[1]),B=null,ce=L.yyleng,p=L.yytext,vt=L.yylineno,Gt=L.yylloc;break;case 2:if(z=this.productions_[F[1]][1],wt.$=D[D.length-z],wt._$={first_line:o[o.length-(z||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(z||1)].first_column,last_column:o[o.length-1].last_column},Le&&(wt._$.range=[o[o.length-(z||1)].range[0],o[o.length-1].range[1]]),Zt=this.performAction.apply(wt,[p,ce,vt,Et.yy,F[1],D,o].concat(Ae)),typeof Zt<"u")return Zt;z&&(E=E.slice(0,-1*z*2),D=D.slice(0,-1*z),o=o.slice(0,-1*z)),E.push(this.productions_[F[1]][0]),D.push(wt.$),o.push(wt._$),de=Nt[E[E.length-2]][E[E.length-1]],E.push(de);break;case 3:return!0}}return!0},"parse"),"parse")},De=(function(){var bt={EOF:1,parseError:d(N(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,E=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as _}from"./Cxw8qNpn.js";import{p as E}from"./BhVtbuhY.js";import{aF as F,K as D,O as G,aI as P,L as z,aG as B,a as c,aE as W,k as V,j as C,M as T,y as j,ad as k,U as H,r as U}from"./pb4lGxfr.js";import{g as w}from"./CSSOAZoU.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,S={axes:[],curves:[],options:x},m=structuredClone(S),K=j.radar,X=c(()=>C({...K,...T().radar}),"getConfig"),O=c(()=>m.axes,"getAxes"),N=c(()=>m.curves,"getCurves"),Y=c(()=>m.options,"getOptions"),Z=c(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),q=c(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:J(t.entries)}))},"setCurves"),J=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=O();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Q=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});m.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},m.options.ticks>y&&(k.warn(`Radar diagram ticks (${m.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),m.options.ticks=y)},"setOptions"),tt=c(()=>{V(),m=structuredClone(S)},"clear"),$={getAxes:O,getCurves:N,getOptions:Y,setAxes:Z,setCurves:q,setOptions:Q,getConfig:X,clear:tt,setAccTitle:B,getAccTitle:z,setDiagramTitle:P,getDiagramTitle:G,getAccDescription:D,setAccDescription:F},et=c(a=>{_(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),at={parse:c(async a=>{const t=await E("radar",a);k.debug(t),et(t)},"parse")},rt=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=W(t),u=st(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;nt(u,i,v,n.ticks,n.graticule),ot(u,i,v,o),b(u,i,l,h,g,n.graticule,o),L(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),st=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return U(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),nt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),ot=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function b(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=A(g,r,s,o),R=f*Math.cos(v),I=f*Math.sin(v);return{x:R,y:I}});i==="circle"?a.append("path").attr("d",M(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}w(b,"drawCurves");c(b,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}w(A,"relativeRadius");c(A,"relativeRadius");function M(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}w(M,"closedRoundCurve");c(M,"closedRoundCurve");function L(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}w(L,"drawLegend");c(L,"drawLegend");var it={draw:rt},lt=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as _}from"./C0sDoyzY.js";import{p as E}from"./igt8MaJ4.js";import{aF as F,K as D,O as G,aI as P,L as z,aG as B,a as c,aE as W,k as V,j as C,M as T,y as j,ad as k,U as H,r as U}from"./D1YVXYbM.js";import{g as w}from"./Cc7p6my_.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,S={axes:[],curves:[],options:x},m=structuredClone(S),K=j.radar,X=c(()=>C({...K,...T().radar}),"getConfig"),O=c(()=>m.axes,"getAxes"),N=c(()=>m.curves,"getCurves"),Y=c(()=>m.options,"getOptions"),Z=c(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),q=c(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:J(t.entries)}))},"setCurves"),J=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=O();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Q=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});m.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},m.options.ticks>y&&(k.warn(`Radar diagram ticks (${m.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),m.options.ticks=y)},"setOptions"),tt=c(()=>{V(),m=structuredClone(S)},"clear"),$={getAxes:O,getCurves:N,getOptions:Y,setAxes:Z,setCurves:q,setOptions:Q,getConfig:X,clear:tt,setAccTitle:B,getAccTitle:z,setDiagramTitle:P,getDiagramTitle:G,getAccDescription:D,setAccDescription:F},et=c(a=>{_(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),at={parse:c(async a=>{const t=await E("radar",a);k.debug(t),et(t)},"parse")},rt=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=W(t),u=st(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;nt(u,i,v,n.ticks,n.graticule),ot(u,i,v,o),b(u,i,l,h,g,n.graticule,o),L(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),st=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return U(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),nt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),ot=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function b(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=A(g,r,s,o),R=f*Math.cos(v),I=f*Math.sin(v);return{x:R,y:I}});i==="circle"?a.append("path").attr("d",M(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}w(b,"drawCurves");c(b,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}w(A,"relativeRadius");c(A,"relativeRadius");function M(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}w(M,"closedRoundCurve");c(M,"closedRoundCurve");function L(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}w(L,"drawLegend");c(L,"drawLegend");var it={draw:rt},lt=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1 +1 @@
1
- import{d as l,v as h,t as T}from"./CjSUqH7t.js";import{Hb as c,u2 as w}from"./WOicJa2k.js";import{i as W,c as s,n as u,b as m}from"./BhglH0qV.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function b(n){return!n||W()}function y(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(c.state));return y(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return y(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*j(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:j,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,P as c,O as d,d as e,N as i,$ as n,_ as o,f as p,U as s,A as w};
1
+ import{d as l,v as h,t as T}from"./CjSUqH7t.js";import{Hb as c,u2 as w}from"./WOicJa2k.js";import{i as W,c as s,n as u,b as m}from"./C7NJtCoD.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function b(n){return!n||W()}function y(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(c.state));return y(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return y(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*j(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:j,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,P as c,O as d,d as e,N as i,$ as n,_ as o,f as p,U as s,A as w};
@@ -1 +1 @@
1
- import{g as l,r as m,d as a}from"./EOrMcKth.js";import{p}from"./GLxqtUdl.js";import{f as t,bC as o}from"./CSSOAZoU.js";import{M as u,b as c}from"./DRGgTdjp.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
1
+ import{g as l,r as m,d as a}from"./B1BoYgO3.js";import{p}from"./DsUUGZq_.js";import{f as t,bC as o}from"./Cc7p6my_.js";import{M as u,b as c}from"./DRGgTdjp.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
@@ -1 +1 @@
1
- import{t as le,bq as u,a_ as D,by as ce,b as de}from"./yZ5s7S5S.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./B8o4lNgr.js";import{k as X,s as c,h as _e,l as R}from"./D46WSk8U.js";import{s as ke}from"./Cb1eroFO.js";import{b as we}from"./D2g8BuR1.js";import{t as j}from"./Dfbagr79.js";import{A as xe}from"./lgAZgfoh.js";import{y as ye}from"./Dw3FugoV.js";function We(y){const{itemCount:a,maxVisible:d,availableWidth:r,surface:s,overlap:b,overflowOverlap:v}=y;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?y.measureOverflowText(A)-(i>0?v:0):0)<=r)return i}return 0}function Ie(y,a=r=>requestAnimationFrame(r),d=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=r;r=void 0,y(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(y,a){if(new.target)return le({component:Se,...y});ve(a,!0);let d=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),W=P(void 0),z=P(void 0);const h=x(()=>ye[v()]),U=x(()=>s()&&e(z)!==void 0?We({itemCount:d().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>d().slice(0,e(Y))),E=x(()=>Math.max(0,d().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(W))return Ae;J??=`500 12px ${getComputedStyle(e(W)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(W)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(W)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return d()},set items(t){d(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return v()},set variant(t="card-stack"){v(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>de(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(W,t),()=>e(W)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(y,p),ge(ee)}export{Se as A};
1
+ import{t as le,bq as u,a_ as D,by as ce,b as de}from"./yZ5s7S5S.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./B8o4lNgr.js";import{k as X,s as c,h as _e,l as R}from"./D46WSk8U.js";import{s as ke}from"./Cb1eroFO.js";import{b as we}from"./D2g8BuR1.js";import{t as j}from"./Dfbagr79.js";import{A as xe}from"./h-HGzFkJ.js";import{y as ye}from"./CJB0AMOQ.js";function We(y){const{itemCount:a,maxVisible:d,availableWidth:r,surface:s,overlap:b,overflowOverlap:v}=y;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?y.measureOverflowText(A)-(i>0?v:0):0)<=r)return i}return 0}function Ie(y,a=r=>requestAnimationFrame(r),d=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=r;r=void 0,y(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(y,a){if(new.target)return le({component:Se,...y});ve(a,!0);let d=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),W=P(void 0),z=P(void 0);const h=x(()=>ye[v()]),U=x(()=>s()&&e(z)!==void 0?We({itemCount:d().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>d().slice(0,e(Y))),E=x(()=>Math.max(0,d().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(W))return Ae;J??=`500 12px ${getComputedStyle(e(W)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(W)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(W)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return d()},set items(t){d(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return v()},set variant(t="card-stack"){v(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>de(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(W,t),()=>e(W)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(y,p),ge(ee)}export{Se as A};
@@ -1 +1 @@
1
- import{f as s}from"./CSSOAZoU.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
1
+ import{f as s}from"./Cc7p6my_.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
@@ -1,4 +1,4 @@
1
- import{g as Xt}from"./D7rRJFzn.js";import{g as Qt}from"./BcK8h34a.js";import{s as Zt}from"./BJTOTozZ.js";import{f as k,aZ as Jt,c8 as Mt,bC as $,aO as ke,aS as $t,bZ as e1,cx as rt,c7 as t1,c6 as s1,c9 as i1,aL as r1,aK as a1,aP as n1,a4 as u1,bB as o1,J as l1,bw as c1,aQ as st,c3 as it,a0 as h1,aw as d1,c0 as p1}from"./CSSOAZoU.js";import{c as f1}from"./DBavb7qJ.js";import{aI as g1}from"./Irb_xhXc.js";import{c as b1}from"./CE7Mossj.js";var A1="flowchart-",Pe,k1=(Pe=class{constructor(){this.vertexCounter=0,this.config=ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=t1,this.setAccDescription=s1,this.setDiagramTitle=i1,this.getAccTitle=r1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return u1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,g,l={},m){if(!i||i.trim().length===0)return;let p;if(m!==void 0){let u;m.includes(`
1
+ import{g as Xt}from"./CLt_MpVR.js";import{g as Qt}from"./2DcZXs_F.js";import{s as Zt}from"./BVT8FnwX.js";import{f as k,aZ as Jt,c8 as Mt,bC as $,aO as ke,aS as $t,bZ as e1,cx as rt,c7 as t1,c6 as s1,c9 as i1,aL as r1,aK as a1,aP as n1,a4 as u1,bB as o1,J as l1,bw as c1,aQ as st,c3 as it,a0 as h1,aw as d1,c0 as p1}from"./Cc7p6my_.js";import{c as f1}from"./YJmoM74E.js";import{aI as g1}from"./CKXP5Dfl.js";import{c as b1}from"./DGR4UUG4.js";var A1="flowchart-",Pe,k1=(Pe=class{constructor(){this.vertexCounter=0,this.config=ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=t1,this.setAccDescription=s1,this.setDiagramTitle=i1,this.getAccTitle=r1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return u1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,g,l={},m){if(!i||i.trim().length===0)return;let p;if(m!==void 0){let u;m.includes(`
2
2
  `)?u=m+`
3
3
  `:u=`{
4
4
  `+m+`
@@ -1 +1 @@
1
- import{f as a,a6 as w,bC as x}from"./CSSOAZoU.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=B(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),B=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
1
+ import{f as a,a6 as w,bC as x}from"./Cc7p6my_.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=B(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),B=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
@@ -1,4 +1,4 @@
1
- import{t as Xt,bq as v,bo as F,a_ as me,by as Zt,bu as Ye,bs as Jt,b as Qt}from"./yZ5s7S5S.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as K,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./B8o4lNgr.js";import{h as on,k as rn,i as ln}from"./D46WSk8U.js";import{f as cn}from"./CWKAugar.js";import{j as dn}from"./Cu31g7xE.js";import{Hb as Se,no as fn,yb as un,rh as bt,nq as hn,a9 as kt}from"./WOicJa2k.js";import{bL as gn,dk as vn}from"./D24Lh2xV.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./VBUrUMy_.js";import{F as _t,b5 as wt}from"./ah7LAYm4.js";import{f as Qe}from"./CyAayV8v.js";import{w as Re}from"./9ZGNcJrk.js";import{t as bn}from"./Dfbagr79.js";import{g as kn}from"./BPC4bZ2e.js";function _n(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=wn(Ie)-1,De=We.split(`
1
+ import{t as Xt,bq as v,bo as F,a_ as me,by as Zt,bu as Ye,bs as Jt,b as Qt}from"./yZ5s7S5S.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as K,bl as Ze,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Je}from"./B8o4lNgr.js";import{h as on,k as rn,i as ln}from"./D46WSk8U.js";import{f as cn}from"./CWKAugar.js";import{j as dn}from"./Cu31g7xE.js";import{Hb as Se,no as fn,yb as un,rh as bt,nq as hn,a9 as kt}from"./WOicJa2k.js";import{bL as gn,dk as vn}from"./D24Lh2xV.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./f3mINTV_.js";import{F as _t,b5 as wt}from"./ah7LAYm4.js";import{f as Qe}from"./CyAayV8v.js";import{w as Re}from"./9ZGNcJrk.js";import{t as bn}from"./Dfbagr79.js";import{g as kn}from"./BPC4bZ2e.js";function _n(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,Z=wn(Ie)-1,De=We.split(`
2
2
  `);let s=0,I=0,le=!1;for(const B of De)if(B.startsWith("@@")){le=!0;const J=B.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);J&&(I=parseInt(J[1],10),s=parseInt(J[2],10))}else le&&(B.startsWith("+")?(re.add(s+Z),s++):B.startsWith("-")?(pe.add(I+Z),I++):B.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function wn(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),yn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),Cn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Xt({component:Dn,...q});en(c,!0);const oe=()=>Ye(Ct,"$read$",re),Ie=()=>Ye(Rt,"$workspace$",re),We=()=>Ye(It,"$workingTreeFileContentStore",re),[re,pe]=Jt(),Z=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),I=v(c,"active",7,!0),le=v(c,"workspaceId",7),B=v(c,"viewMode",7,"unified"),J=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Me=v(c,"lineWrapping",7,!1),U=v(c,"onStageHunk",7),A=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Ue=v(c,"refreshKey",7),Ae=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),Be=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Xe(()=>le())??kn()?.workspaceId??"",yt=Math.random().toString(36).substring(2,8),$e=`tracked-diff:${crypto.randomUUID()}`,Ct=gn(de,$e),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),$=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?At(t(Q).chunk,t(ee)):""),xt=d(()=>!t($)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
3
3
  `.repeat(W()-1):""),St=d(()=>t(st)+t($)),Ht=d(()=>t(st)+t(V));let _=ae(null),je=ae(null),_e=null,we=ae(!1);const Rt=vn(de),at=pt(void 0),ot=pt(""),It=dn(ot,at),rt=d(Ie),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Ut(t(Le)));let ye=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t($))}:off${W()}`:void 0),Mt=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Ut(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function At(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
4
4
  `)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
@@ -1 +1 @@
1
- import{s as r,a as s,c as e,C as t}from"./efd11D73.js";import{f as l}from"./CSSOAZoU.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};
1
+ import{s as r,a as s,c as e,C as t}from"./x9rbYKj9.js";import{f as l}from"./Cc7p6my_.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};