@chrisjowen/wheelhouse 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1157) hide show
  1. package/README.md +8 -14
  2. package/build/client/_app/immutable/assets/0.Dts_kSYF.css +1 -0
  3. package/build/client/_app/immutable/assets/0.Dts_kSYF.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.Dts_kSYF.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/2.CzzIqOIS.css +1 -0
  6. package/build/client/_app/immutable/assets/2.CzzIqOIS.css.br +3 -0
  7. package/build/client/_app/immutable/assets/2.CzzIqOIS.css.gz +0 -0
  8. package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css +1 -0
  9. package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css.br +0 -0
  10. package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css.gz +0 -0
  11. package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css +1 -0
  12. package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css.br +0 -0
  13. package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css.gz +0 -0
  14. package/build/client/_app/immutable/assets/dm-sans-latin-ext-wght-italic.DUE6_iCb.woff2 +0 -0
  15. package/build/client/_app/immutable/assets/dm-sans-latin-ext-wght-normal.BOFOeGcA.woff2 +0 -0
  16. package/build/client/_app/immutable/assets/dm-sans-latin-wght-italic.Cz4n9dED.woff2 +0 -0
  17. package/build/client/_app/immutable/assets/dm-sans-latin-wght-normal.Xz1IZZA0.woff2 +0 -0
  18. package/build/client/_app/immutable/assets/instrument-serif-latin-400-italic.DKMiL14s.woff2 +0 -0
  19. package/build/client/_app/immutable/assets/instrument-serif-latin-400-italic.u__WvvIK.woff +0 -0
  20. package/build/client/_app/immutable/assets/instrument-serif-latin-400-normal.BVbkICAY.woff +0 -0
  21. package/build/client/_app/immutable/assets/instrument-serif-latin-400-normal.DnYpCC2O.woff2 +0 -0
  22. package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-italic.C9HzH3YL.woff2 +0 -0
  23. package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-italic.D7-lnxEk.woff +0 -0
  24. package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-normal.C2je3j2s.woff2 +0 -0
  25. package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-normal.CFCUzsTy.woff +0 -0
  26. package/build/client/_app/immutable/chunks/2EjJV7Ut.js +1 -0
  27. package/build/client/_app/immutable/chunks/2EjJV7Ut.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/2EjJV7Ut.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/3Du01Jqv.js +1 -0
  30. package/build/client/_app/immutable/chunks/3Du01Jqv.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/3Du01Jqv.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/7CAxhLNo.js +1 -0
  33. package/build/client/_app/immutable/chunks/7CAxhLNo.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/7CAxhLNo.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/A87jk0Q_.js +1 -0
  36. package/build/client/_app/immutable/chunks/A87jk0Q_.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/A87jk0Q_.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/AuD8JoYA.js +1 -0
  39. package/build/client/_app/immutable/chunks/AuD8JoYA.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/AuD8JoYA.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/B6vY4CXx.js +1 -0
  42. package/build/client/_app/immutable/chunks/B6vY4CXx.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/B6vY4CXx.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/BGLZG4iA.js +1 -0
  45. package/build/client/_app/immutable/chunks/BGLZG4iA.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/BGLZG4iA.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/BGlB5gNb.js +1 -0
  48. package/build/client/_app/immutable/chunks/BGlB5gNb.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/BGlB5gNb.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/BH6a_FWw.js +1 -0
  51. package/build/client/_app/immutable/chunks/BH6a_FWw.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/BH6a_FWw.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/BOHkB3dg.js +1 -0
  54. package/build/client/_app/immutable/chunks/BOHkB3dg.js.br +1 -0
  55. package/build/client/_app/immutable/chunks/BOHkB3dg.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/BOPlc6SC.js +1 -0
  57. package/build/client/_app/immutable/chunks/BOPlc6SC.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/BOPlc6SC.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/BPPnR44u.js +1 -0
  60. package/build/client/_app/immutable/chunks/BPPnR44u.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/BPPnR44u.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/BPpteEm-.js +1 -0
  63. package/build/client/_app/immutable/chunks/BPpteEm-.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/BPpteEm-.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/BSg7AZAN.js +2 -0
  66. package/build/client/_app/immutable/chunks/BSg7AZAN.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/BSg7AZAN.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/BUM18Vio.js +1 -0
  69. package/build/client/_app/immutable/chunks/BUM18Vio.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/BUM18Vio.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/BWiLWMsP.js +1 -0
  72. package/build/client/_app/immutable/chunks/BWiLWMsP.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/BWiLWMsP.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/BXN538J3.js +1 -0
  75. package/build/client/_app/immutable/chunks/BXN538J3.js.br +2 -0
  76. package/build/client/_app/immutable/chunks/BXN538J3.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/BY5XjwMm.js +1 -0
  78. package/build/client/_app/immutable/chunks/BY5XjwMm.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/BY5XjwMm.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/Baw6RQZI.js +1 -0
  81. package/build/client/_app/immutable/chunks/Baw6RQZI.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/Baw6RQZI.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/Bc5hMax7.js +1 -0
  84. package/build/client/_app/immutable/chunks/Bc5hMax7.js.br +0 -0
  85. package/build/client/_app/immutable/chunks/Bc5hMax7.js.gz +0 -0
  86. package/build/client/_app/immutable/chunks/Bc7Ax2k8.js +1 -0
  87. package/build/client/_app/immutable/chunks/Bc7Ax2k8.js.br +0 -0
  88. package/build/client/_app/immutable/chunks/Bc7Ax2k8.js.gz +0 -0
  89. package/build/client/_app/immutable/chunks/BdveifH1.js +1 -0
  90. package/build/client/_app/immutable/chunks/BdveifH1.js.br +0 -0
  91. package/build/client/_app/immutable/chunks/BdveifH1.js.gz +0 -0
  92. package/build/client/_app/immutable/chunks/Bez7sKgF.js +2 -0
  93. package/build/client/_app/immutable/chunks/Bez7sKgF.js.br +0 -0
  94. package/build/client/_app/immutable/chunks/Bez7sKgF.js.gz +0 -0
  95. package/build/client/_app/immutable/chunks/BmPcpuNW.js +1 -0
  96. package/build/client/_app/immutable/chunks/BmPcpuNW.js.br +0 -0
  97. package/build/client/_app/immutable/chunks/BmPcpuNW.js.gz +0 -0
  98. package/build/client/_app/immutable/chunks/BnO3dw9K.js +1 -0
  99. package/build/client/_app/immutable/chunks/BnO3dw9K.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/BnO3dw9K.js.gz +0 -0
  101. package/build/client/_app/immutable/chunks/BnbnQq8I.js +1 -0
  102. package/build/client/_app/immutable/chunks/BnbnQq8I.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/BnbnQq8I.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/Bo5P6Wsq.js +1 -0
  105. package/build/client/_app/immutable/chunks/Bo5P6Wsq.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/Bo5P6Wsq.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/BrERyq0H.js +1 -0
  108. package/build/client/_app/immutable/chunks/BrERyq0H.js.br +0 -0
  109. package/build/client/_app/immutable/chunks/BrERyq0H.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/BuPPYEyE.js +1 -0
  111. package/build/client/_app/immutable/chunks/BuPPYEyE.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/BuPPYEyE.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/BwD_Dg5N.js +1 -0
  114. package/build/client/_app/immutable/chunks/BwD_Dg5N.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/BwD_Dg5N.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/BxUI0v0C.js +1 -0
  117. package/build/client/_app/immutable/chunks/BxUI0v0C.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/BxUI0v0C.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/ByL6RYpC.js +1 -0
  120. package/build/client/_app/immutable/chunks/ByL6RYpC.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/ByL6RYpC.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/C50HDirP.js +1 -0
  123. package/build/client/_app/immutable/chunks/C50HDirP.js.br +0 -0
  124. package/build/client/_app/immutable/chunks/C50HDirP.js.gz +0 -0
  125. package/build/client/_app/immutable/chunks/C66QDSwd.js +1 -0
  126. package/build/client/_app/immutable/chunks/C66QDSwd.js.br +0 -0
  127. package/build/client/_app/immutable/chunks/C66QDSwd.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/CCWNleLp.js +1 -0
  129. package/build/client/_app/immutable/chunks/CCWNleLp.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/CCWNleLp.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/CCz4Nk0V.js +1 -0
  132. package/build/client/_app/immutable/chunks/CCz4Nk0V.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/CCz4Nk0V.js.gz +0 -0
  134. package/build/client/_app/immutable/chunks/CGBjNqYG.js +1 -0
  135. package/build/client/_app/immutable/chunks/CGBjNqYG.js.br +2 -0
  136. package/build/client/_app/immutable/chunks/CGBjNqYG.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/CIAui2pR.js +1 -0
  138. package/build/client/_app/immutable/chunks/CIAui2pR.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/CIAui2pR.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/CMAkb8GS.js +1 -0
  141. package/build/client/_app/immutable/chunks/CMAkb8GS.js.br +0 -0
  142. package/build/client/_app/immutable/chunks/CMAkb8GS.js.gz +0 -0
  143. package/build/client/_app/immutable/chunks/CQ-ixhwd.js +1 -0
  144. package/build/client/_app/immutable/chunks/CQ-ixhwd.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/CQ-ixhwd.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/CQUBPk_4.js +1 -0
  147. package/build/client/_app/immutable/chunks/CQUBPk_4.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/CQUBPk_4.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/CQbHvgoi.js +1 -0
  150. package/build/client/_app/immutable/chunks/CQbHvgoi.js.br +0 -0
  151. package/build/client/_app/immutable/chunks/CQbHvgoi.js.gz +0 -0
  152. package/build/client/_app/immutable/chunks/CTHD30FL.js +1 -0
  153. package/build/client/_app/immutable/chunks/CTHD30FL.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/CTHD30FL.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/CVzwUhTG.js +1 -0
  156. package/build/client/_app/immutable/chunks/CVzwUhTG.js.br +0 -0
  157. package/build/client/_app/immutable/chunks/CVzwUhTG.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/CW2Ovnl0.js +3 -0
  159. package/build/client/_app/immutable/chunks/CW2Ovnl0.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/CW2Ovnl0.js.gz +0 -0
  161. package/build/client/_app/immutable/chunks/CXwBnOE9.js +1 -0
  162. package/build/client/_app/immutable/chunks/CXwBnOE9.js.br +1 -0
  163. package/build/client/_app/immutable/chunks/CXwBnOE9.js.gz +0 -0
  164. package/build/client/_app/immutable/chunks/C_4BzEag.js +1 -0
  165. package/build/client/_app/immutable/chunks/C_4BzEag.js.br +0 -0
  166. package/build/client/_app/immutable/chunks/C_4BzEag.js.gz +0 -0
  167. package/build/client/_app/immutable/chunks/CbBoCW29.js +1 -0
  168. package/build/client/_app/immutable/chunks/CbBoCW29.js.br +0 -0
  169. package/build/client/_app/immutable/chunks/CbBoCW29.js.gz +0 -0
  170. package/build/client/_app/immutable/chunks/CcCgYs-R.js +1 -0
  171. package/build/client/_app/immutable/chunks/CcCgYs-R.js.br +0 -0
  172. package/build/client/_app/immutable/chunks/CcCgYs-R.js.gz +0 -0
  173. package/build/client/_app/immutable/chunks/CfoNxwsz.js +1 -0
  174. package/build/client/_app/immutable/chunks/CfoNxwsz.js.br +0 -0
  175. package/build/client/_app/immutable/chunks/CfoNxwsz.js.gz +0 -0
  176. package/build/client/_app/immutable/chunks/ClsjySa8.js +1 -0
  177. package/build/client/_app/immutable/chunks/ClsjySa8.js.br +0 -0
  178. package/build/client/_app/immutable/chunks/ClsjySa8.js.gz +0 -0
  179. package/build/client/_app/immutable/chunks/CoaeqTa_.js +1 -0
  180. package/build/client/_app/immutable/chunks/CoaeqTa_.js.br +0 -0
  181. package/build/client/_app/immutable/chunks/CoaeqTa_.js.gz +0 -0
  182. package/build/client/_app/immutable/chunks/Cup7Sx9t.js +1 -0
  183. package/build/client/_app/immutable/chunks/Cup7Sx9t.js.br +0 -0
  184. package/build/client/_app/immutable/chunks/Cup7Sx9t.js.gz +0 -0
  185. package/build/client/_app/immutable/chunks/CxC96GTM.js +2 -0
  186. package/build/client/_app/immutable/chunks/CxC96GTM.js.br +0 -0
  187. package/build/client/_app/immutable/chunks/CxC96GTM.js.gz +0 -0
  188. package/build/client/_app/immutable/chunks/D3c133E-.js +6 -0
  189. package/build/client/_app/immutable/chunks/D3c133E-.js.br +0 -0
  190. package/build/client/_app/immutable/chunks/D3c133E-.js.gz +0 -0
  191. package/build/client/_app/immutable/chunks/D44YeCHd.js +1 -0
  192. package/build/client/_app/immutable/chunks/D44YeCHd.js.br +0 -0
  193. package/build/client/_app/immutable/chunks/D44YeCHd.js.gz +0 -0
  194. package/build/client/_app/immutable/chunks/D4mORKzH.js +1 -0
  195. package/build/client/_app/immutable/chunks/D4mORKzH.js.br +0 -0
  196. package/build/client/_app/immutable/chunks/D4mORKzH.js.gz +0 -0
  197. package/build/client/_app/immutable/chunks/DFxmhm_G.js +1 -0
  198. package/build/client/_app/immutable/chunks/DFxmhm_G.js.br +0 -0
  199. package/build/client/_app/immutable/chunks/DFxmhm_G.js.gz +0 -0
  200. package/build/client/_app/immutable/chunks/DHMhHeVH.js +1 -0
  201. package/build/client/_app/immutable/chunks/DHMhHeVH.js.br +0 -0
  202. package/build/client/_app/immutable/chunks/DHMhHeVH.js.gz +0 -0
  203. package/build/client/_app/immutable/chunks/DIorvK89.js +2 -0
  204. package/build/client/_app/immutable/chunks/DIorvK89.js.br +0 -0
  205. package/build/client/_app/immutable/chunks/DIorvK89.js.gz +0 -0
  206. package/build/client/_app/immutable/chunks/DJNADPa5.js +1 -0
  207. package/build/client/_app/immutable/chunks/DJNADPa5.js.br +0 -0
  208. package/build/client/_app/immutable/chunks/DJNADPa5.js.gz +0 -0
  209. package/build/client/_app/immutable/chunks/DKK3Ytks.js +5 -0
  210. package/build/client/_app/immutable/chunks/DKK3Ytks.js.br +0 -0
  211. package/build/client/_app/immutable/chunks/DKK3Ytks.js.gz +0 -0
  212. package/build/client/_app/immutable/chunks/DKQe4Tss.js +1 -0
  213. package/build/client/_app/immutable/chunks/DKQe4Tss.js.br +0 -0
  214. package/build/client/_app/immutable/chunks/DKQe4Tss.js.gz +0 -0
  215. package/build/client/_app/immutable/chunks/DLEyUk0D.js +1 -0
  216. package/build/client/_app/immutable/chunks/DLEyUk0D.js.br +0 -0
  217. package/build/client/_app/immutable/chunks/DLEyUk0D.js.gz +0 -0
  218. package/build/client/_app/immutable/chunks/DNdCwnwU.js +62 -0
  219. package/build/client/_app/immutable/chunks/DNdCwnwU.js.br +0 -0
  220. package/build/client/_app/immutable/chunks/DNdCwnwU.js.gz +0 -0
  221. package/build/client/_app/immutable/chunks/DRD7W95q.js +1 -0
  222. package/build/client/_app/immutable/chunks/DRD7W95q.js.br +0 -0
  223. package/build/client/_app/immutable/chunks/DRD7W95q.js.gz +0 -0
  224. package/build/client/_app/immutable/chunks/DVBYW73Q.js +5 -0
  225. package/build/client/_app/immutable/chunks/DVBYW73Q.js.br +0 -0
  226. package/build/client/_app/immutable/chunks/DVBYW73Q.js.gz +0 -0
  227. package/build/client/_app/immutable/chunks/DVpJ_eyr.js +1 -0
  228. package/build/client/_app/immutable/chunks/DVpJ_eyr.js.br +0 -0
  229. package/build/client/_app/immutable/chunks/DVpJ_eyr.js.gz +0 -0
  230. package/build/client/_app/immutable/chunks/DYnl8SY7.js +2 -0
  231. package/build/client/_app/immutable/chunks/DYnl8SY7.js.br +0 -0
  232. package/build/client/_app/immutable/chunks/DYnl8SY7.js.gz +0 -0
  233. package/build/client/_app/immutable/chunks/DaJnYk4A.js +3 -0
  234. package/build/client/_app/immutable/chunks/DaJnYk4A.js.br +0 -0
  235. package/build/client/_app/immutable/chunks/DaJnYk4A.js.gz +0 -0
  236. package/build/client/_app/immutable/chunks/De0cNRkf.js +1 -0
  237. package/build/client/_app/immutable/chunks/De0cNRkf.js.br +0 -0
  238. package/build/client/_app/immutable/chunks/De0cNRkf.js.gz +0 -0
  239. package/build/client/_app/immutable/chunks/Do0sdwXq.js +1 -0
  240. package/build/client/_app/immutable/chunks/Do0sdwXq.js.br +0 -0
  241. package/build/client/_app/immutable/chunks/Do0sdwXq.js.gz +0 -0
  242. package/build/client/_app/immutable/chunks/Dpw0f7ug.js +1 -0
  243. package/build/client/_app/immutable/chunks/Dpw0f7ug.js.br +2 -0
  244. package/build/client/_app/immutable/chunks/Dpw0f7ug.js.gz +0 -0
  245. package/build/client/_app/immutable/chunks/DrHik0xm.js +4 -0
  246. package/build/client/_app/immutable/chunks/DrHik0xm.js.br +0 -0
  247. package/build/client/_app/immutable/chunks/DrHik0xm.js.gz +0 -0
  248. package/build/client/_app/immutable/chunks/DwsTz5RI.js +1 -0
  249. package/build/client/_app/immutable/chunks/DwsTz5RI.js.br +0 -0
  250. package/build/client/_app/immutable/chunks/DwsTz5RI.js.gz +0 -0
  251. package/build/client/_app/immutable/chunks/Dwy0VzV-.js +1 -0
  252. package/build/client/_app/immutable/chunks/Dwy0VzV-.js.br +0 -0
  253. package/build/client/_app/immutable/chunks/Dwy0VzV-.js.gz +0 -0
  254. package/build/client/_app/immutable/chunks/FngjHabD.js +1 -0
  255. package/build/client/_app/immutable/chunks/FngjHabD.js.br +0 -0
  256. package/build/client/_app/immutable/chunks/FngjHabD.js.gz +0 -0
  257. package/build/client/_app/immutable/chunks/HRKf5gNi.js +1 -0
  258. package/build/client/_app/immutable/chunks/HRKf5gNi.js.br +0 -0
  259. package/build/client/_app/immutable/chunks/HRKf5gNi.js.gz +0 -0
  260. package/build/client/_app/immutable/chunks/Lgjk9zvZ.js +1 -0
  261. package/build/client/_app/immutable/chunks/Lgjk9zvZ.js.br +0 -0
  262. package/build/client/_app/immutable/chunks/Lgjk9zvZ.js.gz +0 -0
  263. package/build/client/_app/immutable/chunks/NuPgyWGU.js +1 -0
  264. package/build/client/_app/immutable/chunks/NuPgyWGU.js.br +0 -0
  265. package/build/client/_app/immutable/chunks/NuPgyWGU.js.gz +0 -0
  266. package/build/client/_app/immutable/chunks/PFaZuA9u.js +1 -0
  267. package/build/client/_app/immutable/chunks/PFaZuA9u.js.br +0 -0
  268. package/build/client/_app/immutable/chunks/PFaZuA9u.js.gz +0 -0
  269. package/build/client/_app/immutable/chunks/RMavvDTm.js +1 -0
  270. package/build/client/_app/immutable/chunks/RMavvDTm.js.br +0 -0
  271. package/build/client/_app/immutable/chunks/RMavvDTm.js.gz +0 -0
  272. package/build/client/_app/immutable/chunks/ZaiibzMt.js +6 -0
  273. package/build/client/_app/immutable/chunks/ZaiibzMt.js.br +0 -0
  274. package/build/client/_app/immutable/chunks/ZaiibzMt.js.gz +0 -0
  275. package/build/client/_app/immutable/chunks/bK8qeGyY.js +1 -0
  276. package/build/client/_app/immutable/chunks/bK8qeGyY.js.br +0 -0
  277. package/build/client/_app/immutable/chunks/bK8qeGyY.js.gz +0 -0
  278. package/build/client/_app/immutable/chunks/cAfuCUf-.js +1 -0
  279. package/build/client/_app/immutable/chunks/cAfuCUf-.js.br +0 -0
  280. package/build/client/_app/immutable/chunks/cAfuCUf-.js.gz +0 -0
  281. package/build/client/_app/immutable/chunks/eCEdyNo9.js +1 -0
  282. package/build/client/_app/immutable/chunks/eCEdyNo9.js.br +0 -0
  283. package/build/client/_app/immutable/chunks/eCEdyNo9.js.gz +0 -0
  284. package/build/client/_app/immutable/chunks/hxhxtxcx.js +1 -0
  285. package/build/client/_app/immutable/chunks/hxhxtxcx.js.br +0 -0
  286. package/build/client/_app/immutable/chunks/hxhxtxcx.js.gz +0 -0
  287. package/build/client/_app/immutable/chunks/iGDeWXtR.js +6 -0
  288. package/build/client/_app/immutable/chunks/iGDeWXtR.js.br +0 -0
  289. package/build/client/_app/immutable/chunks/iGDeWXtR.js.gz +0 -0
  290. package/build/client/_app/immutable/chunks/j64anhl0.js +1 -0
  291. package/build/client/_app/immutable/chunks/j64anhl0.js.br +0 -0
  292. package/build/client/_app/immutable/chunks/j64anhl0.js.gz +0 -0
  293. package/build/client/_app/immutable/chunks/lqt3PSz0.js +1 -0
  294. package/build/client/_app/immutable/chunks/lqt3PSz0.js.br +0 -0
  295. package/build/client/_app/immutable/chunks/lqt3PSz0.js.gz +0 -0
  296. package/build/client/_app/immutable/chunks/nOIbjKpZ.js +1 -0
  297. package/build/client/_app/immutable/chunks/nOIbjKpZ.js.br +0 -0
  298. package/build/client/_app/immutable/chunks/nOIbjKpZ.js.gz +0 -0
  299. package/build/client/_app/immutable/chunks/qTZ8qQLi.js +1 -0
  300. package/build/client/_app/immutable/chunks/qTZ8qQLi.js.br +0 -0
  301. package/build/client/_app/immutable/chunks/qTZ8qQLi.js.gz +0 -0
  302. package/build/client/_app/immutable/chunks/wob-Hxeu.js +1 -0
  303. package/build/client/_app/immutable/chunks/wob-Hxeu.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/wob-Hxeu.js.gz +0 -0
  305. package/build/client/_app/immutable/entry/app.CZVAY_oj.js +2 -0
  306. package/build/client/_app/immutable/entry/app.CZVAY_oj.js.br +0 -0
  307. package/build/client/_app/immutable/entry/app.CZVAY_oj.js.gz +0 -0
  308. package/build/client/_app/immutable/entry/start.rMI4vKXS.js +1 -0
  309. package/build/client/_app/immutable/entry/start.rMI4vKXS.js.br +0 -0
  310. package/build/client/_app/immutable/entry/start.rMI4vKXS.js.gz +0 -0
  311. package/build/client/_app/immutable/nodes/0.CQmuD1Zv.js +8 -0
  312. package/build/client/_app/immutable/nodes/0.CQmuD1Zv.js.br +0 -0
  313. package/build/client/_app/immutable/nodes/0.CQmuD1Zv.js.gz +0 -0
  314. package/build/client/_app/immutable/nodes/1.DdpgO7Ka.js +1 -0
  315. package/build/client/_app/immutable/nodes/1.DdpgO7Ka.js.br +0 -0
  316. package/build/client/_app/immutable/nodes/1.DdpgO7Ka.js.gz +0 -0
  317. package/build/client/_app/immutable/nodes/10.DJUD8eVq.js +3 -0
  318. package/build/client/_app/immutable/nodes/10.DJUD8eVq.js.br +0 -0
  319. package/build/client/_app/immutable/nodes/10.DJUD8eVq.js.gz +0 -0
  320. package/build/client/_app/immutable/nodes/11.DKFA_o9V.js +1 -0
  321. package/build/client/_app/immutable/nodes/11.DKFA_o9V.js.br +0 -0
  322. package/build/client/_app/immutable/nodes/11.DKFA_o9V.js.gz +0 -0
  323. package/build/client/_app/immutable/nodes/12.CTM_OTV_.js +14 -0
  324. package/build/client/_app/immutable/nodes/12.CTM_OTV_.js.br +0 -0
  325. package/build/client/_app/immutable/nodes/12.CTM_OTV_.js.gz +0 -0
  326. package/build/client/_app/immutable/nodes/13.Krih4WLD.js +150 -0
  327. package/build/client/_app/immutable/nodes/13.Krih4WLD.js.br +0 -0
  328. package/build/client/_app/immutable/nodes/13.Krih4WLD.js.gz +0 -0
  329. package/build/client/_app/immutable/nodes/14.B7r3723N.js +4 -0
  330. package/build/client/_app/immutable/nodes/14.B7r3723N.js.br +0 -0
  331. package/build/client/_app/immutable/nodes/14.B7r3723N.js.gz +0 -0
  332. package/build/client/_app/immutable/nodes/16.BY8GismA.js +9 -0
  333. package/build/client/_app/immutable/nodes/16.BY8GismA.js.br +0 -0
  334. package/build/client/_app/immutable/nodes/16.BY8GismA.js.gz +0 -0
  335. package/build/client/_app/immutable/nodes/17.B69G_kwu.js +11 -0
  336. package/build/client/_app/immutable/nodes/17.B69G_kwu.js.br +0 -0
  337. package/build/client/_app/immutable/nodes/17.B69G_kwu.js.gz +0 -0
  338. package/build/client/_app/immutable/nodes/18.CjWRF7kX.js +6 -0
  339. package/build/client/_app/immutable/nodes/18.CjWRF7kX.js.br +0 -0
  340. package/build/client/_app/immutable/nodes/18.CjWRF7kX.js.gz +0 -0
  341. package/build/client/_app/immutable/nodes/19.CkRDiGpy.js +2 -0
  342. package/build/client/_app/immutable/nodes/19.CkRDiGpy.js.br +0 -0
  343. package/build/client/_app/immutable/nodes/19.CkRDiGpy.js.gz +0 -0
  344. package/build/client/_app/immutable/nodes/2.BUlKFUC-.js +27 -0
  345. package/build/client/_app/immutable/nodes/2.BUlKFUC-.js.br +0 -0
  346. package/build/client/_app/immutable/nodes/2.BUlKFUC-.js.gz +0 -0
  347. package/build/client/_app/immutable/nodes/20.FUFWu3Qe.js +4 -0
  348. package/build/client/_app/immutable/nodes/20.FUFWu3Qe.js.br +0 -0
  349. package/build/client/_app/immutable/nodes/20.FUFWu3Qe.js.gz +0 -0
  350. package/build/client/_app/immutable/nodes/21.BamctJ47.js +12 -0
  351. package/build/client/_app/immutable/nodes/21.BamctJ47.js.br +0 -0
  352. package/build/client/_app/immutable/nodes/21.BamctJ47.js.gz +0 -0
  353. package/build/client/_app/immutable/nodes/22.NWBur8bJ.js +4 -0
  354. package/build/client/_app/immutable/nodes/22.NWBur8bJ.js.br +0 -0
  355. package/build/client/_app/immutable/nodes/22.NWBur8bJ.js.gz +0 -0
  356. package/build/client/_app/immutable/nodes/23.DhTZj0my.js +1 -0
  357. package/build/client/_app/immutable/nodes/23.DhTZj0my.js.br +0 -0
  358. package/build/client/_app/immutable/nodes/23.DhTZj0my.js.gz +0 -0
  359. package/build/client/_app/immutable/nodes/24.BoP3zfB0.js +6 -0
  360. package/build/client/_app/immutable/nodes/24.BoP3zfB0.js.br +0 -0
  361. package/build/client/_app/immutable/nodes/24.BoP3zfB0.js.gz +0 -0
  362. package/build/client/_app/immutable/nodes/3.1G4EIrSs.js +5 -0
  363. package/build/client/_app/immutable/nodes/3.1G4EIrSs.js.br +0 -0
  364. package/build/client/_app/immutable/nodes/3.1G4EIrSs.js.gz +0 -0
  365. package/build/client/_app/immutable/nodes/4.DdtsG66Q.js +1 -0
  366. package/build/client/_app/immutable/nodes/4.DdtsG66Q.js.br +0 -0
  367. package/build/client/_app/immutable/nodes/4.DdtsG66Q.js.gz +0 -0
  368. package/build/client/_app/immutable/nodes/5.DyccoAxy.js +2 -0
  369. package/build/client/_app/immutable/nodes/5.DyccoAxy.js.br +0 -0
  370. package/build/client/_app/immutable/nodes/5.DyccoAxy.js.gz +0 -0
  371. package/build/client/_app/immutable/nodes/6.DVqnmOqx.js +7 -0
  372. package/build/client/_app/immutable/nodes/6.DVqnmOqx.js.br +0 -0
  373. package/build/client/_app/immutable/nodes/6.DVqnmOqx.js.gz +0 -0
  374. package/build/client/_app/immutable/nodes/7.E71a9WIZ.js +5 -0
  375. package/build/client/_app/immutable/nodes/7.E71a9WIZ.js.br +0 -0
  376. package/build/client/_app/immutable/nodes/7.E71a9WIZ.js.gz +0 -0
  377. package/build/client/_app/immutable/nodes/9.FCHGbUMu.js +1 -0
  378. package/build/client/_app/immutable/nodes/9.FCHGbUMu.js.br +0 -0
  379. package/build/client/_app/immutable/nodes/9.FCHGbUMu.js.gz +0 -0
  380. package/build/client/_app/version.json +1 -1
  381. package/build/client/_app/version.json.br +0 -0
  382. package/build/client/_app/version.json.gz +0 -0
  383. package/build/handler.js +6 -6
  384. package/build/index.js +6 -6
  385. package/build/server/chunks/chunks/DecisionCard.js-cpsCwUqQ.js +1527 -0
  386. package/build/server/chunks/chunks/DocSheet.js-DjbE7UvD.js +50 -0
  387. package/build/server/chunks/chunks/EtaLine.js-VQ3hGVe_.js +98 -0
  388. package/build/server/chunks/chunks/EveryProjectSwitch.js-qyiXe4b6.js +160 -0
  389. package/build/server/chunks/chunks/Icon.js-jn6AqrcV.js +129 -0
  390. package/build/server/chunks/chunks/InsightsNav.js-lLDiX0XL.js +18 -0
  391. package/build/server/chunks/chunks/InstallFromGitHub.js-C9yJRBNR.js +1271 -0
  392. package/build/server/chunks/chunks/InstallPlugin.js-DgwSKRe6.js +18 -0
  393. package/build/server/chunks/chunks/LinkedText.js-DX5TcH8Y.js +24 -0
  394. package/build/server/chunks/chunks/MateHealthPill.js-DaPIp_mR.js +22 -0
  395. package/build/server/chunks/chunks/MicButton.svelte_svelte_type_style_lang.js-DLtwjooT.js +168 -0
  396. package/build/server/chunks/chunks/ProjectBanner.js-BJPTsURg.js +111 -0
  397. package/build/server/chunks/chunks/ProjectStateMark.js-DPFiZGmv.js +41 -0
  398. package/build/server/chunks/chunks/QuestionList.js-Bd_b28D3.js +187 -0
  399. package/build/server/chunks/chunks/ResizableRail.js-Do0DGmgJ.js +90 -0
  400. package/build/server/chunks/chunks/SettingsNav.js-jQQyTrJy.js +24 -0
  401. package/build/server/chunks/chunks/SlotContent.js-B1Er92ZM.js +701 -0
  402. package/build/server/chunks/chunks/Switch.js-BhybKefp.js +66 -0
  403. package/build/server/chunks/chunks/TimeBar.js-CLjHuPqO.js +32 -0
  404. package/build/server/chunks/chunks/TimeLegend.js-BjY2v8B-.js +29 -0
  405. package/build/server/chunks/chunks/WhereBadge.js-CRKBExDi.js +117 -0
  406. package/build/server/chunks/chunks/addresses.js-DmMJzvLK.js +52 -0
  407. package/build/server/chunks/chunks/aliases.svelte.js-B_fcvoi7.js +138 -0
  408. package/build/server/chunks/chunks/arrow-down.js-Ci4S_D7b.js +18 -0
  409. package/build/server/chunks/chunks/arrow-left.js-Cg_-lrc-.js +18 -0
  410. package/build/server/chunks/chunks/arrow-right.js-CxUHlP9f.js +18 -0
  411. package/build/server/chunks/chunks/arrow-up-right.js-N7FEdMTQ.js +18 -0
  412. package/build/server/chunks/chunks/arrow-up.js-PmeZF98V.js +18 -0
  413. package/build/server/chunks/chunks/berths.js-B282QffH.js +270 -0
  414. package/build/server/chunks/chunks/book-open.js-CNW88M_l.js +23 -0
  415. package/build/server/chunks/chunks/bridge.js-C93awzgB.js +3816 -0
  416. package/build/server/chunks/chunks/brief.js-DyAlUufG.js +152 -0
  417. package/build/server/chunks/chunks/buildlog.js-BCKtSKOt.js +55 -0
  418. package/build/server/chunks/chunks/button.js-BHe5gXSS.js +4027 -0
  419. package/build/server/chunks/chunks/chat.svelte.js-D0GIrFIC.js +744 -0
  420. package/build/server/chunks/chunks/check.js-4JbwdHsv.js +15 -0
  421. package/build/server/chunks/chunks/checks.js-DGdGhp1G.js +258 -0
  422. package/build/server/chunks/chunks/chevron-down.js-DmTyzEbB.js +15 -0
  423. package/build/server/chunks/chunks/chevron-left.js-VvIqRgu-.js +15 -0
  424. package/build/server/chunks/chunks/chevron-right.js-B9uO-JHb.js +15 -0
  425. package/build/server/chunks/chunks/circle-alert.js-BFRVFclW.js +23 -0
  426. package/build/server/chunks/chunks/circle-arrow-up.js-DKZNxUNH.js +20 -0
  427. package/build/server/chunks/chunks/circle-check.js-Dvfipbd4.js +19 -0
  428. package/build/server/chunks/chunks/circle-dashed.js-YHwLNBch.js +24 -0
  429. package/build/server/chunks/chunks/circle-dot.js-Ch-n2Rlg.js +18 -0
  430. package/build/server/chunks/chunks/client.js-CB4UPOdE.js +24 -0
  431. package/build/server/chunks/chunks/clock.js-B3IMuOfM.js +18 -0
  432. package/build/server/chunks/chunks/cloud.js-Cpm1aqak.js +29 -0
  433. package/build/server/chunks/chunks/config.js-E2-TrXNJ.js +185 -0
  434. package/build/server/chunks/chunks/copy.js-73MxeEL2.js +33 -0
  435. package/build/server/chunks/chunks/detail.js-CVM_vUy5.js +146 -0
  436. package/build/server/chunks/chunks/external-link.js-WNZYonko.js +24 -0
  437. package/build/server/chunks/chunks/eye.js-8rR2rjfO.js +23 -0
  438. package/build/server/chunks/chunks/feedback.js-CulH4qzJ.js +67 -0
  439. package/build/server/chunks/chunks/format.js-D3lWEg6U.js +70 -0
  440. package/build/server/chunks/chunks/git-pull-request.js-BQ2omkf6.js +20 -0
  441. package/build/server/chunks/chunks/hand.js-DiJeXYrq.js +25 -0
  442. package/build/server/chunks/chunks/index-server.js-VQAqdywx.js +17 -0
  443. package/build/server/chunks/chunks/index.js-jKxghqQY.js +1524 -0
  444. package/build/server/chunks/chunks/index2.js-BKxRGjDB.js +46 -0
  445. package/build/server/chunks/chunks/internal.js-w6vkkwRD.js +146 -0
  446. package/build/server/chunks/chunks/keychain.js-BqzLDz60.js +51 -0
  447. package/build/server/chunks/chunks/live.svelte.js-Djgmj46r.js +241 -0
  448. package/build/server/chunks/chunks/loader-circle.js-CJDbB9eu.js +16 -0
  449. package/build/server/chunks/chunks/local.js-BRE2JcCw.js +321 -0
  450. package/build/server/chunks/chunks/lock.js-WFfZ7A2H.js +48 -0
  451. package/build/server/chunks/chunks/markdown.js-BpxlEiHu.js +2656 -0
  452. package/build/server/chunks/chunks/message-square.js-Dm6R7CNs.js +22 -0
  453. package/build/server/chunks/chunks/messages-square.js-CVp0zrku.js +47 -0
  454. package/build/server/chunks/chunks/minus.js-BM2anquT.js +15 -0
  455. package/build/server/chunks/chunks/plus.js-DXxrgEhj.js +15 -0
  456. package/build/server/chunks/chunks/previewhelper2.js-C84SWZwf.js +165 -0
  457. package/build/server/chunks/chunks/previewnote.js-DB6VK2fp.js +56 -0
  458. package/build/server/chunks/chunks/pullrequests.js-CCzk2sqm.js +12 -0
  459. package/build/server/chunks/chunks/refresh-cw.js-RN9HWdUi.js +26 -0
  460. package/build/server/chunks/chunks/remote.js-HXu5FbWd.js +12 -0
  461. package/build/server/chunks/chunks/repo.js-U-HvnI1L.js +33 -0
  462. package/build/server/chunks/chunks/root.js-B4TT3ryq.js +3105 -0
  463. package/build/server/chunks/chunks/rotate-cw.js-CFMEeLFy.js +21 -0
  464. package/build/server/chunks/chunks/runtime.js-C9_vMeNI.js +17834 -0
  465. package/build/server/chunks/chunks/scale.js-BtckAplV.js +21 -0
  466. package/build/server/chunks/chunks/scroll-lock.js-KJygphA1.js +2776 -0
  467. package/build/server/chunks/chunks/service.js-B1hdOaDN.js +917 -0
  468. package/build/server/chunks/chunks/service2.js-BTWa2jZr.js +996 -0
  469. package/build/server/chunks/chunks/settings.js-DPuzmbc5.js +694 -0
  470. package/build/server/chunks/chunks/shield-check.js-B6kC206T.js +23 -0
  471. package/build/server/chunks/chunks/ship.js-qXRIImyl.js +31 -0
  472. package/build/server/chunks/chunks/sparkles.js-BBC6X28O.js +26 -0
  473. package/build/server/chunks/chunks/square-terminal.js-CH-qdAR-.js +30 -0
  474. package/build/server/chunks/chunks/terminal.js-BckfZrAP.js +71 -0
  475. package/build/server/chunks/chunks/tone.js-Dxsl-adt.js +31 -0
  476. package/build/server/chunks/chunks/triangle-alert.js-CT6ph0Pz.js +25 -0
  477. package/build/server/chunks/chunks/urls.js-CM6aklCF.js +8 -0
  478. package/build/server/chunks/chunks/utils3.js-BzaceEcr.js +3290 -0
  479. package/build/server/chunks/chunks/vault.js-DZFWbeCU.js +162 -0
  480. package/build/server/chunks/chunks/view.js-D-j8Xe4i.js +76 -0
  481. package/build/server/chunks/chunks/words.js-DoCiNU5f.js +53 -0
  482. package/build/server/chunks/chunks/x.js-Dui6bz7r.js +18 -0
  483. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-ClWDeX-O.js +96 -0
  484. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-D0ZxlpyT.js +100 -0
  485. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CzR9HxUz.js +43 -0
  486. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-D6Von-oI.js +106 -0
  487. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BBeioKBD.js +55 -0
  488. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-8YXmzsbj.js +89 -0
  489. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-IcMxnWTH.js +125 -0
  490. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-BX86Nv_f.js +51 -0
  491. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-CwCZaVxq.js +57 -0
  492. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DAIjFBQ6.js +50 -0
  493. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-Bp0i1TSf.js +97 -0
  494. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-x-ZN1v8u.js +60 -0
  495. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-CrhejJqg.js +71 -0
  496. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DARrnWLV.js +50 -0
  497. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-C21482Qj.js +42 -0
  498. package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-AZBAjFk5.js +106 -0
  499. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-K5a5fYS2.js +42 -0
  500. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-2p7O3IsC.js +66 -0
  501. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-C4Nf9iAq.js +57 -0
  502. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-DxO2RM1h.js +42 -0
  503. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-Ba_r2yZV.js +77 -0
  504. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-B-zbKKZl.js +66 -0
  505. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BP5jKHJd.js +61 -0
  506. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DCoeTXfs.js +58 -0
  507. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-DNAX_6do.js +25 -0
  508. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BA9kzCW7.js +65 -0
  509. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-_FRBb9ud.js +37 -0
  510. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DXS9KEsU.js +42 -0
  511. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-DkkLcUAV.js +37 -0
  512. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Di2Gi4nB.js +40 -0
  513. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-CCW9lm9E.js +25 -0
  514. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BFJ5KbW7.js +65 -0
  515. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-kTs2YfQY.js +47 -0
  516. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-CdfrIT07.js +56 -0
  517. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BsUrjHJ8.js +68 -0
  518. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-DXJ8AJ2U.js +55 -0
  519. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CcNKahjE.js +78 -0
  520. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-68i_0avS.js +61 -0
  521. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-CiOf-mL2.js +51 -0
  522. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DQQCFyv7.js +61 -0
  523. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-VJjaPDdY.js +100 -0
  524. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CR4Gcf9_.js +50 -0
  525. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-DltGIE9L.js +47 -0
  526. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BDd9G5oE.js +66 -0
  527. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-pMEofVTc.js +59 -0
  528. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-DO_4lX74.js +107 -0
  529. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BQoQsU0p.js +61 -0
  530. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-DDYoFcHJ.js +64 -0
  531. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-Zg58kzoY.js +68 -0
  532. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-B5gS-34U.js +25 -0
  533. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-7p-utTq-.js +25 -0
  534. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-q1B59Uk1.js +46 -0
  535. package/build/server/chunks/entries/fallbacks/error.svelte.js-BNWK_exe.js +15 -0
  536. package/build/server/chunks/entries/hooks.server.js-CWn0ng54.js +79 -0
  537. package/build/server/chunks/entries/pages/_layout.server.ts.js-BKXSrpSe.js +27 -0
  538. package/build/server/chunks/entries/pages/_layout.svelte.js-BuXMMFDC.js +5454 -0
  539. package/build/server/chunks/entries/pages/_page.server.ts.js-BRGNF6k_.js +16 -0
  540. package/build/server/chunks/entries/pages/_page.svelte.js-AsmQz_JL.js +3907 -0
  541. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-DmvdMfYo.js +11 -0
  542. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-C-af49k8.js +202 -0
  543. package/build/server/chunks/entries/pages/files/_page.server.ts.js-rZt0XMSd.js +17 -0
  544. package/build/server/chunks/entries/pages/files/_page.svelte.js-_L04ewQE.js +60 -0
  545. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-PFo8Vfbo.js +46 -0
  546. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-CVRdIgJ8.js +750 -0
  547. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DutA9E7E.js +11 -0
  548. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-DsoPeyml.js +183 -0
  549. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DqWEpFI-.js +11 -0
  550. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-B6UvwR4D.js +187 -0
  551. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BK7K-Ceh.js +16 -0
  552. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DWyawMgs.js +56 -0
  553. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BtFm_m-G.js +23 -0
  554. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-BysaJZTm.js +981 -0
  555. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DKFJY-r0.js +21 -0
  556. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Cxjvoa4A.js +78 -0
  557. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DMJBBYoR.js +27 -0
  558. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-Dcp2JU41.js +419 -0
  559. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CUct6yy5.js +15 -0
  560. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-BX-QnnUD.js +1881 -0
  561. package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-WE0an3Bj.js +221 -0
  562. package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-CamoAZbV.js +14 -0
  563. package/build/server/chunks/entries/pages/settings/cloud/_page.svelte.js-DZArF-9x.js +220 -0
  564. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-rXRKJGmI.js +11 -0
  565. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-BDe-2GRf.js +209 -0
  566. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-rtpQsgMF.js +19 -0
  567. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-DMusjNR_.js +611 -0
  568. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BLXp3lDA.js +17 -0
  569. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-DBMtln02.js +229 -0
  570. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-CbjFRPVY.js +11 -0
  571. package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-ABeTOB0c.js +55 -0
  572. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-wdyYV3qf.js +18 -0
  573. package/build/server/chunks/entries/pages/setup/_page.svelte.js-7M9RVZo5.js +917 -0
  574. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BBftBg-k.js +25 -0
  575. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dy9JaYCa.js +2751 -0
  576. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-BScwvgVc.js +24 -0
  577. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-D0yTdBar.js +79 -0
  578. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CYvux-3H.js +11 -0
  579. package/build/server/chunks/entries/pages/time/_page.svelte.js-CrEVYnzn.js +108 -0
  580. package/build/server/chunks/handler-F_cpDHNU.js +1474 -0
  581. package/build/server/chunks/index.js-BUHkADXw.js +4296 -0
  582. package/build/server/chunks/manifest.js-B8bCR5q6.js +603 -0
  583. package/build/server/chunks/nodes/0.js-Dowvt9F9.js +49 -0
  584. package/build/server/chunks/nodes/1.js-DF5Y9be5.js +9 -0
  585. package/build/server/chunks/nodes/10.js-dixIyGz8.js +49 -0
  586. package/build/server/chunks/nodes/11.js-CdZnnFi5.js +48 -0
  587. package/build/server/chunks/nodes/12.js-DvK5i9DI.js +49 -0
  588. package/build/server/chunks/nodes/13.js-BDecNWzn.js +48 -0
  589. package/build/server/chunks/nodes/14.js-B-DRrca8.js +9 -0
  590. package/build/server/chunks/nodes/16.js-BUpQAAcE.js +22 -0
  591. package/build/server/chunks/nodes/17.js-DSsio5sq.js +47 -0
  592. package/build/server/chunks/nodes/18.js-DUhWP1lx.js +47 -0
  593. package/build/server/chunks/nodes/19.js-DaHeHJsB.js +50 -0
  594. package/build/server/chunks/nodes/2.js-D8Wak2_d.js +47 -0
  595. package/build/server/chunks/nodes/20.js-C2I6HzZg.js +49 -0
  596. package/build/server/chunks/nodes/21.js-CjZTWpEa.js +51 -0
  597. package/build/server/chunks/nodes/22.js-BWtAFeRm.js +48 -0
  598. package/build/server/chunks/nodes/23.js-BxVguke7.js +48 -0
  599. package/build/server/chunks/nodes/24.js-BVvVkNwL.js +47 -0
  600. package/build/server/chunks/nodes/3.js-CZTW-LPi.js +47 -0
  601. package/build/server/chunks/nodes/4.js-BkH70LZu.js +47 -0
  602. package/build/server/chunks/nodes/5.js-B0Eb_9jQ.js +51 -0
  603. package/build/server/chunks/nodes/6.js-gEI0qySH.js +47 -0
  604. package/build/server/chunks/nodes/7.js-BXgRjdNB.js +47 -0
  605. package/build/server/chunks/nodes/9.js-jOBHnWP1.js +47 -0
  606. package/dist/cli.js +2081 -280
  607. package/dist/wh-vault.js +1 -1
  608. package/package.json +3 -2
  609. package/plugins/shared-review/.wheelhouse-plugin/plugin.json +2 -1
  610. package/plugins/shared-review/README.md +3 -1
  611. package/plugins/shared-review/wheelhouse/server/index.js +11 -2
  612. package/plugins/shared-review/wheelhouse/ui/index.js +278 -2
  613. package/plugins/vault/wheelhouse/icon.svg +1 -1
  614. package/build/client/_app/immutable/assets/0.BUKP25sU.css +0 -1
  615. package/build/client/_app/immutable/assets/0.BUKP25sU.css.br +0 -0
  616. package/build/client/_app/immutable/assets/0.BUKP25sU.css.gz +0 -0
  617. package/build/client/_app/immutable/assets/2.DvyEOdRq.css +0 -1
  618. package/build/client/_app/immutable/assets/2.DvyEOdRq.css.br +0 -0
  619. package/build/client/_app/immutable/assets/2.DvyEOdRq.css.gz +0 -0
  620. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css +0 -1
  621. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.br +0 -0
  622. package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.gz +0 -0
  623. package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-italic.B5xAaiFk.woff2 +0 -0
  624. package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
  625. package/build/client/_app/immutable/assets/inter-cyrillic-wght-italic.DzZdc28x.woff2 +0 -0
  626. package/build/client/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
  627. package/build/client/_app/immutable/assets/inter-greek-ext-wght-italic.DcOpz6Lw.woff2 +0 -0
  628. package/build/client/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
  629. package/build/client/_app/immutable/assets/inter-greek-wght-italic.CILZdfAp.woff2 +0 -0
  630. package/build/client/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
  631. package/build/client/_app/immutable/assets/inter-latin-ext-wght-italic.0pjOp8NU.woff2 +0 -0
  632. package/build/client/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
  633. package/build/client/_app/immutable/assets/inter-latin-wght-italic.DpCbqKDY.woff2 +0 -0
  634. package/build/client/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
  635. package/build/client/_app/immutable/assets/inter-vietnamese-wght-italic.K3WlGtc8.woff2 +0 -0
  636. package/build/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
  637. package/build/client/_app/immutable/chunks/-8jzdSzV.js +0 -1
  638. package/build/client/_app/immutable/chunks/-8jzdSzV.js.br +0 -0
  639. package/build/client/_app/immutable/chunks/-8jzdSzV.js.gz +0 -0
  640. package/build/client/_app/immutable/chunks/1WRcPxqg.js +0 -1
  641. package/build/client/_app/immutable/chunks/1WRcPxqg.js.br +0 -0
  642. package/build/client/_app/immutable/chunks/1WRcPxqg.js.gz +0 -0
  643. package/build/client/_app/immutable/chunks/2u5U2sv5.js +0 -1
  644. package/build/client/_app/immutable/chunks/2u5U2sv5.js.br +0 -2
  645. package/build/client/_app/immutable/chunks/2u5U2sv5.js.gz +0 -0
  646. package/build/client/_app/immutable/chunks/4VJeJzd5.js +0 -1
  647. package/build/client/_app/immutable/chunks/4VJeJzd5.js.br +0 -0
  648. package/build/client/_app/immutable/chunks/4VJeJzd5.js.gz +0 -0
  649. package/build/client/_app/immutable/chunks/6x5fl0iw.js +0 -1
  650. package/build/client/_app/immutable/chunks/6x5fl0iw.js.br +0 -0
  651. package/build/client/_app/immutable/chunks/6x5fl0iw.js.gz +0 -0
  652. package/build/client/_app/immutable/chunks/6x9f8OOX.js +0 -1
  653. package/build/client/_app/immutable/chunks/6x9f8OOX.js.br +0 -0
  654. package/build/client/_app/immutable/chunks/6x9f8OOX.js.gz +0 -0
  655. package/build/client/_app/immutable/chunks/8WOVm7DO.js +0 -3
  656. package/build/client/_app/immutable/chunks/8WOVm7DO.js.br +0 -0
  657. package/build/client/_app/immutable/chunks/8WOVm7DO.js.gz +0 -0
  658. package/build/client/_app/immutable/chunks/8xWr9jxY.js +0 -1
  659. package/build/client/_app/immutable/chunks/8xWr9jxY.js.br +0 -0
  660. package/build/client/_app/immutable/chunks/8xWr9jxY.js.gz +0 -0
  661. package/build/client/_app/immutable/chunks/B3j8X7eP.js +0 -1
  662. package/build/client/_app/immutable/chunks/B3j8X7eP.js.br +0 -0
  663. package/build/client/_app/immutable/chunks/B3j8X7eP.js.gz +0 -0
  664. package/build/client/_app/immutable/chunks/BBWR4qW2.js +0 -1
  665. package/build/client/_app/immutable/chunks/BBWR4qW2.js.br +0 -0
  666. package/build/client/_app/immutable/chunks/BBWR4qW2.js.gz +0 -0
  667. package/build/client/_app/immutable/chunks/BBk8ftHo.js +0 -1
  668. package/build/client/_app/immutable/chunks/BBk8ftHo.js.br +0 -0
  669. package/build/client/_app/immutable/chunks/BBk8ftHo.js.gz +0 -0
  670. package/build/client/_app/immutable/chunks/BH_GqTtA.js +0 -1
  671. package/build/client/_app/immutable/chunks/BH_GqTtA.js.br +0 -0
  672. package/build/client/_app/immutable/chunks/BH_GqTtA.js.gz +0 -0
  673. package/build/client/_app/immutable/chunks/BHu5PcTV.js +0 -1
  674. package/build/client/_app/immutable/chunks/BHu5PcTV.js.br +0 -0
  675. package/build/client/_app/immutable/chunks/BHu5PcTV.js.gz +0 -0
  676. package/build/client/_app/immutable/chunks/BKSx-wDn.js +0 -1
  677. package/build/client/_app/immutable/chunks/BKSx-wDn.js.br +0 -0
  678. package/build/client/_app/immutable/chunks/BKSx-wDn.js.gz +0 -0
  679. package/build/client/_app/immutable/chunks/BOY9WARo.js +0 -2
  680. package/build/client/_app/immutable/chunks/BOY9WARo.js.br +0 -0
  681. package/build/client/_app/immutable/chunks/BOY9WARo.js.gz +0 -0
  682. package/build/client/_app/immutable/chunks/BQle5rwK.js +0 -1
  683. package/build/client/_app/immutable/chunks/BQle5rwK.js.br +0 -0
  684. package/build/client/_app/immutable/chunks/BQle5rwK.js.gz +0 -0
  685. package/build/client/_app/immutable/chunks/BRuDnHyc.js +0 -2
  686. package/build/client/_app/immutable/chunks/BRuDnHyc.js.br +0 -0
  687. package/build/client/_app/immutable/chunks/BRuDnHyc.js.gz +0 -0
  688. package/build/client/_app/immutable/chunks/BSMH3sl_.js +0 -1
  689. package/build/client/_app/immutable/chunks/BSMH3sl_.js.br +0 -0
  690. package/build/client/_app/immutable/chunks/BSMH3sl_.js.gz +0 -0
  691. package/build/client/_app/immutable/chunks/BV-FSL0u.js +0 -1
  692. package/build/client/_app/immutable/chunks/BV-FSL0u.js.br +0 -0
  693. package/build/client/_app/immutable/chunks/BV-FSL0u.js.gz +0 -0
  694. package/build/client/_app/immutable/chunks/BW_FwdyU.js +0 -2
  695. package/build/client/_app/immutable/chunks/BW_FwdyU.js.br +0 -0
  696. package/build/client/_app/immutable/chunks/BW_FwdyU.js.gz +0 -0
  697. package/build/client/_app/immutable/chunks/BXF1nDhR.js +0 -1
  698. package/build/client/_app/immutable/chunks/BXF1nDhR.js.br +0 -0
  699. package/build/client/_app/immutable/chunks/BXF1nDhR.js.gz +0 -0
  700. package/build/client/_app/immutable/chunks/BXk5dy03.js +0 -5
  701. package/build/client/_app/immutable/chunks/BXk5dy03.js.br +0 -0
  702. package/build/client/_app/immutable/chunks/BXk5dy03.js.gz +0 -0
  703. package/build/client/_app/immutable/chunks/BbU5AsRD.js +0 -1
  704. package/build/client/_app/immutable/chunks/BbU5AsRD.js.br +0 -0
  705. package/build/client/_app/immutable/chunks/BbU5AsRD.js.gz +0 -0
  706. package/build/client/_app/immutable/chunks/BkoErw_r.js +0 -1
  707. package/build/client/_app/immutable/chunks/BkoErw_r.js.br +0 -0
  708. package/build/client/_app/immutable/chunks/BkoErw_r.js.gz +0 -0
  709. package/build/client/_app/immutable/chunks/Blj84s6L.js +0 -1
  710. package/build/client/_app/immutable/chunks/Blj84s6L.js.br +0 -0
  711. package/build/client/_app/immutable/chunks/Blj84s6L.js.gz +0 -0
  712. package/build/client/_app/immutable/chunks/Bo1SMwPt.js +0 -1
  713. package/build/client/_app/immutable/chunks/Bo1SMwPt.js.br +0 -0
  714. package/build/client/_app/immutable/chunks/Bo1SMwPt.js.gz +0 -0
  715. package/build/client/_app/immutable/chunks/BqqZcEbm.js +0 -1
  716. package/build/client/_app/immutable/chunks/BqqZcEbm.js.br +0 -2
  717. package/build/client/_app/immutable/chunks/BqqZcEbm.js.gz +0 -0
  718. package/build/client/_app/immutable/chunks/BsFN-acf.js +0 -1
  719. package/build/client/_app/immutable/chunks/BsFN-acf.js.br +0 -0
  720. package/build/client/_app/immutable/chunks/BsFN-acf.js.gz +0 -0
  721. package/build/client/_app/immutable/chunks/BudxWdUe.js +0 -1
  722. package/build/client/_app/immutable/chunks/BudxWdUe.js.br +0 -0
  723. package/build/client/_app/immutable/chunks/BudxWdUe.js.gz +0 -0
  724. package/build/client/_app/immutable/chunks/BunvDGPC.js +0 -3
  725. package/build/client/_app/immutable/chunks/BunvDGPC.js.br +0 -0
  726. package/build/client/_app/immutable/chunks/BunvDGPC.js.gz +0 -0
  727. package/build/client/_app/immutable/chunks/BvCDG8Dd.js +0 -1
  728. package/build/client/_app/immutable/chunks/BvCDG8Dd.js.br +0 -0
  729. package/build/client/_app/immutable/chunks/BvCDG8Dd.js.gz +0 -0
  730. package/build/client/_app/immutable/chunks/BwLAIydi.js +0 -1
  731. package/build/client/_app/immutable/chunks/BwLAIydi.js.br +0 -0
  732. package/build/client/_app/immutable/chunks/BwLAIydi.js.gz +0 -0
  733. package/build/client/_app/immutable/chunks/Bxc9WZZR.js +0 -1
  734. package/build/client/_app/immutable/chunks/Bxc9WZZR.js.br +0 -0
  735. package/build/client/_app/immutable/chunks/Bxc9WZZR.js.gz +0 -0
  736. package/build/client/_app/immutable/chunks/Byamhp7O.js +0 -1
  737. package/build/client/_app/immutable/chunks/Byamhp7O.js.br +0 -0
  738. package/build/client/_app/immutable/chunks/Byamhp7O.js.gz +0 -0
  739. package/build/client/_app/immutable/chunks/BzYzevxb.js +0 -1
  740. package/build/client/_app/immutable/chunks/BzYzevxb.js.br +0 -0
  741. package/build/client/_app/immutable/chunks/BzYzevxb.js.gz +0 -0
  742. package/build/client/_app/immutable/chunks/C03wrLr6.js +0 -1
  743. package/build/client/_app/immutable/chunks/C03wrLr6.js.br +0 -0
  744. package/build/client/_app/immutable/chunks/C03wrLr6.js.gz +0 -0
  745. package/build/client/_app/immutable/chunks/C0nIjZ3F.js +0 -1
  746. package/build/client/_app/immutable/chunks/C0nIjZ3F.js.br +0 -0
  747. package/build/client/_app/immutable/chunks/C0nIjZ3F.js.gz +0 -0
  748. package/build/client/_app/immutable/chunks/C6yJKLJE.js +0 -6
  749. package/build/client/_app/immutable/chunks/C6yJKLJE.js.br +0 -0
  750. package/build/client/_app/immutable/chunks/C6yJKLJE.js.gz +0 -0
  751. package/build/client/_app/immutable/chunks/CDGwSysF.js +0 -1
  752. package/build/client/_app/immutable/chunks/CDGwSysF.js.br +0 -0
  753. package/build/client/_app/immutable/chunks/CDGwSysF.js.gz +0 -0
  754. package/build/client/_app/immutable/chunks/CEbzGOE-.js +0 -1
  755. package/build/client/_app/immutable/chunks/CEbzGOE-.js.br +0 -0
  756. package/build/client/_app/immutable/chunks/CEbzGOE-.js.gz +0 -0
  757. package/build/client/_app/immutable/chunks/CLeVtrv1.js +0 -1
  758. package/build/client/_app/immutable/chunks/CLeVtrv1.js.br +0 -3
  759. package/build/client/_app/immutable/chunks/CLeVtrv1.js.gz +0 -0
  760. package/build/client/_app/immutable/chunks/CLsVEPfB.js +0 -1
  761. package/build/client/_app/immutable/chunks/CLsVEPfB.js.br +0 -0
  762. package/build/client/_app/immutable/chunks/CLsVEPfB.js.gz +0 -0
  763. package/build/client/_app/immutable/chunks/CLubIfWE.js +0 -1
  764. package/build/client/_app/immutable/chunks/CLubIfWE.js.br +0 -0
  765. package/build/client/_app/immutable/chunks/CLubIfWE.js.gz +0 -0
  766. package/build/client/_app/immutable/chunks/CMFVi0Kq.js +0 -6
  767. package/build/client/_app/immutable/chunks/CMFVi0Kq.js.br +0 -0
  768. package/build/client/_app/immutable/chunks/CMFVi0Kq.js.gz +0 -0
  769. package/build/client/_app/immutable/chunks/CNcEb8rI.js +0 -1
  770. package/build/client/_app/immutable/chunks/CNcEb8rI.js.br +0 -0
  771. package/build/client/_app/immutable/chunks/CNcEb8rI.js.gz +0 -0
  772. package/build/client/_app/immutable/chunks/CaaP7Cfy.js +0 -1
  773. package/build/client/_app/immutable/chunks/CaaP7Cfy.js.br +0 -0
  774. package/build/client/_app/immutable/chunks/CaaP7Cfy.js.gz +0 -0
  775. package/build/client/_app/immutable/chunks/CbGZd9iT.js +0 -1
  776. package/build/client/_app/immutable/chunks/CbGZd9iT.js.br +0 -0
  777. package/build/client/_app/immutable/chunks/CbGZd9iT.js.gz +0 -0
  778. package/build/client/_app/immutable/chunks/CdUf0vBw.js +0 -1
  779. package/build/client/_app/immutable/chunks/CdUf0vBw.js.br +0 -0
  780. package/build/client/_app/immutable/chunks/CdUf0vBw.js.gz +0 -0
  781. package/build/client/_app/immutable/chunks/Ce7qVCDI.js +0 -1
  782. package/build/client/_app/immutable/chunks/Ce7qVCDI.js.br +0 -0
  783. package/build/client/_app/immutable/chunks/Ce7qVCDI.js.gz +0 -0
  784. package/build/client/_app/immutable/chunks/CrPP6AgN.js +0 -1
  785. package/build/client/_app/immutable/chunks/CrPP6AgN.js.br +0 -0
  786. package/build/client/_app/immutable/chunks/CrPP6AgN.js.gz +0 -0
  787. package/build/client/_app/immutable/chunks/CyhrvZ9i.js +0 -1
  788. package/build/client/_app/immutable/chunks/CyhrvZ9i.js.br +0 -0
  789. package/build/client/_app/immutable/chunks/CyhrvZ9i.js.gz +0 -0
  790. package/build/client/_app/immutable/chunks/D1pI6A8q.js +0 -1
  791. package/build/client/_app/immutable/chunks/D1pI6A8q.js.br +0 -0
  792. package/build/client/_app/immutable/chunks/D1pI6A8q.js.gz +0 -0
  793. package/build/client/_app/immutable/chunks/D5M74L1e.js +0 -2
  794. package/build/client/_app/immutable/chunks/D5M74L1e.js.br +0 -0
  795. package/build/client/_app/immutable/chunks/D5M74L1e.js.gz +0 -0
  796. package/build/client/_app/immutable/chunks/D6hXuNzR.js +0 -1
  797. package/build/client/_app/immutable/chunks/D6hXuNzR.js.br +0 -1
  798. package/build/client/_app/immutable/chunks/D6hXuNzR.js.gz +0 -0
  799. package/build/client/_app/immutable/chunks/D8Hr8rhb.js +0 -1
  800. package/build/client/_app/immutable/chunks/D8Hr8rhb.js.br +0 -0
  801. package/build/client/_app/immutable/chunks/D8Hr8rhb.js.gz +0 -0
  802. package/build/client/_app/immutable/chunks/D8s8J8Og.js +0 -1
  803. package/build/client/_app/immutable/chunks/D8s8J8Og.js.br +0 -0
  804. package/build/client/_app/immutable/chunks/D8s8J8Og.js.gz +0 -0
  805. package/build/client/_app/immutable/chunks/DB2Frr3y.js +0 -1
  806. package/build/client/_app/immutable/chunks/DB2Frr3y.js.br +0 -0
  807. package/build/client/_app/immutable/chunks/DB2Frr3y.js.gz +0 -0
  808. package/build/client/_app/immutable/chunks/DCbu051o.js +0 -1
  809. package/build/client/_app/immutable/chunks/DCbu051o.js.br +0 -2
  810. package/build/client/_app/immutable/chunks/DCbu051o.js.gz +0 -0
  811. package/build/client/_app/immutable/chunks/DDUWrtWf.js +0 -1
  812. package/build/client/_app/immutable/chunks/DDUWrtWf.js.br +0 -0
  813. package/build/client/_app/immutable/chunks/DDUWrtWf.js.gz +0 -0
  814. package/build/client/_app/immutable/chunks/DEIc6x-v.js +0 -1
  815. package/build/client/_app/immutable/chunks/DEIc6x-v.js.br +0 -0
  816. package/build/client/_app/immutable/chunks/DEIc6x-v.js.gz +0 -0
  817. package/build/client/_app/immutable/chunks/DHMHvrUA.js +0 -1
  818. package/build/client/_app/immutable/chunks/DHMHvrUA.js.br +0 -0
  819. package/build/client/_app/immutable/chunks/DHMHvrUA.js.gz +0 -0
  820. package/build/client/_app/immutable/chunks/DMefFkCx.js +0 -1
  821. package/build/client/_app/immutable/chunks/DMefFkCx.js.br +0 -0
  822. package/build/client/_app/immutable/chunks/DMefFkCx.js.gz +0 -0
  823. package/build/client/_app/immutable/chunks/DRK9oYED.js +0 -1
  824. package/build/client/_app/immutable/chunks/DRK9oYED.js.br +0 -0
  825. package/build/client/_app/immutable/chunks/DRK9oYED.js.gz +0 -0
  826. package/build/client/_app/immutable/chunks/DU2mz-vL.js +0 -1
  827. package/build/client/_app/immutable/chunks/DU2mz-vL.js.br +0 -0
  828. package/build/client/_app/immutable/chunks/DU2mz-vL.js.gz +0 -0
  829. package/build/client/_app/immutable/chunks/DWlSINHC.js +0 -1
  830. package/build/client/_app/immutable/chunks/DWlSINHC.js.br +0 -0
  831. package/build/client/_app/immutable/chunks/DWlSINHC.js.gz +0 -0
  832. package/build/client/_app/immutable/chunks/DXt4vIK0.js +0 -1
  833. package/build/client/_app/immutable/chunks/DXt4vIK0.js.br +0 -0
  834. package/build/client/_app/immutable/chunks/DXt4vIK0.js.gz +0 -0
  835. package/build/client/_app/immutable/chunks/DZJnY8Nx.js +0 -1
  836. package/build/client/_app/immutable/chunks/DZJnY8Nx.js.br +0 -0
  837. package/build/client/_app/immutable/chunks/DZJnY8Nx.js.gz +0 -0
  838. package/build/client/_app/immutable/chunks/D_nVtLM5.js +0 -1
  839. package/build/client/_app/immutable/chunks/D_nVtLM5.js.br +0 -0
  840. package/build/client/_app/immutable/chunks/D_nVtLM5.js.gz +0 -0
  841. package/build/client/_app/immutable/chunks/DdRufa9N.js +0 -1
  842. package/build/client/_app/immutable/chunks/DdRufa9N.js.br +0 -0
  843. package/build/client/_app/immutable/chunks/DdRufa9N.js.gz +0 -0
  844. package/build/client/_app/immutable/chunks/DgOhqfdF.js +0 -1
  845. package/build/client/_app/immutable/chunks/DgOhqfdF.js.br +0 -0
  846. package/build/client/_app/immutable/chunks/DgOhqfdF.js.gz +0 -0
  847. package/build/client/_app/immutable/chunks/Dhv6iBq8.js +0 -1
  848. package/build/client/_app/immutable/chunks/Dhv6iBq8.js.br +0 -0
  849. package/build/client/_app/immutable/chunks/Dhv6iBq8.js.gz +0 -0
  850. package/build/client/_app/immutable/chunks/DkG1ReNq.js +0 -1
  851. package/build/client/_app/immutable/chunks/DkG1ReNq.js.br +0 -0
  852. package/build/client/_app/immutable/chunks/DkG1ReNq.js.gz +0 -0
  853. package/build/client/_app/immutable/chunks/DlcOqcbg.js +0 -1
  854. package/build/client/_app/immutable/chunks/DlcOqcbg.js.br +0 -0
  855. package/build/client/_app/immutable/chunks/DlcOqcbg.js.gz +0 -0
  856. package/build/client/_app/immutable/chunks/DnDesMxN.js +0 -1
  857. package/build/client/_app/immutable/chunks/DnDesMxN.js.br +0 -0
  858. package/build/client/_app/immutable/chunks/DnDesMxN.js.gz +0 -0
  859. package/build/client/_app/immutable/chunks/DnQR8b1d.js +0 -62
  860. package/build/client/_app/immutable/chunks/DnQR8b1d.js.br +0 -0
  861. package/build/client/_app/immutable/chunks/DnQR8b1d.js.gz +0 -0
  862. package/build/client/_app/immutable/chunks/DqZ9Wm2M.js +0 -1
  863. package/build/client/_app/immutable/chunks/DqZ9Wm2M.js.br +0 -0
  864. package/build/client/_app/immutable/chunks/DqZ9Wm2M.js.gz +0 -0
  865. package/build/client/_app/immutable/chunks/DybGBkO1.js +0 -5
  866. package/build/client/_app/immutable/chunks/DybGBkO1.js.br +0 -0
  867. package/build/client/_app/immutable/chunks/DybGBkO1.js.gz +0 -0
  868. package/build/client/_app/immutable/chunks/He17Vv5l.js +0 -1
  869. package/build/client/_app/immutable/chunks/He17Vv5l.js.br +0 -0
  870. package/build/client/_app/immutable/chunks/He17Vv5l.js.gz +0 -0
  871. package/build/client/_app/immutable/chunks/IQRNVWsw.js +0 -2
  872. package/build/client/_app/immutable/chunks/IQRNVWsw.js.br +0 -0
  873. package/build/client/_app/immutable/chunks/IQRNVWsw.js.gz +0 -0
  874. package/build/client/_app/immutable/chunks/KWgz7qtz.js +0 -6
  875. package/build/client/_app/immutable/chunks/KWgz7qtz.js.br +0 -0
  876. package/build/client/_app/immutable/chunks/KWgz7qtz.js.gz +0 -0
  877. package/build/client/_app/immutable/chunks/OermLIIb.js +0 -2
  878. package/build/client/_app/immutable/chunks/OermLIIb.js.br +0 -0
  879. package/build/client/_app/immutable/chunks/OermLIIb.js.gz +0 -0
  880. package/build/client/_app/immutable/chunks/TcIaLKEO.js +0 -1
  881. package/build/client/_app/immutable/chunks/TcIaLKEO.js.br +0 -0
  882. package/build/client/_app/immutable/chunks/TcIaLKEO.js.gz +0 -0
  883. package/build/client/_app/immutable/chunks/WKkbnawS.js +0 -1
  884. package/build/client/_app/immutable/chunks/WKkbnawS.js.br +0 -0
  885. package/build/client/_app/immutable/chunks/WKkbnawS.js.gz +0 -0
  886. package/build/client/_app/immutable/chunks/Z8zDEyti.js +0 -1
  887. package/build/client/_app/immutable/chunks/Z8zDEyti.js.br +0 -0
  888. package/build/client/_app/immutable/chunks/Z8zDEyti.js.gz +0 -0
  889. package/build/client/_app/immutable/chunks/kE4zxzFD.js +0 -1
  890. package/build/client/_app/immutable/chunks/kE4zxzFD.js.br +0 -0
  891. package/build/client/_app/immutable/chunks/kE4zxzFD.js.gz +0 -0
  892. package/build/client/_app/immutable/chunks/kWmJZSyZ.js +0 -1
  893. package/build/client/_app/immutable/chunks/kWmJZSyZ.js.br +0 -0
  894. package/build/client/_app/immutable/chunks/kWmJZSyZ.js.gz +0 -0
  895. package/build/client/_app/immutable/entry/app.CL8a8HZ0.js +0 -2
  896. package/build/client/_app/immutable/entry/app.CL8a8HZ0.js.br +0 -0
  897. package/build/client/_app/immutable/entry/app.CL8a8HZ0.js.gz +0 -0
  898. package/build/client/_app/immutable/entry/start.DY5Zh3I7.js +0 -1
  899. package/build/client/_app/immutable/entry/start.DY5Zh3I7.js.br +0 -0
  900. package/build/client/_app/immutable/entry/start.DY5Zh3I7.js.gz +0 -0
  901. package/build/client/_app/immutable/nodes/0.Bmtc68EX.js +0 -8
  902. package/build/client/_app/immutable/nodes/0.Bmtc68EX.js.br +0 -0
  903. package/build/client/_app/immutable/nodes/0.Bmtc68EX.js.gz +0 -0
  904. package/build/client/_app/immutable/nodes/1.BRLMR7fm.js +0 -1
  905. package/build/client/_app/immutable/nodes/1.BRLMR7fm.js.br +0 -0
  906. package/build/client/_app/immutable/nodes/1.BRLMR7fm.js.gz +0 -0
  907. package/build/client/_app/immutable/nodes/10.Ctk2N--v.js +0 -3
  908. package/build/client/_app/immutable/nodes/10.Ctk2N--v.js.br +0 -0
  909. package/build/client/_app/immutable/nodes/10.Ctk2N--v.js.gz +0 -0
  910. package/build/client/_app/immutable/nodes/11.DzDPmeKc.js +0 -1
  911. package/build/client/_app/immutable/nodes/11.DzDPmeKc.js.br +0 -0
  912. package/build/client/_app/immutable/nodes/11.DzDPmeKc.js.gz +0 -0
  913. package/build/client/_app/immutable/nodes/12.BUO7L3_c.js +0 -14
  914. package/build/client/_app/immutable/nodes/12.BUO7L3_c.js.br +0 -0
  915. package/build/client/_app/immutable/nodes/12.BUO7L3_c.js.gz +0 -0
  916. package/build/client/_app/immutable/nodes/13.sQe1BX9E.js +0 -150
  917. package/build/client/_app/immutable/nodes/13.sQe1BX9E.js.br +0 -0
  918. package/build/client/_app/immutable/nodes/13.sQe1BX9E.js.gz +0 -0
  919. package/build/client/_app/immutable/nodes/14.C6lWut9y.js +0 -4
  920. package/build/client/_app/immutable/nodes/14.C6lWut9y.js.br +0 -0
  921. package/build/client/_app/immutable/nodes/14.C6lWut9y.js.gz +0 -0
  922. package/build/client/_app/immutable/nodes/16.B9dAe-zO.js +0 -11
  923. package/build/client/_app/immutable/nodes/16.B9dAe-zO.js.br +0 -0
  924. package/build/client/_app/immutable/nodes/16.B9dAe-zO.js.gz +0 -0
  925. package/build/client/_app/immutable/nodes/17.BjYq-nHX.js +0 -9
  926. package/build/client/_app/immutable/nodes/17.BjYq-nHX.js.br +0 -0
  927. package/build/client/_app/immutable/nodes/17.BjYq-nHX.js.gz +0 -0
  928. package/build/client/_app/immutable/nodes/18.C7MQG7kY.js +0 -2
  929. package/build/client/_app/immutable/nodes/18.C7MQG7kY.js.br +0 -0
  930. package/build/client/_app/immutable/nodes/18.C7MQG7kY.js.gz +0 -0
  931. package/build/client/_app/immutable/nodes/19.CGPxCxa4.js +0 -3
  932. package/build/client/_app/immutable/nodes/19.CGPxCxa4.js.br +0 -0
  933. package/build/client/_app/immutable/nodes/19.CGPxCxa4.js.gz +0 -0
  934. package/build/client/_app/immutable/nodes/2.DSEV6dyX.js +0 -27
  935. package/build/client/_app/immutable/nodes/2.DSEV6dyX.js.br +0 -0
  936. package/build/client/_app/immutable/nodes/2.DSEV6dyX.js.gz +0 -0
  937. package/build/client/_app/immutable/nodes/20.UmQnK0mP.js +0 -1
  938. package/build/client/_app/immutable/nodes/20.UmQnK0mP.js.br +0 -0
  939. package/build/client/_app/immutable/nodes/20.UmQnK0mP.js.gz +0 -0
  940. package/build/client/_app/immutable/nodes/21.kMxNjh5n.js +0 -6
  941. package/build/client/_app/immutable/nodes/21.kMxNjh5n.js.br +0 -0
  942. package/build/client/_app/immutable/nodes/21.kMxNjh5n.js.gz +0 -0
  943. package/build/client/_app/immutable/nodes/3.HvyFWmuR.js +0 -5
  944. package/build/client/_app/immutable/nodes/3.HvyFWmuR.js.br +0 -0
  945. package/build/client/_app/immutable/nodes/3.HvyFWmuR.js.gz +0 -0
  946. package/build/client/_app/immutable/nodes/4.cOsP7AQT.js +0 -1
  947. package/build/client/_app/immutable/nodes/4.cOsP7AQT.js.br +0 -0
  948. package/build/client/_app/immutable/nodes/4.cOsP7AQT.js.gz +0 -0
  949. package/build/client/_app/immutable/nodes/5.WTA0USqX.js +0 -2
  950. package/build/client/_app/immutable/nodes/5.WTA0USqX.js.br +0 -0
  951. package/build/client/_app/immutable/nodes/5.WTA0USqX.js.gz +0 -0
  952. package/build/client/_app/immutable/nodes/6.DVgxxTkD.js +0 -7
  953. package/build/client/_app/immutable/nodes/6.DVgxxTkD.js.br +0 -0
  954. package/build/client/_app/immutable/nodes/6.DVgxxTkD.js.gz +0 -0
  955. package/build/client/_app/immutable/nodes/7.Djk2ljG8.js +0 -5
  956. package/build/client/_app/immutable/nodes/7.Djk2ljG8.js.br +0 -0
  957. package/build/client/_app/immutable/nodes/7.Djk2ljG8.js.gz +0 -0
  958. package/build/client/_app/immutable/nodes/9.C0za5N1P.js +0 -1
  959. package/build/client/_app/immutable/nodes/9.C0za5N1P.js.br +0 -0
  960. package/build/client/_app/immutable/nodes/9.C0za5N1P.js.gz +0 -0
  961. package/build/server/chunks/chunks/DecisionCard.js-CXR2Tqq9.js +0 -586
  962. package/build/server/chunks/chunks/DocSheet.js-COU85_s3.js +0 -50
  963. package/build/server/chunks/chunks/EtaLine.js-CGeZKC7J.js +0 -98
  964. package/build/server/chunks/chunks/EveryProjectSwitch.js-BRDpCeoH.js +0 -200
  965. package/build/server/chunks/chunks/Icon.js-CHJ2UHjC.js +0 -129
  966. package/build/server/chunks/chunks/InsightsNav.js-6PnqzaPk.js +0 -18
  967. package/build/server/chunks/chunks/InstallPlugin.js-Cs1ZrPAp.js +0 -45
  968. package/build/server/chunks/chunks/LinkedText.js-W4YG6iJR.js +0 -34
  969. package/build/server/chunks/chunks/MateHealthPill.js-BNEGFwH8.js +0 -22
  970. package/build/server/chunks/chunks/OpenDecision.js-ogSBclda.js +0 -1596
  971. package/build/server/chunks/chunks/ProjectBanner.js-DFoHRlbH.js +0 -111
  972. package/build/server/chunks/chunks/ProjectStateMark.js-Dnky_g-x.js +0 -41
  973. package/build/server/chunks/chunks/QuestionList.js-BXYtAgRG.js +0 -51
  974. package/build/server/chunks/chunks/ResizableRail.js-C0NBHdjG.js +0 -50
  975. package/build/server/chunks/chunks/SettingsNav.js-hmRmEglt.js +0 -22
  976. package/build/server/chunks/chunks/SlotContent.js-DvHCWpDg.js +0 -738
  977. package/build/server/chunks/chunks/TaskOverview.js-BLbSjSGh.js +0 -568
  978. package/build/server/chunks/chunks/TimeBar.js-D3XrZtTh.js +0 -32
  979. package/build/server/chunks/chunks/TimeLegend.js-B5rkpGtG.js +0 -29
  980. package/build/server/chunks/chunks/WhereBadge.js-CT4hViFh.js +0 -131
  981. package/build/server/chunks/chunks/addresses.js-DMekVPad.js +0 -52
  982. package/build/server/chunks/chunks/aliases.svelte.js-D80jyNJf.js +0 -138
  983. package/build/server/chunks/chunks/arrow-down.js-DUgKe53e.js +0 -18
  984. package/build/server/chunks/chunks/arrow-left.js-Cq9_JtOh.js +0 -18
  985. package/build/server/chunks/chunks/arrow-right.js-AjYDyUqN.js +0 -18
  986. package/build/server/chunks/chunks/arrow-up-right.js-BXDKmOw9.js +0 -18
  987. package/build/server/chunks/chunks/arrow-up.js-Cd_TyexB.js +0 -18
  988. package/build/server/chunks/chunks/berths.js-DAg2ReUw.js +0 -270
  989. package/build/server/chunks/chunks/brief.js-TS-K0lZ6.js +0 -54
  990. package/build/server/chunks/chunks/buildlog.js-BGIHToGa.js +0 -55
  991. package/build/server/chunks/chunks/button.js-Q4mS-EA8.js +0 -7311
  992. package/build/server/chunks/chunks/changes.js-DLL6A8OG.js +0 -40
  993. package/build/server/chunks/chunks/check.js-LVN_jfQU.js +0 -15
  994. package/build/server/chunks/chunks/checks.js-CIo8HrSt.js +0 -221
  995. package/build/server/chunks/chunks/chevron-left.js-DhF4v3Pt.js +0 -15
  996. package/build/server/chunks/chunks/chevron-right.js-D4fnSNoh.js +0 -15
  997. package/build/server/chunks/chunks/circle-alert.js-CTc53lLB.js +0 -23
  998. package/build/server/chunks/chunks/circle-arrow-up.js-v-nE3jR0.js +0 -20
  999. package/build/server/chunks/chunks/circle-dashed.js-QwLaO9U2.js +0 -24
  1000. package/build/server/chunks/chunks/circle-dot.js-DMNxPdVx.js +0 -18
  1001. package/build/server/chunks/chunks/client.js-BSbbAByJ.js +0 -24
  1002. package/build/server/chunks/chunks/clock.js-hPyOuzjG.js +0 -18
  1003. package/build/server/chunks/chunks/detail.js-DmSONkJE.js +0 -146
  1004. package/build/server/chunks/chunks/external-link.js-BuWBxV8H.js +0 -24
  1005. package/build/server/chunks/chunks/eye.js-BvS4v0oz.js +0 -23
  1006. package/build/server/chunks/chunks/feedback.js-yXFmBh67.js +0 -67
  1007. package/build/server/chunks/chunks/format.js-DKnw8oWK.js +0 -70
  1008. package/build/server/chunks/chunks/git-pull-request.js-CXtks_Ym.js +0 -20
  1009. package/build/server/chunks/chunks/hand.js-CJ13vqPn.js +0 -25
  1010. package/build/server/chunks/chunks/index-server.js-BY3oucHa.js +0 -17
  1011. package/build/server/chunks/chunks/index.js-C2v29IkD.js +0 -1524
  1012. package/build/server/chunks/chunks/index2.js-DDKi-jKB.js +0 -46
  1013. package/build/server/chunks/chunks/internal.js-wAeB3IT1.js +0 -146
  1014. package/build/server/chunks/chunks/live.svelte.js-D1hNGw9_.js +0 -241
  1015. package/build/server/chunks/chunks/loader-circle.js-CNbdxSQ6.js +0 -16
  1016. package/build/server/chunks/chunks/markdown.js-0thJlxxD.js +0 -2656
  1017. package/build/server/chunks/chunks/message-square.js-Ct7UUpHZ.js +0 -22
  1018. package/build/server/chunks/chunks/messages-square.js-S0CnYLu0.js +0 -47
  1019. package/build/server/chunks/chunks/minus.js-B7GNC6Bd.js +0 -15
  1020. package/build/server/chunks/chunks/plain.js-Dc97sYaJ.js +0 -101
  1021. package/build/server/chunks/chunks/plus.js-Dbawo5bL.js +0 -15
  1022. package/build/server/chunks/chunks/previewhelper2.js-DH3wSLnQ.js +0 -165
  1023. package/build/server/chunks/chunks/pullrequests.js-BobjerQv.js +0 -152
  1024. package/build/server/chunks/chunks/pullrequests2.js-CCzk2sqm.js +0 -12
  1025. package/build/server/chunks/chunks/repo.js-CeNEGGXM.js +0 -33
  1026. package/build/server/chunks/chunks/review.js-DoWJxV0D.js +0 -141
  1027. package/build/server/chunks/chunks/root.js-iNMFn-Yg.js +0 -3105
  1028. package/build/server/chunks/chunks/rotate-cw.js-BPzrB4So.js +0 -21
  1029. package/build/server/chunks/chunks/runtime.js-CpuENBbt.js +0 -17683
  1030. package/build/server/chunks/chunks/scale.js-CkXtBARG.js +0 -21
  1031. package/build/server/chunks/chunks/scroll-lock.js-C4Fj1gEY.js +0 -2797
  1032. package/build/server/chunks/chunks/service.js-CxgO_lGX.js +0 -916
  1033. package/build/server/chunks/chunks/settings.js-BEOX97g7.js +0 -869
  1034. package/build/server/chunks/chunks/shield-check.js-MP-IWW55.js +0 -23
  1035. package/build/server/chunks/chunks/sparkles.js-Cr_IjWR_.js +0 -26
  1036. package/build/server/chunks/chunks/square-terminal.js-DLBEkPpa.js +0 -30
  1037. package/build/server/chunks/chunks/tone.js-oubilaK8.js +0 -59
  1038. package/build/server/chunks/chunks/topics.js-CPoxwdi2.js +0 -3715
  1039. package/build/server/chunks/chunks/triangle-alert.js-DGSV_5I9.js +0 -25
  1040. package/build/server/chunks/chunks/urls.js-BrlC6XZ8.js +0 -8
  1041. package/build/server/chunks/chunks/vault.js-CTaWe09z.js +0 -162
  1042. package/build/server/chunks/chunks/view.js-I8j3JaZ5.js +0 -76
  1043. package/build/server/chunks/chunks/words.js-eWWIwMKr.js +0 -52
  1044. package/build/server/chunks/chunks/x.js-Dhp-BHl8.js +0 -18
  1045. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-tV5UVoX_.js +0 -94
  1046. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-Bqe7aUbi.js +0 -104
  1047. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-DfpyY_Bq.js +0 -53
  1048. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-CN8b5ccO.js +0 -87
  1049. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CqcpAXMO.js +0 -123
  1050. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-BMv_VOat.js +0 -49
  1051. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DX45ccQL.js +0 -55
  1052. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DPfYkpxV.js +0 -48
  1053. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DwrpzrvE.js +0 -95
  1054. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BLyU7Xmy.js +0 -58
  1055. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-CwCkNQH1.js +0 -69
  1056. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-QgfVKhEv.js +0 -48
  1057. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-Dluitk4S.js +0 -40
  1058. package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-DBrzK7aF.js +0 -104
  1059. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BPOs6Ua5.js +0 -40
  1060. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CXR8ln41.js +0 -64
  1061. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-fMts5LEq.js +0 -55
  1062. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-CgoR3ZaT.js +0 -40
  1063. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-DN0zHwSr.js +0 -75
  1064. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-DawD1VtO.js +0 -64
  1065. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-C8jp0FUx.js +0 -59
  1066. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-jSPhFhMn.js +0 -56
  1067. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CDslqmcw.js +0 -24
  1068. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BJawocE3.js +0 -63
  1069. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-Be2NAmCy.js +0 -36
  1070. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-C-avUWCg.js +0 -40
  1071. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-DKAa2Uxw.js +0 -36
  1072. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-CotqjP2F.js +0 -39
  1073. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-DCvVjqLZ.js +0 -24
  1074. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-CpZ1W-A7.js +0 -45
  1075. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-Cp8plIYs.js +0 -54
  1076. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-Dak56Rg1.js +0 -66
  1077. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-WZe9B5X3.js +0 -53
  1078. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-U5nJ9f0g.js +0 -76
  1079. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-30yUhJz3.js +0 -59
  1080. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-tg4vTM3A.js +0 -49
  1081. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-BsJnf3m0.js +0 -59
  1082. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-D-Wnq4C0.js +0 -48
  1083. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-De9Q8wd8.js +0 -45
  1084. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BqscYuWP.js +0 -64
  1085. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-Do8o7_-0.js +0 -57
  1086. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-gaLKbuL7.js +0 -105
  1087. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-wcXCXMkT.js +0 -59
  1088. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-kzTN6YxA.js +0 -62
  1089. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DJiB_mf7.js +0 -66
  1090. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-BjJU6JWj.js +0 -24
  1091. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-l3foNNok.js +0 -24
  1092. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DsxJ0us4.js +0 -44
  1093. package/build/server/chunks/entries/fallbacks/error.svelte.js-CB4I_wOd.js +0 -15
  1094. package/build/server/chunks/entries/hooks.server.js-B6m3Dpkx.js +0 -58
  1095. package/build/server/chunks/entries/pages/_layout.server.ts.js-CrW4p_Q2.js +0 -24
  1096. package/build/server/chunks/entries/pages/_layout.svelte.js-LKAACh49.js +0 -5475
  1097. package/build/server/chunks/entries/pages/_page.server.ts.js-CF_c0nNn.js +0 -16
  1098. package/build/server/chunks/entries/pages/_page.svelte.js-DhcYaGNL.js +0 -3817
  1099. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-B7uZVbX4.js +0 -11
  1100. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-DcczyFUP.js +0 -201
  1101. package/build/server/chunks/entries/pages/files/_page.server.ts.js-C9YB1gJL.js +0 -17
  1102. package/build/server/chunks/entries/pages/files/_page.svelte.js-BIMqSkgM.js +0 -60
  1103. package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-BfPMxhei.js +0 -46
  1104. package/build/server/chunks/entries/pages/harbour/_page.svelte.js-BHMB8PKC.js +0 -749
  1105. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-D1wZDsVf.js +0 -11
  1106. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-Yw5NZV8k.js +0 -183
  1107. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-woHdHibC.js +0 -11
  1108. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BffukCNo.js +0 -175
  1109. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-XcXW0Uve.js +0 -16
  1110. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DLxqhull.js +0 -53
  1111. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-wLr_tgjL.js +0 -23
  1112. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-Doi5pyAo.js +0 -980
  1113. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DMOW6iPG.js +0 -21
  1114. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Cr__zX_O.js +0 -76
  1115. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BJZyFsqL.js +0 -27
  1116. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CkM6pjKK.js +0 -418
  1117. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DB_UVBbI.js +0 -15
  1118. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-CN-WwfgH.js +0 -1880
  1119. package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-CO4DG7gS.js +0 -221
  1120. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DfWW-CQh.js +0 -11
  1121. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-DuleT8BP.js +0 -208
  1122. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-CshPvaAs.js +0 -19
  1123. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-BUmIRIz2.js +0 -1854
  1124. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-9JK7K_z9.js +0 -17
  1125. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-B5PSrA4H.js +0 -227
  1126. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-Cvp9xMG4.js +0 -25
  1127. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-ChQv02MF.js +0 -2194
  1128. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-C1DtiAVs.js +0 -24
  1129. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-QzwiMik4.js +0 -79
  1130. package/build/server/chunks/entries/pages/time/_page.server.ts.js-DlJqn5ve.js +0 -11
  1131. package/build/server/chunks/entries/pages/time/_page.svelte.js-D0Z16ExE.js +0 -108
  1132. package/build/server/chunks/handler-Bs_CCC30.js +0 -1474
  1133. package/build/server/chunks/index.js-Cs5HOQvf.js +0 -4296
  1134. package/build/server/chunks/manifest.js-BDRywlKi.js +0 -551
  1135. package/build/server/chunks/nodes/0.js-CsWq-jPD.js +0 -45
  1136. package/build/server/chunks/nodes/1.js-CTC_MshV.js +0 -9
  1137. package/build/server/chunks/nodes/10.js-CZq28G3f.js +0 -47
  1138. package/build/server/chunks/nodes/11.js-BtlSUZdl.js +0 -46
  1139. package/build/server/chunks/nodes/12.js-D0o_nkGH.js +0 -47
  1140. package/build/server/chunks/nodes/13.js-BIIG5wG0.js +0 -46
  1141. package/build/server/chunks/nodes/14.js-B3MoJ0Ck.js +0 -9
  1142. package/build/server/chunks/nodes/16.js-DL5dm8m7.js +0 -45
  1143. package/build/server/chunks/nodes/17.js-BItMe09V.js +0 -45
  1144. package/build/server/chunks/nodes/18.js-BqNFJ6VI.js +0 -48
  1145. package/build/server/chunks/nodes/19.js-DWlhtpN2.js +0 -46
  1146. package/build/server/chunks/nodes/2.js-Biys3XVB.js +0 -45
  1147. package/build/server/chunks/nodes/20.js-tYMJBMgr.js +0 -46
  1148. package/build/server/chunks/nodes/21.js-DB94vZQt.js +0 -45
  1149. package/build/server/chunks/nodes/3.js-CsnKNLDN.js +0 -45
  1150. package/build/server/chunks/nodes/4.js-l8re1d64.js +0 -45
  1151. package/build/server/chunks/nodes/5.js-B0eRP6zR.js +0 -49
  1152. package/build/server/chunks/nodes/6.js-BWv2xVyz.js +0 -45
  1153. package/build/server/chunks/nodes/7.js-C4YSw2xL.js +0 -45
  1154. package/build/server/chunks/nodes/9.js-CWW789qH.js +0 -45
  1155. /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css → PreviewStudio.Dga9zAug.css} +0 -0
  1156. /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css.br → PreviewStudio.Dga9zAug.css.br} +0 -0
  1157. /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css.gz → PreviewStudio.Dga9zAug.css.gz} +0 -0
@@ -1,3715 +0,0 @@
1
- import { a9 as spread_props, af as bind_props, an as props_id, _ as derived, a4 as attributes } from './index.js-C2v29IkD.js';
2
- import { I as Icon } from './Icon.js-CHJ2UHjC.js';
3
- import { n as noop, b as boxWith, C as Context, P as PresenceManager, w as watch, s as simpleBox, c as createBitsAttrs, a as createId, d as attachRef, D as DOMContext, i as isTouch, E as ENTER, S as SPACE, g as getDataOpenClosed, e as boolToStr, f as boxFrom, h as isElement$1, j as isTabbable, k as getDataTransitionAttrs, m as mergeProps, l as getDocument, u as useId, o as cssToStyleObj, p as isNotNull, q as styleToString, r as getWindow$1, t as defaultWindow, v as Scroll_lock, F as Focus_scope, x as Escape_layer, y as Dismissible_layer, T as Text_selection_layer } from './scroll-lock.js-C4Fj1gEY.js';
4
- import { c as createSubscriber } from './index-server2.js-DsObimPA.js';
5
- import { o as on } from './root.js-iNMFn-Yg.js';
6
-
7
- /**
8
- * Custom positioning reference element.
9
- * @see https://floating-ui.com/docs/virtual-elements
10
- */
11
-
12
- const sides = ['top', 'right', 'bottom', 'left'];
13
- const min = Math.min;
14
- const max = Math.max;
15
- const round = Math.round;
16
- const createCoords = v => ({
17
- x: v,
18
- y: v
19
- });
20
- const oppositeSideMap = {
21
- left: 'right',
22
- right: 'left',
23
- bottom: 'top',
24
- top: 'bottom'
25
- };
26
- function clamp(start, value, end) {
27
- return max(start, min(value, end));
28
- }
29
- function evaluate(value, param) {
30
- return typeof value === 'function' ? value(param) : value;
31
- }
32
- function getSide$1(placement) {
33
- return placement.split('-')[0];
34
- }
35
- function getAlignment(placement) {
36
- return placement.split('-')[1];
37
- }
38
- function getOppositeAxis(axis) {
39
- return axis === 'x' ? 'y' : 'x';
40
- }
41
- function getAxisLength(axis) {
42
- return axis === 'y' ? 'height' : 'width';
43
- }
44
- function getSideAxis(placement) {
45
- const firstChar = placement[0];
46
- return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
47
- }
48
- function getAlignmentAxis(placement) {
49
- return getOppositeAxis(getSideAxis(placement));
50
- }
51
- function getAlignmentSides(placement, rects, rtl) {
52
- if (rtl === void 0) {
53
- rtl = false;
54
- }
55
- const alignment = getAlignment(placement);
56
- const alignmentAxis = getAlignmentAxis(placement);
57
- const length = getAxisLength(alignmentAxis);
58
- let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
59
- if (rects.reference[length] > rects.floating[length]) {
60
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
61
- }
62
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
63
- }
64
- function getExpandedPlacements(placement) {
65
- const oppositePlacement = getOppositePlacement(placement);
66
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
67
- }
68
- function getOppositeAlignmentPlacement(placement) {
69
- return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
70
- }
71
- const lrPlacement = ['left', 'right'];
72
- const rlPlacement = ['right', 'left'];
73
- const tbPlacement = ['top', 'bottom'];
74
- const btPlacement = ['bottom', 'top'];
75
- function getSideList(side, isStart, rtl) {
76
- switch (side) {
77
- case 'top':
78
- case 'bottom':
79
- if (rtl) return isStart ? rlPlacement : lrPlacement;
80
- return isStart ? lrPlacement : rlPlacement;
81
- case 'left':
82
- case 'right':
83
- return isStart ? tbPlacement : btPlacement;
84
- default:
85
- return [];
86
- }
87
- }
88
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
89
- const alignment = getAlignment(placement);
90
- let list = getSideList(getSide$1(placement), direction === 'start', rtl);
91
- if (alignment) {
92
- list = list.map(side => side + "-" + alignment);
93
- if (flipAlignment) {
94
- list = list.concat(list.map(getOppositeAlignmentPlacement));
95
- }
96
- }
97
- return list;
98
- }
99
- function getOppositePlacement(placement) {
100
- const side = getSide$1(placement);
101
- return oppositeSideMap[side] + placement.slice(side.length);
102
- }
103
- function expandPaddingObject(padding) {
104
- var _padding$top, _padding$right, _padding$bottom, _padding$left;
105
- return {
106
- top: (_padding$top = padding.top) != null ? _padding$top : 0,
107
- right: (_padding$right = padding.right) != null ? _padding$right : 0,
108
- bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
109
- left: (_padding$left = padding.left) != null ? _padding$left : 0
110
- };
111
- }
112
- function getPaddingObject(padding) {
113
- return typeof padding !== 'number' ? expandPaddingObject(padding) : {
114
- top: padding,
115
- right: padding,
116
- bottom: padding,
117
- left: padding
118
- };
119
- }
120
- function rectToClientRect(rect) {
121
- const {
122
- x,
123
- y,
124
- width,
125
- height
126
- } = rect;
127
- return {
128
- width,
129
- height,
130
- top: y,
131
- left: x,
132
- right: x + width,
133
- bottom: y + height,
134
- x,
135
- y
136
- };
137
- }
138
-
139
- function computeCoordsFromPlacement(_ref, placement, rtl) {
140
- let {
141
- reference,
142
- floating
143
- } = _ref;
144
- const sideAxis = getSideAxis(placement);
145
- const alignmentAxis = getAlignmentAxis(placement);
146
- const alignLength = getAxisLength(alignmentAxis);
147
- const side = getSide$1(placement);
148
- const isVertical = sideAxis === 'y';
149
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
150
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
151
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
152
- let coords;
153
- switch (side) {
154
- case 'top':
155
- coords = {
156
- x: commonX,
157
- y: reference.y - floating.height
158
- };
159
- break;
160
- case 'bottom':
161
- coords = {
162
- x: commonX,
163
- y: reference.y + reference.height
164
- };
165
- break;
166
- case 'right':
167
- coords = {
168
- x: reference.x + reference.width,
169
- y: commonY
170
- };
171
- break;
172
- case 'left':
173
- coords = {
174
- x: reference.x - floating.width,
175
- y: commonY
176
- };
177
- break;
178
- default:
179
- coords = {
180
- x: reference.x,
181
- y: reference.y
182
- };
183
- }
184
- const alignment = getAlignment(placement);
185
- if (alignment) {
186
- coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);
187
- }
188
- return coords;
189
- }
190
-
191
- /**
192
- * Resolves with an object of overflow side offsets that determine how much the
193
- * element is overflowing a given clipping boundary on each side.
194
- * - positive = overflowing the boundary by that number of pixels
195
- * - negative = how many pixels left before it will overflow
196
- * - 0 = lies flush with the boundary
197
- * @see https://floating-ui.com/docs/detectOverflow
198
- */
199
- async function detectOverflow(state, options) {
200
- var _await$platform$isEle;
201
- if (options === void 0) {
202
- options = {};
203
- }
204
- const {
205
- x,
206
- y,
207
- platform,
208
- rects,
209
- elements,
210
- strategy
211
- } = state;
212
- const {
213
- boundary = 'clippingAncestors',
214
- rootBoundary = 'viewport',
215
- elementContext = 'floating',
216
- altBoundary = false,
217
- padding = 0
218
- } = evaluate(options, state);
219
- const paddingObject = getPaddingObject(padding);
220
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
221
- const element = elements[altBoundary ? altContext : elementContext];
222
- const clippingClientRect = rectToClientRect(await platform.getClippingRect({
223
- element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
224
- boundary,
225
- rootBoundary,
226
- strategy
227
- }));
228
- const rect = elementContext === 'floating' ? {
229
- x,
230
- y,
231
- width: rects.floating.width,
232
- height: rects.floating.height
233
- } : rects.reference;
234
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
235
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
236
- x: 1,
237
- y: 1
238
- };
239
- const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
240
- elements,
241
- rect,
242
- offsetParent,
243
- strategy
244
- }) : rect);
245
- return {
246
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
247
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
248
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
249
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
250
- };
251
- }
252
-
253
- // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
254
- const MAX_RESET_COUNT = 50;
255
-
256
- /**
257
- * Computes the `x` and `y` coordinates that will place the floating element
258
- * next to a given reference element.
259
- *
260
- * This export does not have any `platform` interface logic. You will need to
261
- * write one for the platform you are using Floating UI with.
262
- */
263
- const computePosition$1 = async (reference, floating, config) => {
264
- const {
265
- placement = 'bottom',
266
- strategy = 'absolute',
267
- middleware = [],
268
- platform
269
- } = config;
270
- const platformWithDetectOverflow = platform.detectOverflow ? platform : {
271
- ...platform,
272
- detectOverflow
273
- };
274
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
275
- let rects = await platform.getElementRects({
276
- reference,
277
- floating,
278
- strategy
279
- });
280
- let {
281
- x,
282
- y
283
- } = computeCoordsFromPlacement(rects, placement, rtl);
284
- let statefulPlacement = placement;
285
- let resetCount = 0;
286
- const middlewareData = {};
287
- for (let i = 0; i < middleware.length; i++) {
288
- const currentMiddleware = middleware[i];
289
- if (!currentMiddleware) {
290
- continue;
291
- }
292
- const {
293
- name,
294
- fn
295
- } = currentMiddleware;
296
- const {
297
- x: nextX,
298
- y: nextY,
299
- data,
300
- reset
301
- } = await fn({
302
- x,
303
- y,
304
- initialPlacement: placement,
305
- placement: statefulPlacement,
306
- strategy,
307
- middlewareData,
308
- rects,
309
- platform: platformWithDetectOverflow,
310
- elements: {
311
- reference,
312
- floating
313
- }
314
- });
315
- x = nextX != null ? nextX : x;
316
- y = nextY != null ? nextY : y;
317
- middlewareData[name] = {
318
- ...middlewareData[name],
319
- ...data
320
- };
321
- if (reset && resetCount < MAX_RESET_COUNT) {
322
- resetCount++;
323
- if (typeof reset === 'object') {
324
- if (reset.placement) {
325
- statefulPlacement = reset.placement;
326
- }
327
- if (reset.rects) {
328
- rects = reset.rects === true ? await platform.getElementRects({
329
- reference,
330
- floating,
331
- strategy
332
- }) : reset.rects;
333
- }
334
- ({
335
- x,
336
- y
337
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
338
- }
339
- i = -1;
340
- }
341
- }
342
- return {
343
- x,
344
- y,
345
- placement: statefulPlacement,
346
- strategy,
347
- middlewareData
348
- };
349
- };
350
-
351
- /**
352
- * Provides data to position an inner element of the floating element so that it
353
- * appears centered to the reference element.
354
- * @see https://floating-ui.com/docs/arrow
355
- */
356
- const arrow$1 = options => ({
357
- name: 'arrow',
358
- options,
359
- async fn(state) {
360
- const {
361
- x,
362
- y,
363
- placement,
364
- rects,
365
- platform,
366
- elements,
367
- middlewareData
368
- } = state;
369
- // Since `element` is required, we don't Partial<> the type.
370
- const {
371
- element,
372
- padding = 0
373
- } = evaluate(options, state) || {};
374
- if (element == null) {
375
- return {};
376
- }
377
- const paddingObject = getPaddingObject(padding);
378
- const coords = {
379
- x,
380
- y
381
- };
382
- const axis = getAlignmentAxis(placement);
383
- const length = getAxisLength(axis);
384
- const arrowDimensions = await platform.getDimensions(element);
385
- const isYAxis = axis === 'y';
386
- const minProp = isYAxis ? 'top' : 'left';
387
- const maxProp = isYAxis ? 'bottom' : 'right';
388
- const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
389
- const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
390
- const startDiff = coords[axis] - rects.reference[axis];
391
- const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
392
- let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
393
-
394
- // DOM platform can return `window` as the `offsetParent`.
395
- if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
396
- clientSize = elements.floating[clientProp] || rects.floating[length];
397
- }
398
- const centerToReference = endDiff / 2 - startDiff / 2;
399
-
400
- // If the padding is large enough that it causes the arrow to no longer be
401
- // centered, modify the padding so that it is centered.
402
- const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
403
- const minPadding = min(paddingObject[minProp], largestPossiblePadding);
404
- const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
405
-
406
- // Make sure the arrow doesn't overflow the floating element if the center
407
- // point is outside the floating element's bounds.
408
- const max = clientSize - arrowDimensions[length] - maxPadding;
409
- const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
410
- const offset = clamp(minPadding, center, max);
411
-
412
- // If the reference is small enough that the arrow's padding causes it to
413
- // to point to nothing for an aligned placement, adjust the offset of the
414
- // floating element itself. To ensure `shift()` continues to take action,
415
- // a single reset is performed when this is true.
416
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
417
- const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
418
- return {
419
- [axis]: coords[axis] + alignmentOffset,
420
- data: {
421
- [axis]: offset,
422
- centerOffset: center - offset - alignmentOffset,
423
- ...(shouldAddOffset && {
424
- alignmentOffset
425
- })
426
- },
427
- reset: shouldAddOffset
428
- };
429
- }
430
- });
431
-
432
- /**
433
- * Optimizes the visibility of the floating element by flipping the `placement`
434
- * in order to keep it in view when the preferred placement(s) will overflow the
435
- * clipping boundary. Alternative to `autoPlacement`.
436
- * @see https://floating-ui.com/docs/flip
437
- */
438
- const flip$1 = function (options) {
439
- if (options === void 0) {
440
- options = {};
441
- }
442
- return {
443
- name: 'flip',
444
- options,
445
- async fn(state) {
446
- var _middlewareData$arrow, _middlewareData$flip;
447
- const {
448
- placement,
449
- middlewareData,
450
- rects,
451
- initialPlacement,
452
- platform,
453
- elements
454
- } = state;
455
- const {
456
- mainAxis: checkMainAxis = true,
457
- crossAxis: checkCrossAxis = true,
458
- fallbackPlacements: specifiedFallbackPlacements,
459
- fallbackStrategy = 'bestFit',
460
- fallbackAxisSideDirection = 'none',
461
- flipAlignment = true,
462
- ...detectOverflowOptions
463
- } = evaluate(options, state);
464
-
465
- // If a reset by the arrow was caused due to an alignment offset being
466
- // added, we should skip any logic now since `flip()` has already done its
467
- // work.
468
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
469
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
470
- return {};
471
- }
472
- const side = getSide$1(placement);
473
- const initialSideAxis = getSideAxis(initialPlacement);
474
- const isBasePlacement = getSide$1(initialPlacement) === initialPlacement;
475
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
476
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
477
- const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
478
- if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
479
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
480
- }
481
- const placements = [initialPlacement, ...fallbackPlacements];
482
- const overflow = await platform.detectOverflow(state, detectOverflowOptions);
483
- const overflows = [];
484
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
485
- if (checkMainAxis) {
486
- overflows.push(overflow[side]);
487
- }
488
- if (checkCrossAxis) {
489
- const sides = getAlignmentSides(placement, rects, rtl);
490
- overflows.push(overflow[sides[0]], overflow[sides[1]]);
491
- }
492
- overflowsData = [...overflowsData, {
493
- placement,
494
- overflows
495
- }];
496
-
497
- // One or more sides is overflowing.
498
- if (!overflows.every(side => side <= 0)) {
499
- var _middlewareData$flip2, _overflowsData$filter;
500
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
501
- const nextPlacement = placements[nextIndex];
502
- if (nextPlacement) {
503
- const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
504
- if (!ignoreCrossAxisOverflow ||
505
- // We leave the current main axis only if every placement on that axis
506
- // overflows the main axis.
507
- overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
508
- // Try next placement and re-run the lifecycle.
509
- return {
510
- data: {
511
- index: nextIndex,
512
- overflows: overflowsData
513
- },
514
- reset: {
515
- placement: nextPlacement
516
- }
517
- };
518
- }
519
- }
520
-
521
- // First, find the candidates that fit on the mainAxis side of overflow,
522
- // then find the placement that fits the best on the main crossAxis side.
523
- 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;
524
-
525
- // Otherwise fallback.
526
- if (!resetPlacement) {
527
- switch (fallbackStrategy) {
528
- case 'bestFit':
529
- {
530
- var _overflowsData$filter2;
531
- const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
532
- if (hasFallbackAxisSideDirection) {
533
- const currentSideAxis = getSideAxis(d.placement);
534
- return currentSideAxis === initialSideAxis ||
535
- // Create a bias to the `y` side axis due to horizontal
536
- // reading directions favoring greater width.
537
- currentSideAxis === 'y';
538
- }
539
- return true;
540
- }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
541
- if (placement) {
542
- resetPlacement = placement;
543
- }
544
- break;
545
- }
546
- case 'initialPlacement':
547
- resetPlacement = initialPlacement;
548
- break;
549
- }
550
- }
551
- if (placement !== resetPlacement) {
552
- return {
553
- reset: {
554
- placement: resetPlacement
555
- }
556
- };
557
- }
558
- }
559
- return {};
560
- }
561
- };
562
- };
563
-
564
- function getSideOffsets(overflow, rect) {
565
- return {
566
- top: overflow.top - rect.height,
567
- right: overflow.right - rect.width,
568
- bottom: overflow.bottom - rect.height,
569
- left: overflow.left - rect.width
570
- };
571
- }
572
- function isAnySideFullyClipped(overflow) {
573
- return sides.some(side => overflow[side] >= 0);
574
- }
575
- /**
576
- * Provides data to hide the floating element in applicable situations, such as
577
- * when it is not in the same clipping context as the reference element.
578
- * @see https://floating-ui.com/docs/hide
579
- */
580
- const hide$1 = function (options) {
581
- if (options === void 0) {
582
- options = {};
583
- }
584
- return {
585
- name: 'hide',
586
- options,
587
- async fn(state) {
588
- const {
589
- rects,
590
- platform
591
- } = state;
592
- const {
593
- strategy = 'referenceHidden',
594
- ...detectOverflowOptions
595
- } = evaluate(options, state);
596
- switch (strategy) {
597
- case 'referenceHidden':
598
- {
599
- const overflow = await platform.detectOverflow(state, {
600
- ...detectOverflowOptions,
601
- elementContext: 'reference'
602
- });
603
- const offsets = getSideOffsets(overflow, rects.reference);
604
- return {
605
- data: {
606
- referenceHiddenOffsets: offsets,
607
- referenceHidden: isAnySideFullyClipped(offsets)
608
- }
609
- };
610
- }
611
- case 'escaped':
612
- {
613
- const overflow = await platform.detectOverflow(state, {
614
- ...detectOverflowOptions,
615
- altBoundary: true
616
- });
617
- const offsets = getSideOffsets(overflow, rects.floating);
618
- return {
619
- data: {
620
- escapedOffsets: offsets,
621
- escaped: isAnySideFullyClipped(offsets)
622
- }
623
- };
624
- }
625
- default:
626
- {
627
- return {};
628
- }
629
- }
630
- }
631
- };
632
- };
633
-
634
- const originSides = /*#__PURE__*/new Set(['left', 'top']);
635
-
636
- // For type backwards-compatibility, the `OffsetOptions` type was also
637
- // Derivable.
638
-
639
- async function convertValueToCoords(state, options) {
640
- const {
641
- placement,
642
- platform,
643
- elements
644
- } = state;
645
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
646
- const side = getSide$1(placement);
647
- const alignment = getAlignment(placement);
648
- const isVertical = getSideAxis(placement) === 'y';
649
- const mainAxisMulti = originSides.has(side) ? -1 : 1;
650
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
651
- const rawValue = evaluate(options, state);
652
-
653
- // eslint-disable-next-line prefer-const
654
- let {
655
- mainAxis,
656
- crossAxis,
657
- alignmentAxis
658
- } = typeof rawValue === 'number' ? {
659
- mainAxis: rawValue,
660
- crossAxis: 0,
661
- alignmentAxis: null
662
- } : {
663
- mainAxis: rawValue.mainAxis || 0,
664
- crossAxis: rawValue.crossAxis || 0,
665
- alignmentAxis: rawValue.alignmentAxis
666
- };
667
- if (alignment && typeof alignmentAxis === 'number') {
668
- crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
669
- }
670
- return isVertical ? {
671
- x: crossAxis * crossAxisMulti,
672
- y: mainAxis * mainAxisMulti
673
- } : {
674
- x: mainAxis * mainAxisMulti,
675
- y: crossAxis * crossAxisMulti
676
- };
677
- }
678
-
679
- /**
680
- * Modifies the placement by translating the floating element along the
681
- * specified axes.
682
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
683
- * object may be passed.
684
- * @see https://floating-ui.com/docs/offset
685
- */
686
- const offset$1 = function (options) {
687
- if (options === void 0) {
688
- options = 0;
689
- }
690
- return {
691
- name: 'offset',
692
- options,
693
- async fn(state) {
694
- var _middlewareData$offse, _middlewareData$arrow;
695
- const {
696
- x,
697
- y,
698
- placement,
699
- middlewareData
700
- } = state;
701
- const diffCoords = await convertValueToCoords(state, options);
702
-
703
- // If the placement is the same and the arrow caused an alignment offset
704
- // then we don't need to change the positioning coordinates.
705
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
706
- return {};
707
- }
708
- return {
709
- x: x + diffCoords.x,
710
- y: y + diffCoords.y,
711
- data: {
712
- ...diffCoords,
713
- placement
714
- }
715
- };
716
- }
717
- };
718
- };
719
-
720
- /**
721
- * Optimizes the visibility of the floating element by shifting it in order to
722
- * keep it in view when it will overflow the clipping boundary.
723
- * @see https://floating-ui.com/docs/shift
724
- */
725
- const shift$1 = function (options) {
726
- if (options === void 0) {
727
- options = {};
728
- }
729
- return {
730
- name: 'shift',
731
- options,
732
- async fn(state) {
733
- const {
734
- x,
735
- y,
736
- placement,
737
- platform
738
- } = state;
739
- const {
740
- mainAxis: checkMainAxis = true,
741
- crossAxis: checkCrossAxis = false,
742
- limiter = {
743
- fn: _ref => {
744
- let {
745
- x,
746
- y
747
- } = _ref;
748
- return {
749
- x,
750
- y
751
- };
752
- }
753
- },
754
- ...detectOverflowOptions
755
- } = evaluate(options, state);
756
- const coords = {
757
- x,
758
- y
759
- };
760
- const overflow = await platform.detectOverflow(state, detectOverflowOptions);
761
- const crossAxis = getSideAxis(placement);
762
- const mainAxis = getOppositeAxis(crossAxis);
763
- let mainAxisCoord = coords[mainAxis];
764
- let crossAxisCoord = coords[crossAxis];
765
- const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);
766
- if (checkMainAxis) {
767
- mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
768
- }
769
- if (checkCrossAxis) {
770
- crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
771
- }
772
- const limitedCoords = limiter.fn({
773
- ...state,
774
- [mainAxis]: mainAxisCoord,
775
- [crossAxis]: crossAxisCoord
776
- });
777
- return {
778
- ...limitedCoords,
779
- data: {
780
- x: limitedCoords.x - x,
781
- y: limitedCoords.y - y,
782
- enabled: {
783
- [mainAxis]: checkMainAxis,
784
- [crossAxis]: checkCrossAxis
785
- }
786
- }
787
- };
788
- }
789
- };
790
- };
791
- /**
792
- * Built-in `limiter` that will stop `shift()` at a certain point.
793
- */
794
- const limitShift$1 = function (options) {
795
- if (options === void 0) {
796
- options = {};
797
- }
798
- return {
799
- options,
800
- fn(state) {
801
- var _rawOffset$mainAxis, _rawOffset$crossAxis;
802
- const {
803
- x,
804
- y,
805
- placement,
806
- rects,
807
- middlewareData
808
- } = state;
809
- const {
810
- offset = 0,
811
- mainAxis: checkMainAxis = true,
812
- crossAxis: checkCrossAxis = true
813
- } = evaluate(options, state);
814
- const coords = {
815
- x,
816
- y
817
- };
818
- const crossAxis = getSideAxis(placement);
819
- const mainAxis = getOppositeAxis(crossAxis);
820
- let mainAxisCoord = coords[mainAxis];
821
- let crossAxisCoord = coords[crossAxis];
822
- const rawOffset = evaluate(offset, state);
823
- const computedOffset = typeof rawOffset === 'number' ? {
824
- mainAxis: rawOffset,
825
- crossAxis: 0
826
- } : {
827
- mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
828
- crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
829
- };
830
- if (checkMainAxis) {
831
- const len = mainAxis === 'y' ? 'height' : 'width';
832
- const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
833
- const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
834
- if (mainAxisCoord < limitMin) {
835
- mainAxisCoord = limitMin;
836
- } else if (mainAxisCoord > limitMax) {
837
- mainAxisCoord = limitMax;
838
- }
839
- }
840
- if (checkCrossAxis) {
841
- var _middlewareData$offse, _middlewareData$offse2;
842
- const len = mainAxis === 'y' ? 'width' : 'height';
843
- const isOriginSide = originSides.has(getSide$1(placement));
844
- 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);
845
- 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);
846
- if (crossAxisCoord < limitMin) {
847
- crossAxisCoord = limitMin;
848
- } else if (crossAxisCoord > limitMax) {
849
- crossAxisCoord = limitMax;
850
- }
851
- }
852
- return {
853
- [mainAxis]: mainAxisCoord,
854
- [crossAxis]: crossAxisCoord
855
- };
856
- }
857
- };
858
- };
859
-
860
- // Method syntax keeps callback parameters bivariant, but expressing the
861
- // explicit `| undefined` required by `exactOptionalPropertyTypes` needs
862
- // property syntax, which is contravariant under `strictFunctionTypes`.
863
- // Extracting the function from a method position restores that bivariance so
864
- // consumers can still assign callbacks with narrower parameter types.
865
-
866
- /**
867
- * Provides data that allows you to change the size of the floating element —
868
- * for instance, prevent it from overflowing the clipping boundary or match the
869
- * width of the reference element.
870
- * @see https://floating-ui.com/docs/size
871
- */
872
- const size$1 = function (options) {
873
- if (options === void 0) {
874
- options = {};
875
- }
876
- return {
877
- name: 'size',
878
- options,
879
- async fn(state) {
880
- const {
881
- placement,
882
- rects,
883
- platform,
884
- elements
885
- } = state;
886
- const {
887
- apply = () => {},
888
- ...detectOverflowOptions
889
- } = evaluate(options, state);
890
- const overflow = await platform.detectOverflow(state, detectOverflowOptions);
891
- const side = getSide$1(placement);
892
- const alignment = getAlignment(placement);
893
- const isYAxis = getSideAxis(placement) === 'y';
894
- const {
895
- width,
896
- height
897
- } = rects.floating;
898
- let heightSide;
899
- let widthSide;
900
- if (side === 'top' || side === 'bottom') {
901
- heightSide = side;
902
- widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
903
- } else {
904
- widthSide = side;
905
- heightSide = alignment === 'end' ? 'top' : 'bottom';
906
- }
907
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
908
- const maximumClippingWidth = width - overflow.left - overflow.right;
909
- const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
910
- const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
911
- const shiftData = state.middlewareData.shift;
912
- const noShift = !shiftData;
913
- let availableHeight = overflowAvailableHeight;
914
- let availableWidth = overflowAvailableWidth;
915
- if (shiftData != null && shiftData.enabled.x) {
916
- availableWidth = maximumClippingWidth;
917
- }
918
- if (shiftData != null && shiftData.enabled.y) {
919
- availableHeight = maximumClippingHeight;
920
- }
921
- if (noShift && !alignment) {
922
- if (isYAxis) {
923
- availableWidth = width - 2 * max(overflow.left, overflow.right);
924
- } else {
925
- availableHeight = height - 2 * max(overflow.top, overflow.bottom);
926
- }
927
- }
928
- await apply({
929
- ...state,
930
- availableWidth,
931
- availableHeight
932
- });
933
- const nextDimensions = await platform.getDimensions(elements.floating);
934
- if (width !== nextDimensions.width || height !== nextDimensions.height) {
935
- return {
936
- reset: {
937
- rects: true
938
- }
939
- };
940
- }
941
- return {};
942
- }
943
- };
944
- };
945
-
946
- function hasWindow() {
947
- return typeof window !== 'undefined';
948
- }
949
- function getNodeName(node) {
950
- if (isNode(node)) {
951
- return (node.nodeName || '').toLowerCase();
952
- }
953
- // Mocked nodes in testing environments may not be instances of Node. By
954
- // returning `#document` an infinite loop won't occur.
955
- // https://github.com/floating-ui/floating-ui/issues/2317
956
- return '#document';
957
- }
958
- function getWindow(node) {
959
- var _node$ownerDocument;
960
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
961
- }
962
- function getDocumentElement(node) {
963
- var _ref;
964
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
965
- }
966
- function isNode(value) {
967
- if (!hasWindow()) {
968
- return false;
969
- }
970
- return value instanceof Node || value instanceof getWindow(value).Node;
971
- }
972
- function isElement(value) {
973
- if (!hasWindow()) {
974
- return false;
975
- }
976
- return value instanceof Element || value instanceof getWindow(value).Element;
977
- }
978
- function isHTMLElement(value) {
979
- if (!hasWindow()) {
980
- return false;
981
- }
982
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
983
- }
984
- function isShadowRoot(value) {
985
- if (!hasWindow() || typeof ShadowRoot === 'undefined') {
986
- return false;
987
- }
988
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
989
- }
990
- function isOverflowElement(element) {
991
- const {
992
- overflow,
993
- overflowX,
994
- overflowY,
995
- display
996
- } = getComputedStyle$1(element);
997
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
998
- }
999
- function isTableElement(element) {
1000
- return /^(table|td|th)$/.test(getNodeName(element));
1001
- }
1002
- function isTopLayer(element) {
1003
- try {
1004
- if (element.matches(':popover-open')) {
1005
- return true;
1006
- }
1007
- } catch (_e) {
1008
- // no-op
1009
- }
1010
- try {
1011
- return element.matches(':modal');
1012
- } catch (_e) {
1013
- return false;
1014
- }
1015
- }
1016
- const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
1017
- const containRe = /paint|layout|strict|content/;
1018
- const isNotNone = value => !!value && value !== 'none';
1019
- let isWebKitValue;
1020
- function isContainingBlock(elementOrCss) {
1021
- const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
1022
-
1023
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1024
- // https://drafts.csswg.org/css-transforms-2/#individual-transforms
1025
- 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 || '');
1026
- }
1027
- function getContainingBlock(element) {
1028
- let currentNode = getParentNode(element);
1029
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
1030
- if (isContainingBlock(currentNode)) {
1031
- return currentNode;
1032
- } else if (isTopLayer(currentNode)) {
1033
- return null;
1034
- }
1035
- currentNode = getParentNode(currentNode);
1036
- }
1037
- return null;
1038
- }
1039
- function isWebKit() {
1040
- if (isWebKitValue == null) {
1041
- isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
1042
- }
1043
- return isWebKitValue;
1044
- }
1045
- function isLastTraversableNode(node) {
1046
- return /^(html|body|#document)$/.test(getNodeName(node));
1047
- }
1048
- function getComputedStyle$1(element) {
1049
- return getWindow(element).getComputedStyle(element);
1050
- }
1051
- function getNodeScroll(element) {
1052
- if (isElement(element)) {
1053
- return {
1054
- scrollLeft: element.scrollLeft,
1055
- scrollTop: element.scrollTop
1056
- };
1057
- }
1058
- return {
1059
- scrollLeft: element.scrollX,
1060
- scrollTop: element.scrollY
1061
- };
1062
- }
1063
- function getParentNode(node) {
1064
- if (getNodeName(node) === 'html') {
1065
- return node;
1066
- }
1067
- const result =
1068
- // Step into the shadow DOM of the parent of a slotted node.
1069
- node.assignedSlot ||
1070
- // DOM Element detected.
1071
- node.parentNode ||
1072
- // ShadowRoot detected.
1073
- isShadowRoot(node) && node.host ||
1074
- // Fallback.
1075
- getDocumentElement(node);
1076
- return isShadowRoot(result) ? result.host : result;
1077
- }
1078
- function getNearestOverflowAncestor(node) {
1079
- const parentNode = getParentNode(node);
1080
- if (isLastTraversableNode(parentNode)) {
1081
- return (node.ownerDocument || node).body;
1082
- }
1083
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
1084
- return parentNode;
1085
- }
1086
- return getNearestOverflowAncestor(parentNode);
1087
- }
1088
- function getOverflowAncestors(node, list, traverseIframes) {
1089
- var _node$ownerDocument2;
1090
- if (list === void 0) {
1091
- list = [];
1092
- }
1093
- const scrollableAncestor = getNearestOverflowAncestor(node);
1094
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
1095
- const win = getWindow(scrollableAncestor);
1096
- if (isBody) {
1097
- getFrameElement(win);
1098
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], []);
1099
- } else {
1100
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));
1101
- }
1102
- }
1103
- function getFrameElement(win) {
1104
- return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
1105
- }
1106
-
1107
- function getCssDimensions(element) {
1108
- const css = getComputedStyle$1(element);
1109
- // In testing environments, the `width` and `height` properties are empty
1110
- // strings for SVG elements, returning NaN. Fallback to `0` in this case.
1111
- let width = parseFloat(css.width) || 0;
1112
- let height = parseFloat(css.height) || 0;
1113
- const hasOffset = isHTMLElement(element);
1114
- const offsetWidth = hasOffset ? element.offsetWidth : width;
1115
- const offsetHeight = hasOffset ? element.offsetHeight : height;
1116
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
1117
- if (shouldFallback) {
1118
- width = offsetWidth;
1119
- height = offsetHeight;
1120
- }
1121
- return {
1122
- width,
1123
- height,
1124
- $: shouldFallback
1125
- };
1126
- }
1127
-
1128
- function unwrapElement(element) {
1129
- return !isElement(element) ? element.contextElement : element;
1130
- }
1131
-
1132
- function getScale(element) {
1133
- const domElement = unwrapElement(element);
1134
- if (!isHTMLElement(domElement)) {
1135
- return createCoords(1);
1136
- }
1137
- const rect = domElement.getBoundingClientRect();
1138
- const {
1139
- width,
1140
- height,
1141
- $
1142
- } = getCssDimensions(domElement);
1143
- let x = ($ ? round(rect.width) : rect.width) / width;
1144
- let y = ($ ? round(rect.height) : rect.height) / height;
1145
-
1146
- // 0, NaN, or Infinity should always fallback to 1.
1147
-
1148
- if (!x || !Number.isFinite(x)) {
1149
- x = 1;
1150
- }
1151
- if (!y || !Number.isFinite(y)) {
1152
- y = 1;
1153
- }
1154
- return {
1155
- x,
1156
- y
1157
- };
1158
- }
1159
-
1160
- const noOffsets = /*#__PURE__*/createCoords(0);
1161
- function getVisualOffsets(element) {
1162
- const win = getWindow(element);
1163
- if (!isWebKit() || !win.visualViewport) {
1164
- return noOffsets;
1165
- }
1166
- return {
1167
- x: win.visualViewport.offsetLeft,
1168
- y: win.visualViewport.offsetTop
1169
- };
1170
- }
1171
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1172
- if (isFixed === void 0) {
1173
- isFixed = false;
1174
- }
1175
- return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
1176
- }
1177
-
1178
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1179
- if (includeScale === void 0) {
1180
- includeScale = false;
1181
- }
1182
- if (isFixedStrategy === void 0) {
1183
- isFixedStrategy = false;
1184
- }
1185
- const clientRect = element.getBoundingClientRect();
1186
- const domElement = unwrapElement(element);
1187
- let scale = createCoords(1);
1188
- if (includeScale) {
1189
- if (offsetParent) {
1190
- if (isElement(offsetParent)) {
1191
- scale = getScale(offsetParent);
1192
- }
1193
- } else {
1194
- scale = getScale(element);
1195
- }
1196
- }
1197
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1198
- let x = (clientRect.left + visualOffsets.x) / scale.x;
1199
- let y = (clientRect.top + visualOffsets.y) / scale.y;
1200
- let width = clientRect.width / scale.x;
1201
- let height = clientRect.height / scale.y;
1202
- if (domElement && offsetParent) {
1203
- const win = getWindow(domElement);
1204
- const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1205
- let currentWin = win;
1206
- let currentIFrame = getFrameElement(currentWin);
1207
- while (currentIFrame && offsetWin !== currentWin) {
1208
- const iframeScale = getScale(currentIFrame);
1209
- const iframeRect = currentIFrame.getBoundingClientRect();
1210
- const css = getComputedStyle$1(currentIFrame);
1211
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1212
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1213
- x *= iframeScale.x;
1214
- y *= iframeScale.y;
1215
- width *= iframeScale.x;
1216
- height *= iframeScale.y;
1217
- x += left;
1218
- y += top;
1219
- currentWin = getWindow(currentIFrame);
1220
- currentIFrame = getFrameElement(currentWin);
1221
- }
1222
- }
1223
- return rectToClientRect({
1224
- width,
1225
- height,
1226
- x,
1227
- y
1228
- });
1229
- }
1230
-
1231
- // If <html> has a CSS width greater than the viewport, then this will be
1232
- // incorrect for RTL.
1233
- function getWindowScrollBarX(element, rect) {
1234
- const leftScroll = getNodeScroll(element).scrollLeft;
1235
- if (!rect) {
1236
- return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
1237
- }
1238
- return rect.left + leftScroll;
1239
- }
1240
-
1241
- function getHTMLOffset(documentElement, scroll) {
1242
- const htmlRect = documentElement.getBoundingClientRect();
1243
- const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
1244
- const y = htmlRect.top + scroll.scrollTop;
1245
- return {
1246
- x,
1247
- y
1248
- };
1249
- }
1250
-
1251
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1252
- let {
1253
- elements,
1254
- rect,
1255
- offsetParent,
1256
- strategy
1257
- } = _ref;
1258
- const isFixed = strategy === 'fixed';
1259
- const documentElement = getDocumentElement(offsetParent);
1260
- const topLayer = elements ? isTopLayer(elements.floating) : false;
1261
- if (offsetParent === documentElement || topLayer && isFixed) {
1262
- return rect;
1263
- }
1264
- let scroll = {
1265
- scrollLeft: 0,
1266
- scrollTop: 0
1267
- };
1268
- let scale = createCoords(1);
1269
- const offsets = createCoords(0);
1270
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1271
- if (isOffsetParentAnElement || !isFixed) {
1272
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1273
- scroll = getNodeScroll(offsetParent);
1274
- }
1275
- if (isOffsetParentAnElement) {
1276
- const offsetRect = getBoundingClientRect(offsetParent);
1277
- scale = getScale(offsetParent);
1278
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1279
- offsets.y = offsetRect.y + offsetParent.clientTop;
1280
- }
1281
- }
1282
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1283
- return {
1284
- width: rect.width * scale.x,
1285
- height: rect.height * scale.y,
1286
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
1287
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
1288
- };
1289
- }
1290
-
1291
- function getClientRects(element) {
1292
- return element.getClientRects ? Array.from(element.getClientRects()) : [];
1293
- }
1294
-
1295
- // Gets the entire size of the scrollable document area, even extending outside
1296
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
1297
- function getDocumentRect(html) {
1298
- const scroll = getNodeScroll(html);
1299
- const body = html.ownerDocument.body;
1300
- const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1301
- const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1302
- let x = -scroll.scrollLeft + getWindowScrollBarX(html);
1303
- const y = -scroll.scrollTop;
1304
- if (getComputedStyle$1(body).direction === 'rtl') {
1305
- x += max(html.clientWidth, body.clientWidth) - width;
1306
- }
1307
- return {
1308
- width,
1309
- height,
1310
- x,
1311
- y
1312
- };
1313
- }
1314
-
1315
- // Safety check: ensure the scrollbar space is reasonable in case this
1316
- // calculation is affected by unusual styles.
1317
- // Most scrollbars leave 15-18px of space.
1318
- const SCROLLBAR_MAX = 25;
1319
- function getViewportRect(element, strategy, rootBoundary) {
1320
- if (rootBoundary === void 0) {
1321
- rootBoundary = 'viewport';
1322
- }
1323
- const isLayoutViewport = rootBoundary === 'layoutViewport';
1324
- const win = getWindow(element);
1325
- const html = getDocumentElement(element);
1326
- const visualViewport = win.visualViewport;
1327
- let width = html.clientWidth;
1328
- let height = html.clientHeight;
1329
- let x = 0;
1330
- let y = 0;
1331
- if (visualViewport) {
1332
- // Client coordinates are relative to the layout viewport, except in
1333
- // WebKit with an `absolute` strategy, where they are relative to the
1334
- // visual viewport.
1335
- const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';
1336
- if (isLayoutViewport) {
1337
- if (!layoutRelativeClientCoords) {
1338
- x = -visualViewport.offsetLeft;
1339
- y = -visualViewport.offsetTop;
1340
- }
1341
- } else {
1342
- width = visualViewport.width;
1343
- height = visualViewport.height;
1344
- if (layoutRelativeClientCoords) {
1345
- x = visualViewport.offsetLeft;
1346
- y = visualViewport.offsetTop;
1347
- }
1348
- }
1349
- }
1350
- const windowScrollbarX = getWindowScrollBarX(html);
1351
- // `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks
1352
- // the visual width but isn't reflected in `html.clientWidth`, so subtract it.
1353
- // Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also
1354
- // reserves an empty inline-start gutter that clips nothing, so exclude just
1355
- // the one scrollbar-side gutter — halve the measured (two-gutter) total. A
1356
- // left-side scrollbar (`windowScrollbarX > 0`) is already handled by
1357
- // `getHTMLOffset`/`visualViewport.width`; skip it here.
1358
- if (windowScrollbarX <= 0) {
1359
- const doc = html.ownerDocument;
1360
- const body = doc.body;
1361
- const bodyStyles = getComputedStyle(body);
1362
- const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
1363
- const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
1364
- const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;
1365
- if (gutter <= SCROLLBAR_MAX) {
1366
- width -= gutter;
1367
- }
1368
- }
1369
- return {
1370
- width,
1371
- height,
1372
- x,
1373
- y
1374
- };
1375
- }
1376
-
1377
- // Returns the inner client rect, subtracting scrollbars if present.
1378
- function getInnerBoundingClientRect(element, strategy) {
1379
- const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1380
- const top = clientRect.top + element.clientTop;
1381
- const left = clientRect.left + element.clientLeft;
1382
- const scale = getScale(element);
1383
- const width = element.clientWidth * scale.x;
1384
- const height = element.clientHeight * scale.y;
1385
- const x = left * scale.x;
1386
- const y = top * scale.y;
1387
- return {
1388
- width,
1389
- height,
1390
- x,
1391
- y
1392
- };
1393
- }
1394
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1395
- let rect;
1396
- if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {
1397
- rect = getViewportRect(element, strategy, clippingAncestor);
1398
- } else if (clippingAncestor === 'document') {
1399
- rect = getDocumentRect(getDocumentElement(element));
1400
- } else if (isElement(clippingAncestor)) {
1401
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1402
- } else {
1403
- const visualOffsets = getVisualOffsets(element);
1404
- rect = {
1405
- x: clippingAncestor.x - visualOffsets.x,
1406
- y: clippingAncestor.y - visualOffsets.y,
1407
- width: clippingAncestor.width,
1408
- height: clippingAncestor.height
1409
- };
1410
- }
1411
- return rectToClientRect(rect);
1412
- }
1413
-
1414
- // A "clipping ancestor" is an `overflow` element with the characteristic of
1415
- // clipping (or hiding) child elements. This returns all clipping ancestors
1416
- // of the given element up the tree.
1417
- function getClippingElementAncestors(element, cache) {
1418
- const cachedResult = cache.get(element);
1419
- if (cachedResult) {
1420
- return cachedResult;
1421
- }
1422
- let result = getOverflowAncestors(element, []).filter(el => isElement(el) && getNodeName(el) !== 'body');
1423
- let lastKeptComputedStyle = null;
1424
- const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1425
- let currentNode = elementIsFixed ? getParentNode(element) : element;
1426
-
1427
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1428
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1429
- const computedStyle = getComputedStyle$1(currentNode);
1430
- const currentNodeIsContaining = isContainingBlock(currentNode);
1431
- // Position of the containing block chain below the current node. A fixed
1432
- // element whose containing block hasn't been found yet is a fixed chain.
1433
- const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';
1434
-
1435
- // A non-containing ancestor does not clip the element when the chain
1436
- // below it escapes it: a fixed chain escapes all ancestors up to the
1437
- // next containing block, an absolute chain escapes static ancestors.
1438
- const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');
1439
- if (shouldDropCurrentNode) {
1440
- // Drop non-containing blocks.
1441
- result = result.filter(ancestor => ancestor !== currentNode);
1442
- } else {
1443
- // The kept node carries the chain position for the next iteration.
1444
- lastKeptComputedStyle = computedStyle;
1445
- }
1446
- currentNode = getParentNode(currentNode);
1447
- }
1448
- cache.set(element, result);
1449
- return result;
1450
- }
1451
-
1452
- // Gets the maximum area that the element is visible in due to any number of
1453
- // clipping ancestors.
1454
- function getClippingRect(_ref) {
1455
- let {
1456
- element,
1457
- boundary,
1458
- rootBoundary,
1459
- strategy
1460
- } = _ref;
1461
- const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1462
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1463
- const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
1464
- let top = firstRect.top;
1465
- let right = firstRect.right;
1466
- let bottom = firstRect.bottom;
1467
- let left = firstRect.left;
1468
- for (let i = 1; i < clippingAncestors.length; i++) {
1469
- const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
1470
- top = max(rect.top, top);
1471
- right = min(rect.right, right);
1472
- bottom = min(rect.bottom, bottom);
1473
- left = max(rect.left, left);
1474
- }
1475
- return {
1476
- width: right - left,
1477
- height: bottom - top,
1478
- x: left,
1479
- y: top
1480
- };
1481
- }
1482
-
1483
- function getDimensions(element) {
1484
- const {
1485
- width,
1486
- height
1487
- } = getCssDimensions(element);
1488
- return {
1489
- width,
1490
- height
1491
- };
1492
- }
1493
-
1494
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1495
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1496
- const documentElement = getDocumentElement(offsetParent);
1497
- const isFixed = strategy === 'fixed';
1498
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1499
- let scroll = {
1500
- scrollLeft: 0,
1501
- scrollTop: 0
1502
- };
1503
- const offsets = createCoords(0);
1504
- if (isOffsetParentAnElement || !isFixed) {
1505
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1506
- scroll = getNodeScroll(offsetParent);
1507
- }
1508
- if (isOffsetParentAnElement) {
1509
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1510
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1511
- offsets.y = offsetRect.y + offsetParent.clientTop;
1512
- }
1513
- }
1514
-
1515
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1516
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1517
- if (!isOffsetParentAnElement && documentElement) {
1518
- offsets.x = getWindowScrollBarX(documentElement);
1519
- }
1520
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1521
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1522
- const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1523
- return {
1524
- x,
1525
- y,
1526
- width: rect.width,
1527
- height: rect.height
1528
- };
1529
- }
1530
-
1531
- function isStaticPositioned(element) {
1532
- return getComputedStyle$1(element).position === 'static';
1533
- }
1534
-
1535
- function getTrueOffsetParent(element, polyfill) {
1536
- if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1537
- return null;
1538
- }
1539
- if (polyfill) {
1540
- return polyfill(element);
1541
- }
1542
- let rawOffsetParent = element.offsetParent;
1543
-
1544
- // Firefox returns the <html> element as the offsetParent if it's non-static,
1545
- // while Chrome and Safari return the <body> element. The <body> element must
1546
- // be used to perform the correct calculations even if the <html> element is
1547
- // non-static.
1548
- if (getDocumentElement(element) === rawOffsetParent) {
1549
- rawOffsetParent = rawOffsetParent.ownerDocument.body;
1550
- }
1551
- return rawOffsetParent;
1552
- }
1553
-
1554
- // Gets the closest ancestor positioned element. Handles some edge cases,
1555
- // such as table ancestors and cross browser bugs.
1556
- function getOffsetParent(element, polyfill) {
1557
- const win = getWindow(element);
1558
- if (isTopLayer(element)) {
1559
- return win;
1560
- }
1561
- if (!isHTMLElement(element)) {
1562
- let svgOffsetParent = getParentNode(element);
1563
- while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1564
- if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1565
- return svgOffsetParent;
1566
- }
1567
- svgOffsetParent = getParentNode(svgOffsetParent);
1568
- }
1569
- return win;
1570
- }
1571
- let offsetParent = getTrueOffsetParent(element, polyfill);
1572
- while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1573
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1574
- }
1575
- if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1576
- return win;
1577
- }
1578
- return offsetParent || getContainingBlock(element) || win;
1579
- }
1580
-
1581
- const getElementRects = async function (data) {
1582
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1583
- const getDimensionsFn = this.getDimensions;
1584
- const floatingDimensions = await getDimensionsFn(data.floating);
1585
- return {
1586
- reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1587
- floating: {
1588
- x: 0,
1589
- y: 0,
1590
- width: floatingDimensions.width,
1591
- height: floatingDimensions.height
1592
- }
1593
- };
1594
- };
1595
-
1596
- function isRTL(element) {
1597
- return getComputedStyle$1(element).direction === 'rtl';
1598
- }
1599
-
1600
- const platform = {
1601
- convertOffsetParentRelativeRectToViewportRelativeRect,
1602
- getDocumentElement,
1603
- getClippingRect,
1604
- getOffsetParent,
1605
- getElementRects,
1606
- getClientRects,
1607
- getDimensions,
1608
- getScale,
1609
- isElement,
1610
- isRTL
1611
- };
1612
-
1613
- /**
1614
- * Modifies the placement by translating the floating element along the
1615
- * specified axes.
1616
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
1617
- * object may be passed.
1618
- * @see https://floating-ui.com/docs/offset
1619
- */
1620
- const offset = offset$1;
1621
-
1622
- /**
1623
- * Optimizes the visibility of the floating element by shifting it in order to
1624
- * keep it in view when it will overflow the clipping boundary.
1625
- * @see https://floating-ui.com/docs/shift
1626
- */
1627
- const shift = shift$1;
1628
-
1629
- /**
1630
- * Optimizes the visibility of the floating element by flipping the `placement`
1631
- * in order to keep it in view when the preferred placement(s) will overflow the
1632
- * clipping boundary. Alternative to `autoPlacement`.
1633
- * @see https://floating-ui.com/docs/flip
1634
- */
1635
- const flip = flip$1;
1636
-
1637
- /**
1638
- * Provides data that allows you to change the size of the floating element —
1639
- * for instance, prevent it from overflowing the clipping boundary or match the
1640
- * width of the reference element.
1641
- * @see https://floating-ui.com/docs/size
1642
- */
1643
- const size = size$1;
1644
-
1645
- /**
1646
- * Provides data to hide the floating element in applicable situations, such as
1647
- * when it is not in the same clipping context as the reference element.
1648
- * @see https://floating-ui.com/docs/hide
1649
- */
1650
- const hide = hide$1;
1651
-
1652
- /**
1653
- * Provides data to position an inner element of the floating element so that it
1654
- * appears centered to the reference element.
1655
- * @see https://floating-ui.com/docs/arrow
1656
- */
1657
- const arrow = arrow$1;
1658
-
1659
- /**
1660
- * Built-in `limiter` that will stop `shift()` at a certain point.
1661
- */
1662
- const limitShift = limitShift$1;
1663
-
1664
- /**
1665
- * Computes the `x` and `y` coordinates that will place the floating element
1666
- * next to a given reference element.
1667
- */
1668
- const computePosition = (reference, floating, options) => {
1669
- // This caches the expensive `getClippingElementAncestors` function so that
1670
- // multiple lifecycle resets re-use the same result. It only lives for a
1671
- // single call. If other functions become expensive, we can add them as well.
1672
- const cache = new Map();
1673
- const mergedOptions = options != null ? options : {};
1674
- const platformWithCache = {
1675
- ...platform,
1676
- ...mergedOptions.platform,
1677
- _c: cache
1678
- };
1679
- return computePosition$1(reference, floating, {
1680
- ...mergedOptions,
1681
- platform: platformWithCache
1682
- });
1683
- };
1684
-
1685
- function Bell($$renderer, $$props) {
1686
- let { $$slots, $$events, ...props } = $$props;
1687
- const iconData = {
1688
- "name": "bell",
1689
- "size": 24,
1690
- "node": [
1691
- ["path", { "d": "M10.268 21a2 2 0 0 0 3.464 0" }],
1692
- [
1693
- "path",
1694
- {
1695
- "d": "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"
1696
- }
1697
- ]
1698
- ]
1699
- };
1700
- Icon($$renderer, spread_props([props, { icon: iconData }]));
1701
- }
1702
- function Gauge($$renderer, $$props) {
1703
- let { $$slots, $$events, ...props } = $$props;
1704
- const iconData = {
1705
- "name": "gauge",
1706
- "size": 24,
1707
- "node": [
1708
- ["path", { "d": "m12 14 4-4" }],
1709
- ["path", { "d": "M3.34 19a10 10 0 1 1 17.32 0" }]
1710
- ]
1711
- };
1712
- Icon($$renderer, spread_props([props, { icon: iconData }]));
1713
- }
1714
- function Puzzle($$renderer, $$props) {
1715
- let { $$slots, $$events, ...props } = $$props;
1716
- const iconData = {
1717
- "name": "puzzle",
1718
- "size": 24,
1719
- "node": [
1720
- [
1721
- "path",
1722
- {
1723
- "d": "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"
1724
- }
1725
- ]
1726
- ]
1727
- };
1728
- Icon($$renderer, spread_props([props, { icon: iconData }]));
1729
- }
1730
- function isFunction(value) {
1731
- return typeof value === "function";
1732
- }
1733
- function get$1(value) {
1734
- if (isFunction(value)) {
1735
- return value();
1736
- }
1737
- return value;
1738
- }
1739
- class ElementSize {
1740
- // no need to use `$state` here since we are using createSubscriber
1741
- #size = { width: 0, height: 0 };
1742
- #observed = false;
1743
- #options;
1744
- #node;
1745
- #window;
1746
- // we use a derived here to extract the width so that if the width doesn't change we don't get a state update
1747
- // which we would get if we would just use a getter since the version of the subscriber will be changing
1748
- #width = derived(() => {
1749
- this.#subscribe()?.();
1750
- return this.getSize().width;
1751
- });
1752
- // we use a derived here to extract the height so that if the height doesn't change we don't get a state update
1753
- // which we would get if we would just use a getter since the version of the subscriber will be changing
1754
- #height = derived(() => {
1755
- this.#subscribe()?.();
1756
- return this.getSize().height;
1757
- });
1758
- // we need to use a derived here because the class will be created before the node is bound to the ref
1759
- #subscribe = derived(() => {
1760
- const node$ = get$1(this.#node);
1761
- if (!node$) return;
1762
- return createSubscriber();
1763
- });
1764
- constructor(node, options = { box: "border-box" }) {
1765
- this.#window = options.window ?? defaultWindow;
1766
- this.#options = options;
1767
- this.#node = node;
1768
- this.#size = { width: 0, height: 0 };
1769
- }
1770
- calculateSize() {
1771
- const element = get$1(this.#node);
1772
- if (!element || !this.#window) {
1773
- return;
1774
- }
1775
- const offsetWidth = element.offsetWidth;
1776
- const offsetHeight = element.offsetHeight;
1777
- if (this.#options.box === "border-box") {
1778
- return { width: offsetWidth, height: offsetHeight };
1779
- }
1780
- const style = this.#window.getComputedStyle(element);
1781
- const paddingWidth = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
1782
- const paddingHeight = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);
1783
- const borderWidth = parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
1784
- const borderHeight = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
1785
- const contentWidth = offsetWidth - paddingWidth - borderWidth;
1786
- const contentHeight = offsetHeight - paddingHeight - borderHeight;
1787
- return { width: contentWidth, height: contentHeight };
1788
- }
1789
- getSize() {
1790
- return this.#observed ? this.#size : this.calculateSize() ?? this.#size;
1791
- }
1792
- get current() {
1793
- this.#subscribe()?.();
1794
- return this.getSize();
1795
- }
1796
- get width() {
1797
- return this.#width();
1798
- }
1799
- get height() {
1800
- return this.#height();
1801
- }
1802
- }
1803
- const FloatingRootContext = new Context("Floating.Root");
1804
- const FloatingTooltipRootContext = new Context("Floating.Root");
1805
- class FloatingRootState {
1806
- static create(tooltip = false) {
1807
- return tooltip ? FloatingTooltipRootContext.set(new FloatingRootState()) : FloatingRootContext.set(new FloatingRootState());
1808
- }
1809
- anchorNode = simpleBox(null);
1810
- customAnchorNode = simpleBox(null);
1811
- triggerNode = simpleBox(null);
1812
- constructor() {
1813
- }
1814
- }
1815
- class FloatingAnchorState {
1816
- static create(opts, tooltip = false) {
1817
- return tooltip ? new FloatingAnchorState(opts, FloatingTooltipRootContext.get()) : new FloatingAnchorState(opts, FloatingRootContext.get());
1818
- }
1819
- opts;
1820
- root;
1821
- constructor(opts, root) {
1822
- this.opts = opts;
1823
- this.root = root;
1824
- if (opts.virtualEl && opts.virtualEl.current) {
1825
- root.triggerNode = boxFrom(opts.virtualEl.current);
1826
- } else {
1827
- root.triggerNode = opts.ref;
1828
- }
1829
- }
1830
- }
1831
- function Floating_layer($$renderer, $$props) {
1832
- $$renderer.component(($$renderer2) => {
1833
- let { children, tooltip = false } = $$props;
1834
- FloatingRootState.create(tooltip);
1835
- children?.($$renderer2);
1836
- $$renderer2.push(`<!---->`);
1837
- });
1838
- }
1839
- function get(valueOrGetValue) {
1840
- return typeof valueOrGetValue === "function" ? valueOrGetValue() : valueOrGetValue;
1841
- }
1842
- function getDPR(element) {
1843
- if (typeof window === "undefined") return 1;
1844
- const win = element.ownerDocument.defaultView || window;
1845
- return win.devicePixelRatio || 1;
1846
- }
1847
- function roundByDPR(element, value) {
1848
- const dpr = getDPR(element);
1849
- return Math.round(value * dpr) / dpr;
1850
- }
1851
- function getFloatingContentCSSVars(name) {
1852
- return {
1853
- [`--bits-${name}-content-transform-origin`]: `var(--bits-floating-transform-origin)`,
1854
- [`--bits-${name}-content-available-width`]: `var(--bits-floating-available-width)`,
1855
- [`--bits-${name}-content-available-height`]: `var(--bits-floating-available-height)`,
1856
- [`--bits-${name}-anchor-width`]: `var(--bits-floating-anchor-width)`,
1857
- [`--bits-${name}-anchor-height`]: `var(--bits-floating-anchor-height)`
1858
- };
1859
- }
1860
- function Floating_layer_anchor($$renderer, $$props) {
1861
- $$renderer.component(($$renderer2) => {
1862
- let { id, children, virtualEl, ref, tooltip = false } = $$props;
1863
- FloatingAnchorState.create(
1864
- {
1865
- id: boxWith(() => id),
1866
- virtualEl: boxWith(() => virtualEl),
1867
- ref
1868
- },
1869
- tooltip
1870
- );
1871
- children?.($$renderer2);
1872
- $$renderer2.push(`<!---->`);
1873
- });
1874
- }
1875
- function useFloating(options) {
1876
- const openOption = derived(() => get(options.open) ?? true);
1877
- const middlewareOption = derived(() => get(options.middleware));
1878
- const transformOption = derived(() => get(options.transform) ?? true);
1879
- const placementOption = derived(() => get(options.placement) ?? "bottom");
1880
- const strategyOption = derived(() => get(options.strategy) ?? "absolute");
1881
- const sideOffsetOption = derived(() => get(options.sideOffset) ?? 0);
1882
- const alignOffsetOption = derived(() => get(options.alignOffset) ?? 0);
1883
- const reference = options.reference;
1884
- let x = 0;
1885
- let y = 0;
1886
- const floating = simpleBox(null);
1887
- let strategy = strategyOption();
1888
- let placement = placementOption();
1889
- let middlewareData = {};
1890
- let isPositioned = false;
1891
- let updateRequestId = 0;
1892
- const floatingStyles = derived(() => {
1893
- const xVal = floating.current ? roundByDPR(floating.current, x) : x;
1894
- const yVal = floating.current ? roundByDPR(floating.current, y) : y;
1895
- if (transformOption()) {
1896
- return {
1897
- position: strategy,
1898
- left: "0",
1899
- top: "0",
1900
- transform: `translate(${xVal}px, ${yVal}px)`,
1901
- ...floating.current && getDPR(floating.current) >= 1.5 && { willChange: "transform" }
1902
- };
1903
- }
1904
- return { position: strategy, left: `${xVal}px`, top: `${yVal}px` };
1905
- });
1906
- function update() {
1907
- if (reference.current === null || floating.current === null) return;
1908
- const referenceNode = reference.current;
1909
- const floatingNode = floating.current;
1910
- const requestId = ++updateRequestId;
1911
- computePosition(referenceNode, floatingNode, {
1912
- middleware: middlewareOption(),
1913
- placement: placementOption(),
1914
- strategy: strategyOption()
1915
- }).then((position) => {
1916
- if (requestId !== updateRequestId) return;
1917
- if (reference.current !== referenceNode || floating.current !== floatingNode) return;
1918
- const referenceHidden = isReferenceHidden(referenceNode);
1919
- if (referenceHidden) {
1920
- middlewareData = {
1921
- ...middlewareData,
1922
- hide: {
1923
- // oxlint-disable-next-line no-explicit-any
1924
- ...middlewareData.hide,
1925
- referenceHidden: true
1926
- }
1927
- };
1928
- return;
1929
- }
1930
- if (!openOption() && x !== 0 && y !== 0) {
1931
- const maxExpectedOffset = Math.max(Math.abs(sideOffsetOption()), Math.abs(alignOffsetOption()), 15);
1932
- if (position.x <= maxExpectedOffset && position.y <= maxExpectedOffset) return;
1933
- }
1934
- x = position.x;
1935
- y = position.y;
1936
- strategy = position.strategy;
1937
- placement = position.placement;
1938
- middlewareData = position.middlewareData;
1939
- isPositioned = true;
1940
- });
1941
- }
1942
- return {
1943
- floating,
1944
- reference,
1945
- get strategy() {
1946
- return strategy;
1947
- },
1948
- get placement() {
1949
- return placement;
1950
- },
1951
- get middlewareData() {
1952
- return middlewareData;
1953
- },
1954
- get isPositioned() {
1955
- return isPositioned;
1956
- },
1957
- get floatingStyles() {
1958
- return floatingStyles();
1959
- },
1960
- get update() {
1961
- return update;
1962
- }
1963
- };
1964
- }
1965
- function isReferenceHidden(node) {
1966
- if (!(node instanceof Element)) return false;
1967
- if (!node.isConnected) return true;
1968
- if (node instanceof HTMLElement && node.hidden) return true;
1969
- return node.getClientRects().length === 0;
1970
- }
1971
- const OPPOSITE_SIDE = { top: "bottom", right: "left", bottom: "top", left: "right" };
1972
- const FloatingContentContext = new Context("Floating.Content");
1973
- class FloatingContentState {
1974
- static create(opts, tooltip = false) {
1975
- return tooltip ? FloatingContentContext.set(new FloatingContentState(opts, FloatingTooltipRootContext.get())) : FloatingContentContext.set(new FloatingContentState(opts, FloatingRootContext.get()));
1976
- }
1977
- opts;
1978
- root;
1979
- // nodes
1980
- contentRef = simpleBox(null);
1981
- wrapperRef = simpleBox(null);
1982
- arrowRef = simpleBox(null);
1983
- contentAttachment = attachRef(this.contentRef);
1984
- wrapperAttachment = attachRef(this.wrapperRef);
1985
- arrowAttachment = attachRef(this.arrowRef);
1986
- // ids
1987
- arrowId = simpleBox(useId());
1988
- #transformedStyle = derived(() => {
1989
- if (typeof this.opts.style === "string") return cssToStyleObj(this.opts.style);
1990
- if (!this.opts.style) return {};
1991
- });
1992
- #updatePositionStrategy = void 0;
1993
- #arrowSize = new ElementSize(() => this.arrowRef.current ?? void 0);
1994
- #arrowWidth = derived(() => this.#arrowSize?.width ?? 0);
1995
- #arrowHeight = derived(() => this.#arrowSize?.height ?? 0);
1996
- #desiredPlacement = derived(() => this.opts.side?.current + (this.opts.align.current !== "center" ? `-${this.opts.align.current}` : ""));
1997
- #boundary = derived(() => Array.isArray(this.opts.collisionBoundary.current) ? this.opts.collisionBoundary.current : [this.opts.collisionBoundary.current]);
1998
- #hasExplicitBoundaries = derived(() => this.#boundary().length > 0);
1999
- get hasExplicitBoundaries() {
2000
- return this.#hasExplicitBoundaries();
2001
- }
2002
- set hasExplicitBoundaries($$value) {
2003
- return this.#hasExplicitBoundaries($$value);
2004
- }
2005
- #detectOverflowOptions = derived(() => ({
2006
- padding: this.opts.collisionPadding.current,
2007
- boundary: this.#boundary().filter(isNotNull),
2008
- altBoundary: this.hasExplicitBoundaries
2009
- }));
2010
- get detectOverflowOptions() {
2011
- return this.#detectOverflowOptions();
2012
- }
2013
- set detectOverflowOptions($$value) {
2014
- return this.#detectOverflowOptions($$value);
2015
- }
2016
- #availableWidth = void 0;
2017
- #availableHeight = void 0;
2018
- #anchorWidth = void 0;
2019
- #anchorHeight = void 0;
2020
- #middleware = derived(() => [
2021
- offset({
2022
- mainAxis: this.opts.sideOffset.current + this.#arrowHeight(),
2023
- alignmentAxis: this.opts.alignOffset.current
2024
- }),
2025
- this.opts.avoidCollisions.current && shift({
2026
- mainAxis: true,
2027
- crossAxis: false,
2028
- limiter: this.opts.sticky.current === "partial" ? limitShift() : void 0,
2029
- ...this.detectOverflowOptions
2030
- }),
2031
- this.opts.avoidCollisions.current && flip({ ...this.detectOverflowOptions }),
2032
- size({
2033
- ...this.detectOverflowOptions,
2034
- apply: ({ rects, availableWidth, availableHeight }) => {
2035
- const { width: anchorWidth, height: anchorHeight } = rects.reference;
2036
- this.#availableWidth = availableWidth;
2037
- this.#availableHeight = availableHeight;
2038
- this.#anchorWidth = anchorWidth;
2039
- this.#anchorHeight = anchorHeight;
2040
- }
2041
- }),
2042
- this.arrowRef.current && arrow({
2043
- element: this.arrowRef.current,
2044
- padding: this.opts.arrowPadding.current
2045
- }),
2046
- transformOrigin({
2047
- arrowWidth: this.#arrowWidth(),
2048
- arrowHeight: this.#arrowHeight()
2049
- }),
2050
- this.opts.hideWhenDetached.current && hide({ strategy: "referenceHidden", ...this.detectOverflowOptions })
2051
- ].filter(Boolean));
2052
- get middleware() {
2053
- return this.#middleware();
2054
- }
2055
- set middleware($$value) {
2056
- return this.#middleware($$value);
2057
- }
2058
- floating;
2059
- #placedSide = derived(() => getSideFromPlacement(this.floating.placement));
2060
- get placedSide() {
2061
- return this.#placedSide();
2062
- }
2063
- set placedSide($$value) {
2064
- return this.#placedSide($$value);
2065
- }
2066
- #placedAlign = derived(() => getAlignFromPlacement(this.floating.placement));
2067
- get placedAlign() {
2068
- return this.#placedAlign();
2069
- }
2070
- set placedAlign($$value) {
2071
- return this.#placedAlign($$value);
2072
- }
2073
- #arrowX = derived(() => this.floating.middlewareData.arrow?.x ?? 0);
2074
- get arrowX() {
2075
- return this.#arrowX();
2076
- }
2077
- set arrowX($$value) {
2078
- return this.#arrowX($$value);
2079
- }
2080
- #arrowY = derived(() => this.floating.middlewareData.arrow?.y ?? 0);
2081
- get arrowY() {
2082
- return this.#arrowY();
2083
- }
2084
- set arrowY($$value) {
2085
- return this.#arrowY($$value);
2086
- }
2087
- #cannotCenterArrow = derived(() => this.floating.middlewareData.arrow?.centerOffset !== 0);
2088
- get cannotCenterArrow() {
2089
- return this.#cannotCenterArrow();
2090
- }
2091
- set cannotCenterArrow($$value) {
2092
- return this.#cannotCenterArrow($$value);
2093
- }
2094
- contentZIndex;
2095
- #arrowBaseSide = derived(() => OPPOSITE_SIDE[this.placedSide]);
2096
- get arrowBaseSide() {
2097
- return this.#arrowBaseSide();
2098
- }
2099
- set arrowBaseSide($$value) {
2100
- return this.#arrowBaseSide($$value);
2101
- }
2102
- #wrapperProps = derived(() => ({
2103
- id: this.opts.wrapperId.current,
2104
- "data-bits-floating-content-wrapper": "",
2105
- style: {
2106
- ...this.floating.floatingStyles,
2107
- transform: this.floating.isPositioned ? this.floating.floatingStyles.transform : "translate(0, -200%)",
2108
- minWidth: "max-content",
2109
- zIndex: this.contentZIndex,
2110
- "--bits-floating-transform-origin": `${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,
2111
- "--bits-floating-available-width": `${this.#availableWidth}px`,
2112
- "--bits-floating-available-height": `${this.#availableHeight}px`,
2113
- "--bits-floating-anchor-width": `${this.#anchorWidth}px`,
2114
- "--bits-floating-anchor-height": `${this.#anchorHeight}px`,
2115
- ...this.floating.middlewareData.hide?.referenceHidden && { visibility: "hidden", "pointer-events": "none" },
2116
- ...this.#transformedStyle()
2117
- },
2118
- dir: this.opts.dir.current,
2119
- ...this.wrapperAttachment
2120
- }));
2121
- get wrapperProps() {
2122
- return this.#wrapperProps();
2123
- }
2124
- set wrapperProps($$value) {
2125
- return this.#wrapperProps($$value);
2126
- }
2127
- #props = derived(() => ({
2128
- "data-side": this.placedSide,
2129
- "data-align": this.placedAlign,
2130
- style: styleToString({ ...this.#transformedStyle() }),
2131
- ...this.contentAttachment
2132
- }));
2133
- get props() {
2134
- return this.#props();
2135
- }
2136
- set props($$value) {
2137
- return this.#props($$value);
2138
- }
2139
- #arrowStyle = derived(() => ({
2140
- position: "absolute",
2141
- left: this.arrowX ? `${this.arrowX}px` : void 0,
2142
- top: this.arrowY ? `${this.arrowY}px` : void 0,
2143
- [this.arrowBaseSide]: 0,
2144
- "transform-origin": { top: "", right: "0 0", bottom: "center 0", left: "100% 0" }[this.placedSide],
2145
- transform: {
2146
- top: "translateY(100%)",
2147
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
2148
- bottom: "rotate(180deg)",
2149
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
2150
- }[this.placedSide],
2151
- visibility: this.cannotCenterArrow ? "hidden" : void 0
2152
- }));
2153
- get arrowStyle() {
2154
- return this.#arrowStyle();
2155
- }
2156
- set arrowStyle($$value) {
2157
- return this.#arrowStyle($$value);
2158
- }
2159
- constructor(opts, root) {
2160
- this.opts = opts;
2161
- this.root = root;
2162
- this.#updatePositionStrategy = opts.updatePositionStrategy;
2163
- if (opts.customAnchor) {
2164
- this.root.customAnchorNode.current = opts.customAnchor.current;
2165
- }
2166
- watch(() => opts.customAnchor.current, (customAnchor) => {
2167
- this.root.customAnchorNode.current = customAnchor;
2168
- });
2169
- this.floating = useFloating({
2170
- strategy: () => this.opts.strategy.current,
2171
- placement: () => this.#desiredPlacement(),
2172
- middleware: () => this.middleware,
2173
- reference: this.root.anchorNode,
2174
- open: () => this.opts.enabled.current,
2175
- sideOffset: () => this.opts.sideOffset.current,
2176
- alignOffset: () => this.opts.alignOffset.current
2177
- });
2178
- watch(() => this.contentRef.current, (contentNode) => {
2179
- if (!contentNode || !this.opts.enabled.current) return;
2180
- const win = getWindow$1(contentNode);
2181
- const rafId = win.requestAnimationFrame(() => {
2182
- if (this.contentRef.current !== contentNode || !this.opts.enabled.current) return;
2183
- const zIndex = win.getComputedStyle(contentNode).zIndex;
2184
- if (zIndex !== this.contentZIndex) {
2185
- this.contentZIndex = zIndex;
2186
- }
2187
- });
2188
- return () => {
2189
- win.cancelAnimationFrame(rafId);
2190
- };
2191
- });
2192
- }
2193
- }
2194
- class FloatingArrowState {
2195
- static create(opts) {
2196
- return new FloatingArrowState(opts, FloatingContentContext.get());
2197
- }
2198
- opts;
2199
- content;
2200
- constructor(opts, content) {
2201
- this.opts = opts;
2202
- this.content = content;
2203
- }
2204
- #props = derived(() => ({
2205
- id: this.opts.id.current,
2206
- style: this.content.arrowStyle,
2207
- "data-side": this.content.placedSide,
2208
- ...this.content.arrowAttachment
2209
- }));
2210
- get props() {
2211
- return this.#props();
2212
- }
2213
- set props($$value) {
2214
- return this.#props($$value);
2215
- }
2216
- }
2217
- function transformOrigin(options) {
2218
- return {
2219
- name: "transformOrigin",
2220
- options,
2221
- fn(data) {
2222
- const { placement, rects, middlewareData } = data;
2223
- const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
2224
- const isArrowHidden = cannotCenterArrow;
2225
- const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
2226
- const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
2227
- const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
2228
- const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
2229
- const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
2230
- const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
2231
- let x = "";
2232
- let y = "";
2233
- if (placedSide === "bottom") {
2234
- x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
2235
- y = `${-arrowHeight}px`;
2236
- } else if (placedSide === "top") {
2237
- x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
2238
- y = `${rects.floating.height + arrowHeight}px`;
2239
- } else if (placedSide === "right") {
2240
- x = `${-arrowHeight}px`;
2241
- y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
2242
- } else if (placedSide === "left") {
2243
- x = `${rects.floating.width + arrowHeight}px`;
2244
- y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
2245
- }
2246
- return { data: { x, y } };
2247
- }
2248
- };
2249
- }
2250
- function getSideAndAlignFromPlacement(placement) {
2251
- const [side, align = "center"] = placement.split("-");
2252
- return [side, align];
2253
- }
2254
- function getSideFromPlacement(placement) {
2255
- return getSideAndAlignFromPlacement(placement)[0];
2256
- }
2257
- function getAlignFromPlacement(placement) {
2258
- return getSideAndAlignFromPlacement(placement)[1];
2259
- }
2260
- function Floating_layer_content($$renderer, $$props) {
2261
- $$renderer.component(($$renderer2) => {
2262
- let {
2263
- content,
2264
- side = "bottom",
2265
- sideOffset = 0,
2266
- align = "center",
2267
- alignOffset = 0,
2268
- id,
2269
- arrowPadding = 0,
2270
- avoidCollisions = true,
2271
- collisionBoundary = [],
2272
- collisionPadding = 0,
2273
- hideWhenDetached = false,
2274
- onPlaced = () => {
2275
- },
2276
- sticky = "partial",
2277
- updatePositionStrategy = "optimized",
2278
- strategy = "fixed",
2279
- dir = "ltr",
2280
- style = {},
2281
- wrapperId = useId(),
2282
- customAnchor = null,
2283
- enabled,
2284
- tooltip = false
2285
- } = $$props;
2286
- const contentState = FloatingContentState.create(
2287
- {
2288
- side: boxWith(() => side),
2289
- sideOffset: boxWith(() => sideOffset),
2290
- align: boxWith(() => align),
2291
- alignOffset: boxWith(() => alignOffset),
2292
- id: boxWith(() => id),
2293
- arrowPadding: boxWith(() => arrowPadding),
2294
- avoidCollisions: boxWith(() => avoidCollisions),
2295
- collisionBoundary: boxWith(() => collisionBoundary),
2296
- collisionPadding: boxWith(() => collisionPadding),
2297
- hideWhenDetached: boxWith(() => hideWhenDetached),
2298
- onPlaced: boxWith(() => onPlaced),
2299
- sticky: boxWith(() => sticky),
2300
- updatePositionStrategy: boxWith(() => updatePositionStrategy),
2301
- strategy: boxWith(() => strategy),
2302
- dir: boxWith(() => dir),
2303
- style: boxWith(() => style),
2304
- enabled: boxWith(() => enabled),
2305
- wrapperId: boxWith(() => wrapperId),
2306
- customAnchor: boxWith(() => customAnchor)
2307
- },
2308
- tooltip
2309
- );
2310
- const mergedProps = derived(() => mergeProps(contentState.wrapperProps, { style: { pointerEvents: "auto" } }));
2311
- content?.($$renderer2, { props: contentState.props, wrapperProps: mergedProps() });
2312
- $$renderer2.push(`<!---->`);
2313
- });
2314
- }
2315
- function Floating_layer_content_static($$renderer, $$props) {
2316
- $$renderer.component(($$renderer2) => {
2317
- let { content } = $$props;
2318
- content?.($$renderer2, { props: {}, wrapperProps: {} });
2319
- $$renderer2.push(`<!---->`);
2320
- });
2321
- }
2322
- function Popper_content($$renderer, $$props) {
2323
- let {
2324
- content,
2325
- isStatic = false,
2326
- onPlaced,
2327
- $$slots,
2328
- $$events,
2329
- ...restProps
2330
- } = $$props;
2331
- if (isStatic) {
2332
- $$renderer.push("<!--[0-->");
2333
- Floating_layer_content_static($$renderer, { content });
2334
- } else {
2335
- $$renderer.push("<!--[-1-->");
2336
- Floating_layer_content($$renderer, spread_props([{ content, onPlaced }, restProps]));
2337
- }
2338
- $$renderer.push(`<!--]-->`);
2339
- }
2340
- function Popper_layer_inner($$renderer, $$props) {
2341
- $$renderer.component(($$renderer2) => {
2342
- let {
2343
- popper,
2344
- onEscapeKeydown,
2345
- escapeKeydownBehavior,
2346
- preventOverflowTextSelection,
2347
- id,
2348
- onPointerDown,
2349
- onPointerUp,
2350
- side,
2351
- sideOffset,
2352
- align,
2353
- alignOffset,
2354
- arrowPadding,
2355
- avoidCollisions,
2356
- collisionBoundary,
2357
- collisionPadding,
2358
- sticky,
2359
- hideWhenDetached,
2360
- updatePositionStrategy,
2361
- strategy,
2362
- dir,
2363
- preventScroll,
2364
- wrapperId,
2365
- style,
2366
- onPlaced,
2367
- onInteractOutside,
2368
- onCloseAutoFocus,
2369
- onOpenAutoFocus,
2370
- onFocusOutside,
2371
- interactOutsideBehavior = "close",
2372
- loop,
2373
- trapFocus = true,
2374
- isValidEvent = () => false,
2375
- customAnchor = null,
2376
- isStatic = false,
2377
- enabled,
2378
- forceMount,
2379
- ref,
2380
- tooltip = false,
2381
- contentPointerEvents = "auto",
2382
- $$slots,
2383
- $$events,
2384
- ...restProps
2385
- } = $$props;
2386
- const resolvedPreventScroll = derived(() => preventScroll ?? true);
2387
- const effectiveStrategy = derived(() => strategy ?? (resolvedPreventScroll() ? "fixed" : "absolute"));
2388
- {
2389
- let content = function($$renderer3, { props: floatingProps, wrapperProps }) {
2390
- if (forceMount && enabled) {
2391
- $$renderer3.push("<!--[0-->");
2392
- Scroll_lock($$renderer3, { preventScroll: resolvedPreventScroll() });
2393
- } else if (!forceMount) {
2394
- $$renderer3.push("<!--[1-->");
2395
- Scroll_lock($$renderer3, { preventScroll: resolvedPreventScroll() });
2396
- } else {
2397
- $$renderer3.push("<!--[-1-->");
2398
- }
2399
- $$renderer3.push(`<!--]--> `);
2400
- {
2401
- let focusScope = function($$renderer4, { props: focusScopeProps }) {
2402
- Escape_layer($$renderer4, {
2403
- onEscapeKeydown,
2404
- escapeKeydownBehavior,
2405
- enabled,
2406
- ref,
2407
- children: ($$renderer5) => {
2408
- {
2409
- let children = function($$renderer6, { props: dismissibleProps }) {
2410
- Text_selection_layer($$renderer6, {
2411
- id,
2412
- preventOverflowTextSelection,
2413
- onPointerDown,
2414
- onPointerUp,
2415
- enabled,
2416
- ref,
2417
- children: ($$renderer7) => {
2418
- popper?.($$renderer7, {
2419
- props: mergeProps(restProps, floatingProps, dismissibleProps, focusScopeProps, { id, style: { pointerEvents: contentPointerEvents } }),
2420
- wrapperProps
2421
- });
2422
- $$renderer7.push(`<!---->`);
2423
- }
2424
- });
2425
- };
2426
- Dismissible_layer($$renderer5, {
2427
- id,
2428
- onInteractOutside,
2429
- onFocusOutside,
2430
- interactOutsideBehavior,
2431
- isValidEvent,
2432
- enabled,
2433
- ref,
2434
- children
2435
- });
2436
- }
2437
- }
2438
- });
2439
- };
2440
- Focus_scope($$renderer3, {
2441
- onOpenAutoFocus,
2442
- onCloseAutoFocus,
2443
- loop,
2444
- enabled,
2445
- trapFocus,
2446
- ref,
2447
- focusScope
2448
- });
2449
- }
2450
- $$renderer3.push(`<!---->`);
2451
- };
2452
- Popper_content($$renderer2, {
2453
- isStatic,
2454
- id,
2455
- side,
2456
- sideOffset,
2457
- align,
2458
- alignOffset,
2459
- arrowPadding,
2460
- avoidCollisions,
2461
- collisionBoundary,
2462
- collisionPadding,
2463
- sticky,
2464
- hideWhenDetached,
2465
- updatePositionStrategy,
2466
- strategy: effectiveStrategy(),
2467
- dir,
2468
- wrapperId,
2469
- style,
2470
- onPlaced,
2471
- customAnchor,
2472
- enabled,
2473
- tooltip,
2474
- content,
2475
- $$slots: { content: true }
2476
- });
2477
- }
2478
- });
2479
- }
2480
- function Popper_layer($$renderer, $$props) {
2481
- let {
2482
- popper,
2483
- open,
2484
- onEscapeKeydown,
2485
- escapeKeydownBehavior,
2486
- preventOverflowTextSelection,
2487
- id,
2488
- onPointerDown,
2489
- onPointerUp,
2490
- side,
2491
- sideOffset,
2492
- align,
2493
- alignOffset,
2494
- arrowPadding,
2495
- avoidCollisions,
2496
- collisionBoundary,
2497
- collisionPadding,
2498
- sticky,
2499
- hideWhenDetached,
2500
- updatePositionStrategy,
2501
- strategy,
2502
- dir,
2503
- preventScroll,
2504
- wrapperId,
2505
- style,
2506
- onPlaced,
2507
- onInteractOutside,
2508
- onCloseAutoFocus,
2509
- onOpenAutoFocus,
2510
- onFocusOutside,
2511
- interactOutsideBehavior = "close",
2512
- loop,
2513
- trapFocus = true,
2514
- isValidEvent = () => false,
2515
- customAnchor = null,
2516
- isStatic = false,
2517
- ref,
2518
- shouldRender,
2519
- $$slots,
2520
- $$events,
2521
- ...restProps
2522
- } = $$props;
2523
- if (shouldRender) {
2524
- $$renderer.push("<!--[0-->");
2525
- Popper_layer_inner($$renderer, spread_props([
2526
- {
2527
- popper,
2528
- onEscapeKeydown,
2529
- escapeKeydownBehavior,
2530
- preventOverflowTextSelection,
2531
- id,
2532
- onPointerDown,
2533
- onPointerUp,
2534
- side,
2535
- sideOffset,
2536
- align,
2537
- alignOffset,
2538
- arrowPadding,
2539
- avoidCollisions,
2540
- collisionBoundary,
2541
- collisionPadding,
2542
- sticky,
2543
- hideWhenDetached,
2544
- updatePositionStrategy,
2545
- strategy,
2546
- dir,
2547
- preventScroll,
2548
- wrapperId,
2549
- style,
2550
- onPlaced,
2551
- customAnchor,
2552
- isStatic,
2553
- enabled: open,
2554
- onInteractOutside,
2555
- onCloseAutoFocus,
2556
- onOpenAutoFocus,
2557
- interactOutsideBehavior,
2558
- loop,
2559
- trapFocus,
2560
- isValidEvent,
2561
- onFocusOutside,
2562
- forceMount: false,
2563
- ref
2564
- },
2565
- restProps
2566
- ]));
2567
- } else {
2568
- $$renderer.push("<!--[-1-->");
2569
- }
2570
- $$renderer.push(`<!--]-->`);
2571
- }
2572
- function Popper_layer_force_mount($$renderer, $$props) {
2573
- let {
2574
- popper,
2575
- onEscapeKeydown,
2576
- escapeKeydownBehavior,
2577
- preventOverflowTextSelection,
2578
- id,
2579
- onPointerDown,
2580
- onPointerUp,
2581
- side,
2582
- sideOffset,
2583
- align,
2584
- alignOffset,
2585
- arrowPadding,
2586
- avoidCollisions,
2587
- collisionBoundary,
2588
- collisionPadding,
2589
- sticky,
2590
- hideWhenDetached,
2591
- updatePositionStrategy,
2592
- strategy,
2593
- dir,
2594
- preventScroll,
2595
- wrapperId,
2596
- style,
2597
- onPlaced,
2598
- onInteractOutside,
2599
- onCloseAutoFocus,
2600
- onOpenAutoFocus,
2601
- onFocusOutside,
2602
- interactOutsideBehavior = "close",
2603
- loop,
2604
- trapFocus = true,
2605
- isValidEvent = () => false,
2606
- customAnchor = null,
2607
- isStatic = false,
2608
- enabled,
2609
- $$slots,
2610
- $$events,
2611
- ...restProps
2612
- } = $$props;
2613
- Popper_layer_inner($$renderer, spread_props([
2614
- {
2615
- popper,
2616
- onEscapeKeydown,
2617
- escapeKeydownBehavior,
2618
- preventOverflowTextSelection,
2619
- id,
2620
- onPointerDown,
2621
- onPointerUp,
2622
- side,
2623
- sideOffset,
2624
- align,
2625
- alignOffset,
2626
- arrowPadding,
2627
- avoidCollisions,
2628
- collisionBoundary,
2629
- collisionPadding,
2630
- sticky,
2631
- hideWhenDetached,
2632
- updatePositionStrategy,
2633
- strategy,
2634
- dir,
2635
- preventScroll,
2636
- wrapperId,
2637
- style,
2638
- onPlaced,
2639
- customAnchor,
2640
- isStatic,
2641
- enabled,
2642
- onInteractOutside,
2643
- onCloseAutoFocus,
2644
- onOpenAutoFocus,
2645
- interactOutsideBehavior,
2646
- loop,
2647
- trapFocus,
2648
- isValidEvent,
2649
- onFocusOutside
2650
- },
2651
- restProps,
2652
- { forceMount: true }
2653
- ]));
2654
- }
2655
- function isPointInPolygon(point, polygon) {
2656
- const [x, y] = point;
2657
- let isInside = false;
2658
- const length = polygon.length;
2659
- for (let i = 0, j = length - 1; i < length; j = i++) {
2660
- const [xi, yi] = polygon[i] ?? [0, 0];
2661
- const [xj, yj] = polygon[j] ?? [0, 0];
2662
- const intersect = yi >= y !== yj >= y && x <= (xj - xi) * (y - yi) / (yj - yi) + xi;
2663
- if (intersect) {
2664
- isInside = !isInside;
2665
- }
2666
- }
2667
- return isInside;
2668
- }
2669
- function isInsideRect(point, rect) {
2670
- return point[0] >= rect.left && point[0] <= rect.right && point[1] >= rect.top && point[1] <= rect.bottom;
2671
- }
2672
- function getSide(triggerRect, contentRect) {
2673
- const triggerCenterX = triggerRect.left + triggerRect.width / 2;
2674
- const triggerCenterY = triggerRect.top + triggerRect.height / 2;
2675
- const contentCenterX = contentRect.left + contentRect.width / 2;
2676
- const contentCenterY = contentRect.top + contentRect.height / 2;
2677
- const deltaX = contentCenterX - triggerCenterX;
2678
- const deltaY = contentCenterY - triggerCenterY;
2679
- if (Math.abs(deltaX) > Math.abs(deltaY)) {
2680
- return deltaX > 0 ? "right" : "left";
2681
- }
2682
- return deltaY > 0 ? "bottom" : "top";
2683
- }
2684
- class SafePolygon {
2685
- #opts;
2686
- #buffer;
2687
- #transitIntentTimeout;
2688
- // tracks the cursor position when leaving trigger or content
2689
- #exitPoint = null;
2690
- // tracks what we're moving toward: "content" when leaving trigger, "trigger" when leaving content
2691
- #exitTarget = null;
2692
- #transitTargets = [];
2693
- #trackedTriggerNode = null;
2694
- #leaveFallbackRafId = null;
2695
- #transitIntentTimeoutId = null;
2696
- #cancelLeaveFallback() {
2697
- if (this.#leaveFallbackRafId !== null) {
2698
- cancelAnimationFrame(this.#leaveFallbackRafId);
2699
- this.#leaveFallbackRafId = null;
2700
- }
2701
- }
2702
- #scheduleLeaveFallback() {
2703
- this.#cancelLeaveFallback();
2704
- this.#leaveFallbackRafId = requestAnimationFrame(() => {
2705
- this.#leaveFallbackRafId = null;
2706
- if (!this.#exitPoint || !this.#exitTarget) return;
2707
- this.#clearTracking();
2708
- this.#opts.onPointerExit();
2709
- });
2710
- }
2711
- #cancelTransitIntentTimeout() {
2712
- if (this.#transitIntentTimeoutId !== null) {
2713
- clearTimeout(this.#transitIntentTimeoutId);
2714
- this.#transitIntentTimeoutId = null;
2715
- }
2716
- }
2717
- #scheduleTransitIntentTimeout() {
2718
- if (this.#transitIntentTimeout === null) return;
2719
- this.#cancelTransitIntentTimeout();
2720
- this.#transitIntentTimeoutId = window.setTimeout(
2721
- () => {
2722
- this.#transitIntentTimeoutId = null;
2723
- if (!this.#exitPoint || !this.#exitTarget) return;
2724
- this.#clearTracking();
2725
- this.#opts.onPointerExit();
2726
- },
2727
- this.#transitIntentTimeout
2728
- );
2729
- }
2730
- constructor(opts) {
2731
- this.#opts = opts;
2732
- this.#buffer = opts.buffer ?? 1;
2733
- const transitIntentTimeout = opts.transitIntentTimeout;
2734
- this.#transitIntentTimeout = typeof transitIntentTimeout === "number" && transitIntentTimeout > 0 ? transitIntentTimeout : null;
2735
- watch([opts.triggerNode, opts.contentNode, opts.enabled], ([triggerNode, contentNode, enabled]) => {
2736
- if (!triggerNode || !contentNode || !enabled) {
2737
- this.#trackedTriggerNode = null;
2738
- this.#clearTracking();
2739
- return;
2740
- }
2741
- if (this.#trackedTriggerNode && this.#trackedTriggerNode !== triggerNode) {
2742
- this.#clearTracking();
2743
- }
2744
- this.#trackedTriggerNode = triggerNode;
2745
- const doc = getDocument(triggerNode);
2746
- const handlePointerMove = (e) => {
2747
- this.#onPointerMove([e.clientX, e.clientY], triggerNode, contentNode);
2748
- };
2749
- const handleTriggerLeave = (e) => {
2750
- const target = e.relatedTarget;
2751
- if (isElement$1(target) && contentNode.contains(target)) {
2752
- return;
2753
- }
2754
- const ignoredTargets = this.#opts.ignoredTargets?.() ?? [];
2755
- if (isElement$1(target) && ignoredTargets.some((n) => n === target || n.contains(target))) {
2756
- return;
2757
- }
2758
- this.#transitTargets = isElement$1(target) && ignoredTargets.length > 0 ? ignoredTargets.filter((n) => target.contains(n)) : [];
2759
- this.#exitPoint = [e.clientX, e.clientY];
2760
- this.#exitTarget = "content";
2761
- this.#scheduleLeaveFallback();
2762
- };
2763
- const handleTriggerEnter = () => {
2764
- this.#clearTracking();
2765
- };
2766
- const handleContentEnter = () => {
2767
- this.#clearTracking();
2768
- };
2769
- const handleContentLeave = (e) => {
2770
- const target = e.relatedTarget;
2771
- if (isElement$1(target) && triggerNode.contains(target)) {
2772
- return;
2773
- }
2774
- this.#exitPoint = [e.clientX, e.clientY];
2775
- this.#exitTarget = "trigger";
2776
- this.#scheduleLeaveFallback();
2777
- };
2778
- return [
2779
- on(doc, "pointermove", handlePointerMove),
2780
- on(triggerNode, "pointerleave", handleTriggerLeave),
2781
- on(triggerNode, "pointerenter", handleTriggerEnter),
2782
- on(contentNode, "pointerenter", handleContentEnter),
2783
- on(contentNode, "pointerleave", handleContentLeave)
2784
- ].reduce(
2785
- (acc, cleanup) => () => {
2786
- acc();
2787
- cleanup();
2788
- },
2789
- () => {
2790
- }
2791
- );
2792
- });
2793
- }
2794
- #onPointerMove(clientPoint, triggerNode, contentNode) {
2795
- if (!this.#exitPoint || !this.#exitTarget) return;
2796
- this.#cancelLeaveFallback();
2797
- this.#scheduleTransitIntentTimeout();
2798
- const triggerRect = triggerNode.getBoundingClientRect();
2799
- const contentRect = contentNode.getBoundingClientRect();
2800
- if (this.#exitTarget === "content" && isInsideRect(clientPoint, contentRect)) {
2801
- this.#clearTracking();
2802
- return;
2803
- }
2804
- if (this.#exitTarget === "trigger" && isInsideRect(clientPoint, triggerRect)) {
2805
- this.#clearTracking();
2806
- return;
2807
- }
2808
- if (this.#exitTarget === "content" && this.#transitTargets.length > 0) {
2809
- for (const transitTarget of this.#transitTargets) {
2810
- const transitRect = transitTarget.getBoundingClientRect();
2811
- if (isInsideRect(clientPoint, transitRect)) return;
2812
- const transitSide = getSide(triggerRect, transitRect);
2813
- const transitCorridor = this.#getCorridorPolygon(triggerRect, transitRect, transitSide);
2814
- if (transitCorridor && isPointInPolygon(clientPoint, transitCorridor)) return;
2815
- }
2816
- }
2817
- const side = getSide(triggerRect, contentRect);
2818
- const corridorPoly = this.#getCorridorPolygon(triggerRect, contentRect, side);
2819
- if (corridorPoly && isPointInPolygon(clientPoint, corridorPoly)) {
2820
- return;
2821
- }
2822
- const targetRect = this.#exitTarget === "content" ? contentRect : triggerRect;
2823
- const safePoly = this.#getSafePolygon(this.#exitPoint, targetRect, side, this.#exitTarget);
2824
- if (isPointInPolygon(clientPoint, safePoly)) {
2825
- return;
2826
- }
2827
- this.#clearTracking();
2828
- this.#opts.onPointerExit();
2829
- }
2830
- #clearTracking() {
2831
- this.#exitPoint = null;
2832
- this.#exitTarget = null;
2833
- this.#transitTargets = [];
2834
- this.#cancelLeaveFallback();
2835
- this.#cancelTransitIntentTimeout();
2836
- }
2837
- /**
2838
- * Creates a rectangular corridor between trigger and content
2839
- * This prevents closing when cursor is in the gap between them
2840
- */
2841
- #getCorridorPolygon(triggerRect, contentRect, side) {
2842
- const buffer = this.#buffer;
2843
- switch (side) {
2844
- case "top":
2845
- return [
2846
- [
2847
- Math.min(triggerRect.left, contentRect.left) - buffer,
2848
- triggerRect.top
2849
- ],
2850
- [
2851
- Math.min(triggerRect.left, contentRect.left) - buffer,
2852
- contentRect.bottom
2853
- ],
2854
- [
2855
- Math.max(triggerRect.right, contentRect.right) + buffer,
2856
- contentRect.bottom
2857
- ],
2858
- [
2859
- Math.max(triggerRect.right, contentRect.right) + buffer,
2860
- triggerRect.top
2861
- ]
2862
- ];
2863
- case "bottom":
2864
- return [
2865
- [
2866
- Math.min(triggerRect.left, contentRect.left) - buffer,
2867
- triggerRect.bottom
2868
- ],
2869
- [
2870
- Math.min(triggerRect.left, contentRect.left) - buffer,
2871
- contentRect.top
2872
- ],
2873
- [
2874
- Math.max(triggerRect.right, contentRect.right) + buffer,
2875
- contentRect.top
2876
- ],
2877
- [
2878
- Math.max(triggerRect.right, contentRect.right) + buffer,
2879
- triggerRect.bottom
2880
- ]
2881
- ];
2882
- case "left":
2883
- return [
2884
- [
2885
- triggerRect.left,
2886
- Math.min(triggerRect.top, contentRect.top) - buffer
2887
- ],
2888
- [
2889
- contentRect.right,
2890
- Math.min(triggerRect.top, contentRect.top) - buffer
2891
- ],
2892
- [
2893
- contentRect.right,
2894
- Math.max(triggerRect.bottom, contentRect.bottom) + buffer
2895
- ],
2896
- [
2897
- triggerRect.left,
2898
- Math.max(triggerRect.bottom, contentRect.bottom) + buffer
2899
- ]
2900
- ];
2901
- case "right":
2902
- return [
2903
- [
2904
- triggerRect.right,
2905
- Math.min(triggerRect.top, contentRect.top) - buffer
2906
- ],
2907
- [
2908
- contentRect.left,
2909
- Math.min(triggerRect.top, contentRect.top) - buffer
2910
- ],
2911
- [
2912
- contentRect.left,
2913
- Math.max(triggerRect.bottom, contentRect.bottom) + buffer
2914
- ],
2915
- [
2916
- triggerRect.right,
2917
- Math.max(triggerRect.bottom, contentRect.bottom) + buffer
2918
- ]
2919
- ];
2920
- }
2921
- }
2922
- /**
2923
- * Creates a triangular/trapezoidal safe zone from the exit point to the target
2924
- */
2925
- #getSafePolygon(exitPoint, targetRect, side, exitTarget) {
2926
- const buffer = this.#buffer * 4;
2927
- const [x, y] = exitPoint;
2928
- const effectiveSide = exitTarget === "trigger" ? this.#flipSide(side) : side;
2929
- switch (effectiveSide) {
2930
- case "top":
2931
- return [
2932
- [x - buffer, y + buffer],
2933
- [x + buffer, y + buffer],
2934
- [targetRect.right + buffer, targetRect.bottom],
2935
- [targetRect.right + buffer, targetRect.top],
2936
- [targetRect.left - buffer, targetRect.top],
2937
- [targetRect.left - buffer, targetRect.bottom]
2938
- ];
2939
- case "bottom":
2940
- return [
2941
- [x - buffer, y - buffer],
2942
- [x + buffer, y - buffer],
2943
- [targetRect.right + buffer, targetRect.top],
2944
- [targetRect.right + buffer, targetRect.bottom],
2945
- [targetRect.left - buffer, targetRect.bottom],
2946
- [targetRect.left - buffer, targetRect.top]
2947
- ];
2948
- case "left":
2949
- return [
2950
- [x + buffer, y - buffer],
2951
- [x + buffer, y + buffer],
2952
- [targetRect.right, targetRect.bottom + buffer],
2953
- [targetRect.left, targetRect.bottom + buffer],
2954
- [targetRect.left, targetRect.top - buffer],
2955
- [targetRect.right, targetRect.top - buffer]
2956
- ];
2957
- case "right":
2958
- return [
2959
- [x - buffer, y - buffer],
2960
- [x - buffer, y + buffer],
2961
- [targetRect.left, targetRect.bottom + buffer],
2962
- [targetRect.right, targetRect.bottom + buffer],
2963
- [targetRect.right, targetRect.top - buffer],
2964
- [targetRect.left, targetRect.top - buffer]
2965
- ];
2966
- }
2967
- }
2968
- #flipSide(side) {
2969
- switch (side) {
2970
- case "top":
2971
- return "bottom";
2972
- case "bottom":
2973
- return "top";
2974
- case "left":
2975
- return "right";
2976
- case "right":
2977
- return "left";
2978
- }
2979
- }
2980
- }
2981
- const popoverAttrs = createBitsAttrs({
2982
- component: "popover",
2983
- parts: ["root", "trigger", "content", "close", "overlay"]
2984
- });
2985
- const PopoverRootContext = new Context("Popover.Root");
2986
- class PopoverRootState {
2987
- static create(opts) {
2988
- return PopoverRootContext.set(new PopoverRootState(opts));
2989
- }
2990
- opts;
2991
- contentNode = null;
2992
- contentPresence;
2993
- triggerNode = null;
2994
- overlayNode = null;
2995
- overlayPresence;
2996
- // hover tracking state
2997
- openedViaHover = false;
2998
- hasInteractedWithContent = false;
2999
- hoverCooldown = false;
3000
- closeDelay = 0;
3001
- #closeTimeout = null;
3002
- #domContext = null;
3003
- constructor(opts) {
3004
- this.opts = opts;
3005
- this.contentPresence = new PresenceManager({
3006
- ref: boxWith(() => this.contentNode),
3007
- open: this.opts.open,
3008
- onComplete: () => {
3009
- this.opts.onOpenChangeComplete.current(this.opts.open.current);
3010
- }
3011
- });
3012
- this.overlayPresence = new PresenceManager({ ref: boxWith(() => this.overlayNode), open: this.opts.open });
3013
- watch(() => this.opts.open.current, (isOpen) => {
3014
- if (!isOpen) {
3015
- this.openedViaHover = false;
3016
- this.hasInteractedWithContent = false;
3017
- this.#clearCloseTimeout();
3018
- }
3019
- });
3020
- }
3021
- setDomContext(ctx) {
3022
- this.#domContext = ctx;
3023
- }
3024
- #clearCloseTimeout() {
3025
- if (this.#closeTimeout !== null && this.#domContext) {
3026
- this.#domContext.clearTimeout(this.#closeTimeout);
3027
- this.#closeTimeout = null;
3028
- }
3029
- }
3030
- toggleOpen() {
3031
- this.#clearCloseTimeout();
3032
- this.opts.open.current = !this.opts.open.current;
3033
- }
3034
- handleClose() {
3035
- this.#clearCloseTimeout();
3036
- if (!this.opts.open.current) return;
3037
- this.opts.open.current = false;
3038
- }
3039
- handleHoverOpen() {
3040
- this.#clearCloseTimeout();
3041
- if (this.opts.open.current) return;
3042
- this.openedViaHover = true;
3043
- this.opts.open.current = true;
3044
- }
3045
- handleHoverClose() {
3046
- if (!this.opts.open.current) return;
3047
- if (this.openedViaHover && !this.hasInteractedWithContent) {
3048
- this.opts.open.current = false;
3049
- }
3050
- }
3051
- handleDelayedHoverClose() {
3052
- if (!this.opts.open.current) return;
3053
- if (!this.openedViaHover || this.hasInteractedWithContent) return;
3054
- this.#clearCloseTimeout();
3055
- if (this.closeDelay <= 0) {
3056
- this.opts.open.current = false;
3057
- } else if (this.#domContext) {
3058
- this.#closeTimeout = this.#domContext.setTimeout(
3059
- () => {
3060
- if (this.openedViaHover && !this.hasInteractedWithContent) {
3061
- this.opts.open.current = false;
3062
- }
3063
- this.#closeTimeout = null;
3064
- },
3065
- this.closeDelay
3066
- );
3067
- }
3068
- }
3069
- cancelDelayedClose() {
3070
- this.#clearCloseTimeout();
3071
- }
3072
- markInteraction() {
3073
- this.hasInteractedWithContent = true;
3074
- this.#clearCloseTimeout();
3075
- }
3076
- }
3077
- class PopoverTriggerState {
3078
- static create(opts) {
3079
- return new PopoverTriggerState(opts, PopoverRootContext.get());
3080
- }
3081
- opts;
3082
- root;
3083
- attachment;
3084
- domContext;
3085
- #openTimeout = null;
3086
- #closeTimeout = null;
3087
- #isHovering = false;
3088
- constructor(opts, root) {
3089
- this.opts = opts;
3090
- this.root = root;
3091
- this.attachment = attachRef(this.opts.ref, (v) => this.root.triggerNode = v);
3092
- this.domContext = new DOMContext(opts.ref);
3093
- this.root.setDomContext(this.domContext);
3094
- this.onclick = this.onclick.bind(this);
3095
- this.onkeydown = this.onkeydown.bind(this);
3096
- this.onpointerenter = this.onpointerenter.bind(this);
3097
- this.onpointerleave = this.onpointerleave.bind(this);
3098
- watch(() => this.opts.closeDelay.current, (delay) => {
3099
- this.root.closeDelay = delay;
3100
- });
3101
- }
3102
- #clearOpenTimeout() {
3103
- if (this.#openTimeout !== null) {
3104
- this.domContext.clearTimeout(this.#openTimeout);
3105
- this.#openTimeout = null;
3106
- }
3107
- }
3108
- #clearCloseTimeout() {
3109
- if (this.#closeTimeout !== null) {
3110
- this.domContext.clearTimeout(this.#closeTimeout);
3111
- this.#closeTimeout = null;
3112
- }
3113
- }
3114
- #clearAllTimeouts() {
3115
- this.#clearOpenTimeout();
3116
- this.#clearCloseTimeout();
3117
- }
3118
- onpointerenter(e) {
3119
- if (this.opts.disabled.current) return;
3120
- if (!this.opts.openOnHover.current) return;
3121
- if (isTouch(e)) return;
3122
- this.#isHovering = true;
3123
- this.#clearCloseTimeout();
3124
- this.root.cancelDelayedClose();
3125
- if (this.root.opts.open.current || this.root.hoverCooldown) return;
3126
- const delay = this.opts.openDelay.current;
3127
- if (delay <= 0) {
3128
- this.root.handleHoverOpen();
3129
- } else {
3130
- this.#openTimeout = this.domContext.setTimeout(
3131
- () => {
3132
- this.root.handleHoverOpen();
3133
- this.#openTimeout = null;
3134
- },
3135
- delay
3136
- );
3137
- }
3138
- }
3139
- onpointerleave(e) {
3140
- if (this.opts.disabled.current) return;
3141
- if (!this.opts.openOnHover.current) return;
3142
- if (isTouch(e)) return;
3143
- this.#isHovering = false;
3144
- this.#clearOpenTimeout();
3145
- this.root.hoverCooldown = false;
3146
- }
3147
- onclick(e) {
3148
- if (this.opts.disabled.current) return;
3149
- if (e.button !== 0) return;
3150
- this.#clearAllTimeouts();
3151
- if (this.#isHovering && this.root.opts.open.current && this.root.openedViaHover) {
3152
- this.root.openedViaHover = false;
3153
- this.root.hasInteractedWithContent = true;
3154
- return;
3155
- }
3156
- if (this.#isHovering && this.opts.openOnHover.current && this.root.opts.open.current) {
3157
- this.root.hoverCooldown = true;
3158
- }
3159
- if (this.root.hoverCooldown && !this.root.opts.open.current) {
3160
- this.root.hoverCooldown = false;
3161
- }
3162
- this.root.toggleOpen();
3163
- }
3164
- onkeydown(e) {
3165
- if (this.opts.disabled.current) return;
3166
- if (!(e.key === ENTER || e.key === SPACE)) return;
3167
- e.preventDefault();
3168
- this.#clearAllTimeouts();
3169
- this.root.toggleOpen();
3170
- }
3171
- #getAriaControls() {
3172
- if (this.root.opts.open.current && this.root.contentNode?.id) {
3173
- return this.root.contentNode?.id;
3174
- }
3175
- }
3176
- #props = derived(() => ({
3177
- id: this.opts.id.current,
3178
- "aria-haspopup": "dialog",
3179
- "aria-expanded": boolToStr(this.root.opts.open.current),
3180
- "data-state": getDataOpenClosed(this.root.opts.open.current),
3181
- "aria-controls": this.#getAriaControls(),
3182
- [popoverAttrs.trigger]: "",
3183
- disabled: this.opts.disabled.current,
3184
- //
3185
- onkeydown: this.onkeydown,
3186
- onclick: this.onclick,
3187
- onpointerenter: this.onpointerenter,
3188
- onpointerleave: this.onpointerleave,
3189
- ...this.attachment
3190
- }));
3191
- get props() {
3192
- return this.#props();
3193
- }
3194
- set props($$value) {
3195
- return this.#props($$value);
3196
- }
3197
- }
3198
- class PopoverContentState {
3199
- static create(opts) {
3200
- return new PopoverContentState(opts, PopoverRootContext.get());
3201
- }
3202
- opts;
3203
- root;
3204
- attachment;
3205
- constructor(opts, root) {
3206
- this.opts = opts;
3207
- this.root = root;
3208
- this.attachment = attachRef(this.opts.ref, (v) => this.root.contentNode = v);
3209
- this.onpointerdown = this.onpointerdown.bind(this);
3210
- this.onfocusin = this.onfocusin.bind(this);
3211
- this.onpointerenter = this.onpointerenter.bind(this);
3212
- this.onpointerleave = this.onpointerleave.bind(this);
3213
- new SafePolygon({
3214
- triggerNode: () => this.root.triggerNode,
3215
- contentNode: () => this.root.contentNode,
3216
- enabled: () => this.root.opts.open.current && this.root.openedViaHover && !this.root.hasInteractedWithContent,
3217
- onPointerExit: () => {
3218
- this.root.handleDelayedHoverClose();
3219
- }
3220
- });
3221
- }
3222
- onpointerdown(_) {
3223
- this.root.markInteraction();
3224
- }
3225
- onfocusin(e) {
3226
- const target = e.target;
3227
- if (isElement$1(target) && isTabbable(target)) {
3228
- this.root.markInteraction();
3229
- }
3230
- }
3231
- onpointerenter(e) {
3232
- if (isTouch(e)) return;
3233
- this.root.cancelDelayedClose();
3234
- }
3235
- onpointerleave(e) {
3236
- if (isTouch(e)) return;
3237
- }
3238
- onInteractOutside = (e) => {
3239
- this.opts.onInteractOutside.current(e);
3240
- if (e.defaultPrevented) return;
3241
- if (!isElement$1(e.target)) return;
3242
- const closestTrigger = e.target.closest(popoverAttrs.selector("trigger"));
3243
- if (closestTrigger && closestTrigger === this.root.triggerNode) return;
3244
- if (this.opts.customAnchor.current) {
3245
- if (isElement$1(this.opts.customAnchor.current)) {
3246
- if (this.opts.customAnchor.current.contains(e.target)) return;
3247
- } else if (typeof this.opts.customAnchor.current === "string") {
3248
- const el = document.querySelector(this.opts.customAnchor.current);
3249
- if (el && el.contains(e.target)) return;
3250
- }
3251
- }
3252
- this.root.handleClose();
3253
- };
3254
- onEscapeKeydown = (e) => {
3255
- this.opts.onEscapeKeydown.current(e);
3256
- if (e.defaultPrevented) return;
3257
- this.root.handleClose();
3258
- };
3259
- get shouldRender() {
3260
- return this.root.contentPresence.shouldRender;
3261
- }
3262
- get shouldTrapFocus() {
3263
- if (this.root.openedViaHover && !this.root.hasInteractedWithContent) return false;
3264
- return true;
3265
- }
3266
- #snippetProps = derived(() => ({ open: this.root.opts.open.current }));
3267
- get snippetProps() {
3268
- return this.#snippetProps();
3269
- }
3270
- set snippetProps($$value) {
3271
- return this.#snippetProps($$value);
3272
- }
3273
- #props = derived(() => ({
3274
- id: this.opts.id.current,
3275
- tabindex: -1,
3276
- "data-state": getDataOpenClosed(this.root.opts.open.current),
3277
- ...getDataTransitionAttrs(this.root.contentPresence.transitionStatus),
3278
- [popoverAttrs.content]: "",
3279
- style: { pointerEvents: "auto", contain: "layout style" },
3280
- onpointerdown: this.onpointerdown,
3281
- onfocusin: this.onfocusin,
3282
- onpointerenter: this.onpointerenter,
3283
- onpointerleave: this.onpointerleave,
3284
- ...this.attachment
3285
- }));
3286
- get props() {
3287
- return this.#props();
3288
- }
3289
- set props($$value) {
3290
- return this.#props($$value);
3291
- }
3292
- popperProps = {
3293
- onInteractOutside: this.onInteractOutside,
3294
- onEscapeKeydown: this.onEscapeKeydown
3295
- };
3296
- }
3297
- function Popover_content($$renderer, $$props) {
3298
- $$renderer.component(($$renderer2) => {
3299
- const uid = props_id($$renderer2);
3300
- let {
3301
- child,
3302
- children,
3303
- ref = null,
3304
- id = createId(uid),
3305
- forceMount = false,
3306
- onOpenAutoFocus = noop,
3307
- onCloseAutoFocus = noop,
3308
- onEscapeKeydown = noop,
3309
- onInteractOutside = noop,
3310
- trapFocus = true,
3311
- preventScroll = false,
3312
- customAnchor = null,
3313
- style,
3314
- $$slots,
3315
- $$events,
3316
- ...restProps
3317
- } = $$props;
3318
- const contentState = PopoverContentState.create({
3319
- id: boxWith(() => id),
3320
- ref: boxWith(() => ref, (v) => ref = v),
3321
- onInteractOutside: boxWith(() => onInteractOutside),
3322
- onEscapeKeydown: boxWith(() => onEscapeKeydown),
3323
- customAnchor: boxWith(() => customAnchor)
3324
- });
3325
- const mergedProps = derived(() => mergeProps(restProps, contentState.props));
3326
- const effectiveTrapFocus = derived(() => trapFocus && contentState.shouldTrapFocus);
3327
- function handleOpenAutoFocus(e) {
3328
- if (!contentState.shouldTrapFocus) {
3329
- e.preventDefault();
3330
- }
3331
- onOpenAutoFocus(e);
3332
- }
3333
- if (forceMount) {
3334
- $$renderer2.push("<!--[0-->");
3335
- {
3336
- let popper = function($$renderer3, { props, wrapperProps }) {
3337
- const finalProps = mergeProps(props, { style: getFloatingContentCSSVars("popover") }, { style });
3338
- if (child) {
3339
- $$renderer3.push("<!--[0-->");
3340
- child($$renderer3, {
3341
- props: finalProps,
3342
- wrapperProps,
3343
- ...contentState.snippetProps
3344
- });
3345
- $$renderer3.push(`<!---->`);
3346
- } else {
3347
- $$renderer3.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
3348
- children?.($$renderer3);
3349
- $$renderer3.push(`<!----></div></div>`);
3350
- }
3351
- $$renderer3.push(`<!--]-->`);
3352
- };
3353
- Popper_layer_force_mount($$renderer2, spread_props([
3354
- mergedProps(),
3355
- contentState.popperProps,
3356
- {
3357
- ref: contentState.opts.ref,
3358
- enabled: contentState.root.opts.open.current,
3359
- id,
3360
- trapFocus: effectiveTrapFocus(),
3361
- preventScroll,
3362
- loop: true,
3363
- forceMount: true,
3364
- customAnchor,
3365
- onOpenAutoFocus: handleOpenAutoFocus,
3366
- onCloseAutoFocus,
3367
- shouldRender: contentState.shouldRender,
3368
- popper,
3369
- $$slots: { popper: true }
3370
- }
3371
- ]));
3372
- }
3373
- } else if (!forceMount) {
3374
- $$renderer2.push("<!--[1-->");
3375
- {
3376
- let popper = function($$renderer3, { props, wrapperProps }) {
3377
- const finalProps = mergeProps(props, { style: getFloatingContentCSSVars("popover") }, { style });
3378
- if (child) {
3379
- $$renderer3.push("<!--[0-->");
3380
- child($$renderer3, {
3381
- props: finalProps,
3382
- wrapperProps,
3383
- ...contentState.snippetProps
3384
- });
3385
- $$renderer3.push(`<!---->`);
3386
- } else {
3387
- $$renderer3.push(`<!--[-1--><div${attributes({ ...wrapperProps })}><div${attributes({ ...finalProps })}>`);
3388
- children?.($$renderer3);
3389
- $$renderer3.push(`<!----></div></div>`);
3390
- }
3391
- $$renderer3.push(`<!--]-->`);
3392
- };
3393
- Popper_layer($$renderer2, spread_props([
3394
- mergedProps(),
3395
- contentState.popperProps,
3396
- {
3397
- ref: contentState.opts.ref,
3398
- open: contentState.root.opts.open.current,
3399
- id,
3400
- trapFocus: effectiveTrapFocus(),
3401
- preventScroll,
3402
- loop: true,
3403
- forceMount: false,
3404
- customAnchor,
3405
- onOpenAutoFocus: handleOpenAutoFocus,
3406
- onCloseAutoFocus,
3407
- shouldRender: contentState.shouldRender,
3408
- popper,
3409
- $$slots: { popper: true }
3410
- }
3411
- ]));
3412
- }
3413
- } else {
3414
- $$renderer2.push("<!--[-1-->");
3415
- }
3416
- $$renderer2.push(`<!--]-->`);
3417
- bind_props($$props, { ref });
3418
- });
3419
- }
3420
- function Popover_trigger($$renderer, $$props) {
3421
- $$renderer.component(($$renderer2) => {
3422
- const uid = props_id($$renderer2);
3423
- let {
3424
- children,
3425
- child,
3426
- id = createId(uid),
3427
- ref = null,
3428
- type = "button",
3429
- disabled = false,
3430
- openOnHover = false,
3431
- openDelay = 700,
3432
- closeDelay = 300,
3433
- $$slots,
3434
- $$events,
3435
- ...restProps
3436
- } = $$props;
3437
- const triggerState = PopoverTriggerState.create({
3438
- id: boxWith(() => id),
3439
- ref: boxWith(() => ref, (v) => ref = v),
3440
- disabled: boxWith(() => Boolean(disabled)),
3441
- openOnHover: boxWith(() => openOnHover),
3442
- openDelay: boxWith(() => openDelay),
3443
- closeDelay: boxWith(() => closeDelay)
3444
- });
3445
- const mergedProps = derived(() => mergeProps(restProps, triggerState.props, { type }));
3446
- Floating_layer_anchor($$renderer2, {
3447
- id,
3448
- ref: triggerState.opts.ref,
3449
- children: ($$renderer3) => {
3450
- if (child) {
3451
- $$renderer3.push("<!--[0-->");
3452
- child($$renderer3, { props: mergedProps() });
3453
- $$renderer3.push(`<!---->`);
3454
- } else {
3455
- $$renderer3.push(`<!--[-1--><button${attributes({ ...mergedProps() })}>`);
3456
- children?.($$renderer3);
3457
- $$renderer3.push(`<!----></button>`);
3458
- }
3459
- $$renderer3.push(`<!--]-->`);
3460
- }
3461
- });
3462
- bind_props($$props, { ref });
3463
- });
3464
- }
3465
- function Popover($$renderer, $$props) {
3466
- $$renderer.component(($$renderer2) => {
3467
- let {
3468
- open = false,
3469
- onOpenChange = noop,
3470
- onOpenChangeComplete = noop,
3471
- children
3472
- } = $$props;
3473
- PopoverRootState.create({
3474
- open: boxWith(() => open, (v) => {
3475
- open = v;
3476
- onOpenChange(v);
3477
- }),
3478
- onOpenChangeComplete: boxWith(() => onOpenChangeComplete)
3479
- });
3480
- Floating_layer($$renderer2, {
3481
- children: ($$renderer3) => {
3482
- children?.($$renderer3);
3483
- $$renderer3.push(`<!---->`);
3484
- }
3485
- });
3486
- bind_props($$props, { open });
3487
- });
3488
- }
3489
- const SLACK_MS = 2 * 6e4;
3490
- const escape = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3491
- function mentions(text, task) {
3492
- if (new RegExp(`(?<![\\w-])${escape(task.id)}(?![\\w-])`).test(text)) return true;
3493
- const urls = [task.pr?.url, task.preview?.url].filter((u) => !!u).map((u) => u.replace(/\/+$/, ""));
3494
- return urls.some((u) => new RegExp(`${escape(u)}(?![\\w-])`).test(text));
3495
- }
3496
- const time = (s) => {
3497
- const t = s ? Date.parse(s) : NaN;
3498
- return Number.isNaN(t) ? null : t;
3499
- };
3500
- function previewCards(items, tasks) {
3501
- const out = /* @__PURE__ */ new Map();
3502
- for (const task of tasks) {
3503
- if (!task.preview) continue;
3504
- const reported = time(task.preview.reportedAt);
3505
- const landed = task.status === "landed";
3506
- const merged = landed ? time(task.mergedAt) : null;
3507
- let first = null;
3508
- let since = null;
3509
- for (const it of items) {
3510
- if (it.kind !== "turn") continue;
3511
- const at = time(it.at);
3512
- if (reported !== null && (at === null || at < reported - SLACK_MS)) continue;
3513
- const part = it.parts.find((p) => p.kind === "text" && mentions(p.text, task));
3514
- if (!part) continue;
3515
- first ??= part.id;
3516
- if (landed && (merged === null || at !== null && at >= merged - SLACK_MS)) {
3517
- since = part.id;
3518
- break;
3519
- }
3520
- }
3521
- const anchor = since ?? first;
3522
- if (!anchor) continue;
3523
- out.set(anchor, [...out.get(anchor) ?? [], { task, landed }]);
3524
- }
3525
- return out;
3526
- }
3527
- function chipLabel(r, max = 34) {
3528
- const title = r.title.length > max ? `${r.title.slice(0, max - 1)}…` : r.title;
3529
- const num = r.url?.match(/\/pull\/(\d+)/)?.[1];
3530
- return r.kind === "pr" ? `PR${num ? ` #${num}` : ""} ${title}` : `# ${title}`;
3531
- }
3532
- const EXPANDED = /\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;
3533
- function parseRefs(text) {
3534
- const out = [];
3535
- let at = 0;
3536
- for (const m of text.matchAll(EXPANDED)) {
3537
- if (m.index > at) out.push(text.slice(at, m.index));
3538
- out.push({
3539
- kind: m[1] ? "pr" : "task",
3540
- id: m[3] ? `${m[2]}@${m[3]}` : m[2],
3541
- title: m[4].trim(),
3542
- project: null,
3543
- url: m[1] ?? null
3544
- });
3545
- at = m.index + m[0].length;
3546
- }
3547
- if (at < text.length) out.push(text.slice(at));
3548
- return out;
3549
- }
3550
- const SNIPPET_MAX = 140;
3551
- function plain(text) {
3552
- const md = text.replace(/```[^\n]*\n([\s\S]*?)```/g, "$1").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm, "").replace(/(\*\*|__|~~|`)/g, "").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g, "$1$2");
3553
- return parseRefs(md).map((p) => typeof p === "string" ? p : chipLabel(p, 60)).join("").replace(/\s+/g, " ").trim();
3554
- }
3555
- function snippetOf(text, max = SNIPPET_MAX) {
3556
- const line = plain(text);
3557
- if (line.length <= max) return line;
3558
- const cut = line.slice(0, max - 1);
3559
- const space = cut.lastIndexOf(" ");
3560
- return `${(space > max / 2 ? cut.slice(0, space) : cut).replace(/[\s.,;:]+$/, "")}…`;
3561
- }
3562
- const QUOTED = /^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;
3563
- function parseReply(text) {
3564
- const m = text.replace(/\r\n?/g, "\n").match(QUOTED);
3565
- if (!m || !m[3].trim()) return { to: null, body: text };
3566
- return {
3567
- to: { who: m[1] === "Firstmate" ? "firstmate" : "captain", snippet: m[2] },
3568
- body: m[3]
3569
- };
3570
- }
3571
- function quotes(to, text) {
3572
- const line = plain(text);
3573
- if (!line) return false;
3574
- const s = to.snippet.endsWith("…") ? to.snippet.slice(0, -1) : to.snippet;
3575
- return to.snippet.endsWith("…") ? line.startsWith(s) : line === s;
3576
- }
3577
- const UNSORTED = "unsorted";
3578
- const UNSORTED_TAG = { topic: UNSORTED, source: null };
3579
- const MARKER = /^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i;
3580
- const FENCE = /^\s{0,3}(`{3,}|~{3,})/;
3581
- function parseMarkers(text) {
3582
- const out = [];
3583
- let slug = null;
3584
- let lines = [];
3585
- let fence = null;
3586
- const flush = () => {
3587
- const t = lines.join("\n").trim();
3588
- if (t) out.push({ slug, text: t });
3589
- lines = [];
3590
- };
3591
- for (const line of text.split("\n")) {
3592
- const f = line.match(FENCE)?.[1];
3593
- if (f && (!fence || f[0] === fence[0])) fence = fence ? null : f;
3594
- const m = fence ? null : line.match(MARKER);
3595
- if (m) {
3596
- flush();
3597
- slug = m[1];
3598
- } else lines.push(line);
3599
- }
3600
- flush();
3601
- if (!out.length && !text.trim()) return [];
3602
- return out.length ? out : [{ slug, text: "" }];
3603
- }
3604
- const PREFIX = /^\[project ([^\]\s]+)\][ \u00a0]?/;
3605
- function parseThread(text) {
3606
- const m = text.match(PREFIX);
3607
- return m ? { topic: m[1], text: text.slice(m[0].length) } : { topic: null, text };
3608
- }
3609
- const slugify = (s) => s.trim().toLowerCase().replace(/[^a-z0-9.]+/g, "-").replace(/^-+|-+$/g, "");
3610
- function resolveTopic(slug, projects) {
3611
- const s = slug.trim().toLowerCase();
3612
- const key = slugify(slug);
3613
- const p = projects.find((x) => x.id.toLowerCase() === s) ?? projects.find((x) => x.name.toLowerCase() === s) ?? projects.find((x) => slugify(x.id) === key || slugify(x.name) === key);
3614
- return p ? p.id : key || UNSORTED;
3615
- }
3616
- function topicName(slug) {
3617
- const words = slug.replace(/[-_]+/g, " ").trim();
3618
- return words ? words[0].toUpperCase() + words.slice(1) : slug;
3619
- }
3620
- function guessed(text, tasks) {
3621
- let found = null;
3622
- for (const t of tasks) {
3623
- if (!t.projectId || t.projectId === "unassigned" || t.projectId === found) continue;
3624
- if (!mentions(text, t)) continue;
3625
- if (found) return null;
3626
- found = t.projectId;
3627
- }
3628
- return found;
3629
- }
3630
- function tagChat(items, tasks, projects, retags = {}) {
3631
- const users = /* @__PURE__ */ new Map();
3632
- const parts = /* @__PURE__ */ new Map();
3633
- const turns = /* @__PURE__ */ new Map();
3634
- const guess = (text) => {
3635
- const p = guessed(text, tasks);
3636
- return p ? { topic: p, source: "guess" } : null;
3637
- };
3638
- const own = (key, tag) => retags[key] ? { topic: retags[key], source: retags[key] === UNSORTED ? null : "you" } : tag;
3639
- let lastCaptain = null;
3640
- for (const it of items) {
3641
- if (it.kind === "user") {
3642
- const sent = parseThread(parseReply(it.text).body);
3643
- const tag = sent.topic ? { topic: resolveTopic(sent.topic, projects), source: "thread" } : guess(sent.text) ?? UNSORTED_TAG;
3644
- const final = own(it.id, tag);
3645
- users.set(it.id, final);
3646
- lastCaptain = final;
3647
- continue;
3648
- }
3649
- if (it.kind !== "turn") continue;
3650
- let carry = null;
3651
- const asked = it.trigger === "captain" && lastCaptain?.source ? lastCaptain : null;
3652
- for (const part of it.parts) {
3653
- if (part.kind !== "text") continue;
3654
- const sections = parseMarkers(part.text);
3655
- const out = sections.map((s, i) => {
3656
- let tag;
3657
- if (s.slug) tag = { topic: resolveTopic(s.slug, projects), source: "marker" };
3658
- else if (carry?.source === "marker") tag = carry;
3659
- else
3660
- tag = guess(s.text) ?? carry ?? (asked && { ...asked, source: "guess" }) ?? UNSORTED_TAG;
3661
- if (tag.source) carry = tag;
3662
- const intro = i === 0 && !s.slug && sections.length > 1;
3663
- return { key: i ? `${part.id}#${i}` : part.id, text: s.text, tag, intro };
3664
- });
3665
- const final = out.map((s) => ({ ...s, tag: own(s.key, s.tag) }));
3666
- parts.set(part.id, final);
3667
- const lead = final.find((x) => !x.intro);
3668
- if (!turns.has(it.id) && lead) turns.set(it.id, lead.tag);
3669
- }
3670
- if (!turns.has(it.id))
3671
- turns.set(it.id, own(`turn:${it.id}`, asked ? { ...asked, source: "guess" } : UNSORTED_TAG));
3672
- }
3673
- return { users, parts, turns };
3674
- }
3675
- function cardTag(key, projectId, source, retags = {}) {
3676
- const mine = retags[key];
3677
- if (mine) return { topic: mine, source: mine === UNSORTED ? null : "you" };
3678
- return projectId && projectId !== "unassigned" ? { topic: projectId, source } : UNSORTED_TAG;
3679
- }
3680
- function threadRows(entries, keep = null) {
3681
- const rows = /* @__PURE__ */ new Map();
3682
- for (const e of entries) {
3683
- const at = e.at ? Date.parse(e.at) : NaN;
3684
- for (const topic of new Set(e.topics)) {
3685
- const r = rows.get(topic) ?? { topic, count: 0, needs: 0, last: 0 };
3686
- r.count++;
3687
- if (e.needs) r.needs++;
3688
- if (!Number.isNaN(at)) r.last = Math.max(r.last, at);
3689
- rows.set(topic, r);
3690
- }
3691
- }
3692
- if (keep && !rows.has(keep)) rows.set(keep, { topic: keep, count: 0, needs: 0, last: 0 });
3693
- return [...rows.values()].sort(
3694
- (a, b) => Number(a.topic === UNSORTED) - Number(b.topic === UNSORTED) || b.last - a.last || a.topic.localeCompare(b.topic)
3695
- );
3696
- }
3697
- function foldRuns(entries, thread) {
3698
- const out = /* @__PURE__ */ new Map();
3699
- let run = null;
3700
- for (const e of entries) {
3701
- if (e.topics.includes(thread)) {
3702
- run = null;
3703
- continue;
3704
- }
3705
- if (!run) run = { first: e.key, count: 0, topics: [], from: e.at, to: e.at };
3706
- run.count++;
3707
- run.to = e.at ?? run.to;
3708
- for (const t of e.topics) if (!run.topics.includes(t)) run.topics.push(t);
3709
- out.set(e.key, run);
3710
- }
3711
- return out;
3712
- }
3713
-
3714
- export { Bell as B, Floating_layer as F, Gauge as G, Puzzle as P, SafePolygon as S, UNSORTED as U, Popover as a, Popover_trigger as b, Popover_content as c, Floating_layer_anchor as d, Popper_layer_force_mount as e, Popper_layer as f, getFloatingContentCSSVars as g, FloatingArrowState as h, parseThread as i, UNSORTED_TAG as j, foldRuns as k, tagChat as l, parseRefs as m, chipLabel as n, parseMarkers as o, parseReply as p, quotes as q, previewCards as r, cardTag as s, topicName as t, threadRows as u, snippetOf as v };
3715
- //# sourceMappingURL=topics.js-CPoxwdi2.js.map