@intent-hq/web 2.334.2 → 2.334.4

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 (280) hide show
  1. package/bin/intent-web.mjs +4 -0
  2. package/package.json +1 -1
  3. package/web/app/immutable/chunks/{Cfb3Qeug.js → -TOEU8_A.js} +1 -1
  4. package/web/app/immutable/chunks/-cH4Kg6N.js +271 -0
  5. package/web/app/immutable/chunks/1hAIZvxV.js +1 -0
  6. package/web/app/immutable/chunks/{ayrFAfGH.js → 41-5FPAW.js} +1 -1
  7. package/web/app/immutable/chunks/{CZ_kVWbN.js → 50HPeG9s.js} +2 -2
  8. package/web/app/immutable/chunks/{Bobasviv.js → 5VMy_i47.js} +1 -1
  9. package/web/app/immutable/chunks/{Bdtl8KA4.js → 66MF_whg.js} +1 -1
  10. package/web/app/immutable/chunks/{CfcCegh1.js → B--DS5uB.js} +1 -1
  11. package/web/app/immutable/chunks/{Dye-X7T_.js → B-Y3a_F8.js} +1 -1
  12. package/web/app/immutable/chunks/{35OKERyz.js → B1mjFyJY.js} +3 -3
  13. package/web/app/immutable/chunks/{Ct1LOYoS.js → B25gpTlR.js} +7 -7
  14. package/web/app/immutable/chunks/{Dzg-ll0I.js → B2MOO6xN.js} +1 -1
  15. package/web/app/immutable/chunks/{D9qxaQL5.js → B2g0crjj.js} +1 -1
  16. package/web/app/immutable/chunks/{DGUKdi7i.js → B3fQCNI5.js} +1 -1
  17. package/web/app/immutable/chunks/{B3KrGqdQ.js → B4USm-wY.js} +1 -1
  18. package/web/app/immutable/chunks/{HZf189bi.js → B5PFzC2T.js} +1 -1
  19. package/web/app/immutable/chunks/B8IlgGpJ.js +2 -0
  20. package/web/app/immutable/chunks/{DxGil5MD.js → B8gqvCgY.js} +1 -1
  21. package/web/app/immutable/chunks/{DYNXYjAR.js → BAJMpiJG.js} +2 -2
  22. package/web/app/immutable/chunks/{BuxSPewv.js → BAnLxjCI.js} +1 -1
  23. package/web/app/immutable/chunks/{cryzjV1m.js → BB8HM8Ay.js} +1 -1
  24. package/web/app/immutable/chunks/{DJ_QkvrV.js → BBQmqbzc.js} +2 -2
  25. package/web/app/immutable/chunks/{Bv6lXJbF.js → BC2HtpIa.js} +1 -1
  26. package/web/app/immutable/chunks/{Az9OQ8Pw.js → BCF9Fm7Q.js} +3 -3
  27. package/web/app/immutable/chunks/{D8UOq-cZ.js → BCGyPRue.js} +1 -1
  28. package/web/app/immutable/chunks/{Dk-fSG07.js → BCvW5fLL.js} +1 -1
  29. package/web/app/immutable/chunks/{Df-CfLbF.js → BD9hiuYU.js} +1 -1
  30. package/web/app/immutable/chunks/{CHfzOEVZ.js → BI3Qf00U.js} +1 -1
  31. package/web/app/immutable/chunks/{CO7hmy56.js → BMSasEAE.js} +1 -1
  32. package/web/app/immutable/chunks/{V_REijln.js → BOE4Qfjf.js} +1 -1
  33. package/web/app/immutable/chunks/{BxMH5MYD.js → BOSe_KRq.js} +1 -1
  34. package/web/app/immutable/chunks/{DTEa5xLA.js → BOWbyG8Q.js} +1 -1
  35. package/web/app/immutable/chunks/{D-v3doGL.js → BRmUBbbw.js} +1 -1
  36. package/web/app/immutable/chunks/{CXKfuiUF.js → BUpQz-Qr.js} +1 -1
  37. package/web/app/immutable/chunks/{BdiB84y6.js → BVA72xzt.js} +1 -1
  38. package/web/app/immutable/chunks/{uNB-15BN.js → BVVMn1l6.js} +1 -1
  39. package/web/app/immutable/chunks/{BV7IkfLg.js → BWJ-0D-2.js} +1 -1
  40. package/web/app/immutable/chunks/{D9wogWMJ.js → BWpYhzs2.js} +1 -1
  41. package/web/app/immutable/chunks/{BsbCFjWI.js → BYSg53cw.js} +1 -1
  42. package/web/app/immutable/chunks/{CKJpktTE.js → BYddvidz.js} +1 -1
  43. package/web/app/immutable/chunks/{CxObU6mx.js → BZGUu0nU.js} +3 -3
  44. package/web/app/immutable/chunks/{SQzrn-hj.js → Ba7P2HkQ.js} +1 -1
  45. package/web/app/immutable/chunks/{D3DGxoeO.js → BbOFhOMi.js} +1 -1
  46. package/web/app/immutable/chunks/{CXzbClP6.js → BbWjr_LM.js} +1 -1
  47. package/web/app/immutable/chunks/{CP_jYxTi.js → Bbj-7Bri.js} +1 -1
  48. package/web/app/immutable/chunks/{D4_SdDSY.js → BcBl1qMn.js} +2 -2
  49. package/web/app/immutable/chunks/{BB4mIFvl.js → BdpYl7Gv.js} +2 -2
  50. package/web/app/immutable/chunks/{CjijEKrk.js → BfL2wXdk.js} +1 -1
  51. package/web/app/immutable/chunks/{DyBxytvu.js → Bfwh7fx_.js} +1 -1
  52. package/web/app/immutable/chunks/{84oPQ-Z5.js → Bgmz76v7.js} +1 -1
  53. package/web/app/immutable/chunks/{CNG639uN.js → BiWS3oN6.js} +2 -2
  54. package/web/app/immutable/chunks/{DkPqbYEN.js → Bj6JKTal.js} +1 -1
  55. package/web/app/immutable/chunks/{Qk-BsDf0.js → BmywI7Lw.js} +1 -1
  56. package/web/app/immutable/chunks/{CqrY9mln.js → BnZxq056.js} +1 -1
  57. package/web/app/immutable/chunks/{BIsYlFzn.js → BnsMMXeG.js} +1 -1
  58. package/web/app/immutable/chunks/{BE3xHJK-.js → Bny-l-GH.js} +1 -1
  59. package/web/app/immutable/chunks/{BHNjUi-M.js → BpLDGdQv.js} +1 -1
  60. package/web/app/immutable/chunks/{PA5tKchu.js → BrB3whqv.js} +1 -1
  61. package/web/app/immutable/chunks/{EuR2YZ_C.js → BrH3hKEJ.js} +1 -1
  62. package/web/app/immutable/chunks/{BrfSOvfx.js → Bs3DdycY.js} +1 -1
  63. package/web/app/immutable/chunks/{9oNS7b_T.js → Bsy-6OEk.js} +1 -1
  64. package/web/app/immutable/chunks/{B-1pTbth.js → Bt0YZiXp.js} +1 -1
  65. package/web/app/immutable/chunks/{BQvAnzVz.js → BvK0-XNr.js} +1 -1
  66. package/web/app/immutable/chunks/{CSSojjBG.js → BvO0fAmb.js} +1 -1
  67. package/web/app/immutable/chunks/{RRAwtvUd.js → BvZf2Y4o.js} +1 -1
  68. package/web/app/immutable/chunks/{xTKdEUQT.js → BvwTVYo5.js} +1 -1
  69. package/web/app/immutable/chunks/{B4egTWvZ.js → BwgDMBNS.js} +1 -1
  70. package/web/app/immutable/chunks/BwwEJ73s.js +1 -0
  71. package/web/app/immutable/chunks/{BcKZevFv.js → BwxmdpQk.js} +1 -1
  72. package/web/app/immutable/chunks/{BJGFYlGb.js → BxmfBtHG.js} +1 -1
  73. package/web/app/immutable/chunks/{tj2YkYbp.js → Bxnl9yMf.js} +1 -1
  74. package/web/app/immutable/chunks/{DXmtjPbD.js → BzP4gCLt.js} +1 -1
  75. package/web/app/immutable/chunks/{DO346qNj.js → C0IuX8Tw.js} +1 -1
  76. package/web/app/immutable/chunks/{GcxLTXiO.js → C0fLKaB9.js} +1 -1
  77. package/web/app/immutable/chunks/{B7TKG7Bc.js → C1wyQWdd.js} +2 -2
  78. package/web/app/immutable/chunks/{CIqnL4UD.js → C3cmIhWo.js} +1 -1
  79. package/web/app/immutable/chunks/{tO-hey33.js → C3vze1oW.js} +1 -1
  80. package/web/app/immutable/chunks/{C4w7bKuP.js → C4-YEGNY.js} +1 -1
  81. package/web/app/immutable/chunks/{DzQlISID.js → C4Yfp_TG.js} +1 -1
  82. package/web/app/immutable/chunks/{Bg69H70_.js → C58MXMyI.js} +1 -1
  83. package/web/app/immutable/chunks/{BKPhrwG0.js → C6KqUwgB.js} +1 -1
  84. package/web/app/immutable/chunks/{Ci__OGHt.js → C6zJgX6A.js} +1 -1
  85. package/web/app/immutable/chunks/{BqvnKOi9.js → C7MBFDJp.js} +1 -1
  86. package/web/app/immutable/chunks/{BjWMcF7P.js → C8688obU.js} +1 -1
  87. package/web/app/immutable/chunks/{D_i6tc5B.js → C8fRBF3p.js} +1 -1
  88. package/web/app/immutable/chunks/{P0G8SF-C.js → CBHhz236.js} +1 -1
  89. package/web/app/immutable/chunks/{H6rH-O5e.js → CDuldEDb.js} +1 -1
  90. package/web/app/immutable/chunks/CEL6QztG.js +1 -0
  91. package/web/app/immutable/chunks/{YQg_WR6M.js → CFuCenWl.js} +1 -1
  92. package/web/app/immutable/chunks/{C3KFiFcK.js → CGSth7XF.js} +1 -1
  93. package/web/app/immutable/chunks/{h_b6HIC4.js → CGgST5OQ.js} +1 -1
  94. package/web/app/immutable/chunks/{BAOVYkFF.js → CGjjowC8.js} +1 -1
  95. package/web/app/immutable/chunks/{C02vDFWb.js → CGlMnf5q.js} +1 -1
  96. package/web/app/immutable/chunks/{Cd_9iDaC.js → CI3pmd4G.js} +1 -1
  97. package/web/app/immutable/chunks/{C1ZTS4Sh.js → CJ-BFgZd.js} +1 -1
  98. package/web/app/immutable/chunks/{Ckm2No1k.js → CJDCNDP4.js} +1 -1
  99. package/web/app/immutable/chunks/{CnrqTlrs.js → CJsd_APB.js} +1 -1
  100. package/web/app/immutable/chunks/{Wjuib0ag.js → CLBCoidh.js} +1 -1
  101. package/web/app/immutable/chunks/{FEnI6pqw.js → CSYmlQ7_.js} +1 -1
  102. package/web/app/immutable/chunks/CSf8qtlt.js +1 -0
  103. package/web/app/immutable/chunks/{CKaKgIKD.js → CSvJVg_I.js} +4 -4
  104. package/web/app/immutable/chunks/CV0Fs-12.js +1 -0
  105. package/web/app/immutable/chunks/{5gyILap3.js → CWLZOeon.js} +1 -1
  106. package/web/app/immutable/chunks/{Dmoe9MK3.js → CXqkKZxQ.js} +1 -1
  107. package/web/app/immutable/chunks/{DEz9kFbW.js → CY6nFc9b.js} +1 -1
  108. package/web/app/immutable/chunks/{BC6AKL03.js → CYgoZYHa.js} +1 -1
  109. package/web/app/immutable/chunks/{q6xIsTef.js → CaEWxG5p.js} +2 -2
  110. package/web/app/immutable/chunks/{DuD0elPz.js → CbM8k2mZ.js} +1 -1
  111. package/web/app/immutable/chunks/{O8s5IMhm.js → CcOMWwsU.js} +1 -1
  112. package/web/app/immutable/chunks/{Cxbk0QV6.js → CcXckLs7.js} +1 -1
  113. package/web/app/immutable/chunks/{m5UczIQR.js → Cd_8r4jJ.js} +3 -3
  114. package/web/app/immutable/chunks/{CMXoRP_2.js → Ced3NNcG.js} +1 -1
  115. package/web/app/immutable/chunks/{DbbZJ-ci.js → Ceq7cv95.js} +9 -9
  116. package/web/app/immutable/chunks/{DbWOkCcI.js → CgU9RNu2.js} +1 -1
  117. package/web/app/immutable/chunks/{BfNeIJAh.js → CiSnSGvU.js} +1 -1
  118. package/web/app/immutable/chunks/{Bxd9OUMD.js → Cjx3j-9r.js} +1 -1
  119. package/web/app/immutable/chunks/{Bm8WkBC5.js → ClCRB_mv.js} +1 -1
  120. package/web/app/immutable/chunks/{BuNYZSRv.js → Cn76YSbd.js} +1 -1
  121. package/web/app/immutable/chunks/{DMW_Ogh_.js → CqHS-vG9.js} +1 -1
  122. package/web/app/immutable/chunks/{D7R04yQS.js → CqdcwUul.js} +1 -1
  123. package/web/app/immutable/chunks/{CmSOlSZC.js → CqpFmLF1.js} +1 -1
  124. package/web/app/immutable/chunks/{DgEbpU39.js → CrrEv2rL.js} +1 -1
  125. package/web/app/immutable/chunks/{C5sAinDF.js → CsBjcw-w.js} +1 -1
  126. package/web/app/immutable/chunks/{BfDRfZ1x.js → CsUbymBr.js} +1 -1
  127. package/web/app/immutable/chunks/{D8NIsfN6.js → CtspFCnO.js} +1 -1
  128. package/web/app/immutable/chunks/CuAWwBFc.js +1 -0
  129. package/web/app/immutable/chunks/{DCCFERAn.js → CuEQVba7.js} +1 -1
  130. package/web/app/immutable/chunks/{Dv8x14z4.js → CuWBzd-F.js} +1 -1
  131. package/web/app/immutable/chunks/{DyrELBv-.js → CwDVmyxq.js} +1 -1
  132. package/web/app/immutable/chunks/CxJbFBxw.js +1 -0
  133. package/web/app/immutable/chunks/{1a35li_H.js → Cz2XOG-L.js} +1 -1
  134. package/web/app/immutable/chunks/{C7Fm8r7x.js → D-Brs8OV.js} +1 -1
  135. package/web/app/immutable/chunks/{CGn9WrVN.js → D2mgiwW6.js} +1 -1
  136. package/web/app/immutable/chunks/{D6yTIC5N.js → D3LGlsX3.js} +1 -1
  137. package/web/app/immutable/chunks/{Co38dt7I.js → D3u1ZDXs.js} +1 -1
  138. package/web/app/immutable/chunks/{CRc5ctc6.js → D4jQS0eM.js} +1 -1
  139. package/web/app/immutable/chunks/{pQONxOXo.js → D51IE5D2.js} +1 -1
  140. package/web/app/immutable/chunks/{CaLGGtgx.js → D5JZ5TDM.js} +3 -3
  141. package/web/app/immutable/chunks/{C1mdnBVP.js → D613d4CE.js} +1 -1
  142. package/web/app/immutable/chunks/{CQBJXrfq.js → D81SHt2l.js} +1 -1
  143. package/web/app/immutable/chunks/{C0FI_9IJ.js → D9eQxumT.js} +2 -2
  144. package/web/app/immutable/chunks/{DKw2ZZkQ.js → DDugF1XE.js} +2 -2
  145. package/web/app/immutable/chunks/{71wna1Z8.js → DEr3f155.js} +1 -1
  146. package/web/app/immutable/chunks/{sT0KaY62.js → DEy3an7K.js} +1 -1
  147. package/web/app/immutable/chunks/{MXIhoqMp.js → DFWkFU6G.js} +1 -1
  148. package/web/app/immutable/chunks/DHM67VRx.js +1 -0
  149. package/web/app/immutable/chunks/{DGi2Fba3.js → DIwBqoFo.js} +1 -1
  150. package/web/app/immutable/chunks/{BIq2Xhur.js → DJbDjFTs.js} +1 -1
  151. package/web/app/immutable/chunks/{BzOameBd.js → DJuQfCSS.js} +1 -1
  152. package/web/app/immutable/chunks/{CGVLIZz9.js → DN6L1ZrJ.js} +1 -1
  153. package/web/app/immutable/chunks/{CQYxiSKc.js → DNc3c430.js} +2 -2
  154. package/web/app/immutable/chunks/{DE2wtizW.js → DPkE3Irc.js} +1 -1
  155. package/web/app/immutable/chunks/{CfwVmHCf.js → DRRip4Qe.js} +1 -1
  156. package/web/app/immutable/chunks/{oJD7n1Ce.js → DR_tn5Kl.js} +1 -1
  157. package/web/app/immutable/chunks/DS8-U49C.js +1 -0
  158. package/web/app/immutable/chunks/DSLbxDPz.js +1 -0
  159. package/web/app/immutable/chunks/{k3FE0FJZ.js → DTClNSVs.js} +1 -1
  160. package/web/app/immutable/chunks/{D71eQlAo.js → DUMFiDJG.js} +1 -1
  161. package/web/app/immutable/chunks/{CoVAqVcd.js → DVGdl5mM.js} +1 -1
  162. package/web/app/immutable/chunks/{DPw7hFRN.js → DXA93DnF.js} +2 -2
  163. package/web/app/immutable/chunks/{C5vuxPIj.js → DXDNvQ8c.js} +1 -1
  164. package/web/app/immutable/chunks/DXyCbCG4.js +1 -0
  165. package/web/app/immutable/chunks/{Diees_tN.js → DY6owuVr.js} +1 -1
  166. package/web/app/immutable/chunks/{Dk1_0x0Q.js → DYfeeu3f.js} +1 -1
  167. package/web/app/immutable/chunks/{DGcTdGo8.js → DYizsZut.js} +1 -1
  168. package/web/app/immutable/chunks/{BLxkwNki.js → DZWmQz5X.js} +1 -1
  169. package/web/app/immutable/chunks/{RlWPb-l5.js → DZo9MSm2.js} +1 -1
  170. package/web/app/immutable/chunks/{DwfTQh-H.js → Da5ikdTd.js} +1 -1
  171. package/web/app/immutable/chunks/{w1vzEwno.js → DanU7KQt.js} +1 -1
  172. package/web/app/immutable/chunks/{CEboTiDi.js → DbXcLBX5.js} +3 -3
  173. package/web/app/immutable/chunks/{DxFUSFjo.js → Dbpx98ZW.js} +1 -1
  174. package/web/app/immutable/chunks/{td5hg6sa.js → DcegHVv8.js} +1 -1
  175. package/web/app/immutable/chunks/{BAzeccV1.js → DcqkXn9i.js} +1 -1
  176. package/web/app/immutable/chunks/{AatSgrMY.js → DeRdhkHZ.js} +1 -1
  177. package/web/app/immutable/chunks/{BHVl-WA3.js → DebBES3M.js} +1 -1
  178. package/web/app/immutable/chunks/{DcZ6Y3e4.js → DhqOVtmg.js} +1 -1
  179. package/web/app/immutable/chunks/{CE0qVU3E.js → DiQPrKdw.js} +1 -1
  180. package/web/app/immutable/chunks/{98zeaLhZ.js → DistMkl2.js} +4 -4
  181. package/web/app/immutable/chunks/{tJ85SevO.js → Dl2HfqsO.js} +1 -1
  182. package/web/app/immutable/chunks/{CArqGgyL.js → Dml826jn.js} +1 -1
  183. package/web/app/immutable/chunks/{DAGiwOmW.js → DnKg2UsP.js} +1 -1
  184. package/web/app/immutable/chunks/{BB_nvikr.js → Do-q4-tL.js} +3 -3
  185. package/web/app/immutable/chunks/{2cP0f-ZS.js → DrFCxV5f.js} +1 -1
  186. package/web/app/immutable/chunks/{BWLkc8Du.js → DsgX6aFj.js} +1 -1
  187. package/web/app/immutable/chunks/{BF68vBH8.js → DwovkWl8.js} +1 -1
  188. package/web/app/immutable/chunks/{CgWmg0h0.js → Dz2X4bjq.js} +1 -1
  189. package/web/app/immutable/chunks/{mdduA0pr.js → FjbzmN5N.js} +1 -1
  190. package/web/app/immutable/chunks/{yLsotFg8.js → G3hahPKG.js} +1 -1
  191. package/web/app/immutable/chunks/{DoF4MEp9.js → Iv4WzslT.js} +1 -1
  192. package/web/app/immutable/chunks/{D9-PpMwq.js → J08yAvVE.js} +1 -1
  193. package/web/app/immutable/chunks/{DFGudu4t.js → L9gWdMu_.js} +1 -1
  194. package/web/app/immutable/chunks/{d3gRw0Do.js → LF6JrNMn.js} +2 -2
  195. package/web/app/immutable/chunks/{CSpV9hdy.js → MohDaz1W.js} +2 -2
  196. package/web/app/immutable/chunks/{zMvJMha7.js → PotN_tv7.js} +1 -1
  197. package/web/app/immutable/chunks/{BU9Iey12.js → QiVjRpIE.js} +1 -1
  198. package/web/app/immutable/chunks/{CiQ6prZ_.js → SFie6UfG.js} +1 -1
  199. package/web/app/immutable/chunks/{DfBE7crq.js → T4aQylmi.js} +1 -1
  200. package/web/app/immutable/chunks/{DaaWvDkX.js → UdI8St87.js} +1 -1
  201. package/web/app/immutable/chunks/{BVL9duQ5.js → W61kh8fv.js} +6 -6
  202. package/web/app/immutable/chunks/{GY5YfSD1.js → WAMpa_Dp.js} +1 -1
  203. package/web/app/immutable/chunks/{CDSwBgYD.js → YWYRemCe.js} +1 -1
  204. package/web/app/immutable/chunks/{CMOnvdXp.js → Z33USrkv.js} +1 -1
  205. package/web/app/immutable/chunks/{BxlBk-YD.js → ZBqfJekw.js} +1 -1
  206. package/web/app/immutable/chunks/{Bcj40e95.js → ZQGx2tXF.js} +1 -1
  207. package/web/app/immutable/chunks/{Dw5VqvaP.js → _HObNlpG.js} +1 -1
  208. package/web/app/immutable/chunks/{CzM51AXZ.js → _UdqBB2L.js} +1 -1
  209. package/web/app/immutable/chunks/{ByJNkQwF.js → _sWyQxbQ.js} +2 -2
  210. package/web/app/immutable/chunks/{Cmu_2tL6.js → aS0Ledp-.js} +1 -1
  211. package/web/app/immutable/chunks/{BCGsV37m.js → ax0jsJgC.js} +1 -1
  212. package/web/app/immutable/chunks/{CmyB5JxB.js → bUGfWLiY.js} +1 -1
  213. package/web/app/immutable/chunks/{BTnJmaeL.js → by2sennB.js} +1 -1
  214. package/web/app/immutable/chunks/{DR6Ht6M1.js → cKtqmo72.js} +3 -3
  215. package/web/app/immutable/chunks/{mCK8DuNp.js → eydIaLOC.js} +1 -1
  216. package/web/app/immutable/chunks/{nd4329YU.js → fnykVBc7.js} +1 -1
  217. package/web/app/immutable/chunks/gPgah2l4.js +1 -0
  218. package/web/app/immutable/chunks/{4doVsrTt.js → hNHk4Bez.js} +1 -1
  219. package/web/app/immutable/chunks/{D2laB2lQ.js → hf8xs0et.js} +1 -1
  220. package/web/app/immutable/chunks/{Bd-UWJsU.js → iEpqOaep.js} +1 -1
  221. package/web/app/immutable/chunks/{5lryxeCY.js → jQoVJUan.js} +4 -4
  222. package/web/app/immutable/chunks/{C7Ro1E0r.js → k4xkU4Qm.js} +1 -1
  223. package/web/app/immutable/chunks/{7AKPDTqy.js → kzOxdO3b.js} +1 -1
  224. package/web/app/immutable/chunks/{CCPn5VZR.js → mGS2HqB-.js} +1 -1
  225. package/web/app/immutable/chunks/{O-buqhJY.js → ms_dJmyn.js} +1 -1
  226. package/web/app/immutable/chunks/{CESOOiWP.js → noMaO2Xd.js} +1 -1
  227. package/web/app/immutable/chunks/{DJlAXimI.js → pBwXi0xp.js} +12 -12
  228. package/web/app/immutable/chunks/{DXO_adPf.js → pU8ZyAzb.js} +1 -1
  229. package/web/app/immutable/chunks/{DCD7Mz5K.js → q1Qi1tRJ.js} +1 -1
  230. package/web/app/immutable/chunks/{G3lcIaVb.js → qy2N5-_J.js} +1 -1
  231. package/web/app/immutable/chunks/{LRsTXnWs.js → rVFNKqUq.js} +1 -1
  232. package/web/app/immutable/chunks/{BhJWXUqD.js → tCQts2qZ.js} +1 -1
  233. package/web/app/immutable/chunks/{DFEZjAED.js → uRN7AKow.js} +1 -1
  234. package/web/app/immutable/chunks/{Z1K5P4U2.js → vHSQX6dH.js} +1 -1
  235. package/web/app/immutable/chunks/{Cl-7Au8R.js → wwtnRh6M.js} +1 -1
  236. package/web/app/immutable/chunks/{MCnrQrjH.js → xqulUQTc.js} +1 -1
  237. package/web/app/immutable/chunks/{CnMdEUN9.js → yn6WWSq8.js} +1 -1
  238. package/web/app/immutable/chunks/{DXNrmOAj.js → zKAv0Iid.js} +1 -1
  239. package/web/app/immutable/chunks/{DpeaMqro.js → znAltH1L.js} +4 -4
  240. package/web/app/immutable/entry/{app.BAAMRv7O.js → app.DVdz1aQK.js} +3 -3
  241. package/web/app/immutable/entry/start.CP_dOJoI.js +1 -0
  242. package/web/app/immutable/nodes/{0.DyD0fi7b.js → 0.1qBEgFWI.js} +1 -1
  243. package/web/app/immutable/nodes/{1.BRJugl3H.js → 1.iJqMO56i.js} +1 -1
  244. package/web/app/immutable/nodes/{10.DU8LBbo3.js → 10.Dtdcvc6-.js} +1 -1
  245. package/web/app/immutable/nodes/{11.CVezrggv.js → 11.wyckreZw.js} +1 -1
  246. package/web/app/immutable/nodes/{12.BPw8mLRI.js → 12.-lyhlsld.js} +1 -1
  247. package/web/app/immutable/nodes/{13.DEB8Wg7Z.js → 13.BEDgKBg7.js} +3 -3
  248. package/web/app/immutable/nodes/{14.lTJrp1kU.js → 14.BRod9dtf.js} +1 -1
  249. package/web/app/immutable/nodes/{15.FeIesTUd.js → 15.BOsyruq5.js} +1 -1
  250. package/web/app/immutable/nodes/{16.CxMj36A8.js → 16.Dep56xFc.js} +2 -2
  251. package/web/app/immutable/nodes/{17.UWmox1Xi.js → 17.B-vrsgfn.js} +2 -2
  252. package/web/app/immutable/nodes/{2.CvCIoPSO.js → 2.BLWWZTlf.js} +12 -12
  253. package/web/app/immutable/nodes/{3.CiC6Pfn1.js → 3.DGf0u_3o.js} +2 -2
  254. package/web/app/immutable/nodes/4.B1fIfTX2.js +1 -0
  255. package/web/app/immutable/nodes/{5.BLr7NlgQ.js → 5.CJgBMBBF.js} +1 -1
  256. package/web/app/immutable/nodes/{6.D5uxDNVM.js → 6.CUqou9xf.js} +1 -1
  257. package/web/app/immutable/nodes/7.DBynvHNx.js +1 -0
  258. package/web/app/immutable/nodes/{8.YvvNLxxs.js → 8.BFuKMy6D.js} +4 -4
  259. package/web/app/immutable/nodes/{9.BiG9XKa-.js → 9.CVLLynGu.js} +5 -5
  260. package/web/app/version.json +1 -1
  261. package/web/generated/paraglide.js +49 -49
  262. package/web/index.html +19 -19
  263. package/web/inline-html-sandbox.html +33 -0
  264. package/web/app/immutable/chunks/B-lr2mEf.js +0 -1
  265. package/web/app/immutable/chunks/BG8GLROv.js +0 -1
  266. package/web/app/immutable/chunks/BTKF7gxr.js +0 -2
  267. package/web/app/immutable/chunks/BeA8kzlg.js +0 -1
  268. package/web/app/immutable/chunks/C1MSnWt8.js +0 -1
  269. package/web/app/immutable/chunks/C7wbrsvU.js +0 -1
  270. package/web/app/immutable/chunks/Ckt4hpBJ.js +0 -1
  271. package/web/app/immutable/chunks/Ctfb1OGa.js +0 -271
  272. package/web/app/immutable/chunks/DDh9M6q9.js +0 -1
  273. package/web/app/immutable/chunks/DTKQLf-J.js +0 -1
  274. package/web/app/immutable/chunks/Dso1_H3c.js +0 -1
  275. package/web/app/immutable/chunks/Ld5BQbYA.js +0 -1
  276. package/web/app/immutable/chunks/jrcipDnr.js +0 -1
  277. package/web/app/immutable/chunks/o_iWJsCl.js +0 -1
  278. package/web/app/immutable/entry/start.BEVcXDol.js +0 -1
  279. package/web/app/immutable/nodes/4.BOU-eZjM.js +0 -1
  280. package/web/app/immutable/nodes/7.CDiSYs4g.js +0 -1
@@ -1 +1 @@
1
- import{Ik as s,i1 as a,lZ as S,nx as f,ma as m}from"./Dk1_0x0Q.js";import{H as O}from"./SQzrn-hj.js";import{dy as d,aV as k,dG as b}from"./CArqGgyL.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)}),h=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=>O((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()),E=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=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}),z=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?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),V=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),H=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),J=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),U=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),Z=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{H as selectAllWorkspaceScriptEntries,U as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,Z as selectScriptListPageState,E as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,J as selectScriptReadJournal,M as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,G as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,V as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
1
+ import{Ik as s,i1 as a,lZ as S,nx as f,ma as m}from"./DYfeeu3f.js";import{H as O}from"./Ba7P2HkQ.js";import{dy as d,aV as k,dG as b}from"./Dml826jn.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)}),h=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=>O((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()),E=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=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}),z=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?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),V=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),H=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),J=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),U=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),Z=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{H as selectAllWorkspaceScriptEntries,U as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,Z as selectScriptListPageState,E as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,J as selectScriptReadJournal,M as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,G as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,V as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
@@ -1,4 +1,4 @@
1
- import{g as Ut}from"./BqvnKOi9.js";import{s as Kt}from"./AatSgrMY.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./98zeaLhZ.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
1
+ import{g as Ut}from"./C7MBFDJp.js";import{s as Kt}from"./DeRdhkHZ.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./DistMkl2.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=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),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{t as V,bq as d,by as j,b as B,a_ as I,bo as L}from"./Dso1_H3c.js";import{bs as F,b_ as z,W as _,bn as H,aA as p,aC as T,a7 as O,ay as P,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./DYhIMPy1.js";import{u as ne,v as ie,j as oe}from"./CnMdEUN9.js";import{G as ae}from"./DCCFERAn.js";import{I as se}from"./C5vuxPIj.js";import"./BuxSPewv.js";import{L as le}from"./Az9OQ8Pw.js";import"./9oNS7b_T.js";import{D as ue,b as W}from"./DuD0elPz.js";import{r as ce,q as y}from"./C1ZTS4Sh.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return V({component:me,...f});F(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var a={get width(){return e()},set width(s=24){e(s),p()},get class(){return n()},set class(s=""){n(s),p()},$set:j,$on:(s,m)=>B(o,s,m)},l=fe();return z(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),H(a)}var de=te('<div class="grid gap-2"><!> <!></div>');function E(f,o){if(new.target)return V({component:E,...f});F(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),a=d(o,"busy",7,!1),l=d(o,"static",7,!1),s=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return a()},set busy(t=!1){a(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return s()},set onAccept(t){s(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:j,$on:(t,g)=>B(o,t,g)},h=O(),i=P(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),S=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(S)},get busy(){return a()},onConfirm:()=>s()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),S=c(()=>!e().options.field.required||n().trim().length>0);W(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(S)},get busy(){return a()},get initialFocus(){return r(v)},onSubmit:()=>s()(n()),get onCancel(){return m()},children:(J,ge)=>{var D=de(),G=U(D);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var N=$();z(()=>ee(N,e().options.field.label)),_(R,N)},$$slots:{default:!0}})};I(G,C=>{e().options.field.label&&C(K)})}var Q=X(G,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);se(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(D),_(J,D)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());W(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return a()},onSubmit:()=>s()(n()),onCancel:()=>s()(n())})}};I(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),H(A)}function pe(f,o){if(new.target)return V({component:pe,...f});F(o,!0);let e=k(null),n=k(""),a=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(a,!1)}));function l(){!r(e)||r(a)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function s(){if(!r(e)||r(a))return;const i=r(e);b(a,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(a,!1),u}}var m={$set:j,$on:(i,u)=>B(o,i,u)},v=O(),A=P(v);{var h=i=>{var u=O(),q=P(u);ae(q,()=>r(e).id,x=>{E(x,{get request(){return r(e)},get busy(){return r(a)},onAccept:s,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};I(A,i=>{r(e)&&i(h)})}return _(f,v),H(m)}export{pe as C,me as L};
1
+ import{t as V,br as d,bz as j,b as B,a_ as I,bp as L}from"./CEL6QztG.js";import{bs as F,b_ as W,W as _,bn as H,aA as p,aC as T,a7 as O,ay as P,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./DYhIMPy1.js";import{u as ne,v as ie,j as oe}from"./yn6WWSq8.js";import{G as ae}from"./CuEQVba7.js";import{I as se}from"./DXDNvQ8c.js";import"./BAnLxjCI.js";import{L as le}from"./BCF9Fm7Q.js";import"./Bsy-6OEk.js";import{D as ue,b as N}from"./CbM8k2mZ.js";import{r as ce,q as y}from"./CJ-BFgZd.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return V({component:me,...f});F(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var a={get width(){return e()},set width(s=24){e(s),p()},get class(){return n()},set class(s=""){n(s),p()},$set:j,$on:(s,m)=>B(o,s,m)},l=fe();return W(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),H(a)}var de=te('<div class="grid gap-2"><!> <!></div>');function E(f,o){if(new.target)return V({component:E,...f});F(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),a=d(o,"busy",7,!1),l=d(o,"static",7,!1),s=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return a()},set busy(t=!1){a(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return s()},set onAccept(t){s(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:j,$on:(t,g)=>B(o,t,g)},h=O(),i=P(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),S=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(S)},get busy(){return a()},onConfirm:()=>s()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),S=c(()=>!e().options.field.required||n().trim().length>0);N(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(S)},get busy(){return a()},get initialFocus(){return r(v)},onSubmit:()=>s()(n()),get onCancel(){return m()},children:(J,ge)=>{var D=de(),z=U(D);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var G=$();W(()=>ee(G,e().options.field.label)),_(R,G)},$$slots:{default:!0}})};I(z,C=>{e().options.field.label&&C(K)})}var Q=X(z,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);se(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(D),_(J,D)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());N(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return a()},onSubmit:()=>s()(n()),onCancel:()=>s()(n())})}};I(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),H(A)}function pe(f,o){if(new.target)return V({component:pe,...f});F(o,!0);let e=k(null),n=k(""),a=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(a,!1)}));function l(){!r(e)||r(a)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function s(){if(!r(e)||r(a))return;const i=r(e);b(a,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(a,!1),u}}var m={$set:j,$on:(i,u)=>B(o,i,u)},v=O(),A=P(v);{var h=i=>{var u=O(),q=P(u);ae(q,()=>r(e).id,x=>{E(x,{get request(){return r(e)},get busy(){return r(a)},onAccept:s,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};I(A,i=>{r(e)&&i(h)})}return _(f,v),H(m)}export{pe as C,me as L};
@@ -1 +1 @@
1
- import{t as oe,bq as i,a_ as h,by as ie,bs as ce,b as le,bu as $}from"./Dso1_H3c.js";import{bs as ue,bk as me,bH as O,ca as ve,aD as s,a5 as R,bl as ee,bS as q,bA as B,b_ as D,bO as K,W as w,bn as de,bV as te,c9 as g,aA as l,aB as U,a7 as fe,ay as pe,b$ as ae}from"./DYhIMPy1.js";import{s as ge,q as xe,v as G,u as se}from"./CnMdEUN9.js";import{F as re,c7 as _e,bU as be}from"./DAGiwOmW.js";import{t as Q,J as ne}from"./Cl-7Au8R.js";var he=U('<span class="animated-number-target svelte-194ris3" aria-atomic="true"> </span>'),we=U('<span><span class="animated-number-value svelte-194ris3"> </span> <!></span>');function Y(F,r){if(new.target)return oe({component:Y,...F});ue(r,!0);const y=()=>$(P,"$displayValue",x),V=()=>$(W,"$displaySecondaryValue",x),[x,Z]=ce();let n=i(r,"value",7),c=i(r,"tier",7,"slow"),o=i(r,"secondaryValue",7),_=i(r,"format",7,e=>Q(e)),z=i(r,"class",7,""),N=i(r,"accessible",7,!0),S=i(r,"pulse",7,!0),k=te(null),m=n(),v=o(),L=te(!1),C=0;const P=ne(n(),c()),W=ne(o()??0,c());me(()=>(O(L,ge(),!0),xe(e=>O(L,e,!0)))),ve(()=>{if(s(L)){C+=1,O(k,null),m=n(),v=o(),P.set(n()),W.set(o()??0);return}if(n()!==m||o()!==v){const e=n()!==m?m:v,u=n()!==m?n():o();O(k,(u??0)>(e??0)?"up":"down",!0),m=n(),v=o();const M=++C;return Promise.all([P.set(n()),W.set(o()??0)]).then(()=>{M===C&&O(k,null)}),()=>{C+=1}}});const t=g(()=>_()(y(),o()===void 0?void 0:V())),b=g(()=>_()(n(),o()));var j={get value(){return n()},set value(e){n(e),l()},get tier(){return c()},set tier(e="slow"){c(e),l()},get secondaryValue(){return o()},set secondaryValue(e){o(e),l()},get format(){return _()},set format(e=u=>Q(u)){_(e),l()},get class(){return z()},set class(e=""){z(e),l()},get accessible(){return N()},set accessible(e=!0){N(e),l()},get pulse(){return S()},set pulse(e=!0){S(e),l()},$set:ie,$on:(e,u)=>le(r,e,u)},A=we();let E;var H=R(A),f=ee(H,!0),d=q(H,2);{var I=e=>{var u=he(),M=ee(u,!0);D(()=>K(M,s(b))),w(e,u)};h(d,e=>{N()&&e(I)})}B(A),D(()=>{E=G(A,1,`animated-number ${z()??""}`,"svelte-194ris3",E,{"animating-up":S()&&s(k)==="up","animating-down":S()&&s(k)==="down"}),se(A,"data-pulse",S()?"true":"false"),se(H,"aria-hidden",N()?"true":void 0),K(f,s(t))}),w(F,A);var J=de(j);return Z(),J}var ye=U("<span><!> <span>+<!></span></span>"),Ve=U("<span><!> <span>-<!></span></span>"),ze=U("<div><!> <!></div>");function Se(F,r){if(new.target)return oe({component:Se,...F});ue(r,!0);let y=i(r,"additions",7,0),V=i(r,"deletions",7,0),x=i(r,"showZero",7,!1),Z=i(r,"size",7,"xs"),n=i(r,"showIcons",7,!1),c=i(r,"animated",7,!1),o=i(r,"class",7,""),_=g(()=>y()>0),z=g(()=>V()>0),N=g(()=>s(_)||s(z)||x());const S={xxs:"text-[0.6rem]",xs:"text-[0.7rem]",sm:"text-sm",md:"text-base"},k={xxs:8,xs:10,sm:12,md:14},m=g(()=>S[Z()]),v=g(()=>k[Z()]);var L={get additions(){return y()},set additions(t=0){y(t),l()},get deletions(){return V()},set deletions(t=0){V(t),l()},get showZero(){return x()},set showZero(t=!1){x(t),l()},get size(){return Z()},set size(t="xs"){Z(t),l()},get showIcons(){return n()},set showIcons(t=!1){n(t),l()},get animated(){return c()},set animated(t=!1){c(t),l()},get class(){return o()},set class(t=""){o(t),l()},$set:ie,$on:(t,b)=>le(r,t,b)},C=fe(),P=pe(C);{var W=t=>{var b=ze(),j=R(b);{var A=f=>{var d=ye(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return _e},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=q(I,2),u=q(R(e));{var M=a=>{Y(a,{get value(){return y()}})},T=a=>{var p=ae();D(X=>K(p,X),[()=>Q(y())]),w(a,p)};h(u,a=>{c()?a(M):a(T,-1)})}B(e),B(d),D(()=>G(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(_)?"text-emerald-600 dark:text-emerald-500":"text-emerald-600/30 dark:text-emerald-500/30"}`)),w(f,d)};h(j,f=>{(s(_)||x())&&f(A)})}var E=q(j,2);{var H=f=>{var d=Ve(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return be},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=q(I,2),u=q(R(e));{var M=a=>{Y(a,{get value(){return V()}})},T=a=>{var p=ae();D(X=>K(p,X),[()=>Q(V())]),w(a,p)};h(u,a=>{c()?a(M):a(T,-1)})}B(e),B(d),D(()=>G(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(z)?"text-red-600 dark:text-red-500":"text-red-600/30 dark:text-red-500/30"}`)),w(f,d)};h(E,f=>{(s(z)||x())&&f(H)})}B(b),D(()=>G(b,1,`flex items-center gap-1 ${o()??""}`)),w(t,b)};h(P,t=>{s(N)&&t(W)})}return w(F,C),de(L)}export{Y as A,Se as L};
1
+ import{t as oe,br as i,a_ as h,bz as ie,bt as ce,b as le,bv as $}from"./CEL6QztG.js";import{bs as ue,bk as me,bH as O,ca as ve,aD as s,a5 as R,bl as ee,bS as B,bA as F,b_ as D,bO as K,W as w,bn as de,bV as te,c9 as g,aA as l,aB as U,a7 as fe,ay as pe,b$ as ae}from"./DYhIMPy1.js";import{s as ge,q as xe,v as G,u as se}from"./yn6WWSq8.js";import{F as re,c7 as _e,bU as be}from"./DnKg2UsP.js";import{t as Q,J as ne}from"./wwtnRh6M.js";var he=U('<span class="animated-number-target svelte-194ris3" aria-atomic="true"> </span>'),we=U('<span><span class="animated-number-value svelte-194ris3"> </span> <!></span>');function Y(L,r){if(new.target)return oe({component:Y,...L});ue(r,!0);const y=()=>$(W,"$displayValue",x),V=()=>$(q,"$displaySecondaryValue",x),[x,Z]=ce();let n=i(r,"value",7),c=i(r,"tier",7,"slow"),o=i(r,"secondaryValue",7),_=i(r,"format",7,e=>Q(e)),z=i(r,"class",7,""),N=i(r,"accessible",7,!0),S=i(r,"pulse",7,!0),k=te(null),m=n(),v=o(),P=te(!1),C=0;const W=ne(n(),c()),q=ne(o()??0,c());me(()=>(O(P,ge(),!0),xe(e=>O(P,e,!0)))),ve(()=>{if(s(P)){C+=1,O(k,null),m=n(),v=o(),W.set(n()),q.set(o()??0);return}if(n()!==m||o()!==v){const e=n()!==m?m:v,u=n()!==m?n():o();O(k,(u??0)>(e??0)?"up":"down",!0),m=n(),v=o();const M=++C;return Promise.all([W.set(n()),q.set(o()??0)]).then(()=>{M===C&&O(k,null)}),()=>{C+=1}}});const t=g(()=>_()(y(),o()===void 0?void 0:V())),b=g(()=>_()(n(),o()));var j={get value(){return n()},set value(e){n(e),l()},get tier(){return c()},set tier(e="slow"){c(e),l()},get secondaryValue(){return o()},set secondaryValue(e){o(e),l()},get format(){return _()},set format(e=u=>Q(u)){_(e),l()},get class(){return z()},set class(e=""){z(e),l()},get accessible(){return N()},set accessible(e=!0){N(e),l()},get pulse(){return S()},set pulse(e=!0){S(e),l()},$set:ie,$on:(e,u)=>le(r,e,u)},A=we();let E;var H=R(A),f=ee(H,!0),d=B(H,2);{var I=e=>{var u=he(),M=ee(u,!0);D(()=>K(M,s(b))),w(e,u)};h(d,e=>{N()&&e(I)})}F(A),D(()=>{E=G(A,1,`animated-number ${z()??""}`,"svelte-194ris3",E,{"animating-up":S()&&s(k)==="up","animating-down":S()&&s(k)==="down"}),se(A,"data-pulse",S()?"true":"false"),se(H,"aria-hidden",N()?"true":void 0),K(f,s(t))}),w(L,A);var J=de(j);return Z(),J}var ye=U("<span><!> <span>+<!></span></span>"),Ve=U("<span><!> <span>-<!></span></span>"),ze=U("<div><!> <!></div>");function Se(L,r){if(new.target)return oe({component:Se,...L});ue(r,!0);let y=i(r,"additions",7,0),V=i(r,"deletions",7,0),x=i(r,"showZero",7,!1),Z=i(r,"size",7,"xs"),n=i(r,"showIcons",7,!1),c=i(r,"animated",7,!1),o=i(r,"class",7,""),_=g(()=>y()>0),z=g(()=>V()>0),N=g(()=>s(_)||s(z)||x());const S={xxs:"text-[0.6rem]",xs:"text-[0.7rem]",sm:"text-sm",md:"text-base"},k={xxs:8,xs:10,sm:12,md:14},m=g(()=>S[Z()]),v=g(()=>k[Z()]);var P={get additions(){return y()},set additions(t=0){y(t),l()},get deletions(){return V()},set deletions(t=0){V(t),l()},get showZero(){return x()},set showZero(t=!1){x(t),l()},get size(){return Z()},set size(t="xs"){Z(t),l()},get showIcons(){return n()},set showIcons(t=!1){n(t),l()},get animated(){return c()},set animated(t=!1){c(t),l()},get class(){return o()},set class(t=""){o(t),l()},$set:ie,$on:(t,b)=>le(r,t,b)},C=fe(),W=pe(C);{var q=t=>{var b=ze(),j=R(b);{var A=f=>{var d=ye(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return _e},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return y()}})},T=a=>{var p=ae();D(X=>K(p,X),[()=>Q(y())]),w(a,p)};h(u,a=>{c()?a(M):a(T,-1)})}F(e),F(d),D(()=>G(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(_)?"text-emerald-600 dark:text-emerald-500":"text-emerald-600/30 dark:text-emerald-500/30"}`)),w(f,d)};h(j,f=>{(s(_)||x())&&f(A)})}var E=B(j,2);{var H=f=>{var d=Ve(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return be},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return V()}})},T=a=>{var p=ae();D(X=>K(p,X),[()=>Q(V())]),w(a,p)};h(u,a=>{c()?a(M):a(T,-1)})}F(e),F(d),D(()=>G(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(z)?"text-red-600 dark:text-red-500":"text-red-600/30 dark:text-red-500/30"}`)),w(f,d)};h(E,f=>{(s(z)||x())&&f(H)})}F(b),D(()=>G(b,1,`flex items-center gap-1 ${o()??""}`)),w(t,b)};h(W,t=>{s(N)&&t(q)})}return w(L,C),de(P)}export{Y as A,Se as L};
@@ -1 +1 @@
1
- import{c as D}from"./DyrELBv-.js";import{H as d,d as l,e as u,F as c,g as h,S as m,h as p,c as w,f as _,C as R}from"./MCnrQrjH.js";import{D as H,a as b,b as y,R as T,i as U,j as x,t as M,k as j}from"./MCnrQrjH.js";import{l as t}from"./35OKERyz.js";const I=120*1e3;class f{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/html.worker-QVzu2jYR.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new f(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new u(e)),t.registerFoldingRangeProvider(r,new c(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function F(i){const n=[],e=[],r=new f(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new u(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new c(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new _(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,H as DefinitionAdapter,b as DiagnosticsAdapter,y as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,u as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,c as FoldingRangeAdapter,d as HoverAdapter,T as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,f as WorkerManager,U as fromPosition,x as fromRange,F as setupMode,W as setupMode1,M as toRange,j as toTextEdit};
1
+ import{c as D}from"./CwDVmyxq.js";import{H as d,d as l,e as u,F as c,g as h,S as m,h as p,c as w,f as _,C as R}from"./xqulUQTc.js";import{D as H,a as b,b as y,R as T,i as U,j as x,t as M,k as j}from"./xqulUQTc.js";import{l as t}from"./B1mjFyJY.js";const I=120*1e3;class f{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/html.worker-QVzu2jYR.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new f(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new u(e)),t.registerFoldingRangeProvider(r,new c(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function F(i){const n=[],e=[],r=new f(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new u(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new c(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new _(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,H as DefinitionAdapter,b as DiagnosticsAdapter,y as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,u as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,c as FoldingRangeAdapter,d as HoverAdapter,T as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,f as WorkerManager,U as fromPosition,x as fromRange,F as setupMode,W as setupMode1,M as toRange,j as toTextEdit};
@@ -1,4 +1,4 @@
1
- import{p as tt}from"./BcKZevFv.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./98zeaLhZ.js";import{p as ut}from"./CgWmg0h0.js";import{o as mt}from"./P0G8SF-C.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
1
+ import{p as tt}from"./BwxmdpQk.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./DistMkl2.js";import{p as ut}from"./Dz2X4bjq.js";import{o as mt}from"./CBHhz236.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
2
2
  .pieCircle{
3
3
  stroke: ${t.pieStrokeColor};
4
4
  stroke-width : ${t.pieStrokeWidth};
@@ -1 +1 @@
1
- import{b as s}from"./98zeaLhZ.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{b as s}from"./DistMkl2.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 +1 @@
1
- import{r as e}from"./CnMdEUN9.js";import{p as t}from"./XJv96NUg.js";const o=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];e({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:o});const s=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];t({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:s,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});
1
+ import{r as e}from"./yn6WWSq8.js";import{p as t}from"./XJv96NUg.js";const o=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];e({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:o});const s=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];t({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:s,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});
@@ -1 +1 @@
1
- import{l as t}from"./35OKERyz.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{o as conf,m as language};
1
+ import{l as t}from"./B1mjFyJY.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{o as conf,m as language};
@@ -1 +1 @@
1
- import{a as S}from"./BdWqymET.js";import{aE as g}from"./DYhIMPy1.js";import{g as c}from"./BVL9duQ5.js";import{p as l}from"./84oPQ-Z5.js";import{d as I}from"./B0Z-1lwJ.js";import{dC as w}from"./CArqGgyL.js";import{Bk as f,g as y,Ik as o,gS as A,uS as m,uT as N,uV as b}from"./Dk1_0x0Q.js";import{g as W,n as h}from"./DXO_adPf.js";import{S as D,a as R,n as E}from"./q6xIsTef.js";import{n as O,o as v}from"./Ckm2No1k.js";const k="intent:onboarding-skip:v1";function P(e){return f.getItem(h(k,e))==="1"}function re(e){P(e)||f.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(w.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function C(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function $(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=g(l),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=g(l).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function B(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function M(){r.info("[closeDrawer] Closing drawer");const a=g(l).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function G(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function H(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=u();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function u(e){return w.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function V(){const e=u();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function Y(e){const a=u(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:M,findSourcePanelId:$,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:Y,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:V,navigateToNote:p,navigateToSettings:H,navigateToSpec:B,navigateToTask:G,navigateToTerminal:C},Symbol.toStringTag,{value:"Module"}));export{U as a,V as b,p as c,H as d,G as e,$ as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
1
+ import{a as S}from"./BdWqymET.js";import{aE as g}from"./DYhIMPy1.js";import{g as c}from"./W61kh8fv.js";import{p as l}from"./Bgmz76v7.js";import{d as I}from"./B0Z-1lwJ.js";import{dC as w}from"./Dml826jn.js";import{Bk as f,g as y,Ik as o,gS as A,uS as m,uT as N,uV as b}from"./DYfeeu3f.js";import{g as W,n as h}from"./pU8ZyAzb.js";import{S as D,a as R,n as E}from"./CaEWxG5p.js";import{n as O,o as v}from"./CJDCNDP4.js";const k="intent:onboarding-skip:v1";function P(e){return f.getItem(h(k,e))==="1"}function re(e){P(e)||f.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(w.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function C(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function $(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=g(l),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=g(l).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function B(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function M(){r.info("[closeDrawer] Closing drawer");const a=g(l).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function G(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function H(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=u();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function u(e){return w.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function V(){const e=u();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function Y(e){const a=u(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:M,findSourcePanelId:$,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:Y,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:V,navigateToNote:p,navigateToSettings:H,navigateToSpec:B,navigateToTask:G,navigateToTerminal:C},Symbol.toStringTag,{value:"Module"}));export{U as a,V as b,p as c,H as d,G as e,$ as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
@@ -1 +1 @@
1
- import{t as Ze,bq as p,a_ as fe,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./Dso1_H3c.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as ge,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./DYhIMPy1.js";import{b as St}from"./BaIAhI85.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./Co38dt7I.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as be}from"./D3DGxoeO.js";import{c as Et}from"./ChTqQfQN.js";import{w as Ae,v as Ft}from"./CnMdEUN9.js";import{Ik as ot}from"./Dk1_0x0Q.js";import{f as qe}from"./m5UczIQR.js";import{F as He,b9 as It,bk as Pt}from"./DAGiwOmW.js";import{i as Ue}from"./BfDRfZ1x.js";import{dr as zt,cn as Nt}from"./CArqGgyL.js";import{g as At}from"./Cxbk0QV6.js";import{c as Vt}from"./C7Fm8r7x.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./oJD7n1Ce.js";import{g as B,R as Ge,U as Je}from"./35OKERyz.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,w=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:T,isAddition:E,speed:I=30}=b;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const T=g.signal,E=c.split("");w=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function pe(c,b){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);w=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=b*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await w}let re=Ce(()=>w!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,b)=>Qe(a,c,b)},ee=Mt(),ae=ye(ee);{var q=c=>{var b=Dt(),T=Z(b),E=$(T,2),I=_e(E,!0);K(b),ge(V=>{Ae(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function vn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),w=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),b=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=we(w()),o=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=we(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(be(e))});function we(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=we(w()),m=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,we(w()));t=B.create(i(d),{model:m,theme:be(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),wt=Z(Fe);{var bt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(wt,e=>{i(U)?e(bt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
1
+ import{t as Ze,br as p,a_ as fe,bz as Ke,bv as Y,bt as Ye,b as Qe,bp as M}from"./CEL6QztG.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as ge,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./DYhIMPy1.js";import{b as St}from"./BaIAhI85.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./D3u1ZDXs.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as be}from"./BbOFhOMi.js";import{c as Et}from"./ChTqQfQN.js";import{w as Ae,v as Ft}from"./yn6WWSq8.js";import{Ik as ot}from"./DYfeeu3f.js";import{f as qe}from"./Cd_8r4jJ.js";import{F as He,b9 as It,bk as Pt}from"./DnKg2UsP.js";import{i as Ue}from"./CsUbymBr.js";import{dr as zt,cn as Nt}from"./Dml826jn.js";import{g as At}from"./CcXckLs7.js";import{c as Vt}from"./D-Brs8OV.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./DR_tn5Kl.js";import{g as B,R as Ge,U as Je}from"./B1mjFyJY.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,w=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:T,isAddition:E,speed:I=30}=b;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const T=g.signal,E=c.split("");w=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function pe(c,b){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);w=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=b*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await w}let re=Ce(()=>w!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,b)=>Qe(a,c,b)},ee=Mt(),ae=ye(ee);{var q=c=>{var b=Dt(),T=Z(b),E=$(T,2),I=_e(E,!0);K(b),ge(V=>{Ae(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function vn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),w=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),b=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=we(w()),o=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=we(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(be(e))});function we(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=we(w()),m=be(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,we(w()));t=B.create(i(d),{model:m,theme:be(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),wt=Z(Fe);{var bt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(wt,e=>{i(U)?e(bt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
@@ -1,4 +1,4 @@
1
- import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./98zeaLhZ.js";import{b as Xt,l as Yt}from"./P0G8SF-C.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&&lt[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
1
+ import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./DistMkl2.js";import{b as Xt,l as Yt}from"./CBHhz236.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&&lt[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+ft.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Ct="Parse error on line "+(dt+1)+": Unexpected "+(L==Vt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:At,expected:ft})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+L);switch(B[0]){case 1:u.push(L),S.push(D.yytext),o.push(D.yylloc),u.push(B[1]),L=null,zt=D.yyleng,p=D.yytext,dt=D.yylineno,At=D.yylloc;break;case 2:if(N=this.productions_[B[1]][1],j.$=S[S.length-N],j._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},xi&&(j._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),wt=this.performAction.apply(j,[p,zt,dt,$.yy,B[1],S,o].concat(di)),typeof wt<"u")return wt;N&&(u=u.slice(0,-1*N*2),S=S.slice(0,-1*N),o=o.slice(0,-1*N)),u.push(this.productions_[B[1]][0]),S.push(j.$),o.push(j._$),Wt=lt[u[u.length-2]][u[u.length-1]],u.push(Wt);break;case 3:return!0}}return!0},"parse")},rt=(function(){var O={EOF:1,parseError:n(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:n(function(r,g){return this.yy=g||this.yy||{},this._input=r,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:n(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n(function(r){var g=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var x=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),u.length-1&&(this.yylineno-=u.length-1);var S=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:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{c as P}from"./DyrELBv-.js";import{c as J,f as Q,C as Y,H as y,g as G,b as X,F as Z,S as $,a as K}from"./MCnrQrjH.js";import{D as Oe,d as Ie,e as Le,R as Ne,h as Ee,i as Ue,j as De,t as Be,k as Re}from"./MCnrQrjH.js";import{l as _,g as B}from"./35OKERyz.js";const x=120*1e3;class C{constructor(i){this._defaults=i,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=P({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/json.worker-Cgaz53LV.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...i){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(i)}).then(n=>t)}}function ee(e,i=!1){const t=e.length;let n=0,o="",p=0,l=16,u=0,g=0,w=0,v=0,c=0;function O(s,m){let a=0,r=0;for(;a<s;){let f=e.charCodeAt(n);if(f>=48&&f<=57)r=r*16+f-48;else if(f>=65&&f<=70)r=r*16+f-65+10;else if(f>=97&&f<=102)r=r*16+f-97+10;else break;n++,a++}return a<s&&(r=-1),r}function U(s){n=s,o="",p=0,l=16,c=0}function N(){let s=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&T(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&T(e.charCodeAt(n)))for(n++;n<e.length&&T(e.charCodeAt(n));)n++;else return c=3,e.substring(s,n);let m=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&T(e.charCodeAt(n))){for(n++;n<e.length&&T(e.charCodeAt(n));)n++;m=n}else c=3;return e.substring(s,m)}function q(){let s="",m=n;for(;;){if(n>=t){s+=e.substring(m,n),c=2;break}const a=e.charCodeAt(n);if(a===34){s+=e.substring(m,n),n++;break}if(a===92){if(s+=e.substring(m,n),n++,n>=t){c=2;break}switch(e.charCodeAt(n++)){case 34:s+='"';break;case 92:s+="\\";break;case 47:s+="/";break;case 98:s+="\b";break;case 102:s+="\f";break;case 110:s+=`
1
+ import{c as P}from"./CwDVmyxq.js";import{c as J,f as Q,C as Y,H as y,g as G,b as X,F as Z,S as $,a as K}from"./xqulUQTc.js";import{D as Oe,d as Ie,e as Le,R as Ne,h as Ee,i as Ue,j as De,t as Be,k as Re}from"./xqulUQTc.js";import{l as _,g as B}from"./B1mjFyJY.js";const x=120*1e3;class C{constructor(i){this._defaults=i,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=P({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/json.worker-Cgaz53LV.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...i){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(i)}).then(n=>t)}}function ee(e,i=!1){const t=e.length;let n=0,o="",p=0,l=16,u=0,g=0,w=0,v=0,c=0;function O(s,m){let a=0,r=0;for(;a<s;){let f=e.charCodeAt(n);if(f>=48&&f<=57)r=r*16+f-48;else if(f>=65&&f<=70)r=r*16+f-65+10;else if(f>=97&&f<=102)r=r*16+f-97+10;else break;n++,a++}return a<s&&(r=-1),r}function U(s){n=s,o="",p=0,l=16,c=0}function N(){let s=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&T(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&T(e.charCodeAt(n)))for(n++;n<e.length&&T(e.charCodeAt(n));)n++;else return c=3,e.substring(s,n);let m=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&T(e.charCodeAt(n))){for(n++;n<e.length&&T(e.charCodeAt(n));)n++;m=n}else c=3;return e.substring(s,m)}function q(){let s="",m=n;for(;;){if(n>=t){s+=e.substring(m,n),c=2;break}const a=e.charCodeAt(n);if(a===34){s+=e.substring(m,n),n++;break}if(a===92){if(s+=e.substring(m,n),n++,n>=t){c=2;break}switch(e.charCodeAt(n++)){case 34:s+='"';break;case 92:s+="\\";break;case 47:s+="/";break;case 98:s+="\b";break;case 102:s+="\f";break;case 110:s+=`
2
2
  `;break;case 114:s+="\r";break;case 116:s+=" ";break;case 117:const f=O(4);f>=0?s+=String.fromCharCode(f):c=4;break;default:c=5}m=n;continue}if(a>=0&&a<=31)if(I(a)){s+=e.substring(m,n),c=2;break}else c=6;n++}return s}function D(){if(o="",c=0,p=n,g=u,v=w,n>=t)return p=t,l=17;let s=e.charCodeAt(n);if(E(s)){do n++,o+=String.fromCharCode(s),s=e.charCodeAt(n);while(E(s));return l=15}if(I(s))return n++,o+=String.fromCharCode(s),s===13&&e.charCodeAt(n)===10&&(n++,o+=`
3
3
  `),u++,w=n,l=14;switch(s){case 123:return n++,l=1;case 125:return n++,l=2;case 91:return n++,l=3;case 93:return n++,l=4;case 58:return n++,l=6;case 44:return n++,l=5;case 34:return n++,o=q(),l=10;case 47:const m=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<t&&!I(e.charCodeAt(n));)n++;return o=e.substring(m,n),l=12}if(e.charCodeAt(n+1)===42){n+=2;const a=t-1;let r=!1;for(;n<a;){const f=e.charCodeAt(n);if(f===42&&e.charCodeAt(n+1)===47){n+=2,r=!0;break}n++,I(f)&&(f===13&&e.charCodeAt(n)===10&&n++,u++,w=n)}return r||(n++,c=1),o=e.substring(m,n),l=13}return o+=String.fromCharCode(s),n++,l=16;case 45:if(o+=String.fromCharCode(s),n++,n===t||!T(e.charCodeAt(n)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=N(),l=11;default:for(;n<t&&z(s);)n++,s=e.charCodeAt(n);if(p!==n){switch(o=e.substring(p,n),o){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return o+=String.fromCharCode(s),n++,l=16}}function z(s){if(E(s)||I(s))return!1;switch(s){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function d(){let s;do s=D();while(s>=12&&s<=15);return s}return{setPosition:U,getPosition:()=>n,scan:i?d:D,getToken:()=>l,getTokenValue:()=>o,getTokenOffset:()=>p,getTokenLength:()=>n-p,getTokenStartLine:()=>g,getTokenStartCharacter:()=>p-v,getTokenError:()=>c}}function E(e){return e===32||e===9}function I(e){return e===10||e===13}function T(e){return e>=48&&e<=57}var R;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(R||(R={}));new Array(20).fill(0).map((e,i)=>" ".repeat(i));const A=200;new Array(A).fill(0).map((e,i)=>`
4
4
  `+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>"\r"+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>`\r
@@ -1 +1 @@
1
- var f=Object.defineProperty;var y=(s,t,e)=>t in s?f(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>y(s,typeof t!="symbol"?t+"":t,e);import{H as m}from"./DCCFERAn.js";import{a as p}from"./CC7to1B5.js";function b(s){const t=s??document.activeElement;return t?!!(t.classList?.contains("xterm")||t.classList?.contains("xterm-helper-textarea")||typeof t.closest=="function"&&t.closest(".xterm")||typeof t.closest=="function"&&t.closest(".terminal-panel")):!1}function K(s){const t=s??document.activeElement;if(!t)return!1;if(p(t))return!0;const e=typeof t.closest=="function";return!!(t.classList?.contains("monaco-editor")||t.classList?.contains("inputarea")||e&&t.closest(".monaco-editor")||t.classList?.contains("cm-content")||e&&t.closest(".cm-editor")||t.classList?.contains("ProseMirror")||e&&t.closest(".ProseMirror"))}class E{constructor(){i(this,"shortcuts",new Map);i(this,"dynamicShortcuts",[]);i(this,"enabled",!1);i(this,"boundHandler",null);i(this,"localFallbacks",new WeakMap);i(this,"boundLocalFallback",t=>{const e=this.localFallbacks.get(t);this.localFallbacks.delete(t),!(!e||t.defaultPrevented)&&(t.preventDefault(),t.stopPropagation(),e.action())});this.boundHandler=this.handleKeyDown.bind(this)}register(t){if(t.binding){this.dynamicShortcuts.push(t);return}const e=this.getShortcutKey(t);this.shortcuts.set(e,t)}unregister(t){const e=this.getShortcutKey(t);this.shortcuts.delete(e)}enable(){!this.enabled&&this.boundHandler&&(window.addEventListener("keydown",this.boundHandler,!0),this.enabled=!0)}disable(){this.enabled&&this.boundHandler&&(window.removeEventListener("keydown",this.boundHandler,!0),window.removeEventListener("keydown",this.boundLocalFallback),this.localFallbacks=new WeakMap,this.enabled=!1)}attach(){this.enable()}detach(){this.disable()}handleKeyDown(t){const e=t.target;if(e.closest?.("[data-shortcut-input], [data-shortcut-entry]"))return;const o=b(e),c=K(e),r=[];t.ctrlKey&&r.push("ctrl"),t.metaKey&&r.push("meta"),t.shiftKey&&r.push("shift"),t.altKey&&r.push("alt");let l=t.key.toLowerCase();t.altKey&&t.code.startsWith("Key")?l=t.code.slice(3).toLowerCase():t.altKey&&t.code.startsWith("Digit")&&(l=t.code.slice(5)),r.push(l);const d=r.join("+"),u=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC"),a=[...this.dynamicShortcuts].reverse().find(({binding:n,enabled:h})=>n&&k(t,n(),u)&&(!h||h(t)))??this.shortcuts.get(d);if(a){if(o&&!a.allowInTerminal||a.ignoreRepeat&&t.repeat||a.enabled&&!a.enabled(t)||a.skipInEditableElements&&c)return;const n=u?t.metaKey||t.altKey:t.ctrlKey||t.metaKey||t.altKey;if(!c||n||a.global){if(a.preferLocal){this.localFallbacks.set(t,a),window.removeEventListener("keydown",this.boundLocalFallback),window.addEventListener("keydown",this.boundLocalFallback);return}t.preventDefault(),t.stopPropagation(),a.action()}}}getShortcutKey(t){const e=[];return t.ctrl&&e.push("ctrl"),t.meta&&e.push("meta"),t.shift&&e.push("shift"),t.alt&&e.push("alt"),e.push(t.key.toLowerCase()),e.join("+")}getShortcuts(){return Array.from(this.shortcuts.values())}clear(){this.shortcuts.clear(),this.dynamicShortcuts=[]}destroy(){this.detach(),this.clear()}}function k(s,t,e){const o=s.altKey&&s.code.startsWith("Key")?s.code.slice(3):s.altKey&&s.code.startsWith("Digit")?s.code.slice(5):s.key;return m({key:o,metaKey:s.metaKey,ctrlKey:s.ctrlKey,altKey:s.altKey,shiftKey:s.shiftKey},t,e)}export{E as K,b as a,K as i};
1
+ var f=Object.defineProperty;var y=(s,t,e)=>t in s?f(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>y(s,typeof t!="symbol"?t+"":t,e);import{H as m}from"./CuEQVba7.js";import{a as p}from"./CC7to1B5.js";function b(s){const t=s??document.activeElement;return t?!!(t.classList?.contains("xterm")||t.classList?.contains("xterm-helper-textarea")||typeof t.closest=="function"&&t.closest(".xterm")||typeof t.closest=="function"&&t.closest(".terminal-panel")):!1}function K(s){const t=s??document.activeElement;if(!t)return!1;if(p(t))return!0;const e=typeof t.closest=="function";return!!(t.classList?.contains("monaco-editor")||t.classList?.contains("inputarea")||e&&t.closest(".monaco-editor")||t.classList?.contains("cm-content")||e&&t.closest(".cm-editor")||t.classList?.contains("ProseMirror")||e&&t.closest(".ProseMirror"))}class E{constructor(){i(this,"shortcuts",new Map);i(this,"dynamicShortcuts",[]);i(this,"enabled",!1);i(this,"boundHandler",null);i(this,"localFallbacks",new WeakMap);i(this,"boundLocalFallback",t=>{const e=this.localFallbacks.get(t);this.localFallbacks.delete(t),!(!e||t.defaultPrevented)&&(t.preventDefault(),t.stopPropagation(),e.action())});this.boundHandler=this.handleKeyDown.bind(this)}register(t){if(t.binding){this.dynamicShortcuts.push(t);return}const e=this.getShortcutKey(t);this.shortcuts.set(e,t)}unregister(t){const e=this.getShortcutKey(t);this.shortcuts.delete(e)}enable(){!this.enabled&&this.boundHandler&&(window.addEventListener("keydown",this.boundHandler,!0),this.enabled=!0)}disable(){this.enabled&&this.boundHandler&&(window.removeEventListener("keydown",this.boundHandler,!0),window.removeEventListener("keydown",this.boundLocalFallback),this.localFallbacks=new WeakMap,this.enabled=!1)}attach(){this.enable()}detach(){this.disable()}handleKeyDown(t){const e=t.target;if(e.closest?.("[data-shortcut-input], [data-shortcut-entry]"))return;const o=b(e),c=K(e),r=[];t.ctrlKey&&r.push("ctrl"),t.metaKey&&r.push("meta"),t.shiftKey&&r.push("shift"),t.altKey&&r.push("alt");let l=t.key.toLowerCase();t.altKey&&t.code.startsWith("Key")?l=t.code.slice(3).toLowerCase():t.altKey&&t.code.startsWith("Digit")&&(l=t.code.slice(5)),r.push(l);const d=r.join("+"),u=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC"),a=[...this.dynamicShortcuts].reverse().find(({binding:n,enabled:h})=>n&&k(t,n(),u)&&(!h||h(t)))??this.shortcuts.get(d);if(a){if(o&&!a.allowInTerminal||a.ignoreRepeat&&t.repeat||a.enabled&&!a.enabled(t)||a.skipInEditableElements&&c)return;const n=u?t.metaKey||t.altKey:t.ctrlKey||t.metaKey||t.altKey;if(!c||n||a.global){if(a.preferLocal){this.localFallbacks.set(t,a),window.removeEventListener("keydown",this.boundLocalFallback),window.addEventListener("keydown",this.boundLocalFallback);return}t.preventDefault(),t.stopPropagation(),a.action()}}}getShortcutKey(t){const e=[];return t.ctrl&&e.push("ctrl"),t.meta&&e.push("meta"),t.shift&&e.push("shift"),t.alt&&e.push("alt"),e.push(t.key.toLowerCase()),e.join("+")}getShortcuts(){return Array.from(this.shortcuts.values())}clear(){this.shortcuts.clear(),this.dynamicShortcuts=[]}destroy(){this.detach(),this.clear()}}function k(s,t,e){const o=s.altKey&&s.code.startsWith("Key")?s.code.slice(3):s.altKey&&s.code.startsWith("Digit")?s.code.slice(5):s.key;return m({key:o,metaKey:s.metaKey,ctrlKey:s.ctrlKey,altKey:s.altKey,shiftKey:s.shiftKey},t,e)}export{E as K,b as a,K as i};
@@ -0,0 +1 @@
1
+ import{t as T,br as r,a_ as W,bz as $,bt as x,b as B,bv as C}from"./CEL6QztG.js";import{bs as L,cd as S,ca as z,a7 as m,ay as f,W as k,bn as D,aA as o}from"./DYhIMPy1.js";import{G}from"./CuEQVba7.js";import{a as H}from"./C0fLKaB9.js";import{dr as j}from"./Dml826jn.js";import{Ik as q,gL as E}from"./DYfeeu3f.js";function F(i,t){if(new.target)return T({component:F,...i});L(t,!0);const d=()=>C(_,"$workspace$",b),[b,v]=x();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const l=S(a());z(()=>l.set(a()));const _=j(l);var g={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:$,$on:(e,s)=>B(t,e,s)},u=m(),w=f(u);{var y=e=>{var s=m(),A=f(s);G(A,a,h=>{H(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>q.dispatch(E(n()??a(),c().id))})}),k(e,s)};W(w,e=>{p()&&d()&&e(y)})}k(i,u);var I=D(g);return v(),I}export{F as default};
@@ -1 +1 @@
1
- import{b as i}from"./98zeaLhZ.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
1
+ import{b as i}from"./DistMkl2.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
@@ -1 +1 @@
1
- import{t as ht,bq as E,by as $t,bs as It,b as bt,bu as d}from"./Dso1_H3c.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as H,bV as L,aA as U}from"./DYhIMPy1.js";import{G as At}from"./DCCFERAn.js";import{b as Dt}from"./BaIAhI85.js";import{Ik as a,eu as Pt,ev as St,nV as Et,z3 as Ut,nZ as _t,n_ as Ft,IR as Tt,J6 as Wt,IW as xt,uV as qt,ua as vt}from"./Dk1_0x0Q.js";import{b2 as Ht}from"./DpeaMqro.js";import{g as Lt}from"./DfN8_dcw.js";import{dr as Nt,bN as Ot,bC as Bt,bG as Gt,bE as Kt}from"./CArqGgyL.js";import{af as Mt}from"./BB_nvikr.js";import{C as Vt}from"./Ct1LOYoS.js";import{V as jt}from"./mdduA0pr.js";import{bQ as Jt,bK as zt,b5 as Qt}from"./yLsotFg8.js";import{i as Zt}from"./H2jLkRRS.js";function Xt(_,f){if(new.target)return ht({component:Xt,..._});yt(f,!0);const N=()=>d(Y,"$gitRoots$",n),F=()=>d(X,"$workspace",n),O=()=>d(st,"$ftCommits$",n),B=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),G=()=>d(Q,"$foldUnchanged",n),K=()=>d(z,"$lineWrapping",n),M=()=>d(Z,"$diffSideBySide",n),V=()=>d(at,"$ftLoading$",n),[n,j]=It(),J=e=>{jt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{H(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return G()},onToggleFold:()=>a.dispatch(xt()),get wrapEnabled(){return K()},onToggleWrap:()=>a.dispatch(Wt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Tt())})},z=Jt(),Q=zt(),Z=Qt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const T=Lt(),g=Ht(()=>i()),X=Nt(g),Y=Mt(g),w=crypto.randomUUID(),tt=Ot(g,w),c=s(()=>h().data?.commitHash||""),W=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),x=s(()=>t(r)&&N().find(e=>e.id===t(r))?.path||""),et=s(()=>t(x)||F()?.worktreePath||F()?.repositoryPath||""),st=Bt(g),ot=Gt(g),at=Kt(g),nt=s(()=>O()||[]),it=s(()=>B()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=L(!0),R=L(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Zt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(W)}}));k(()=>{!T||!$()||T.registerActions({display:J})});const q=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,q)),()=>a.dispatch(Ft(e,q))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$set:$t,$on:(e,o)=>bt(f,e,o)},v=Ct(),gt=Rt(v);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>V()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(x)||void 0),ut=s(()=>({hash:t(c),message:t(W),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Vt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>H(R,b,!0),()=>t(R))}}),kt(_,v);var pt=wt(mt);return j(),pt}export{Xt as default};
1
+ import{t as ht,br as E,bz as $t,bt as It,b as bt,bv as d}from"./CEL6QztG.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as L,bV as N,aA as U}from"./DYhIMPy1.js";import{G as At}from"./CuEQVba7.js";import{b as Dt}from"./BaIAhI85.js";import{Ik as a,eu as Pt,ev as St,nV as Et,z3 as Ut,nZ as _t,n_ as Ft,IR as Tt,J6 as Wt,IW as xt,uV as vt,ua as Ht}from"./DYfeeu3f.js";import{b2 as Lt}from"./znAltH1L.js";import{g as Nt}from"./DfN8_dcw.js";import{dr as Ot,bN as qt,bC as Bt,bG as Gt,bE as Kt}from"./Dml826jn.js";import{af as Mt}from"./Do-q4-tL.js";import{C as Vt}from"./B25gpTlR.js";import{V as jt}from"./FjbzmN5N.js";import{bQ as zt,bK as Jt,b5 as Qt}from"./G3hahPKG.js";import{i as Zt}from"./H2jLkRRS.js";function Xt(_,f){if(new.target)return ht({component:Xt,..._});yt(f,!0);const O=()=>d(Y,"$gitRoots$",n),F=()=>d(X,"$workspace",n),q=()=>d(st,"$ftCommits$",n),B=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),G=()=>d(Q,"$foldUnchanged",n),K=()=>d(J,"$lineWrapping",n),M=()=>d(Z,"$diffSideBySide",n),V=()=>d(at,"$ftLoading$",n),[n,j]=It(),z=e=>{jt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{L(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return G()},onToggleFold:()=>a.dispatch(xt()),get wrapEnabled(){return K()},onToggleWrap:()=>a.dispatch(Wt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Tt())})},J=zt(),Q=Jt(),Z=Qt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const T=Nt(),g=Lt(()=>i()),X=Ot(g),Y=Mt(g),w=crypto.randomUUID(),tt=qt(g,w),c=s(()=>h().data?.commitHash||""),W=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),x=s(()=>t(r)&&O().find(e=>e.id===t(r))?.path||""),et=s(()=>t(x)||F()?.worktreePath||F()?.repositoryPath||""),st=Bt(g),ot=Gt(g),at=Kt(g),nt=s(()=>q()||[]),it=s(()=>B()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=N(!0),R=N(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Zt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(W)}}));k(()=>{!T||!$()||T.registerActions({display:z})});const v=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,v)),()=>a.dispatch(Ft(e,v))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$set:$t,$on:(e,o)=>bt(f,e,o)},H=Ct(),gt=Rt(H);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>V()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(x)||void 0),ut=s(()=>({hash:t(c),message:t(W),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Vt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Ht(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>L(R,b,!0),()=>t(R))}}),kt(_,H);var pt=wt(mt);return j(),pt}export{Xt as default};