@intent-hq/web 2.385.2 → 2.387.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.DSZNT9Vm.css +1 -0
  3. package/web/app/immutable/chunks/{CBueLH7U.js → -2rOENSl.js} +1 -1
  4. package/web/app/immutable/chunks/{-8sNsc56.js → -hTxjwFO.js} +1 -1
  5. package/web/app/immutable/chunks/{DJPIUVkw.js → 0Kw0mmSW.js} +1 -1
  6. package/web/app/immutable/chunks/{deEweluJ.js → 6NStP9u7.js} +1 -1
  7. package/web/app/immutable/chunks/{BzirSHSv.js → 6uD0LviT.js} +1 -1
  8. package/web/app/immutable/chunks/{Dxd7AQYv.js → 9fNNDfgo.js} +1 -1
  9. package/web/app/immutable/chunks/{C9ew0Hx2.js → AXzVloaq.js} +1 -1
  10. package/web/app/immutable/chunks/{TT8yXpG-.js → AfZNmzF0.js} +1 -1
  11. package/web/app/immutable/chunks/{BSUnflvl.js → B-bGycam.js} +1 -1
  12. package/web/app/immutable/chunks/{Da-Blgd9.js → B0RPkrmZ.js} +1 -1
  13. package/web/app/immutable/chunks/{pomj9evG.js → B1TtNV9x.js} +1 -1
  14. package/web/app/immutable/chunks/{DPtj8tX0.js → B3QTKmHy.js} +1 -1
  15. package/web/app/immutable/chunks/{BdU-kPC9.js → B3ziY5oo.js} +2 -2
  16. package/web/app/immutable/chunks/{DE32K02M.js → B6-aVrNf.js} +4 -4
  17. package/web/app/immutable/chunks/{CMq0sOjt.js → B79iAtSu.js} +2 -2
  18. package/web/app/immutable/chunks/{B433f4mk.js → B7esq_NU.js} +1 -1
  19. package/web/app/immutable/chunks/{BByf3ILj.js → B9BALnhr.js} +1 -1
  20. package/web/app/immutable/chunks/{nw_ZiYCy.js → B9GWGWit.js} +1 -1
  21. package/web/app/immutable/chunks/{TC7OsYhy.js → BAAQt1ZW.js} +1 -1
  22. package/web/app/immutable/chunks/{DVz0ewou.js → BC5HDfRR.js} +1 -1
  23. package/web/app/immutable/chunks/BC6tIXxU.js +1 -0
  24. package/web/app/immutable/chunks/{l7vsMvdj.js → BFMlH_mp.js} +2 -2
  25. package/web/app/immutable/chunks/{f5nWqjrx.js → BFi0zRRv.js} +1 -1
  26. package/web/app/immutable/chunks/{DM1_VFfD.js → BH3eRhvI.js} +1 -1
  27. package/web/app/immutable/chunks/{BlIRL_82.js → BIfjK4Wy.js} +1 -1
  28. package/web/app/immutable/chunks/{BmC9h1kv.js → BJEUIKTL.js} +1 -1
  29. package/web/app/immutable/chunks/{SbTG0nwQ.js → BJbm_MWC.js} +1 -1
  30. package/web/app/immutable/chunks/{Mko8tFZb.js → BK0IkwFP.js} +2 -2
  31. package/web/app/immutable/chunks/{D7Dfbf5g.js → BLMhg4vm.js} +1 -1
  32. package/web/app/immutable/chunks/{Dvi4g0xk.js → BLhJfI63.js} +1 -1
  33. package/web/app/immutable/chunks/{C50zlWbZ.js → BNDTLRE1.js} +1 -1
  34. package/web/app/immutable/chunks/{A0KsbysW.js → BOyRg328.js} +1 -1
  35. package/web/app/immutable/chunks/{CJB-ebPL.js → BP-cDE7g.js} +1 -1
  36. package/web/app/immutable/chunks/{lD0hZ5-I.js → BPscmH6M.js} +1 -1
  37. package/web/app/immutable/chunks/{CEEUgGO1.js → BQ8hOnRo.js} +1 -1
  38. package/web/app/immutable/chunks/{BD9db4FR.js → BQhBnAuP.js} +1 -1
  39. package/web/app/immutable/chunks/{JM7CQkWC.js → BRRnx9NG.js} +1 -1
  40. package/web/app/immutable/chunks/{CPI5xBWX.js → BSt1DBgt.js} +1 -1
  41. package/web/app/immutable/chunks/{BoznPtpa.js → BSu_WKe5.js} +1 -1
  42. package/web/app/immutable/chunks/{8jMQM9h0.js → BUsnh1ZW.js} +1 -1
  43. package/web/app/immutable/chunks/{RHSH5iZ7.js → BVYisuIY.js} +1 -1
  44. package/web/app/immutable/chunks/{IkcYx7DF.js → BVmCM-pH.js} +1 -1
  45. package/web/app/immutable/chunks/{Dxfvrgme.js → BWJopR_X.js} +1 -1
  46. package/web/app/immutable/chunks/{CFmT7rsG.js → BXlN4FOb.js} +1 -1
  47. package/web/app/immutable/chunks/{BXJzIaQM.js → BaOiWDrc.js} +1 -1
  48. package/web/app/immutable/chunks/{C-PQQ8rb.js → Bajx4HLb.js} +1 -1
  49. package/web/app/immutable/chunks/{DhVTc7Ol.js → Bbae4OrB.js} +2 -2
  50. package/web/app/immutable/chunks/{BbuLzldI.js → Bbs1UlDC.js} +1 -1
  51. package/web/app/immutable/chunks/{DnKqeAaM.js → BcrN1yjB.js} +1 -1
  52. package/web/app/immutable/chunks/{sSXTMg2P.js → BfQFKWzJ.js} +1 -1
  53. package/web/app/immutable/chunks/{DSiGyv9Y.js → Bj4IsLvN.js} +1 -1
  54. package/web/app/immutable/chunks/{BCZTn_fp.js → BkcO6l5G.js} +1 -1
  55. package/web/app/immutable/chunks/{Cv0qomAl.js → Bl72eYFn.js} +1 -1
  56. package/web/app/immutable/chunks/{B5uejTJk.js → BlAMrm5X.js} +1 -1
  57. package/web/app/immutable/chunks/{7ZsTr9xa.js → BlJAndP6.js} +1 -1
  58. package/web/app/immutable/chunks/{pnbUAKkx.js → Blt813S0.js} +1 -1
  59. package/web/app/immutable/chunks/{D1fDU8Ti.js → Bm3beBRj.js} +1 -1
  60. package/web/app/immutable/chunks/{OGqbAD_O.js → BmM9C7Gu.js} +1 -1
  61. package/web/app/immutable/chunks/{CmyAIpbY.js → Bmm_g7di.js} +4 -4
  62. package/web/app/immutable/chunks/{CD-M_2xD.js → BoUQWR1c.js} +1 -1
  63. package/web/app/immutable/chunks/{BECK4OaG.js → BoZ2kJyE.js} +1 -1
  64. package/web/app/immutable/chunks/{wiGlLVr-.js → BpXDXz8J.js} +1 -1
  65. package/web/app/immutable/chunks/{7y3Z0Q49.js → BpwKnO7b.js} +3 -3
  66. package/web/app/immutable/chunks/{tLFaYuVN.js → Bq7euxCs.js} +1 -1
  67. package/web/app/immutable/chunks/{CI0C7_h-.js → Bsdq-idi.js} +1 -1
  68. package/web/app/immutable/chunks/{CfYakquS.js → Bsru2omj.js} +1 -1
  69. package/web/app/immutable/chunks/{D_VvdZe2.js → Bstq-Mm1.js} +1 -1
  70. package/web/app/immutable/chunks/{CPvH5Ru2.js → Bt11uxE8.js} +4 -4
  71. package/web/app/immutable/chunks/{BdEtT3Ti.js → BtchneSc.js} +1 -1
  72. package/web/app/immutable/chunks/{3qVSmuIV.js → Bu67WlMm.js} +1 -1
  73. package/web/app/immutable/chunks/{CvZTDgJa.js → BuTcdZo7.js} +1 -1
  74. package/web/app/immutable/chunks/{Bf_nrOhg.js → BuXXIZt7.js} +1 -1
  75. package/web/app/immutable/chunks/{DsfORPYa.js → BudPFdIj.js} +1 -1
  76. package/web/app/immutable/chunks/{SRhgUz9l.js → BuiwW61u.js} +1 -1
  77. package/web/app/immutable/chunks/{4PAYwk2I.js → BvjgIPau.js} +1 -1
  78. package/web/app/immutable/chunks/{DEs9kPtf.js → BxTCsbTV.js} +1 -1
  79. package/web/app/immutable/chunks/{BoG8wR7s.js → ByBw1QkA.js} +1 -1
  80. package/web/app/immutable/chunks/{CmTojxTj.js → Byr10Y9u.js} +1 -1
  81. package/web/app/immutable/chunks/{BLvtkZ8G.js → C-y1uW-U.js} +1 -1
  82. package/web/app/immutable/chunks/{B4I8lQNP.js → C07_BcWL.js} +1 -1
  83. package/web/app/immutable/chunks/{BHqp2vwo.js → C2zt__Wj.js} +1 -1
  84. package/web/app/immutable/chunks/{B3IS1jjn.js → C4t02ICg.js} +2 -2
  85. package/web/app/immutable/chunks/{2ZJE_wyo.js → C53ouDFl.js} +1 -1
  86. package/web/app/immutable/chunks/{DzqKdIr-.js → C6rcni5e.js} +1 -1
  87. package/web/app/immutable/chunks/{CAfPEsZt.js → C7ajdkO4.js} +1 -1
  88. package/web/app/immutable/chunks/{O49gK3tp.js → C8Wy-uTf.js} +1 -1
  89. package/web/app/immutable/chunks/{DYbZIRJE.js → CACH34FC.js} +1 -1
  90. package/web/app/immutable/chunks/{FVS6L2WV.js → CAiDxi6i.js} +3 -3
  91. package/web/app/immutable/chunks/{5-0LQoqd.js → CBbdbU2x.js} +1 -1
  92. package/web/app/immutable/chunks/{BTepRW_m.js → CCzan1r_.js} +4 -4
  93. package/web/app/immutable/chunks/{0pEQEOm6.js → CD9WEaPg.js} +1 -1
  94. package/web/app/immutable/chunks/{DV7x43jt.js → CEap7Fwz.js} +1 -1
  95. package/web/app/immutable/chunks/{BV1ayWTC.js → CG28d89U.js} +1 -1
  96. package/web/app/immutable/chunks/{C_SKcJv7.js → CGdXewiA.js} +1 -1
  97. package/web/app/immutable/chunks/{CjjWPVbV.js → CHApvLbz.js} +3 -3
  98. package/web/app/immutable/chunks/{DWa-2rkZ.js → CIWQMI37.js} +1 -1
  99. package/web/app/immutable/chunks/{zB9UbdEg.js → CIlqcFRn.js} +1 -1
  100. package/web/app/immutable/chunks/{BqARUxDK.js → CJ7hw6mW.js} +1 -1
  101. package/web/app/immutable/chunks/{DDb9H7X6.js → CKcb8dge.js} +3 -3
  102. package/web/app/immutable/chunks/{BzEFG3NN.js → CMsGHYhn.js} +1 -1
  103. package/web/app/immutable/chunks/{Dmx5wWLe.js → CNl453qs.js} +1 -1
  104. package/web/app/immutable/chunks/{B6eTPmJH.js → COVS9Crf.js} +1 -1
  105. package/web/app/immutable/chunks/{iCWz6IE9.js → CPdyCf2B.js} +1 -1
  106. package/web/app/immutable/chunks/{HC_j1BdV.js → CQA1q0F9.js} +1 -1
  107. package/web/app/immutable/chunks/{B5anfoVk.js → CS6HVyHp.js} +1 -1
  108. package/web/app/immutable/chunks/{DVJBGL7F.js → CSlvwZw1.js} +1 -1
  109. package/web/app/immutable/chunks/{BSygKG3g.js → CTVz-pXS.js} +3 -3
  110. package/web/app/immutable/chunks/{7KxcPj98.js → CTowDLQa.js} +1 -1
  111. package/web/app/immutable/chunks/{BQLaE7V5.js → CULu7FSf.js} +1 -1
  112. package/web/app/immutable/chunks/{C2YpPfAS.js → CUxtJz1o.js} +1 -1
  113. package/web/app/immutable/chunks/{CoJyxFcH.js → CV5qbjYN.js} +1 -1
  114. package/web/app/immutable/chunks/{0MXBpkLa.js → CVd7xnlx.js} +1 -1
  115. package/web/app/immutable/chunks/{7HiVLHLh.js → CW4vzFn_.js} +1 -1
  116. package/web/app/immutable/chunks/{CVuncf5f.js → CY2g-8Xo.js} +1 -1
  117. package/web/app/immutable/chunks/{CObW_WD-.js → CY4ZK6xA.js} +3 -3
  118. package/web/app/immutable/chunks/{rXKOJqUt.js → CZB2ndi9.js} +1 -1
  119. package/web/app/immutable/chunks/{CuPx_r7k.js → CZex5Cac.js} +1 -1
  120. package/web/app/immutable/chunks/{DAUvP6UD.js → C_4qh07f.js} +1 -1
  121. package/web/app/immutable/chunks/{B2jyBWIj.js → CbQ8NVeY.js} +1 -1
  122. package/web/app/immutable/chunks/{B5NaFcis.js → CbQYR4R2.js} +3 -3
  123. package/web/app/immutable/chunks/{D40Fo-pJ.js → CcgSaDDB.js} +1 -1
  124. package/web/app/immutable/chunks/CeeeYtIE.js +1 -0
  125. package/web/app/immutable/chunks/{CV2tdNDf.js → CfIVswBm.js} +1 -1
  126. package/web/app/immutable/chunks/{VeUh5OMZ.js → CfaCrhAh.js} +1 -1
  127. package/web/app/immutable/chunks/{C9p4fddz.js → CggFXl4B.js} +1 -1
  128. package/web/app/immutable/chunks/{6paLMka3.js → Chg0KuUy.js} +2 -2
  129. package/web/app/immutable/chunks/{CTW83wJs.js → Ci75CkmK.js} +1 -1
  130. package/web/app/immutable/chunks/{CWOQ_pUA.js → CisSEUth.js} +1 -1
  131. package/web/app/immutable/chunks/{2qYrAiyX.js → Ck8ZqpbB.js} +1 -1
  132. package/web/app/immutable/chunks/{DHcX7CG0.js → ClQE9kQf.js} +1 -1
  133. package/web/app/immutable/chunks/{CgCJQyTf.js → ClSbVEed.js} +1 -1
  134. package/web/app/immutable/chunks/{BLKFshyr.js → CmhKJ6Ie.js} +1 -1
  135. package/web/app/immutable/chunks/{lTwh0Wzj.js → CndJcn8K.js} +1 -1
  136. package/web/app/immutable/chunks/{Clo7aK1n.js → Co9CFvqw.js} +1 -1
  137. package/web/app/immutable/chunks/{3iG5yoX3.js → CoAfXTHr.js} +1 -1
  138. package/web/app/immutable/chunks/CoCy46Yy.js +1 -0
  139. package/web/app/immutable/chunks/{DLQIjfwi.js → CoOgBJzu.js} +1 -1
  140. package/web/app/immutable/chunks/{CQMFoUkp.js → Cq8MD_3v.js} +1 -1
  141. package/web/app/immutable/chunks/{DpITHrfz.js → CqGq5PHb.js} +1 -1
  142. package/web/app/immutable/chunks/{Bi_Yd73A.js → CrL2Nk6a.js} +1 -1
  143. package/web/app/immutable/chunks/{CzXIAWau.js → CrZlcn4Y.js} +1 -1
  144. package/web/app/immutable/chunks/{D-rRuAXZ.js → CrpUtGFn.js} +1 -1
  145. package/web/app/immutable/chunks/{CiWHn2aR.js → CrvtnK13.js} +2 -2
  146. package/web/app/immutable/chunks/{94vL4WlW.js → CrwLq8nY.js} +1 -1
  147. package/web/app/immutable/chunks/{CXZbeRE-.js → Cs-DtA5c.js} +1 -1
  148. package/web/app/immutable/chunks/{6xdvppss.js → CtDIyzmZ.js} +1 -1
  149. package/web/app/immutable/chunks/{CL4ty7oi.js → Cuqu6DgP.js} +1 -1
  150. package/web/app/immutable/chunks/{BIGqOuh0.js → Cw2fqKk9.js} +1 -1
  151. package/web/app/immutable/chunks/{9GO97JAL.js → CwCTYQp7.js} +1 -1
  152. package/web/app/immutable/chunks/{COWlXo8C.js → CxMr7p-O.js} +3 -3
  153. package/web/app/immutable/chunks/{CCyecAzB.js → Cyr0PKv3.js} +1 -1
  154. package/web/app/immutable/chunks/{BuFDqZnJ.js → CzTSi5lc.js} +1 -1
  155. package/web/app/immutable/chunks/{HU1Ksz8U.js → CzjElr82.js} +1 -1
  156. package/web/app/immutable/chunks/{ada9rZfE.js → D-DyBHf9.js} +1 -1
  157. package/web/app/immutable/chunks/{BTvTyEgq.js → D-aEx3GL.js} +2 -2
  158. package/web/app/immutable/chunks/{DbqTt-YM.js → D1R1FWjP.js} +1 -1
  159. package/web/app/immutable/chunks/{CYSndAne.js → D1YPh_5n.js} +1 -1
  160. package/web/app/immutable/chunks/{kAZ_zPIu.js → D24Of5Kd.js} +1 -1
  161. package/web/app/immutable/chunks/{C0Zo7HuP.js → D25lWS8Q.js} +1 -1
  162. package/web/app/immutable/chunks/{NC6gsHNQ.js → D2ch709U.js} +1 -1
  163. package/web/app/immutable/chunks/{BNa9zzEx.js → D2kIeaeO.js} +1 -1
  164. package/web/app/immutable/chunks/{BgDnzAo4.js → D2y-zN_4.js} +1 -1
  165. package/web/app/immutable/chunks/{fHygQTSC.js → D3waRWO1.js} +1 -1
  166. package/web/app/immutable/chunks/{DcOkWaeN.js → D48_y-cl.js} +1 -1
  167. package/web/app/immutable/chunks/{DX9N1RQz.js → D49zWKPf.js} +1 -1
  168. package/web/app/immutable/chunks/{4g_iHoQm.js → D5wnbxHp.js} +1 -1
  169. package/web/app/immutable/chunks/{CletI6Pa.js → D7AX9X0W.js} +1 -1
  170. package/web/app/immutable/chunks/{CCEmXQBN.js → DCL7QtVR.js} +1 -1
  171. package/web/app/immutable/chunks/{U7dpdlAf.js → DEQDOTA1.js} +1 -1
  172. package/web/app/immutable/chunks/{DlpH_aW2.js → DGK5CsQK.js} +1 -1
  173. package/web/app/immutable/chunks/{BrMDbquN.js → DGj-492Z.js} +2 -2
  174. package/web/app/immutable/chunks/{B8HnjSSF.js → DIEHuZ8f.js} +1 -1
  175. package/web/app/immutable/chunks/{Cy9hcA7q.js → DIoT8eB4.js} +1 -1
  176. package/web/app/immutable/chunks/{BPuz5cN_.js → DJivXy66.js} +2 -2
  177. package/web/app/immutable/chunks/{BXv1gq_o.js → DKeBnsgS.js} +1 -1
  178. package/web/app/immutable/chunks/DLO_0egf.js +1 -0
  179. package/web/app/immutable/chunks/{yDmmPu6L.js → DLttsd3i.js} +1 -1
  180. package/web/app/immutable/chunks/{BSgFpkqa.js → DMV5KQix.js} +1 -1
  181. package/web/app/immutable/chunks/DNZCPKpq.js +3 -0
  182. package/web/app/immutable/chunks/{BWCYowXB.js → DNnmVx8j.js} +1 -1
  183. package/web/app/immutable/chunks/DP0K41jk.js +1 -0
  184. package/web/app/immutable/chunks/{BmFHmusU.js → DP2r4UWt.js} +1 -1
  185. package/web/app/immutable/chunks/{B6d1Nolc.js → DPG1HUgG.js} +1 -1
  186. package/web/app/immutable/chunks/{BvbeTrka.js → DPjr22dV.js} +1 -1
  187. package/web/app/immutable/chunks/{LQRHF1eM.js → DPmNtGFj.js} +1 -1
  188. package/web/app/immutable/chunks/{bKvZbiNk.js → DQ8CqY9L.js} +2 -2
  189. package/web/app/immutable/chunks/{IwNEzJ15.js → DQpDIYyw.js} +1 -1
  190. package/web/app/immutable/chunks/{CrsbEWnE.js → DRLJuUwT.js} +1 -1
  191. package/web/app/immutable/chunks/{B5stdxh5.js → DRXgE6SQ.js} +1 -1
  192. package/web/app/immutable/chunks/{Ex_x2wO5.js → DU1ubslo.js} +1 -1
  193. package/web/app/immutable/chunks/{ClYR_2Js.js → DUFN_Pzm.js} +1 -1
  194. package/web/app/immutable/chunks/{CNSshwg_.js → DWqaYE81.js} +1 -1
  195. package/web/app/immutable/chunks/{BY0BGmY0.js → DXI99C-u.js} +1 -1
  196. package/web/app/immutable/chunks/{DI71nFp4.js → D_5u7gP_.js} +1 -1
  197. package/web/app/immutable/chunks/{D7P3vklT.js → D_AhXAPc.js} +1 -1
  198. package/web/app/immutable/chunks/{BMnuRHbZ.js → DaMlaKH_.js} +2 -2
  199. package/web/app/immutable/chunks/{CsmNoTJl.js → Db1BGAZN.js} +1 -1
  200. package/web/app/immutable/chunks/{COjWFpJP.js → DcRqMoeH.js} +1 -1
  201. package/web/app/immutable/chunks/{BO8Bp7Ht.js → Dd3UnPYB.js} +1 -1
  202. package/web/app/immutable/chunks/{C1AUaRa8.js → DdLy5J3P.js} +1 -1
  203. package/web/app/immutable/chunks/{B_75gRww.js → DezlVQ1h.js} +1 -1
  204. package/web/app/immutable/chunks/{DPR_clFy.js → Dga6E45c.js} +1 -1
  205. package/web/app/immutable/chunks/{Bu-RLSv9.js → DgtVALrr.js} +1 -1
  206. package/web/app/immutable/chunks/{CIJ-7Xzd.js → DhVLJG6D.js} +1 -1
  207. package/web/app/immutable/chunks/{C63WwVct.js → DkERMj5B.js} +1 -1
  208. package/web/app/immutable/chunks/{DGMrUmNq.js → DkJYBjJg.js} +1 -1
  209. package/web/app/immutable/chunks/{BSntxgH1.js → DkOk28fz.js} +1 -1
  210. package/web/app/immutable/chunks/{BDsciJGp.js → Dk_Hc5oq.js} +1 -1
  211. package/web/app/immutable/chunks/{DGv69LVd.js → DlfbUU6o.js} +1 -1
  212. package/web/app/immutable/chunks/{odj5qcEP.js → DlwTP-AJ.js} +1 -1
  213. package/web/app/immutable/chunks/{CU_-vK2M.js → Dm98YBgx.js} +3 -3
  214. package/web/app/immutable/chunks/{BhQMKzoM.js → DmWvRjk6.js} +1 -1
  215. package/web/app/immutable/chunks/{CDAnHxmJ.js → DmpdpJAo.js} +1 -1
  216. package/web/app/immutable/chunks/{DhLHwyRV.js → Dn_aCJkC.js} +1 -1
  217. package/web/app/immutable/chunks/{BVuLEX_p.js → Do-SaITx.js} +1 -1
  218. package/web/app/immutable/chunks/{c0c_b7yh.js → DoY7_Wfd.js} +1 -1
  219. package/web/app/immutable/chunks/{CXeB7YFK.js → DqEoTQds.js} +1 -1
  220. package/web/app/immutable/chunks/{B7y9pKDL.js → DtVrXGBM.js} +1 -1
  221. package/web/app/immutable/chunks/{Do2KlQU0.js → DtkIwON_.js} +1 -1
  222. package/web/app/immutable/chunks/{BRKjDAGC.js → DuoQQplG.js} +1 -1
  223. package/web/app/immutable/chunks/{B5tvpTFB.js → DwGyIIXK.js} +1 -1
  224. package/web/app/immutable/chunks/{DlUpt_0u.js → DwbEs_9r.js} +1 -1
  225. package/web/app/immutable/chunks/{COgn_CzG.js → DwiE5WsI.js} +1 -1
  226. package/web/app/immutable/chunks/{DiURwJNX.js → DxSE2XEK.js} +1 -1
  227. package/web/app/immutable/chunks/{Cp02CBjf.js → DxnZvDv0.js} +1 -1
  228. package/web/app/immutable/chunks/{418Agcsp.js → Dy9FYRX8.js} +1 -1
  229. package/web/app/immutable/chunks/{BKMQo7oP.js → DzTn7KcX.js} +1 -1
  230. package/web/app/immutable/chunks/{CXDUvPYf.js → ELYZilX0.js} +1 -1
  231. package/web/app/immutable/chunks/{7mo0aYB5.js → ExR0UceK.js} +1 -1
  232. package/web/app/immutable/chunks/{Bc1vJq_Z.js → FLpsgWeB.js} +1 -1
  233. package/web/app/immutable/chunks/{B5q4SHo9.js → GTsIF2uA.js} +1 -1
  234. package/web/app/immutable/chunks/{BwPwF85e.js → HLNbJ-7M.js} +1 -1
  235. package/web/app/immutable/chunks/{B2CniqS1.js → Hi2H4bj8.js} +1 -1
  236. package/web/app/immutable/chunks/{DZScoaNb.js → I9b9apiN.js} +1 -1
  237. package/web/app/immutable/chunks/{PhAbES0t.js → Idk978zJ.js} +1 -1
  238. package/web/app/immutable/chunks/{DQT1hnTe.js → Ii0VTY5h.js} +1 -1
  239. package/web/app/immutable/chunks/{jBG7W4tL.js → ItBm4ElA.js} +1 -1
  240. package/web/app/immutable/chunks/{BJgwBOBz.js → Jk9a4xPx.js} +1 -1
  241. package/web/app/immutable/chunks/{BW1iql_y.js → KtEuoG00.js} +1 -1
  242. package/web/app/immutable/chunks/{DtqPBHQj.js → L3K71tUU.js} +1 -1
  243. package/web/app/immutable/chunks/{Bv_xG3nA.js → Lk7a_7W9.js} +1 -1
  244. package/web/app/immutable/chunks/{nwO3KCpP.js → Mmc_61iE.js} +1 -1
  245. package/web/app/immutable/chunks/{DlU1rxYV.js → R5lmOJFS.js} +1 -1
  246. package/web/app/immutable/chunks/{B6FGs8l2.js → RTRAqswA.js} +1 -1
  247. package/web/app/immutable/chunks/{CTgU1bby.js → T-5C1GqS.js} +1 -1
  248. package/web/app/immutable/chunks/{B5qiyEpH.js → UYAhegVx.js} +1 -1
  249. package/web/app/immutable/chunks/{h8JtxU_T.js → UsbmbYa0.js} +1 -1
  250. package/web/app/immutable/chunks/{pMP23LzB.js → VcnbZvDh.js} +1 -1
  251. package/web/app/immutable/chunks/{gU2qspu9.js → WvHbj6rB.js} +1 -1
  252. package/web/app/immutable/chunks/{jnsEVh0o.js → XK8g38bo.js} +1 -1
  253. package/web/app/immutable/chunks/{B0qb2Ymj.js → Y2a1lhL9.js} +1 -1
  254. package/web/app/immutable/chunks/YLhFQnIu.js +1 -0
  255. package/web/app/immutable/chunks/{DLCFUd4s.js → YeOAvjnW.js} +1 -1
  256. package/web/app/immutable/chunks/{Dval4sTX.js → _3Ca9E4W.js} +1 -1
  257. package/web/app/immutable/chunks/{BZkfp4xg.js → _duPkHC1.js} +1 -1
  258. package/web/app/immutable/chunks/{BuBXySe4.js → aR8LYT4O.js} +1 -1
  259. package/web/app/immutable/chunks/{CIaruUrd.js → cEIzYo-d.js} +1 -1
  260. package/web/app/immutable/chunks/{dmZv6JOg.js → cPsAlOmH.js} +1 -1
  261. package/web/app/immutable/chunks/{jVbx5uZK.js → cc1gQUub.js} +1 -1
  262. package/web/app/immutable/chunks/{j67P3UNv.js → cpPIph2M.js} +2 -2
  263. package/web/app/immutable/chunks/{QRUY44Ff.js → d028N8d2.js} +1 -1
  264. package/web/app/immutable/chunks/{BDOuZgzG.js → ewL2yuZ8.js} +1 -1
  265. package/web/app/immutable/chunks/{BbLh3POL.js → g08hegP2.js} +1 -1
  266. package/web/app/immutable/chunks/{YHt5oaBn.js → gHZWxIPZ.js} +1 -1
  267. package/web/app/immutable/chunks/{BgQadJDW.js → gJJMUdOI.js} +1 -1
  268. package/web/app/immutable/chunks/{CGYPBD6G.js → gwv5JQYH.js} +1 -1
  269. package/web/app/immutable/chunks/{C8LrJXqa.js → iAKTK0Nq.js} +1 -1
  270. package/web/app/immutable/chunks/{B8QvP_8b.js → j5ppcWWU.js} +1 -1
  271. package/web/app/immutable/chunks/{BcKrkXju.js → jAIXVFR4.js} +1 -1
  272. package/web/app/immutable/chunks/{C2F2Vd1P.js → kvtKUeBe.js} +1 -1
  273. package/web/app/immutable/chunks/{BjlMkd10.js → lZ7zkdkp.js} +1 -1
  274. package/web/app/immutable/chunks/{B_4WsP9b.js → mUNs8NSR.js} +1 -1
  275. package/web/app/immutable/chunks/{C-zB-6G6.js → oBIu7LTI.js} +1 -1
  276. package/web/app/immutable/chunks/{BPxN1acN.js → oHUzFHtp.js} +2 -2
  277. package/web/app/immutable/chunks/{BVkAOJlr.js → pHYq50Ny.js} +1 -1
  278. package/web/app/immutable/chunks/{BvMBgdHo.js → pJyYpzre.js} +1 -1
  279. package/web/app/immutable/chunks/{DmvYOHFs.js → qm1BBGRe.js} +13 -13
  280. package/web/app/immutable/chunks/{BJO0de_7.js → qoDJOBiM.js} +1 -1
  281. package/web/app/immutable/chunks/{KReSIZSD.js → r2R1I-D0.js} +1 -1
  282. package/web/app/immutable/chunks/{Cp9EK0r2.js → rlNXEIUc.js} +1 -1
  283. package/web/app/immutable/chunks/{CR-JVxLD.js → scTXKJzg.js} +1 -1
  284. package/web/app/immutable/chunks/{BVl79jmM.js → tVmNccZ-.js} +1 -1
  285. package/web/app/immutable/chunks/{3uhIXwkT.js → w-7j2Qtq.js} +1 -1
  286. package/web/app/immutable/chunks/{CHto7_WH.js → x2AHvZeQ.js} +1 -1
  287. package/web/app/immutable/chunks/{DuAAGnM9.js → xPYDsdm4.js} +1 -1
  288. package/web/app/immutable/chunks/{Dp8FVKoA.js → xzksWQ-h.js} +1 -1
  289. package/web/app/immutable/chunks/{CA4P_FmX.js → ygDvZWWC.js} +1 -1
  290. package/web/app/immutable/chunks/{7OH6WUSt.js → z91bgOZ6.js} +1 -1
  291. package/web/app/immutable/chunks/{BtBQ5qfh.js → z_SeEaJQ.js} +1 -1
  292. package/web/app/immutable/chunks/{C-G2u0Oe.js → zxxqPN9_.js} +1 -1
  293. package/web/app/immutable/entry/{app.CgTOio8y.js → app.DOLk01Bm.js} +3 -3
  294. package/web/app/immutable/entry/start.CIQw0TYU.js +1 -0
  295. package/web/app/immutable/nodes/{0.C2oVsoB8.js → 0.qPBEcapg.js} +1 -1
  296. package/web/app/immutable/nodes/{1.riWgWdpy.js → 1.Bi3sNEdL.js} +1 -1
  297. package/web/app/immutable/nodes/10.DHyl6QAs.js +39 -0
  298. package/web/app/immutable/nodes/{11.exvXwEGT.js → 11.pqpLvrmB.js} +1 -1
  299. package/web/app/immutable/nodes/{12.D6rxlIQy.js → 12.C5GV0W_U.js} +1 -1
  300. package/web/app/immutable/nodes/{13.CHYsmiD_.js → 13.BpCKbOND.js} +1 -1
  301. package/web/app/immutable/nodes/{14.mG-YN9pn.js → 14.DomreN-2.js} +3 -3
  302. package/web/app/immutable/nodes/{15.D2k47bXC.js → 15.CKbUOFrf.js} +1 -1
  303. package/web/app/immutable/nodes/{16.BsFtzH0D.js → 16.BcdRdVBS.js} +1 -1
  304. package/web/app/immutable/nodes/{17.me_aOx8O.js → 17.C5h-oNNo.js} +1 -1
  305. package/web/app/immutable/nodes/{18.BO1oZWgm.js → 18.vgJOUK1N.js} +1 -1
  306. package/web/app/immutable/nodes/{19.DPrP9Wtk.js → 19.3QLuvvWY.js} +2 -2
  307. package/web/app/immutable/nodes/{2.BpY-66TB.js → 2.CSj73FLT.js} +4 -4
  308. package/web/app/immutable/nodes/{20.LbRPieV_.js → 20.CuOgTm-x.js} +1 -1
  309. package/web/app/immutable/nodes/{3.CriVb5Fs.js → 3.BUbQ5Tes.js} +1 -1
  310. package/web/app/immutable/nodes/{4.dRoX-MYE.js → 4.Byn29Mul.js} +1 -1
  311. package/web/app/immutable/nodes/{5.Bn3YBx-4.js → 5.CMHzkmR-.js} +1 -1
  312. package/web/app/immutable/nodes/{6.CgMdV-V1.js → 6.N0CPg2uE.js} +1 -1
  313. package/web/app/immutable/nodes/{7.FdAsp1bX.js → 7.4Szvqobl.js} +1 -1
  314. package/web/app/immutable/nodes/{8.Da7xrRMP.js → 8.BKw9KMbS.js} +1 -1
  315. package/web/app/immutable/nodes/{9.BnLzowQ-.js → 9.BBJWosck.js} +4 -4
  316. package/web/app/version.json +1 -1
  317. package/web/generated/paraglide.js +49 -49
  318. package/web/index.html +19 -19
  319. package/web/app/immutable/assets/0.BmwjvpSF.css +0 -1
  320. package/web/app/immutable/chunks/CCIZBeez.js +0 -1
  321. package/web/app/immutable/chunks/CXdnCPBf.js +0 -3
  322. package/web/app/immutable/chunks/Cp7Byf5d.js +0 -1
  323. package/web/app/immutable/chunks/DWIoipce.js +0 -1
  324. package/web/app/immutable/chunks/Dws-34a7.js +0 -1
  325. package/web/app/immutable/chunks/DxC0zTSc.js +0 -1
  326. package/web/app/immutable/chunks/Whej1Dge.js +0 -1
  327. package/web/app/immutable/entry/start.oAnCLCVf.js +0 -1
  328. package/web/app/immutable/nodes/10.DbjaWIBW.js +0 -39
@@ -1 +1 @@
1
- import{t as bt,bo as b,bw as _t,bq as gt,b as vt,bm as x,bs as me,br as Te}from"./Dws-34a7.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as L,ay as _,W as r,bn as It,aA as g,aD as t,bS as N,a5 as be,bH as Be,bA as _e,b_ as W,aB as E,c9 as o,bf as kt,bl as oe,bO as ae,bV as Ct}from"./3SdAC2_C.js";import{i as z}from"./DLCFUd4s.js";import{g as $t}from"./C-zB-6G6.js";import{t as We}from"./D-rRuAXZ.js";import{c as S}from"./B5tvpTFB.js";import{f as Pt,s as De,b as At}from"./BD9db4FR.js";import{cK as Et,bn as Ot,aM as Ft,F as ne,aZ as Tt,aN as Bt,bo as Dt,a8 as Ge,aw as Lt}from"./CGYPBD6G.js";import{W as Nt,T as zt,G as St,C as Rt,X as Mt,J as Ht,V as Wt}from"./94vL4WlW.js";import{f as ge}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{D as Gt}from"./Dvi4g0xk.js";import{g as Vt,R as jt,k as Kt,j as Jt,i as qt,h as Ve}from"./jBG7W4tL.js";import{m as ve}from"./rXKOJqUt.js";import{c as Ut}from"./ChTqQfQN.js";import"./DcOkWaeN.js";import{Jx as je,nh as Xt,Gb as Yt}from"./4g_iHoQm.js";import{w as Zt}from"./Bqd7fdCF.js";import{i as U}from"./CL3a4Hm1.js";import{b2 as Qt,aM as er,aK as tr}from"./BTvTyEgq.js";import{cB as rr}from"./SbTG0nwQ.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Wt,jetbrains:Ht,xcode:Mt};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function Ke(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",Le="finder",lr={id:Le,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),X=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return X.some(({id:Y})=>Y===Le)||se.has(Le)?X:[...X,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),mr=E("<span><!></span>"),br=E('<img class="w-4 h-4"/>'),_r=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return bt({component:wr,...O});ht(s,!0);const se=()=>me(Ue,"$installedEditors$",ie),X=()=>me(Xe,"$hiddenEditorIds$",ie),Y=()=>me(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>me(qe,"$openAction",ie),[ie,Je]=gt(),le=(e,d=kt)=>{var u=L(),p=_(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,D)=>{var k=L(),T=_(k);$t(T,17,d,C=>C.id,(C,c)=>{var K=L(),h=_(K);{const $=a=>{var i=L(),y=_(i);{var M=l=>{var A=dr();W(()=>De(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},m=l=>{const A=o(()=>t(c).icon);var H=L(),B=_(H);S(B,()=>t(A),(J,re)=>{re(J,{size:16})}),r(l,H)},P=l=>{{let A=o(()=>t(c).faIcon??Ke(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};z(y,l=>{t(c).iconBase64?l(M):t(c).icon?l(m,1):l(P,-1)})}r(a,i)};let n=o(()=>!I());S(h,()=>Vt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,M)=>{var m=pr(),P=_(m),l=oe(P,!0),A=N(P,2);{var H=B=>{var J=ur(),re=oe(J,!0);W(()=>ae(re,t(c).shortcut)),r(B,J)};z(A,B=>{t(c).shortcut&&B(H)})}W(()=>ae(l,t(c).label)),r(y,m)},$$slots:{leading:!0,default:!0}})})}r(C,K)}),r(F,k)},$$slots:{default:!0}})}),r(e,u)},Ne=Ut("OpenComboButton");let I=b(s,"filePath",7),ce=b(s,"workspaceId",7,""),de=b(s,"isDirectory",7,!0),we=b(s,"workspaceFolderPath",7),xe=b(s,"class",7,""),ue=b(s,"headerText",7),Ie=b(s,"usePortal",7,!0),ke=b(s,"side",7,"bottom"),G=b(s,"variant",7,"default"),Z=b(s,"branchName",7),Ce=b(s,"compact",7,!1),$e=b(s,"embedded",7,!1),Q=b(s,"inline",7,!1),V=b(s,"iconOnly",7,!1),R=b(s,"children",7,void 0);const ze=o(()=>G()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const qe=Qt(),Ue=er(Pe),Xe=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Xt())});function Ze(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Qe=Zt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,X()).map(Ze),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Dt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Z()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Bt}]:[]];return!Qe||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return I();const e=we()||I().substring(0,I().lastIndexOf("/"));return e?{folder:e,file:I()}:I()}async function Oe(e){if(!I())return;const d=de()?I():I().substring(0,I().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(I())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Z()&&(await navigator.clipboard.writeText(Z()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await U("external-editors:open-with-other",{path:d});p?.success?Be(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await U("shell:showItemInFolder",{path:d});break;case"vscode":await U("vscode:open",Ee());break;case"jetbrains":await U("jetbrains:open",Ee());break;case"xcode":await U("xcode:open",Ee());break;case"generic":default:{await U("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Be(ee,!1)}var rt={get filePath(){return I()},set filePath(e){I(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return Ie()},set usePortal(e=!0){Ie(e),g()},get side(){return ke()},set side(e="bottom"){ke(e),g()},get variant(){return G()},set variant(e="default"){G(e),g()},get branchName(){return Z()},set branchName(e){Z(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Q()},set inline(e=!1){Q(e),g()},get iconOnly(){return V()},set iconOnly(e=!1){V(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:_t,$on:(e,d)=>vt(s,e,d)},Me=L(),ot=_(Me);{var at=e=>{var d=he(),u=_(d);{var p=j=>{var F=he(),D=_(F);S(D,()=>qt,(T,C)=>{C(T,{children:(c,K)=>{var h=he(),$=_(h);S($,()=>Kt,(a,i)=>{i(a,{get icon(){return Ge},children:(y,M)=>{var m=fr(),P=oe(m,!0);W(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,m)},$$slots:{default:!0}})});var n=N($,2);S(n,()=>Jt,(a,i)=>{i(a,{class:"w-60",children:(y,M)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var k=N(D,2);S(k,()=>Ve,(T,C)=>{C(T,{})}),r(j,F)};z(u,j=>{t(fe).length&&j(p)})}var te=N(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=be(d);{const p=(F,D)=>{let k=()=>(D?.()).props;var T=L(),C=_(T);{var c=n=>{var a=mr();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?k():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=be(a);We(i,R),_e(a),r(n,a)},K=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>V()&&G()!=="sidebar"?"plain":"ghost"),y=o(()=>V()?G()==="sidebar"?"icon-compact":"icon-sm":void 0),M=o(()=>V()&&G()==="sidebar"&&t(ee)),m=o(()=>!V()),P=o(()=>V()?G()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?k():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(M)},get wrapContent(){return t(m)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var H=L(),B=_(H);We(B,R),r(l,H)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(k,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ge},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=be(a);{let m=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(m)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,H)=>{var B=_r(),J=_(B);{var re=w=>{var q=br();W(()=>{De(q,"src",`data:image/png;base64,${t(v).iconBase64??""}`),De(q,"alt",t(v).label)}),r(w,q)},it=w=>{const q=o(()=>t(v).icon);var He=L(),pt=_(He);S(pt,()=>t(q),(ft,mt)=>{mt(ft,{size:14})}),r(w,He)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let q=o(()=>Ke(t(v).category));ne(w,{get icon(){return t(q)},class:"w-3.5 h-3.5 opacity-60"})}};z(J,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=N(J,2),ut=oe(dt,!0);W(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,B)},$$slots:{default:!0}})}var y=N(i,2);{var M=m=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(m,Te(k,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Lt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};z(y,m=>{t(f).length>1&&m(M)})}_e(a),r(n,a)};z(C,n=>{Q()&&R()?n(c):R()?n(K,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var D=hr(),k=be(D);{var T=h=>{var $=vr(),n=oe($,!0);W(()=>ae(n,ue())),r(h,$)};z(k,h=>{ue()&&h(T)})}var C=N(k,2);{var c=h=>{var $=he(),n=_($);le(n,()=>t(fe));var a=N(n,2);S(a,()=>Ve,(i,y)=>{y(i,{})}),r(h,$)};z(C,h=>{t(fe).length&&h(c)})}var K=N(C,2);le(K,()=>t(Se)),_e(D),r(F,D)};let j=o(()=>Q()&&R()?"contents!":"");Gt(u,{align:"end",get portal(){return Ie()},get side(){return ke()},get class(){return t(j)},get open(){return t(ee)},set open(F){Be(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}_e(d),W(()=>Pt(d,1,`${Q()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};z(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,Me);var st=It(rt);return Je(),st}export{wr as O,sr as a,Ke as r,ir as s};
1
+ import{t as bt,bo as b,bw as _t,bq as gt,b as vt,bm as x,bs as me,br as Te}from"./YLhFQnIu.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as L,ay as _,W as r,bn as It,aA as g,aD as t,bS as N,a5 as be,bH as Be,bA as _e,b_ as W,aB as E,c9 as o,bf as kt,bl as oe,bO as ae,bV as Ct}from"./3SdAC2_C.js";import{i as z}from"./YeOAvjnW.js";import{g as $t}from"./oBIu7LTI.js";import{t as We}from"./CrpUtGFn.js";import{c as S}from"./DwGyIIXK.js";import{f as Pt,s as De,b as At}from"./BQhBnAuP.js";import{cK as Et,bn as Ot,aM as Ft,F as ne,aZ as Tt,aN as Bt,bo as Dt,a8 as Ge,aw as Lt}from"./gwv5JQYH.js";import{W as Nt,T as zt,G as St,C as Rt,X as Mt,J as Ht,V as Wt}from"./CrwLq8nY.js";import{f as ge}from"./Cw2fqKk9.js";import"./DJivXy66.js";import{D as Gt}from"./BLhJfI63.js";import{g as Vt,R as jt,k as Kt,j as Jt,i as qt,h as Ve}from"./ItBm4ElA.js";import{m as ve}from"./CZB2ndi9.js";import{c as Ut}from"./ChTqQfQN.js";import"./D48_y-cl.js";import{Jx as je,nh as Xt,Gb as Yt}from"./D5wnbxHp.js";import{w as Zt}from"./Bqd7fdCF.js";import{i as U}from"./CL3a4Hm1.js";import{b2 as Qt,aM as er,aK as tr}from"./D-aEx3GL.js";import{cB as rr}from"./BJbm_MWC.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Wt,jetbrains:Ht,xcode:Mt};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function Ke(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",Le="finder",lr={id:Le,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),X=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return X.some(({id:Y})=>Y===Le)||se.has(Le)?X:[...X,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),mr=E("<span><!></span>"),br=E('<img class="w-4 h-4"/>'),_r=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return bt({component:wr,...O});ht(s,!0);const se=()=>me(Ue,"$installedEditors$",ie),X=()=>me(Xe,"$hiddenEditorIds$",ie),Y=()=>me(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>me(qe,"$openAction",ie),[ie,Je]=gt(),le=(e,d=kt)=>{var u=L(),p=_(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,D)=>{var k=L(),T=_(k);$t(T,17,d,C=>C.id,(C,c)=>{var K=L(),h=_(K);{const $=a=>{var i=L(),y=_(i);{var M=l=>{var A=dr();W(()=>De(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},m=l=>{const A=o(()=>t(c).icon);var H=L(),B=_(H);S(B,()=>t(A),(J,re)=>{re(J,{size:16})}),r(l,H)},P=l=>{{let A=o(()=>t(c).faIcon??Ke(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};z(y,l=>{t(c).iconBase64?l(M):t(c).icon?l(m,1):l(P,-1)})}r(a,i)};let n=o(()=>!I());S(h,()=>Vt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,M)=>{var m=pr(),P=_(m),l=oe(P,!0),A=N(P,2);{var H=B=>{var J=ur(),re=oe(J,!0);W(()=>ae(re,t(c).shortcut)),r(B,J)};z(A,B=>{t(c).shortcut&&B(H)})}W(()=>ae(l,t(c).label)),r(y,m)},$$slots:{leading:!0,default:!0}})})}r(C,K)}),r(F,k)},$$slots:{default:!0}})}),r(e,u)},Ne=Ut("OpenComboButton");let I=b(s,"filePath",7),ce=b(s,"workspaceId",7,""),de=b(s,"isDirectory",7,!0),we=b(s,"workspaceFolderPath",7),xe=b(s,"class",7,""),ue=b(s,"headerText",7),Ie=b(s,"usePortal",7,!0),ke=b(s,"side",7,"bottom"),G=b(s,"variant",7,"default"),Z=b(s,"branchName",7),Ce=b(s,"compact",7,!1),$e=b(s,"embedded",7,!1),Q=b(s,"inline",7,!1),V=b(s,"iconOnly",7,!1),R=b(s,"children",7,void 0);const ze=o(()=>G()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const qe=Qt(),Ue=er(Pe),Xe=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Xt())});function Ze(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Qe=Zt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,X()).map(Ze),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Dt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Z()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Bt}]:[]];return!Qe||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return I();const e=we()||I().substring(0,I().lastIndexOf("/"));return e?{folder:e,file:I()}:I()}async function Oe(e){if(!I())return;const d=de()?I():I().substring(0,I().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(I())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Z()&&(await navigator.clipboard.writeText(Z()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await U("external-editors:open-with-other",{path:d});p?.success?Be(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await U("shell:showItemInFolder",{path:d});break;case"vscode":await U("vscode:open",Ee());break;case"jetbrains":await U("jetbrains:open",Ee());break;case"xcode":await U("xcode:open",Ee());break;case"generic":default:{await U("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Be(ee,!1)}var rt={get filePath(){return I()},set filePath(e){I(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return Ie()},set usePortal(e=!0){Ie(e),g()},get side(){return ke()},set side(e="bottom"){ke(e),g()},get variant(){return G()},set variant(e="default"){G(e),g()},get branchName(){return Z()},set branchName(e){Z(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Q()},set inline(e=!1){Q(e),g()},get iconOnly(){return V()},set iconOnly(e=!1){V(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:_t,$on:(e,d)=>vt(s,e,d)},Me=L(),ot=_(Me);{var at=e=>{var d=he(),u=_(d);{var p=j=>{var F=he(),D=_(F);S(D,()=>qt,(T,C)=>{C(T,{children:(c,K)=>{var h=he(),$=_(h);S($,()=>Kt,(a,i)=>{i(a,{get icon(){return Ge},children:(y,M)=>{var m=fr(),P=oe(m,!0);W(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,m)},$$slots:{default:!0}})});var n=N($,2);S(n,()=>Jt,(a,i)=>{i(a,{class:"w-60",children:(y,M)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var k=N(D,2);S(k,()=>Ve,(T,C)=>{C(T,{})}),r(j,F)};z(u,j=>{t(fe).length&&j(p)})}var te=N(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=be(d);{const p=(F,D)=>{let k=()=>(D?.()).props;var T=L(),C=_(T);{var c=n=>{var a=mr();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?k():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=be(a);We(i,R),_e(a),r(n,a)},K=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>V()&&G()!=="sidebar"?"plain":"ghost"),y=o(()=>V()?G()==="sidebar"?"icon-compact":"icon-sm":void 0),M=o(()=>V()&&G()==="sidebar"&&t(ee)),m=o(()=>!V()),P=o(()=>V()?G()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?k():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(M)},get wrapContent(){return t(m)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var H=L(),B=_(H);We(B,R),r(l,H)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(k,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ge},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=be(a);{let m=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(m)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,H)=>{var B=_r(),J=_(B);{var re=w=>{var q=br();W(()=>{De(q,"src",`data:image/png;base64,${t(v).iconBase64??""}`),De(q,"alt",t(v).label)}),r(w,q)},it=w=>{const q=o(()=>t(v).icon);var He=L(),pt=_(He);S(pt,()=>t(q),(ft,mt)=>{mt(ft,{size:14})}),r(w,He)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let q=o(()=>Ke(t(v).category));ne(w,{get icon(){return t(q)},class:"w-3.5 h-3.5 opacity-60"})}};z(J,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=N(J,2),ut=oe(dt,!0);W(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,B)},$$slots:{default:!0}})}var y=N(i,2);{var M=m=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(m,Te(k,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Lt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};z(y,m=>{t(f).length>1&&m(M)})}_e(a),r(n,a)};z(C,n=>{Q()&&R()?n(c):R()?n(K,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var D=hr(),k=be(D);{var T=h=>{var $=vr(),n=oe($,!0);W(()=>ae(n,ue())),r(h,$)};z(k,h=>{ue()&&h(T)})}var C=N(k,2);{var c=h=>{var $=he(),n=_($);le(n,()=>t(fe));var a=N(n,2);S(a,()=>Ve,(i,y)=>{y(i,{})}),r(h,$)};z(C,h=>{t(fe).length&&h(c)})}var K=N(C,2);le(K,()=>t(Se)),_e(D),r(F,D)};let j=o(()=>Q()&&R()?"contents!":"");Gt(u,{align:"end",get portal(){return Ie()},get side(){return ke()},get class(){return t(j)},get open(){return t(ee)},set open(F){Be(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}_e(d),W(()=>Pt(d,1,`${Q()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};z(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,Me);var st=It(rt);return Je(),st}export{wr as O,sr as a,Ke as r,ir as s};
@@ -1 +1 @@
1
- import{t as et,bo as h,bw as tt,bs as ee,bq as nt,b as ot,bm as M}from"./Dws-34a7.js";import{bs as it,bk as rt,a7 as Tt,ay as _e,aD as i,W as D,bn as at,c9 as xe,aA as v,a5 as K,bS as $,bl as Ce,bA as Y,b_ as me,bO as re,aB as te,cd as It,ca as P,bH as T,bj as Pt,bV as oe}from"./3SdAC2_C.js";import{i as Q}from"./DLCFUd4s.js";import{b as zt}from"./Dn334wJv.js";import{ensureMonacoInitialized as Ae,initializeMonaco as He,monaco as Nt}from"./BHqp2vwo.js";import{defineMonacoThemes as Ue,getActiveMonacoThemeName as ye}from"./CEEUgGO1.js";import{c as At}from"./ChTqQfQN.js";import{g as Ve,f as Vt}from"./BD9db4FR.js";import{Jx as st}from"./4g_iHoQm.js";import{f as Ge}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{F as Je,bd as Wt,bo as $t}from"./CGYPBD6G.js";import{i as Xe}from"./CL3a4Hm1.js";import{w as Ze}from"./Bqd7fdCF.js";import{dH as Dt,cB as Ot}from"./SbTG0nwQ.js";import{g as Rt}from"./Dval4sTX.js";import{c as jt}from"./DcOkWaeN.js";import{d as ie}from"./B0Z-1lwJ.js";import{g as Bt}from"./Da-Blgd9.js";import{g as B,R as Ke,U as Ye}from"./7y3Z0Q49.js";const lt=st.createSelector(s=>s.agentFollow.isFollowing),qt=st.createSelector(s=>s.agentFollow.agentColor);var Ht=te('<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 ct(s,a){if(new.target)return et({component:ct,...s});it(a,!0);const f=()=>ee(ae,"$isFollowing$",C),k=()=>ee(z,"$agentColor$",C),[C,N]=nt(),ae=lt(),z=qt();let L=h(a,"content",15),l=h(a,"onContentChange",7),A=h(a,"isActive",7,!1),g=null,w=null,pe="";rt(()=>(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:F,isAddition:S,speed:I=30}=b;R(),S?he(F,I):ve(F,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const F=g.signal,S=c.split("");w=(async()=>{for(let I=0;I<S.length&&!F.aborted;I++){pe+=S[I],L(L()+S[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function ve(c,b){g=new AbortController;const F=g.signal,S=L().indexOf(c);if(S===-1)return;const I=L().slice(0,S),V=L().slice(S+c.length);w=(async()=>{for(let H=c.length;H>0&&!F.aborted;H--){const Me=c.slice(0,H-1);L(I+Me+V),l()(L());const ke=b*.7+(Math.random()*5-2.5);await new Promise(Le=>setTimeout(Le,ke))}})(),await w}let se=xe(()=>w!==null),x=xe(()=>i(se)?"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:tt,$on:(c,b)=>ot(a,c,b)},ne=Tt(),le=_e(ne);{var q=c=>{var b=Ht(),F=K(b),S=$(F,2),I=Ce(S,!0);Y(b),me(V=>{Ve(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Vt(F,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ve(F,`background: ${k()?.start??""};`),Ve(S,`color: ${k()?.start??""};`),re(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};Q(le,c=>{i(se)&&f()&&c(q)})}D(s,ne);var E=at(j);return N(),E}function Ln(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 Ut(s,a){return a.map(f=>{const k=Gt(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 Gt(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 Xt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function dt(s){return s.startsWith("/")?s:`/${s}`}function Zt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Kt(s,a){const f=dt(s),k=f.toLowerCase(),C=`.__editor_${Zt(a)}`,N=Xt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ae=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ae?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Yt(s){return dt(s)}var Qe=te("<!> ",1),Qt=te('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),en=te('<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>'),tn=te('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),nn=te('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),on=te('<div class="relative h-full w-full"><!></div>');function rn(s,a){if(new.target)return et({component:rn,...s});it(a,!0);const f=()=>ee(ut,"$workspaceById",z),k=()=>ee(ht,"$isFollowing$",z),C=()=>ee(I,"$isDarkTheme",z),N=()=>ee(S,"$codeFontFamilyCSS",z),ae=()=>ee(ft,"$isWorkspaceHostLocal$",z),[z,L]=nt(),l=At("CodeEditor"),A=500*1024;let g=h(a,"value",15,""),w=h(a,"language",7,"javascript"),pe=h(a,"theme",7,"light"),O=h(a,"readOnly",7,!1),R=h(a,"lineNumbers",7,!0),he=h(a,"highlightActiveLine",7,!0),ve=h(a,"diffMode",7,!1),se=h(a,"originalValue",7,""),x=h(a,"fileName",7,""),j=h(a,"lineWrapping",7,!0),ne=h(a,"jumpTo",7,void 0),le=h(a,"lineChanges",23,()=>[]),q=h(a,"workspaceId",7),E=h(a,"filePath",7),c=h(a,"placeholder",7),b=h(a,"isPanelFocused",7,!0),F=h(a,"externalContentVersion",7,0);const S=Rt(),I=jt(),V=Bt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),Me=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),ke=H?M.layout_panelTabBar_fileManagerExplorer_label():Me?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),Le=xe(()=>q()??V??void 0),Ee=It(q()??V??"");P(()=>{Ee.set(q()??V??"")});const ut=Dt(Ee),ft=Ot(Ee),We=Ze("externalEditors"),$e=Ze("systemFileManager");function De(){return f()}let U=oe(!1),we=oe(0);function gt(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 mt(){if(!E()){l.error("Cannot open file: missing file path");return}let e;if(E().startsWith("/"))e=E();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${E()}`}try{await Xe("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function pt(){if(!E()){l.error("Cannot reveal file: missing file path");return}let e;if(E().startsWith("/"))e=E();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${E()}`}try{await Xe("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=oe(void 0),t=null,G=null,J=oe(!1);const ht=lt();let Fe=xe(k),Oe=oe(0);const vt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let ce=[],Re;function de(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function wt(e){const n=Ye.file(Yt(e));return B.getModel(n)?Ye.file(Kt(e,vt)):n}function Se(e,n){je();const o=E()||x();return o?(G=B.createModel(e,n,wt(o)),G):(G=B.createModel(e,n),G)}function je(){G&&(G.dispose(),G=null)}function Be(){if(t){try{t.dispose()}catch{}t=null,T(J,!1)}je()}let Te=oe(!1);P(()=>{const n=de(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),T(U,!1),T(we,0),T(Te,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),T(U,!0),T(we,n,!0),t&&Be())}),P(()=>{i(Te)&&i(d)&&!t&&!i(U)&&(T(Te,!1),(async()=>{try{const e=de(g());if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Ue();const n=be(w()),o=ye(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=Se(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}}),T(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&&ie("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("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=de(g()),n=F(),o=n!==i(Oe);if(t){if(t.getValue()!==e&&(!i(Fe)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&T(Oe,n,!0)}}),P(()=>{const e=le();if(!t||!e||e.length===0){t&&ce.length>0&&(ce=t.deltaDecorations(ce,[]));return}const n=Ut(Nt,e);ce=t.deltaDecorations(ce,n)}),P(()=>{if(!t||!i(Fe))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 p=new Ke(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,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 p=new Ke(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,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=be(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(ye(e))});function be(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}rt(async()=>{if(!i(d))return;try{const o=de(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),T(U,!0),T(we,o.length,!0);return}if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Ue();const u=be(w()),m=ye(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=Se(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}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ie("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ae();const u=de(g()),m=Se(u,be(w()));t=B.create(i(d),{model:m,theme:ye(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const p=t?.getModel()?.getValueInRange(_)||"";p&&ie("editor:selection-change",{text:p,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("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),Re=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function bt(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function yt(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}Pt(()=>{Re?.(),Be()}),P(()=>{const e=ne(),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,p={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(p),t.revealPositionInCenterIfOutsideViewport(p,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var _t={focus:bt,runShortcut:yt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return pe()},set theme(e="light"){pe(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 ve()},set diffMode(e=!1){ve(e),v()},get originalValue(){return se()},set originalValue(e=""){se(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 ne()},set jumpTo(e=void 0){ne(e),v()},get lineChanges(){return le()},set lineChanges(e=[]){le(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return E()},set filePath(e){E(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 F()},set externalContentVersion(e=0){F(e),v()},$set:tt,$on:(e,n)=>ot(a,e,n)},Ie=on(),Ct=K(Ie);{var xt=e=>{var n=en(),o=K(n),u=K(o),m=$(K(u),2),y=Ce(m,!0),_=$(m,2),r=Ce(_,!0),p=$(_,2);{var W=X=>{var ue=Qt(),qe=K(ue);{var Lt=Z=>{Ge(Z,{variant:"secondary",size:"sm",onclick:mt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return Wt},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Pe,fe)},$$slots:{default:!0}})};Q(qe,Z=>{We&&Z(Lt)})}var Et=$(qe,2);{var Ft=Z=>{Ge(Z,{variant:"ghost",size:"sm",onclick:pt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return $t},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:ke})]),D(Pe,fe)},$$slots:{default:!0}})};Q(Et,Z=>{$e&&Z(Ft)})}Y(ue),D(X,ue)};Q(p,X=>{i(Le)&&E()&&ae()&&(We||$e)&&X(W)})}Y(u),Y(o),Y(n),me((X,ue)=>{re(y,X),re(r,ue)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:gt(i(we))})]),D(e,n)},Mt=e=>{var n=nn(),o=_e(n);{var u=r=>{ct(r,{onContentChange:p=>g(p),isActive:!0,get content(){return g()},set content(p){g(p)}})};Q(o,r=>{i(Fe)&&r(u)})}var m=$(o,2);zt(m,r=>T(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var p=tn(),W=K(p),X=Ce(W,!0);Y(p),me(()=>re(X,c())),D(r,p)};Q(y,r=>{c()&&!g()&&r(_)})}D(e,n)};Q(Ct,e=>{i(U)?e(xt):e(Mt,-1)})}Y(Ie),D(s,Ie);var kt=at(_t);return L(),kt}export{rn as C,Ln as p};
1
+ import{t as et,bo as h,bw as tt,bs as ee,bq as nt,b as ot,bm as M}from"./YLhFQnIu.js";import{bs as it,bk as rt,a7 as Tt,ay as _e,aD as i,W as D,bn as at,c9 as xe,aA as v,a5 as K,bS as $,bl as Ce,bA as Y,b_ as me,bO as re,aB as te,cd as It,ca as P,bH as T,bj as Pt,bV as oe}from"./3SdAC2_C.js";import{i as Q}from"./YeOAvjnW.js";import{b as zt}from"./Dn334wJv.js";import{ensureMonacoInitialized as Ae,initializeMonaco as He,monaco as Nt}from"./C2zt__Wj.js";import{defineMonacoThemes as Ue,getActiveMonacoThemeName as ye}from"./BQ8hOnRo.js";import{c as At}from"./ChTqQfQN.js";import{g as Ve,f as Vt}from"./BQhBnAuP.js";import{Jx as st}from"./D5wnbxHp.js";import{f as Ge}from"./Cw2fqKk9.js";import"./DJivXy66.js";import{F as Je,bd as Wt,bo as $t}from"./gwv5JQYH.js";import{i as Xe}from"./CL3a4Hm1.js";import{w as Ze}from"./Bqd7fdCF.js";import{dH as Dt,cB as Ot}from"./BJbm_MWC.js";import{g as Rt}from"./_3Ca9E4W.js";import{c as jt}from"./D48_y-cl.js";import{d as ie}from"./B0Z-1lwJ.js";import{g as Bt}from"./B0RPkrmZ.js";import{g as B,R as Ke,U as Ye}from"./BpwKnO7b.js";const lt=st.createSelector(s=>s.agentFollow.isFollowing),qt=st.createSelector(s=>s.agentFollow.agentColor);var Ht=te('<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 ct(s,a){if(new.target)return et({component:ct,...s});it(a,!0);const f=()=>ee(ae,"$isFollowing$",C),k=()=>ee(z,"$agentColor$",C),[C,N]=nt(),ae=lt(),z=qt();let L=h(a,"content",15),l=h(a,"onContentChange",7),A=h(a,"isActive",7,!1),g=null,w=null,pe="";rt(()=>(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:F,isAddition:S,speed:I=30}=b;R(),S?he(F,I):ve(F,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const F=g.signal,S=c.split("");w=(async()=>{for(let I=0;I<S.length&&!F.aborted;I++){pe+=S[I],L(L()+S[I]),l()(L());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function ve(c,b){g=new AbortController;const F=g.signal,S=L().indexOf(c);if(S===-1)return;const I=L().slice(0,S),V=L().slice(S+c.length);w=(async()=>{for(let H=c.length;H>0&&!F.aborted;H--){const Me=c.slice(0,H-1);L(I+Me+V),l()(L());const ke=b*.7+(Math.random()*5-2.5);await new Promise(Le=>setTimeout(Le,ke))}})(),await w}let se=xe(()=>w!==null),x=xe(()=>i(se)?"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:tt,$on:(c,b)=>ot(a,c,b)},ne=Tt(),le=_e(ne);{var q=c=>{var b=Ht(),F=K(b),S=$(F,2),I=Ce(S,!0);Y(b),me(V=>{Ve(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Vt(F,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ve(F,`background: ${k()?.start??""};`),Ve(S,`color: ${k()?.start??""};`),re(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};Q(le,c=>{i(se)&&f()&&c(q)})}D(s,ne);var E=at(j);return N(),E}function Ln(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 Ut(s,a){return a.map(f=>{const k=Gt(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 Gt(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 Xt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function dt(s){return s.startsWith("/")?s:`/${s}`}function Zt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Kt(s,a){const f=dt(s),k=f.toLowerCase(),C=`.__editor_${Zt(a)}`,N=Xt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ae=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ae?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Yt(s){return dt(s)}var Qe=te("<!> ",1),Qt=te('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),en=te('<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>'),tn=te('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),nn=te('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),on=te('<div class="relative h-full w-full"><!></div>');function rn(s,a){if(new.target)return et({component:rn,...s});it(a,!0);const f=()=>ee(ut,"$workspaceById",z),k=()=>ee(ht,"$isFollowing$",z),C=()=>ee(I,"$isDarkTheme",z),N=()=>ee(S,"$codeFontFamilyCSS",z),ae=()=>ee(ft,"$isWorkspaceHostLocal$",z),[z,L]=nt(),l=At("CodeEditor"),A=500*1024;let g=h(a,"value",15,""),w=h(a,"language",7,"javascript"),pe=h(a,"theme",7,"light"),O=h(a,"readOnly",7,!1),R=h(a,"lineNumbers",7,!0),he=h(a,"highlightActiveLine",7,!0),ve=h(a,"diffMode",7,!1),se=h(a,"originalValue",7,""),x=h(a,"fileName",7,""),j=h(a,"lineWrapping",7,!0),ne=h(a,"jumpTo",7,void 0),le=h(a,"lineChanges",23,()=>[]),q=h(a,"workspaceId",7),E=h(a,"filePath",7),c=h(a,"placeholder",7),b=h(a,"isPanelFocused",7,!0),F=h(a,"externalContentVersion",7,0);const S=Rt(),I=jt(),V=Bt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),Me=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),ke=H?M.layout_panelTabBar_fileManagerExplorer_label():Me?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),Le=xe(()=>q()??V??void 0),Ee=It(q()??V??"");P(()=>{Ee.set(q()??V??"")});const ut=Dt(Ee),ft=Ot(Ee),We=Ze("externalEditors"),$e=Ze("systemFileManager");function De(){return f()}let U=oe(!1),we=oe(0);function gt(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 mt(){if(!E()){l.error("Cannot open file: missing file path");return}let e;if(E().startsWith("/"))e=E();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${E()}`}try{await Xe("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function pt(){if(!E()){l.error("Cannot reveal file: missing file path");return}let e;if(E().startsWith("/"))e=E();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${E()}`}try{await Xe("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=oe(void 0),t=null,G=null,J=oe(!1);const ht=lt();let Fe=xe(k),Oe=oe(0);const vt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let ce=[],Re;function de(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function wt(e){const n=Ye.file(Yt(e));return B.getModel(n)?Ye.file(Kt(e,vt)):n}function Se(e,n){je();const o=E()||x();return o?(G=B.createModel(e,n,wt(o)),G):(G=B.createModel(e,n),G)}function je(){G&&(G.dispose(),G=null)}function Be(){if(t){try{t.dispose()}catch{}t=null,T(J,!1)}je()}let Te=oe(!1);P(()=>{const n=de(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),T(U,!1),T(we,0),T(Te,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),T(U,!0),T(we,n,!0),t&&Be())}),P(()=>{i(Te)&&i(d)&&!t&&!i(U)&&(T(Te,!1),(async()=>{try{const e=de(g());if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Ue();const n=be(w()),o=ye(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=Se(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}}),T(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&&ie("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("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=de(g()),n=F(),o=n!==i(Oe);if(t){if(t.getValue()!==e&&(!i(Fe)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&T(Oe,n,!0)}}),P(()=>{const e=le();if(!t||!e||e.length===0){t&&ce.length>0&&(ce=t.deltaDecorations(ce,[]));return}const n=Ut(Nt,e);ce=t.deltaDecorations(ce,n)}),P(()=>{if(!t||!i(Fe))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 p=new Ke(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,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 p=new Ke(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,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=be(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(ye(e))});function be(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}rt(async()=>{if(!i(d))return;try{const o=de(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),T(U,!0),T(we,o.length,!0);return}if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Ue();const u=be(w()),m=ye(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=Se(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}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ie("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ae();const u=de(g()),m=Se(u,be(w()));t=B.create(i(d),{model:m,theme:ye(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const p=t?.getModel()?.getValueInRange(_)||"";p&&ie("editor:selection-change",{text:p,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("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),Re=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function bt(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function yt(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}Pt(()=>{Re?.(),Be()}),P(()=>{const e=ne(),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,p={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(p),t.revealPositionInCenterIfOutsideViewport(p,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var _t={focus:bt,runShortcut:yt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return pe()},set theme(e="light"){pe(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 ve()},set diffMode(e=!1){ve(e),v()},get originalValue(){return se()},set originalValue(e=""){se(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 ne()},set jumpTo(e=void 0){ne(e),v()},get lineChanges(){return le()},set lineChanges(e=[]){le(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return E()},set filePath(e){E(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 F()},set externalContentVersion(e=0){F(e),v()},$set:tt,$on:(e,n)=>ot(a,e,n)},Ie=on(),Ct=K(Ie);{var xt=e=>{var n=en(),o=K(n),u=K(o),m=$(K(u),2),y=Ce(m,!0),_=$(m,2),r=Ce(_,!0),p=$(_,2);{var W=X=>{var ue=Qt(),qe=K(ue);{var Lt=Z=>{Ge(Z,{variant:"secondary",size:"sm",onclick:mt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return Wt},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Pe,fe)},$$slots:{default:!0}})};Q(qe,Z=>{We&&Z(Lt)})}var Et=$(qe,2);{var Ft=Z=>{Ge(Z,{variant:"ghost",size:"sm",onclick:pt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return $t},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:ke})]),D(Pe,fe)},$$slots:{default:!0}})};Q(Et,Z=>{$e&&Z(Ft)})}Y(ue),D(X,ue)};Q(p,X=>{i(Le)&&E()&&ae()&&(We||$e)&&X(W)})}Y(u),Y(o),Y(n),me((X,ue)=>{re(y,X),re(r,ue)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:gt(i(we))})]),D(e,n)},Mt=e=>{var n=nn(),o=_e(n);{var u=r=>{ct(r,{onContentChange:p=>g(p),isActive:!0,get content(){return g()},set content(p){g(p)}})};Q(o,r=>{i(Fe)&&r(u)})}var m=$(o,2);zt(m,r=>T(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var p=tn(),W=K(p),X=Ce(W,!0);Y(p),me(()=>re(X,c())),D(r,p)};Q(y,r=>{c()&&!g()&&r(_)})}D(e,n)};Q(Ct,e=>{i(U)?e(xt):e(Mt,-1)})}Y(Ie),D(s,Ie);var kt=at(_t);return L(),kt}export{rn as C,Ln as p};
@@ -1,4 +1,4 @@
1
- import{p as xt}from"./BmFHmusU.js";import{aZ as gt,U as $t,Y as bt,b0 as wt,V as Ct,a_ as vt,b as s,ay as O,aX as Dt,B as kt,r as Tt,q as U,W as Z,O as At,a6 as ot}from"./DE32K02M.js";import{p as Bt}from"./BgDnzAo4.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Z().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),G={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,G),G.setDomains(t.domains),G.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}s(st,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:st(e)}s(it,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,I=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*I})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),R=p.x+h,V=f,_=i.x-h;D+=` C${R},${V} ${_},${f} ${i.x},${i.y}`}return D}s(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,I=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*I,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),R=f,V=p.y+h,_=f,z=i.y-h;D+=` C${R},${V} ${_},${z} ${i.x},${i.y}`}return D}s(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}s(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}s(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Vt=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Vt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,V=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,V,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${V} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Q=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Q,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Q+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const Y=x.getBBox();Y.width>0&&($=Y.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,Y=-x/C,ht=$/C,et=M+Y*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Ft={draw:_t},Et=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return`
1
+ import{p as xt}from"./DP2r4UWt.js";import{aZ as gt,U as $t,Y as bt,b0 as wt,V as Ct,a_ as vt,b as s,ay as O,aX as Dt,B as kt,r as Tt,q as U,W as Z,O as At,a6 as ot}from"./B6-aVrNf.js";import{p as Bt}from"./D2y-zN_4.js";var rt=s(()=>({domains:new Map,transitions:[]}),"createDefaultData"),H=rt(),St=s(()=>H.domains,"getDomains"),Mt=s(()=>H.transitions,"getTransitions"),zt=s(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));H.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=s(t=>{t&&(H.transitions=t.filter(e=>e.from===e.to?(O.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=s(()=>U({...At.cynefin,...Z().cynefin}),"getConfig"),Pt=s(()=>{Tt(),H=rt()},"clear"),G={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},Wt=s(t=>{xt(t,G),G.setDomains(t.domains),G.setTransitions(t.transitions)},"populate"),It={parse:s(async t=>{const e=await Bt("cynefin",t);O.debug(e),Wt(e)},"parse")};function E(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}s(E,"seededRandom");function st(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}s(st,"hashString");function it(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:st(e)}s(it,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,I=e/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*17)*m*2-m;d.push({x:c+p,y:o*I})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.y+i.y)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*31+7),R=p.x+h,V=f,_=i.x-h;D+=` C${R},${V} ${_},${f} ${i.x},${i.y}`}return D}s(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,I=t/v,d=[];for(let o=0;o<=v;o++){const p=E(n+o*23)*m*2-m;d.push({x:o*I,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],i=d[o+1],f=(p.x+i.x)/2,b=o%2===0?1:-1,h=m*1.5*b*E(n+o*37+11),R=f,V=p.y+h,_=f,z=i.y-h;D+=` C${R},${V} ${_},${z} ${i.x},${i.y}`}return D}s(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}s(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}s(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=s((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),Vt=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,_t=s((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),I=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=Vt();O.debug("Rendering Cynefin diagram");const i=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,V=i+b*2,_=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,_,V,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${V} ${_}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const T=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(i,f),Q=it(o.seed,e),mt=T.append("g").attr("class","cynefin-backgrounds"),X=["complex","complicated","chaotic","clear"];for(const l of X){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=T.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(i,f,Q,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(i,f,Q+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(i,f)).attr("fill","none");const pt=i*.15,yt=f*.15;T.append("path").attr("class","cynefinConfusion").attr("d",ft(i/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=T.append("g").attr("class","cynefin-labels");for(const l of X){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",i/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=T.append("g").attr("class","cynefin-subtitles");for(const r of X){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",i/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=T.append("g").attr("class","cynefin-items"),A=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(A+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const Y=x.getBBox();Y.width>0&&($=Y.width)}const C=$+tt*2,W=u.cx-C/2;M.attr("transform",`translate(${W}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",A/2)}),N>0){const g=B+L.length*(A+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",A/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const W=$.getBBox();W.width>0&&(P=W.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",A).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",A/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=T.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){O.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),W=C*.15,Y=-x/C,ht=$/C,et=M+Y*W,nt=P+ht*W;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}I&&T.append("text").attr("class","cynefinTitle").attr("x",i/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(I)},"draw"),Ft={draw:_t},Et=s(()=>{const t=ot(),e=Z();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Ht=s(()=>{const t=Et();return`
2
2
  .cynefinDomain {
3
3
  stroke: none;
4
4
  }