@intent-hq/web 2.285.0 → 2.285.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 (207) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.C7deqMvK.css +1 -0
  3. package/web/app/immutable/assets/14.BlmY1boZ.css +1 -0
  4. package/web/app/immutable/chunks/{DuKFlC9j.js → -28a0Rpo.js} +1 -1
  5. package/web/app/immutable/chunks/{CJQrM64N.js → 1jz98Ul-.js} +3 -3
  6. package/web/app/immutable/chunks/{CpPsvdhC.js → 2rccKIGz.js} +1 -1
  7. package/web/app/immutable/chunks/{CV2PaujE.js → 5CJ1bNgk.js} +2 -2
  8. package/web/app/immutable/chunks/{DX3MlPN0.js → 5kh1cVrP.js} +1 -1
  9. package/web/app/immutable/chunks/{Cj_Tm5wU.js → 7QWFdPPa.js} +1 -1
  10. package/web/app/immutable/chunks/{Dlu0_GVa.js → 7caXdYyh.js} +1 -1
  11. package/web/app/immutable/chunks/{D2Fdja4t.js → 8FYcNMaP.js} +1 -1
  12. package/web/app/immutable/chunks/{DYX4kEq9.js → 8GbmPV2m.js} +1 -1
  13. package/web/app/immutable/chunks/{CHjSilfW.js → 8g3Qti3a.js} +1 -1
  14. package/web/app/immutable/chunks/{DWzbf_aU.js → B-AsrK1N.js} +1 -1
  15. package/web/app/immutable/chunks/{BfCM8g6D.js → B0axNsLD.js} +1 -1
  16. package/web/app/immutable/chunks/{BOxsG-23.js → B0iSj6Qj.js} +1 -1
  17. package/web/app/immutable/chunks/{zuhzlizP.js → B1B2o2qb.js} +1 -1
  18. package/web/app/immutable/chunks/{CkqPtSf5.js → B1FLC-39.js} +1 -1
  19. package/web/app/immutable/chunks/{B91hcydD.js → B2IwJ0C7.js} +1 -1
  20. package/web/app/immutable/chunks/{DRdRLmUz.js → B3A7i24h.js} +1 -1
  21. package/web/app/immutable/chunks/{70g8kmTR.js → B86r8V_z.js} +1 -1
  22. package/web/app/immutable/chunks/{BMCIczJY.js → B9FQNmSE.js} +1 -1
  23. package/web/app/immutable/chunks/{ASxUuKIZ.js → BBZQrleJ.js} +1 -1
  24. package/web/app/immutable/chunks/{D6dtEt_1.js → BDIipoBg.js} +1 -1
  25. package/web/app/immutable/chunks/{C4eeWJf-.js → BI6sFbC6.js} +1 -1
  26. package/web/app/immutable/chunks/{Crq4Js3_.js → BJlNqozc.js} +1 -1
  27. package/web/app/immutable/chunks/{t61BPD62.js → BKhT5aMF.js} +1 -1
  28. package/web/app/immutable/chunks/{DwW5MiN3.js → BMxoBzS-.js} +1 -1
  29. package/web/app/immutable/chunks/BN3XIZ9N.js +1 -0
  30. package/web/app/immutable/chunks/{C9o24MoC.js → BNR8MshC.js} +1 -1
  31. package/web/app/immutable/chunks/{DKF2EjTY.js → BOOP-Qi7.js} +1 -1
  32. package/web/app/immutable/chunks/{t7uelISx.js → BQocPChN.js} +1 -1
  33. package/web/app/immutable/chunks/{WPmFGY7m.js → BRVFDgLN.js} +1 -1
  34. package/web/app/immutable/chunks/{CozIiFS7.js → BRXjpEKj.js} +1 -1
  35. package/web/app/immutable/chunks/{DlYrPe_w.js → BRyh89I2.js} +1 -1
  36. package/web/app/immutable/chunks/{CHXt_ftw.js → BVe8ENxa.js} +1 -1
  37. package/web/app/immutable/chunks/{Xb_csWgU.js → BWK1cxA-.js} +1 -1
  38. package/web/app/immutable/chunks/{BRiWAWWR.js → BXeodVea.js} +1 -1
  39. package/web/app/immutable/chunks/{CgWJ7tKh.js → BZNBioKR.js} +1 -1
  40. package/web/app/immutable/chunks/{CAkMXI-6.js → B_rE7pTY.js} +3 -3
  41. package/web/app/immutable/chunks/{D7P2CXpO.js → BbSVq98m.js} +3 -3
  42. package/web/app/immutable/chunks/{Uv0U-1kP.js → Bd_zoxlq.js} +1 -1
  43. package/web/app/immutable/chunks/{BLT4lwJH.js → BhFzG2m5.js} +1 -1
  44. package/web/app/immutable/chunks/{yQykulND.js → BkGES2dH.js} +1 -1
  45. package/web/app/immutable/chunks/{Y3UAS5wV.js → BkUyhDSN.js} +1 -1
  46. package/web/app/immutable/chunks/{DBicYI5c.js → BljdYSFG.js} +1 -1
  47. package/web/app/immutable/chunks/{C8BEXIPc.js → Bm0i0poa.js} +1 -1
  48. package/web/app/immutable/chunks/{-KtznSS-.js → BpDWevQm.js} +1 -1
  49. package/web/app/immutable/chunks/{oDL-pLcj.js → BppuObA-.js} +1 -1
  50. package/web/app/immutable/chunks/{ClNs6jou.js → Br1NuFR4.js} +1 -1
  51. package/web/app/immutable/chunks/{YpQeV5ep.js → Brvlxy7o.js} +6 -6
  52. package/web/app/immutable/chunks/{uKt9v9GZ.js → BuzDoFtp.js} +1 -1
  53. package/web/app/immutable/chunks/{Btdv9Hrh.js → BwyFgBMf.js} +1 -1
  54. package/web/app/immutable/chunks/{BYD9CrbJ.js → ByXCUqki.js} +1 -1
  55. package/web/app/immutable/chunks/{CHaUiotE.js → C-4A4IE5.js} +1 -1
  56. package/web/app/immutable/chunks/{BwcCzTcz.js → C-UDw5Tq.js} +1 -1
  57. package/web/app/immutable/chunks/{xS44oH53.js → C16rTXBl.js} +1 -1
  58. package/web/app/immutable/chunks/{BEu9jjb7.js → C2A2DRW8.js} +1 -1
  59. package/web/app/immutable/chunks/{BlGCnZqu.js → C4G5pTES.js} +1 -1
  60. package/web/app/immutable/chunks/{zOdhHtWD.js → C4cmtHcK.js} +1 -1
  61. package/web/app/immutable/chunks/{DhkOw60r.js → C6arAqYh.js} +1 -1
  62. package/web/app/immutable/chunks/{BuKPgt_Y.js → C7Jlr_fW.js} +1 -1
  63. package/web/app/immutable/chunks/{CotgBJSP.js → C7JnLSwO.js} +1 -1
  64. package/web/app/immutable/chunks/{Ceyasj46.js → C86tMEQl.js} +1 -1
  65. package/web/app/immutable/chunks/{JUqct0gC.js → CB41wJvY.js} +1 -1
  66. package/web/app/immutable/chunks/{Bpei5bK8.js → CCiEc18v.js} +1 -1
  67. package/web/app/immutable/chunks/{CWgAcLvx.js → CESxeRaW.js} +1 -1
  68. package/web/app/immutable/chunks/{D1dPbxoX.js → CF5eVS4a.js} +1 -1
  69. package/web/app/immutable/chunks/{Bi5G5jdW.js → CFLmgcZ2.js} +1 -1
  70. package/web/app/immutable/chunks/{C4mRaa7L.js → CFWKUraB.js} +1 -1
  71. package/web/app/immutable/chunks/{CdT170lG.js → CHvPocri.js} +6 -6
  72. package/web/app/immutable/chunks/{CZUDc12W.js → CJ5q69S2.js} +1 -1
  73. package/web/app/immutable/chunks/{BrPrpju0.js → CJanC5Ep.js} +1 -1
  74. package/web/app/immutable/chunks/{COL0pyet.js → CL07SqwN.js} +1 -1
  75. package/web/app/immutable/chunks/{D8HMZQ9R.js → CMW390Ho.js} +1 -1
  76. package/web/app/immutable/chunks/{CQ7Jnj9E.js → CPFeDAYz.js} +1 -1
  77. package/web/app/immutable/chunks/{CfAqizJ3.js → CPfLXeW6.js} +1 -1
  78. package/web/app/immutable/chunks/{C64d2sYd.js → CRDUqeV4.js} +1 -1
  79. package/web/app/immutable/chunks/{CULilvBT.js → CRVvVHb6.js} +1 -1
  80. package/web/app/immutable/chunks/{CRhgbDg2.js → CSEY7eae.js} +51 -51
  81. package/web/app/immutable/chunks/{DG5KvEVf.js → CU55NFgS.js} +1 -1
  82. package/web/app/immutable/chunks/{D38kCxZ9.js → CU8kDZtZ.js} +1 -1
  83. package/web/app/immutable/chunks/{BijxVENA.js → CUXVA-if.js} +1 -1
  84. package/web/app/immutable/chunks/{B0UymEvm.js → CUg1PJGU.js} +1 -1
  85. package/web/app/immutable/chunks/{z5aynuor.js → CV39KpXZ.js} +1 -1
  86. package/web/app/immutable/chunks/{Dbuv3b_7.js → CVS6JAeI.js} +2 -2
  87. package/web/app/immutable/chunks/{D4K0RFHm.js → CWk1-l9G.js} +1 -1
  88. package/web/app/immutable/chunks/{RDcDz1X1.js → CXzQiXqo.js} +1 -1
  89. package/web/app/immutable/chunks/{Bj2YjLqH.js → CYGFsNQt.js} +4 -4
  90. package/web/app/immutable/chunks/{B4GCMjY3.js → CYRNOCJS.js} +1 -1
  91. package/web/app/immutable/chunks/{DZRaa7LH.js → CZPue0YQ.js} +1 -1
  92. package/web/app/immutable/chunks/{u9Jr5xJ2.js → C_qRG_d6.js} +1 -1
  93. package/web/app/immutable/chunks/{BDnf9UFd.js → CeX_JgQ8.js} +1 -1
  94. package/web/app/immutable/chunks/{CTozw_6a.js → Cgpa-_zf.js} +1 -1
  95. package/web/app/immutable/chunks/{1lVCCXL6.js → ChGUVGxa.js} +1 -1
  96. package/web/app/immutable/chunks/{DxlpLNnB.js → CirCFyx8.js} +1 -1
  97. package/web/app/immutable/chunks/{BW5WMYMF.js → CjVKCAhV.js} +1 -1
  98. package/web/app/immutable/chunks/{Cz9_gz0r.js → Cj_VsYeJ.js} +1 -1
  99. package/web/app/immutable/chunks/{BioKfdhs.js → CoKXQqf3.js} +1 -1
  100. package/web/app/immutable/chunks/{CTwzQE4y.js → CojR6_VO.js} +1 -1
  101. package/web/app/immutable/chunks/{DOPcy6T2.js → Cokadwna.js} +1 -1
  102. package/web/app/immutable/chunks/{CDnN0LSW.js → CwfLTHmg.js} +1 -1
  103. package/web/app/immutable/chunks/{Dijv8faG.js → CxEpq35B.js} +1 -1
  104. package/web/app/immutable/chunks/{DhQAmnDS.js → CxIAVS7W.js} +1 -1
  105. package/web/app/immutable/chunks/{D6XYE7JV.js → Cz0LAinM.js} +1 -1
  106. package/web/app/immutable/chunks/{BqEq2gS8.js → D6jhGmWw.js} +1 -1
  107. package/web/app/immutable/chunks/{_bgnudZi.js → D7W-91yu.js} +2 -2
  108. package/web/app/immutable/chunks/{BFDtkLj3.js → DAZ7M8Iu.js} +1 -1
  109. package/web/app/immutable/chunks/{CwK4Fl7A.js → DBJ9mL60.js} +2 -2
  110. package/web/app/immutable/chunks/{KxpMwUsB.js → DDTUopJj.js} +1 -1
  111. package/web/app/immutable/chunks/{DQafeec3.js → DEa-uati.js} +1 -1
  112. package/web/app/immutable/chunks/{ChmO5DTP.js → DIVkaVeu.js} +1 -1
  113. package/web/app/immutable/chunks/{nvBTDqJi.js → DIrtLgLg.js} +1 -1
  114. package/web/app/immutable/chunks/{sgXcAFR7.js → DJTJAQis.js} +1 -1
  115. package/web/app/immutable/chunks/{J5Q3706J.js → DL3ARZ_c.js} +1 -1
  116. package/web/app/immutable/chunks/{tWOclZbM.js → DLxz5ozo.js} +1 -1
  117. package/web/app/immutable/chunks/{ChDcu7sM.js → DMfES9uz.js} +1 -1
  118. package/web/app/immutable/chunks/{DFXw4s8S.js → DN8Pf3NZ.js} +1 -1
  119. package/web/app/immutable/chunks/{DFvnP41F.js → DXKbroH4.js} +1 -1
  120. package/web/app/immutable/chunks/{hAyFyjes.js → DX_Gd1Yg.js} +1 -1
  121. package/web/app/immutable/chunks/{DpXfO8nM.js → DXiqprO7.js} +1 -1
  122. package/web/app/immutable/chunks/{UMObs5wi.js → DZM0AclB.js} +1 -1
  123. package/web/app/immutable/chunks/{C5vTcsb2.js → DZpXrxOW.js} +1 -1
  124. package/web/app/immutable/chunks/{c0MObYhr.js → DaCu1x73.js} +1 -1
  125. package/web/app/immutable/chunks/{Cve5pOPi.js → DcsiOs5e.js} +2 -2
  126. package/web/app/immutable/chunks/{ingscYYg.js → DeUGaO3F.js} +1 -1
  127. package/web/app/immutable/chunks/{F42L1irN.js → DeZqs0Aa.js} +1 -1
  128. package/web/app/immutable/chunks/{Butq4Y1l.js → Df_P4OB8.js} +4 -4
  129. package/web/app/immutable/chunks/{DX0AlGFV.js → DhW3NyRM.js} +1 -1
  130. package/web/app/immutable/chunks/{BkTES_s_.js → DjNNjfWe.js} +1 -1
  131. package/web/app/immutable/chunks/{CFzJYgT5.js → Dk67nYG4.js} +1 -1
  132. package/web/app/immutable/chunks/{Czzw_Pvc.js → DkOlBGw9.js} +1 -1
  133. package/web/app/immutable/chunks/{D8U0PEIU.js → DnIBzt66.js} +1 -1
  134. package/web/app/immutable/chunks/{DxJXJeWp.js → DnMN3vhu.js} +1 -1
  135. package/web/app/immutable/chunks/{Cp09JH6d.js → Do61TRyA.js} +1 -1
  136. package/web/app/immutable/chunks/{DXJ3D6-0.js → DppUEQlx.js} +2 -2
  137. package/web/app/immutable/chunks/{CvZhT_UL.js → DrAAnpE4.js} +1 -1
  138. package/web/app/immutable/chunks/{I1eQnBry.js → Ds63mArO.js} +1 -1
  139. package/web/app/immutable/chunks/{CfYh5raT.js → Du4evTKh.js} +1 -1
  140. package/web/app/immutable/chunks/{s4JAFzR2.js → DvgQXqn8.js} +1 -1
  141. package/web/app/immutable/chunks/{BFlCxloC.js → DxAGy1j2.js} +1 -1
  142. package/web/app/immutable/chunks/{CkNc-1DL.js → DxiprTfr.js} +1 -1
  143. package/web/app/immutable/chunks/{iPSaMdjW.js → DzCGUcV0.js} +1 -1
  144. package/web/app/immutable/chunks/{6ASkEKEx.js → DzaZUgpd.js} +1 -1
  145. package/web/app/immutable/chunks/{D72pFxfr.js → E_iSbtB7.js} +1 -1
  146. package/web/app/immutable/chunks/{DB6_aOnf.js → GsJjNaRQ.js} +1 -1
  147. package/web/app/immutable/chunks/{D4RvTAYA.js → K6vfdwtB.js} +1 -1
  148. package/web/app/immutable/chunks/{DX0hE1oC.js → Kp0b1ruy.js} +1 -1
  149. package/web/app/immutable/chunks/{DB_2g4tK.js → L3VJw30K.js} +1 -1
  150. package/web/app/immutable/chunks/{lrd8vBcb.js → MaNGfg3E.js} +1 -1
  151. package/web/app/immutable/chunks/{Czc4IAh9.js → RZuM4AOZ.js} +1 -1
  152. package/web/app/immutable/chunks/{DlYL66WK.js → SmFOkcUl.js} +2 -2
  153. package/web/app/immutable/chunks/{D82TCSK5.js → SseECFRl.js} +1 -1
  154. package/web/app/immutable/chunks/{BRsvqYQJ.js → UuvlXG3N.js} +1 -1
  155. package/web/app/immutable/chunks/{C8xd2WWY.js → V93OFusI.js} +1 -1
  156. package/web/app/immutable/chunks/{SlH326tK.js → ZdEA_dMH.js} +1 -1
  157. package/web/app/immutable/chunks/{2eBUyHOS.js → ZoB5O3p5.js} +1 -1
  158. package/web/app/immutable/chunks/{CrXlvCkv.js → _0WtLi7E.js} +1 -1
  159. package/web/app/immutable/chunks/{BRaDvZhu.js → bMubla_Y.js} +1 -1
  160. package/web/app/immutable/chunks/{CYElNz1m.js → dQbNTP6g.js} +1 -1
  161. package/web/app/immutable/chunks/{_Y7Nvr11.js → eCT3OTKv.js} +1 -1
  162. package/web/app/immutable/chunks/{CoyHhRwd.js → eEAP7Xpt.js} +1 -1
  163. package/web/app/immutable/chunks/{BRrnGZdq.js → ei598LLO.js} +1 -1
  164. package/web/app/immutable/chunks/{CVUNrf_6.js → f6z1GwnK.js} +1 -1
  165. package/web/app/immutable/chunks/{LiYeJQ_y.js → gjSCi5m7.js} +1 -1
  166. package/web/app/immutable/chunks/{Qyi-W7KZ.js → h1XmuECQ.js} +1 -1
  167. package/web/app/immutable/chunks/{CEQqb3fD.js → hAxhHts1.js} +1 -1
  168. package/web/app/immutable/chunks/{BuRX-tbO.js → hWIBvymI.js} +1 -1
  169. package/web/app/immutable/chunks/{BMqkZHSQ.js → jaaH5C0Q.js} +4 -4
  170. package/web/app/immutable/chunks/{CMO5zsjQ.js → myZDtJXK.js} +1 -1
  171. package/web/app/immutable/chunks/{9s6R6NFl.js → oJTclIBD.js} +1 -1
  172. package/web/app/immutable/chunks/{BB-v27nE.js → plyRit0G.js} +1 -1
  173. package/web/app/immutable/chunks/{CMt5MqSJ.js → qeXdRvWo.js} +1 -1
  174. package/web/app/immutable/chunks/{BoAgG62K.js → r4CLVtHq.js} +1 -1
  175. package/web/app/immutable/chunks/{B0a31Ljt.js → rWJMAVLd.js} +1 -1
  176. package/web/app/immutable/chunks/{C7A26Vlu.js → rhjZw8sU.js} +1 -1
  177. package/web/app/immutable/chunks/{Cwxvd99b.js → sXKzlFlw.js} +1 -1
  178. package/web/app/immutable/chunks/{B9DD1rvd.js → tFyEMU62.js} +1 -1
  179. package/web/app/immutable/chunks/{BA2m5W5p.js → v7z0FYd3.js} +1 -1
  180. package/web/app/immutable/chunks/{DPY72hn4.js → wpGLcbRS.js} +1 -1
  181. package/web/app/immutable/chunks/{C-PJ15bY.js → yHWT-tYZ.js} +1 -1
  182. package/web/app/immutable/chunks/{Bj2REgAl.js → z5gMR8PK.js} +1 -1
  183. package/web/app/immutable/chunks/{_eQjP0_7.js → z9EZm6n3.js} +7 -7
  184. package/web/app/immutable/chunks/{D0csyvlS.js → zQb6b7ro.js} +1 -1
  185. package/web/app/immutable/chunks/{BerKnKvV.js → zTwqXhYc.js} +1 -1
  186. package/web/app/immutable/entry/{app.ZJRI8LL8.js → app.DZ4OVxxm.js} +2 -2
  187. package/web/app/immutable/entry/start.ilZGKyo7.js +1 -0
  188. package/web/app/immutable/nodes/{0.B_5IeAcY.js → 0.D3xO0Bfu.js} +1 -1
  189. package/web/app/immutable/nodes/{1.D2RcMrk8.js → 1.BWTJbi5q.js} +1 -1
  190. package/web/app/immutable/nodes/{10.a-yBB_mg.js → 10.BmxBWEnM.js} +1 -1
  191. package/web/app/immutable/nodes/{14.BRMrhd95.js → 14.3LWnN9x0.js} +1 -1
  192. package/web/app/immutable/nodes/{16.DsObfcQu.js → 16.4benIGhY.js} +2 -2
  193. package/web/app/immutable/nodes/2.DgcbRBqN.js +9 -0
  194. package/web/app/immutable/nodes/{3.BAb5j4vs.js → 3.DVIx9MB1.js} +1 -1
  195. package/web/app/immutable/nodes/{4.i3m7hv4J.js → 4.C98PwPGl.js} +1 -1
  196. package/web/app/immutable/nodes/{5.kQ7xzuNs.js → 5.B8hE43L9.js} +1 -1
  197. package/web/app/immutable/nodes/{6.De5Z6N1w.js → 6.SBEfch8f.js} +1 -1
  198. package/web/app/immutable/nodes/{7.Dqm5QJxM.js → 7.Bp3mvS1N.js} +1 -1
  199. package/web/app/immutable/nodes/{8.BT-G_bE5.js → 8.BVjakAR6.js} +2 -2
  200. package/web/app/immutable/nodes/{9.DIcsOChV.js → 9.DZ1u8CM8.js} +1 -1
  201. package/web/app/version.json +1 -1
  202. package/web/index.html +10 -10
  203. package/web/app/immutable/assets/0.CiMOlbVe.css +0 -1
  204. package/web/app/immutable/assets/14.C9CN3Rkb.css +0 -1
  205. package/web/app/immutable/chunks/B4kKZm1B.js +0 -1
  206. package/web/app/immutable/entry/start.B_ChBWnN.js +0 -1
  207. package/web/app/immutable/nodes/2.BX2UV9md.js +0 -9
@@ -1 +1 @@
1
- import{f as i,c3 as l,bA as d,aA as o}from"./CdT170lG.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),f=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,f as g,h};
1
+ import{f as i,c3 as l,bA as d,aA as o}from"./CHvPocri.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),f=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,f as g,h};
@@ -1 +1 @@
1
- import{f as o}from"./CdT170lG.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
1
+ import{f as o}from"./CHvPocri.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
@@ -1,4 +1,4 @@
1
- import{p as B}from"./UMObs5wi.js";import{f as b,$ as m,c4 as C,a6 as S,bC as w,c7 as D,aL as P,c9 as T,aP as z,aK as E,c6 as F,aN as A,ax as W,a0 as _}from"./CdT170lG.js";import{p as N}from"./H_dyzYix.js";var L=W.packet,u,v=(u=class{constructor(){this.packet=[],this.setAccTitle=D,this.getAccTitle=P,this.setDiagramTitle=T,this.getDiagramTitle=z,this.getAccDescription=E,this.setAccDescription=F}getConfig(){const t=m({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){_(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{B(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<M;){const[p,o]=I({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),I=b((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{const t=await N("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,r)},"parse")},K=b((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=C(t);f.attr("viewBox",`0 0 ${k} ${g}`),S(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),j={draw:K},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=b(({packet:e}={})=>{const t=m(G,e);return`
1
+ import{p as B}from"./DZM0AclB.js";import{f as b,$ as m,c4 as C,a6 as S,bC as w,c7 as D,aL as P,c9 as T,aP as z,aK as E,c6 as F,aN as A,ax as W,a0 as _}from"./CHvPocri.js";import{p as N}from"./H_dyzYix.js";var L=W.packet,u,v=(u=class{constructor(){this.packet=[],this.setAccTitle=D,this.getAccTitle=P,this.setDiagramTitle=T,this.getDiagramTitle=z,this.getAccDescription=E,this.setAccDescription=F}getConfig(){const t=m({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){_(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{B(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<M;){const[p,o]=I({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),I=b((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{const t=await N("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,r)},"parse")},K=b((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=C(t);f.attr("viewBox",`0 0 ${k} ${g}`),S(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),j={draw:K},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=b(({packet:e}={})=>{const t=m(G,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1 +1 @@
1
- import{G2 as s,ht as a,kY as S,mu as O,l9 as m}from"./C51KzdSG.js";import{x as f}from"./1lVCCXL6.js";import{dr as d,aS as k,dz as b}from"./dimBDqRX.js";const v=s.createSelector((t,e)=>{if(k.select(t,e)&&b.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),y=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>f((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),z=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),E=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),M=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),G=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),B=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?O(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),J=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),U=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),V=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),Y=s.createSelector((t,e,r)=>{const c=u.select(t,e,r);return!!c&&!f(c.runtime?.status)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending}),q=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{U as selectAllWorkspaceScriptEntries,Y as selectCanDeleteScript,l as selectCanReadScriptDefinition,y as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,q as selectScriptListPageState,z as selectScriptOutput,A as selectScriptOutputStreamReady,M as selectScriptOutputViewerWorkspaceIds,V as selectScriptReadJournal,E as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,G as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,J as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
1
+ import{G2 as s,ht as a,kY as S,mu as O,l9 as m}from"./C51KzdSG.js";import{x as f}from"./ChGUVGxa.js";import{dr as d,aS as k,dz as b}from"./dimBDqRX.js";const v=s.createSelector((t,e)=>{if(k.select(t,e)&&b.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),y=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>f((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),z=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),E=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),M=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),G=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),B=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?O(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),J=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),U=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),V=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),Y=s.createSelector((t,e,r)=>{const c=u.select(t,e,r);return!!c&&!f(c.runtime?.status)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending}),q=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{U as selectAllWorkspaceScriptEntries,Y as selectCanDeleteScript,l as selectCanReadScriptDefinition,y as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,q as selectScriptListPageState,z as selectScriptOutput,A as selectScriptOutputStreamReady,M as selectScriptOutputViewerWorkspaceIds,V as selectScriptReadJournal,E as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,G as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,J as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
@@ -1,4 +1,4 @@
1
- import{I as X}from"./CHjSilfW.js";import{p as z}from"./UMObs5wi.js";import{c9 as O,c7 as G,c6 as Y,aP as P,aK as F,aL as Z,f as g,$ as k,bC as A,c4 as q,a6 as U,aN as E,a0 as j,c2 as K,aR as J,ax as Q,bY as ee}from"./CdT170lG.js";import{p as te}from"./H_dyzYix.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,$=/^[\s│┃]+$/,N=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,T=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
1
+ import{I as X}from"./8g3Qti3a.js";import{p as z}from"./DZM0AclB.js";import{c9 as O,c7 as G,c6 as Y,aP as P,aK as F,aL as Z,f as g,$ as k,bC as A,c4 as q,a6 as U,aN as E,a0 as j,c2 as K,aR as J,ax as Q,bY as ee}from"./CHvPocri.js";import{p as te}from"./H_dyzYix.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,$=/^[\s│┃]+$/,N=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,T=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
2
2
  `),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||T.test(c)||N.test(c)||$.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(N.test(c)){o.push(c),a++,e.set(a,h);continue}if($.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const W=re.repeat(m);o.push(W+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new X(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>k(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:O},C=de,he=g(n=>{z(n,C);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?K(c,E()):void 0;C.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function I(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(I,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return I(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return I(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await J(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),V=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;V(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;V(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
4
4
  `+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ce={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ie=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=k(Ce,n);return`
@@ -1 +1 @@
1
- import{b as R,s as W,S as N}from"./BMCIczJY.js";import{f,aO as t,c3 as H,bC as S,a6 as P,G as C,a4 as z,bz as U,ae as _,aY as F,cx as O}from"./CdT170lG.js";import{l as J}from"./CDnN0LSW.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),Y=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),D=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(o,b,y){const v=o.append("tspan").attr("x",2*t().state.padding).text(b);y||v.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(o){a||(d(p,o,s),s=!1),a=!1});const B=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),g=Math.max(x.width,n.width);return B.attr("x2",g+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g+2*t().state.padding).attr("height",x.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),p=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let g=Math.max(x,p);g===p&&(g=g+n);let o;const b=e.node().getBBox();i.doc,o=a-c,x>p&&(o=(p-g)/2+c),Math.abs(a-b.x)<c&&x>p&&(o=a-(x-p)/2);const y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",y).attr("class",d?"alt-composit":"composit").attr("width",g).attr("height",b.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",o+c),x<=p&&s.attr("x",a+(g-n)/2-x/2+c),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",b.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),q=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),Z=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),j=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const B of a){const x=B.trim();if(x.length>0){const g=l.append("tspan");if(g.text(x),s===0){const o=g.node().getBBox();s+=o.height}n+=s,g.attr("x",i+t().state.noteMargin),g.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),K=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=j(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&q(n),(i.type==="fork"||i.type==="join")&&Z(n,i),i.type==="note"&&K(i.note.text,n),i.type==="divider"&&Y(n),i.type==="default"&&i.descriptions.length===0&&D(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),G=0,Q=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(_),p=e.append("path").attr("d",l(n)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=F(!0)),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:B,y:x}=O.calcLabelPosition(i.points),g=z.getRows(d.title);let o=0;const b=[];let y=0,v=0;for(let u=0;u<=g.length;u++){const h=s.append("text").attr("text-anchor","middle").text(g[u]).attr("x",B).attr("y",x+o),w=h.node().getBBox();y=Math.max(y,w.width),v=Math.min(v,w.x),S.info(w.x,B,x+o),o===0&&(o=h.node().getBBox().height,S.info("Title height",o,x)),b.push(h)}let k=o*g.length;if(g.length>1){const u=(g.length-1)*o*.5;b.forEach((h,w)=>h.attr("y",x+w*o-u)),k=o*g.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",B-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),S.info(r)}G++},"drawEdge"),m,T={},V=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){m=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const p=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);tt(s);const B=c.db.getRootDoc(),x=s.append("g").attr("id",i+"-root");A(B,x,void 0,!1,p,a,c);const g=m.padding,o=s.node().getBBox(),b=o.width+g*2,y=o.height+g*2,v=b*1.75;P(s,y,v,m.useMaxWidth),s.attr("viewBox",`${o.x-m.padding} ${o.y-m.padding} `+b+" "+y)},"draw"),at=f(e=>e?e.length*m.fontSizeFactor:1,"getLabelWidth"),A=f((e,i,d,c,n,l,p)=>{const a=new C({compound:!0,multigraph:!0});let s,B=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){B=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:B?1:m.edgeLengthFactor,nodeSep:B?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:B?1:m.edgeLengthFactor,nodeSep:B?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const x=p.db.getStates(),g=p.db.getRelations(),o=Object.keys(x);for(const r of o){const u=x[r];d&&(u.parentId=d);let h;if(u.doc){let w=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,w,u.id,!c,n,l,p);{w=$(w,u,c);let E=w.node().getBBox();h.width=E.width,h.height=E.height+m.padding/2,T[u.id]={y:m.compositTitleSize}}}else h=L(i,u,a);if(u.note){const w={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=L(i,w,a);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let b=0;g.forEach(function(r){b++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:m.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+b)}),J(a),S.debug("Graph after layout",a.nodes());const y=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+y.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+y.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+y.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let E=0,M=0;w&&(w.parentElement&&(E=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let v=y.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),v=y.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=v.width+2*m.padding,k.height=v.height+2*m.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:V,draw:et},dt={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{dt as diagram};
1
+ import{b as R,s as W,S as N}from"./B9FQNmSE.js";import{f,aO as t,c3 as H,bC as S,a6 as P,G as C,a4 as z,bz as U,ae as _,aY as F,cx as O}from"./CHvPocri.js";import{l as J}from"./CwfLTHmg.js";var X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),Y=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),D=f((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),I=f((e,i)=>{const d=f(function(o,b,y){const v=o.append("tspan").attr("x",2*t().state.padding).text(b);y||v.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),l=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",l+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(o){a||(d(p,o,s),s=!1),a=!1});const B=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+l+t().state.dividerMargin/2).attr("y2",t().state.padding+l+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),g=Math.max(x.width,n.width);return B.attr("x2",g+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",g+2*t().state.padding).attr("height",x.height+l+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=f((e,i,d)=>{const c=t().state.padding,n=2*t().state.padding,l=e.node().getBBox(),p=l.width,a=l.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let g=Math.max(x,p);g===p&&(g=g+n);let o;const b=e.node().getBBox();i.doc,o=a-c,x>p&&(o=(p-g)/2+c),Math.abs(a-b.x)<c&&x>p&&(o=a-(x-p)/2);const y=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",o).attr("y",y).attr("class",d?"alt-composit":"composit").attr("width",g).attr("height",b.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",o+c),x<=p&&s.attr("x",a+(g-n)/2-x/2+c),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",o).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",b.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),q=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),Z=f((e,i)=>{let d=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let n=d;d=c,c=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),j=f((e,i,d,c)=>{let n=0;const l=c.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const B of a){const x=B.trim();if(x.length>0){const g=l.append("tspan");if(g.text(x),s===0){const o=g.node().getBBox();s+=o.height}n+=s,g.attr("x",i+t().state.noteMargin),g.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:n}},"_drawLongText"),K=f((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:n,textHeight:l}=j(e,0,0,c);return d.attr("height",l+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),L=f(function(e,i){const d=i.id,c={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&q(n),(i.type==="fork"||i.type==="join")&&Z(n,i),i.type==="note"&&K(i.note.text,n),i.type==="divider"&&Y(n),i.type==="default"&&i.descriptions.length===0&&D(n,i),i.type==="default"&&i.descriptions.length>0&&I(n,i);const l=n.node().getBBox();return c.width=l.width+2*t().state.padding,c.height=l.height+2*t().state.padding,c},"drawState"),G=0,Q=f(function(e,i,d){const c=f(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,l=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(_),p=e.append("path").attr("d",l(n)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=F(!0)),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:B,y:x}=O.calcLabelPosition(i.points),g=z.getRows(d.title);let o=0;const b=[];let y=0,v=0;for(let u=0;u<=g.length;u++){const h=s.append("text").attr("text-anchor","middle").text(g[u]).attr("x",B).attr("y",x+o),w=h.node().getBBox();y=Math.max(y,w.width),v=Math.min(v,w.x),S.info(w.x,B,x+o),o===0&&(o=h.node().getBBox().height,S.info("Title height",o,x)),b.push(h)}let k=o*g.length;if(g.length>1){const u=(g.length-1)*o*.5;b.forEach((h,w)=>h.attr("y",x+w*o-u)),k=o*g.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",B-y/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",y+t().state.padding).attr("height",k+t().state.padding),S.info(r)}G++},"drawEdge"),m,T={},V=f(function(){},"setConf"),tt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),et=f(function(e,i,d,c){m=t().state;const n=t().securityLevel;let l;n==="sandbox"&&(l=H("#i"+i));const p=n==="sandbox"?H(l.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?l.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);tt(s);const B=c.db.getRootDoc(),x=s.append("g").attr("id",i+"-root");A(B,x,void 0,!1,p,a,c);const g=m.padding,o=s.node().getBBox(),b=o.width+g*2,y=o.height+g*2,v=b*1.75;P(s,y,v,m.useMaxWidth),s.attr("viewBox",`${o.x-m.padding} ${o.y-m.padding} `+b+" "+y)},"draw"),at=f(e=>e?e.length*m.fontSizeFactor:1,"getLabelWidth"),A=f((e,i,d,c,n,l,p)=>{const a=new C({compound:!0,multigraph:!0});let s,B=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){B=!1;break}d?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:B?1:m.edgeLengthFactor,nodeSep:B?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:B?1:m.edgeLengthFactor,nodeSep:B?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const x=p.db.getStates(),g=p.db.getRelations(),o=Object.keys(x);for(const r of o){const u=x[r];d&&(u.parentId=d);let h;if(u.doc){let w=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,w,u.id,!c,n,l,p);{w=$(w,u,c);let E=w.node().getBBox();h.width=E.width,h.height=E.height+m.padding/2,T[u.id]={y:m.compositTitleSize}}}else h=L(i,u,a);if(u.note){const w={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},E=L(i,w,a);u.note.position==="left of"?(a.setNode(h.id+"-note",E),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",E)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}S.debug("Count=",a.nodeCount(),a);let b=0;g.forEach(function(r){b++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:at(r.title),height:m.labelHeight*z.getRows(r.title).length,labelpos:"c"},"id"+b)}),J(a),S.debug("Graph after layout",a.nodes());const y=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+y.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(T[r]?T[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+y.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),l.querySelectorAll("#"+y.id+" #"+r+" .divider").forEach(h=>{const w=h.parentElement;let E=0,M=0;w&&(w.parentElement&&(E=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",E-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let v=y.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),Q(i,a.edge(r),a.edge(r).relation))}),v=y.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=v.width+2*m.padding,k.height=v.height+2*m.padding,S.debug("Doc rendered",k,a),k},"renderDoc"),it={setConf:V,draw:et},dt={parser:W,get db(){return new N(1)},renderer:it,styles:R,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{dt as diagram};
@@ -1 +1 @@
1
- import{a7 as a,co as M,n as j}from"./CdT170lG.js";function k(r,u){return u<r?-1:u>r?1:u>=r?0:NaN}function q(r){return r}function B(){var r=q,u=k,s=null,p=a(0),m=a(M),h=a(0);function t(n){var e,l=(n=j(n)).length,f,w,y=0,g=new Array(l),i=new Array(l),c=+p.apply(this,arguments),A=Math.min(M,Math.max(-M,m.apply(this,arguments)-c)),d,N=Math.min(Math.abs(A)/l,h.apply(this,arguments)),V=N*(A<0?-1:1),o;for(e=0;e<l;++e)(o=i[g[e]=e]=+r(n[e],e,n))>0&&(y+=o);for(u!=null?g.sort(function(v,x){return u(i[v],i[x])}):s!=null&&g.sort(function(v,x){return s(n[v],n[x])}),e=0,w=y?(A-l*V)/y:0;e<l;++e,c=d)f=g[e],o=i[f],d=c+(o>0?o*w:0)+V,i[f]={data:n[f],index:e,value:o,startAngle:c,endAngle:d,padAngle:N};return i}return t.value=function(n){return arguments.length?(r=typeof n=="function"?n:a(+n),t):r},t.sortValues=function(n){return arguments.length?(u=n,s=null,t):u},t.sort=function(n){return arguments.length?(s=n,u=null,t):s},t.startAngle=function(n){return arguments.length?(p=typeof n=="function"?n:a(+n),t):p},t.endAngle=function(n){return arguments.length?(m=typeof n=="function"?n:a(+n),t):m},t.padAngle=function(n){return arguments.length?(h=typeof n=="function"?n:a(+n),t):h},t}export{B as d};
1
+ import{a7 as a,co as M,n as j}from"./CHvPocri.js";function k(r,u){return u<r?-1:u>r?1:u>=r?0:NaN}function q(r){return r}function B(){var r=q,u=k,s=null,p=a(0),m=a(M),h=a(0);function t(n){var e,l=(n=j(n)).length,f,w,y=0,g=new Array(l),i=new Array(l),c=+p.apply(this,arguments),A=Math.min(M,Math.max(-M,m.apply(this,arguments)-c)),d,N=Math.min(Math.abs(A)/l,h.apply(this,arguments)),V=N*(A<0?-1:1),o;for(e=0;e<l;++e)(o=i[g[e]=e]=+r(n[e],e,n))>0&&(y+=o);for(u!=null?g.sort(function(v,x){return u(i[v],i[x])}):s!=null&&g.sort(function(v,x){return s(n[v],n[x])}),e=0,w=y?(A-l*V)/y:0;e<l;++e,c=d)f=g[e],o=i[f],d=c+(o>0?o*w:0)+V,i[f]={data:n[f],index:e,value:o,startAngle:c,endAngle:d,padAngle:N};return i}return t.value=function(n){return arguments.length?(r=typeof n=="function"?n:a(+n),t):r},t.sortValues=function(n){return arguments.length?(u=n,s=null,t):u},t.sort=function(n){return arguments.length?(s=n,u=null,t):s},t.startAngle=function(n){return arguments.length?(p=typeof n=="function"?n:a(+n),t):p},t.endAngle=function(n){return arguments.length?(m=typeof n=="function"?n:a(+n),t):m},t.padAngle=function(n){return arguments.length?(h=typeof n=="function"?n:a(+n),t):h},t}export{B as d};
@@ -1 +1 @@
1
- import{t as Jt,bq as V,by as Qt,b as Xt,a_ as P,bu as J,bs as Ie,bo as i}from"./D4MoKNoK.js";import{bs as Yt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Zt,aA as W,a7 as Se,aD as t,c9 as f,aB as I,bo as we,bV as kt,br as Ge,ca as Bt,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Ht,s as Mt}from"./WVYGrHqE.js";import{c as Te}from"./BPQohPc9.js";import{f as z}from"./DgFojmqv.js";import"./BrXpFLv_.js";import{e as Fe,L as qt}from"./BQ-Vdhjp.js";import"./S9ot6IO_.js";import"./C_fEvnNK.js";import{k as Ue,G as Ee,N as Oe}from"./Dbuv3b_7.js";import{I as Kt}from"./CS1d84Cn.js";import"./WZHg24tN.js";import{G2 as K,f8 as Vt,v as Be,e0 as Wt,pg as He,sa as Me,FV as qe,n8 as Ke,h0 as Ve}from"./C51KzdSG.js";import{g as Nt,h as Rt,i as We,s as Ne,b as jt,d as Re,e as je,m as Je}from"./DQOyHGtr.js";var Qe=I('<!> <p class="type-body"> </p>',1);function Xe(it,m){if(new.target)return Jt({component:Xe,...it});Yt(m,!0);let D=V(m,"open",15,!1),H=V(m,"static",7,!1),st=V(m,"title",7),_=V(m,"message",7),k=V(m,"buttons",7),b=V(m,"cancelIndex",7,0),Q=V(m,"onSelect",7);function N(r){D(!1),Q()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),W()},get static(){return H()},set static(r=!1){H(r),W()},get title(){return st()},set title(r){st(r),W()},get message(){return _()},set message(r){_(r),W()},get buttons(){return k()},set buttons(r){k(r),W()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),W()},get onSelect(){return Q()},set onSelect(r){Q(r),W()},$set:Qt,$on:(r,M)=>Xt(m,r,M)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>N(k().length-1),onCancel:()=>N(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(X,Y,R)=>{{let Z=f(()=>R===b()?"ghost":R===k().length-1?"primary":"outline");z(X,{get variant(){return t(Z)},onclick:()=>N(R),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Qe(),X=yt(w);Te(X,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Y=l(X,2),R=B(Y,!0);s(()=>o(R,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Jt({component:ua,...it});Yt(m,!0);const H=()=>J(ct,"$storedInstance$",r),st=()=>J(ee,"$deviceGrantSupported$",r),_=()=>J(ne,"$instanceSetupSupported$",r),k=()=>J(pt,"$isAuthenticating$",r),b=()=>J(ut,"$isCancelling$",r),Q=()=>J(te,"$deviceFlow$",r),N=()=>J(_t,"$cancelOutcome$",r),vt=()=>J(ae,"$error$",r),[r,M]=Ie();let T=V(m,"compact",7,!1),w=V(m,"onCancel",7);const X=`${D}-host`,Y=`${D}-host-help`,R=`${D}-host-error`,Z=`${D}-token`,ct=Nt(),pt=Rt(),ut=We(),_t=Ne(),te=jt(),ee=Re(),ae=je(),ne=Je();let bt=kt(Ge(Nt.select(K.state))),St=kt(!1),tt=kt(""),gt=kt(!1);const p=f(()=>Me(t(bt))),wt=f(()=>t(gt)||t(p)===H()&&st()===!1),Ct=f(()=>t(p)?Ke(t(p)):null),re=f(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||q(bt,c,!0)}),Bt(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Rt.select(e)&&jt.select(e)&&K.dispatch(Vt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===H()||k()||b()||K.dispatch(He(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(Ve(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Wt()),q(gt,!0))}function oe(){q(gt,!1)}function le(){b()||K.dispatch(Wt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=f(()=>T()?"sm":"xl"),ft=f(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),W()},get onCancel(){return w()},set onCancel(c){w(c),W()},$set:Qt,$on:(c,e)=>Xt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var g=x();s(G=>o(g,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,g)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Ye(),u=B(a,!0);s(g=>o(u,g),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=f(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return Q().userCode},get verificationUri(){return Q().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var g=l(u,2),G=E(g);Ht(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=B(S,!0),et=l(S,2);{let at=f(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(g),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var g=l(u,2),G=B(g,!0),S=l(g,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},ge=e=>{var a=sa(),u=yt(a),g=E(u);qt(g,{get for(){return X},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(g,2);{let d=f(()=>!_()),$=f(()=>!t(p)||void 0),y=f(()=>t(p)?Y:`${Y} ${R}`);Kt(G,{get id(){return X},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(G,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=B($,!0);s(L=>{Mt($,"id",R),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=f(()=>!_());Kt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),j=E(A);{let v=f(()=>!t(re));z(j,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(j,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(ft)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(gt)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(ft)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=f(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=f(()=>!_());z(L,{variant:"ghost",get size(){return t(ft)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(ft)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&Q()?e(_e):k()||b()?e(be,1):e(ge,-1)})}var Ut=l(Ft,2);{var fe=e=>{var a=oa(),u=B(a,!0);s(g=>o(u,g),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),g=B(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>K.dispatch(Vt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(g,S),[()=>N()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{N()==="cancelled"?e(fe):(N()==="already-started"||N()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Xe as M};
1
+ import{t as Jt,bq as V,by as Qt,b as Xt,a_ as P,bu as J,bs as Ie,bo as i}from"./D4MoKNoK.js";import{bs as Yt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as B,bn as Zt,aA as W,a7 as Se,aD as t,c9 as f,aB as I,bo as we,bV as kt,br as Ge,ca as Bt,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Ht,s as Mt}from"./WVYGrHqE.js";import{c as Te}from"./BPQohPc9.js";import{f as z}from"./DgFojmqv.js";import"./BrXpFLv_.js";import{e as Fe,L as qt}from"./BQ-Vdhjp.js";import"./S9ot6IO_.js";import"./C_fEvnNK.js";import{k as Ue,G as Ee,N as Oe}from"./CVS6JAeI.js";import{I as Kt}from"./CS1d84Cn.js";import"./WZHg24tN.js";import{G2 as K,f8 as Vt,v as Be,e0 as Wt,pg as He,sa as Me,FV as qe,n8 as Ke,h0 as Ve}from"./C51KzdSG.js";import{g as Nt,h as Rt,i as We,s as Ne,b as jt,d as Re,e as je,m as Je}from"./DQOyHGtr.js";var Qe=I('<!> <p class="type-body"> </p>',1);function Xe(it,m){if(new.target)return Jt({component:Xe,...it});Yt(m,!0);let D=V(m,"open",15,!1),H=V(m,"static",7,!1),st=V(m,"title",7),_=V(m,"message",7),k=V(m,"buttons",7),b=V(m,"cancelIndex",7,0),Q=V(m,"onSelect",7);function N(r){D(!1),Q()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),W()},get static(){return H()},set static(r=!1){H(r),W()},get title(){return st()},set title(r){st(r),W()},get message(){return _()},set message(r){_(r),W()},get buttons(){return k()},set buttons(r){k(r),W()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),W()},get onSelect(){return Q()},set onSelect(r){Q(r),W()},$set:Qt,$on:(r,M)=>Xt(m,r,M)};return Ue(it,{get static(){return H()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>N(k().length-1),onCancel:()=>N(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(X,Y,R)=>{{let Z=f(()=>R===b()?"ghost":R===k().length-1?"primary":"outline");z(X,{get variant(){return t(Z)},onclick:()=>N(R),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Qe(),X=yt(w);Te(X,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Y=l(X,2),R=B(Y,!0);s(()=>o(R,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Jt({component:ua,...it});Yt(m,!0);const H=()=>J(ct,"$storedInstance$",r),st=()=>J(ee,"$deviceGrantSupported$",r),_=()=>J(ne,"$instanceSetupSupported$",r),k=()=>J(pt,"$isAuthenticating$",r),b=()=>J(ut,"$isCancelling$",r),Q=()=>J(te,"$deviceFlow$",r),N=()=>J(_t,"$cancelOutcome$",r),vt=()=>J(ae,"$error$",r),[r,M]=Ie();let T=V(m,"compact",7,!1),w=V(m,"onCancel",7);const X=`${D}-host`,Y=`${D}-host-help`,R=`${D}-host-error`,Z=`${D}-token`,ct=Nt(),pt=Rt(),ut=We(),_t=Ne(),te=jt(),ee=Re(),ae=je(),ne=Je();let bt=kt(Ge(Nt.select(K.state))),St=kt(!1),tt=kt(""),gt=kt(!1);const p=f(()=>Me(t(bt))),wt=f(()=>t(gt)||t(p)===H()&&st()===!1),Ct=f(()=>t(p)?Ke(t(p)):null),re=f(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Bt(()=>{const c=H();t(St)||q(bt,c,!0)}),Bt(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=K.state;Rt.select(e)&&jt.select(e)&&K.dispatch(Vt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===H()||k()||b()||K.dispatch(He(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||K.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(K.dispatch(Ve(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&K.dispatch(Wt()),q(gt,!0))}function oe(){q(gt,!1)}function le(){b()||K.dispatch(Wt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=f(()=>T()?"sm":"xl"),ft=f(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),W()},get onCancel(){return w()},set onCancel(c){w(c),W()},$set:Qt,$on:(c,e)=>Xt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var g=x();s(G=>o(g,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,g)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Ye(),u=B(a,!0);s(g=>o(u,g),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=B(a,!0);s(()=>o(u,H())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=f(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return Q().userCode},get verificationUri(){return Q().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var g=l(u,2),G=E(g);Ht(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=B(S,!0),et=l(S,2);{let at=f(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(g),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Ht(u,{size:16,class:"shrink-0"});var g=l(u,2),G=B(g,!0),S=l(g,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},ge=e=>{var a=sa(),u=yt(a),g=E(u);qt(g,{get for(){return X},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(g,2);{let d=f(()=>!_()),$=f(()=>!t(p)||void 0),y=f(()=>t(p)?Y:`${Y} ${R}`);Kt(G,{get id(){return X},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return Be},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(G,2),ot=B(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=B($,!0);s(L=>{Mt($,"id",R),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=f(()=>!_());Kt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),j=E(A);{let v=f(()=>!t(re));z(j,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(j,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(ft)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(gt)&&!(t(p)===H()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(ft)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=f(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=f(()=>!_());z(L,{variant:"ghost",get size(){return t(ft)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(ft)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(j=>o(A,j),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&Q()?e(_e):k()||b()?e(be,1):e(ge,-1)})}var Ut=l(Ft,2);{var fe=e=>{var a=oa(),u=B(a,!0);s(g=>o(u,g),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),g=B(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>K.dispatch(Vt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(g,S),[()=>N()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{N()==="cancelled"?e(fe):(N()==="already-started"||N()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=B(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Xe as M};