@intent-hq/web 2.320.1 → 2.321.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{4o1DPfmL.js → -x_SoK5J.js} +1 -1
  3. package/web/app/immutable/chunks/{DJbnWCnN.js → 0Orrh1Id.js} +6 -6
  4. package/web/app/immutable/chunks/{Wm9WFHAU.js → 0TFOtiMK.js} +1 -1
  5. package/web/app/immutable/chunks/{DgvFQ5ps.js → 0x0gscua.js} +1 -1
  6. package/web/app/immutable/chunks/{D2Hsf4lo.js → 45y_L1a9.js} +1 -1
  7. package/web/app/immutable/chunks/{CVQvxrRM.js → 4iRc0E9v.js} +1 -1
  8. package/web/app/immutable/chunks/{CcjhvQaU.js → 5MGYaOe_.js} +1 -1
  9. package/web/app/immutable/chunks/{D7hkdi6r.js → 5QXDo1_h.js} +1 -1
  10. package/web/app/immutable/chunks/{VlQJw7Mt.js → 6cxhz2FS.js} +1 -1
  11. package/web/app/immutable/chunks/{B-NH8jPK.js → 7fl6VDRo.js} +1 -1
  12. package/web/app/immutable/chunks/{BIzCpN2r.js → 8OpKoiOO.js} +1 -1
  13. package/web/app/immutable/chunks/{Byh9jXBr.js → 8biy-UQv.js} +1 -1
  14. package/web/app/immutable/chunks/{Ck3dkN4B.js → Ab2YxsyL.js} +1 -1
  15. package/web/app/immutable/chunks/{CAoY2-K6.js → B-WefpDP.js} +1 -1
  16. package/web/app/immutable/chunks/{CQX4KubR.js → B0FM877X.js} +1 -1
  17. package/web/app/immutable/chunks/{C23Piy_l.js → B0FYEeEw.js} +1 -1
  18. package/web/app/immutable/chunks/{CpEHCOut.js → B0JWnOsx.js} +1 -1
  19. package/web/app/immutable/chunks/{C0Eg_x6y.js → B0pgN3Jj.js} +1 -1
  20. package/web/app/immutable/chunks/{BJfH3e03.js → B1WyTcs2.js} +3 -3
  21. package/web/app/immutable/chunks/{C-r1nQ0P.js → B2c_0_UD.js} +2 -2
  22. package/web/app/immutable/chunks/{BtxYdCDO.js → B2yYgkwz.js} +1 -1
  23. package/web/app/immutable/chunks/{DnIfn_Q5.js → B5nbjbRb.js} +1 -1
  24. package/web/app/immutable/chunks/{Cmsg1-Jz.js → B6DUgu-2.js} +1 -1
  25. package/web/app/immutable/chunks/{BpzYGtC7.js → B7BTR3Z_.js} +1 -1
  26. package/web/app/immutable/chunks/{eeOO6ePS.js → B9MBednq.js} +1 -1
  27. package/web/app/immutable/chunks/{GzyujEXJ.js → BBZiE97y.js} +1 -1
  28. package/web/app/immutable/chunks/{CjOd6IrN.js → BBeErNG6.js} +1 -1
  29. package/web/app/immutable/chunks/{CwKQMp5y.js → BC1v75_H.js} +1 -1
  30. package/web/app/immutable/chunks/{D02FkLBh.js → BD8I8FK1.js} +1 -1
  31. package/web/app/immutable/chunks/{gV7ZxrZ2.js → BDgfVkJh.js} +1 -1
  32. package/web/app/immutable/chunks/{DBEuoua2.js → BEQ_aNVt.js} +2 -2
  33. package/web/app/immutable/chunks/{C-_w8CdN.js → BG-UHIO1.js} +2 -2
  34. package/web/app/immutable/chunks/{BtA94G-4.js → BGFrQA7m.js} +1 -1
  35. package/web/app/immutable/chunks/{CW_i4yzi.js → BGiTQR4x.js} +1 -1
  36. package/web/app/immutable/chunks/{O4y88_QN.js → BLhWzQz2.js} +1 -1
  37. package/web/app/immutable/chunks/{BRqOyyER.js → BM51eWC-.js} +1 -1
  38. package/web/app/immutable/chunks/{VE9Tc-Fm.js → BMH4mbSd.js} +2 -2
  39. package/web/app/immutable/chunks/{CpnH3je1.js → BMc6OzJ-.js} +2 -2
  40. package/web/app/immutable/chunks/{Dkt7Tsgw.js → BMvbnoDk.js} +1 -1
  41. package/web/app/immutable/chunks/{DAgho_P-.js → BOaNSc_1.js} +1 -1
  42. package/web/app/immutable/chunks/{BZrP_BN5.js → BOrghaSd.js} +2 -2
  43. package/web/app/immutable/chunks/{DDRNgELR.js → BPp7FHiR.js} +1 -1
  44. package/web/app/immutable/chunks/{C0HDG-tg.js → BS5yagDq.js} +1 -1
  45. package/web/app/immutable/chunks/{4EPU-1_C.js → BWHu0fap.js} +1 -1
  46. package/web/app/immutable/chunks/{CT5WLLvq.js → BX-dt_Uh.js} +1 -1
  47. package/web/app/immutable/chunks/{DnWPcgvb.js → BXPwex0u.js} +1 -1
  48. package/web/app/immutable/chunks/{CDFwOYFZ.js → BXean12D.js} +1 -1
  49. package/web/app/immutable/chunks/{BTVnc-yD.js → BZyfa8QR.js} +1 -1
  50. package/web/app/immutable/chunks/{DcQGtdYG.js → BbCn81lZ.js} +1 -1
  51. package/web/app/immutable/chunks/{D2MFHl3c.js → Bc-CUZMV.js} +1 -1
  52. package/web/app/immutable/chunks/{49Xcxy9Z.js → Bcc7Bzbg.js} +1 -1
  53. package/web/app/immutable/chunks/{DQSz8rIC.js → BcpqnYRX.js} +5 -5
  54. package/web/app/immutable/chunks/{H5XG0yyu.js → BdWpSBC4.js} +2 -2
  55. package/web/app/immutable/chunks/{BxxQ5pIU.js → BeqbwVaJ.js} +1 -1
  56. package/web/app/immutable/chunks/{DgDI47Tl.js → BflC9e-C.js} +1 -1
  57. package/web/app/immutable/chunks/{DSP3ClFU.js → Bgw4M5Hc.js} +1 -1
  58. package/web/app/immutable/chunks/{lzfQOUtM.js → Bi4OiJD3.js} +1 -1
  59. package/web/app/immutable/chunks/{CIH3mb7Y.js → BkR5Qiti.js} +1 -1
  60. package/web/app/immutable/chunks/{BMJ3_jM1.js → Bknqawxe.js} +1 -1
  61. package/web/app/immutable/chunks/{2d9ARddo.js → Bm_1OUSw.js} +1 -1
  62. package/web/app/immutable/chunks/{DVX1HL-4.js → Bmmshx2M.js} +1 -1
  63. package/web/app/immutable/chunks/{DYepVMa7.js → Bo4s1kgI.js} +3 -3
  64. package/web/app/immutable/chunks/{D_FHOcPH.js → Bok30zBH.js} +1 -1
  65. package/web/app/immutable/chunks/{DsQHEEWt.js → BsB3ty-n.js} +1 -1
  66. package/web/app/immutable/chunks/{BsCDeyle.js → BtTBXjdJ.js} +1 -1
  67. package/web/app/immutable/chunks/{r2I2bB7k.js → BtWwzwrf.js} +1 -1
  68. package/web/app/immutable/chunks/{D8UQMJEh.js → BvkV35-O.js} +1 -1
  69. package/web/app/immutable/chunks/{fUyHJpWx.js → BwICfRz9.js} +1 -1
  70. package/web/app/immutable/chunks/{CfpYQrWa.js → BwYRCP9e.js} +1 -1
  71. package/web/app/immutable/chunks/{C9Az19Q-.js → ByKL05wN.js} +1 -1
  72. package/web/app/immutable/chunks/{u-Ou3zHY.js → Byv2GcxJ.js} +2 -2
  73. package/web/app/immutable/chunks/{D-NAfI6p.js → BziQ6zwo.js} +1 -1
  74. package/web/app/immutable/chunks/{SrOLwB5L.js → C-RJDuZ9.js} +1 -1
  75. package/web/app/immutable/chunks/{IsZuHG2a.js → C-neqscP.js} +1 -1
  76. package/web/app/immutable/chunks/{CtNKFf3W.js → C06rhFz-.js} +1 -1
  77. package/web/app/immutable/chunks/{VKc1-U2z.js → C0VXEpDj.js} +1 -1
  78. package/web/app/immutable/chunks/{ivVGXMNS.js → C0mBOV7w.js} +1 -1
  79. package/web/app/immutable/chunks/{B9MzVcgv.js → C11XjPnf.js} +3 -3
  80. package/web/app/immutable/chunks/{55B_mQC6.js → C3AKbypo.js} +6 -6
  81. package/web/app/immutable/chunks/{ChV6OcuF.js → C3lgqjB4.js} +1 -1
  82. package/web/app/immutable/chunks/{DFRP5ruh.js → C5aeZ3Yo.js} +2 -2
  83. package/web/app/immutable/chunks/{Bk4gFCP5.js → C6-BVYMv.js} +1 -1
  84. package/web/app/immutable/chunks/C76-jvlr.js +19 -0
  85. package/web/app/immutable/chunks/{DlUfd75E.js → C7JWgw8J.js} +3 -3
  86. package/web/app/immutable/chunks/{DjWen1vr.js → C804xHCz.js} +1 -1
  87. package/web/app/immutable/chunks/{DdteGby8.js → C8xPpxcv.js} +1 -1
  88. package/web/app/immutable/chunks/{BoUhyyfU.js → C8zzua9V.js} +1 -1
  89. package/web/app/immutable/chunks/{CuTNRxpo.js → CAgY0H5Q.js} +1 -1
  90. package/web/app/immutable/chunks/{ApbPdiAE.js → CBxbaIvA.js} +1 -1
  91. package/web/app/immutable/chunks/CCaX_DIa.js +1 -0
  92. package/web/app/immutable/chunks/{7z2H_RtS.js → CCnP87Jb.js} +1 -1
  93. package/web/app/immutable/chunks/{CrkvePNd.js → CCsRc7xx.js} +1 -1
  94. package/web/app/immutable/chunks/{CXux1NAJ.js → CDsY8gY8.js} +1 -1
  95. package/web/app/immutable/chunks/{DMu4mjpX.js → CEFpGNTq.js} +1 -1
  96. package/web/app/immutable/chunks/{V4Dt-iuy.js → CEj75uMJ.js} +1 -1
  97. package/web/app/immutable/chunks/{Le4YFzxz.js → CG9qWr93.js} +3 -3
  98. package/web/app/immutable/chunks/{DjfcjPFA.js → CGBBhq8k.js} +1 -1
  99. package/web/app/immutable/chunks/{DU9iEtZ1.js → CGIf2jXM.js} +1 -1
  100. package/web/app/immutable/chunks/{BS3L5ssG.js → CGVJO4eq.js} +1 -1
  101. package/web/app/immutable/chunks/{ipFV2AXr.js → CHM5tGJ6.js} +1 -1
  102. package/web/app/immutable/chunks/CHRkLzGl.js +1 -0
  103. package/web/app/immutable/chunks/{D5BYjywr.js → CHZAzCO9.js} +2 -2
  104. package/web/app/immutable/chunks/{Dby-RtfB.js → CIh8Ybhq.js} +1 -1
  105. package/web/app/immutable/chunks/{BnY6qa9O.js → CKO4faLg.js} +1 -1
  106. package/web/app/immutable/chunks/{Cm-Ux8AK.js → CKwPlZ66.js} +1 -1
  107. package/web/app/immutable/chunks/{5BaUgoc7.js → CLmrIbfi.js} +1 -1
  108. package/web/app/immutable/chunks/{DeFnstZp.js → CM7Hb3PZ.js} +1 -1
  109. package/web/app/immutable/chunks/{JwXVdNK9.js → CN70DRE5.js} +1 -1
  110. package/web/app/immutable/chunks/{Dbcyn1sm.js → CPKLysog.js} +1 -1
  111. package/web/app/immutable/chunks/CRyHSgI1.js +1 -0
  112. package/web/app/immutable/chunks/{Bv7Cc181.js → CS7dHtKw.js} +1 -1
  113. package/web/app/immutable/chunks/{XL81JlY3.js → CTlGDL05.js} +1 -1
  114. package/web/app/immutable/chunks/{DkrIcKd4.js → CVjlpAWj.js} +3 -3
  115. package/web/app/immutable/chunks/{vnFqKiHP.js → CVrH3Neh.js} +1 -1
  116. package/web/app/immutable/chunks/{D7ZBvVv7.js → CXIZuwd7.js} +1 -1
  117. package/web/app/immutable/chunks/{IYLMGQxr.js → CY9IKMQG.js} +1 -1
  118. package/web/app/immutable/chunks/{CKiOztob.js → CYOvUFvY.js} +1 -1
  119. package/web/app/immutable/chunks/{DOxrGs5l.js → CZEWv-Gf.js} +1 -1
  120. package/web/app/immutable/chunks/{jiIr1QvR.js → C_Vz3LCC.js} +1 -1
  121. package/web/app/immutable/chunks/{sOHh4EMg.js → Cb3FWEmc.js} +1 -1
  122. package/web/app/immutable/chunks/{BvO0zD3q.js → Cbqk5Mud.js} +1 -1
  123. package/web/app/immutable/chunks/{BkH6TsO0.js → CchM71Qw.js} +1 -1
  124. package/web/app/immutable/chunks/{zl8Sz0Gx.js → CdGIN-T1.js} +3 -3
  125. package/web/app/immutable/chunks/{V_BIwIYH.js → CdVKa6AF.js} +2 -2
  126. package/web/app/immutable/chunks/{CMcfEzCt.js → Ced26xBL.js} +1 -1
  127. package/web/app/immutable/chunks/{DukwQosN.js → Ci959ZOg.js} +1 -1
  128. package/web/app/immutable/chunks/{DDhu5Shq.js → Cja4W1Zb.js} +4 -4
  129. package/web/app/immutable/chunks/{DtL3mwiX.js → CmAVmm3T.js} +1 -1
  130. package/web/app/immutable/chunks/CmYXfe7_.js +1 -0
  131. package/web/app/immutable/chunks/{BoAwi0I6.js → CoUfnBeR.js} +1 -1
  132. package/web/app/immutable/chunks/{COuKp8NZ.js → Cq6ekj5I.js} +1 -1
  133. package/web/app/immutable/chunks/{CrF5hjNA.js → CqGkRJXi.js} +1 -1
  134. package/web/app/immutable/chunks/{CGVZRNqq.js → Cqay3Iio.js} +1 -1
  135. package/web/app/immutable/chunks/{D8l-pxCs.js → CsqvO7xN.js} +1 -1
  136. package/web/app/immutable/chunks/{DQhHyGm2.js → Ctggj9Y1.js} +1 -1
  137. package/web/app/immutable/chunks/{CTIoKRdg.js → Cts399i7.js} +1 -1
  138. package/web/app/immutable/chunks/{TRcwahzR.js → CulY8r4s.js} +1 -1
  139. package/web/app/immutable/chunks/{3TX-_riq.js → CvBuWqyP.js} +4 -4
  140. package/web/app/immutable/chunks/{DB531Hr_.js → CvegPRPp.js} +2 -2
  141. package/web/app/immutable/chunks/{Do2QepJk.js → Cwv7iryQ.js} +1 -1
  142. package/web/app/immutable/chunks/{CYvGLw1Y.js → CxQ0SCX2.js} +1 -1
  143. package/web/app/immutable/chunks/{DZxiqmZj.js → CxZuxrAL.js} +1 -1
  144. package/web/app/immutable/chunks/{sWFJeG75.js → Cz8iOYm8.js} +1 -1
  145. package/web/app/immutable/chunks/{DUW0BlH5.js → CztKENY4.js} +1 -1
  146. package/web/app/immutable/chunks/{XWXuV5J_.js → D26IPp5S.js} +1 -1
  147. package/web/app/immutable/chunks/{mEKKjA-u.js → D2iCI9dn.js} +1 -1
  148. package/web/app/immutable/chunks/{CZFJH8pA.js → D2zJp5fS.js} +29 -29
  149. package/web/app/immutable/chunks/{Bv-JB2Uu.js → D4e2w8TP.js} +1 -1
  150. package/web/app/immutable/chunks/{BmGPu7Nl.js → D5lr7eae.js} +2 -2
  151. package/web/app/immutable/chunks/{9Lm8k_8r.js → D6dCvfQe.js} +1 -1
  152. package/web/app/immutable/chunks/{CMeoq2YD.js → D7q-DSVP.js} +1 -1
  153. package/web/app/immutable/chunks/{Btkc4GhJ.js → D84A4J8d.js} +1 -1
  154. package/web/app/immutable/chunks/{Df_CcsUd.js → DDdLPEvL.js} +1 -1
  155. package/web/app/immutable/chunks/{DU9yd1xn.js → DDnwQoVq.js} +1 -1
  156. package/web/app/immutable/chunks/{MJGmlCLu.js → DFcwI6Rh.js} +1 -1
  157. package/web/app/immutable/chunks/{BQKHJuv8.js → DFyBaL9d.js} +1 -1
  158. package/web/app/immutable/chunks/{CCmXROuj.js → DI4wCe7O.js} +1 -1
  159. package/web/app/immutable/chunks/{DSbw-nyW.js → DJKXcaw9.js} +1 -1
  160. package/web/app/immutable/chunks/{B524kvVw.js → DMRQ6CDd.js} +2 -2
  161. package/web/app/immutable/chunks/{i3h2CX4F.js → DMvfzQWM.js} +1 -1
  162. package/web/app/immutable/chunks/{KJelEqX3.js → DNFHGDC9.js} +1 -1
  163. package/web/app/immutable/chunks/{R6dAjEem.js → DNNMwmDG.js} +1 -1
  164. package/web/app/immutable/chunks/{CZ5Pr0zI.js → DOzF5uE-.js} +1 -1
  165. package/web/app/immutable/chunks/{DDdEHmdT.js → DPoarPZL.js} +1 -1
  166. package/web/app/immutable/chunks/{273-ejOd.js → DR4i54x0.js} +1 -1
  167. package/web/app/immutable/chunks/{CCVg2HgS.js → DRpDjwRs.js} +1 -1
  168. package/web/app/immutable/chunks/{Dy4G53ce.js → DS2Q5gr9.js} +1 -1
  169. package/web/app/immutable/chunks/{B-ukGsyU.js → DSdY0J1g.js} +1 -1
  170. package/web/app/immutable/chunks/{DgvGDMI5.js → DXySew1R.js} +1 -1
  171. package/web/app/immutable/chunks/{C72zM9oE.js → DYfBNrOV.js} +1 -1
  172. package/web/app/immutable/chunks/{CCghBHzC.js → DYhpST_X.js} +1 -1
  173. package/web/app/immutable/chunks/{QeTaV4Op.js → DZAWjsA4.js} +1 -1
  174. package/web/app/immutable/chunks/{CBE9bOjQ.js → DZtstCLQ.js} +1 -1
  175. package/web/app/immutable/chunks/{B1892jNy.js → D_HysCp7.js} +1 -1
  176. package/web/app/immutable/chunks/{BOypJjQg.js → Dd0rdLMI.js} +1 -1
  177. package/web/app/immutable/chunks/{CwSP6heW.js → Dd7A9glX.js} +1 -1
  178. package/web/app/immutable/chunks/{C2pLxq9N.js → Dgqdx3pd.js} +1 -1
  179. package/web/app/immutable/chunks/{Ca0VZzWN.js → DhtKWu39.js} +1 -1
  180. package/web/app/immutable/chunks/{BBvT7Bb8.js → Dix9BiYu.js} +1 -1
  181. package/web/app/immutable/chunks/{CK2xtMaJ.js → DjqPgoUP.js} +1 -1
  182. package/web/app/immutable/chunks/DlBxdhh5.js +2 -0
  183. package/web/app/immutable/chunks/{CgQiyraX.js → DlZzAKZ2.js} +1 -1
  184. package/web/app/immutable/chunks/{CW_MTCOu.js → DnfX8iZ_.js} +1 -1
  185. package/web/app/immutable/chunks/Dritbi2C.js +6 -0
  186. package/web/app/immutable/chunks/{cYktK7bI.js → DsRLPs6I.js} +10 -10
  187. package/web/app/immutable/chunks/{DVijqcE1.js → Du7yAEgM.js} +1 -1
  188. package/web/app/immutable/chunks/{oB6nSTCC.js → DuMlpvYZ.js} +1 -1
  189. package/web/app/immutable/chunks/{DbSP_yi5.js → DwNzQjT_.js} +1 -1
  190. package/web/app/immutable/chunks/{DWcUEP_3.js → DwsRDnkS.js} +4 -4
  191. package/web/app/immutable/chunks/{T2aO1XPv.js → DyVNmy1r.js} +1 -1
  192. package/web/app/immutable/chunks/{IwQXvQKq.js → I0eHZGMz.js} +1 -1
  193. package/web/app/immutable/chunks/{DLme1vI4.js → JfyBNQs2.js} +1 -1
  194. package/web/app/immutable/chunks/{YGDnq71P.js → NeHKo0ZG.js} +1 -1
  195. package/web/app/immutable/chunks/{CAhuuwZ9.js → O0CxvO89.js} +1 -1
  196. package/web/app/immutable/chunks/{DudXAl_N.js → Ob5NWDgS.js} +1 -1
  197. package/web/app/immutable/chunks/{Dczc0YMo.js → PUalo3UE.js} +1 -1
  198. package/web/app/immutable/chunks/{DXjHY2hF.js → QGE3iD8D.js} +1 -1
  199. package/web/app/immutable/chunks/{_p09hiud.js → QSR6vsk4.js} +1 -1
  200. package/web/app/immutable/chunks/{9tzjcklF.js → QjpXu0Du.js} +1 -1
  201. package/web/app/immutable/chunks/{CPObUSo8.js → UEd-gngc.js} +1 -1
  202. package/web/app/immutable/chunks/VEkj47bo.js +1 -0
  203. package/web/app/immutable/chunks/{Cx547a39.js → VeIqG7dc.js} +4 -4
  204. package/web/app/immutable/chunks/{j3QkolT-.js → XF_IbTR1.js} +3 -3
  205. package/web/app/immutable/chunks/{CcVvQKcJ.js → XV0T3w4n.js} +1 -1
  206. package/web/app/immutable/chunks/{Dk1FwKDL.js → YO4PhogQ.js} +1 -1
  207. package/web/app/immutable/chunks/{BLl4jbbs.js → aLZSbque.js} +2 -2
  208. package/web/app/immutable/chunks/{DKBox7Ew.js → csuWDYc9.js} +1 -1
  209. package/web/app/immutable/chunks/{CnlzKY2y.js → dmSYAakE.js} +1 -1
  210. package/web/app/immutable/chunks/eK7OULll.js +1 -0
  211. package/web/app/immutable/chunks/{Cugknw1m.js → gCXIPBa3.js} +1 -1
  212. package/web/app/immutable/chunks/{CJhkZF1l.js → hxIWaKu8.js} +1 -1
  213. package/web/app/immutable/chunks/{C3lmZVdU.js → jMKjj8ae.js} +1 -1
  214. package/web/app/immutable/chunks/{Dpk7e0gp.js → jvHJQ-Xz.js} +1 -1
  215. package/web/app/immutable/chunks/{BB6TPLRQ.js → k4eU_FWk.js} +1 -1
  216. package/web/app/immutable/chunks/{BigdBsL9.js → nLw8YrmA.js} +1 -1
  217. package/web/app/immutable/chunks/{mk8wN9pR.js → nR16njgN.js} +1 -1
  218. package/web/app/immutable/chunks/{Dld3dCA-.js → o5rEX9Xy.js} +1 -1
  219. package/web/app/immutable/chunks/{B30Ssr1r.js → p5gLe3PS.js} +1 -1
  220. package/web/app/immutable/chunks/{VKC6gzws.js → pnKMO5U0.js} +53 -53
  221. package/web/app/immutable/chunks/{CGTFiYKr.js → reR1kPlm.js} +1 -1
  222. package/web/app/immutable/chunks/{BwfkZxtl.js → tGqA6xQ9.js} +1 -1
  223. package/web/app/immutable/chunks/uLB4Kp9c.js +1 -0
  224. package/web/app/immutable/chunks/{CI-U2zwu.js → ubLEbEcV.js} +1 -1
  225. package/web/app/immutable/chunks/{Dtei9o3U.js → uyOfKmty.js} +3 -3
  226. package/web/app/immutable/chunks/{DVRDTT5s.js → vUGF5JqJ.js} +1 -1
  227. package/web/app/immutable/chunks/{DamIfQPR.js → vzGm0J_h.js} +1 -1
  228. package/web/app/immutable/chunks/{Dlalsrb2.js → w6mFE4SD.js} +1 -1
  229. package/web/app/immutable/chunks/{OvSKCwS-.js → z3QVK190.js} +2 -2
  230. package/web/app/immutable/entry/{app.DnikQ4I9.js → app.PHHlgSoZ.js} +3 -3
  231. package/web/app/immutable/entry/start.Cltn4m6a.js +1 -0
  232. package/web/app/immutable/nodes/{0.C7A1xQm9.js → 0.D7bJjS_y.js} +1 -1
  233. package/web/app/immutable/nodes/{1.D3O5lTcl.js → 1.B3gH8FG5.js} +1 -1
  234. package/web/app/immutable/nodes/{10.BaLN4VIK.js → 10.NQcSgQgq.js} +4 -4
  235. package/web/app/immutable/nodes/{11.DNy1N3E_.js → 11.Drfz7PRj.js} +1 -1
  236. package/web/app/immutable/nodes/{12.CkJqJXDQ.js → 12.gXokqM9g.js} +1 -1
  237. package/web/app/immutable/nodes/{13.BQO-XqRU.js → 13.DFxxGy6Y.js} +3 -3
  238. package/web/app/immutable/nodes/{14.BycEEfsq.js → 14.7T2ChNl_.js} +1 -1
  239. package/web/app/immutable/nodes/{15.Cul5GEsK.js → 15.CgEeXtgJ.js} +1 -1
  240. package/web/app/immutable/nodes/{16.BjrtGDLp.js → 16.CWrHY2VB.js} +2 -2
  241. package/web/app/immutable/nodes/{2.Cfk2c4l0.js → 2.DQ6QcB9c.js} +8 -8
  242. package/web/app/immutable/nodes/{3.Dp8QGgRH.js → 3.Fjkgohv2.js} +1 -1
  243. package/web/app/immutable/nodes/{4.D3m3OUdj.js → 4.D1BNF_ep.js} +1 -1
  244. package/web/app/immutable/nodes/{5.BMBYYbKi.js → 5.C5OySrRk.js} +2 -2
  245. package/web/app/immutable/nodes/{6.BIo4yUgT.js → 6.BrxG9qCf.js} +1 -1
  246. package/web/app/immutable/nodes/{7.DdNd4GXX.js → 7.CvdabbdY.js} +1 -1
  247. package/web/app/immutable/nodes/8.BSQtFfFS.js +15 -0
  248. package/web/app/immutable/nodes/{9.kCWJBZ1N.js → 9.D6DS9Z9f.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +49 -49
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/4Qt-u50Z.js +0 -1
  253. package/web/app/immutable/chunks/B--T3tY0.js +0 -19
  254. package/web/app/immutable/chunks/BJzlL5VK.js +0 -1
  255. package/web/app/immutable/chunks/C7-4lB53.js +0 -6
  256. package/web/app/immutable/chunks/CR8nwpLC.js +0 -1
  257. package/web/app/immutable/chunks/CduK2Osu.js +0 -1
  258. package/web/app/immutable/chunks/CmTfIBH2.js +0 -2
  259. package/web/app/immutable/chunks/DakbBhJV.js +0 -1
  260. package/web/app/immutable/chunks/DclJ6-AA.js +0 -1
  261. package/web/app/immutable/chunks/DozYGPQ1.js +0 -1
  262. package/web/app/immutable/entry/start.DW0TPq6E.js +0 -1
  263. package/web/app/immutable/nodes/8.Cp6GdAVQ.js +0 -15
@@ -1 +1 @@
1
- var tn=Object.defineProperty;var $t=i=>{throw TypeError(i)};var rn=(i,e,t)=>e in i?tn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var L=(i,e,t)=>rn(i,typeof e!="symbol"?e+"":e,t),St=(i,e,t)=>e.has(i)||$t("Cannot "+t);var h=(i,e,t)=>(St(i,e,"read from private field"),t?t.call(i):e.get(i)),H=(i,e,t)=>e.has(i)?$t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ne=(i,e,t,r)=>(St(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Pe=(i,e,t)=>(St(i,e,"access private method"),t);import{t as ee,bq as d,a_ as $,by as te,b as re,br as ye,bt as _e,bo as er}from"./DozYGPQ1.js";import{c9 as I,aD as n,bs as ne,a7 as q,ay as F,W as P,bn as oe,aA as u,aB as J,bH as k,bV as Y,bi as nn,ca as de,cb as on,bf as ae,bo as Oe,a5 as Z,bA as Q,bS as Ee,bI as hr,aG as Ct,c5 as sn,bl as gr,b_ as Se,bO as an,br as pr,at as ln,bk as dn,c0 as Et}from"./DYhIMPy1.js";import{s as j}from"./B30Ssr1r.js";import{c as ve}from"./MJGmlCLu.js";import{e as un,k as cn,g as hn,c as gn,i as pn,f as fn,b as vn,s as mn,j as bn}from"./CZ5Pr0zI.js";import{c as se,h as Tt,f as ue,k as Me,a as bt,d as vt,o as yn,j as wn,s as fr}from"./CBE9bOjQ.js";import{bI as xn,bn as ce,aI as _n,b4 as In,h as Dt,av as Ie,D as Nt,i as Cn,d as le,a as me,l as yt,ad as kt,ak as wt,a2 as Ft,K as Kt,a1 as Bt,E as Wt,bo as vr,bB as mr,aZ as br,aB as yr,aE as Ut,b1 as qt,aF as wr,bM as be,bi as Nn,bu as Pn,b3 as Sn,b2 as kn,aH as tr,au as xr,a6 as On,aJ as U,aS as En,m as _r,b as Tn,c as An,a8 as Mn,C as Rn,g as Hn,A as Ln,M as Vn,F as Dn,r as Fn,s as Kn,t as Bn,u as Wn,v as Un,w as qn,x as zn,y as Gn,o as Yn,p as jn,q as Jn,B as Xn,z as Zn,aT as he,bp as X,a4 as Ir,a3 as Cr,bw as Qn,H as $n,f as eo,bJ as Nr,a5 as to}from"./DkrIcKd4.js";import{F as Pr,av as ro,bW as no,ax as oo,at as so}from"./CpEHCOut.js";import{b as io}from"./BaIAhI85.js";import{F as ao}from"./BBvT7Bb8.js";import{H as rr,g as nr,S as ft}from"./C72zM9oE.js";import{c as lo,u as uo,s as co}from"./DfxQWSVU.js";import"./Ca0VZzWN.js";const Sr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};xn(Sr);var Re,_t;class ho{constructor(e,t){H(this,Re,()=>{});H(this,_t,I(()=>h(this,Re).call(this)));let r;t!==void 0&&(r=t),Ne(this,Re,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,_t))}}Re=new WeakMap,_t=new WeakMap;var go=new Set(["$$slots","$$events","$$legacy","value"]),or=J("<input/>");function kr(i,e){if(new.target)return ee({component:kr,...i});ne(e,!0);let t=d(e,"value",15),r=ye(e,go);const o=I(()=>ce(r,{"aria-hidden":"true",tabindex:-1,style:{...Sr,position:"absolute",top:"0",left:"0"}}));var s={get value(){return t()},set value(l){t(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},a=q(),g=F(a);{var _=l=>{var c=or();se(c,()=>({...n(o),value:t()}),void 0,void 0,void 0,void 0,!0),P(l,c)},m=l=>{var c=or();se(c,()=>({...n(o)}),void 0,void 0,void 0,void 0,!0),un(c,t),P(l,c)};$(g,l=>{n(o).type==="checkbox"?l(_):l(m,-1)})}return P(i,a),oe(s)}var pe,we,fe;class po{constructor(e){H(this,pe);H(this,we,I(()=>h(this,pe).candidateValues()));H(this,fe);Ne(this,pe,e),Ne(this,fe,_n("",{afterMs:1e3,getWindow:h(this,pe).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,pe).enabled()||!n(h(this,we)).length)return;h(this,fe).current=h(this,fe).current+e;const t=h(this,pe).getCurrentItem(),r=n(h(this,we)).find(g=>g===t)??"",o=n(h(this,we)).map(g=>g??""),s=In(o,h(this,fe).current,r),a=n(h(this,we)).find(g=>g===s);return a&&h(this,pe).onMatch(a),a}resetTypeahead(){h(this,fe).current=""}}pe=new WeakMap,we=new WeakMap,fe=new WeakMap;const sr=[Tn,_r,An,Mn,Rn,Hn,Ln,Vn,yt,Dn,Fn,Kn,Bn,Wn,Un,qn,zn,Gn,Yn,jn,Jn],fo=[me,Ft,Kt],vo=[le,Bt,Wt],Or=[...fo,...vo],mo=En({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ce=new Dt("Select.Root | Combobox.Root"),Er=new Dt("Select.Group | Combobox.Group"),Tr=new Dt("Select.Content | Combobox.Content");var He,Le,Ve,De,Fe,Ke,Be,We,Ue,qe,ze,Ge;class Ar{constructor(e){L(this,"opts");H(this,He,Y(!1));H(this,Le,Y(null));H(this,Ve,Y(null));L(this,"contentPresence");H(this,De,Y(null));H(this,Fe,Y(null));H(this,Ke,Y(null));H(this,Be,Y(""));H(this,We,Y(null));H(this,Ue,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,qe,I(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,ze,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ge,Y(!1));L(this,"isUsingKeyboard",!1);L(this,"isCombobox",!1);L(this,"domContext",new Nt(()=>null));L(this,"getBitsAttr",e=>mo.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new On({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),on(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,He))}set touchedInput(e){k(h(this,He),e,!0)}get inputNode(){return n(h(this,Le))}set inputNode(e){k(h(this,Le),e,!0)}get contentNode(){return n(h(this,Ve))}set contentNode(e){k(h(this,Ve),e,!0)}get viewportNode(){return n(h(this,De))}set viewportNode(e){k(h(this,De),e,!0)}get triggerNode(){return n(h(this,Fe))}set triggerNode(e){k(h(this,Fe),e,!0)}get valueNode(){return n(h(this,Ke))}set valueNode(e){k(h(this,Ke),e,!0)}get valueId(){return n(h(this,Be))}set valueId(e){k(h(this,Be),e,!0)}get highlightedNode(){return n(h(this,We))}set highlightedNode(e){k(h(this,We),e,!0)}get highlightedValue(){return n(h(this,Ue))}set highlightedValue(e){k(h(this,Ue),e)}get highlightedId(){return n(h(this,qe))}set highlightedId(e){k(h(this,qe),e)}get highlightedLabel(){return n(h(this,ze))}set highlightedLabel(e){k(h(this,ze),e)}get contentIsPositioned(){return n(h(this,Ge))}set contentIsPositioned(e){k(h(this,Ge),e,!0)}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();t=t.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=r.right&&s.left>=r.left&&s.bottom<=r.bottom&&s.top>=r.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(r=>r.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const t=this.opts.items.current.find(o=>o.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const o=r.getAttribute("data-label");return o!==null&&o!==""?o:r.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}He=new WeakMap,Le=new WeakMap,Ve=new WeakMap,De=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,Be=new WeakMap,We=new WeakMap,Ue=new WeakMap,qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap;var Ye,je,Je,Xe;class bo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!1);H(this,Ye,I(()=>this.opts.value.current!==""));H(this,je,I(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Je,I(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Xe,I(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ye))}set hasValue(t){k(h(this,Ye),t)}get currentLabel(){return n(h(this,je))}set currentLabel(t){k(h(this,je),t)}get candidateLabels(){return n(h(this,Je))}set candidateLabels(t){k(h(this,Je),t)}get dataTypeaheadEnabled(){return n(h(this,Xe))}set dataTypeaheadEnabled(t){k(h(this,Xe),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){xr(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ye=new WeakMap,je=new WeakMap,Je=new WeakMap,Xe=new WeakMap;var Ze;class yo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!0);H(this,Ze,I(()=>this.opts.value.current.length>0));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ze))}set hasValue(t){k(h(this,Ze),t)}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){xr(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ze=new WeakMap;class wo{static create(e){const{type:t,...r}=e,o=t==="single"?new bo(r):new yo(r);return Ce.set(o)}}var Qe;const zt=class zt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,Qe,I(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":wr(this.root.opts.open.current),"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.inputNode=r),this.root.domContext=new Nt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),be([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,o],[s])=>{o&&(Array.isArray(r)&&Array.isArray(s)?r.length===0&&s.length!==0&&(this.root.opts.inputValue.current=""):r===""&&s!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new zt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==_r){if((e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(sr.includes(e.key)||e.key===wt||e.key===Xn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===me){const r=t[0];this.root.setHighlightedNode(r)}else if(e.key===le){const r=t[t.length-1];this.root.setHighlightedNode(r)}return}if(e.key===wt){this.root.handleClose();return}if(e.key===yt&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,o=r?t.indexOf(r):-1,s=this.root.opts.loop.current;let a;if(e.key===me?a=vr(t,o,s):e.key===le?a=mr(t,o,s):e.key===Bt?a=br(t,o,10,s):e.key===Ft?a=yr(t,o,10,s):e.key===Kt?a=t[0]:e.key===Wt&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}sr.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};Qe=new WeakMap;let ir=zt;var xe,ke,ge,Mr,Mt,Rt,$e;const Gt=class Gt{constructor(e,t){H(this,ge);L(this,"opts");L(this,"root");L(this,"attachment");H(this,xe);H(this,ke);H(this,$e,I(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":wr(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new Nt(e.ref),Ne(this,xe,new Cn({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ne(this,ke,new po({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===r);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return new Gt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===yt||e.key===kt||e.key===me||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,ke).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const a=this.root.getCandidateNodes();if(!a.length)return;if(e.key===me){const g=a[0];this.root.setHighlightedNode(g)}else if(e.key===le){const g=a[a.length-1];this.root.setHighlightedNode(g)}return}if(e.key===wt){this.root.handleClose();return}if((e.key===yt||e.key===kt&&h(this,xe).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,ge,Rt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const a=this.root.getCandidateNodes(),g=this.root.highlightedNode,_=g?a.indexOf(g):-1,m=this.root.opts.loop.current;let l;if(e.key===me?l=vr(a,_,m):e.key===le?l=mr(a,_,m):e.key===Bt?l=br(a,_,10,m):e.key===Ft?l=yr(a,_,10,m):e.key===Kt?l=a[0]:e.key===Wt&&(l=a[a.length-1]),!l)return;this.root.setHighlightedNode(l);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,o=e.key===kt,s=this.root.getCandidateNodes();if(e.key!==wt){if(!t&&(r||o)){!h(this,xe).handleTypeaheadSearch(e.key,s)&&o&&(e.preventDefault(),Pe(this,ge,Rt).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose()))}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};xe=new WeakMap,ke=new WeakMap,ge=new WeakSet,Mr=function(){this.root.opts.open.current=!0,h(this,ke).resetTypeahead(),h(this,xe).resetTypeahead()},Mt=function(e){Pe(this,ge,Mr).call(this)},Rt=function(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)},$e=new WeakMap;let At=Gt;var et,It,tt,rt;const Yt=class Yt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,et,Y(!1));L(this,"domContext");H(this,It,I(()=>Sn(this.root.isCombobox?"combobox":"select")));L(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onOpenAutoFocus",e=>{e.preventDefault()});L(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,tt,I(()=>({open:this.root.opts.open.current})));H(this,rt,I(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":qt(this.root.opts.open.current),...kn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,It))},onpointermove:this.onpointermove,...this.attachment})));L(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.contentNode=r),this.domContext=new Nt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Pn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),be(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),be([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(e){return Tr.set(new Yt(e,Ce.get()))}get isPositioned(){return n(h(this,et))}set isPositioned(e){k(h(this,et),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,tt))}set snippetProps(e){k(h(this,tt),e)}get props(){return n(h(this,rt))}set props(e){k(h(this,rt),e)}};et=new WeakMap,It=new WeakMap,tt=new WeakMap,rt=new WeakMap;let xt=Yt;var nt,ot,st,it,at;const jt=class jt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,nt,I(()=>this.root.includesItem(this.opts.value.current)));H(this,ot,I(()=>this.root.highlightedValue===this.opts.value.current));L(this,"prevHighlighted",new ho(()=>this.isHighlighted));H(this,st,Y(!1));H(this,it,I(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,at,I(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Ut(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref),be([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),be(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(e){return new jt(e,Ce.get())}get isSelected(){return n(h(this,nt))}set isSelected(e){k(h(this,nt),e)}get isHighlighted(){return n(h(this,ot))}set isHighlighted(e){k(h(this,ot),e)}get mounted(){return n(h(this,st))}set mounted(e){k(h(this,st),e,!0)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return n(h(this,it))}set snippetProps(e){k(h(this,it),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Nn){nn(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};nt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,at=new WeakMap;let Ht=jt;var lt,dt;const Jt=class Jt{constructor(e,t){L(this,"opts");L(this,"root");H(this,lt,Y(null));L(this,"attachment");H(this,dt,I(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref)}static create(e){return Er.set(new Jt(e,Ce.get()))}get labelNode(){return n(h(this,lt))}set labelNode(e){k(h(this,lt),e,!0)}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let ar=Jt;var ut;const Xt=class Xt{constructor(e,t){L(this,"opts");L(this,"group");L(this,"attachment");H(this,ut,I(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ie(e.ref,r=>this.group.labelNode=r)}static create(e){return new Xt(e,Er.get())}get props(){return n(h(this,ut))}set props(e){k(h(this,ut),e)}};ut=new WeakMap;let lr=Xt;var ct,ht;const Zt=class Zt{constructor(e,t){L(this,"opts");L(this,"root");H(this,ct,I(()=>this.root.opts.name.current!==""));H(this,ht,I(()=>({disabled:tr(this.root.opts.disabled.current),required:tr(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}static create(e){return new Zt(e,Ce.get())}get shouldRender(){return n(h(this,ct))}set shouldRender(e){k(h(this,ct),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ct=new WeakMap,ht=new WeakMap;let Lt=Zt;var gt,pt;const Qt=class Qt{constructor(e,t){L(this,"opts");L(this,"content");L(this,"root");L(this,"attachment");H(this,gt,Y(0));H(this,pt,I(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=e,this.content=t,this.root=t.root,this.attachment=Ie(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Qt(e,Tr.get())}get prevScrollTop(){return n(h(this,gt))}set prevScrollTop(e){k(h(this,gt),e,!0)}get props(){return n(h(this,pt))}set props(e){k(h(this,pt),e)}};gt=new WeakMap,pt=new WeakMap;let Vt=Qt;function mt(i,e){if(new.target)return ee({component:mt,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"autocomplete",7);const o=Lt.create({value:U(()=>t())});var s={get value(){return t()},set value(m){t(m),u()},get autocomplete(){return r()},set autocomplete(m){r(m),u()},$set:te,$on:(m,l)=>re(e,m,l)},a=q(),g=F(a);{var _=m=>{kr(m,_e(()=>o.props,{get autocomplete(){return r()},get value(){return t()},set value(l){t(l)}}))};$(g,m=>{o.shouldRender&&m(_)})}return P(i,a),oe(s)}function Rr(i,e){if(new.target)return ee({component:Rr,...i});ne(e,!0);let t=d(e,"id",7),r=d(e,"children",7),o=d(e,"virtualEl",7),s=d(e,"ref",7),a=d(e,"tooltip",7,!1);Zn.create({id:U(()=>t()),virtualEl:U(()=>o()),ref:s()},a());var g={get id(){return t()},set id(l){t(l),u()},get children(){return r()},set children(l){r(l),u()},get virtualEl(){return o()},set virtualEl(l){o(l),u()},get ref(){return s()},set ref(l){s(l),u()},get tooltip(){return a()},set tooltip(l=!1){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);return j(m,()=>r()??ae),P(i,_),oe(g)}var xo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),dr=J("<div><div><!></div></div>");function Hr(i,e){const t=Oe();if(new.target)return ee({component:Hr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"side",7,"bottom"),g=d(e,"onInteractOutside",7,X),_=d(e,"onEscapeKeydown",7,X),m=d(e,"children",7),l=d(e,"child",7),c=d(e,"preventScroll",7,!1),T=d(e,"style",7),O=ye(e,xo);const f=xt.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),onInteractOutside:U(()=>g()),onEscapeKeydown:U(()=>_())}),y=I(()=>ce(O,f.props));var b={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get forceMount(){return s()},set forceMount(p=!1){s(p),u()},get side(){return a()},set side(p="bottom"){a(p),u()},get onInteractOutside(){return g()},set onInteractOutside(p=X){g(p),u()},get onEscapeKeydown(){return _()},set onEscapeKeydown(p=X){_(p),u()},get children(){return m()},set children(p){m(p),u()},get child(){return l()},set child(p){l(p),u()},get preventScroll(){return c()},set preventScroll(p=!1){c(p),u()},get style(){return T()},set style(p){T(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},E=q(),R=F(E);{var G=p=>{Ir(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get enabled(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!0,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))},v=p=>{Cr(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get open(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!1,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))};$(R,p=>{s()?p(G):s()||p(v,1)})}return P(i,E),oe(b)}var _o=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),ur=J("<div><!></div>");function Lr(i,e){const t=Oe();if(new.target)return ee({component:Lr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"onInteractOutside",7,X),g=d(e,"onEscapeKeydown",7,X),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"preventScroll",7,!1),c=d(e,"style",7),T=ye(e,_o);const O=xt.create({id:U(()=>r()),ref:U(()=>o(),v=>o(v)),onInteractOutside:U(()=>a()),onEscapeKeydown:U(()=>g())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(v=he(t)){r(v),u()},get ref(){return o()},set ref(v=null){o(v),u()},get forceMount(){return s()},set forceMount(v=!1){s(v),u()},get onInteractOutside(){return a()},set onInteractOutside(v=X){a(v),u()},get onEscapeKeydown(){return g()},set onEscapeKeydown(v=X){g(v),u()},get children(){return _()},set children(v){_(v),u()},get child(){return m()},set child(v){m(v),u()},get preventScroll(){return l()},set preventScroll(v=!1){l(v),u()},get style(){return c()},set style(v){c(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},b=q(),E=F(b);{var R=v=>{Ir(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get enabled(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))},G=v=>{Cr(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get open(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))};$(E,v=>{s()?v(R):s()||v(G,1)})}return P(i,b),oe(y)}function Vr(i,e){if(new.target)return ee({component:Vr,...i});ne(e,!0);let t=d(e,"mounted",15,!1),r=d(e,"onMountedChange",7,X);Qn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var o={get mounted(){return t()},set mounted(s=!1){t(s),u()},get onMountedChange(){return r()},set onMountedChange(s=X){r(s),u()},$set:te,$on:(s,a)=>re(e,s,a)};return oe(o)}var Io=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Co=J("<div><!></div>"),No=J("<!> <!>",1);function Dr(i,e){const t=Oe();if(new.target)return ee({component:Dr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"value",7),a=d(e,"label",23,s),g=d(e,"disabled",7,!1),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"onHighlight",7,X),c=d(e,"onUnhighlight",7,X),T=ye(e,Io);const O=Ht.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),value:U(()=>s()),disabled:U(()=>g()),label:U(()=>a()),onHighlight:U(()=>l()),onUnhighlight:U(()=>c())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get value(){return s()},set value(p){s(p),u()},get label(){return a()},set label(p=s){a(p),u()},get disabled(){return g()},set disabled(p=!1){g(p),u()},get children(){return _()},set children(p){_(p),u()},get child(){return m()},set child(p){m(p),u()},get onHighlight(){return l()},set onHighlight(p=X){l(p),u()},get onUnhighlight(){return c()},set onUnhighlight(p=X){c(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},b=No(),E=F(b);{var R=p=>{var V=q(),N=F(V);{let w=I(()=>({props:n(f),...O.snippetProps}));j(N,m,()=>n(w))}P(p,V)},G=p=>{var V=Co();se(V,()=>({...n(f)}));var N=Z(V);j(N,()=>_()??ae,()=>O.snippetProps),Q(V),P(p,V)};$(E,p=>{m()?p(R):p(G,-1)})}var v=Ee(E,2);return Vr(v,{get mounted(){return O.mounted},set mounted(p){O.mounted=p}}),P(i,b),oe(y)}var Po=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),So=J("<div><!></div>");function Fr(i,e){const t=Oe();if(new.target)return ee({component:Fr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"children",7),a=d(e,"child",7),g=ye(e,Po);const _=Vt.create({id:U(()=>r()),ref:U(()=>o(),y=>o(y))}),m=I(()=>ce(g,_.props));var l={get id(){return r()},set id(y=he(t)){r(y),u()},get ref(){return o()},set ref(y=null){o(y),u()},get children(){return s()},set children(y){s(y),u()},get child(){return a()},set child(y){a(y),u()},$set:te,$on:(y,b)=>re(e,y,b)},c=q(),T=F(c);{var O=y=>{var b=q(),E=F(b);j(E,a,()=>({props:n(m)})),P(y,b)},f=y=>{var b=So();se(b,()=>({...n(m)}));var E=Z(b);j(E,()=>s()??ae),Q(b),P(y,b)};$(T,y=>{a()?y(O):y(f,-1)})}return P(i,c),oe(l)}var ko=J("<!> <!>",1);function Kr(i,e){if(new.target)return ee({component:Kr,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"onValueChange",7,X),o=d(e,"name",7,""),s=d(e,"disabled",7,!1),a=d(e,"type",7),g=d(e,"open",15,!1),_=d(e,"onOpenChange",7,X),m=d(e,"onOpenChangeComplete",7,X),l=d(e,"loop",7,!1),c=d(e,"scrollAlignment",7,"nearest"),T=d(e,"required",7,!1),O=d(e,"items",23,()=>[]),f=d(e,"allowDeselect",7,!1),y=d(e,"autocomplete",7),b=d(e,"children",7);function E(){t()===void 0&&t(a()==="single"?"":[])}E(),be.pre(()=>t(),()=>{E()});let R=Y("");const G=wo.create({type:a(),value:U(()=>t(),x=>{t(x),r()(x)}),disabled:U(()=>s()),required:U(()=>T()),open:U(()=>g(),x=>{g(x),_()(x)}),loop:U(()=>l()),scrollAlignment:U(()=>c()),name:U(()=>o()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>f()),inputValue:U(()=>n(R),x=>k(R,x,!0)),onOpenChangeComplete:U(()=>m())});var v={get value(){return t()},set value(x){t(x),u()},get onValueChange(){return r()},set onValueChange(x=X){r(x),u()},get name(){return o()},set name(x=""){o(x),u()},get disabled(){return s()},set disabled(x=!1){s(x),u()},get type(){return a()},set type(x){a(x),u()},get open(){return g()},set open(x=!1){g(x),u()},get onOpenChange(){return _()},set onOpenChange(x=X){_(x),u()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(x=X){m(x),u()},get loop(){return l()},set loop(x=!1){l(x),u()},get scrollAlignment(){return c()},set scrollAlignment(x="nearest"){c(x),u()},get required(){return T()},set required(x=!1){T(x),u()},get items(){return O()},set items(x=[]){O(x),u()},get allowDeselect(){return f()},set allowDeselect(x=!1){f(x),u()},get autocomplete(){return y()},set autocomplete(x){y(x),u()},get children(){return b()},set children(x){b(x),u()},$set:te,$on:(x,D)=>re(e,x,D)},p=ko(),V=F(p);$n(V,{children:(x,D)=>{var W=q(),K=F(W);j(K,()=>b()??ae),P(x,W)},$$slots:{default:!0}});var N=Ee(V,2);{var w=x=>{var D=q(),W=F(D);{var K=S=>{mt(S,{get autocomplete(){return y()}})},C=S=>{var A=q(),z=F(A);Tt(z,16,()=>G.opts.value.current,ie=>ie,(ie,Te)=>{mt(ie,{get value(){return Te},get autocomplete(){return y()}})}),P(S,A)};$(W,S=>{G.opts.value.current.length===0?S(K):S(C,-1)})}P(x,D)},M=I(()=>Array.isArray(G.opts.value.current)),B=x=>{mt(x,{get autocomplete(){return y()},get value(){return G.opts.value.current},set value(D){G.opts.value.current=D}})};$(N,x=>{n(M)?x(w):x(B,-1)})}return P(i,p),oe(v)}var Oo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),Eo=J("<button><!></button>");function Br(i,e){const t=Oe();if(new.target)return ee({component:Br,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"child",7),a=d(e,"children",7),g=d(e,"type",7,"button"),_=ye(e,Oo);const m=At.create({id:U(()=>r()),ref:U(()=>o(),f=>o(f))}),l=I(()=>ce(_,m.props,{type:g()}));var c={get id(){return r()},set id(f=he(t)){r(f),u()},get ref(){return o()},set ref(f=null){o(f),u()},get child(){return s()},set child(f){s(f),u()},get children(){return a()},set children(f){a(f),u()},get type(){return g()},set type(f="button"){g(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},T=q(),O=F(T);return ve(O,()=>Rr,(f,y)=>{y(f,{get id(){return r()},get ref(){return m.opts.ref},children:(b,E)=>{var R=q(),G=F(R);{var v=V=>{var N=q(),w=F(N);j(w,s,()=>({props:n(l)})),P(V,N)},p=V=>{var N=Eo();se(N,()=>({...n(l)}));var w=Z(N);j(w,()=>a()??ae),Q(N),P(V,N)};$(G,V=>{s()?V(v):V(p,-1)})}P(b,R)},$$slots:{default:!0}})}),P(i,T),oe(c)}var To=J('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Wr(i,e){const t=Oe();if(new.target)return ee({component:Wr,...i});ne(e,!0);const r=`${t}-trigger`;let o=Y(r),s=d(e,"value",15,""),a=d(e,"open",15,!1),g=d(e,"items",23,()=>[]),_=d(e,"disabled",7,!1),m=d(e,"invalid",7,!1),l=d(e,"required",7,!1),c=d(e,"name",7),T=d(e,"loop",7,!0),O=d(e,"onchange",7),f=d(e,"onopenchange",7),y=d(e,"children",7),b=d(e,"staticPosition",7,!1);cn(()=>{a(!1),f()?.(!1)}),hr("canonical-select",{get triggerId(){return n(o)},registerTriggerId(v){k(o,v??r,!0)},listboxId:`${t}-listbox`,get value(){return s()},get displayValue(){return g().find(v=>v.value===s())?.label??s()},get invalid(){return m()},get open(){return a()},get staticPosition(){return b()},set open(v){a(v)}});var E={get value(){return s()},set value(v=""){s(v),u()},get open(){return a()},set open(v=!1){a(v),u()},get items(){return g()},set items(v=[]){g(v),u()},get disabled(){return _()},set disabled(v=!1){_(v),u()},get invalid(){return m()},set invalid(v=!1){m(v),u()},get required(){return l()},set required(v=!1){l(v),u()},get name(){return c()},set name(v){c(v),u()},get loop(){return T()},set loop(v=!0){T(v),u()},get onchange(){return O()},set onchange(v){O(v),u()},get onopenchange(){return f()},set onopenchange(v){f(v),u()},get children(){return y()},set children(v){y(v),u()},get staticPosition(){return b()},set staticPosition(v=!1){b(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},R=To(),G=Z(R);return ve(G,()=>Kr,(v,p)=>{p(v,{type:"single",get items(){return g()},get disabled(){return _()},get required(){return l()},get name(){return c()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return f()},get value(){return s()},set value(V){s(V)},get open(){return a()},set open(V){a(V)},children:(V,N)=>{var w=q(),M=F(w);j(M,()=>y()??ae),P(V,w)},$$slots:{default:!0}})}),Q(R),P(i,R),oe(E)}var Ao=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),Mo=J("<!> <!>",1);function Ur(i,e){if(new.target)return ee({component:Ur,...i});ne(e,!0);const t=(N,w)=>{let M=()=>(w?.()).props;const B=I(()=>G(M()));var x=q(),D=F(x);{var W=C=>{var S=q(),A=F(S);j(A,a,()=>({props:n(B)})),P(C,S)},K=C=>{eo(C,_e(()=>n(B),{get variant(){return n(b)},get active(){return c.open},get class(){return n(E)},children:(S,A)=>{var z=Mo(),ie=F(z);j(ie,()=>s()??ae);var Te=Ee(ie,2);{var Pt=Ae=>{Pr(Ae,{get icon(){return ro},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};$(Te,Ae=>{r()==="default"&&Ae(Pt)})}P(S,z)},$$slots:{default:!0}}))};$(D,C=>{a()?C(W):C(K,-1)})}P(N,x)};let r=d(e,"variant",7,"default"),o=d(e,"class",7,""),s=d(e,"children",7),a=d(e,"child",7),g=d(e,"onclick",7),_=d(e,"id",7),m=d(e,"ref",15,null),l=ye(e,Ao);const c=Ct("canonical-select");sn(()=>c.registerTriggerId(_())),de(()=>c.registerTriggerId(_()));let T=Y(!1);de(()=>{const N=c.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(w=>w.htmlFor===N),!0)});const O=I(()=>!l["aria-label"]&&!l["aria-labelledby"]&&!n(T));let f=Y(void 0);de(()=>{const N=m();if(!n(O)||!N){k(f,void 0);return}const w=()=>{k(f,N.textContent?.trim()||void 0,!0)};w();const M=new MutationObserver(w);return M.observe(N,{childList:!0,characterData:!0,subtree:!0}),()=>M.disconnect()});const y={default:"border border-border bg-transparent shadow-none hover:border-input hover:bg-hover px-3",underline:"border-0 bg-transparent underline underline-offset-3 decoration-muted-foreground/30 px-3",ghost:"border-0 bg-transparent shadow-none hover:border-transparent hover:bg-hover px-3",secondary:"border border-border bg-secondary text-secondary-foreground shadow-(--elevation-raised) hover:border-input hover:bg-hover px-3"},b=I(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),E=I(()=>ue("group type-caption text-foreground flex h-(--control-height-medium) w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-(--radius-medium) transition-[border-color,background-color,box-shadow] duration-spring-fast aria-invalid:border-danger aria-invalid:ring-1 aria-invalid:ring-danger/25 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-transparent motion-reduce:transition-none",y[r()],o()));function R(N){N.detail===0&&!c.open&&(c.open=!0),g()?.(N)}function G(N){const{"aria-activedescendant":w,"aria-label":M,...B}=N;return{...B,role:"combobox","aria-label":typeof M=="string"?M:n(f),"aria-activedescendant":c.open&&typeof w=="string"?w:void 0}}var v={get variant(){return r()},set variant(N="default"){r(N),u()},get class(){return o()},set class(N=""){o(N),u()},get children(){return s()},set children(N){s(N),u()},get child(){return a()},set child(N){a(N),u()},get onclick(){return g()},set onclick(N){g(N),u()},get id(){return _()},set id(N){_(N),u()},get ref(){return m()},set ref(N=null){m(N),u()},$set:te,$on:(N,w)=>re(e,N,w)},p=q(),V=F(p);{let N=I(()=>c.open?c.listboxId:void 0),w=I(()=>c.invalid||void 0);ve(V,()=>Br,(M,B)=>{B(M,_e(()=>l,{get id(){return c.triggerId},get"aria-controls"(){return n(N)},get class(){return n(E)},get"aria-invalid"(){return n(w)},onclick:R,get child(){return t},get ref(){return m()},set ref(x){m(x)}}))})}return P(i,p),oe(v)}var Ro=J("<span> </span>");function qr(i,e){if(new.target)return ee({component:qr,...i});ne(e,!0);let t=d(e,"placeholder",23,()=>er.ui_select_value_placeholder());const r=Ct("canonical-select");var o={get placeholder(){return t()},set placeholder(g=er.ui_select_value_placeholder()){t(g),u()},$set:te,$on:(g,_)=>re(e,g,_)},s=Ro(),a=gr(s,!0);return Se(()=>{Me(s,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),an(a,r.displayValue||t())}),P(i,s),oe(o)}function Ho(i,e){const t=[...e].filter(o=>Number.isInteger(o)&&o>=0&&i[o]!==void 0).sort((o,s)=>o-s),r=[];for(const o of t){const s=r.at(-1);!s||o>s.endIndex+1?r.push({startIndex:o,endIndex:o}):o>s.endIndex&&(s.endIndex=o)}return r.map(({startIndex:o,endIndex:s})=>{let a=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,m=Number.NEGATIVE_INFINITY;for(let l=o;l<=s;l+=1){const c=i[l];c&&(a=Math.min(a,c.top),g=Math.min(g,c.left),_=Math.max(_,c.left+c.width),m=Math.max(m,c.top+c.height))}return{startIndex:o,endIndex:s,rect:{top:a,left:g,width:_-g,height:m-a}}})}function Ot(i,e){return Math.max(0,Math.min(i.endIndex,e.endIndex)-Math.max(i.startIndex,e.startIndex)+1)}function Lo(){let i=Y(pr([])),e=[],t=1;return{get groups(){return n(i)},update(r,o){const s=new Set,a=Ho(r,o).map(g=>{const m=e.filter(l=>!s.has(l.id)&&Ot(l,g)>0).sort((l,c)=>Ot(c,g)-Ot(l,g)||l.id-c.id)[0]?.id??t++;return s.add(m),{id:m,...g}});e=a,k(i,a,!0)},reset(){e=[],k(i,[],!0),t=1}}}var Vo=J('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),Do=J('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),Fo=J('<div aria-hidden="true"><!> <!></div>');function zr(i,e){if(new.target)return ee({component:zr,...i});ne(e,!0);let t=d(e,"store",7),r=d(e,"selectedIndexes",23,()=>[]),o=d(e,"selectedClass",7,"bg-selected"),s=d(e,"hoverClass",7,"bg-hover"),a=d(e,"class",7);const g=Lo(),_=I(()=>t().activeIndex===null?void 0:t().itemRects[t().activeIndex]);de(()=>{g.update(t().itemRects,r())});const m=(f,y)=>{const b=new ft(y.rect.top,y.tier),E=new ft(y.rect.left,y.tier),R=new ft(y.rect.width,y.tier),G=new ft(y.rect.height,y.tier),v=ln(()=>{de(()=>{f.style.transform=`translate3d(${E.current}px, ${b.current}px, 0)`,f.style.width=`${R.current}px`,f.style.height=`${G.current}px`})}),p=w=>{b.set(w.rect.top),E.set(w.rect.left),R.set(w.rect.width),G.set(w.rect.height)},N=yn(()=>wn()&&p(y));return{update(w){y=w,p(w)},destroy(){N(),v()}}};var l={get store(){return t()},set store(f){t(f),u()},get selectedIndexes(){return r()},set selectedIndexes(f=[]){r(f),u()},get selectedClass(){return o()},set selectedClass(f="bg-selected"){o(f),u()},get hoverClass(){return s()},set hoverClass(f="bg-hover"){s(f),u()},get class(){return a()},set class(f){a(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},c=Fo(),T=Z(c);Tt(T,17,()=>g.groups,f=>f.id,(f,y)=>{var b=Vo();bt(b,(E,R)=>m?.(E,R),()=>({rect:n(y).rect,tier:"moderate"})),Se(E=>Me(b,1,E),[()=>vt(ue("absolute",o()))]),rr(2,b,()=>nr,()=>({tier:"moderate"})),P(f,b)});var O=Ee(T,2);return ao(O,()=>t().sessionId,f=>{var y=q(),b=F(y);Tt(b,17,()=>n(_)?[n(_)]:[],E=>0,(E,R)=>{var G=Do();bt(G,(v,p)=>m?.(v,p),()=>({rect:n(R),tier:"moderate"})),Se(v=>Me(G,1,v),[()=>vt(ue("absolute",s()))]),rr(2,G,()=>nr,()=>({tier:"fast"})),P(E,G)}),P(f,y)}),Q(c),Se(f=>Me(c,1,f),[()=>vt(ue("pointer-events-none absolute inset-0",a()))]),P(i,c),oe(l)}var Ko=J('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Gr(i,e){if(new.target)return ee({component:Gr,...i});ne(e,!0);let t=d(e,"activeIndex",7),r=d(e,"onactiveindexchange",7),o=Y(null),s=Y(null),a=Y(pr([])),g=Y(null),_=Y(!1),m=Y(!1),l;const c='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';de(()=>{n(s)&&t()===void 0&&n(_)&&n(s).activeIndex!==n(g)&&n(s).setActiveIndex(n(g))}),de(()=>{!n(s)||t()===void 0||n(s).pointerPosition||n(s).setActiveIndex(t())}),de(()=>{if(!n(s)?.pointerPosition){l=void 0;return}n(s).activeIndex!==l&&(l=n(s).activeIndex,r()?.(n(s).activeIndex))}),dn(()=>{const b=n(o)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const E=hn(b);k(s,E);let R=[];const G=C=>C instanceof Element&&(C.matches(c)||C.querySelector(c)),v=C=>C.hasAttribute("data-disabled")||C.getAttribute("aria-disabled")==="true",p=C=>C.dataset.selectionAppearance!=="indicator"&&(C.hasAttribute("data-selected")||C.getAttribute("data-state")==="checked"||C.getAttribute("aria-selected")==="true"||C.getAttribute("aria-checked")==="true"),V=()=>{const C=Array.from(b.querySelectorAll(c)).filter(A=>A.closest("[data-list-overlay]")===b&&!v(A));C.length!==R.length||C.some((A,z)=>A!==R[z])?(R.forEach((A,z)=>E.registerItem(z,null)),R=C,R.forEach((A,z)=>E.registerItem(z,A))):E.measure();const S=R.flatMap((A,z)=>p(A)?[z]:[]);if((S.length!==n(a).length||S.some((A,z)=>A!==n(a)[z]))&&k(a,S,!0),t()===void 0){const A=R.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&E.setActiveIndex(A)}},N=new MutationObserver(C=>{C.some(S=>S.type==="attributes"||[...S.addedNodes,...S.removedNodes].some(G))&&V()});N.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const w=()=>{const C=R.indexOf(document.activeElement);k(g,C>=0?C:null,!0)},M=()=>{k(m,!1),k(_,!0),w(),Et().then(()=>{n(_)&&w()})},B=()=>{k(_,!1)},x=()=>{k(m,!1),k(_,!0),w()},D=C=>{const S=C.target instanceof Element?C.target.closest(c):null,A=R.indexOf(S);C.button!==0||A<0||(k(_,!1),k(m,!0),E.setActiveIndex(A))},W=()=>{k(m,!1)},K=C=>{const S=R.indexOf(C.target);k(g,S>=0?S:null,!0),S>=0&&E.setActiveIndex(S)};return b.addEventListener("keydown",M,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",x),b.addEventListener("pointerdown",D),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",K),Et().then(V),()=>{N.disconnect(),b.removeEventListener("keydown",M,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",x),b.removeEventListener("pointerdown",D),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",K),E.destroy(),k(s,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),u()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),u()},$set:te,$on:(b,E)=>re(e,b,E)},O=Ko(),f=Z(O);{var y=b=>{{let E=I(()=>n(m)?n(a).includes(n(s).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");zr(b,{get store(){return n(s)},get selectedIndexes(){return n(a)},get hoverClass(){return n(E)}})}};$(f,b=>{n(s)&&b(y)})}return Q(O),io(O,b=>k(o,b),()=>n(o)),Se(()=>fr(O,"data-active-index",n(s)?.activeIndex??void 0)),P(i,O),oe(T)}const Bo=Nr({base:`${gn} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2.5 border-none bg-transparent px-2.5 py-1.5 transition-colors duration-spring-fast ease-spring-fast focus:text-foreground focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none`,variants:{inset:{true:"pl-8"}}}),cr=Nr({base:"menu-overlay type-caption relative isolate z-(--layer-popover) overflow-hidden rounded-(--radius-medium) border border-border bg-popover shadow-(--elevation-overlay) [--menu-icon-size:calc(var(--space-3)+var(--space-1)/2)] [--radius-row:calc(var(--radius-small)-var(--space-1)/2)] focus-visible:border-input focus-visible:outline focus-visible:-outline-offset-1 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-spring-moderate data-[state=open]:ease-spring-moderate data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-spring-moderate-exit data-[state=closed]:ease-spring-exit motion-reduce:animate-none motion-reduce:transition-none"}),hs="text-shortcut-foreground",gs=-5,ps={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},Yr=8;function fs(i,e,t=24){if(!i)return!0;const r=i.getBoundingClientRect(),o=e+t+Yr;return r.left>=o||i.ownerDocument.documentElement.clientWidth-r.right>=o}const jr=Symbol("dialog-portal-target");function vs(i){hr(jr,i)}function Wo(){const i=Ct(jr);return()=>i?.()??void 0}const Uo=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function ms(i,e){return i?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:e.target instanceof Element&&e.target.closest(Uo)!==null}var qo=J("<div><!> <!></div>"),zo=J("<div><!></div>"),Go=J("<div><div><!></div></div>");function Jr(i,e){if(new.target)return ee({component:Jr,...i});ne(e,!0);const t=w=>{var M=q(),B=F(M);{const x=(D,W)=>{let K=()=>(W?.()).props;var C=qo();se(C,()=>({...K(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var S=Z(C);Gr(S,{});var A=Ee(S,2);j(A,()=>T()??ae),Q(C),P(D,C)};ve(B,()=>Fr,(D,W)=>{W(D,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:x,$$slots:{child:!0}})})}P(w,M)},r=(w,M)=>{let B=()=>(M?.()).props;const x=I(()=>R(B()));var D=zo();se(D,()=>({...n(x),...g()?{id:g()}:{}}));var W=Z(D);t(W),Q(D),bt(D,K=>a?.(K)),P(w,D)},o=(w,M)=>{let B=()=>(M?.()).props,x=()=>(M?.()).wrapperProps;const D=I(()=>R(B()));var W=Go();se(W,()=>({...x(),...g()?{id:g()}:{}}));var K=Z(W);se(K,()=>({...n(D)}));var C=Z(K);t(C),Q(K),bt(K,S=>a?.(S)),Q(W),P(w,W)},s=pn(),a=fn();let g=d(e,"wrapperId",7),_=d(e,"class",7,""),m=d(e,"wrapperClass",7,""),l=d(e,"dropUp",7,!1),c=d(e,"portal",7),T=d(e,"children",7);const O=I(()=>l()||c()===!0),f=Wo(),y=lo(uo()+2);co(y);const b=Ct("canonical-select");async function E(){const w=document.getElementById(b.triggerId);await Et(),!b.open&&w?.isConnected&&w.focus({preventScroll:!0})}function R(w){const{role:M,tabindex:B,...x}=w;return x}var G={get wrapperId(){return g()},set wrapperId(w){g(w),u()},get class(){return _()},set class(w=""){_(w),u()},get wrapperClass(){return m()},set wrapperClass(w=""){m(w),u()},get dropUp(){return l()},set dropUp(w=!1){l(w),u()},get portal(){return c()},set portal(w){c(w),u()},get children(){return T()},set children(w){T(w),u()},$set:te,$on:(w,M)=>re(e,w,M)},v=q(),p=F(v);{var V=w=>{var M=q(),B=F(M);{let x=I(()=>ue(cr(),"w-full max-h-60",_()));ve(B,()=>Lr,(D,W)=>{W(D,{preventScroll:!1,onEscapeKeydown:E,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return y},get class(){return n(x)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}P(w,M)},N=w=>{const M=I(()=>c()===void 0&&!l()?f():void 0);var B=q(),x=F(B);{let D=I(()=>!n(O)&&!n(M)),W=I(()=>n(M)??s?.target());ve(x,()=>to,(K,C)=>{C(K,{get disabled(){return n(D)},get to(){return n(W)},children:(S,A)=>{var z=q(),ie=F(z);{let Te=I(()=>n(M)?"absolute":"fixed"),Pt=I(()=>n(M)!==void 0),Ae=I(()=>l()?"top":"bottom"),Qr=I(()=>ue(cr(),"w-(--bits-select-anchor-width) max-h-60",_()));ve(ie,()=>Hr,($r,en)=>{en($r,{get strategy(){return n(Te)},get hideWhenDetached(){return n(Pt)},onEscapeKeydown:E,"data-slot":"select-content",get"data-surface-level"(){return y},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Yr},get class(){return n(Qr)},style:"max-width: calc(100vw - var(--space-4));",get child(){return o}})})}P(S,z)},$$slots:{default:!0}})})}P(w,B)};$(p,w=>{b.staticPosition?w(V):w(N,-1)})}return P(i,v),oe(G)}var Yo=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),jo=J('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),Jo=J("<span><!></span>");function Xr(i,e){if(new.target)return ee({component:Xr,...i});ne(e,!0);let t=d(e,"state",7),r=d(e,"class",7),o=d(e,"data-slot",7),s=ye(e,Yo);var a={get state(){return t()},set state(c){t(c),u()},get class(){return r()},set class(c){r(c),u()},get"data-slot"(){return o()},set"data-slot"(c){o(c),u()},$set:te,$on:(c,T)=>re(e,c,T)},g=q(),_=F(g);{var m=c=>{var T=jo();se(T,y=>({...s,"data-slot":o()??"menu-switch",class:y,"aria-hidden":"true"}),[()=>ue("ml-auto flex h-lh shrink-0 items-center",r())]);var O=Z(T),f=gr(O);Q(T),Se(y=>{fr(O,"data-state",t()==="on"?"checked":"unchecked"),Me(f,1,y)},[()=>vt(ue("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",t()==="on"&&"translate-x-2.5"))]),P(c,T)},l=c=>{var T=Jo();se(T,y=>({...s,"data-slot":o()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:y,"aria-hidden":"true"}),[()=>ue(vn,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=Z(T);{var f=y=>{{let b=I(()=>t()==="mixed"?no:t()==="submenu"?oo:so),E=I(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),R=I(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");Pr(y,{get icon(){return n(b)},get size(){return n(E)},get class(){return n(R)}})}};$(O,y=>{t()!=="empty"&&y(f)})}Q(T),P(c,T)};$(_,c=>{t()==="on"||t()==="off"?c(m):c(l,-1)})}return P(i,g),oe(a)}var Xo=J('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Zr(i,e){if(new.target)return ee({component:Zr,...i});ne(e,!0);let t=d(e,"value",7),r=d(e,"label",7),o=d(e,"disabled",7,!1),s=d(e,"children",7),a=d(e,"class",7,"");var g={get value(){return t()},set value(l){t(l),u()},get label(){return r()},set label(l){r(l),u()},get disabled(){return o()},set disabled(l=!1){o(l),u()},get children(){return s()},set children(l){s(l),u()},get class(){return a()},set class(l=""){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);{const l=(f,y)=>{let b=()=>(y?.()).selected;var E=Xo(),R=F(E),G=Z(R);j(G,()=>s()??ae),Q(R);var v=Ee(R,2);{let p=I(()=>b()?"checked":"empty");Xr(v,{get state(){return n(p)},"data-slot":"select-item-check"})}P(f,E)};let c=I(()=>r()??t()),T=I(()=>o()||void 0),O=I(()=>ue(Bo(),a()));ve(m,()=>Dr,(f,y)=>{y(f,{get value(){return t()},get label(){return n(c)},get disabled(){return o()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:l,$$slots:{default:!0}})})}return P(i,_),oe(g)}const bs={Root:Wr,Trigger:Ur,Value:qr,Content:Jr,Item:Zr},Zo=(i,e)=>{let t,r;const o=()=>{t||(t=mn(()=>{t=void 0;const g=i.checkVisibility?.()??!0,_=g?i.clientWidth:0,m=g?i.clientHeight:0,l=_>0&&m>0&&(i.scrollWidth>_||i.scrollHeight>m);r?.(),r=bn(()=>{r=void 0,e(l)})}))},s=typeof ResizeObserver>"u"?void 0:new ResizeObserver(o),a=new MutationObserver(o);return s?.observe(i),a.observe(i,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",o),o(),{update(g){e=g,o()},destroy(){t?.(),r?.(),s?.disconnect(),a.disconnect(),document.fonts?.removeEventListener("loadingdone",o)}}},ys=(i,e)=>{let t=e;const r=s=>{t&&(s||t.trim()!==i.textContent?.trim())?i.title=t:i.removeAttribute("title")},o=Zo(i,r);return{update(s){t=s,o?.update?.(r)},destroy(){o?.destroy?.(),i.removeAttribute("title")}}};export{Rr as F,kr as H,Xr as M,Yr as O,zr as P,bs as S,Gr as a,lr as b,ar as c,ir as d,wo as e,Hr as f,Lr as g,mt as h,Dr as i,Fr as j,fs as k,ms as l,hs as m,Bo as n,cr as o,ps as p,gs as q,Zo as r,vs as s,ys as t,Wo as u};
1
+ var tn=Object.defineProperty;var $t=i=>{throw TypeError(i)};var rn=(i,e,t)=>e in i?tn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var L=(i,e,t)=>rn(i,typeof e!="symbol"?e+"":e,t),St=(i,e,t)=>e.has(i)||$t("Cannot "+t);var h=(i,e,t)=>(St(i,e,"read from private field"),t?t.call(i):e.get(i)),H=(i,e,t)=>e.has(i)?$t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ne=(i,e,t,r)=>(St(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Pe=(i,e,t)=>(St(i,e,"access private method"),t);import{t as ee,bq as d,a_ as $,by as te,b as re,br as ye,bt as _e,bo as er}from"./eK7OULll.js";import{c9 as I,aD as n,bs as ne,a7 as q,ay as F,W as P,bn as oe,aA as u,aB as J,bH as k,bV as Y,bi as nn,ca as de,cb as on,bf as ae,bo as Oe,a5 as Z,bA as Q,bS as Ee,bI as hr,aG as Ct,c5 as sn,bl as gr,b_ as Se,bO as an,br as pr,at as ln,bk as dn,c0 as Et}from"./DYhIMPy1.js";import{s as j}from"./p5gLe3PS.js";import{c as ve}from"./DFcwI6Rh.js";import{e as un,k as cn,g as hn,c as gn,i as pn,f as fn,b as vn,s as mn,j as bn}from"./DOzF5uE-.js";import{c as se,h as Tt,f as ue,k as Me,a as bt,d as vt,o as yn,j as wn,s as fr}from"./DZtstCLQ.js";import{bI as xn,bn as ce,aI as _n,b4 as In,h as Dt,av as Ie,D as Nt,i as Cn,d as le,a as me,l as yt,ad as kt,ak as wt,a2 as Ft,K as Kt,a1 as Bt,E as Wt,bo as vr,bB as mr,aZ as br,aB as yr,aE as Ut,b1 as qt,aF as wr,bM as be,bi as Nn,bu as Pn,b3 as Sn,b2 as kn,aH as tr,au as xr,a6 as On,aJ as U,aS as En,m as _r,b as Tn,c as An,a8 as Mn,C as Rn,g as Hn,A as Ln,M as Vn,F as Dn,r as Fn,s as Kn,t as Bn,u as Wn,v as Un,w as qn,x as zn,y as Gn,o as Yn,p as jn,q as Jn,B as Xn,z as Zn,aT as he,bp as X,a4 as Ir,a3 as Cr,bw as Qn,H as $n,f as eo,bJ as Nr,a5 as to}from"./CVjlpAWj.js";import{F as Pr,av as ro,bW as no,ax as oo,at as so}from"./B0JWnOsx.js";import{b as io}from"./BaIAhI85.js";import{F as ao}from"./Dix9BiYu.js";import{H as rr,g as nr,S as ft}from"./DYfBNrOV.js";import{c as lo,u as uo,s as co}from"./DfxQWSVU.js";import"./DhtKWu39.js";const Sr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};xn(Sr);var Re,_t;class ho{constructor(e,t){H(this,Re,()=>{});H(this,_t,I(()=>h(this,Re).call(this)));let r;t!==void 0&&(r=t),Ne(this,Re,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,_t))}}Re=new WeakMap,_t=new WeakMap;var go=new Set(["$$slots","$$events","$$legacy","value"]),or=J("<input/>");function kr(i,e){if(new.target)return ee({component:kr,...i});ne(e,!0);let t=d(e,"value",15),r=ye(e,go);const o=I(()=>ce(r,{"aria-hidden":"true",tabindex:-1,style:{...Sr,position:"absolute",top:"0",left:"0"}}));var s={get value(){return t()},set value(l){t(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},a=q(),g=F(a);{var _=l=>{var c=or();se(c,()=>({...n(o),value:t()}),void 0,void 0,void 0,void 0,!0),P(l,c)},m=l=>{var c=or();se(c,()=>({...n(o)}),void 0,void 0,void 0,void 0,!0),un(c,t),P(l,c)};$(g,l=>{n(o).type==="checkbox"?l(_):l(m,-1)})}return P(i,a),oe(s)}var pe,we,fe;class po{constructor(e){H(this,pe);H(this,we,I(()=>h(this,pe).candidateValues()));H(this,fe);Ne(this,pe,e),Ne(this,fe,_n("",{afterMs:1e3,getWindow:h(this,pe).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,pe).enabled()||!n(h(this,we)).length)return;h(this,fe).current=h(this,fe).current+e;const t=h(this,pe).getCurrentItem(),r=n(h(this,we)).find(g=>g===t)??"",o=n(h(this,we)).map(g=>g??""),s=In(o,h(this,fe).current,r),a=n(h(this,we)).find(g=>g===s);return a&&h(this,pe).onMatch(a),a}resetTypeahead(){h(this,fe).current=""}}pe=new WeakMap,we=new WeakMap,fe=new WeakMap;const sr=[Tn,_r,An,Mn,Rn,Hn,Ln,Vn,yt,Dn,Fn,Kn,Bn,Wn,Un,qn,zn,Gn,Yn,jn,Jn],fo=[me,Ft,Kt],vo=[le,Bt,Wt],Or=[...fo,...vo],mo=En({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ce=new Dt("Select.Root | Combobox.Root"),Er=new Dt("Select.Group | Combobox.Group"),Tr=new Dt("Select.Content | Combobox.Content");var He,Le,Ve,De,Fe,Ke,Be,We,Ue,qe,ze,Ge;class Ar{constructor(e){L(this,"opts");H(this,He,Y(!1));H(this,Le,Y(null));H(this,Ve,Y(null));L(this,"contentPresence");H(this,De,Y(null));H(this,Fe,Y(null));H(this,Ke,Y(null));H(this,Be,Y(""));H(this,We,Y(null));H(this,Ue,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));H(this,qe,I(()=>{if(this.highlightedNode)return this.highlightedNode.id}));H(this,ze,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));H(this,Ge,Y(!1));L(this,"isUsingKeyboard",!1);L(this,"isCombobox",!1);L(this,"domContext",new Nt(()=>null));L(this,"getBitsAttr",e=>mo.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new On({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),on(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,He))}set touchedInput(e){k(h(this,He),e,!0)}get inputNode(){return n(h(this,Le))}set inputNode(e){k(h(this,Le),e,!0)}get contentNode(){return n(h(this,Ve))}set contentNode(e){k(h(this,Ve),e,!0)}get viewportNode(){return n(h(this,De))}set viewportNode(e){k(h(this,De),e,!0)}get triggerNode(){return n(h(this,Fe))}set triggerNode(e){k(h(this,Fe),e,!0)}get valueNode(){return n(h(this,Ke))}set valueNode(e){k(h(this,Ke),e,!0)}get valueId(){return n(h(this,Be))}set valueId(e){k(h(this,Be),e,!0)}get highlightedNode(){return n(h(this,We))}set highlightedNode(e){k(h(this,We),e,!0)}get highlightedValue(){return n(h(this,Ue))}set highlightedValue(e){k(h(this,Ue),e)}get highlightedId(){return n(h(this,qe))}set highlightedId(e){k(h(this,qe),e)}get highlightedLabel(){return n(h(this,ze))}set highlightedLabel(e){k(h(this,ze),e)}get contentIsPositioned(){return n(h(this,Ge))}set contentIsPositioned(e){k(h(this,Ge),e,!0)}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&this.scrollHighlightedNodeIntoView(e)}scrollHighlightedNodeIntoView(e){!this.viewportNode||!this.contentIsPositioned||e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const r=this.viewportNode.getBoundingClientRect();t=t.filter(o=>{if(!this.viewportNode)return!1;const s=o.getBoundingClientRect();return s.right<=r.right&&s.left>=r.left&&s.bottom<=r.bottom&&s.top>=r.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(r=>r.dataset.value===e)??null}getLabelForValue(e){if(e==="")return"";const t=this.opts.items.current.find(o=>o.value===e)?.label;if(t!==void 0)return t;const r=this.getNodeByValue(e);if(r){const o=r.getAttribute("data-label");return o!==null&&o!==""?o:r.textContent?.trim()??e}return e}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}He=new WeakMap,Le=new WeakMap,Ve=new WeakMap,De=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,Be=new WeakMap,We=new WeakMap,Ue=new WeakMap,qe=new WeakMap,ze=new WeakMap,Ge=new WeakMap;var Ye,je,Je,Xe;class bo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!1);H(this,Ye,I(()=>this.opts.value.current!==""));H(this,je,I(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));H(this,Je,I(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));H(this,Xe,I(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ye))}set hasValue(t){k(h(this,Ye),t)}get currentLabel(){return n(h(this,je))}set currentLabel(t){k(h(this,je),t)}get candidateLabels(){return n(h(this,Je))}set candidateLabels(t){k(h(this,Je),t)}get dataTypeaheadEnabled(){return n(h(this,Xe))}set dataTypeaheadEnabled(t){k(h(this,Xe),t)}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){xr(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ye=new WeakMap,je=new WeakMap,Je=new WeakMap,Xe=new WeakMap;var Ze;class yo extends Ar{constructor(t){super(t);L(this,"opts");L(this,"isMulti",!0);H(this,Ze,I(()=>this.opts.value.current.length>0));this.opts=t,de(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),be(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return n(h(this,Ze))}set hasValue(t){k(h(this,Ze),t)}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){xr(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Ze=new WeakMap;class wo{static create(e){const{type:t,...r}=e,o=t==="single"?new bo(r):new yo(r);return Ce.set(o)}}var Qe;const zt=class zt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,Qe,I(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":wr(this.root.opts.open.current),"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.inputNode=r),this.root.domContext=new Nt(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),be([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([r,o],[s])=>{o&&(Array.isArray(r)&&Array.isArray(s)?r.length===0&&s.length!==0&&(this.root.opts.inputValue.current=""):r===""&&s!==""&&(this.root.opts.inputValue.current=""))})}static create(e){return new zt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==_r){if((e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(sr.includes(e.key)||e.key===wt||e.key===Xn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===me){const r=t[0];this.root.setHighlightedNode(r)}else if(e.key===le){const r=t[t.length-1];this.root.setHighlightedNode(r)}return}if(e.key===wt){this.root.handleClose();return}if(e.key===yt&&!e.isComposing){e.preventDefault();const t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const t=this.root.getCandidateNodes(),r=this.root.highlightedNode,o=r?t.indexOf(r):-1,s=this.root.opts.loop.current;let a;if(e.key===me?a=vr(t,o,s):e.key===le?a=mr(t,o,s):e.key===Bt?a=br(t,o,10,s):e.key===Ft?a=yr(t,o,10,s):e.key===Kt?a=t[0]:e.key===Wt&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}sr.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return n(h(this,Qe))}set props(e){k(h(this,Qe),e)}};Qe=new WeakMap;let ir=zt;var xe,ke,ge,Mr,Mt,Rt,$e;const Gt=class Gt{constructor(e,t){H(this,ge);L(this,"opts");L(this,"root");L(this,"attachment");H(this,xe);H(this,ke);H(this,$e,I(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":wr(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":qt(this.root.opts.open.current),"data-disabled":Ut(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.triggerNode=r),this.root.domContext=new Nt(e.ref),Ne(this,xe,new Cn({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ne(this,ke,new po({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:r=>{if(this.root.isMulti||!this.root.opts.items.current)return;const o=this.root.opts.items.current.find(s=>s.label===r);o&&(this.root.opts.value.current=o.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return new Gt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===me)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===yt||e.key===kt||e.key===me||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,ke).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const a=this.root.getCandidateNodes();if(!a.length)return;if(e.key===me){const g=a[0];this.root.setHighlightedNode(g)}else if(e.key===le){const g=a[a.length-1];this.root.setHighlightedNode(g)}return}if(e.key===wt){this.root.handleClose();return}if((e.key===yt||e.key===kt&&h(this,xe).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,ge,Rt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),Or.includes(e.key)){e.preventDefault();const a=this.root.getCandidateNodes(),g=this.root.highlightedNode,_=g?a.indexOf(g):-1,m=this.root.opts.loop.current;let l;if(e.key===me?l=vr(a,_,m):e.key===le?l=mr(a,_,m):e.key===Bt?l=br(a,_,10,m):e.key===Ft?l=yr(a,_,10,m):e.key===Kt?l=a[0]:e.key===Wt&&(l=a[a.length-1]),!l)return;this.root.setHighlightedNode(l);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,o=e.key===kt,s=this.root.getCandidateNodes();if(e.key!==wt){if(!t&&(r||o)){!h(this,xe).handleTypeaheadSearch(e.key,s)&&o&&(e.preventDefault(),Pe(this,ge,Rt).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?Pe(this,ge,Mt).call(this,e):this.root.handleClose()))}get props(){return n(h(this,$e))}set props(e){k(h(this,$e),e)}};xe=new WeakMap,ke=new WeakMap,ge=new WeakSet,Mr=function(){this.root.opts.open.current=!0,h(this,ke).resetTypeahead(),h(this,xe).resetTypeahead()},Mt=function(e){Pe(this,ge,Mr).call(this)},Rt=function(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)},$e=new WeakMap;let At=Gt;var et,It,tt,rt;const Yt=class Yt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,et,Y(!1));L(this,"domContext");H(this,It,I(()=>Sn(this.root.isCombobox?"combobox":"select")));L(this,"onInteractOutside",e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});L(this,"onOpenAutoFocus",e=>{e.preventDefault()});L(this,"onCloseAutoFocus",e=>{e.preventDefault()});H(this,tt,I(()=>({open:this.root.opts.open.current})));H(this,rt,I(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":qt(this.root.opts.open.current),...kn(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...n(h(this,It))},onpointermove:this.onpointermove,...this.attachment})));L(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=e,this.root=t,this.attachment=Ie(e.ref,r=>this.root.contentNode=r),this.domContext=new Nt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Pn(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),be(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),be([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(e){return Tr.set(new Yt(e,Ce.get()))}get isPositioned(){return n(h(this,et))}set isPositioned(e){k(h(this,et),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,tt))}set snippetProps(e){k(h(this,tt),e)}get props(){return n(h(this,rt))}set props(e){k(h(this,rt),e)}};et=new WeakMap,It=new WeakMap,tt=new WeakMap,rt=new WeakMap;let xt=Yt;var nt,ot,st,it,at;const jt=class jt{constructor(e,t){L(this,"opts");L(this,"root");L(this,"attachment");H(this,nt,I(()=>this.root.includesItem(this.opts.value.current)));H(this,ot,I(()=>this.root.highlightedValue===this.opts.value.current));L(this,"prevHighlighted",new ho(()=>this.isHighlighted));H(this,st,Y(!1));H(this,it,I(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));H(this,at,I(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Ut(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref),be([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),be(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(e){return new jt(e,Ce.get())}get isSelected(){return n(h(this,nt))}set isSelected(e){k(h(this,nt),e)}get isHighlighted(){return n(h(this,ot))}set isHighlighted(e){k(h(this,ot),e)}get mounted(){return n(h(this,st))}set mounted(e){k(h(this,st),e,!0)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}get snippetProps(){return n(h(this,it))}set snippetProps(e){k(h(this,it),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Nn){nn(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return n(h(this,at))}set props(e){k(h(this,at),e)}};nt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,at=new WeakMap;let Ht=jt;var lt,dt;const Jt=class Jt{constructor(e,t){L(this,"opts");L(this,"root");H(this,lt,Y(null));L(this,"attachment");H(this,dt,I(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=e,this.root=t,this.attachment=Ie(e.ref)}static create(e){return Er.set(new Jt(e,Ce.get()))}get labelNode(){return n(h(this,lt))}set labelNode(e){k(h(this,lt),e,!0)}get props(){return n(h(this,dt))}set props(e){k(h(this,dt),e)}};lt=new WeakMap,dt=new WeakMap;let ar=Jt;var ut;const Xt=class Xt{constructor(e,t){L(this,"opts");L(this,"group");L(this,"attachment");H(this,ut,I(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=e,this.group=t,this.attachment=Ie(e.ref,r=>this.group.labelNode=r)}static create(e){return new Xt(e,Er.get())}get props(){return n(h(this,ut))}set props(e){k(h(this,ut),e)}};ut=new WeakMap;let lr=Xt;var ct,ht;const Zt=class Zt{constructor(e,t){L(this,"opts");L(this,"root");H(this,ct,I(()=>this.root.opts.name.current!==""));H(this,ht,I(()=>({disabled:tr(this.root.opts.disabled.current),required:tr(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}static create(e){return new Zt(e,Ce.get())}get shouldRender(){return n(h(this,ct))}set shouldRender(e){k(h(this,ct),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,ht))}set props(e){k(h(this,ht),e)}};ct=new WeakMap,ht=new WeakMap;let Lt=Zt;var gt,pt;const Qt=class Qt{constructor(e,t){L(this,"opts");L(this,"content");L(this,"root");L(this,"attachment");H(this,gt,Y(0));H(this,pt,I(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=e,this.content=t,this.root=t.root,this.attachment=Ie(e.ref,r=>{this.root.viewportNode=r})}static create(e){return new Qt(e,Tr.get())}get prevScrollTop(){return n(h(this,gt))}set prevScrollTop(e){k(h(this,gt),e,!0)}get props(){return n(h(this,pt))}set props(e){k(h(this,pt),e)}};gt=new WeakMap,pt=new WeakMap;let Vt=Qt;function mt(i,e){if(new.target)return ee({component:mt,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"autocomplete",7);const o=Lt.create({value:U(()=>t())});var s={get value(){return t()},set value(m){t(m),u()},get autocomplete(){return r()},set autocomplete(m){r(m),u()},$set:te,$on:(m,l)=>re(e,m,l)},a=q(),g=F(a);{var _=m=>{kr(m,_e(()=>o.props,{get autocomplete(){return r()},get value(){return t()},set value(l){t(l)}}))};$(g,m=>{o.shouldRender&&m(_)})}return P(i,a),oe(s)}function Rr(i,e){if(new.target)return ee({component:Rr,...i});ne(e,!0);let t=d(e,"id",7),r=d(e,"children",7),o=d(e,"virtualEl",7),s=d(e,"ref",7),a=d(e,"tooltip",7,!1);Zn.create({id:U(()=>t()),virtualEl:U(()=>o()),ref:s()},a());var g={get id(){return t()},set id(l){t(l),u()},get children(){return r()},set children(l){r(l),u()},get virtualEl(){return o()},set virtualEl(l){o(l),u()},get ref(){return s()},set ref(l){s(l),u()},get tooltip(){return a()},set tooltip(l=!1){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);return j(m,()=>r()??ae),P(i,_),oe(g)}var xo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),dr=J("<div><div><!></div></div>");function Hr(i,e){const t=Oe();if(new.target)return ee({component:Hr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"side",7,"bottom"),g=d(e,"onInteractOutside",7,X),_=d(e,"onEscapeKeydown",7,X),m=d(e,"children",7),l=d(e,"child",7),c=d(e,"preventScroll",7,!1),T=d(e,"style",7),O=ye(e,xo);const f=xt.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),onInteractOutside:U(()=>g()),onEscapeKeydown:U(()=>_())}),y=I(()=>ce(O,f.props));var b={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get forceMount(){return s()},set forceMount(p=!1){s(p),u()},get side(){return a()},set side(p="bottom"){a(p),u()},get onInteractOutside(){return g()},set onInteractOutside(p=X){g(p),u()},get onEscapeKeydown(){return _()},set onEscapeKeydown(p=X){_(p),u()},get children(){return m()},set children(p){m(p),u()},get child(){return l()},set child(p){l(p),u()},get preventScroll(){return c()},set preventScroll(p=!1){c(p),u()},get style(){return T()},set style(p){T(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},E=q(),R=F(E);{var G=p=>{Ir(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get enabled(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!0,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))},v=p=>{Cr(p,_e(()=>n(y),()=>f.popperProps,{get ref(){return f.opts.ref},get side(){return a()},get open(){return f.root.opts.open.current},get id(){return r()},get preventScroll(){return c()},forceMount:!1,get shouldRender(){return f.shouldRender},popper:(N,w)=>{let M=()=>(w?.()).props,B=()=>(w?.()).wrapperProps;const x=I(()=>ce(M(),{style:f.props.style},{style:T()}));var D=q(),W=F(D);{var K=S=>{var A=q(),z=F(A);{let ie=I(()=>({props:n(x),wrapperProps:B(),...f.snippetProps}));j(z,l,()=>n(ie))}P(S,A)},C=S=>{var A=dr();se(A,()=>({...B()}));var z=Z(A);se(z,()=>({...n(x)}));var ie=Z(z);j(ie,()=>m()??ae),Q(z),Q(A),P(S,A)};$(W,S=>{l()?S(K):S(C,-1)})}P(N,D)},$$slots:{popper:!0}}))};$(R,p=>{s()?p(G):s()||p(v,1)})}return P(i,E),oe(b)}var _o=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),ur=J("<div><!></div>");function Lr(i,e){const t=Oe();if(new.target)return ee({component:Lr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),a=d(e,"onInteractOutside",7,X),g=d(e,"onEscapeKeydown",7,X),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"preventScroll",7,!1),c=d(e,"style",7),T=ye(e,_o);const O=xt.create({id:U(()=>r()),ref:U(()=>o(),v=>o(v)),onInteractOutside:U(()=>a()),onEscapeKeydown:U(()=>g())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(v=he(t)){r(v),u()},get ref(){return o()},set ref(v=null){o(v),u()},get forceMount(){return s()},set forceMount(v=!1){s(v),u()},get onInteractOutside(){return a()},set onInteractOutside(v=X){a(v),u()},get onEscapeKeydown(){return g()},set onEscapeKeydown(v=X){g(v),u()},get children(){return _()},set children(v){_(v),u()},get child(){return m()},set child(v){m(v),u()},get preventScroll(){return l()},set preventScroll(v=!1){l(v),u()},get style(){return c()},set style(v){c(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},b=q(),E=F(b);{var R=v=>{Ir(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get enabled(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!0,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))},G=v=>{Cr(v,_e(()=>n(f),()=>O.popperProps,{get ref(){return O.opts.ref},isStatic:!0,get open(){return O.root.opts.open.current},get id(){return r()},get preventScroll(){return l()},forceMount:!1,get shouldRender(){return O.shouldRender},popper:(V,N)=>{let w=()=>(N?.()).props;const M=I(()=>ce(w(),{style:O.props.style},{style:c()}));var B=q(),x=F(B);{var D=K=>{var C=q(),S=F(C);{let A=I(()=>({props:n(M),...O.snippetProps}));j(S,m,()=>n(A))}P(K,C)},W=K=>{var C=ur();se(C,()=>({...n(M)}));var S=Z(C);j(S,()=>_()??ae),Q(C),P(K,C)};$(x,K=>{m()?K(D):K(W,-1)})}P(V,B)},$$slots:{popper:!0}}))};$(E,v=>{s()?v(R):s()||v(G,1)})}return P(i,b),oe(y)}function Vr(i,e){if(new.target)return ee({component:Vr,...i});ne(e,!0);let t=d(e,"mounted",15,!1),r=d(e,"onMountedChange",7,X);Qn(()=>(t(!0),r()(!0),()=>{t(!1),r()(!1)}));var o={get mounted(){return t()},set mounted(s=!1){t(s),u()},get onMountedChange(){return r()},set onMountedChange(s=X){r(s),u()},$set:te,$on:(s,a)=>re(e,s,a)};return oe(o)}var Io=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Co=J("<div><!></div>"),No=J("<!> <!>",1);function Dr(i,e){const t=Oe();if(new.target)return ee({component:Dr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"value",7),a=d(e,"label",23,s),g=d(e,"disabled",7,!1),_=d(e,"children",7),m=d(e,"child",7),l=d(e,"onHighlight",7,X),c=d(e,"onUnhighlight",7,X),T=ye(e,Io);const O=Ht.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),value:U(()=>s()),disabled:U(()=>g()),label:U(()=>a()),onHighlight:U(()=>l()),onUnhighlight:U(()=>c())}),f=I(()=>ce(T,O.props));var y={get id(){return r()},set id(p=he(t)){r(p),u()},get ref(){return o()},set ref(p=null){o(p),u()},get value(){return s()},set value(p){s(p),u()},get label(){return a()},set label(p=s){a(p),u()},get disabled(){return g()},set disabled(p=!1){g(p),u()},get children(){return _()},set children(p){_(p),u()},get child(){return m()},set child(p){m(p),u()},get onHighlight(){return l()},set onHighlight(p=X){l(p),u()},get onUnhighlight(){return c()},set onUnhighlight(p=X){c(p),u()},$set:te,$on:(p,V)=>re(e,p,V)},b=No(),E=F(b);{var R=p=>{var V=q(),N=F(V);{let w=I(()=>({props:n(f),...O.snippetProps}));j(N,m,()=>n(w))}P(p,V)},G=p=>{var V=Co();se(V,()=>({...n(f)}));var N=Z(V);j(N,()=>_()??ae,()=>O.snippetProps),Q(V),P(p,V)};$(E,p=>{m()?p(R):p(G,-1)})}var v=Ee(E,2);return Vr(v,{get mounted(){return O.mounted},set mounted(p){O.mounted=p}}),P(i,b),oe(y)}var Po=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),So=J("<div><!></div>");function Fr(i,e){const t=Oe();if(new.target)return ee({component:Fr,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"children",7),a=d(e,"child",7),g=ye(e,Po);const _=Vt.create({id:U(()=>r()),ref:U(()=>o(),y=>o(y))}),m=I(()=>ce(g,_.props));var l={get id(){return r()},set id(y=he(t)){r(y),u()},get ref(){return o()},set ref(y=null){o(y),u()},get children(){return s()},set children(y){s(y),u()},get child(){return a()},set child(y){a(y),u()},$set:te,$on:(y,b)=>re(e,y,b)},c=q(),T=F(c);{var O=y=>{var b=q(),E=F(b);j(E,a,()=>({props:n(m)})),P(y,b)},f=y=>{var b=So();se(b,()=>({...n(m)}));var E=Z(b);j(E,()=>s()??ae),Q(b),P(y,b)};$(T,y=>{a()?y(O):y(f,-1)})}return P(i,c),oe(l)}var ko=J("<!> <!>",1);function Kr(i,e){if(new.target)return ee({component:Kr,...i});ne(e,!0);let t=d(e,"value",15),r=d(e,"onValueChange",7,X),o=d(e,"name",7,""),s=d(e,"disabled",7,!1),a=d(e,"type",7),g=d(e,"open",15,!1),_=d(e,"onOpenChange",7,X),m=d(e,"onOpenChangeComplete",7,X),l=d(e,"loop",7,!1),c=d(e,"scrollAlignment",7,"nearest"),T=d(e,"required",7,!1),O=d(e,"items",23,()=>[]),f=d(e,"allowDeselect",7,!1),y=d(e,"autocomplete",7),b=d(e,"children",7);function E(){t()===void 0&&t(a()==="single"?"":[])}E(),be.pre(()=>t(),()=>{E()});let R=Y("");const G=wo.create({type:a(),value:U(()=>t(),x=>{t(x),r()(x)}),disabled:U(()=>s()),required:U(()=>T()),open:U(()=>g(),x=>{g(x),_()(x)}),loop:U(()=>l()),scrollAlignment:U(()=>c()),name:U(()=>o()),isCombobox:!1,items:U(()=>O()),allowDeselect:U(()=>f()),inputValue:U(()=>n(R),x=>k(R,x,!0)),onOpenChangeComplete:U(()=>m())});var v={get value(){return t()},set value(x){t(x),u()},get onValueChange(){return r()},set onValueChange(x=X){r(x),u()},get name(){return o()},set name(x=""){o(x),u()},get disabled(){return s()},set disabled(x=!1){s(x),u()},get type(){return a()},set type(x){a(x),u()},get open(){return g()},set open(x=!1){g(x),u()},get onOpenChange(){return _()},set onOpenChange(x=X){_(x),u()},get onOpenChangeComplete(){return m()},set onOpenChangeComplete(x=X){m(x),u()},get loop(){return l()},set loop(x=!1){l(x),u()},get scrollAlignment(){return c()},set scrollAlignment(x="nearest"){c(x),u()},get required(){return T()},set required(x=!1){T(x),u()},get items(){return O()},set items(x=[]){O(x),u()},get allowDeselect(){return f()},set allowDeselect(x=!1){f(x),u()},get autocomplete(){return y()},set autocomplete(x){y(x),u()},get children(){return b()},set children(x){b(x),u()},$set:te,$on:(x,D)=>re(e,x,D)},p=ko(),V=F(p);$n(V,{children:(x,D)=>{var W=q(),K=F(W);j(K,()=>b()??ae),P(x,W)},$$slots:{default:!0}});var N=Ee(V,2);{var w=x=>{var D=q(),W=F(D);{var K=S=>{mt(S,{get autocomplete(){return y()}})},C=S=>{var A=q(),z=F(A);Tt(z,16,()=>G.opts.value.current,ie=>ie,(ie,Te)=>{mt(ie,{get value(){return Te},get autocomplete(){return y()}})}),P(S,A)};$(W,S=>{G.opts.value.current.length===0?S(K):S(C,-1)})}P(x,D)},M=I(()=>Array.isArray(G.opts.value.current)),B=x=>{mt(x,{get autocomplete(){return y()},get value(){return G.opts.value.current},set value(D){G.opts.value.current=D}})};$(N,x=>{n(M)?x(w):x(B,-1)})}return P(i,p),oe(v)}var Oo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),Eo=J("<button><!></button>");function Br(i,e){const t=Oe();if(new.target)return ee({component:Br,...i});ne(e,!0);let r=d(e,"id",23,()=>he(t)),o=d(e,"ref",15,null),s=d(e,"child",7),a=d(e,"children",7),g=d(e,"type",7,"button"),_=ye(e,Oo);const m=At.create({id:U(()=>r()),ref:U(()=>o(),f=>o(f))}),l=I(()=>ce(_,m.props,{type:g()}));var c={get id(){return r()},set id(f=he(t)){r(f),u()},get ref(){return o()},set ref(f=null){o(f),u()},get child(){return s()},set child(f){s(f),u()},get children(){return a()},set children(f){a(f),u()},get type(){return g()},set type(f="button"){g(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},T=q(),O=F(T);return ve(O,()=>Rr,(f,y)=>{y(f,{get id(){return r()},get ref(){return m.opts.ref},children:(b,E)=>{var R=q(),G=F(R);{var v=V=>{var N=q(),w=F(N);j(w,s,()=>({props:n(l)})),P(V,N)},p=V=>{var N=Eo();se(N,()=>({...n(l)}));var w=Z(N);j(w,()=>a()??ae),Q(N),P(V,N)};$(G,V=>{s()?V(v):V(p,-1)})}P(b,R)},$$slots:{default:!0}})}),P(i,T),oe(c)}var To=J('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Wr(i,e){const t=Oe();if(new.target)return ee({component:Wr,...i});ne(e,!0);const r=`${t}-trigger`;let o=Y(r),s=d(e,"value",15,""),a=d(e,"open",15,!1),g=d(e,"items",23,()=>[]),_=d(e,"disabled",7,!1),m=d(e,"invalid",7,!1),l=d(e,"required",7,!1),c=d(e,"name",7),T=d(e,"loop",7,!0),O=d(e,"onchange",7),f=d(e,"onopenchange",7),y=d(e,"children",7),b=d(e,"staticPosition",7,!1);cn(()=>{a(!1),f()?.(!1)}),hr("canonical-select",{get triggerId(){return n(o)},registerTriggerId(v){k(o,v??r,!0)},listboxId:`${t}-listbox`,get value(){return s()},get displayValue(){return g().find(v=>v.value===s())?.label??s()},get invalid(){return m()},get open(){return a()},get staticPosition(){return b()},set open(v){a(v)}});var E={get value(){return s()},set value(v=""){s(v),u()},get open(){return a()},set open(v=!1){a(v),u()},get items(){return g()},set items(v=[]){g(v),u()},get disabled(){return _()},set disabled(v=!1){_(v),u()},get invalid(){return m()},set invalid(v=!1){m(v),u()},get required(){return l()},set required(v=!1){l(v),u()},get name(){return c()},set name(v){c(v),u()},get loop(){return T()},set loop(v=!0){T(v),u()},get onchange(){return O()},set onchange(v){O(v),u()},get onopenchange(){return f()},set onopenchange(v){f(v),u()},get children(){return y()},set children(v){y(v),u()},get staticPosition(){return b()},set staticPosition(v=!1){b(v),u()},$set:te,$on:(v,p)=>re(e,v,p)},R=To(),G=Z(R);return ve(G,()=>Kr,(v,p)=>{p(v,{type:"single",get items(){return g()},get disabled(){return _()},get required(){return l()},get name(){return c()},get loop(){return T()},get onValueChange(){return O()},get onOpenChange(){return f()},get value(){return s()},set value(V){s(V)},get open(){return a()},set open(V){a(V)},children:(V,N)=>{var w=q(),M=F(w);j(M,()=>y()??ae),P(V,w)},$$slots:{default:!0}})}),Q(R),P(i,R),oe(E)}var Ao=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),Mo=J("<!> <!>",1);function Ur(i,e){if(new.target)return ee({component:Ur,...i});ne(e,!0);const t=(N,w)=>{let M=()=>(w?.()).props;const B=I(()=>G(M()));var x=q(),D=F(x);{var W=C=>{var S=q(),A=F(S);j(A,a,()=>({props:n(B)})),P(C,S)},K=C=>{eo(C,_e(()=>n(B),{get variant(){return n(b)},get active(){return c.open},get class(){return n(E)},children:(S,A)=>{var z=Mo(),ie=F(z);j(ie,()=>s()??ae);var Te=Ee(ie,2);{var Pt=Ae=>{Pr(Ae,{get icon(){return ro},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};$(Te,Ae=>{r()==="default"&&Ae(Pt)})}P(S,z)},$$slots:{default:!0}}))};$(D,C=>{a()?C(W):C(K,-1)})}P(N,x)};let r=d(e,"variant",7,"default"),o=d(e,"class",7,""),s=d(e,"children",7),a=d(e,"child",7),g=d(e,"onclick",7),_=d(e,"id",7),m=d(e,"ref",15,null),l=ye(e,Ao);const c=Ct("canonical-select");sn(()=>c.registerTriggerId(_())),de(()=>c.registerTriggerId(_()));let T=Y(!1);de(()=>{const N=c.triggerId;k(T,Array.from(document.querySelectorAll("label[for]")).some(w=>w.htmlFor===N),!0)});const O=I(()=>!l["aria-label"]&&!l["aria-labelledby"]&&!n(T));let f=Y(void 0);de(()=>{const N=m();if(!n(O)||!N){k(f,void 0);return}const w=()=>{k(f,N.textContent?.trim()||void 0,!0)};w();const M=new MutationObserver(w);return M.observe(N,{childList:!0,characterData:!0,subtree:!0}),()=>M.disconnect()});const y={default:"border border-border bg-transparent shadow-none hover:border-input hover:bg-hover px-3",underline:"border-0 bg-transparent underline underline-offset-3 decoration-muted-foreground/30 px-3",ghost:"border-0 bg-transparent shadow-none hover:border-transparent hover:bg-hover px-3",secondary:"border border-border bg-secondary text-secondary-foreground shadow-(--elevation-raised) hover:border-input hover:bg-hover px-3"},b=I(()=>r()==="default"?"outline":r()==="secondary"?"secondary":"ghost"),E=I(()=>ue("group type-caption text-foreground flex h-(--control-height-medium) w-full min-w-0 cursor-pointer items-center justify-between gap-2 rounded-(--radius-medium) transition-[border-color,background-color,box-shadow] duration-spring-fast aria-invalid:border-danger aria-invalid:ring-1 aria-invalid:ring-danger/25 disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-50 disabled:hover:border-border disabled:hover:bg-transparent motion-reduce:transition-none",y[r()],o()));function R(N){N.detail===0&&!c.open&&(c.open=!0),g()?.(N)}function G(N){const{"aria-activedescendant":w,"aria-label":M,...B}=N;return{...B,role:"combobox","aria-label":typeof M=="string"?M:n(f),"aria-activedescendant":c.open&&typeof w=="string"?w:void 0}}var v={get variant(){return r()},set variant(N="default"){r(N),u()},get class(){return o()},set class(N=""){o(N),u()},get children(){return s()},set children(N){s(N),u()},get child(){return a()},set child(N){a(N),u()},get onclick(){return g()},set onclick(N){g(N),u()},get id(){return _()},set id(N){_(N),u()},get ref(){return m()},set ref(N=null){m(N),u()},$set:te,$on:(N,w)=>re(e,N,w)},p=q(),V=F(p);{let N=I(()=>c.open?c.listboxId:void 0),w=I(()=>c.invalid||void 0);ve(V,()=>Br,(M,B)=>{B(M,_e(()=>l,{get id(){return c.triggerId},get"aria-controls"(){return n(N)},get class(){return n(E)},get"aria-invalid"(){return n(w)},onclick:R,get child(){return t},get ref(){return m()},set ref(x){m(x)}}))})}return P(i,p),oe(v)}var Ro=J("<span> </span>");function qr(i,e){if(new.target)return ee({component:qr,...i});ne(e,!0);let t=d(e,"placeholder",23,()=>er.ui_select_value_placeholder());const r=Ct("canonical-select");var o={get placeholder(){return t()},set placeholder(g=er.ui_select_value_placeholder()){t(g),u()},$set:te,$on:(g,_)=>re(e,g,_)},s=Ro(),a=gr(s,!0);return Se(()=>{Me(s,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),an(a,r.displayValue||t())}),P(i,s),oe(o)}function Ho(i,e){const t=[...e].filter(o=>Number.isInteger(o)&&o>=0&&i[o]!==void 0).sort((o,s)=>o-s),r=[];for(const o of t){const s=r.at(-1);!s||o>s.endIndex+1?r.push({startIndex:o,endIndex:o}):o>s.endIndex&&(s.endIndex=o)}return r.map(({startIndex:o,endIndex:s})=>{let a=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,m=Number.NEGATIVE_INFINITY;for(let l=o;l<=s;l+=1){const c=i[l];c&&(a=Math.min(a,c.top),g=Math.min(g,c.left),_=Math.max(_,c.left+c.width),m=Math.max(m,c.top+c.height))}return{startIndex:o,endIndex:s,rect:{top:a,left:g,width:_-g,height:m-a}}})}function Ot(i,e){return Math.max(0,Math.min(i.endIndex,e.endIndex)-Math.max(i.startIndex,e.startIndex)+1)}function Lo(){let i=Y(pr([])),e=[],t=1;return{get groups(){return n(i)},update(r,o){const s=new Set,a=Ho(r,o).map(g=>{const m=e.filter(l=>!s.has(l.id)&&Ot(l,g)>0).sort((l,c)=>Ot(c,g)-Ot(l,g)||l.id-c.id)[0]?.id??t++;return s.add(m),{id:m,...g}});e=a,k(i,a,!0)},reset(){e=[],k(i,[],!0),t=1}}}var Vo=J('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),Do=J('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),Fo=J('<div aria-hidden="true"><!> <!></div>');function zr(i,e){if(new.target)return ee({component:zr,...i});ne(e,!0);let t=d(e,"store",7),r=d(e,"selectedIndexes",23,()=>[]),o=d(e,"selectedClass",7,"bg-selected"),s=d(e,"hoverClass",7,"bg-hover"),a=d(e,"class",7);const g=Lo(),_=I(()=>t().activeIndex===null?void 0:t().itemRects[t().activeIndex]);de(()=>{g.update(t().itemRects,r())});const m=(f,y)=>{const b=new ft(y.rect.top,y.tier),E=new ft(y.rect.left,y.tier),R=new ft(y.rect.width,y.tier),G=new ft(y.rect.height,y.tier),v=ln(()=>{de(()=>{f.style.transform=`translate3d(${E.current}px, ${b.current}px, 0)`,f.style.width=`${R.current}px`,f.style.height=`${G.current}px`})}),p=w=>{b.set(w.rect.top),E.set(w.rect.left),R.set(w.rect.width),G.set(w.rect.height)},N=yn(()=>wn()&&p(y));return{update(w){y=w,p(w)},destroy(){N(),v()}}};var l={get store(){return t()},set store(f){t(f),u()},get selectedIndexes(){return r()},set selectedIndexes(f=[]){r(f),u()},get selectedClass(){return o()},set selectedClass(f="bg-selected"){o(f),u()},get hoverClass(){return s()},set hoverClass(f="bg-hover"){s(f),u()},get class(){return a()},set class(f){a(f),u()},$set:te,$on:(f,y)=>re(e,f,y)},c=Fo(),T=Z(c);Tt(T,17,()=>g.groups,f=>f.id,(f,y)=>{var b=Vo();bt(b,(E,R)=>m?.(E,R),()=>({rect:n(y).rect,tier:"moderate"})),Se(E=>Me(b,1,E),[()=>vt(ue("absolute",o()))]),rr(2,b,()=>nr,()=>({tier:"moderate"})),P(f,b)});var O=Ee(T,2);return ao(O,()=>t().sessionId,f=>{var y=q(),b=F(y);Tt(b,17,()=>n(_)?[n(_)]:[],E=>0,(E,R)=>{var G=Do();bt(G,(v,p)=>m?.(v,p),()=>({rect:n(R),tier:"moderate"})),Se(v=>Me(G,1,v),[()=>vt(ue("absolute",s()))]),rr(2,G,()=>nr,()=>({tier:"fast"})),P(E,G)}),P(f,y)}),Q(c),Se(f=>Me(c,1,f),[()=>vt(ue("pointer-events-none absolute inset-0",a()))]),P(i,c),oe(l)}var Ko=J('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Gr(i,e){if(new.target)return ee({component:Gr,...i});ne(e,!0);let t=d(e,"activeIndex",7),r=d(e,"onactiveindexchange",7),o=Y(null),s=Y(null),a=Y(pr([])),g=Y(null),_=Y(!1),m=Y(!1),l;const c='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';de(()=>{n(s)&&t()===void 0&&n(_)&&n(s).activeIndex!==n(g)&&n(s).setActiveIndex(n(g))}),de(()=>{!n(s)||t()===void 0||n(s).pointerPosition||n(s).setActiveIndex(t())}),de(()=>{if(!n(s)?.pointerPosition){l=void 0;return}n(s).activeIndex!==l&&(l=n(s).activeIndex,r()?.(n(s).activeIndex))}),dn(()=>{const b=n(o)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const E=hn(b);k(s,E);let R=[];const G=C=>C instanceof Element&&(C.matches(c)||C.querySelector(c)),v=C=>C.hasAttribute("data-disabled")||C.getAttribute("aria-disabled")==="true",p=C=>C.dataset.selectionAppearance!=="indicator"&&(C.hasAttribute("data-selected")||C.getAttribute("data-state")==="checked"||C.getAttribute("aria-selected")==="true"||C.getAttribute("aria-checked")==="true"),V=()=>{const C=Array.from(b.querySelectorAll(c)).filter(A=>A.closest("[data-list-overlay]")===b&&!v(A));C.length!==R.length||C.some((A,z)=>A!==R[z])?(R.forEach((A,z)=>E.registerItem(z,null)),R=C,R.forEach((A,z)=>E.registerItem(z,A))):E.measure();const S=R.flatMap((A,z)=>p(A)?[z]:[]);if((S.length!==n(a).length||S.some((A,z)=>A!==n(a)[z]))&&k(a,S,!0),t()===void 0){const A=R.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);A>=0&&E.setActiveIndex(A)}},N=new MutationObserver(C=>{C.some(S=>S.type==="attributes"||[...S.addedNodes,...S.removedNodes].some(G))&&V()});N.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const w=()=>{const C=R.indexOf(document.activeElement);k(g,C>=0?C:null,!0)},M=()=>{k(m,!1),k(_,!0),w(),Et().then(()=>{n(_)&&w()})},B=()=>{k(_,!1)},x=()=>{k(m,!1),k(_,!0),w()},D=C=>{const S=C.target instanceof Element?C.target.closest(c):null,A=R.indexOf(S);C.button!==0||A<0||(k(_,!1),k(m,!0),E.setActiveIndex(A))},W=()=>{k(m,!1)},K=C=>{const S=R.indexOf(C.target);k(g,S>=0?S:null,!0),S>=0&&E.setActiveIndex(S)};return b.addEventListener("keydown",M,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",x),b.addEventListener("pointerdown",D),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",K),Et().then(V),()=>{N.disconnect(),b.removeEventListener("keydown",M,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",x),b.removeEventListener("pointerdown",D),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",K),E.destroy(),k(s,null),delete b.dataset.listOverlay}});var T={get activeIndex(){return t()},set activeIndex(b){t(b),u()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),u()},$set:te,$on:(b,E)=>re(e,b,E)},O=Ko(),f=Z(O);{var y=b=>{{let E=I(()=>n(m)?n(a).includes(n(s).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");zr(b,{get store(){return n(s)},get selectedIndexes(){return n(a)},get hoverClass(){return n(E)}})}};$(f,b=>{n(s)&&b(y)})}return Q(O),io(O,b=>k(o,b),()=>n(o)),Se(()=>fr(O,"data-active-index",n(s)?.activeIndex??void 0)),P(i,O),oe(T)}const Bo=Nr({base:`${gn} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2.5 border-none bg-transparent px-2.5 py-1.5 transition-colors duration-spring-fast ease-spring-fast focus:text-foreground focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 motion-reduce:transition-none`,variants:{inset:{true:"pl-8"}}}),cr=Nr({base:"menu-overlay type-caption relative isolate z-(--layer-popover) overflow-hidden rounded-(--radius-medium) border border-border bg-popover shadow-(--elevation-overlay) [--menu-icon-size:calc(var(--space-3)+var(--space-1)/2)] [--radius-row:calc(var(--radius-small)-var(--space-1)/2)] focus-visible:border-input focus-visible:outline focus-visible:-outline-offset-1 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-spring-moderate data-[state=open]:ease-spring-moderate data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-spring-moderate-exit data-[state=closed]:ease-spring-exit motion-reduce:animate-none motion-reduce:transition-none"}),hs="text-shortcut-foreground",gs=-5,ps={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},Yr=8;function fs(i,e,t=24){if(!i)return!0;const r=i.getBoundingClientRect(),o=e+t+Yr;return r.left>=o||i.ownerDocument.documentElement.clientWidth-r.right>=o}const jr=Symbol("dialog-portal-target");function vs(i){hr(jr,i)}function Wo(){const i=Ct(jr);return()=>i?.()??void 0}const Uo=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function ms(i,e){return i?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:e.target instanceof Element&&e.target.closest(Uo)!==null}var qo=J("<div><!> <!></div>"),zo=J("<div><!></div>"),Go=J("<div><div><!></div></div>");function Jr(i,e){if(new.target)return ee({component:Jr,...i});ne(e,!0);const t=w=>{var M=q(),B=F(M);{const x=(D,W)=>{let K=()=>(W?.()).props;var C=qo();se(C,()=>({...K(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var S=Z(C);Gr(S,{});var A=Ee(S,2);j(A,()=>T()??ae),Q(C),P(D,C)};ve(B,()=>Fr,(D,W)=>{W(D,{get class(){return`relative min-h-0 flex-1 overflow-y-auto p-1.5 ${m()??""}`},child:x,$$slots:{child:!0}})})}P(w,M)},r=(w,M)=>{let B=()=>(M?.()).props;const x=I(()=>R(B()));var D=zo();se(D,()=>({...n(x),...g()?{id:g()}:{}}));var W=Z(D);t(W),Q(D),bt(D,K=>a?.(K)),P(w,D)},o=(w,M)=>{let B=()=>(M?.()).props,x=()=>(M?.()).wrapperProps;const D=I(()=>R(B()));var W=Go();se(W,()=>({...x(),...g()?{id:g()}:{}}));var K=Z(W);se(K,()=>({...n(D)}));var C=Z(K);t(C),Q(K),bt(K,S=>a?.(S)),Q(W),P(w,W)},s=pn(),a=fn();let g=d(e,"wrapperId",7),_=d(e,"class",7,""),m=d(e,"wrapperClass",7,""),l=d(e,"dropUp",7,!1),c=d(e,"portal",7),T=d(e,"children",7);const O=I(()=>l()||c()===!0),f=Wo(),y=lo(uo()+2);co(y);const b=Ct("canonical-select");async function E(){const w=document.getElementById(b.triggerId);await Et(),!b.open&&w?.isConnected&&w.focus({preventScroll:!0})}function R(w){const{role:M,tabindex:B,...x}=w;return x}var G={get wrapperId(){return g()},set wrapperId(w){g(w),u()},get class(){return _()},set class(w=""){_(w),u()},get wrapperClass(){return m()},set wrapperClass(w=""){m(w),u()},get dropUp(){return l()},set dropUp(w=!1){l(w),u()},get portal(){return c()},set portal(w){c(w),u()},get children(){return T()},set children(w){T(w),u()},$set:te,$on:(w,M)=>re(e,w,M)},v=q(),p=F(v);{var V=w=>{var M=q(),B=F(M);{let x=I(()=>ue(cr(),"w-full max-h-60",_()));ve(B,()=>Lr,(D,W)=>{W(D,{preventScroll:!1,onEscapeKeydown:E,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return y},get class(){return n(x)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}P(w,M)},N=w=>{const M=I(()=>c()===void 0&&!l()?f():void 0);var B=q(),x=F(B);{let D=I(()=>!n(O)&&!n(M)),W=I(()=>n(M)??s?.target());ve(x,()=>to,(K,C)=>{C(K,{get disabled(){return n(D)},get to(){return n(W)},children:(S,A)=>{var z=q(),ie=F(z);{let Te=I(()=>n(M)?"absolute":"fixed"),Pt=I(()=>n(M)!==void 0),Ae=I(()=>l()?"top":"bottom"),Qr=I(()=>ue(cr(),"w-(--bits-select-anchor-width) max-h-60",_()));ve(ie,()=>Hr,($r,en)=>{en($r,{get strategy(){return n(Te)},get hideWhenDetached(){return n(Pt)},onEscapeKeydown:E,"data-slot":"select-content",get"data-surface-level"(){return y},get side(){return n(Ae)},sideOffset:4,get collisionPadding(){return Yr},get class(){return n(Qr)},style:"max-width: calc(100vw - var(--space-4));",get child(){return o}})})}P(S,z)},$$slots:{default:!0}})})}P(w,B)};$(p,w=>{b.staticPosition?w(V):w(N,-1)})}return P(i,v),oe(G)}var Yo=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),jo=J('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),Jo=J("<span><!></span>");function Xr(i,e){if(new.target)return ee({component:Xr,...i});ne(e,!0);let t=d(e,"state",7),r=d(e,"class",7),o=d(e,"data-slot",7),s=ye(e,Yo);var a={get state(){return t()},set state(c){t(c),u()},get class(){return r()},set class(c){r(c),u()},get"data-slot"(){return o()},set"data-slot"(c){o(c),u()},$set:te,$on:(c,T)=>re(e,c,T)},g=q(),_=F(g);{var m=c=>{var T=jo();se(T,y=>({...s,"data-slot":o()??"menu-switch",class:y,"aria-hidden":"true"}),[()=>ue("ml-auto flex h-lh shrink-0 items-center",r())]);var O=Z(T),f=gr(O);Q(T),Se(y=>{fr(O,"data-state",t()==="on"?"checked":"unchecked"),Me(f,1,y)},[()=>vt(ue("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",t()==="on"&&"translate-x-2.5"))]),P(c,T)},l=c=>{var T=Jo();se(T,y=>({...s,"data-slot":o()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:y,"aria-hidden":"true"}),[()=>ue(vn,t()==="submenu"?"text-muted-foreground":"text-primary-ink",r())]);var O=Z(T);{var f=y=>{{let b=I(()=>t()==="mixed"?no:t()==="submenu"?oo:so),E=I(()=>t()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),R=I(()=>t()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");Pr(y,{get icon(){return n(b)},get size(){return n(E)},get class(){return n(R)}})}};$(O,y=>{t()!=="empty"&&y(f)})}Q(T),P(c,T)};$(_,c=>{t()==="on"||t()==="off"?c(m):c(l,-1)})}return P(i,g),oe(a)}var Xo=J('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Zr(i,e){if(new.target)return ee({component:Zr,...i});ne(e,!0);let t=d(e,"value",7),r=d(e,"label",7),o=d(e,"disabled",7,!1),s=d(e,"children",7),a=d(e,"class",7,"");var g={get value(){return t()},set value(l){t(l),u()},get label(){return r()},set label(l){r(l),u()},get disabled(){return o()},set disabled(l=!1){o(l),u()},get children(){return s()},set children(l){s(l),u()},get class(){return a()},set class(l=""){a(l),u()},$set:te,$on:(l,c)=>re(e,l,c)},_=q(),m=F(_);{const l=(f,y)=>{let b=()=>(y?.()).selected;var E=Xo(),R=F(E),G=Z(R);j(G,()=>s()??ae),Q(R);var v=Ee(R,2);{let p=I(()=>b()?"checked":"empty");Xr(v,{get state(){return n(p)},"data-slot":"select-item-check"})}P(f,E)};let c=I(()=>r()??t()),T=I(()=>o()||void 0),O=I(()=>ue(Bo(),a()));ve(m,()=>Dr,(f,y)=>{y(f,{get value(){return t()},get label(){return n(c)},get disabled(){return o()},get"aria-disabled"(){return n(T)},"data-menu-item":!0,get class(){return n(O)},children:l,$$slots:{default:!0}})})}return P(i,_),oe(g)}const bs={Root:Wr,Trigger:Ur,Value:qr,Content:Jr,Item:Zr},Zo=(i,e)=>{let t,r;const o=()=>{t||(t=mn(()=>{t=void 0;const g=i.checkVisibility?.()??!0,_=g?i.clientWidth:0,m=g?i.clientHeight:0,l=_>0&&m>0&&(i.scrollWidth>_||i.scrollHeight>m);r?.(),r=bn(()=>{r=void 0,e(l)})}))},s=typeof ResizeObserver>"u"?void 0:new ResizeObserver(o),a=new MutationObserver(o);return s?.observe(i),a.observe(i,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",o),o(),{update(g){e=g,o()},destroy(){t?.(),r?.(),s?.disconnect(),a.disconnect(),document.fonts?.removeEventListener("loadingdone",o)}}},ys=(i,e)=>{let t=e;const r=s=>{t&&(s||t.trim()!==i.textContent?.trim())?i.title=t:i.removeAttribute("title")},o=Zo(i,r);return{update(s){t=s,o?.update?.(r)},destroy(){o?.destroy?.(),i.removeAttribute("title")}}};export{Rr as F,kr as H,Xr as M,Yr as O,zr as P,bs as S,Gr as a,lr as b,ar as c,ir as d,wo as e,Hr as f,Lr as g,mt as h,Dr as i,Fr as j,fs as k,ms as l,hs as m,Bo as n,cr as o,ps as p,gs as q,Zo as r,vs as s,ys as t,Wo as u};
@@ -1,4 +1,4 @@
1
- var il=Object.defineProperty;var ll=(r,t,n)=>t in r?il(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var _n=(r,t,n)=>ll(r,typeof t!="symbol"?t+"":t,n);import{t as bt,bq as m,bo as f,a_ as z,by as wt,b as xt,bs as Dn,bu as lr,bt as dl,br as aa}from"./DozYGPQ1.js";import{bs as kt,a5 as D,bA as E,bS as P,bl as oe,ay as we,aD as e,b_ as F,bO as J,W as g,c9 as s,bn as It,bV as fe,bH as H,aA as p,be as xr,b$ as Vr,aB as A,bj as On,c0 as In,c6 as cl,bo as xa,br as Xr,ca as tr,bf as ir,a7 as Et,am as Pn,ax as Rn,bk as za,ai as sa,aj as jr,aw as Ha,bz as Ko,cb as Ja,c5 as Sa,aC as _r,cd as eo,bv as ul}from"./DYhIMPy1.js";import{k as Ne,s as re,a as un,j as Ya,l as oa,h as Br,d as gt,f as Zt,i as Wn,I as fl,c as ia,p as gl,o as ml,S as pl,C as vl}from"./CBE9bOjQ.js";import{H as Xt,j as hl,s as Go,p as qs,y as _l,u as yl,t as Pr,g as Kn,c as ra,E as Is,A as os,D as Ua,S as bl}from"./C72zM9oE.js";import{b as fn}from"./BaIAhI85.js";import{bT as Qo,j as Na,a5 as Ss,ak as ja,F as wl,at as Ea,aM as xl,aP as to}from"./VKc1-U2z.js";import{t as Gn,r as kl,P as Il}from"./D_FHOcPH.js";import{F as Vt,cF as Ds,at as Zo,aX as Xo,aI as Sl,c5 as Al,a3 as Tl,a5 as Va,aL as Cl,cI as Ml,cH as Pl,a2 as es,av as Bs,ai as Rl,br as Nl,aQ as El,aV as Ll,bG as $l,an as Ol,cx as ql,aB as ro,be as kn,aN as no,bY as is,aG as Aa,cR as Dl,c7 as Bl,bl as Fl,b as Wl,ck as zl,af as Hl,b8 as ls,cm as la,cA as Ul,c$ as Fs,X as Jo,a as jl}from"./CpEHCOut.js";import{c1 as La,aB as ba,cN as Yo,cP as qn,bS as ts,i as Vl,cG as ei,cM as rs,cL as ti,cJ as ri,f as Tn,a9 as Kl,aa as Gl,aw as Ql,r as Zl,J as Xl,V as ao,u as ni,dK as Jl,as as Yl,j as ed,t as ds,m as td,N as rd,n as nd,p as ai,q as si,a5 as ad,R as sd,Q as od,$ as id,k as ld,cQ as dd,a3 as cd,C as ud,w as fd,U as so}from"./SrOLwB5L.js";import{HQ as lt,on as gd,sE as $a,nc as oo,us as oi,uu as ii,r1 as md,xo as Ka,R as pd,tK as li,n7 as di,bi as Oa,xp as vd,pP as hd,sh as _d,ul as ci,n5 as yd,mc as bd,g as wd,xR as xd,xO as kd,xQ as Id}from"./DYepVMa7.js";import{f as pt,am as Ws,bt as Sd,bx as cs,bL as Ad}from"./DkrIcKd4.js";import{a2 as Td,x as us,a0 as Cd,O as fs,V as Md,_ as Pd,j as Rd,o as da,M as ea,p as Nd,F as Ed,u as Ld,s as $d,L as gs,J as Od,y as qd,K as Dd,Z as ma,Q as Ta,N as io,m as lo,E as Bd,c as ms,B as co,z as Fd,v as uo,H as pa,P as Wd,G as zd,i as Hd,R as Ud,T as jd,A as Vd,g as Kd,b as Gd,D as Qd,f as Zd,e as Xd,a as Jd,C as Yd,h as ec,U as ui,a3 as tc,t as rc,k as nc,d as fo}from"./zl8Sz0Gx.js";import{i as ac,e as sc}from"./YGDnq71P.js";import{g as ps}from"./BvFAWM27.js";import{M as ca,C as Ca}from"./DDhu5Shq.js";import{C as go}from"./D7hkdi6r.js";import"./BRqOyyER.js";import{P as oc}from"./BmGPu7Nl.js";import"./Dld3dCA-.js";import{c as fi}from"./ChTqQfQN.js";import{s as Cn}from"./B30Ssr1r.js";import{S as ic}from"./CKiOztob.js";import{D as mo,M as lc}from"./DWcUEP_3.js";import{b as dc,s as Un,c as Ga}from"./IYLMGQxr.js";import{O as qa,y as vs,E as hs,B as _s,N as cc,m as uc,l as fc,d as Qa,C as po,f as gc,e as mc,g as pc}from"./BsCDeyle.js";import{j as gi,g as vc,s as vo}from"./CZ5Pr0zI.js";import{f as hc}from"./BJzHxIyr.js";import{c as an}from"./DakbBhJV.js";import{A as _c,B as yc,c as bc}from"./Dlalsrb2.js";import{o as ys,n as bs,v as ho,h as wc}from"./B524kvVw.js";import"./C3lmZVdU.js";import{aV as $n,z as xc}from"./BLl4jbbs.js";import"./Ca0VZzWN.js";import{R as As,C as ns,n as kc,i as Ic,h as Sc,j as _o,P as Ac}from"./4o1DPfmL.js";import"./CnlzKY2y.js";import{a_ as Sr,A as Da,ak as mi,o as pi,e as Tc,I as Cc,R as Mc,as as Pc,b as Rc,$ as Nc}from"./CZFJH8pA.js";import{Z as yo,J as ha,s as vi,k as Ec}from"./H5XG0yyu.js";import{B as Lc}from"./Dy4G53ce.js";import{r as $c,e as Oc,o as qc}from"./DbSP_yi5.js";import{o as hi}from"./BZrP_BN5.js";import{g as zs}from"./DSbw-nyW.js";import{a as Dc,M as Bc}from"./CcVvQKcJ.js";import{c as ua}from"./MJGmlCLu.js";import{A as Fc}from"./Dby-RtfB.js";import{f as Wc,d as zc}from"./BMJ3_jM1.js";import{I as Hc,t as Uc,B as jc,r as bo,A as Vc,n as Kc}from"./Dtei9o3U.js";import{b as Gc}from"./D02FkLBh.js";import{F as Qc}from"./BBvT7Bb8.js";import{S as Zc}from"./D8UQMJEh.js";import{u as Xc,a as Jc,c as wo,S as Yc}from"./DfxQWSVU.js";import{T as Ts}from"./DQhHyGm2.js";import{a as eu}from"./DVX1HL-4.js";import{b as xo}from"./p7znhYIU.js";import{a6 as tu}from"./C7-4lB53.js";import{c as ru}from"./55B_mQC6.js";function nu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:i,monitorId:o,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof i!="string"||!i||typeof o!="string"||!o||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const y=t.trigger;return{scriptName:n,scriptId:a,runId:i,monitorId:o,workspaceId:d,reason:c,...c==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function au(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function su(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const i=r.messageMetadata?.fromPrincipalId??r.author?.principalId,o=Hc(r)&&r.author?.principalId!==null&&i===t;return{edit:o,remove:o||t===n||a,sendNow:(o||a)&&!_i(r)}}function fa(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function _i(r){return au(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function ko(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,i=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),o=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!o&&!i&&!_i(r)}const Ch="pl-3.5! pr-2!";var ou=A("<!> ",1),iu=A('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function yi(r,t){if(new.target)return bt({component:yi,...r});kt(t,!0);let n=m(t,"name",7),a=m(t,"description",7),i=m(t,"content",7),o=m(t,"onUseScript",7),d=fe(!1);function c(){navigator.clipboard.writeText(i()),H(d,!0),setTimeout(()=>{H(d,!1)},2e3)}function y(){o()?.({name:n(),description:a(),content:i()})}var _={get name(){return n()},set name(V){n(V),p()},get description(){return a()},set description(V){a(V),p()},get content(){return i()},set content(V){i(V),p()},get onUseScript(){return o()},set onUseScript(V){o(V),p()},$set:wt,$on:(V,ne)=>xt(t,V,ne)},b=iu(),I=D(b),M=D(I),Z=D(M),w=D(Z);Vt(w,{get icon(){return Ds},size:"sm"}),E(Z);var L=P(Z,2),Q=oe(L,!0);E(M);var j=P(M,2),R=D(j);pt(R,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(V,ne)=>{var pe=ou(),be=we(pe);{let qe=s(()=>e(d)?Zo:Xo);Vt(be,{get icon(){return e(qe)},class:"mr-1"})}var ge=P(be);F(qe=>J(ge,` ${qe??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),g(V,pe)},$$slots:{default:!0}});var N=P(R,2);{var x=V=>{pt(V,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(ne,pe)=>{xr();var be=Vr();F(ge=>J(be,ge),[()=>f.chat_setupScriptCard_useScript_label()]),g(ne,be)},$$slots:{default:!0}})};z(N,V=>{o()&&V(x)})}E(j),E(I);var ee=P(I,2),S=oe(ee,!0),T=P(ee,2),Me=oe(T,!0);return E(b),F(()=>{J(Q,n()),J(S,a()),J(Me,i())}),g(r,b),It(_)}const hr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class lu{constructor(){_n(this,"buffer","");_n(this,"currentToolName",null);_n(this,"currentToolId",null);_n(this,"lastToolId",null);_n(this,"currentToolParams",[]);_n(this,"currentToolResultContent",[]);_n(this,"inToolResult",!1);_n(this,"inCodeBlock",!1);_n(this,"codeBlockLanguage","");_n(this,"codeBlockContent","");_n(this,"characterBuffer","");_n(this,"inCharacterMode",!1);_n(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const i=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(_=>_.startsWith("❌")||_.startsWith("Error:")),y=this.currentToolResultContent.map(_=>_.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
1
+ var il=Object.defineProperty;var ll=(r,t,n)=>t in r?il(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var _n=(r,t,n)=>ll(r,typeof t!="symbol"?t+"":t,n);import{t as bt,bq as m,bo as f,a_ as z,by as wt,b as xt,bs as Dn,bu as lr,bt as dl,br as aa}from"./eK7OULll.js";import{bs as kt,a5 as D,bA as E,bS as P,bl as oe,ay as we,aD as e,b_ as F,bO as J,W as g,c9 as s,bn as It,bV as fe,bH as H,aA as p,be as xr,b$ as Vr,aB as A,bj as On,c0 as In,c6 as cl,bo as xa,br as Xr,ca as tr,bf as ir,a7 as Et,am as Pn,ax as Rn,bk as za,ai as sa,aj as jr,aw as Ha,bz as Ko,cb as Ja,c5 as Sa,aC as _r,cd as eo,bv as ul}from"./DYhIMPy1.js";import{k as Ne,s as re,a as un,j as Ya,l as oa,h as Br,d as gt,f as Zt,i as Wn,I as fl,c as ia,p as gl,o as ml,S as pl,C as vl}from"./DZtstCLQ.js";import{H as Xt,j as hl,s as Go,p as qs,y as _l,u as yl,t as Pr,g as Kn,c as ra,E as Is,A as os,D as Ua,S as bl}from"./DYfBNrOV.js";import{b as fn}from"./BaIAhI85.js";import{bT as Qo,j as Na,a5 as Ss,ak as ja,F as wl,at as Ea,aM as xl,aP as to}from"./C0VXEpDj.js";import{t as Gn,r as kl,P as Il}from"./Bok30zBH.js";import{F as Vt,cF as Ds,at as Zo,aX as Xo,aI as Sl,c5 as Al,a3 as Tl,a5 as Va,aL as Cl,cI as Ml,cH as Pl,a2 as es,av as Bs,ai as Rl,br as Nl,aQ as El,aV as Ll,bG as $l,an as Ol,cx as ql,aB as ro,be as kn,aN as no,bY as is,aG as Aa,cR as Dl,c7 as Bl,bl as Fl,b as Wl,ck as zl,af as Hl,b8 as ls,cm as la,cA as Ul,c$ as Fs,X as Jo,a as jl}from"./B0JWnOsx.js";import{c1 as La,aB as ba,cN as Yo,cP as qn,bS as ts,i as Vl,cG as ei,cM as rs,cL as ti,cJ as ri,f as Tn,a9 as Kl,aa as Gl,aw as Ql,r as Zl,J as Xl,V as ao,u as ni,dK as Jl,as as Yl,j as ed,t as ds,m as td,N as rd,n as nd,p as ai,q as si,a5 as ad,R as sd,Q as od,$ as id,k as ld,cQ as dd,a3 as cd,C as ud,w as fd,U as so}from"./C-RJDuZ9.js";import{HR as lt,on as gd,sE as $a,nc as oo,us as oi,uu as ii,r1 as md,xo as Ka,R as pd,tK as li,n7 as di,bi as Oa,xp as vd,pP as hd,sh as _d,ul as ci,n5 as yd,mc as bd,g as wd,xR as xd,xO as kd,xQ as Id}from"./Bo4s1kgI.js";import{f as pt,am as Ws,bt as Sd,bx as cs,bL as Ad}from"./CVjlpAWj.js";import{a2 as Td,x as us,a0 as Cd,O as fs,V as Md,_ as Pd,j as Rd,o as da,M as ea,p as Nd,F as Ed,u as Ld,s as $d,L as gs,J as Od,y as qd,K as Dd,Z as ma,Q as Ta,N as io,m as lo,E as Bd,c as ms,B as co,z as Fd,v as uo,H as pa,P as Wd,G as zd,i as Hd,R as Ud,T as jd,A as Vd,g as Kd,b as Gd,D as Qd,f as Zd,e as Xd,a as Jd,C as Yd,h as ec,U as ui,a3 as tc,t as rc,k as nc,d as fo}from"./CdGIN-T1.js";import{i as ac,e as sc}from"./NeHKo0ZG.js";import{g as ps}from"./BvFAWM27.js";import{M as ca,C as Ca}from"./Cja4W1Zb.js";import{C as go}from"./5QXDo1_h.js";import"./BM51eWC-.js";import{P as oc}from"./D5lr7eae.js";import"./o5rEX9Xy.js";import{c as fi}from"./ChTqQfQN.js";import{s as Cn}from"./p5gLe3PS.js";import{S as ic}from"./CYOvUFvY.js";import{D as mo,M as lc}from"./DwsRDnkS.js";import{b as dc,s as Un,c as Ga}from"./CY9IKMQG.js";import{O as qa,y as vs,E as hs,B as _s,N as cc,m as uc,l as fc,d as Qa,C as po,f as gc,e as mc,g as pc}from"./BtTBXjdJ.js";import{j as gi,g as vc,s as vo}from"./DOzF5uE-.js";import{f as hc}from"./BJzHxIyr.js";import{c as an}from"./uLB4Kp9c.js";import{A as _c,B as yc,c as bc}from"./w6mFE4SD.js";import{o as ys,n as bs,v as ho,h as wc}from"./DMRQ6CDd.js";import"./jMKjj8ae.js";import{aV as $n,z as xc}from"./aLZSbque.js";import"./DhtKWu39.js";import{R as As,C as ns,n as kc,i as Ic,h as Sc,j as _o,P as Ac}from"./-x_SoK5J.js";import"./dmSYAakE.js";import{a_ as Sr,A as Da,ak as mi,o as pi,e as Tc,I as Cc,R as Mc,as as Pc,b as Rc,$ as Nc}from"./D2zJp5fS.js";import{Z as yo,J as ha,s as vi,k as Ec}from"./BdWpSBC4.js";import{B as Lc}from"./DS2Q5gr9.js";import{r as $c,e as Oc,o as qc}from"./DwNzQjT_.js";import{o as hi}from"./BOrghaSd.js";import{g as zs}from"./DJKXcaw9.js";import{a as Dc,M as Bc}from"./XV0T3w4n.js";import{c as ua}from"./DFcwI6Rh.js";import{A as Fc}from"./CIh8Ybhq.js";import{f as Wc,d as zc}from"./Bknqawxe.js";import{I as Hc,t as Uc,B as jc,r as bo,A as Vc,n as Kc}from"./uyOfKmty.js";import{b as Gc}from"./BD8I8FK1.js";import{F as Qc}from"./Dix9BiYu.js";import{S as Zc}from"./BvkV35-O.js";import{u as Xc,a as Jc,c as wo,S as Yc}from"./DfxQWSVU.js";import{T as Ts}from"./Ctggj9Y1.js";import{a as eu}from"./Bmmshx2M.js";import{b as xo}from"./p7znhYIU.js";import{a6 as tu}from"./Dritbi2C.js";import{c as ru}from"./C3AKbypo.js";function nu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:a,runId:i,monitorId:o,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof a!="string"||!a||typeof i!="string"||!i||typeof o!="string"||!o||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const y=t.trigger;return{scriptName:n,scriptId:a,runId:i,monitorId:o,workspaceId:d,reason:c,...c==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function au(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function su(r,t,n,a=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const i=r.messageMetadata?.fromPrincipalId??r.author?.principalId,o=Hc(r)&&r.author?.principalId!==null&&i===t;return{edit:o,remove:o||t===n||a,sendNow:(o||a)&&!_i(r)}}function fa(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function _i(r){return au(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function ko(r,t=Date.now()){const n=r.messageMetadata,a=n?.fromPrincipalId,i=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof a=="string"&&a.length>0),o=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!o&&!i&&!_i(r)}const Ch="pl-3.5! pr-2!";var ou=A("<!> ",1),iu=A('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function yi(r,t){if(new.target)return bt({component:yi,...r});kt(t,!0);let n=m(t,"name",7),a=m(t,"description",7),i=m(t,"content",7),o=m(t,"onUseScript",7),d=fe(!1);function c(){navigator.clipboard.writeText(i()),H(d,!0),setTimeout(()=>{H(d,!1)},2e3)}function y(){o()?.({name:n(),description:a(),content:i()})}var _={get name(){return n()},set name(V){n(V),p()},get description(){return a()},set description(V){a(V),p()},get content(){return i()},set content(V){i(V),p()},get onUseScript(){return o()},set onUseScript(V){o(V),p()},$set:wt,$on:(V,ne)=>xt(t,V,ne)},b=iu(),I=D(b),M=D(I),Z=D(M),w=D(Z);Vt(w,{get icon(){return Ds},size:"sm"}),E(Z);var L=P(Z,2),Q=oe(L,!0);E(M);var j=P(M,2),R=D(j);pt(R,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(V,ne)=>{var pe=ou(),be=we(pe);{let qe=s(()=>e(d)?Zo:Xo);Vt(be,{get icon(){return e(qe)},class:"mr-1"})}var ge=P(be);F(qe=>J(ge,` ${qe??""}`),[()=>e(d)?f.chat_shared_copied_label():f.chat_shared_copy_label()]),g(V,pe)},$$slots:{default:!0}});var N=P(R,2);{var x=V=>{pt(V,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(ne,pe)=>{xr();var be=Vr();F(ge=>J(be,ge),[()=>f.chat_setupScriptCard_useScript_label()]),g(ne,be)},$$slots:{default:!0}})};z(N,V=>{o()&&V(x)})}E(j),E(I);var ee=P(I,2),S=oe(ee,!0),T=P(ee,2),Me=oe(T,!0);return E(b),F(()=>{J(Q,n()),J(S,a()),J(Me,i())}),g(r,b),It(_)}const hr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class lu{constructor(){_n(this,"buffer","");_n(this,"currentToolName",null);_n(this,"currentToolId",null);_n(this,"lastToolId",null);_n(this,"currentToolParams",[]);_n(this,"currentToolResultContent",[]);_n(this,"inToolResult",!1);_n(this,"inCodeBlock",!1);_n(this,"codeBlockLanguage","");_n(this,"codeBlockContent","");_n(this,"characterBuffer","");_n(this,"inCharacterMode",!1);_n(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const i=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(_=>_.startsWith("❌")||_.startsWith("Error:")),y=this.currentToolResultContent.map(_=>_.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
2
2
  `);i.push({type:"tool_result",content:y,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const o=t.indexOf("🤖"),d=t.substring(o+2);if(this.inCharacterMode=!0,this.characterBuffer="",d&&d.trim()&&d!==`
3
3
  `){const c=d.replace(/^\n/,"");c&&(this.characterBuffer=c)}return i}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
4
4
  `)&&this.characterBuffer.length>0){const i=t.substring(0,t.indexOf(`
@@ -1,4 +1,4 @@
1
- import{k as qa,s as fa}from"./IYLMGQxr.js";import{j as va,h as Ct,s as q,l as en,k as me,I as Wa,c as Ka,a as Nn}from"./CBE9bOjQ.js";import{Z as Qa,cO as Ga,A as Va,aX as xn,bT as Ya,v as Ja}from"./VKc1-U2z.js";import{bo as c,t as Pt,bq as w,a_ as M,by as Tt,b as Rt,bs as qn,bu as Re,bt as Xa}from"./DozYGPQ1.js";import{bo as Wn,bs as Ot,a5 as O,bl as U,bS as b,bA as $,b_ as x,aD as e,W as l,ay as H,a7 as Oe,bO as L,bn as Lt,c9 as u,aA as k,aB as _,ca as Fe,bH as h,b$ as Kt,bV as le,cd as Mt,br as ma,be as un,c5 as Za,bi as En,bj as er,bf as hn,am as ta,ax as na,ai as tr,aj as nr,c0 as ar}from"./DYhIMPy1.js";import{s as _a}from"./B30Ssr1r.js";import{f as rr}from"./DSbw-nyW.js";import{t as Wt,k as sr,a as or,H as ha}from"./C72zM9oE.js";import{r as ir,o as lr,A as aa,L as dr}from"./BZrP_BN5.js";import{S as bn,t as Dn}from"./D_FHOcPH.js";import{R as ra}from"./4o1DPfmL.js";import{I as ba}from"./CZ5Pr0zI.js";import"./C3lmZVdU.js";import{aB as wn,cw as ur,ak as cr,az as pr,cq as gr,cr as fr,ag as vr,ai as mr,ap as _r,av as hr,k as br,F as wr,dO as kr,L as xr,ch as yr,bQ as $r}from"./SrOLwB5L.js";import{HQ as X,ch as Fn,cf as wa,ci as kn,qy as Ar,Ct as Sr,fK as ka,Cx as Ir,bw as Cr,yJ as Pr,mc as sa,t9 as Tr,cl as Rr,tK as oa,n7 as Or,Cd as Lr,Cw as Nr,c3 as Er}from"./DYepVMa7.js";import{K as Dr,A as Mr,ap as zr,ak as Fr,T as Br}from"./CZFJH8pA.js";import{x as jr}from"./BBvT7Bb8.js";import{h as Hr}from"./DB531Hr_.js";import{f as ia}from"./BMJ3_jM1.js";import{h as Ur,g as qr}from"./DukwQosN.js";import"./BLl4jbbs.js";import{ax as Wr,am as Kr,ap as Qr,f as Mn,a5 as Gr,bc as la}from"./DkrIcKd4.js";import"./Ca0VZzWN.js";import{c as Vr,r as Yr,q as Jr,p as Xr,E as Zr}from"./Dlalsrb2.js";import{c as Bn,b as da,d as jn,a as Hn,A as xa,n as es,D as ts,k as ns,p as as,P as rs}from"./H5XG0yyu.js";import{c as de}from"./MJGmlCLu.js";import{F as ss,j as os,bn as is,i as ls,bA as ds}from"./OvSKCwS-.js";import{T as us}from"./DQhHyGm2.js";import{ch as ya,cK as cs,cJ as ps,bO as gs,x as fs,F as yn,b3 as vs,at as ms,aI as _s,aE as hs,cO as bs,bc as ws,az as ks,X as xs,aJ as ys,a$ as $s,ag as ua,a7 as As,c2 as Ss,af as Is,cA as Cs,am as Ps,cN as Ts,aC as Rs}from"./CpEHCOut.js";import{b as Os}from"./BaIAhI85.js";import"./9Lm8k_8r.js";import{f as Ls}from"./GzyujEXJ.js";const Ns=80,Es=10,Ds=new Qa(Ga,{renderer:{html({text:a}){return Va(a)},image({tokens:a}){return this.parser.parseInline(a)}}});function Kn(a){const n=document.createElement("template");n.innerHTML=Ds.parseInline(a,{async:!1});for(const o of n.content.querySelectorAll("br"))o.replaceWith(" ");return(n.content.textContent??"").replace(/\s+/g," ").trim()}function zt(a){return a.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`+([^`]*?)`+/g,"$1").replace(/<[^>]+>/g,"").replace(/\\([\\`*_[\]{}()#+\-.!>])/g,"$1").replace(/[*~]/g,"").replace(/(^|[^A-Za-z0-9])_+/g,"$1").replace(/_+([^A-Za-z0-9]|$)/g,"$1").replace(/\s+/g," ").trim()}function Un(a,n){return a.slice(n).replace(/^(?:[ \t]*(?:\r\n|\n|\r))+/,"")}function Sn(a,n){return!n||n.length>Ns||n.split(/\s+/).length>Es||/[.!?;]$/.test(n)?!1:!/^[ \t]*(?:[-+*][ \t]+|\d+[.)][ \t]+|>|```|~~~|\|)/.test(a)}function Bi(a){const o=a.trim().match(/^\*\*([^\r\n]+)\*\*$/);if(!o)return null;const i=zt(o[1]);return Sn(o[0],i)?i:null}function Qn(a,n=!1,o=!0){const i=a.match(/^(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",r=a.slice(i.length).match(/^\*\*([^\r\n]+)\*\*[ \t]*(?:(?:\r\n|\n|\r)|$)/);if(!r)return null;if(n){const m=r[1],f=m.match(/\\+$/)?.[0].length??0;if(m!==m.trim()||m.includes("**")||m.startsWith("*")||m.endsWith("*")||f%2!==0)return null}const p=zt(r[1]);return Sn(r[0],p)?{title:n&&o?Kn(r[1]):p,body:Un(a,i.length+r[0].length)}:null}function ca(a){const n=[];let o=a;for(;o.trim();){const i=Gn(o,!0),d=i.heading?{body:i.body}:Qn(o,!0,!1);if(!d)return null;n.push(o.slice(0,o.length-d.body.length)),o=d.body}return n.length?n:null}function ji(a){const n=[];let o=a;for(;o.trim();){const i=Gn(o,!0,Kn),d=i.heading?{title:i.heading,body:i.body}:Qn(o,!0);if(!d)return null;n.push(d.title),o=d.body}return n.length?n:null}function Hi(a){const n=zs(a),o=[];let i=a;for(n.heading&&(o.push({title:n.heading,body:""}),i=n.body);i;){const d=Qn(i);if(!d||d.body.length>=i.length)break;o.push({title:d.title,body:""}),i=d.body}if(o.length===0){const d=a.trim(),r=zt(d);return!d.includes(`
1
+ import{k as qa,s as fa}from"./CY9IKMQG.js";import{j as va,h as Ct,s as q,l as en,k as me,I as Wa,c as Ka,a as Nn}from"./DZtstCLQ.js";import{Z as Qa,cO as Ga,A as Va,aX as xn,bT as Ya,v as Ja}from"./C0VXEpDj.js";import{bo as c,t as Pt,bq as w,a_ as M,by as Tt,b as Rt,bs as qn,bu as Re,bt as Xa}from"./eK7OULll.js";import{bo as Wn,bs as Ot,a5 as O,bl as U,bS as b,bA as $,b_ as x,aD as e,W as l,ay as H,a7 as Oe,bO as L,bn as Lt,c9 as u,aA as k,aB as _,ca as Fe,bH as h,b$ as Kt,bV as le,cd as Mt,br as ma,be as un,c5 as Za,bi as En,bj as er,bf as hn,am as ta,ax as na,ai as tr,aj as nr,c0 as ar}from"./DYhIMPy1.js";import{s as _a}from"./p5gLe3PS.js";import{f as rr}from"./DJKXcaw9.js";import{t as Wt,k as sr,a as or,H as ha}from"./DYfBNrOV.js";import{r as ir,o as lr,A as aa,L as dr}from"./BOrghaSd.js";import{S as bn,t as Dn}from"./Bok30zBH.js";import{R as ra}from"./-x_SoK5J.js";import{I as ba}from"./DOzF5uE-.js";import"./jMKjj8ae.js";import{aB as wn,cw as ur,ak as cr,az as pr,cq as gr,cr as fr,ag as vr,ai as mr,ap as _r,av as hr,k as br,F as wr,dO as kr,L as xr,ch as yr,bQ as $r}from"./C-RJDuZ9.js";import{HR as X,ch as Fn,cf as wa,ci as kn,qy as Ar,Ct as Sr,fK as ka,Cy as Ir,bw as Cr,yJ as Pr,mc as sa,t9 as Tr,cl as Rr,tK as oa,n7 as Or,Cd as Lr,Cw as Nr,c3 as Er}from"./Bo4s1kgI.js";import{K as Dr,A as Mr,ap as zr,ak as Fr,T as Br}from"./D2zJp5fS.js";import{x as jr}from"./Dix9BiYu.js";import{h as Hr}from"./CvegPRPp.js";import{f as ia}from"./Bknqawxe.js";import{h as Ur,g as qr}from"./Ci959ZOg.js";import"./aLZSbque.js";import{ax as Wr,am as Kr,ap as Qr,f as Mn,a5 as Gr,bc as la}from"./CVjlpAWj.js";import"./DhtKWu39.js";import{c as Vr,r as Yr,q as Jr,p as Xr,E as Zr}from"./w6mFE4SD.js";import{c as Bn,b as da,d as jn,a as Hn,A as xa,n as es,D as ts,k as ns,p as as,P as rs}from"./BdWpSBC4.js";import{c as de}from"./DFcwI6Rh.js";import{F as ss,j as os,bn as is,i as ls,bA as ds}from"./z3QVK190.js";import{T as us}from"./Ctggj9Y1.js";import{ch as ya,cK as cs,cJ as ps,bO as gs,x as fs,F as yn,b3 as vs,at as ms,aI as _s,aE as hs,cO as bs,bc as ws,az as ks,X as xs,aJ as ys,a$ as $s,ag as ua,a7 as As,c2 as Ss,af as Is,cA as Cs,am as Ps,cN as Ts,aC as Rs}from"./B0JWnOsx.js";import{b as Os}from"./BaIAhI85.js";import"./D6dCvfQe.js";import{f as Ls}from"./BBZiE97y.js";const Ns=80,Es=10,Ds=new Qa(Ga,{renderer:{html({text:a}){return Va(a)},image({tokens:a}){return this.parser.parseInline(a)}}});function Kn(a){const n=document.createElement("template");n.innerHTML=Ds.parseInline(a,{async:!1});for(const o of n.content.querySelectorAll("br"))o.replaceWith(" ");return(n.content.textContent??"").replace(/\s+/g," ").trim()}function zt(a){return a.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`+([^`]*?)`+/g,"$1").replace(/<[^>]+>/g,"").replace(/\\([\\`*_[\]{}()#+\-.!>])/g,"$1").replace(/[*~]/g,"").replace(/(^|[^A-Za-z0-9])_+/g,"$1").replace(/_+([^A-Za-z0-9]|$)/g,"$1").replace(/\s+/g," ").trim()}function Un(a,n){return a.slice(n).replace(/^(?:[ \t]*(?:\r\n|\n|\r))+/,"")}function Sn(a,n){return!n||n.length>Ns||n.split(/\s+/).length>Es||/[.!?;]$/.test(n)?!1:!/^[ \t]*(?:[-+*][ \t]+|\d+[.)][ \t]+|>|```|~~~|\|)/.test(a)}function Bi(a){const o=a.trim().match(/^\*\*([^\r\n]+)\*\*$/);if(!o)return null;const i=zt(o[1]);return Sn(o[0],i)?i:null}function Qn(a,n=!1,o=!0){const i=a.match(/^(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",r=a.slice(i.length).match(/^\*\*([^\r\n]+)\*\*[ \t]*(?:(?:\r\n|\n|\r)|$)/);if(!r)return null;if(n){const m=r[1],f=m.match(/\\+$/)?.[0].length??0;if(m!==m.trim()||m.includes("**")||m.startsWith("*")||m.endsWith("*")||f%2!==0)return null}const p=zt(r[1]);return Sn(r[0],p)?{title:n&&o?Kn(r[1]):p,body:Un(a,i.length+r[0].length)}:null}function ca(a){const n=[];let o=a;for(;o.trim();){const i=Gn(o,!0),d=i.heading?{body:i.body}:Qn(o,!0,!1);if(!d)return null;n.push(o.slice(0,o.length-d.body.length)),o=d.body}return n.length?n:null}function ji(a){const n=[];let o=a;for(;o.trim();){const i=Gn(o,!0,Kn),d=i.heading?{title:i.heading,body:i.body}:Qn(o,!0);if(!d)return null;n.push(d.title),o=d.body}return n.length?n:null}function Hi(a){const n=zs(a),o=[];let i=a;for(n.heading&&(o.push({title:n.heading,body:""}),i=n.body);i;){const d=Qn(i);if(!d||d.body.length>=i.length)break;o.push({title:d.title,body:""}),i=d.body}if(o.length===0){const d=a.trim(),r=zt(d);return!d.includes(`
2
2
  `)&&Sn(d,r)?[{title:r,body:""}]:d?[{title:null,body:d}]:[]}return o[o.length-1].body=i.trim(),o}function Ms(a){const n=a.replace(/^ {0,3}/,"");return!/^(?:\s|>|`{3}|~{3}|(?:[-+*]|\d+[.)])(?:[ \t]|$)|#{1,6}(?:[ \t]|$)|<|\[[^\]]*\]:)/.test(n)&&!/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})$/.test(n)}function Gn(a,n=!1,o=zt){const i=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",d=a.slice(i.length);if(n&&/^(?: {4}| {0,3}\t)/.test(d))return{heading:null,body:a};const r=d.match(/^[ \t]{0,3}#{1,6}[ \t]+([^\r\n]*?)(?:[ \t]+#+)?[ \t]*(?:\r\n|\n|\r|$)/);if(r&&zt(r[1]))return{heading:o(r[1]),body:Un(a,i.length+r[0].length)};const p=d.match(/^([^\r\n]+)(?:\r\n|\n|\r)([ \t]{0,3})(?:=+|-+)[ \t]*(?:\r\n|\n|\r|$)/);return p&&(!n||Ms(p[1])&&!p[2].includes(" "))&&zt(p[1])?{heading:o(p[1]),body:Un(a,i.length+p[0].length)}:{heading:null,body:a}}function zs(a,{preserveInlineText:n=!1}={}){const o=n?Kn:zt,i=Gn(a,!1,o);if(i.heading)return i;const d=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",p=a.slice(d.length).match(/^([^\r\n]+)(?:\r\n|\n|\r)(?:[ \t]*(?:\r\n|\n|\r))+/);if(p){const m=zt(p[1]),f=a.slice(d.length+p[0].length);if(f.trim()&&Sn(p[1],m))return{heading:o(p[1]),body:f}}return{heading:null,body:a}}const Qt="[--operational-row-inline-padding:var(--chat-operational-row-inline-padding,0.5rem)] [--operational-leading-slot-size:1.25rem] [--operational-leading-half-slot-size:0.625rem] [--operational-leading-gap:var(--chat-operational-leading-gap,0.5rem)]",Ui="type-body font-family-child font-normal text-muted-foreground",qi=`${Qt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,Wi=`${Qt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1.5`,Ki=`${Qt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1`,Qi=`${Qt} relative min-w-0 max-w-full`,Gi=`${Qt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,Vi=`${Qt} operational-group-child-row ml-2 min-w-0 w-[calc(100%-0.5rem)] max-w-[calc(100%-0.5rem)]`,Yi="pt-6",Ji="text-muted-foreground",Xi="text-muted-foreground",$a="font-normal text-muted-foreground",Zi="tool-call-container group relative block w-full min-w-0 max-w-full overflow-hidden type-body font-family-child font-normal text-muted-foreground",el="h-[16px]! w-[16px]! shrink-0",tl=`${Qt} relative grid h-7 w-full min-w-0 max-w-full grid-cols-[var(--operational-leading-slot-size)_minmax(0,1fr)_auto] items-center gap-[var(--operational-leading-gap)] overflow-hidden rounded-md px-[var(--operational-row-inline-padding)] type-body transition-colors duration-[var(--motion-fast)] motion-reduce:transition-none`,nl=`a11y-ignore pointer-events-none flex size-[var(--operational-leading-slot-size)] min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center [&_svg]:size-[16px]! ${$a}`,al=`type-body block min-w-0 max-w-full truncate overflow-hidden text-ellipsis whitespace-nowrap border-0 bg-transparent p-0 text-left ${$a}`,rl="type-body flex min-w-0 shrink-0 items-center gap-1 whitespace-nowrap",sl="h-[16px]! w-[16px]! shrink-0 opacity-60 transition-transform duration-[var(--motion-fast)] motion-reduce:transition-none";function ol(a){return qa(a,{axis:"y",duration:va()?0:150})}function cn(a){return a.type==="thinking"||a.type==="tool_use"||a.type==="content_group"}function il(a){const n=a?.[0];return!n||cn(n)?"":"pt-4"}function ll(a,n,o=()=>!0){const i=a[n];if(!i||!o(i)||!cn(i))return!1;let d=n-1;for(;d>=0&&!o(a[d]);)d-=1;return d>=0&&cn(a[d])}function dl(a,n,o=()=>!0,i=!1){const d=a[n];if(!d||!o(d))return"";let r=n-1;for(;r>=0&&!o(a[r]);)r-=1;if(r<0)return"";const p=a[r];if(p.type==="thinking"&&d.type==="thinking")return i||ca(p.text??p.content??"")!==null&&ca(d.text??d.content??"")!==null?"":"pt-14";const m=cn(p),f=cn(d);return m&&f?"":p.type==="thinking"&&!f?"pt-6":m||f?"pt-4":"pt-1"}const ul="shrink-0 whitespace-nowrap text-ui text-subtle focus-visible:outline-none focus-visible:text-foreground";function Fs(a){if(a?.status==="halted")return c.agent_node_halted_label();if(a?.status==="resuming")return c.agent_node_resuming_label();if(a?.placement?.target==="remote"||jr(a?.placement?.target)){if(a.placementError)return c.remoteAgent_status_failed();if(a.cloudStart)return c.remoteAgent_status_starting();if(a.effectiveIsolation==="pending")return a.setup?.state==="pending"?c.remoteAgent_status_preparingCheckout():a.setup?.state==="running"?c.remoteAgent_status_runningSetup():c.remoteAgent_status_starting()}if(a?.placement&&a.effectiveIsolation==="pending")return c.agent_node_provisioning_label()}var Bs=_('<span class="owner-fill block h-full svelte-sxf8s9"></span>'),js=_('<span class="shrink-0 text-xs text-muted-foreground"> </span>'),Hs=_('<span class="flex items-center gap-2"><span class="group-key size-1.5 shrink-0 rounded-full svelte-sxf8s9"></span> <span class="min-w-0 flex-1"> </span> <!> <span> </span></span>'),Us=_('<dd class="col-span-2 pl-[1.125rem] text-xs text-muted-foreground wrap-anywhere"> </dd>'),qs=_(`<div class="grid grid-cols-[1fr_auto] items-baseline gap-x-3 py-0.5 text-sm"><dt class="relative min-w-0 pl-[1.125rem] wrap-anywhere before:absolute before:top-2 before:left-0 before:size-1 before:rounded-full before:bg-muted-foreground before:content-['']"> </dt> <dd> </dd> <!></div>`),Ws=_('<dl class="ml-3.5 text-foreground"></dl>'),zn=_("<!> <!>",1),Ks=_('<span class="flex items-center gap-2"><span class="min-w-0 flex-1"> </span> <span class="shrink-0 tabular-nums text-muted-foreground"> </span></span>'),Qs=_('<div class="min-w-0"><dt class="truncate text-sm text-foreground"> </dt> <dd class="text-xs text-muted-foreground wrap-anywhere"> </dd></div>'),Gs=_('<dl class="ml-3.5 flex flex-col gap-2"></dl>'),Vs=_('<section class="min-w-0" data-testid="prompt-breakdown"><div class="mb-3 flex items-baseline justify-between gap-3"><h3 class="text-sm font-medium"> </h3> <span class="shrink-0 text-sm tabular-nums text-muted-foreground"> </span></div> <div class="owner-strip mb-2 flex h-1.5 w-full overflow-hidden svelte-sxf8s9" role="img"></div> <!></section>');function Aa(a,n){const o=Wn();if(new.target)return Pt({component:Aa,...a});Ot(n,!0);let i=w(n,"breakdown",7);const d="type-body font-normal text-foreground data-[state=open]:font-normal";function r(T){return sr(T,{maximumFractionDigits:T<1e4?1:0})}function p(T){return T==="native"?c.agent_contextBreakdown_owner_native_label():T==="intent"?c.agent_contextBreakdown_owner_intent_label():c.agent_contextBreakdown_owner_user_label()}const m=u(()=>i().owners.map(T=>c.agent_contextBreakdown_ownerShare_label({owner:p(T.owner),tokens:r(T.estTokens)})).join(", "));var f={get breakdown(){return i()},set breakdown(T){i(T),k()},$set:Tt,$on:(T,v)=>Rt(n,T,v)},S=Vs(),y=O(S),g=O(y),E=U(g,!0),z=b(g,2),Ce=U(z,!0);$(y);var D=b(y,2);Ct(D,21,()=>i().owners,T=>T.owner,(T,v)=>{var ve=Bs();let ue;x(()=>{q(ve,"data-owner",e(v).owner),ue=en(ve,"",ue,{"flex-grow":e(v).share})}),l(T,ve)}),$(D);var P=b(D,2);return de(P,()=>xa,(T,v)=>{v(T,{type:"multiple",children:(ve,ue)=>{var R=zn(),_e=H(R);Ct(_e,17,()=>i().groups,pe=>pe.kind,(pe,G)=>{var W=Oe(),ne=H(W);de(ne,()=>Bn,(ge,ze)=>{ze(ge,{get value(){return e(G).kind},get"data-prompt-group"(){return e(G).kind},children:(ot,Q)=>{var I=zn(),ae=H(I);de(ae,()=>da,(he,N)=>{N(he,{level:4,children:(Le,J)=>{var K=Oe(),Z=H(K);de(Z,()=>jn,(V,oe)=>{oe(V,{inset:!1,class:d,children:(ee,Ne)=>{var be=Hs(),je=O(be),et=b(je,2),ut=U(et,!0),tt=b(et,2);{var at=ct=>{var Nt=js(),yt=U(Nt,!0);x(Y=>L(yt,Y),[()=>c.agent_contextBreakdown_notCounted_label()]),l(ct,Nt)};M(tt,ct=>{e(G).kind==="native"&&ct(at)})}var Ee=b(tt,2),Gt=U(Ee,!0);$(be),x((ct,Nt)=>{q(je,"data-kind",e(G).kind),L(ut,ct),me(Ee,1,`shrink-0 tabular-nums ${e(G).kind==="native"?"text-muted-foreground":""}`),L(Gt,Nt)},[()=>p(e(G).kind),()=>r(e(G).estTokens)]),l(ee,be)},$$slots:{default:!0}})}),l(Le,K)},$$slots:{default:!0}})});var Be=b(ae,2);de(Be,()=>Hn,(he,N)=>{N(he,{inset:!1,children:(Le,J)=>{var K=Ws();Ct(K,21,()=>e(G).rows,Z=>Z.key,(Z,V)=>{var oe=qs(),ee=O(oe),Ne=U(ee,!0),be=b(ee,2),je=U(be,!0),et=b(be,2);{var ut=tt=>{var at=Us(),Ee=U(at,!0);x(()=>L(Ee,e(V).hint)),l(tt,at)};M(et,tt=>{e(V).hint&&tt(ut)})}$(oe),x(tt=>{L(Ne,e(V).label),me(be,1,`tabular-nums ${e(V).counted?"":"text-muted-foreground"}`),L(je,tt)},[()=>r(e(V).estTokens)]),l(Z,oe)}),$(K),l(Le,K)},$$slots:{default:!0}})}),l(ot,I)},$$slots:{default:!0}})}),l(pe,W)});var ce=b(_e,2);{var xe=pe=>{var G=Oe(),W=H(G);de(W,()=>Bn,(ne,ge)=>{ge(ne,{value:"hidden-skills",class:"mt-1",children:(ze,ot)=>{var Q=zn(),I=H(Q);de(I,()=>da,(Be,he)=>{he(Be,{level:4,children:(N,Le)=>{var J=Oe(),K=H(J);de(K,()=>jn,(Z,V)=>{V(Z,{inset:!1,class:d,children:(oe,ee)=>{var Ne=Ks(),be=O(Ne),je=U(be,!0),et=b(be,2),ut=U(et,!0);$(Ne),x((tt,at)=>{L(je,tt),L(ut,at)},[()=>c.agent_contextBreakdown_hiddenSkills_title(),()=>Wt(i().hiddenSkills.length)]),l(oe,Ne)},$$slots:{default:!0}})}),l(N,J)},$$slots:{default:!0}})});var ae=b(I,2);de(ae,()=>Hn,(Be,he)=>{he(Be,{inset:!1,children:(N,Le)=>{var J=Gs();Ct(J,21,()=>i().hiddenSkills,K=>K.name,(K,Z)=>{var V=Qs(),oe=O(V),ee=U(oe,!0),Ne=b(oe,2),be=U(Ne,!0);$(V),x(je=>{L(ee,e(Z).name),L(be,je)},[()=>[e(Z).detail,e(Z).fix].filter(Boolean).join(" · ")]),l(K,V)}),$(J),l(N,J)},$$slots:{default:!0}})}),l(ze,Q)},$$slots:{default:!0}})}),l(pe,G)};M(ce,pe=>{i().hiddenSkills.length>0&&pe(xe)})}l(ve,R)},$$slots:{default:!0}})}),$(S),x((T,v)=>{q(S,"aria-labelledby",`${o}-title`),q(g,"id",`${o}-title`),L(E,T),L(Ce,v),q(D,"aria-label",e(m))},[()=>c.agent_contextBreakdown_title(),()=>c.agent_contextBreakdown_tokens_label({tokens:r(i().estTokens)})]),l(a,S),Lt(f)}const Ys=["intent","user"],Js=["systemPrompt","toolDescription","provider"],Xs=["native","user","intent"],$n=a=>typeof a=="object"&&a!==null&&!Array.isArray(a),An=a=>typeof a=="number"&&Number.isFinite(a)&&a>=0,Zs=a=>a==="intent"||a==="user";function eo(a,n){if(!$n(a))return null;const{id:o,label:i,owner:d,location:r,chars:p,estTokens:m,controlHint:f}=a;if(typeof o!="string"||typeof i!="string"||!Zs(d)||typeof r!="string"||!Js.includes(r)||!An(p)||!An(m))return null;const S=$n(f)&&typeof f.text=="string"&&f.text;return{key:`${n}:${o}`,id:o,label:i,owner:d,chars:p,estTokens:m,counted:r!=="provider",...S?{hint:S}:{}}}function to(a){if(!$n(a))return null;const{name:n,reason:o,detail:i,fix:d}=a;return[n,o,i,d].some(r=>typeof r!="string")?null:{name:n,reason:o,detail:i,fix:d}}function no(a){if(!$n(a)||a.available!==!0)return null;const{totalChars:n,estTokens:o,sections:i,hiddenSkills:d}=a;if(!An(n)||!An(o)||!Array.isArray(i)||!Array.isArray(d))return null;const r=i.map(eo).filter(f=>f!==null).sort((f,S)=>S.chars-f.chars),p=Ys.map(f=>{const S=r.filter(g=>g.counted&&g.owner===f),y=S.reduce((g,E)=>g+E.chars,0);return{owner:f,chars:y,estTokens:S.reduce((g,E)=>g+E.estTokens,0),share:n>0?y/n:0}}).filter(f=>f.chars>0),m=Xs.map(f=>{const S=r.filter(y=>f==="native"?!y.counted:y.counted&&y.owner===f);return{kind:f,chars:S.reduce((y,g)=>y+g.chars,0),estTokens:S.reduce((y,g)=>y+g.estTokens,0),rows:S}}).filter(f=>f.rows.length>0);return{totalChars:n,estTokens:o,rows:r,groups:m,owners:p,hiddenSkills:d.map(to).filter(f=>f!==null)}}async function ao(a){try{const n=await Wr("agent.getSession",{agentId:a});return no(n?.session?.promptBreakdown)}catch{return null}}const pa=ss.map(a=>({key:a.path.replace(/^agentFeatures\./,""),label:a.label,description:a.description}));function ro(a){const n=a.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").toLowerCase().trim();return n.charAt(0).toUpperCase()+n.slice(1)}function so(a){const n=a??{},o=pa.map(r=>({key:r.key,label:r.label(),description:r.description(),enabled:n[r.key]===!0,known:!0})),i=new Set(pa.map(r=>r.key)),d=[];for(const[r,p]of Object.entries(n))i.has(r)||d.push({key:r,label:ro(r),description:null,enabled:p===!0,known:!1});return d.sort((r,p)=>r.label.localeCompare(p.label)),o.concat(d)}var oo=_('<div class="mb-6 border-b border-border pb-6"><!></div>'),io=_("<span> </span>"),lo=_('<!> <span class="sr-only"> </span>',1),uo=_('<div role="listitem" class="text-xs text-subtle" aria-hidden="true">—</div>'),co=_('<section class="min-w-0"><h4 class="text-sm font-medium mb-3"> </h4> <div role="list" class="space-y-2"></div></section>'),po=_('<div class="@container"><!> <section><h3 class="text-sm font-medium"> </h3> <p class="mb-4 mt-1 text-sm text-muted-foreground"> </p> <div class="grid grid-cols-1 gap-6 @min-[28rem]:grid-cols-2" data-testid="harness-features-list"></div></section></div>');function Sa(a,n){const o=Wn();if(new.target)return Pt({component:Sa,...a});Ot(n,!0);let i=w(n,"open",15,!1),d=w(n,"static",7,!1),r=w(n,"version",7),p=w(n,"features",7,null),m=w(n,"agentId",7),f=w(n,"breakdown",7),S=le(null);const y=u(()=>f()===void 0&&!!m());Fe(()=>{if(!i()||!e(y)||!m())return;const D=m();let P=!0;return ao(D).then(T=>{P&&h(S,{agentId:D,view:T},!0)}),()=>{P=!1}});const g=u(()=>f()!==void 0?f():e(y)&&e(S)&&e(S).agentId===m()?e(S).view:null),E=u(()=>so(p())),z=u(()=>[{enabled:!0,label:c.chat_shared_valueOn_label(),rows:e(E).filter(D=>D.enabled)},{enabled:!1,label:c.chat_shared_valueOff_label(),rows:e(E).filter(D=>!D.enabled)}]);var Ce={get open(){return i()},set open(D=!1){i(D),k()},get static(){return d()},set static(D=!1){d(D),k()},get version(){return r()},set version(D){r(D),k()},get features(){return p()},set features(D=null){p(D),k()},get agentId(){return m()},set agentId(D){m(D),k()},get breakdown(){return f()},set breakdown(D){f(D),k()},$set:Tt,$on:(D,P)=>Rt(n,D,P)};{let D=u(()=>c.chat_harnessFeaturesModal_title({version:r()}));Vr(a,{get static(){return d()},get title(){return e(D)},size:"wide",get open(){return i()},set open(P){i(P)},children:(P,T)=>{var v=po(),ve=O(v);{var ue=W=>{var ne=oo(),ge=O(ne);Aa(ge,{get breakdown(){return e(g)}}),$(ne),l(W,ne)};M(ve,W=>{e(g)&&W(ue)})}var R=b(ve,2),_e=O(R),ce=U(_e,!0),xe=b(_e,2),pe=U(xe,!0),G=b(xe,2);Ct(G,21,()=>e(z),W=>W.enabled,(W,ne)=>{var ge=co(),ze=O(ge),ot=U(ze,!0),Q=b(ze,2);Ct(Q,21,()=>e(ne).rows,I=>I.key,(I,ae)=>{es(I,{role:"listitem",class:"min-h-0 px-0 py-0 [&_.truncate]:whitespace-normal","data-testid":"harness-feature-state",get"data-feature"(){return e(ae).key},get"data-enabled"(){return e(ae).enabled},title:he=>{var N=Oe(),Le=H(N);{var J=Z=>{var V=lo(),oe=H(V);Kr(oe,{get content(){return e(ae).description},side:"top",size:"sm",children:(be,je)=>{var et=io(),ut=U(et,!0);x(()=>L(ut,e(ae).label)),l(be,et)},$$slots:{default:!0}});var ee=b(oe,2),Ne=U(ee,!0);x(()=>L(Ne,e(ae).description)),l(Z,V)},K=Z=>{var V=Kt();x(()=>L(V,e(ae).label)),l(Z,V)};M(Le,Z=>{e(ae).description?Z(J):Z(K,-1)})}l(he,N)},$$slots:{title:!0}})},I=>{var ae=uo();l(I,ae)}),$(Q),$(ge),x(()=>{q(ge,"aria-label",e(ne).label),L(ot,e(ne).label)}),l(W,ge)}),$(G),$(R),$(v),x((W,ne)=>{q(R,"aria-labelledby",`${o}-capabilities`),q(_e,"id",`${o}-capabilities`),L(ce,W),L(pe,ne)},[()=>c.chat_harnessFeaturesModal_capabilities_title(),()=>c.chat_harnessFeaturesModal_description()]),l(P,v)},$$slots:{default:!0}})}return Lt(Ce)}var go=_('<p role="alert" class="type-body text-danger"> </p>');function Ia(a,n){if(new.target)return Pt({component:Ia,...a});Ot(n,!0);const o=()=>Re(g,"$outcome$",i),[i,d]=qn();let r=w(n,"open",15,!1),p=w(n,"agentName",7),m=w(n,"workspaceId",7),f=w(n,"agentId",7);const S=crypto.randomUUID(),y=Mt(""),g=xn(y,S),E=u(()=>o()?.workspaceId===m()&&o().agentId===f()?o():void 0),z=u(()=>e(E)?.status==="pending"),Ce=u(()=>e(E)?.status==="failed"?e(E).error:"");Fe(()=>{const v=m();return f(),y.set(v),()=>X.dispatch(Fn(v,S))}),Fe(()=>{e(E)?.status==="succeeded"&&(r(!1),X.dispatch(wa(m(),S,e(E).requestId)))});function D(){const v=xn.select(X.state,m(),S);v?.agentId===f()&&v.status==="pending"||X.dispatch(kn(m(),S,crypto.randomUUID(),f(),{kind:"retire"}))}var P={get open(){return r()},set open(v=!1){r(v),k()},get agentName(){return p()},set agentName(v){p(v),k()},get workspaceId(){return m()},set workspaceId(v){m(v),k()},get agentId(){return f()},set agentId(v){f(v),k()},$set:Tt,$on:(v,ve)=>Rt(n,v,ve)};{const v=ce=>{var xe=Oe(),pe=H(xe);{var G=W=>{var ne=go(),ge=U(ne,!0);x(()=>L(ge,e(Ce))),l(W,ne)};M(pe,W=>{e(Ce)&&W(G)})}l(ce,xe)};let ve=u(()=>c.modals_retireAgent_title()),ue=u(()=>c.modals_retireAgent_description({name:p()})),R=u(()=>c.modals_retireAgent_confirm_label()),_e=u(()=>c.modals_bulkActionConfirm_cancel_label());ts(a,{get title(){return e(ve)},get description(){return e(ue)},get confirmLabel(){return e(R)},get cancelLabel(){return e(_e)},focusSubmit:!1,focusCancel:!0,get busy(){return e(z)},onConfirm:D,get open(){return r()},set open(ce){r(ce)},details:v,$$slots:{details:!0}})}var T=Lt(P);return d(),T}function fo({agentName:a,specialist:n}){const o=n?`{ topLevel: true, specialist: ${JSON.stringify(n)} }`:"{ topLevel: true }",i=n?`and keep the same specialist (${JSON.stringify(n)})`:"and, if you were created with a specialist, pass that exact same `specialist` value in the options";return`Please replace yourself with a fresh top-level agent and run a gradual, coordinated hand-off:
3
3
 
4
4
  1. Create your replacement now: call \`ws.agent.create(${JSON.stringify(a)}, kickoffMessage, ${o})\`. The first argument must be your EXACT current name (${JSON.stringify(a)}) ${i}. Write the kickoff message as a thorough context hand-off: the overall goal, the current state of the work, key notes and files, decisions already made, and open threads.
@@ -1 +1 @@
1
- import{HQ as o,lH as C,nk as E,mZ as L,HV as W}from"./DYepVMa7.js";import{w as z}from"./WFvSJ9zU.js";import{dm as H,dr as f}from"./SrOLwB5L.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),G=o.createSelector((t,e,s)=>{const c=E(t.fileExplorer.searches,s);return c?.workspaceId===e?c:void 0}),M=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),R=o.createSelector((t,e)=>a.select(t,e).nodes.map),V=o.createSelector((t,e)=>a.select(t,e).isLoading),q=o.createSelector((t,e)=>a.select(t,e).isInitialized),B=o.createSelector((t,e)=>a.select(t,e).error),K=o.createSelector((t,e)=>a.select(t,e).fileCount),O=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=H.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const Z=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),A=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),J=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(c=>c!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const c=a.select(t,e),p=f.select(t,e);return c.workspacePath!==s?!0:c.isLoading?!1:c.isInitialized?p?.type==="remote"&&!c.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const c=E(s.nodes,s.rootPath);if(!c)return[];const p=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,c.children,p,y),{agentFileEdits:v,workspacePath:P,gitStatus:S}=s,x=new Set;for(const r of Object.keys(S)){const i=r.split("/");for(let l=1;l<i.length;l++)x.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",n=v[i],d=l?S[i]:void 0,h=!l&&x.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:n&&n.length>0?n:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=n&&n.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...n&&n.length>0?{agentEdits:n}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{B as a,K as b,O as c,Q as d,q as e,V as f,R as g,M as h,G as i,a as j,U as k,J as l,Z as m,A as n,T as o,g as s};
1
+ import{HR as o,lH as C,nk as E,mZ as L,HW as W}from"./Bo4s1kgI.js";import{w as z}from"./WFvSJ9zU.js";import{dm as H,dr as f}from"./C-RJDuZ9.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),D=o.createSelector((t,e,s)=>{const c=E(t.fileExplorer.searches,s);return c?.workspaceId===e?c:void 0}),G=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),M=o.createSelector((t,e)=>a.select(t,e).nodes.map),q=o.createSelector((t,e)=>a.select(t,e).isLoading),B=o.createSelector((t,e)=>a.select(t,e).isInitialized),K=o.createSelector((t,e)=>a.select(t,e).error),O=o.createSelector((t,e)=>a.select(t,e).fileCount),V=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=H.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),Z=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const A=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),J=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(c=>c!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const c=a.select(t,e),p=f.select(t,e);return c.workspacePath!==s?!0:c.isLoading?!1:c.isInitialized?p?.type==="remote"&&!c.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const c=E(s.nodes,s.rootPath);if(!c)return[];const p=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,c.children,p,y),{agentFileEdits:v,workspacePath:P,gitStatus:S}=s,x=new Set;for(const r of Object.keys(S)){const i=r.split("/");for(let l=1;l<i.length;l++)x.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",n=v[i],d=l?S[i]:void 0,h=!l&&x.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:n&&n.length>0?n:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=n&&n.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...n&&n.length>0?{agentEdits:n}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{K as a,O as b,V as c,Z as d,B as e,q as f,M as g,G as h,D as i,a as j,U as k,Q as l,A as m,J as n,T as o,g as s};
@@ -1 +1 @@
1
- import{t as l,bq as i,by as m,b as u}from"./DozYGPQ1.js";import{bs as f,bI as _,c5 as b,a7 as g,ay as h,W as v,bn as y,aA as o}from"./DYhIMPy1.js";import{s as z}from"./B30Ssr1r.js";import{ac as C}from"./DkrIcKd4.js";function S(s,t){if(new.target)return l({component:S,...s});f(t,!0);let a=i(t,"size",7,"default"),r=i(t,"children",7);_(C,b(()=>a()));var c={get size(){return a()},set size(e="default"){a(e),o()},get children(){return r()},set children(e){r(e),o()},$set:m,$on:(e,d)=>u(t,e,d)},n=g(),p=h(n);return z(p,r),v(s,n),y(c)}export{S};
1
+ import{t as l,bq as i,by as m,b as u}from"./eK7OULll.js";import{bs as f,bI as _,c5 as b,a7 as g,ay as h,W as v,bn as y,aA as o}from"./DYhIMPy1.js";import{s as z}from"./p5gLe3PS.js";import{ac as C}from"./CVjlpAWj.js";function S(s,t){if(new.target)return l({component:S,...s});f(t,!0);let a=i(t,"size",7,"default"),r=i(t,"children",7);_(C,b(()=>a()));var c={get size(){return a()},set size(e="default"){a(e),o()},get children(){return r()},set children(e){r(e),o()},$set:m,$on:(e,d)=>u(t,e,d)},n=g(),p=h(n);return z(p,r),v(s,n),y(c)}export{S};
@@ -1 +1 @@
1
- import{br as R}from"./DYhIMPy1.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as G}from"./DXjHY2hF.js";import{F as g,o as P,p,H as Q}from"./CDFwOYFZ.js";import{HQ as c}from"./DYepVMa7.js";import{z as _,G as S,u as J,N as Z,H as V}from"./BBvT7Bb8.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=R({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":C(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":E(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function C(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function E(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=Q.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function B(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function L(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!_(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=B(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||G(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=H(e);return o?(z(o),!0):(h(),!0)}return!1}function H(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=J(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:L,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
1
+ import{br as H}from"./DYhIMPy1.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as G}from"./QGE3iD8D.js";import{F as g,o as P,p,H as _}from"./BXean12D.js";import{HR as c}from"./Bo4s1kgI.js";import{z as J,G as S,u as Q,N as Z,H as V}from"./Dix9BiYu.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":C(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":E(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function C(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function E(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=_.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function B(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function L(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=B(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||G(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:L,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
@@ -1 +1 @@
1
- import{bo as e}from"./DozYGPQ1.js";import{hj as d,J$ as _,i as h,mk as p}from"./DYepVMa7.js";const m="https://e2b.dev/dashboard",f="https://app.northflank.com";function y(r="e2b"){return r==="northflank"?f:m}const M=/^E2B\s*·\s*/u;function R(r,o){const t=o?`${o} · `:null;return(t&&r.name.startsWith(t)?r.name.slice(t.length):r.name.replace(M,"")).trim()||r.name}function q(r){const o=r.split(":")[1];return o?e.cloudMachines_row_template({version:o}):null}function x(r){const o=d(r);return o?e.cloudMachines_size_label({vcpu:String(o.vcpu),memory:String(o.memoryGiB)}):r}function S(r,o,t){const n=r.cloud;if(!n)return 0;const c=n.state==="running"&&o>0?Math.max(0,(t-o)/1e3):0;return Math.floor(n.runningSeconds+c)}function L(r){const o=Math.floor(r/60);if(o<1)return e.cloudMachines_uptime_underMinute();if(o<60)return e.cloudMachines_uptime_minutes({minutes:String(o)});const t=Math.floor(o/60),n=o%60;return n===0?e.cloudMachines_uptime_hours({hours:String(t)}):e.cloudMachines_uptime_hoursMinutes({hours:String(t),minutes:String(n)})}const k=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2});function C(r){const o=p(r,3600);return o===null?null:e.cloudMachines_size_hourly({amount:k.format(o)})}function E(r,o){const t=new Map;for(const i of r){const s=i.cloud?.workspaceId,a=s?o(s):null,u=s&&a?s:"";let l=t.get(u);l||(l={key:u,name:a??e.cloudMachines_sandboxes_otherWorkspace(),sandboxes:[]},t.set(u,l)),l.sandboxes.push(i)}const n=i=>+(i.cloud?.state==="paused"),c=i=>Number(i.sandboxes.every(s=>n(s)));for(const i of t.values())i.sandboxes.sort((s,a)=>n(s)-n(a)||(a.cloud?.startedAt??"").localeCompare(s.cloud?.startedAt??"")||s.id.localeCompare(a.id));return[...t.values()].sort((i,s)=>c(i)-c(s)||+(i.key==="")-+(s.key==="")||i.name.localeCompare(s.name,void 0,{sensitivity:"base"})||i.key.localeCompare(s.key))}function b(r){switch(r.code){case"cloud-profile-required":return{title:e.cloudMachines_northflank_error_profileRequired_title(),description:e.cloudMachines_northflank_error_profileRequired_description()};case"cloud-quota":return{title:e.cloudMachines_northflank_error_quota_title(),description:r.limit==="plan"?e.cloudMachines_northflank_error_quotaPlan_description():r.limit==="rate"?e.cloudMachines_northflank_error_quotaRate_description():e.cloudMachines_northflank_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const o=t=>({title:e.cloudMachines_northflank_error_unavailable_title(),description:t});switch(r.reason){case"not-configured":return o(e.cloudMachines_northflank_error_notConfigured_description());case"key-rejected":return{title:e.cloudMachines_northflank_error_tokenRejected_title(),description:e.cloudMachines_northflank_error_tokenRejected_description()};case"project-missing":return o(e.cloudMachines_northflank_error_projectMissing_description());case"permission-denied":return{title:e.cloudMachines_northflank_error_permissionDenied_title(),description:e.cloudMachines_northflank_error_permissionDenied_description()};case"template-missing":return o(e.cloudMachines_northflank_error_imageMissing_description());case"sandbox-lost":return{title:e.cloudMachines_northflank_error_serviceLost_title(),description:e.cloudMachines_northflank_error_serviceLost_description()};case"bootstrap-failed":return o(e.cloudMachines_northflank_error_bootstrapFailed_description());default:return o(e.cloudMachines_northflank_error_apiError_description())}}}}function w(r,o){if((r.provider??o)==="northflank")return b(r);switch(r.code){case"cloud-profile-required":return{title:e.cloudMachines_error_profileRequired_title(),description:e.cloudMachines_error_profileRequired_description()};case"cloud-quota":return{title:e.cloudMachines_error_quota_title(),description:r.limit==="plan"?e.cloudMachines_error_quotaPlan_description():r.limit==="rate"?e.cloudMachines_error_quotaRate_description():e.cloudMachines_error_quotaConcurrency_description()};case"cloud-machine-unavailable":switch(r.reason){case"not-configured":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_notConfigured_description()};case"key-rejected":return{title:e.cloudMachines_error_keyRejected_title(),description:e.cloudMachines_error_keyRejected_description()};case"template-missing":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_templateMissing_description()};case"sandbox-lost":return{title:e.cloudMachines_error_sandboxLost_title(),description:e.cloudMachines_error_sandboxLost_description()};case"bootstrap-failed":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_bootstrapFailed_description()};default:return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_apiError_description()}}}}function D(r,o,t){const n=r.trim();if(!n)return e.cloudMachines_form_name_required();if(_(n)>h||/[\u0000-\u001f\u007f]/u.test(n))return e.cloudMachines_form_name_invalid();const c=n.toLowerCase();return o.some(i=>i.id!==t&&i.name.trim().toLowerCase()===c)?e.cloudMachines_form_name_taken():null}export{D as a,w as b,y as c,x as d,L as f,E as g,C as h,S as l,R as s,q as t};
1
+ import{bo as e}from"./eK7OULll.js";import{hj as d,K0 as _,i as h,mk as p}from"./Bo4s1kgI.js";const m="https://e2b.dev/dashboard",f="https://app.northflank.com";function y(r="e2b"){return r==="northflank"?f:m}const M=/^E2B\s*·\s*/u;function R(r,o){const t=o?`${o} · `:null;return(t&&r.name.startsWith(t)?r.name.slice(t.length):r.name.replace(M,"")).trim()||r.name}function q(r){const o=r.split(":")[1];return o?e.cloudMachines_row_template({version:o}):null}function x(r){const o=d(r);return o?e.cloudMachines_size_label({vcpu:String(o.vcpu),memory:String(o.memoryGiB)}):r}function S(r,o,t){const n=r.cloud;if(!n)return 0;const c=n.state==="running"&&o>0?Math.max(0,(t-o)/1e3):0;return Math.floor(n.runningSeconds+c)}function L(r){const o=Math.floor(r/60);if(o<1)return e.cloudMachines_uptime_underMinute();if(o<60)return e.cloudMachines_uptime_minutes({minutes:String(o)});const t=Math.floor(o/60),n=o%60;return n===0?e.cloudMachines_uptime_hours({hours:String(t)}):e.cloudMachines_uptime_hoursMinutes({hours:String(t),minutes:String(n)})}const k=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2});function C(r){const o=p(r,3600);return o===null?null:e.cloudMachines_size_hourly({amount:k.format(o)})}function E(r,o){const t=new Map;for(const i of r){const s=i.cloud?.workspaceId,a=s?o(s):null,u=s&&a?s:"";let l=t.get(u);l||(l={key:u,name:a??e.cloudMachines_sandboxes_otherWorkspace(),sandboxes:[]},t.set(u,l)),l.sandboxes.push(i)}const n=i=>+(i.cloud?.state==="paused"),c=i=>Number(i.sandboxes.every(s=>n(s)));for(const i of t.values())i.sandboxes.sort((s,a)=>n(s)-n(a)||(a.cloud?.startedAt??"").localeCompare(s.cloud?.startedAt??"")||s.id.localeCompare(a.id));return[...t.values()].sort((i,s)=>c(i)-c(s)||+(i.key==="")-+(s.key==="")||i.name.localeCompare(s.name,void 0,{sensitivity:"base"})||i.key.localeCompare(s.key))}function b(r){switch(r.code){case"cloud-profile-required":return{title:e.cloudMachines_northflank_error_profileRequired_title(),description:e.cloudMachines_northflank_error_profileRequired_description()};case"cloud-quota":return{title:e.cloudMachines_northflank_error_quota_title(),description:r.limit==="plan"?e.cloudMachines_northflank_error_quotaPlan_description():r.limit==="rate"?e.cloudMachines_northflank_error_quotaRate_description():e.cloudMachines_northflank_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const o=t=>({title:e.cloudMachines_northflank_error_unavailable_title(),description:t});switch(r.reason){case"not-configured":return o(e.cloudMachines_northflank_error_notConfigured_description());case"key-rejected":return{title:e.cloudMachines_northflank_error_tokenRejected_title(),description:e.cloudMachines_northflank_error_tokenRejected_description()};case"project-missing":return o(e.cloudMachines_northflank_error_projectMissing_description());case"permission-denied":return{title:e.cloudMachines_northflank_error_permissionDenied_title(),description:e.cloudMachines_northflank_error_permissionDenied_description()};case"template-missing":return o(e.cloudMachines_northflank_error_imageMissing_description());case"sandbox-lost":return{title:e.cloudMachines_northflank_error_serviceLost_title(),description:e.cloudMachines_northflank_error_serviceLost_description()};case"bootstrap-failed":return o(e.cloudMachines_northflank_error_bootstrapFailed_description());default:return o(e.cloudMachines_northflank_error_apiError_description())}}}}function w(r,o){if((r.provider??o)==="northflank")return b(r);switch(r.code){case"cloud-profile-required":return{title:e.cloudMachines_error_profileRequired_title(),description:e.cloudMachines_error_profileRequired_description()};case"cloud-quota":return{title:e.cloudMachines_error_quota_title(),description:r.limit==="plan"?e.cloudMachines_error_quotaPlan_description():r.limit==="rate"?e.cloudMachines_error_quotaRate_description():e.cloudMachines_error_quotaConcurrency_description()};case"cloud-machine-unavailable":switch(r.reason){case"not-configured":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_notConfigured_description()};case"key-rejected":return{title:e.cloudMachines_error_keyRejected_title(),description:e.cloudMachines_error_keyRejected_description()};case"template-missing":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_templateMissing_description()};case"sandbox-lost":return{title:e.cloudMachines_error_sandboxLost_title(),description:e.cloudMachines_error_sandboxLost_description()};case"bootstrap-failed":return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_bootstrapFailed_description()};default:return{title:e.cloudMachines_error_unavailable_title(),description:e.cloudMachines_error_apiError_description()}}}}function D(r,o,t){const n=r.trim();if(!n)return e.cloudMachines_form_name_required();if(_(n)>h||/[\u0000-\u001f\u007f]/u.test(n))return e.cloudMachines_form_name_invalid();const c=n.toLowerCase();return o.some(i=>i.id!==t&&i.name.trim().toLowerCase()===c)?e.cloudMachines_form_name_taken():null}export{D as a,w as b,y as c,x as d,L as f,E as g,C as h,S as l,R as s,q as t};
@@ -1 +1 @@
1
- import{g as p,r as u,d as n}from"./ChV6OcuF.js";import{p as f}from"./CIH3mb7Y.js";import{b as a,ay as o}from"./DWcUEP_3.js";import{M as c,c as d}from"./QeTaV4Op.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
1
+ import{g as p,r as u,d as n}from"./C3lgqjB4.js";import{p as f}from"./BkR5Qiti.js";import{b as a,ay as o}from"./DwsRDnkS.js";import{M as c,c as d}from"./DZAWjsA4.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};