@selvajs/selva 4.3.5 → 4.5.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 (1266) hide show
  1. package/build/client/_app/immutable/assets/0.fkooa_RK.css +1 -0
  2. package/build/client/_app/immutable/assets/0.fkooa_RK.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.fkooa_RK.css.gz +0 -0
  4. package/build/client/_app/immutable/assets/rhino3dm.BI8ESrUA.wasm +0 -0
  5. package/build/client/_app/immutable/assets/rhino3dm.BI8ESrUA.wasm.br +0 -0
  6. package/build/client/_app/immutable/assets/rhino3dm.BI8ESrUA.wasm.gz +0 -0
  7. package/build/client/_app/immutable/chunks/-xEd7dwr.js +35 -0
  8. package/build/client/_app/immutable/chunks/-xEd7dwr.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/-xEd7dwr.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/13pdkq-i.js +1 -0
  11. package/build/client/_app/immutable/chunks/13pdkq-i.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/13pdkq-i.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/2BnY_oab.js +1 -0
  14. package/build/client/_app/immutable/chunks/2BnY_oab.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/2BnY_oab.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/4WJ3PVN5.js +1 -0
  17. package/build/client/_app/immutable/chunks/4WJ3PVN5.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/4WJ3PVN5.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/5h7wo9xN.js +1 -0
  20. package/build/client/_app/immutable/chunks/5h7wo9xN.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/5h7wo9xN.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/B3KcsPFR.js +1 -0
  23. package/build/client/_app/immutable/chunks/B3KcsPFR.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/B3KcsPFR.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/B48NJnzU.js +1 -0
  26. package/build/client/_app/immutable/chunks/B48NJnzU.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/B48NJnzU.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/B5HD-6Ib.js +1 -0
  29. package/build/client/_app/immutable/chunks/B5HD-6Ib.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/B5HD-6Ib.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/BH9oGrlA.js +1 -0
  32. package/build/client/_app/immutable/chunks/BH9oGrlA.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/BH9oGrlA.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/BHzbkLpq.js +1 -0
  35. package/build/client/_app/immutable/chunks/BHzbkLpq.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/BHzbkLpq.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/BKZ_D8Qd.js +1 -0
  38. package/build/client/_app/immutable/chunks/BKZ_D8Qd.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/BKZ_D8Qd.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/BMNUAT2D.js +1 -0
  41. package/build/client/_app/immutable/chunks/BMNUAT2D.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/BMNUAT2D.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/BNs1__IY.js +1 -0
  44. package/build/client/_app/immutable/chunks/BNs1__IY.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/BNs1__IY.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/BUqheMDA.js +1 -0
  47. package/build/client/_app/immutable/chunks/BUqheMDA.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/BUqheMDA.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/Ba74WbdD.js +1 -0
  50. package/build/client/_app/immutable/chunks/Ba74WbdD.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/Ba74WbdD.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/Bex2dy3F.js +1 -0
  53. package/build/client/_app/immutable/chunks/Bex2dy3F.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/Bex2dy3F.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/BfraRswf.js +1 -0
  56. package/build/client/_app/immutable/chunks/BfraRswf.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/BfraRswf.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/BjB88iwt.js +1 -0
  59. package/build/client/_app/immutable/chunks/BjB88iwt.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/BjB88iwt.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/BoqXamYe.js +1 -0
  62. package/build/client/_app/immutable/chunks/BoqXamYe.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/BoqXamYe.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/BsZHa2Wi.js +1 -0
  65. package/build/client/_app/immutable/chunks/BsZHa2Wi.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/BsZHa2Wi.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/C-j7zMFr.js +1 -0
  68. package/build/client/_app/immutable/chunks/C-j7zMFr.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/C-j7zMFr.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/CBjt6cm5.js +1 -0
  71. package/build/client/_app/immutable/chunks/CBjt6cm5.js.br +1 -0
  72. package/build/client/_app/immutable/chunks/CBjt6cm5.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/CE8BcsFf.js +1 -0
  74. package/build/client/_app/immutable/chunks/CE8BcsFf.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/CE8BcsFf.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/CJPg7PqR.js +1 -0
  77. package/build/client/_app/immutable/chunks/CJPg7PqR.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/CJPg7PqR.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/CO55fzTt.js +1 -0
  80. package/build/client/_app/immutable/chunks/CO55fzTt.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/CO55fzTt.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/COSBQK9i.js +1 -0
  83. package/build/client/_app/immutable/chunks/COSBQK9i.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/COSBQK9i.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/COWz2et1.js +1 -0
  86. package/build/client/_app/immutable/chunks/COWz2et1.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/COWz2et1.js.gz +0 -0
  88. package/build/client/_app/immutable/chunks/CQerFpzT.js +1 -0
  89. package/build/client/_app/immutable/chunks/CQerFpzT.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/CQerFpzT.js.gz +0 -0
  91. package/build/client/_app/immutable/chunks/Cauzi832.js +1 -0
  92. package/build/client/_app/immutable/chunks/Cauzi832.js.br +0 -0
  93. package/build/client/_app/immutable/chunks/Cauzi832.js.gz +0 -0
  94. package/build/client/_app/immutable/chunks/CcBbOJ-v.js +1 -0
  95. package/build/client/_app/immutable/chunks/CcBbOJ-v.js.br +2 -0
  96. package/build/client/_app/immutable/chunks/CcBbOJ-v.js.gz +0 -0
  97. package/build/client/_app/immutable/chunks/Ch5nD1rA.js +1 -0
  98. package/build/client/_app/immutable/chunks/Ch5nD1rA.js.br +0 -0
  99. package/build/client/_app/immutable/chunks/Ch5nD1rA.js.gz +0 -0
  100. package/build/client/_app/immutable/chunks/Ckd6DpGW.js +1 -0
  101. package/build/client/_app/immutable/chunks/Ckd6DpGW.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/Ckd6DpGW.js.gz +0 -0
  103. package/build/client/_app/immutable/chunks/Cpd8PqU3.js +1 -0
  104. package/build/client/_app/immutable/chunks/Cpd8PqU3.js.br +0 -0
  105. package/build/client/_app/immutable/chunks/Cpd8PqU3.js.gz +0 -0
  106. package/build/client/_app/immutable/chunks/CwEiVMBL.js +1 -0
  107. package/build/client/_app/immutable/chunks/CwEiVMBL.js.br +0 -0
  108. package/build/client/_app/immutable/chunks/CwEiVMBL.js.gz +0 -0
  109. package/build/client/_app/immutable/chunks/D9MTzuwb.js +1 -0
  110. package/build/client/_app/immutable/chunks/D9MTzuwb.js.br +0 -0
  111. package/build/client/_app/immutable/chunks/D9MTzuwb.js.gz +0 -0
  112. package/build/client/_app/immutable/chunks/D9Y6MiT8.js +9 -0
  113. package/build/client/_app/immutable/chunks/D9Y6MiT8.js.br +0 -0
  114. package/build/client/_app/immutable/chunks/D9Y6MiT8.js.gz +0 -0
  115. package/build/client/_app/immutable/chunks/DApsykQI.js +1 -0
  116. package/build/client/_app/immutable/chunks/DApsykQI.js.br +0 -0
  117. package/build/client/_app/immutable/chunks/DApsykQI.js.gz +0 -0
  118. package/build/client/_app/immutable/chunks/DC8WqQE0.js +1 -0
  119. package/build/client/_app/immutable/chunks/DC8WqQE0.js.br +0 -0
  120. package/build/client/_app/immutable/chunks/DC8WqQE0.js.gz +0 -0
  121. package/build/client/_app/immutable/chunks/DCgyaAAq.js +1 -0
  122. package/build/client/_app/immutable/chunks/DCgyaAAq.js.br +0 -0
  123. package/build/client/_app/immutable/chunks/DCgyaAAq.js.gz +0 -0
  124. package/build/client/_app/immutable/chunks/DFnVpznB.js +1 -0
  125. package/build/client/_app/immutable/chunks/DFnVpznB.js.br +4 -0
  126. package/build/client/_app/immutable/chunks/DFnVpznB.js.gz +0 -0
  127. package/build/client/_app/immutable/chunks/DH_OLMrQ.js +1 -0
  128. package/build/client/_app/immutable/chunks/DH_OLMrQ.js.br +0 -0
  129. package/build/client/_app/immutable/chunks/DH_OLMrQ.js.gz +0 -0
  130. package/build/client/_app/immutable/chunks/DU8tQv0c.js +1 -0
  131. package/build/client/_app/immutable/chunks/DU8tQv0c.js.br +0 -0
  132. package/build/client/_app/immutable/chunks/DU8tQv0c.js.gz +0 -0
  133. package/build/client/_app/immutable/chunks/DUpVdSFf.js +1 -0
  134. package/build/client/_app/immutable/chunks/DUpVdSFf.js.br +0 -0
  135. package/build/client/_app/immutable/chunks/DUpVdSFf.js.gz +0 -0
  136. package/build/client/_app/immutable/chunks/D_C_YIH8.js +1 -0
  137. package/build/client/_app/immutable/chunks/D_C_YIH8.js.br +0 -0
  138. package/build/client/_app/immutable/chunks/D_C_YIH8.js.gz +0 -0
  139. package/build/client/_app/immutable/chunks/Db5P7BwC.js +64 -0
  140. package/build/client/_app/immutable/chunks/Db5P7BwC.js.br +0 -0
  141. package/build/client/_app/immutable/chunks/Db5P7BwC.js.gz +0 -0
  142. package/build/client/_app/immutable/chunks/DfcDRMtE.js +1 -0
  143. package/build/client/_app/immutable/chunks/DfcDRMtE.js.br +0 -0
  144. package/build/client/_app/immutable/chunks/DfcDRMtE.js.gz +0 -0
  145. package/build/client/_app/immutable/chunks/DnURu9OT.js +1 -0
  146. package/build/client/_app/immutable/chunks/DnURu9OT.js.br +0 -0
  147. package/build/client/_app/immutable/chunks/DnURu9OT.js.gz +0 -0
  148. package/build/client/_app/immutable/chunks/DsuMOTav.js +2 -0
  149. package/build/client/_app/immutable/chunks/DsuMOTav.js.br +0 -0
  150. package/build/client/_app/immutable/chunks/DsuMOTav.js.gz +0 -0
  151. package/build/client/_app/immutable/chunks/Dtx1M6QG.js +1 -0
  152. package/build/client/_app/immutable/chunks/Dtx1M6QG.js.br +0 -0
  153. package/build/client/_app/immutable/chunks/Dtx1M6QG.js.gz +0 -0
  154. package/build/client/_app/immutable/chunks/DuHtWI31.js +1 -0
  155. package/build/client/_app/immutable/chunks/DuHtWI31.js.br +0 -0
  156. package/build/client/_app/immutable/chunks/DuHtWI31.js.gz +0 -0
  157. package/build/client/_app/immutable/chunks/Dw6fzgfW.js +1 -0
  158. package/build/client/_app/immutable/chunks/Dw6fzgfW.js.br +0 -0
  159. package/build/client/_app/immutable/chunks/Dw6fzgfW.js.gz +0 -0
  160. package/build/client/_app/immutable/chunks/DzNzLgOO.js +1 -0
  161. package/build/client/_app/immutable/chunks/DzNzLgOO.js.br +0 -0
  162. package/build/client/_app/immutable/chunks/DzNzLgOO.js.gz +0 -0
  163. package/build/client/_app/immutable/chunks/E7F5LllG.js +1 -0
  164. package/build/client/_app/immutable/chunks/E7F5LllG.js.br +0 -0
  165. package/build/client/_app/immutable/chunks/E7F5LllG.js.gz +0 -0
  166. package/build/client/_app/immutable/chunks/FdBsYR_f.js +1 -0
  167. package/build/client/_app/immutable/chunks/FdBsYR_f.js.br +0 -0
  168. package/build/client/_app/immutable/chunks/FdBsYR_f.js.gz +0 -0
  169. package/build/client/_app/immutable/chunks/NPsDidaV.js +1 -0
  170. package/build/client/_app/immutable/chunks/NPsDidaV.js.br +0 -0
  171. package/build/client/_app/immutable/chunks/NPsDidaV.js.gz +0 -0
  172. package/build/client/_app/immutable/chunks/OVtUuDzp.js +1 -0
  173. package/build/client/_app/immutable/chunks/OVtUuDzp.js.br +0 -0
  174. package/build/client/_app/immutable/chunks/OVtUuDzp.js.gz +0 -0
  175. package/build/client/_app/immutable/chunks/Qf_Lg02h.js +1 -0
  176. package/build/client/_app/immutable/chunks/Qf_Lg02h.js.br +0 -0
  177. package/build/client/_app/immutable/chunks/Qf_Lg02h.js.gz +0 -0
  178. package/build/client/_app/immutable/chunks/RmXOMQTe.js +1 -0
  179. package/build/client/_app/immutable/chunks/RmXOMQTe.js.br +0 -0
  180. package/build/client/_app/immutable/chunks/RmXOMQTe.js.gz +0 -0
  181. package/build/client/_app/immutable/chunks/U_alzAUv.js +3 -0
  182. package/build/client/_app/immutable/chunks/U_alzAUv.js.br +0 -0
  183. package/build/client/_app/immutable/chunks/U_alzAUv.js.gz +0 -0
  184. package/build/client/_app/immutable/chunks/X4d9Q9UP.js +1 -0
  185. package/build/client/_app/immutable/chunks/X4d9Q9UP.js.br +0 -0
  186. package/build/client/_app/immutable/chunks/X4d9Q9UP.js.gz +0 -0
  187. package/build/client/_app/immutable/chunks/atM6maCg.js +1 -0
  188. package/build/client/_app/immutable/chunks/atM6maCg.js.br +0 -0
  189. package/build/client/_app/immutable/chunks/atM6maCg.js.gz +0 -0
  190. package/build/client/_app/immutable/chunks/qxoHibue.js +1 -0
  191. package/build/client/_app/immutable/chunks/qxoHibue.js.br +0 -0
  192. package/build/client/_app/immutable/chunks/qxoHibue.js.gz +0 -0
  193. package/build/client/_app/immutable/entry/app.DXOixdTQ.js +2 -0
  194. package/build/client/_app/immutable/entry/app.DXOixdTQ.js.br +0 -0
  195. package/build/client/_app/immutable/entry/app.DXOixdTQ.js.gz +0 -0
  196. package/build/client/_app/immutable/entry/start.lHsRDqJ_.js +1 -0
  197. package/build/client/_app/immutable/entry/start.lHsRDqJ_.js.br +2 -0
  198. package/build/client/_app/immutable/entry/start.lHsRDqJ_.js.gz +0 -0
  199. package/build/client/_app/immutable/nodes/0.B0UCbyvV.js +1 -0
  200. package/build/client/_app/immutable/nodes/0.B0UCbyvV.js.br +0 -0
  201. package/build/client/_app/immutable/nodes/0.B0UCbyvV.js.gz +0 -0
  202. package/build/client/_app/immutable/nodes/1.Cgpx1yHy.js +1 -0
  203. package/build/client/_app/immutable/nodes/1.Cgpx1yHy.js.br +0 -0
  204. package/build/client/_app/immutable/nodes/1.Cgpx1yHy.js.gz +0 -0
  205. package/build/client/_app/immutable/nodes/10.Ct49OwC1.js +3 -0
  206. package/build/client/_app/immutable/nodes/10.Ct49OwC1.js.br +0 -0
  207. package/build/client/_app/immutable/nodes/10.Ct49OwC1.js.gz +0 -0
  208. package/build/client/_app/immutable/nodes/11.BIaqG9xz.js +2 -0
  209. package/build/client/_app/immutable/nodes/11.BIaqG9xz.js.br +0 -0
  210. package/build/client/_app/immutable/nodes/11.BIaqG9xz.js.gz +0 -0
  211. package/build/client/_app/immutable/nodes/12.BqHQ_pQ5.js +1 -0
  212. package/build/client/_app/immutable/nodes/12.BqHQ_pQ5.js.br +0 -0
  213. package/build/client/_app/immutable/nodes/12.BqHQ_pQ5.js.gz +0 -0
  214. package/build/client/_app/immutable/nodes/13.ByWkldPP.js +2 -0
  215. package/build/client/_app/immutable/nodes/13.ByWkldPP.js.br +0 -0
  216. package/build/client/_app/immutable/nodes/13.ByWkldPP.js.gz +0 -0
  217. package/build/client/_app/immutable/nodes/14.87fRSA-Y.js +2 -0
  218. package/build/client/_app/immutable/nodes/14.87fRSA-Y.js.br +0 -0
  219. package/build/client/_app/immutable/nodes/14.87fRSA-Y.js.gz +0 -0
  220. package/build/client/_app/immutable/nodes/15.B2tLGWDu.js +13 -0
  221. package/build/client/_app/immutable/nodes/15.B2tLGWDu.js.br +0 -0
  222. package/build/client/_app/immutable/nodes/15.B2tLGWDu.js.gz +0 -0
  223. package/build/client/_app/immutable/nodes/16.DWG3CLUv.js +6 -0
  224. package/build/client/_app/immutable/nodes/16.DWG3CLUv.js.br +0 -0
  225. package/build/client/_app/immutable/nodes/16.DWG3CLUv.js.gz +0 -0
  226. package/build/client/_app/immutable/nodes/17.CgiETa37.js +2 -0
  227. package/build/client/_app/immutable/nodes/17.CgiETa37.js.br +0 -0
  228. package/build/client/_app/immutable/nodes/17.CgiETa37.js.gz +0 -0
  229. package/build/client/_app/immutable/nodes/19.DO2ja5iW.js +2 -0
  230. package/build/client/_app/immutable/nodes/19.DO2ja5iW.js.br +0 -0
  231. package/build/client/_app/immutable/nodes/19.DO2ja5iW.js.gz +0 -0
  232. package/build/client/_app/immutable/nodes/2.DIAYMP4_.js +1 -0
  233. package/build/client/_app/immutable/nodes/2.DIAYMP4_.js.br +0 -0
  234. package/build/client/_app/immutable/nodes/2.DIAYMP4_.js.gz +0 -0
  235. package/build/client/_app/immutable/nodes/20.DYgQYcr-.js +5021 -0
  236. package/build/client/_app/immutable/nodes/20.DYgQYcr-.js.br +0 -0
  237. package/build/client/_app/immutable/nodes/20.DYgQYcr-.js.gz +0 -0
  238. package/build/client/_app/immutable/nodes/21.CTwryTPC.js +6 -0
  239. package/build/client/_app/immutable/nodes/21.CTwryTPC.js.br +0 -0
  240. package/build/client/_app/immutable/nodes/21.CTwryTPC.js.gz +0 -0
  241. package/build/client/_app/immutable/nodes/23.uUN6jlSq.js +16 -0
  242. package/build/client/_app/immutable/nodes/23.uUN6jlSq.js.br +0 -0
  243. package/build/client/_app/immutable/nodes/23.uUN6jlSq.js.gz +0 -0
  244. package/build/client/_app/immutable/nodes/24.cDDvPQLh.js +6 -0
  245. package/build/client/_app/immutable/nodes/24.cDDvPQLh.js.br +0 -0
  246. package/build/client/_app/immutable/nodes/24.cDDvPQLh.js.gz +0 -0
  247. package/build/client/_app/immutable/nodes/25.DQ1u0u88.js +1 -0
  248. package/build/client/_app/immutable/nodes/25.DQ1u0u88.js.br +0 -0
  249. package/build/client/_app/immutable/nodes/25.DQ1u0u88.js.gz +0 -0
  250. package/build/client/_app/immutable/nodes/26.Ds_gf_O9.js +3 -0
  251. package/build/client/_app/immutable/nodes/26.Ds_gf_O9.js.br +0 -0
  252. package/build/client/_app/immutable/nodes/26.Ds_gf_O9.js.gz +0 -0
  253. package/build/client/_app/immutable/nodes/27.lHQ_8tDM.js +4 -0
  254. package/build/client/_app/immutable/nodes/27.lHQ_8tDM.js.br +0 -0
  255. package/build/client/_app/immutable/nodes/27.lHQ_8tDM.js.gz +0 -0
  256. package/build/client/_app/immutable/nodes/28.DZO_WZjq.js +4 -0
  257. package/build/client/_app/immutable/nodes/28.DZO_WZjq.js.br +0 -0
  258. package/build/client/_app/immutable/nodes/28.DZO_WZjq.js.gz +0 -0
  259. package/build/client/_app/immutable/nodes/29.BBkvtbbm.js +2 -0
  260. package/build/client/_app/immutable/nodes/29.BBkvtbbm.js.br +0 -0
  261. package/build/client/_app/immutable/nodes/29.BBkvtbbm.js.gz +0 -0
  262. package/build/client/_app/immutable/nodes/3.Clu5JbAY.js +1 -0
  263. package/build/client/_app/immutable/nodes/3.Clu5JbAY.js.br +0 -0
  264. package/build/client/_app/immutable/nodes/3.Clu5JbAY.js.gz +0 -0
  265. package/build/client/_app/immutable/nodes/30.CunrYTKW.js +2 -0
  266. package/build/client/_app/immutable/nodes/30.CunrYTKW.js.br +0 -0
  267. package/build/client/_app/immutable/nodes/30.CunrYTKW.js.gz +0 -0
  268. package/build/client/_app/immutable/nodes/31.CaWXI_qm.js +2 -0
  269. package/build/client/_app/immutable/nodes/31.CaWXI_qm.js.br +0 -0
  270. package/build/client/_app/immutable/nodes/31.CaWXI_qm.js.gz +0 -0
  271. package/build/client/_app/immutable/nodes/32.Drmb2nxJ.js +3 -0
  272. package/build/client/_app/immutable/nodes/32.Drmb2nxJ.js.br +0 -0
  273. package/build/client/_app/immutable/nodes/32.Drmb2nxJ.js.gz +0 -0
  274. package/build/client/_app/immutable/nodes/5.CwEyn2eq.js +1 -0
  275. package/build/client/_app/immutable/nodes/5.CwEyn2eq.js.br +1 -0
  276. package/build/client/_app/immutable/nodes/5.CwEyn2eq.js.gz +0 -0
  277. package/build/client/_app/immutable/nodes/6.Cybg-4zL.js +1 -0
  278. package/build/client/_app/immutable/nodes/6.Cybg-4zL.js.br +0 -0
  279. package/build/client/_app/immutable/nodes/6.Cybg-4zL.js.gz +0 -0
  280. package/build/client/_app/immutable/nodes/7.U-nwvAMy.js +1 -0
  281. package/build/client/_app/immutable/nodes/7.U-nwvAMy.js.br +0 -0
  282. package/build/client/_app/immutable/nodes/7.U-nwvAMy.js.gz +0 -0
  283. package/build/client/_app/immutable/nodes/8.Ds78IC3h.js +2 -0
  284. package/build/client/_app/immutable/nodes/8.Ds78IC3h.js.br +0 -0
  285. package/build/client/_app/immutable/nodes/8.Ds78IC3h.js.gz +0 -0
  286. package/build/client/_app/immutable/nodes/9.B4Dh5-cJ.js +1 -0
  287. package/build/client/_app/immutable/nodes/9.B4Dh5-cJ.js.br +0 -0
  288. package/build/client/_app/immutable/nodes/9.B4Dh5-cJ.js.gz +0 -0
  289. package/build/client/_app/version.json +1 -1
  290. package/build/client/_app/version.json.br +0 -0
  291. package/build/client/_app/version.json.gz +0 -0
  292. package/build/server/chunks/0-DhT7yxre.js +55 -0
  293. package/build/server/chunks/0-DhT7yxre.js.map +1 -0
  294. package/build/server/chunks/1-B3qAsEuf.js +9 -0
  295. package/build/server/chunks/1-B3qAsEuf.js.map +1 -0
  296. package/build/server/chunks/10-YMBFU3cy.js +222 -0
  297. package/build/server/chunks/10-YMBFU3cy.js.map +1 -0
  298. package/build/server/chunks/11-DEH3nbKm.js +59 -0
  299. package/build/server/chunks/11-DEH3nbKm.js.map +1 -0
  300. package/build/server/chunks/12-Bra8rAOu.js +52 -0
  301. package/build/server/chunks/12-Bra8rAOu.js.map +1 -0
  302. package/build/server/chunks/13-D_djeolg.js +57 -0
  303. package/build/server/chunks/13-D_djeolg.js.map +1 -0
  304. package/build/server/chunks/14-B1A-3AIw.js +100 -0
  305. package/build/server/chunks/14-B1A-3AIw.js.map +1 -0
  306. package/build/server/chunks/15-KF7YQWQR.js +45 -0
  307. package/build/server/chunks/15-KF7YQWQR.js.map +1 -0
  308. package/build/server/chunks/16-27Ug2Gl4.js +85 -0
  309. package/build/server/chunks/16-27Ug2Gl4.js.map +1 -0
  310. package/build/server/chunks/17-B9EWzdfY.js +9 -0
  311. package/build/server/chunks/17-B9EWzdfY.js.map +1 -0
  312. package/build/server/chunks/18-Lwe4TEuf.js +74 -0
  313. package/build/server/chunks/18-Lwe4TEuf.js.map +1 -0
  314. package/build/server/chunks/19-DFpWVk9Q.js +94 -0
  315. package/build/server/chunks/19-DFpWVk9Q.js.map +1 -0
  316. package/build/server/chunks/2-psSdZh8h.js +43 -0
  317. package/build/server/chunks/2-psSdZh8h.js.map +1 -0
  318. package/build/server/chunks/20-B3RVyzHq.js +218 -0
  319. package/build/server/chunks/20-B3RVyzHq.js.map +1 -0
  320. package/build/server/chunks/21-DjJlF-s8.js +83 -0
  321. package/build/server/chunks/21-DjJlF-s8.js.map +1 -0
  322. package/build/server/chunks/23-Cv-iXsup.js +137 -0
  323. package/build/server/chunks/23-Cv-iXsup.js.map +1 -0
  324. package/build/server/chunks/24-C9N_eRrr.js +145 -0
  325. package/build/server/chunks/24-C9N_eRrr.js.map +1 -0
  326. package/build/server/chunks/25-DL8VLuLg.js +51 -0
  327. package/build/server/chunks/25-DL8VLuLg.js.map +1 -0
  328. package/build/server/chunks/26-Dia3LwgX.js +9 -0
  329. package/build/server/chunks/26-Dia3LwgX.js.map +1 -0
  330. package/build/server/chunks/27-HUwDEbMb.js +57 -0
  331. package/build/server/chunks/27-HUwDEbMb.js.map +1 -0
  332. package/build/server/chunks/28-l4BuMkhA.js +69 -0
  333. package/build/server/chunks/28-l4BuMkhA.js.map +1 -0
  334. package/build/server/chunks/29-DefkuWIf.js +55 -0
  335. package/build/server/chunks/29-DefkuWIf.js.map +1 -0
  336. package/build/server/chunks/3-FhxHeIS3.js +9 -0
  337. package/build/server/chunks/3-FhxHeIS3.js.map +1 -0
  338. package/build/server/chunks/30-BC7V7mS7.js +57 -0
  339. package/build/server/chunks/30-BC7V7mS7.js.map +1 -0
  340. package/build/server/chunks/31-DJIq1bRM.js +42 -0
  341. package/build/server/chunks/31-DJIq1bRM.js.map +1 -0
  342. package/build/server/chunks/32-fvzIyQyk.js +34 -0
  343. package/build/server/chunks/32-fvzIyQyk.js.map +1 -0
  344. package/build/server/chunks/5-BSabZ7B0.js +32 -0
  345. package/build/server/chunks/5-BSabZ7B0.js.map +1 -0
  346. package/build/server/chunks/6-BDAMjeLc.js +40 -0
  347. package/build/server/chunks/6-BDAMjeLc.js.map +1 -0
  348. package/build/server/chunks/7-C5uuYI8Y.js +19 -0
  349. package/build/server/chunks/7-C5uuYI8Y.js.map +1 -0
  350. package/build/server/chunks/8-Yg3bHJY8.js +130 -0
  351. package/build/server/chunks/8-Yg3bHJY8.js.map +1 -0
  352. package/build/server/chunks/9-BOWShy6C.js +48 -0
  353. package/build/server/chunks/9-BOWShy6C.js.map +1 -0
  354. package/build/server/chunks/AppHeader-vae2Doza.js +271 -0
  355. package/build/server/chunks/AppHeader-vae2Doza.js.map +1 -0
  356. package/build/server/chunks/DefinitionCard-RTmYlhOH.js +268 -0
  357. package/build/server/chunks/DefinitionCard-RTmYlhOH.js.map +1 -0
  358. package/build/server/chunks/ErrorScreen-d8Z8hQ1U.js +131 -0
  359. package/build/server/chunks/ErrorScreen-d8Z8hQ1U.js.map +1 -0
  360. package/build/server/chunks/FilterableDropdown-0UzIjcXJ.js +61 -0
  361. package/build/server/chunks/FilterableDropdown-0UzIjcXJ.js.map +1 -0
  362. package/build/server/chunks/SideNav-QbExg2MG.js +87 -0
  363. package/build/server/chunks/SideNav-QbExg2MG.js.map +1 -0
  364. package/build/server/chunks/StatCard-CRzbit9Z.js +50 -0
  365. package/build/server/chunks/StatCard-CRzbit9Z.js.map +1 -0
  366. package/build/server/chunks/UserChip-BPLEgzMp.js +1220 -0
  367. package/build/server/chunks/UserChip-BPLEgzMp.js.map +1 -0
  368. package/build/server/chunks/_error.svelte-DCuOEylf.js +29 -0
  369. package/build/server/chunks/_error.svelte-DCuOEylf.js.map +1 -0
  370. package/build/server/chunks/_error.svelte-DKd7sQzn.js +27 -0
  371. package/build/server/chunks/_error.svelte-DKd7sQzn.js.map +1 -0
  372. package/build/server/chunks/_layout.svelte-D5GiNGr6.js +108 -0
  373. package/build/server/chunks/_layout.svelte-D5GiNGr6.js.map +1 -0
  374. package/build/server/chunks/_layout.svelte-VX4FX0S-.js +795 -0
  375. package/build/server/chunks/_layout.svelte-VX4FX0S-.js.map +1 -0
  376. package/build/server/chunks/_layout.svelte-_enyp5QE.js +45 -0
  377. package/build/server/chunks/_layout.svelte-_enyp5QE.js.map +1 -0
  378. package/build/server/chunks/_layout.svelte-aflz8r6I.js +155 -0
  379. package/build/server/chunks/_layout.svelte-aflz8r6I.js.map +1 -0
  380. package/build/server/chunks/_page.svelte-B8iLZ6Zi.js +119 -0
  381. package/build/server/chunks/_page.svelte-B8iLZ6Zi.js.map +1 -0
  382. package/build/server/chunks/_page.svelte-BDLD6pXj.js +11756 -0
  383. package/build/server/chunks/_page.svelte-BDLD6pXj.js.map +1 -0
  384. package/build/server/chunks/_page.svelte-BHM2cdfQ.js +119 -0
  385. package/build/server/chunks/_page.svelte-BHM2cdfQ.js.map +1 -0
  386. package/build/server/chunks/_page.svelte-BYPZuYIR.js +276 -0
  387. package/build/server/chunks/_page.svelte-BYPZuYIR.js.map +1 -0
  388. package/build/server/chunks/_page.svelte-Big1I6tL.js +274 -0
  389. package/build/server/chunks/_page.svelte-Big1I6tL.js.map +1 -0
  390. package/build/server/chunks/_page.svelte-Bqwz1thf.js +146 -0
  391. package/build/server/chunks/_page.svelte-Bqwz1thf.js.map +1 -0
  392. package/build/server/chunks/_page.svelte-By_vYfbZ.js +525 -0
  393. package/build/server/chunks/_page.svelte-By_vYfbZ.js.map +1 -0
  394. package/build/server/chunks/_page.svelte-CD9Uvy6Y.js +595 -0
  395. package/build/server/chunks/_page.svelte-CD9Uvy6Y.js.map +1 -0
  396. package/build/server/chunks/_page.svelte-CIO9nnXR.js +557 -0
  397. package/build/server/chunks/_page.svelte-CIO9nnXR.js.map +1 -0
  398. package/build/server/chunks/_page.svelte-CaoALwvK.js +453 -0
  399. package/build/server/chunks/_page.svelte-CaoALwvK.js.map +1 -0
  400. package/build/server/chunks/_page.svelte-CjvLz8T1.js +906 -0
  401. package/build/server/chunks/_page.svelte-CjvLz8T1.js.map +1 -0
  402. package/build/server/chunks/_page.svelte-DIn0gOqM.js +609 -0
  403. package/build/server/chunks/_page.svelte-DIn0gOqM.js.map +1 -0
  404. package/build/server/chunks/_page.svelte-DKPG7AbM.js +113 -0
  405. package/build/server/chunks/_page.svelte-DKPG7AbM.js.map +1 -0
  406. package/build/server/chunks/_page.svelte-DM3XizZi.js +3858 -0
  407. package/build/server/chunks/_page.svelte-DM3XizZi.js.map +1 -0
  408. package/build/server/chunks/_page.svelte-DamuIhBm.js +168 -0
  409. package/build/server/chunks/_page.svelte-DamuIhBm.js.map +1 -0
  410. package/build/server/chunks/_page.svelte-DcbxsxZM.js +330 -0
  411. package/build/server/chunks/_page.svelte-DcbxsxZM.js.map +1 -0
  412. package/build/server/chunks/_page.svelte-DcqwTr6T.js +250 -0
  413. package/build/server/chunks/_page.svelte-DcqwTr6T.js.map +1 -0
  414. package/build/server/chunks/_page.svelte-DtVw2EYT.js +56 -0
  415. package/build/server/chunks/_page.svelte-DtVw2EYT.js.map +1 -0
  416. package/build/server/chunks/_page.svelte-DyTTCbrh.js +83 -0
  417. package/build/server/chunks/_page.svelte-DyTTCbrh.js.map +1 -0
  418. package/build/server/chunks/_page.svelte-FDFRMnmB.js +333 -0
  419. package/build/server/chunks/_page.svelte-FDFRMnmB.js.map +1 -0
  420. package/build/server/chunks/_page.svelte-Ut97NZhy.js +714 -0
  421. package/build/server/chunks/_page.svelte-Ut97NZhy.js.map +1 -0
  422. package/build/server/chunks/_page.svelte-ZxjqrKH8.js +72 -0
  423. package/build/server/chunks/_page.svelte-ZxjqrKH8.js.map +1 -0
  424. package/build/server/chunks/_page.svelte-jwU-46Sj.js +301 -0
  425. package/build/server/chunks/_page.svelte-jwU-46Sj.js.map +1 -0
  426. package/build/server/chunks/_page.svelte-lAupF47l.js +424 -0
  427. package/build/server/chunks/_page.svelte-lAupF47l.js.map +1 -0
  428. package/build/server/chunks/_server.ts-13_Xvown.js +32 -0
  429. package/build/server/chunks/_server.ts-13_Xvown.js.map +1 -0
  430. package/build/server/chunks/_server.ts-6F3Ly0cY.js +88 -0
  431. package/build/server/chunks/_server.ts-6F3Ly0cY.js.map +1 -0
  432. package/build/server/chunks/_server.ts-AtxnIvMI.js +398 -0
  433. package/build/server/chunks/_server.ts-AtxnIvMI.js.map +1 -0
  434. package/build/server/chunks/_server.ts-B9uegfmw.js +75 -0
  435. package/build/server/chunks/_server.ts-B9uegfmw.js.map +1 -0
  436. package/build/server/chunks/_server.ts-BQetLy9N.js +39 -0
  437. package/build/server/chunks/_server.ts-BQetLy9N.js.map +1 -0
  438. package/build/server/chunks/_server.ts-BZH3tqYX.js +490 -0
  439. package/build/server/chunks/_server.ts-BZH3tqYX.js.map +1 -0
  440. package/build/server/chunks/_server.ts-Be15h83H.js +84 -0
  441. package/build/server/chunks/_server.ts-Be15h83H.js.map +1 -0
  442. package/build/server/chunks/_server.ts-BgVWq0qd.js +41 -0
  443. package/build/server/chunks/_server.ts-BgVWq0qd.js.map +1 -0
  444. package/build/server/chunks/_server.ts-Bke_K04J.js +105 -0
  445. package/build/server/chunks/_server.ts-Bke_K04J.js.map +1 -0
  446. package/build/server/chunks/_server.ts-BlVwuKrl.js +111 -0
  447. package/build/server/chunks/_server.ts-BlVwuKrl.js.map +1 -0
  448. package/build/server/chunks/_server.ts-BmjNVAmP.js +60 -0
  449. package/build/server/chunks/_server.ts-BmjNVAmP.js.map +1 -0
  450. package/build/server/chunks/_server.ts-BwMyXo0z.js +65 -0
  451. package/build/server/chunks/_server.ts-BwMyXo0z.js.map +1 -0
  452. package/build/server/chunks/_server.ts-CF65FKS6.js +63 -0
  453. package/build/server/chunks/_server.ts-CF65FKS6.js.map +1 -0
  454. package/build/server/chunks/_server.ts-CMHRHdCD.js +83 -0
  455. package/build/server/chunks/_server.ts-CMHRHdCD.js.map +1 -0
  456. package/build/server/chunks/_server.ts-Ca_OJJFC.js +39 -0
  457. package/build/server/chunks/_server.ts-Ca_OJJFC.js.map +1 -0
  458. package/build/server/chunks/_server.ts-Cc-srcRk.js +33 -0
  459. package/build/server/chunks/_server.ts-Cc-srcRk.js.map +1 -0
  460. package/build/server/chunks/_server.ts-Cg1WgIQn.js +31 -0
  461. package/build/server/chunks/_server.ts-Cg1WgIQn.js.map +1 -0
  462. package/build/server/chunks/_server.ts-Cg6LtEov.js +36 -0
  463. package/build/server/chunks/_server.ts-Cg6LtEov.js.map +1 -0
  464. package/build/server/chunks/_server.ts-CpsGzKQC.js +83 -0
  465. package/build/server/chunks/_server.ts-CpsGzKQC.js.map +1 -0
  466. package/build/server/chunks/_server.ts-D2Qb9pui.js +51 -0
  467. package/build/server/chunks/_server.ts-D2Qb9pui.js.map +1 -0
  468. package/build/server/chunks/_server.ts-DEBzt_W2.js +86 -0
  469. package/build/server/chunks/_server.ts-DEBzt_W2.js.map +1 -0
  470. package/build/server/chunks/_server.ts-DRlwVsIx.js +162 -0
  471. package/build/server/chunks/_server.ts-DRlwVsIx.js.map +1 -0
  472. package/build/server/chunks/_server.ts-DVOhTvBf.js +108 -0
  473. package/build/server/chunks/_server.ts-DVOhTvBf.js.map +1 -0
  474. package/build/server/chunks/_server.ts-DW-Oh4l9.js +31 -0
  475. package/build/server/chunks/_server.ts-DW-Oh4l9.js.map +1 -0
  476. package/build/server/chunks/_server.ts-DamGRKop.js +101 -0
  477. package/build/server/chunks/_server.ts-DamGRKop.js.map +1 -0
  478. package/build/server/chunks/_server.ts-DethCmgs.js +77 -0
  479. package/build/server/chunks/_server.ts-DethCmgs.js.map +1 -0
  480. package/build/server/chunks/_server.ts-DlN3WSBT.js +39 -0
  481. package/build/server/chunks/_server.ts-DlN3WSBT.js.map +1 -0
  482. package/build/server/chunks/_server.ts-DvBucq0r.js +40 -0
  483. package/build/server/chunks/_server.ts-DvBucq0r.js.map +1 -0
  484. package/build/server/chunks/_server.ts-Dz4bsmph.js +60 -0
  485. package/build/server/chunks/_server.ts-Dz4bsmph.js.map +1 -0
  486. package/build/server/chunks/_server.ts-DzA4EZf_.js +43 -0
  487. package/build/server/chunks/_server.ts-DzA4EZf_.js.map +1 -0
  488. package/build/server/chunks/_server.ts-L9PpKy16.js +41 -0
  489. package/build/server/chunks/_server.ts-L9PpKy16.js.map +1 -0
  490. package/build/server/chunks/_server.ts-Oi8Qzh0h.js +44 -0
  491. package/build/server/chunks/_server.ts-Oi8Qzh0h.js.map +1 -0
  492. package/build/server/chunks/_server.ts-PKbOblCf.js +96 -0
  493. package/build/server/chunks/_server.ts-PKbOblCf.js.map +1 -0
  494. package/build/server/chunks/_server.ts-XAkApigL.js +80 -0
  495. package/build/server/chunks/_server.ts-XAkApigL.js.map +1 -0
  496. package/build/server/chunks/_server.ts-bhjqtBoy.js +37 -0
  497. package/build/server/chunks/_server.ts-bhjqtBoy.js.map +1 -0
  498. package/build/server/chunks/_server.ts-cHSphefi.js +50 -0
  499. package/build/server/chunks/_server.ts-cHSphefi.js.map +1 -0
  500. package/build/server/chunks/_server.ts-d6YTPmkY.js +40 -0
  501. package/build/server/chunks/_server.ts-d6YTPmkY.js.map +1 -0
  502. package/build/server/chunks/_server.ts-kTCuqLDl.js +73 -0
  503. package/build/server/chunks/_server.ts-kTCuqLDl.js.map +1 -0
  504. package/build/server/chunks/_server.ts-kbr9HYg5.js +72 -0
  505. package/build/server/chunks/_server.ts-kbr9HYg5.js.map +1 -0
  506. package/build/server/chunks/access.server-CAPd1-c2.js +408 -0
  507. package/build/server/chunks/access.server-CAPd1-c2.js.map +1 -0
  508. package/build/server/chunks/activity-Dmfe6yjx.js +18 -0
  509. package/build/server/chunks/activity-Dmfe6yjx.js.map +1 -0
  510. package/build/server/chunks/alert-description-BNqu-OG5.js +59 -0
  511. package/build/server/chunks/alert-description-BNqu-OG5.js.map +1 -0
  512. package/build/server/chunks/api-errors-BhVEeWTV.js +101 -0
  513. package/build/server/chunks/api-errors-BhVEeWTV.js.map +1 -0
  514. package/build/server/chunks/arrow-left-KOVWDB5k.js +14 -0
  515. package/build/server/chunks/arrow-left-KOVWDB5k.js.map +1 -0
  516. package/build/server/chunks/arrow-right-D0bOY6-5.js +14 -0
  517. package/build/server/chunks/arrow-right-D0bOY6-5.js.map +1 -0
  518. package/build/server/chunks/auth-bootstrap.server-DKc9-3PR.js +99 -0
  519. package/build/server/chunks/auth-bootstrap.server-DKc9-3PR.js.map +1 -0
  520. package/build/server/chunks/badge-DIEbxzcl.js +50 -0
  521. package/build/server/chunks/badge-DIEbxzcl.js.map +1 -0
  522. package/build/server/chunks/bootHealth.server-IPXOSqqQ.js +58 -0
  523. package/build/server/chunks/bootHealth.server-IPXOSqqQ.js.map +1 -0
  524. package/build/server/chunks/building-2-DFvNRZpq.js +22 -0
  525. package/build/server/chunks/building-2-DFvNRZpq.js.map +1 -0
  526. package/build/server/chunks/button-DPLE4Wc8.js +73 -0
  527. package/build/server/chunks/button-DPLE4Wc8.js.map +1 -0
  528. package/build/server/chunks/card-content-BlxX1RCO.js +46 -0
  529. package/build/server/chunks/card-content-BlxX1RCO.js.map +1 -0
  530. package/build/server/chunks/card-description-Z3TpzjmK.js +26 -0
  531. package/build/server/chunks/card-description-Z3TpzjmK.js.map +1 -0
  532. package/build/server/chunks/card-title-CdR5nQ-b.js +46 -0
  533. package/build/server/chunks/card-title-CdR5nQ-b.js.map +1 -0
  534. package/build/server/chunks/check-382jBCB9.js +11 -0
  535. package/build/server/chunks/check-382jBCB9.js.map +1 -0
  536. package/build/server/chunks/chevron-down-D5-hWbt-.js +11 -0
  537. package/build/server/chunks/chevron-down-D5-hWbt-.js.map +1 -0
  538. package/build/server/chunks/chevron-right-BqxmmxHL.js +11 -0
  539. package/build/server/chunks/chevron-right-BqxmmxHL.js.map +1 -0
  540. package/build/server/chunks/chevron-up-StZ3cnZ8.js +11 -0
  541. package/build/server/chunks/chevron-up-StZ3cnZ8.js.map +1 -0
  542. package/build/server/chunks/circle-DgRVKHBX.js +11 -0
  543. package/build/server/chunks/circle-DgRVKHBX.js.map +1 -0
  544. package/build/server/chunks/circle-alert-DVGjYRbM.js +18 -0
  545. package/build/server/chunks/circle-alert-DVGjYRbM.js.map +1 -0
  546. package/build/server/chunks/computeLimits-DPO6NbLd.js +27 -0
  547. package/build/server/chunks/computeLimits-DPO6NbLd.js.map +1 -0
  548. package/build/server/chunks/context-BJnJL8ES.js +141 -0
  549. package/build/server/chunks/context-BJnJL8ES.js.map +1 -0
  550. package/build/server/chunks/copy-ifB2TUP_.js +29 -0
  551. package/build/server/chunks/copy-ifB2TUP_.js.map +1 -0
  552. package/build/server/chunks/dialog-description-DJ0KQ8Zk.js +523 -0
  553. package/build/server/chunks/dialog-description-DJ0KQ8Zk.js.map +1 -0
  554. package/build/server/chunks/dialog-footer-CuTfgUTD.js +62 -0
  555. package/build/server/chunks/dialog-footer-CuTfgUTD.js.map +1 -0
  556. package/build/server/chunks/folder-kanban-pqeOGmPr.js +21 -0
  557. package/build/server/chunks/folder-kanban-pqeOGmPr.js.map +1 -0
  558. package/build/server/chunks/folder-open-Cs60gLjJ.js +18 -0
  559. package/build/server/chunks/folder-open-Cs60gLjJ.js.map +1 -0
  560. package/build/server/chunks/folders-u0VAZ6yv.js +24 -0
  561. package/build/server/chunks/folders-u0VAZ6yv.js.map +1 -0
  562. package/build/server/chunks/footerContext.svelte-DM5rvLUk.js +531 -0
  563. package/build/server/chunks/footerContext.svelte-DM5rvLUk.js.map +1 -0
  564. package/build/server/chunks/hooks.server-BEbVZKxO.js +225 -0
  565. package/build/server/chunks/hooks.server-BEbVZKxO.js.map +1 -0
  566. package/build/server/chunks/index2-DDc7DI9Y.js +430 -0
  567. package/build/server/chunks/index2-DDc7DI9Y.js.map +1 -0
  568. package/build/server/chunks/index3-BVw88ujT.js +4246 -0
  569. package/build/server/chunks/index3-BVw88ujT.js.map +1 -0
  570. package/build/server/chunks/index4-CCteFD1i.js +541 -0
  571. package/build/server/chunks/index4-CCteFD1i.js.map +1 -0
  572. package/build/server/chunks/input-BEmCftCF.js +53 -0
  573. package/build/server/chunks/input-BEmCftCF.js.map +1 -0
  574. package/build/server/chunks/label-D8oB1018.js +112 -0
  575. package/build/server/chunks/label-D8oB1018.js.map +1 -0
  576. package/build/server/chunks/link-2-D3b2vEpL.js +15 -0
  577. package/build/server/chunks/link-2-D3b2vEpL.js.map +1 -0
  578. package/build/server/chunks/mail-DZDbJkFt.js +17 -0
  579. package/build/server/chunks/mail-DZDbJkFt.js.map +1 -0
  580. package/build/server/chunks/minus-B7toCaYG.js +20 -0
  581. package/build/server/chunks/minus-B7toCaYG.js.map +1 -0
  582. package/build/server/chunks/noop-BGJY5rVY.js +270 -0
  583. package/build/server/chunks/noop-BGJY5rVY.js.map +1 -0
  584. package/build/server/chunks/package-MTlbeZ-4.js +29 -0
  585. package/build/server/chunks/package-MTlbeZ-4.js.map +1 -0
  586. package/build/server/chunks/permissions-compat.server-G174xsh6.js +19 -0
  587. package/build/server/chunks/permissions-compat.server-G174xsh6.js.map +1 -0
  588. package/build/server/chunks/permissions.server-zs4XAJCp.js +8 -0
  589. package/build/server/chunks/permissions.server-zs4XAJCp.js.map +1 -0
  590. package/build/server/chunks/plus-j_UY0EeU.js +11 -0
  591. package/build/server/chunks/plus-j_UY0EeU.js.map +1 -0
  592. package/build/server/chunks/providers.server-C3fQ7ZdV.js +4456 -0
  593. package/build/server/chunks/providers.server-C3fQ7ZdV.js.map +1 -0
  594. package/build/server/chunks/refresh-cw-B6mwsgBf.js +22 -0
  595. package/build/server/chunks/refresh-cw-B6mwsgBf.js.map +1 -0
  596. package/build/server/chunks/resolve.server-t1UmqtsG.js +50 -0
  597. package/build/server/chunks/resolve.server-t1UmqtsG.js.map +1 -0
  598. package/build/server/chunks/rotate-ccw-DChq5zhW.js +17 -0
  599. package/build/server/chunks/rotate-ccw-DChq5zhW.js.map +1 -0
  600. package/build/server/chunks/scroll-lock-NAQO_S1Y.js +2853 -0
  601. package/build/server/chunks/scroll-lock-NAQO_S1Y.js.map +1 -0
  602. package/build/server/chunks/scroll-text-Bi9gx_V4.js +21 -0
  603. package/build/server/chunks/scroll-text-Bi9gx_V4.js.map +1 -0
  604. package/build/server/chunks/server-LxtlHpuz.js +36 -0
  605. package/build/server/chunks/server-LxtlHpuz.js.map +1 -0
  606. package/build/server/chunks/settings-Cr5mYyBS.js +19 -0
  607. package/build/server/chunks/settings-Cr5mYyBS.js.map +1 -0
  608. package/build/server/chunks/shield-BSf8CVMT.js +18 -0
  609. package/build/server/chunks/shield-BSf8CVMT.js.map +1 -0
  610. package/build/server/chunks/shield-check-OpZRvDHN.js +19 -0
  611. package/build/server/chunks/shield-check-OpZRvDHN.js.map +1 -0
  612. package/build/server/chunks/star-KGWYAeYA.js +18 -0
  613. package/build/server/chunks/star-KGWYAeYA.js.map +1 -0
  614. package/build/server/chunks/textarea-DmyNBs20.js +559 -0
  615. package/build/server/chunks/textarea-DmyNBs20.js.map +1 -0
  616. package/build/server/chunks/trash-2-DmuR9br3.js +17 -0
  617. package/build/server/chunks/trash-2-DmuR9br3.js.map +1 -0
  618. package/build/server/chunks/triangle-alert-Dig9abwC.js +20 -0
  619. package/build/server/chunks/triangle-alert-Dig9abwC.js.map +1 -0
  620. package/build/server/chunks/user-plus-Jn4Z4v9g.js +16 -0
  621. package/build/server/chunks/user-plus-Jn4Z4v9g.js.map +1 -0
  622. package/build/server/chunks/users-BgwwwoIh.js +16 -0
  623. package/build/server/chunks/users-BgwwwoIh.js.map +1 -0
  624. package/build/server/chunks/utils2-BqfluBM6.js +50 -0
  625. package/build/server/chunks/utils2-BqfluBM6.js.map +1 -0
  626. package/build/server/chunks/utils3-Dv2HSd2-.js +80 -0
  627. package/build/server/chunks/utils3-Dv2HSd2-.js.map +1 -0
  628. package/build/server/chunks/x-B1q8Cpoy.js +14 -0
  629. package/build/server/chunks/x-B1q8Cpoy.js.map +1 -0
  630. package/build/server/index.js +2 -2
  631. package/build/server/index.js.map +1 -1
  632. package/build/server/manifest.js +71 -71
  633. package/build/server/manifest.js.map +1 -1
  634. package/package.json +9 -8
  635. package/templates/.env.example +11 -0
  636. package/build/client/_app/immutable/assets/0.-MS0dTYb.css +0 -1
  637. package/build/client/_app/immutable/assets/0.-MS0dTYb.css.br +0 -0
  638. package/build/client/_app/immutable/assets/0.-MS0dTYb.css.gz +0 -0
  639. package/build/client/_app/immutable/chunks/3Ah3Y6N9.js +0 -1
  640. package/build/client/_app/immutable/chunks/3Ah3Y6N9.js.br +0 -0
  641. package/build/client/_app/immutable/chunks/3Ah3Y6N9.js.gz +0 -0
  642. package/build/client/_app/immutable/chunks/B-Kuf-9K.js +0 -1
  643. package/build/client/_app/immutable/chunks/B-Kuf-9K.js.br +0 -0
  644. package/build/client/_app/immutable/chunks/B-Kuf-9K.js.gz +0 -0
  645. package/build/client/_app/immutable/chunks/B1z9if9B.js +0 -1
  646. package/build/client/_app/immutable/chunks/B1z9if9B.js.br +0 -0
  647. package/build/client/_app/immutable/chunks/B1z9if9B.js.gz +0 -0
  648. package/build/client/_app/immutable/chunks/B21bldal.js +0 -1
  649. package/build/client/_app/immutable/chunks/B21bldal.js.br +0 -0
  650. package/build/client/_app/immutable/chunks/B21bldal.js.gz +0 -0
  651. package/build/client/_app/immutable/chunks/B6_AR4oL.js +0 -1
  652. package/build/client/_app/immutable/chunks/B6_AR4oL.js.br +0 -0
  653. package/build/client/_app/immutable/chunks/B6_AR4oL.js.gz +0 -0
  654. package/build/client/_app/immutable/chunks/BEFa4rcT.js +0 -1
  655. package/build/client/_app/immutable/chunks/BEFa4rcT.js.br +0 -4
  656. package/build/client/_app/immutable/chunks/BEFa4rcT.js.gz +0 -0
  657. package/build/client/_app/immutable/chunks/BGIAOk5X.js +0 -1
  658. package/build/client/_app/immutable/chunks/BGIAOk5X.js.br +0 -0
  659. package/build/client/_app/immutable/chunks/BGIAOk5X.js.gz +0 -0
  660. package/build/client/_app/immutable/chunks/BHhjUaik.js +0 -1
  661. package/build/client/_app/immutable/chunks/BHhjUaik.js.br +0 -0
  662. package/build/client/_app/immutable/chunks/BHhjUaik.js.gz +0 -0
  663. package/build/client/_app/immutable/chunks/BIIXkPqf.js +0 -1
  664. package/build/client/_app/immutable/chunks/BIIXkPqf.js.br +0 -0
  665. package/build/client/_app/immutable/chunks/BIIXkPqf.js.gz +0 -0
  666. package/build/client/_app/immutable/chunks/BLZ195WY.js +0 -1
  667. package/build/client/_app/immutable/chunks/BLZ195WY.js.br +0 -0
  668. package/build/client/_app/immutable/chunks/BLZ195WY.js.gz +0 -0
  669. package/build/client/_app/immutable/chunks/BM8Ok6pJ.js +0 -1
  670. package/build/client/_app/immutable/chunks/BM8Ok6pJ.js.br +0 -0
  671. package/build/client/_app/immutable/chunks/BM8Ok6pJ.js.gz +0 -0
  672. package/build/client/_app/immutable/chunks/BOsr6E_d.js +0 -1
  673. package/build/client/_app/immutable/chunks/BOsr6E_d.js.br +0 -1
  674. package/build/client/_app/immutable/chunks/BOsr6E_d.js.gz +0 -0
  675. package/build/client/_app/immutable/chunks/BX0gN9mF.js +0 -1
  676. package/build/client/_app/immutable/chunks/BX0gN9mF.js.br +0 -0
  677. package/build/client/_app/immutable/chunks/BX0gN9mF.js.gz +0 -0
  678. package/build/client/_app/immutable/chunks/BaMCSMGs.js +0 -1
  679. package/build/client/_app/immutable/chunks/BaMCSMGs.js.br +0 -0
  680. package/build/client/_app/immutable/chunks/BaMCSMGs.js.gz +0 -0
  681. package/build/client/_app/immutable/chunks/Bg5E8RaK.js +0 -1
  682. package/build/client/_app/immutable/chunks/Bg5E8RaK.js.br +0 -0
  683. package/build/client/_app/immutable/chunks/Bg5E8RaK.js.gz +0 -0
  684. package/build/client/_app/immutable/chunks/BihI7LuH.js +0 -1
  685. package/build/client/_app/immutable/chunks/BihI7LuH.js.br +0 -0
  686. package/build/client/_app/immutable/chunks/BihI7LuH.js.gz +0 -0
  687. package/build/client/_app/immutable/chunks/Bma65zV8.js +0 -1
  688. package/build/client/_app/immutable/chunks/Bma65zV8.js.br +0 -0
  689. package/build/client/_app/immutable/chunks/Bma65zV8.js.gz +0 -0
  690. package/build/client/_app/immutable/chunks/BnzoF81W.js +0 -1
  691. package/build/client/_app/immutable/chunks/BnzoF81W.js.br +0 -1
  692. package/build/client/_app/immutable/chunks/BnzoF81W.js.gz +0 -0
  693. package/build/client/_app/immutable/chunks/BpQqe39G.js +0 -1
  694. package/build/client/_app/immutable/chunks/BpQqe39G.js.br +0 -0
  695. package/build/client/_app/immutable/chunks/BpQqe39G.js.gz +0 -0
  696. package/build/client/_app/immutable/chunks/BsKtJj5h.js +0 -1
  697. package/build/client/_app/immutable/chunks/BsKtJj5h.js.br +0 -0
  698. package/build/client/_app/immutable/chunks/BsKtJj5h.js.gz +0 -0
  699. package/build/client/_app/immutable/chunks/BtugGMaj.js +0 -1
  700. package/build/client/_app/immutable/chunks/BtugGMaj.js.br +0 -0
  701. package/build/client/_app/immutable/chunks/BtugGMaj.js.gz +0 -0
  702. package/build/client/_app/immutable/chunks/Buy2icyP.js +0 -9
  703. package/build/client/_app/immutable/chunks/Buy2icyP.js.br +0 -0
  704. package/build/client/_app/immutable/chunks/Buy2icyP.js.gz +0 -0
  705. package/build/client/_app/immutable/chunks/Bwn5lHBl.js +0 -1
  706. package/build/client/_app/immutable/chunks/Bwn5lHBl.js.br +0 -0
  707. package/build/client/_app/immutable/chunks/Bwn5lHBl.js.gz +0 -0
  708. package/build/client/_app/immutable/chunks/C3WxOOC9.js +0 -1
  709. package/build/client/_app/immutable/chunks/C3WxOOC9.js.br +0 -0
  710. package/build/client/_app/immutable/chunks/C3WxOOC9.js.gz +0 -0
  711. package/build/client/_app/immutable/chunks/CDmA5ezP.js +0 -1
  712. package/build/client/_app/immutable/chunks/CDmA5ezP.js.br +0 -0
  713. package/build/client/_app/immutable/chunks/CDmA5ezP.js.gz +0 -0
  714. package/build/client/_app/immutable/chunks/CEKDr1yG.js +0 -1
  715. package/build/client/_app/immutable/chunks/CEKDr1yG.js.br +0 -0
  716. package/build/client/_app/immutable/chunks/CEKDr1yG.js.gz +0 -0
  717. package/build/client/_app/immutable/chunks/CE_gxD9G.js +0 -1
  718. package/build/client/_app/immutable/chunks/CE_gxD9G.js.br +0 -0
  719. package/build/client/_app/immutable/chunks/CE_gxD9G.js.gz +0 -0
  720. package/build/client/_app/immutable/chunks/CEmcKzrr.js +0 -2
  721. package/build/client/_app/immutable/chunks/CEmcKzrr.js.br +0 -0
  722. package/build/client/_app/immutable/chunks/CEmcKzrr.js.gz +0 -0
  723. package/build/client/_app/immutable/chunks/CGKZc1Kf.js +0 -1
  724. package/build/client/_app/immutable/chunks/CGKZc1Kf.js.br +0 -0
  725. package/build/client/_app/immutable/chunks/CGKZc1Kf.js.gz +0 -0
  726. package/build/client/_app/immutable/chunks/CIHhLSqA.js +0 -1
  727. package/build/client/_app/immutable/chunks/CIHhLSqA.js.br +0 -0
  728. package/build/client/_app/immutable/chunks/CIHhLSqA.js.gz +0 -0
  729. package/build/client/_app/immutable/chunks/CNC_mCsM.js +0 -1
  730. package/build/client/_app/immutable/chunks/CNC_mCsM.js.br +0 -0
  731. package/build/client/_app/immutable/chunks/CNC_mCsM.js.gz +0 -0
  732. package/build/client/_app/immutable/chunks/CYyqq9B1.js +0 -1
  733. package/build/client/_app/immutable/chunks/CYyqq9B1.js.br +0 -0
  734. package/build/client/_app/immutable/chunks/CYyqq9B1.js.gz +0 -0
  735. package/build/client/_app/immutable/chunks/CeS0GhtF.js +0 -1
  736. package/build/client/_app/immutable/chunks/CeS0GhtF.js.br +0 -0
  737. package/build/client/_app/immutable/chunks/CeS0GhtF.js.gz +0 -0
  738. package/build/client/_app/immutable/chunks/CnXIg_dO.js +0 -1
  739. package/build/client/_app/immutable/chunks/CnXIg_dO.js.br +0 -0
  740. package/build/client/_app/immutable/chunks/CnXIg_dO.js.gz +0 -0
  741. package/build/client/_app/immutable/chunks/CqKeVIM6.js +0 -4108
  742. package/build/client/_app/immutable/chunks/CqKeVIM6.js.br +0 -0
  743. package/build/client/_app/immutable/chunks/CqKeVIM6.js.gz +0 -0
  744. package/build/client/_app/immutable/chunks/Cqb2-zYs.js +0 -1
  745. package/build/client/_app/immutable/chunks/Cqb2-zYs.js.br +0 -0
  746. package/build/client/_app/immutable/chunks/Cqb2-zYs.js.gz +0 -0
  747. package/build/client/_app/immutable/chunks/CumXBEVX.js +0 -1
  748. package/build/client/_app/immutable/chunks/CumXBEVX.js.br +0 -0
  749. package/build/client/_app/immutable/chunks/CumXBEVX.js.gz +0 -0
  750. package/build/client/_app/immutable/chunks/CzCTTv8Q.js +0 -1
  751. package/build/client/_app/immutable/chunks/CzCTTv8Q.js.br +0 -0
  752. package/build/client/_app/immutable/chunks/CzCTTv8Q.js.gz +0 -0
  753. package/build/client/_app/immutable/chunks/D-3pI9hp.js +0 -1
  754. package/build/client/_app/immutable/chunks/D-3pI9hp.js.br +0 -0
  755. package/build/client/_app/immutable/chunks/D-3pI9hp.js.gz +0 -0
  756. package/build/client/_app/immutable/chunks/D-Fls4-N.js +0 -1
  757. package/build/client/_app/immutable/chunks/D-Fls4-N.js.br +0 -0
  758. package/build/client/_app/immutable/chunks/D-Fls4-N.js.gz +0 -0
  759. package/build/client/_app/immutable/chunks/D1xkoVpc.js +0 -1
  760. package/build/client/_app/immutable/chunks/D1xkoVpc.js.br +0 -3
  761. package/build/client/_app/immutable/chunks/D1xkoVpc.js.gz +0 -0
  762. package/build/client/_app/immutable/chunks/DRpLcVdK.js +0 -1
  763. package/build/client/_app/immutable/chunks/DRpLcVdK.js.br +0 -0
  764. package/build/client/_app/immutable/chunks/DRpLcVdK.js.gz +0 -0
  765. package/build/client/_app/immutable/chunks/DYfK6Plb.js +0 -1
  766. package/build/client/_app/immutable/chunks/DYfK6Plb.js.br +0 -1
  767. package/build/client/_app/immutable/chunks/DYfK6Plb.js.gz +0 -0
  768. package/build/client/_app/immutable/chunks/DZM0bVcB.js +0 -1
  769. package/build/client/_app/immutable/chunks/DZM0bVcB.js.br +0 -0
  770. package/build/client/_app/immutable/chunks/DZM0bVcB.js.gz +0 -0
  771. package/build/client/_app/immutable/chunks/D_gPt7DB.js +0 -1
  772. package/build/client/_app/immutable/chunks/D_gPt7DB.js.br +0 -0
  773. package/build/client/_app/immutable/chunks/D_gPt7DB.js.gz +0 -0
  774. package/build/client/_app/immutable/chunks/DdEmEaOR.js +0 -1
  775. package/build/client/_app/immutable/chunks/DdEmEaOR.js.br +0 -0
  776. package/build/client/_app/immutable/chunks/DdEmEaOR.js.gz +0 -0
  777. package/build/client/_app/immutable/chunks/De-Sjn1V.js +0 -1
  778. package/build/client/_app/immutable/chunks/De-Sjn1V.js.br +0 -0
  779. package/build/client/_app/immutable/chunks/De-Sjn1V.js.gz +0 -0
  780. package/build/client/_app/immutable/chunks/DeMiewtM.js +0 -1
  781. package/build/client/_app/immutable/chunks/DeMiewtM.js.br +0 -0
  782. package/build/client/_app/immutable/chunks/DeMiewtM.js.gz +0 -0
  783. package/build/client/_app/immutable/chunks/DfbumCTS.js +0 -1
  784. package/build/client/_app/immutable/chunks/DfbumCTS.js.br +0 -0
  785. package/build/client/_app/immutable/chunks/DfbumCTS.js.gz +0 -0
  786. package/build/client/_app/immutable/chunks/Diyh8RG-.js +0 -1
  787. package/build/client/_app/immutable/chunks/Diyh8RG-.js.br +0 -0
  788. package/build/client/_app/immutable/chunks/Diyh8RG-.js.gz +0 -0
  789. package/build/client/_app/immutable/chunks/DkVLFJC2.js +0 -64
  790. package/build/client/_app/immutable/chunks/DkVLFJC2.js.br +0 -0
  791. package/build/client/_app/immutable/chunks/DkVLFJC2.js.gz +0 -0
  792. package/build/client/_app/immutable/chunks/Dl_x4ktn.js +0 -1
  793. package/build/client/_app/immutable/chunks/Dl_x4ktn.js.br +0 -0
  794. package/build/client/_app/immutable/chunks/Dl_x4ktn.js.gz +0 -0
  795. package/build/client/_app/immutable/chunks/Dn_lJm0y.js +0 -1
  796. package/build/client/_app/immutable/chunks/Dn_lJm0y.js.br +0 -0
  797. package/build/client/_app/immutable/chunks/Dn_lJm0y.js.gz +0 -0
  798. package/build/client/_app/immutable/chunks/DoPqAbzy.js +0 -3
  799. package/build/client/_app/immutable/chunks/DoPqAbzy.js.br +0 -0
  800. package/build/client/_app/immutable/chunks/DoPqAbzy.js.gz +0 -0
  801. package/build/client/_app/immutable/chunks/DqK2lhM-.js +0 -1
  802. package/build/client/_app/immutable/chunks/DqK2lhM-.js.br +0 -0
  803. package/build/client/_app/immutable/chunks/DqK2lhM-.js.gz +0 -0
  804. package/build/client/_app/immutable/chunks/Dr-qnmvi.js +0 -1
  805. package/build/client/_app/immutable/chunks/Dr-qnmvi.js.br +0 -0
  806. package/build/client/_app/immutable/chunks/Dr-qnmvi.js.gz +0 -0
  807. package/build/client/_app/immutable/chunks/DtFVCiwY.js +0 -1
  808. package/build/client/_app/immutable/chunks/DtFVCiwY.js.br +0 -0
  809. package/build/client/_app/immutable/chunks/DtFVCiwY.js.gz +0 -0
  810. package/build/client/_app/immutable/chunks/Q9Y439fs.js +0 -1
  811. package/build/client/_app/immutable/chunks/Q9Y439fs.js.br +0 -0
  812. package/build/client/_app/immutable/chunks/Q9Y439fs.js.gz +0 -0
  813. package/build/client/_app/immutable/chunks/Uv0-HWHq.js +0 -1
  814. package/build/client/_app/immutable/chunks/Uv0-HWHq.js.br +0 -0
  815. package/build/client/_app/immutable/chunks/Uv0-HWHq.js.gz +0 -0
  816. package/build/client/_app/immutable/chunks/cFjfoNla.js +0 -1
  817. package/build/client/_app/immutable/chunks/cFjfoNla.js.br +0 -0
  818. package/build/client/_app/immutable/chunks/cFjfoNla.js.gz +0 -0
  819. package/build/client/_app/immutable/chunks/snZK0J5H.js +0 -1
  820. package/build/client/_app/immutable/chunks/snZK0J5H.js.br +0 -0
  821. package/build/client/_app/immutable/chunks/snZK0J5H.js.gz +0 -0
  822. package/build/client/_app/immutable/chunks/vyYztzrZ.js +0 -1
  823. package/build/client/_app/immutable/chunks/vyYztzrZ.js.br +0 -0
  824. package/build/client/_app/immutable/chunks/vyYztzrZ.js.gz +0 -0
  825. package/build/client/_app/immutable/chunks/wRsUbPEe.js +0 -1
  826. package/build/client/_app/immutable/chunks/wRsUbPEe.js.br +0 -0
  827. package/build/client/_app/immutable/chunks/wRsUbPEe.js.gz +0 -0
  828. package/build/client/_app/immutable/chunks/xQ1SsCxk.js +0 -1
  829. package/build/client/_app/immutable/chunks/xQ1SsCxk.js.br +0 -0
  830. package/build/client/_app/immutable/chunks/xQ1SsCxk.js.gz +0 -0
  831. package/build/client/_app/immutable/entry/app.09tvh6Se.js +0 -2
  832. package/build/client/_app/immutable/entry/app.09tvh6Se.js.br +0 -0
  833. package/build/client/_app/immutable/entry/app.09tvh6Se.js.gz +0 -0
  834. package/build/client/_app/immutable/entry/start.CdsoeaJo.js +0 -1
  835. package/build/client/_app/immutable/entry/start.CdsoeaJo.js.br +0 -2
  836. package/build/client/_app/immutable/entry/start.CdsoeaJo.js.gz +0 -0
  837. package/build/client/_app/immutable/nodes/0.Dr3zOYh5.js +0 -9
  838. package/build/client/_app/immutable/nodes/0.Dr3zOYh5.js.br +0 -0
  839. package/build/client/_app/immutable/nodes/0.Dr3zOYh5.js.gz +0 -0
  840. package/build/client/_app/immutable/nodes/1.BinGQMTR.js +0 -1
  841. package/build/client/_app/immutable/nodes/1.BinGQMTR.js.br +0 -0
  842. package/build/client/_app/immutable/nodes/1.BinGQMTR.js.gz +0 -0
  843. package/build/client/_app/immutable/nodes/10.lZeHcKpq.js +0 -3
  844. package/build/client/_app/immutable/nodes/10.lZeHcKpq.js.br +0 -0
  845. package/build/client/_app/immutable/nodes/10.lZeHcKpq.js.gz +0 -0
  846. package/build/client/_app/immutable/nodes/11.B3nd7eqm.js +0 -2
  847. package/build/client/_app/immutable/nodes/11.B3nd7eqm.js.br +0 -0
  848. package/build/client/_app/immutable/nodes/11.B3nd7eqm.js.gz +0 -0
  849. package/build/client/_app/immutable/nodes/12.C3AQ8jKc.js +0 -1
  850. package/build/client/_app/immutable/nodes/12.C3AQ8jKc.js.br +0 -0
  851. package/build/client/_app/immutable/nodes/12.C3AQ8jKc.js.gz +0 -0
  852. package/build/client/_app/immutable/nodes/13.BhyPMdJg.js +0 -2
  853. package/build/client/_app/immutable/nodes/13.BhyPMdJg.js.br +0 -0
  854. package/build/client/_app/immutable/nodes/13.BhyPMdJg.js.gz +0 -0
  855. package/build/client/_app/immutable/nodes/14.BCskMTTX.js +0 -2
  856. package/build/client/_app/immutable/nodes/14.BCskMTTX.js.br +0 -0
  857. package/build/client/_app/immutable/nodes/14.BCskMTTX.js.gz +0 -0
  858. package/build/client/_app/immutable/nodes/15.DFduRu8X.js +0 -13
  859. package/build/client/_app/immutable/nodes/15.DFduRu8X.js.br +0 -0
  860. package/build/client/_app/immutable/nodes/15.DFduRu8X.js.gz +0 -0
  861. package/build/client/_app/immutable/nodes/16.k2eOyLft.js +0 -6
  862. package/build/client/_app/immutable/nodes/16.k2eOyLft.js.br +0 -0
  863. package/build/client/_app/immutable/nodes/16.k2eOyLft.js.gz +0 -0
  864. package/build/client/_app/immutable/nodes/17.UOq3rPnW.js +0 -2
  865. package/build/client/_app/immutable/nodes/17.UOq3rPnW.js.br +0 -0
  866. package/build/client/_app/immutable/nodes/17.UOq3rPnW.js.gz +0 -0
  867. package/build/client/_app/immutable/nodes/19.BfnNfjHd.js +0 -2
  868. package/build/client/_app/immutable/nodes/19.BfnNfjHd.js.br +0 -0
  869. package/build/client/_app/immutable/nodes/19.BfnNfjHd.js.gz +0 -0
  870. package/build/client/_app/immutable/nodes/2.BVRyhmlu.js +0 -1
  871. package/build/client/_app/immutable/nodes/2.BVRyhmlu.js.br +0 -0
  872. package/build/client/_app/immutable/nodes/2.BVRyhmlu.js.gz +0 -0
  873. package/build/client/_app/immutable/nodes/20.BwMu_6dK.js +0 -11
  874. package/build/client/_app/immutable/nodes/20.BwMu_6dK.js.br +0 -0
  875. package/build/client/_app/immutable/nodes/20.BwMu_6dK.js.gz +0 -0
  876. package/build/client/_app/immutable/nodes/21.BlFRuNYB.js +0 -6
  877. package/build/client/_app/immutable/nodes/21.BlFRuNYB.js.br +0 -0
  878. package/build/client/_app/immutable/nodes/21.BlFRuNYB.js.gz +0 -0
  879. package/build/client/_app/immutable/nodes/23.lhoyDlwS.js +0 -16
  880. package/build/client/_app/immutable/nodes/23.lhoyDlwS.js.br +0 -0
  881. package/build/client/_app/immutable/nodes/23.lhoyDlwS.js.gz +0 -0
  882. package/build/client/_app/immutable/nodes/24.BHPSI0Zf.js +0 -6
  883. package/build/client/_app/immutable/nodes/24.BHPSI0Zf.js.br +0 -0
  884. package/build/client/_app/immutable/nodes/24.BHPSI0Zf.js.gz +0 -0
  885. package/build/client/_app/immutable/nodes/25.Boy7QQiW.js +0 -1
  886. package/build/client/_app/immutable/nodes/25.Boy7QQiW.js.br +0 -0
  887. package/build/client/_app/immutable/nodes/25.Boy7QQiW.js.gz +0 -0
  888. package/build/client/_app/immutable/nodes/26.JTwwV2O8.js +0 -3
  889. package/build/client/_app/immutable/nodes/26.JTwwV2O8.js.br +0 -0
  890. package/build/client/_app/immutable/nodes/26.JTwwV2O8.js.gz +0 -0
  891. package/build/client/_app/immutable/nodes/27.C1icpz7z.js +0 -4
  892. package/build/client/_app/immutable/nodes/27.C1icpz7z.js.br +0 -0
  893. package/build/client/_app/immutable/nodes/27.C1icpz7z.js.gz +0 -0
  894. package/build/client/_app/immutable/nodes/28.BJgC5M9K.js +0 -4
  895. package/build/client/_app/immutable/nodes/28.BJgC5M9K.js.br +0 -0
  896. package/build/client/_app/immutable/nodes/28.BJgC5M9K.js.gz +0 -0
  897. package/build/client/_app/immutable/nodes/29.D1pyBnax.js +0 -2
  898. package/build/client/_app/immutable/nodes/29.D1pyBnax.js.br +0 -0
  899. package/build/client/_app/immutable/nodes/29.D1pyBnax.js.gz +0 -0
  900. package/build/client/_app/immutable/nodes/3.CUC4G9Nh.js +0 -1
  901. package/build/client/_app/immutable/nodes/3.CUC4G9Nh.js.br +0 -0
  902. package/build/client/_app/immutable/nodes/3.CUC4G9Nh.js.gz +0 -0
  903. package/build/client/_app/immutable/nodes/30.D0ffyv91.js +0 -2
  904. package/build/client/_app/immutable/nodes/30.D0ffyv91.js.br +0 -0
  905. package/build/client/_app/immutable/nodes/30.D0ffyv91.js.gz +0 -0
  906. package/build/client/_app/immutable/nodes/31.SiZTd523.js +0 -2
  907. package/build/client/_app/immutable/nodes/31.SiZTd523.js.br +0 -0
  908. package/build/client/_app/immutable/nodes/31.SiZTd523.js.gz +0 -0
  909. package/build/client/_app/immutable/nodes/32.9Ta_FSIA.js +0 -3
  910. package/build/client/_app/immutable/nodes/32.9Ta_FSIA.js.br +0 -0
  911. package/build/client/_app/immutable/nodes/32.9Ta_FSIA.js.gz +0 -0
  912. package/build/client/_app/immutable/nodes/5.Ch3zJDwF.js +0 -1
  913. package/build/client/_app/immutable/nodes/5.Ch3zJDwF.js.br +0 -2
  914. package/build/client/_app/immutable/nodes/5.Ch3zJDwF.js.gz +0 -0
  915. package/build/client/_app/immutable/nodes/6.BMl8cugB.js +0 -1
  916. package/build/client/_app/immutable/nodes/6.BMl8cugB.js.br +0 -0
  917. package/build/client/_app/immutable/nodes/6.BMl8cugB.js.gz +0 -0
  918. package/build/client/_app/immutable/nodes/7.DKBYaDzG.js +0 -1
  919. package/build/client/_app/immutable/nodes/7.DKBYaDzG.js.br +0 -0
  920. package/build/client/_app/immutable/nodes/7.DKBYaDzG.js.gz +0 -0
  921. package/build/client/_app/immutable/nodes/8.oeqwCIb7.js +0 -2
  922. package/build/client/_app/immutable/nodes/8.oeqwCIb7.js.br +0 -0
  923. package/build/client/_app/immutable/nodes/8.oeqwCIb7.js.gz +0 -0
  924. package/build/client/_app/immutable/nodes/9.JvVEXEt0.js +0 -1
  925. package/build/client/_app/immutable/nodes/9.JvVEXEt0.js.br +0 -0
  926. package/build/client/_app/immutable/nodes/9.JvVEXEt0.js.gz +0 -0
  927. package/build/server/chunks/0-BGZb7GUr.js +0 -55
  928. package/build/server/chunks/0-BGZb7GUr.js.map +0 -1
  929. package/build/server/chunks/1-Bd5_Ktti.js +0 -9
  930. package/build/server/chunks/1-Bd5_Ktti.js.map +0 -1
  931. package/build/server/chunks/10-CoNR8vNf.js +0 -222
  932. package/build/server/chunks/10-CoNR8vNf.js.map +0 -1
  933. package/build/server/chunks/11-B8XsWabi.js +0 -59
  934. package/build/server/chunks/11-B8XsWabi.js.map +0 -1
  935. package/build/server/chunks/12-DVPsHnBz.js +0 -52
  936. package/build/server/chunks/12-DVPsHnBz.js.map +0 -1
  937. package/build/server/chunks/13-Dty8h7LU.js +0 -57
  938. package/build/server/chunks/13-Dty8h7LU.js.map +0 -1
  939. package/build/server/chunks/14-CcmFTDWx.js +0 -100
  940. package/build/server/chunks/14-CcmFTDWx.js.map +0 -1
  941. package/build/server/chunks/15-BCheyPjA.js +0 -45
  942. package/build/server/chunks/15-BCheyPjA.js.map +0 -1
  943. package/build/server/chunks/16-lCMAMYzW.js +0 -85
  944. package/build/server/chunks/16-lCMAMYzW.js.map +0 -1
  945. package/build/server/chunks/17-Buj0oOA7.js +0 -9
  946. package/build/server/chunks/17-Buj0oOA7.js.map +0 -1
  947. package/build/server/chunks/18-CM6a70dY.js +0 -74
  948. package/build/server/chunks/18-CM6a70dY.js.map +0 -1
  949. package/build/server/chunks/19-BHix_hIK.js +0 -94
  950. package/build/server/chunks/19-BHix_hIK.js.map +0 -1
  951. package/build/server/chunks/2-D8n52e0g.js +0 -43
  952. package/build/server/chunks/2-D8n52e0g.js.map +0 -1
  953. package/build/server/chunks/20-BZTRaWqF.js +0 -196
  954. package/build/server/chunks/20-BZTRaWqF.js.map +0 -1
  955. package/build/server/chunks/21-WEKNoho-.js +0 -83
  956. package/build/server/chunks/21-WEKNoho-.js.map +0 -1
  957. package/build/server/chunks/23-q81fbwUe.js +0 -137
  958. package/build/server/chunks/23-q81fbwUe.js.map +0 -1
  959. package/build/server/chunks/24-CLAHERAA.js +0 -145
  960. package/build/server/chunks/24-CLAHERAA.js.map +0 -1
  961. package/build/server/chunks/25-BzYQ8Zk-.js +0 -51
  962. package/build/server/chunks/25-BzYQ8Zk-.js.map +0 -1
  963. package/build/server/chunks/26-Bfl58Hw3.js +0 -9
  964. package/build/server/chunks/26-Bfl58Hw3.js.map +0 -1
  965. package/build/server/chunks/27-14n2oeiY.js +0 -57
  966. package/build/server/chunks/27-14n2oeiY.js.map +0 -1
  967. package/build/server/chunks/28-BYTHjf77.js +0 -69
  968. package/build/server/chunks/28-BYTHjf77.js.map +0 -1
  969. package/build/server/chunks/29-Uu9LAkQF.js +0 -55
  970. package/build/server/chunks/29-Uu9LAkQF.js.map +0 -1
  971. package/build/server/chunks/3-Czbm8V7y.js +0 -9
  972. package/build/server/chunks/3-Czbm8V7y.js.map +0 -1
  973. package/build/server/chunks/30-BBBNNzbB.js +0 -57
  974. package/build/server/chunks/30-BBBNNzbB.js.map +0 -1
  975. package/build/server/chunks/31-CQ-8s0Lw.js +0 -42
  976. package/build/server/chunks/31-CQ-8s0Lw.js.map +0 -1
  977. package/build/server/chunks/32-BmsICS9-.js +0 -34
  978. package/build/server/chunks/32-BmsICS9-.js.map +0 -1
  979. package/build/server/chunks/5-DHnM6DGt.js +0 -32
  980. package/build/server/chunks/5-DHnM6DGt.js.map +0 -1
  981. package/build/server/chunks/6-C4Vpgjrj.js +0 -40
  982. package/build/server/chunks/6-C4Vpgjrj.js.map +0 -1
  983. package/build/server/chunks/7-ZQ9mLTB2.js +0 -19
  984. package/build/server/chunks/7-ZQ9mLTB2.js.map +0 -1
  985. package/build/server/chunks/8-BS2o-Nbt.js +0 -130
  986. package/build/server/chunks/8-BS2o-Nbt.js.map +0 -1
  987. package/build/server/chunks/9-Cjc4QJfo.js +0 -48
  988. package/build/server/chunks/9-Cjc4QJfo.js.map +0 -1
  989. package/build/server/chunks/AppHeader-6ioAYhJf.js +0 -271
  990. package/build/server/chunks/AppHeader-6ioAYhJf.js.map +0 -1
  991. package/build/server/chunks/DefinitionCard-O1k8h5Pi.js +0 -258
  992. package/build/server/chunks/DefinitionCard-O1k8h5Pi.js.map +0 -1
  993. package/build/server/chunks/ErrorScreen-SHK14bo6.js +0 -131
  994. package/build/server/chunks/ErrorScreen-SHK14bo6.js.map +0 -1
  995. package/build/server/chunks/FilterableDropdown-W9AjyS0M.js +0 -61
  996. package/build/server/chunks/FilterableDropdown-W9AjyS0M.js.map +0 -1
  997. package/build/server/chunks/Icon-DbkwAOkZ.js +0 -76
  998. package/build/server/chunks/Icon-DbkwAOkZ.js.map +0 -1
  999. package/build/server/chunks/Icon2-DbkwAOkZ.js +0 -76
  1000. package/build/server/chunks/Icon2-DbkwAOkZ.js.map +0 -1
  1001. package/build/server/chunks/StatCard-Cj4i7_IY.js +0 -50
  1002. package/build/server/chunks/StatCard-Cj4i7_IY.js.map +0 -1
  1003. package/build/server/chunks/UserChip-fy4ucYa9.js +0 -1241
  1004. package/build/server/chunks/UserChip-fy4ucYa9.js.map +0 -1
  1005. package/build/server/chunks/_error.svelte-B_dLYaey.js +0 -30
  1006. package/build/server/chunks/_error.svelte-B_dLYaey.js.map +0 -1
  1007. package/build/server/chunks/_error.svelte-D_qATeW2.js +0 -28
  1008. package/build/server/chunks/_error.svelte-D_qATeW2.js.map +0 -1
  1009. package/build/server/chunks/_layout.svelte-BNCiY_LE.js +0 -107
  1010. package/build/server/chunks/_layout.svelte-BNCiY_LE.js.map +0 -1
  1011. package/build/server/chunks/_layout.svelte-BR1971uC.js +0 -154
  1012. package/build/server/chunks/_layout.svelte-BR1971uC.js.map +0 -1
  1013. package/build/server/chunks/_layout.svelte-CHTfYN7Z.js +0 -44
  1014. package/build/server/chunks/_layout.svelte-CHTfYN7Z.js.map +0 -1
  1015. package/build/server/chunks/_layout.svelte-DtDfOje_.js +0 -1042
  1016. package/build/server/chunks/_layout.svelte-DtDfOje_.js.map +0 -1
  1017. package/build/server/chunks/_page.svelte-2a3XlI01.js +0 -120
  1018. package/build/server/chunks/_page.svelte-2a3XlI01.js.map +0 -1
  1019. package/build/server/chunks/_page.svelte-6m8-zq9_.js +0 -10755
  1020. package/build/server/chunks/_page.svelte-6m8-zq9_.js.map +0 -1
  1021. package/build/server/chunks/_page.svelte-B-BjG1Bg.js +0 -332
  1022. package/build/server/chunks/_page.svelte-B-BjG1Bg.js.map +0 -1
  1023. package/build/server/chunks/_page.svelte-B2tNMNfb.js +0 -454
  1024. package/build/server/chunks/_page.svelte-B2tNMNfb.js.map +0 -1
  1025. package/build/server/chunks/_page.svelte-BEuBbeea.js +0 -920
  1026. package/build/server/chunks/_page.svelte-BEuBbeea.js.map +0 -1
  1027. package/build/server/chunks/_page.svelte-BLjq8C2p.js +0 -611
  1028. package/build/server/chunks/_page.svelte-BLjq8C2p.js.map +0 -1
  1029. package/build/server/chunks/_page.svelte-BX7fFjm7.js +0 -251
  1030. package/build/server/chunks/_page.svelte-BX7fFjm7.js.map +0 -1
  1031. package/build/server/chunks/_page.svelte-BXQInprQ.js +0 -275
  1032. package/build/server/chunks/_page.svelte-BXQInprQ.js.map +0 -1
  1033. package/build/server/chunks/_page.svelte-Bc3Ab2ud.js +0 -169
  1034. package/build/server/chunks/_page.svelte-Bc3Ab2ud.js.map +0 -1
  1035. package/build/server/chunks/_page.svelte-BziMQdom.js +0 -114
  1036. package/build/server/chunks/_page.svelte-BziMQdom.js.map +0 -1
  1037. package/build/server/chunks/_page.svelte-CYxHCZCC.js +0 -84
  1038. package/build/server/chunks/_page.svelte-CYxHCZCC.js.map +0 -1
  1039. package/build/server/chunks/_page.svelte-CckrYvJ6.js +0 -147
  1040. package/build/server/chunks/_page.svelte-CckrYvJ6.js.map +0 -1
  1041. package/build/server/chunks/_page.svelte-Cf8MfOXQ.js +0 -596
  1042. package/build/server/chunks/_page.svelte-Cf8MfOXQ.js.map +0 -1
  1043. package/build/server/chunks/_page.svelte-CxuFmBkK.js +0 -302
  1044. package/build/server/chunks/_page.svelte-CxuFmBkK.js.map +0 -1
  1045. package/build/server/chunks/_page.svelte-DphuJQee.js +0 -331
  1046. package/build/server/chunks/_page.svelte-DphuJQee.js.map +0 -1
  1047. package/build/server/chunks/_page.svelte-Dun4nEWl.js +0 -277
  1048. package/build/server/chunks/_page.svelte-Dun4nEWl.js.map +0 -1
  1049. package/build/server/chunks/_page.svelte-ELmid_qG.js +0 -120
  1050. package/build/server/chunks/_page.svelte-ELmid_qG.js.map +0 -1
  1051. package/build/server/chunks/_page.svelte-HTC9yaHJ.js +0 -71
  1052. package/build/server/chunks/_page.svelte-HTC9yaHJ.js.map +0 -1
  1053. package/build/server/chunks/_page.svelte-UNbcR5Wq.js +0 -715
  1054. package/build/server/chunks/_page.svelte-UNbcR5Wq.js.map +0 -1
  1055. package/build/server/chunks/_page.svelte-W41FvlvN.js +0 -530
  1056. package/build/server/chunks/_page.svelte-W41FvlvN.js.map +0 -1
  1057. package/build/server/chunks/_page.svelte-XLccLxWu.js +0 -558
  1058. package/build/server/chunks/_page.svelte-XLccLxWu.js.map +0 -1
  1059. package/build/server/chunks/_page.svelte-YVHQEj69.js +0 -3899
  1060. package/build/server/chunks/_page.svelte-YVHQEj69.js.map +0 -1
  1061. package/build/server/chunks/_page.svelte-pEdM2bKS.js +0 -57
  1062. package/build/server/chunks/_page.svelte-pEdM2bKS.js.map +0 -1
  1063. package/build/server/chunks/_page.svelte-tQDqmoYu.js +0 -425
  1064. package/build/server/chunks/_page.svelte-tQDqmoYu.js.map +0 -1
  1065. package/build/server/chunks/_server.ts-A3y5hBxw.js +0 -40
  1066. package/build/server/chunks/_server.ts-A3y5hBxw.js.map +0 -1
  1067. package/build/server/chunks/_server.ts-B5jlr2iF.js +0 -72
  1068. package/build/server/chunks/_server.ts-B5jlr2iF.js.map +0 -1
  1069. package/build/server/chunks/_server.ts-BLhNqGtF.js +0 -39
  1070. package/build/server/chunks/_server.ts-BLhNqGtF.js.map +0 -1
  1071. package/build/server/chunks/_server.ts-BON6qGm5.js +0 -77
  1072. package/build/server/chunks/_server.ts-BON6qGm5.js.map +0 -1
  1073. package/build/server/chunks/_server.ts-BO_GwwIE.js +0 -43
  1074. package/build/server/chunks/_server.ts-BO_GwwIE.js.map +0 -1
  1075. package/build/server/chunks/_server.ts-BUw5lGMN.js +0 -111
  1076. package/build/server/chunks/_server.ts-BUw5lGMN.js.map +0 -1
  1077. package/build/server/chunks/_server.ts-Bhj8Vx5l.js +0 -108
  1078. package/build/server/chunks/_server.ts-Bhj8Vx5l.js.map +0 -1
  1079. package/build/server/chunks/_server.ts-BqlGKKaE.js +0 -50
  1080. package/build/server/chunks/_server.ts-BqlGKKaE.js.map +0 -1
  1081. package/build/server/chunks/_server.ts-C-MiDKCm.js +0 -31
  1082. package/build/server/chunks/_server.ts-C-MiDKCm.js.map +0 -1
  1083. package/build/server/chunks/_server.ts-C05I9RVA.js +0 -40
  1084. package/build/server/chunks/_server.ts-C05I9RVA.js.map +0 -1
  1085. package/build/server/chunks/_server.ts-C4BZG5kA.js +0 -32
  1086. package/build/server/chunks/_server.ts-C4BZG5kA.js.map +0 -1
  1087. package/build/server/chunks/_server.ts-CEE9G3nv.js +0 -80
  1088. package/build/server/chunks/_server.ts-CEE9G3nv.js.map +0 -1
  1089. package/build/server/chunks/_server.ts-CJ37R1sx.js +0 -37
  1090. package/build/server/chunks/_server.ts-CJ37R1sx.js.map +0 -1
  1091. package/build/server/chunks/_server.ts-CJ5P0_cD.js +0 -75
  1092. package/build/server/chunks/_server.ts-CJ5P0_cD.js.map +0 -1
  1093. package/build/server/chunks/_server.ts-Ca-ZnaSe.js +0 -51
  1094. package/build/server/chunks/_server.ts-Ca-ZnaSe.js.map +0 -1
  1095. package/build/server/chunks/_server.ts-CewoOx5S.js +0 -60
  1096. package/build/server/chunks/_server.ts-CewoOx5S.js.map +0 -1
  1097. package/build/server/chunks/_server.ts-ChhV0tlQ.js +0 -86
  1098. package/build/server/chunks/_server.ts-ChhV0tlQ.js.map +0 -1
  1099. package/build/server/chunks/_server.ts-Ck5KHS5f.js +0 -36
  1100. package/build/server/chunks/_server.ts-Ck5KHS5f.js.map +0 -1
  1101. package/build/server/chunks/_server.ts-ClymRXMH.js +0 -44
  1102. package/build/server/chunks/_server.ts-ClymRXMH.js.map +0 -1
  1103. package/build/server/chunks/_server.ts-CsWWoLDJ.js +0 -41
  1104. package/build/server/chunks/_server.ts-CsWWoLDJ.js.map +0 -1
  1105. package/build/server/chunks/_server.ts-CtJaazcE.js +0 -83
  1106. package/build/server/chunks/_server.ts-CtJaazcE.js.map +0 -1
  1107. package/build/server/chunks/_server.ts-CyjVVRiT.js +0 -84
  1108. package/build/server/chunks/_server.ts-CyjVVRiT.js.map +0 -1
  1109. package/build/server/chunks/_server.ts-D0PjwFdv.js +0 -39
  1110. package/build/server/chunks/_server.ts-D0PjwFdv.js.map +0 -1
  1111. package/build/server/chunks/_server.ts-D7tgGcoB.js +0 -33
  1112. package/build/server/chunks/_server.ts-D7tgGcoB.js.map +0 -1
  1113. package/build/server/chunks/_server.ts-D9Jw0wGY.js +0 -398
  1114. package/build/server/chunks/_server.ts-D9Jw0wGY.js.map +0 -1
  1115. package/build/server/chunks/_server.ts-DBV9dA6A.js +0 -105
  1116. package/build/server/chunks/_server.ts-DBV9dA6A.js.map +0 -1
  1117. package/build/server/chunks/_server.ts-DLUA6_Lf.js +0 -327
  1118. package/build/server/chunks/_server.ts-DLUA6_Lf.js.map +0 -1
  1119. package/build/server/chunks/_server.ts-DM01ishT.js +0 -88
  1120. package/build/server/chunks/_server.ts-DM01ishT.js.map +0 -1
  1121. package/build/server/chunks/_server.ts-DNeVKrs8.js +0 -96
  1122. package/build/server/chunks/_server.ts-DNeVKrs8.js.map +0 -1
  1123. package/build/server/chunks/_server.ts-DWCKRNAG.js +0 -60
  1124. package/build/server/chunks/_server.ts-DWCKRNAG.js.map +0 -1
  1125. package/build/server/chunks/_server.ts-Db9C0y4L.js +0 -162
  1126. package/build/server/chunks/_server.ts-Db9C0y4L.js.map +0 -1
  1127. package/build/server/chunks/_server.ts-DlDf2qpE.js +0 -41
  1128. package/build/server/chunks/_server.ts-DlDf2qpE.js.map +0 -1
  1129. package/build/server/chunks/_server.ts-DmqbBNeI.js +0 -65
  1130. package/build/server/chunks/_server.ts-DmqbBNeI.js.map +0 -1
  1131. package/build/server/chunks/_server.ts-DwqLpa_k.js +0 -73
  1132. package/build/server/chunks/_server.ts-DwqLpa_k.js.map +0 -1
  1133. package/build/server/chunks/_server.ts-IVIAzAUs.js +0 -63
  1134. package/build/server/chunks/_server.ts-IVIAzAUs.js.map +0 -1
  1135. package/build/server/chunks/_server.ts-Xpgu2-ka.js +0 -101
  1136. package/build/server/chunks/_server.ts-Xpgu2-ka.js.map +0 -1
  1137. package/build/server/chunks/_server.ts-eVLE380Q.js +0 -31
  1138. package/build/server/chunks/_server.ts-eVLE380Q.js.map +0 -1
  1139. package/build/server/chunks/_server.ts-kighVn_d.js +0 -39
  1140. package/build/server/chunks/_server.ts-kighVn_d.js.map +0 -1
  1141. package/build/server/chunks/_server.ts-r2RVYvYA.js +0 -83
  1142. package/build/server/chunks/_server.ts-r2RVYvYA.js.map +0 -1
  1143. package/build/server/chunks/access.server-ByXvmWyF.js +0 -413
  1144. package/build/server/chunks/access.server-ByXvmWyF.js.map +0 -1
  1145. package/build/server/chunks/activity-BjtW_4T-.js +0 -18
  1146. package/build/server/chunks/activity-BjtW_4T-.js.map +0 -1
  1147. package/build/server/chunks/alert-description-CUK0afmb.js +0 -59
  1148. package/build/server/chunks/alert-description-CUK0afmb.js.map +0 -1
  1149. package/build/server/chunks/api-errors-C0SWfJj5.js +0 -101
  1150. package/build/server/chunks/api-errors-C0SWfJj5.js.map +0 -1
  1151. package/build/server/chunks/arrow-left-D0KqaESK.js +0 -14
  1152. package/build/server/chunks/arrow-left-D0KqaESK.js.map +0 -1
  1153. package/build/server/chunks/arrow-right-Bi1uWbBU.js +0 -14
  1154. package/build/server/chunks/arrow-right-Bi1uWbBU.js.map +0 -1
  1155. package/build/server/chunks/auth-bootstrap.server-zvPqZ6kt.js +0 -99
  1156. package/build/server/chunks/auth-bootstrap.server-zvPqZ6kt.js.map +0 -1
  1157. package/build/server/chunks/badge-Dslv369v.js +0 -50
  1158. package/build/server/chunks/badge-Dslv369v.js.map +0 -1
  1159. package/build/server/chunks/bootHealth.server-CLLVkbZZ.js +0 -58
  1160. package/build/server/chunks/bootHealth.server-CLLVkbZZ.js.map +0 -1
  1161. package/build/server/chunks/building-2-DJFEkZmC.js +0 -22
  1162. package/build/server/chunks/building-2-DJFEkZmC.js.map +0 -1
  1163. package/build/server/chunks/button-1GF48U_O.js +0 -73
  1164. package/build/server/chunks/button-1GF48U_O.js.map +0 -1
  1165. package/build/server/chunks/card-content-CLRedGcu.js +0 -46
  1166. package/build/server/chunks/card-content-CLRedGcu.js.map +0 -1
  1167. package/build/server/chunks/card-description-Cvz9Nl_J.js +0 -26
  1168. package/build/server/chunks/card-description-Cvz9Nl_J.js.map +0 -1
  1169. package/build/server/chunks/card-title-f3nMy4Cc.js +0 -46
  1170. package/build/server/chunks/card-title-f3nMy4Cc.js.map +0 -1
  1171. package/build/server/chunks/chevron-down-Cqowxf45.js +0 -11
  1172. package/build/server/chunks/chevron-down-Cqowxf45.js.map +0 -1
  1173. package/build/server/chunks/chevron-down2-HiD5tdXf.js +0 -11
  1174. package/build/server/chunks/chevron-down2-HiD5tdXf.js.map +0 -1
  1175. package/build/server/chunks/chevron-right-BZ8x48EK.js +0 -11
  1176. package/build/server/chunks/chevron-right-BZ8x48EK.js.map +0 -1
  1177. package/build/server/chunks/circle-CeSIvmWj.js +0 -11
  1178. package/build/server/chunks/circle-CeSIvmWj.js.map +0 -1
  1179. package/build/server/chunks/circle-alert-DNsq-x3V.js +0 -18
  1180. package/build/server/chunks/circle-alert-DNsq-x3V.js.map +0 -1
  1181. package/build/server/chunks/circle-alert2-Doldk45G.js +0 -18
  1182. package/build/server/chunks/circle-alert2-Doldk45G.js.map +0 -1
  1183. package/build/server/chunks/computeLimits-5PaWFMYq.js +0 -27
  1184. package/build/server/chunks/computeLimits-5PaWFMYq.js.map +0 -1
  1185. package/build/server/chunks/context-DKDYb-He.js +0 -138
  1186. package/build/server/chunks/context-DKDYb-He.js.map +0 -1
  1187. package/build/server/chunks/copy-DbzeZFQN.js +0 -29
  1188. package/build/server/chunks/copy-DbzeZFQN.js.map +0 -1
  1189. package/build/server/chunks/dialog-description-8UnYiAMX.js +0 -523
  1190. package/build/server/chunks/dialog-description-8UnYiAMX.js.map +0 -1
  1191. package/build/server/chunks/dialog-footer-CqbKEEQ-.js +0 -36
  1192. package/build/server/chunks/dialog-footer-CqbKEEQ-.js.map +0 -1
  1193. package/build/server/chunks/folder-kanban-BzEQk9ZB.js +0 -21
  1194. package/build/server/chunks/folder-kanban-BzEQk9ZB.js.map +0 -1
  1195. package/build/server/chunks/folder-open-CUgA3M22.js +0 -18
  1196. package/build/server/chunks/folder-open-CUgA3M22.js.map +0 -1
  1197. package/build/server/chunks/folders-DPJPvoz3.js +0 -24
  1198. package/build/server/chunks/folders-DPJPvoz3.js.map +0 -1
  1199. package/build/server/chunks/footerContext.svelte-oP__zW9C.js +0 -495
  1200. package/build/server/chunks/footerContext.svelte-oP__zW9C.js.map +0 -1
  1201. package/build/server/chunks/gauge-Az8B3w7C.js +0 -87
  1202. package/build/server/chunks/gauge-Az8B3w7C.js.map +0 -1
  1203. package/build/server/chunks/hooks.server-CwDixHQc.js +0 -218
  1204. package/build/server/chunks/hooks.server-CwDixHQc.js.map +0 -1
  1205. package/build/server/chunks/index2-D4a590Kd.js +0 -438
  1206. package/build/server/chunks/index2-D4a590Kd.js.map +0 -1
  1207. package/build/server/chunks/index3-0Z1R1__W.js +0 -4388
  1208. package/build/server/chunks/index3-0Z1R1__W.js.map +0 -1
  1209. package/build/server/chunks/index4-DWNr0jIL.js +0 -541
  1210. package/build/server/chunks/index4-DWNr0jIL.js.map +0 -1
  1211. package/build/server/chunks/input-DGJ03-ia.js +0 -53
  1212. package/build/server/chunks/input-DGJ03-ia.js.map +0 -1
  1213. package/build/server/chunks/label-Df1UqzdF.js +0 -112
  1214. package/build/server/chunks/label-Df1UqzdF.js.map +0 -1
  1215. package/build/server/chunks/link-2-dxaDBYcR.js +0 -15
  1216. package/build/server/chunks/link-2-dxaDBYcR.js.map +0 -1
  1217. package/build/server/chunks/mail-CXBfO_C7.js +0 -17
  1218. package/build/server/chunks/mail-CXBfO_C7.js.map +0 -1
  1219. package/build/server/chunks/noop-iPXixleG.js +0 -138
  1220. package/build/server/chunks/noop-iPXixleG.js.map +0 -1
  1221. package/build/server/chunks/package-CpyjZQq6.js +0 -29
  1222. package/build/server/chunks/package-CpyjZQq6.js.map +0 -1
  1223. package/build/server/chunks/permissions-compat.server-BDkKxDeZ.js +0 -19
  1224. package/build/server/chunks/permissions-compat.server-BDkKxDeZ.js.map +0 -1
  1225. package/build/server/chunks/permissions.server-7AwAAkY9.js +0 -8
  1226. package/build/server/chunks/permissions.server-7AwAAkY9.js.map +0 -1
  1227. package/build/server/chunks/plus-CY_pTStn.js +0 -11
  1228. package/build/server/chunks/plus-CY_pTStn.js.map +0 -1
  1229. package/build/server/chunks/providers.server-wGknM6CR.js +0 -4584
  1230. package/build/server/chunks/providers.server-wGknM6CR.js.map +0 -1
  1231. package/build/server/chunks/refresh-cw-CiiW6Kvx.js +0 -22
  1232. package/build/server/chunks/refresh-cw-CiiW6Kvx.js.map +0 -1
  1233. package/build/server/chunks/resolve.server-CvfANFCn.js +0 -50
  1234. package/build/server/chunks/resolve.server-CvfANFCn.js.map +0 -1
  1235. package/build/server/chunks/rotate-ccw-1C53L417.js +0 -17
  1236. package/build/server/chunks/rotate-ccw-1C53L417.js.map +0 -1
  1237. package/build/server/chunks/scroll-lock-BIz_BXmd.js +0 -1547
  1238. package/build/server/chunks/scroll-lock-BIz_BXmd.js.map +0 -1
  1239. package/build/server/chunks/scroll-text-CxtFfkcE.js +0 -21
  1240. package/build/server/chunks/scroll-text-CxtFfkcE.js.map +0 -1
  1241. package/build/server/chunks/server-C3-deqCy.js +0 -36
  1242. package/build/server/chunks/server-C3-deqCy.js.map +0 -1
  1243. package/build/server/chunks/settings-NH5q_HtF.js +0 -19
  1244. package/build/server/chunks/settings-NH5q_HtF.js.map +0 -1
  1245. package/build/server/chunks/shield-CHAFruKV.js +0 -18
  1246. package/build/server/chunks/shield-CHAFruKV.js.map +0 -1
  1247. package/build/server/chunks/shield-check-06Iz62as.js +0 -19
  1248. package/build/server/chunks/shield-check-06Iz62as.js.map +0 -1
  1249. package/build/server/chunks/star-bmBg3IsG.js +0 -18
  1250. package/build/server/chunks/star-bmBg3IsG.js.map +0 -1
  1251. package/build/server/chunks/textarea-A5IYPwqe.js +0 -685
  1252. package/build/server/chunks/textarea-A5IYPwqe.js.map +0 -1
  1253. package/build/server/chunks/trash-2-swQcKEqX.js +0 -17
  1254. package/build/server/chunks/trash-2-swQcKEqX.js.map +0 -1
  1255. package/build/server/chunks/triangle-alert-DuaFagu6.js +0 -20
  1256. package/build/server/chunks/triangle-alert-DuaFagu6.js.map +0 -1
  1257. package/build/server/chunks/user-plus-CPEDH5dh.js +0 -16
  1258. package/build/server/chunks/user-plus-CPEDH5dh.js.map +0 -1
  1259. package/build/server/chunks/users-Bd7CKN4d.js +0 -16
  1260. package/build/server/chunks/users-Bd7CKN4d.js.map +0 -1
  1261. package/build/server/chunks/utils2-BsnrDRob.js +0 -56
  1262. package/build/server/chunks/utils2-BsnrDRob.js.map +0 -1
  1263. package/build/server/chunks/utils3-B05Dmz_H.js +0 -9
  1264. package/build/server/chunks/utils3-B05Dmz_H.js.map +0 -1
  1265. package/build/server/chunks/x-e5o-84bg.js +0 -14
  1266. package/build/server/chunks/x-e5o-84bg.js.map +0 -1
@@ -0,0 +1,4246 @@
1
+ import { q as bind_props, Q as ensure_array_like, I as derived, aA as spread_props, p as attributes, an as props_id, T as escape_html } from './renderer-x4cX3Aau.js';
2
+ import { c as cn } from './utils3-Dv2HSd2-.js';
3
+ import { x as styleToString, k as createBitsAttrs, h as boxWith, w as simpleBox, e as boolToTrueOrUndef, v as mergeProps, l as createId, a as attachRef, b as boolToEmptyStrOrUndef, p as getDataOpenClosed, c as boolToStr, q as getDataTransitionAttrs, g as boxFrom, d as boolToStrTrueOrUndef, m as cssToStyleObj } from './create-id-B-AKukLt.js';
4
+ import { o as noop, w as watch, C as Context, c as ARROW_UP, A as ARROW_DOWN, d as ENTER, S as SPACE, T as TAB, f as PAGE_UP, H as HOME, P as PAGE_DOWN, E as END, m as isNotNull, g as defaultWindow, l as isIOS } from './noop-BGJY5rVY.js';
5
+ import { C as Check } from './check-382jBCB9.js';
6
+ import { C as Chevron_up } from './chevron-up-StZ3cnZ8.js';
7
+ import { C as Chevron_down } from './chevron-down-D5-hWbt-.js';
8
+ import { n as afterTick, D as DOMContext, k as PresenceManager, P as Portal, a as DOMTypeahead, u as next, v as prev, q as forward, o as backward, p as boxAutoReset, r as getNextMatch, m as afterSleep, w as useId, s as getWindow$1, l as Scroll_lock, F as Focus_scope, E as Escape_layer, b as Dismissible_layer, T as Text_selection_layer } from './scroll-lock-NAQO_S1Y.js';
9
+ import 'clsx';
10
+ import { c as createSubscriber } from './index-server-DMc-UvjC.js';
11
+ import { o as on } from './events-qfxQNxtp.js';
12
+
13
+ const srOnlyStyles = {
14
+ position: "absolute",
15
+ width: "1px",
16
+ height: "1px",
17
+ padding: "0",
18
+ margin: "-1px",
19
+ overflow: "hidden",
20
+ clip: "rect(0, 0, 0, 0)",
21
+ whiteSpace: "nowrap",
22
+ borderWidth: "0",
23
+ transform: "translateX(-100%)"
24
+ };
25
+ styleToString(srOnlyStyles);
26
+ function isFunction(value) {
27
+ return typeof value === "function";
28
+ }
29
+ function get$1(value) {
30
+ if (isFunction(value)) {
31
+ return value();
32
+ }
33
+ return value;
34
+ }
35
+ class ElementSize {
36
+ // no need to use `$state` here since we are using createSubscriber
37
+ #size = { width: 0, height: 0 };
38
+ #observed = false;
39
+ #options;
40
+ #node;
41
+ #window;
42
+ // we use a derived here to extract the width so that if the width doesn't change we don't get a state update
43
+ // which we would get if we would just use a getter since the version of the subscriber will be changing
44
+ #width = derived(() => {
45
+ this.#subscribe()?.();
46
+ return this.getSize().width;
47
+ });
48
+ // we use a derived here to extract the height so that if the height doesn't change we don't get a state update
49
+ // which we would get if we would just use a getter since the version of the subscriber will be changing
50
+ #height = derived(() => {
51
+ this.#subscribe()?.();
52
+ return this.getSize().height;
53
+ });
54
+ // we need to use a derived here because the class will be created before the node is bound to the ref
55
+ #subscribe = derived(() => {
56
+ const node$ = get$1(this.#node);
57
+ if (!node$) return;
58
+ return createSubscriber();
59
+ });
60
+ constructor(node, options = { box: "border-box" }) {
61
+ this.#window = options.window ?? defaultWindow;
62
+ this.#options = options;
63
+ this.#node = node;
64
+ this.#size = { width: 0, height: 0 };
65
+ }
66
+ calculateSize() {
67
+ const element = get$1(this.#node);
68
+ if (!element || !this.#window) {
69
+ return;
70
+ }
71
+ const offsetWidth = element.offsetWidth;
72
+ const offsetHeight = element.offsetHeight;
73
+ if (this.#options.box === "border-box") {
74
+ return { width: offsetWidth, height: offsetHeight };
75
+ }
76
+ const style = this.#window.getComputedStyle(element);
77
+ const paddingWidth = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
78
+ const paddingHeight = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);
79
+ const borderWidth = parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
80
+ const borderHeight = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
81
+ const contentWidth = offsetWidth - paddingWidth - borderWidth;
82
+ const contentHeight = offsetHeight - paddingHeight - borderHeight;
83
+ return { width: contentWidth, height: contentHeight };
84
+ }
85
+ getSize() {
86
+ return this.#observed ? this.#size : this.calculateSize() ?? this.#size;
87
+ }
88
+ get current() {
89
+ this.#subscribe()?.();
90
+ return this.getSize();
91
+ }
92
+ get width() {
93
+ return this.#width();
94
+ }
95
+ get height() {
96
+ return this.#height();
97
+ }
98
+ }
99
+ class Previous {
100
+ #previousCallback = () => void 0;
101
+ #previous = derived(() => this.#previousCallback());
102
+ constructor(getter, initialValue) {
103
+ let actualPrevious = void 0;
104
+ if (initialValue !== void 0) actualPrevious = initialValue;
105
+ this.#previousCallback = () => {
106
+ try {
107
+ return actualPrevious;
108
+ } finally {
109
+ actualPrevious = getter();
110
+ }
111
+ };
112
+ }
113
+ get current() {
114
+ return this.#previous();
115
+ }
116
+ }
117
+ function Hidden_input($$renderer, $$props) {
118
+ $$renderer.component(($$renderer2) => {
119
+ let { value = void 0, $$slots, $$events, ...restProps } = $$props;
120
+ const mergedProps = derived(() => mergeProps(restProps, {
121
+ "aria-hidden": "true",
122
+ tabindex: -1,
123
+ style: { ...srOnlyStyles, position: "absolute", top: "0", left: "0" }
124
+ }));
125
+ if (mergedProps().type === "checkbox") {
126
+ $$renderer2.push("<!--[0-->");
127
+ $$renderer2.push(`<input${attributes({ ...mergedProps(), value }, void 0, void 0, void 0, 4)}/>`);
128
+ } else {
129
+ $$renderer2.push("<!--[-1-->");
130
+ $$renderer2.push(`<input${attributes({ value, ...mergedProps() }, void 0, void 0, void 0, 4)}/>`);
131
+ }
132
+ $$renderer2.push(`<!--]-->`);
133
+ bind_props($$props, { value });
134
+ });
135
+ }
136
+ const sides = ["top", "right", "bottom", "left"];
137
+ const min = Math.min;
138
+ const max = Math.max;
139
+ const round = Math.round;
140
+ const createCoords = (v) => ({
141
+ x: v,
142
+ y: v
143
+ });
144
+ const oppositeSideMap = {
145
+ left: "right",
146
+ right: "left",
147
+ bottom: "top",
148
+ top: "bottom"
149
+ };
150
+ function clamp(start, value, end) {
151
+ return max(start, min(value, end));
152
+ }
153
+ function evaluate(value, param) {
154
+ return typeof value === "function" ? value(param) : value;
155
+ }
156
+ function getSide(placement) {
157
+ return placement.split("-")[0];
158
+ }
159
+ function getAlignment(placement) {
160
+ return placement.split("-")[1];
161
+ }
162
+ function getOppositeAxis(axis) {
163
+ return axis === "x" ? "y" : "x";
164
+ }
165
+ function getAxisLength(axis) {
166
+ return axis === "y" ? "height" : "width";
167
+ }
168
+ function getSideAxis(placement) {
169
+ const firstChar = placement[0];
170
+ return firstChar === "t" || firstChar === "b" ? "y" : "x";
171
+ }
172
+ function getAlignmentAxis(placement) {
173
+ return getOppositeAxis(getSideAxis(placement));
174
+ }
175
+ function getAlignmentSides(placement, rects, rtl) {
176
+ if (rtl === void 0) {
177
+ rtl = false;
178
+ }
179
+ const alignment = getAlignment(placement);
180
+ const alignmentAxis = getAlignmentAxis(placement);
181
+ const length = getAxisLength(alignmentAxis);
182
+ let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
183
+ if (rects.reference[length] > rects.floating[length]) {
184
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
185
+ }
186
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
187
+ }
188
+ function getExpandedPlacements(placement) {
189
+ const oppositePlacement = getOppositePlacement(placement);
190
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
191
+ }
192
+ function getOppositeAlignmentPlacement(placement) {
193
+ return placement.includes("start") ? placement.replace("start", "end") : placement.replace("end", "start");
194
+ }
195
+ const lrPlacement = ["left", "right"];
196
+ const rlPlacement = ["right", "left"];
197
+ const tbPlacement = ["top", "bottom"];
198
+ const btPlacement = ["bottom", "top"];
199
+ function getSideList(side, isStart, rtl) {
200
+ switch (side) {
201
+ case "top":
202
+ case "bottom":
203
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
204
+ return isStart ? lrPlacement : rlPlacement;
205
+ case "left":
206
+ case "right":
207
+ return isStart ? tbPlacement : btPlacement;
208
+ default:
209
+ return [];
210
+ }
211
+ }
212
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
213
+ const alignment = getAlignment(placement);
214
+ let list = getSideList(getSide(placement), direction === "start", rtl);
215
+ if (alignment) {
216
+ list = list.map((side) => side + "-" + alignment);
217
+ if (flipAlignment) {
218
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
219
+ }
220
+ }
221
+ return list;
222
+ }
223
+ function getOppositePlacement(placement) {
224
+ const side = getSide(placement);
225
+ return oppositeSideMap[side] + placement.slice(side.length);
226
+ }
227
+ function expandPaddingObject(padding) {
228
+ return {
229
+ top: 0,
230
+ right: 0,
231
+ bottom: 0,
232
+ left: 0,
233
+ ...padding
234
+ };
235
+ }
236
+ function getPaddingObject(padding) {
237
+ return typeof padding !== "number" ? expandPaddingObject(padding) : {
238
+ top: padding,
239
+ right: padding,
240
+ bottom: padding,
241
+ left: padding
242
+ };
243
+ }
244
+ function rectToClientRect(rect) {
245
+ const {
246
+ x,
247
+ y,
248
+ width,
249
+ height
250
+ } = rect;
251
+ return {
252
+ width,
253
+ height,
254
+ top: y,
255
+ left: x,
256
+ right: x + width,
257
+ bottom: y + height,
258
+ x,
259
+ y
260
+ };
261
+ }
262
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
263
+ let {
264
+ reference,
265
+ floating
266
+ } = _ref;
267
+ const sideAxis = getSideAxis(placement);
268
+ const alignmentAxis = getAlignmentAxis(placement);
269
+ const alignLength = getAxisLength(alignmentAxis);
270
+ const side = getSide(placement);
271
+ const isVertical = sideAxis === "y";
272
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
273
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
274
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
275
+ let coords;
276
+ switch (side) {
277
+ case "top":
278
+ coords = {
279
+ x: commonX,
280
+ y: reference.y - floating.height
281
+ };
282
+ break;
283
+ case "bottom":
284
+ coords = {
285
+ x: commonX,
286
+ y: reference.y + reference.height
287
+ };
288
+ break;
289
+ case "right":
290
+ coords = {
291
+ x: reference.x + reference.width,
292
+ y: commonY
293
+ };
294
+ break;
295
+ case "left":
296
+ coords = {
297
+ x: reference.x - floating.width,
298
+ y: commonY
299
+ };
300
+ break;
301
+ default:
302
+ coords = {
303
+ x: reference.x,
304
+ y: reference.y
305
+ };
306
+ }
307
+ switch (getAlignment(placement)) {
308
+ case "start":
309
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
310
+ break;
311
+ case "end":
312
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
313
+ break;
314
+ }
315
+ return coords;
316
+ }
317
+ async function detectOverflow(state, options) {
318
+ var _await$platform$isEle;
319
+ if (options === void 0) {
320
+ options = {};
321
+ }
322
+ const {
323
+ x,
324
+ y,
325
+ platform: platform2,
326
+ rects,
327
+ elements,
328
+ strategy
329
+ } = state;
330
+ const {
331
+ boundary = "clippingAncestors",
332
+ rootBoundary = "viewport",
333
+ elementContext = "floating",
334
+ altBoundary = false,
335
+ padding = 0
336
+ } = evaluate(options, state);
337
+ const paddingObject = getPaddingObject(padding);
338
+ const altContext = elementContext === "floating" ? "reference" : "floating";
339
+ const element = elements[altBoundary ? altContext : elementContext];
340
+ const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
341
+ element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
342
+ boundary,
343
+ rootBoundary,
344
+ strategy
345
+ }));
346
+ const rect = elementContext === "floating" ? {
347
+ x,
348
+ y,
349
+ width: rects.floating.width,
350
+ height: rects.floating.height
351
+ } : rects.reference;
352
+ const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
353
+ const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
354
+ x: 1,
355
+ y: 1
356
+ } : {
357
+ x: 1,
358
+ y: 1
359
+ };
360
+ const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
361
+ elements,
362
+ rect,
363
+ offsetParent,
364
+ strategy
365
+ }) : rect);
366
+ return {
367
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
368
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
369
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
370
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
371
+ };
372
+ }
373
+ const MAX_RESET_COUNT = 50;
374
+ const computePosition$1 = async (reference, floating, config) => {
375
+ const {
376
+ placement = "bottom",
377
+ strategy = "absolute",
378
+ middleware = [],
379
+ platform: platform2
380
+ } = config;
381
+ const platformWithDetectOverflow = platform2.detectOverflow ? platform2 : {
382
+ ...platform2,
383
+ detectOverflow
384
+ };
385
+ const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
386
+ let rects = await platform2.getElementRects({
387
+ reference,
388
+ floating,
389
+ strategy
390
+ });
391
+ let {
392
+ x,
393
+ y
394
+ } = computeCoordsFromPlacement(rects, placement, rtl);
395
+ let statefulPlacement = placement;
396
+ let resetCount = 0;
397
+ const middlewareData = {};
398
+ for (let i = 0; i < middleware.length; i++) {
399
+ const currentMiddleware = middleware[i];
400
+ if (!currentMiddleware) {
401
+ continue;
402
+ }
403
+ const {
404
+ name,
405
+ fn
406
+ } = currentMiddleware;
407
+ const {
408
+ x: nextX,
409
+ y: nextY,
410
+ data,
411
+ reset
412
+ } = await fn({
413
+ x,
414
+ y,
415
+ initialPlacement: placement,
416
+ placement: statefulPlacement,
417
+ strategy,
418
+ middlewareData,
419
+ rects,
420
+ platform: platformWithDetectOverflow,
421
+ elements: {
422
+ reference,
423
+ floating
424
+ }
425
+ });
426
+ x = nextX != null ? nextX : x;
427
+ y = nextY != null ? nextY : y;
428
+ middlewareData[name] = {
429
+ ...middlewareData[name],
430
+ ...data
431
+ };
432
+ if (reset && resetCount < MAX_RESET_COUNT) {
433
+ resetCount++;
434
+ if (typeof reset === "object") {
435
+ if (reset.placement) {
436
+ statefulPlacement = reset.placement;
437
+ }
438
+ if (reset.rects) {
439
+ rects = reset.rects === true ? await platform2.getElementRects({
440
+ reference,
441
+ floating,
442
+ strategy
443
+ }) : reset.rects;
444
+ }
445
+ ({
446
+ x,
447
+ y
448
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
449
+ }
450
+ i = -1;
451
+ }
452
+ }
453
+ return {
454
+ x,
455
+ y,
456
+ placement: statefulPlacement,
457
+ strategy,
458
+ middlewareData
459
+ };
460
+ };
461
+ const arrow$1 = (options) => ({
462
+ name: "arrow",
463
+ options,
464
+ async fn(state) {
465
+ const {
466
+ x,
467
+ y,
468
+ placement,
469
+ rects,
470
+ platform: platform2,
471
+ elements,
472
+ middlewareData
473
+ } = state;
474
+ const {
475
+ element,
476
+ padding = 0
477
+ } = evaluate(options, state) || {};
478
+ if (element == null) {
479
+ return {};
480
+ }
481
+ const paddingObject = getPaddingObject(padding);
482
+ const coords = {
483
+ x,
484
+ y
485
+ };
486
+ const axis = getAlignmentAxis(placement);
487
+ const length = getAxisLength(axis);
488
+ const arrowDimensions = await platform2.getDimensions(element);
489
+ const isYAxis = axis === "y";
490
+ const minProp = isYAxis ? "top" : "left";
491
+ const maxProp = isYAxis ? "bottom" : "right";
492
+ const clientProp = isYAxis ? "clientHeight" : "clientWidth";
493
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
494
+ const startDiff = coords[axis] - rects.reference[axis];
495
+ const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
496
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
497
+ if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
498
+ clientSize = elements.floating[clientProp] || rects.floating[length];
499
+ }
500
+ const centerToReference = endDiff / 2 - startDiff / 2;
501
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
502
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
503
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
504
+ const min$1 = minPadding;
505
+ const max2 = clientSize - arrowDimensions[length] - maxPadding;
506
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
507
+ const offset2 = clamp(min$1, center, max2);
508
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
509
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
510
+ return {
511
+ [axis]: coords[axis] + alignmentOffset,
512
+ data: {
513
+ [axis]: offset2,
514
+ centerOffset: center - offset2 - alignmentOffset,
515
+ ...shouldAddOffset && {
516
+ alignmentOffset
517
+ }
518
+ },
519
+ reset: shouldAddOffset
520
+ };
521
+ }
522
+ });
523
+ const flip$1 = function(options) {
524
+ if (options === void 0) {
525
+ options = {};
526
+ }
527
+ return {
528
+ name: "flip",
529
+ options,
530
+ async fn(state) {
531
+ var _middlewareData$arrow, _middlewareData$flip;
532
+ const {
533
+ placement,
534
+ middlewareData,
535
+ rects,
536
+ initialPlacement,
537
+ platform: platform2,
538
+ elements
539
+ } = state;
540
+ const {
541
+ mainAxis: checkMainAxis = true,
542
+ crossAxis: checkCrossAxis = true,
543
+ fallbackPlacements: specifiedFallbackPlacements,
544
+ fallbackStrategy = "bestFit",
545
+ fallbackAxisSideDirection = "none",
546
+ flipAlignment = true,
547
+ ...detectOverflowOptions
548
+ } = evaluate(options, state);
549
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
550
+ return {};
551
+ }
552
+ const side = getSide(placement);
553
+ const initialSideAxis = getSideAxis(initialPlacement);
554
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
555
+ const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
556
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
557
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
558
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
559
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
560
+ }
561
+ const placements = [initialPlacement, ...fallbackPlacements];
562
+ const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
563
+ const overflows = [];
564
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
565
+ if (checkMainAxis) {
566
+ overflows.push(overflow[side]);
567
+ }
568
+ if (checkCrossAxis) {
569
+ const sides2 = getAlignmentSides(placement, rects, rtl);
570
+ overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
571
+ }
572
+ overflowsData = [...overflowsData, {
573
+ placement,
574
+ overflows
575
+ }];
576
+ if (!overflows.every((side2) => side2 <= 0)) {
577
+ var _middlewareData$flip2, _overflowsData$filter;
578
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
579
+ const nextPlacement = placements[nextIndex];
580
+ if (nextPlacement) {
581
+ const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
582
+ if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
583
+ // overflows the main axis.
584
+ overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
585
+ return {
586
+ data: {
587
+ index: nextIndex,
588
+ overflows: overflowsData
589
+ },
590
+ reset: {
591
+ placement: nextPlacement
592
+ }
593
+ };
594
+ }
595
+ }
596
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
597
+ if (!resetPlacement) {
598
+ switch (fallbackStrategy) {
599
+ case "bestFit": {
600
+ var _overflowsData$filter2;
601
+ const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
602
+ if (hasFallbackAxisSideDirection) {
603
+ const currentSideAxis = getSideAxis(d.placement);
604
+ return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
605
+ // reading directions favoring greater width.
606
+ currentSideAxis === "y";
607
+ }
608
+ return true;
609
+ }).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
610
+ if (placement2) {
611
+ resetPlacement = placement2;
612
+ }
613
+ break;
614
+ }
615
+ case "initialPlacement":
616
+ resetPlacement = initialPlacement;
617
+ break;
618
+ }
619
+ }
620
+ if (placement !== resetPlacement) {
621
+ return {
622
+ reset: {
623
+ placement: resetPlacement
624
+ }
625
+ };
626
+ }
627
+ }
628
+ return {};
629
+ }
630
+ };
631
+ };
632
+ function getSideOffsets(overflow, rect) {
633
+ return {
634
+ top: overflow.top - rect.height,
635
+ right: overflow.right - rect.width,
636
+ bottom: overflow.bottom - rect.height,
637
+ left: overflow.left - rect.width
638
+ };
639
+ }
640
+ function isAnySideFullyClipped(overflow) {
641
+ return sides.some((side) => overflow[side] >= 0);
642
+ }
643
+ const hide$1 = function(options) {
644
+ if (options === void 0) {
645
+ options = {};
646
+ }
647
+ return {
648
+ name: "hide",
649
+ options,
650
+ async fn(state) {
651
+ const {
652
+ rects,
653
+ platform: platform2
654
+ } = state;
655
+ const {
656
+ strategy = "referenceHidden",
657
+ ...detectOverflowOptions
658
+ } = evaluate(options, state);
659
+ switch (strategy) {
660
+ case "referenceHidden": {
661
+ const overflow = await platform2.detectOverflow(state, {
662
+ ...detectOverflowOptions,
663
+ elementContext: "reference"
664
+ });
665
+ const offsets = getSideOffsets(overflow, rects.reference);
666
+ return {
667
+ data: {
668
+ referenceHiddenOffsets: offsets,
669
+ referenceHidden: isAnySideFullyClipped(offsets)
670
+ }
671
+ };
672
+ }
673
+ case "escaped": {
674
+ const overflow = await platform2.detectOverflow(state, {
675
+ ...detectOverflowOptions,
676
+ altBoundary: true
677
+ });
678
+ const offsets = getSideOffsets(overflow, rects.floating);
679
+ return {
680
+ data: {
681
+ escapedOffsets: offsets,
682
+ escaped: isAnySideFullyClipped(offsets)
683
+ }
684
+ };
685
+ }
686
+ default: {
687
+ return {};
688
+ }
689
+ }
690
+ }
691
+ };
692
+ };
693
+ const originSides = /* @__PURE__ */ new Set(["left", "top"]);
694
+ async function convertValueToCoords(state, options) {
695
+ const {
696
+ placement,
697
+ platform: platform2,
698
+ elements
699
+ } = state;
700
+ const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
701
+ const side = getSide(placement);
702
+ const alignment = getAlignment(placement);
703
+ const isVertical = getSideAxis(placement) === "y";
704
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
705
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
706
+ const rawValue = evaluate(options, state);
707
+ let {
708
+ mainAxis,
709
+ crossAxis,
710
+ alignmentAxis
711
+ } = typeof rawValue === "number" ? {
712
+ mainAxis: rawValue,
713
+ crossAxis: 0,
714
+ alignmentAxis: null
715
+ } : {
716
+ mainAxis: rawValue.mainAxis || 0,
717
+ crossAxis: rawValue.crossAxis || 0,
718
+ alignmentAxis: rawValue.alignmentAxis
719
+ };
720
+ if (alignment && typeof alignmentAxis === "number") {
721
+ crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
722
+ }
723
+ return isVertical ? {
724
+ x: crossAxis * crossAxisMulti,
725
+ y: mainAxis * mainAxisMulti
726
+ } : {
727
+ x: mainAxis * mainAxisMulti,
728
+ y: crossAxis * crossAxisMulti
729
+ };
730
+ }
731
+ const offset$1 = function(options) {
732
+ if (options === void 0) {
733
+ options = 0;
734
+ }
735
+ return {
736
+ name: "offset",
737
+ options,
738
+ async fn(state) {
739
+ var _middlewareData$offse, _middlewareData$arrow;
740
+ const {
741
+ x,
742
+ y,
743
+ placement,
744
+ middlewareData
745
+ } = state;
746
+ const diffCoords = await convertValueToCoords(state, options);
747
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
748
+ return {};
749
+ }
750
+ return {
751
+ x: x + diffCoords.x,
752
+ y: y + diffCoords.y,
753
+ data: {
754
+ ...diffCoords,
755
+ placement
756
+ }
757
+ };
758
+ }
759
+ };
760
+ };
761
+ const shift$1 = function(options) {
762
+ if (options === void 0) {
763
+ options = {};
764
+ }
765
+ return {
766
+ name: "shift",
767
+ options,
768
+ async fn(state) {
769
+ const {
770
+ x,
771
+ y,
772
+ placement,
773
+ platform: platform2
774
+ } = state;
775
+ const {
776
+ mainAxis: checkMainAxis = true,
777
+ crossAxis: checkCrossAxis = false,
778
+ limiter = {
779
+ fn: (_ref) => {
780
+ let {
781
+ x: x2,
782
+ y: y2
783
+ } = _ref;
784
+ return {
785
+ x: x2,
786
+ y: y2
787
+ };
788
+ }
789
+ },
790
+ ...detectOverflowOptions
791
+ } = evaluate(options, state);
792
+ const coords = {
793
+ x,
794
+ y
795
+ };
796
+ const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
797
+ const crossAxis = getSideAxis(getSide(placement));
798
+ const mainAxis = getOppositeAxis(crossAxis);
799
+ let mainAxisCoord = coords[mainAxis];
800
+ let crossAxisCoord = coords[crossAxis];
801
+ if (checkMainAxis) {
802
+ const minSide = mainAxis === "y" ? "top" : "left";
803
+ const maxSide = mainAxis === "y" ? "bottom" : "right";
804
+ const min2 = mainAxisCoord + overflow[minSide];
805
+ const max2 = mainAxisCoord - overflow[maxSide];
806
+ mainAxisCoord = clamp(min2, mainAxisCoord, max2);
807
+ }
808
+ if (checkCrossAxis) {
809
+ const minSide = crossAxis === "y" ? "top" : "left";
810
+ const maxSide = crossAxis === "y" ? "bottom" : "right";
811
+ const min2 = crossAxisCoord + overflow[minSide];
812
+ const max2 = crossAxisCoord - overflow[maxSide];
813
+ crossAxisCoord = clamp(min2, crossAxisCoord, max2);
814
+ }
815
+ const limitedCoords = limiter.fn({
816
+ ...state,
817
+ [mainAxis]: mainAxisCoord,
818
+ [crossAxis]: crossAxisCoord
819
+ });
820
+ return {
821
+ ...limitedCoords,
822
+ data: {
823
+ x: limitedCoords.x - x,
824
+ y: limitedCoords.y - y,
825
+ enabled: {
826
+ [mainAxis]: checkMainAxis,
827
+ [crossAxis]: checkCrossAxis
828
+ }
829
+ }
830
+ };
831
+ }
832
+ };
833
+ };
834
+ const limitShift$1 = function(options) {
835
+ if (options === void 0) {
836
+ options = {};
837
+ }
838
+ return {
839
+ options,
840
+ fn(state) {
841
+ const {
842
+ x,
843
+ y,
844
+ placement,
845
+ rects,
846
+ middlewareData
847
+ } = state;
848
+ const {
849
+ offset: offset2 = 0,
850
+ mainAxis: checkMainAxis = true,
851
+ crossAxis: checkCrossAxis = true
852
+ } = evaluate(options, state);
853
+ const coords = {
854
+ x,
855
+ y
856
+ };
857
+ const crossAxis = getSideAxis(placement);
858
+ const mainAxis = getOppositeAxis(crossAxis);
859
+ let mainAxisCoord = coords[mainAxis];
860
+ let crossAxisCoord = coords[crossAxis];
861
+ const rawOffset = evaluate(offset2, state);
862
+ const computedOffset = typeof rawOffset === "number" ? {
863
+ mainAxis: rawOffset,
864
+ crossAxis: 0
865
+ } : {
866
+ mainAxis: 0,
867
+ crossAxis: 0,
868
+ ...rawOffset
869
+ };
870
+ if (checkMainAxis) {
871
+ const len = mainAxis === "y" ? "height" : "width";
872
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
873
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
874
+ if (mainAxisCoord < limitMin) {
875
+ mainAxisCoord = limitMin;
876
+ } else if (mainAxisCoord > limitMax) {
877
+ mainAxisCoord = limitMax;
878
+ }
879
+ }
880
+ if (checkCrossAxis) {
881
+ var _middlewareData$offse, _middlewareData$offse2;
882
+ const len = mainAxis === "y" ? "width" : "height";
883
+ const isOriginSide = originSides.has(getSide(placement));
884
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
885
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
886
+ if (crossAxisCoord < limitMin) {
887
+ crossAxisCoord = limitMin;
888
+ } else if (crossAxisCoord > limitMax) {
889
+ crossAxisCoord = limitMax;
890
+ }
891
+ }
892
+ return {
893
+ [mainAxis]: mainAxisCoord,
894
+ [crossAxis]: crossAxisCoord
895
+ };
896
+ }
897
+ };
898
+ };
899
+ const size$1 = function(options) {
900
+ if (options === void 0) {
901
+ options = {};
902
+ }
903
+ return {
904
+ name: "size",
905
+ options,
906
+ async fn(state) {
907
+ var _state$middlewareData, _state$middlewareData2;
908
+ const {
909
+ placement,
910
+ rects,
911
+ platform: platform2,
912
+ elements
913
+ } = state;
914
+ const {
915
+ apply = () => {
916
+ },
917
+ ...detectOverflowOptions
918
+ } = evaluate(options, state);
919
+ const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
920
+ const side = getSide(placement);
921
+ const alignment = getAlignment(placement);
922
+ const isYAxis = getSideAxis(placement) === "y";
923
+ const {
924
+ width,
925
+ height
926
+ } = rects.floating;
927
+ let heightSide;
928
+ let widthSide;
929
+ if (side === "top" || side === "bottom") {
930
+ heightSide = side;
931
+ widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
932
+ } else {
933
+ widthSide = side;
934
+ heightSide = alignment === "end" ? "top" : "bottom";
935
+ }
936
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
937
+ const maximumClippingWidth = width - overflow.left - overflow.right;
938
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
939
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
940
+ const noShift = !state.middlewareData.shift;
941
+ let availableHeight = overflowAvailableHeight;
942
+ let availableWidth = overflowAvailableWidth;
943
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
944
+ availableWidth = maximumClippingWidth;
945
+ }
946
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
947
+ availableHeight = maximumClippingHeight;
948
+ }
949
+ if (noShift && !alignment) {
950
+ const xMin = max(overflow.left, 0);
951
+ const xMax = max(overflow.right, 0);
952
+ const yMin = max(overflow.top, 0);
953
+ const yMax = max(overflow.bottom, 0);
954
+ if (isYAxis) {
955
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
956
+ } else {
957
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
958
+ }
959
+ }
960
+ await apply({
961
+ ...state,
962
+ availableWidth,
963
+ availableHeight
964
+ });
965
+ const nextDimensions = await platform2.getDimensions(elements.floating);
966
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
967
+ return {
968
+ reset: {
969
+ rects: true
970
+ }
971
+ };
972
+ }
973
+ return {};
974
+ }
975
+ };
976
+ };
977
+ function hasWindow() {
978
+ return typeof window !== "undefined";
979
+ }
980
+ function getNodeName(node) {
981
+ if (isNode(node)) {
982
+ return (node.nodeName || "").toLowerCase();
983
+ }
984
+ return "#document";
985
+ }
986
+ function getWindow(node) {
987
+ var _node$ownerDocument;
988
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
989
+ }
990
+ function getDocumentElement(node) {
991
+ var _ref;
992
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
993
+ }
994
+ function isNode(value) {
995
+ if (!hasWindow()) {
996
+ return false;
997
+ }
998
+ return value instanceof Node || value instanceof getWindow(value).Node;
999
+ }
1000
+ function isElement(value) {
1001
+ if (!hasWindow()) {
1002
+ return false;
1003
+ }
1004
+ return value instanceof Element || value instanceof getWindow(value).Element;
1005
+ }
1006
+ function isHTMLElement(value) {
1007
+ if (!hasWindow()) {
1008
+ return false;
1009
+ }
1010
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
1011
+ }
1012
+ function isShadowRoot(value) {
1013
+ if (!hasWindow() || typeof ShadowRoot === "undefined") {
1014
+ return false;
1015
+ }
1016
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
1017
+ }
1018
+ function isOverflowElement(element) {
1019
+ const {
1020
+ overflow,
1021
+ overflowX,
1022
+ overflowY,
1023
+ display
1024
+ } = getComputedStyle$1(element);
1025
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
1026
+ }
1027
+ function isTableElement(element) {
1028
+ return /^(table|td|th)$/.test(getNodeName(element));
1029
+ }
1030
+ function isTopLayer(element) {
1031
+ try {
1032
+ if (element.matches(":popover-open")) {
1033
+ return true;
1034
+ }
1035
+ } catch (_e) {
1036
+ }
1037
+ try {
1038
+ return element.matches(":modal");
1039
+ } catch (_e) {
1040
+ return false;
1041
+ }
1042
+ }
1043
+ const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
1044
+ const containRe = /paint|layout|strict|content/;
1045
+ const isNotNone = (value) => !!value && value !== "none";
1046
+ let isWebKitValue;
1047
+ function isContainingBlock(elementOrCss) {
1048
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
1049
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || "");
1050
+ }
1051
+ function getContainingBlock(element) {
1052
+ let currentNode = getParentNode(element);
1053
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1054
+ if (isContainingBlock(currentNode)) {
1055
+ return currentNode;
1056
+ } else if (isTopLayer(currentNode)) {
1057
+ return null;
1058
+ }
1059
+ currentNode = getParentNode(currentNode);
1060
+ }
1061
+ return null;
1062
+ }
1063
+ function isWebKit() {
1064
+ if (isWebKitValue == null) {
1065
+ isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
1066
+ }
1067
+ return isWebKitValue;
1068
+ }
1069
+ function isLastTraversableNode(node) {
1070
+ return /^(html|body|#document)$/.test(getNodeName(node));
1071
+ }
1072
+ function getComputedStyle$1(element) {
1073
+ return getWindow(element).getComputedStyle(element);
1074
+ }
1075
+ function getNodeScroll(element) {
1076
+ if (isElement(element)) {
1077
+ return {
1078
+ scrollLeft: element.scrollLeft,
1079
+ scrollTop: element.scrollTop
1080
+ };
1081
+ }
1082
+ return {
1083
+ scrollLeft: element.scrollX,
1084
+ scrollTop: element.scrollY
1085
+ };
1086
+ }
1087
+ function getParentNode(node) {
1088
+ if (getNodeName(node) === "html") {
1089
+ return node;
1090
+ }
1091
+ const result = (
1092
+ // Step into the shadow DOM of the parent of a slotted node.
1093
+ node.assignedSlot || // DOM Element detected.
1094
+ node.parentNode || // ShadowRoot detected.
1095
+ isShadowRoot(node) && node.host || // Fallback.
1096
+ getDocumentElement(node)
1097
+ );
1098
+ return isShadowRoot(result) ? result.host : result;
1099
+ }
1100
+ function getNearestOverflowAncestor(node) {
1101
+ const parentNode = getParentNode(node);
1102
+ if (isLastTraversableNode(parentNode)) {
1103
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
1104
+ }
1105
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1106
+ return parentNode;
1107
+ }
1108
+ return getNearestOverflowAncestor(parentNode);
1109
+ }
1110
+ function getOverflowAncestors(node, list, traverseIframes) {
1111
+ var _node$ownerDocument2;
1112
+ if (list === void 0) {
1113
+ list = [];
1114
+ }
1115
+ const scrollableAncestor = getNearestOverflowAncestor(node);
1116
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1117
+ const win = getWindow(scrollableAncestor);
1118
+ if (isBody) {
1119
+ getFrameElement(win);
1120
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], []);
1121
+ } else {
1122
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));
1123
+ }
1124
+ }
1125
+ function getFrameElement(win) {
1126
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
1127
+ }
1128
+ function getCssDimensions(element) {
1129
+ const css = getComputedStyle$1(element);
1130
+ let width = parseFloat(css.width) || 0;
1131
+ let height = parseFloat(css.height) || 0;
1132
+ const hasOffset = isHTMLElement(element);
1133
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
1134
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
1135
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
1136
+ if (shouldFallback) {
1137
+ width = offsetWidth;
1138
+ height = offsetHeight;
1139
+ }
1140
+ return {
1141
+ width,
1142
+ height,
1143
+ $: shouldFallback
1144
+ };
1145
+ }
1146
+ function unwrapElement(element) {
1147
+ return !isElement(element) ? element.contextElement : element;
1148
+ }
1149
+ function getScale(element) {
1150
+ const domElement = unwrapElement(element);
1151
+ if (!isHTMLElement(domElement)) {
1152
+ return createCoords(1);
1153
+ }
1154
+ const rect = domElement.getBoundingClientRect();
1155
+ const {
1156
+ width,
1157
+ height,
1158
+ $
1159
+ } = getCssDimensions(domElement);
1160
+ let x = ($ ? round(rect.width) : rect.width) / width;
1161
+ let y = ($ ? round(rect.height) : rect.height) / height;
1162
+ if (!x || !Number.isFinite(x)) {
1163
+ x = 1;
1164
+ }
1165
+ if (!y || !Number.isFinite(y)) {
1166
+ y = 1;
1167
+ }
1168
+ return {
1169
+ x,
1170
+ y
1171
+ };
1172
+ }
1173
+ const noOffsets = /* @__PURE__ */ createCoords(0);
1174
+ function getVisualOffsets(element) {
1175
+ const win = getWindow(element);
1176
+ if (!isWebKit() || !win.visualViewport) {
1177
+ return noOffsets;
1178
+ }
1179
+ return {
1180
+ x: win.visualViewport.offsetLeft,
1181
+ y: win.visualViewport.offsetTop
1182
+ };
1183
+ }
1184
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1185
+ if (isFixed === void 0) {
1186
+ isFixed = false;
1187
+ }
1188
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
1189
+ return false;
1190
+ }
1191
+ return isFixed;
1192
+ }
1193
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1194
+ if (includeScale === void 0) {
1195
+ includeScale = false;
1196
+ }
1197
+ if (isFixedStrategy === void 0) {
1198
+ isFixedStrategy = false;
1199
+ }
1200
+ const clientRect = element.getBoundingClientRect();
1201
+ const domElement = unwrapElement(element);
1202
+ let scale = createCoords(1);
1203
+ if (includeScale) {
1204
+ if (offsetParent) {
1205
+ if (isElement(offsetParent)) {
1206
+ scale = getScale(offsetParent);
1207
+ }
1208
+ } else {
1209
+ scale = getScale(element);
1210
+ }
1211
+ }
1212
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1213
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
1214
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
1215
+ let width = clientRect.width / scale.x;
1216
+ let height = clientRect.height / scale.y;
1217
+ if (domElement) {
1218
+ const win = getWindow(domElement);
1219
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1220
+ let currentWin = win;
1221
+ let currentIFrame = getFrameElement(currentWin);
1222
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
1223
+ const iframeScale = getScale(currentIFrame);
1224
+ const iframeRect = currentIFrame.getBoundingClientRect();
1225
+ const css = getComputedStyle$1(currentIFrame);
1226
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1227
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1228
+ x *= iframeScale.x;
1229
+ y *= iframeScale.y;
1230
+ width *= iframeScale.x;
1231
+ height *= iframeScale.y;
1232
+ x += left;
1233
+ y += top;
1234
+ currentWin = getWindow(currentIFrame);
1235
+ currentIFrame = getFrameElement(currentWin);
1236
+ }
1237
+ }
1238
+ return rectToClientRect({
1239
+ width,
1240
+ height,
1241
+ x,
1242
+ y
1243
+ });
1244
+ }
1245
+ function getWindowScrollBarX(element, rect) {
1246
+ const leftScroll = getNodeScroll(element).scrollLeft;
1247
+ if (!rect) {
1248
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1249
+ }
1250
+ return rect.left + leftScroll;
1251
+ }
1252
+ function getHTMLOffset(documentElement, scroll) {
1253
+ const htmlRect = documentElement.getBoundingClientRect();
1254
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
1255
+ const y = htmlRect.top + scroll.scrollTop;
1256
+ return {
1257
+ x,
1258
+ y
1259
+ };
1260
+ }
1261
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1262
+ let {
1263
+ elements,
1264
+ rect,
1265
+ offsetParent,
1266
+ strategy
1267
+ } = _ref;
1268
+ const isFixed = strategy === "fixed";
1269
+ const documentElement = getDocumentElement(offsetParent);
1270
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
1271
+ if (offsetParent === documentElement || topLayer && isFixed) {
1272
+ return rect;
1273
+ }
1274
+ let scroll = {
1275
+ scrollLeft: 0,
1276
+ scrollTop: 0
1277
+ };
1278
+ let scale = createCoords(1);
1279
+ const offsets = createCoords(0);
1280
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1281
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1282
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
1283
+ scroll = getNodeScroll(offsetParent);
1284
+ }
1285
+ if (isOffsetParentAnElement) {
1286
+ const offsetRect = getBoundingClientRect(offsetParent);
1287
+ scale = getScale(offsetParent);
1288
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1289
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1290
+ }
1291
+ }
1292
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1293
+ return {
1294
+ width: rect.width * scale.x,
1295
+ height: rect.height * scale.y,
1296
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1297
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1298
+ };
1299
+ }
1300
+ function getClientRects(element) {
1301
+ return Array.from(element.getClientRects());
1302
+ }
1303
+ function getDocumentRect(element) {
1304
+ const html = getDocumentElement(element);
1305
+ const scroll = getNodeScroll(element);
1306
+ const body = element.ownerDocument.body;
1307
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1308
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1309
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1310
+ const y = -scroll.scrollTop;
1311
+ if (getComputedStyle$1(body).direction === "rtl") {
1312
+ x += max(html.clientWidth, body.clientWidth) - width;
1313
+ }
1314
+ return {
1315
+ width,
1316
+ height,
1317
+ x,
1318
+ y
1319
+ };
1320
+ }
1321
+ const SCROLLBAR_MAX = 25;
1322
+ function getViewportRect(element, strategy) {
1323
+ const win = getWindow(element);
1324
+ const html = getDocumentElement(element);
1325
+ const visualViewport = win.visualViewport;
1326
+ let width = html.clientWidth;
1327
+ let height = html.clientHeight;
1328
+ let x = 0;
1329
+ let y = 0;
1330
+ if (visualViewport) {
1331
+ width = visualViewport.width;
1332
+ height = visualViewport.height;
1333
+ const visualViewportBased = isWebKit();
1334
+ if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
1335
+ x = visualViewport.offsetLeft;
1336
+ y = visualViewport.offsetTop;
1337
+ }
1338
+ }
1339
+ const windowScrollbarX = getWindowScrollBarX(html);
1340
+ if (windowScrollbarX <= 0) {
1341
+ const doc = html.ownerDocument;
1342
+ const body = doc.body;
1343
+ const bodyStyles = getComputedStyle(body);
1344
+ const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
1345
+ const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
1346
+ if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
1347
+ width -= clippingStableScrollbarWidth;
1348
+ }
1349
+ } else if (windowScrollbarX <= SCROLLBAR_MAX) {
1350
+ width += windowScrollbarX;
1351
+ }
1352
+ return {
1353
+ width,
1354
+ height,
1355
+ x,
1356
+ y
1357
+ };
1358
+ }
1359
+ function getInnerBoundingClientRect(element, strategy) {
1360
+ const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
1361
+ const top = clientRect.top + element.clientTop;
1362
+ const left = clientRect.left + element.clientLeft;
1363
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
1364
+ const width = element.clientWidth * scale.x;
1365
+ const height = element.clientHeight * scale.y;
1366
+ const x = left * scale.x;
1367
+ const y = top * scale.y;
1368
+ return {
1369
+ width,
1370
+ height,
1371
+ x,
1372
+ y
1373
+ };
1374
+ }
1375
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1376
+ let rect;
1377
+ if (clippingAncestor === "viewport") {
1378
+ rect = getViewportRect(element, strategy);
1379
+ } else if (clippingAncestor === "document") {
1380
+ rect = getDocumentRect(getDocumentElement(element));
1381
+ } else if (isElement(clippingAncestor)) {
1382
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1383
+ } else {
1384
+ const visualOffsets = getVisualOffsets(element);
1385
+ rect = {
1386
+ x: clippingAncestor.x - visualOffsets.x,
1387
+ y: clippingAncestor.y - visualOffsets.y,
1388
+ width: clippingAncestor.width,
1389
+ height: clippingAncestor.height
1390
+ };
1391
+ }
1392
+ return rectToClientRect(rect);
1393
+ }
1394
+ function hasFixedPositionAncestor(element, stopNode) {
1395
+ const parentNode = getParentNode(element);
1396
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1397
+ return false;
1398
+ }
1399
+ return getComputedStyle$1(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
1400
+ }
1401
+ function getClippingElementAncestors(element, cache) {
1402
+ const cachedResult = cache.get(element);
1403
+ if (cachedResult) {
1404
+ return cachedResult;
1405
+ }
1406
+ let result = getOverflowAncestors(element, []).filter((el) => isElement(el) && getNodeName(el) !== "body");
1407
+ let currentContainingBlockComputedStyle = null;
1408
+ const elementIsFixed = getComputedStyle$1(element).position === "fixed";
1409
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
1410
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1411
+ const computedStyle = getComputedStyle$1(currentNode);
1412
+ const currentNodeIsContaining = isContainingBlock(currentNode);
1413
+ if (!currentNodeIsContaining && computedStyle.position === "fixed") {
1414
+ currentContainingBlockComputedStyle = null;
1415
+ }
1416
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1417
+ if (shouldDropCurrentNode) {
1418
+ result = result.filter((ancestor) => ancestor !== currentNode);
1419
+ } else {
1420
+ currentContainingBlockComputedStyle = computedStyle;
1421
+ }
1422
+ currentNode = getParentNode(currentNode);
1423
+ }
1424
+ cache.set(element, result);
1425
+ return result;
1426
+ }
1427
+ function getClippingRect(_ref) {
1428
+ let {
1429
+ element,
1430
+ boundary,
1431
+ rootBoundary,
1432
+ strategy
1433
+ } = _ref;
1434
+ const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1435
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1436
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
1437
+ let top = firstRect.top;
1438
+ let right = firstRect.right;
1439
+ let bottom = firstRect.bottom;
1440
+ let left = firstRect.left;
1441
+ for (let i = 1; i < clippingAncestors.length; i++) {
1442
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
1443
+ top = max(rect.top, top);
1444
+ right = min(rect.right, right);
1445
+ bottom = min(rect.bottom, bottom);
1446
+ left = max(rect.left, left);
1447
+ }
1448
+ return {
1449
+ width: right - left,
1450
+ height: bottom - top,
1451
+ x: left,
1452
+ y: top
1453
+ };
1454
+ }
1455
+ function getDimensions(element) {
1456
+ const {
1457
+ width,
1458
+ height
1459
+ } = getCssDimensions(element);
1460
+ return {
1461
+ width,
1462
+ height
1463
+ };
1464
+ }
1465
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1466
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
1467
+ const documentElement = getDocumentElement(offsetParent);
1468
+ const isFixed = strategy === "fixed";
1469
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1470
+ let scroll = {
1471
+ scrollLeft: 0,
1472
+ scrollTop: 0
1473
+ };
1474
+ const offsets = createCoords(0);
1475
+ function setLeftRTLScrollbarOffset() {
1476
+ offsets.x = getWindowScrollBarX(documentElement);
1477
+ }
1478
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1479
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
1480
+ scroll = getNodeScroll(offsetParent);
1481
+ }
1482
+ if (isOffsetParentAnElement) {
1483
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1484
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
1485
+ offsets.y = offsetRect.y + offsetParent.clientTop;
1486
+ } else if (documentElement) {
1487
+ setLeftRTLScrollbarOffset();
1488
+ }
1489
+ }
1490
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
1491
+ setLeftRTLScrollbarOffset();
1492
+ }
1493
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1494
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1495
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1496
+ return {
1497
+ x,
1498
+ y,
1499
+ width: rect.width,
1500
+ height: rect.height
1501
+ };
1502
+ }
1503
+ function isStaticPositioned(element) {
1504
+ return getComputedStyle$1(element).position === "static";
1505
+ }
1506
+ function getTrueOffsetParent(element, polyfill) {
1507
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") {
1508
+ return null;
1509
+ }
1510
+ if (polyfill) {
1511
+ return polyfill(element);
1512
+ }
1513
+ let rawOffsetParent = element.offsetParent;
1514
+ if (getDocumentElement(element) === rawOffsetParent) {
1515
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
1516
+ }
1517
+ return rawOffsetParent;
1518
+ }
1519
+ function getOffsetParent(element, polyfill) {
1520
+ const win = getWindow(element);
1521
+ if (isTopLayer(element)) {
1522
+ return win;
1523
+ }
1524
+ if (!isHTMLElement(element)) {
1525
+ let svgOffsetParent = getParentNode(element);
1526
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1527
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1528
+ return svgOffsetParent;
1529
+ }
1530
+ svgOffsetParent = getParentNode(svgOffsetParent);
1531
+ }
1532
+ return win;
1533
+ }
1534
+ let offsetParent = getTrueOffsetParent(element, polyfill);
1535
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1536
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1537
+ }
1538
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1539
+ return win;
1540
+ }
1541
+ return offsetParent || getContainingBlock(element) || win;
1542
+ }
1543
+ const getElementRects = async function(data) {
1544
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1545
+ const getDimensionsFn = this.getDimensions;
1546
+ const floatingDimensions = await getDimensionsFn(data.floating);
1547
+ return {
1548
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1549
+ floating: {
1550
+ x: 0,
1551
+ y: 0,
1552
+ width: floatingDimensions.width,
1553
+ height: floatingDimensions.height
1554
+ }
1555
+ };
1556
+ };
1557
+ function isRTL(element) {
1558
+ return getComputedStyle$1(element).direction === "rtl";
1559
+ }
1560
+ const platform = {
1561
+ convertOffsetParentRelativeRectToViewportRelativeRect,
1562
+ getDocumentElement,
1563
+ getClippingRect,
1564
+ getOffsetParent,
1565
+ getElementRects,
1566
+ getClientRects,
1567
+ getDimensions,
1568
+ getScale,
1569
+ isElement,
1570
+ isRTL
1571
+ };
1572
+ const offset = offset$1;
1573
+ const shift = shift$1;
1574
+ const flip = flip$1;
1575
+ const size = size$1;
1576
+ const hide = hide$1;
1577
+ const arrow = arrow$1;
1578
+ const limitShift = limitShift$1;
1579
+ const computePosition = (reference, floating, options) => {
1580
+ const cache = /* @__PURE__ */ new Map();
1581
+ const mergedOptions = {
1582
+ platform,
1583
+ ...options
1584
+ };
1585
+ const platformWithCache = {
1586
+ ...mergedOptions.platform,
1587
+ _c: cache
1588
+ };
1589
+ return computePosition$1(reference, floating, {
1590
+ ...mergedOptions,
1591
+ platform: platformWithCache
1592
+ });
1593
+ };
1594
+ function get(valueOrGetValue) {
1595
+ return typeof valueOrGetValue === "function" ? valueOrGetValue() : valueOrGetValue;
1596
+ }
1597
+ function getDPR(element) {
1598
+ if (typeof window === "undefined") return 1;
1599
+ const win = element.ownerDocument.defaultView || window;
1600
+ return win.devicePixelRatio || 1;
1601
+ }
1602
+ function roundByDPR(element, value) {
1603
+ const dpr = getDPR(element);
1604
+ return Math.round(value * dpr) / dpr;
1605
+ }
1606
+ function getFloatingContentCSSVars(name) {
1607
+ return {
1608
+ [`--bits-${name}-content-transform-origin`]: `var(--bits-floating-transform-origin)`,
1609
+ [`--bits-${name}-content-available-width`]: `var(--bits-floating-available-width)`,
1610
+ [`--bits-${name}-content-available-height`]: `var(--bits-floating-available-height)`,
1611
+ [`--bits-${name}-anchor-width`]: `var(--bits-floating-anchor-width)`,
1612
+ [`--bits-${name}-anchor-height`]: `var(--bits-floating-anchor-height)`
1613
+ };
1614
+ }
1615
+ function useFloating(options) {
1616
+ const openOption = derived(() => get(options.open) ?? true);
1617
+ const middlewareOption = derived(() => get(options.middleware));
1618
+ const transformOption = derived(() => get(options.transform) ?? true);
1619
+ const placementOption = derived(() => get(options.placement) ?? "bottom");
1620
+ const strategyOption = derived(() => get(options.strategy) ?? "absolute");
1621
+ const sideOffsetOption = derived(() => get(options.sideOffset) ?? 0);
1622
+ const alignOffsetOption = derived(() => get(options.alignOffset) ?? 0);
1623
+ const reference = options.reference;
1624
+ let x = 0;
1625
+ let y = 0;
1626
+ const floating = simpleBox(null);
1627
+ let strategy = strategyOption();
1628
+ let placement = placementOption();
1629
+ let middlewareData = {};
1630
+ let isPositioned = false;
1631
+ let updateRequestId = 0;
1632
+ const floatingStyles = derived(() => {
1633
+ const xVal = floating.current ? roundByDPR(floating.current, x) : x;
1634
+ const yVal = floating.current ? roundByDPR(floating.current, y) : y;
1635
+ if (transformOption()) {
1636
+ return {
1637
+ position: strategy,
1638
+ left: "0",
1639
+ top: "0",
1640
+ transform: `translate(${xVal}px, ${yVal}px)`,
1641
+ ...floating.current && getDPR(floating.current) >= 1.5 && { willChange: "transform" }
1642
+ };
1643
+ }
1644
+ return { position: strategy, left: `${xVal}px`, top: `${yVal}px` };
1645
+ });
1646
+ function update() {
1647
+ if (reference.current === null || floating.current === null) return;
1648
+ const referenceNode = reference.current;
1649
+ const floatingNode = floating.current;
1650
+ const requestId = ++updateRequestId;
1651
+ computePosition(referenceNode, floatingNode, {
1652
+ middleware: middlewareOption(),
1653
+ placement: placementOption(),
1654
+ strategy: strategyOption()
1655
+ }).then((position) => {
1656
+ if (requestId !== updateRequestId) return;
1657
+ if (reference.current !== referenceNode || floating.current !== floatingNode) return;
1658
+ const referenceHidden = isReferenceHidden(referenceNode);
1659
+ if (referenceHidden) {
1660
+ middlewareData = {
1661
+ ...middlewareData,
1662
+ hide: {
1663
+ // oxlint-disable-next-line no-explicit-any
1664
+ ...middlewareData.hide,
1665
+ referenceHidden: true
1666
+ }
1667
+ };
1668
+ return;
1669
+ }
1670
+ if (!openOption() && x !== 0 && y !== 0) {
1671
+ const maxExpectedOffset = Math.max(Math.abs(sideOffsetOption()), Math.abs(alignOffsetOption()), 15);
1672
+ if (position.x <= maxExpectedOffset && position.y <= maxExpectedOffset) return;
1673
+ }
1674
+ x = position.x;
1675
+ y = position.y;
1676
+ strategy = position.strategy;
1677
+ placement = position.placement;
1678
+ middlewareData = position.middlewareData;
1679
+ isPositioned = true;
1680
+ });
1681
+ }
1682
+ return {
1683
+ floating,
1684
+ reference,
1685
+ get strategy() {
1686
+ return strategy;
1687
+ },
1688
+ get placement() {
1689
+ return placement;
1690
+ },
1691
+ get middlewareData() {
1692
+ return middlewareData;
1693
+ },
1694
+ get isPositioned() {
1695
+ return isPositioned;
1696
+ },
1697
+ get floatingStyles() {
1698
+ return floatingStyles();
1699
+ },
1700
+ get update() {
1701
+ return update;
1702
+ }
1703
+ };
1704
+ }
1705
+ function isReferenceHidden(node) {
1706
+ if (!(node instanceof Element)) return false;
1707
+ if (!node.isConnected) return true;
1708
+ if (node instanceof HTMLElement && node.hidden) return true;
1709
+ return node.getClientRects().length === 0;
1710
+ }
1711
+ const OPPOSITE_SIDE = { top: "bottom", right: "left", bottom: "top", left: "right" };
1712
+ const FloatingRootContext = new Context("Floating.Root");
1713
+ const FloatingContentContext = new Context("Floating.Content");
1714
+ const FloatingTooltipRootContext = new Context("Floating.Root");
1715
+ class FloatingRootState {
1716
+ static create(tooltip = false) {
1717
+ return tooltip ? FloatingTooltipRootContext.set(new FloatingRootState()) : FloatingRootContext.set(new FloatingRootState());
1718
+ }
1719
+ anchorNode = simpleBox(null);
1720
+ customAnchorNode = simpleBox(null);
1721
+ triggerNode = simpleBox(null);
1722
+ constructor() {
1723
+ }
1724
+ }
1725
+ class FloatingContentState {
1726
+ static create(opts, tooltip = false) {
1727
+ return tooltip ? FloatingContentContext.set(new FloatingContentState(opts, FloatingTooltipRootContext.get())) : FloatingContentContext.set(new FloatingContentState(opts, FloatingRootContext.get()));
1728
+ }
1729
+ opts;
1730
+ root;
1731
+ // nodes
1732
+ contentRef = simpleBox(null);
1733
+ wrapperRef = simpleBox(null);
1734
+ arrowRef = simpleBox(null);
1735
+ contentAttachment = attachRef(this.contentRef);
1736
+ wrapperAttachment = attachRef(this.wrapperRef);
1737
+ arrowAttachment = attachRef(this.arrowRef);
1738
+ // ids
1739
+ arrowId = simpleBox(useId());
1740
+ #transformedStyle = derived(() => {
1741
+ if (typeof this.opts.style === "string") return cssToStyleObj(this.opts.style);
1742
+ if (!this.opts.style) return {};
1743
+ });
1744
+ #updatePositionStrategy = void 0;
1745
+ #arrowSize = new ElementSize(() => this.arrowRef.current ?? void 0);
1746
+ #arrowWidth = derived(() => this.#arrowSize?.width ?? 0);
1747
+ #arrowHeight = derived(() => this.#arrowSize?.height ?? 0);
1748
+ #desiredPlacement = derived(() => this.opts.side?.current + (this.opts.align.current !== "center" ? `-${this.opts.align.current}` : ""));
1749
+ #boundary = derived(() => Array.isArray(this.opts.collisionBoundary.current) ? this.opts.collisionBoundary.current : [this.opts.collisionBoundary.current]);
1750
+ #hasExplicitBoundaries = derived(() => this.#boundary().length > 0);
1751
+ get hasExplicitBoundaries() {
1752
+ return this.#hasExplicitBoundaries();
1753
+ }
1754
+ set hasExplicitBoundaries($$value) {
1755
+ return this.#hasExplicitBoundaries($$value);
1756
+ }
1757
+ #detectOverflowOptions = derived(() => ({
1758
+ padding: this.opts.collisionPadding.current,
1759
+ boundary: this.#boundary().filter(isNotNull),
1760
+ altBoundary: this.hasExplicitBoundaries
1761
+ }));
1762
+ get detectOverflowOptions() {
1763
+ return this.#detectOverflowOptions();
1764
+ }
1765
+ set detectOverflowOptions($$value) {
1766
+ return this.#detectOverflowOptions($$value);
1767
+ }
1768
+ #availableWidth = void 0;
1769
+ #availableHeight = void 0;
1770
+ #anchorWidth = void 0;
1771
+ #anchorHeight = void 0;
1772
+ #middleware = derived(() => [
1773
+ offset({
1774
+ mainAxis: this.opts.sideOffset.current + this.#arrowHeight(),
1775
+ alignmentAxis: this.opts.alignOffset.current
1776
+ }),
1777
+ this.opts.avoidCollisions.current && shift({
1778
+ mainAxis: true,
1779
+ crossAxis: false,
1780
+ limiter: this.opts.sticky.current === "partial" ? limitShift() : void 0,
1781
+ ...this.detectOverflowOptions
1782
+ }),
1783
+ this.opts.avoidCollisions.current && flip({ ...this.detectOverflowOptions }),
1784
+ size({
1785
+ ...this.detectOverflowOptions,
1786
+ apply: ({ rects, availableWidth, availableHeight }) => {
1787
+ const { width: anchorWidth, height: anchorHeight } = rects.reference;
1788
+ this.#availableWidth = availableWidth;
1789
+ this.#availableHeight = availableHeight;
1790
+ this.#anchorWidth = anchorWidth;
1791
+ this.#anchorHeight = anchorHeight;
1792
+ }
1793
+ }),
1794
+ this.arrowRef.current && arrow({
1795
+ element: this.arrowRef.current,
1796
+ padding: this.opts.arrowPadding.current
1797
+ }),
1798
+ transformOrigin({
1799
+ arrowWidth: this.#arrowWidth(),
1800
+ arrowHeight: this.#arrowHeight()
1801
+ }),
1802
+ this.opts.hideWhenDetached.current && hide({ strategy: "referenceHidden", ...this.detectOverflowOptions })
1803
+ ].filter(Boolean));
1804
+ get middleware() {
1805
+ return this.#middleware();
1806
+ }
1807
+ set middleware($$value) {
1808
+ return this.#middleware($$value);
1809
+ }
1810
+ floating;
1811
+ #placedSide = derived(() => getSideFromPlacement(this.floating.placement));
1812
+ get placedSide() {
1813
+ return this.#placedSide();
1814
+ }
1815
+ set placedSide($$value) {
1816
+ return this.#placedSide($$value);
1817
+ }
1818
+ #placedAlign = derived(() => getAlignFromPlacement(this.floating.placement));
1819
+ get placedAlign() {
1820
+ return this.#placedAlign();
1821
+ }
1822
+ set placedAlign($$value) {
1823
+ return this.#placedAlign($$value);
1824
+ }
1825
+ #arrowX = derived(() => this.floating.middlewareData.arrow?.x ?? 0);
1826
+ get arrowX() {
1827
+ return this.#arrowX();
1828
+ }
1829
+ set arrowX($$value) {
1830
+ return this.#arrowX($$value);
1831
+ }
1832
+ #arrowY = derived(() => this.floating.middlewareData.arrow?.y ?? 0);
1833
+ get arrowY() {
1834
+ return this.#arrowY();
1835
+ }
1836
+ set arrowY($$value) {
1837
+ return this.#arrowY($$value);
1838
+ }
1839
+ #cannotCenterArrow = derived(() => this.floating.middlewareData.arrow?.centerOffset !== 0);
1840
+ get cannotCenterArrow() {
1841
+ return this.#cannotCenterArrow();
1842
+ }
1843
+ set cannotCenterArrow($$value) {
1844
+ return this.#cannotCenterArrow($$value);
1845
+ }
1846
+ contentZIndex;
1847
+ #arrowBaseSide = derived(() => OPPOSITE_SIDE[this.placedSide]);
1848
+ get arrowBaseSide() {
1849
+ return this.#arrowBaseSide();
1850
+ }
1851
+ set arrowBaseSide($$value) {
1852
+ return this.#arrowBaseSide($$value);
1853
+ }
1854
+ #wrapperProps = derived(() => ({
1855
+ id: this.opts.wrapperId.current,
1856
+ "data-bits-floating-content-wrapper": "",
1857
+ style: {
1858
+ ...this.floating.floatingStyles,
1859
+ transform: this.floating.isPositioned ? this.floating.floatingStyles.transform : "translate(0, -200%)",
1860
+ minWidth: "max-content",
1861
+ zIndex: this.contentZIndex,
1862
+ "--bits-floating-transform-origin": `${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,
1863
+ "--bits-floating-available-width": `${this.#availableWidth}px`,
1864
+ "--bits-floating-available-height": `${this.#availableHeight}px`,
1865
+ "--bits-floating-anchor-width": `${this.#anchorWidth}px`,
1866
+ "--bits-floating-anchor-height": `${this.#anchorHeight}px`,
1867
+ ...this.floating.middlewareData.hide?.referenceHidden && { visibility: "hidden", "pointer-events": "none" },
1868
+ ...this.#transformedStyle()
1869
+ },
1870
+ dir: this.opts.dir.current,
1871
+ ...this.wrapperAttachment
1872
+ }));
1873
+ get wrapperProps() {
1874
+ return this.#wrapperProps();
1875
+ }
1876
+ set wrapperProps($$value) {
1877
+ return this.#wrapperProps($$value);
1878
+ }
1879
+ #props = derived(() => ({
1880
+ "data-side": this.placedSide,
1881
+ "data-align": this.placedAlign,
1882
+ style: styleToString({ ...this.#transformedStyle() }),
1883
+ ...this.contentAttachment
1884
+ }));
1885
+ get props() {
1886
+ return this.#props();
1887
+ }
1888
+ set props($$value) {
1889
+ return this.#props($$value);
1890
+ }
1891
+ #arrowStyle = derived(() => ({
1892
+ position: "absolute",
1893
+ left: this.arrowX ? `${this.arrowX}px` : void 0,
1894
+ top: this.arrowY ? `${this.arrowY}px` : void 0,
1895
+ [this.arrowBaseSide]: 0,
1896
+ "transform-origin": { top: "", right: "0 0", bottom: "center 0", left: "100% 0" }[this.placedSide],
1897
+ transform: {
1898
+ top: "translateY(100%)",
1899
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
1900
+ bottom: "rotate(180deg)",
1901
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
1902
+ }[this.placedSide],
1903
+ visibility: this.cannotCenterArrow ? "hidden" : void 0
1904
+ }));
1905
+ get arrowStyle() {
1906
+ return this.#arrowStyle();
1907
+ }
1908
+ set arrowStyle($$value) {
1909
+ return this.#arrowStyle($$value);
1910
+ }
1911
+ constructor(opts, root) {
1912
+ this.opts = opts;
1913
+ this.root = root;
1914
+ this.#updatePositionStrategy = opts.updatePositionStrategy;
1915
+ if (opts.customAnchor) {
1916
+ this.root.customAnchorNode.current = opts.customAnchor.current;
1917
+ }
1918
+ watch(() => opts.customAnchor.current, (customAnchor) => {
1919
+ this.root.customAnchorNode.current = customAnchor;
1920
+ });
1921
+ this.floating = useFloating({
1922
+ strategy: () => this.opts.strategy.current,
1923
+ placement: () => this.#desiredPlacement(),
1924
+ middleware: () => this.middleware,
1925
+ reference: this.root.anchorNode,
1926
+ open: () => this.opts.enabled.current,
1927
+ sideOffset: () => this.opts.sideOffset.current,
1928
+ alignOffset: () => this.opts.alignOffset.current
1929
+ });
1930
+ watch(() => this.contentRef.current, (contentNode) => {
1931
+ if (!contentNode || !this.opts.enabled.current) return;
1932
+ const win = getWindow$1(contentNode);
1933
+ const rafId = win.requestAnimationFrame(() => {
1934
+ if (this.contentRef.current !== contentNode || !this.opts.enabled.current) return;
1935
+ const zIndex = win.getComputedStyle(contentNode).zIndex;
1936
+ if (zIndex !== this.contentZIndex) {
1937
+ this.contentZIndex = zIndex;
1938
+ }
1939
+ });
1940
+ return () => {
1941
+ win.cancelAnimationFrame(rafId);
1942
+ };
1943
+ });
1944
+ }
1945
+ }
1946
+ class FloatingAnchorState {
1947
+ static create(opts, tooltip = false) {
1948
+ return tooltip ? new FloatingAnchorState(opts, FloatingTooltipRootContext.get()) : new FloatingAnchorState(opts, FloatingRootContext.get());
1949
+ }
1950
+ opts;
1951
+ root;
1952
+ constructor(opts, root) {
1953
+ this.opts = opts;
1954
+ this.root = root;
1955
+ if (opts.virtualEl && opts.virtualEl.current) {
1956
+ root.triggerNode = boxFrom(opts.virtualEl.current);
1957
+ } else {
1958
+ root.triggerNode = opts.ref;
1959
+ }
1960
+ }
1961
+ }
1962
+ function transformOrigin(options) {
1963
+ return {
1964
+ name: "transformOrigin",
1965
+ options,
1966
+ fn(data) {
1967
+ const { placement, rects, middlewareData } = data;
1968
+ const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
1969
+ const isArrowHidden = cannotCenterArrow;
1970
+ const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
1971
+ const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
1972
+ const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
1973
+ const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
1974
+ const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
1975
+ const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
1976
+ let x = "";
1977
+ let y = "";
1978
+ if (placedSide === "bottom") {
1979
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
1980
+ y = `${-arrowHeight}px`;
1981
+ } else if (placedSide === "top") {
1982
+ x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
1983
+ y = `${rects.floating.height + arrowHeight}px`;
1984
+ } else if (placedSide === "right") {
1985
+ x = `${-arrowHeight}px`;
1986
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
1987
+ } else if (placedSide === "left") {
1988
+ x = `${rects.floating.width + arrowHeight}px`;
1989
+ y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
1990
+ }
1991
+ return { data: { x, y } };
1992
+ }
1993
+ };
1994
+ }
1995
+ function getSideAndAlignFromPlacement(placement) {
1996
+ const [side, align = "center"] = placement.split("-");
1997
+ return [side, align];
1998
+ }
1999
+ function getSideFromPlacement(placement) {
2000
+ return getSideAndAlignFromPlacement(placement)[0];
2001
+ }
2002
+ function getAlignFromPlacement(placement) {
2003
+ return getSideAndAlignFromPlacement(placement)[1];
2004
+ }
2005
+ function Floating_layer($$renderer, $$props) {
2006
+ $$renderer.component(($$renderer2) => {
2007
+ let { children, tooltip = false } = $$props;
2008
+ FloatingRootState.create(tooltip);
2009
+ children?.($$renderer2);
2010
+ $$renderer2.push(`<!---->`);
2011
+ });
2012
+ }
2013
+ class DataTypeahead {
2014
+ #opts;
2015
+ #candidateValues = derived(() => this.#opts.candidateValues());
2016
+ #search;
2017
+ constructor(opts) {
2018
+ this.#opts = opts;
2019
+ this.#search = boxAutoReset("", { afterMs: 1e3, getWindow: this.#opts.getWindow });
2020
+ this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this);
2021
+ this.resetTypeahead = this.resetTypeahead.bind(this);
2022
+ }
2023
+ handleTypeaheadSearch(key) {
2024
+ if (!this.#opts.enabled() || !this.#candidateValues().length) return;
2025
+ this.#search.current = this.#search.current + key;
2026
+ const currentItem = this.#opts.getCurrentItem();
2027
+ const currentMatch = this.#candidateValues().find((item) => item === currentItem) ?? "";
2028
+ const values = this.#candidateValues().map((item) => item ?? "");
2029
+ const nextMatch = getNextMatch(values, this.#search.current, currentMatch);
2030
+ const newItem = this.#candidateValues().find((item) => item === nextMatch);
2031
+ if (newItem) {
2032
+ this.#opts.onMatch(newItem);
2033
+ }
2034
+ return newItem;
2035
+ }
2036
+ resetTypeahead() {
2037
+ this.#search.current = "";
2038
+ }
2039
+ }
2040
+ const FIRST_KEYS = [ARROW_DOWN, PAGE_UP, HOME];
2041
+ const LAST_KEYS = [ARROW_UP, PAGE_DOWN, END];
2042
+ const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
2043
+ const selectAttrs = createBitsAttrs({
2044
+ component: "select",
2045
+ parts: [
2046
+ "trigger",
2047
+ "content",
2048
+ "item",
2049
+ "viewport",
2050
+ "scroll-up-button",
2051
+ "scroll-down-button",
2052
+ "group",
2053
+ "group-label",
2054
+ "separator",
2055
+ "arrow",
2056
+ "input",
2057
+ "content-wrapper",
2058
+ "item-text",
2059
+ "value"
2060
+ ]
2061
+ });
2062
+ const SelectRootContext = new Context("Select.Root | Combobox.Root");
2063
+ const SelectContentContext = new Context("Select.Content | Combobox.Content");
2064
+ class SelectBaseRootState {
2065
+ opts;
2066
+ touchedInput = false;
2067
+ inputNode = null;
2068
+ contentNode = null;
2069
+ contentPresence;
2070
+ viewportNode = null;
2071
+ triggerNode = null;
2072
+ valueNode = null;
2073
+ valueId = "";
2074
+ highlightedNode = null;
2075
+ #highlightedValue = derived(() => {
2076
+ if (!this.highlightedNode) return null;
2077
+ return this.highlightedNode.getAttribute("data-value");
2078
+ });
2079
+ get highlightedValue() {
2080
+ return this.#highlightedValue();
2081
+ }
2082
+ set highlightedValue($$value) {
2083
+ return this.#highlightedValue($$value);
2084
+ }
2085
+ #highlightedId = derived(() => {
2086
+ if (!this.highlightedNode) return void 0;
2087
+ return this.highlightedNode.id;
2088
+ });
2089
+ get highlightedId() {
2090
+ return this.#highlightedId();
2091
+ }
2092
+ set highlightedId($$value) {
2093
+ return this.#highlightedId($$value);
2094
+ }
2095
+ #highlightedLabel = derived(() => {
2096
+ if (!this.highlightedNode) return null;
2097
+ return this.highlightedNode.getAttribute("data-label");
2098
+ });
2099
+ get highlightedLabel() {
2100
+ return this.#highlightedLabel();
2101
+ }
2102
+ set highlightedLabel($$value) {
2103
+ return this.#highlightedLabel($$value);
2104
+ }
2105
+ contentIsPositioned = false;
2106
+ isUsingKeyboard = false;
2107
+ isCombobox = false;
2108
+ domContext = new DOMContext(() => null);
2109
+ constructor(opts) {
2110
+ this.opts = opts;
2111
+ this.isCombobox = opts.isCombobox;
2112
+ this.contentPresence = new PresenceManager({
2113
+ ref: boxWith(() => this.contentNode),
2114
+ open: this.opts.open,
2115
+ onComplete: () => {
2116
+ this.opts.onOpenChangeComplete.current(this.opts.open.current);
2117
+ }
2118
+ });
2119
+ }
2120
+ setHighlightedNode(node, initial = false) {
2121
+ this.highlightedNode = node;
2122
+ if (node && (this.isUsingKeyboard || initial)) {
2123
+ this.scrollHighlightedNodeIntoView(node);
2124
+ }
2125
+ }
2126
+ scrollHighlightedNodeIntoView(node) {
2127
+ if (!this.viewportNode || !this.contentIsPositioned) return;
2128
+ node.scrollIntoView({ block: this.opts.scrollAlignment.current });
2129
+ }
2130
+ getCandidateNodes() {
2131
+ const node = this.contentNode;
2132
+ if (!node) return [];
2133
+ return Array.from(node.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`));
2134
+ }
2135
+ setHighlightedToFirstCandidate(initial = false) {
2136
+ this.setHighlightedNode(null);
2137
+ let nodes = this.getCandidateNodes();
2138
+ if (!nodes.length) return;
2139
+ if (this.viewportNode) {
2140
+ const viewportRect = this.viewportNode.getBoundingClientRect();
2141
+ nodes = nodes.filter((node) => {
2142
+ if (!this.viewportNode) return false;
2143
+ const nodeRect = node.getBoundingClientRect();
2144
+ const isNodeFullyVisible = nodeRect.right <= viewportRect.right && nodeRect.left >= viewportRect.left && nodeRect.bottom <= viewportRect.bottom && nodeRect.top >= viewportRect.top;
2145
+ return isNodeFullyVisible;
2146
+ });
2147
+ }
2148
+ this.setHighlightedNode(nodes[0], initial);
2149
+ }
2150
+ getNodeByValue(value) {
2151
+ const candidateNodes = this.getCandidateNodes();
2152
+ return candidateNodes.find((node) => node.dataset.value === value) ?? null;
2153
+ }
2154
+ /**
2155
+ * Resolves the display label for a value: `items` entry when present, otherwise the
2156
+ * mounted item's `data-label` or its text content.
2157
+ */
2158
+ getLabelForValue(value) {
2159
+ if (value === "") return "";
2160
+ const fromItems = this.opts.items.current.find((item) => item.value === value)?.label;
2161
+ if (fromItems !== void 0) return fromItems;
2162
+ const node = this.getNodeByValue(value);
2163
+ if (node) {
2164
+ const dataLabel = node.getAttribute("data-label");
2165
+ if (dataLabel !== null && dataLabel !== "") return dataLabel;
2166
+ return node.textContent?.trim() ?? value;
2167
+ }
2168
+ return value;
2169
+ }
2170
+ setOpen(open) {
2171
+ this.opts.open.current = open;
2172
+ }
2173
+ toggleOpen() {
2174
+ this.opts.open.current = !this.opts.open.current;
2175
+ }
2176
+ handleOpen() {
2177
+ this.setOpen(true);
2178
+ }
2179
+ handleClose() {
2180
+ this.setHighlightedNode(null);
2181
+ this.setOpen(false);
2182
+ }
2183
+ toggleMenu() {
2184
+ this.toggleOpen();
2185
+ }
2186
+ getBitsAttr = (part) => {
2187
+ return selectAttrs.getAttr(part, this.isCombobox ? "combobox" : void 0);
2188
+ };
2189
+ }
2190
+ class SelectSingleRootState extends SelectBaseRootState {
2191
+ opts;
2192
+ isMulti = false;
2193
+ #hasValue = derived(() => this.opts.value.current !== "");
2194
+ get hasValue() {
2195
+ return this.#hasValue();
2196
+ }
2197
+ set hasValue($$value) {
2198
+ return this.#hasValue($$value);
2199
+ }
2200
+ #currentLabel = derived(() => {
2201
+ if (!this.opts.items.current.length) return "";
2202
+ return this.opts.items.current.find((item) => item.value === this.opts.value.current)?.label ?? "";
2203
+ });
2204
+ get currentLabel() {
2205
+ return this.#currentLabel();
2206
+ }
2207
+ set currentLabel($$value) {
2208
+ return this.#currentLabel($$value);
2209
+ }
2210
+ #candidateLabels = derived(() => {
2211
+ if (!this.opts.items.current.length) return [];
2212
+ const filteredItems = this.opts.items.current.filter((item) => !item.disabled);
2213
+ return filteredItems.map((item) => item.label);
2214
+ });
2215
+ get candidateLabels() {
2216
+ return this.#candidateLabels();
2217
+ }
2218
+ set candidateLabels($$value) {
2219
+ return this.#candidateLabels($$value);
2220
+ }
2221
+ #dataTypeaheadEnabled = derived(() => {
2222
+ if (this.isMulti) return false;
2223
+ if (this.opts.items.current.length === 0) return false;
2224
+ return true;
2225
+ });
2226
+ get dataTypeaheadEnabled() {
2227
+ return this.#dataTypeaheadEnabled();
2228
+ }
2229
+ set dataTypeaheadEnabled($$value) {
2230
+ return this.#dataTypeaheadEnabled($$value);
2231
+ }
2232
+ constructor(opts) {
2233
+ super(opts);
2234
+ this.opts = opts;
2235
+ watch(() => this.opts.open.current, () => {
2236
+ if (!this.opts.open.current) return;
2237
+ this.setInitialHighlightedNode();
2238
+ });
2239
+ }
2240
+ includesItem(itemValue) {
2241
+ return this.opts.value.current === itemValue;
2242
+ }
2243
+ toggleItem(itemValue, itemLabel = itemValue) {
2244
+ const newValue = this.includesItem(itemValue) ? "" : itemValue;
2245
+ this.opts.value.current = newValue;
2246
+ if (newValue !== "") {
2247
+ this.opts.inputValue.current = itemLabel;
2248
+ }
2249
+ }
2250
+ setInitialHighlightedNode() {
2251
+ afterTick(() => {
2252
+ if (this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode)) return;
2253
+ if (this.opts.value.current !== "") {
2254
+ const node = this.getNodeByValue(this.opts.value.current);
2255
+ if (node) {
2256
+ this.setHighlightedNode(node, true);
2257
+ return;
2258
+ }
2259
+ }
2260
+ this.setHighlightedToFirstCandidate(true);
2261
+ });
2262
+ }
2263
+ }
2264
+ class SelectMultipleRootState extends SelectBaseRootState {
2265
+ opts;
2266
+ isMulti = true;
2267
+ #hasValue = derived(() => this.opts.value.current.length > 0);
2268
+ get hasValue() {
2269
+ return this.#hasValue();
2270
+ }
2271
+ set hasValue($$value) {
2272
+ return this.#hasValue($$value);
2273
+ }
2274
+ constructor(opts) {
2275
+ super(opts);
2276
+ this.opts = opts;
2277
+ watch(() => this.opts.open.current, () => {
2278
+ if (!this.opts.open.current) return;
2279
+ this.setInitialHighlightedNode();
2280
+ });
2281
+ }
2282
+ includesItem(itemValue) {
2283
+ return this.opts.value.current.includes(itemValue);
2284
+ }
2285
+ toggleItem(itemValue, itemLabel = itemValue) {
2286
+ if (this.includesItem(itemValue)) {
2287
+ this.opts.value.current = this.opts.value.current.filter((v) => v !== itemValue);
2288
+ } else {
2289
+ this.opts.value.current = [...this.opts.value.current, itemValue];
2290
+ }
2291
+ this.opts.inputValue.current = itemLabel;
2292
+ }
2293
+ setInitialHighlightedNode() {
2294
+ afterTick(() => {
2295
+ if (!this.domContext) return;
2296
+ if (this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode)) return;
2297
+ if (this.opts.value.current.length && this.opts.value.current[0] !== "") {
2298
+ const node = this.getNodeByValue(this.opts.value.current[0]);
2299
+ if (node) {
2300
+ this.setHighlightedNode(node, true);
2301
+ return;
2302
+ }
2303
+ }
2304
+ this.setHighlightedToFirstCandidate(true);
2305
+ });
2306
+ }
2307
+ }
2308
+ class SelectRootState {
2309
+ static create(props) {
2310
+ const { type, ...rest } = props;
2311
+ const rootState = type === "single" ? new SelectSingleRootState(rest) : new SelectMultipleRootState(rest);
2312
+ return SelectRootContext.set(rootState);
2313
+ }
2314
+ }
2315
+ class SelectTriggerState {
2316
+ static create(opts) {
2317
+ return new SelectTriggerState(opts, SelectRootContext.get());
2318
+ }
2319
+ opts;
2320
+ root;
2321
+ attachment;
2322
+ #domTypeahead;
2323
+ #dataTypeahead;
2324
+ constructor(opts, root) {
2325
+ this.opts = opts;
2326
+ this.root = root;
2327
+ this.attachment = attachRef(opts.ref, (v) => this.root.triggerNode = v);
2328
+ this.root.domContext = new DOMContext(opts.ref);
2329
+ this.#domTypeahead = new DOMTypeahead({
2330
+ getCurrentItem: () => this.root.highlightedNode,
2331
+ onMatch: (node) => {
2332
+ this.root.setHighlightedNode(node);
2333
+ },
2334
+ getActiveElement: () => this.root.domContext.getActiveElement(),
2335
+ getWindow: () => this.root.domContext.getWindow()
2336
+ });
2337
+ this.#dataTypeahead = new DataTypeahead({
2338
+ getCurrentItem: () => {
2339
+ if (this.root.isMulti) return "";
2340
+ return this.root.currentLabel;
2341
+ },
2342
+ onMatch: (label) => {
2343
+ if (this.root.isMulti) return;
2344
+ if (!this.root.opts.items.current) return;
2345
+ const matchedItem = this.root.opts.items.current.find((item) => item.label === label);
2346
+ if (!matchedItem) return;
2347
+ this.root.opts.value.current = matchedItem.value;
2348
+ },
2349
+ enabled: () => !this.root.isMulti && this.root.dataTypeaheadEnabled,
2350
+ candidateValues: () => this.root.isMulti ? [] : this.root.candidateLabels,
2351
+ getWindow: () => this.root.domContext.getWindow()
2352
+ });
2353
+ this.onkeydown = this.onkeydown.bind(this);
2354
+ this.onpointerdown = this.onpointerdown.bind(this);
2355
+ this.onpointerup = this.onpointerup.bind(this);
2356
+ this.onclick = this.onclick.bind(this);
2357
+ }
2358
+ #handleOpen() {
2359
+ this.root.opts.open.current = true;
2360
+ this.#dataTypeahead.resetTypeahead();
2361
+ this.#domTypeahead.resetTypeahead();
2362
+ }
2363
+ #handlePointerOpen(_) {
2364
+ this.#handleOpen();
2365
+ }
2366
+ /**
2367
+ * Logic used to handle keyboard selection/deselection.
2368
+ *
2369
+ * If it returns true, it means the item was selected and whatever is calling
2370
+ * this function should return early
2371
+ *
2372
+ */
2373
+ #handleKeyboardSelection() {
2374
+ const isCurrentSelectedValue = this.root.highlightedValue === this.root.opts.value.current;
2375
+ if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {
2376
+ this.root.handleClose();
2377
+ return true;
2378
+ }
2379
+ if (this.root.highlightedValue !== null) {
2380
+ this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel ?? void 0);
2381
+ }
2382
+ if (!this.root.isMulti && !isCurrentSelectedValue) {
2383
+ this.root.handleClose();
2384
+ return true;
2385
+ }
2386
+ return false;
2387
+ }
2388
+ onkeydown(e) {
2389
+ this.root.isUsingKeyboard = true;
2390
+ if (e.key === ARROW_UP || e.key === ARROW_DOWN) e.preventDefault();
2391
+ if (!this.root.opts.open.current) {
2392
+ if (e.key === ENTER || e.key === SPACE || e.key === ARROW_DOWN || e.key === ARROW_UP) {
2393
+ e.preventDefault();
2394
+ this.root.handleOpen();
2395
+ } else if (!this.root.isMulti && this.root.dataTypeaheadEnabled) {
2396
+ this.#dataTypeahead.handleTypeaheadSearch(e.key);
2397
+ return;
2398
+ }
2399
+ if (this.root.hasValue) return;
2400
+ const candidateNodes2 = this.root.getCandidateNodes();
2401
+ if (!candidateNodes2.length) return;
2402
+ if (e.key === ARROW_DOWN) {
2403
+ const firstCandidate = candidateNodes2[0];
2404
+ this.root.setHighlightedNode(firstCandidate);
2405
+ } else if (e.key === ARROW_UP) {
2406
+ const lastCandidate = candidateNodes2[candidateNodes2.length - 1];
2407
+ this.root.setHighlightedNode(lastCandidate);
2408
+ }
2409
+ return;
2410
+ }
2411
+ if (e.key === TAB) {
2412
+ this.root.handleClose();
2413
+ return;
2414
+ }
2415
+ if ((e.key === ENTER || // if we're currently "typing ahead", we don't want to select the item
2416
+ // just yet as the item the user is trying to get to may have a space in it,
2417
+ // so we defer handling the close for this case until further down
2418
+ e.key === SPACE && this.#domTypeahead.search === "") && !e.isComposing) {
2419
+ e.preventDefault();
2420
+ const shouldReturn = this.#handleKeyboardSelection();
2421
+ if (shouldReturn) return;
2422
+ }
2423
+ if (e.key === ARROW_UP && e.altKey) {
2424
+ this.root.handleClose();
2425
+ }
2426
+ if (FIRST_LAST_KEYS.includes(e.key)) {
2427
+ e.preventDefault();
2428
+ const candidateNodes2 = this.root.getCandidateNodes();
2429
+ const currHighlightedNode = this.root.highlightedNode;
2430
+ const currIndex = currHighlightedNode ? candidateNodes2.indexOf(currHighlightedNode) : -1;
2431
+ const loop = this.root.opts.loop.current;
2432
+ let nextItem;
2433
+ if (e.key === ARROW_DOWN) {
2434
+ nextItem = next(candidateNodes2, currIndex, loop);
2435
+ } else if (e.key === ARROW_UP) {
2436
+ nextItem = prev(candidateNodes2, currIndex, loop);
2437
+ } else if (e.key === PAGE_DOWN) {
2438
+ nextItem = forward(candidateNodes2, currIndex, 10, loop);
2439
+ } else if (e.key === PAGE_UP) {
2440
+ nextItem = backward(candidateNodes2, currIndex, 10, loop);
2441
+ } else if (e.key === HOME) {
2442
+ nextItem = candidateNodes2[0];
2443
+ } else if (e.key === END) {
2444
+ nextItem = candidateNodes2[candidateNodes2.length - 1];
2445
+ }
2446
+ if (!nextItem) return;
2447
+ this.root.setHighlightedNode(nextItem);
2448
+ return;
2449
+ }
2450
+ const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;
2451
+ const isCharacterKey = e.key.length === 1;
2452
+ const isSpaceKey = e.key === SPACE;
2453
+ const candidateNodes = this.root.getCandidateNodes();
2454
+ if (e.key === TAB) return;
2455
+ if (!isModifierKey && (isCharacterKey || isSpaceKey)) {
2456
+ const matchedNode = this.#domTypeahead.handleTypeaheadSearch(e.key, candidateNodes);
2457
+ if (!matchedNode && isSpaceKey) {
2458
+ e.preventDefault();
2459
+ this.#handleKeyboardSelection();
2460
+ }
2461
+ return;
2462
+ }
2463
+ if (!this.root.highlightedNode) {
2464
+ this.root.setHighlightedToFirstCandidate();
2465
+ }
2466
+ }
2467
+ onclick(e) {
2468
+ const currTarget = e.currentTarget;
2469
+ currTarget.focus();
2470
+ }
2471
+ onpointerdown(e) {
2472
+ if (this.root.opts.disabled.current) return;
2473
+ if (e.pointerType === "touch") return e.preventDefault();
2474
+ const target = e.target;
2475
+ if (target?.hasPointerCapture(e.pointerId)) {
2476
+ target?.releasePointerCapture(e.pointerId);
2477
+ }
2478
+ if (e.button === 0 && e.ctrlKey === false) {
2479
+ if (this.root.opts.open.current === false) {
2480
+ this.#handlePointerOpen(e);
2481
+ } else {
2482
+ this.root.handleClose();
2483
+ }
2484
+ }
2485
+ }
2486
+ onpointerup(e) {
2487
+ if (this.root.opts.disabled.current) return;
2488
+ e.preventDefault();
2489
+ if (e.pointerType === "touch") {
2490
+ if (this.root.opts.open.current === false) {
2491
+ this.#handlePointerOpen(e);
2492
+ } else {
2493
+ this.root.handleClose();
2494
+ }
2495
+ }
2496
+ }
2497
+ #props = derived(() => ({
2498
+ id: this.opts.id.current,
2499
+ disabled: this.root.opts.disabled.current ? true : void 0,
2500
+ "aria-haspopup": "listbox",
2501
+ "aria-expanded": boolToStr(this.root.opts.open.current),
2502
+ "aria-activedescendant": this.root.highlightedId,
2503
+ "data-state": getDataOpenClosed(this.root.opts.open.current),
2504
+ "data-disabled": boolToEmptyStrOrUndef(this.root.opts.disabled.current),
2505
+ "data-placeholder": this.root.hasValue ? void 0 : "",
2506
+ [this.root.getBitsAttr("trigger")]: "",
2507
+ onpointerdown: this.onpointerdown,
2508
+ onkeydown: this.onkeydown,
2509
+ onclick: this.onclick,
2510
+ onpointerup: this.onpointerup,
2511
+ ...this.attachment
2512
+ }));
2513
+ get props() {
2514
+ return this.#props();
2515
+ }
2516
+ set props($$value) {
2517
+ return this.#props($$value);
2518
+ }
2519
+ }
2520
+ class SelectContentState {
2521
+ static create(opts) {
2522
+ return SelectContentContext.set(new SelectContentState(opts, SelectRootContext.get()));
2523
+ }
2524
+ opts;
2525
+ root;
2526
+ attachment;
2527
+ isPositioned = false;
2528
+ domContext;
2529
+ constructor(opts, root) {
2530
+ this.opts = opts;
2531
+ this.root = root;
2532
+ this.attachment = attachRef(opts.ref, (v) => this.root.contentNode = v);
2533
+ this.domContext = new DOMContext(this.opts.ref);
2534
+ if (this.root.domContext === null) {
2535
+ this.root.domContext = this.domContext;
2536
+ }
2537
+ watch(() => this.root.opts.open.current, () => {
2538
+ if (this.root.opts.open.current) return;
2539
+ this.root.contentIsPositioned = false;
2540
+ this.isPositioned = false;
2541
+ });
2542
+ watch([() => this.isPositioned, () => this.root.highlightedNode], () => {
2543
+ if (!this.isPositioned || !this.root.highlightedNode) return;
2544
+ this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode);
2545
+ });
2546
+ this.onpointermove = this.onpointermove.bind(this);
2547
+ }
2548
+ onpointermove(_) {
2549
+ this.root.isUsingKeyboard = false;
2550
+ }
2551
+ #styles = derived(() => {
2552
+ return getFloatingContentCSSVars(this.root.isCombobox ? "combobox" : "select");
2553
+ });
2554
+ onInteractOutside = (e) => {
2555
+ if (e.target === this.root.triggerNode || e.target === this.root.inputNode) {
2556
+ e.preventDefault();
2557
+ return;
2558
+ }
2559
+ this.opts.onInteractOutside.current(e);
2560
+ if (e.defaultPrevented) return;
2561
+ this.root.handleClose();
2562
+ };
2563
+ onEscapeKeydown = (e) => {
2564
+ this.opts.onEscapeKeydown.current(e);
2565
+ if (e.defaultPrevented) return;
2566
+ this.root.handleClose();
2567
+ };
2568
+ onOpenAutoFocus = (e) => {
2569
+ e.preventDefault();
2570
+ };
2571
+ onCloseAutoFocus = (e) => {
2572
+ e.preventDefault();
2573
+ };
2574
+ get shouldRender() {
2575
+ return this.root.contentPresence.shouldRender;
2576
+ }
2577
+ #snippetProps = derived(() => ({ open: this.root.opts.open.current }));
2578
+ get snippetProps() {
2579
+ return this.#snippetProps();
2580
+ }
2581
+ set snippetProps($$value) {
2582
+ return this.#snippetProps($$value);
2583
+ }
2584
+ #props = derived(() => ({
2585
+ id: this.opts.id.current,
2586
+ role: "listbox",
2587
+ "aria-multiselectable": this.root.isMulti ? "true" : void 0,
2588
+ "data-state": getDataOpenClosed(this.root.opts.open.current),
2589
+ ...getDataTransitionAttrs(this.root.contentPresence.transitionStatus),
2590
+ [this.root.getBitsAttr("content")]: "",
2591
+ style: {
2592
+ display: "flex",
2593
+ flexDirection: "column",
2594
+ outline: "none",
2595
+ boxSizing: "border-box",
2596
+ pointerEvents: "auto",
2597
+ ...this.#styles()
2598
+ },
2599
+ onpointermove: this.onpointermove,
2600
+ ...this.attachment
2601
+ }));
2602
+ get props() {
2603
+ return this.#props();
2604
+ }
2605
+ set props($$value) {
2606
+ return this.#props($$value);
2607
+ }
2608
+ popperProps = {
2609
+ onInteractOutside: this.onInteractOutside,
2610
+ onEscapeKeydown: this.onEscapeKeydown,
2611
+ onOpenAutoFocus: this.onOpenAutoFocus,
2612
+ onCloseAutoFocus: this.onCloseAutoFocus,
2613
+ trapFocus: false,
2614
+ loop: false,
2615
+ onPlaced: () => {
2616
+ if (this.root.opts.open.current) {
2617
+ this.root.contentIsPositioned = true;
2618
+ this.isPositioned = true;
2619
+ }
2620
+ }
2621
+ };
2622
+ }
2623
+ class SelectItemState {
2624
+ static create(opts) {
2625
+ return new SelectItemState(opts, SelectRootContext.get());
2626
+ }
2627
+ opts;
2628
+ root;
2629
+ attachment;
2630
+ #isSelected = derived(() => this.root.includesItem(this.opts.value.current));
2631
+ get isSelected() {
2632
+ return this.#isSelected();
2633
+ }
2634
+ set isSelected($$value) {
2635
+ return this.#isSelected($$value);
2636
+ }
2637
+ #isHighlighted = derived(() => this.root.highlightedValue === this.opts.value.current);
2638
+ get isHighlighted() {
2639
+ return this.#isHighlighted();
2640
+ }
2641
+ set isHighlighted($$value) {
2642
+ return this.#isHighlighted($$value);
2643
+ }
2644
+ prevHighlighted = new Previous(() => this.isHighlighted);
2645
+ mounted = false;
2646
+ constructor(opts, root) {
2647
+ this.opts = opts;
2648
+ this.root = root;
2649
+ this.attachment = attachRef(opts.ref);
2650
+ watch([() => this.isHighlighted, () => this.prevHighlighted.current], () => {
2651
+ if (this.isHighlighted) {
2652
+ this.opts.onHighlight.current();
2653
+ } else if (this.prevHighlighted.current) {
2654
+ this.opts.onUnhighlight.current();
2655
+ }
2656
+ });
2657
+ watch(() => this.mounted, () => {
2658
+ if (!this.mounted) return;
2659
+ this.root.setInitialHighlightedNode();
2660
+ });
2661
+ this.onpointerdown = this.onpointerdown.bind(this);
2662
+ this.onpointerup = this.onpointerup.bind(this);
2663
+ this.onpointermove = this.onpointermove.bind(this);
2664
+ }
2665
+ handleSelect() {
2666
+ if (this.opts.disabled.current) return;
2667
+ const isCurrentSelectedValue = this.opts.value.current === this.root.opts.value.current;
2668
+ if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {
2669
+ this.root.handleClose();
2670
+ return;
2671
+ }
2672
+ this.root.toggleItem(this.opts.value.current, this.opts.label.current);
2673
+ if (!this.root.isMulti && !isCurrentSelectedValue) {
2674
+ this.root.handleClose();
2675
+ }
2676
+ }
2677
+ #snippetProps = derived(() => ({ selected: this.isSelected, highlighted: this.isHighlighted }));
2678
+ get snippetProps() {
2679
+ return this.#snippetProps();
2680
+ }
2681
+ set snippetProps($$value) {
2682
+ return this.#snippetProps($$value);
2683
+ }
2684
+ onpointerdown(e) {
2685
+ e.preventDefault();
2686
+ }
2687
+ /**
2688
+ * Using `pointerup` instead of `click` allows power users to pointerdown
2689
+ * the trigger, then release pointerup on an item to select it vs having to do
2690
+ * multiple clicks.
2691
+ */
2692
+ onpointerup(e) {
2693
+ if (e.defaultPrevented || !this.opts.ref.current) return;
2694
+ if (e.pointerType === "touch" && !isIOS) {
2695
+ on(
2696
+ this.opts.ref.current,
2697
+ "click",
2698
+ () => {
2699
+ this.handleSelect();
2700
+ this.root.setHighlightedNode(this.opts.ref.current);
2701
+ },
2702
+ { once: true }
2703
+ );
2704
+ return;
2705
+ }
2706
+ e.preventDefault();
2707
+ this.handleSelect();
2708
+ if (e.pointerType === "touch") {
2709
+ this.root.setHighlightedNode(this.opts.ref.current);
2710
+ }
2711
+ }
2712
+ onpointermove(e) {
2713
+ if (e.pointerType === "touch") return;
2714
+ if (this.root.highlightedNode !== this.opts.ref.current) {
2715
+ this.root.setHighlightedNode(this.opts.ref.current);
2716
+ }
2717
+ }
2718
+ #props = derived(() => ({
2719
+ id: this.opts.id.current,
2720
+ role: "option",
2721
+ "aria-selected": this.root.includesItem(this.opts.value.current) ? "true" : void 0,
2722
+ "data-value": this.opts.value.current,
2723
+ "data-disabled": boolToEmptyStrOrUndef(this.opts.disabled.current),
2724
+ "data-highlighted": this.root.highlightedValue === this.opts.value.current && !this.opts.disabled.current ? "" : void 0,
2725
+ "data-selected": this.root.includesItem(this.opts.value.current) ? "" : void 0,
2726
+ "data-label": this.opts.label.current,
2727
+ [this.root.getBitsAttr("item")]: "",
2728
+ onpointermove: this.onpointermove,
2729
+ onpointerdown: this.onpointerdown,
2730
+ onpointerup: this.onpointerup,
2731
+ ...this.attachment
2732
+ }));
2733
+ get props() {
2734
+ return this.#props();
2735
+ }
2736
+ set props($$value) {
2737
+ return this.#props($$value);
2738
+ }
2739
+ }
2740
+ class SelectHiddenInputState {
2741
+ static create(opts) {
2742
+ return new SelectHiddenInputState(opts, SelectRootContext.get());
2743
+ }
2744
+ opts;
2745
+ root;
2746
+ #shouldRender = derived(() => this.root.opts.name.current !== "");
2747
+ get shouldRender() {
2748
+ return this.#shouldRender();
2749
+ }
2750
+ set shouldRender($$value) {
2751
+ return this.#shouldRender($$value);
2752
+ }
2753
+ constructor(opts, root) {
2754
+ this.opts = opts;
2755
+ this.root = root;
2756
+ this.onfocus = this.onfocus.bind(this);
2757
+ }
2758
+ onfocus(e) {
2759
+ e.preventDefault();
2760
+ if (!this.root.isCombobox) {
2761
+ this.root.triggerNode?.focus();
2762
+ } else {
2763
+ this.root.inputNode?.focus();
2764
+ }
2765
+ }
2766
+ #props = derived(() => ({
2767
+ disabled: boolToTrueOrUndef(this.root.opts.disabled.current),
2768
+ required: boolToTrueOrUndef(this.root.opts.required.current),
2769
+ name: this.root.opts.name.current,
2770
+ value: this.opts.value.current,
2771
+ onfocus: this.onfocus
2772
+ }));
2773
+ get props() {
2774
+ return this.#props();
2775
+ }
2776
+ set props($$value) {
2777
+ return this.#props($$value);
2778
+ }
2779
+ }
2780
+ class SelectViewportState {
2781
+ static create(opts) {
2782
+ return new SelectViewportState(opts, SelectContentContext.get());
2783
+ }
2784
+ opts;
2785
+ content;
2786
+ root;
2787
+ attachment;
2788
+ prevScrollTop = 0;
2789
+ constructor(opts, content) {
2790
+ this.opts = opts;
2791
+ this.content = content;
2792
+ this.root = content.root;
2793
+ this.attachment = attachRef(opts.ref, (v) => {
2794
+ this.root.viewportNode = v;
2795
+ });
2796
+ }
2797
+ #props = derived(() => ({
2798
+ id: this.opts.id.current,
2799
+ role: "presentation",
2800
+ [this.root.getBitsAttr("viewport")]: "",
2801
+ style: {
2802
+ // we use position: 'relative' here on the `viewport` so that when we call
2803
+ // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
2804
+ // (independent of the scrollUpButton).
2805
+ position: "relative",
2806
+ flex: 1,
2807
+ overflow: "auto"
2808
+ },
2809
+ ...this.attachment
2810
+ }));
2811
+ get props() {
2812
+ return this.#props();
2813
+ }
2814
+ set props($$value) {
2815
+ return this.#props($$value);
2816
+ }
2817
+ }
2818
+ class SelectScrollButtonImplState {
2819
+ opts;
2820
+ content;
2821
+ root;
2822
+ attachment;
2823
+ autoScrollTimer = null;
2824
+ userScrollTimer = -1;
2825
+ isUserScrolling = false;
2826
+ onAutoScroll = noop;
2827
+ mounted = false;
2828
+ constructor(opts, content) {
2829
+ this.opts = opts;
2830
+ this.content = content;
2831
+ this.root = content.root;
2832
+ this.attachment = attachRef(opts.ref);
2833
+ watch([() => this.mounted], () => {
2834
+ if (!this.mounted) {
2835
+ this.isUserScrolling = false;
2836
+ return;
2837
+ }
2838
+ if (this.isUserScrolling) return;
2839
+ });
2840
+ this.onpointerdown = this.onpointerdown.bind(this);
2841
+ this.onpointermove = this.onpointermove.bind(this);
2842
+ this.onpointerleave = this.onpointerleave.bind(this);
2843
+ }
2844
+ handleUserScroll() {
2845
+ this.content.domContext.clearTimeout(this.userScrollTimer);
2846
+ this.isUserScrolling = true;
2847
+ this.userScrollTimer = this.content.domContext.setTimeout(
2848
+ () => {
2849
+ this.isUserScrolling = false;
2850
+ },
2851
+ 200
2852
+ );
2853
+ }
2854
+ clearAutoScrollInterval() {
2855
+ if (this.autoScrollTimer === null) return;
2856
+ this.content.domContext.clearTimeout(this.autoScrollTimer);
2857
+ this.autoScrollTimer = null;
2858
+ }
2859
+ onpointerdown(_) {
2860
+ if (this.autoScrollTimer !== null) return;
2861
+ const autoScroll = (tick) => {
2862
+ this.onAutoScroll();
2863
+ this.autoScrollTimer = this.content.domContext.setTimeout(() => autoScroll(tick + 1), this.opts.delay.current(tick));
2864
+ };
2865
+ this.autoScrollTimer = this.content.domContext.setTimeout(() => autoScroll(1), this.opts.delay.current(0));
2866
+ }
2867
+ onpointermove(e) {
2868
+ this.onpointerdown(e);
2869
+ }
2870
+ onpointerleave(_) {
2871
+ this.clearAutoScrollInterval();
2872
+ }
2873
+ #props = derived(() => ({
2874
+ id: this.opts.id.current,
2875
+ "aria-hidden": boolToStrTrueOrUndef(true),
2876
+ style: { flexShrink: 0 },
2877
+ onpointerdown: this.onpointerdown,
2878
+ onpointermove: this.onpointermove,
2879
+ onpointerleave: this.onpointerleave,
2880
+ ...this.attachment
2881
+ }));
2882
+ get props() {
2883
+ return this.#props();
2884
+ }
2885
+ set props($$value) {
2886
+ return this.#props($$value);
2887
+ }
2888
+ }
2889
+ class SelectScrollDownButtonState {
2890
+ static create(opts) {
2891
+ return new SelectScrollDownButtonState(new SelectScrollButtonImplState(opts, SelectContentContext.get()));
2892
+ }
2893
+ scrollButtonState;
2894
+ content;
2895
+ root;
2896
+ canScrollDown = false;
2897
+ scrollIntoViewTimer = null;
2898
+ constructor(scrollButtonState) {
2899
+ this.scrollButtonState = scrollButtonState;
2900
+ this.content = scrollButtonState.content;
2901
+ this.root = scrollButtonState.root;
2902
+ this.scrollButtonState.onAutoScroll = this.handleAutoScroll;
2903
+ watch(
2904
+ [
2905
+ () => this.root.viewportNode,
2906
+ () => this.content.isPositioned
2907
+ ],
2908
+ () => {
2909
+ if (!this.root.viewportNode || !this.content.isPositioned) return;
2910
+ this.handleScroll(true);
2911
+ return on(this.root.viewportNode, "scroll", () => this.handleScroll());
2912
+ }
2913
+ );
2914
+ watch(
2915
+ [
2916
+ () => this.root.opts.inputValue.current,
2917
+ () => this.root.viewportNode,
2918
+ () => this.content.isPositioned
2919
+ ],
2920
+ () => {
2921
+ if (!this.root.viewportNode || !this.content.isPositioned) return;
2922
+ this.handleScroll(true);
2923
+ }
2924
+ );
2925
+ watch(() => this.scrollButtonState.mounted, () => {
2926
+ if (!this.scrollButtonState.mounted) return;
2927
+ if (this.scrollIntoViewTimer) {
2928
+ clearTimeout(this.scrollIntoViewTimer);
2929
+ }
2930
+ this.scrollIntoViewTimer = afterSleep(5, () => {
2931
+ const activeItem = this.root.highlightedNode;
2932
+ if (!activeItem) return;
2933
+ this.root.scrollHighlightedNodeIntoView(activeItem);
2934
+ });
2935
+ });
2936
+ }
2937
+ /**
2938
+ * @param manual - if true, it means the function was invoked manually outside of an event
2939
+ * listener, so we don't call `handleUserScroll` to prevent the auto scroll from kicking in.
2940
+ */
2941
+ handleScroll = (manual = false) => {
2942
+ if (!manual) {
2943
+ this.scrollButtonState.handleUserScroll();
2944
+ }
2945
+ if (!this.root.viewportNode) return;
2946
+ const maxScroll = this.root.viewportNode.scrollHeight - this.root.viewportNode.clientHeight;
2947
+ const paddingTop = Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop, 10);
2948
+ this.canScrollDown = Math.ceil(this.root.viewportNode.scrollTop) < maxScroll - paddingTop;
2949
+ };
2950
+ handleAutoScroll = () => {
2951
+ const viewport = this.root.viewportNode;
2952
+ const selectedItem = this.root.highlightedNode;
2953
+ if (!viewport || !selectedItem) return;
2954
+ viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;
2955
+ };
2956
+ #props = derived(() => ({
2957
+ ...this.scrollButtonState.props,
2958
+ [this.root.getBitsAttr("scroll-down-button")]: ""
2959
+ }));
2960
+ get props() {
2961
+ return this.#props();
2962
+ }
2963
+ set props($$value) {
2964
+ return this.#props($$value);
2965
+ }
2966
+ }
2967
+ class SelectScrollUpButtonState {
2968
+ static create(opts) {
2969
+ return new SelectScrollUpButtonState(new SelectScrollButtonImplState(opts, SelectContentContext.get()));
2970
+ }
2971
+ scrollButtonState;
2972
+ content;
2973
+ root;
2974
+ canScrollUp = false;
2975
+ constructor(scrollButtonState) {
2976
+ this.scrollButtonState = scrollButtonState;
2977
+ this.content = scrollButtonState.content;
2978
+ this.root = scrollButtonState.root;
2979
+ this.scrollButtonState.onAutoScroll = this.handleAutoScroll;
2980
+ watch(
2981
+ [
2982
+ () => this.root.viewportNode,
2983
+ () => this.content.isPositioned
2984
+ ],
2985
+ () => {
2986
+ if (!this.root.viewportNode || !this.content.isPositioned) return;
2987
+ this.handleScroll(true);
2988
+ return on(this.root.viewportNode, "scroll", () => this.handleScroll());
2989
+ }
2990
+ );
2991
+ }
2992
+ /**
2993
+ * @param manual - if true, it means the function was invoked manually outside of an event
2994
+ * listener, so we don't call `handleUserScroll` to prevent the auto scroll from kicking in.
2995
+ */
2996
+ handleScroll = (manual = false) => {
2997
+ if (!manual) {
2998
+ this.scrollButtonState.handleUserScroll();
2999
+ }
3000
+ if (!this.root.viewportNode) return;
3001
+ const paddingTop = Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop, 10);
3002
+ this.canScrollUp = this.root.viewportNode.scrollTop - paddingTop > 0.1;
3003
+ };
3004
+ handleAutoScroll = () => {
3005
+ if (!this.root.viewportNode || !this.root.highlightedNode) return;
3006
+ this.root.viewportNode.scrollTop = this.root.viewportNode.scrollTop - this.root.highlightedNode.offsetHeight;
3007
+ };
3008
+ #props = derived(() => ({
3009
+ ...this.scrollButtonState.props,
3010
+ [this.root.getBitsAttr("scroll-up-button")]: ""
3011
+ }));
3012
+ get props() {
3013
+ return this.#props();
3014
+ }
3015
+ set props($$value) {
3016
+ return this.#props($$value);
3017
+ }
3018
+ }
3019
+ function Select_hidden_input($$renderer, $$props) {
3020
+ $$renderer.component(($$renderer2) => {
3021
+ let { value = void 0, autocomplete } = $$props;
3022
+ const hiddenInputState = SelectHiddenInputState.create({ value: boxWith(() => value) });
3023
+ let $$settled = true;
3024
+ let $$inner_renderer;
3025
+ function $$render_inner($$renderer3) {
3026
+ if (hiddenInputState.shouldRender) {
3027
+ $$renderer3.push("<!--[0-->");
3028
+ Hidden_input($$renderer3, spread_props([
3029
+ hiddenInputState.props,
3030
+ {
3031
+ autocomplete,
3032
+ get value() {
3033
+ return value;
3034
+ },
3035
+ set value($$value) {
3036
+ value = $$value;
3037
+ $$settled = false;
3038
+ }
3039
+ }
3040
+ ]));
3041
+ } else {
3042
+ $$renderer3.push("<!--[-1-->");
3043
+ }
3044
+ $$renderer3.push(`<!--]-->`);
3045
+ }
3046
+ do {
3047
+ $$settled = true;
3048
+ $$inner_renderer = $$renderer2.copy();
3049
+ $$render_inner($$inner_renderer);
3050
+ } while (!$$settled);
3051
+ $$renderer2.subsume($$inner_renderer);
3052
+ bind_props($$props, { value });
3053
+ });
3054
+ }
3055
+ function Floating_layer_anchor($$renderer, $$props) {
3056
+ $$renderer.component(($$renderer2) => {
3057
+ let { id, children, virtualEl, ref, tooltip = false } = $$props;
3058
+ FloatingAnchorState.create(
3059
+ {
3060
+ id: boxWith(() => id),
3061
+ virtualEl: boxWith(() => virtualEl),
3062
+ ref
3063
+ },
3064
+ tooltip
3065
+ );
3066
+ children?.($$renderer2);
3067
+ $$renderer2.push(`<!---->`);
3068
+ });
3069
+ }
3070
+ function Floating_layer_content($$renderer, $$props) {
3071
+ $$renderer.component(($$renderer2) => {
3072
+ let {
3073
+ content,
3074
+ side = "bottom",
3075
+ sideOffset = 0,
3076
+ align = "center",
3077
+ alignOffset = 0,
3078
+ id,
3079
+ arrowPadding = 0,
3080
+ avoidCollisions = true,
3081
+ collisionBoundary = [],
3082
+ collisionPadding = 0,
3083
+ hideWhenDetached = false,
3084
+ onPlaced = () => {
3085
+ },
3086
+ sticky = "partial",
3087
+ updatePositionStrategy = "optimized",
3088
+ strategy = "fixed",
3089
+ dir = "ltr",
3090
+ style = {},
3091
+ wrapperId = useId(),
3092
+ customAnchor = null,
3093
+ enabled,
3094
+ tooltip = false
3095
+ } = $$props;
3096
+ const contentState = FloatingContentState.create(
3097
+ {
3098
+ side: boxWith(() => side),
3099
+ sideOffset: boxWith(() => sideOffset),
3100
+ align: boxWith(() => align),
3101
+ alignOffset: boxWith(() => alignOffset),
3102
+ id: boxWith(() => id),
3103
+ arrowPadding: boxWith(() => arrowPadding),
3104
+ avoidCollisions: boxWith(() => avoidCollisions),
3105
+ collisionBoundary: boxWith(() => collisionBoundary),
3106
+ collisionPadding: boxWith(() => collisionPadding),
3107
+ hideWhenDetached: boxWith(() => hideWhenDetached),
3108
+ onPlaced: boxWith(() => onPlaced),
3109
+ sticky: boxWith(() => sticky),
3110
+ updatePositionStrategy: boxWith(() => updatePositionStrategy),
3111
+ strategy: boxWith(() => strategy),
3112
+ dir: boxWith(() => dir),
3113
+ style: boxWith(() => style),
3114
+ enabled: boxWith(() => enabled),
3115
+ wrapperId: boxWith(() => wrapperId),
3116
+ customAnchor: boxWith(() => customAnchor)
3117
+ },
3118
+ tooltip
3119
+ );
3120
+ const mergedProps = derived(() => mergeProps(contentState.wrapperProps, { style: { pointerEvents: "auto" } }));
3121
+ content?.($$renderer2, { props: contentState.props, wrapperProps: mergedProps() });
3122
+ $$renderer2.push(`<!---->`);
3123
+ });
3124
+ }
3125
+ function Floating_layer_content_static($$renderer, $$props) {
3126
+ $$renderer.component(($$renderer2) => {
3127
+ let { content } = $$props;
3128
+ content?.($$renderer2, { props: {}, wrapperProps: {} });
3129
+ $$renderer2.push(`<!---->`);
3130
+ });
3131
+ }
3132
+ function Popper_content($$renderer, $$props) {
3133
+ let {
3134
+ content,
3135
+ isStatic = false,
3136
+ onPlaced,
3137
+ $$slots,
3138
+ $$events,
3139
+ ...restProps
3140
+ } = $$props;
3141
+ if (isStatic) {
3142
+ $$renderer.push("<!--[0-->");
3143
+ Floating_layer_content_static($$renderer, { content });
3144
+ } else {
3145
+ $$renderer.push("<!--[-1-->");
3146
+ Floating_layer_content($$renderer, spread_props([{ content, onPlaced }, restProps]));
3147
+ }
3148
+ $$renderer.push(`<!--]-->`);
3149
+ }
3150
+ function Popper_layer_inner($$renderer, $$props) {
3151
+ $$renderer.component(($$renderer2) => {
3152
+ let {
3153
+ popper,
3154
+ onEscapeKeydown,
3155
+ escapeKeydownBehavior,
3156
+ preventOverflowTextSelection,
3157
+ id,
3158
+ onPointerDown,
3159
+ onPointerUp,
3160
+ side,
3161
+ sideOffset,
3162
+ align,
3163
+ alignOffset,
3164
+ arrowPadding,
3165
+ avoidCollisions,
3166
+ collisionBoundary,
3167
+ collisionPadding,
3168
+ sticky,
3169
+ hideWhenDetached,
3170
+ updatePositionStrategy,
3171
+ strategy,
3172
+ dir,
3173
+ preventScroll,
3174
+ wrapperId,
3175
+ style,
3176
+ onPlaced,
3177
+ onInteractOutside,
3178
+ onCloseAutoFocus,
3179
+ onOpenAutoFocus,
3180
+ onFocusOutside,
3181
+ interactOutsideBehavior = "close",
3182
+ loop,
3183
+ trapFocus = true,
3184
+ isValidEvent = () => false,
3185
+ customAnchor = null,
3186
+ isStatic = false,
3187
+ enabled,
3188
+ ref,
3189
+ tooltip = false,
3190
+ contentPointerEvents = "auto",
3191
+ $$slots,
3192
+ $$events,
3193
+ ...restProps
3194
+ } = $$props;
3195
+ const resolvedPreventScroll = derived(() => preventScroll ?? true);
3196
+ const effectiveStrategy = derived(() => strategy ?? (resolvedPreventScroll() ? "fixed" : "absolute"));
3197
+ {
3198
+ let content = function($$renderer3, { props: floatingProps, wrapperProps }) {
3199
+ if (restProps.forceMount && enabled) {
3200
+ $$renderer3.push("<!--[0-->");
3201
+ Scroll_lock($$renderer3, { preventScroll: resolvedPreventScroll() });
3202
+ } else if (!restProps.forceMount) {
3203
+ $$renderer3.push("<!--[1-->");
3204
+ Scroll_lock($$renderer3, { preventScroll: resolvedPreventScroll() });
3205
+ } else {
3206
+ $$renderer3.push("<!--[-1-->");
3207
+ }
3208
+ $$renderer3.push(`<!--]--> `);
3209
+ {
3210
+ let focusScope = function($$renderer4, { props: focusScopeProps }) {
3211
+ Escape_layer($$renderer4, {
3212
+ onEscapeKeydown,
3213
+ escapeKeydownBehavior,
3214
+ enabled,
3215
+ ref,
3216
+ children: ($$renderer5) => {
3217
+ {
3218
+ let children = function($$renderer6, { props: dismissibleProps }) {
3219
+ Text_selection_layer($$renderer6, {
3220
+ id,
3221
+ preventOverflowTextSelection,
3222
+ onPointerDown,
3223
+ onPointerUp,
3224
+ enabled,
3225
+ ref,
3226
+ children: ($$renderer7) => {
3227
+ popper?.($$renderer7, {
3228
+ props: mergeProps(restProps, floatingProps, dismissibleProps, focusScopeProps, { style: { pointerEvents: contentPointerEvents } }),
3229
+ wrapperProps
3230
+ });
3231
+ $$renderer7.push(`<!---->`);
3232
+ }
3233
+ });
3234
+ };
3235
+ Dismissible_layer($$renderer5, {
3236
+ id,
3237
+ onInteractOutside,
3238
+ onFocusOutside,
3239
+ interactOutsideBehavior,
3240
+ isValidEvent,
3241
+ enabled,
3242
+ ref,
3243
+ children
3244
+ });
3245
+ }
3246
+ }
3247
+ });
3248
+ };
3249
+ Focus_scope($$renderer3, {
3250
+ onOpenAutoFocus,
3251
+ onCloseAutoFocus,
3252
+ loop,
3253
+ enabled,
3254
+ trapFocus,
3255
+ forceMount: restProps.forceMount,
3256
+ ref,
3257
+ focusScope
3258
+ });
3259
+ }
3260
+ $$renderer3.push(`<!---->`);
3261
+ };
3262
+ Popper_content($$renderer2, {
3263
+ isStatic,
3264
+ id,
3265
+ side,
3266
+ sideOffset,
3267
+ align,
3268
+ alignOffset,
3269
+ arrowPadding,
3270
+ avoidCollisions,
3271
+ collisionBoundary,
3272
+ collisionPadding,
3273
+ sticky,
3274
+ hideWhenDetached,
3275
+ updatePositionStrategy,
3276
+ strategy: effectiveStrategy(),
3277
+ dir,
3278
+ wrapperId,
3279
+ style,
3280
+ onPlaced,
3281
+ customAnchor,
3282
+ enabled,
3283
+ tooltip,
3284
+ content,
3285
+ $$slots: { content: true }
3286
+ });
3287
+ }
3288
+ });
3289
+ }
3290
+ function Popper_layer($$renderer, $$props) {
3291
+ let {
3292
+ popper,
3293
+ open,
3294
+ onEscapeKeydown,
3295
+ escapeKeydownBehavior,
3296
+ preventOverflowTextSelection,
3297
+ id,
3298
+ onPointerDown,
3299
+ onPointerUp,
3300
+ side,
3301
+ sideOffset,
3302
+ align,
3303
+ alignOffset,
3304
+ arrowPadding,
3305
+ avoidCollisions,
3306
+ collisionBoundary,
3307
+ collisionPadding,
3308
+ sticky,
3309
+ hideWhenDetached,
3310
+ updatePositionStrategy,
3311
+ strategy,
3312
+ dir,
3313
+ preventScroll,
3314
+ wrapperId,
3315
+ style,
3316
+ onPlaced,
3317
+ onInteractOutside,
3318
+ onCloseAutoFocus,
3319
+ onOpenAutoFocus,
3320
+ onFocusOutside,
3321
+ interactOutsideBehavior = "close",
3322
+ loop,
3323
+ trapFocus = true,
3324
+ isValidEvent = () => false,
3325
+ customAnchor = null,
3326
+ isStatic = false,
3327
+ ref,
3328
+ shouldRender,
3329
+ $$slots,
3330
+ $$events,
3331
+ ...restProps
3332
+ } = $$props;
3333
+ if (shouldRender) {
3334
+ $$renderer.push("<!--[0-->");
3335
+ Popper_layer_inner($$renderer, spread_props([
3336
+ {
3337
+ popper,
3338
+ onEscapeKeydown,
3339
+ escapeKeydownBehavior,
3340
+ preventOverflowTextSelection,
3341
+ id,
3342
+ onPointerDown,
3343
+ onPointerUp,
3344
+ side,
3345
+ sideOffset,
3346
+ align,
3347
+ alignOffset,
3348
+ arrowPadding,
3349
+ avoidCollisions,
3350
+ collisionBoundary,
3351
+ collisionPadding,
3352
+ sticky,
3353
+ hideWhenDetached,
3354
+ updatePositionStrategy,
3355
+ strategy,
3356
+ dir,
3357
+ preventScroll,
3358
+ wrapperId,
3359
+ style,
3360
+ onPlaced,
3361
+ customAnchor,
3362
+ isStatic,
3363
+ enabled: open,
3364
+ onInteractOutside,
3365
+ onCloseAutoFocus,
3366
+ onOpenAutoFocus,
3367
+ interactOutsideBehavior,
3368
+ loop,
3369
+ trapFocus,
3370
+ isValidEvent,
3371
+ onFocusOutside,
3372
+ forceMount: false,
3373
+ ref
3374
+ },
3375
+ restProps
3376
+ ]));
3377
+ } else {
3378
+ $$renderer.push("<!--[-1-->");
3379
+ }
3380
+ $$renderer.push(`<!--]-->`);
3381
+ }
3382
+ function Popper_layer_force_mount($$renderer, $$props) {
3383
+ let {
3384
+ popper,
3385
+ onEscapeKeydown,
3386
+ escapeKeydownBehavior,
3387
+ preventOverflowTextSelection,
3388
+ id,
3389
+ onPointerDown,
3390
+ onPointerUp,
3391
+ side,
3392
+ sideOffset,
3393
+ align,
3394
+ alignOffset,
3395
+ arrowPadding,
3396
+ avoidCollisions,
3397
+ collisionBoundary,
3398
+ collisionPadding,
3399
+ sticky,
3400
+ hideWhenDetached,
3401
+ updatePositionStrategy,
3402
+ strategy,
3403
+ dir,
3404
+ preventScroll,
3405
+ wrapperId,
3406
+ style,
3407
+ onPlaced,
3408
+ onInteractOutside,
3409
+ onCloseAutoFocus,
3410
+ onOpenAutoFocus,
3411
+ onFocusOutside,
3412
+ interactOutsideBehavior = "close",
3413
+ loop,
3414
+ trapFocus = true,
3415
+ isValidEvent = () => false,
3416
+ customAnchor = null,
3417
+ isStatic = false,
3418
+ enabled,
3419
+ $$slots,
3420
+ $$events,
3421
+ ...restProps
3422
+ } = $$props;
3423
+ Popper_layer_inner($$renderer, spread_props([
3424
+ {
3425
+ popper,
3426
+ onEscapeKeydown,
3427
+ escapeKeydownBehavior,
3428
+ preventOverflowTextSelection,
3429
+ id,
3430
+ onPointerDown,
3431
+ onPointerUp,
3432
+ side,
3433
+ sideOffset,
3434
+ align,
3435
+ alignOffset,
3436
+ arrowPadding,
3437
+ avoidCollisions,
3438
+ collisionBoundary,
3439
+ collisionPadding,
3440
+ sticky,
3441
+ hideWhenDetached,
3442
+ updatePositionStrategy,
3443
+ strategy,
3444
+ dir,
3445
+ preventScroll,
3446
+ wrapperId,
3447
+ style,
3448
+ onPlaced,
3449
+ customAnchor,
3450
+ isStatic,
3451
+ enabled,
3452
+ onInteractOutside,
3453
+ onCloseAutoFocus,
3454
+ onOpenAutoFocus,
3455
+ interactOutsideBehavior,
3456
+ loop,
3457
+ trapFocus,
3458
+ isValidEvent,
3459
+ onFocusOutside
3460
+ },
3461
+ restProps,
3462
+ { forceMount: true }
3463
+ ]));
3464
+ }
3465
+ function Select_content$1($$renderer, $$props) {
3466
+ $$renderer.component(($$renderer2) => {
3467
+ const uid = props_id($$renderer2);
3468
+ let {
3469
+ id = createId(uid),
3470
+ ref = null,
3471
+ forceMount = false,
3472
+ side = "bottom",
3473
+ onInteractOutside = noop,
3474
+ onEscapeKeydown = noop,
3475
+ children,
3476
+ child,
3477
+ preventScroll = false,
3478
+ style,
3479
+ $$slots,
3480
+ $$events,
3481
+ ...restProps
3482
+ } = $$props;
3483
+ const contentState = SelectContentState.create({
3484
+ id: boxWith(() => id),
3485
+ ref: boxWith(() => ref, (v) => ref = v),
3486
+ onInteractOutside: boxWith(() => onInteractOutside),
3487
+ onEscapeKeydown: boxWith(() => onEscapeKeydown)
3488
+ });
3489
+ const mergedProps = derived(() => mergeProps(restProps, contentState.props));
3490
+ if (forceMount) {
3491
+ $$renderer2.push("<!--[0-->");
3492
+ {
3493
+ let popper = function($$renderer3, { props, wrapperProps }) {
3494
+ const finalProps = mergeProps(props, { style: contentState.props.style }, { style });
3495
+ if (child) {
3496
+ $$renderer3.push("<!--[0-->");
3497
+ child($$renderer3, {
3498
+ props: finalProps,
3499
+ wrapperProps,
3500
+ ...contentState.snippetProps
3501
+ });
3502
+ $$renderer3.push(`<!---->`);
3503
+ } else {
3504
+ $$renderer3.push("<!--[-1-->");
3505
+ $$renderer3.push(`<div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
3506
+ children?.($$renderer3);
3507
+ $$renderer3.push(`<!----></div></div>`);
3508
+ }
3509
+ $$renderer3.push(`<!--]-->`);
3510
+ };
3511
+ Popper_layer_force_mount($$renderer2, spread_props([
3512
+ mergedProps(),
3513
+ contentState.popperProps,
3514
+ {
3515
+ ref: contentState.opts.ref,
3516
+ side,
3517
+ enabled: contentState.root.opts.open.current,
3518
+ id,
3519
+ preventScroll,
3520
+ forceMount: true,
3521
+ shouldRender: contentState.shouldRender,
3522
+ popper,
3523
+ $$slots: { popper: true }
3524
+ }
3525
+ ]));
3526
+ }
3527
+ } else if (!forceMount) {
3528
+ $$renderer2.push("<!--[1-->");
3529
+ {
3530
+ let popper = function($$renderer3, { props, wrapperProps }) {
3531
+ const finalProps = mergeProps(props, { style: contentState.props.style }, { style });
3532
+ if (child) {
3533
+ $$renderer3.push("<!--[0-->");
3534
+ child($$renderer3, {
3535
+ props: finalProps,
3536
+ wrapperProps,
3537
+ ...contentState.snippetProps
3538
+ });
3539
+ $$renderer3.push(`<!---->`);
3540
+ } else {
3541
+ $$renderer3.push("<!--[-1-->");
3542
+ $$renderer3.push(`<div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
3543
+ children?.($$renderer3);
3544
+ $$renderer3.push(`<!----></div></div>`);
3545
+ }
3546
+ $$renderer3.push(`<!--]-->`);
3547
+ };
3548
+ Popper_layer($$renderer2, spread_props([
3549
+ mergedProps(),
3550
+ contentState.popperProps,
3551
+ {
3552
+ ref: contentState.opts.ref,
3553
+ side,
3554
+ open: contentState.root.opts.open.current,
3555
+ id,
3556
+ preventScroll,
3557
+ forceMount: false,
3558
+ shouldRender: contentState.shouldRender,
3559
+ popper,
3560
+ $$slots: { popper: true }
3561
+ }
3562
+ ]));
3563
+ }
3564
+ } else {
3565
+ $$renderer2.push("<!--[-1-->");
3566
+ }
3567
+ $$renderer2.push(`<!--]-->`);
3568
+ bind_props($$props, { ref });
3569
+ });
3570
+ }
3571
+ function Mounted($$renderer, $$props) {
3572
+ $$renderer.component(($$renderer2) => {
3573
+ let { mounted = false, onMountedChange = noop } = $$props;
3574
+ bind_props($$props, { mounted });
3575
+ });
3576
+ }
3577
+ function Select_item$1($$renderer, $$props) {
3578
+ $$renderer.component(($$renderer2) => {
3579
+ const uid = props_id($$renderer2);
3580
+ let {
3581
+ id = createId(uid),
3582
+ ref = null,
3583
+ value,
3584
+ label = value,
3585
+ disabled = false,
3586
+ children,
3587
+ child,
3588
+ onHighlight = noop,
3589
+ onUnhighlight = noop,
3590
+ $$slots,
3591
+ $$events,
3592
+ ...restProps
3593
+ } = $$props;
3594
+ const itemState = SelectItemState.create({
3595
+ id: boxWith(() => id),
3596
+ ref: boxWith(() => ref, (v) => ref = v),
3597
+ value: boxWith(() => value),
3598
+ disabled: boxWith(() => disabled),
3599
+ label: boxWith(() => label),
3600
+ onHighlight: boxWith(() => onHighlight),
3601
+ onUnhighlight: boxWith(() => onUnhighlight)
3602
+ });
3603
+ const mergedProps = derived(() => mergeProps(restProps, itemState.props));
3604
+ let $$settled = true;
3605
+ let $$inner_renderer;
3606
+ function $$render_inner($$renderer3) {
3607
+ if (child) {
3608
+ $$renderer3.push("<!--[0-->");
3609
+ child($$renderer3, { props: mergedProps(), ...itemState.snippetProps });
3610
+ $$renderer3.push(`<!---->`);
3611
+ } else {
3612
+ $$renderer3.push("<!--[-1-->");
3613
+ $$renderer3.push(`<div${attributes({ ...mergedProps() })}>`);
3614
+ children?.($$renderer3, itemState.snippetProps);
3615
+ $$renderer3.push(`<!----></div>`);
3616
+ }
3617
+ $$renderer3.push(`<!--]--> `);
3618
+ Mounted($$renderer3, {
3619
+ get mounted() {
3620
+ return itemState.mounted;
3621
+ },
3622
+ set mounted($$value) {
3623
+ itemState.mounted = $$value;
3624
+ $$settled = false;
3625
+ }
3626
+ });
3627
+ $$renderer3.push(`<!---->`);
3628
+ }
3629
+ do {
3630
+ $$settled = true;
3631
+ $$inner_renderer = $$renderer2.copy();
3632
+ $$render_inner($$inner_renderer);
3633
+ } while (!$$settled);
3634
+ $$renderer2.subsume($$inner_renderer);
3635
+ bind_props($$props, { ref });
3636
+ });
3637
+ }
3638
+ function Select_viewport($$renderer, $$props) {
3639
+ $$renderer.component(($$renderer2) => {
3640
+ const uid = props_id($$renderer2);
3641
+ let {
3642
+ id = createId(uid),
3643
+ ref = null,
3644
+ children,
3645
+ child,
3646
+ $$slots,
3647
+ $$events,
3648
+ ...restProps
3649
+ } = $$props;
3650
+ const viewportState = SelectViewportState.create({
3651
+ id: boxWith(() => id),
3652
+ ref: boxWith(() => ref, (v) => ref = v)
3653
+ });
3654
+ const mergedProps = derived(() => mergeProps(restProps, viewportState.props));
3655
+ if (child) {
3656
+ $$renderer2.push("<!--[0-->");
3657
+ child($$renderer2, { props: mergedProps() });
3658
+ $$renderer2.push(`<!---->`);
3659
+ } else {
3660
+ $$renderer2.push("<!--[-1-->");
3661
+ $$renderer2.push(`<div${attributes({ ...mergedProps() })}>`);
3662
+ children?.($$renderer2);
3663
+ $$renderer2.push(`<!----></div>`);
3664
+ }
3665
+ $$renderer2.push(`<!--]-->`);
3666
+ bind_props($$props, { ref });
3667
+ });
3668
+ }
3669
+ function Select_scroll_down_button$1($$renderer, $$props) {
3670
+ $$renderer.component(($$renderer2) => {
3671
+ const uid = props_id($$renderer2);
3672
+ let {
3673
+ id = createId(uid),
3674
+ ref = null,
3675
+ delay = () => 50,
3676
+ child,
3677
+ children,
3678
+ $$slots,
3679
+ $$events,
3680
+ ...restProps
3681
+ } = $$props;
3682
+ const scrollButtonState = SelectScrollDownButtonState.create({
3683
+ id: boxWith(() => id),
3684
+ ref: boxWith(() => ref, (v) => ref = v),
3685
+ delay: boxWith(() => delay)
3686
+ });
3687
+ const mergedProps = derived(() => mergeProps(restProps, scrollButtonState.props));
3688
+ let $$settled = true;
3689
+ let $$inner_renderer;
3690
+ function $$render_inner($$renderer3) {
3691
+ if (scrollButtonState.canScrollDown) {
3692
+ $$renderer3.push("<!--[0-->");
3693
+ Mounted($$renderer3, {
3694
+ get mounted() {
3695
+ return scrollButtonState.scrollButtonState.mounted;
3696
+ },
3697
+ set mounted($$value) {
3698
+ scrollButtonState.scrollButtonState.mounted = $$value;
3699
+ $$settled = false;
3700
+ }
3701
+ });
3702
+ $$renderer3.push(`<!----> `);
3703
+ if (child) {
3704
+ $$renderer3.push("<!--[0-->");
3705
+ child($$renderer3, { props: restProps });
3706
+ $$renderer3.push(`<!---->`);
3707
+ } else {
3708
+ $$renderer3.push("<!--[-1-->");
3709
+ $$renderer3.push(`<div${attributes({ ...mergedProps() })}>`);
3710
+ children?.($$renderer3);
3711
+ $$renderer3.push(`<!----></div>`);
3712
+ }
3713
+ $$renderer3.push(`<!--]-->`);
3714
+ } else {
3715
+ $$renderer3.push("<!--[-1-->");
3716
+ }
3717
+ $$renderer3.push(`<!--]-->`);
3718
+ }
3719
+ do {
3720
+ $$settled = true;
3721
+ $$inner_renderer = $$renderer2.copy();
3722
+ $$render_inner($$inner_renderer);
3723
+ } while (!$$settled);
3724
+ $$renderer2.subsume($$inner_renderer);
3725
+ bind_props($$props, { ref });
3726
+ });
3727
+ }
3728
+ function Select_scroll_up_button$1($$renderer, $$props) {
3729
+ $$renderer.component(($$renderer2) => {
3730
+ const uid = props_id($$renderer2);
3731
+ let {
3732
+ id = createId(uid),
3733
+ ref = null,
3734
+ delay = () => 50,
3735
+ child,
3736
+ children,
3737
+ $$slots,
3738
+ $$events,
3739
+ ...restProps
3740
+ } = $$props;
3741
+ const scrollButtonState = SelectScrollUpButtonState.create({
3742
+ id: boxWith(() => id),
3743
+ ref: boxWith(() => ref, (v) => ref = v),
3744
+ delay: boxWith(() => delay)
3745
+ });
3746
+ const mergedProps = derived(() => mergeProps(restProps, scrollButtonState.props));
3747
+ let $$settled = true;
3748
+ let $$inner_renderer;
3749
+ function $$render_inner($$renderer3) {
3750
+ if (scrollButtonState.canScrollUp) {
3751
+ $$renderer3.push("<!--[0-->");
3752
+ Mounted($$renderer3, {
3753
+ get mounted() {
3754
+ return scrollButtonState.scrollButtonState.mounted;
3755
+ },
3756
+ set mounted($$value) {
3757
+ scrollButtonState.scrollButtonState.mounted = $$value;
3758
+ $$settled = false;
3759
+ }
3760
+ });
3761
+ $$renderer3.push(`<!----> `);
3762
+ if (child) {
3763
+ $$renderer3.push("<!--[0-->");
3764
+ child($$renderer3, { props: restProps });
3765
+ $$renderer3.push(`<!---->`);
3766
+ } else {
3767
+ $$renderer3.push("<!--[-1-->");
3768
+ $$renderer3.push(`<div${attributes({ ...mergedProps() })}>`);
3769
+ children?.($$renderer3);
3770
+ $$renderer3.push(`<!----></div>`);
3771
+ }
3772
+ $$renderer3.push(`<!--]-->`);
3773
+ } else {
3774
+ $$renderer3.push("<!--[-1-->");
3775
+ }
3776
+ $$renderer3.push(`<!--]-->`);
3777
+ }
3778
+ do {
3779
+ $$settled = true;
3780
+ $$inner_renderer = $$renderer2.copy();
3781
+ $$render_inner($$inner_renderer);
3782
+ } while (!$$settled);
3783
+ $$renderer2.subsume($$inner_renderer);
3784
+ bind_props($$props, { ref });
3785
+ });
3786
+ }
3787
+ function Select($$renderer, $$props) {
3788
+ $$renderer.component(($$renderer2) => {
3789
+ let {
3790
+ value = void 0,
3791
+ onValueChange = noop,
3792
+ name = "",
3793
+ disabled = false,
3794
+ type,
3795
+ open = false,
3796
+ onOpenChange = noop,
3797
+ onOpenChangeComplete = noop,
3798
+ loop = false,
3799
+ scrollAlignment = "nearest",
3800
+ required = false,
3801
+ items = [],
3802
+ allowDeselect = false,
3803
+ autocomplete,
3804
+ children
3805
+ } = $$props;
3806
+ function handleDefaultValue() {
3807
+ if (value !== void 0) return;
3808
+ value = type === "single" ? "" : [];
3809
+ }
3810
+ handleDefaultValue();
3811
+ watch.pre(() => value, () => {
3812
+ handleDefaultValue();
3813
+ });
3814
+ let inputValue = "";
3815
+ const rootState = SelectRootState.create({
3816
+ type,
3817
+ value: boxWith(() => value, (v) => {
3818
+ value = v;
3819
+ onValueChange(v);
3820
+ }),
3821
+ disabled: boxWith(() => disabled),
3822
+ required: boxWith(() => required),
3823
+ open: boxWith(() => open, (v) => {
3824
+ open = v;
3825
+ onOpenChange(v);
3826
+ }),
3827
+ loop: boxWith(() => loop),
3828
+ scrollAlignment: boxWith(() => scrollAlignment),
3829
+ name: boxWith(() => name),
3830
+ isCombobox: false,
3831
+ items: boxWith(() => items),
3832
+ allowDeselect: boxWith(() => allowDeselect),
3833
+ inputValue: boxWith(() => inputValue, (v) => inputValue = v),
3834
+ onOpenChangeComplete: boxWith(() => onOpenChangeComplete)
3835
+ });
3836
+ let $$settled = true;
3837
+ let $$inner_renderer;
3838
+ function $$render_inner($$renderer3) {
3839
+ Floating_layer($$renderer3, {
3840
+ children: ($$renderer4) => {
3841
+ children?.($$renderer4);
3842
+ $$renderer4.push(`<!---->`);
3843
+ }
3844
+ });
3845
+ $$renderer3.push(`<!----> `);
3846
+ if (Array.isArray(rootState.opts.value.current)) {
3847
+ $$renderer3.push("<!--[0-->");
3848
+ if (rootState.opts.value.current.length === 0) {
3849
+ $$renderer3.push("<!--[0-->");
3850
+ Select_hidden_input($$renderer3, { autocomplete });
3851
+ } else {
3852
+ $$renderer3.push("<!--[-1-->");
3853
+ $$renderer3.push(`<!--[-->`);
3854
+ const each_array = ensure_array_like(rootState.opts.value.current);
3855
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3856
+ let item = each_array[$$index];
3857
+ Select_hidden_input($$renderer3, { value: item, autocomplete });
3858
+ }
3859
+ $$renderer3.push(`<!--]-->`);
3860
+ }
3861
+ $$renderer3.push(`<!--]-->`);
3862
+ } else {
3863
+ $$renderer3.push("<!--[-1-->");
3864
+ Select_hidden_input($$renderer3, {
3865
+ autocomplete,
3866
+ get value() {
3867
+ return rootState.opts.value.current;
3868
+ },
3869
+ set value($$value) {
3870
+ rootState.opts.value.current = $$value;
3871
+ $$settled = false;
3872
+ }
3873
+ });
3874
+ }
3875
+ $$renderer3.push(`<!--]-->`);
3876
+ }
3877
+ do {
3878
+ $$settled = true;
3879
+ $$inner_renderer = $$renderer2.copy();
3880
+ $$render_inner($$inner_renderer);
3881
+ } while (!$$settled);
3882
+ $$renderer2.subsume($$inner_renderer);
3883
+ bind_props($$props, { value, open });
3884
+ });
3885
+ }
3886
+ function Select_trigger$1($$renderer, $$props) {
3887
+ $$renderer.component(($$renderer2) => {
3888
+ const uid = props_id($$renderer2);
3889
+ let {
3890
+ id = createId(uid),
3891
+ ref = null,
3892
+ child,
3893
+ children,
3894
+ type = "button",
3895
+ $$slots,
3896
+ $$events,
3897
+ ...restProps
3898
+ } = $$props;
3899
+ const triggerState = SelectTriggerState.create({
3900
+ id: boxWith(() => id),
3901
+ ref: boxWith(() => ref, (v) => ref = v)
3902
+ });
3903
+ const mergedProps = derived(() => mergeProps(restProps, triggerState.props, { type }));
3904
+ if (Floating_layer_anchor) {
3905
+ $$renderer2.push("<!--[-->");
3906
+ Floating_layer_anchor($$renderer2, {
3907
+ id,
3908
+ ref: triggerState.opts.ref,
3909
+ children: ($$renderer3) => {
3910
+ if (child) {
3911
+ $$renderer3.push("<!--[0-->");
3912
+ child($$renderer3, { props: mergedProps() });
3913
+ $$renderer3.push(`<!---->`);
3914
+ } else {
3915
+ $$renderer3.push("<!--[-1-->");
3916
+ $$renderer3.push(`<button${attributes({ ...mergedProps() })}>`);
3917
+ children?.($$renderer3);
3918
+ $$renderer3.push(`<!----></button>`);
3919
+ }
3920
+ $$renderer3.push(`<!--]-->`);
3921
+ }
3922
+ });
3923
+ $$renderer2.push("<!--]-->");
3924
+ } else {
3925
+ $$renderer2.push("<!--[!-->");
3926
+ $$renderer2.push("<!--]-->");
3927
+ }
3928
+ bind_props($$props, { ref });
3929
+ });
3930
+ }
3931
+ function Select_item($$renderer, $$props) {
3932
+ $$renderer.component(($$renderer2) => {
3933
+ let {
3934
+ ref = null,
3935
+ class: className,
3936
+ value,
3937
+ label,
3938
+ children: childrenProp,
3939
+ $$slots,
3940
+ $$events,
3941
+ ...restProps
3942
+ } = $$props;
3943
+ let $$settled = true;
3944
+ let $$inner_renderer;
3945
+ function $$render_inner($$renderer3) {
3946
+ {
3947
+ let children = function($$renderer4, { selected, highlighted }) {
3948
+ $$renderer4.push(`<span class="right-2 size-3.5 absolute flex items-center justify-center">`);
3949
+ if (selected) {
3950
+ $$renderer4.push("<!--[0-->");
3951
+ Check($$renderer4, { class: "size-4" });
3952
+ } else {
3953
+ $$renderer4.push("<!--[-1-->");
3954
+ }
3955
+ $$renderer4.push(`<!--]--></span> `);
3956
+ if (childrenProp) {
3957
+ $$renderer4.push("<!--[0-->");
3958
+ childrenProp($$renderer4, { selected, highlighted });
3959
+ $$renderer4.push(`<!---->`);
3960
+ } else {
3961
+ $$renderer4.push("<!--[-1-->");
3962
+ $$renderer4.push(`${escape_html(label || value)}`);
3963
+ }
3964
+ $$renderer4.push(`<!--]-->`);
3965
+ };
3966
+ if (Select_item$1) {
3967
+ $$renderer3.push("<!--[-->");
3968
+ Select_item$1($$renderer3, spread_props([
3969
+ {
3970
+ value,
3971
+ "data-slot": "select-item",
3972
+ class: cn("gap-2 py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2 relative flex w-full cursor-default items-center rounded-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center", className)
3973
+ },
3974
+ restProps,
3975
+ {
3976
+ get ref() {
3977
+ return ref;
3978
+ },
3979
+ set ref($$value) {
3980
+ ref = $$value;
3981
+ $$settled = false;
3982
+ },
3983
+ children,
3984
+ $$slots: { default: true }
3985
+ }
3986
+ ]));
3987
+ $$renderer3.push("<!--]-->");
3988
+ } else {
3989
+ $$renderer3.push("<!--[!-->");
3990
+ $$renderer3.push("<!--]-->");
3991
+ }
3992
+ }
3993
+ }
3994
+ do {
3995
+ $$settled = true;
3996
+ $$inner_renderer = $$renderer2.copy();
3997
+ $$render_inner($$inner_renderer);
3998
+ } while (!$$settled);
3999
+ $$renderer2.subsume($$inner_renderer);
4000
+ bind_props($$props, { ref });
4001
+ });
4002
+ }
4003
+ function Select_scroll_up_button($$renderer, $$props) {
4004
+ $$renderer.component(($$renderer2) => {
4005
+ let {
4006
+ ref = null,
4007
+ class: className,
4008
+ $$slots,
4009
+ $$events,
4010
+ ...restProps
4011
+ } = $$props;
4012
+ let $$settled = true;
4013
+ let $$inner_renderer;
4014
+ function $$render_inner($$renderer3) {
4015
+ if (Select_scroll_up_button$1) {
4016
+ $$renderer3.push("<!--[-->");
4017
+ Select_scroll_up_button$1($$renderer3, spread_props([
4018
+ {
4019
+ "data-slot": "select-scroll-up-button",
4020
+ class: cn("py-1 flex cursor-default items-center justify-center", className)
4021
+ },
4022
+ restProps,
4023
+ {
4024
+ get ref() {
4025
+ return ref;
4026
+ },
4027
+ set ref($$value) {
4028
+ ref = $$value;
4029
+ $$settled = false;
4030
+ },
4031
+ children: ($$renderer4) => {
4032
+ Chevron_up($$renderer4, { class: "size-4" });
4033
+ },
4034
+ $$slots: { default: true }
4035
+ }
4036
+ ]));
4037
+ $$renderer3.push("<!--]-->");
4038
+ } else {
4039
+ $$renderer3.push("<!--[!-->");
4040
+ $$renderer3.push("<!--]-->");
4041
+ }
4042
+ }
4043
+ do {
4044
+ $$settled = true;
4045
+ $$inner_renderer = $$renderer2.copy();
4046
+ $$render_inner($$inner_renderer);
4047
+ } while (!$$settled);
4048
+ $$renderer2.subsume($$inner_renderer);
4049
+ bind_props($$props, { ref });
4050
+ });
4051
+ }
4052
+ function Select_scroll_down_button($$renderer, $$props) {
4053
+ $$renderer.component(($$renderer2) => {
4054
+ let {
4055
+ ref = null,
4056
+ class: className,
4057
+ $$slots,
4058
+ $$events,
4059
+ ...restProps
4060
+ } = $$props;
4061
+ let $$settled = true;
4062
+ let $$inner_renderer;
4063
+ function $$render_inner($$renderer3) {
4064
+ if (Select_scroll_down_button$1) {
4065
+ $$renderer3.push("<!--[-->");
4066
+ Select_scroll_down_button$1($$renderer3, spread_props([
4067
+ {
4068
+ "data-slot": "select-scroll-down-button",
4069
+ class: cn("py-1 flex cursor-default items-center justify-center", className)
4070
+ },
4071
+ restProps,
4072
+ {
4073
+ get ref() {
4074
+ return ref;
4075
+ },
4076
+ set ref($$value) {
4077
+ ref = $$value;
4078
+ $$settled = false;
4079
+ },
4080
+ children: ($$renderer4) => {
4081
+ Chevron_down($$renderer4, { class: "size-4" });
4082
+ },
4083
+ $$slots: { default: true }
4084
+ }
4085
+ ]));
4086
+ $$renderer3.push("<!--]-->");
4087
+ } else {
4088
+ $$renderer3.push("<!--[!-->");
4089
+ $$renderer3.push("<!--]-->");
4090
+ }
4091
+ }
4092
+ do {
4093
+ $$settled = true;
4094
+ $$inner_renderer = $$renderer2.copy();
4095
+ $$render_inner($$inner_renderer);
4096
+ } while (!$$settled);
4097
+ $$renderer2.subsume($$inner_renderer);
4098
+ bind_props($$props, { ref });
4099
+ });
4100
+ }
4101
+ function Select_content($$renderer, $$props) {
4102
+ $$renderer.component(($$renderer2) => {
4103
+ let {
4104
+ ref = null,
4105
+ class: className,
4106
+ sideOffset = 4,
4107
+ portalProps,
4108
+ children,
4109
+ $$slots,
4110
+ $$events,
4111
+ ...restProps
4112
+ } = $$props;
4113
+ let $$settled = true;
4114
+ let $$inner_renderer;
4115
+ function $$render_inner($$renderer3) {
4116
+ if (Portal) {
4117
+ $$renderer3.push("<!--[-->");
4118
+ Portal($$renderer3, spread_props([
4119
+ portalProps,
4120
+ {
4121
+ children: ($$renderer4) => {
4122
+ if (Select_content$1) {
4123
+ $$renderer4.push("<!--[-->");
4124
+ Select_content$1($$renderer4, spread_props([
4125
+ {
4126
+ sideOffset,
4127
+ "data-slot": "select-content",
4128
+ class: cn("shadow-md data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:-translate-x-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:translate-x-1 data-[side=right]:slide-in-from-left-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground", className)
4129
+ },
4130
+ restProps,
4131
+ {
4132
+ get ref() {
4133
+ return ref;
4134
+ },
4135
+ set ref($$value) {
4136
+ ref = $$value;
4137
+ $$settled = false;
4138
+ },
4139
+ children: ($$renderer5) => {
4140
+ Select_scroll_up_button($$renderer5, {});
4141
+ $$renderer5.push(`<!----> `);
4142
+ if (Select_viewport) {
4143
+ $$renderer5.push("<!--[-->");
4144
+ Select_viewport($$renderer5, {
4145
+ class: cn("scroll-my-1 p-1 h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width)"),
4146
+ children: ($$renderer6) => {
4147
+ children?.($$renderer6);
4148
+ $$renderer6.push(`<!---->`);
4149
+ },
4150
+ $$slots: { default: true }
4151
+ });
4152
+ $$renderer5.push("<!--]-->");
4153
+ } else {
4154
+ $$renderer5.push("<!--[!-->");
4155
+ $$renderer5.push("<!--]-->");
4156
+ }
4157
+ $$renderer5.push(` `);
4158
+ Select_scroll_down_button($$renderer5, {});
4159
+ $$renderer5.push(`<!---->`);
4160
+ },
4161
+ $$slots: { default: true }
4162
+ }
4163
+ ]));
4164
+ $$renderer4.push("<!--]-->");
4165
+ } else {
4166
+ $$renderer4.push("<!--[!-->");
4167
+ $$renderer4.push("<!--]-->");
4168
+ }
4169
+ },
4170
+ $$slots: { default: true }
4171
+ }
4172
+ ]));
4173
+ $$renderer3.push("<!--]-->");
4174
+ } else {
4175
+ $$renderer3.push("<!--[!-->");
4176
+ $$renderer3.push("<!--]-->");
4177
+ }
4178
+ }
4179
+ do {
4180
+ $$settled = true;
4181
+ $$inner_renderer = $$renderer2.copy();
4182
+ $$render_inner($$inner_renderer);
4183
+ } while (!$$settled);
4184
+ $$renderer2.subsume($$inner_renderer);
4185
+ bind_props($$props, { ref });
4186
+ });
4187
+ }
4188
+ function Select_trigger($$renderer, $$props) {
4189
+ $$renderer.component(($$renderer2) => {
4190
+ let {
4191
+ ref = null,
4192
+ class: className,
4193
+ children,
4194
+ size: size2 = "default",
4195
+ $$slots,
4196
+ $$events,
4197
+ ...restProps
4198
+ } = $$props;
4199
+ let $$settled = true;
4200
+ let $$inner_renderer;
4201
+ function $$render_inner($$renderer3) {
4202
+ if (Select_trigger$1) {
4203
+ $$renderer3.push("<!--[-->");
4204
+ Select_trigger$1($$renderer3, spread_props([
4205
+ {
4206
+ "data-slot": "select-trigger",
4207
+ "data-size": size2,
4208
+ class: cn("gap-2 px-3 py-2 text-sm shadow-xs data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:gap-2 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between rounded-md border border-input bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground", className)
4209
+ },
4210
+ restProps,
4211
+ {
4212
+ get ref() {
4213
+ return ref;
4214
+ },
4215
+ set ref($$value) {
4216
+ ref = $$value;
4217
+ $$settled = false;
4218
+ },
4219
+ children: ($$renderer4) => {
4220
+ children?.($$renderer4);
4221
+ $$renderer4.push(`<!----> `);
4222
+ Chevron_down($$renderer4, { class: "size-4 opacity-50" });
4223
+ $$renderer4.push(`<!---->`);
4224
+ },
4225
+ $$slots: { default: true }
4226
+ }
4227
+ ]));
4228
+ $$renderer3.push("<!--]-->");
4229
+ } else {
4230
+ $$renderer3.push("<!--[!-->");
4231
+ $$renderer3.push("<!--]-->");
4232
+ }
4233
+ }
4234
+ do {
4235
+ $$settled = true;
4236
+ $$inner_renderer = $$renderer2.copy();
4237
+ $$render_inner($$inner_renderer);
4238
+ } while (!$$settled);
4239
+ $$renderer2.subsume($$inner_renderer);
4240
+ bind_props($$props, { ref });
4241
+ });
4242
+ }
4243
+ const Root = Select;
4244
+
4245
+ export { Floating_layer as F, Hidden_input as H, Popper_layer as P, Root as R, Select_content as S, Floating_layer_anchor as a, Popper_layer_force_mount as b, Select_item as c, Select_trigger as d, getFloatingContentCSSVars as g, isFunction as i };
4246
+ //# sourceMappingURL=index3-BVw88ujT.js.map