@intent-hq/web 2.370.0 → 2.370.2

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 (251) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{B-kUJzil.js → 2fnkFLNz.js} +1 -1
  3. package/web/app/immutable/chunks/{DbCFTbwM.js → 37RwnxdA.js} +1 -1
  4. package/web/app/immutable/chunks/{D5_auhOU.js → 5LALF9-w.js} +2 -2
  5. package/web/app/immutable/chunks/{eCVtubQ8.js → 5eDYSo3l.js} +1 -1
  6. package/web/app/immutable/chunks/{BEV9WkWU.js → 5kePy1TE.js} +1 -1
  7. package/web/app/immutable/chunks/{EzpfJOSe.js → 61v4Xd-q.js} +1 -1
  8. package/web/app/immutable/chunks/{D9MwZkzV.js → 6VefuM40.js} +1 -1
  9. package/web/app/immutable/chunks/{1pIqWRUk.js → 711s5WU0.js} +1 -1
  10. package/web/app/immutable/chunks/{CwWm64yZ.js → 8kPgwy6s.js} +1 -1
  11. package/web/app/immutable/chunks/{DcUCHDGY.js → AsFm-iq9.js} +1 -1
  12. package/web/app/immutable/chunks/{DFr6bn5t.js → B-7g-jyw.js} +4 -4
  13. package/web/app/immutable/chunks/{ZIOU9Sxd.js → B1tKRs9e.js} +1 -1
  14. package/web/app/immutable/chunks/{CaHds95Q.js → B3s08q4i.js} +1 -1
  15. package/web/app/immutable/chunks/{1GrJvO3a.js → B4F8uEiO.js} +1 -1
  16. package/web/app/immutable/chunks/{vLtMR-kj.js → B4rTQlY3.js} +1 -1
  17. package/web/app/immutable/chunks/{B3Gso1ut.js → B7CIdOn0.js} +1 -1
  18. package/web/app/immutable/chunks/{CQ_NwL45.js → B7nQiJX-.js} +2 -2
  19. package/web/app/immutable/chunks/{B9BjyTgZ.js → BFgsQcq9.js} +1 -1
  20. package/web/app/immutable/chunks/{CBRZjI7P.js → BGndkjol.js} +2 -2
  21. package/web/app/immutable/chunks/{BSfkjlLx.js → BHCTYYXY.js} +1 -1
  22. package/web/app/immutable/chunks/{CYKOPxuJ.js → BIY9btQv.js} +1 -1
  23. package/web/app/immutable/chunks/{qi41b1Ac.js → BLaGtfsC.js} +1 -1
  24. package/web/app/immutable/chunks/{D6dNunKo.js → BLb6jd9K.js} +1 -1
  25. package/web/app/immutable/chunks/{DELYEsRi.js → BM1qSBOB.js} +2 -2
  26. package/web/app/immutable/chunks/{BVLa_5Le.js → BNv5miK-.js} +1 -1
  27. package/web/app/immutable/chunks/{gHT8Z5q-.js → BOHkf2gI.js} +1 -1
  28. package/web/app/immutable/chunks/{bb5Wjkri.js → BOROIf_S.js} +1 -1
  29. package/web/app/immutable/chunks/{t7yAUuZn.js → BOWO4Ybr.js} +2 -2
  30. package/web/app/immutable/chunks/{Bus1Z5ou.js → BPOdNeJW.js} +1 -1
  31. package/web/app/immutable/chunks/{C_E26DWe.js → BR1Dvtpp.js} +1 -1
  32. package/web/app/immutable/chunks/{C2Vj5Vs6.js → BR75pcGU.js} +1 -1
  33. package/web/app/immutable/chunks/{DSacn4II.js → BR9APAxb.js} +1 -1
  34. package/web/app/immutable/chunks/{THdp5Vpk.js → BROVvkEL.js} +1 -1
  35. package/web/app/immutable/chunks/{jG-4Z8qH.js → BS5Nujz5.js} +1 -1
  36. package/web/app/immutable/chunks/{D_hG-oZK.js → BTodhwDl.js} +1 -1
  37. package/web/app/immutable/chunks/{CSBGusi9.js → BWn2FCdq.js} +1 -1
  38. package/web/app/immutable/chunks/{VdR0DXlW.js → BWu7Gpqf.js} +47 -47
  39. package/web/app/immutable/chunks/{CGzD6XfW.js → BZJ31k0Z.js} +1 -1
  40. package/web/app/immutable/chunks/{CmW3Zqh6.js → BZWU4mlm.js} +2 -2
  41. package/web/app/immutable/chunks/{DrOwYgbZ.js → BZgI7WU1.js} +1 -1
  42. package/web/app/immutable/chunks/{DZIz7Wk9.js → BaGw_bDr.js} +1 -1
  43. package/web/app/immutable/chunks/{NQru5r2h.js → BcrA9Yen.js} +1 -1
  44. package/web/app/immutable/chunks/{BvZfa6RH.js → BdJsd1ki.js} +1 -1
  45. package/web/app/immutable/chunks/{gySpGbnA.js → Bfp4ruWu.js} +1 -1
  46. package/web/app/immutable/chunks/{B1hj1DGj.js → BgE7NCeJ.js} +1 -1
  47. package/web/app/immutable/chunks/BghZcrpF.js +1 -0
  48. package/web/app/immutable/chunks/{CY-vjmpy.js → BiVa9bC9.js} +1 -1
  49. package/web/app/immutable/chunks/{DB9n2KBT.js → Bj-9TYLg.js} +1 -1
  50. package/web/app/immutable/chunks/{CFNJHO2G.js → BkG4Behb.js} +1 -1
  51. package/web/app/immutable/chunks/{BzFy3u2D.js → BlQvrYPa.js} +1 -1
  52. package/web/app/immutable/chunks/{FtGWFokI.js → BldeOF88.js} +1 -1
  53. package/web/app/immutable/chunks/{CdOh_Fmv.js → BnA9v3pc.js} +1 -1
  54. package/web/app/immutable/chunks/{CnztNSaN.js → BoQ8Q7zJ.js} +1 -1
  55. package/web/app/immutable/chunks/{CPlH-52U.js → BpcFcSgh.js} +7 -7
  56. package/web/app/immutable/chunks/{CiZzqOpk.js → BpyEBWKW.js} +1 -1
  57. package/web/app/immutable/chunks/{DgMr61cU.js → Bq3GMUqF.js} +1 -1
  58. package/web/app/immutable/chunks/{TE7UDCh6.js → BrGoXwG8.js} +1 -1
  59. package/web/app/immutable/chunks/{CyWgrZMk.js → Bsyy-0lH.js} +5 -5
  60. package/web/app/immutable/chunks/{Chnr0_jK.js → Bvf6gH6c.js} +1 -1
  61. package/web/app/immutable/chunks/{CylWx-GB.js → BxN9s7AP.js} +1 -1
  62. package/web/app/immutable/chunks/{Dekzflbl.js → BxQi83db.js} +1 -1
  63. package/web/app/immutable/chunks/{BGT9uvaQ.js → Bzz0c_ry.js} +5 -5
  64. package/web/app/immutable/chunks/{zye35u-t.js → C-IS8SBb.js} +1 -1
  65. package/web/app/immutable/chunks/{DUGztmZo.js → C0jW3ncX.js} +1 -1
  66. package/web/app/immutable/chunks/{Bc7pHsTy.js → C1YR8Gnj.js} +1 -1
  67. package/web/app/immutable/chunks/{Blu9C_Vv.js → C289w7fG.js} +1 -1
  68. package/web/app/immutable/chunks/{C0wua3Vt.js → C2UYU20O.js} +1 -1
  69. package/web/app/immutable/chunks/{CgwFGLCK.js → C2wWLl1x.js} +1 -1
  70. package/web/app/immutable/chunks/{CjTGc2Y5.js → C30xT9-i.js} +2 -2
  71. package/web/app/immutable/chunks/{9-nUCsGi.js → C3pE6msh.js} +1 -1
  72. package/web/app/immutable/chunks/{CQHtdg39.js → C5T8uUpU.js} +1 -1
  73. package/web/app/immutable/chunks/{DeE0yn_3.js → C5pJ7DEG.js} +1 -1
  74. package/web/app/immutable/chunks/{CH7fgKro.js → C6P_twJN.js} +1 -1
  75. package/web/app/immutable/chunks/{UQXXh4U7.js → C6ROKFdp.js} +1 -1
  76. package/web/app/immutable/chunks/{YcqSYZ1W.js → C96BAoIR.js} +1 -1
  77. package/web/app/immutable/chunks/{BnNJN3Ls.js → C9AWL-_E.js} +1 -1
  78. package/web/app/immutable/chunks/{CzW29tkb.js → CAV1CzzW.js} +1 -1
  79. package/web/app/immutable/chunks/{CfUtc4-L.js → CDsbSWM0.js} +1 -1
  80. package/web/app/immutable/chunks/{DC_1j_gh.js → CELHofTd.js} +3 -3
  81. package/web/app/immutable/chunks/{Bg7YNbVH.js → CFdTsqjt.js} +1 -1
  82. package/web/app/immutable/chunks/{d1EmVp98.js → CGLbiObk.js} +1 -1
  83. package/web/app/immutable/chunks/{B-_ROixI.js → CHvjIWnN.js} +2 -2
  84. package/web/app/immutable/chunks/{CbRsc9i4.js → CI4_aI7e.js} +5 -5
  85. package/web/app/immutable/chunks/{C_-WdiR8.js → CKf0K7iH.js} +1 -1
  86. package/web/app/immutable/chunks/{CCrwZkau.js → CMYDhfVs.js} +1 -1
  87. package/web/app/immutable/chunks/{CmVXj6KK.js → CQCytUET.js} +2 -2
  88. package/web/app/immutable/chunks/CQIdhUGs.js +1 -0
  89. package/web/app/immutable/chunks/{D_-ztW_Y.js → CQiC3L5q.js} +1 -1
  90. package/web/app/immutable/chunks/{BwtGEQS3.js → CRhdiLrU.js} +1 -1
  91. package/web/app/immutable/chunks/{uCQEgTob.js → CTBZXNUF.js} +1 -1
  92. package/web/app/immutable/chunks/{BkFHmpuY.js → CUj3qXAR.js} +1 -1
  93. package/web/app/immutable/chunks/{Dv0Jc2Nv.js → CVpnQG0j.js} +1 -1
  94. package/web/app/immutable/chunks/{R2N5eDxY.js → CWOeseZJ.js} +2 -2
  95. package/web/app/immutable/chunks/{DtHX0_aW.js → CX-8a7xU.js} +2 -2
  96. package/web/app/immutable/chunks/{BhZDGIfe.js → CX-WDgpQ.js} +1 -1
  97. package/web/app/immutable/chunks/{DJFAYXyc.js → CZ0MIbMm.js} +1 -1
  98. package/web/app/immutable/chunks/{CUMRLgxB.js → C_WatYYk.js} +1 -1
  99. package/web/app/immutable/chunks/{CRY4aELR.js → CcCeOCLG.js} +4 -4
  100. package/web/app/immutable/chunks/{BX9hgO_H.js → CcYjFBrM.js} +6 -6
  101. package/web/app/immutable/chunks/{B_IEMfS6.js → Ce4DeuTo.js} +3 -3
  102. package/web/app/immutable/chunks/{CMLBE7U6.js → CmdzVgvT.js} +1 -1
  103. package/web/app/immutable/chunks/{Bvo32SXP.js → CnS7dtdu.js} +1 -1
  104. package/web/app/immutable/chunks/{9sCF_0su.js → Cnfa9ycD.js} +1 -1
  105. package/web/app/immutable/chunks/{Db8-C0Zq.js → CoDlIYWp.js} +1 -1
  106. package/web/app/immutable/chunks/{BSsEOl8-.js → CoZeNthD.js} +1 -1
  107. package/web/app/immutable/chunks/{D2dAlclh.js → Cov6EESF.js} +3 -3
  108. package/web/app/immutable/chunks/{DwXKCf3Q.js → CplGG62F.js} +1 -1
  109. package/web/app/immutable/chunks/CqCZk0ca.js +4 -0
  110. package/web/app/immutable/chunks/{qjcf4Gb9.js → Cr_u-KK4.js} +1 -1
  111. package/web/app/immutable/chunks/{BHaE4286.js → CvqKGiPA.js} +1 -1
  112. package/web/app/immutable/chunks/{B0SoVMRS.js → Cw0RkUSg.js} +1 -1
  113. package/web/app/immutable/chunks/{CzS5ny-g.js → Cxn7PlP-.js} +1 -1
  114. package/web/app/immutable/chunks/{Dsn82AW0.js → Cxs4PvAD.js} +1 -1
  115. package/web/app/immutable/chunks/{DtfuSWPd.js → Cy9k09g5.js} +1 -1
  116. package/web/app/immutable/chunks/{BAymCgEX.js → Cz-HgbT1.js} +1 -1
  117. package/web/app/immutable/chunks/{B9mj0qwd.js → CzM5SEDv.js} +1 -1
  118. package/web/app/immutable/chunks/{YV53nLSc.js → D2CiBsJQ.js} +1 -1
  119. package/web/app/immutable/chunks/{D1bivTve.js → D2dH0brU.js} +2 -2
  120. package/web/app/immutable/chunks/{DxyI4IUi.js → D2jpdqLS.js} +1 -1
  121. package/web/app/immutable/chunks/{CQAAihrI.js → D3VYu5tL.js} +1 -1
  122. package/web/app/immutable/chunks/{CKnpbRTh.js → D3gleuKc.js} +9 -9
  123. package/web/app/immutable/chunks/{CCsCF1Mh.js → D4D4msrU.js} +1 -1
  124. package/web/app/immutable/chunks/{DISyGoja.js → D5-1hxdu.js} +1 -1
  125. package/web/app/immutable/chunks/{BqxcrzZH.js → D5CXAAzn.js} +1 -1
  126. package/web/app/immutable/chunks/{Bi0vr71w.js → D5MxzPoI.js} +1 -1
  127. package/web/app/immutable/chunks/{DCW2c0FY.js → D5xUDbUx.js} +1 -1
  128. package/web/app/immutable/chunks/{BUA7BUyu.js → D6vwIrtC.js} +1 -1
  129. package/web/app/immutable/chunks/{BYMXwcID.js → D8-Qc246.js} +1 -1
  130. package/web/app/immutable/chunks/{CRNfAyhd.js → DAfOI1BG.js} +1 -1
  131. package/web/app/immutable/chunks/{BnhOIUmr.js → DDVgDlM2.js} +1 -1
  132. package/web/app/immutable/chunks/{CCSbqNiH.js → DExi1WR7.js} +1 -1
  133. package/web/app/immutable/chunks/DFMjHFLq.js +1 -0
  134. package/web/app/immutable/chunks/{NqK_XT0y.js → DFrynV0u.js} +1 -1
  135. package/web/app/immutable/chunks/{Dawt227W.js → DGQoqGp4.js} +1 -1
  136. package/web/app/immutable/chunks/{Bp098-aN.js → DJOX3PaT.js} +1 -1
  137. package/web/app/immutable/chunks/{BSD34ZVo.js → DLfLfqER.js} +1 -1
  138. package/web/app/immutable/chunks/{D1V2Et17.js → DMH0w6el.js} +1 -1
  139. package/web/app/immutable/chunks/{WlqVlpOk.js → DNF6envV.js} +1 -1
  140. package/web/app/immutable/chunks/{Iq8JI4_0.js → DNbpqTjh.js} +1 -1
  141. package/web/app/immutable/chunks/{DWEA_zul.js → DOiozQGI.js} +1 -1
  142. package/web/app/immutable/chunks/{Dp9fBXaC.js → DOwDDYVN.js} +1 -1
  143. package/web/app/immutable/chunks/{5lieSvED.js → DP7n2Ccw.js} +1 -1
  144. package/web/app/immutable/chunks/{C2YH0P-B.js → DPvT-ATr.js} +1 -1
  145. package/web/app/immutable/chunks/{BRRvOx4M.js → DQLMO9xD.js} +2 -2
  146. package/web/app/immutable/chunks/{sS3MW5B6.js → DQZlstPH.js} +1 -1
  147. package/web/app/immutable/chunks/{CADQyVDS.js → DTbH-mAR.js} +2 -2
  148. package/web/app/immutable/chunks/{CblB0zCN.js → DUAki0uS.js} +1 -1
  149. package/web/app/immutable/chunks/{fr0BmHL-.js → DUj14ka7.js} +1 -1
  150. package/web/app/immutable/chunks/{CbyU6cEf.js → DVu7tZ67.js} +1 -1
  151. package/web/app/immutable/chunks/{CBafvv8h.js → DWC3_76J.js} +1 -1
  152. package/web/app/immutable/chunks/{BpEHjU4g.js → DXtdMDwl.js} +1 -1
  153. package/web/app/immutable/chunks/{CR2m4w2U.js → DY9gJ8US.js} +1 -1
  154. package/web/app/immutable/chunks/{DIukqb9l.js → D_izGjgJ.js} +1 -1
  155. package/web/app/immutable/chunks/{D-NrCL67.js → D_pS9hme.js} +1 -1
  156. package/web/app/immutable/chunks/{Cj_UUgNI.js → DaqXt9wp.js} +1 -1
  157. package/web/app/immutable/chunks/{BvKqDQXM.js → DcnKM2c0.js} +1 -1
  158. package/web/app/immutable/chunks/{A4nvdmL6.js → DcsxLfDg.js} +1 -1
  159. package/web/app/immutable/chunks/{B2AfKG58.js → DgTfsal1.js} +2 -2
  160. package/web/app/immutable/chunks/{rB5UfCey.js → DiD2Cn17.js} +1 -1
  161. package/web/app/immutable/chunks/{R1s5ARST.js → Dk27S3e8.js} +1 -1
  162. package/web/app/immutable/chunks/{BmBa9vQp.js → DkkmguuG.js} +1 -1
  163. package/web/app/immutable/chunks/{CUdMuhJF.js → DlGpNWpV.js} +1 -1
  164. package/web/app/immutable/chunks/{Cv2YUgTX.js → DnV9eAGG.js} +1 -1
  165. package/web/app/immutable/chunks/{BulBKnVz.js → DnfgukfK.js} +1 -1
  166. package/web/app/immutable/chunks/{CA2ANaNj.js → Dnz4szur.js} +1 -1
  167. package/web/app/immutable/chunks/{Df-HaYIr.js → Do5lDWBq.js} +1 -1
  168. package/web/app/immutable/chunks/{Bqm2Rf6d.js → Dq9sK6wY.js} +1 -1
  169. package/web/app/immutable/chunks/{Caqml6gj.js → Dqa8MqiX.js} +1 -1
  170. package/web/app/immutable/chunks/{f686-QUd.js → DqvpZseI.js} +1 -1
  171. package/web/app/immutable/chunks/{cFozej4U.js → Dr1T9Ela.js} +3 -3
  172. package/web/app/immutable/chunks/{DksUdusM.js → DrBfRK-l.js} +2 -2
  173. package/web/app/immutable/chunks/{D0DIS-cT.js → DrMbcJpA.js} +1 -1
  174. package/web/app/immutable/chunks/{qvt-0QTi.js → DsGwNgOu.js} +3 -3
  175. package/web/app/immutable/chunks/{wgljT0D3.js → DuR22uzB.js} +1 -1
  176. package/web/app/immutable/chunks/DwEChUMY.js +1 -0
  177. package/web/app/immutable/chunks/{BG2RPA7A.js → DxOqqCxd.js} +2 -2
  178. package/web/app/immutable/chunks/{BDA31WCY.js → F6KnEzK2.js} +1 -1
  179. package/web/app/immutable/chunks/{UN8KT7fR.js → FhXVX7Hi.js} +1 -1
  180. package/web/app/immutable/chunks/{BCQ1W7zT.js → IbOrXYhr.js} +3 -3
  181. package/web/app/immutable/chunks/{DL1CE4TH.js → JvjGgKob.js} +1 -1
  182. package/web/app/immutable/chunks/{B-1iBpaq.js → Jx0QEit0.js} +1 -1
  183. package/web/app/immutable/chunks/{BgPtjifd.js → KEjNxHSN.js} +1 -1
  184. package/web/app/immutable/chunks/KvL2D8eF.js +1 -0
  185. package/web/app/immutable/chunks/{D6VfSAVQ.js → MmbRHAVV.js} +1 -1
  186. package/web/app/immutable/chunks/{D_r5h8IL.js → NgjMs0r6.js} +1 -1
  187. package/web/app/immutable/chunks/{DFBd8tOh.js → OK80LzXp.js} +1 -1
  188. package/web/app/immutable/chunks/{tDUnXf7O.js → QFEvVzf2.js} +1 -1
  189. package/web/app/immutable/chunks/RMFOakJ8.js +1 -0
  190. package/web/app/immutable/chunks/{ir8Qz45r.js → Rtb2u0aS.js} +1 -1
  191. package/web/app/immutable/chunks/{qHChsLZZ.js → S0vfIVN4.js} +1 -1
  192. package/web/app/immutable/chunks/{C1AEP5wW.js → SxNO1NUM.js} +1 -1
  193. package/web/app/immutable/chunks/{DZRLhNnQ.js → Tl9_Ag57.js} +1 -1
  194. package/web/app/immutable/chunks/{1DKpnRTj.js → YcLv7RIG.js} +1 -1
  195. package/web/app/immutable/chunks/{CgS_FiQI.js → YjkXFMdR.js} +1 -1
  196. package/web/app/immutable/chunks/{CbRNm5he.js → YlOhdwpJ.js} +1 -1
  197. package/web/app/immutable/chunks/{Hd1u2Z-S.js → ZiiliHwl.js} +3 -3
  198. package/web/app/immutable/chunks/{BinPWBvt.js → a-02PhaD.js} +1 -1
  199. package/web/app/immutable/chunks/{BmjF1SON.js → deZv7xr3.js} +2 -2
  200. package/web/app/immutable/chunks/{CqVZxU_G.js → e6y6K_3x.js} +1 -1
  201. package/web/app/immutable/chunks/{_EqQOSVK.js → eHZL9ha9.js} +2 -2
  202. package/web/app/immutable/chunks/{VJkCr9xp.js → eRIG79tn.js} +1 -1
  203. package/web/app/immutable/chunks/{1GGKXNxU.js → e_K38tqB.js} +1 -1
  204. package/web/app/immutable/chunks/{D69ZLPjW.js → hSiYrZoo.js} +1 -1
  205. package/web/app/immutable/chunks/{DvATy2o1.js → hqZSbKVs.js} +1 -1
  206. package/web/app/immutable/chunks/{DRy2oEmj.js → l3HuVu6N.js} +1 -1
  207. package/web/app/immutable/chunks/{Ev5lig9W.js → lUjoTdjg.js} +1 -1
  208. package/web/app/immutable/chunks/{CUNx-_2d.js → mPd0q3-n.js} +4 -4
  209. package/web/app/immutable/chunks/{B8_Ff8zl.js → mdamofpo.js} +7 -7
  210. package/web/app/immutable/chunks/{BDcauMkX.js → mwFmA_HW.js} +1 -1
  211. package/web/app/immutable/chunks/{BimRiD6s.js → nxYQz1Bp.js} +1 -1
  212. package/web/app/immutable/chunks/{DkJkWZTE.js → qOqJpb_a.js} +1 -1
  213. package/web/app/immutable/chunks/{Cgn_eC9-.js → rIUowGAi.js} +2 -2
  214. package/web/app/immutable/chunks/{DvrEye74.js → rei1qYSi.js} +1 -1
  215. package/web/app/immutable/chunks/{BR2t5nsF.js → wNJjv8Uj.js} +2 -2
  216. package/web/app/immutable/chunks/{MifrdpDQ.js → xIIgydKf.js} +1 -1
  217. package/web/app/immutable/chunks/{CqwiFk32.js → yGw_3prC.js} +1 -1
  218. package/web/app/immutable/chunks/{Cq4X6ptS.js → z2CLzpx7.js} +1 -1
  219. package/web/app/immutable/entry/{app.jT7Rd2u4.js → app.CC3URvKW.js} +2 -2
  220. package/web/app/immutable/entry/start.C3bg9se6.js +1 -0
  221. package/web/app/immutable/nodes/{0.9lwWQtfB.js → 0.C4aXi2Zc.js} +1 -1
  222. package/web/app/immutable/nodes/{1.Ck4yEk2l.js → 1.O03B6KYk.js} +1 -1
  223. package/web/app/immutable/nodes/{10.C4FEQjC7.js → 10.DSjz-a23.js} +17 -17
  224. package/web/app/immutable/nodes/{11.C-vXNNmX.js → 11.DUbB-MHX.js} +4 -4
  225. package/web/app/immutable/nodes/{13.DhKVmEQi.js → 13.DTamgdFN.js} +1 -1
  226. package/web/app/immutable/nodes/{14.INZu_e5k.js → 14.CzznX4mY.js} +1 -1
  227. package/web/app/immutable/nodes/{15.DdKSdQ-h.js → 15.BU8WwWus.js} +1 -1
  228. package/web/app/immutable/nodes/{16.Ad-t6nft.js → 16.D1WCmH9D.js} +1 -1
  229. package/web/app/immutable/nodes/{17.pLS5JsPi.js → 17.DXnAkOJb.js} +1 -1
  230. package/web/app/immutable/nodes/{18.DIVxEUeB.js → 18.BBYG39nr.js} +1 -1
  231. package/web/app/immutable/nodes/{19.BB9LuT5j.js → 19.C3kZuMc1.js} +2 -2
  232. package/web/app/immutable/nodes/2.SHzQR8g8.js +13 -0
  233. package/web/app/immutable/nodes/{20.BGTcjiLa.js → 20.DyC7cckU.js} +1 -1
  234. package/web/app/immutable/nodes/{3.DRJnaOSe.js → 3.D7EtacCx.js} +1 -1
  235. package/web/app/immutable/nodes/{4.p67SnElB.js → 4._-Ygm1PE.js} +1 -1
  236. package/web/app/immutable/nodes/{5.DRmIJA2c.js → 5.B5veLa-N.js} +1 -1
  237. package/web/app/immutable/nodes/{6.Bjeibumi.js → 6.BnrdHFCS.js} +2 -2
  238. package/web/app/immutable/nodes/{7.CjIaxqZ1.js → 7.DAUgpsnC.js} +1 -1
  239. package/web/app/immutable/nodes/{8.DAlxovqG.js → 8.Cj1FZ4Vr.js} +1 -1
  240. package/web/app/immutable/nodes/{9.BKQZzsCi.js → 9.BuIEgUbP.js} +11 -11
  241. package/web/app/version.json +1 -1
  242. package/web/index.html +12 -12
  243. package/web/app/immutable/chunks/-7AqlW5j.js +0 -1
  244. package/web/app/immutable/chunks/B1lYPzEU.js +0 -1
  245. package/web/app/immutable/chunks/C14Hgf8a.js +0 -1
  246. package/web/app/immutable/chunks/CK4eAyad.js +0 -1
  247. package/web/app/immutable/chunks/DBdkAKrm.js +0 -4
  248. package/web/app/immutable/chunks/UGr2VEtG.js +0 -1
  249. package/web/app/immutable/chunks/i8PKWJT0.js +0 -1
  250. package/web/app/immutable/entry/start.CSuXA93h.js +0 -1
  251. package/web/app/immutable/nodes/2.Bp80wZmn.js +0 -13
@@ -1 +1 @@
1
- import{vK as W,vI as R,hf as j,hg as q,e as H,IJ as K,J4 as i,a7 as z,nL as P}from"./CbRsc9i4.js";import{bm as s}from"./51_h0jm2.js";import{az as J,m as $,H as v,aB as S,g as G}from"./sS3MW5B6.js";import{w as X}from"./CnztNSaN.js";import{cu as A,cW as Q,cV as Y,c_ as Z}from"./CgwFGLCK.js";import{y as b}from"./Bqd7fdCF.js";const ee=["connected","disconnected","unreachable","revoked","update-required"],m=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),d=e=>typeof e=="string"&&e.length>0,h=e=>typeof e=="string"&&e.length>0?e:void 0,N=e=>Number.isSafeInteger(e)&&e>=0?e:0;function te(e){if(!m(e))return;const t=Array.isArray(e.providers)?e.providers.flatMap(r=>m(r)&&d(r.id)?[{id:r.id,...r.visible===!1?{visible:!1}:{},status:typeof r.status=="string"?r.status:"unknown",models:Array.isArray(r.models)?r.models.filter(o=>d(o)):[],...r.modelsStale===!0?{modelsStale:!0}:{}}]:[]):[],n=h(e.intentdVersion);return{...n?{intentdVersion:n}:{},providers:t}}function Ne(e){if(!m(e)||!d(e.id)||!d(e.name)||!d(e.fingerprint)||!ee.includes(e.state)||!Number.isInteger(e.port)||!d(e.addedAt))return null;const t=m(e.platform)&&d(e.platform.os)&&d(e.platform.arch)?{os:e.platform.os,arch:e.platform.arch}:void 0,n=te(e.capabilities),r=h(e.tcAddress),o=h(e.observedAt),c=h(e.lastConnectedAt),a=W(e.cloud),l=Number.isInteger(e.nodeProtocol)&&e.nodeProtocol>=0?e.nodeProtocol:void 0;return{id:e.id,name:e.name,...t?{platform:t}:{},hosts:Array.isArray(e.hosts)?e.hosts.filter(p=>d(p)):[],port:e.port,...r?{tcAddress:r}:{},fingerprint:e.fingerprint,state:e.state,runningAgents:N(e.runningAgents),...n?{capabilities:n}:{},...l!==void 0?{nodeProtocol:l}:{},...o?{observedAt:o}:{},addedAt:e.addedAt,...c?{lastConnectedAt:c}:{},...a?{cloud:a}:{}}}function Te(e){if(!m(e)||!d(e.credentialId)||!d(e.backendId)||!d(e.backendName)||!d(e.createdAt))return null;const t=h(e.lastUsedAt);return{credentialId:e.credentialId,backendId:e.backendId,backendName:e.backendName,createdAt:e.createdAt,...t?{lastUsedAt:t}:{},connected:e.connected===!0,runningAgents:N(e.runningAgents)}}function xe(e){const t=(typeof e=="string"?e:"").trim().toUpperCase();return t===""?null:t}function ne(e){if(!m(e)||typeof e.name!="string")return null;const t=e.name;return e.kind==="local"?{kind:"local",name:t}:e.kind==="machine"&&d(e.nodeId)?{kind:"machine",nodeId:e.nodeId,name:t}:e.kind==="cloud"&&d(e.cloudMachineId)?{kind:"cloud",cloudMachineId:e.cloudMachineId,name:t}:null}function we(e){if(!Array.isArray(e))return null;const t=[];for(const n of e){const r=ne(n);if(!r)return null;t.push(r)}return t}function re(e){return e.kind==="local"?{kind:"local"}:e.kind==="machine"?{kind:"machine",nodeId:e.nodeId}:{kind:"cloud",cloudMachineId:e.cloudMachineId}}function g(e){return e.kind==="local"?"local":e.kind==="machine"?`machine:${e.nodeId}`:`cloud:${e.cloudMachineId}`}const oe={macos:"macOS",linux:"Linux",windows:"Windows"},ae={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function f(e,t){const n=[e&&(oe[e]??e),t&&(ae[t]??t)].filter(r=>!!r);return n.length?n.join(" "):null}function ce(e){return e?.placement?.target==="remote"||b(e?.placement?.target)}const se=new Set(["running","paused","resuming","pausing","stopping"]);function ie(e,t){if(e.placementError)return null;if(e.cloudStart)return"starting";if(!e.nodeId)return e.effectiveIsolation==="pending"?"starting":null;const n=t?.cloud?.state;return n&&se.has(n)?n:e.effectiveIsolation==="pending"?"starting":null}function T(e,t){if(!e||!ce(e))return null;const n=e.nodeId??e.placement?.nodeId??"",r=t&&t.id===n?t:null;if(b(e.placement?.target))return{nodeId:n,name:e.nodeName?.trim()||j(r?.cloud?.provider??q(e.placement?.cloudMachineId)),platform:f(r?.platform?.os,r?.platform?.arch),state:"ready",cloud:{state:ie(e,r)}};const o=f(e.placement?.os,e.placement?.arch)??f(r?.platform?.os,r?.platform?.arch),c=r?.state==="revoked"?"revoked":r?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:n,name:e.nodeName?.trim()||r?.name||s.remoteAgent_location_unknownMachine(),platform:o,state:c}}function Be(e,t){if(!e)return null;const n=t&&t.id===e?t:null;return{nodeId:e,name:n?.name||s.remoteAgent_location_unknownMachine(),platform:f(n?.platform?.os,n?.platform?.arch),state:n?.state==="revoked"?"revoked":n?.state==="unreachable"?"unreachable":"ready"}}function x(e){switch(e){case"starting":return s.cloudMachines_agent_starting();case"running":return s.cloudMachines_agent_running();case"paused":return s.cloudMachines_agent_paused();case"resuming":return s.cloudMachines_agent_resuming();case"pausing":return s.cloudMachines_agent_pausing();case"stopping":return s.cloudMachines_agent_stopping();default:return null}}function De(e){const t=x(e.cloud?.state);return t?s.cloudMachines_agent_chip({machine:e.name,state:t}):e.name}function Fe(e){if(e.cloud){const n=x(e.cloud.state),r=s.remoteAgent_location_tooltipNoPlatform({machine:e.name});return n?s.remoteAgent_location_tooltipWithState({location:r,state:n}):r}const t=e.platform?s.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):s.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return s.remoteAgent_location_tooltipWithState({location:t,state:s.remoteMachines_state_unreachable_label()});case"revoked":return s.remoteAgent_location_tooltipWithState({location:t,state:s.remoteMachines_state_revoked_label()});default:return t}}function w(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"||e.cloudStart?"starting":e.setup?.state==="failed"?"setup-failed":null}function B(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const n=JSON.parse(e.slice(t+1));if(n&&typeof n=="object"&&typeof n.code=="string")return{message:e.slice(0,t).trim(),data:n}}catch{}return null}function le(e,t){const n=e.detail??"",r=B(n),o=e.code==="machine-update-required"||r?.data.code==="machine-update-required";if(o&&r?.data.reason==="prepared-checkout")return{updateRequired:o,message:s.remoteAgent_updateRequired_preparedCheckout({machine:t})};const c=R(r?.data),a=c??(e.code?R({code:e.code}):null);return a?{updateRequired:o,message:r?.message||n,cloud:a,cloudDetailKnown:!!c}:{updateRequired:o,message:r?.message||n}}function Ue(e){if(!b(e?.placement?.target)||!e.placementError||e.status!==H.Error)return null;const t=le(e.placementError,"");return t.cloud?t:null}const de=["attachments-too-large-for-machine:","node-prompt-too-large:"],ue="remote-agent-unsupported:";function C(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function Ve(e){const t=B(e)?.message??e;for(const r of de){const o=t.indexOf(r);if(o<0)continue;const c=t.slice(o+r.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),a=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(c);return a?s.remoteAgent_attachmentsTooLargeSized_error({size:C(Number(a[1])),limit:C(Number(a[2]))}):c?s.remoteAgent_attachmentsTooLarge_error({detail:c}):s.remoteAgent_attachmentsTooLargeNoDetail_error()}const n=t.indexOf(ue);return n>=0&&/attachment/i.test(t.slice(n))?s.remoteAgent_attachmentsUnsupported_error():null}function We(e){return b(e?.placement?.target)&&w(e,T(e))==="starting"}function je(e,t){if(!b(e?.placement?.target))return!1;const n=T(e,t);return n?.cloud?.state==="resuming"&&w(e,n)===null}const u="",M="cloud:";function O(e){return`${M}${e}`}function _(e){return e?.startsWith(M)&&e.slice(M.length)||null}const qe=O("e2b");function fe(e,t){return e?.find(n=>O(n.cloudMachineId)===t&&n.unavailableReason===null)}const me=new Set(["connected","disconnected"]);function pe(e){switch(e){case"unreachable":return s.remoteMachines_state_unreachable_label();case"revoked":return s.remoteMachines_state_revoked_label();case"update-required":return s.remoteMachines_state_updateRequired_label();default:return}}function k(e){return me.has(e.state)}function he({backendLabel:e,backendPlatform:t,machines:n,cloud:r,orchestrator:o=!1}){const c=[o?{id:u,label:s.remoteMachines_startOn_firstAvailable_label(),platform:null,disabled:!1,hint:s.remoteMachines_startOn_firstAvailable_hint()}:{id:u,label:e,platform:f(t?.os,t?.arch),disabled:!1},...n.map(a=>{const l=f(a.platform?.os,a.platform?.arch);return k(a)?{id:a.id,label:a.name,platform:l,disabled:!1}:{id:a.id,label:a.name,platform:l,disabled:!0,reason:pe(a.state)}})];for(const a of r??[])c.push({id:O(a.cloudMachineId),label:a.label,platform:null,kind:"cloud",disabled:a.unavailableReason!==null,...a.unavailableReason?{reason:a.unavailableReason}:a.needsProfile?{hint:s.cloudMachines_startOn_hint()}:{}});return c}function He(e){return e.find(t=>t.id===u)?.label??""}function Ke(e,t,n){if(e!==u)return _(e)?void 0:e;if(n)return t.find(r=>r.id!==u&&r.kind!=="cloud"&&!r.disabled)?.id}function ge({remoteMachinesVisible:e,supported:t,machines:n,cloud:r}){return e&&t&&(n.some(k)||(r??[]).some(o=>o.unavailableReason===null))}function be(e,t,n){if(!e)return u;if(_(e))return fe(n,e)?e:u;const r=t.find(o=>o.id===e);return r&&k(r)?r.id:u}function ze(e,{cloudEntries:t=!1,providerOf:n}={}){const r=_(e);if(r){const o=n?.(r);return t&&o&&o!=="e2b"?{target:"cloud",checkout:"isolated",cloudMachineId:r}:t?{target:"e2b",checkout:"isolated",cloudMachineId:r}:{target:"e2b",checkout:"isolated"}}return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function Je({groups:e,providerRef:t,model:n}){const r=a=>a.options.filter(l=>!l.disabled),o=e.find(a=>a.key===t),c=o?r(o):[];if(n){const a=K(n).modelId;if(c.some(l=>l.value===a))return null}else if(c.length>0)return null;if(o&&c.length>0)return{providerId:o.key,modelId:c[0].value};for(const a of e){if(a.key==="default")continue;const l=r(a);if(l.length>0)return{providerId:a.key,modelId:l[0].value}}return null}function _e(e,t,n,r){const o=e.map(g),c=o.indexOf(t),a=o.indexOf(n);if(c<0||a<0||c===a)return null;let l=a+(r==="after"?1:0);if(c<l&&(l-=1),l===c)return null;const p=[...e],[V]=p.splice(c,1);return p.splice(l,0,V),p.map(re)}function $e(e,t,n){const r=e.findIndex(c=>g(c)===t),o=e[r+n];return r<0||!o?null:_e(e,t,g(o),n===-1?"before":"after")}function Me(e,t){if(e===u)return"local";const n=t==="cloud"?_(e):null;return g(n?{kind:"cloud",cloudMachineId:n}:{kind:"machine",nodeId:e})}function E(e,t){const n=new Map(t.map((o,c)=>[g(o),c])),r=o=>n.get(Me(o.id,o.kind))??t.length;return e.map((o,c)=>({option:o,index:c})).sort((o,c)=>r(o.option)-r(c.option)||o.index-c.index).map(({option:o})=>o)}const Se=i.createSelector(e=>X.select(e)||A.select(e)),I=i.createSelector(e=>Se.select(e)&&e.remoteMachines?.supported===!0),ve=i.createSelector(e=>I.select(e)&&J.select(e)&&!A.select(e)),D=i.createSelector(e=>I.select(e)&&e.remoteMachines.machineOrder===!0&&e.remoteMachines.order!==null),L=i.createSelector(e=>D.select(e)?e.remoteMachines.order??[]:[]),Ge=i.createSelector(e=>e.remoteMachines.orderSaving!==null),y=i.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,n)=>t.name.localeCompare(n.name))),Xe=i.createSelector(e=>e.remoteMachines.localFingerprint),Qe=i.createSelector(e=>e.remoteMachines.pending),Ye=i.createSelector(e=>e.remoteMachines.failures),Ze=i.createSelector(e=>e.remoteMachines.executorBackends??[]),Ae=i.createSelector((e,t)=>{if(t===z)return s.layout_daemonStatus_localConnection_label();const n=P(e.connections.connections,t);return n?$(n):t}),Oe=i.createSelector(e=>Ae.select(e,e.connections.windowBackendId)),et=i.createSelector((e,t)=>(t?e.remoteMachines.machines[t]??e.cloudMachines?.machines[t]:void 0)??null),tt=i.createSelector((e,t)=>{const n=e.providerSettings?.profiles;return v({catalogProfiles:Z.select(e,t),defaultRemoteIncompatibility:Y.select(e,t),defaultRemoteLaunch:Q.select(e,t),profileDefaults:Object.values(n?.defaults??{}),profilesLoadStatus:n?.loadStatus??"idle"})}),nt=i.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),F=i.createSelector(e=>ge({remoteMachinesVisible:I.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:y.select(e),cloud:S(e)}));function ke(e){const t=P(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const Ie=i.createSelector(e=>{const t=A.select(e),n=he({backendLabel:Oe.select(e),backendPlatform:ke(e),machines:y.select(e),cloud:S(e),orchestrator:t});if(!D.select(e))return n;if(!t)return E(n,L.select(e));const[r,...o]=n;return[r,...E(o,L.select(e))]}),rt=i.createSelector(e=>F.select(e)?Ie.select(e):[]),ot=i.createSelector(e=>e.remoteMachines?.initialAgentPlacement===!0),at=i.createSelector((e,t,n)=>F.select(e)?be(t,y.select(e),U(e,n)):u);function U(e,t){const n=S(e);if(!n||!t)return n;const r=e.cloudMachines?.providers??{};return n.map(o=>{if(o.unavailableReason)return o;const c=G(e,t,r[o.cloudMachineId]??null);return c?{...o,unavailableReason:c}:o})}const ct=i.createSelector((e,t)=>U(e,t));export{ot as A,Xe as B,L as C,Ge as D,D as E,et as F,Ye as G,Qe as H,y as I,Se as J,I as K,tt as L,ve as M,ct as N,rt as O,Ie as P,F as Q,He as R,u as S,O as T,_ as U,Ke as V,$e as W,qe as a,Ue as b,We as c,je as d,De as e,T as f,Fe as g,w as h,xe as i,ze as j,Je as k,g as l,Be as m,f as n,_e as o,Te as p,we as q,Ne as r,le as s,Ve as t,be as u,Ae as v,Oe as w,nt as x,at as y,Ze as z};
1
+ import{vL as W,vJ as R,hf as j,hg as q,e as H,IK as K,J5 as i,a7 as z,nM as P}from"./CI4_aI7e.js";import{bm as s}from"./51_h0jm2.js";import{az as J,m as $,H as v,aB as S,g as G}from"./DQZlstPH.js";import{w as X}from"./BoQ8Q7zJ.js";import{cu as A,cW as Q,cV as Y,c_ as Z}from"./C2wWLl1x.js";import{y as b}from"./Bqd7fdCF.js";const ee=["connected","disconnected","unreachable","revoked","update-required"],m=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),d=e=>typeof e=="string"&&e.length>0,h=e=>typeof e=="string"&&e.length>0?e:void 0,N=e=>Number.isSafeInteger(e)&&e>=0?e:0;function te(e){if(!m(e))return;const t=Array.isArray(e.providers)?e.providers.flatMap(r=>m(r)&&d(r.id)?[{id:r.id,...r.visible===!1?{visible:!1}:{},status:typeof r.status=="string"?r.status:"unknown",models:Array.isArray(r.models)?r.models.filter(o=>d(o)):[],...r.modelsStale===!0?{modelsStale:!0}:{}}]:[]):[],n=h(e.intentdVersion);return{...n?{intentdVersion:n}:{},providers:t}}function Ne(e){if(!m(e)||!d(e.id)||!d(e.name)||!d(e.fingerprint)||!ee.includes(e.state)||!Number.isInteger(e.port)||!d(e.addedAt))return null;const t=m(e.platform)&&d(e.platform.os)&&d(e.platform.arch)?{os:e.platform.os,arch:e.platform.arch}:void 0,n=te(e.capabilities),r=h(e.tcAddress),o=h(e.observedAt),c=h(e.lastConnectedAt),a=W(e.cloud),l=Number.isInteger(e.nodeProtocol)&&e.nodeProtocol>=0?e.nodeProtocol:void 0;return{id:e.id,name:e.name,...t?{platform:t}:{},hosts:Array.isArray(e.hosts)?e.hosts.filter(p=>d(p)):[],port:e.port,...r?{tcAddress:r}:{},fingerprint:e.fingerprint,state:e.state,runningAgents:N(e.runningAgents),...n?{capabilities:n}:{},...l!==void 0?{nodeProtocol:l}:{},...o?{observedAt:o}:{},addedAt:e.addedAt,...c?{lastConnectedAt:c}:{},...a?{cloud:a}:{}}}function Te(e){if(!m(e)||!d(e.credentialId)||!d(e.backendId)||!d(e.backendName)||!d(e.createdAt))return null;const t=h(e.lastUsedAt);return{credentialId:e.credentialId,backendId:e.backendId,backendName:e.backendName,createdAt:e.createdAt,...t?{lastUsedAt:t}:{},connected:e.connected===!0,runningAgents:N(e.runningAgents)}}function xe(e){const t=(typeof e=="string"?e:"").trim().toUpperCase();return t===""?null:t}function ne(e){if(!m(e)||typeof e.name!="string")return null;const t=e.name;return e.kind==="local"?{kind:"local",name:t}:e.kind==="machine"&&d(e.nodeId)?{kind:"machine",nodeId:e.nodeId,name:t}:e.kind==="cloud"&&d(e.cloudMachineId)?{kind:"cloud",cloudMachineId:e.cloudMachineId,name:t}:null}function we(e){if(!Array.isArray(e))return null;const t=[];for(const n of e){const r=ne(n);if(!r)return null;t.push(r)}return t}function re(e){return e.kind==="local"?{kind:"local"}:e.kind==="machine"?{kind:"machine",nodeId:e.nodeId}:{kind:"cloud",cloudMachineId:e.cloudMachineId}}function g(e){return e.kind==="local"?"local":e.kind==="machine"?`machine:${e.nodeId}`:`cloud:${e.cloudMachineId}`}const oe={macos:"macOS",linux:"Linux",windows:"Windows"},ae={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function f(e,t){const n=[e&&(oe[e]??e),t&&(ae[t]??t)].filter(r=>!!r);return n.length?n.join(" "):null}function ce(e){return e?.placement?.target==="remote"||b(e?.placement?.target)}const se=new Set(["running","paused","resuming","pausing","stopping"]);function ie(e,t){if(e.placementError)return null;if(e.cloudStart)return"starting";if(!e.nodeId)return e.effectiveIsolation==="pending"?"starting":null;const n=t?.cloud?.state;return n&&se.has(n)?n:e.effectiveIsolation==="pending"?"starting":null}function T(e,t){if(!e||!ce(e))return null;const n=e.nodeId??e.placement?.nodeId??"",r=t&&t.id===n?t:null;if(b(e.placement?.target))return{nodeId:n,name:e.nodeName?.trim()||j(r?.cloud?.provider??q(e.placement?.cloudMachineId)),platform:f(r?.platform?.os,r?.platform?.arch),state:"ready",cloud:{state:ie(e,r)}};const o=f(e.placement?.os,e.placement?.arch)??f(r?.platform?.os,r?.platform?.arch),c=r?.state==="revoked"?"revoked":r?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:n,name:e.nodeName?.trim()||r?.name||s.remoteAgent_location_unknownMachine(),platform:o,state:c}}function Be(e,t){if(!e)return null;const n=t&&t.id===e?t:null;return{nodeId:e,name:n?.name||s.remoteAgent_location_unknownMachine(),platform:f(n?.platform?.os,n?.platform?.arch),state:n?.state==="revoked"?"revoked":n?.state==="unreachable"?"unreachable":"ready"}}function x(e){switch(e){case"starting":return s.cloudMachines_agent_starting();case"running":return s.cloudMachines_agent_running();case"paused":return s.cloudMachines_agent_paused();case"resuming":return s.cloudMachines_agent_resuming();case"pausing":return s.cloudMachines_agent_pausing();case"stopping":return s.cloudMachines_agent_stopping();default:return null}}function De(e){const t=x(e.cloud?.state);return t?s.cloudMachines_agent_chip({machine:e.name,state:t}):e.name}function Fe(e){if(e.cloud){const n=x(e.cloud.state),r=s.remoteAgent_location_tooltipNoPlatform({machine:e.name});return n?s.remoteAgent_location_tooltipWithState({location:r,state:n}):r}const t=e.platform?s.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):s.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return s.remoteAgent_location_tooltipWithState({location:t,state:s.remoteMachines_state_unreachable_label()});case"revoked":return s.remoteAgent_location_tooltipWithState({location:t,state:s.remoteMachines_state_revoked_label()});default:return t}}function w(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"||e.cloudStart?"starting":e.setup?.state==="failed"?"setup-failed":null}function B(e){if(!e.endsWith("}"))return null;for(let t=e.indexOf(" {");t>=0;t=e.indexOf(" {",t+1))try{const n=JSON.parse(e.slice(t+1));if(n&&typeof n=="object"&&typeof n.code=="string")return{message:e.slice(0,t).trim(),data:n}}catch{}return null}function le(e,t){const n=e.detail??"",r=B(n),o=e.code==="machine-update-required"||r?.data.code==="machine-update-required";if(o&&r?.data.reason==="prepared-checkout")return{updateRequired:o,message:s.remoteAgent_updateRequired_preparedCheckout({machine:t})};const c=R(r?.data),a=c??(e.code?R({code:e.code}):null);return a?{updateRequired:o,message:r?.message||n,cloud:a,cloudDetailKnown:!!c}:{updateRequired:o,message:r?.message||n}}function Ue(e){if(!b(e?.placement?.target)||!e.placementError||e.status!==H.Error)return null;const t=le(e.placementError,"");return t.cloud?t:null}const de=["attachments-too-large-for-machine:","node-prompt-too-large:"],ue="remote-agent-unsupported:";function C(e){return new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(e/1048576)}function Ve(e){const t=B(e)?.message??e;for(const r of de){const o=t.indexOf(r);if(o<0)continue;const c=t.slice(o+r.length).trim().replace(/^[a-z][\w]*(?:\.[\w]+)+:\s*/i,""),a=/come to (\d+) bytes\b.*?over its (\d+)-byte limit/.exec(c);return a?s.remoteAgent_attachmentsTooLargeSized_error({size:C(Number(a[1])),limit:C(Number(a[2]))}):c?s.remoteAgent_attachmentsTooLarge_error({detail:c}):s.remoteAgent_attachmentsTooLargeNoDetail_error()}const n=t.indexOf(ue);return n>=0&&/attachment/i.test(t.slice(n))?s.remoteAgent_attachmentsUnsupported_error():null}function We(e){return b(e?.placement?.target)&&w(e,T(e))==="starting"}function je(e,t){if(!b(e?.placement?.target))return!1;const n=T(e,t);return n?.cloud?.state==="resuming"&&w(e,n)===null}const u="",M="cloud:";function O(e){return`${M}${e}`}function _(e){return e?.startsWith(M)&&e.slice(M.length)||null}const qe=O("e2b");function fe(e,t){return e?.find(n=>O(n.cloudMachineId)===t&&n.unavailableReason===null)}const me=new Set(["connected","disconnected"]);function pe(e){switch(e){case"unreachable":return s.remoteMachines_state_unreachable_label();case"revoked":return s.remoteMachines_state_revoked_label();case"update-required":return s.remoteMachines_state_updateRequired_label();default:return}}function k(e){return me.has(e.state)}function he({backendLabel:e,backendPlatform:t,machines:n,cloud:r,orchestrator:o=!1}){const c=[o?{id:u,label:s.remoteMachines_startOn_firstAvailable_label(),platform:null,disabled:!1,hint:s.remoteMachines_startOn_firstAvailable_hint()}:{id:u,label:e,platform:f(t?.os,t?.arch),disabled:!1},...n.map(a=>{const l=f(a.platform?.os,a.platform?.arch);return k(a)?{id:a.id,label:a.name,platform:l,disabled:!1}:{id:a.id,label:a.name,platform:l,disabled:!0,reason:pe(a.state)}})];for(const a of r??[])c.push({id:O(a.cloudMachineId),label:a.label,platform:null,kind:"cloud",disabled:a.unavailableReason!==null,...a.unavailableReason?{reason:a.unavailableReason}:a.needsProfile?{hint:s.cloudMachines_startOn_hint()}:{}});return c}function He(e){return e.find(t=>t.id===u)?.label??""}function Ke(e,t,n){if(e!==u)return _(e)?void 0:e;if(n)return t.find(r=>r.id!==u&&r.kind!=="cloud"&&!r.disabled)?.id}function ge({remoteMachinesVisible:e,supported:t,machines:n,cloud:r}){return e&&t&&(n.some(k)||(r??[]).some(o=>o.unavailableReason===null))}function be(e,t,n){if(!e)return u;if(_(e))return fe(n,e)?e:u;const r=t.find(o=>o.id===e);return r&&k(r)?r.id:u}function ze(e,{cloudEntries:t=!1,providerOf:n}={}){const r=_(e);if(r){const o=n?.(r);return t&&o&&o!=="e2b"?{target:"cloud",checkout:"isolated",cloudMachineId:r}:t?{target:"e2b",checkout:"isolated",cloudMachineId:r}:{target:"e2b",checkout:"isolated"}}return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function Je({groups:e,providerRef:t,model:n}){const r=a=>a.options.filter(l=>!l.disabled),o=e.find(a=>a.key===t),c=o?r(o):[];if(n){const a=K(n).modelId;if(c.some(l=>l.value===a))return null}else if(c.length>0)return null;if(o&&c.length>0)return{providerId:o.key,modelId:c[0].value};for(const a of e){if(a.key==="default")continue;const l=r(a);if(l.length>0)return{providerId:a.key,modelId:l[0].value}}return null}function _e(e,t,n,r){const o=e.map(g),c=o.indexOf(t),a=o.indexOf(n);if(c<0||a<0||c===a)return null;let l=a+(r==="after"?1:0);if(c<l&&(l-=1),l===c)return null;const p=[...e],[V]=p.splice(c,1);return p.splice(l,0,V),p.map(re)}function $e(e,t,n){const r=e.findIndex(c=>g(c)===t),o=e[r+n];return r<0||!o?null:_e(e,t,g(o),n===-1?"before":"after")}function Me(e,t){if(e===u)return"local";const n=t==="cloud"?_(e):null;return g(n?{kind:"cloud",cloudMachineId:n}:{kind:"machine",nodeId:e})}function E(e,t){const n=new Map(t.map((o,c)=>[g(o),c])),r=o=>n.get(Me(o.id,o.kind))??t.length;return e.map((o,c)=>({option:o,index:c})).sort((o,c)=>r(o.option)-r(c.option)||o.index-c.index).map(({option:o})=>o)}const Se=i.createSelector(e=>X.select(e)||A.select(e)),I=i.createSelector(e=>Se.select(e)&&e.remoteMachines?.supported===!0),ve=i.createSelector(e=>I.select(e)&&J.select(e)&&!A.select(e)),D=i.createSelector(e=>I.select(e)&&e.remoteMachines.machineOrder===!0&&e.remoteMachines.order!==null),L=i.createSelector(e=>D.select(e)?e.remoteMachines.order??[]:[]),Ge=i.createSelector(e=>e.remoteMachines.orderSaving!==null),y=i.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,n)=>t.name.localeCompare(n.name))),Xe=i.createSelector(e=>e.remoteMachines.localFingerprint),Qe=i.createSelector(e=>e.remoteMachines.pending),Ye=i.createSelector(e=>e.remoteMachines.failures),Ze=i.createSelector(e=>e.remoteMachines.executorBackends??[]),Ae=i.createSelector((e,t)=>{if(t===z)return s.layout_daemonStatus_localConnection_label();const n=P(e.connections.connections,t);return n?$(n):t}),Oe=i.createSelector(e=>Ae.select(e,e.connections.windowBackendId)),et=i.createSelector((e,t)=>(t?e.remoteMachines.machines[t]??e.cloudMachines?.machines[t]:void 0)??null),tt=i.createSelector((e,t)=>{const n=e.providerSettings?.profiles;return v({catalogProfiles:Z.select(e,t),defaultRemoteIncompatibility:Y.select(e,t),defaultRemoteLaunch:Q.select(e,t),profileDefaults:Object.values(n?.defaults??{}),profilesLoadStatus:n?.loadStatus??"idle"})}),nt=i.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),F=i.createSelector(e=>ge({remoteMachinesVisible:I.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:y.select(e),cloud:S(e)}));function ke(e){const t=P(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const Ie=i.createSelector(e=>{const t=A.select(e),n=he({backendLabel:Oe.select(e),backendPlatform:ke(e),machines:y.select(e),cloud:S(e),orchestrator:t});if(!D.select(e))return n;if(!t)return E(n,L.select(e));const[r,...o]=n;return[r,...E(o,L.select(e))]}),rt=i.createSelector(e=>F.select(e)?Ie.select(e):[]),ot=i.createSelector(e=>e.remoteMachines?.initialAgentPlacement===!0),at=i.createSelector((e,t,n)=>F.select(e)?be(t,y.select(e),U(e,n)):u);function U(e,t){const n=S(e);if(!n||!t)return n;const r=e.cloudMachines?.providers??{};return n.map(o=>{if(o.unavailableReason)return o;const c=G(e,t,r[o.cloudMachineId]??null);return c?{...o,unavailableReason:c}:o})}const ct=i.createSelector((e,t)=>U(e,t));export{ot as A,Xe as B,L as C,Ge as D,D as E,et as F,Ye as G,Qe as H,y as I,Se as J,I as K,tt as L,ve as M,ct as N,rt as O,Ie as P,F as Q,He as R,u as S,O as T,_ as U,Ke as V,$e as W,qe as a,Ue as b,We as c,je as d,De as e,T as f,Fe as g,w as h,xe as i,ze as j,Je as k,g as l,Be as m,f as n,_e as o,Te as p,we as q,Ne as r,le as s,Ve as t,be as u,Ae as v,Oe as w,nt as x,at as y,Ze as z};
@@ -1 +1 @@
1
- import{m as t}from"./BAymCgEX.js";import"./CJxGDkBm.js";import{bm as n}from"./51_h0jm2.js";import"./CpPNoOk-.js";import"./DxvSggY5.js";import"./Cgn_eC9-.js";import"./ChTqQfQN.js";import"./D6dNunKo.js";import"./CbRsc9i4.js";function L(e){try{const r=new URL(e).hostname.toLowerCase();return r==="daemon.localhost"||r==="client.localhost"}catch{return!1}}const s="browser:resolve-url";function a(e){return typeof e=="object"&&e!==null&&typeof e.url=="string"&&typeof e.rewritten=="boolean"}async function l(e,r){const o={url:e,rewritten:!1};if(!r)return o;try{const i=await r(s,{url:e});return a(i)?i:o}catch{return o}}async function g(e,r){if(!r)return e;try{const o=await r(s,{url:e,mode:"rewrite-only"});return a(o)?o.url:e}catch{return e}}async function c(e){const r=await l(e,typeof window<"u"?window.electronAPI?.invoke:void 0);return r.error&&r.rewritten?r.forbidden?t.error(n.browser_linkOpen_ownerOnlyForward_error()):t.error(n.browser_embedded_resolveFailed_error(),{description:r.error}):r.warning&&t.warning(n.browser_linkOpen_loopbackAmbiguity_warning(),{description:r.warning}),{url:r.url,...r.rewritten&&r.requestedUrl!==void 0?{requestedUrl:r.requestedUrl}:{}}}const h=Object.freeze(Object.defineProperty({__proto__:null,resolveBrowserLinkForOpen:c},Symbol.toStringTag,{value:"Module"}));export{l as a,h as b,g as c,L as i,c as r};
1
+ import{m as t}from"./Cz-HgbT1.js";import"./CJxGDkBm.js";import{bm as n}from"./51_h0jm2.js";import"./CpPNoOk-.js";import"./DxvSggY5.js";import"./rIUowGAi.js";import"./ChTqQfQN.js";import"./BLb6jd9K.js";import"./CI4_aI7e.js";function L(e){try{const r=new URL(e).hostname.toLowerCase();return r==="daemon.localhost"||r==="client.localhost"}catch{return!1}}const s="browser:resolve-url";function a(e){return typeof e=="object"&&e!==null&&typeof e.url=="string"&&typeof e.rewritten=="boolean"}async function l(e,r){const o={url:e,rewritten:!1};if(!r)return o;try{const i=await r(s,{url:e});return a(i)?i:o}catch{return o}}async function g(e,r){if(!r)return e;try{const o=await r(s,{url:e,mode:"rewrite-only"});return a(o)?o.url:e}catch{return e}}async function c(e){const r=await l(e,typeof window<"u"?window.electronAPI?.invoke:void 0);return r.error&&r.rewritten?r.forbidden?t.error(n.browser_linkOpen_ownerOnlyForward_error()):t.error(n.browser_embedded_resolveFailed_error(),{description:r.error}):r.warning&&t.warning(n.browser_linkOpen_loopbackAmbiguity_warning(),{description:r.warning}),{url:r.url,...r.rewritten&&r.requestedUrl!==void 0?{requestedUrl:r.requestedUrl}:{}}}const h=Object.freeze(Object.defineProperty({__proto__:null,resolveBrowserLinkForOpen:c},Symbol.toStringTag,{value:"Module"}));export{l as a,h as b,g as c,L as i,c as r};
@@ -1 +1 @@
1
- import{t as te,bo as a,br as le,bw as re,bp as ce,b as ae,bm as Ce}from"./51_h0jm2.js";import{bs as oe,a7 as F,ay as P,W as u,bn as se,aA as o,aD as h,c9 as k,aB as E,ca as Le,bS as Z,a5 as K,bf as Oe,bA as Q,aC as Ye,c0 as Ze,bV as et,be as he,b$ as xe,b_ as _e,bO as we,bH as tt}from"./CJxGDkBm.js";import{i as j}from"./PXCFrn2V.js";import{s as ie}from"./DxvSggY5.js";import{c as q}from"./DGmOjLYi.js";import{n as ye,l as ze,c as $e}from"./BxwkoIbZ.js";import{b as Ae,e as ue,f as rt}from"./CpPNoOk-.js";import{i as at,h as ot,a as st}from"./DZIz7Wk9.js";import{a_ as nt,a1 as lt,f as Ne}from"./CdOh_Fmv.js";import"./Cgn_eC9-.js";import{u as je,c as it,o as Pe,f as ct,e as ut,a as dt,D as ft,b as vt,d as gt}from"./DxyI4IUi.js";import{c as mt,u as _t,s as pt,a as bt}from"./DJfJ5NWH.js";import{p as ht}from"./THdp5Vpk.js";import"./CN-6Tr26.js";import{b as qe}from"./NtFyWdpR.js";import"./DKn1sQ32.js";import{F as xt,a0 as wt}from"./DSQT151l.js";import"./BGP1lrgu.js";var yt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),Pt=E("<div></div>");function Ee(p,e){if(new.target)return te({component:Ee,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),v=a(e,"staticPosition",7,!1),l=ce(e,yt);const i=je();var r={get ref(){return c()},set ref(_=null){c(_),o()},get class(){return n()},set class(_){n(_),o()},get forceMount(){return f()},set forceMount(_=!1){f(_),o()},get contained(){return g()},set contained(_=!1){g(_),o()},get staticPosition(){return v()},set staticPosition(_=!1){v(_),o()},$set:re,$on:(_,S)=>ae(e,_,S)},m=F(),O=P(m);{const _=(S,R)=>{let L=()=>(R?.()).props;var V=F(),U=P(V);{var ee=G=>{var X=Pt();Ae(X,s=>({...L(),"data-slot":"dialog-overlay","data-static-position":v()||void 0,class:s}),[()=>ue(g()||v()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,X,()=>ze,()=>Pe.backdrop.enter),ye(2,X,()=>$e,()=>Pe.backdrop.exit),u(G,X)},de=k(()=>f()||i());j(U,G=>{h(de)&&G(ee)})}u(S,V)};q(O,()=>it,(S,R)=>{R(S,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:_,$$slots:{child:!0}}))})}return u(p,m),se(r)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),At=Ye('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),kt=E("<div><!> <!></div>"),Dt=E("<!> <!>",1);function Ft(p,e){if(new.target)return te({component:Ft,...p});oe(e,!0);const c=t=>{var A=Dt(),N=P(A);{let T=k(()=>!!v()),W=k(d);Ee(N,{get contained(){return h(T)},get staticPosition(){return h(W)}})}var Y=Z(N,2);{const T=(fe,ve)=>{let ge=()=>(ve?.()).props;var pe=F(),Be=P(pe);{var Re=De=>{var ne=kt();Ae(ne,(me,be)=>({...ge(),role:_(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:be,"data-surface-level":C,onoutroend:x.finishExit}),[()=>d()||void 0,()=>ue(d()?"relative mx-auto":v()?"absolute":"fixed",!d()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",bt(C),f())]);var Me=K(ne);ie(Me,()=>ee()??Oe);var Ge=Z(Me,2);{var Je=me=>{var be=F(),Ke=P(be);{const Qe=(Fe,Se)=>{Ne(Fe,le(()=>(Se?.()).props,{get"aria-label"(){return O()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Ue,Ht)=>{var Xe=At();u(Ue,Xe)},$$slots:{default:!0}}))};q(Ke,()=>ft,(Fe,Se)=>{Se(Fe,{get disabled(){return m()},child:Qe,$$slots:{child:!0}})})}u(me,be)};j(Ge,me=>{r()&&me(Je)})}Q(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),u(De,ne)},Ve=k(()=>J());j(Be,De=>{h(Ve)&&De(Re)})}u(fe,pe)};let W=k(()=>d()?I:$),H=k(()=>d()?I:L()),y=k(()=>d()?!1:V()),ke=k(()=>d()?!1:U());q(Y,()=>dt,(fe,ve)=>{ve(fe,le({forceMount:!0},()=>de,{onInteractOutside:b,get onOpenAutoFocus(){return h(W)},get onCloseAutoFocus(){return h(H)},get trapFocus(){return h(y)},get preventScroll(){return h(ke)},get ref(){return n()},set ref(ge){n(ge)},child:T,$$slots:{child:!0}}))})}u(t,A)};let n=a(e,"ref",15,null),f=a(e,"class",7),g=a(e,"portalProps",7),v=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),O=a(e,"closeLabel",23,()=>Ce.ui_dialog_close_ariaLabel()),_=a(e,"role",7,"dialog"),S=a(e,"onInteractOutside",7),R=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),U=a(e,"preventScroll",7),ee=a(e,"children",7),de=ce(e,Ot);const G=at(),X=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,X)});const s=je(),d=ct(),C=mt(_t()+2);pt(C);const z=nt(),J=()=>i()||s(),x=ut(J);ht(()=>n());function b(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),S()?.(t)}function $(t){if(R()?.(t),t.defaultPrevented||!n())return;const A=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",Y=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(A),T=Y.find(y=>y.hasAttribute("data-dialog-primary-action"))??Y.at(-1),W=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>A(y)&&N(y)),H=T&&N(T)?T:W??n();t.preventDefault(),H.focus({preventScroll:!0})}function I(t){t.preventDefault()}var D={get ref(){return n()},set ref(t=null){n(t),o()},get class(){return f()},set class(t){f(t),o()},get portalProps(){return g()},set portalProps(t){g(t),o()},get container(){return v()},set container(t=null){v(t),o()},get size(){return l()},set size(t="default"){l(t),o()},get forceMount(){return i()},set forceMount(t=!1){i(t),o()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),o()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),o()},get closeLabel(){return O()},set closeLabel(t=Ce.ui_dialog_close_ariaLabel()){O(t),o()},get role(){return _()},set role(t="dialog"){_(t),o()},get onInteractOutside(){return S()},set onInteractOutside(t){S(t),o()},get onOpenAutoFocus(){return R()},set onOpenAutoFocus(t){R(t),o()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),o()},get trapFocus(){return V()},set trapFocus(t){V(t),o()},get preventScroll(){return U()},set preventScroll(t){U(t),o()},get children(){return ee()},set children(t){ee(t),o()},$set:re,$on:(t,A)=>ae(e,t,A)},B=F(),w=P(B);{var M=t=>{var A=F(),N=P(A);{var Y=H=>{c(H)},T=k(()=>d()),W=H=>{var y=F(),ke=P(y);{let fe=k(()=>v()??g()?.to??G?.target());q(ke,()=>lt,(ve,ge)=>{ge(ve,le(g,{get to(){return h(fe)},children:(pe,Be)=>{c(pe)},$$slots:{default:!0}}))})}u(H,y)};j(N,H=>{h(T)?H(Y):H(W,-1)})}u(t,A)};j(w,t=>{x.mounted&&t(M)})}return u(p,B),se(D)}var St=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Te(p,e){if(new.target)return te({component:Te,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,St);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-caption break-words text-muted-foreground",n()));q(l,()=>vt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=E("<div><!></div>");function We(p,e){if(new.target)return te({component:We,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Ct);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ae(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>ue("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Mt=E("<div><!></div>");function He(p,e){if(new.target)return te({component:He,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Bt);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Mt();Ae(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>ue("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Lt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ie(p,e){if(new.target)return te({component:Ie,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,Lt);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));q(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var zt=E('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),$t=E('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Nt=E("<!> <!>",1),jt=E('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=E('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Et=E('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function Tt(p,e){if(new.target)return te({component:Tt,...p});oe(e,!0);const c=s=>{var d=F(),C=P(d);{var z=x=>{var b=zt(),$=K(b);{let D=k(()=>_()??Ce.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return h(D)},get onclick(){return O()},get ref(){return h(S)},set ref(B){tt(S,B,!0)},children:(B,w)=>{xt(B,{get icon(){return wt}})},$$slots:{default:!0}})}var I=Z($,2);q(I,()=>Ie,(D,B)=>{B(D,{get id(){return g()},children:(w,M)=>{he();var t=xe();_e(()=>we(t,n())),u(w,t)},$$slots:{default:!0}})}),Q(b),u(x,b)},J=x=>{var b=F(),$=P(b);q($,()=>Ie,(I,D)=>{D(I,{get id(){return g()},children:(B,w)=>{he();var M=xe();_e(()=>we(M,n())),u(B,M)},$$slots:{default:!0}})}),u(x,b)};j(C,x=>{O()?x(z):x(J,-1)})}u(s,d)};let n=a(e,"title",7),f=a(e,"description",7),g=a(e,"titleId",7),v=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),O=a(e,"onBack",7),_=a(e,"backLabel",7),S=et(null);Le(()=>{O()&&Ze().then(()=>h(S)?.focus())});var R={get title(){return n()},set title(s){n(s),o()},get description(){return f()},set description(s){f(s),o()},get titleId(){return g()},set titleId(s){g(s),o()},get descriptionId(){return v()},set descriptionId(s){v(s),o()},get children(){return l()},set children(s){l(s),o()},get headerActions(){return i()},set headerActions(s){i(s),o()},get footer(){return r()},set footer(s){r(s),o()},get error(){return m()},set error(s){m(s),o()},get onBack(){return O()},set onBack(s){O(s),o()},get backLabel(){return _()},set backLabel(s){_(s),o()},$set:re,$on:(s,d)=>ae(e,s,d)},L=Et(),V=K(L);{let s=k(()=>i()?"pr-22":"pr-14");q(V,()=>He,(d,C)=>{C(d,{get class(){return`m-0 shrink-0 px-6 pt-6 ${h(s)??""}`},children:(z,J)=>{var x=Nt(),b=P(x);{var $=w=>{var M=$t(),t=K(M);c(t);var A=Z(t,2),N=K(A);ie(N,i),Q(A),Q(M),u(w,M)},I=w=>{c(w)};j(b,w=>{i()?w($):w(I,-1)})}var D=Z(b,2);{var B=w=>{var M=F(),t=P(M);q(t,()=>Te,(A,N)=>{N(A,{get id(){return v()},children:(Y,T)=>{he();var W=xe();_e(()=>we(W,f())),u(Y,W)},$$slots:{default:!0}})}),u(w,M)};j(D,w=>{f()&&w(B)})}u(z,x)},$$slots:{default:!0}})})}var U=Z(V,2);{var ee=s=>{var d=jt(),C=K(d),z=K(C);ie(z,()=>l()??Oe);var J=Z(z,2);{var x=b=>{st(b,{tone:"error",children:($,I)=>{he();var D=xe();_e(()=>we(D,m())),u($,D)},$$slots:{default:!0}})};j(J,b=>{m()&&b(x)})}Q(C),Q(d),_e(()=>rt(d,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),u(s,d)};j(U,s=>{(l()||m())&&s(ee)})}var de=Z(U,2);{var G=s=>{var d=F(),C=P(d);{let z=k(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");q(C,()=>We,(J,x)=>{x(J,{get class(){return h(z)},children:(b,$)=>{var I=F(),D=P(I);ie(D,r),u(b,I)},$$slots:{default:!0}})})}u(s,d)},X=s=>{var d=qt();u(s,d)};j(de,s=>{r()?s(G):l()||s(X,1)})}return Q(L),u(p,L),se(R)}export{Tt as D,Ft as a,Te as b,Ie as c};
1
+ import{t as te,bo as a,br as le,bw as re,bp as ce,b as ae,bm as Ce}from"./51_h0jm2.js";import{bs as oe,a7 as F,ay as P,W as u,bn as se,aA as o,aD as h,c9 as k,aB as E,ca as Le,bS as Z,a5 as K,bf as Oe,bA as Q,aC as Ye,c0 as Ze,bV as et,be as he,b$ as xe,b_ as _e,bO as we,bH as tt}from"./CJxGDkBm.js";import{i as j}from"./PXCFrn2V.js";import{s as ie}from"./DxvSggY5.js";import{c as q}from"./DGmOjLYi.js";import{n as ye,l as ze,c as $e}from"./BxwkoIbZ.js";import{b as Ae,e as ue,f as rt}from"./CpPNoOk-.js";import{i as at,h as ot,a as st}from"./BaGw_bDr.js";import{a_ as nt,a1 as lt,f as Ne}from"./BnA9v3pc.js";import"./rIUowGAi.js";import{u as je,c as it,o as Pe,f as ct,e as ut,a as dt,D as ft,b as vt,d as gt}from"./D2jpdqLS.js";import{c as mt,u as _t,s as pt,a as bt}from"./DJfJ5NWH.js";import{p as ht}from"./BROVvkEL.js";import"./CN-6Tr26.js";import{b as qe}from"./NtFyWdpR.js";import"./DKn1sQ32.js";import{F as xt,a0 as wt}from"./DSQT151l.js";import"./BGP1lrgu.js";var yt=new Set(["$$slots","$$events","$$legacy","ref","class","forceMount","contained","staticPosition"]),Pt=E("<div></div>");function Ee(p,e){if(new.target)return te({component:Ee,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"forceMount",7,!1),g=a(e,"contained",7,!1),v=a(e,"staticPosition",7,!1),l=ce(e,yt);const i=je();var r={get ref(){return c()},set ref(_=null){c(_),o()},get class(){return n()},set class(_){n(_),o()},get forceMount(){return f()},set forceMount(_=!1){f(_),o()},get contained(){return g()},set contained(_=!1){g(_),o()},get staticPosition(){return v()},set staticPosition(_=!1){v(_),o()},$set:re,$on:(_,S)=>ae(e,_,S)},m=F(),O=P(m);{const _=(S,R)=>{let L=()=>(R?.()).props;var V=F(),U=P(V);{var ee=G=>{var X=Pt();Ae(X,s=>({...L(),"data-slot":"dialog-overlay","data-static-position":v()||void 0,class:s}),[()=>ue(g()||v()?"absolute":"fixed","inset-0 z-[var(--layer-modal)] bg-black/40 dark:bg-black/80 motion-reduce:animate-none motion-reduce:transition-none",n())]),ye(1,X,()=>ze,()=>Pe.backdrop.enter),ye(2,X,()=>$e,()=>Pe.backdrop.exit),u(G,X)},de=k(()=>f()||i());j(U,G=>{h(de)&&G(ee)})}u(S,V)};q(O,()=>it,(S,R)=>{R(S,le({forceMount:!0},()=>l,{get ref(){return c()},set ref(L){c(L)},child:_,$$slots:{child:!0}}))})}return u(p,m),se(r)}var Ot=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","container","size","forceMount","showCloseButton","closeDisabled","closeLabel","role","onInteractOutside","onOpenAutoFocus","onCloseAutoFocus","trapFocus","preventScroll","children"]),At=Ye('<svg aria-hidden="true" viewBox="0 0 16 16" fill="none"><path d="M3 3l10 10M13 3L3 13" stroke="currentColor" stroke-width="1.5"></path></svg>'),kt=E("<div><!> <!></div>"),Dt=E("<!> <!>",1);function Ft(p,e){if(new.target)return te({component:Ft,...p});oe(e,!0);const c=t=>{var A=Dt(),N=P(A);{let T=k(()=>!!v()),W=k(d);Ee(N,{get contained(){return h(T)},get staticPosition(){return h(W)}})}var Y=Z(N,2);{const T=(fe,ve)=>{let ge=()=>(ve?.()).props;var pe=F(),Be=P(pe);{var Re=De=>{var ne=kt();Ae(ne,(me,be)=>({...ge(),role:_(),"data-slot":"dialog-content","data-overlay-surface":!0,"data-size":l(),"data-static-position":me,class:be,"data-surface-level":C,onoutroend:x.finishExit}),[()=>d()||void 0,()=>ue(d()?"relative mx-auto":v()?"absolute":"fixed",!d()&&"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","dialog-editorial-content overlay-surface z-[var(--layer-modal)] grid w-full overflow-y-auto overscroll-contain p-6 text-popover-foreground outline-none motion-reduce:animate-none motion-reduce:transition-none",l()==="sm"&&(z==="compact"?"max-w-90":"max-w-100"),l()==="default"&&"max-w-110",l()==="lg"&&(z==="compact"?"max-w-120":"max-w-135"),l()==="wide"&&"max-w-2xl",l()==="editor"&&"max-w-6xl",bt(C),f())]);var Me=K(ne);ie(Me,()=>ee()??Oe);var Ge=Z(Me,2);{var Je=me=>{var be=F(),Ke=P(be);{const Qe=(Fe,Se)=>{Ne(Fe,le(()=>(Se?.()).props,{get"aria-label"(){return O()},get disabled(){return m()},variant:"ghost",size:"icon-sm",iconOnly:!0,class:"dialog-close-button absolute right-6 -translate-y-1/2 text-muted-foreground",children:(Ue,Ht)=>{var Xe=At();u(Ue,Xe)},$$slots:{default:!0}}))};q(Ke,()=>ft,(Fe,Se)=>{Se(Fe,{get disabled(){return m()},child:Qe,$$slots:{child:!0}})})}u(me,be)};j(Ge,me=>{r()&&me(Je)})}Q(ne),ye(1,ne,()=>ze,()=>Pe.dialog.enter),ye(2,ne,()=>$e,()=>Pe.dialog.exit),u(De,ne)},Ve=k(()=>J());j(Be,De=>{h(Ve)&&De(Re)})}u(fe,pe)};let W=k(()=>d()?I:$),H=k(()=>d()?I:L()),y=k(()=>d()?!1:V()),ke=k(()=>d()?!1:U());q(Y,()=>dt,(fe,ve)=>{ve(fe,le({forceMount:!0},()=>de,{onInteractOutside:b,get onOpenAutoFocus(){return h(W)},get onCloseAutoFocus(){return h(H)},get trapFocus(){return h(y)},get preventScroll(){return h(ke)},get ref(){return n()},set ref(ge){n(ge)},child:T,$$slots:{child:!0}}))})}u(t,A)};let n=a(e,"ref",15,null),f=a(e,"class",7),g=a(e,"portalProps",7),v=a(e,"container",7,null),l=a(e,"size",7,"default"),i=a(e,"forceMount",7,!1),r=a(e,"showCloseButton",7,!0),m=a(e,"closeDisabled",7,!1),O=a(e,"closeLabel",23,()=>Ce.ui_dialog_close_ariaLabel()),_=a(e,"role",7,"dialog"),S=a(e,"onInteractOutside",7),R=a(e,"onOpenAutoFocus",7),L=a(e,"onCloseAutoFocus",7),V=a(e,"trapFocus",7),U=a(e,"preventScroll",7),ee=a(e,"children",7),de=ce(e,Ot);const G=at(),X=ot();Le(()=>{const t=n();if(!(!t||!G))return G.register(t,X)});const s=je(),d=ct(),C=mt(_t()+2);pt(C);const z=nt(),J=()=>i()||s(),x=ut(J);ht(()=>n());function b(t){t.target instanceof Element&&t.target.closest("[data-image-lightbox-root]")&&t.preventDefault(),S()?.(t)}function $(t){if(R()?.(t),t.defaultPrevented||!n())return;const A=y=>y.closest('[data-slot="dialog-content"]')===n(),N=y=>!y.matches(':disabled, [aria-disabled="true"], [inert]')&&!y.closest("[inert]")&&y.getClientRects().length>0&&getComputedStyle(y).visibility==="visible",Y=Array.from(n().querySelectorAll('[data-dialog-primary-action], [data-slot="dialog-footer"] button, [data-slot="dialog-footer"] a[href]')).filter(A),T=Y.find(y=>y.hasAttribute("data-dialog-primary-action"))??Y.at(-1),W=Array.from(n().querySelectorAll('input:not([type="hidden"]), textarea, select, [contenteditable="true"]')).find(y=>A(y)&&N(y)),H=T&&N(T)?T:W??n();t.preventDefault(),H.focus({preventScroll:!0})}function I(t){t.preventDefault()}var D={get ref(){return n()},set ref(t=null){n(t),o()},get class(){return f()},set class(t){f(t),o()},get portalProps(){return g()},set portalProps(t){g(t),o()},get container(){return v()},set container(t=null){v(t),o()},get size(){return l()},set size(t="default"){l(t),o()},get forceMount(){return i()},set forceMount(t=!1){i(t),o()},get showCloseButton(){return r()},set showCloseButton(t=!0){r(t),o()},get closeDisabled(){return m()},set closeDisabled(t=!1){m(t),o()},get closeLabel(){return O()},set closeLabel(t=Ce.ui_dialog_close_ariaLabel()){O(t),o()},get role(){return _()},set role(t="dialog"){_(t),o()},get onInteractOutside(){return S()},set onInteractOutside(t){S(t),o()},get onOpenAutoFocus(){return R()},set onOpenAutoFocus(t){R(t),o()},get onCloseAutoFocus(){return L()},set onCloseAutoFocus(t){L(t),o()},get trapFocus(){return V()},set trapFocus(t){V(t),o()},get preventScroll(){return U()},set preventScroll(t){U(t),o()},get children(){return ee()},set children(t){ee(t),o()},$set:re,$on:(t,A)=>ae(e,t,A)},B=F(),w=P(B);{var M=t=>{var A=F(),N=P(A);{var Y=H=>{c(H)},T=k(()=>d()),W=H=>{var y=F(),ke=P(y);{let fe=k(()=>v()??g()?.to??G?.target());q(ke,()=>lt,(ve,ge)=>{ge(ve,le(g,{get to(){return h(fe)},children:(pe,Be)=>{c(pe)},$$slots:{default:!0}}))})}u(H,y)};j(N,H=>{h(T)?H(Y):H(W,-1)})}u(t,A)};j(w,t=>{x.mounted&&t(M)})}return u(p,B),se(D)}var St=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Te(p,e){if(new.target)return te({component:Te,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,St);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-caption break-words text-muted-foreground",n()));q(l,()=>vt,(r,m)=>{m(r,le({"data-slot":"dialog-description",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var Ct=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),It=E("<div><!></div>");function We(p,e){if(new.target)return te({component:We,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Ct);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=It();Ae(l,r=>({"data-slot":"dialog-footer",class:r,...g}),[()=>ue("dialog-actions mt-6 flex min-w-0 flex-wrap items-center justify-end gap-2",n())],void 0,void 0,"svelte-1xlmj20");var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Bt=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Mt=E("<div><!></div>");function He(p,e){if(new.target)return te({component:He,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=a(e,"children",7),g=ce(e,Bt);var v={get ref(){return c()},set ref(r=null){c(r),o()},get class(){return n()},set class(r){n(r),o()},get children(){return f()},set children(r){f(r),o()},$set:re,$on:(r,m)=>ae(e,r,m)},l=Mt();Ae(l,r=>({"data-slot":"dialog-header",class:r,...g}),[()=>ue("mb-4 flex min-w-0 flex-col gap-1.5 pr-8",n())]);var i=K(l);return ie(i,()=>f()??Oe),Q(l),qe(l,r=>c(r),()=>c()),u(p,l),se(v)}var Lt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Ie(p,e){if(new.target)return te({component:Ie,...p});oe(e,!0);let c=a(e,"ref",15,null),n=a(e,"class",7),f=ce(e,Lt);var g={get ref(){return c()},set ref(i=null){c(i),o()},get class(){return n()},set class(i){n(i),o()},$set:re,$on:(i,r)=>ae(e,i,r)},v=F(),l=P(v);{let i=k(()=>ue("type-title font-bold text-foreground [anchor-name:--dialog-title]",n()));q(l,()=>gt,(r,m)=>{m(r,le({"data-slot":"dialog-title",get class(){return h(i)}},()=>f,{get ref(){return c()},set ref(O){c(O)}}))})}return u(p,v),se(g)}var zt=E('<div class="flex min-w-0 items-center gap-2"><!> <!></div>'),$t=E('<div class="flex min-w-0 flex-wrap items-center justify-between gap-3"><!> <div class="absolute right-14 top-[calc(1.5rem+var(--text-title-line-height)/2)] -translate-y-1/2"><!></div></div>'),Nt=E("<!> <!>",1),jt=E('<div data-slot="dialog-body"><div class="grid min-w-0 grid-cols-1 gap-4"><!> <!></div></div>'),qt=E('<div class="h-6 shrink-0" aria-hidden="true"></div>'),Et=E('<div class="dialog-layout flex min-h-0 min-w-0 flex-1 flex-col svelte-df1l0r"><!> <!> <!></div>');function Tt(p,e){if(new.target)return te({component:Tt,...p});oe(e,!0);const c=s=>{var d=F(),C=P(d);{var z=x=>{var b=zt(),$=K(b);{let D=k(()=>_()??Ce.ui_navButtons_goBack_tooltip());Ne($,{variant:"ghost",size:"icon",class:"-my-1",get"aria-label"(){return h(D)},get onclick(){return O()},get ref(){return h(S)},set ref(B){tt(S,B,!0)},children:(B,w)=>{xt(B,{get icon(){return wt}})},$$slots:{default:!0}})}var I=Z($,2);q(I,()=>Ie,(D,B)=>{B(D,{get id(){return g()},children:(w,M)=>{he();var t=xe();_e(()=>we(t,n())),u(w,t)},$$slots:{default:!0}})}),Q(b),u(x,b)},J=x=>{var b=F(),$=P(b);q($,()=>Ie,(I,D)=>{D(I,{get id(){return g()},children:(B,w)=>{he();var M=xe();_e(()=>we(M,n())),u(B,M)},$$slots:{default:!0}})}),u(x,b)};j(C,x=>{O()?x(z):x(J,-1)})}u(s,d)};let n=a(e,"title",7),f=a(e,"description",7),g=a(e,"titleId",7),v=a(e,"descriptionId",7),l=a(e,"children",7),i=a(e,"headerActions",7),r=a(e,"footer",7),m=a(e,"error",7),O=a(e,"onBack",7),_=a(e,"backLabel",7),S=et(null);Le(()=>{O()&&Ze().then(()=>h(S)?.focus())});var R={get title(){return n()},set title(s){n(s),o()},get description(){return f()},set description(s){f(s),o()},get titleId(){return g()},set titleId(s){g(s),o()},get descriptionId(){return v()},set descriptionId(s){v(s),o()},get children(){return l()},set children(s){l(s),o()},get headerActions(){return i()},set headerActions(s){i(s),o()},get footer(){return r()},set footer(s){r(s),o()},get error(){return m()},set error(s){m(s),o()},get onBack(){return O()},set onBack(s){O(s),o()},get backLabel(){return _()},set backLabel(s){_(s),o()},$set:re,$on:(s,d)=>ae(e,s,d)},L=Et(),V=K(L);{let s=k(()=>i()?"pr-22":"pr-14");q(V,()=>He,(d,C)=>{C(d,{get class(){return`m-0 shrink-0 px-6 pt-6 ${h(s)??""}`},children:(z,J)=>{var x=Nt(),b=P(x);{var $=w=>{var M=$t(),t=K(M);c(t);var A=Z(t,2),N=K(A);ie(N,i),Q(A),Q(M),u(w,M)},I=w=>{c(w)};j(b,w=>{i()?w($):w(I,-1)})}var D=Z(b,2);{var B=w=>{var M=F(),t=P(M);q(t,()=>Te,(A,N)=>{N(A,{get id(){return v()},children:(Y,T)=>{he();var W=xe();_e(()=>we(W,f())),u(Y,W)},$$slots:{default:!0}})}),u(w,M)};j(D,w=>{f()&&w(B)})}u(z,x)},$$slots:{default:!0}})})}var U=Z(V,2);{var ee=s=>{var d=jt(),C=K(d),z=K(C);ie(z,()=>l()??Oe);var J=Z(z,2);{var x=b=>{st(b,{tone:"error",children:($,I)=>{he();var D=xe();_e(()=>we(D,m())),u($,D)},$$slots:{default:!0}})};j(J,b=>{m()&&b(x)})}Q(C),Q(d),_e(()=>rt(d,1,`min-h-0 min-w-0 overflow-y-auto overscroll-contain px-6 pt-5 ${r()?"pb-5":"pb-6"}`)),u(s,d)};j(U,s=>{(l()||m())&&s(ee)})}var de=Z(U,2);{var G=s=>{var d=F(),C=P(d);{let z=k(()=>l()?"m-0 shrink-0 px-6 pb-6":"m-0 shrink-0 p-6");q(C,()=>We,(J,x)=>{x(J,{get class(){return h(z)},children:(b,$)=>{var I=F(),D=P(I);ie(D,r),u(b,I)},$$slots:{default:!0}})})}u(s,d)},X=s=>{var d=qt();u(s,d)};j(de,s=>{r()?s(G):l()||s(X,1)})}return Q(L),u(p,L),se(R)}export{Tt as D,Ft as a,Te as b,Ie as c};
@@ -1 +1 @@
1
- import"./CJxGDkBm.js";import{p as r}from"./BGT9uvaQ.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
1
+ import"./CJxGDkBm.js";import{p as r}from"./Bzz0c_ry.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
@@ -1,4 +1,4 @@
1
- import{g as Ut}from"./DkJkWZTE.js";import{s as Kt}from"./Caqml6gj.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./CUNx-_2d.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
1
+ import{g as Ut}from"./qOqJpb_a.js";import{s as Kt}from"./Dqa8MqiX.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./mPd0q3-n.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,3 +1,3 @@
1
- import{fM as x,J4 as o,nM as B,md as F,m4 as K,tk as q}from"./CbRsc9i4.js";import{H as G,n as j,O as V,e4 as Y,cR as M,dE as w,dP as N,d_ as E,cM as $,aM as J}from"./CgwFGLCK.js";import{selectCurrentWorkspaceTabId as z,selectWorkspaceTabsHydrated as Q}from"./Bqm2Rf6d.js";import{t as X}from"./BRRvOx4M.js";function Z(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function k(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 Ae(e){const t=e.filter(Z).map(s=>({agent:s,activity:k(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})=>x(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function ee(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function te(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):j(r)).trim():"";return!t||ee(t)?c||L:c||t}const se="chief-of-staff",re=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 ve(e){const t=e?.trim();return t?`${T}
1
+ import{fM as x,J5 as o,nN as B,md as F,m4 as K,tl as q}from"./CI4_aI7e.js";import{H as G,n as j,O as V,e4 as Y,cR as M,dE as w,dP as N,d_ as E,cM as $,aM as J}from"./C2wWLl1x.js";import{selectCurrentWorkspaceTabId as z,selectWorkspaceTabsHydrated as Q}from"./Dq9sK6wY.js";import{t as X}from"./DQLMO9xD.js";function Z(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function k(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 Ae(e){const t=e.filter(Z).map(s=>({agent:s,activity:k(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})=>x(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function ee(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function te(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):j(r)).trim():"";return!t||ee(t)?c||L:c||t}const se="chief-of-staff",re=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 ve(e){const t=e?.trim();return t?`${T}
2
2
 
3
3
  ${t}`:T}const oe=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?B(s.hooks):[]}),ne=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),O=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??F),ye=o.createSelector((e,t,s)=>{const r=O.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]??K}),ae=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ce=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),ie=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Ce=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),We=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Te=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function le(e){return[...new Set(e.filter(Boolean))]}const Me=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of le(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 A=e.agentSessions?.byAgentId??{},v=new Set([...d].filter(n=>{const a=A[n];return!a||!V(Y(a))})),y=new Map(c.map((n,a)=>[n,a])),C=n=>{const a=A[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(v.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},W=c.filter(n=>!v.has(n)).sort((n,a)=>C(n)-C(a)||(y.get(n)??0)-(y.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:W.length,participantAgentIds:W}}),Ne=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ee=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=ie.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 Le=o.createSelector(e=>{const t=z.select(e);if(!t||!Q.select(e))return[];const s=new Set;for(const r of X.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}))}),P="pinned",de=64;function I(e){return e.trim().toLocaleLowerCase()}function R(e){return e===P}function Oe(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>de)return{ok:!1,error:"tooLong"};const r=I(s);return r===P?{ok:!1,error:"reserved"}:t.some(c=>I(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function pe(e){const t=new Map;for(const s of e){if(typeof s!="string"||R(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 _(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 D(e){return e.metadata?.specialist===se&&e.metadata?.chiefPromptVersion===re}function H(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:te(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:H(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return _(e).filter(t=>!t.retiredAt)}function m(e,t){return k(t)-k(e)}const Pe=o.createSelector(e=>e.sidebarNav.panelItem),Re=o.createSelector(e=>e.sidebarNav.onboardingActive),_e=o.createSelector(e=>e.sidebarNav.showCreateModal),De=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),He=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),U=o.createSelector(e=>M.select(e)?.capabilities.workspaceLabels===1),Ue=o.createSelector((e,t)=>w.select(e,t)?.label??null),xe=o.createSelector(e=>pe(N.select(e).map(t=>t.label))),ue=["id","label"],Be=o.createSelector((e,t)=>U.select(e)&&E.select(e,t,ue)!==null),ge=o.createSelector(e=>M.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),fe=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Fe=o.createSelector((e,t)=>w.select(e,t)?.autoArchiveDisabled===!0),he=["id","autoArchiveDisabled"],Ke=o.createSelector((e,t)=>{if(!ge.select(e)||!fe.select(e))return!1;const s=w.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:E.select(e,t,he)!==null}),qe=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Ge=o.createSelector(e=>U.select(e)?N.select(e).filter(t=>R(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),je=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),Ve=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),Ye=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),$e=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Je=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),ze=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=ne.select(e,p)==="ready"?oe.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=$.select(e,p)==="ready"?J.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=O.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??(ae.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ce.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),Qe=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),Se=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||m(t,s)).map(S)),me=o.createSelector(e=>_(e).filter(t=>!!t.retiredAt).sort(m).map(S)),Xe=o.createSelector(e=>[...Se.select(e),...me.select(e)]),Ze=o.createSelector(e=>{const t=b(e).filter(D).sort(m)[0];return t?S(t):null}),et=o.createSelector(e=>{const t=b(e).filter(s=>H(s)===0&&!s.lastMessageId&&D(s)).sort(m)[0];return t?S(t):null});export{Re as A,Pe as B,re as C,L as D,Ge as E,me as F,et as G,O as H,_e as I,Qe as J,Ne as K,Ee as L,We as M,Te as N,Fe as O,P,Ye as Q,$e as R,Ue as S,xe as T,Ve as U,Oe as V,de as W,se as a,p as b,ve as c,Z as d,Me as e,Ce as f,ae as g,Xe as h,R as i,ze as j,oe as k,ne as l,Ke as m,Be as n,Je as o,Se as p,He as q,Ae as r,ye as s,De as t,Ze as u,ie as v,Le as w,U as x,qe as y,je as z};