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