@intent-hq/web 2.289.0 → 2.290.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 (315) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BiN4BvQG.js → 1RFrLNza.js} +1 -1
  3. package/web/app/immutable/chunks/{BCvaSKdY.js → 1yYrVIcH.js} +1 -1
  4. package/web/app/immutable/chunks/{13AmrEpa.js → 2Zse_zlb.js} +1 -1
  5. package/web/app/immutable/chunks/{DjyFgI1x.js → 2p97_N8F.js} +1 -1
  6. package/web/app/immutable/chunks/{CM-42I4J.js → 3Hx-xwhh.js} +1 -1
  7. package/web/app/immutable/chunks/{Bs0OTveI.js → 4YAlYQZK.js} +1 -1
  8. package/web/app/immutable/chunks/{DLOCpz5P.js → 7-JV_YuQ.js} +1 -1
  9. package/web/app/immutable/chunks/{CLqc4Ghh.js → 7bnNetCh.js} +4 -4
  10. package/web/app/immutable/chunks/{DwxN7Wdi.js → 8pTk55sx.js} +1 -1
  11. package/web/app/immutable/chunks/{h6LfsnBK.js → 9mpJnkDG.js} +1 -1
  12. package/web/app/immutable/chunks/{DuMYTc8Y.js → AZdZd6y3.js} +1 -1
  13. package/web/app/immutable/chunks/{KrEm5AbS.js → B-CzqeN8.js} +1 -1
  14. package/web/app/immutable/chunks/{CaHA2ESe.js → B-vv1agI.js} +1 -1
  15. package/web/app/immutable/chunks/{BSmsRx9G.js → B0Prdf3M.js} +1 -1
  16. package/web/app/immutable/chunks/{Z-nmDTPH.js → B10IM79i.js} +1 -1
  17. package/web/app/immutable/chunks/{CUTHTUjs.js → B2D_mcko.js} +1 -1
  18. package/web/app/immutable/chunks/{DGPqSlym.js → B7NNbItI.js} +1 -1
  19. package/web/app/immutable/chunks/{CVwFZDMQ.js → BA5dsrgI.js} +1 -1
  20. package/web/app/immutable/chunks/{C3XlBsuD.js → BA6v9DYL.js} +1 -1
  21. package/web/app/immutable/chunks/{CWwfm7Sc.js → BBBIudrX.js} +1 -1
  22. package/web/app/immutable/chunks/{BlUnlsOK.js → BDn01g3q.js} +51 -51
  23. package/web/app/immutable/chunks/{DzpyprB1.js → BEN2zFww.js} +1 -1
  24. package/web/app/immutable/chunks/{COYb5Q2j.js → BEOSERRe.js} +1 -1
  25. package/web/app/immutable/chunks/{CRPPupd6.js → BFY95MZy.js} +1 -1
  26. package/web/app/immutable/chunks/{Da9J2JX1.js → BG92xiA-.js} +1 -1
  27. package/web/app/immutable/chunks/{l18fXbdG.js → BGG3Zscy.js} +2 -2
  28. package/web/app/immutable/chunks/{CkLmMloL.js → BIRD3ESe.js} +1 -1
  29. package/web/app/immutable/chunks/{CBLL08sm.js → BJClJd-t.js} +1 -1
  30. package/web/app/immutable/chunks/{bJKJaeMz.js → BJarmryO.js} +1 -1
  31. package/web/app/immutable/chunks/{CF6Nr1sW.js → BKANDKfj.js} +1 -1
  32. package/web/app/immutable/chunks/{FBhib8LQ.js → BL_sVoge.js} +1 -1
  33. package/web/app/immutable/chunks/{CF8O1pc4.js → BLfTJyKw.js} +1 -1
  34. package/web/app/immutable/chunks/{B-CmW-Rt.js → BMAdQvY4.js} +1 -1
  35. package/web/app/immutable/chunks/{DfacsTaO.js → BORhTadA.js} +1 -1
  36. package/web/app/immutable/chunks/{BuNDx2oQ.js → BOV2yVmE.js} +1 -1
  37. package/web/app/immutable/chunks/{Cgu6cLKT.js → BRqvd9LR.js} +1 -1
  38. package/web/app/immutable/chunks/{BgLK_ncR.js → BSg7eLHt.js} +1 -1
  39. package/web/app/immutable/chunks/{DmeSNHl2.js → BSqZ5g0_.js} +1 -1
  40. package/web/app/immutable/chunks/{gbA3Idh4.js → BUGkkCym.js} +6 -6
  41. package/web/app/immutable/chunks/{BppZZR6X.js → BU_GHz5Q.js} +1 -1
  42. package/web/app/immutable/chunks/{a305huOc.js → BVxQ-eUq.js} +1 -1
  43. package/web/app/immutable/chunks/{BR8wCCqs.js → BX_hW0qI.js} +1 -1
  44. package/web/app/immutable/chunks/{C2WwiwWs.js → BXzaNdSF.js} +1 -1
  45. package/web/app/immutable/chunks/{CArnO8CD.js → BYCiS1o9.js} +3 -3
  46. package/web/app/immutable/chunks/{B5xbJc9W.js → BZrxWDyC.js} +1 -1
  47. package/web/app/immutable/chunks/{OJ1L_5qb.js → B_tLm3FX.js} +1 -1
  48. package/web/app/immutable/chunks/{Db3BHa7z.js → BaL0o0Td.js} +1 -1
  49. package/web/app/immutable/chunks/{1KqMO8DA.js → BbTuJlco.js} +1 -1
  50. package/web/app/immutable/chunks/{D1zpsxCF.js → Bbg7YJDS.js} +1 -1
  51. package/web/app/immutable/chunks/{CW9o0MGu.js → Bc1TTOKX.js} +1 -1
  52. package/web/app/immutable/chunks/{-Vbe26cE.js → BcidqQDh.js} +1 -1
  53. package/web/app/immutable/chunks/{BAhFveyJ.js → BeUBep3b.js} +1 -1
  54. package/web/app/immutable/chunks/{rJ19sxRo.js → BeZSE8qD.js} +1 -1
  55. package/web/app/immutable/chunks/{BulSFF-a.js → BeteiAtg.js} +1 -1
  56. package/web/app/immutable/chunks/{rZp3PWdq.js → Bg4Uz_3j.js} +1 -1
  57. package/web/app/immutable/chunks/{DswUZY33.js → BiFqz5BS.js} +1 -1
  58. package/web/app/immutable/chunks/{DFAvh56i.js → Bjha4wuc.js} +1 -1
  59. package/web/app/immutable/chunks/{IjnClLwt.js → Bk3MUF5Z.js} +1 -1
  60. package/web/app/immutable/chunks/{DVs38eSu.js → Bm0FPS2G.js} +4 -4
  61. package/web/app/immutable/chunks/{CGkp_Cwy.js → BmUlDo2H.js} +1 -1
  62. package/web/app/immutable/chunks/{DTbYuW0t.js → BmiNxvpC.js} +1 -1
  63. package/web/app/immutable/chunks/{jS3iGRMB.js → Bmk9ow9D.js} +1 -1
  64. package/web/app/immutable/chunks/{BnSQjI9U.js → Bn3UQ-Cp.js} +1 -1
  65. package/web/app/immutable/chunks/{CaJKv7d6.js → Bo4f3vLH.js} +1 -1
  66. package/web/app/immutable/chunks/{2R1NzPTD.js → BqoQHFLV.js} +1 -1
  67. package/web/app/immutable/chunks/Bs9Hbccv.js +1 -0
  68. package/web/app/immutable/chunks/{DYZQjWbl.js → Bsgnuc3k.js} +1 -1
  69. package/web/app/immutable/chunks/{BMtE4svi.js → BuPFKHtN.js} +1 -1
  70. package/web/app/immutable/chunks/{Dy2xsFvf.js → BuUX281b.js} +1 -1
  71. package/web/app/immutable/chunks/{B3II5C5l.js → BvWLkg--.js} +1 -1
  72. package/web/app/immutable/chunks/{ClIwbXJq.js → BwTgppku.js} +1 -1
  73. package/web/app/immutable/chunks/{CtGY50_e.js → Bx7BNLnp.js} +1 -1
  74. package/web/app/immutable/chunks/{1kMmRwXf.js → BxiHCJA9.js} +1 -1
  75. package/web/app/immutable/chunks/{CamLX2Sb.js → C17qLLZy.js} +1 -1
  76. package/web/app/immutable/chunks/{BelvDbq4.js → C1oWz50Y.js} +3 -3
  77. package/web/app/immutable/chunks/C1pLdIna.js +1 -0
  78. package/web/app/immutable/chunks/{Dmq8N6LI.js → C1r6VU8i.js} +2 -2
  79. package/web/app/immutable/chunks/{BpZ--9ga.js → C1vv_LrD.js} +1 -1
  80. package/web/app/immutable/chunks/{V68rWC50.js → C28hhXd4.js} +1 -1
  81. package/web/app/immutable/chunks/{Bg4MuTWX.js → C2VPDjeo.js} +1 -1
  82. package/web/app/immutable/chunks/{CylTfPZk.js → C5qvCE4M.js} +1 -1
  83. package/web/app/immutable/chunks/{DmLTqLLV.js → C6dKjZk_.js} +1 -1
  84. package/web/app/immutable/chunks/{C5paQyk5.js → C6rJFcL9.js} +1 -1
  85. package/web/app/immutable/chunks/{Q09YKVwy.js → C94wEIre.js} +1 -1
  86. package/web/app/immutable/chunks/{cv4xg7k0.js → C9hosAov.js} +1 -1
  87. package/web/app/immutable/chunks/{CUpXgpcF.js → C9tAiYT0.js} +1 -1
  88. package/web/app/immutable/chunks/{B7y27fC-.js → CAoXCf6s.js} +1 -1
  89. package/web/app/immutable/chunks/{y_-PH3Cn.js → CB3E3AyJ.js} +1 -1
  90. package/web/app/immutable/chunks/{D1yGasR4.js → CB5rZSQk.js} +1 -1
  91. package/web/app/immutable/chunks/{DZC7segB.js → CBQ9Dj27.js} +1 -1
  92. package/web/app/immutable/chunks/{CvHIPf4O.js → CBeBcrFe.js} +1 -1
  93. package/web/app/immutable/chunks/{Ev7NI-4B.js → CC2jdDPt.js} +1 -1
  94. package/web/app/immutable/chunks/{Cm72nCq-.js → CD6znF_9.js} +1 -1
  95. package/web/app/immutable/chunks/{CG_nXeYa.js → CDc4alpJ.js} +1 -1
  96. package/web/app/immutable/chunks/{gdAnsrdj.js → CE7ZtQHh.js} +1 -1
  97. package/web/app/immutable/chunks/{DXRlnb97.js → CFBH989r.js} +1 -1
  98. package/web/app/immutable/chunks/{Co-DDbT2.js → CFHzcj7N.js} +1 -1
  99. package/web/app/immutable/chunks/{CHwD9QHP.js → CLCbFeGH.js} +1 -1
  100. package/web/app/immutable/chunks/{CVYI64VR.js → CNP_2GEv.js} +1 -1
  101. package/web/app/immutable/chunks/{rN1DOgEJ.js → CPezNx23.js} +1 -1
  102. package/web/app/immutable/chunks/{e4k4F_fF.js → CR_QOSeH.js} +1 -1
  103. package/web/app/immutable/chunks/{CvUXvU-2.js → CRmUlrc9.js} +1 -1
  104. package/web/app/immutable/chunks/{C-jH8s9r.js → CSYt80U-.js} +2 -2
  105. package/web/app/immutable/chunks/{JWXbB6B6.js → CT1fMnWm.js} +1 -1
  106. package/web/app/immutable/chunks/{DmRzBB2M.js → CTNvudJn.js} +1 -1
  107. package/web/app/immutable/chunks/{CnypGHrl.js → CT_RWC-b.js} +1 -1
  108. package/web/app/immutable/chunks/{BzBOPxuP.js → CTm1UFNm.js} +1 -1
  109. package/web/app/immutable/chunks/{DYrNCBqG.js → CU1drimT.js} +1 -1
  110. package/web/app/immutable/chunks/{BETowprU.js → CVQnuBUY.js} +1 -1
  111. package/web/app/immutable/chunks/{iaCxlE6C.js → CVoR5NDH.js} +1 -1
  112. package/web/app/immutable/chunks/{DkiAPJ2W.js → CXwlKBiL.js} +1 -1
  113. package/web/app/immutable/chunks/{D8u-TTw-.js → CYK_6j38.js} +1 -1
  114. package/web/app/immutable/chunks/{D1dtTkDE.js → C_T_V_cz.js} +1 -1
  115. package/web/app/immutable/chunks/{BzBHISyY.js → C_Xkhy7Z.js} +1 -1
  116. package/web/app/immutable/chunks/{BTurlMFD.js → CbcJLLbX.js} +1 -1
  117. package/web/app/immutable/chunks/{D3Xty9Im.js → Ce9YhY2C.js} +1 -1
  118. package/web/app/immutable/chunks/{CN0OjCVu.js → CeJvKYEf.js} +1 -1
  119. package/web/app/immutable/chunks/{B2-XfPcN.js → Cf5LD9TB.js} +1 -1
  120. package/web/app/immutable/chunks/CgPr4hs2.js +1 -0
  121. package/web/app/immutable/chunks/{BdqSZQx_.js → CivlAwc7.js} +1 -1
  122. package/web/app/immutable/chunks/{CfeU66Hz.js → CjK0D9QS.js} +1 -1
  123. package/web/app/immutable/chunks/CjrYYJVA.js +1 -0
  124. package/web/app/immutable/chunks/{D1LasNTA.js → Clusycua.js} +1 -1
  125. package/web/app/immutable/chunks/{C0MRkgn4.js → CnRB4N94.js} +1 -1
  126. package/web/app/immutable/chunks/{C13MrFSw.js → CntEBInL.js} +1 -1
  127. package/web/app/immutable/chunks/{CfM0pCZF.js → Co_Aa6ij.js} +1 -1
  128. package/web/app/immutable/chunks/{BejAw64w.js → CobcHKt3.js} +6 -6
  129. package/web/app/immutable/chunks/{NUHg8tud.js → CokCeQxx.js} +1 -1
  130. package/web/app/immutable/chunks/{Db1mweH6.js → Cou180Vm.js} +1 -1
  131. package/web/app/immutable/chunks/{O81B-H5P.js → Cq8w3ES-.js} +1 -1
  132. package/web/app/immutable/chunks/{D2zf67XA.js → CqiIZBSl.js} +7 -7
  133. package/web/app/immutable/chunks/{BlBEj3oF.js → CsBmR9QJ.js} +2 -2
  134. package/web/app/immutable/chunks/{DaiMZHlt.js → CsHZlnUj.js} +1 -1
  135. package/web/app/immutable/chunks/{DpawEIzT.js → CskCO23D.js} +3 -3
  136. package/web/app/immutable/chunks/{CsvDcicf.js → CsstSIr0.js} +1 -1
  137. package/web/app/immutable/chunks/{DktdylrS.js → CtBQs9aW.js} +1 -1
  138. package/web/app/immutable/chunks/{CemNgvNI.js → Cv0HcHak.js} +1 -1
  139. package/web/app/immutable/chunks/{Cb7Fwhyl.js → CvXnZ-8G.js} +1 -1
  140. package/web/app/immutable/chunks/{iF8lSM38.js → Cw7IfVO4.js} +1 -1
  141. package/web/app/immutable/chunks/{BNAxChIn.js → Cx7iLEYy.js} +3 -3
  142. package/web/app/immutable/chunks/{T4V8F4hM.js → Cyjl25fy.js} +1 -1
  143. package/web/app/immutable/chunks/{CIkVHIT3.js → D-YtOwPX.js} +1 -1
  144. package/web/app/immutable/chunks/{DqaJW-PO.js → D-Zd1oaK.js} +1 -1
  145. package/web/app/immutable/chunks/{DhizMGiT.js → D-y9m6ao.js} +1 -1
  146. package/web/app/immutable/chunks/{kmgcRpkz.js → D0SLupV7.js} +1 -1
  147. package/web/app/immutable/chunks/{CyLm5JOs.js → D0xGfXvZ.js} +1 -1
  148. package/web/app/immutable/chunks/{C26KoPDI.js → D2HP95As.js} +1 -1
  149. package/web/app/immutable/chunks/{C_lRd9OO.js → D2WFqoJa.js} +1 -1
  150. package/web/app/immutable/chunks/{B25t-e4E.js → D32qvOGn.js} +1 -1
  151. package/web/app/immutable/chunks/{HqhytM4z.js → D3ROSEe0.js} +1 -1
  152. package/web/app/immutable/chunks/{B7g53bMx.js → D3Vc9t57.js} +1 -1
  153. package/web/app/immutable/chunks/{CpyyZUC4.js → D56Oo2O2.js} +1 -1
  154. package/web/app/immutable/chunks/{YQRvuTGW.js → D5jBmJQo.js} +1 -1
  155. package/web/app/immutable/chunks/{Diyq2-7-.js → D6XmzNBT.js} +1 -1
  156. package/web/app/immutable/chunks/{BcXGciCG.js → D7Efqf9l.js} +1 -1
  157. package/web/app/immutable/chunks/{COR1ZgMB.js → D7KQ-C2a.js} +1 -1
  158. package/web/app/immutable/chunks/{DBaQx-Pk.js → D8m7soiy.js} +1 -1
  159. package/web/app/immutable/chunks/{DBH00hnQ.js → D9ikaMyr.js} +1 -1
  160. package/web/app/immutable/chunks/{Dtny-3OT.js → DFhWc3Xl.js} +1 -1
  161. package/web/app/immutable/chunks/{Daq0t0IO.js → DHVVvfGv.js} +1 -1
  162. package/web/app/immutable/chunks/{C_drUQi2.js → DHyS0o2Q.js} +1 -1
  163. package/web/app/immutable/chunks/{DZ1zC9TP.js → DI6oKJrr.js} +1 -1
  164. package/web/app/immutable/chunks/{3oF_cfgL.js → DIbPNVg7.js} +1 -1
  165. package/web/app/immutable/chunks/{3-iWM9xO.js → DJB1T3Sf.js} +1 -1
  166. package/web/app/immutable/chunks/{ClGi_L6l.js → DJk4n_RN.js} +1 -1
  167. package/web/app/immutable/chunks/{Bk3O9qYH.js → DJuSbP_R.js} +1 -1
  168. package/web/app/immutable/chunks/{CsgZCzi1.js → DKCiaCAE.js} +3 -3
  169. package/web/app/immutable/chunks/{C7FfDPRZ.js → DLg9iehs.js} +1 -1
  170. package/web/app/immutable/chunks/{CHLJ-3Q1.js → DMAAeEjh.js} +1 -1
  171. package/web/app/immutable/chunks/{DVFKqUgb.js → DMEnrA6r.js} +1 -1
  172. package/web/app/immutable/chunks/{Bb6J6sjQ.js → DNPPDjbf.js} +1 -1
  173. package/web/app/immutable/chunks/{BGCd17XA.js → DNUaZj8_.js} +1 -1
  174. package/web/app/immutable/chunks/{BDZGpmAg.js → DOd666za.js} +1 -1
  175. package/web/app/immutable/chunks/{CbsrOoqP.js → DOzFltDq.js} +1 -1
  176. package/web/app/immutable/chunks/{RKSEQ7So.js → DQXapDyu.js} +1 -1
  177. package/web/app/immutable/chunks/{Cno21Zxg.js → DRmM5gTo.js} +1 -1
  178. package/web/app/immutable/chunks/{D3NFuU4L.js → DTh2IQKZ.js} +1 -1
  179. package/web/app/immutable/chunks/{Mw1KbVyQ.js → DUMeb8Tg.js} +1 -1
  180. package/web/app/immutable/chunks/{C7cZaxG3.js → DUwPI6pr.js} +1 -1
  181. package/web/app/immutable/chunks/{CNySgneH.js → DV5DGvsr.js} +1 -1
  182. package/web/app/immutable/chunks/{DerqLelD.js → DVGE4E_C.js} +1 -1
  183. package/web/app/immutable/chunks/{DTjIXONR.js → DVa-kQtc.js} +4 -4
  184. package/web/app/immutable/chunks/{CEuCjemc.js → DVeZQ6um.js} +1 -1
  185. package/web/app/immutable/chunks/{0n1_sqb5.js → DWH0KAf0.js} +1 -1
  186. package/web/app/immutable/chunks/{Bqfueq_D.js → DWLJSPfW.js} +1 -1
  187. package/web/app/immutable/chunks/{CwzDLq3o.js → DWVb7mpY.js} +1 -1
  188. package/web/app/immutable/chunks/{BZsM0M0Q.js → DXiP5t0I.js} +1 -1
  189. package/web/app/immutable/chunks/{BW5wGxdP.js → DY2nfza0.js} +1 -1
  190. package/web/app/immutable/chunks/{D6cxqzoz.js → DYlMDxfy.js} +1 -1
  191. package/web/app/immutable/chunks/{DsoGIaMF.js → D_TiJ_fE.js} +1 -1
  192. package/web/app/immutable/chunks/{CDbeyeCP.js → D_uZvS29.js} +2 -2
  193. package/web/app/immutable/chunks/{YSaBP0Ch.js → DaJsXhcE.js} +1 -1
  194. package/web/app/immutable/chunks/{CSSOys25.js → DaNfseRw.js} +1 -1
  195. package/web/app/immutable/chunks/{CK6izZOP.js → DaXfyPpV.js} +2 -2
  196. package/web/app/immutable/chunks/DbNaInRh.js +4 -0
  197. package/web/app/immutable/chunks/{u8zBWO7U.js → DdTOR-fK.js} +1 -1
  198. package/web/app/immutable/chunks/{PZzdtHEH.js → DeXgzEXt.js} +1 -1
  199. package/web/app/immutable/chunks/{iy9r6eBz.js → DeywGElR.js} +1 -1
  200. package/web/app/immutable/chunks/{Dbhxem_q.js → Df1mOKLZ.js} +1 -1
  201. package/web/app/immutable/chunks/{bHtn9InS.js → Df2ohObb.js} +1 -1
  202. package/web/app/immutable/chunks/{12UHR0Xn.js → DfKemw6I.js} +1 -1
  203. package/web/app/immutable/chunks/{DVuTL7Ze.js → DgO-InVL.js} +1 -1
  204. package/web/app/immutable/chunks/{CBolvbXG.js → DhkrcYPH.js} +1 -1
  205. package/web/app/immutable/chunks/{zIOd8jG8.js → Dj0Fo3FR.js} +1 -1
  206. package/web/app/immutable/chunks/{DZFxh2Hz.js → DlqxHCQ7.js} +1 -1
  207. package/web/app/immutable/chunks/{D6QA9x6A.js → DoRZvIjE.js} +1 -1
  208. package/web/app/immutable/chunks/{CS4ChtR_.js → DoSGU0je.js} +1 -1
  209. package/web/app/immutable/chunks/{DFhTl2LJ.js → DqYyUQgu.js} +1 -1
  210. package/web/app/immutable/chunks/{D2ImsQzb.js → DrDFJIB-.js} +1 -1
  211. package/web/app/immutable/chunks/{C6HNr-1J.js → DualWjmg.js} +1 -1
  212. package/web/app/immutable/chunks/{D91osLQe.js → DvM0Oc_2.js} +1 -1
  213. package/web/app/immutable/chunks/{YvM9JcXX.js → Dw68b__v.js} +1 -1
  214. package/web/app/immutable/chunks/{BYk1ULDt.js → DwKgqaL_.js} +3 -3
  215. package/web/app/immutable/chunks/{DFm7ZzVD.js → DyTkTh0C.js} +1 -1
  216. package/web/app/immutable/chunks/{DpDRAdy2.js → DywBWiWr.js} +2 -2
  217. package/web/app/immutable/chunks/{iNzcdJYX.js → FQxEz28M.js} +1 -1
  218. package/web/app/immutable/chunks/{lM1_eh6C.js → FvORToMl.js} +1 -1
  219. package/web/app/immutable/chunks/{BiMGq9Z7.js → FxlwG_cR.js} +1 -1
  220. package/web/app/immutable/chunks/{C2eeslGl.js → GIAV4N10.js} +1 -1
  221. package/web/app/immutable/chunks/{DBAVKOs3.js → HWRbLPjE.js} +1 -1
  222. package/web/app/immutable/chunks/{5bL3DJj7.js → Ico6LbU5.js} +1 -1
  223. package/web/app/immutable/chunks/{glfri7wL.js → KjSY_6tg.js} +1 -1
  224. package/web/app/immutable/chunks/{Bg5ADDrW.js → LIohq1To.js} +1 -1
  225. package/web/app/immutable/chunks/{DchjGXey.js → LZ5jXWXv.js} +1 -1
  226. package/web/app/immutable/chunks/{DyyrFzIP.js → LgC5iPo9.js} +1 -1
  227. package/web/app/immutable/chunks/{B1rvRaDg.js → MR-g1_iF.js} +1 -1
  228. package/web/app/immutable/chunks/{Hai9JAty.js → Mb97pGy9.js} +1 -1
  229. package/web/app/immutable/chunks/{CBiBtnBM.js → NnQLq3da.js} +1 -1
  230. package/web/app/immutable/chunks/{hcRUxON5.js → O7VU9svd.js} +1 -1
  231. package/web/app/immutable/chunks/{DFBRG5f3.js → O7y8odEy.js} +1 -1
  232. package/web/app/immutable/chunks/{BDldvohw.js → P80hEEPK.js} +1 -1
  233. package/web/app/immutable/chunks/{3FJRVBU-.js → PJ-tEAYj.js} +1 -1
  234. package/web/app/immutable/chunks/{D8C52zH9.js → PnAug6me.js} +1 -1
  235. package/web/app/immutable/chunks/{P-01BLZ6.js → Ps9iRbKd.js} +3 -3
  236. package/web/app/immutable/chunks/{C3U610Va.js → QuwJBwI-.js} +1 -1
  237. package/web/app/immutable/chunks/{B0vB3nPK.js → R4VbyJYi.js} +1 -1
  238. package/web/app/immutable/chunks/{LzhxhM8_.js → R9tUAGJO.js} +1 -1
  239. package/web/app/immutable/chunks/{D6Y18pu-.js → RDBJJxOY.js} +1 -1
  240. package/web/app/immutable/chunks/{BzLM7oPX.js → TPpS6DWt.js} +1 -1
  241. package/web/app/immutable/chunks/{D30--6jq.js → UMrFWomj.js} +1 -1
  242. package/web/app/immutable/chunks/{CxWK8xnP.js → VI8s0N-a.js} +1 -1
  243. package/web/app/immutable/chunks/{p29Y4Sx3.js → WD5eiIht.js} +1 -1
  244. package/web/app/immutable/chunks/{B5NmEYUa.js → XG9LuART.js} +1 -1
  245. package/web/app/immutable/chunks/{DIiXUVIr.js → YnEJ07_G.js} +3 -3
  246. package/web/app/immutable/chunks/{n0AniKod.js → ZahkIG5A.js} +1 -1
  247. package/web/app/immutable/chunks/{Df7C6745.js → _0mq0vvG.js} +1 -1
  248. package/web/app/immutable/chunks/{CI4bdaNh.js → _o85nBWH.js} +1 -1
  249. package/web/app/immutable/chunks/{DShhv9Lh.js → _u30tumF.js} +1 -1
  250. package/web/app/immutable/chunks/{CdtTvwl3.js → a4fF0apV.js} +1 -1
  251. package/web/app/immutable/chunks/{3CggOKng.js → aeIQN6XF.js} +1 -1
  252. package/web/app/immutable/chunks/{BFapXlF9.js → bGIBa4-r.js} +1 -1
  253. package/web/app/immutable/chunks/{wI7zMgx-.js → bOHL4iEd.js} +1 -1
  254. package/web/app/immutable/chunks/{BNOUHNLe.js → cPzpQFEA.js} +1 -1
  255. package/web/app/immutable/chunks/{Cd0IJoag.js → cUFAcBAC.js} +1 -1
  256. package/web/app/immutable/chunks/{CjPlYTON.js → cfooBVHs.js} +1 -1
  257. package/web/app/immutable/chunks/{CKeHkFGu.js → czyBPXbO.js} +1 -1
  258. package/web/app/immutable/chunks/{TjYngI-X.js → d5zYr7fC.js} +1 -1
  259. package/web/app/immutable/chunks/{Bxucs2aA.js → dkojwLk2.js} +1 -1
  260. package/web/app/immutable/chunks/{CFmU7Xxn.js → fXrcgNtr.js} +1 -1
  261. package/web/app/immutable/chunks/{D-k0eOJ6.js → fdlSdJMU.js} +1 -1
  262. package/web/app/immutable/chunks/{D4kGqGBk.js → gywQvRwA.js} +1 -1
  263. package/web/app/immutable/chunks/{DFQ2LZfw.js → hBdy3DXS.js} +1 -1
  264. package/web/app/immutable/chunks/{Bz2j5nDH.js → iCHr0TgO.js} +1 -1
  265. package/web/app/immutable/chunks/iaaN5aeR.js +1 -0
  266. package/web/app/immutable/chunks/{DE17eju9.js → jRjYIDnt.js} +1 -1
  267. package/web/app/immutable/chunks/{DxrXzX_M.js → l8G_rqMf.js} +3 -3
  268. package/web/app/immutable/chunks/{BupZf9R2.js → mR2QgOoI.js} +1 -1
  269. package/web/app/immutable/chunks/{D3sL2PPU.js → mp47640j.js} +1 -1
  270. package/web/app/immutable/chunks/{f34gPxAx.js → pCx1Hl6T.js} +1 -1
  271. package/web/app/immutable/chunks/{DxRCuR64.js → q4FIdUSc.js} +1 -1
  272. package/web/app/immutable/chunks/{CAh6WYw0.js → rpeM9FmT.js} +1 -1
  273. package/web/app/immutable/chunks/{D_OjFNQH.js → sUO-mR-D.js} +1 -1
  274. package/web/app/immutable/chunks/{Cs8DWwEN.js → txAmNNfN.js} +2 -2
  275. package/web/app/immutable/chunks/{CJT0k-x3.js → u43L-bVE.js} +1 -1
  276. package/web/app/immutable/chunks/{DjXUNnle.js → uPJwsXgL.js} +1 -1
  277. package/web/app/immutable/chunks/{rjfpoS8M.js → uw9q9ubw.js} +1 -1
  278. package/web/app/immutable/chunks/{BtuvHYz8.js → v6SgbwXH.js} +1 -1
  279. package/web/app/immutable/chunks/{Drwt7aYJ.js → v6v2loc1.js} +1 -1
  280. package/web/app/immutable/chunks/{CDT1G70y.js → w9Jeqnt9.js} +1 -1
  281. package/web/app/immutable/chunks/{CWELhcXR.js → wSFhIxGo.js} +1 -1
  282. package/web/app/immutable/chunks/{CzoFKpHV.js → xF2i73WW.js} +1 -1
  283. package/web/app/immutable/chunks/{CVAEsdqc.js → xFioAb_b.js} +1 -1
  284. package/web/app/immutable/chunks/{BraZvQcb.js → zCZWMH02.js} +1 -1
  285. package/web/app/immutable/chunks/{4WPqCRAv.js → zxmCuTa7.js} +1 -1
  286. package/web/app/immutable/entry/{app.Bf_OSyrf.js → app.DwRPZdEe.js} +3 -3
  287. package/web/app/immutable/entry/start.ksbZjpza.js +1 -0
  288. package/web/app/immutable/nodes/{0.B5ZNWVMC.js → 0.Opr0LpNR.js} +1 -1
  289. package/web/app/immutable/nodes/{1.SeMykOqr.js → 1.DxR1peSG.js} +1 -1
  290. package/web/app/immutable/nodes/{10.BZ6kBK3P.js → 10.BMejDu10.js} +1 -1
  291. package/web/app/immutable/nodes/{11.DdNqWjT1.js → 11.K4X9py2s.js} +1 -1
  292. package/web/app/immutable/nodes/{12.sEYH_Pmu.js → 12.CV0D62ho.js} +1 -1
  293. package/web/app/immutable/nodes/{13.B0uhCaJY.js → 13.B-lV8z59.js} +3 -3
  294. package/web/app/immutable/nodes/{14.C3Ch8LVG.js → 14.C8M6elt-.js} +1 -1
  295. package/web/app/immutable/nodes/{15.B6xmqReh.js → 15.CKURddgk.js} +1 -1
  296. package/web/app/immutable/nodes/{16.k3HHr2yy.js → 16.Buvqlzgi.js} +2 -2
  297. package/web/app/immutable/nodes/{2.CdR_R7AF.js → 2.DGI0QMTl.js} +4 -4
  298. package/web/app/immutable/nodes/{3.C81CEmtR.js → 3.CDWebO9a.js} +1 -1
  299. package/web/app/immutable/nodes/{4.F_Gi0JxR.js → 4.Dxmt1auu.js} +1 -1
  300. package/web/app/immutable/nodes/{5.CtBTp1Hg.js → 5.CSz7wDme.js} +1 -1
  301. package/web/app/immutable/nodes/{6.CYnJfc7G.js → 6.C8qeE1kc.js} +1 -1
  302. package/web/app/immutable/nodes/{7.CHPJsLkB.js → 7.BicRzjRG.js} +1 -1
  303. package/web/app/immutable/nodes/8.BB2n9bBQ.js +14 -0
  304. package/web/app/immutable/nodes/{9.VslqwEvr.js → 9.B1_vasqC.js} +6 -6
  305. package/web/app/version.json +1 -1
  306. package/web/generated/paraglide.js +48 -48
  307. package/web/index.html +18 -18
  308. package/web/app/immutable/chunks/BCVnawos.js +0 -1
  309. package/web/app/immutable/chunks/BQS0XfBK.js +0 -1
  310. package/web/app/immutable/chunks/CjKcpWyx.js +0 -4
  311. package/web/app/immutable/chunks/D9I3JJnE.js +0 -1
  312. package/web/app/immutable/chunks/lvIYiyhL.js +0 -1
  313. package/web/app/immutable/chunks/sMg7Lxjd.js +0 -1
  314. package/web/app/immutable/entry/start.IOR_3Iyx.js +0 -1
  315. package/web/app/immutable/nodes/8.Dc-nd7pr.js +0 -14
@@ -1 +1 @@
1
- import{a as i,ab as d,aB as c}from"./D2zf67XA.js";import{c3 as l,h as p}from"./BejAw64w.js";var o=p(c()),x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),g=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),h=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),f=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=(0,o.sanitizeUrl)(s);a.attr("xlink:href",n)},"drawImage"),w=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=(0,o.sanitizeUrl)(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),k=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),v=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),E=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{w as a,f as b,E as c,g as d,x as e,h as f,k as g,v as h};
1
+ import{a as i,ab as d,aB as c}from"./CqiIZBSl.js";import{c3 as l,h as p}from"./CobcHKt3.js";var o=p(c()),x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),g=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),h=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),f=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=(0,o.sanitizeUrl)(s);a.attr("xlink:href",n)},"drawImage"),w=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=(0,o.sanitizeUrl)(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),k=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),v=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),E=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{w as a,f as b,E as c,g as d,x as e,h as f,k as g,v as h};
@@ -1 +1 @@
1
- import{cz as ln,a_ as an,aB as g,co as tn,aa as C,cg as S,bH as _,i as un,bS as rn,ci as K,w as o,a7 as G,t as sn,j as on,bG as cn}from"./BejAw64w.js";function fn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,q,b,v,A,H,a){var z=q-l,i=b-h,n=H-v,d=a-A,u=d*z-n*i;if(!(u*u<g))return u=(n*(h-A)-d*(l-v))/u,[l+u*z,h+u*i]}function V(l,h,q,b,v,A,H){var a=l-q,z=h-b,i=(H?A:-A)/K(a*a+z*z),n=i*z,d=-i*a,u=l+n,s=h+d,c=q+n,f=b+d,I=(u+c)/2,t=(s+f)/2,m=c-u,y=f-s,R=m*m+y*y,T=v-A,P=u*f-c*s,B=(y<0?-1:1)*K(cn(0,T*T*R-P*P)),D=(P*y-m*B)/R,E=(-P*m-y*B)/R,w=(P*y+m*B)/R,p=(-P*m+y*B)/R,x=D-I,e=E-t,r=w-I,O=p-t;return x*x+e*e>r*r+O*O&&(D=w,E=p),{cx:D,cy:E,x01:-n,y01:-d,x11:D*(v/T-1),y11:E*(v/T-1)}}function hn(){var l=fn,h=gn,q=G(0),b=null,v=yn,A=dn,H=mn,a=null,z=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),c=v.apply(this,arguments)-an,f=A.apply(this,arguments)-an,I=un(f-c),t=f>c;if(a||(a=n=z()),s<u&&(d=s,s=u,u=d),!(s>g))a.moveTo(0,0);else if(I>tn-g)a.moveTo(s*C(c),s*S(c)),a.arc(0,0,s,c,f,!t),u>g&&(a.moveTo(u*C(f),u*S(f)),a.arc(0,0,u,f,c,t));else{var m=c,y=f,R=c,T=f,P=I,B=I,D=H.apply(this,arguments)/2,E=D>g&&(b?+b.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+q.apply(this,arguments)),p=w,x=w,e,r;if(E>g){var O=sn(E/u*S(D)),L=sn(E/s*S(D));(P-=O*2)>g?(O*=t?1:-1,R+=O,T-=O):(P=0,R=T=(c+f)/2),(B-=L*2)>g?(L*=t?1:-1,m+=L,y-=L):(B=0,m=y=(c+f)/2)}var F=s*C(m),J=s*S(m),M=u*C(T),N=u*S(T);if(w>g){var Q=s*C(y),U=s*S(y),W=u*C(R),X=u*S(R),j;if(I<rn)if(j=pn(F,J,W,X,Q,U,M,N)){var Y=F-j[0],Z=J-j[1],$=Q-j[0],k=U-j[1],nn=1/S(on((Y*$+Z*k)/(K(Y*Y+Z*Z)*K($*$+k*k)))/2),en=K(j[0]*j[0]+j[1]*j[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}B>g?x>g?(e=V(W,X,F,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(F,J),a.arc(0,0,s,m,y,!t)):a.moveTo(F,J),!(u>g)||!(P>g)?a.lineTo(M,N):p>g?(e=V(M,N,Q,U,u,-p,t),r=V(F,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-rn/2;return[C(d)*n,S(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:G(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:G(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:G(+n),i):q},i.padRadius=function(n){return arguments.length?(b=n==null?null:typeof n=="function"?n:G(+n),i):b},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:G(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:G(+n),i):A},i.padAngle=function(n){return arguments.length?(H=typeof n=="function"?n:G(+n),i):H},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
1
+ import{cz as ln,a_ as an,aB as g,co as tn,aa as C,cg as S,bH as _,i as un,bS as rn,ci as K,w as o,a7 as G,t as sn,j as on,bG as cn}from"./CobcHKt3.js";function fn(l){return l.innerRadius}function gn(l){return l.outerRadius}function yn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,q,b,v,A,H,a){var z=q-l,i=b-h,n=H-v,d=a-A,u=d*z-n*i;if(!(u*u<g))return u=(n*(h-A)-d*(l-v))/u,[l+u*z,h+u*i]}function V(l,h,q,b,v,A,H){var a=l-q,z=h-b,i=(H?A:-A)/K(a*a+z*z),n=i*z,d=-i*a,u=l+n,s=h+d,c=q+n,f=b+d,I=(u+c)/2,t=(s+f)/2,m=c-u,y=f-s,R=m*m+y*y,T=v-A,P=u*f-c*s,B=(y<0?-1:1)*K(cn(0,T*T*R-P*P)),D=(P*y-m*B)/R,E=(-P*m-y*B)/R,w=(P*y+m*B)/R,p=(-P*m+y*B)/R,x=D-I,e=E-t,r=w-I,O=p-t;return x*x+e*e>r*r+O*O&&(D=w,E=p),{cx:D,cy:E,x01:-n,y01:-d,x11:D*(v/T-1),y11:E*(v/T-1)}}function hn(){var l=fn,h=gn,q=G(0),b=null,v=yn,A=dn,H=mn,a=null,z=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),c=v.apply(this,arguments)-an,f=A.apply(this,arguments)-an,I=un(f-c),t=f>c;if(a||(a=n=z()),s<u&&(d=s,s=u,u=d),!(s>g))a.moveTo(0,0);else if(I>tn-g)a.moveTo(s*C(c),s*S(c)),a.arc(0,0,s,c,f,!t),u>g&&(a.moveTo(u*C(f),u*S(f)),a.arc(0,0,u,f,c,t));else{var m=c,y=f,R=c,T=f,P=I,B=I,D=H.apply(this,arguments)/2,E=D>g&&(b?+b.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+q.apply(this,arguments)),p=w,x=w,e,r;if(E>g){var O=sn(E/u*S(D)),L=sn(E/s*S(D));(P-=O*2)>g?(O*=t?1:-1,R+=O,T-=O):(P=0,R=T=(c+f)/2),(B-=L*2)>g?(L*=t?1:-1,m+=L,y-=L):(B=0,m=y=(c+f)/2)}var F=s*C(m),J=s*S(m),M=u*C(T),N=u*S(T);if(w>g){var Q=s*C(y),U=s*S(y),W=u*C(R),X=u*S(R),j;if(I<rn)if(j=pn(F,J,W,X,Q,U,M,N)){var Y=F-j[0],Z=J-j[1],$=Q-j[0],k=U-j[1],nn=1/S(on((Y*$+Z*k)/(K(Y*Y+Z*Z)*K($*$+k*k)))/2),en=K(j[0]*j[0]+j[1]*j[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}B>g?x>g?(e=V(W,X,F,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(F,J),a.arc(0,0,s,m,y,!t)):a.moveTo(F,J),!(u>g)||!(P>g)?a.lineTo(M,N):p>g?(e=V(M,N,Q,U,u,-p,t),r=V(F,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-rn/2;return[C(d)*n,S(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:G(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:G(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:G(+n),i):q},i.padRadius=function(n){return arguments.length?(b=n==null?null:typeof n=="function"?n:G(+n),i):b},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:G(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:G(+n),i):A},i.padAngle=function(n){return arguments.length?(H=typeof n=="function"?n:G(+n),i):H},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
@@ -1 +1 @@
1
- var $r=Object.defineProperty;var $t=a=>{throw TypeError(a)};var en=(a,e,t)=>e in a?$r(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var H=(a,e,t)=>en(a,typeof e!="symbol"?e+"":e,t),Pt=(a,e,t)=>e.has(a)||$t("Cannot "+t);var h=(a,e,t)=>(Pt(a,e,"read from private field"),t?t.call(a):e.get(a)),M=(a,e,t)=>e.has(a)?$t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ne=(a,e,t,r)=>(Pt(a,e,"write to private field"),r?r.call(a,t):e.set(a,t),t),Pe=(a,e,t)=>(Pt(a,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"./sMg7Lxjd.js";import{c9 as I,aD as n,bs as ne,a7 as q,ay as K,W as P,bn as oe,aA as u,aB as J,bH as O,bV as G,bi as tn,ca as de,cb as rn,bf as ae,bo as Oe,a5 as Q,bA as Z,bS as ke,bI as hr,aG as It,c5 as nn,bl as on,b_ as Ae,bO as sn,br as gr,at as an,bk as ln,c0 as Et}from"./B8o4lNgr.js";import{s as j}from"./HqhytM4z.js";import{c as fe}from"./CfM0pCZF.js";import{e as dn,k as un,g as cn,c as hn,i as gn,f as pn,O as fn,b as vn,s as mn,j as bn}from"./CGkp_Cwy.js";import{c as ie,h as Tt,f as me,k as ft,a as mt,d as St,o as yn,j as wn,s as xn}from"./CsvDcicf.js";import{bH as _n,bm as ue,aI as In,b3 as Cn,h as Dt,av as Ie,D as Ct,i as Nn,d as le,a as ve,l as bt,ad as Ot,ak as yt,a2 as Ft,K as Kt,a1 as Bt,E as Wt,bn as pr,bA as fr,aY as vr,aB as mr,aE as Ut,b0 as qt,aF as br,bL as be,bh as Pn,bt as Sn,b2 as On,b1 as kn,aH as tr,au as yr,a6 as En,aJ as U,aR as Tn,m as wr,b as An,c as Mn,a8 as Rn,C as Hn,g as Ln,A as Vn,M as Dn,F as Fn,r as Kn,s as Bn,t as Wn,u as Un,v as qn,w as zn,x as Yn,y as Gn,o as jn,p as Xn,q as Jn,B as Qn,z as Zn,aS as ce,bo as X,a4 as xr,a3 as _r,bv as $n,H as eo,f as to,bI as Ir,a5 as ro}from"./P-01BLZ6.js";import{F as Cr,at as no,bS as oo,av as so,ar as io}from"./DGPqSlym.js";import{b as ao}from"./D2g8BuR1.js";import{D as lo}from"./BDldvohw.js";import{H as rr,g as nr,S as pt}from"./Co-DDbT2.js";import{c as uo,u as co,s as ho}from"./D2AmAQEr.js";import"./BnSQjI9U.js";const Nr={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%)"};_n(Nr);var Me,xt;class go{constructor(e,t){M(this,Me,()=>{});M(this,xt,I(()=>h(this,Me).call(this)));let r;t!==void 0&&(r=t),Ne(this,Me,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,xt))}}Me=new WeakMap,xt=new WeakMap;var po=new Set(["$$slots","$$events","$$legacy","value"]),or=J("<input/>");function Pr(a,e){if(new.target)return ee({component:Pr,...a});ne(e,!0);let t=d(e,"value",15),r=ye(e,po);const o=I(()=>ue(r,{"aria-hidden":"true",tabindex:-1,style:{...Nr,position:"absolute",top:"0",left:"0"}}));var s={get value(){return t()},set value(i){t(i),u()},$set:te,$on:(i,f)=>re(e,i,f)},l=q(),c=K(l);{var x=i=>{var f=or();ie(f,()=>({...n(o),value:t()}),void 0,void 0,void 0,void 0,!0),P(i,f)},v=i=>{var f=or();ie(f,()=>({...n(o)}),void 0,void 0,void 0,void 0,!0),dn(f,t),P(i,f)};$(c,i=>{n(o).type==="checkbox"?i(x):i(v,-1)})}return P(a,l),oe(s)}var ge,we,pe;class fo{constructor(e){M(this,ge);M(this,we,I(()=>h(this,ge).candidateValues()));M(this,pe);Ne(this,ge,e),Ne(this,pe,In("",{afterMs:1e3,getWindow:h(this,ge).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,ge).enabled()||!n(h(this,we)).length)return;h(this,pe).current=h(this,pe).current+e;const t=h(this,ge).getCurrentItem(),r=n(h(this,we)).find(c=>c===t)??"",o=n(h(this,we)).map(c=>c??""),s=Cn(o,h(this,pe).current,r),l=n(h(this,we)).find(c=>c===s);return l&&h(this,ge).onMatch(l),l}resetTypeahead(){h(this,pe).current=""}}ge=new WeakMap,we=new WeakMap,pe=new WeakMap;const sr=[An,wr,Mn,Rn,Hn,Ln,Vn,Dn,bt,Fn,Kn,Bn,Wn,Un,qn,zn,Yn,Gn,jn,Xn,Jn],vo=[ve,Ft,Kt],mo=[le,Bt,Wt],Sr=[...vo,...mo],bo=Tn({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"),Or=new Dt("Select.Group | Combobox.Group"),kr=new Dt("Select.Content | Combobox.Content");var Re,He,Le,Ve,De,Fe,Ke,Be,We,Ue,qe,ze;class Er{constructor(e){H(this,"opts");M(this,Re,G(!1));M(this,He,G(null));M(this,Le,G(null));H(this,"contentPresence");M(this,Ve,G(null));M(this,De,G(null));M(this,Fe,G(null));M(this,Ke,G(""));M(this,Be,G(null));M(this,We,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));M(this,Ue,I(()=>{if(this.highlightedNode)return this.highlightedNode.id}));M(this,qe,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));M(this,ze,G(!1));H(this,"isUsingKeyboard",!1);H(this,"isCombobox",!1);H(this,"domContext",new Ct(()=>null));H(this,"getBitsAttr",e=>bo.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new En({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),rn(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,Re))}set touchedInput(e){O(h(this,Re),e,!0)}get inputNode(){return n(h(this,He))}set inputNode(e){O(h(this,He),e,!0)}get contentNode(){return n(h(this,Le))}set contentNode(e){O(h(this,Le),e,!0)}get viewportNode(){return n(h(this,Ve))}set viewportNode(e){O(h(this,Ve),e,!0)}get triggerNode(){return n(h(this,De))}set triggerNode(e){O(h(this,De),e,!0)}get valueNode(){return n(h(this,Fe))}set valueNode(e){O(h(this,Fe),e,!0)}get valueId(){return n(h(this,Ke))}set valueId(e){O(h(this,Ke),e,!0)}get highlightedNode(){return n(h(this,Be))}set highlightedNode(e){O(h(this,Be),e,!0)}get highlightedValue(){return n(h(this,We))}set highlightedValue(e){O(h(this,We),e)}get highlightedId(){return n(h(this,Ue))}set highlightedId(e){O(h(this,Ue),e)}get highlightedLabel(){return n(h(this,qe))}set highlightedLabel(e){O(h(this,qe),e)}get contentIsPositioned(){return n(h(this,ze))}set contentIsPositioned(e){O(h(this,ze),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()}}Re=new WeakMap,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;var Ye,Ge,je,Xe;class yo extends Er{constructor(t){super(t);H(this,"opts");H(this,"isMulti",!1);M(this,Ye,I(()=>this.opts.value.current!==""));M(this,Ge,I(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));M(this,je,I(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));M(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){O(h(this,Ye),t)}get currentLabel(){return n(h(this,Ge))}set currentLabel(t){O(h(this,Ge),t)}get candidateLabels(){return n(h(this,je))}set candidateLabels(t){O(h(this,je),t)}get dataTypeaheadEnabled(){return n(h(this,Xe))}set dataTypeaheadEnabled(t){O(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(){yr(()=>{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,Ge=new WeakMap,je=new WeakMap,Xe=new WeakMap;var Je;class wo extends Er{constructor(t){super(t);H(this,"opts");H(this,"isMulti",!0);M(this,Je,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,Je))}set hasValue(t){O(h(this,Je),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(){yr(()=>{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)}})}}Je=new WeakMap;class xo{static create(e){const{type:t,...r}=e,o=t==="single"?new yo(r):new wo(r);return Ce.set(o)}}var Qe;const zt=class zt{constructor(e,t){H(this,"opts");H(this,"root");H(this,"attachment");M(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":br(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 Ct(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!==wr){if((e.key===le||e.key===ve)&&e.preventDefault(),!this.root.opts.open.current){if(sr.includes(e.key)||e.key===yt||e.key===Qn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===ve){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===yt){this.root.handleClose();return}if(e.key===bt&&!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(),Sr.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 l;if(e.key===ve?l=pr(t,o,s):e.key===le?l=fr(t,o,s):e.key===Bt?l=vr(t,o,10,s):e.key===Ft?l=mr(t,o,10,s):e.key===Kt?l=t[0]:e.key===Wt&&(l=t[t.length-1]),!l)return;this.root.setHighlightedNode(l);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){O(h(this,Qe),e)}};Qe=new WeakMap;let ir=zt;var xe,Se,he,Tr,Mt,Rt,Ze;const Yt=class Yt{constructor(e,t){M(this,he);H(this,"opts");H(this,"root");H(this,"attachment");M(this,xe);M(this,Se);M(this,Ze,I(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":br(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 Ct(e.ref),Ne(this,xe,new Nn({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ne(this,Se,new fo({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 Yt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===ve)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===bt||e.key===Ot||e.key===ve||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,Se).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const l=this.root.getCandidateNodes();if(!l.length)return;if(e.key===ve){const c=l[0];this.root.setHighlightedNode(c)}else if(e.key===le){const c=l[l.length-1];this.root.setHighlightedNode(c)}return}if(e.key===yt){this.root.handleClose();return}if((e.key===bt||e.key===Ot&&h(this,xe).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,he,Rt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),Sr.includes(e.key)){e.preventDefault();const l=this.root.getCandidateNodes(),c=this.root.highlightedNode,x=c?l.indexOf(c):-1,v=this.root.opts.loop.current;let i;if(e.key===ve?i=pr(l,x,v):e.key===le?i=fr(l,x,v):e.key===Bt?i=vr(l,x,10,v):e.key===Ft?i=mr(l,x,10,v):e.key===Kt?i=l[0]:e.key===Wt&&(i=l[l.length-1]),!i)return;this.root.setHighlightedNode(i);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,o=e.key===Ot,s=this.root.getCandidateNodes();if(e.key!==yt){if(!t&&(r||o)){!h(this,xe).handleTypeaheadSearch(e.key,s)&&o&&(e.preventDefault(),Pe(this,he,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,he,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,he,Mt).call(this,e):this.root.handleClose()))}get props(){return n(h(this,Ze))}set props(e){O(h(this,Ze),e)}};xe=new WeakMap,Se=new WeakMap,he=new WeakSet,Tr=function(){this.root.opts.open.current=!0,h(this,Se).resetTypeahead(),h(this,xe).resetTypeahead()},Mt=function(e){Pe(this,he,Tr).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)},Ze=new WeakMap;let At=Yt;var $e,_t,et,tt;const Gt=class Gt{constructor(e,t){H(this,"opts");H(this,"root");H(this,"attachment");M(this,$e,G(!1));H(this,"domContext");M(this,_t,I(()=>On(this.root.isCombobox?"combobox":"select")));H(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()});H(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});H(this,"onOpenAutoFocus",e=>{e.preventDefault()});H(this,"onCloseAutoFocus",e=>{e.preventDefault()});M(this,et,I(()=>({open:this.root.opts.open.current})));M(this,tt,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,_t))},onpointermove:this.onpointermove,...this.attachment})));H(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 Ct(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Sn(()=>{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 kr.set(new Gt(e,Ce.get()))}get isPositioned(){return n(h(this,$e))}set isPositioned(e){O(h(this,$e),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,et))}set snippetProps(e){O(h(this,et),e)}get props(){return n(h(this,tt))}set props(e){O(h(this,tt),e)}};$e=new WeakMap,_t=new WeakMap,et=new WeakMap,tt=new WeakMap;let wt=Gt;var rt,nt,ot,st,it;const jt=class jt{constructor(e,t){H(this,"opts");H(this,"root");H(this,"attachment");M(this,rt,I(()=>this.root.includesItem(this.opts.value.current)));M(this,nt,I(()=>this.root.highlightedValue===this.opts.value.current));H(this,"prevHighlighted",new go(()=>this.isHighlighted));M(this,ot,G(!1));M(this,st,I(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));M(this,it,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,rt))}set isSelected(e){O(h(this,rt),e)}get isHighlighted(){return n(h(this,nt))}set isHighlighted(e){O(h(this,nt),e)}get mounted(){return n(h(this,ot))}set mounted(e){O(h(this,ot),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,st))}set snippetProps(e){O(h(this,st),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Pn){tn(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,it))}set props(e){O(h(this,it),e)}};rt=new WeakMap,nt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap;let Ht=jt;var at,lt;const Xt=class Xt{constructor(e,t){H(this,"opts");H(this,"root");M(this,at,G(null));H(this,"attachment");M(this,lt,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 Or.set(new Xt(e,Ce.get()))}get labelNode(){return n(h(this,at))}set labelNode(e){O(h(this,at),e,!0)}get props(){return n(h(this,lt))}set props(e){O(h(this,lt),e)}};at=new WeakMap,lt=new WeakMap;let ar=Xt;var dt;const Jt=class Jt{constructor(e,t){H(this,"opts");H(this,"group");H(this,"attachment");M(this,dt,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 Jt(e,Or.get())}get props(){return n(h(this,dt))}set props(e){O(h(this,dt),e)}};dt=new WeakMap;let lr=Jt;var ut,ct;const Qt=class Qt{constructor(e,t){H(this,"opts");H(this,"root");M(this,ut,I(()=>this.root.opts.name.current!==""));M(this,ct,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 Qt(e,Ce.get())}get shouldRender(){return n(h(this,ut))}set shouldRender(e){O(h(this,ut),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,ct))}set props(e){O(h(this,ct),e)}};ut=new WeakMap,ct=new WeakMap;let Lt=Qt;var ht,gt;const Zt=class Zt{constructor(e,t){H(this,"opts");H(this,"content");H(this,"root");H(this,"attachment");M(this,ht,G(0));M(this,gt,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 Zt(e,kr.get())}get prevScrollTop(){return n(h(this,ht))}set prevScrollTop(e){O(h(this,ht),e,!0)}get props(){return n(h(this,gt))}set props(e){O(h(this,gt),e)}};ht=new WeakMap,gt=new WeakMap;let Vt=Zt;function vt(a,e){if(new.target)return ee({component:vt,...a});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(v){t(v),u()},get autocomplete(){return r()},set autocomplete(v){r(v),u()},$set:te,$on:(v,i)=>re(e,v,i)},l=q(),c=K(l);{var x=v=>{Pr(v,_e(()=>o.props,{get autocomplete(){return r()},get value(){return t()},set value(i){t(i)}}))};$(c,v=>{o.shouldRender&&v(x)})}return P(a,l),oe(s)}function Ar(a,e){if(new.target)return ee({component:Ar,...a});ne(e,!0);let t=d(e,"id",7),r=d(e,"children",7),o=d(e,"virtualEl",7),s=d(e,"ref",7),l=d(e,"tooltip",7,!1);Zn.create({id:U(()=>t()),virtualEl:U(()=>o()),ref:s()},l());var c={get id(){return t()},set id(i){t(i),u()},get children(){return r()},set children(i){r(i),u()},get virtualEl(){return o()},set virtualEl(i){o(i),u()},get ref(){return s()},set ref(i){s(i),u()},get tooltip(){return l()},set tooltip(i=!1){l(i),u()},$set:te,$on:(i,f)=>re(e,i,f)},x=q(),v=K(x);return j(v,()=>r()??ae),P(a,x),oe(c)}var _o=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),dr=J("<div><div><!></div></div>");function Mr(a,e){const t=Oe();if(new.target)return ee({component:Mr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),l=d(e,"side",7,"bottom"),c=d(e,"onInteractOutside",7,X),x=d(e,"onEscapeKeydown",7,X),v=d(e,"children",7),i=d(e,"child",7),f=d(e,"preventScroll",7,!1),D=d(e,"style",7),E=ye(e,_o);const m=wt.create({id:U(()=>r()),ref:U(()=>o(),g=>o(g)),onInteractOutside:U(()=>c()),onEscapeKeydown:U(()=>x())}),_=I(()=>ue(E,m.props));var b={get id(){return r()},set id(g=ce(t)){r(g),u()},get ref(){return o()},set ref(g=null){o(g),u()},get forceMount(){return s()},set forceMount(g=!1){s(g),u()},get side(){return l()},set side(g="bottom"){l(g),u()},get onInteractOutside(){return c()},set onInteractOutside(g=X){c(g),u()},get onEscapeKeydown(){return x()},set onEscapeKeydown(g=X){x(g),u()},get children(){return v()},set children(g){v(g),u()},get child(){return i()},set child(g){i(g),u()},get preventScroll(){return f()},set preventScroll(g=!1){f(g),u()},get style(){return D()},set style(g){D(g),u()},$set:te,$on:(g,L)=>re(e,g,L)},k=q(),R=K(k);{var Y=g=>{xr(g,_e(()=>n(_),()=>m.popperProps,{get ref(){return m.opts.ref},get side(){return l()},get enabled(){return m.root.opts.open.current},get id(){return r()},get preventScroll(){return f()},forceMount:!0,get shouldRender(){return m.shouldRender},popper:(N,y)=>{let A=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const w=I(()=>ue(A(),{style:m.props.style},{style:D()}));var V=q(),W=K(V);{var F=S=>{var T=q(),z=K(T);{let se=I(()=>({props:n(w),wrapperProps:B(),...m.snippetProps}));j(z,i,()=>n(se))}P(S,T)},C=S=>{var T=dr();ie(T,()=>({...B()}));var z=Q(T);ie(z,()=>({...n(w)}));var se=Q(z);j(se,()=>v()??ae),Z(z),Z(T),P(S,T)};$(W,S=>{i()?S(F):S(C,-1)})}P(N,V)},$$slots:{popper:!0}}))},p=g=>{_r(g,_e(()=>n(_),()=>m.popperProps,{get ref(){return m.opts.ref},get side(){return l()},get open(){return m.root.opts.open.current},get id(){return r()},get preventScroll(){return f()},forceMount:!1,get shouldRender(){return m.shouldRender},popper:(N,y)=>{let A=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const w=I(()=>ue(A(),{style:m.props.style},{style:D()}));var V=q(),W=K(V);{var F=S=>{var T=q(),z=K(T);{let se=I(()=>({props:n(w),wrapperProps:B(),...m.snippetProps}));j(z,i,()=>n(se))}P(S,T)},C=S=>{var T=dr();ie(T,()=>({...B()}));var z=Q(T);ie(z,()=>({...n(w)}));var se=Q(z);j(se,()=>v()??ae),Z(z),Z(T),P(S,T)};$(W,S=>{i()?S(F):S(C,-1)})}P(N,V)},$$slots:{popper:!0}}))};$(R,g=>{s()?g(Y):s()||g(p,1)})}return P(a,k),oe(b)}var Io=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),ur=J("<div><!></div>");function Rr(a,e){const t=Oe();if(new.target)return ee({component:Rr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),l=d(e,"onInteractOutside",7,X),c=d(e,"onEscapeKeydown",7,X),x=d(e,"children",7),v=d(e,"child",7),i=d(e,"preventScroll",7,!1),f=d(e,"style",7),D=ye(e,Io);const E=wt.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),onInteractOutside:U(()=>l()),onEscapeKeydown:U(()=>c())}),m=I(()=>ue(D,E.props));var _={get id(){return r()},set id(p=ce(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 onInteractOutside(){return l()},set onInteractOutside(p=X){l(p),u()},get onEscapeKeydown(){return c()},set onEscapeKeydown(p=X){c(p),u()},get children(){return x()},set children(p){x(p),u()},get child(){return v()},set child(p){v(p),u()},get preventScroll(){return i()},set preventScroll(p=!1){i(p),u()},get style(){return f()},set style(p){f(p),u()},$set:te,$on:(p,g)=>re(e,p,g)},b=q(),k=K(b);{var R=p=>{xr(p,_e(()=>n(m),()=>E.popperProps,{get ref(){return E.opts.ref},isStatic:!0,get enabled(){return E.root.opts.open.current},get id(){return r()},get preventScroll(){return i()},forceMount:!0,get shouldRender(){return E.shouldRender},popper:(L,N)=>{let y=()=>(N?.()).props;const A=I(()=>ue(y(),{style:E.props.style},{style:f()}));var B=q(),w=K(B);{var V=F=>{var C=q(),S=K(C);{let T=I(()=>({props:n(A),...E.snippetProps}));j(S,v,()=>n(T))}P(F,C)},W=F=>{var C=ur();ie(C,()=>({...n(A)}));var S=Q(C);j(S,()=>x()??ae),Z(C),P(F,C)};$(w,F=>{v()?F(V):F(W,-1)})}P(L,B)},$$slots:{popper:!0}}))},Y=p=>{_r(p,_e(()=>n(m),()=>E.popperProps,{get ref(){return E.opts.ref},isStatic:!0,get open(){return E.root.opts.open.current},get id(){return r()},get preventScroll(){return i()},forceMount:!1,get shouldRender(){return E.shouldRender},popper:(L,N)=>{let y=()=>(N?.()).props;const A=I(()=>ue(y(),{style:E.props.style},{style:f()}));var B=q(),w=K(B);{var V=F=>{var C=q(),S=K(C);{let T=I(()=>({props:n(A),...E.snippetProps}));j(S,v,()=>n(T))}P(F,C)},W=F=>{var C=ur();ie(C,()=>({...n(A)}));var S=Q(C);j(S,()=>x()??ae),Z(C),P(F,C)};$(w,F=>{v()?F(V):F(W,-1)})}P(L,B)},$$slots:{popper:!0}}))};$(k,p=>{s()?p(R):s()||p(Y,1)})}return P(a,b),oe(_)}function Hr(a,e){if(new.target)return ee({component:Hr,...a});ne(e,!0);let t=d(e,"mounted",15,!1),r=d(e,"onMountedChange",7,X);$n(()=>(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,l)=>re(e,s,l)};return oe(o)}var Co=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),No=J("<div><!></div>"),Po=J("<!> <!>",1);function Lr(a,e){const t=Oe();if(new.target)return ee({component:Lr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"value",7),l=d(e,"label",23,s),c=d(e,"disabled",7,!1),x=d(e,"children",7),v=d(e,"child",7),i=d(e,"onHighlight",7,X),f=d(e,"onUnhighlight",7,X),D=ye(e,Co);const E=Ht.create({id:U(()=>r()),ref:U(()=>o(),g=>o(g)),value:U(()=>s()),disabled:U(()=>c()),label:U(()=>l()),onHighlight:U(()=>i()),onUnhighlight:U(()=>f())}),m=I(()=>ue(D,E.props));var _={get id(){return r()},set id(g=ce(t)){r(g),u()},get ref(){return o()},set ref(g=null){o(g),u()},get value(){return s()},set value(g){s(g),u()},get label(){return l()},set label(g=s){l(g),u()},get disabled(){return c()},set disabled(g=!1){c(g),u()},get children(){return x()},set children(g){x(g),u()},get child(){return v()},set child(g){v(g),u()},get onHighlight(){return i()},set onHighlight(g=X){i(g),u()},get onUnhighlight(){return f()},set onUnhighlight(g=X){f(g),u()},$set:te,$on:(g,L)=>re(e,g,L)},b=Po(),k=K(b);{var R=g=>{var L=q(),N=K(L);{let y=I(()=>({props:n(m),...E.snippetProps}));j(N,v,()=>n(y))}P(g,L)},Y=g=>{var L=No();ie(L,()=>({...n(m)}));var N=Q(L);j(N,()=>x()??ae,()=>E.snippetProps),Z(L),P(g,L)};$(k,g=>{v()?g(R):g(Y,-1)})}var p=ke(k,2);return Hr(p,{get mounted(){return E.mounted},set mounted(g){E.mounted=g}}),P(a,b),oe(_)}var So=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),Oo=J("<div><!></div>");function Vr(a,e){const t=Oe();if(new.target)return ee({component:Vr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"children",7),l=d(e,"child",7),c=ye(e,So);const x=Vt.create({id:U(()=>r()),ref:U(()=>o(),_=>o(_))}),v=I(()=>ue(c,x.props));var i={get id(){return r()},set id(_=ce(t)){r(_),u()},get ref(){return o()},set ref(_=null){o(_),u()},get children(){return s()},set children(_){s(_),u()},get child(){return l()},set child(_){l(_),u()},$set:te,$on:(_,b)=>re(e,_,b)},f=q(),D=K(f);{var E=_=>{var b=q(),k=K(b);j(k,l,()=>({props:n(v)})),P(_,b)},m=_=>{var b=Oo();ie(b,()=>({...n(v)}));var k=Q(b);j(k,()=>s()??ae),Z(b),P(_,b)};$(D,_=>{l()?_(E):_(m,-1)})}return P(a,f),oe(i)}var ko=J("<!> <!>",1);function Dr(a,e){if(new.target)return ee({component:Dr,...a});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),l=d(e,"type",7),c=d(e,"open",15,!1),x=d(e,"onOpenChange",7,X),v=d(e,"onOpenChangeComplete",7,X),i=d(e,"loop",7,!1),f=d(e,"scrollAlignment",7,"nearest"),D=d(e,"required",7,!1),E=d(e,"items",23,()=>[]),m=d(e,"allowDeselect",7,!1),_=d(e,"autocomplete",7),b=d(e,"children",7);function k(){t()===void 0&&t(l()==="single"?"":[])}k(),be.pre(()=>t(),()=>{k()});let R=G("");const Y=xo.create({type:l(),value:U(()=>t(),w=>{t(w),r()(w)}),disabled:U(()=>s()),required:U(()=>D()),open:U(()=>c(),w=>{c(w),x()(w)}),loop:U(()=>i()),scrollAlignment:U(()=>f()),name:U(()=>o()),isCombobox:!1,items:U(()=>E()),allowDeselect:U(()=>m()),inputValue:U(()=>n(R),w=>O(R,w,!0)),onOpenChangeComplete:U(()=>v())});var p={get value(){return t()},set value(w){t(w),u()},get onValueChange(){return r()},set onValueChange(w=X){r(w),u()},get name(){return o()},set name(w=""){o(w),u()},get disabled(){return s()},set disabled(w=!1){s(w),u()},get type(){return l()},set type(w){l(w),u()},get open(){return c()},set open(w=!1){c(w),u()},get onOpenChange(){return x()},set onOpenChange(w=X){x(w),u()},get onOpenChangeComplete(){return v()},set onOpenChangeComplete(w=X){v(w),u()},get loop(){return i()},set loop(w=!1){i(w),u()},get scrollAlignment(){return f()},set scrollAlignment(w="nearest"){f(w),u()},get required(){return D()},set required(w=!1){D(w),u()},get items(){return E()},set items(w=[]){E(w),u()},get allowDeselect(){return m()},set allowDeselect(w=!1){m(w),u()},get autocomplete(){return _()},set autocomplete(w){_(w),u()},get children(){return b()},set children(w){b(w),u()},$set:te,$on:(w,V)=>re(e,w,V)},g=ko(),L=K(g);eo(L,{children:(w,V)=>{var W=q(),F=K(W);j(F,()=>b()??ae),P(w,W)},$$slots:{default:!0}});var N=ke(L,2);{var y=w=>{var V=q(),W=K(V);{var F=S=>{vt(S,{get autocomplete(){return _()}})},C=S=>{var T=q(),z=K(T);Tt(z,16,()=>Y.opts.value.current,se=>se,(se,Ee)=>{vt(se,{get value(){return Ee},get autocomplete(){return _()}})}),P(S,T)};$(W,S=>{Y.opts.value.current.length===0?S(F):S(C,-1)})}P(w,V)},A=I(()=>Array.isArray(Y.opts.value.current)),B=w=>{vt(w,{get autocomplete(){return _()},get value(){return Y.opts.value.current},set value(V){Y.opts.value.current=V}})};$(N,w=>{n(A)?w(y):w(B,-1)})}return P(a,g),oe(p)}var Eo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),To=J("<button><!></button>");function Fr(a,e){const t=Oe();if(new.target)return ee({component:Fr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"child",7),l=d(e,"children",7),c=d(e,"type",7,"button"),x=ye(e,Eo);const v=At.create({id:U(()=>r()),ref:U(()=>o(),m=>o(m))}),i=I(()=>ue(x,v.props,{type:c()}));var f={get id(){return r()},set id(m=ce(t)){r(m),u()},get ref(){return o()},set ref(m=null){o(m),u()},get child(){return s()},set child(m){s(m),u()},get children(){return l()},set children(m){l(m),u()},get type(){return c()},set type(m="button"){c(m),u()},$set:te,$on:(m,_)=>re(e,m,_)},D=q(),E=K(D);return fe(E,()=>Ar,(m,_)=>{_(m,{get id(){return r()},get ref(){return v.opts.ref},children:(b,k)=>{var R=q(),Y=K(R);{var p=L=>{var N=q(),y=K(N);j(y,s,()=>({props:n(i)})),P(L,N)},g=L=>{var N=To();ie(N,()=>({...n(i)}));var y=Q(N);j(y,()=>l()??ae),Z(N),P(L,N)};$(Y,L=>{s()?L(p):L(g,-1)})}P(b,R)},$$slots:{default:!0}})}),P(a,D),oe(f)}var Ao=J('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Kr(a,e){const t=Oe();if(new.target)return ee({component:Kr,...a});ne(e,!0);const r=`${t}-trigger`;let o=G(r),s=d(e,"value",15,""),l=d(e,"open",15,!1),c=d(e,"items",23,()=>[]),x=d(e,"disabled",7,!1),v=d(e,"invalid",7,!1),i=d(e,"required",7,!1),f=d(e,"name",7),D=d(e,"loop",7,!0),E=d(e,"onchange",7),m=d(e,"onopenchange",7),_=d(e,"children",7),b=d(e,"staticPosition",7,!1);un(()=>{l(!1),m()?.(!1)}),hr("canonical-select",{get triggerId(){return n(o)},registerTriggerId(p){O(o,p??r,!0)},listboxId:`${t}-listbox`,get value(){return s()},get displayValue(){return c().find(p=>p.value===s())?.label??s()},get invalid(){return v()},get open(){return l()},get staticPosition(){return b()},set open(p){l(p)}});var k={get value(){return s()},set value(p=""){s(p),u()},get open(){return l()},set open(p=!1){l(p),u()},get items(){return c()},set items(p=[]){c(p),u()},get disabled(){return x()},set disabled(p=!1){x(p),u()},get invalid(){return v()},set invalid(p=!1){v(p),u()},get required(){return i()},set required(p=!1){i(p),u()},get name(){return f()},set name(p){f(p),u()},get loop(){return D()},set loop(p=!0){D(p),u()},get onchange(){return E()},set onchange(p){E(p),u()},get onopenchange(){return m()},set onopenchange(p){m(p),u()},get children(){return _()},set children(p){_(p),u()},get staticPosition(){return b()},set staticPosition(p=!1){b(p),u()},$set:te,$on:(p,g)=>re(e,p,g)},R=Ao(),Y=Q(R);return fe(Y,()=>Dr,(p,g)=>{g(p,{type:"single",get items(){return c()},get disabled(){return x()},get required(){return i()},get name(){return f()},get loop(){return D()},get onValueChange(){return E()},get onOpenChange(){return m()},get value(){return s()},set value(L){s(L)},get open(){return l()},set open(L){l(L)},children:(L,N)=>{var y=q(),A=K(y);j(A,()=>_()??ae),P(L,y)},$$slots:{default:!0}})}),Z(R),P(a,R),oe(k)}var Mo=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),Ro=J("<!> <!>",1);function Br(a,e){if(new.target)return ee({component:Br,...a});ne(e,!0);const t=(N,y)=>{let A=()=>(y?.()).props;const B=I(()=>Y(A()));var w=q(),V=K(w);{var W=C=>{var S=q(),T=K(S);j(T,l,()=>({props:n(B)})),P(C,S)},F=C=>{to(C,_e(()=>n(B),{get variant(){return n(b)},get active(){return f.open},get class(){return n(k)},children:(S,T)=>{var z=Ro(),se=K(z);j(se,()=>s()??ae);var Ee=ke(se,2);{var Nt=Te=>{Cr(Te,{get icon(){return no},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};$(Ee,Te=>{r()==="default"&&Te(Nt)})}P(S,z)},$$slots:{default:!0}}))};$(V,C=>{l()?C(W):C(F,-1)})}P(N,w)};let r=d(e,"variant",7,"default"),o=d(e,"class",7,""),s=d(e,"children",7),l=d(e,"child",7),c=d(e,"onclick",7),x=d(e,"id",7),v=d(e,"ref",15,null),i=ye(e,Mo);const f=It("canonical-select");nn(()=>f.registerTriggerId(x())),de(()=>f.registerTriggerId(x()));let D=G(!1);de(()=>{const N=f.triggerId;O(D,Array.from(document.querySelectorAll("label[for]")).some(y=>y.htmlFor===N),!0)});const E=I(()=>!i["aria-label"]&&!i["aria-labelledby"]&&!n(D));let m=G(void 0);de(()=>{const N=v();if(!n(E)||!N){O(m,void 0);return}const y=()=>{O(m,N.textContent?.trim()||void 0,!0)};y();const A=new MutationObserver(y);return A.observe(N,{childList:!0,characterData:!0,subtree:!0}),()=>A.disconnect()});const _={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"),k=I(()=>me("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",_[r()],o()));function R(N){N.detail===0&&!f.open&&(f.open=!0),c()?.(N)}function Y(N){const{"aria-activedescendant":y,"aria-label":A,...B}=N;return{...B,role:"combobox","aria-label":typeof A=="string"?A:n(m),"aria-activedescendant":f.open&&typeof y=="string"?y:void 0}}var p={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 l()},set child(N){l(N),u()},get onclick(){return c()},set onclick(N){c(N),u()},get id(){return x()},set id(N){x(N),u()},get ref(){return v()},set ref(N=null){v(N),u()},$set:te,$on:(N,y)=>re(e,N,y)},g=q(),L=K(g);{let N=I(()=>f.open?f.listboxId:void 0),y=I(()=>f.invalid||void 0);fe(L,()=>Fr,(A,B)=>{B(A,_e(()=>i,{get id(){return f.triggerId},get"aria-controls"(){return n(N)},get class(){return n(k)},get"aria-invalid"(){return n(y)},onclick:R,get child(){return t},get ref(){return v()},set ref(w){v(w)}}))})}return P(a,g),oe(p)}var Ho=J("<span> </span>");function Wr(a,e){if(new.target)return ee({component:Wr,...a});ne(e,!0);let t=d(e,"placeholder",23,()=>er.ui_select_value_placeholder());const r=It("canonical-select");var o={get placeholder(){return t()},set placeholder(c=er.ui_select_value_placeholder()){t(c),u()},$set:te,$on:(c,x)=>re(e,c,x)},s=Ho(),l=on(s,!0);return Ae(()=>{ft(s,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),sn(l,r.displayValue||t())}),P(a,s),oe(o)}function Lo(a,e){const t=[...e].filter(o=>Number.isInteger(o)&&o>=0&&a[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 l=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,v=Number.NEGATIVE_INFINITY;for(let i=o;i<=s;i+=1){const f=a[i];f&&(l=Math.min(l,f.top),c=Math.min(c,f.left),x=Math.max(x,f.left+f.width),v=Math.max(v,f.top+f.height))}return{startIndex:o,endIndex:s,rect:{top:l,left:c,width:x-c,height:v-l}}})}function kt(a,e){return Math.max(0,Math.min(a.endIndex,e.endIndex)-Math.max(a.startIndex,e.startIndex)+1)}function Vo(){let a=G(gr([])),e=[],t=1;return{get groups(){return n(a)},update(r,o){const s=new Set,l=Lo(r,o).map(c=>{const v=e.filter(i=>!s.has(i.id)&&kt(i,c)>0).sort((i,f)=>kt(f,c)-kt(i,c)||i.id-f.id)[0]?.id??t++;return s.add(v),{id:v,...c}});e=l,O(a,l,!0)},reset(){e=[],O(a,[],!0),t=1}}}var Do=J('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),Fo=J('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),Ko=J('<div aria-hidden="true"><!> <!></div>');function Ur(a,e){if(new.target)return ee({component:Ur,...a});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"),l=d(e,"class",7);const c=Vo(),x=I(()=>t().activeIndex===null?void 0:t().itemRects[t().activeIndex]);de(()=>{c.update(t().itemRects,r())});const v=(m,_)=>{const b=new pt(_.rect.top,_.tier),k=new pt(_.rect.left,_.tier),R=new pt(_.rect.width,_.tier),Y=new pt(_.rect.height,_.tier),p=an(()=>{de(()=>{m.style.transform=`translate3d(${k.current}px, ${b.current}px, 0)`,m.style.width=`${R.current}px`,m.style.height=`${Y.current}px`})}),g=y=>{b.set(y.rect.top),k.set(y.rect.left),R.set(y.rect.width),Y.set(y.rect.height)},N=yn(()=>wn()&&g(_));return{update(y){_=y,g(y)},destroy(){N(),p()}}};var i={get store(){return t()},set store(m){t(m),u()},get selectedIndexes(){return r()},set selectedIndexes(m=[]){r(m),u()},get selectedClass(){return o()},set selectedClass(m="bg-selected"){o(m),u()},get hoverClass(){return s()},set hoverClass(m="bg-hover"){s(m),u()},get class(){return l()},set class(m){l(m),u()},$set:te,$on:(m,_)=>re(e,m,_)},f=Ko(),D=Q(f);Tt(D,17,()=>c.groups,m=>m.id,(m,_)=>{var b=Do();mt(b,(k,R)=>v?.(k,R),()=>({rect:n(_).rect,tier:"moderate"})),Ae(k=>ft(b,1,k),[()=>St(me("absolute",o()))]),rr(2,b,()=>nr,()=>({tier:"moderate"})),P(m,b)});var E=ke(D,2);return lo(E,()=>t().sessionId,m=>{var _=q(),b=K(_);Tt(b,17,()=>n(x)?[n(x)]:[],k=>0,(k,R)=>{var Y=Fo();mt(Y,(p,g)=>v?.(p,g),()=>({rect:n(R),tier:"moderate"})),Ae(p=>ft(Y,1,p),[()=>St(me("absolute",s()))]),rr(2,Y,()=>nr,()=>({tier:"fast"})),P(k,Y)}),P(m,_)}),Z(f),Ae(m=>ft(f,1,m),[()=>St(me("pointer-events-none absolute inset-0",l()))]),P(a,f),oe(i)}var Bo=J('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function qr(a,e){if(new.target)return ee({component:qr,...a});ne(e,!0);let t=d(e,"activeIndex",7),r=d(e,"onactiveindexchange",7),o=G(null),s=G(null),l=G(gr([])),c=G(null),x=G(!1),v=G(!1),i;const f='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';de(()=>{n(s)&&t()===void 0&&n(x)&&n(s).activeIndex!==n(c)&&n(s).setActiveIndex(n(c))}),de(()=>{!n(s)||t()===void 0||n(s).pointerPosition||n(s).setActiveIndex(t())}),de(()=>{if(!n(s)?.pointerPosition){i=void 0;return}n(s).activeIndex!==i&&(i=n(s).activeIndex,r()?.(n(s).activeIndex))}),ln(()=>{const b=n(o)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const k=cn(b);O(s,k);let R=[];const Y=C=>C instanceof Element&&(C.matches(f)||C.querySelector(f)),p=C=>C.hasAttribute("data-disabled")||C.getAttribute("aria-disabled")==="true",g=C=>C.hasAttribute("data-selected")||C.getAttribute("data-state")==="checked"||C.getAttribute("aria-selected")==="true"||C.getAttribute("aria-checked")==="true",L=()=>{const C=Array.from(b.querySelectorAll(f)).filter(T=>T.closest("[data-list-overlay]")===b&&!p(T));C.length!==R.length||C.some((T,z)=>T!==R[z])?(R.forEach((T,z)=>k.registerItem(z,null)),R=C,R.forEach((T,z)=>k.registerItem(z,T))):k.measure();const S=R.flatMap((T,z)=>g(T)?[z]:[]);if((S.length!==n(l).length||S.some((T,z)=>T!==n(l)[z]))&&O(l,S,!0),t()===void 0){const T=R.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);T>=0&&k.setActiveIndex(T)}},N=new MutationObserver(C=>{C.some(S=>S.type==="attributes"||[...S.addedNodes,...S.removedNodes].some(Y))&&L()});N.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled"]});const y=()=>{const C=R.indexOf(document.activeElement);O(c,C>=0?C:null,!0)},A=()=>{O(v,!1),O(x,!0),y(),Et().then(()=>{n(x)&&y()})},B=()=>{O(x,!1)},w=()=>{O(v,!1),O(x,!0),y()},V=C=>{const S=C.target instanceof Element?C.target.closest(f):null,T=R.indexOf(S);C.button!==0||T<0||(O(x,!1),O(v,!0),k.setActiveIndex(T))},W=()=>{O(v,!1)},F=C=>{const S=R.indexOf(C.target);O(c,S>=0?S:null,!0),S>=0&&k.setActiveIndex(S)};return b.addEventListener("keydown",A,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",w),b.addEventListener("pointerdown",V),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",F),Et().then(L),()=>{N.disconnect(),b.removeEventListener("keydown",A,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",w),b.removeEventListener("pointerdown",V),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",F),k.destroy(),O(s,null),delete b.dataset.listOverlay}});var D={get activeIndex(){return t()},set activeIndex(b){t(b),u()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),u()},$set:te,$on:(b,k)=>re(e,b,k)},E=Bo(),m=Q(E);{var _=b=>{{let k=I(()=>n(v)?n(l).includes(n(s).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");Ur(b,{get store(){return n(s)},get selectedIndexes(){return n(l)},get hoverClass(){return n(k)}})}};$(m,b=>{n(s)&&b(_)})}return Z(E),ao(E,b=>O(o,b),()=>n(o)),Ae(()=>xn(E,"data-active-index",n(s)?.activeIndex??void 0)),P(a,E),oe(D)}const Wo=Ir({base:`${hn} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2 border-none bg-transparent 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=Ir({base:"menu-overlay type-body relative isolate z-(--layer-popover) overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-(--elevation-overlay) 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=-5,gs={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},zr=8;function ps(a,e,t=24){if(!a)return!0;const r=a.getBoundingClientRect(),o=e+t+zr;return r.left>=o||a.ownerDocument.documentElement.clientWidth-r.right>=o}const Yr=Symbol("dialog-portal-target");function fs(a){hr(Yr,a)}function Uo(){const a=It(Yr);return()=>a?.()??void 0}const qo=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function vs(a,e){return a?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:e.target instanceof Element&&e.target.closest(qo)!==null}var zo=J("<div><!> <!></div>"),Yo=J("<div><!></div>"),Go=J("<div><div><!></div></div>");function Gr(a,e){if(new.target)return ee({component:Gr,...a});ne(e,!0);const t=y=>{var A=q(),B=K(A);{const w=(V,W)=>{let F=()=>(W?.()).props;var C=zo();ie(C,()=>({...F(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var S=Q(C);qr(S,{});var T=ke(S,2);j(T,()=>D()??ae),Z(C),P(V,C)};fe(B,()=>Vr,(V,W)=>{W(V,{get class(){return`${fn} relative min-h-0 flex-1 overflow-y-auto ${v()??""}`},child:w,$$slots:{child:!0}})})}P(y,A)},r=(y,A)=>{let B=()=>(A?.()).props;const w=I(()=>R(B()));var V=Yo();ie(V,()=>({...n(w),...c()?{id:c()}:{}}));var W=Q(V);t(W),Z(V),mt(V,F=>l?.(F)),P(y,V)},o=(y,A)=>{let B=()=>(A?.()).props,w=()=>(A?.()).wrapperProps;const V=I(()=>R(B()));var W=Go();ie(W,()=>({...w(),...c()?{id:c()}:{}}));var F=Q(W);ie(F,()=>({...n(V)}));var C=Q(F);t(C),Z(F),mt(F,S=>l?.(S)),Z(W),P(y,W)},s=gn(),l=pn();let c=d(e,"wrapperId",7),x=d(e,"class",7,""),v=d(e,"wrapperClass",7,""),i=d(e,"dropUp",7,!1),f=d(e,"portal",7),D=d(e,"children",7);const E=I(()=>i()||f()===!0),m=Uo(),_=uo(co()+2);ho(_);const b=It("canonical-select");async function k(){const y=document.getElementById(b.triggerId);await Et(),!b.open&&y?.isConnected&&y.focus({preventScroll:!0})}function R(y){const{role:A,tabindex:B,...w}=y;return w}var Y={get wrapperId(){return c()},set wrapperId(y){c(y),u()},get class(){return x()},set class(y=""){x(y),u()},get wrapperClass(){return v()},set wrapperClass(y=""){v(y),u()},get dropUp(){return i()},set dropUp(y=!1){i(y),u()},get portal(){return f()},set portal(y){f(y),u()},get children(){return D()},set children(y){D(y),u()},$set:te,$on:(y,A)=>re(e,y,A)},p=q(),g=K(p);{var L=y=>{var A=q(),B=K(A);{let w=I(()=>me(cr(),"w-full max-h-60 rounded-(--radius-medium)",x()));fe(B,()=>Rr,(V,W)=>{W(V,{preventScroll:!1,onEscapeKeydown:k,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return _},get class(){return n(w)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}P(y,A)},N=y=>{const A=I(()=>f()===void 0&&!i()?m():void 0);var B=q(),w=K(B);{let V=I(()=>!n(E)&&!n(A)),W=I(()=>n(A)??s?.target());fe(w,()=>ro,(F,C)=>{C(F,{get disabled(){return n(V)},get to(){return n(W)},children:(S,T)=>{var z=q(),se=K(z);{let Ee=I(()=>n(A)?"absolute":"fixed"),Nt=I(()=>n(A)!==void 0),Te=I(()=>i()?"top":"bottom"),Jr=I(()=>me(cr(),"w-(--bits-select-anchor-width) max-h-60 rounded-(--radius-medium)",x()));fe(se,()=>Mr,(Qr,Zr)=>{Zr(Qr,{get strategy(){return n(Ee)},get hideWhenDetached(){return n(Nt)},onEscapeKeydown:k,"data-slot":"select-content",get"data-surface-level"(){return _},get side(){return n(Te)},sideOffset:4,get collisionPadding(){return zr},get class(){return n(Jr)},style:"max-width: calc(100vw - var(--space-4));",get child(){return o}})})}P(S,z)},$$slots:{default:!0}})})}P(y,B)};$(g,y=>{b.staticPosition?y(L):y(N,-1)})}return P(a,p),oe(Y)}var jo=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),Xo=J("<span><!></span>");function jr(a,e){if(new.target)return ee({component:jr,...a});ne(e,!0);let t=d(e,"state",7),r=d(e,"class",7),o=d(e,"data-slot",7),s=ye(e,jo);var l={get state(){return t()},set state(i){t(i),u()},get class(){return r()},set class(i){r(i),u()},get"data-slot"(){return o()},set"data-slot"(i){o(i),u()},$set:te,$on:(i,f)=>re(e,i,f)},c=Xo();ie(c,i=>({...s,"data-slot":o()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:i,"aria-hidden":"true"}),[()=>me(vn,t()!=="submenu"&&"text-primary-ink",r())]);var x=Q(c);{var v=i=>{{let f=I(()=>t()==="mixed"?oo:t()==="submenu"?so:io),D=I(()=>t()==="submenu"?"size-(--menu-icon-size) rtl:rotate-180":"size-(--menu-icon-size)");Cr(i,{get icon(){return n(f)},size:"var(--menu-icon-size)",get class(){return n(D)}})}};$(x,i=>{t()!=="empty"&&i(v)})}return Z(c),P(a,c),oe(l)}var Jo=J('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Xr(a,e){if(new.target)return ee({component:Xr,...a});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),l=d(e,"class",7,"");var c={get value(){return t()},set value(i){t(i),u()},get label(){return r()},set label(i){r(i),u()},get disabled(){return o()},set disabled(i=!1){o(i),u()},get children(){return s()},set children(i){s(i),u()},get class(){return l()},set class(i=""){l(i),u()},$set:te,$on:(i,f)=>re(e,i,f)},x=q(),v=K(x);{const i=(m,_)=>{let b=()=>(_?.()).selected;var k=Jo(),R=K(k),Y=Q(R);j(Y,()=>s()??ae),Z(R);var p=ke(R,2);{let g=I(()=>b()?"checked":"empty");jr(p,{get state(){return n(g)},"data-slot":"select-item-check"})}P(m,k)};let f=I(()=>r()??t()),D=I(()=>o()||void 0),E=I(()=>me(Wo(),l()));fe(v,()=>Lr,(m,_)=>{_(m,{get value(){return t()},get label(){return n(f)},get disabled(){return o()},get"aria-disabled"(){return n(D)},"data-menu-item":!0,get class(){return n(E)},children:i,$$slots:{default:!0}})})}return P(a,x),oe(c)}const ms={Root:Kr,Trigger:Br,Value:Wr,Content:Gr,Item:Xr},Qo=(a,e)=>{let t,r;const o=()=>{t||(t=mn(()=>{t=void 0;const c=a.checkVisibility?.()??!0,x=c?a.clientWidth:0,v=c?a.clientHeight:0,i=x>0&&v>0&&(a.scrollWidth>x||a.scrollHeight>v);r?.(),r=bn(()=>{r=void 0,e(i)})}))},s=typeof ResizeObserver>"u"?void 0:new ResizeObserver(o),l=new MutationObserver(o);return s?.observe(a),l.observe(a,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",o),o(),{update(c){e=c,o()},destroy(){t?.(),r?.(),s?.disconnect(),l.disconnect(),document.fonts?.removeEventListener("loadingdone",o)}}},bs=(a,e)=>{let t=e;const r=s=>{t&&(s||t.trim()!==a.textContent?.trim())?a.title=t:a.removeAttribute("title")},o=Qo(a,r);return{update(s){t=s,o?.update?.(r)},destroy(){o?.destroy?.(),a.removeAttribute("title")}}};export{Ar as F,Pr as H,jr as M,zr as O,Ur as P,ms as S,qr as a,lr as b,ar as c,ir as d,xo as e,Mr as f,Rr as g,vt as h,Lr as i,Vr as j,ps as k,vs as l,Wo as m,cr as n,gs as o,hs as p,Qo as q,fs as r,bs as t,Uo as u};
1
+ var $r=Object.defineProperty;var $t=a=>{throw TypeError(a)};var en=(a,e,t)=>e in a?$r(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var H=(a,e,t)=>en(a,typeof e!="symbol"?e+"":e,t),Pt=(a,e,t)=>e.has(a)||$t("Cannot "+t);var h=(a,e,t)=>(Pt(a,e,"read from private field"),t?t.call(a):e.get(a)),M=(a,e,t)=>e.has(a)?$t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),Ne=(a,e,t,r)=>(Pt(a,e,"write to private field"),r?r.call(a,t):e.set(a,t),t),Pe=(a,e,t)=>(Pt(a,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"./CgPr4hs2.js";import{c9 as I,aD as n,bs as ne,a7 as q,ay as K,W as P,bn as oe,aA as u,aB as J,bH as O,bV as G,bi as tn,ca as de,cb as rn,bf as ae,bo as Oe,a5 as Q,bA as Z,bS as ke,bI as hr,aG as It,c5 as nn,bl as on,b_ as Ae,bO as sn,br as gr,at as an,bk as ln,c0 as Et}from"./B8o4lNgr.js";import{s as j}from"./D3ROSEe0.js";import{c as fe}from"./Co_Aa6ij.js";import{e as dn,k as un,g as cn,c as hn,i as gn,f as pn,O as fn,b as vn,s as mn,j as bn}from"./BmUlDo2H.js";import{c as ie,h as Tt,f as me,k as ft,a as mt,d as St,o as yn,j as wn,s as xn}from"./CsstSIr0.js";import{bH as _n,bm as ue,aI as In,b3 as Cn,h as Dt,av as Ie,D as Ct,i as Nn,d as le,a as ve,l as bt,ad as Ot,ak as yt,a2 as Ft,K as Kt,a1 as Bt,E as Wt,bn as pr,bA as fr,aY as vr,aB as mr,aE as Ut,b0 as qt,aF as br,bL as be,bh as Pn,bt as Sn,b2 as On,b1 as kn,aH as tr,au as yr,a6 as En,aJ as U,aR as Tn,m as wr,b as An,c as Mn,a8 as Rn,C as Hn,g as Ln,A as Vn,M as Dn,F as Fn,r as Kn,s as Bn,t as Wn,u as Un,v as qn,w as zn,x as Yn,y as Gn,o as jn,p as Xn,q as Jn,B as Qn,z as Zn,aS as ce,bo as X,a4 as xr,a3 as _r,bv as $n,H as eo,f as to,bI as Ir,a5 as ro}from"./Ps9iRbKd.js";import{F as Cr,at as no,bS as oo,av as so,ar as io}from"./B7NNbItI.js";import{b as ao}from"./D2g8BuR1.js";import{D as lo}from"./P80hEEPK.js";import{H as rr,g as nr,S as pt}from"./CFHzcj7N.js";import{c as uo,u as co,s as ho}from"./D2AmAQEr.js";import"./Bn3UQ-Cp.js";const Nr={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%)"};_n(Nr);var Me,xt;class go{constructor(e,t){M(this,Me,()=>{});M(this,xt,I(()=>h(this,Me).call(this)));let r;t!==void 0&&(r=t),Ne(this,Me,()=>{try{return r}finally{r=e()}})}get current(){return n(h(this,xt))}}Me=new WeakMap,xt=new WeakMap;var po=new Set(["$$slots","$$events","$$legacy","value"]),or=J("<input/>");function Pr(a,e){if(new.target)return ee({component:Pr,...a});ne(e,!0);let t=d(e,"value",15),r=ye(e,po);const o=I(()=>ue(r,{"aria-hidden":"true",tabindex:-1,style:{...Nr,position:"absolute",top:"0",left:"0"}}));var s={get value(){return t()},set value(i){t(i),u()},$set:te,$on:(i,f)=>re(e,i,f)},l=q(),c=K(l);{var x=i=>{var f=or();ie(f,()=>({...n(o),value:t()}),void 0,void 0,void 0,void 0,!0),P(i,f)},v=i=>{var f=or();ie(f,()=>({...n(o)}),void 0,void 0,void 0,void 0,!0),dn(f,t),P(i,f)};$(c,i=>{n(o).type==="checkbox"?i(x):i(v,-1)})}return P(a,l),oe(s)}var ge,we,pe;class fo{constructor(e){M(this,ge);M(this,we,I(()=>h(this,ge).candidateValues()));M(this,pe);Ne(this,ge,e),Ne(this,pe,In("",{afterMs:1e3,getWindow:h(this,ge).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!h(this,ge).enabled()||!n(h(this,we)).length)return;h(this,pe).current=h(this,pe).current+e;const t=h(this,ge).getCurrentItem(),r=n(h(this,we)).find(c=>c===t)??"",o=n(h(this,we)).map(c=>c??""),s=Cn(o,h(this,pe).current,r),l=n(h(this,we)).find(c=>c===s);return l&&h(this,ge).onMatch(l),l}resetTypeahead(){h(this,pe).current=""}}ge=new WeakMap,we=new WeakMap,pe=new WeakMap;const sr=[An,wr,Mn,Rn,Hn,Ln,Vn,Dn,bt,Fn,Kn,Bn,Wn,Un,qn,zn,Yn,Gn,jn,Xn,Jn],vo=[ve,Ft,Kt],mo=[le,Bt,Wt],Sr=[...vo,...mo],bo=Tn({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"),Or=new Dt("Select.Group | Combobox.Group"),kr=new Dt("Select.Content | Combobox.Content");var Re,He,Le,Ve,De,Fe,Ke,Be,We,Ue,qe,ze;class Er{constructor(e){H(this,"opts");M(this,Re,G(!1));M(this,He,G(null));M(this,Le,G(null));H(this,"contentPresence");M(this,Ve,G(null));M(this,De,G(null));M(this,Fe,G(null));M(this,Ke,G(""));M(this,Be,G(null));M(this,We,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));M(this,Ue,I(()=>{if(this.highlightedNode)return this.highlightedNode.id}));M(this,qe,I(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));M(this,ze,G(!1));H(this,"isUsingKeyboard",!1);H(this,"isCombobox",!1);H(this,"domContext",new Ct(()=>null));H(this,"getBitsAttr",e=>bo.getAttr(e,this.isCombobox?"combobox":void 0));this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new En({ref:U(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),rn(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return n(h(this,Re))}set touchedInput(e){O(h(this,Re),e,!0)}get inputNode(){return n(h(this,He))}set inputNode(e){O(h(this,He),e,!0)}get contentNode(){return n(h(this,Le))}set contentNode(e){O(h(this,Le),e,!0)}get viewportNode(){return n(h(this,Ve))}set viewportNode(e){O(h(this,Ve),e,!0)}get triggerNode(){return n(h(this,De))}set triggerNode(e){O(h(this,De),e,!0)}get valueNode(){return n(h(this,Fe))}set valueNode(e){O(h(this,Fe),e,!0)}get valueId(){return n(h(this,Ke))}set valueId(e){O(h(this,Ke),e,!0)}get highlightedNode(){return n(h(this,Be))}set highlightedNode(e){O(h(this,Be),e,!0)}get highlightedValue(){return n(h(this,We))}set highlightedValue(e){O(h(this,We),e)}get highlightedId(){return n(h(this,Ue))}set highlightedId(e){O(h(this,Ue),e)}get highlightedLabel(){return n(h(this,qe))}set highlightedLabel(e){O(h(this,qe),e)}get contentIsPositioned(){return n(h(this,ze))}set contentIsPositioned(e){O(h(this,ze),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()}}Re=new WeakMap,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;var Ye,Ge,je,Xe;class yo extends Er{constructor(t){super(t);H(this,"opts");H(this,"isMulti",!1);M(this,Ye,I(()=>this.opts.value.current!==""));M(this,Ge,I(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":""));M(this,je,I(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]));M(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){O(h(this,Ye),t)}get currentLabel(){return n(h(this,Ge))}set currentLabel(t){O(h(this,Ge),t)}get candidateLabels(){return n(h(this,je))}set candidateLabels(t){O(h(this,je),t)}get dataTypeaheadEnabled(){return n(h(this,Xe))}set dataTypeaheadEnabled(t){O(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(){yr(()=>{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,Ge=new WeakMap,je=new WeakMap,Xe=new WeakMap;var Je;class wo extends Er{constructor(t){super(t);H(this,"opts");H(this,"isMulti",!0);M(this,Je,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,Je))}set hasValue(t){O(h(this,Je),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(){yr(()=>{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)}})}}Je=new WeakMap;class xo{static create(e){const{type:t,...r}=e,o=t==="single"?new yo(r):new wo(r);return Ce.set(o)}}var Qe;const zt=class zt{constructor(e,t){H(this,"opts");H(this,"root");H(this,"attachment");M(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":br(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 Ct(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!==wr){if((e.key===le||e.key===ve)&&e.preventDefault(),!this.root.opts.open.current){if(sr.includes(e.key)||e.key===yt||e.key===Qn&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===ve){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===yt){this.root.handleClose();return}if(e.key===bt&&!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(),Sr.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 l;if(e.key===ve?l=pr(t,o,s):e.key===le?l=fr(t,o,s):e.key===Bt?l=vr(t,o,10,s):e.key===Ft?l=mr(t,o,10,s):e.key===Kt?l=t[0]:e.key===Wt&&(l=t[t.length-1]),!l)return;this.root.setHighlightedNode(l);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){O(h(this,Qe),e)}};Qe=new WeakMap;let ir=zt;var xe,Se,he,Tr,Mt,Rt,Ze;const Yt=class Yt{constructor(e,t){M(this,he);H(this,"opts");H(this,"root");H(this,"attachment");M(this,xe);M(this,Se);M(this,Ze,I(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":br(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 Ct(e.ref),Ne(this,xe,new Nn({getCurrentItem:()=>this.root.highlightedNode,onMatch:r=>{this.root.setHighlightedNode(r)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),Ne(this,Se,new fo({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 Yt(e,Ce.get())}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===le||e.key===ve)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===bt||e.key===Ot||e.key===ve||e.key===le)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){h(this,Se).handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const l=this.root.getCandidateNodes();if(!l.length)return;if(e.key===ve){const c=l[0];this.root.setHighlightedNode(c)}else if(e.key===le){const c=l[l.length-1];this.root.setHighlightedNode(c)}return}if(e.key===yt){this.root.handleClose();return}if((e.key===bt||e.key===Ot&&h(this,xe).search==="")&&!e.isComposing&&(e.preventDefault(),Pe(this,he,Rt).call(this)))return;if(e.key===le&&e.altKey&&this.root.handleClose(),Sr.includes(e.key)){e.preventDefault();const l=this.root.getCandidateNodes(),c=this.root.highlightedNode,x=c?l.indexOf(c):-1,v=this.root.opts.loop.current;let i;if(e.key===ve?i=pr(l,x,v):e.key===le?i=fr(l,x,v):e.key===Bt?i=vr(l,x,10,v):e.key===Ft?i=mr(l,x,10,v):e.key===Kt?i=l[0]:e.key===Wt&&(i=l[l.length-1]),!i)return;this.root.setHighlightedNode(i);return}const t=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1,o=e.key===Ot,s=this.root.getCandidateNodes();if(e.key!==yt){if(!t&&(r||o)){!h(this,xe).handleTypeaheadSearch(e.key,s)&&o&&(e.preventDefault(),Pe(this,he,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,he,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,he,Mt).call(this,e):this.root.handleClose()))}get props(){return n(h(this,Ze))}set props(e){O(h(this,Ze),e)}};xe=new WeakMap,Se=new WeakMap,he=new WeakSet,Tr=function(){this.root.opts.open.current=!0,h(this,Se).resetTypeahead(),h(this,xe).resetTypeahead()},Mt=function(e){Pe(this,he,Tr).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)},Ze=new WeakMap;let At=Yt;var $e,_t,et,tt;const Gt=class Gt{constructor(e,t){H(this,"opts");H(this,"root");H(this,"attachment");M(this,$e,G(!1));H(this,"domContext");M(this,_t,I(()=>On(this.root.isCombobox?"combobox":"select")));H(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()});H(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()});H(this,"onOpenAutoFocus",e=>{e.preventDefault()});H(this,"onCloseAutoFocus",e=>{e.preventDefault()});M(this,et,I(()=>({open:this.root.opts.open.current})));M(this,tt,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,_t))},onpointermove:this.onpointermove,...this.attachment})));H(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 Ct(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Sn(()=>{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 kr.set(new Gt(e,Ce.get()))}get isPositioned(){return n(h(this,$e))}set isPositioned(e){O(h(this,$e),e,!0)}onpointermove(e){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return n(h(this,et))}set snippetProps(e){O(h(this,et),e)}get props(){return n(h(this,tt))}set props(e){O(h(this,tt),e)}};$e=new WeakMap,_t=new WeakMap,et=new WeakMap,tt=new WeakMap;let wt=Gt;var rt,nt,ot,st,it;const jt=class jt{constructor(e,t){H(this,"opts");H(this,"root");H(this,"attachment");M(this,rt,I(()=>this.root.includesItem(this.opts.value.current)));M(this,nt,I(()=>this.root.highlightedValue===this.opts.value.current));H(this,"prevHighlighted",new go(()=>this.isHighlighted));M(this,ot,G(!1));M(this,st,I(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));M(this,it,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,rt))}set isSelected(e){O(h(this,rt),e)}get isHighlighted(){return n(h(this,nt))}set isHighlighted(e){O(h(this,nt),e)}get mounted(){return n(h(this,ot))}set mounted(e){O(h(this,ot),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,st))}set snippetProps(e){O(h(this,st),e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Pn){tn(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,it))}set props(e){O(h(this,it),e)}};rt=new WeakMap,nt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap;let Ht=jt;var at,lt;const Xt=class Xt{constructor(e,t){H(this,"opts");H(this,"root");M(this,at,G(null));H(this,"attachment");M(this,lt,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 Or.set(new Xt(e,Ce.get()))}get labelNode(){return n(h(this,at))}set labelNode(e){O(h(this,at),e,!0)}get props(){return n(h(this,lt))}set props(e){O(h(this,lt),e)}};at=new WeakMap,lt=new WeakMap;let ar=Xt;var dt;const Jt=class Jt{constructor(e,t){H(this,"opts");H(this,"group");H(this,"attachment");M(this,dt,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 Jt(e,Or.get())}get props(){return n(h(this,dt))}set props(e){O(h(this,dt),e)}};dt=new WeakMap;let lr=Jt;var ut,ct;const Qt=class Qt{constructor(e,t){H(this,"opts");H(this,"root");M(this,ut,I(()=>this.root.opts.name.current!==""));M(this,ct,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 Qt(e,Ce.get())}get shouldRender(){return n(h(this,ut))}set shouldRender(e){O(h(this,ut),e)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return n(h(this,ct))}set props(e){O(h(this,ct),e)}};ut=new WeakMap,ct=new WeakMap;let Lt=Qt;var ht,gt;const Zt=class Zt{constructor(e,t){H(this,"opts");H(this,"content");H(this,"root");H(this,"attachment");M(this,ht,G(0));M(this,gt,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 Zt(e,kr.get())}get prevScrollTop(){return n(h(this,ht))}set prevScrollTop(e){O(h(this,ht),e,!0)}get props(){return n(h(this,gt))}set props(e){O(h(this,gt),e)}};ht=new WeakMap,gt=new WeakMap;let Vt=Zt;function vt(a,e){if(new.target)return ee({component:vt,...a});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(v){t(v),u()},get autocomplete(){return r()},set autocomplete(v){r(v),u()},$set:te,$on:(v,i)=>re(e,v,i)},l=q(),c=K(l);{var x=v=>{Pr(v,_e(()=>o.props,{get autocomplete(){return r()},get value(){return t()},set value(i){t(i)}}))};$(c,v=>{o.shouldRender&&v(x)})}return P(a,l),oe(s)}function Ar(a,e){if(new.target)return ee({component:Ar,...a});ne(e,!0);let t=d(e,"id",7),r=d(e,"children",7),o=d(e,"virtualEl",7),s=d(e,"ref",7),l=d(e,"tooltip",7,!1);Zn.create({id:U(()=>t()),virtualEl:U(()=>o()),ref:s()},l());var c={get id(){return t()},set id(i){t(i),u()},get children(){return r()},set children(i){r(i),u()},get virtualEl(){return o()},set virtualEl(i){o(i),u()},get ref(){return s()},set ref(i){s(i),u()},get tooltip(){return l()},set tooltip(i=!1){l(i),u()},$set:te,$on:(i,f)=>re(e,i,f)},x=q(),v=K(x);return j(v,()=>r()??ae),P(a,x),oe(c)}var _o=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),dr=J("<div><div><!></div></div>");function Mr(a,e){const t=Oe();if(new.target)return ee({component:Mr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),l=d(e,"side",7,"bottom"),c=d(e,"onInteractOutside",7,X),x=d(e,"onEscapeKeydown",7,X),v=d(e,"children",7),i=d(e,"child",7),f=d(e,"preventScroll",7,!1),D=d(e,"style",7),E=ye(e,_o);const m=wt.create({id:U(()=>r()),ref:U(()=>o(),g=>o(g)),onInteractOutside:U(()=>c()),onEscapeKeydown:U(()=>x())}),_=I(()=>ue(E,m.props));var b={get id(){return r()},set id(g=ce(t)){r(g),u()},get ref(){return o()},set ref(g=null){o(g),u()},get forceMount(){return s()},set forceMount(g=!1){s(g),u()},get side(){return l()},set side(g="bottom"){l(g),u()},get onInteractOutside(){return c()},set onInteractOutside(g=X){c(g),u()},get onEscapeKeydown(){return x()},set onEscapeKeydown(g=X){x(g),u()},get children(){return v()},set children(g){v(g),u()},get child(){return i()},set child(g){i(g),u()},get preventScroll(){return f()},set preventScroll(g=!1){f(g),u()},get style(){return D()},set style(g){D(g),u()},$set:te,$on:(g,L)=>re(e,g,L)},k=q(),R=K(k);{var Y=g=>{xr(g,_e(()=>n(_),()=>m.popperProps,{get ref(){return m.opts.ref},get side(){return l()},get enabled(){return m.root.opts.open.current},get id(){return r()},get preventScroll(){return f()},forceMount:!0,get shouldRender(){return m.shouldRender},popper:(N,y)=>{let A=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const w=I(()=>ue(A(),{style:m.props.style},{style:D()}));var V=q(),W=K(V);{var F=S=>{var T=q(),z=K(T);{let se=I(()=>({props:n(w),wrapperProps:B(),...m.snippetProps}));j(z,i,()=>n(se))}P(S,T)},C=S=>{var T=dr();ie(T,()=>({...B()}));var z=Q(T);ie(z,()=>({...n(w)}));var se=Q(z);j(se,()=>v()??ae),Z(z),Z(T),P(S,T)};$(W,S=>{i()?S(F):S(C,-1)})}P(N,V)},$$slots:{popper:!0}}))},p=g=>{_r(g,_e(()=>n(_),()=>m.popperProps,{get ref(){return m.opts.ref},get side(){return l()},get open(){return m.root.opts.open.current},get id(){return r()},get preventScroll(){return f()},forceMount:!1,get shouldRender(){return m.shouldRender},popper:(N,y)=>{let A=()=>(y?.()).props,B=()=>(y?.()).wrapperProps;const w=I(()=>ue(A(),{style:m.props.style},{style:D()}));var V=q(),W=K(V);{var F=S=>{var T=q(),z=K(T);{let se=I(()=>({props:n(w),wrapperProps:B(),...m.snippetProps}));j(z,i,()=>n(se))}P(S,T)},C=S=>{var T=dr();ie(T,()=>({...B()}));var z=Q(T);ie(z,()=>({...n(w)}));var se=Q(z);j(se,()=>v()??ae),Z(z),Z(T),P(S,T)};$(W,S=>{i()?S(F):S(C,-1)})}P(N,V)},$$slots:{popper:!0}}))};$(R,g=>{s()?g(Y):s()||g(p,1)})}return P(a,k),oe(b)}var Io=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),ur=J("<div><!></div>");function Rr(a,e){const t=Oe();if(new.target)return ee({component:Rr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"forceMount",7,!1),l=d(e,"onInteractOutside",7,X),c=d(e,"onEscapeKeydown",7,X),x=d(e,"children",7),v=d(e,"child",7),i=d(e,"preventScroll",7,!1),f=d(e,"style",7),D=ye(e,Io);const E=wt.create({id:U(()=>r()),ref:U(()=>o(),p=>o(p)),onInteractOutside:U(()=>l()),onEscapeKeydown:U(()=>c())}),m=I(()=>ue(D,E.props));var _={get id(){return r()},set id(p=ce(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 onInteractOutside(){return l()},set onInteractOutside(p=X){l(p),u()},get onEscapeKeydown(){return c()},set onEscapeKeydown(p=X){c(p),u()},get children(){return x()},set children(p){x(p),u()},get child(){return v()},set child(p){v(p),u()},get preventScroll(){return i()},set preventScroll(p=!1){i(p),u()},get style(){return f()},set style(p){f(p),u()},$set:te,$on:(p,g)=>re(e,p,g)},b=q(),k=K(b);{var R=p=>{xr(p,_e(()=>n(m),()=>E.popperProps,{get ref(){return E.opts.ref},isStatic:!0,get enabled(){return E.root.opts.open.current},get id(){return r()},get preventScroll(){return i()},forceMount:!0,get shouldRender(){return E.shouldRender},popper:(L,N)=>{let y=()=>(N?.()).props;const A=I(()=>ue(y(),{style:E.props.style},{style:f()}));var B=q(),w=K(B);{var V=F=>{var C=q(),S=K(C);{let T=I(()=>({props:n(A),...E.snippetProps}));j(S,v,()=>n(T))}P(F,C)},W=F=>{var C=ur();ie(C,()=>({...n(A)}));var S=Q(C);j(S,()=>x()??ae),Z(C),P(F,C)};$(w,F=>{v()?F(V):F(W,-1)})}P(L,B)},$$slots:{popper:!0}}))},Y=p=>{_r(p,_e(()=>n(m),()=>E.popperProps,{get ref(){return E.opts.ref},isStatic:!0,get open(){return E.root.opts.open.current},get id(){return r()},get preventScroll(){return i()},forceMount:!1,get shouldRender(){return E.shouldRender},popper:(L,N)=>{let y=()=>(N?.()).props;const A=I(()=>ue(y(),{style:E.props.style},{style:f()}));var B=q(),w=K(B);{var V=F=>{var C=q(),S=K(C);{let T=I(()=>({props:n(A),...E.snippetProps}));j(S,v,()=>n(T))}P(F,C)},W=F=>{var C=ur();ie(C,()=>({...n(A)}));var S=Q(C);j(S,()=>x()??ae),Z(C),P(F,C)};$(w,F=>{v()?F(V):F(W,-1)})}P(L,B)},$$slots:{popper:!0}}))};$(k,p=>{s()?p(R):s()||p(Y,1)})}return P(a,b),oe(_)}function Hr(a,e){if(new.target)return ee({component:Hr,...a});ne(e,!0);let t=d(e,"mounted",15,!1),r=d(e,"onMountedChange",7,X);$n(()=>(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,l)=>re(e,s,l)};return oe(o)}var Co=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),No=J("<div><!></div>"),Po=J("<!> <!>",1);function Lr(a,e){const t=Oe();if(new.target)return ee({component:Lr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"value",7),l=d(e,"label",23,s),c=d(e,"disabled",7,!1),x=d(e,"children",7),v=d(e,"child",7),i=d(e,"onHighlight",7,X),f=d(e,"onUnhighlight",7,X),D=ye(e,Co);const E=Ht.create({id:U(()=>r()),ref:U(()=>o(),g=>o(g)),value:U(()=>s()),disabled:U(()=>c()),label:U(()=>l()),onHighlight:U(()=>i()),onUnhighlight:U(()=>f())}),m=I(()=>ue(D,E.props));var _={get id(){return r()},set id(g=ce(t)){r(g),u()},get ref(){return o()},set ref(g=null){o(g),u()},get value(){return s()},set value(g){s(g),u()},get label(){return l()},set label(g=s){l(g),u()},get disabled(){return c()},set disabled(g=!1){c(g),u()},get children(){return x()},set children(g){x(g),u()},get child(){return v()},set child(g){v(g),u()},get onHighlight(){return i()},set onHighlight(g=X){i(g),u()},get onUnhighlight(){return f()},set onUnhighlight(g=X){f(g),u()},$set:te,$on:(g,L)=>re(e,g,L)},b=Po(),k=K(b);{var R=g=>{var L=q(),N=K(L);{let y=I(()=>({props:n(m),...E.snippetProps}));j(N,v,()=>n(y))}P(g,L)},Y=g=>{var L=No();ie(L,()=>({...n(m)}));var N=Q(L);j(N,()=>x()??ae,()=>E.snippetProps),Z(L),P(g,L)};$(k,g=>{v()?g(R):g(Y,-1)})}var p=ke(k,2);return Hr(p,{get mounted(){return E.mounted},set mounted(g){E.mounted=g}}),P(a,b),oe(_)}var So=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),Oo=J("<div><!></div>");function Vr(a,e){const t=Oe();if(new.target)return ee({component:Vr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"children",7),l=d(e,"child",7),c=ye(e,So);const x=Vt.create({id:U(()=>r()),ref:U(()=>o(),_=>o(_))}),v=I(()=>ue(c,x.props));var i={get id(){return r()},set id(_=ce(t)){r(_),u()},get ref(){return o()},set ref(_=null){o(_),u()},get children(){return s()},set children(_){s(_),u()},get child(){return l()},set child(_){l(_),u()},$set:te,$on:(_,b)=>re(e,_,b)},f=q(),D=K(f);{var E=_=>{var b=q(),k=K(b);j(k,l,()=>({props:n(v)})),P(_,b)},m=_=>{var b=Oo();ie(b,()=>({...n(v)}));var k=Q(b);j(k,()=>s()??ae),Z(b),P(_,b)};$(D,_=>{l()?_(E):_(m,-1)})}return P(a,f),oe(i)}var ko=J("<!> <!>",1);function Dr(a,e){if(new.target)return ee({component:Dr,...a});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),l=d(e,"type",7),c=d(e,"open",15,!1),x=d(e,"onOpenChange",7,X),v=d(e,"onOpenChangeComplete",7,X),i=d(e,"loop",7,!1),f=d(e,"scrollAlignment",7,"nearest"),D=d(e,"required",7,!1),E=d(e,"items",23,()=>[]),m=d(e,"allowDeselect",7,!1),_=d(e,"autocomplete",7),b=d(e,"children",7);function k(){t()===void 0&&t(l()==="single"?"":[])}k(),be.pre(()=>t(),()=>{k()});let R=G("");const Y=xo.create({type:l(),value:U(()=>t(),w=>{t(w),r()(w)}),disabled:U(()=>s()),required:U(()=>D()),open:U(()=>c(),w=>{c(w),x()(w)}),loop:U(()=>i()),scrollAlignment:U(()=>f()),name:U(()=>o()),isCombobox:!1,items:U(()=>E()),allowDeselect:U(()=>m()),inputValue:U(()=>n(R),w=>O(R,w,!0)),onOpenChangeComplete:U(()=>v())});var p={get value(){return t()},set value(w){t(w),u()},get onValueChange(){return r()},set onValueChange(w=X){r(w),u()},get name(){return o()},set name(w=""){o(w),u()},get disabled(){return s()},set disabled(w=!1){s(w),u()},get type(){return l()},set type(w){l(w),u()},get open(){return c()},set open(w=!1){c(w),u()},get onOpenChange(){return x()},set onOpenChange(w=X){x(w),u()},get onOpenChangeComplete(){return v()},set onOpenChangeComplete(w=X){v(w),u()},get loop(){return i()},set loop(w=!1){i(w),u()},get scrollAlignment(){return f()},set scrollAlignment(w="nearest"){f(w),u()},get required(){return D()},set required(w=!1){D(w),u()},get items(){return E()},set items(w=[]){E(w),u()},get allowDeselect(){return m()},set allowDeselect(w=!1){m(w),u()},get autocomplete(){return _()},set autocomplete(w){_(w),u()},get children(){return b()},set children(w){b(w),u()},$set:te,$on:(w,V)=>re(e,w,V)},g=ko(),L=K(g);eo(L,{children:(w,V)=>{var W=q(),F=K(W);j(F,()=>b()??ae),P(w,W)},$$slots:{default:!0}});var N=ke(L,2);{var y=w=>{var V=q(),W=K(V);{var F=S=>{vt(S,{get autocomplete(){return _()}})},C=S=>{var T=q(),z=K(T);Tt(z,16,()=>Y.opts.value.current,se=>se,(se,Ee)=>{vt(se,{get value(){return Ee},get autocomplete(){return _()}})}),P(S,T)};$(W,S=>{Y.opts.value.current.length===0?S(F):S(C,-1)})}P(w,V)},A=I(()=>Array.isArray(Y.opts.value.current)),B=w=>{vt(w,{get autocomplete(){return _()},get value(){return Y.opts.value.current},set value(V){Y.opts.value.current=V}})};$(N,w=>{n(A)?w(y):w(B,-1)})}return P(a,g),oe(p)}var Eo=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),To=J("<button><!></button>");function Fr(a,e){const t=Oe();if(new.target)return ee({component:Fr,...a});ne(e,!0);let r=d(e,"id",23,()=>ce(t)),o=d(e,"ref",15,null),s=d(e,"child",7),l=d(e,"children",7),c=d(e,"type",7,"button"),x=ye(e,Eo);const v=At.create({id:U(()=>r()),ref:U(()=>o(),m=>o(m))}),i=I(()=>ue(x,v.props,{type:c()}));var f={get id(){return r()},set id(m=ce(t)){r(m),u()},get ref(){return o()},set ref(m=null){o(m),u()},get child(){return s()},set child(m){s(m),u()},get children(){return l()},set children(m){l(m),u()},get type(){return c()},set type(m="button"){c(m),u()},$set:te,$on:(m,_)=>re(e,m,_)},D=q(),E=K(D);return fe(E,()=>Ar,(m,_)=>{_(m,{get id(){return r()},get ref(){return v.opts.ref},children:(b,k)=>{var R=q(),Y=K(R);{var p=L=>{var N=q(),y=K(N);j(y,s,()=>({props:n(i)})),P(L,N)},g=L=>{var N=To();ie(N,()=>({...n(i)}));var y=Q(N);j(y,()=>l()??ae),Z(N),P(L,N)};$(Y,L=>{s()?L(p):L(g,-1)})}P(b,R)},$$slots:{default:!0}})}),P(a,D),oe(f)}var Ao=J('<div data-slot="select-root" class="relative min-w-0 w-full"><!></div>');function Kr(a,e){const t=Oe();if(new.target)return ee({component:Kr,...a});ne(e,!0);const r=`${t}-trigger`;let o=G(r),s=d(e,"value",15,""),l=d(e,"open",15,!1),c=d(e,"items",23,()=>[]),x=d(e,"disabled",7,!1),v=d(e,"invalid",7,!1),i=d(e,"required",7,!1),f=d(e,"name",7),D=d(e,"loop",7,!0),E=d(e,"onchange",7),m=d(e,"onopenchange",7),_=d(e,"children",7),b=d(e,"staticPosition",7,!1);un(()=>{l(!1),m()?.(!1)}),hr("canonical-select",{get triggerId(){return n(o)},registerTriggerId(p){O(o,p??r,!0)},listboxId:`${t}-listbox`,get value(){return s()},get displayValue(){return c().find(p=>p.value===s())?.label??s()},get invalid(){return v()},get open(){return l()},get staticPosition(){return b()},set open(p){l(p)}});var k={get value(){return s()},set value(p=""){s(p),u()},get open(){return l()},set open(p=!1){l(p),u()},get items(){return c()},set items(p=[]){c(p),u()},get disabled(){return x()},set disabled(p=!1){x(p),u()},get invalid(){return v()},set invalid(p=!1){v(p),u()},get required(){return i()},set required(p=!1){i(p),u()},get name(){return f()},set name(p){f(p),u()},get loop(){return D()},set loop(p=!0){D(p),u()},get onchange(){return E()},set onchange(p){E(p),u()},get onopenchange(){return m()},set onopenchange(p){m(p),u()},get children(){return _()},set children(p){_(p),u()},get staticPosition(){return b()},set staticPosition(p=!1){b(p),u()},$set:te,$on:(p,g)=>re(e,p,g)},R=Ao(),Y=Q(R);return fe(Y,()=>Dr,(p,g)=>{g(p,{type:"single",get items(){return c()},get disabled(){return x()},get required(){return i()},get name(){return f()},get loop(){return D()},get onValueChange(){return E()},get onOpenChange(){return m()},get value(){return s()},set value(L){s(L)},get open(){return l()},set open(L){l(L)},children:(L,N)=>{var y=q(),A=K(y);j(A,()=>_()??ae),P(L,y)},$$slots:{default:!0}})}),Z(R),P(a,R),oe(k)}var Mo=new Set(["$$slots","$$events","$$legacy","variant","class","children","child","onclick","id","ref"]),Ro=J("<!> <!>",1);function Br(a,e){if(new.target)return ee({component:Br,...a});ne(e,!0);const t=(N,y)=>{let A=()=>(y?.()).props;const B=I(()=>Y(A()));var w=q(),V=K(w);{var W=C=>{var S=q(),T=K(S);j(T,l,()=>({props:n(B)})),P(C,S)},F=C=>{to(C,_e(()=>n(B),{get variant(){return n(b)},get active(){return f.open},get class(){return n(k)},children:(S,T)=>{var z=Ro(),se=K(z);j(se,()=>s()??ae);var Ee=ke(se,2);{var Nt=Te=>{Cr(Te,{get icon(){return no},class:"size-3 shrink-0 text-muted-foreground transition-transform duration-spring-fast group-data-[state=open]:rotate-180 motion-reduce:transition-none"})};$(Ee,Te=>{r()==="default"&&Te(Nt)})}P(S,z)},$$slots:{default:!0}}))};$(V,C=>{l()?C(W):C(F,-1)})}P(N,w)};let r=d(e,"variant",7,"default"),o=d(e,"class",7,""),s=d(e,"children",7),l=d(e,"child",7),c=d(e,"onclick",7),x=d(e,"id",7),v=d(e,"ref",15,null),i=ye(e,Mo);const f=It("canonical-select");nn(()=>f.registerTriggerId(x())),de(()=>f.registerTriggerId(x()));let D=G(!1);de(()=>{const N=f.triggerId;O(D,Array.from(document.querySelectorAll("label[for]")).some(y=>y.htmlFor===N),!0)});const E=I(()=>!i["aria-label"]&&!i["aria-labelledby"]&&!n(D));let m=G(void 0);de(()=>{const N=v();if(!n(E)||!N){O(m,void 0);return}const y=()=>{O(m,N.textContent?.trim()||void 0,!0)};y();const A=new MutationObserver(y);return A.observe(N,{childList:!0,characterData:!0,subtree:!0}),()=>A.disconnect()});const _={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"),k=I(()=>me("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",_[r()],o()));function R(N){N.detail===0&&!f.open&&(f.open=!0),c()?.(N)}function Y(N){const{"aria-activedescendant":y,"aria-label":A,...B}=N;return{...B,role:"combobox","aria-label":typeof A=="string"?A:n(m),"aria-activedescendant":f.open&&typeof y=="string"?y:void 0}}var p={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 l()},set child(N){l(N),u()},get onclick(){return c()},set onclick(N){c(N),u()},get id(){return x()},set id(N){x(N),u()},get ref(){return v()},set ref(N=null){v(N),u()},$set:te,$on:(N,y)=>re(e,N,y)},g=q(),L=K(g);{let N=I(()=>f.open?f.listboxId:void 0),y=I(()=>f.invalid||void 0);fe(L,()=>Fr,(A,B)=>{B(A,_e(()=>i,{get id(){return f.triggerId},get"aria-controls"(){return n(N)},get class(){return n(k)},get"aria-invalid"(){return n(y)},onclick:R,get child(){return t},get ref(){return v()},set ref(w){v(w)}}))})}return P(a,g),oe(p)}var Ho=J("<span> </span>");function Wr(a,e){if(new.target)return ee({component:Wr,...a});ne(e,!0);let t=d(e,"placeholder",23,()=>er.ui_select_value_placeholder());const r=It("canonical-select");var o={get placeholder(){return t()},set placeholder(c=er.ui_select_value_placeholder()){t(c),u()},$set:te,$on:(c,x)=>re(e,c,x)},s=Ho(),l=on(s,!0);return Ae(()=>{ft(s,1,`min-w-0 flex-1 truncate text-left ${r.value?"text-foreground":"text-muted-foreground"}`),sn(l,r.displayValue||t())}),P(a,s),oe(o)}function Lo(a,e){const t=[...e].filter(o=>Number.isInteger(o)&&o>=0&&a[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 l=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,v=Number.NEGATIVE_INFINITY;for(let i=o;i<=s;i+=1){const f=a[i];f&&(l=Math.min(l,f.top),c=Math.min(c,f.left),x=Math.max(x,f.left+f.width),v=Math.max(v,f.top+f.height))}return{startIndex:o,endIndex:s,rect:{top:l,left:c,width:x-c,height:v-l}}})}function kt(a,e){return Math.max(0,Math.min(a.endIndex,e.endIndex)-Math.max(a.startIndex,e.startIndex)+1)}function Vo(){let a=G(gr([])),e=[],t=1;return{get groups(){return n(a)},update(r,o){const s=new Set,l=Lo(r,o).map(c=>{const v=e.filter(i=>!s.has(i.id)&&kt(i,c)>0).sort((i,f)=>kt(f,c)-kt(i,c)||i.id-f.id)[0]?.id??t++;return s.add(v),{id:v,...c}});e=l,O(a,l,!0)},reset(){e=[],O(a,[],!0),t=1}}}var Do=J('<div data-proximity-highlight="selected" style="border-radius: var(--radius-row)"></div>'),Fo=J('<div data-proximity-highlight="hover" style="border-radius: var(--radius-row)"></div>'),Ko=J('<div aria-hidden="true"><!> <!></div>');function Ur(a,e){if(new.target)return ee({component:Ur,...a});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"),l=d(e,"class",7);const c=Vo(),x=I(()=>t().activeIndex===null?void 0:t().itemRects[t().activeIndex]);de(()=>{c.update(t().itemRects,r())});const v=(m,_)=>{const b=new pt(_.rect.top,_.tier),k=new pt(_.rect.left,_.tier),R=new pt(_.rect.width,_.tier),Y=new pt(_.rect.height,_.tier),p=an(()=>{de(()=>{m.style.transform=`translate3d(${k.current}px, ${b.current}px, 0)`,m.style.width=`${R.current}px`,m.style.height=`${Y.current}px`})}),g=y=>{b.set(y.rect.top),k.set(y.rect.left),R.set(y.rect.width),Y.set(y.rect.height)},N=yn(()=>wn()&&g(_));return{update(y){_=y,g(y)},destroy(){N(),p()}}};var i={get store(){return t()},set store(m){t(m),u()},get selectedIndexes(){return r()},set selectedIndexes(m=[]){r(m),u()},get selectedClass(){return o()},set selectedClass(m="bg-selected"){o(m),u()},get hoverClass(){return s()},set hoverClass(m="bg-hover"){s(m),u()},get class(){return l()},set class(m){l(m),u()},$set:te,$on:(m,_)=>re(e,m,_)},f=Ko(),D=Q(f);Tt(D,17,()=>c.groups,m=>m.id,(m,_)=>{var b=Do();mt(b,(k,R)=>v?.(k,R),()=>({rect:n(_).rect,tier:"moderate"})),Ae(k=>ft(b,1,k),[()=>St(me("absolute",o()))]),rr(2,b,()=>nr,()=>({tier:"moderate"})),P(m,b)});var E=ke(D,2);return lo(E,()=>t().sessionId,m=>{var _=q(),b=K(_);Tt(b,17,()=>n(x)?[n(x)]:[],k=>0,(k,R)=>{var Y=Fo();mt(Y,(p,g)=>v?.(p,g),()=>({rect:n(R),tier:"moderate"})),Ae(p=>ft(Y,1,p),[()=>St(me("absolute",s()))]),rr(2,Y,()=>nr,()=>({tier:"fast"})),P(k,Y)}),P(m,_)}),Z(f),Ae(m=>ft(f,1,m),[()=>St(me("pointer-events-none absolute inset-0",l()))]),P(a,f),oe(i)}var Bo=J('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function qr(a,e){if(new.target)return ee({component:qr,...a});ne(e,!0);let t=d(e,"activeIndex",7),r=d(e,"onactiveindexchange",7),o=G(null),s=G(null),l=G(gr([])),c=G(null),x=G(!1),v=G(!1),i;const f='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';de(()=>{n(s)&&t()===void 0&&n(x)&&n(s).activeIndex!==n(c)&&n(s).setActiveIndex(n(c))}),de(()=>{!n(s)||t()===void 0||n(s).pointerPosition||n(s).setActiveIndex(t())}),de(()=>{if(!n(s)?.pointerPosition){i=void 0;return}n(s).activeIndex!==i&&(i=n(s).activeIndex,r()?.(n(s).activeIndex))}),ln(()=>{const b=n(o)?.parentElement;if(!b)return;b.dataset.listOverlay="",b.classList.add("relative","isolate");const k=cn(b);O(s,k);let R=[];const Y=C=>C instanceof Element&&(C.matches(f)||C.querySelector(f)),p=C=>C.hasAttribute("data-disabled")||C.getAttribute("aria-disabled")==="true",g=C=>C.hasAttribute("data-selected")||C.getAttribute("data-state")==="checked"||C.getAttribute("aria-selected")==="true"||C.getAttribute("aria-checked")==="true",L=()=>{const C=Array.from(b.querySelectorAll(f)).filter(T=>T.closest("[data-list-overlay]")===b&&!p(T));C.length!==R.length||C.some((T,z)=>T!==R[z])?(R.forEach((T,z)=>k.registerItem(z,null)),R=C,R.forEach((T,z)=>k.registerItem(z,T))):k.measure();const S=R.flatMap((T,z)=>g(T)?[z]:[]);if((S.length!==n(l).length||S.some((T,z)=>T!==n(l)[z]))&&O(l,S,!0),t()===void 0){const T=R.findIndex(z=>z.hasAttribute("data-highlighted")||z===document.activeElement);T>=0&&k.setActiveIndex(T)}},N=new MutationObserver(C=>{C.some(S=>S.type==="attributes"||[...S.addedNodes,...S.removedNodes].some(Y))&&L()});N.observe(b,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled"]});const y=()=>{const C=R.indexOf(document.activeElement);O(c,C>=0?C:null,!0)},A=()=>{O(v,!1),O(x,!0),y(),Et().then(()=>{n(x)&&y()})},B=()=>{O(x,!1)},w=()=>{O(v,!1),O(x,!0),y()},V=C=>{const S=C.target instanceof Element?C.target.closest(f):null,T=R.indexOf(S);C.button!==0||T<0||(O(x,!1),O(v,!0),k.setActiveIndex(T))},W=()=>{O(v,!1)},F=C=>{const S=R.indexOf(C.target);O(c,S>=0?S:null,!0),S>=0&&k.setActiveIndex(S)};return b.addEventListener("keydown",A,!0),b.addEventListener("pointermove",B,!0),b.addEventListener("pointerleave",w),b.addEventListener("pointerdown",V),window.addEventListener("pointerup",W),window.addEventListener("pointercancel",W),b.addEventListener("focusin",F),Et().then(L),()=>{N.disconnect(),b.removeEventListener("keydown",A,!0),b.removeEventListener("pointermove",B,!0),b.removeEventListener("pointerleave",w),b.removeEventListener("pointerdown",V),window.removeEventListener("pointerup",W),window.removeEventListener("pointercancel",W),b.removeEventListener("focusin",F),k.destroy(),O(s,null),delete b.dataset.listOverlay}});var D={get activeIndex(){return t()},set activeIndex(b){t(b),u()},get onactiveindexchange(){return r()},set onactiveindexchange(b){r(b),u()},$set:te,$on:(b,k)=>re(e,b,k)},E=Bo(),m=Q(E);{var _=b=>{{let k=I(()=>n(v)?n(l).includes(n(s).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");Ur(b,{get store(){return n(s)},get selectedIndexes(){return n(l)},get hoverClass(){return n(k)}})}};$(m,b=>{n(s)&&b(_)})}return Z(E),ao(E,b=>O(o,b),()=>n(o)),Ae(()=>xn(E,"data-active-index",n(s)?.activeIndex??void 0)),P(a,E),oe(D)}const Wo=Ir({base:`${hn} menu-row group/menu-item relative z-10 flex w-full min-w-0 cursor-default select-none items-start gap-2 border-none bg-transparent 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=Ir({base:"menu-overlay type-body relative isolate z-(--layer-popover) overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-(--elevation-overlay) 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=-5,gs={enter:{tier:"moderate",y:4,scale:.95},exit:{tier:"moderate"}},zr=8;function ps(a,e,t=24){if(!a)return!0;const r=a.getBoundingClientRect(),o=e+t+zr;return r.left>=o||a.ownerDocument.documentElement.clientWidth-r.right>=o}const Yr=Symbol("dialog-portal-target");function fs(a){hr(Yr,a)}function Uo(){const a=It(Yr);return()=>a?.()??void 0}const qo=["[data-bits-floating-content-wrapper]",'[role="combobox"][aria-expanded="true"]','[aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]'].join(", ");function vs(a,e){return a?.querySelector(":scope > [data-bits-floating-content-wrapper]")?!0:e.target instanceof Element&&e.target.closest(qo)!==null}var zo=J("<div><!> <!></div>"),Yo=J("<div><!></div>"),Go=J("<div><div><!></div></div>");function Gr(a,e){if(new.target)return ee({component:Gr,...a});ne(e,!0);const t=y=>{var A=q(),B=K(A);{const w=(V,W)=>{let F=()=>(W?.()).props;var C=zo();ie(C,()=>({...F(),id:b.listboxId,role:"listbox","aria-labelledby":b.triggerId,tabindex:"-1"}));var S=Q(C);qr(S,{});var T=ke(S,2);j(T,()=>D()??ae),Z(C),P(V,C)};fe(B,()=>Vr,(V,W)=>{W(V,{get class(){return`${fn} relative min-h-0 flex-1 overflow-y-auto ${v()??""}`},child:w,$$slots:{child:!0}})})}P(y,A)},r=(y,A)=>{let B=()=>(A?.()).props;const w=I(()=>R(B()));var V=Yo();ie(V,()=>({...n(w),...c()?{id:c()}:{}}));var W=Q(V);t(W),Z(V),mt(V,F=>l?.(F)),P(y,V)},o=(y,A)=>{let B=()=>(A?.()).props,w=()=>(A?.()).wrapperProps;const V=I(()=>R(B()));var W=Go();ie(W,()=>({...w(),...c()?{id:c()}:{}}));var F=Q(W);ie(F,()=>({...n(V)}));var C=Q(F);t(C),Z(F),mt(F,S=>l?.(S)),Z(W),P(y,W)},s=gn(),l=pn();let c=d(e,"wrapperId",7),x=d(e,"class",7,""),v=d(e,"wrapperClass",7,""),i=d(e,"dropUp",7,!1),f=d(e,"portal",7),D=d(e,"children",7);const E=I(()=>i()||f()===!0),m=Uo(),_=uo(co()+2);ho(_);const b=It("canonical-select");async function k(){const y=document.getElementById(b.triggerId);await Et(),!b.open&&y?.isConnected&&y.focus({preventScroll:!0})}function R(y){const{role:A,tabindex:B,...w}=y;return w}var Y={get wrapperId(){return c()},set wrapperId(y){c(y),u()},get class(){return x()},set class(y=""){x(y),u()},get wrapperClass(){return v()},set wrapperClass(y=""){v(y),u()},get dropUp(){return i()},set dropUp(y=!1){i(y),u()},get portal(){return f()},set portal(y){f(y),u()},get children(){return D()},set children(y){D(y),u()},$set:te,$on:(y,A)=>re(e,y,A)},p=q(),g=K(p);{var L=y=>{var A=q(),B=K(A);{let w=I(()=>me(cr(),"w-full max-h-60 rounded-(--radius-medium)",x()));fe(B,()=>Rr,(V,W)=>{W(V,{preventScroll:!1,onEscapeKeydown:k,"data-slot":"select-content","data-static-position":!0,get"data-surface-level"(){return _},get class(){return n(w)},style:"max-width: calc(100vw - var(--space-4));",get child(){return r}})})}P(y,A)},N=y=>{const A=I(()=>f()===void 0&&!i()?m():void 0);var B=q(),w=K(B);{let V=I(()=>!n(E)&&!n(A)),W=I(()=>n(A)??s?.target());fe(w,()=>ro,(F,C)=>{C(F,{get disabled(){return n(V)},get to(){return n(W)},children:(S,T)=>{var z=q(),se=K(z);{let Ee=I(()=>n(A)?"absolute":"fixed"),Nt=I(()=>n(A)!==void 0),Te=I(()=>i()?"top":"bottom"),Jr=I(()=>me(cr(),"w-(--bits-select-anchor-width) max-h-60 rounded-(--radius-medium)",x()));fe(se,()=>Mr,(Qr,Zr)=>{Zr(Qr,{get strategy(){return n(Ee)},get hideWhenDetached(){return n(Nt)},onEscapeKeydown:k,"data-slot":"select-content",get"data-surface-level"(){return _},get side(){return n(Te)},sideOffset:4,get collisionPadding(){return zr},get class(){return n(Jr)},style:"max-width: calc(100vw - var(--space-4));",get child(){return o}})})}P(S,z)},$$slots:{default:!0}})})}P(y,B)};$(g,y=>{b.staticPosition?y(L):y(N,-1)})}return P(a,p),oe(Y)}var jo=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),Xo=J("<span><!></span>");function jr(a,e){if(new.target)return ee({component:jr,...a});ne(e,!0);let t=d(e,"state",7),r=d(e,"class",7),o=d(e,"data-slot",7),s=ye(e,jo);var l={get state(){return t()},set state(i){t(i),u()},get class(){return r()},set class(i){r(i),u()},get"data-slot"(){return o()},set"data-slot"(i){o(i),u()},$set:te,$on:(i,f)=>re(e,i,f)},c=Xo();ie(c,i=>({...s,"data-slot":o()??(t()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:i,"aria-hidden":"true"}),[()=>me(vn,t()!=="submenu"&&"text-primary-ink",r())]);var x=Q(c);{var v=i=>{{let f=I(()=>t()==="mixed"?oo:t()==="submenu"?so:io),D=I(()=>t()==="submenu"?"size-(--menu-icon-size) rtl:rotate-180":"size-(--menu-icon-size)");Cr(i,{get icon(){return n(f)},size:"var(--menu-icon-size)",get class(){return n(D)}})}};$(x,i=>{t()!=="empty"&&i(v)})}return Z(c),P(a,c),oe(l)}var Jo=J('<div class="min-w-0 flex-1 truncate"><!></div> <!>',1);function Xr(a,e){if(new.target)return ee({component:Xr,...a});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),l=d(e,"class",7,"");var c={get value(){return t()},set value(i){t(i),u()},get label(){return r()},set label(i){r(i),u()},get disabled(){return o()},set disabled(i=!1){o(i),u()},get children(){return s()},set children(i){s(i),u()},get class(){return l()},set class(i=""){l(i),u()},$set:te,$on:(i,f)=>re(e,i,f)},x=q(),v=K(x);{const i=(m,_)=>{let b=()=>(_?.()).selected;var k=Jo(),R=K(k),Y=Q(R);j(Y,()=>s()??ae),Z(R);var p=ke(R,2);{let g=I(()=>b()?"checked":"empty");jr(p,{get state(){return n(g)},"data-slot":"select-item-check"})}P(m,k)};let f=I(()=>r()??t()),D=I(()=>o()||void 0),E=I(()=>me(Wo(),l()));fe(v,()=>Lr,(m,_)=>{_(m,{get value(){return t()},get label(){return n(f)},get disabled(){return o()},get"aria-disabled"(){return n(D)},"data-menu-item":!0,get class(){return n(E)},children:i,$$slots:{default:!0}})})}return P(a,x),oe(c)}const ms={Root:Kr,Trigger:Br,Value:Wr,Content:Gr,Item:Xr},Qo=(a,e)=>{let t,r;const o=()=>{t||(t=mn(()=>{t=void 0;const c=a.checkVisibility?.()??!0,x=c?a.clientWidth:0,v=c?a.clientHeight:0,i=x>0&&v>0&&(a.scrollWidth>x||a.scrollHeight>v);r?.(),r=bn(()=>{r=void 0,e(i)})}))},s=typeof ResizeObserver>"u"?void 0:new ResizeObserver(o),l=new MutationObserver(o);return s?.observe(a),l.observe(a,{childList:!0,characterData:!0,subtree:!0}),document.fonts?.addEventListener("loadingdone",o),o(),{update(c){e=c,o()},destroy(){t?.(),r?.(),s?.disconnect(),l.disconnect(),document.fonts?.removeEventListener("loadingdone",o)}}},bs=(a,e)=>{let t=e;const r=s=>{t&&(s||t.trim()!==a.textContent?.trim())?a.title=t:a.removeAttribute("title")},o=Qo(a,r);return{update(s){t=s,o?.update?.(r)},destroy(){o?.destroy?.(),a.removeAttribute("title")}}};export{Ar as F,Pr as H,jr as M,zr as O,Ur as P,ms as S,qr as a,lr as b,ar as c,ir as d,xo as e,Mr as f,Rr as g,vt as h,Lr as i,Vr as j,ps as k,vs as l,Wo as m,cr as n,gs as o,hs as p,Qo as q,fs as r,bs as t,Uo as u};
@@ -1,4 +1,4 @@
1
- import{g as se}from"./CM-42I4J.js";import{a as p,ad as k,N as F,ax as ie,aV as re,L as ae,aG as ne,K as oe,aF as le,aI as ce,O as he,I as ue,p as z,k as de,as as fe}from"./D2zf67XA.js";import{s as pe}from"./wI7zMgx-.js";import{c as Se}from"./V68rWC50.js";import{g as m,c3 as vt}from"./BejAw64w.js";var xt=(function(){var t=p(function(M,o,h,a){for(h=h||{},a=M.length;a--;h[M[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],b=[1,33],I=[1,20],v=[1,21],f=[1,22],w=[1,23],$=[1,24],A=[1,26],P=[1,27],x=[1,28],B=[1,29],N=[1,30],K=[1,31],ot=[1,32],lt=[1,35],ct=[1,36],ht=[1,37],ut=[1,38],X=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],dt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Ot=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:p(m(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(m(function(o,h,a,g,_,i,G){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const st=i[l-1];st.description=g.trimColon(i[l]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Et=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Et};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],J=i[l-2].trim();if(i[l].match(":")){var ft=i[l].split(":");Y=ft[0],J=[J,ft[1]]}this.$={stmt:"state",id:Y,type:"default",description:J};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:b,57:X},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(dt,[2,44],{58:[1,56]}),t(dt,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:b,57:X},t(y,[2,17]),t(Ot,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(dt,[2,46]),t(dt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Ot,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(m(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),"parseError"),parse:p(m(function(o){var h=this,a=[0],g=[],_=[null],i=[],G=this.table,l="",Y=0,J=0,ft=2,st=1,Et=i.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(j.yy[_t]=this.yy[_t]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var mt=D.yylloc;i.push(mt);var ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Rt(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}m(Rt,"popStack"),p(Rt,"popStack");function bt(){var O;return O=g.pop()||D.lex()||st,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}m(bt,"lex"),p(bt,"lex");for(var L,H,R,kt,q={},pt,V,$t,St;;){if(H=a[a.length-1],this.defaultActions[H]?R=this.defaultActions[H]:((L===null||typeof L>"u")&&(L=bt()),R=G[H]&&G[H][L]),typeof R>"u"||!R.length||!R[0]){var Dt="";St=[];for(pt in G[H])this.terminals_[pt]&&pt>ft&&St.push("'"+this.terminals_[pt]+"'");D.showPosition?Dt="Parse error on line "+(Y+1)+`:
1
+ import{g as se}from"./3Hx-xwhh.js";import{a as p,ad as k,N as F,ax as ie,aV as re,L as ae,aG as ne,K as oe,aF as le,aI as ce,O as he,I as ue,p as z,k as de,as as fe}from"./CqiIZBSl.js";import{s as pe}from"./bOHL4iEd.js";import{c as Se}from"./C28hhXd4.js";import{g as m,c3 as vt}from"./CobcHKt3.js";var xt=(function(){var t=p(function(M,o,h,a){for(h=h||{},a=M.length;a--;h[M[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],b=[1,33],I=[1,20],v=[1,21],f=[1,22],w=[1,23],$=[1,24],A=[1,26],P=[1,27],x=[1,28],B=[1,29],N=[1,30],K=[1,31],ot=[1,32],lt=[1,35],ct=[1,36],ht=[1,37],ut=[1,38],X=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],dt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Ot=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:p(m(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(m(function(o,h,a,g,_,i,G){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const st=i[l-1];st.description=g.trimColon(i[l]),this.$=st;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Et=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Et};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],J=i[l-2].trim();if(i[l].match(":")){var ft=i[l].split(":");Y=ft[0],J=[J,ft[1]]}this.$={stmt:"state",id:Y,type:"default",description:J};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:b,57:X},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(dt,[2,44],{58:[1,56]}),t(dt,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:b,57:X},t(y,[2,17]),t(Ot,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(dt,[2,46]),t(dt,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Ot,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:b,25:I,26:v,27:f,28:w,29:$,32:25,33:A,35:P,37:x,38:B,41:N,45:K,48:ot,51:lt,52:ct,53:ht,54:ut,57:X},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(m(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),"parseError"),parse:p(m(function(o){var h=this,a=[0],g=[],_=[null],i=[],G=this.table,l="",Y=0,J=0,ft=2,st=1,Et=i.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(j.yy[_t]=this.yy[_t]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var mt=D.yylloc;i.push(mt);var ee=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Rt(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}m(Rt,"popStack"),p(Rt,"popStack");function bt(){var O;return O=g.pop()||D.lex()||st,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}m(bt,"lex"),p(bt,"lex");for(var L,H,R,kt,q={},pt,V,$t,St;;){if(H=a[a.length-1],this.defaultActions[H]?R=this.defaultActions[H]:((L===null||typeof L>"u")&&(L=bt()),R=G[H]&&G[H][L]),typeof R>"u"||!R.length||!R[0]){var Dt="";St=[];for(pt in G[H])this.terminals_[pt]&&pt>ft&&St.push("'"+this.terminals_[pt]+"'");D.showPosition?Dt="Parse error on line "+(Y+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+St.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Dt="Parse error on line "+(Y+1)+": Unexpected "+(L==st?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Dt,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:mt,expected:St})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+L);switch(R[0]){case 1:a.push(L),_.push(D.yytext),i.push(D.yylloc),a.push(R[1]),L=null,J=D.yyleng,l=D.yytext,Y=D.yylineno,mt=D.yylloc;break;case 2:if(V=this.productions_[R[1]][1],q.$=_[_.length-V],q._$={first_line:i[i.length-(V||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(V||1)].first_column,last_column:i[i.length-1].last_column},ee&&(q._$.range=[i[i.length-(V||1)].range[0],i[i.length-1].range[1]]),kt=this.performAction.apply(q,[l,J,Y,j.yy,R[1],_,i].concat(Et)),typeof kt<"u")return kt;V&&(a=a.slice(0,-1*V*2),_=_.slice(0,-1*V),i=i.slice(0,-1*V)),a.push(this.productions_[R[1]][0]),_.push(q.$),i.push(q._$),$t=G[a[a.length-2]][a[a.length-1]],a.push($t);break;case 3:return!0}}return!0},"parse"),"parse")},te=(function(){var M={EOF:1,parseError:p(m(function(h,a){if(this.yy.parser)this.yy.parser.parseError(h,a);else throw new Error(h)},"parseError"),"parseError"),setInput:p(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var h=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===g.length?this.yylloc.first_column:0)+g[g.length-a.length].length-a[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{G9 as S,zr as o,aJ as d,aK as l,aL as a}from"./FBhib8LQ.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./DswUZY33.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},p=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return p(r),x(t),r};export{m as initAppStore,S as store};
1
+ import{G9 as S,zr as o,aJ as d,aK as l,aL as a}from"./BL_sVoge.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./BiFqz5BS.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},p=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return p(r),x(t),r};export{m as initAppStore,S as store};
@@ -1,2 +1,2 @@
1
- import{N as L,f as G,an as j,ak as V,au as Q,o as X,c as z}from"./bHtn9InS.js";import{G9 as u,mx as _,Gi as N,ba as O,W as Y,mj as B,pU as P,mw as W,qe as $,jp as Z,qc as R,GB as v,pD as J,fs as q,pV as x,Y as ee,b8 as te,g as ne}from"./FBhib8LQ.js";import{s as K,ac as se}from"./gdAnsrdj.js";const oe=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function ie(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!L(t))return!0}const n=G(e);return oe.some(s=>n.startsWith(s))}const re=1440*60*1e3;function ae(e){let t=null;for(const n of e){if(ie({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ce=50,le=20;function E(e,t){return e===null||t!==null&&t>e?t:e}async function _e(e,t){let n,s=null;for(let i=0;i<le;i++){const o=await e({limit:ce,nextToken:n});if(!o.ok)return null;const c=o.items;s===null&&c.length>0&&(s=c[c.length-1].id);const l=t?.newestId!=null?c.findIndex(a=>a.id===t.newestId):-1,r=ae(l>=0?c.slice(l+1):c);if(l>=0)return{latest:E(r,t?.latest??null),newestId:s};if(r!==null)return{latest:E(r,t?.latest??null),newestId:s};if(typeof o.nextToken!="string")return{latest:null,newestId:s};n=o.nextToken}return{latest:t?.latest??null,newestId:s}}function ue(e,t){return e!=null&&e<=t&&e>t-re}const y=new Map;function de(e){return y.has(e)}function Be(e){return y.get(e)}function We(e){y.set(e.agentId,e)}function De(e){y.delete(e)}u.createSelector(e=>e.hud.active);u.createSelector(e=>e.hud.feed);u.createSelector(e=>e.hud.usage);u.createSelector(e=>e.hud.usageError);const Re=u.createSelector(e=>e.hud.rateHistory),Ee=u.createSelector(e=>_(e.workspace.workspaces)),Ce=u.createSelector(e=>{const t=e.hud.usage?.totals;return t?N(t):0}),He=u.createSelector(e=>e.hud.burnRatePerMin),Ne=u.createSelector(e=>e.hud.burnTrend),Pe=u.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,o=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&o?o.split(".",1)[0]??o:null}}),qe=u.createSelector(e=>e.hud.gridFilter);u.createSelector(e=>e.hud.attentionByWorkspaceId);const xe=u.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!K(s,n.messageId)}),Ke=u.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ge(e,t){return t[String(e.id)]??e.displayStatus}const A=u.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return _(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ge(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!de(n.id))}const Fe=u.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of A.select(e))for(const s of I(n))t[h(e,s).bucket]+=1;return t}),Ue=u.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of D.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),fe=u.createSelector(e=>{const t={};for(const n of A.select(e))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function C(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const Le=u.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of A.select(e)){const o=String(i.id);let c=!1;for(const r of w(i,e)){const{bucket:a,attentionKind:d,hasQuestion:g}=r;if(a!=="needs-attention"&&a!=="failed"||!r.topLevel||r.isBackground||S(e,r.id))continue;const k=g?n[r.id]:void 0,f=d?B(e.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":d??void 0;s.push({workspaceId:o,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),c=!0}const l=t[o];l&&P(l.attention)&&(s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",attention:l.attention,message:null,sinceTs:l.raisedAtTs}),c=!0),F.has(b(i))&&!c&&s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,o)=>C(o)-C(i))}),Ge=u.createSelector(e=>{const t=fe.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:W(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),pe={total:0,completed:0,inProgress:0};function b(e){const t=$(e.displayStatus)?e.displayStatus:"not_started";return Z(t)??"not_started"}const F=new Set(["wait","blocked","failed"]);function ke(e,t,n){if(t==="failed"){const i=n.find(c=>c.bucket==="failed"&&!S(e,c.id)),o=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof o=="string"&&o.length>0?o:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!S(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const o=e.hud.questionsByAgentId[i.id];if(o?.question)return{kind:"question",text:o.question}}for(const i of["blocker","discussion"])for(const o of s){if(o.attentionKind!==i)continue;const c=e.agentSessions?.byAgentId[o.id],l=B(c)?.reason;if(l)return{kind:i,text:l}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function Ae(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",o=s.specialist==="spec-writer";if(i!==o)return i?-1:1;const c=t(n)-t(s);if(c!==0)return c;const l=H(n),r=H(s);return l!==r?r-l:n.id<s.id?-1:n.id>s.id?1:0}}function Se(e,t){const n=new Set(e.map(r=>r.id)),s=new Map,i=[];for(const r of e){const a=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(a){const d=s.get(a)??[];d.push(r),s.set(a,d)}else i.push(r)}i.sort(t);for(const r of s.values())r.sort(t);const o=[],c=new Set,l=(r,a,d)=>{if(!c.has(r.id)){c.add(r.id),o.push({info:r,depth:a,parentAgentId:d});for(const g of s.get(r.id)??[])l(g,a+1,r.id)}};for(const r of i)l(r,0,null);for(const r of e)l(r,0,null);return o}function h(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?B(n)?.kind??null:null,o=n?j.select(e,t.id)||typeof n.status=="string"&&R(n.status):R(t.status),c=n?v(typeof n.status=="string"?n.status:t.status):null,l=!!n&&c!=="failed"&&c!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?l&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":V.select(e,t.id)?a="running":o?a="idle":a=v(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":v(t.status);const d=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!d&&!K(s,d.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function U(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function S(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function me(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=z(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
1
+ import{N as L,f as G,an as j,ak as V,au as Q,o as X,c as z}from"./Df2ohObb.js";import{G9 as u,mx as _,Gi as N,ba as O,W as Y,mj as B,pU as P,mw as W,qe as $,jp as Z,qc as R,GB as v,pD as J,fs as q,pV as x,Y as ee,b8 as te,g as ne}from"./BL_sVoge.js";import{s as K,ac as se}from"./CE7ZtQHh.js";const oe=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function ie(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!L(t))return!0}const n=G(e);return oe.some(s=>n.startsWith(s))}const re=1440*60*1e3;function ae(e){let t=null;for(const n of e){if(ie({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ce=50,le=20;function E(e,t){return e===null||t!==null&&t>e?t:e}async function _e(e,t){let n,s=null;for(let i=0;i<le;i++){const o=await e({limit:ce,nextToken:n});if(!o.ok)return null;const c=o.items;s===null&&c.length>0&&(s=c[c.length-1].id);const l=t?.newestId!=null?c.findIndex(a=>a.id===t.newestId):-1,r=ae(l>=0?c.slice(l+1):c);if(l>=0)return{latest:E(r,t?.latest??null),newestId:s};if(r!==null)return{latest:E(r,t?.latest??null),newestId:s};if(typeof o.nextToken!="string")return{latest:null,newestId:s};n=o.nextToken}return{latest:t?.latest??null,newestId:s}}function ue(e,t){return e!=null&&e<=t&&e>t-re}const y=new Map;function de(e){return y.has(e)}function Be(e){return y.get(e)}function We(e){y.set(e.agentId,e)}function De(e){y.delete(e)}u.createSelector(e=>e.hud.active);u.createSelector(e=>e.hud.feed);u.createSelector(e=>e.hud.usage);u.createSelector(e=>e.hud.usageError);const Re=u.createSelector(e=>e.hud.rateHistory),Ee=u.createSelector(e=>_(e.workspace.workspaces)),Ce=u.createSelector(e=>{const t=e.hud.usage?.totals;return t?N(t):0}),He=u.createSelector(e=>e.hud.burnRatePerMin),Ne=u.createSelector(e=>e.hud.burnTrend),Pe=u.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,o=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&o?o.split(".",1)[0]??o:null}}),qe=u.createSelector(e=>e.hud.gridFilter);u.createSelector(e=>e.hud.attentionByWorkspaceId);const xe=u.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!K(s,n.messageId)}),Ke=u.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ge(e,t){return t[String(e.id)]??e.displayStatus}const A=u.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return _(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ge(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!de(n.id))}const Fe=u.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of A.select(e))for(const s of I(n))t[h(e,s).bucket]+=1;return t}),Ue=u.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of D.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),fe=u.createSelector(e=>{const t={};for(const n of A.select(e))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function C(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const Le=u.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of A.select(e)){const o=String(i.id);let c=!1;for(const r of w(i,e)){const{bucket:a,attentionKind:d,hasQuestion:g}=r;if(a!=="needs-attention"&&a!=="failed"||!r.topLevel||r.isBackground||S(e,r.id))continue;const k=g?n[r.id]:void 0,f=d?B(e.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":d??void 0;s.push({workspaceId:o,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),c=!0}const l=t[o];l&&P(l.attention)&&(s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",attention:l.attention,message:null,sinceTs:l.raisedAtTs}),c=!0),F.has(b(i))&&!c&&s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,o)=>C(o)-C(i))}),Ge=u.createSelector(e=>{const t=fe.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:W(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),pe={total:0,completed:0,inProgress:0};function b(e){const t=$(e.displayStatus)?e.displayStatus:"not_started";return Z(t)??"not_started"}const F=new Set(["wait","blocked","failed"]);function ke(e,t,n){if(t==="failed"){const i=n.find(c=>c.bucket==="failed"&&!S(e,c.id)),o=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof o=="string"&&o.length>0?o:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!S(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const o=e.hud.questionsByAgentId[i.id];if(o?.question)return{kind:"question",text:o.question}}for(const i of["blocker","discussion"])for(const o of s){if(o.attentionKind!==i)continue;const c=e.agentSessions?.byAgentId[o.id],l=B(c)?.reason;if(l)return{kind:i,text:l}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function Ae(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",o=s.specialist==="spec-writer";if(i!==o)return i?-1:1;const c=t(n)-t(s);if(c!==0)return c;const l=H(n),r=H(s);return l!==r?r-l:n.id<s.id?-1:n.id>s.id?1:0}}function Se(e,t){const n=new Set(e.map(r=>r.id)),s=new Map,i=[];for(const r of e){const a=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(a){const d=s.get(a)??[];d.push(r),s.set(a,d)}else i.push(r)}i.sort(t);for(const r of s.values())r.sort(t);const o=[],c=new Set,l=(r,a,d)=>{if(!c.has(r.id)){c.add(r.id),o.push({info:r,depth:a,parentAgentId:d});for(const g of s.get(r.id)??[])l(g,a+1,r.id)}};for(const r of i)l(r,0,null);for(const r of e)l(r,0,null);return o}function h(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?B(n)?.kind??null:null,o=n?j.select(e,t.id)||typeof n.status=="string"&&R(n.status):R(t.status),c=n?v(typeof n.status=="string"?n.status:t.status):null,l=!!n&&c!=="failed"&&c!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?l&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":V.select(e,t.id)?a="running":o?a="idle":a=v(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":v(t.status);const d=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!d&&!K(s,d.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function U(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function S(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function me(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=z(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
2
2
  `)?X(t)||null:t:null}}}function w(e,t){const n=I(e),s=new Map(n.map(o=>[o.id,h(t,o)]));return Se(n,Ae(s)).map(({info:o,depth:c,parentAgentId:l})=>{const r=t.agentSessions?.byAgentId[o.id],a=U(o,r),{bucket:d,attentionKind:g,hasQuestion:k}=s.get(o.id)??h(t,o),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:o.id,name:o.name,bucket:d,lastActivityTs:o.lastActivity??null,line:me(Q.select(t,o.id)),parentAgentId:l,depth:c,treePrefix:"",topLevel:q(a)==="topLevel",isBackground:J(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function he(e){const t=new Set;for(const i of e)for(const o of i.waitingForAgentIds)t.add(o);const n=i=>m.has(i.bucket)||i.isWaitingForAgents||t.has(i.id);return e.filter((i,o)=>{if(n(i))return!0;for(let c=o+1;c<e.length&&!(e[c].depth<=i.depth);c++)if(n(e[c]))return!0;return!1}).map((i,o,c)=>{if(i.depth===0)return{...i,treePrefix:""};let l=!0;for(let r=o+1;r<c.length&&!(c[r].depth<i.depth);r++)if(c[r].depth===i.depth){l=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(l?"└─":"├─")}})}const D=u.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=se.select(e);return A.select(e).map(s=>{const i=String(s.id),o=n.indexOf(i),c=t[i]?.attention??(typeof s.attention=="string"&&x(s.attention)?s.attention:null),l=w(s,e),r=b(s),a=e.tokenUsage?.byWorkspaceId[i]?.totals,d=e.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:c,isUnread:c===ee,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:ke(e,r,l),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:o===-1?null:o,tasks:d?{total:d.total,completed:d.completed,inProgress:d.inProgress}:pe,tokens:a?N(a):0,agents:he(l)}})}),M=4;function ye(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||q(U(n,s))!=="topLevel"?!1:!S(e,n.id)}const Ie=u.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of A.select(e)){const i=String(s.id),o=new Map,c=(f,p)=>{const T=o.get(f)??[];T.includes(p)||T.push(p),o.set(f,T)},r=I(s).filter(f=>ye(e,i,f));for(const f of r){const p=h(e,f);p.bucket==="failed"?c("failed",f.name):p.hasQuestion?c("question",f.name):p.attentionKind==="blocker"?c("blocker",f.name):p.attentionKind==="discussion"&&c("discussion",f.name),p.isRunning&&c("running",f.name)}const a=b(s);a==="failed"&&!o.has("failed")&&o.set("failed",[]),a==="blocked"&&!o.has("blocker")&&o.set("blocker",[]),a==="wait"&&!o.has("question")&&!o.has("blocker")&&!o.has("discussion")&&o.set("needs_input",[]);const d=n[i]?.attention??(typeof s.attention=="string"&&x(s.attention)?s.attention:null);d==="review_required"&&o.set("review",[]),d==="unread"&&o.set("unread",[]),s.activity==="agent_running"&&!o.has("running")&&o.set("running",[]);const g=te.flatMap(f=>{const p=o.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>M;t[i]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,M-1):g,hiddenCategoryCount:k?g.length-(M-1):0}}return t});u.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of A.select(e)){let i=!1;for(const l of w(s,e))l.topLevel&&!l.isBackground&&!S(e,l.id)&&(l.bucket==="failed"||l.attentionKind!==null||l.hasQuestion)&&(n+=1,i=!0);const o=t[String(s.id)],c=o!==void 0&&P(o.attention);c&&(n+=1),F.has(b(s))&&!i&&!c&&(n+=1)}return n});function be(e,t,n,s){const i=s.slice().sort((r,a)=>a.createdAt-r.createdAt);for(const r of i){const d=e.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof d=="string"&&d.trim().length>0)return d}const o=e.workspaceNotes?.byWorkspaceId[t]?.notes,c=o?W(o,n):void 0,l=c?.content||c?.contentPreview;return typeof l=="string"&&l.trim().length>0?l:null}const je=u.createSelector((e,t)=>{const n=D.select(e).find(a=>a.workspaceId===t);if(!n)return null;const s=W(e.workspace.workspaces,t),i=s?w(s,e):[],o=new Map(i.map(a=>[a.id,a])),c=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},l=e.workspaceTasks?.byWorkspaceId[t],r=l?_(l.tasks).filter(a=>a.status!=="cancelled").map(a=>{const d=Object.values(c[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:d.map(g=>o.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?be(e,t,a.id,d):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:i.filter(a=>m.has(a.bucket)),idleAgents:i.filter(a=>!m.has(a.bucket))}}),we=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Te(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Ve=u.createSelector(e=>{const t=D.select(e),n=Ie.select(e),s=new Map(A.select(e).map(o=>[String(o.id),o])),i={action:[],unread:[],active:[]};for(const o of t){const c=s.get(o.workspaceId);if(!c||c.id===ne||!ue(e.hud.dockConversationAtByWorkspaceId[o.workspaceId],e.hud.dockRecencyNow))continue;const l=n[o.workspaceId],r=l?.categories??[],a=r.some(f=>we.has(f.category)),d=o.isUnread,g=r.some(f=>f.category==="running"),k=a?"action":d?"unread":"active";i[k].push({workspace:c,badgeKind:Te(l),priorityGroup:k,isUnread:d,isRunning:g,isWaiting:o.isWaiting})}return[...i.action,...i.unread,...i.active].sort((o,c)=>e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]||String(o.workspace.id).localeCompare(String(c.workspace.id)))}),Qe=u.createSelector(e=>e.hud.dockPlacement),Xe=u.createSelector(e=>e.hud.dockPlacementError),ze=u.createSelector(e=>e.hud.dockFocusRequest),Ye=u.createSelector(e=>e.hud.dockDragStartResult),$e=u.createSelector(e=>e.hud.dockResizeStartResult),Ze=u.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError}));export{Ue as A,Ie as B,We as C,ie as a,Ye as b,ze as c,Ze as d,Qe as e,Xe as f,Be as g,$e as h,de as i,Ve as j,xe as k,Fe as l,Le as m,He as n,Ne as o,Ge as p,qe as q,De as r,_e as s,Re as t,Pe as u,Ke as v,je as w,Ce as x,D as y,Ee as z};
@@ -1,4 +1,4 @@
1
- import{f as p,bC as C,c4 as H,aN as B,a0 as q,aX as G,a6 as U,c2 as j,aO as K}from"./BejAw64w.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
1
+ import{f as p,bC as C,c4 as H,aN as B,a0 as q,aX as G,a6 as U,c2 as j,aO as K}from"./CobcHKt3.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
2
2
  `),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=B(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};