@intent-hq/web 2.390.1 → 2.391.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{caKZ9Z4U.js → -CpNnXIW.js} +1 -1
  3. package/web/app/immutable/chunks/{DRDYIFn4.js → 0R5VEpaM.js} +4 -4
  4. package/web/app/immutable/chunks/{Cp5royN1.js → 1-MeqddK.js} +1 -1
  5. package/web/app/immutable/chunks/{BYpep93f.js → 23FyIn6O.js} +1 -1
  6. package/web/app/immutable/chunks/{xfg66reS.js → 5az3n8fR.js} +1 -1
  7. package/web/app/immutable/chunks/{DCLLUF6K.js → 6JlgfFWd.js} +1 -1
  8. package/web/app/immutable/chunks/{BOmWUtDJ.js → 7-WRRruG.js} +1 -1
  9. package/web/app/immutable/chunks/{Cfr2GX8P.js → 9GL-RXJZ.js} +1 -1
  10. package/web/app/immutable/chunks/{DxyD9o0t.js → 9eqoPT_C.js} +1 -1
  11. package/web/app/immutable/chunks/{DvNAieWn.js → 9qqz3Jr0.js} +1 -1
  12. package/web/app/immutable/chunks/{D672CX3Y.js → Ao0jjYj2.js} +1 -1
  13. package/web/app/immutable/chunks/{_UjuBCOJ.js → B1lpukIv.js} +1 -1
  14. package/web/app/immutable/chunks/{CcJmuwXr.js → B26ZHg3s.js} +1 -1
  15. package/web/app/immutable/chunks/{CrpG0ldr.js → B28HQLvX.js} +1 -1
  16. package/web/app/immutable/chunks/{BIFBPuAO.js → B2Ny2uiy.js} +1 -1
  17. package/web/app/immutable/chunks/{DC_9qNLq.js → B2Q_FC4n.js} +3 -3
  18. package/web/app/immutable/chunks/{DfheqyY9.js → B2awO10u.js} +1 -1
  19. package/web/app/immutable/chunks/{C4jSaPCg.js → B3T1oiJl.js} +1 -1
  20. package/web/app/immutable/chunks/{BtmHyUSg.js → B4Yz29Q3.js} +1 -1
  21. package/web/app/immutable/chunks/{BxmKCIlL.js → B5-Plsom.js} +1 -1
  22. package/web/app/immutable/chunks/{CZfxrP3m.js → B6m0Dypi.js} +1 -1
  23. package/web/app/immutable/chunks/{BEP4JwDJ.js → B7hGbqIM.js} +1 -1
  24. package/web/app/immutable/chunks/{DxKtLuP2.js → B7hWIBzm.js} +1 -1
  25. package/web/app/immutable/chunks/{9YT9B_ti.js → B7pblHOt.js} +1 -1
  26. package/web/app/immutable/chunks/B9Nn4kQr.js +3 -0
  27. package/web/app/immutable/chunks/{CXP7dPfG.js → BAMJ8Hnj.js} +1 -1
  28. package/web/app/immutable/chunks/{DrA_ZV1y.js → BB2vaoZ2.js} +3 -3
  29. package/web/app/immutable/chunks/{BhiYNovM.js → BBcnUEuQ.js} +1 -1
  30. package/web/app/immutable/chunks/{CkmDctRH.js → BCLYeYwk.js} +1 -1
  31. package/web/app/immutable/chunks/{CLJCnlVH.js → BDeGl6ee.js} +1 -1
  32. package/web/app/immutable/chunks/{BPcIfv-A.js → BFHmbbvG.js} +2 -2
  33. package/web/app/immutable/chunks/{BbYWP3Ow.js → BFfRQORP.js} +1 -1
  34. package/web/app/immutable/chunks/{BrMDTgLg.js → BGeImWEk.js} +1 -1
  35. package/web/app/immutable/chunks/{BksTLNI4.js → BHgSQJqT.js} +1 -1
  36. package/web/app/immutable/chunks/{BJEoqPJ5.js → BJCm9MUD.js} +1 -1
  37. package/web/app/immutable/chunks/{BBPVt-9A.js → BKKCpqXK.js} +2 -2
  38. package/web/app/immutable/chunks/{CHW1UVsO.js → BLfqsc2a.js} +1 -1
  39. package/web/app/immutable/chunks/{Dc4V5sMu.js → BLtLj2yz.js} +1 -1
  40. package/web/app/immutable/chunks/{958SNXkw.js → BM2ubpAw.js} +1 -1
  41. package/web/app/immutable/chunks/{D36C5UHH.js → BM39k1x6.js} +1 -1
  42. package/web/app/immutable/chunks/{CjPEI4fg.js → BMTanQ2Z.js} +1 -1
  43. package/web/app/immutable/chunks/{BtNlG0Qg.js → BNYZa6GV.js} +1 -1
  44. package/web/app/immutable/chunks/{Cn4A9AjR.js → BOPrepKH.js} +1 -1
  45. package/web/app/immutable/chunks/{BB9aoG-e.js → BOVldAsb.js} +1 -1
  46. package/web/app/immutable/chunks/{BNs9wOFa.js → BQCtWEZ2.js} +1 -1
  47. package/web/app/immutable/chunks/{Dp8b1GoU.js → BRScUzfU.js} +1 -1
  48. package/web/app/immutable/chunks/{CgrVbtN0.js → BS9WBIBb.js} +1 -1
  49. package/web/app/immutable/chunks/{DuaPhBil.js → BSKVcPN7.js} +1 -1
  50. package/web/app/immutable/chunks/{s6kPQOkv.js → BSZu3BUb.js} +1 -1
  51. package/web/app/immutable/chunks/{D7b2VLAz.js → BT5iyspK.js} +1 -1
  52. package/web/app/immutable/chunks/{CJsEZbta.js → BT8mEFV6.js} +1 -1
  53. package/web/app/immutable/chunks/{DBAONTYG.js → BTXzEcFX.js} +2 -2
  54. package/web/app/immutable/chunks/{DZzwt3PA.js → BTvJ4T_4.js} +1 -1
  55. package/web/app/immutable/chunks/{aZdb_rCN.js → BU3y3Xes.js} +1 -1
  56. package/web/app/immutable/chunks/{BYpFXq6h.js → BU9me3Pg.js} +1 -1
  57. package/web/app/immutable/chunks/{DCs992HX.js → BUSErGiB.js} +1 -1
  58. package/web/app/immutable/chunks/{B557jpav.js → BVUW22uN.js} +1 -1
  59. package/web/app/immutable/chunks/{CXz-0Ag_.js → BVwQph9_.js} +1 -1
  60. package/web/app/immutable/chunks/{p1zR6qAw.js → BWQPB65O.js} +1 -1
  61. package/web/app/immutable/chunks/{DzDSM2LC.js → BXwdb0J5.js} +3 -3
  62. package/web/app/immutable/chunks/{BwH4Bvte.js → BZ27qIg1.js} +1 -1
  63. package/web/app/immutable/chunks/{C4iFTj8I.js → BZCcX8wj.js} +2 -2
  64. package/web/app/immutable/chunks/{CDwhmkPo.js → B_JGVEqN.js} +1 -1
  65. package/web/app/immutable/chunks/BaXq2aUL.js +411 -0
  66. package/web/app/immutable/chunks/{BNCKMxAC.js → Bb-kpHQF.js} +1 -1
  67. package/web/app/immutable/chunks/{BObTlShq.js → BcdTbj6d.js} +1 -1
  68. package/web/app/immutable/chunks/{k55njABd.js → BczcQRsN.js} +1 -1
  69. package/web/app/immutable/chunks/{B5N8LmEF.js → BdhKX9ZN.js} +1 -1
  70. package/web/app/immutable/chunks/Bheykcr9.js +1 -0
  71. package/web/app/immutable/chunks/{uvhZkGDU.js → Bhq56Jsu.js} +1 -1
  72. package/web/app/immutable/chunks/{Bviyt-Xy.js → Bhyo7hBL.js} +1 -1
  73. package/web/app/immutable/chunks/{DdNhEgdc.js → BjGqF2I6.js} +1 -1
  74. package/web/app/immutable/chunks/{BPQFiQQc.js → BkcCJyDK.js} +1 -1
  75. package/web/app/immutable/chunks/{Bq2Q6gce.js → BlzuDW6O.js} +1 -1
  76. package/web/app/immutable/chunks/{BqMJVUEP.js → BmaG8vdR.js} +1 -1
  77. package/web/app/immutable/chunks/{UTM5G-w-.js → BpezAJRw.js} +1 -1
  78. package/web/app/immutable/chunks/{Dcy1uNRG.js → Bpi8OSTE.js} +1 -1
  79. package/web/app/immutable/chunks/{goTVlBLf.js → BrL12o40.js} +1 -1
  80. package/web/app/immutable/chunks/{D8xPzBy1.js → BuyrOC4V.js} +1 -1
  81. package/web/app/immutable/chunks/{CfNIzRu8.js → Bx1P9uW7.js} +1 -1
  82. package/web/app/immutable/chunks/{BhCMc9G0.js → By2YlE-l.js} +1 -1
  83. package/web/app/immutable/chunks/{BB3L0Ahp.js → ByP-EusE.js} +1 -1
  84. package/web/app/immutable/chunks/{CSjV3uYy.js → Byobtdo1.js} +1 -1
  85. package/web/app/immutable/chunks/{CEE0831H.js → Bz80vYvX.js} +1 -1
  86. package/web/app/immutable/chunks/{pfX_M-aK.js → C-nTKxY9.js} +1 -1
  87. package/web/app/immutable/chunks/{CwxM4cLW.js → C00PRSTi.js} +1 -1
  88. package/web/app/immutable/chunks/{CiCk9_hF.js → C1MYTxgW.js} +1 -1
  89. package/web/app/immutable/chunks/{CVWwz1Ss.js → C22cBcHz.js} +1 -1
  90. package/web/app/immutable/chunks/{CpIiMADc.js → C2tSFTTb.js} +1 -1
  91. package/web/app/immutable/chunks/{D9CNxngf.js → C3JJkOFb.js} +1 -1
  92. package/web/app/immutable/chunks/{96V4v2iI.js → C3jMXj_V.js} +1 -1
  93. package/web/app/immutable/chunks/{DRND1Lha.js → C4l6men1.js} +1 -1
  94. package/web/app/immutable/chunks/{9mJbO8Tf.js → C5fxud9g.js} +1 -1
  95. package/web/app/immutable/chunks/{llldKyz-.js → C5tJUrGJ.js} +1 -1
  96. package/web/app/immutable/chunks/C8E14ldW.js +1 -0
  97. package/web/app/immutable/chunks/{mfOfLDEg.js → C9N7yhqm.js} +1 -1
  98. package/web/app/immutable/chunks/{CEpPVlB6.js → C9wxB2bb.js} +2 -2
  99. package/web/app/immutable/chunks/{CgwVRyOb.js → CA-b7pAY.js} +2 -2
  100. package/web/app/immutable/chunks/{BId1zNus.js → CAGrRNbp.js} +1 -1
  101. package/web/app/immutable/chunks/{BOVEEbKv.js → CAUJiTuz.js} +1 -1
  102. package/web/app/immutable/chunks/{CyBTM61A.js → CAUle5iU.js} +1 -1
  103. package/web/app/immutable/chunks/{BEQVnLdV.js → CCzPC_cB.js} +1 -1
  104. package/web/app/immutable/chunks/{BR1TNOav.js → CDUYzZ2W.js} +1 -1
  105. package/web/app/immutable/chunks/CDVPwJHE.js +1 -0
  106. package/web/app/immutable/chunks/{CiRuCsUo.js → CDh2mZdS.js} +1 -1
  107. package/web/app/immutable/chunks/{DpCic98X.js → CEA7jD1C.js} +1 -1
  108. package/web/app/immutable/chunks/{Dp7Hm0g0.js → CEyWnfg4.js} +1 -1
  109. package/web/app/immutable/chunks/{BwNrQXlF.js → CGmYraIa.js} +1 -1
  110. package/web/app/immutable/chunks/{yofTuS8P.js → CH6Im5iM.js} +1 -1
  111. package/web/app/immutable/chunks/{BBFoj-dS.js → CHIxjTWu.js} +1 -1
  112. package/web/app/immutable/chunks/{BQh5T3Ji.js → CHUYHKuh.js} +1 -1
  113. package/web/app/immutable/chunks/{DuiDS_zT.js → CIxnaBAb.js} +2 -2
  114. package/web/app/immutable/chunks/{UuRFnpzE.js → CK543FRe.js} +1 -1
  115. package/web/app/immutable/chunks/{D2YgP7DB.js → CKTB5KRw.js} +1 -1
  116. package/web/app/immutable/chunks/{M9xgh-VN.js → CLMwPQBQ.js} +1 -1
  117. package/web/app/immutable/chunks/{TyAuxp07.js → CLvqghA8.js} +1 -1
  118. package/web/app/immutable/chunks/{D9y3xvsP.js → COo5pTrI.js} +1 -1
  119. package/web/app/immutable/chunks/{DPttSllj.js → COofQgO0.js} +1 -1
  120. package/web/app/immutable/chunks/{Bub6uL1r.js → CPnqf2bo.js} +1 -1
  121. package/web/app/immutable/chunks/{Bcb_9iMJ.js → CR5XXYcE.js} +1 -1
  122. package/web/app/immutable/chunks/{Lai6pqjy.js → CREbzS7Z.js} +1 -1
  123. package/web/app/immutable/chunks/{DtXgUHCj.js → CRXlvdEs.js} +1 -1
  124. package/web/app/immutable/chunks/{TB9r2XJy.js → CT8vPg_p.js} +2 -2
  125. package/web/app/immutable/chunks/{hkJYqn41.js → CTgYTdXw.js} +1 -1
  126. package/web/app/immutable/chunks/{o0-ObNWE.js → CU15H7o_.js} +1 -1
  127. package/web/app/immutable/chunks/{C3dytrTL.js → CUZpLDKB.js} +1 -1
  128. package/web/app/immutable/chunks/{2q3SGbtI.js → CUgl7USU.js} +1 -1
  129. package/web/app/immutable/chunks/{DMrzeQEi.js → CV17KbhT.js} +1 -1
  130. package/web/app/immutable/chunks/{BbhtQrkZ.js → CVtLV3_x.js} +1 -1
  131. package/web/app/immutable/chunks/{etz9IKpr.js → CWXVdpgZ.js} +1 -1
  132. package/web/app/immutable/chunks/{BZYS48ON.js → CaX8Mme7.js} +1 -1
  133. package/web/app/immutable/chunks/{BNJ3edFz.js → CbB6SI0i.js} +1 -1
  134. package/web/app/immutable/chunks/{B1bJpz3G.js → Cd-qmx8U.js} +1 -1
  135. package/web/app/immutable/chunks/{zGyI6qOq.js → CdTSfppl.js} +1 -1
  136. package/web/app/immutable/chunks/{B6U9KgKY.js → CedswVQA.js} +1 -1
  137. package/web/app/immutable/chunks/{B6dUCFoz.js → CeoBhFo7.js} +1 -1
  138. package/web/app/immutable/chunks/{BJ_X8eP6.js → CfDqTHT1.js} +1 -1
  139. package/web/app/immutable/chunks/{CwEjDuJ3.js → Cgz4dZpP.js} +1 -1
  140. package/web/app/immutable/chunks/{BGniv2IE.js → ChYLETZB.js} +1 -1
  141. package/web/app/immutable/chunks/{vj8NdGWd.js → Chbrtg19.js} +1 -1
  142. package/web/app/immutable/chunks/{D54MIPdF.js → Ci6PI5sn.js} +1 -1
  143. package/web/app/immutable/chunks/{TBtn8giw.js → CiHhUIjb.js} +1 -1
  144. package/web/app/immutable/chunks/{B9vHutcJ.js → CiKoEJ2m.js} +1 -1
  145. package/web/app/immutable/chunks/{D8rVwrWL.js → CiRkFhK8.js} +1 -1
  146. package/web/app/immutable/chunks/{D4ytz2EC.js → CjpWOZGa.js} +1 -1
  147. package/web/app/immutable/chunks/{CfQcMKZg.js → CktgkomQ.js} +1 -1
  148. package/web/app/immutable/chunks/{D99jSct3.js → ClaP_sir.js} +1 -1
  149. package/web/app/immutable/chunks/{KZwZoyIt.js → Cn-Afla1.js} +1 -1
  150. package/web/app/immutable/chunks/{C3L0F6Xc.js → Cn4-Fvkn.js} +1 -1
  151. package/web/app/immutable/chunks/{z3SZgGAK.js → CnDgS0vt.js} +1 -1
  152. package/web/app/immutable/chunks/{B1CKzIA2.js → CnFZbWXv.js} +1 -1
  153. package/web/app/immutable/chunks/{GgbLp4i9.js → Cnkux63v.js} +1 -1
  154. package/web/app/immutable/chunks/{DrgHk1UN.js → CoSEZL3s.js} +1 -1
  155. package/web/app/immutable/chunks/{BB6LoQke.js → Cp-4w4r1.js} +1 -1
  156. package/web/app/immutable/chunks/{hk_M7mFx.js → CpwS8V1F.js} +1 -1
  157. package/web/app/immutable/chunks/{FXkLEPTk.js → Cq8_4net.js} +1 -1
  158. package/web/app/immutable/chunks/{C9_ZEBkB.js → Cr5mKkdD.js} +1 -1
  159. package/web/app/immutable/chunks/{VTkMkEPR.js → Cr9C4VDu.js} +1 -1
  160. package/web/app/immutable/chunks/{D7QZQ0zf.js → Crey45Oa.js} +1 -1
  161. package/web/app/immutable/chunks/{DJ9ILql1.js → Csqi0oV3.js} +1 -1
  162. package/web/app/immutable/chunks/CtfEuoOH.js +1 -0
  163. package/web/app/immutable/chunks/{ClxyT-Se.js → CwCvyVGi.js} +1 -1
  164. package/web/app/immutable/chunks/{iOLvSy8g.js → CwOdvmTo.js} +3 -3
  165. package/web/app/immutable/chunks/{BIU3Z0JX.js → CwqJ7uz4.js} +1 -1
  166. package/web/app/immutable/chunks/{Ctp-YfoS.js → CwqyVbqi.js} +3 -3
  167. package/web/app/immutable/chunks/{B_vpadVO.js → Cxc8q3rR.js} +1 -1
  168. package/web/app/immutable/chunks/{vpQRVk8F.js → Cxmepjfl.js} +1 -1
  169. package/web/app/immutable/chunks/{CzJm3Kxa.js → CyinuwPx.js} +1 -1
  170. package/web/app/immutable/chunks/{C4fj9uDh.js → CyvzL5p8.js} +3 -3
  171. package/web/app/immutable/chunks/{X0RLj3lE.js → CzxEKNiF.js} +1 -1
  172. package/web/app/immutable/chunks/{GnUYJfg_.js → D3JNbQ4D.js} +1 -1
  173. package/web/app/immutable/chunks/{TsuJPtsq.js → D3pRyooW.js} +1 -1
  174. package/web/app/immutable/chunks/{Dfp6ssYD.js → D3tqOSzT.js} +1 -1
  175. package/web/app/immutable/chunks/{Ch_2itxw.js → D49mWFig.js} +1 -1
  176. package/web/app/immutable/chunks/{CMdo0m6e.js → D59tCG3q.js} +2 -2
  177. package/web/app/immutable/chunks/{D8EcsS7V.js → D5Jk5CWk.js} +2 -2
  178. package/web/app/immutable/chunks/{BNu1GhJn.js → D5al-p9o.js} +1 -1
  179. package/web/app/immutable/chunks/{BzWT_wQw.js → D5tDAzIo.js} +1 -1
  180. package/web/app/immutable/chunks/{Jg5r77fy.js → D7QFmXLb.js} +1 -1
  181. package/web/app/immutable/chunks/{nxtepGjE.js → D9R5fzn8.js} +1 -1
  182. package/web/app/immutable/chunks/{pTmKTjdu.js → D9T_0Eev.js} +3 -3
  183. package/web/app/immutable/chunks/{DhSY0ZEq.js → DBYe3Dcp.js} +2 -2
  184. package/web/app/immutable/chunks/{Cio-rWcY.js → DDvFH8QS.js} +1 -1
  185. package/web/app/immutable/chunks/{BRaBCoIn.js → DE8II0cx.js} +1 -1
  186. package/web/app/immutable/chunks/{BVXKWrt4.js → DEr2A_-h.js} +2 -2
  187. package/web/app/immutable/chunks/{BT9lzXEu.js → DF15jnSX.js} +1 -1
  188. package/web/app/immutable/chunks/{CXEn_RGs.js → DF54qNJU.js} +1 -1
  189. package/web/app/immutable/chunks/{CIbfGsF-.js → DFKhOU69.js} +1 -1
  190. package/web/app/immutable/chunks/{BpMXdC4H.js → DG3-me8H.js} +1 -1
  191. package/web/app/immutable/chunks/{nIshZjK_.js → DGU9U1O6.js} +1 -1
  192. package/web/app/immutable/chunks/{Ll0WtNFW.js → DHkcvVzr.js} +1 -1
  193. package/web/app/immutable/chunks/{da_tvSiq.js → DHvVAxAW.js} +1 -1
  194. package/web/app/immutable/chunks/{tCg_s90g.js → DIIj7EWA.js} +1 -1
  195. package/web/app/immutable/chunks/{BI0SpAnv.js → DISm8kek.js} +1 -1
  196. package/web/app/immutable/chunks/{DZOkhMcO.js → DJSvqrCI.js} +1 -1
  197. package/web/app/immutable/chunks/{D0qNo7Oy.js → DJcR4XQR.js} +1 -1
  198. package/web/app/immutable/chunks/{BYHw69-J.js → DJqiMUht.js} +1 -1
  199. package/web/app/immutable/chunks/{i5FUlYpy.js → DLqZuVvj.js} +1 -1
  200. package/web/app/immutable/chunks/{KqqODIKw.js → DLt9OoMP.js} +1 -1
  201. package/web/app/immutable/chunks/{Cu5e4npY.js → DMEIbJII.js} +1 -1
  202. package/web/app/immutable/chunks/{BgXuXJpo.js → DMudvlKI.js} +4 -4
  203. package/web/app/immutable/chunks/{D1BvOU2l.js → DOhHP999.js} +1 -1
  204. package/web/app/immutable/chunks/{BniyCzQ9.js → DPk2fLxi.js} +1 -1
  205. package/web/app/immutable/chunks/{Dj-KLToz.js → DQNtbVVY.js} +3 -3
  206. package/web/app/immutable/chunks/{BnV9CBUH.js → DQpGArF7.js} +1 -1
  207. package/web/app/immutable/chunks/{OyqO3fO-.js → DR_b4dt8.js} +1 -1
  208. package/web/app/immutable/chunks/{R-UFG3MB.js → DRuLniWc.js} +1 -1
  209. package/web/app/immutable/chunks/{z5FcOXD5.js → DSZbBNDD.js} +1 -1
  210. package/web/app/immutable/chunks/{DFFA_QTd.js → DSs6r6NG.js} +1 -1
  211. package/web/app/immutable/chunks/{DtzJzV-4.js → DUTvR2si.js} +1 -1
  212. package/web/app/immutable/chunks/{D2YDfFKv.js → DW8fwVBf.js} +1 -1
  213. package/web/app/immutable/chunks/{CpTvA0xC.js → DWBUvNGh.js} +1 -1
  214. package/web/app/immutable/chunks/{MakwazGY.js → DWRtOXBU.js} +1 -1
  215. package/web/app/immutable/chunks/{u4iPyMwH.js → DXCHCOFX.js} +1 -1
  216. package/web/app/immutable/chunks/{Bq7odTLd.js → DXXFBdjF.js} +1 -1
  217. package/web/app/immutable/chunks/{Cn9MHQyc.js → D__sU8Ug.js} +1 -1
  218. package/web/app/immutable/chunks/{CvLVVi8w.js → DcPZfWKB.js} +1 -1
  219. package/web/app/immutable/chunks/{WoMkq5ac.js → DcU8bi_n.js} +2 -2
  220. package/web/app/immutable/chunks/{DaWmj23r.js → DcraaizU.js} +1 -1
  221. package/web/app/immutable/chunks/{C6RhewOE.js → Dd_KPYBw.js} +1 -1
  222. package/web/app/immutable/chunks/{BAAIhuts.js → DeFlL2nh.js} +1 -1
  223. package/web/app/immutable/chunks/{CWsj4Hb7.js → Dgo57zmq.js} +1 -1
  224. package/web/app/immutable/chunks/{C8tk9ZQ3.js → Dh-DCh2Y.js} +1 -1
  225. package/web/app/immutable/chunks/{CvorDgLi.js → Dh1j4V0b.js} +1 -1
  226. package/web/app/immutable/chunks/{29xygHrF.js → DhTLwmro.js} +1 -1
  227. package/web/app/immutable/chunks/{CkkpCaXs.js → Di3gErxh.js} +1 -1
  228. package/web/app/immutable/chunks/{WdSh5fl1.js → DidHgSQp.js} +2 -2
  229. package/web/app/immutable/chunks/{DogIXhAJ.js → Dk7Kxi97.js} +1 -1
  230. package/web/app/immutable/chunks/{BESb5QC3.js → Dl1AOLZu.js} +1 -1
  231. package/web/app/immutable/chunks/{CZr8f1ch.js → DlljGo_I.js} +1 -1
  232. package/web/app/immutable/chunks/{BOwgyiCF.js → DmQ5G_6J.js} +1 -1
  233. package/web/app/immutable/chunks/{7pl09QeT.js → DnzDw_9l.js} +1 -1
  234. package/web/app/immutable/chunks/{ByyFoG6W.js → DoB-G8kB.js} +1 -1
  235. package/web/app/immutable/chunks/{Dqi2LMpO.js → DoJ49Zrl.js} +1 -1
  236. package/web/app/immutable/chunks/{CFs3R4lt.js → DqtLBCnq.js} +1 -1
  237. package/web/app/immutable/chunks/{DpIgdPs7.js → Dr6-g-BO.js} +1 -1
  238. package/web/app/immutable/chunks/{Crz8kvLc.js → Drn9m8Tp.js} +1 -1
  239. package/web/app/immutable/chunks/{BWmW9W02.js → Dt_7lHy8.js} +1 -1
  240. package/web/app/immutable/chunks/{kjO__HeE.js → DuZtgB5V.js} +1 -1
  241. package/web/app/immutable/chunks/{xvadpoNC.js → DupTZXsI.js} +1 -1
  242. package/web/app/immutable/chunks/{Tt-VDGAY.js → DvUsJK3H.js} +1 -1
  243. package/web/app/immutable/chunks/{CbTbQhqy.js → DxmPtFKv.js} +1 -1
  244. package/web/app/immutable/chunks/{BFgvMDua.js → DynUeYUu.js} +1 -1
  245. package/web/app/immutable/chunks/{BjE6fvlI.js → DyreqWqr.js} +1 -1
  246. package/web/app/immutable/chunks/{vIaOEmEw.js → Em5CdgqH.js} +4 -4
  247. package/web/app/immutable/chunks/{DQ75EkSY.js → FM3MDwzB.js} +1 -1
  248. package/web/app/immutable/chunks/{B8lliwzm.js → GwtGeFMJ.js} +1 -1
  249. package/web/app/immutable/chunks/{DWH71rGR.js → HiIoMspb.js} +1 -1
  250. package/web/app/immutable/chunks/{Drl447ub.js → IxxdIKNN.js} +1 -1
  251. package/web/app/immutable/chunks/{DX2vfFPI.js → JiW1DfLK.js} +1 -1
  252. package/web/app/immutable/chunks/{DQw0Iiac.js → JvFe2B29.js} +1 -1
  253. package/web/app/immutable/chunks/{DmrchYzR.js → K0WiFC8Y.js} +1 -1
  254. package/web/app/immutable/chunks/{C3EKiijc.js → KWtYfwVq.js} +1 -1
  255. package/web/app/immutable/chunks/{CYxt6gzD.js → KaOLys0u.js} +1 -1
  256. package/web/app/immutable/chunks/{1rpeT4f8.js → OsJD3pkm.js} +1 -1
  257. package/web/app/immutable/chunks/{CfYmMj5F.js → P7zPRuFC.js} +1 -1
  258. package/web/app/immutable/chunks/{CqKjG3GQ.js → Q1bO23Hj.js} +1 -1
  259. package/web/app/immutable/chunks/{BRc67QBD.js → QeZhJHLb.js} +1 -1
  260. package/web/app/immutable/chunks/{BGrimfDs.js → QzxpbvSo.js} +1 -1
  261. package/web/app/immutable/chunks/{qhd9g-fv.js → RV6uszBL.js} +1 -1
  262. package/web/app/immutable/chunks/{LXflBOtX.js → S3jMTv3a.js} +1 -1
  263. package/web/app/immutable/chunks/{Bh9phZlQ.js → SdVpHK7d.js} +1 -1
  264. package/web/app/immutable/chunks/{l0vFyEGM.js → T9rMC0YB.js} +1 -1
  265. package/web/app/immutable/chunks/{D4d1iyeR.js → TPru2I57.js} +1 -1
  266. package/web/app/immutable/chunks/{Rzyk45bZ.js → WYNXUtt9.js} +1 -1
  267. package/web/app/immutable/chunks/{Chj-azz7.js → Xgzr3BTD.js} +1 -1
  268. package/web/app/immutable/chunks/{1B7vLvp_.js → YQwkPi_0.js} +1 -1
  269. package/web/app/immutable/chunks/{Cm0Qloca.js → ZX798KkU.js} +1 -1
  270. package/web/app/immutable/chunks/{Dd-LQrG1.js → aWBSU8IQ.js} +1 -1
  271. package/web/app/immutable/chunks/{CgGsxeG7.js → axwUS21u.js} +1 -1
  272. package/web/app/immutable/chunks/{F__rjLBg.js → bJK6npyT.js} +1 -1
  273. package/web/app/immutable/chunks/{iXPhOXJa.js → fCtMtGYt.js} +1 -1
  274. package/web/app/immutable/chunks/{C-HR_nje.js → g5QqP-QE.js} +1 -1
  275. package/web/app/immutable/chunks/{BTaBiqZj.js → gQ8VFuWN.js} +2 -2
  276. package/web/app/immutable/chunks/{C2UL5Ler.js → iQDlfKDR.js} +1 -1
  277. package/web/app/immutable/chunks/jlu1ZSD8.js +1 -0
  278. package/web/app/immutable/chunks/{CnN8HXjd.js → jyQWudgn.js} +1 -1
  279. package/web/app/immutable/chunks/{BWfc0sSK.js → k48f0Jn8.js} +1 -1
  280. package/web/app/immutable/chunks/{BiYZcl7D.js → kkKMJ9w9.js} +1 -1
  281. package/web/app/immutable/chunks/{BHy9cRzo.js → l7sDKa65.js} +1 -1
  282. package/web/app/immutable/chunks/{D7AN7xLp.js → mFWmuyR-.js} +1 -1
  283. package/web/app/immutable/chunks/{CdGOAvU7.js → n0_jgWL7.js} +1 -1
  284. package/web/app/immutable/chunks/{IXIWcEcs.js → pXrAh3i2.js} +1 -1
  285. package/web/app/immutable/chunks/{DWF5uerC.js → qWgJ-CUF.js} +2 -2
  286. package/web/app/immutable/chunks/{BsY6roFy.js → rwibDzZr.js} +1 -1
  287. package/web/app/immutable/chunks/{BtmBRuf6.js → sFief-xo.js} +1 -1
  288. package/web/app/immutable/chunks/{D6txwX4Y.js → uyQciu7h.js} +4 -4
  289. package/web/app/immutable/chunks/{Bw9XtMey.js → z0xDttNV.js} +3 -3
  290. package/web/app/immutable/chunks/{CZ9ViN3z.js → z4O7yNZ6.js} +1 -1
  291. package/web/app/immutable/chunks/zXLHCuiE.js +1 -0
  292. package/web/app/immutable/entry/{app.qraxYAYk.js → app.B0HiWR5T.js} +3 -3
  293. package/web/app/immutable/entry/start.BFcXwo9Y.js +1 -0
  294. package/web/app/immutable/nodes/{0.DJcM2RkQ.js → 0.5oa9JC3V.js} +1 -1
  295. package/web/app/immutable/nodes/{1.Jq1-N2Pd.js → 1.dLY473QL.js} +1 -1
  296. package/web/app/immutable/nodes/{10.C_zzc0gt.js → 10.Dg3iEVmH.js} +6 -6
  297. package/web/app/immutable/nodes/{11.6gj6bfPq.js → 11.PFTrUEsb.js} +1 -1
  298. package/web/app/immutable/nodes/{12.Dwdqbt9T.js → 12.DUMat2GN.js} +1 -1
  299. package/web/app/immutable/nodes/{13.jK1i4wo4.js → 13.BEiznOPk.js} +1 -1
  300. package/web/app/immutable/nodes/{14.DdHtnE9x.js → 14.DFolVj6c.js} +3 -3
  301. package/web/app/immutable/nodes/{15.DzaMQCp_.js → 15.CGEsAjgd.js} +1 -1
  302. package/web/app/immutable/nodes/{16.DFPLVaTv.js → 16.cptOJ-f9.js} +1 -1
  303. package/web/app/immutable/nodes/{17.Dylz7DBe.js → 17.BVn1LtfR.js} +1 -1
  304. package/web/app/immutable/nodes/{18.CxblUMg0.js → 18.BLC8YWHJ.js} +1 -1
  305. package/web/app/immutable/nodes/{19.cFDk8lfW.js → 19.CqJycQsd.js} +2 -2
  306. package/web/app/immutable/nodes/{2.ByMlaGl6.js → 2.BaR1WF3o.js} +4 -4
  307. package/web/app/immutable/nodes/{20.CXw8Twm7.js → 20.g9As4rvG.js} +1 -1
  308. package/web/app/immutable/nodes/{3.9JGSdcGo.js → 3.DwF_25Xt.js} +1 -1
  309. package/web/app/immutable/nodes/{4.CBjeaWO7.js → 4.ttOSy2Tq.js} +1 -1
  310. package/web/app/immutable/nodes/{5.rzCmecJm.js → 5.BVpoghsD.js} +1 -1
  311. package/web/app/immutable/nodes/{6.ltNDZwKc.js → 6.D6pOrTxH.js} +1 -1
  312. package/web/app/immutable/nodes/{7.KOkYCHHg.js → 7.BO56ByN2.js} +1 -1
  313. package/web/app/immutable/nodes/{8.DAi8MaAi.js → 8.CPtVgnSI.js} +1 -1
  314. package/web/app/immutable/nodes/{9.BzVFDUkR.js → 9.cl9L6J-I.js} +5 -5
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +45 -45
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/C8rJ090F.js +0 -1
  319. package/web/app/immutable/chunks/CL3wj1V-.js +0 -1
  320. package/web/app/immutable/chunks/CLAmm_T1.js +0 -1
  321. package/web/app/immutable/chunks/CRSiOiSR.js +0 -1
  322. package/web/app/immutable/chunks/DFh0CfhB.js +0 -1
  323. package/web/app/immutable/chunks/DmapvbAr.js +0 -3
  324. package/web/app/immutable/chunks/KnkAG0HD.js +0 -1
  325. package/web/app/immutable/chunks/fAzcgPHK.js +0 -411
  326. package/web/app/immutable/entry/start.BWAelo_H.js +0 -1
@@ -1,4 +1,4 @@
1
- var It=Object.defineProperty;var gt=s=>{throw TypeError(s)};var Ft=(s,e,o)=>e in s?It(s,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[e]=o;var se=(s,e,o)=>Ft(s,typeof e!="symbol"?e+"":e,o),ht=(s,e,o)=>e.has(s)||gt("Cannot "+o);var M=(s,e,o)=>(ht(s,e,"read from private field"),o?o.call(s):e.get(s)),re=(s,e,o)=>e.has(s)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var Ve=(s,e,o)=>(ht(s,e,"access private method"),o);import{t as le,bo as t,bw as ue,b as ce,bp as ke,br as tt,bm as Ne}from"./CLAmm_T1.js";import{c9 as l,aD as n,bH as ae,bo as rt,bs as ge,a7 as j,ay as B,W as _,bn as he,aA as r,a5 as X,bf as We,bA as Y,aB as W,bS as de,bV as vt,br as Lt,bj as Dt,c5 as Rt,ca as Ht,b_ as Q,be as Xe,b$ as Te,bO as oe,bl as Ue,ai as Et,bk as Mt,aj as At}from"./3SdAC2_C.js";import{c as Ye}from"./BwH4Bvte.js";import{b as Ge,e as J,c as pe,s as T,f as ye,p as Bt}from"./CcJmuwXr.js";import{p as Ot,o as jt,e as Nt}from"./B1CKzIA2.js";import{S as Ut}from"./CfNIzRu8.js";import{i as O}from"./BFgvMDua.js";import{t as Z}from"./BwNrQXlF.js";import{an as at,ay as bt,az as we,av as K,aQ as nt,h as Wt,l as Gt,a6 as Qt,aq as ft,aE as Vt,ar as Xt,aD as Yt,at as Jt,aS as mt,a_ as pt,f as yt}from"./nxtepGjE.js";import"./DU3vNstz.js";import{i as Kt}from"./BjLb7AHW.js";import{H as Zt}from"./DCs992HX.js";import{z as $t}from"./DPttSllj.js";import"./TB9r2XJy.js";import"./CEE0831H.js";import{d as er,n as tr,m as rr,a as ar}from"./DaWmj23r.js";import{b as nr}from"./Dn334wJv.js";import{t as ir}from"./DAsc1V4f.js";import"./C4jSaPCg.js";import{e as sr}from"./Drl447ub.js";const dr=bt({component:"label",parts:["root"]});var Ie;const st=class st{constructor(e){se(this,"opts");se(this,"attachment");re(this,Ie,l(()=>({id:this.opts.id.current,[dr.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=at(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new st(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return n(M(this,Ie))}set props(e){ae(M(this,Ie),e)}};Ie=new WeakMap;let Je=st;var or=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),lr=W("<label><!></label>");function xt(s,e){const o=rt();if(new.target)return le({component:xt,...s});ge(e,!0);let c=t(e,"children",7),h=t(e,"child",7),y=t(e,"id",23,()=>we(o)),x=t(e,"ref",15,null),v=t(e,"for",7),C=ke(e,or);const z=Je.create({id:K(()=>y()),ref:K(()=>x(),d=>x(d))}),w=l(()=>nt(C,z.props,{for:v()}));var b={get children(){return c()},set children(d){c(d),r()},get child(){return h()},set child(d){h(d),r()},get id(){return y()},set id(d=we(o)){y(d),r()},get ref(){return x()},set ref(d=null){x(d),r()},get for(){return v()},set for(d){v(d),r()},$set:ue,$on:(d,g)=>ce(e,d,g)},f=j(),k=B(f);{var q=d=>{var g=j(),P=B(g);Z(P,h,()=>({props:n(w)})),_(d,g)},m=d=>{var g=lr();Ge(g,()=>({...n(w),for:v()}));var P=X(g);Z(P,()=>c()??We),Y(g),_(d,g)};O(k,d=>{h()?d(q):d(m,-1)})}return _(s,f),he(b)}const _t=bt({component:"switch",parts:["root","thumb"]}),it=new Wt("Switch.Root");var Fe,Ze,Le,De,Re;const dt=class dt{constructor(e){re(this,Fe);se(this,"opts");se(this,"attachment");re(this,Le,l(()=>({"data-disabled":ft(this.opts.disabled.current),"data-state":Vt(this.opts.checked.current),"data-required":ft(this.opts.required.current)})));re(this,De,l(()=>({checked:this.opts.checked.current})));re(this,Re,l(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Jt(this.opts.disabled.current),"aria-checked":Yt(this.opts.checked.current,!1),"aria-required":Xt(this.opts.required.current),[_t.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.attachment=at(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return it.set(new dt(e))}onkeydown(e){!(e.key===Gt||e.key===Qt)||this.opts.disabled.current||(e.preventDefault(),Ve(this,Fe,Ze).call(this))}onclick(e){this.opts.disabled.current||Ve(this,Fe,Ze).call(this)}get sharedProps(){return n(M(this,Le))}set sharedProps(e){ae(M(this,Le),e)}get snippetProps(){return n(M(this,De))}set snippetProps(e){ae(M(this,De),e)}get props(){return n(M(this,Re))}set props(e){ae(M(this,Re),e)}};Fe=new WeakSet,Ze=function(){this.opts.checked.current=!this.opts.checked.current},Le=new WeakMap,De=new WeakMap,Re=new WeakMap;let Ke=dt;var He,Ee;const ot=class ot{constructor(e){se(this,"root");re(this,He,l(()=>this.root.opts.name.current!==void 0));re(this,Ee,l(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=e}static create(){return new ot(it.get())}get shouldRender(){return n(M(this,He))}set shouldRender(e){ae(M(this,He),e)}get props(){return n(M(this,Ee))}set props(e){ae(M(this,Ee),e)}};He=new WeakMap,Ee=new WeakMap;let $e=ot;var Me,Ae;const lt=class lt{constructor(e,o){se(this,"opts");se(this,"root");se(this,"attachment");re(this,Me,l(()=>({checked:this.root.opts.checked.current})));re(this,Ae,l(()=>({...this.root.sharedProps,id:this.opts.id.current,[_t.thumb]:"",...this.attachment})));this.opts=e,this.root=o,this.attachment=at(e.ref)}static create(e){return new lt(e,it.get())}get snippetProps(){return n(M(this,Me))}set snippetProps(e){ae(M(this,Me),e)}get props(){return n(M(this,Ae))}set props(e){ae(M(this,Ae),e)}};Me=new WeakMap,Ae=new WeakMap;let et=lt;function wt(s,e){if(new.target)return le({component:wt,...s});ge(e,!1);const o=$e.create();var c={$set:ue,$on:(v,C)=>ce(e,v,C)};Kt();var h=j(),y=B(h);{var x=v=>{Zt(v,tt(()=>o.props))};O(y,v=>{o.shouldRender&&v(x)})}return _(s,h),he(c)}var ur=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),cr=W("<button><!></button>"),gr=W("<!> <!>",1);function kt(s,e){const o=rt();if(new.target)return le({component:kt,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=t(e,"disabled",7,!1),C=t(e,"required",7,!1),z=t(e,"checked",15,!1),w=t(e,"value",7,"on"),b=t(e,"name",7,void 0),f=t(e,"type",7,"button"),k=t(e,"onCheckedChange",7,mt),q=ke(e,ur);const m=Ke.create({checked:K(()=>z(),u=>{z(u),k()?.(u)}),disabled:K(()=>v()??!1),required:K(()=>C()),value:K(()=>w()),name:K(()=>b()),id:K(()=>x()),ref:K(()=>y(),u=>y(u))}),d=l(()=>nt(q,m.props,{type:f()}));var g={get child(){return c()},set child(u){c(u),r()},get children(){return h()},set children(u){h(u),r()},get ref(){return y()},set ref(u=null){y(u),r()},get id(){return x()},set id(u=we(o)){x(u),r()},get disabled(){return v()},set disabled(u=!1){v(u),r()},get required(){return C()},set required(u=!1){C(u),r()},get checked(){return z()},set checked(u=!1){z(u),r()},get value(){return w()},set value(u="on"){w(u),r()},get name(){return b()},set name(u=void 0){b(u),r()},get type(){return f()},set type(u="button"){f(u),r()},get onCheckedChange(){return k()},set onCheckedChange(u=mt){k(u),r()},$set:ue,$on:(u,R)=>ce(e,u,R)},P=gr(),D=B(P);{var E=u=>{var R=j(),V=B(R);{let $=l(()=>({props:n(d),...m.snippetProps}));Z(V,c,()=>n($))}_(u,R)},A=u=>{var R=cr();Ge(R,()=>({...n(d)}));var V=X(R);Z(V,()=>h()??We,()=>m.snippetProps),Y(R),_(u,R)};O(D,u=>{c()?u(E):u(A,-1)})}var G=de(D,2);return wt(G,{}),_(s,P),he(g)}var hr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),fr=W("<span><!></span>");function Ct(s,e){const o=rt();if(new.target)return le({component:Ct,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=ke(e,hr);const C=et.create({id:K(()=>x()),ref:K(()=>y(),m=>y(m))}),z=l(()=>nt(v,C.props));var w={get child(){return c()},set child(m){c(m),r()},get children(){return h()},set children(m){h(m),r()},get ref(){return y()},set ref(m=null){y(m),r()},get id(){return x()},set id(m=we(o)){x(m),r()},$set:ue,$on:(m,d)=>ce(e,m,d)},b=j(),f=B(b);{var k=m=>{var d=j(),g=B(d);{let P=l(()=>({props:n(z),...C.snippetProps}));Z(g,c,()=>n(P))}_(m,d)},q=m=>{var d=fr();Ge(d,()=>({...n(z)}));var g=X(d);Z(g,()=>h()??We,()=>C.snippetProps),Y(d),_(m,d)};O(f,m=>{c()?m(k):m(q,-1)})}return _(s,b),he(w)}var mr=new Set(["$$slots","$$events","$$legacy","ref","size","invalid","class"]);function Pt(s,e){if(new.target)return le({component:Pt,...s});ge(e,!0);const o=pt();let c=t(e,"ref",15,null),h=t(e,"size",7),y=t(e,"invalid",7,!1),x=t(e,"class",7),v=ke(e,mr);const C=l(()=>h()??o);var z={get ref(){return c()},set ref(f=null){c(f),r()},get size(){return h()},set size(f){h(f),r()},get invalid(){return y()},set invalid(f=!1){y(f),r()},get class(){return x()},set class(f){x(f),r()},$set:ue,$on:(f,k)=>ce(e,f,k)},w=j(),b=B(w);{let f=l(()=>y()||void 0),k=l(()=>J("type-caption flex min-w-0 select-none items-center font-medium tracking-normal text-muted-foreground transition-[color] duration-(--spring-fast) group-hover:text-foreground group-focus-within:text-foreground data-[state=hover]:text-foreground data-[state=focus]:text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-60 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-60 group-data-[invalid=true]:text-danger data-[invalid=true]:text-danger motion-reduce:transition-none",n(C)==="compact"?"gap-1.5":"gap-2",x()));Ye(b,()=>xt,(q,m)=>{m(q,tt({"data-slot":"label",get"data-size"(){return n(C)},get"data-invalid"(){return n(f)},get class(){return n(k)}},()=>v,{get ref(){return c()},set ref(d){c(d)}}))})}return _(s,w),he(z)}function vr(){let s=vt(Lt(Ot()));const e=jt(o=>{ae(s,o,!0)});return{get current(){return n(s)},cleanup:e}}function br(s){return new Ut(s,"fast")}function pr(s,e,o=!1){return s.set(e,{instant:o}),s}var yr=new Set(["$$slots","$$events","$$legacy","ref","id","checked","disabled","required","invalid","class","onCheckedChange","size","name","value","ariaLabel","ariaLabelledby","ariaDescribedby"]);function xr(s,e){if(new.target)return le({component:xr,...s});ge(e,!0);let o=t(e,"ref",15,null),c=t(e,"id",7,""),h=t(e,"checked",15,!1),y=t(e,"disabled",7,!1),x=t(e,"required",7,!1),v=t(e,"invalid",7,!1),C=t(e,"class",7,""),z=t(e,"onCheckedChange",7),w=t(e,"size",7,"md"),b=t(e,"name",7),f=t(e,"value",7,"on"),k=t(e,"ariaLabel",7),q=t(e,"ariaLabelledby",7),m=t(e,"ariaDescribedby",7),d=ke(e,yr);const g={xs:{width:24,height:14,padding:2,thumb:10},sm:{width:28,height:16,padding:2,thumb:12},compact:{width:28,height:16,padding:2,thumb:12},md:{width:34,height:20,padding:2,thumb:16},default:{width:34,height:20,padding:2,thumb:16},lg:{width:38,height:22,padding:2,thumb:18}};let P=l(()=>g[w()].width),D=l(()=>g[w()].height),E=l(()=>g[w()].padding),A=l(()=>g[w()].thumb),G=l(()=>n(A));const u=vr();Dt(u.cleanup);const R=br(Rt(()=>n(E))),V=l(()=>h()?n(P)-n(A)-n(E):n(E));Ht(()=>{pr(R,n(V),u.current)});var $={get ref(){return o()},set ref(p=null){o(p),r()},get id(){return c()},set id(p=""){c(p),r()},get checked(){return h()},set checked(p=!1){h(p),r()},get disabled(){return y()},set disabled(p=!1){y(p),r()},get required(){return x()},set required(p=!1){x(p),r()},get invalid(){return v()},set invalid(p=!1){v(p),r()},get class(){return C()},set class(p=""){C(p),r()},get onCheckedChange(){return z()},set onCheckedChange(p){z(p),r()},get size(){return w()},set size(p="md"){w(p),r()},get name(){return b()},set name(p){b(p),r()},get value(){return f()},set value(p="on"){f(p),r()},get ariaLabel(){return k()},set ariaLabel(p){k(p),r()},get ariaLabelledby(){return q()},set ariaLabelledby(p){q(p),r()},get ariaDescribedby(){return m()},set ariaDescribedby(p){m(p),r()},$set:ue,$on:(p,ve)=>ce(e,p,ve)},ne=j(),me=B(ne);{let p=l(()=>v()||void 0),ve=l(()=>J("border-border peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-muted shadow-(--elevation-raised) transition-[background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-y-2 after:-inset-x-1 after:content-[''] motion-reduce:transition-none","hover:bg-hover active:bg-active","disabled:cursor-not-allowed disabled:opacity-60","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary data-[state=checked]:active:bg-primary",v()&&"border-danger ring-1 ring-danger/25",C())),H=l(()=>`
1
+ var It=Object.defineProperty;var gt=s=>{throw TypeError(s)};var Ft=(s,e,o)=>e in s?It(s,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[e]=o;var se=(s,e,o)=>Ft(s,typeof e!="symbol"?e+"":e,o),ht=(s,e,o)=>e.has(s)||gt("Cannot "+o);var M=(s,e,o)=>(ht(s,e,"read from private field"),o?o.call(s):e.get(s)),re=(s,e,o)=>e.has(s)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var Ve=(s,e,o)=>(ht(s,e,"access private method"),o);import{t as le,bo as t,bw as ue,b as ce,bp as ke,br as tt,bm as Ne}from"./CtfEuoOH.js";import{c9 as l,aD as n,bH as ae,bo as rt,bs as ge,a7 as j,ay as B,W as _,bn as he,aA as r,a5 as X,bf as We,bA as Y,aB as W,bS as de,bV as vt,br as Lt,bj as Dt,c5 as Rt,ca as Ht,b_ as Q,be as Xe,b$ as Te,bO as oe,bl as Ue,ai as Et,bk as Mt,aj as At}from"./3SdAC2_C.js";import{c as Ye}from"./BZ27qIg1.js";import{b as Ge,e as J,c as pe,s as T,f as ye,p as Bt}from"./B26ZHg3s.js";import{p as Ot,o as jt,e as Nt}from"./CnFZbWXv.js";import{S as Ut}from"./Bx1P9uW7.js";import{i as O}from"./DynUeYUu.js";import{t as Z}from"./CGmYraIa.js";import{an as at,ay as bt,az as we,av as K,aQ as nt,h as Wt,l as Gt,a6 as Qt,aq as ft,aE as Vt,ar as Xt,aD as Yt,at as Jt,aS as mt,a_ as pt,f as yt}from"./D9R5fzn8.js";import"./DU3vNstz.js";import{i as Kt}from"./BjLb7AHW.js";import{H as Zt}from"./BUSErGiB.js";import{z as $t}from"./COofQgO0.js";import"./CT8vPg_p.js";import"./Bz80vYvX.js";import{d as er,n as tr,m as rr,a as ar}from"./DcraaizU.js";import{b as nr}from"./Dn334wJv.js";import{t as ir}from"./DAsc1V4f.js";import"./B3T1oiJl.js";import{e as sr}from"./IxxdIKNN.js";const dr=bt({component:"label",parts:["root"]});var Ie;const st=class st{constructor(e){se(this,"opts");se(this,"attachment");re(this,Ie,l(()=>({id:this.opts.id.current,[dr.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=at(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new st(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return n(M(this,Ie))}set props(e){ae(M(this,Ie),e)}};Ie=new WeakMap;let Je=st;var or=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),lr=W("<label><!></label>");function xt(s,e){const o=rt();if(new.target)return le({component:xt,...s});ge(e,!0);let c=t(e,"children",7),h=t(e,"child",7),y=t(e,"id",23,()=>we(o)),x=t(e,"ref",15,null),v=t(e,"for",7),C=ke(e,or);const z=Je.create({id:K(()=>y()),ref:K(()=>x(),d=>x(d))}),w=l(()=>nt(C,z.props,{for:v()}));var b={get children(){return c()},set children(d){c(d),r()},get child(){return h()},set child(d){h(d),r()},get id(){return y()},set id(d=we(o)){y(d),r()},get ref(){return x()},set ref(d=null){x(d),r()},get for(){return v()},set for(d){v(d),r()},$set:ue,$on:(d,g)=>ce(e,d,g)},f=j(),k=B(f);{var q=d=>{var g=j(),P=B(g);Z(P,h,()=>({props:n(w)})),_(d,g)},m=d=>{var g=lr();Ge(g,()=>({...n(w),for:v()}));var P=X(g);Z(P,()=>c()??We),Y(g),_(d,g)};O(k,d=>{h()?d(q):d(m,-1)})}return _(s,f),he(b)}const _t=bt({component:"switch",parts:["root","thumb"]}),it=new Wt("Switch.Root");var Fe,Ze,Le,De,Re;const dt=class dt{constructor(e){re(this,Fe);se(this,"opts");se(this,"attachment");re(this,Le,l(()=>({"data-disabled":ft(this.opts.disabled.current),"data-state":Vt(this.opts.checked.current),"data-required":ft(this.opts.required.current)})));re(this,De,l(()=>({checked:this.opts.checked.current})));re(this,Re,l(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Jt(this.opts.disabled.current),"aria-checked":Yt(this.opts.checked.current,!1),"aria-required":Xt(this.opts.required.current),[_t.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.attachment=at(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return it.set(new dt(e))}onkeydown(e){!(e.key===Gt||e.key===Qt)||this.opts.disabled.current||(e.preventDefault(),Ve(this,Fe,Ze).call(this))}onclick(e){this.opts.disabled.current||Ve(this,Fe,Ze).call(this)}get sharedProps(){return n(M(this,Le))}set sharedProps(e){ae(M(this,Le),e)}get snippetProps(){return n(M(this,De))}set snippetProps(e){ae(M(this,De),e)}get props(){return n(M(this,Re))}set props(e){ae(M(this,Re),e)}};Fe=new WeakSet,Ze=function(){this.opts.checked.current=!this.opts.checked.current},Le=new WeakMap,De=new WeakMap,Re=new WeakMap;let Ke=dt;var He,Ee;const ot=class ot{constructor(e){se(this,"root");re(this,He,l(()=>this.root.opts.name.current!==void 0));re(this,Ee,l(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=e}static create(){return new ot(it.get())}get shouldRender(){return n(M(this,He))}set shouldRender(e){ae(M(this,He),e)}get props(){return n(M(this,Ee))}set props(e){ae(M(this,Ee),e)}};He=new WeakMap,Ee=new WeakMap;let $e=ot;var Me,Ae;const lt=class lt{constructor(e,o){se(this,"opts");se(this,"root");se(this,"attachment");re(this,Me,l(()=>({checked:this.root.opts.checked.current})));re(this,Ae,l(()=>({...this.root.sharedProps,id:this.opts.id.current,[_t.thumb]:"",...this.attachment})));this.opts=e,this.root=o,this.attachment=at(e.ref)}static create(e){return new lt(e,it.get())}get snippetProps(){return n(M(this,Me))}set snippetProps(e){ae(M(this,Me),e)}get props(){return n(M(this,Ae))}set props(e){ae(M(this,Ae),e)}};Me=new WeakMap,Ae=new WeakMap;let et=lt;function wt(s,e){if(new.target)return le({component:wt,...s});ge(e,!1);const o=$e.create();var c={$set:ue,$on:(v,C)=>ce(e,v,C)};Kt();var h=j(),y=B(h);{var x=v=>{Zt(v,tt(()=>o.props))};O(y,v=>{o.shouldRender&&v(x)})}return _(s,h),he(c)}var ur=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),cr=W("<button><!></button>"),gr=W("<!> <!>",1);function kt(s,e){const o=rt();if(new.target)return le({component:kt,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=t(e,"disabled",7,!1),C=t(e,"required",7,!1),z=t(e,"checked",15,!1),w=t(e,"value",7,"on"),b=t(e,"name",7,void 0),f=t(e,"type",7,"button"),k=t(e,"onCheckedChange",7,mt),q=ke(e,ur);const m=Ke.create({checked:K(()=>z(),u=>{z(u),k()?.(u)}),disabled:K(()=>v()??!1),required:K(()=>C()),value:K(()=>w()),name:K(()=>b()),id:K(()=>x()),ref:K(()=>y(),u=>y(u))}),d=l(()=>nt(q,m.props,{type:f()}));var g={get child(){return c()},set child(u){c(u),r()},get children(){return h()},set children(u){h(u),r()},get ref(){return y()},set ref(u=null){y(u),r()},get id(){return x()},set id(u=we(o)){x(u),r()},get disabled(){return v()},set disabled(u=!1){v(u),r()},get required(){return C()},set required(u=!1){C(u),r()},get checked(){return z()},set checked(u=!1){z(u),r()},get value(){return w()},set value(u="on"){w(u),r()},get name(){return b()},set name(u=void 0){b(u),r()},get type(){return f()},set type(u="button"){f(u),r()},get onCheckedChange(){return k()},set onCheckedChange(u=mt){k(u),r()},$set:ue,$on:(u,R)=>ce(e,u,R)},P=gr(),D=B(P);{var E=u=>{var R=j(),V=B(R);{let $=l(()=>({props:n(d),...m.snippetProps}));Z(V,c,()=>n($))}_(u,R)},A=u=>{var R=cr();Ge(R,()=>({...n(d)}));var V=X(R);Z(V,()=>h()??We,()=>m.snippetProps),Y(R),_(u,R)};O(D,u=>{c()?u(E):u(A,-1)})}var G=de(D,2);return wt(G,{}),_(s,P),he(g)}var hr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),fr=W("<span><!></span>");function Ct(s,e){const o=rt();if(new.target)return le({component:Ct,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=ke(e,hr);const C=et.create({id:K(()=>x()),ref:K(()=>y(),m=>y(m))}),z=l(()=>nt(v,C.props));var w={get child(){return c()},set child(m){c(m),r()},get children(){return h()},set children(m){h(m),r()},get ref(){return y()},set ref(m=null){y(m),r()},get id(){return x()},set id(m=we(o)){x(m),r()},$set:ue,$on:(m,d)=>ce(e,m,d)},b=j(),f=B(b);{var k=m=>{var d=j(),g=B(d);{let P=l(()=>({props:n(z),...C.snippetProps}));Z(g,c,()=>n(P))}_(m,d)},q=m=>{var d=fr();Ge(d,()=>({...n(z)}));var g=X(d);Z(g,()=>h()??We,()=>C.snippetProps),Y(d),_(m,d)};O(f,m=>{c()?m(k):m(q,-1)})}return _(s,b),he(w)}var mr=new Set(["$$slots","$$events","$$legacy","ref","size","invalid","class"]);function Pt(s,e){if(new.target)return le({component:Pt,...s});ge(e,!0);const o=pt();let c=t(e,"ref",15,null),h=t(e,"size",7),y=t(e,"invalid",7,!1),x=t(e,"class",7),v=ke(e,mr);const C=l(()=>h()??o);var z={get ref(){return c()},set ref(f=null){c(f),r()},get size(){return h()},set size(f){h(f),r()},get invalid(){return y()},set invalid(f=!1){y(f),r()},get class(){return x()},set class(f){x(f),r()},$set:ue,$on:(f,k)=>ce(e,f,k)},w=j(),b=B(w);{let f=l(()=>y()||void 0),k=l(()=>J("type-caption flex min-w-0 select-none items-center font-medium tracking-normal text-muted-foreground transition-[color] duration-(--spring-fast) group-hover:text-foreground group-focus-within:text-foreground data-[state=hover]:text-foreground data-[state=focus]:text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-60 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-60 group-data-[invalid=true]:text-danger data-[invalid=true]:text-danger motion-reduce:transition-none",n(C)==="compact"?"gap-1.5":"gap-2",x()));Ye(b,()=>xt,(q,m)=>{m(q,tt({"data-slot":"label",get"data-size"(){return n(C)},get"data-invalid"(){return n(f)},get class(){return n(k)}},()=>v,{get ref(){return c()},set ref(d){c(d)}}))})}return _(s,w),he(z)}function vr(){let s=vt(Lt(Ot()));const e=jt(o=>{ae(s,o,!0)});return{get current(){return n(s)},cleanup:e}}function br(s){return new Ut(s,"fast")}function pr(s,e,o=!1){return s.set(e,{instant:o}),s}var yr=new Set(["$$slots","$$events","$$legacy","ref","id","checked","disabled","required","invalid","class","onCheckedChange","size","name","value","ariaLabel","ariaLabelledby","ariaDescribedby"]);function xr(s,e){if(new.target)return le({component:xr,...s});ge(e,!0);let o=t(e,"ref",15,null),c=t(e,"id",7,""),h=t(e,"checked",15,!1),y=t(e,"disabled",7,!1),x=t(e,"required",7,!1),v=t(e,"invalid",7,!1),C=t(e,"class",7,""),z=t(e,"onCheckedChange",7),w=t(e,"size",7,"md"),b=t(e,"name",7),f=t(e,"value",7,"on"),k=t(e,"ariaLabel",7),q=t(e,"ariaLabelledby",7),m=t(e,"ariaDescribedby",7),d=ke(e,yr);const g={xs:{width:24,height:14,padding:2,thumb:10},sm:{width:28,height:16,padding:2,thumb:12},compact:{width:28,height:16,padding:2,thumb:12},md:{width:34,height:20,padding:2,thumb:16},default:{width:34,height:20,padding:2,thumb:16},lg:{width:38,height:22,padding:2,thumb:18}};let P=l(()=>g[w()].width),D=l(()=>g[w()].height),E=l(()=>g[w()].padding),A=l(()=>g[w()].thumb),G=l(()=>n(A));const u=vr();Dt(u.cleanup);const R=br(Rt(()=>n(E))),V=l(()=>h()?n(P)-n(A)-n(E):n(E));Ht(()=>{pr(R,n(V),u.current)});var $={get ref(){return o()},set ref(p=null){o(p),r()},get id(){return c()},set id(p=""){c(p),r()},get checked(){return h()},set checked(p=!1){h(p),r()},get disabled(){return y()},set disabled(p=!1){y(p),r()},get required(){return x()},set required(p=!1){x(p),r()},get invalid(){return v()},set invalid(p=!1){v(p),r()},get class(){return C()},set class(p=""){C(p),r()},get onCheckedChange(){return z()},set onCheckedChange(p){z(p),r()},get size(){return w()},set size(p="md"){w(p),r()},get name(){return b()},set name(p){b(p),r()},get value(){return f()},set value(p="on"){f(p),r()},get ariaLabel(){return k()},set ariaLabel(p){k(p),r()},get ariaLabelledby(){return q()},set ariaLabelledby(p){q(p),r()},get ariaDescribedby(){return m()},set ariaDescribedby(p){m(p),r()},$set:ue,$on:(p,ve)=>ce(e,p,ve)},ne=j(),me=B(ne);{let p=l(()=>v()||void 0),ve=l(()=>J("border-border peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-muted shadow-(--elevation-raised) transition-[background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-y-2 after:-inset-x-1 after:content-[''] motion-reduce:transition-none","hover:bg-hover active:bg-active","disabled:cursor-not-allowed disabled:opacity-60","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary data-[state=checked]:active:bg-primary",v()&&"border-danger ring-1 ring-danger/25",C())),H=l(()=>`
2
2
  width: ${n(P)}px;
3
3
  height: ${n(D)}px;
4
4
  `);Ye(me,()=>kt,(xe,N)=>{N(xe,tt({get id(){return c()},get name(){return b()},get value(){return f()},get disabled(){return y()},get required(){return x()},get onCheckedChange(){return z()},type:"button",get"aria-label"(){return k()},get"aria-labelledby"(){return q()},get"aria-describedby"(){return m()},get"aria-invalid"(){return n(p)},get class(){return n(ve)},get style(){return n(H)}},()=>d,{get ref(){return o()},set ref(F){o(F)},get checked(){return h()},set checked(F){h(F)},children:(F,Ce)=>{var _e=j(),Pe=B(_e);{let i=l(()=>J("bg-card pointer-events-none absolute top-1/2 left-0 block rounded-full shadow-(--elevation-raised) ring-0 data-[state=checked]:bg-primary-foreground")),a=l(()=>`
@@ -0,0 +1 @@
1
+ import{n as i}from"./qWgJ-CUF.js";import{o as n}from"./CoSEZL3s.js";import{m as o,JH as a,EB as s,vr as r,v1 as f}from"./CiKoEJ2m.js";async function u(t,e){if(!(!t||!e)){if(t===o){await i("/"),a.dispatch(s(e)),a.dispatch(r("chief"));return}await n(t)&&a.dispatch(f(t,{agentId:e}))}}export{u as n};
@@ -1,3 +1,3 @@
1
- import{fV as B,JH as o,n_ as F,mp as K,mg as j,tC as q}from"./B9vHutcJ.js";import{H as G,n as V,O as Y,e9 as $,cU as W,dI as k,dT as N,e2 as O,cP as z,aN as J}from"./C2UL5Ler.js";import{selectCurrentWorkspaceTabId as X,selectWorkspaceTabsHydrated as Q}from"./aZdb_rCN.js";import{t as Z}from"./BPQFiQQc.js";import{m as ee,N as te,T as se,d as re,o as oe,w as ne}from"./96V4v2iI.js";import"./3SdAC2_C.js";import"./CLAmm_T1.js";import"./CcJmuwXr.js";import"./BwNrQXlF.js";import"./TB9r2XJy.js";import"./ChTqQfQN.js";import"./BbYWP3Ow.js";function ae(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function m(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function Ue(e){const t=e.filter(ae).map(s=>({agent:s,activity:m(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",_="New chat";function ce(e){const t=e?.trim();return!t||t===_||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ie(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?G(r):V(r)).trim():"";return!t||ce(t)?c||_:c||t}const le="chief-of-staff",de=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function He(e){const t=e?.trim();return t?`${T}
1
+ import{fV as B,JH as o,n_ as F,mp as K,mg as j,tC as q}from"./CiKoEJ2m.js";import{H as G,n as V,O as Y,e9 as $,cU as W,dI as k,dT as N,e2 as O,cP as z,aN as J}from"./iQDlfKDR.js";import{selectCurrentWorkspaceTabId as X,selectWorkspaceTabsHydrated as Q}from"./BU3y3Xes.js";import{t as Z}from"./BkcCJyDK.js";import{m as ee,N as te,T as se,d as re,o as oe,w as ne}from"./C3jMXj_V.js";import"./3SdAC2_C.js";import"./CtfEuoOH.js";import"./B26ZHg3s.js";import"./CGmYraIa.js";import"./CT8vPg_p.js";import"./ChTqQfQN.js";import"./BFfRQORP.js";function ae(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function m(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function Ue(e){const t=e.filter(ae).map(s=>({agent:s,activity:m(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",_="New chat";function ce(e){const t=e?.trim();return!t||t===_||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ie(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?G(r):V(r)).trim():"";return!t||ce(t)?c||_:c||t}const le="chief-of-staff",de=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function He(e){const t=e?.trim();return t?`${T}
2
2
 
3
3
  ${t}`:T}const pe=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?F(s.hooks):[]}),ue=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),M=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??K),xe=o.createSelector((e,t,s)=>{const r=M.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=q(t,s);return e.agentSubscriptionUI.entries[r]??j}),ge=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),fe=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),he=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Be=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),Fe=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Ke=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function Se(e){return[...new Set(e.filter(Boolean))]}const je=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of Se(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const w=e.agentSessions?.byAgentId??{},A=new Set([...d].filter(n=>{const a=w[n];return!a||!Y($(a))})),v=new Map(c.map((n,a)=>[n,a])),y=n=>{const a=w[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(A.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},C=c.filter(n=>!A.has(n)).sort((n,a)=>y(n)-y(a)||(v.get(n)??0)-(v.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:C.length,participantAgentIds:C}}),qe=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ge=o.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});o.createSelector((e,t,s)=>{const r=he.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Ve=o.createSelector(e=>{const t=X.select(e);if(!t||!Q.select(e))return[];const s=new Set;for(const r of Z.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),E="pinned",me=64;function I(e){return e.trim().toLocaleLowerCase()}function L(e){return e===E}function Ye(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>me)return{ok:!1,error:"tooLong"};const r=I(s);return r===E?{ok:!1,error:"reserved"}:t.some(c=>I(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function Ie(e){const t=new Map;for(const s of e){if(typeof s!="string"||L(s))continue;const r=s.trim();if(r.length===0)continue;const c=I(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function P(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function R(e){return e.metadata?.specialist===le&&e.metadata?.chiefPromptVersion===de}function D(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:ie(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:D(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return P(e).filter(t=>!t.retiredAt)}function U(e,t){return m(t)-m(e)}function H(e,t){const s=r=>new Date(r.lastActivity??r.updatedAt??r.createdAt).getTime()||0;return s(t)-s(e)}const $e=o.createSelector(e=>e.sidebarNav.panelItem),ze=o.createSelector(e=>e.sidebarNav.onboardingActive),Je=o.createSelector(e=>e.sidebarNav.showCreateModal),Xe=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),Qe=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),x=o.createSelector(e=>W.select(e)?.capabilities.workspaceLabels===1),Ze=o.createSelector((e,t)=>k.select(e,t)?.label??null),et=o.createSelector(e=>Ie(N.select(e).map(t=>t.label))),ke=["id","label"],tt=o.createSelector((e,t)=>x.select(e)&&O.select(e,t,ke)!==null),be=o.createSelector(e=>W.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),we=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),st=o.createSelector((e,t)=>k.select(e,t)?.autoArchiveDisabled===!0),Ae=["id","autoArchiveDisabled"],rt=o.createSelector((e,t)=>{if(!be.select(e)||!we.select(e))return!1;const s=k.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:O.select(e,t,Ae)!==null}),ot=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),nt=o.createSelector(e=>x.select(e)?N.select(e).filter(t=>L(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),at=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["people","agents"]),ct=o.createSelector(e=>e.sidebarNav.hiddenSidebarTabIds??[]),it=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),lt=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),dt=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),pt=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),ut=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=ue.select(e,p)==="ready"?pe.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=z.select(e,p)==="ready"?J.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=M.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ge.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=fe.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),gt=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),ve=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||H(t,s)).map(S)),ye=o.createSelector(e=>P(e).filter(t=>!!t.retiredAt).sort(H).map(S)),ft=o.createSelector(e=>[...ve.select(e),...ye.select(e)]),ht=o.createSelector(e=>{const t=b(e).filter(R).sort(U)[0];return t?S(t):null}),St=o.createSelector(e=>{const t=b(e).filter(s=>D(s)===0&&!s.lastMessageId&&R(s)).sort(U)[0];return t?S(t):null}),mt=Object.freeze(Object.defineProperty({__proto__:null,NOTIFY_DURATION:te,TOAST_COUNTDOWN_CLASS:se,TOAST_COUNTDOWN_NO_HOVER_PAUSE_CLASS:re,notify:ee,notifyMetadata:oe,withToastCountdown:ne},Symbol.toStringTag,{value:"Module"}));export{ot as A,at as B,de as C,_ as D,ze as E,$e as F,nt as G,ye as H,St as I,M as J,Je as K,gt as L,qe as M,Ge as N,Fe as O,E as P,Ke as Q,st as R,lt as S,dt as T,Ze as U,et as V,me as W,it as X,Ye as Y,le as a,p as b,He as c,L as d,ae as e,je as f,Be as g,ge as h,mt as i,ft as j,ut as k,pe as l,ue as m,rt as n,tt as o,pt as p,ve as q,Ue as r,xe as s,Qe as t,Xe as u,ht as v,he as w,Ve as x,ct as y,x as z};
@@ -1 +1 @@
1
- import{a6 as h,K9 as w,rR as S}from"./B9vHutcJ.js";import{cd as E}from"./3SdAC2_C.js";const f="intent://pair";function T(t){const e=t.trim().toLowerCase();if(!e.startsWith(f))return!1;const n=e.charAt(f.length);return n===""||n==="?"||n==="/"||n==="#"}function F(t){const e=t.trim();if(!T(e))return null;let n;try{n=new URL(e.replace(/^intent:\/\//i,"http://"))}catch{return null}const a=n.searchParams,c=(a.get("host")??"").split(",").map(d=>d.trim()).filter(d=>d.length>0),s=a.get("port")?.trim()??"",i=/^\d+$/.test(s)?Number(s):NaN,o=Number.isInteger(i)&&i>0&&i<=65535?i:null,u=(a.get("fp")??a.get("certFingerprint"))?.trim()||null,l=a.get("token")?.trim()||null,m=a.get("tc")?.trim()||null,k=a.get("mode")?.trim().toLowerCase()==="node"?"node":null;return{hosts:c,port:o,fingerprint:u,token:l,tcAddress:m,modeHint:k}}function H(t){return t.trim().replace(/([?&]token=)[^&#]*/gi,"$1••••")}const _=["agent:started","agent:completed","agent:failed","agent:idle","agent:status-changed","task:created","task:status-changed","workspace:displayStatus-changed","workspace:attention-changed","pr:linked","pr:updated","pr:unlinked","git:commit","git:pull"],L="agent:delegated";function r(t){return typeof t=="string"&&t.length>0?t:void 0}function N(t,e){if(t==="agent:failed")return"err";if(t==="agent:status-changed"){const n=r(e.status)??"";return n==="error"||n==="failed"?"err":n==="completed"?"ok":w(n)==="running"?"info":"idle"}if(t==="agent:idle")return"idle";if(t==="agent:completed")return"ok";if(t==="task:created")return"info";if(t==="task:status-changed")return r(e.newStatus)==="complete"?"ok":"info";if(t==="workspace:displayStatus-changed"){const n=r(e.displayStatus);return n==="pr_merged"||n==="complete"?"ok":n==="pr_ready"||n==="pr_queued"||n==="pr_open"?"accent":n==="needs_attention"?"warn":n==="idle"||n==="not_started"?"idle":"info"}return t==="workspace:attention-changed"?S(r(e.attention)??"")?"warn":"info":t.startsWith("pr:")?"accent":"info"}function I(t,e){switch(t){case"agent:started":case"agent:completed":case"agent:idle":return"";case"agent:failed":return r(e.error)??"";case"agent:status-changed":return"";case"task:created":return r(e.noteTitle)??r(e.noteId)??"";case"task:status-changed":return[r(e.noteTitle)??r(e.noteId),r(e.newStatus)].filter(Boolean).join(" → ");case"workspace:displayStatus-changed":return"";case"workspace:attention-changed":return r(e.attention)??"";case"pr:linked":case"pr:updated":return[typeof e.prNumber=="number"?`#${e.prNumber}`:void 0,r(e.prStatus)].filter(Boolean).join(" ");case"pr:unlinked":return"";case"git:commit":return r(e.message)??r(e.commit)??"";case"git:pull":return r(e.branch)??"";default:return""}}const b=new Set(["idle","inactive"]);function A(t,e){if(t!=="agent:status-changed")return!1;const n=(r(e.status)??"").toLowerCase();return b.has(n)}function y(t,e){return t==="workspace:attention-changed"&&r(e.attention)===h}function P(t){const e=typeof t.type=="string"?t.type:"";if(!_.includes(e))return null;const n=r(t.id),a=r(t.timestamp),c=r(t.workspaceId);if(!n||!a||!c)return null;const s=t.data&&typeof t.data=="object"?t.data:{};if(A(e,s)||y(e,s))return null;const i={id:n,ts:a,colorClass:N(e,s),source:c,kind:e,text:I(e,s)};if(e.startsWith("agent:")){const o=r(s.agentId),u=r(s.agentName);if(o&&(i.agentId=o),u&&(i.agentName=u),e==="agent:status-changed"){const l=r(s.status);l&&(i.agentStatus=l)}}if(e==="workspace:displayStatus-changed"){const o=r(s.displayStatus);o&&(i.displayStatus=o)}return i}const g=new Set;function R(t){return g.add(t),()=>g.delete(t)}function C(t){for(const e of g)e(t)}const p=E(null),x={subscribe:p.subscribe};function B(t){p.set(t)}export{L as H,_ as a,H as b,C as e,T as i,P as m,R as o,F as p,B as s,x as t};
1
+ import{a6 as h,K9 as w,rR as S}from"./CiKoEJ2m.js";import{cd as E}from"./3SdAC2_C.js";const f="intent://pair";function T(t){const e=t.trim().toLowerCase();if(!e.startsWith(f))return!1;const n=e.charAt(f.length);return n===""||n==="?"||n==="/"||n==="#"}function F(t){const e=t.trim();if(!T(e))return null;let n;try{n=new URL(e.replace(/^intent:\/\//i,"http://"))}catch{return null}const a=n.searchParams,c=(a.get("host")??"").split(",").map(d=>d.trim()).filter(d=>d.length>0),s=a.get("port")?.trim()??"",i=/^\d+$/.test(s)?Number(s):NaN,o=Number.isInteger(i)&&i>0&&i<=65535?i:null,u=(a.get("fp")??a.get("certFingerprint"))?.trim()||null,l=a.get("token")?.trim()||null,m=a.get("tc")?.trim()||null,k=a.get("mode")?.trim().toLowerCase()==="node"?"node":null;return{hosts:c,port:o,fingerprint:u,token:l,tcAddress:m,modeHint:k}}function H(t){return t.trim().replace(/([?&]token=)[^&#]*/gi,"$1••••")}const _=["agent:started","agent:completed","agent:failed","agent:idle","agent:status-changed","task:created","task:status-changed","workspace:displayStatus-changed","workspace:attention-changed","pr:linked","pr:updated","pr:unlinked","git:commit","git:pull"],L="agent:delegated";function r(t){return typeof t=="string"&&t.length>0?t:void 0}function N(t,e){if(t==="agent:failed")return"err";if(t==="agent:status-changed"){const n=r(e.status)??"";return n==="error"||n==="failed"?"err":n==="completed"?"ok":w(n)==="running"?"info":"idle"}if(t==="agent:idle")return"idle";if(t==="agent:completed")return"ok";if(t==="task:created")return"info";if(t==="task:status-changed")return r(e.newStatus)==="complete"?"ok":"info";if(t==="workspace:displayStatus-changed"){const n=r(e.displayStatus);return n==="pr_merged"||n==="complete"?"ok":n==="pr_ready"||n==="pr_queued"||n==="pr_open"?"accent":n==="needs_attention"?"warn":n==="idle"||n==="not_started"?"idle":"info"}return t==="workspace:attention-changed"?S(r(e.attention)??"")?"warn":"info":t.startsWith("pr:")?"accent":"info"}function I(t,e){switch(t){case"agent:started":case"agent:completed":case"agent:idle":return"";case"agent:failed":return r(e.error)??"";case"agent:status-changed":return"";case"task:created":return r(e.noteTitle)??r(e.noteId)??"";case"task:status-changed":return[r(e.noteTitle)??r(e.noteId),r(e.newStatus)].filter(Boolean).join(" → ");case"workspace:displayStatus-changed":return"";case"workspace:attention-changed":return r(e.attention)??"";case"pr:linked":case"pr:updated":return[typeof e.prNumber=="number"?`#${e.prNumber}`:void 0,r(e.prStatus)].filter(Boolean).join(" ");case"pr:unlinked":return"";case"git:commit":return r(e.message)??r(e.commit)??"";case"git:pull":return r(e.branch)??"";default:return""}}const b=new Set(["idle","inactive"]);function A(t,e){if(t!=="agent:status-changed")return!1;const n=(r(e.status)??"").toLowerCase();return b.has(n)}function y(t,e){return t==="workspace:attention-changed"&&r(e.attention)===h}function P(t){const e=typeof t.type=="string"?t.type:"";if(!_.includes(e))return null;const n=r(t.id),a=r(t.timestamp),c=r(t.workspaceId);if(!n||!a||!c)return null;const s=t.data&&typeof t.data=="object"?t.data:{};if(A(e,s)||y(e,s))return null;const i={id:n,ts:a,colorClass:N(e,s),source:c,kind:e,text:I(e,s)};if(e.startsWith("agent:")){const o=r(s.agentId),u=r(s.agentName);if(o&&(i.agentId=o),u&&(i.agentName=u),e==="agent:status-changed"){const l=r(s.status);l&&(i.agentStatus=l)}}if(e==="workspace:displayStatus-changed"){const o=r(s.displayStatus);o&&(i.displayStatus=o)}return i}const g=new Set;function R(t){return g.add(t),()=>g.delete(t)}function C(t){for(const e of g)e(t)}const p=E(null),x={subscribe:p.subscribe};function B(t){p.set(t)}export{L as H,_ as a,H as b,C as e,T as i,P as m,R as o,F as p,B as s,x as t};
@@ -1 +1 @@
1
- import{t as fe,bo as m,bw as ue,b as pe,bm as y}from"./CLAmm_T1.js";import{bs as ge,a7 as X,ay as E,W as b,bn as ve,aA as _,a5 as V,aD as e,bS as j,bl as Z,b_ as P,bO as ee,bA as G,aB as z,bf as me,c9 as i}from"./3SdAC2_C.js";import{i as I}from"./BFgvMDua.js";import{g as be}from"./B1CKzIA2.js";import{f as N,s as u,g as O}from"./CcJmuwXr.js";import{F as _e,bu as he,bt as xe}from"./DPttSllj.js";import{f as ye,ae as ke}from"./nxtepGjE.js";import"./TB9r2XJy.js";import{P as Se}from"./TyAuxp07.js";import{l as H}from"./Cu5e4npY.js";import{a as te,p as we,b as Pe,d as ze}from"./Cm0Qloca.js";var $e=z('<span aria-hidden="true"></span>'),Ie=z('<span class="absolute -right-0.5 -bottom-0.5 inline-flex items-center justify-center rounded-full bg-background text-foreground" aria-hidden="true"><!></span>'),Me=z('<span><span data-presence-avatar-tile=""><!></span> <!> <!></span>'),Ae=z('<!> <span class="sr-only"> </span>',1),Ce=z('<span class="inline-flex shrink-0 items-center justify-center rounded-full border border-background bg-muted px-1 font-medium leading-none text-muted-foreground"> </span>'),Le=z('<span role="group" data-presence-avatar-stack=""><!> <!></span>');function Ve(J,f){if(new.target)return fe({component:Ve,...J});ge(f,!0);const R=(t,a=me)=>{const k=i(()=>ze(a())),L=i(()=>a().online===!1);var d=Me();let o;var r=V(d);let v;var $=V(r);{let n=i(()=>Pe(a()));Se($,{fill:!0,get avatarUrl(){return a().avatarUrl},get label(){return e(n)}})}G(r);var S=j(r,2);{var Y=n=>{var s=$e();P(()=>{N(s,1,`absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full border border-background ${a().online?"bg-success":"bg-muted-foreground"}`),u(s,"data-presence-status",a().online?"online":"offline")}),b(n,s)};I(S,n=>{l()==="stack"&&a().hostRole&&a().online!==void 0&&n(Y)})}var q=j(S,2);{var c=n=>{var s=Ie();let h;var w=V(s);{let x=i(()=>a().identity.provider==="gitlab"?he:xe);_e(w,{get icon(){return e(x)}})}G(s),P(x=>{u(s,"data-presence-identity-provider",a().identity.provider),u(s,"data-presence-identity-host",a().identity.host),h=O(s,"",h,{width:`${e(D)??""}px`,height:`${e(D)??""}px`,"font-size":x})},[()=>`${Math.round(e(D)*.8)}px`]),b(n,s)};I(q,n=>{l()==="stack"&&a().identity&&n(c)})}G(d),P(n=>{N(d,1,`relative inline-flex shrink-0 rounded-full border ${l()==="tile"?"border-border":`border-background ${e(k)?ne[e(k)]:""}`}`),u(d,"data-presence-avatar",a().principalId),u(d,"data-presence-ring",l()==="stack"?e(k)??void 0:void 0),u(d,"data-presence-offline",e(L)||void 0),u(d,"data-presence-self",a().self||void 0),o=O(d,"",o,{width:`${g()??""}px`,height:`${g()??""}px`}),N(r,1,`inline-flex h-full w-full items-center justify-center overflow-hidden rounded-full font-medium leading-none ${l()==="tile"?"bg-muted text-muted-foreground":"text-primary-foreground"} ${e(L)||l()==="tile"&&a().viewing===!1?"grayscale":""}`),v=O(r,"",v,{"font-size":e(K),"background-color":n})},[()=>l()==="stack"?we(a().principalId):void 0]),b(t,d)};let p=m(f,"people",7),M=m(f,"maxVisible",7,3),g=m(f,"size",7,16),l=m(f,"variant",7,"stack"),A=m(f,"side",7,"bottom"),B=m(f,"decorative",7,!1),C=m(f,"action",7),F=m(f,"class",7,"");const ae=i(()=>p().slice(0,M())),T=i(()=>Math.max(0,p().length-M())),U=i(()=>p().filter(t=>!t.self&&t.online!==!1).length),W=i(()=>p().filter(t=>!t.self&&t.online===!1).length),re=i(()=>e(U)===1?y.presence_avatarStack_people_one():e(U)>1?y.presence_avatarStack_people_many({count:H(e(U))}):e(W)===0?y.presence_avatarStack_onlyYou_label():e(W)===1?y.presence_avatarStack_offline_one():y.presence_avatarStack_offline_many({count:H(e(W))})),K=i(()=>`${Math.max(8,Math.round(g()*.55))}px`),D=i(()=>Math.max(9,Math.round(g()*.5))),ne={owner:"ring-2 ring-info",member:"ring-2 ring-success",guest:"ring-2 ring-warning-ink",offline:"ring-2 ring-muted-foreground/40"};var se={get people(){return p()},set people(t){p(t),_()},get maxVisible(){return M()},set maxVisible(t=3){M(t),_()},get size(){return g()},set size(t=16){g(t),_()},get variant(){return l()},set variant(t="stack"){l(t),_()},get side(){return A()},set side(t="bottom"){A(t),_()},get decorative(){return B()},set decorative(t=!1){B(t),_()},get action(){return C()},set action(t){C(t),_()},get class(){return F()},set class(t=""){F(t),_()},$set:ue,$on:(t,a)=>pe(f,t,a)},Q=X(),ie=E(Q);{var oe=t=>{var a=Le(),k=V(a);be(k,17,()=>e(ae),o=>o.principalId,(o,r)=>{var v=X(),$=E(v);{var S=c=>{const n=i(()=>{const{label:s,onSelect:h}=C()(e(r));return{personLabel:s,onSelect:h}});{let s=i(()=>e(n).onSelect?void 0:!0),h=i(()=>e(n).onSelect??void 0);ye(c,{variant:"plain",wrapContent:!1,class:"h-auto rounded-full p-0 aria-disabled:opacity-100",get tooltip(){return e(n).personLabel},get tooltipSide(){return A()},get"aria-label"(){return e(n).personLabel},get"aria-disabled"(){return e(s)},get onclick(){return e(h)},get"data-presence-person-button"(){return e(r).principalId},children:(w,x)=>{R(w,()=>e(r))},$$slots:{default:!0}})}},Y=c=>{R(c,()=>e(r))},q=c=>{{let n=i(()=>te(e(r)));ke(c,{get content(){return e(n)},get side(){return A()},children:(s,h)=>{var w=Ae(),x=E(w);R(x,()=>e(r));var le=j(x,2),de=Z(le,!0);P(ce=>ee(de,ce),[()=>te(e(r))]),b(s,w)},$$slots:{default:!0}})}};I($,c=>{C()?c(S):B()?c(Y,1):c(q,-1)})}b(o,v)});var L=j(k,2);{var d=o=>{var r=Ce();let v;var $=Z(r,!0);P(S=>{u(r,"data-presence-overflow",e(T)),v=O(r,"",v,{"min-width":`${g()??""}px`,height:`${g()??""}px`,"font-size":e(K)}),ee($,S)},[()=>y.presence_avatarStack_more_label({count:H(e(T))})]),b(o,r)};I(L,o=>{e(T)>0&&o(d)})}G(a),P(o=>{N(a,1,`inline-flex items-center ${l()==="tile"?"flex-wrap gap-1.25":"-space-x-1"} ${F()??""}`),u(a,"aria-label",o),u(a,"data-presence-count",p().length)},[()=>l()==="tile"?y.workspace_peopleTile_title():e(re)]),b(t,a)};I(ie,t=>{p().length>0&&t(oe)})}return b(J,Q),ve(se)}export{Ve as P};
1
+ import{t as fe,bo as m,bw as ue,b as pe,bm as y}from"./CtfEuoOH.js";import{bs as ge,a7 as X,ay as E,W as b,bn as ve,aA as _,a5 as V,aD as e,bS as j,bl as Z,b_ as P,bO as ee,bA as G,aB as z,bf as me,c9 as i}from"./3SdAC2_C.js";import{i as I}from"./DynUeYUu.js";import{g as be}from"./CnFZbWXv.js";import{f as N,s as u,g as O}from"./B26ZHg3s.js";import{F as _e,bu as he,bt as xe}from"./COofQgO0.js";import{f as ye,ae as ke}from"./D9R5fzn8.js";import"./CT8vPg_p.js";import{P as Se}from"./CLvqghA8.js";import{l as H}from"./DMEIbJII.js";import{a as te,p as we,b as Pe,d as ze}from"./ZX798KkU.js";var $e=z('<span aria-hidden="true"></span>'),Ie=z('<span class="absolute -right-0.5 -bottom-0.5 inline-flex items-center justify-center rounded-full bg-background text-foreground" aria-hidden="true"><!></span>'),Me=z('<span><span data-presence-avatar-tile=""><!></span> <!> <!></span>'),Ae=z('<!> <span class="sr-only"> </span>',1),Ce=z('<span class="inline-flex shrink-0 items-center justify-center rounded-full border border-background bg-muted px-1 font-medium leading-none text-muted-foreground"> </span>'),Le=z('<span role="group" data-presence-avatar-stack=""><!> <!></span>');function Ve(J,f){if(new.target)return fe({component:Ve,...J});ge(f,!0);const R=(t,a=me)=>{const k=i(()=>ze(a())),L=i(()=>a().online===!1);var d=Me();let o;var r=V(d);let v;var $=V(r);{let n=i(()=>Pe(a()));Se($,{fill:!0,get avatarUrl(){return a().avatarUrl},get label(){return e(n)}})}G(r);var S=j(r,2);{var Y=n=>{var s=$e();P(()=>{N(s,1,`absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full border border-background ${a().online?"bg-success":"bg-muted-foreground"}`),u(s,"data-presence-status",a().online?"online":"offline")}),b(n,s)};I(S,n=>{l()==="stack"&&a().hostRole&&a().online!==void 0&&n(Y)})}var q=j(S,2);{var c=n=>{var s=Ie();let h;var w=V(s);{let x=i(()=>a().identity.provider==="gitlab"?he:xe);_e(w,{get icon(){return e(x)}})}G(s),P(x=>{u(s,"data-presence-identity-provider",a().identity.provider),u(s,"data-presence-identity-host",a().identity.host),h=O(s,"",h,{width:`${e(D)??""}px`,height:`${e(D)??""}px`,"font-size":x})},[()=>`${Math.round(e(D)*.8)}px`]),b(n,s)};I(q,n=>{l()==="stack"&&a().identity&&n(c)})}G(d),P(n=>{N(d,1,`relative inline-flex shrink-0 rounded-full border ${l()==="tile"?"border-border":`border-background ${e(k)?ne[e(k)]:""}`}`),u(d,"data-presence-avatar",a().principalId),u(d,"data-presence-ring",l()==="stack"?e(k)??void 0:void 0),u(d,"data-presence-offline",e(L)||void 0),u(d,"data-presence-self",a().self||void 0),o=O(d,"",o,{width:`${g()??""}px`,height:`${g()??""}px`}),N(r,1,`inline-flex h-full w-full items-center justify-center overflow-hidden rounded-full font-medium leading-none ${l()==="tile"?"bg-muted text-muted-foreground":"text-primary-foreground"} ${e(L)||l()==="tile"&&a().viewing===!1?"grayscale":""}`),v=O(r,"",v,{"font-size":e(K),"background-color":n})},[()=>l()==="stack"?we(a().principalId):void 0]),b(t,d)};let p=m(f,"people",7),M=m(f,"maxVisible",7,3),g=m(f,"size",7,16),l=m(f,"variant",7,"stack"),A=m(f,"side",7,"bottom"),B=m(f,"decorative",7,!1),C=m(f,"action",7),F=m(f,"class",7,"");const ae=i(()=>p().slice(0,M())),T=i(()=>Math.max(0,p().length-M())),U=i(()=>p().filter(t=>!t.self&&t.online!==!1).length),W=i(()=>p().filter(t=>!t.self&&t.online===!1).length),re=i(()=>e(U)===1?y.presence_avatarStack_people_one():e(U)>1?y.presence_avatarStack_people_many({count:H(e(U))}):e(W)===0?y.presence_avatarStack_onlyYou_label():e(W)===1?y.presence_avatarStack_offline_one():y.presence_avatarStack_offline_many({count:H(e(W))})),K=i(()=>`${Math.max(8,Math.round(g()*.55))}px`),D=i(()=>Math.max(9,Math.round(g()*.5))),ne={owner:"ring-2 ring-info",member:"ring-2 ring-success",guest:"ring-2 ring-warning-ink",offline:"ring-2 ring-muted-foreground/40"};var se={get people(){return p()},set people(t){p(t),_()},get maxVisible(){return M()},set maxVisible(t=3){M(t),_()},get size(){return g()},set size(t=16){g(t),_()},get variant(){return l()},set variant(t="stack"){l(t),_()},get side(){return A()},set side(t="bottom"){A(t),_()},get decorative(){return B()},set decorative(t=!1){B(t),_()},get action(){return C()},set action(t){C(t),_()},get class(){return F()},set class(t=""){F(t),_()},$set:ue,$on:(t,a)=>pe(f,t,a)},Q=X(),ie=E(Q);{var oe=t=>{var a=Le(),k=V(a);be(k,17,()=>e(ae),o=>o.principalId,(o,r)=>{var v=X(),$=E(v);{var S=c=>{const n=i(()=>{const{label:s,onSelect:h}=C()(e(r));return{personLabel:s,onSelect:h}});{let s=i(()=>e(n).onSelect?void 0:!0),h=i(()=>e(n).onSelect??void 0);ye(c,{variant:"plain",wrapContent:!1,class:"h-auto rounded-full p-0 aria-disabled:opacity-100",get tooltip(){return e(n).personLabel},get tooltipSide(){return A()},get"aria-label"(){return e(n).personLabel},get"aria-disabled"(){return e(s)},get onclick(){return e(h)},get"data-presence-person-button"(){return e(r).principalId},children:(w,x)=>{R(w,()=>e(r))},$$slots:{default:!0}})}},Y=c=>{R(c,()=>e(r))},q=c=>{{let n=i(()=>te(e(r)));ke(c,{get content(){return e(n)},get side(){return A()},children:(s,h)=>{var w=Ae(),x=E(w);R(x,()=>e(r));var le=j(x,2),de=Z(le,!0);P(ce=>ee(de,ce),[()=>te(e(r))]),b(s,w)},$$slots:{default:!0}})}};I($,c=>{C()?c(S):B()?c(Y,1):c(q,-1)})}b(o,v)});var L=j(k,2);{var d=o=>{var r=Ce();let v;var $=Z(r,!0);P(S=>{u(r,"data-presence-overflow",e(T)),v=O(r,"",v,{"min-width":`${g()??""}px`,height:`${g()??""}px`,"font-size":e(K)}),ee($,S)},[()=>y.presence_avatarStack_more_label({count:H(e(T))})]),b(o,r)};I(L,o=>{e(T)>0&&o(d)})}G(a),P(o=>{N(a,1,`inline-flex items-center ${l()==="tile"?"flex-wrap gap-1.25":"-space-x-1"} ${F()??""}`),u(a,"aria-label",o),u(a,"data-presence-count",p().length)},[()=>l()==="tile"?y.workspace_peopleTile_title():e(re)]),b(t,a)};I(ie,t=>{p().length>0&&t(oe)})}return b(J,Q),ve(se)}export{Ve as P};
@@ -1,3 +1,3 @@
1
- import{JH as n,mA as o,n_ as u,ia as W,nW as k,nP as P,o6 as b,ih as S,s3 as h,vY as y}from"./B9vHutcJ.js";function L(e,t){return t?JSON.stringify(["git-root",t,e]):e}const p=[];function v(e){return!!e&&e!=="new"&&!e.startsWith("optimistic-")&&e!=="undefined"}const j=n.createSelector((e,t)=>e.panelLayout.byWorkspaceId[t]??o),A=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).pendingPanelReveal??null),f={count:0,isOpen:!1,isActive:!1,isOpenElsewhere:!1};function R(e,t,a,s){if(s.workspaceId&&s.workspaceId!==a)return f;const c=s,r=e.filter(l=>(!l.workspaceId||l.workspaceId===a)&&y(l,c));if(r.length===0)return f;const d=!!t&&(!t.workspaceId||t.workspaceId===a)&&y(t,c);return{count:r.length,isOpen:!0,isActive:d,isOpenElsewhere:!d}}const E=n.createSelector(e=>e.panelLayout.byWorkspaceId),F=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).root),H=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).expandedPanelId),M=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).panels),q=n.createSelector((e,t,a)=>(e.panelLayout.byWorkspaceId[t]??o).panels[a]),x=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).focusedPanelId),$=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return a.focusedPanelId?a.panels[a.focusedPanelId]:void 0});n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const s=a.focusedPanelId,c=s?a.panels[s]:void 0;return[t,{panelId:c?s:null,activeTabId:c?.activeTabId??null}]})));const B=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).restoreStatus),z=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;if(!a.focusedPanelId)return;const s=a.panels[a.focusedPanelId];if(!(!s||!s.activeTabId))return s.tabs.find(c=>c.id===s.activeTabId)}),D=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;for(let s=a.focusHistory.length-1;s>=0;s-=1){const c=a.focusHistory[s],r=a.panels[c.panelId]?.tabs.find(d=>d.id===c.tabId);if(r?.type==="agent")return r}}),J=n.createSelector((e,t,a)=>{const c=(e.panelLayout.byWorkspaceId[t]??o).panels[a];if(!(!c||!c.activeTabId))return c.tabs.find(r=>r.id===c.activeTabId)}),N=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return Object.values(a.panels).flatMap(s=>s.tabs)}),V=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return u(a.hiddenTabs??o.hiddenTabs)});function m(e){const t=[];for(const a of Object.values(e.panels))for(const s of a.tabs)s.type==="browser"&&t.push({tab:s,visibility:"visible",displayed:a.activeTabId===s.id});for(const a of u(e.hiddenTabs??o.hiddenTabs))a.type==="browser"&&t.push({tab:a,visibility:"hidden",displayed:!1});return t}const C=n.createSelector((e,t)=>{const a=e?.panelLayout?.byWorkspaceId[t]??o;return m(a).length>0}),K=n.createSelector(e=>Object.keys(e.panelLayout.byWorkspaceId).filter(t=>C.select(e,t)));n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const s=Object.values(a.panels).some(c=>c.tabs.length>0);return[t,s?W(a.root):0]})));const Y=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return k(a.root,a.panels)});n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.canvasWidth??P(a.root,a.panels,"content")])));const _=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidth),G=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidthSource),Q=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).columnCount);n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.restoreStatus])));const U=n.createSelector((e,t,a=!1)=>{if(!v(t))return p;const s=e.panelLayout.byWorkspaceId[t],c=e.files.byWorkspaceId[t];if(!c)return p;if(!s)return a?[...c.files.ids].sort((l,i)=>l.localeCompare(i)):p;const r=new Set;for(const l of Object.values(s.panels))for(const i of l.tabs)i.type==="file"&&typeof i.filePath=="string"&&i.filePath.length>0&&r.add(L(i.filePath,typeof i.data?.gitRootId=="string"?i.data.gitRootId:void 0));const d=[];for(const l of c.files.ids)r.has(l)||d.push(l);return d.length===0?p:(d.sort((l,i)=>l.localeCompare(i)),d)}),X=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return b(a.root)});function I(e){return b(e.root).flatMap(t=>{const a=e.panels[t];return a?[{panelId:t,panes:a.tabs,activePaneId:a.activeTabId,attentionPaneIds:a.attentionTabIds??[]}]:[]})}const Z=n.createSelector((e,t)=>I(e.panelLayout.byWorkspaceId[t]??o));n.createSelector((e,t,a)=>I(e.panelLayout.byWorkspaceId[t]??o).find(s=>s.panelId===a));function T(e){return b(e.root).flatMap(t=>{const a=e.panels[t];if(!a)return[];const c=a.tabs.find(r=>r.id===a.activeTabId)??a.tabs[0];return[{id:t,title:c?.title??"",type:c?.type}]})}n.createSelector((e,t)=>T(e.panelLayout.byWorkspaceId[t]??o));const w=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).recentlyClosed),g=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return u(a.recentlyClosedColumns??S("historyId")).find(s=>h(a,s))??null}),ee=n.createSelector((e,t)=>{const a=w.select(e,t)[0]??null,s=g.select(e,t);return s&&(!a||s.closedAt>=a.closedAt)?{kind:"column",closedAt:s.closedAt}:a?{kind:"tab",closedAt:a.closedAt}:null}),te=n.createSelector(e=>Object.entries(e.panelLayout.byWorkspaceId).flatMap(([t,a])=>a.tabWindowFocusRequest?[`${t}\0${a.tabWindowFocusRequest.seq}\0${a.tabWindowFocusRequest.tabWindowId}`]:[]).join(`
1
+ import{JH as n,mA as o,n_ as u,ia as W,nW as k,nP as P,o6 as b,ih as S,s3 as h,vY as y}from"./CiKoEJ2m.js";function L(e,t){return t?JSON.stringify(["git-root",t,e]):e}const p=[];function v(e){return!!e&&e!=="new"&&!e.startsWith("optimistic-")&&e!=="undefined"}const j=n.createSelector((e,t)=>e.panelLayout.byWorkspaceId[t]??o),A=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).pendingPanelReveal??null),f={count:0,isOpen:!1,isActive:!1,isOpenElsewhere:!1};function R(e,t,a,s){if(s.workspaceId&&s.workspaceId!==a)return f;const c=s,r=e.filter(l=>(!l.workspaceId||l.workspaceId===a)&&y(l,c));if(r.length===0)return f;const d=!!t&&(!t.workspaceId||t.workspaceId===a)&&y(t,c);return{count:r.length,isOpen:!0,isActive:d,isOpenElsewhere:!d}}const E=n.createSelector(e=>e.panelLayout.byWorkspaceId),F=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).root),H=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).expandedPanelId),M=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).panels),q=n.createSelector((e,t,a)=>(e.panelLayout.byWorkspaceId[t]??o).panels[a]),x=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).focusedPanelId),$=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return a.focusedPanelId?a.panels[a.focusedPanelId]:void 0});n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const s=a.focusedPanelId,c=s?a.panels[s]:void 0;return[t,{panelId:c?s:null,activeTabId:c?.activeTabId??null}]})));const B=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).restoreStatus),z=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;if(!a.focusedPanelId)return;const s=a.panels[a.focusedPanelId];if(!(!s||!s.activeTabId))return s.tabs.find(c=>c.id===s.activeTabId)}),D=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;for(let s=a.focusHistory.length-1;s>=0;s-=1){const c=a.focusHistory[s],r=a.panels[c.panelId]?.tabs.find(d=>d.id===c.tabId);if(r?.type==="agent")return r}}),J=n.createSelector((e,t,a)=>{const c=(e.panelLayout.byWorkspaceId[t]??o).panels[a];if(!(!c||!c.activeTabId))return c.tabs.find(r=>r.id===c.activeTabId)}),N=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return Object.values(a.panels).flatMap(s=>s.tabs)}),V=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return u(a.hiddenTabs??o.hiddenTabs)});function m(e){const t=[];for(const a of Object.values(e.panels))for(const s of a.tabs)s.type==="browser"&&t.push({tab:s,visibility:"visible",displayed:a.activeTabId===s.id});for(const a of u(e.hiddenTabs??o.hiddenTabs))a.type==="browser"&&t.push({tab:a,visibility:"hidden",displayed:!1});return t}const C=n.createSelector((e,t)=>{const a=e?.panelLayout?.byWorkspaceId[t]??o;return m(a).length>0}),K=n.createSelector(e=>Object.keys(e.panelLayout.byWorkspaceId).filter(t=>C.select(e,t)));n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>{const s=Object.values(a.panels).some(c=>c.tabs.length>0);return[t,s?W(a.root):0]})));const Y=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return k(a.root,a.panels)});n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.canvasWidth??P(a.root,a.panels,"content")])));const _=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidth),G=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).canvasWidthSource),Q=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).columnCount);n.createSelector(e=>Object.fromEntries(Object.entries(e.panelLayout.byWorkspaceId).map(([t,a])=>[t,a.restoreStatus])));const U=n.createSelector((e,t,a=!1)=>{if(!v(t))return p;const s=e.panelLayout.byWorkspaceId[t],c=e.files.byWorkspaceId[t];if(!c)return p;if(!s)return a?[...c.files.ids].sort((l,i)=>l.localeCompare(i)):p;const r=new Set;for(const l of Object.values(s.panels))for(const i of l.tabs)i.type==="file"&&typeof i.filePath=="string"&&i.filePath.length>0&&r.add(L(i.filePath,typeof i.data?.gitRootId=="string"?i.data.gitRootId:void 0));const d=[];for(const l of c.files.ids)r.has(l)||d.push(l);return d.length===0?p:(d.sort((l,i)=>l.localeCompare(i)),d)}),X=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return b(a.root)});function I(e){return b(e.root).flatMap(t=>{const a=e.panels[t];return a?[{panelId:t,panes:a.tabs,activePaneId:a.activeTabId,attentionPaneIds:a.attentionTabIds??[]}]:[]})}const Z=n.createSelector((e,t)=>I(e.panelLayout.byWorkspaceId[t]??o));n.createSelector((e,t,a)=>I(e.panelLayout.byWorkspaceId[t]??o).find(s=>s.panelId===a));function T(e){return b(e.root).flatMap(t=>{const a=e.panels[t];if(!a)return[];const c=a.tabs.find(r=>r.id===a.activeTabId)??a.tabs[0];return[{id:t,title:c?.title??"",type:c?.type}]})}n.createSelector((e,t)=>T(e.panelLayout.byWorkspaceId[t]??o));const w=n.createSelector((e,t)=>(e.panelLayout.byWorkspaceId[t]??o).recentlyClosed),g=n.createSelector((e,t)=>{const a=e.panelLayout.byWorkspaceId[t]??o;return u(a.recentlyClosedColumns??S("historyId")).find(s=>h(a,s))??null}),ee=n.createSelector((e,t)=>{const a=w.select(e,t)[0]??null,s=g.select(e,t);return s&&(!a||s.closedAt>=a.closedAt)?{kind:"column",closedAt:s.closedAt}:a?{kind:"tab",closedAt:a.closedAt}:null}),te=n.createSelector(e=>Object.entries(e.panelLayout.byWorkspaceId).flatMap(([t,a])=>a.tabWindowFocusRequest?[`${t}\0${a.tabWindowFocusRequest.seq}\0${a.tabWindowFocusRequest.tabWindowId}`]:[]).join(`
2
2
  `)),ae=n.createSelector(e=>Object.entries(e.panelLayout.byWorkspaceId).flatMap(([t,a])=>a.restoreStatus==="restored"?u(a.hiddenTabs??o.hiddenTabs).filter(s=>s.tabWindowId).map(s=>`${t}\0${s.id}`):[]).join(`
3
3
  `));export{w as A,B,ae as C,te as D,C as E,J as a,N as b,m as c,K as d,H as e,L as f,R as g,U as h,$ as i,x as j,V as k,ee as l,D as m,q as n,_ as o,G as p,Q as q,Y as r,z as s,Z as t,X as u,F as v,j as w,E as x,M as y,A as z};
@@ -1 +1 @@
1
- import{t as J,bo as g,bw as Q,b as T,bm as D}from"./CLAmm_T1.js";import{bs as U,b_ as V,W as m,bn as X,aA as b,aC as ae,a7 as B,ay as F,aD as t,a5 as Z,bS as $,bH as h,bA as E,be as ie,b$ as se,bO as G,c9 as f,aB as H,bV as j,bl as ee,bk as oe}from"./3SdAC2_C.js";import{s as le,f as ue,c as ce}from"./CcJmuwXr.js";import{i as P}from"./BFgvMDua.js";import{k as fe}from"./CIbfGsF-.js";import{g as me,i as de}from"./B1CKzIA2.js";import{I as pe}from"./DaWmj23r.js";import"./C4jSaPCg.js";import{L as ge}from"./B5N8LmEF.js";import"./CEE0831H.js";import{D as be}from"./D4d1iyeR.js";import{b as te}from"./CVWwz1Ss.js";import{P as ve,K as O}from"./R-UFG3MB.js";var _e=ae('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function Ce(p,i){if(new.target)return J({component:Ce,...p});U(i,!0);let s=g(i,"width",7,24),e=g(i,"class",7,"");var a={get width(){return s()},set width(o=24){s(o),b()},get class(){return e()},set class(o=""){e(o),b()},$set:Q,$on:(o,u)=>T(i,o,u)},l=_e();return V(()=>{le(l,"width",s()),ue(l,0,ce(e()))}),m(p,l),X(a)}var he=H('<span class="min-w-0 shrink truncate text-subtle"> </span>'),we=H('<li class="flex min-w-0 items-baseline justify-between gap-3"><span class="min-w-0 truncate"> </span> <!></li>'),Le=H('<ul class="grid gap-1.5"></ul>'),ye=H('<div class="grid gap-2"><!> <!></div>');function re(p,i){if(new.target)return J({component:re,...p});U(i,!0);const s=r=>{var c=B(),x=F(c);{var A=_=>{var R=Le();me(R,21,()=>e().options.items??[],de,(q,w)=>{var M=we(),I=Z(M),C=ee(I,!0),S=$(I,2);{var L=y=>{var Y=he(),ne=ee(Y,!0);V(()=>G(ne,t(w).detail)),m(y,Y)};P(S,y=>{t(w).detail&&y(L)})}E(M),V(()=>G(C,t(w).label)),m(q,M)}),E(R),m(_,R)};P(x,_=>{e().kind==="confirm"&&_(A)})}m(r,c)};let e=g(i,"request",7),a=g(i,"value",15,""),l=g(i,"busy",7,!1),o=g(i,"static",7,!1),u=g(i,"onAccept",7),v=g(i,"onCancel",7),k=j(null);var K={get request(){return e()},set request(r){e(r),b()},get value(){return a()},set value(r=""){a(r),b()},get busy(){return l()},set busy(r=!1){l(r),b()},get static(){return o()},set static(r=!1){o(r),b()},get onAccept(){return u()},set onAccept(r){u(r),b()},get onCancel(){return v()},set onCancel(r){v(r),b()},$set:Q,$on:(r,c)=>T(i,r,c)},n=B(),d=F(n);{var N=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_bulkActionConfirm_confirm_label()),x=f(()=>e().options.cancelLabel??D.modals_bulkActionConfirm_cancel_label()),A=f(()=>e().options.destructive??!1),_=f(()=>e().options.items?.length?s:void 0);be(r,{open:!0,get static(){return o()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return t(c)},get cancelLabel(){return t(x)},get destructive(){return t(A)},get details(){return t(_)},get busy(){return l()},onConfirm:()=>u()(a()),get onCancel(){return v()}})}},W=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_input_confirm_label()),x=f(()=>e().options.cancelLabel??D.modals_input_cancel_label()),A=f(()=>!e().options.field.required||a().trim().length>0);te(r,{open:!0,get static(){return o()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return t(c)},get cancelLabel(){return t(x)},get canSubmit(){return t(A)},get busy(){return l()},get initialFocus(){return t(k)},onSubmit:()=>u()(a()),get onCancel(){return v()},children:(_,R)=>{var q=ye(),w=Z(q);{var M=C=>{ge(C,{for:"confirm-prompt-field",children:(S,L)=>{ie();var y=se();V(()=>G(y,e().options.field.label)),m(S,y)},$$slots:{default:!0}})};P(w,C=>{e().options.field.label&&C(M)})}var I=$(w,2);{let C=f(()=>e().options.field.type??"text"),S=f(()=>e().options.field.label?void 0:e().options.title);pe(I,{id:"confirm-prompt-field",get type(){return t(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return t(S)},get ref(){return t(k)},set ref(L){h(k,L,!0)},get value(){return a()},set value(L){a(L)}})}E(q),m(_,q)},$$slots:{default:!0}})}},z=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_input_confirm_label());te(r,{open:!0,get static(){return o()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return t(c)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return l()},onSubmit:()=>u()(a()),onCancel:()=>u()(a())})}};P(d,r=>{e()?.kind==="confirm"?r(N):e()?.kind==="prompt"?r(W,1):e()?.kind==="alert"&&r(z,2)})}return m(p,n),X(K)}function ke(p,i){if(new.target)return J({component:ke,...p});U(i,!0);let s=j(null),e=j(""),a=j(!1);oe(()=>ve(n=>{h(s,n,!0),h(e,n?.kind==="prompt"?n.options.field.initialValue??"":"",!0),h(a,!1)}));function l(){!t(s)||t(a)||O(t(s).id,t(s).kind==="confirm"?!1:null)}async function o(){if(!t(s)||t(a))return;const n=t(s);h(a,!0);try{n.kind==="confirm"?(await n.options.onConfirm?.(),O(n.id,!0)):n.kind==="prompt"?(await n.options.onConfirm?.(t(e).trim()),O(n.id,t(e).trim())):O(n.id,void 0)}catch(d){throw console.error("Confirm action failed:",d),h(a,!1),d}}var u={$set:Q,$on:(n,d)=>T(i,n,d)},v=B(),k=F(v);{var K=n=>{var d=B(),N=F(d);fe(N,()=>t(s).id,W=>{re(W,{get request(){return t(s)},get busy(){return t(a)},onAccept:o,onCancel:l,get value(){return t(e)},set value(z){h(e,z,!0)}})}),m(n,d)};P(k,n=>{t(s)&&n(K)})}return m(p,v),X(u)}export{ke as C,Ce as L};
1
+ import{t as J,bo as g,bw as Q,b as T,bm as D}from"./CtfEuoOH.js";import{bs as U,b_ as V,W as m,bn as X,aA as b,aC as ae,a7 as B,ay as F,aD as t,a5 as Z,bS as $,bH as h,bA as E,be as ie,b$ as se,bO as G,c9 as f,aB as H,bV as j,bl as ee,bk as oe}from"./3SdAC2_C.js";import{s as le,f as ue,c as ce}from"./B26ZHg3s.js";import{i as P}from"./DynUeYUu.js";import{k as fe}from"./DFKhOU69.js";import{g as me,i as de}from"./CnFZbWXv.js";import{I as pe}from"./DcraaizU.js";import"./B3T1oiJl.js";import{L as ge}from"./BdhKX9ZN.js";import"./Bz80vYvX.js";import{D as be}from"./TPru2I57.js";import{b as te}from"./C22cBcHz.js";import{P as ve,K as O}from"./DRuLniWc.js";var _e=ae('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function Ce(p,i){if(new.target)return J({component:Ce,...p});U(i,!0);let s=g(i,"width",7,24),e=g(i,"class",7,"");var a={get width(){return s()},set width(o=24){s(o),b()},get class(){return e()},set class(o=""){e(o),b()},$set:Q,$on:(o,u)=>T(i,o,u)},l=_e();return V(()=>{le(l,"width",s()),ue(l,0,ce(e()))}),m(p,l),X(a)}var he=H('<span class="min-w-0 shrink truncate text-subtle"> </span>'),we=H('<li class="flex min-w-0 items-baseline justify-between gap-3"><span class="min-w-0 truncate"> </span> <!></li>'),Le=H('<ul class="grid gap-1.5"></ul>'),ye=H('<div class="grid gap-2"><!> <!></div>');function re(p,i){if(new.target)return J({component:re,...p});U(i,!0);const s=r=>{var c=B(),x=F(c);{var A=_=>{var R=Le();me(R,21,()=>e().options.items??[],de,(q,w)=>{var M=we(),I=Z(M),C=ee(I,!0),S=$(I,2);{var L=y=>{var Y=he(),ne=ee(Y,!0);V(()=>G(ne,t(w).detail)),m(y,Y)};P(S,y=>{t(w).detail&&y(L)})}E(M),V(()=>G(C,t(w).label)),m(q,M)}),E(R),m(_,R)};P(x,_=>{e().kind==="confirm"&&_(A)})}m(r,c)};let e=g(i,"request",7),a=g(i,"value",15,""),l=g(i,"busy",7,!1),o=g(i,"static",7,!1),u=g(i,"onAccept",7),v=g(i,"onCancel",7),k=j(null);var K={get request(){return e()},set request(r){e(r),b()},get value(){return a()},set value(r=""){a(r),b()},get busy(){return l()},set busy(r=!1){l(r),b()},get static(){return o()},set static(r=!1){o(r),b()},get onAccept(){return u()},set onAccept(r){u(r),b()},get onCancel(){return v()},set onCancel(r){v(r),b()},$set:Q,$on:(r,c)=>T(i,r,c)},n=B(),d=F(n);{var N=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_bulkActionConfirm_confirm_label()),x=f(()=>e().options.cancelLabel??D.modals_bulkActionConfirm_cancel_label()),A=f(()=>e().options.destructive??!1),_=f(()=>e().options.items?.length?s:void 0);be(r,{open:!0,get static(){return o()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return t(c)},get cancelLabel(){return t(x)},get destructive(){return t(A)},get details(){return t(_)},get busy(){return l()},onConfirm:()=>u()(a()),get onCancel(){return v()}})}},W=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_input_confirm_label()),x=f(()=>e().options.cancelLabel??D.modals_input_cancel_label()),A=f(()=>!e().options.field.required||a().trim().length>0);te(r,{open:!0,get static(){return o()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return t(c)},get cancelLabel(){return t(x)},get canSubmit(){return t(A)},get busy(){return l()},get initialFocus(){return t(k)},onSubmit:()=>u()(a()),get onCancel(){return v()},children:(_,R)=>{var q=ye(),w=Z(q);{var M=C=>{ge(C,{for:"confirm-prompt-field",children:(S,L)=>{ie();var y=se();V(()=>G(y,e().options.field.label)),m(S,y)},$$slots:{default:!0}})};P(w,C=>{e().options.field.label&&C(M)})}var I=$(w,2);{let C=f(()=>e().options.field.type??"text"),S=f(()=>e().options.field.label?void 0:e().options.title);pe(I,{id:"confirm-prompt-field",get type(){return t(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return t(S)},get ref(){return t(k)},set ref(L){h(k,L,!0)},get value(){return a()},set value(L){a(L)}})}E(q),m(_,q)},$$slots:{default:!0}})}},z=r=>{{let c=f(()=>e().options.confirmLabel??D.modals_input_confirm_label());te(r,{open:!0,get static(){return o()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return t(c)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return l()},onSubmit:()=>u()(a()),onCancel:()=>u()(a())})}};P(d,r=>{e()?.kind==="confirm"?r(N):e()?.kind==="prompt"?r(W,1):e()?.kind==="alert"&&r(z,2)})}return m(p,n),X(K)}function ke(p,i){if(new.target)return J({component:ke,...p});U(i,!0);let s=j(null),e=j(""),a=j(!1);oe(()=>ve(n=>{h(s,n,!0),h(e,n?.kind==="prompt"?n.options.field.initialValue??"":"",!0),h(a,!1)}));function l(){!t(s)||t(a)||O(t(s).id,t(s).kind==="confirm"?!1:null)}async function o(){if(!t(s)||t(a))return;const n=t(s);h(a,!0);try{n.kind==="confirm"?(await n.options.onConfirm?.(),O(n.id,!0)):n.kind==="prompt"?(await n.options.onConfirm?.(t(e).trim()),O(n.id,t(e).trim())):O(n.id,void 0)}catch(d){throw console.error("Confirm action failed:",d),h(a,!1),d}}var u={$set:Q,$on:(n,d)=>T(i,n,d)},v=B(),k=F(v);{var K=n=>{var d=B(),N=F(d);fe(N,()=>t(s).id,W=>{re(W,{get request(){return t(s)},get busy(){return t(a)},onAccept:o,onCancel:l,get value(){return t(e)},set value(z){h(e,z,!0)}})}),m(n,d)};P(k,n=>{t(s)&&n(K)})}return m(p,v),X(u)}export{ke as C,Ce as L};
@@ -1,4 +1,4 @@
1
- import{t as Jt,bo as v,bm as F,bw as Xt,bs as Ye,bq as Zt,b as Qt}from"./CLAmm_T1.js";import{bs as en,c5 as Je,ca as xe,aD as t,bH as H,a5 as A,bA as I,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Xe,bO as J,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./3SdAC2_C.js";import{i as me}from"./BFgvMDua.js";import{g as on,i as rn}from"./B1CKzIA2.js";import{f as ln}from"./CcJmuwXr.js";import{f as cn}from"./BPQFiQQc.js";import{k as dn}from"./ByyFoG6W.js";import{JH as Se,ol as fn,Ad as un,sI as bt,on as hn,ad as kt}from"./B9vHutcJ.js";import{b$ as gn,dI as vn}from"./C2UL5Ler.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./CHW1UVsO.js";import{F as wt,ba as _t}from"./DPttSllj.js";import{f as Qe}from"./nxtepGjE.js";import"./TB9r2XJy.js";import{S as Ie}from"./Dd-LQrG1.js";import{l as bn}from"./Cu5e4npY.js";import{g as kn}from"./BrMDTgLg.js";function wn(q,c,oe,Re=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,X=_n(Re)-1,De=We.split(`
1
+ import{t as Jt,bo as v,bm as F,bw as Xt,bs as Ye,bq as Zt,b as Qt}from"./CtfEuoOH.js";import{bs as en,c5 as Je,ca as xe,aD as t,bH as H,a5 as A,bA as I,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Xe,bO as J,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./3SdAC2_C.js";import{i as me}from"./DynUeYUu.js";import{g as on,i as rn}from"./CnFZbWXv.js";import{f as ln}from"./B26ZHg3s.js";import{f as cn}from"./BkcCJyDK.js";import{k as dn}from"./DoB-G8kB.js";import{JH as Se,ol as fn,Ad as un,sI as bt,on as hn,ad as kt}from"./CiKoEJ2m.js";import{b$ as gn,dI as vn}from"./iQDlfKDR.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./BLfqsc2a.js";import{F as wt,ba as _t}from"./COofQgO0.js";import{f as Qe}from"./D9R5fzn8.js";import"./CT8vPg_p.js";import{S as Ie}from"./aWBSU8IQ.js";import{l as bn}from"./DMEIbJII.js";import{g as kn}from"./BGeImWEk.js";function wn(q,c,oe,Re=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,X=_n(Re)-1,De=We.split(`
2
2
  `);let s=0,R=0,le=!1;for(const $ of De)if($.startsWith("@@")){le=!0;const Z=$.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);Z&&(R=parseInt(Z[1],10),s=parseInt(Z[2],10))}else le&&($.startsWith("+")?(re.add(s+X),s++):$.startsWith("-")?(pe.add(R+X),R++):$.startsWith(" ")&&(s++,R++));return{additions:re,deletions:pe}}function _n(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),In=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),Rn=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Jt({component:Dn,...q});en(c,!0);const oe=()=>Ye(yt,"$read$",re),Re=()=>Ye(It,"$workspace$",re),We=()=>Ye(Rt,"$workingTreeFileContentStore",re),[re,pe]=Zt(),X=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),R=v(c,"active",7,!0),le=v(c,"workspaceId",7),$=v(c,"viewMode",7,"unified"),Z=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Ae=v(c,"lineWrapping",7,!1),M=v(c,"onStageHunk",7),U=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Me=v(c,"refreshKey",7),Ue=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),$e=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Je(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),Be=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,Be),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),B=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?Ut(t(Q).chunk,t(ee)):""),xt=d(()=>!t(B)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
3
3
  `.repeat(W()-1):""),St=d(()=>t(st)+t(B)),Ht=d(()=>t(st)+t(V));let w=ae(null),Ke=ae(null),we=null,_e=ae(!1);const It=vn(de),at=pt(void 0),ot=pt(""),Rt=dn(ot,at),rt=d(Re),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Mt(t(Le)));let Ce=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t(B))}:off${W()}`:void 0),At=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Mt(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function Ut(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
4
4
  `)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
@@ -1 +1 @@
1
- var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./uXuxG9cN.js";import{u as J,o as T,_ as C,s as b,l as _,n as U}from"./CIyUrgF0.js";import{bm as $}from"./CLAmm_T1.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ce(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ae=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:C(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:_("backoff"),retryAt:b()}),T({state:_("unresolved"),reason:C(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),_e=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function Ne(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,R){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=R,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteMachineClaim","machineOrder","remoteLinkTraffic","cloudMachines","cloudMachineEntries","cloudMachineProviders"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const N=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:_(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:C(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:C(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==N)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:N,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:N,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,Re=1e3,ye=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??Re,this.maxReconnectDelayMs=e.maxReconnectDelayMs??ye,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const R=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of R)l();R.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const y=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(R.add(l),()=>{R.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await y(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&y("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,R=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},R),g=y=>{clearTimeout(c),r(E(y))},M=y=>{if(f)return;if(this.disposed||this.socket!==y){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===y&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{y.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let A=null;const I=new Set;function De(s){A=s;for(const e of[...I])e(s)}function Ue(){return A}function Le(s){return I.add(s),A&&s(A),()=>I.delete(s)}export{u as B,Oe as M,_e as P,Ie as R,Ae as a,Ce as b,He as c,Ne as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
1
+ var j=Object.defineProperty;var V=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>V(s,typeof e!="symbol"?e+"":e,t);import{f as x,j as G,p as z}from"./uXuxG9cN.js";import{u as J,o as T,_ as C,s as b,l as _,n as U}from"./CIyUrgF0.js";import{bm as $}from"./CtfEuoOH.js";class u extends Error{constructor(t){super(t.message);n(this,"code");n(this,"data");n(this,"rpcCode");this.name="BackendError",this.code=t.code,this.data=t.data,this.rpcCode=t.rpcCode}}function Ee(s){return!s||typeof s!="object"?!1:typeof s.rpcCode=="number"}const K=-32003;function Ce(s){return!s||typeof s!="object"?!1:s.rpcCode===K}const Ae=x.refine(s=>s.repository.provider==="github"&&s.kind==="pull-request"||s.repository.provider==="gitlab"&&s.kind==="merge-request"),Oe=J([T({state:C(["available","pending","reconnect-required","restricted","disabled","unsupported","unavailable","unknown"])}),T({state:_("backoff"),retryAt:b()}),T({state:_("unresolved"),reason:C(["missing-provenance","unverified-import","invalid-target","missing-authority","unknown"]).catch("unknown")})]).catch({state:"unknown"}),_e=T({backendId:b().min(1),sessionId:b().min(1),workspaceId:b().min(1)}).strict();function v(s){return typeof s=="number"&&Number.isSafeInteger(s)&&s>=1}function Ne(s){if(s.resource||s.monitorAvailability||s.title===null||s.url===null||s.lastSnapshot===null)return!1;const e=s.lastSnapshot;return!e||!e.availability&&e.isDraft!==null&&e.hasConflicts!==null&&e.isBehind!==null&&Object.values(e.checks).every(t=>t!==null)&&e.approvals.decision!==null&&e.approvals.have!==null&&e.approvals.changesRequested!==null}const Ie=new Set(["agent.getConversation","agent.listUserMessages","agent.getMessageBlock","chat.subscribe","chat.unsubscribe"]);class Y{constructor(e,t,i,o,a,d,R){n(this,"ready");n(this,"acknowledged",!1);n(this,"closed",!1);n(this,"id",0);n(this,"pending",new Map);n(this,"listeners",new Set);n(this,"rejectReady");n(this,"timer");this.socket=e,this.currentSource=o,this.timeoutMs=a,this.onFailure=R,this.ready=new Promise((m,r)=>{this.rejectReady=r,e.onopen=()=>{if(!this.current())return this.fail();this.send("client.hello",{clientId:t,connectionRole:"review-monitor",capabilities:{reviewMonitoring:i}}).then(f=>{const c=f;if(!this.current()||c?.clientId!==t||c?.connectionRole!=="review-monitor"||!v(c?.server?.capabilities?.reviewMonitoring))return this.fail();this.acknowledged=!0,clearTimeout(this.timer),m()},()=>this.fail())}}),this.timer=setTimeout(()=>this.fail(),d),e.onerror=()=>this.fail(),e.onclose=()=>this.fail(),e.onmessage=({data:m})=>{if(!this.current()||typeof m!="string")return;let r;try{r=JSON.parse(m)}catch{return}if(!r||typeof r!="object")return;if(typeof r.method=="string"){if(r.id!=null){try{e.send(JSON.stringify({jsonrpc:"2.0",id:r.id,error:{code:-32601,message:"Method not found"}}))}catch{this.fail()}return}if(this.acknowledged)for(const c of[...this.listeners])c({method:r.method,params:r.params});return}if(typeof r.id!="number")return;const f=this.pending.get(r.id);if(f)if(this.pending.delete(r.id),clearTimeout(f.timer),r.error){const c=r.error.data,g=c&&typeof c=="object"&&"code"in c&&typeof c.code=="string"?c.code:"SERVER_ERROR";f.reject(new u({code:g,message:typeof r.error.message=="string"?r.error.message:"Monitor request failed",data:c,rpcCode:typeof r.error.code=="number"?r.error.code:void 0}))}else f.resolve(r.result)}}current(){return!this.closed&&this.currentSource()}onNotification(e){return this.listeners.add(e),()=>this.listeners.delete(e)}request(e,t){return!this.acknowledged||e==="client.hello"?Promise.reject(this.unavailable()):this.send(e,t)}close(){if(this.closed)return;this.closed=!0,this.acknowledged=!1,clearTimeout(this.timer);const e=this.unavailable();this.rejectReady(e);for(const t of this.pending.values())clearTimeout(t.timer),t.reject(e);this.pending.clear(),this.listeners.clear(),this.socket.onopen=this.socket.onmessage=this.socket.onerror=this.socket.onclose=null;try{this.socket.close()}catch{}}fail(){this.closed||(this.close(),this.onFailure())}unavailable(){return new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor attachment unavailable"})}send(e,t){if(!this.current())return Promise.reject(this.unavailable());const i=++this.id;return new Promise((o,a)=>{const d=setTimeout(()=>{this.pending.delete(i),a(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`}))},this.timeoutMs);this.pending.set(i,{resolve:o,reject:a,timer:d});try{this.socket.send(JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:t}))}catch{this.fail()}})}}const X=["agentNodes","localNodeIsolation","agentPlatformRouting","workspaceMembershipEvents","rawScreenshotRetention","chiefAttachments","noteTruncatedRead","remoteMachines","remoteInitialAgent","remoteMachineClaim","machineOrder","remoteLinkTraffic","cloudMachines","cloudMachineEntries","cloudMachineProviders"];function Q(s){return Object.freeze(Object.fromEntries(X.map(e=>[e,s?.[e]===1?1:0])))}function Z(s){if(!G(s,11,1))throw new Error($.files_secondaryRoot_unsupported_error())}function ee(s,e,t){te(s,e)&&Z(t)}function te(s,e){if(s!=="file.read"&&s!=="file.readChunk")return!1;const t=e?.gitRootId;return typeof t=="string"&&!!t.trim()}const N=-32012,se="system.startupStatus",ne=1e3,L=1e3,F=3e4,w=U().int().nonnegative().max(Number.MAX_SAFE_INTEGER),ie=T({completedNotes:w,totalNotes:w,processedSourceBytes:w,totalSourceBytes:w}).refine(s=>s.completedNotes<=s.totalNotes&&s.processedSourceBytes<=s.totalSourceBytes),oe=T({startupStatus:_(1),daemonVersion:b().min(1).optional(),attemptId:b().min(1),phase:C(["preparing","indexing","finalizing","ready","failed"]),elapsedMs:w,phaseElapsedMs:w,progressAgeMs:w,retryAfterMs:U().int().min(L).max(F).optional(),progress:ie.optional(),estimatedRemainingMs:w.optional(),finalizingStep:C(["anchors","committing","services"]).optional(),failure:T({code:b().min(1),message:b().min(1)}).optional()}).refine(s=>(s.phase==="ready"||s.phase==="failed"?s.retryAfterMs===void 0:s.retryAfterMs!==void 0)&&(s.phase==="finalizing"?s.finalizingStep!==void 0:s.finalizingStep===void 0)&&(s.phase==="failed"?s.failure!==void 0:s.failure===void 0)&&(s.estimatedRemainingMs===void 0||s.phase==="indexing"));function B(s){const e=oe.safeParse(s);return e.success?e.data:null}function P(s){const e=typeof s=="number"&&Number.isFinite(s)?s:ne;return Math.min(F,Math.max(L,e))}function re(s){const e=s;return typeof e.rpcCode=="number"?e.rpcCode:typeof e.code=="number"?e.code:void 0}function q(s){if(!s||typeof s!="object"||re(s)!==N)return;const e=s.data??{},t=B(e.startup);if(e.code==="daemon-startup-failed"){const i=e.startup?.failure?.message,o=s.message;return{kind:"failed",message:typeof i=="string"&&i.trim()?i:typeof o=="string"?o:"",snapshot:t}}if(!(e.code!=="daemon-not-ready"||e.retryable!==!0))return{kind:"not-ready",retryAfterMs:P(e.retryAfterMs),snapshot:t}}function D(s){const e=s.snapshot??void 0;return s.state==="failed"?{code:N,message:"Daemon startup failed",data:{code:"daemon-startup-failed",retryable:!1,startup:e}}:{code:N,message:"Daemon not ready",data:{code:"daemon-not-ready",retryable:!0,retryAfterMs:P(e?.retryAfterMs),startup:e}}}const ae=5e3,ce=5e3,le=3e4;function he(s){const e=s.snapshot;return JSON.stringify([s.state,s.available,e?.attemptId,e?.phase,e?.finalizingStep,e?.progress?.completedNotes,e?.progress?.totalNotes,e?.estimatedRemainingMs===void 0,(e?.progressAgeMs??0)>=le])}class ue{constructor(e){n(this,"generation",0);n(this,"timer",null);n(this,"snapshot",null);n(this,"lastKey",null);n(this,"lastPublishedAt",0);this.host=e}start(e){this.stop(),this.snapshot=e.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:e.snapshot!==null},!0),this.schedule(e.retryAfterMs)}stop(){this.generation++,this.timer&&(clearTimeout(this.timer),this.timer=null)}reset(){this.stop(),this.snapshot=null,this.lastKey=null,this.lastPublishedAt=0}publish(e,t=!1){const i=he(e),o=Date.now();!t&&i===this.lastKey&&o-this.lastPublishedAt<ce||(this.lastKey=i,this.lastPublishedAt=o,this.host.publish(e))}schedule(e){const t=this.generation;this.timer=setTimeout(()=>{if(this.timer=null,t!==this.generation)return;const i=()=>this.poll(t);this.host.track?this.host.track(i):i()},e)}async poll(e){let t;try{t=B(await this.host.request())}catch(i){if(e!==this.generation)return;const o=q(i);if(o?.kind==="failed"){this.stop(),this.host.fail(o.message,o.snapshot);return}if(o?.kind==="not-ready"){this.snapshot=o.snapshot??this.snapshot,this.publish({state:"starting",snapshot:this.snapshot,available:o.snapshot!==null}),this.schedule(o.retryAfterMs);return}this.unavailable();return}if(e===this.generation){if(t===null){this.unavailable();return}if(this.snapshot=t,t.phase==="failed"){this.stop(),this.host.fail(t.failure?.message??"",t);return}if(t.phase==="ready"){this.stop(),this.publish({state:"starting",snapshot:t,available:!0},!0),this.host.handoff(!0);return}this.publish({state:"starting",snapshot:t,available:!0}),this.schedule(P(t.retryAfterMs))}}unavailable(){this.stop(),this.publish({state:"starting",snapshot:this.snapshot,available:!1},!0),this.host.handoff(!1)}}function Pe(s=(()=>{const e=globalThis.__INTENT_RUNTIME_CONFIG__;return e?.intentdWsUrl!==void 0?e.intentdWsUrl:typeof process>"u"?void 0:""})()){if(typeof s!="string")return;const e=s.trim();if(!e)return;if(e.startsWith("/")&&!e.startsWith("//")&&!e.includes("\\")){const o=globalThis.location;if(o?.host&&(o.protocol==="http:"||o.protocol==="https:"))return`${o.protocol==="https:"?"wss:":"ws:"}//${o.host}${e}`;console.warn("[browser-websocket-transport] Ignoring same-origin WebSocket path without an HTTP page origin");return}let t;try{t=new URL(e)}catch{console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}if(t.protocol!=="ws:"&&t.protocol!=="wss:"){console.warn("[browser-websocket-transport] Ignoring browser WebSocket URL: expected ws:// or wss://");return}const i=t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]";if(t.protocol==="ws:"&&!i){console.warn("[browser-websocket-transport] Ignoring insecure remote WebSocket URL: use wss://");return}return e}function de(s){try{const e=new URL(s);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return s.replace(/[?#].*$/,"").replace(/^([a-z][a-z0-9+.-]*:\/\/)[^/]*@/i,"$1")}}const fe={[-32700]:"PARSE_ERROR",[-32600]:"INVALID_REQUEST",[-32601]:"METHOD_NOT_FOUND",[-32602]:"INVALID_PARAMS",[-32603]:"INTERNAL_ERROR"};function pe(s){const e=fe[s];return e||(s<=-32e3&&s>=-32099?"SERVER_ERROR":"UNKNOWN_ERROR")}function me(s){if(s&&typeof s=="object"&&"code"in s){const e=s.code;if(typeof e=="string"&&e.length>0)return e}}function O(s){const e=me(s.data)??pe(s.code),t=s.data&&typeof s.data=="object"?{...s.data,code:e}:typeof s.data=="string"&&s.data.length>0?{code:e,detail:s.data}:{code:e};return{code:e,message:s.message,data:t,rpcCode:s.code}}function E(s){if(s instanceof u)return s;const e=s instanceof Error?s.message:String(s);return new u({code:"TRANSPORT_ERROR",message:e,data:{code:"TRANSPORT_ERROR"}})}const ge=3e4,Re=1e3,ye=3e4,Se=1e4,be=5e3;class we{constructor(e){n(this,"url");n(this,"webSocketFactory");n(this,"requestTimeoutMs");n(this,"reconnectDelayMs");n(this,"maxReconnectDelayMs");n(this,"connectTimeoutMs");n(this,"socket",null);n(this,"connected",!1);n(this,"connecting",!1);n(this,"disposed",!1);n(this,"requestId",0);n(this,"currentReconnectDelay");n(this,"reconnectTimer",null);n(this,"connectTimer",null);n(this,"connectWaiters",[]);n(this,"clientId");n(this,"helloConfirmed",!1);n(this,"acknowledgedHello",null);n(this,"nodeCapabilities",null);n(this,"capabilityHelloGeneration",0);n(this,"reviewMonitoring");n(this,"reviewMonitoringRecipient");n(this,"reviewMonitoringEnabled",!1);n(this,"ordinaryHello",!1);n(this,"monitorRetry",null);n(this,"monitorRetirements",new Set);n(this,"monitorReady",new Set);n(this,"protocolVersion",null);n(this,"helloError",new u({code:"UNAVAILABLE",message:"client.hello has not completed on this connection"}));n(this,"pending",new Map);n(this,"hasBeenConnected",!1);n(this,"hasConnectionFailed",!1);n(this,"notificationHandlers",new Set);n(this,"reconnectedHandlers",new Set);n(this,"statusHandlers",new Set);n(this,"lastNotifiedStatus","disconnected");n(this,"startupState",null);n(this,"startupSocket",null);n(this,"startupPoller",new ue({request:()=>{const e=this.startupSocket;return e?this.requestOnSocket(se,void 0,{timeoutMs:ae},e):Promise.reject(this.startupRefusal())},publish:e=>this.updateStartup(e),handoff:e=>this.startupHandoff(e),fail:(e,t)=>this.failStartup(e,t)}));n(this,"startupHandlers",new Set);this.reviewMonitoringEnabled=v(e.reviewMonitoring),this.reviewMonitoringRecipient=v(e.reviewMonitoring)?e.reviewMonitoring:void 0,this.url=e.url,this.webSocketFactory=e.webSocketFactory??(t=>new WebSocket(t)),this.requestTimeoutMs=e.requestTimeoutMs??ge,this.reconnectDelayMs=e.reconnectDelayMs??Re,this.maxReconnectDelayMs=e.maxReconnectDelayMs??ye,this.connectTimeoutMs=e.connectTimeoutMs??Se,this.currentReconnectDelay=this.reconnectDelayMs}isAvailable(){return!this.disposed}async readPrincipal(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected(),t=this.capabilityHelloGeneration,i=structuredClone(this.acknowledgedHello),o=()=>!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t&&this.acknowledgedHello!==null;if(!o())throw this.helloError;const a=await this.requestOnSocket("principal.me",{},void 0,e);if(!o())throw new u({code:"UNAVAILABLE",message:"Principal discovery connection changed"});return{hello:i,principal:a}}async observeNodeCapabilities(){if(this.disposed)throw new u({code:"UNAVAILABLE",message:"Backend transport disposed"});const e=await this.ensureConnected();if(this.disposed||!this.connected||this.socket!==e)throw new u({code:"UNAVAILABLE",message:"Backend connection changed"});return{server:{capabilities:this.nodeCapabilities}}}onMonitorReconnected(e){this.monitorReady.add(e);const t=this.onReconnected(e);return()=>{this.monitorReady.delete(e),t()}}prMonitorBackendId(){return de(this.url)}async capturePrMonitorSession(e){const t=await this.ensureConnected(),i=this.capabilityHelloGeneration,o=()=>new u({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});let a,d=!1;const R=new Set,m=new Set,r=()=>{if(!d){d=!0,this.monitorRetirements.delete(r),a?.close();for(const l of R)l();R.clear()}},f=()=>!d&&!this.disposed&&this.connected&&this.helloConfirmed&&this.socket===t&&i===this.capabilityHelloGeneration,c=()=>f()&&(!a||a.current());if(!c())throw o();this.monitorRetirements.add(r);const g=v(this.reviewMonitoring);let M=g?"consumer-pending":"unsupported";if(g&&this.reviewMonitoringEnabled&&this.ordinaryHello&&this.clientId)try{if(a=new Y(this.webSocketFactory(this.url),this.clientId,Math.min(this.reviewMonitoringRecipient,this.reviewMonitoring),f,this.requestTimeoutMs,this.connectTimeoutMs,()=>{const l=f();r(),l&&this.scheduleMonitorRecovery(t,i)}),await a.ready,!c())throw o();M="supported"}catch(l){const p=f();throw r(),p&&this.scheduleMonitorRecovery(t,i),l}const y=(l,p)=>a?a.request(l,p):this.requestOnSocket(l,p,void 0,t);return{origin:{backendId:this.prMonitorBackendId(),sessionId:crypto.randomUUID(),workspaceId:e},support:M,onRetired(l){return c()?(R.add(l),()=>{R.delete(l)}):(l(),()=>{})},onNotification:l=>(a??this).onNotification(p=>{c()&&l(p)}),request:async(l,p)=>{if(!c()||M==="consumer-pending"||p.workspaceId!==e)throw o();const k=await y(l,p),h=l==="events.subscribe"?k?.subscriptionId:void 0;if(!c())throw h&&this.socket===t&&this.connected&&i===this.capabilityHelloGeneration&&y("events.unsubscribe",{workspaceId:e,subscriptionId:h}).catch(()=>{}),o();return h&&m.add(h),l==="events.unsubscribe"&&m.delete(String(p.subscriptionId)),k},release:async()=>{const l=c();r(),l&&!a&&await Promise.all([...m].map(p=>this.requestOnSocket("events.unsubscribe",{workspaceId:e,subscriptionId:p},void 0,t).catch(()=>{})))}}}request(e,t,i){return this.requestOnSocket(e,t,i)}requestOnSocket(e,t,i,o){if(i?.localMachine)return Promise.reject(new u({code:"UNAVAILABLE",message:"Local machine requests require the desktop bridge"}));if(this.disposed)return Promise.reject(new u({code:"UNAVAILABLE",message:"Backend transport disposed"}));if(!o&&this.startupState?.state==="starting")return Promise.reject(new u(O(D(this.startupState))));const a=++this.requestId,d=i?.timeoutMs,R=typeof d=="number"&&Number.isFinite(d)&&d>0?d:this.requestTimeoutMs;return new Promise((m,r)=>{let f=!1;const c=setTimeout(()=>{f=!0,this.pending.delete(a),r(new u({code:"TIMEOUT",message:`JSON-RPC request timed out: ${e}`,data:{code:"TIMEOUT"}}))},R),g=y=>{clearTimeout(c),r(E(y))},M=y=>{if(f)return;if(this.disposed||this.socket!==y){g(new u({code:"TRANSPORT_ERROR",message:"Connection replaced"}));return}if(e==="presence.update"&&!this.helloConfirmed){g(this.helloError);return}try{ee(e,t,this.protocolVersion)}catch(h){g(h);return}let l=e==="client.hello"&&this.clientId?{clientId:this.clientId,...t}:t;if(e==="client.hello"){const h={...l},S={...h.capabilities};Object.prototype.hasOwnProperty.call(S,"reviewMonitoring")&&(this.reviewMonitoringEnabled=this.reviewMonitoringRecipient!==void 0&&v(S.reviewMonitoring)),delete S.reviewMonitoring,delete h.connectionRole,h.capabilities!==void 0&&(h.capabilities=S),l=h}const p=JSON.stringify({jsonrpc:"2.0",id:a,method:e,params:l}),k=e==="client.hello"?++this.capabilityHelloGeneration:0;if(e==="client.hello"){this.helloConfirmed=!1,this.ordinaryHello=!1,this.clearMonitorRecovery(),this.nodeCapabilities=null,this.reviewMonitoring=void 0;for(const h of[...this.monitorRetirements])h();this.acknowledgedHello=null}this.pending.set(a,{method:e,timeout:c,resolve:h=>{if(e==="client.hello"&&this.socket===y&&k===this.capabilityHelloGeneration){const S=h?.clientId;if(typeof S=="string"&&S.length>0){const H=h.server?.capabilities;if(this.clientId=S,this.reviewMonitoring=H?.reviewMonitoring,this.ordinaryHello=h.connectionRole===void 0,this.acknowledgedHello=structuredClone(h),this.nodeCapabilities=Q(H),this.protocolVersion=z(h.protocolVersion),this.helloConfirmed=!0,this.connected)for(const W of this.monitorReady)W()}}m(h)},reject:r});try{y.send(p)}catch(h){clearTimeout(c),this.pending.delete(a),r(E(h))}};o?M(o):this.connected&&this.socket?M(this.socket):this.ensureConnected().then(M,g)})}async subscribe(e){return this.request("events.subscribe",e)}async unsubscribe(e,t){try{await this.request("events.unsubscribe",{subscriptionId:e,...t!==void 0?{workspaceId:t}:{}})}catch{}}onNotification(e){return this.notificationHandlers.add(e),()=>this.notificationHandlers.delete(e)}onReconnected(e){return this.reconnectedHandlers.add(e),()=>this.reconnectedHandlers.delete(e)}getConnectionStatus(){return this.connected?"connected":this.connecting?"connecting":"disconnected"}getStartupState(){return this.startupState}onStartupChange(e){return this.startupHandlers.add(e),()=>this.startupHandlers.delete(e)}onConnectionStatusChange(e){return this.statusHandlers.add(e),()=>this.statusHandlers.delete(e)}dispose(){if(this.disposed)return;this.disposed=!0,this.clearReconnect(),this.clearConnectTimer();const e=new u({code:"UNAVAILABLE",message:"Backend transport disposed"});this.failPending(e),this.failWaiters(e),this.teardownSocket(),this.connected=!1,this.connecting=!1,this.notifyStatusChange(),this.notificationHandlers.clear(),this.reconnectedHandlers.clear(),this.statusHandlers.clear(),this.startupHandlers.clear()}ensureConnected(){return this.connected&&this.socket?Promise.resolve(this.socket):new Promise((e,t)=>{this.connectWaiters.push({resolve:e,reject:t}),this.start()})}start(){this.disposed||this.socket||this.connecting||this.reconnectTimer||this.connect()}connect(){this.clearReconnect(),this.connecting=!0,this.notifyStatusChange();let e;try{e=this.webSocketFactory(this.url)}catch(t){this.connecting=!1,this.onConnectionFailure(E(t));return}this.socket=e,this.helloConfirmed=!1,this.connectTimer=setTimeout(()=>{this.connectTimer=null,!(this.socket!==e||this.connected)&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:`WebSocket connect attempt timed out after ${this.connectTimeoutMs}ms`})))},this.connectTimeoutMs),e.onopen=()=>{this.socket===e&&this.onConnected(e)},e.onmessage=t=>{this.socket===e&&this.onMessage(t.data)},e.onerror=null,e.onclose=()=>{this.socket===e&&(this.connecting=!1,this.onConnectionFailure(new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})))}}onConnected(e){this.clearConnectTimer(),this.performHelloHandshake(e)}async performHelloHandshake(e){try{await this.requestOnSocket("client.hello",{},{timeoutMs:Math.min(this.requestTimeoutMs,be)},e)}catch(o){if(this.disposed||this.socket!==e)return;const a=q(o);if(a){this.enterStartup(e,a);return}this.helloError=E(o)}if(this.disposed||this.socket!==e)return;this.startupPoller.reset(),this.startupSocket=null;const t=this.startupState!==null;this.startupState=null,this.connecting=!1,this.connected=!0,this.currentReconnectDelay=this.reconnectDelayMs;const i=this.hasBeenConnected||this.hasConnectionFailed;if(this.hasBeenConnected=!0,this.hasConnectionFailed=!1,this.notifyStatusChange(),t)for(const o of[...this.startupHandlers])o(null);if(this.flushWaiters(e),i)for(const o of[...this.reconnectedHandlers])o()}onConnectionFailure(e){if(this.clearConnectTimer(),!this.disposed){if(this.startupSocket!==null&&this.startupSocket===this.socket){this.startupHandoff(!0);return}this.startupState?.state==="starting"&&(this.startupPoller.reset(),this.updateStartup(null)),this.hasConnectionFailed=!0,this.connected=!1,this.notifyStatusChange(),this.teardownSocket(),this.failPending(e),this.failWaiters(e),this.scheduleReconnect()}}notifyStatusChange(){const e=this.getConnectionStatus();if(e!==this.lastNotifiedStatus){this.lastNotifiedStatus=e;for(const t of[...this.statusHandlers])t(e)}}onMessage(e){if(typeof e!="string")return;let t;try{t=JSON.parse(e)}catch{console.warn("[browser-websocket-transport] Dropping unparseable frame");return}if(!t||typeof t!="object")return;const i=typeof t.method=="string",o=t.id!=null;if(i&&o){this.sendFrame({jsonrpc:"2.0",id:t.id,error:{code:-32601,message:`Method not found: ${String(t.method)}`}});return}if(o){const a=Number(t.id),d=this.pending.get(a);if(!d)return;this.pending.delete(a),clearTimeout(d.timeout),t.error?d.reject(new u(O(t.error))):d.resolve(t.result);return}if(i){const a={method:t.method,params:t.params};for(const d of[...this.notificationHandlers])d(a)}}sendFrame(e){try{this.socket?.send(JSON.stringify(e))}catch{}}scheduleReconnect(){if(this.disposed||this.reconnectTimer)return;const e=this.currentReconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.currentReconnectDelay=Math.min(e*2,this.maxReconnectDelayMs),this.disposed||this.connect()},e)}clearReconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearConnectTimer(){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=null)}scheduleMonitorRecovery(e,t){this.monitorRetry||this.disposed||(this.monitorRetry=setTimeout(()=>{if(this.monitorRetry=null,!this.disposed&&this.connected&&this.socket===e&&this.capabilityHelloGeneration===t)for(const i of[...this.monitorReady])i()},this.reconnectDelayMs))}clearMonitorRecovery(){this.monitorRetry&&clearTimeout(this.monitorRetry),this.monitorRetry=null}teardownSocket(){this.startupPoller.stop(),this.startupSocket=null,this.reviewMonitoring=void 0,this.clearMonitorRecovery();for(const t of[...this.monitorRetirements])t();if(this.acknowledgedHello=null,this.nodeCapabilities=null,this.capabilityHelloGeneration+=1,this.protocolVersion=null,!this.socket)return;const e=this.socket;this.socket=null,e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null;try{e.close()}catch{}}updateStartup(e){this.startupState=e?Object.freeze({...e}):null;for(const t of[...this.startupHandlers])t(this.startupState)}startupRefusal(){return this.startupState?new u(O(D(this.startupState))):new u({code:"TRANSPORT_ERROR",message:"WebSocket connection closed"})}enterStartup(e,t){if(this.hasConnectionFailed=!0,t.kind==="failed"){this.failStartup(t.message,t.snapshot);return}this.startupSocket=e,this.startupPoller.start(t),this.failWaiters(this.startupRefusal())}startupHandoff(e){const t=this.startupRefusal();if(this.teardownSocket(),this.failPending(t),this.disposed)return;this.connecting=!0,this.notifyStatusChange(),this.clearReconnect();let i=this.reconnectDelayMs;e?this.currentReconnectDelay=this.reconnectDelayMs:(i=this.currentReconnectDelay,this.currentReconnectDelay=Math.min(i*2,this.maxReconnectDelayMs)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.disposed||this.connect()},i)}failStartup(e,t){this.startupPoller.stop(),this.startupSocket=null,this.hasConnectionFailed=!0,this.updateStartup({state:"failed",snapshot:t,available:t!==null,message:e}),this.connecting=!1,this.onConnectionFailure(this.startupRefusal())}failPending(e){for(const t of this.pending.values())clearTimeout(t.timeout),t.reject(e);this.pending.clear()}flushWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.resolve(e)}failWaiters(e){const t=this.connectWaiters;this.connectWaiters=[];for(const i of t)i.reject(e)}}function He(s){return new we(s)}let A=null;const I=new Set;function De(s){A=s;for(const e of[...I])e(s)}function Ue(){return A}function Le(s){return I.add(s),A&&s(A),()=>I.delete(s)}export{u as B,Oe as M,_e as P,Ie as R,Ae as a,Ce as b,He as c,Ne as d,Pe as e,v as f,Ue as g,Ee as i,Le as o,De as r,de as s};
@@ -1,3 +1,3 @@
1
- import{p as re}from"./BJ_X8eP6.js";import{Y as oe,b0 as se,aZ as de,U as le,V as ce,a_ as me,b as o,ay as g,X as R,aW as ue,b4 as xe,r as fe,q as ge,W as B,O as he,aV as P,bi as S,m as pe}from"./BgXuXJpo.js";import{p as be,i as ve}from"./nIshZjK_.js";var D="position frame",N="frame positioned",k="position relation",T="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){w={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...B().eventmodeling}),"getConfig"),w={};function O(){let e=Fe;const{ast:n}=w,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=L(i,n.dataEntities,t);e=v(e,{$kind:D,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:k,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:k,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function W(e){w.ast=void 0;const n=new Set;for(const t of e.frames){if(n.has(t.name)){const i=t.$cstNode?.range.start.line,a=i===void 0?"":` on line ${i+1}`;throw new Error(`Duplicate event modeling frame ID "${t.name}"${a}`)}n.add(t.name)}w.ast=e}o(W,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function I(e){const n=e.split(".");if(n.length===2)return n[0]}o(I,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=I(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function V(e){const{themeVariables:n}=B();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(V,"calculateEntityVisualProps");function L(e,n,t){const i=B(),a=P(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${S(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const p=n.find(y=>y.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
1
+ import{p as re}from"./CfDqTHT1.js";import{Y as oe,b0 as se,aZ as de,U as le,V as ce,a_ as me,b as o,ay as g,X as R,aW as ue,b4 as xe,r as fe,q as ge,W as B,O as he,aV as P,bi as S,m as pe}from"./DMudvlKI.js";import{p as be,i as ve}from"./DGU9U1O6.js";var D="position frame",N="frame positioned",k="position relation",T="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){w={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...B().eventmodeling}),"getConfig"),w={};function O(){let e=Fe;const{ast:n}=w,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=L(i,n.dataEntities,t);e=v(e,{$kind:D,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:k,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:k,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function W(e){w.ast=void 0;const n=new Set;for(const t of e.frames){if(n.has(t.name)){const i=t.$cstNode?.range.start.line,a=i===void 0?"":` on line ${i+1}`;throw new Error(`Duplicate event modeling frame ID "${t.name}"${a}`)}n.add(t.name)}w.ast=e}o(W,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function I(e){const n=e.split(".");if(n.length===2)return n[0]}o(I,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=I(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function V(e){const{themeVariables:n}=B();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(V,"calculateEntityVisualProps");function L(e,n,t){const i=B(),a=P(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${S(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const p=n.find(y=>y.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
2
2
  `)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;"),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(L,"calculateTextProps");function G(e,n){const t=n,i=V(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:N,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(G,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function Y(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(Y,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function j(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=Y(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const y=f[p],$=f[p-1];y.y=$.y+$.height+s.swimlaneGap}return h}o(j,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function F(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(F,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function Z(e,n){const t=n;if(z(t.index,t.frame))return[];const i=F(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;if(t.sourceFrame)a=F(e.boxes,t.sourceFrame);else{if(ve(t.frame))return[];a=q(e.boxes,i.swimlane.index,t.index-1)}return a===void 0?[]:[{$kind:T,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(Z,"decidePositionRelation");function J(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(J,"evolveRelationPositioned");var Me={[D]:G,[k]:Z},Be={[N]:j,[T]:J};function Q(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Q,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Q(e,n);return ee(e,t)}o(v,"dispatch");var M={getConfig:ke,preserveCommentsWhenParsing:!0,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:W,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),M.setAst(n),re(n,M)},"parse")},Ae=R(),$e=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Re=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
3
3
  `,"id:",n,t),!$e)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=R(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),De={draw:Re},Ne=o(e=>"","getStyles"),Te=Ne,Ie={parser:Ee,db:M,renderer:De,styles:Te};export{Ie as diagram};
@@ -1,4 +1,4 @@
1
- import{g as ae}from"./BNs9wOFa.js";import{s as ce}from"./BQh5T3Ji.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./BgXuXJpo.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
1
+ import{g as ae}from"./BQCtWEZ2.js";import{s as ce}from"./CHUYHKuh.js";import{b as l,ay as C,a1 as le,aP as he,W as de,O as G,X as B,aV as F,a8 as ge,an as ue,au as pe,H as fe}from"./DMudvlKI.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],q=[1,33],J=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:q,11:J}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:q,11:J}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,K=0,ie=2,Q=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||Q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,X,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var z="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?z="Parse error on line "+(M+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":z="Parse error on line "+(M+1)+": Unexpected "+(k==Q?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(z,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,K=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(O,[p,K,M,v.yy,S[1],f,r].concat(se)),typeof X<"u")return X;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as tt}from"./BJ_X8eP6.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./BgXuXJpo.js";import{p as ut}from"./nIshZjK_.js";import{o as mt}from"./D8rVwrWL.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
1
+ import{p as tt}from"./CfDqTHT1.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./DMudvlKI.js";import{p as ut}from"./DGU9U1O6.js";import{o as mt}from"./CiRkFhK8.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
2
2
  .pieCircle{
3
3
  stroke: ${t.pieStrokeColor};
4
4
  stroke-width : ${t.pieStrokeWidth};
@@ -1,4 +1,4 @@
1
- var nt=t=>{throw TypeError(t)};var st=(t,r,e)=>r.has(t)||nt("Cannot "+e);var m=(t,r,e)=>(st(t,r,"read from private field"),e?e.call(t):r.get(t)),F=(t,r,e)=>r.has(t)?nt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),N=(t,r,e,n)=>(st(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);import{O as lt,bR as _t,l as wt,B as Ft,R as Nt,as as kt,c5 as mt,T as Ct,b1 as Tt,bt as it,bf as R,cc as ht,K as xt,M as St,bV as ot,ao as gt,bY as at,by as Mt,bH as L,aD as ct,cd as Ot,aE as ut,c2 as At}from"./3SdAC2_C.js";import{p as j}from"./B1CKzIA2.js";const Et=()=>performance.now(),$={tick:t=>requestAnimationFrame(t),now:()=>Et(),tasks:new Set};function yt(){const t=$.now();$.tasks.forEach(r=>{r.c(t)||($.tasks.delete(r),r.f())}),$.tasks.size!==0&&$.tick(yt)}function H(t){let r;return $.tasks.size===0&&$.tick(yt),{promise:new Promise(e=>{$.tasks.add(r={c:t,f:e})}),abort(){$.tasks.delete(r)}}}function V(t,r){ht(()=>{t.dispatchEvent(new CustomEvent(r))})}function Rt(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const r=t.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function ft(t){const r={},e=t.split(";");for(const n of e){const[i,s]=n.split(":");if(!i||s===void 0)break;const o=Rt(i.trim());r[o]=s.trim()}return r}const It=t=>t;let bt=null;function Yt(t){bt=t}function Jt(t,r,e){var n=bt??lt,i=n.nodes,s,o,a,c=null;i.a??={element:t,measure(){s=this.element.getBoundingClientRect()},apply(){if(a?.abort(),o=this.element.getBoundingClientRect(),s.left!==o.left||s.right!==o.right||s.top!==o.top||s.bottom!==o.bottom){const u=r()(this.element,{from:s,to:o},e?.());a=W(this.element,u,void 0,1,()=>{},()=>{a?.abort(),a=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:l}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=l;var p=t.getBoundingClientRect();if(s.left!==p.left||s.top!==p.top){var g=`translate(${s.left-p.left}px, ${s.top-p.top}px)`;d.transform=d.transform?`${d.transform} ${g}`:g}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}},i.a.element=t}function Qt(t,r,e,n){var i=(t&xt)!==0,s=(t&St)!==0,o=i&&s,a=(t&Ct)!==0,c=o?"both":i?"in":"out",u,f=r.inert,l=r.style.overflow,d,p;function g(){return ht(()=>u??=e()(r,n?.()??{},{direction:c}))}var y={is_global:a,in(){if(r.inert=f,!i){p?.abort(),p?.reset?.();return}s||d?.abort(),d=W(r,g(),p,1,()=>{V(r,"introstart")},()=>{V(r,"introend"),d?.abort(),d=u=void 0,r.style.overflow=l})},out(k){if(!s){k?.(),u=void 0;return}r.inert=!0,p=W(r,g(),d,0,()=>{V(r,"outrostart")},()=>{V(r,"outroend"),k?.()})},stop:()=>{d?.abort(),p?.abort()}},b=lt;if((b.nodes.t??=[]).push(y),i&&_t){var h=a;if(!h){for(var v=b.parent;v&&(v.f&wt)!==0;)for(;(v=v.parent)&&(v.f&Ft)===0;);h=!v||(v.f&Nt)!==0}h&&kt(()=>{mt(()=>y.in())})}}function W(t,r,e,n,i,s){var o=n===1,a=!1;if(Tt(r)){var c;return it(()=>{if(!a){var y=r({direction:o?"in":"out"});c=W(t,y,e,n,i,s)}}),{abort:()=>{a=!0,c?.abort()},deactivate:()=>c?.deactivate(),reset:()=>c?.reset(),t:()=>c?.t()??1-n}}if(e?.deactivate(),!r?.duration&&!r?.delay)return i(),s(),{abort:R,deactivate:R,reset:R,t:()=>n};const{delay:u=0,css:f,tick:l,easing:d=It}=r;var p,g=()=>1-n;return it(()=>{if(!a){var y=[];if(o&&e===void 0&&(l&&l(0,1),f)){var b=ft(f(0,1));y.push(b,b)}p=t.animate(y,{duration:u,fill:"forwards"}),p.onfinish=()=>{p.cancel(),i();var h=e?.t()??1-n;e?.abort();var v=n-h,k=r.duration*Math.abs(v),X=[];if(k>0){var Z=!1;if(f)for(var tt=Math.ceil(k/16.666666666666668),D=0;D<=tt;D+=1){var rt=h+v*d(D/tt),et=ft(f(rt,1-rt));X.push(et),Z||=et.overflow==="hidden"}Z&&(t.style.overflow="hidden"),g=()=>{var B=p.currentTime;return h+v*d(B/k)},l&&H(()=>{if(p.playState!=="running")return!1;var B=g();return l(B,1-B),!0})}p=t.animate(X,{duration:k,fill:"forwards"}),p.onfinish=()=>{g=()=>n,l?.(n,1-n),s()}}}}),{abort:()=>{a=!0,p&&(p.cancel(),p.effect=null,p.onfinish=R)},deactivate:()=>{s=R},reset:()=>{n===0&&l?.(1,0)},t:()=>g()}}function Y(t){return t}function M(t){const r=t-1;return r*r*r+1}function Xt(t){return--t*t*t*t*t+1}function pt(t){return Object.prototype.toString.call(t)==="[object Date]"}function q(t,r){if(t===r||t!==t)return()=>t;const e=typeof t;if(e!==typeof r||Array.isArray(t)!==Array.isArray(r))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const n=r.map((i,s)=>q(t[s],i));return i=>n.map(s=>s(i))}if(e==="object"){if(!t||!r)throw new Error("Object cannot be null");if(pt(t)&&pt(r)){const s=t.getTime(),a=r.getTime()-s;return c=>new Date(s+c*a)}const n=Object.keys(r),i={};return n.forEach(s=>{i[s]=q(t[s],r[s])}),s=>{const o={};return n.forEach(a=>{o[a]=i[a](s)}),o}}if(e==="number"){const n=r-t;return i=>t+i*n}return()=>r}function Pt(t,r={}){const e=Ot(t);let n,i=t;function s(o,a){if(i=o,t==null)return e.set(t=o),Promise.resolve();let c=n,u=!1,{delay:f=0,duration:l=400,easing:d=Y,interpolate:p=q}={...r,...a};if(l===0)return c&&(c.abort(),c=null),e.set(t=i),Promise.resolve();const g=$.now()+f;let y;return n=H(b=>{if(b<g)return!0;u||(y=p(t,o),typeof l=="function"&&(l=l(t,o)),u=!0),c&&(c.abort(),c=null);const h=b-g;return h>l?(e.set(t=o),!1):(e.set(t=y(d(h/l))),!0)}),n.promise}return{set:s,update:(o,a)=>s(o(i,t),a),subscribe:e.subscribe}}var _,x,P,S;const Q=class Q{constructor(r,e={}){F(this,_);F(this,x);F(this,P);F(this,S,null);N(this,_,ot(r)),N(this,x,ot(r)),N(this,P,e),gt&&(at(m(this,_),"Tween.current"),at(m(this,x),"Tween.target"))}static of(r,e){const n=new Q(r(),e);return Mt(()=>{n.set(r())}),n}set(r,e){L(m(this,x),r);let{delay:n=0,duration:i=400,easing:s=Y,interpolate:o=q}={...m(this,P),...e};if(i===0)return m(this,S)?.abort(),L(m(this,_),r),Promise.resolve();const a=$.now()+n;let c,u=!1,f=m(this,S);return N(this,S,H(l=>{if(l<a)return!0;if(!u){u=!0;const p=m(this,_).v;c=o(p,r),typeof i=="function"&&(i=i(p,r)),f?.abort(),f=null}const d=l-a;return d>i?(L(m(this,_),r),!1):(L(m(this,_),c(s(d/i))),!0)})),m(this,S).promise}get current(){return ct(m(this,_))}get target(){return ct(m(this,x))}set target(r){this.set(r)}};_=new WeakMap,x=new WeakMap,P=new WeakMap,S=new WeakMap;let K=Q;const T={fast:{settleMs:80,easing:M,exit:{duration:60,easing:M}},moderate:{settleMs:160,easing:M,exit:{duration:120,easing:M}},slow:{settleMs:240,easing:M,exit:{duration:160,easing:M}}},Zt={openMs:350,closeMs:280,reducedMs:200};var w,O,A;class tr{constructor(r,e="moderate"){F(this,w);F(this,O);F(this,A,Promise.resolve());N(this,O,T[e]),N(this,w,new K(r))}get current(){return m(this,w).current}get target(){return m(this,w).target}set target(r){this.set(r)}set(r,e){return mt(()=>{const n=e?.instant||j();return!n&&Object.is(r,m(this,w).target)?m(this,A):(m(this,w).set(m(this,w).current,{duration:0}),N(this,A,m(this,w).set(r,{duration:n?0:m(this,O).settleMs,easing:m(this,O).easing})),m(this,A))})}}w=new WeakMap,O=new WeakMap,A=new WeakMap;function jt(t,r="moderate"){const e=Pt(t);let n=t,i=Promise.resolve();const s=(o,a)=>{const c=a?.hard||j();return!c&&Object.is(o,n)||(n=o,e.set(ut(e),{duration:0}),i=e.set(o,{duration:c?0:T[r].settleMs,easing:T[r].easing})),i};return{subscribe:e.subscribe,set:s,update:(o,a)=>s(o(n,ut(e)),a)}}function rr(t,r="moderate"){const e=jt(t,r);return{subscribe:e.subscribe,set:n=>e.set(n),update:n=>e.update(n)}}function er(t){return t.exit.duration+100}const Bt=t=>t;function J(t){const r=t-1;return r*r*r+1}function vt(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function G(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}function C(t,r,e){return Number.isNaN(r)?"":`${t}: ${e*r}px;`}function Lt(t,{delay:r=0,duration:e=400,easing:n=vt,amount:i=5,opacity:s=0}={}){const o=getComputedStyle(t),a=+o.opacity,c=o.filter==="none"?"":o.filter,u=a*(1-s),[f,l]=G(i);return{delay:r,duration:e,easing:n,css:(d,p)=>`opacity: ${a-u*p}; filter: ${c} blur(${p*f}${l});`}}function $t(t,{delay:r=0,duration:e=400,easing:n=Bt}={}){const i=+getComputedStyle(t).opacity;return{delay:r,duration:e,easing:n,css:s=>`opacity: ${s*i}`}}function Vt(t,{delay:r=0,duration:e=400,easing:n=J,x:i=0,y:s=0,opacity:o=0}={}){const a=getComputedStyle(t),c=+a.opacity,u=a.transform==="none"?"":a.transform,f=c*(1-o),[l,d]=G(i),[p,g]=G(s);return{delay:r,duration:e,easing:n,css:(y,b)=>`
1
+ var nt=t=>{throw TypeError(t)};var st=(t,r,e)=>r.has(t)||nt("Cannot "+e);var m=(t,r,e)=>(st(t,r,"read from private field"),e?e.call(t):r.get(t)),F=(t,r,e)=>r.has(t)?nt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),N=(t,r,e,n)=>(st(t,r,"write to private field"),n?n.call(t,e):r.set(t,e),e);import{O as lt,bR as _t,l as wt,B as Ft,R as Nt,as as kt,c5 as mt,T as Ct,b1 as Tt,bt as it,bf as R,cc as ht,K as xt,M as St,bV as ot,ao as gt,bY as at,by as Mt,bH as L,aD as ct,cd as Ot,aE as ut,c2 as At}from"./3SdAC2_C.js";import{p as j}from"./CnFZbWXv.js";const Et=()=>performance.now(),$={tick:t=>requestAnimationFrame(t),now:()=>Et(),tasks:new Set};function yt(){const t=$.now();$.tasks.forEach(r=>{r.c(t)||($.tasks.delete(r),r.f())}),$.tasks.size!==0&&$.tick(yt)}function H(t){let r;return $.tasks.size===0&&$.tick(yt),{promise:new Promise(e=>{$.tasks.add(r={c:t,f:e})}),abort(){$.tasks.delete(r)}}}function V(t,r){ht(()=>{t.dispatchEvent(new CustomEvent(r))})}function Rt(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const r=t.split("-");return r.length===1?r[0]:r[0]+r.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function ft(t){const r={},e=t.split(";");for(const n of e){const[i,s]=n.split(":");if(!i||s===void 0)break;const o=Rt(i.trim());r[o]=s.trim()}return r}const It=t=>t;let bt=null;function Yt(t){bt=t}function Jt(t,r,e){var n=bt??lt,i=n.nodes,s,o,a,c=null;i.a??={element:t,measure(){s=this.element.getBoundingClientRect()},apply(){if(a?.abort(),o=this.element.getBoundingClientRect(),s.left!==o.left||s.right!==o.right||s.top!==o.top||s.bottom!==o.bottom){const u=r()(this.element,{from:s,to:o},e?.());a=W(this.element,u,void 0,1,()=>{},()=>{a?.abort(),a=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:l}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=l;var p=t.getBoundingClientRect();if(s.left!==p.left||s.top!==p.top){var g=`translate(${s.left-p.left}px, ${s.top-p.top}px)`;d.transform=d.transform?`${d.transform} ${g}`:g}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}},i.a.element=t}function Qt(t,r,e,n){var i=(t&xt)!==0,s=(t&St)!==0,o=i&&s,a=(t&Ct)!==0,c=o?"both":i?"in":"out",u,f=r.inert,l=r.style.overflow,d,p;function g(){return ht(()=>u??=e()(r,n?.()??{},{direction:c}))}var y={is_global:a,in(){if(r.inert=f,!i){p?.abort(),p?.reset?.();return}s||d?.abort(),d=W(r,g(),p,1,()=>{V(r,"introstart")},()=>{V(r,"introend"),d?.abort(),d=u=void 0,r.style.overflow=l})},out(k){if(!s){k?.(),u=void 0;return}r.inert=!0,p=W(r,g(),d,0,()=>{V(r,"outrostart")},()=>{V(r,"outroend"),k?.()})},stop:()=>{d?.abort(),p?.abort()}},b=lt;if((b.nodes.t??=[]).push(y),i&&_t){var h=a;if(!h){for(var v=b.parent;v&&(v.f&wt)!==0;)for(;(v=v.parent)&&(v.f&Ft)===0;);h=!v||(v.f&Nt)!==0}h&&kt(()=>{mt(()=>y.in())})}}function W(t,r,e,n,i,s){var o=n===1,a=!1;if(Tt(r)){var c;return it(()=>{if(!a){var y=r({direction:o?"in":"out"});c=W(t,y,e,n,i,s)}}),{abort:()=>{a=!0,c?.abort()},deactivate:()=>c?.deactivate(),reset:()=>c?.reset(),t:()=>c?.t()??1-n}}if(e?.deactivate(),!r?.duration&&!r?.delay)return i(),s(),{abort:R,deactivate:R,reset:R,t:()=>n};const{delay:u=0,css:f,tick:l,easing:d=It}=r;var p,g=()=>1-n;return it(()=>{if(!a){var y=[];if(o&&e===void 0&&(l&&l(0,1),f)){var b=ft(f(0,1));y.push(b,b)}p=t.animate(y,{duration:u,fill:"forwards"}),p.onfinish=()=>{p.cancel(),i();var h=e?.t()??1-n;e?.abort();var v=n-h,k=r.duration*Math.abs(v),X=[];if(k>0){var Z=!1;if(f)for(var tt=Math.ceil(k/16.666666666666668),D=0;D<=tt;D+=1){var rt=h+v*d(D/tt),et=ft(f(rt,1-rt));X.push(et),Z||=et.overflow==="hidden"}Z&&(t.style.overflow="hidden"),g=()=>{var B=p.currentTime;return h+v*d(B/k)},l&&H(()=>{if(p.playState!=="running")return!1;var B=g();return l(B,1-B),!0})}p=t.animate(X,{duration:k,fill:"forwards"}),p.onfinish=()=>{g=()=>n,l?.(n,1-n),s()}}}}),{abort:()=>{a=!0,p&&(p.cancel(),p.effect=null,p.onfinish=R)},deactivate:()=>{s=R},reset:()=>{n===0&&l?.(1,0)},t:()=>g()}}function Y(t){return t}function M(t){const r=t-1;return r*r*r+1}function Xt(t){return--t*t*t*t*t+1}function pt(t){return Object.prototype.toString.call(t)==="[object Date]"}function q(t,r){if(t===r||t!==t)return()=>t;const e=typeof t;if(e!==typeof r||Array.isArray(t)!==Array.isArray(r))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const n=r.map((i,s)=>q(t[s],i));return i=>n.map(s=>s(i))}if(e==="object"){if(!t||!r)throw new Error("Object cannot be null");if(pt(t)&&pt(r)){const s=t.getTime(),a=r.getTime()-s;return c=>new Date(s+c*a)}const n=Object.keys(r),i={};return n.forEach(s=>{i[s]=q(t[s],r[s])}),s=>{const o={};return n.forEach(a=>{o[a]=i[a](s)}),o}}if(e==="number"){const n=r-t;return i=>t+i*n}return()=>r}function Pt(t,r={}){const e=Ot(t);let n,i=t;function s(o,a){if(i=o,t==null)return e.set(t=o),Promise.resolve();let c=n,u=!1,{delay:f=0,duration:l=400,easing:d=Y,interpolate:p=q}={...r,...a};if(l===0)return c&&(c.abort(),c=null),e.set(t=i),Promise.resolve();const g=$.now()+f;let y;return n=H(b=>{if(b<g)return!0;u||(y=p(t,o),typeof l=="function"&&(l=l(t,o)),u=!0),c&&(c.abort(),c=null);const h=b-g;return h>l?(e.set(t=o),!1):(e.set(t=y(d(h/l))),!0)}),n.promise}return{set:s,update:(o,a)=>s(o(i,t),a),subscribe:e.subscribe}}var _,x,P,S;const Q=class Q{constructor(r,e={}){F(this,_);F(this,x);F(this,P);F(this,S,null);N(this,_,ot(r)),N(this,x,ot(r)),N(this,P,e),gt&&(at(m(this,_),"Tween.current"),at(m(this,x),"Tween.target"))}static of(r,e){const n=new Q(r(),e);return Mt(()=>{n.set(r())}),n}set(r,e){L(m(this,x),r);let{delay:n=0,duration:i=400,easing:s=Y,interpolate:o=q}={...m(this,P),...e};if(i===0)return m(this,S)?.abort(),L(m(this,_),r),Promise.resolve();const a=$.now()+n;let c,u=!1,f=m(this,S);return N(this,S,H(l=>{if(l<a)return!0;if(!u){u=!0;const p=m(this,_).v;c=o(p,r),typeof i=="function"&&(i=i(p,r)),f?.abort(),f=null}const d=l-a;return d>i?(L(m(this,_),r),!1):(L(m(this,_),c(s(d/i))),!0)})),m(this,S).promise}get current(){return ct(m(this,_))}get target(){return ct(m(this,x))}set target(r){this.set(r)}};_=new WeakMap,x=new WeakMap,P=new WeakMap,S=new WeakMap;let K=Q;const T={fast:{settleMs:80,easing:M,exit:{duration:60,easing:M}},moderate:{settleMs:160,easing:M,exit:{duration:120,easing:M}},slow:{settleMs:240,easing:M,exit:{duration:160,easing:M}}},Zt={openMs:350,closeMs:280,reducedMs:200};var w,O,A;class tr{constructor(r,e="moderate"){F(this,w);F(this,O);F(this,A,Promise.resolve());N(this,O,T[e]),N(this,w,new K(r))}get current(){return m(this,w).current}get target(){return m(this,w).target}set target(r){this.set(r)}set(r,e){return mt(()=>{const n=e?.instant||j();return!n&&Object.is(r,m(this,w).target)?m(this,A):(m(this,w).set(m(this,w).current,{duration:0}),N(this,A,m(this,w).set(r,{duration:n?0:m(this,O).settleMs,easing:m(this,O).easing})),m(this,A))})}}w=new WeakMap,O=new WeakMap,A=new WeakMap;function jt(t,r="moderate"){const e=Pt(t);let n=t,i=Promise.resolve();const s=(o,a)=>{const c=a?.hard||j();return!c&&Object.is(o,n)||(n=o,e.set(ut(e),{duration:0}),i=e.set(o,{duration:c?0:T[r].settleMs,easing:T[r].easing})),i};return{subscribe:e.subscribe,set:s,update:(o,a)=>s(o(n,ut(e)),a)}}function rr(t,r="moderate"){const e=jt(t,r);return{subscribe:e.subscribe,set:n=>e.set(n),update:n=>e.update(n)}}function er(t){return t.exit.duration+100}const Bt=t=>t;function J(t){const r=t-1;return r*r*r+1}function vt(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function G(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}function C(t,r,e){return Number.isNaN(r)?"":`${t}: ${e*r}px;`}function Lt(t,{delay:r=0,duration:e=400,easing:n=vt,amount:i=5,opacity:s=0}={}){const o=getComputedStyle(t),a=+o.opacity,c=o.filter==="none"?"":o.filter,u=a*(1-s),[f,l]=G(i);return{delay:r,duration:e,easing:n,css:(d,p)=>`opacity: ${a-u*p}; filter: ${c} blur(${p*f}${l});`}}function $t(t,{delay:r=0,duration:e=400,easing:n=Bt}={}){const i=+getComputedStyle(t).opacity;return{delay:r,duration:e,easing:n,css:s=>`opacity: ${s*i}`}}function Vt(t,{delay:r=0,duration:e=400,easing:n=J,x:i=0,y:s=0,opacity:o=0}={}){const a=getComputedStyle(t),c=+a.opacity,u=a.transform==="none"?"":a.transform,f=c*(1-o),[l,d]=G(i),[p,g]=G(s);return{delay:r,duration:e,easing:n,css:(y,b)=>`
2
2
  transform: ${u} translate(${(1-y)*l}${d}, ${(1-y)*p}${g});
3
3
  opacity: ${c-f*b}`}}var U=!1;function Wt(t,{delay:r=0,duration:e=400,easing:n=J,axis:i="y"}={}){const s=getComputedStyle(t);gt&&!U&&/(contents|inline|table)/.test(s.display)&&(U=!0,Promise.resolve().then(()=>U=!1),At(s.display));const o=+s.opacity,a=i==="y"?"height":"width",c=parseFloat(s[a]),u=i==="y"?["top","bottom"]:["left","right"],f=u.map(h=>`${h[0].toUpperCase()}${h.slice(1)}`),l=parseFloat(s[`padding${f[0]}`]),d=parseFloat(s[`padding${f[1]}`]),p=parseFloat(s[`margin${f[0]}`]),g=parseFloat(s[`margin${f[1]}`]),y=parseFloat(s[`border${f[0]}Width`]),b=parseFloat(s[`border${f[1]}Width`]);return{delay:r,duration:e,easing:n,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*o};`+C(a,c,h)+C(`padding-${u[0]}`,l,h)+C(`padding-${u[1]}`,d,h)+C(`margin-${u[0]}`,p,h)+C(`margin-${u[1]}`,g,h)+C(`border-${u[0]}-width`,y,h)+C(`border-${u[1]}-width`,b,h)+`min-${a}: 0`}}function qt(t,{delay:r=0,duration:e=400,easing:n=J,start:i=0,opacity:s=0}={}){const o=getComputedStyle(t),a=+o.opacity,c=o.transform==="none"?"":o.transform,u=1-i,f=a*(1-s);return{delay:r,duration:e,easing:n,css:(l,d)=>`
4
4
  transform: ${c} scale(${1-u*d});