@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
@@ -0,0 +1,2776 @@
1
+ import { af as hasContext, a3 as getContext, Z as setContext, _ as derived, ag as getAllContexts, ah as run, ai as ATTACHMENT_KEY, a4 as clsx } from './index.js-jKxghqQY.js';
2
+ import { t as tick, m as mount, u as unmount } from './index-server.js-VQAqdywx.js';
3
+ import { o as on } from './root.js-B4TT3ryq.js';
4
+ import { c as createSubscriber, S as SvelteMap } from './index-server2.js-DsObimPA.js';
5
+
6
+ // http://www.w3.org/TR/CSS21/grammar.html
7
+ // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
8
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
9
+
10
+ var NEWLINE_REGEX = /\n/g;
11
+ var WHITESPACE_REGEX = /^\s*/;
12
+
13
+ // declaration
14
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
15
+ var COLON_REGEX = /^:\s*/;
16
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
17
+ var SEMICOLON_REGEX = /^[;\s]*/;
18
+
19
+ // https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill
20
+ var TRIM_REGEX = /^\s+|\s+$/g;
21
+
22
+ // strings
23
+ var NEWLINE = '\n';
24
+ var FORWARD_SLASH = '/';
25
+ var ASTERISK = '*';
26
+ var EMPTY_STRING = '';
27
+
28
+ // types
29
+ var TYPE_COMMENT = 'comment';
30
+ var TYPE_DECLARATION = 'declaration';
31
+
32
+ /**
33
+ * @param {String} style
34
+ * @param {Object} [options]
35
+ * @return {Object[]}
36
+ * @throws {TypeError}
37
+ * @throws {Error}
38
+ */
39
+ function index (style, options) {
40
+ if (typeof style !== 'string') {
41
+ throw new TypeError('First argument must be a string');
42
+ }
43
+
44
+ if (!style) return [];
45
+
46
+ options = options || {};
47
+
48
+ /**
49
+ * Positional.
50
+ */
51
+ var lineno = 1;
52
+ var column = 1;
53
+
54
+ /**
55
+ * Update lineno and column based on `str`.
56
+ *
57
+ * @param {String} str
58
+ */
59
+ function updatePosition(str) {
60
+ var lines = str.match(NEWLINE_REGEX);
61
+ if (lines) lineno += lines.length;
62
+ var i = str.lastIndexOf(NEWLINE);
63
+ column = ~i ? str.length - i : column + str.length;
64
+ }
65
+
66
+ /**
67
+ * Mark position and patch `node.position`.
68
+ *
69
+ * @return {Function}
70
+ */
71
+ function position() {
72
+ var start = { line: lineno, column: column };
73
+ return function (node) {
74
+ node.position = new Position(start);
75
+ whitespace();
76
+ return node;
77
+ };
78
+ }
79
+
80
+ /**
81
+ * Store position information for a node.
82
+ *
83
+ * @constructor
84
+ * @property {Object} start
85
+ * @property {Object} end
86
+ * @property {undefined|String} source
87
+ */
88
+ function Position(start) {
89
+ this.start = start;
90
+ this.end = { line: lineno, column: column };
91
+ this.source = options.source;
92
+ }
93
+
94
+ /**
95
+ * Non-enumerable source string.
96
+ */
97
+ Position.prototype.content = style;
98
+
99
+ /**
100
+ * Error `msg`.
101
+ *
102
+ * @param {String} msg
103
+ * @throws {Error}
104
+ */
105
+ function error(msg) {
106
+ var err = new Error(
107
+ options.source + ':' + lineno + ':' + column + ': ' + msg
108
+ );
109
+ err.reason = msg;
110
+ err.filename = options.source;
111
+ err.line = lineno;
112
+ err.column = column;
113
+ err.source = style;
114
+
115
+ if (options.silent) ; else {
116
+ throw err;
117
+ }
118
+ }
119
+
120
+ /**
121
+ * Match `re` and return captures.
122
+ *
123
+ * @param {RegExp} re
124
+ * @return {undefined|Array}
125
+ */
126
+ function match(re) {
127
+ var m = re.exec(style);
128
+ if (!m) return;
129
+ var str = m[0];
130
+ updatePosition(str);
131
+ style = style.slice(str.length);
132
+ return m;
133
+ }
134
+
135
+ /**
136
+ * Parse whitespace.
137
+ */
138
+ function whitespace() {
139
+ match(WHITESPACE_REGEX);
140
+ }
141
+
142
+ /**
143
+ * Parse comments.
144
+ *
145
+ * @param {Object[]} [rules]
146
+ * @return {Object[]}
147
+ */
148
+ function comments(rules) {
149
+ var c;
150
+ rules = rules || [];
151
+ while ((c = comment())) {
152
+ if (c !== false) {
153
+ rules.push(c);
154
+ }
155
+ }
156
+ return rules;
157
+ }
158
+
159
+ /**
160
+ * Parse comment.
161
+ *
162
+ * @return {Object}
163
+ * @throws {Error}
164
+ */
165
+ function comment() {
166
+ var pos = position();
167
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
168
+
169
+ var i = 2;
170
+ while (
171
+ EMPTY_STRING != style.charAt(i) &&
172
+ (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))
173
+ ) {
174
+ ++i;
175
+ }
176
+ i += 2;
177
+
178
+ if (EMPTY_STRING === style.charAt(i - 1)) {
179
+ return error('End of comment missing');
180
+ }
181
+
182
+ var str = style.slice(2, i - 2);
183
+ column += 2;
184
+ updatePosition(str);
185
+ style = style.slice(i);
186
+ column += 2;
187
+
188
+ return pos({
189
+ type: TYPE_COMMENT,
190
+ comment: str
191
+ });
192
+ }
193
+
194
+ /**
195
+ * Parse declaration.
196
+ *
197
+ * @return {Object}
198
+ * @throws {Error}
199
+ */
200
+ function declaration() {
201
+ var pos = position();
202
+
203
+ // prop
204
+ var prop = match(PROPERTY_REGEX);
205
+ if (!prop) return;
206
+ comment();
207
+
208
+ // :
209
+ if (!match(COLON_REGEX)) return error("property missing ':'");
210
+
211
+ // val
212
+ var val = match(VALUE_REGEX);
213
+
214
+ var ret = pos({
215
+ type: TYPE_DECLARATION,
216
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
217
+ value: val
218
+ ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))
219
+ : EMPTY_STRING
220
+ });
221
+
222
+ // ;
223
+ match(SEMICOLON_REGEX);
224
+
225
+ return ret;
226
+ }
227
+
228
+ /**
229
+ * Parse declarations.
230
+ *
231
+ * @return {Object[]}
232
+ */
233
+ function declarations() {
234
+ var decls = [];
235
+
236
+ comments(decls);
237
+
238
+ // declarations
239
+ var decl;
240
+ while ((decl = declaration())) {
241
+ if (decl !== false) {
242
+ decls.push(decl);
243
+ comments(decls);
244
+ }
245
+ }
246
+
247
+ return decls;
248
+ }
249
+
250
+ whitespace();
251
+ return declarations();
252
+ }
253
+
254
+ /**
255
+ * Trim `str`.
256
+ *
257
+ * @param {String} str
258
+ * @return {String}
259
+ */
260
+ function trim(str) {
261
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
262
+ }
263
+
264
+ /**
265
+ * Parses inline style to object.
266
+ *
267
+ * @param style - Inline style.
268
+ * @param iterator - Iterator.
269
+ * @returns - Style object or null.
270
+ *
271
+ * @example Parsing inline style to object:
272
+ *
273
+ * ```js
274
+ * import parse from 'style-to-object';
275
+ * parse('line-height: 42;'); // { 'line-height': '42' }
276
+ * ```
277
+ */
278
+ function StyleToObject(style, iterator) {
279
+ let styleObject = null;
280
+ if (!style || typeof style !== 'string') {
281
+ return styleObject;
282
+ }
283
+ const declarations = index(style);
284
+ const hasIterator = typeof iterator === 'function';
285
+ declarations.forEach((declaration) => {
286
+ if (declaration.type !== 'declaration') {
287
+ return;
288
+ }
289
+ const { property, value } = declaration;
290
+ if (hasIterator) {
291
+ iterator(property, value, declaration);
292
+ }
293
+ else if (value) {
294
+ styleObject = styleObject || {};
295
+ styleObject[property] = value;
296
+ }
297
+ });
298
+ return styleObject;
299
+ }
300
+
301
+ /*!
302
+ * tabbable 6.5.0
303
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
304
+ */
305
+ // NOTE: separate `:not()` selectors has broader browser support than the newer
306
+ // `:not([inert], [inert] *)` (Feb 2023)
307
+ var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'area[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
308
+ var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
309
+ var NoElement = typeof Element === 'undefined';
310
+ var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
311
+ var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
312
+ var _element$getRootNode;
313
+ return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
314
+ } : function (element) {
315
+ return element === null || element === void 0 ? void 0 : element.ownerDocument;
316
+ };
317
+
318
+ /**
319
+ * Determines if a node is inert or in an inert ancestor.
320
+ * @param {Node} [node]
321
+ * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
322
+ * see if any of them are inert. If false, only `node` itself is considered.
323
+ * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
324
+ * False if `node` is falsy.
325
+ */
326
+ var _isInert = function isInert(node, lookUp) {
327
+ var _node$getAttribute;
328
+ if (lookUp === void 0) {
329
+ lookUp = true;
330
+ }
331
+ // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
332
+ // JS API property; we have to check the attribute, which can either be empty or 'true';
333
+ // if it's `null` (not specified) or 'false', it's an active element
334
+ var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
335
+ var inert = inertAtt === '' || inertAtt === 'true';
336
+
337
+ // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
338
+ // if it weren't for `matches()` not being a function on shadow roots; the following
339
+ // code works for any kind of node
340
+ var result = inert || lookUp && node && (
341
+ // closest does not exist on shadow roots, so we fall back to a manual
342
+ // lookup upward, in case it is not defined.
343
+ typeof node.closest === 'function' ? node.closest('[inert]') : _isInert(node.parentNode));
344
+ return result;
345
+ };
346
+
347
+ /**
348
+ * Determines if a node's content is editable.
349
+ * @param {Element} [node]
350
+ * @returns True if it's content-editable; false if it's not or `node` is falsy.
351
+ */
352
+ var isContentEditable = function isContentEditable(node) {
353
+ var _node$getAttribute2;
354
+ // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
355
+ // to use the attribute directly to check for this, which can either be empty or 'true';
356
+ // if it's `null` (not specified) or 'false', it's a non-editable element
357
+ var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
358
+ return attValue === '' || attValue === 'true';
359
+ };
360
+
361
+ /**
362
+ * @param {Element} el container to check in
363
+ * @param {boolean} includeContainer add container to check
364
+ * @param {(node: Element) => boolean} filter filter candidates
365
+ * @returns {Element[]}
366
+ */
367
+ var getCandidates = function getCandidates(el, includeContainer, filter) {
368
+ // even if `includeContainer=false`, we still have to check it for inertness because
369
+ // if it's inert (either by itself or via its parent), then all its children are inert
370
+ if (_isInert(el)) {
371
+ return [];
372
+ }
373
+ var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
374
+ if (includeContainer && matches.call(el, candidateSelector)) {
375
+ candidates.unshift(el);
376
+ }
377
+ candidates = candidates.filter(filter);
378
+ return candidates;
379
+ };
380
+
381
+ /**
382
+ * @callback GetShadowRoot
383
+ * @param {Element} element to check for shadow root
384
+ * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
385
+ */
386
+
387
+ /**
388
+ * @callback ShadowRootFilter
389
+ * @param {Element} shadowHostNode the element which contains shadow content
390
+ * @returns {boolean} true if a shadow root could potentially contain valid candidates.
391
+ */
392
+
393
+ /**
394
+ * @typedef {Object} CandidateScope
395
+ * @property {Element} scopeParent contains inner candidates
396
+ * @property {Element[]} candidates list of candidates found in the scope parent
397
+ */
398
+
399
+ /**
400
+ * @typedef {Object} IterativeOptions
401
+ * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
402
+ * if a function, implies shadow support is enabled and either returns the shadow root of an element
403
+ * or a boolean stating if it has an undisclosed shadow root
404
+ * @property {(node: Element) => boolean} filter filter candidates
405
+ * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
406
+ * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
407
+ */
408
+
409
+ /**
410
+ * @param {Element[]} elements list of element containers to match candidates from
411
+ * @param {boolean} includeContainer add container list to check
412
+ * @param {IterativeOptions} options
413
+ * @returns {Array.<Element|CandidateScope>}
414
+ */
415
+ var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
416
+ var candidates = [];
417
+ var elementsToCheck = Array.from(elements);
418
+ while (elementsToCheck.length) {
419
+ var element = elementsToCheck.shift();
420
+ if (_isInert(element, false)) {
421
+ // no need to look up since we're drilling down
422
+ // anything inside this container will also be inert
423
+ continue;
424
+ }
425
+ if (element.tagName === 'SLOT') {
426
+ // add shadow dom slot scope (slot itself cannot be focusable)
427
+ var assigned = element.assignedElements();
428
+ var content = assigned.length ? assigned : element.children;
429
+ var nestedCandidates = _getCandidatesIteratively(content, true, options);
430
+ if (options.flatten) {
431
+ candidates.push.apply(candidates, nestedCandidates);
432
+ } else {
433
+ candidates.push({
434
+ scopeParent: element,
435
+ candidates: nestedCandidates
436
+ });
437
+ }
438
+ } else {
439
+ // check candidate element
440
+ var validCandidate = matches.call(element, candidateSelector);
441
+ if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
442
+ candidates.push(element);
443
+ }
444
+
445
+ // iterate over shadow content if possible
446
+ var shadowRoot = element.shadowRoot ||
447
+ // check for an undisclosed shadow
448
+ typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
449
+
450
+ // no inert look up because we're already drilling down and checking for inertness
451
+ // on the way down, so all containers to this root node should have already been
452
+ // vetted as non-inert
453
+ var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
454
+ if (shadowRoot && validShadowRoot) {
455
+ // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
456
+ // shadow exists, so look at light dom children as fallback BUT create a scope for any
457
+ // child candidates found because they're likely slotted elements (elements that are
458
+ // children of the web component element (which has the shadow), in the light dom, but
459
+ // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
460
+ // _after_ we return from this recursive call
461
+ var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
462
+ if (options.flatten) {
463
+ candidates.push.apply(candidates, _nestedCandidates);
464
+ } else {
465
+ candidates.push({
466
+ scopeParent: element,
467
+ candidates: _nestedCandidates
468
+ });
469
+ }
470
+ } else {
471
+ // there's not shadow so just dig into the element's (light dom) children
472
+ // __without__ giving the element special scope treatment
473
+ elementsToCheck.unshift.apply(elementsToCheck, element.children);
474
+ }
475
+ }
476
+ }
477
+ return candidates;
478
+ };
479
+
480
+ /**
481
+ * @private
482
+ * Determines if the node has an explicitly specified `tabindex` attribute.
483
+ * @param {HTMLElement} node
484
+ * @returns {boolean} True if so; false if not.
485
+ */
486
+ var hasTabIndex = function hasTabIndex(node) {
487
+ return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
488
+ };
489
+
490
+ /**
491
+ * Determine the tab index of a given node.
492
+ * @param {HTMLElement} node
493
+ * @returns {number} Tab order (negative, 0, or positive number).
494
+ * @throws {Error} If `node` is falsy.
495
+ */
496
+ var getTabIndex = function getTabIndex(node) {
497
+ if (!node) {
498
+ throw new Error('No node provided');
499
+ }
500
+ if (node.tabIndex < 0) {
501
+ // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
502
+ // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
503
+ // yet they are still part of the regular tab order; in FF, they get a default
504
+ // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
505
+ // order, consider their tab index to be 0.
506
+ // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
507
+ // so if they don't have a tabindex attribute specifically set, assume it's 0.
508
+ if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
509
+ return 0;
510
+ }
511
+ }
512
+ return node.tabIndex;
513
+ };
514
+
515
+ /**
516
+ * Determine the tab index of a given node __for sort order purposes__.
517
+ * @param {HTMLElement} node
518
+ * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,
519
+ * has tabIndex -1, but needs to be sorted by document order in order for its content to be
520
+ * inserted into the correct sort position.
521
+ * @returns {number} Tab order (negative, 0, or positive number).
522
+ */
523
+ var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
524
+ var tabIndex = getTabIndex(node);
525
+ if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
526
+ return 0;
527
+ }
528
+ return tabIndex;
529
+ };
530
+ var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
531
+ return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
532
+ };
533
+ var isInput = function isInput(node) {
534
+ return node.tagName === 'INPUT';
535
+ };
536
+ var isHiddenInput = function isHiddenInput(node) {
537
+ return isInput(node) && node.type === 'hidden';
538
+ };
539
+ var isDetailsWithSummary = function isDetailsWithSummary(node) {
540
+ var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
541
+ return child.tagName === 'SUMMARY';
542
+ });
543
+ return r;
544
+ };
545
+ var getCheckedRadio = function getCheckedRadio(nodes, form) {
546
+ for (var i = 0; i < nodes.length; i++) {
547
+ if (nodes[i].checked && nodes[i].form === form) {
548
+ return nodes[i];
549
+ }
550
+ }
551
+ };
552
+ var isTabbableRadio = function isTabbableRadio(node) {
553
+ if (!node.name) {
554
+ return true;
555
+ }
556
+ var radioScope = node.form || getRootNode(node);
557
+ var queryRadios = function queryRadios(name) {
558
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
559
+ };
560
+ var radioSet;
561
+ if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
562
+ radioSet = queryRadios(window.CSS.escape(node.name));
563
+ } else {
564
+ try {
565
+ radioSet = queryRadios(node.name);
566
+ } catch (err) {
567
+ // eslint-disable-next-line no-console
568
+ console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
569
+ return false;
570
+ }
571
+ }
572
+ var checked = getCheckedRadio(radioSet, node.form);
573
+ return !checked || checked === node;
574
+ };
575
+ var isRadio = function isRadio(node) {
576
+ return isInput(node) && node.type === 'radio';
577
+ };
578
+ var isNonTabbableRadio = function isNonTabbableRadio(node) {
579
+ return isRadio(node) && !isTabbableRadio(node);
580
+ };
581
+
582
+ // determines if a node is ultimately attached to the window's document
583
+ var isNodeAttached = function isNodeAttached(node) {
584
+ var _nodeRoot;
585
+ // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
586
+ // (but NOT _the_ document; see second 'If' comment below for more).
587
+ // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
588
+ // is attached, and the one we need to check if it's in the document or not (because the
589
+ // shadow, and all nodes it contains, is never considered in the document since shadows
590
+ // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
591
+ // is hidden, or is not in the document itself but is detached, it will affect the shadow's
592
+ // visibility, including all the nodes it contains). The host could be any normal node,
593
+ // or a custom element (i.e. web component). Either way, that's the one that is considered
594
+ // part of the document, not the shadow root, nor any of its children (i.e. the node being
595
+ // tested).
596
+ // To further complicate things, we have to look all the way up until we find a shadow HOST
597
+ // that is attached (or find none) because the node might be in nested shadows...
598
+ // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
599
+ // document (per the docs) and while it's a Document-type object, that document does not
600
+ // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
601
+ // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
602
+ // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
603
+ // node is actually detached.
604
+ // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
605
+ // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
606
+ // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
607
+ // `ownerDocument` will be `null`, hence the optional chaining on it.
608
+ var nodeRoot = node && getRootNode(node);
609
+ var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
610
+
611
+ // in some cases, a detached node will return itself as the root instead of a document or
612
+ // shadow root object, in which case, we shouldn't try to look further up the host chain
613
+ var attached = false;
614
+ if (nodeRoot && nodeRoot !== node) {
615
+ var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
616
+ attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
617
+ while (!attached && nodeRootHost) {
618
+ var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
619
+ // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
620
+ // which means we need to get the host's host and check if that parent host is contained
621
+ // in (i.e. attached to) the document
622
+ nodeRoot = getRootNode(nodeRootHost);
623
+ nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
624
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
625
+ }
626
+ }
627
+ return attached;
628
+ };
629
+ var isZeroArea = function isZeroArea(node) {
630
+ var _node$getBoundingClie = node.getBoundingClientRect(),
631
+ width = _node$getBoundingClie.width,
632
+ height = _node$getBoundingClie.height;
633
+ return width === 0 && height === 0;
634
+ };
635
+ var isHidden = function isHidden(node, _ref) {
636
+ var displayCheck = _ref.displayCheck,
637
+ getShadowRoot = _ref.getShadowRoot;
638
+ if (displayCheck === 'full-native') {
639
+ if ('checkVisibility' in node) {
640
+ // Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4
641
+ // @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility
642
+ var visible = node.checkVisibility({
643
+ // Checking opacity might be desirable for some use cases, but natively,
644
+ // opacity zero elements _are_ focusable and tabbable.
645
+ checkOpacity: false,
646
+ opacityProperty: false,
647
+ contentVisibilityAuto: true,
648
+ visibilityProperty: true,
649
+ // This is an alias for `visibilityProperty`. Contemporary browsers
650
+ // support both. However, this alias has wider browser support (Chrome
651
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
652
+ // we include it anyway.
653
+ checkVisibilityCSS: true
654
+ });
655
+ return !visible;
656
+ }
657
+ // Fall through to manual visibility checks
658
+ }
659
+
660
+ // NOTE: visibility will be `undefined` if node is detached from the document
661
+ // (see notes about this further down), which means we will consider it visible
662
+ // (this is legacy behavior from a very long way back)
663
+ // NOTE: we check this regardless of `displayCheck="none"` because this is a
664
+ // _visibility_ check, not a _display_ check
665
+ var _getComputedStyle = getComputedStyle(node),
666
+ visibility = _getComputedStyle.visibility;
667
+ if (visibility === 'hidden' || visibility === 'collapse') {
668
+ return true;
669
+ }
670
+ var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
671
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
672
+ if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
673
+ return true;
674
+ }
675
+ if (!displayCheck || displayCheck === 'full' ||
676
+ // full-native can run this branch when it falls through in case
677
+ // Element#checkVisibility is unsupported
678
+ displayCheck === 'full-native' || displayCheck === 'legacy-full') {
679
+ if (typeof getShadowRoot === 'function') {
680
+ // figure out if we should consider the node to be in an undisclosed shadow and use the
681
+ // 'non-zero-area' fallback
682
+ var originalNode = node;
683
+ while (node) {
684
+ var parentElement = node.parentElement;
685
+ var rootNode = getRootNode(node);
686
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
687
+ ) {
688
+ // node has an undisclosed shadow which means we can only treat it as a black box, so we
689
+ // fall back to a non-zero-area test
690
+ return isZeroArea(node);
691
+ } else if (node.assignedSlot) {
692
+ // iterate up slot
693
+ node = node.assignedSlot;
694
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
695
+ // cross shadow boundary
696
+ node = rootNode.host;
697
+ } else {
698
+ // iterate up normal dom
699
+ node = parentElement;
700
+ }
701
+ }
702
+ node = originalNode;
703
+ }
704
+ // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
705
+ // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
706
+ // it might be a falsy value, which means shadow DOM support is disabled
707
+
708
+ // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
709
+ // now we can just test to see if it would normally be visible or not, provided it's
710
+ // attached to the main document.
711
+ // NOTE: We must consider case where node is inside a shadow DOM and given directly to
712
+ // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
713
+
714
+ if (isNodeAttached(node)) {
715
+ // this works wherever the node is: if there's at least one client rect, it's
716
+ // somehow displayed; it also covers the CSS 'display: contents' case where the
717
+ // node itself is hidden in place of its contents; and there's no need to search
718
+ // up the hierarchy either
719
+ return !node.getClientRects().length;
720
+ }
721
+
722
+ // Else, the node isn't attached to the document, which means the `getClientRects()`
723
+ // API will __always__ return zero rects (this can happen, for example, if React
724
+ // is used to render nodes onto a detached tree, as confirmed in this thread:
725
+ // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
726
+ //
727
+ // It also means that even window.getComputedStyle(node).display will return `undefined`
728
+ // because styles are only computed for nodes that are in the document.
729
+ //
730
+ // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
731
+ // somehow. Though it was never stated officially, anyone who has ever used tabbable
732
+ // APIs on nodes in detached containers has actually implicitly used tabbable in what
733
+ // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
734
+ // considering __everything__ to be visible because of the innability to determine styles.
735
+ //
736
+ // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
737
+ // nodes as visible with the 'none' fallback.__
738
+ if (displayCheck !== 'legacy-full') {
739
+ return true; // hidden
740
+ }
741
+ // else, fallback to 'none' mode and consider the node visible
742
+ } else if (displayCheck === 'non-zero-area') {
743
+ // NOTE: Even though this tests that the node's client rect is non-zero to determine
744
+ // whether it's displayed, and that a detached node will __always__ have a zero-area
745
+ // client rect, we don't special-case for whether the node is attached or not. In
746
+ // this mode, we do want to consider nodes that have a zero area to be hidden at all
747
+ // times, and that includes attached or not.
748
+ return isZeroArea(node);
749
+ }
750
+
751
+ // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
752
+ // it's visible
753
+ return false;
754
+ };
755
+
756
+ // form fields (nested) inside a disabled fieldset are not focusable/tabbable
757
+ // unless they are in the _first_ <legend> element of the top-most disabled
758
+ // fieldset
759
+ var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
760
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
761
+ var parentNode = node.parentElement;
762
+ // check if `node` is contained in a disabled <fieldset>
763
+ while (parentNode) {
764
+ if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
765
+ // look for the first <legend> among the children of the disabled <fieldset>
766
+ for (var i = 0; i < parentNode.children.length; i++) {
767
+ var child = parentNode.children.item(i);
768
+ // when the first <legend> (in document order) is found
769
+ if (child.tagName === 'LEGEND') {
770
+ // if its parent <fieldset> is not nested in another disabled <fieldset>,
771
+ // return whether `node` is a descendant of its first <legend>
772
+ return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
773
+ }
774
+ }
775
+ // the disabled <fieldset> containing `node` has no <legend>
776
+ return true;
777
+ }
778
+ parentNode = parentNode.parentElement;
779
+ }
780
+ }
781
+
782
+ // else, node's tabbable/focusable state should not be affected by a fieldset's
783
+ // enabled/disabled state
784
+ return false;
785
+ };
786
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
787
+ if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
788
+ // For a details element with a summary, the summary element gets the focus
789
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
790
+ return false;
791
+ }
792
+ return true;
793
+ };
794
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
795
+ if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
796
+ return false;
797
+ }
798
+ return true;
799
+ };
800
+ var isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {
801
+ var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
802
+ if (isNaN(tabIndex) || tabIndex >= 0) {
803
+ return true;
804
+ }
805
+ // If a custom element has an explicit negative tabindex,
806
+ // browsers will not allow tab targeting said element's children.
807
+ return false;
808
+ };
809
+
810
+ /**
811
+ * @param {Array.<Element|CandidateScope>} candidates
812
+ * @returns Element[]
813
+ */
814
+ var _sortByOrder = function sortByOrder(candidates) {
815
+ var regularTabbables = [];
816
+ var orderedTabbables = [];
817
+ candidates.forEach(function (item, i) {
818
+ var isScope = !!item.scopeParent;
819
+ var element = isScope ? item.scopeParent : item;
820
+ var candidateTabindex = getSortOrderTabIndex(element, isScope);
821
+ var elements = isScope ? _sortByOrder(item.candidates) : element;
822
+ if (candidateTabindex === 0) {
823
+ isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
824
+ } else {
825
+ orderedTabbables.push({
826
+ documentOrder: i,
827
+ tabIndex: candidateTabindex,
828
+ item: item,
829
+ isScope: isScope,
830
+ content: elements
831
+ });
832
+ }
833
+ });
834
+ return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
835
+ sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
836
+ return acc;
837
+ }, []).concat(regularTabbables);
838
+ };
839
+ var tabbable = function tabbable(container, options) {
840
+ options = options || {};
841
+ var candidates;
842
+ if (options.getShadowRoot) {
843
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
844
+ filter: isNodeMatchingSelectorTabbable.bind(null, options),
845
+ flatten: false,
846
+ getShadowRoot: options.getShadowRoot,
847
+ shadowRootFilter: isShadowRootTabbable
848
+ });
849
+ } else {
850
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
851
+ }
852
+ return _sortByOrder(candidates);
853
+ };
854
+ var focusable = function focusable(container, options) {
855
+ options = options || {};
856
+ var candidates;
857
+ if (options.getShadowRoot) {
858
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
859
+ filter: isNodeMatchingSelectorFocusable.bind(null, options),
860
+ flatten: true,
861
+ getShadowRoot: options.getShadowRoot
862
+ });
863
+ } else {
864
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
865
+ }
866
+ return candidates;
867
+ };
868
+ var isTabbable = function isTabbable(node, options) {
869
+ options = options || {};
870
+ if (!node) {
871
+ throw new Error('No node provided');
872
+ }
873
+ if (matches.call(node, candidateSelector) === false) {
874
+ return false;
875
+ }
876
+ return isNodeMatchingSelectorTabbable(options, node);
877
+ };
878
+ var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe:not([inert]):not([inert] *)').join(',');
879
+ var isFocusable = function isFocusable(node, options) {
880
+ options = options || {};
881
+ if (!node) {
882
+ throw new Error('No node provided');
883
+ }
884
+ if (matches.call(node, focusableCandidateSelector) === false) {
885
+ return false;
886
+ }
887
+ return isNodeMatchingSelectorFocusable(options, node);
888
+ };
889
+
890
+ function isFunction(value) {
891
+ return typeof value === "function";
892
+ }
893
+ function isObject(value) {
894
+ return value !== null && typeof value === "object";
895
+ }
896
+ const CLASS_VALUE_PRIMITIVE_TYPES = ["string", "number", "bigint", "boolean"];
897
+ function isClassValue(value) {
898
+ if (value === null || value === void 0)
899
+ return true;
900
+ if (CLASS_VALUE_PRIMITIVE_TYPES.includes(typeof value))
901
+ return true;
902
+ if (Array.isArray(value))
903
+ return value.every((item) => isClassValue(item));
904
+ if (typeof value === "object") {
905
+ if (Object.getPrototypeOf(value) !== Object.prototype)
906
+ return false;
907
+ return true;
908
+ }
909
+ return false;
910
+ }
911
+ const BoxSymbol = /* @__PURE__ */ Symbol("box");
912
+ const isWritableSymbol = /* @__PURE__ */ Symbol("is-writable");
913
+ function boxWith(getter, setter) {
914
+ const derived$1 = derived(getter);
915
+ if (setter) {
916
+ return {
917
+ [BoxSymbol]: true,
918
+ [isWritableSymbol]: true,
919
+ get current() {
920
+ return derived$1();
921
+ },
922
+ set current(v) {
923
+ setter(v);
924
+ }
925
+ };
926
+ }
927
+ return {
928
+ [BoxSymbol]: true,
929
+ get current() {
930
+ return getter();
931
+ }
932
+ };
933
+ }
934
+ function isBox(value) {
935
+ return isObject(value) && BoxSymbol in value;
936
+ }
937
+ function isWritableBox(value) {
938
+ return isBox(value) && isWritableSymbol in value;
939
+ }
940
+ function boxFrom(value) {
941
+ if (isBox(value)) return value;
942
+ if (isFunction(value)) return boxWith(value);
943
+ return simpleBox(value);
944
+ }
945
+ function boxFlatten(boxes) {
946
+ return Object.entries(boxes).reduce(
947
+ (acc, [key, b]) => {
948
+ if (!isBox(b)) {
949
+ return Object.assign(acc, { [key]: b });
950
+ }
951
+ if (isWritableBox(b)) {
952
+ Object.defineProperty(acc, key, {
953
+ get() {
954
+ return b.current;
955
+ },
956
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
957
+ set(v) {
958
+ b.current = v;
959
+ }
960
+ });
961
+ } else {
962
+ Object.defineProperty(acc, key, {
963
+ get() {
964
+ return b.current;
965
+ }
966
+ });
967
+ }
968
+ return acc;
969
+ },
970
+ {}
971
+ );
972
+ }
973
+ function toReadonlyBox(b) {
974
+ if (!isWritableBox(b)) return b;
975
+ return {
976
+ [BoxSymbol]: true,
977
+ get current() {
978
+ return b.current;
979
+ }
980
+ };
981
+ }
982
+ function simpleBox(initialValue) {
983
+ let current = initialValue;
984
+ return {
985
+ [BoxSymbol]: true,
986
+ [isWritableSymbol]: true,
987
+ get current() {
988
+ return current;
989
+ },
990
+ set current(v) {
991
+ current = v;
992
+ }
993
+ };
994
+ }
995
+ function composeHandlers(...handlers) {
996
+ return function(e) {
997
+ for (const handler of handlers) {
998
+ if (!handler)
999
+ continue;
1000
+ if (e.defaultPrevented)
1001
+ return;
1002
+ if (typeof handler === "function") {
1003
+ handler.call(this, e);
1004
+ } else {
1005
+ handler.current?.call(this, e);
1006
+ }
1007
+ }
1008
+ };
1009
+ }
1010
+ const NUMBER_CHAR_RE = /\d/;
1011
+ const STR_SPLITTERS = ["-", "_", "/", "."];
1012
+ function isUppercase(char = "") {
1013
+ if (NUMBER_CHAR_RE.test(char))
1014
+ return void 0;
1015
+ return char !== char.toLowerCase();
1016
+ }
1017
+ function splitByCase(str) {
1018
+ const parts = [];
1019
+ let buff = "";
1020
+ let previousUpper;
1021
+ let previousSplitter;
1022
+ for (const char of str) {
1023
+ const isSplitter = STR_SPLITTERS.includes(char);
1024
+ if (isSplitter === true) {
1025
+ parts.push(buff);
1026
+ buff = "";
1027
+ previousUpper = void 0;
1028
+ continue;
1029
+ }
1030
+ const isUpper = isUppercase(char);
1031
+ if (previousSplitter === false) {
1032
+ if (previousUpper === false && isUpper === true) {
1033
+ parts.push(buff);
1034
+ buff = char;
1035
+ previousUpper = isUpper;
1036
+ continue;
1037
+ }
1038
+ if (previousUpper === true && isUpper === false && buff.length > 1) {
1039
+ const lastChar = buff.at(-1);
1040
+ parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
1041
+ buff = lastChar + char;
1042
+ previousUpper = isUpper;
1043
+ continue;
1044
+ }
1045
+ }
1046
+ buff += char;
1047
+ previousUpper = isUpper;
1048
+ previousSplitter = isSplitter;
1049
+ }
1050
+ parts.push(buff);
1051
+ return parts;
1052
+ }
1053
+ function pascalCase(str) {
1054
+ if (!str)
1055
+ return "";
1056
+ return splitByCase(str).map((p) => upperFirst(p)).join("");
1057
+ }
1058
+ function camelCase(str) {
1059
+ return lowerFirst(pascalCase(str || ""));
1060
+ }
1061
+ function upperFirst(str) {
1062
+ return str ? str[0].toUpperCase() + str.slice(1) : "";
1063
+ }
1064
+ function lowerFirst(str) {
1065
+ return str ? str[0].toLowerCase() + str.slice(1) : "";
1066
+ }
1067
+ function cssToStyleObj(css) {
1068
+ if (!css)
1069
+ return {};
1070
+ const styleObj = {};
1071
+ function iterator(name, value) {
1072
+ if (name.startsWith("-moz-") || name.startsWith("-webkit-") || name.startsWith("-ms-") || name.startsWith("-o-")) {
1073
+ styleObj[pascalCase(name)] = value;
1074
+ return;
1075
+ }
1076
+ if (name.startsWith("--")) {
1077
+ styleObj[name] = value;
1078
+ return;
1079
+ }
1080
+ styleObj[camelCase(name)] = value;
1081
+ }
1082
+ StyleToObject(css, iterator);
1083
+ return styleObj;
1084
+ }
1085
+ function executeCallbacks(...callbacks) {
1086
+ return (...args) => {
1087
+ for (const callback of callbacks) {
1088
+ if (typeof callback === "function") {
1089
+ callback(...args);
1090
+ }
1091
+ }
1092
+ };
1093
+ }
1094
+ function createParser(matcher, replacer) {
1095
+ const regex = RegExp(matcher, "g");
1096
+ return (str) => {
1097
+ if (typeof str !== "string") {
1098
+ throw new TypeError(`expected an argument of type string, but got ${typeof str}`);
1099
+ }
1100
+ if (!str.match(regex))
1101
+ return str;
1102
+ return str.replace(regex, replacer);
1103
+ };
1104
+ }
1105
+ const camelToKebab = createParser(/[A-Z]/, (match) => `-${match.toLowerCase()}`);
1106
+ function styleToCSS(styleObj) {
1107
+ if (!styleObj || typeof styleObj !== "object" || Array.isArray(styleObj)) {
1108
+ throw new TypeError(`expected an argument of type object, but got ${typeof styleObj}`);
1109
+ }
1110
+ return Object.keys(styleObj).map((property) => `${camelToKebab(property)}: ${styleObj[property]};`).join("\n");
1111
+ }
1112
+ function styleToString(style = {}) {
1113
+ return styleToCSS(style).replace("\n", " ");
1114
+ }
1115
+ const EVENT_LIST = [
1116
+ "onabort",
1117
+ "onanimationcancel",
1118
+ "onanimationend",
1119
+ "onanimationiteration",
1120
+ "onanimationstart",
1121
+ "onauxclick",
1122
+ "onbeforeinput",
1123
+ "onbeforetoggle",
1124
+ "onblur",
1125
+ "oncancel",
1126
+ "oncanplay",
1127
+ "oncanplaythrough",
1128
+ "onchange",
1129
+ "onclick",
1130
+ "onclose",
1131
+ "oncompositionend",
1132
+ "oncompositionstart",
1133
+ "oncompositionupdate",
1134
+ "oncontextlost",
1135
+ "oncontextmenu",
1136
+ "oncontextrestored",
1137
+ "oncopy",
1138
+ "oncuechange",
1139
+ "oncut",
1140
+ "ondblclick",
1141
+ "ondrag",
1142
+ "ondragend",
1143
+ "ondragenter",
1144
+ "ondragleave",
1145
+ "ondragover",
1146
+ "ondragstart",
1147
+ "ondrop",
1148
+ "ondurationchange",
1149
+ "onemptied",
1150
+ "onended",
1151
+ "onerror",
1152
+ "onfocus",
1153
+ "onfocusin",
1154
+ "onfocusout",
1155
+ "onformdata",
1156
+ "ongotpointercapture",
1157
+ "oninput",
1158
+ "oninvalid",
1159
+ "onkeydown",
1160
+ "onkeypress",
1161
+ "onkeyup",
1162
+ "onload",
1163
+ "onloadeddata",
1164
+ "onloadedmetadata",
1165
+ "onloadstart",
1166
+ "onlostpointercapture",
1167
+ "onmousedown",
1168
+ "onmouseenter",
1169
+ "onmouseleave",
1170
+ "onmousemove",
1171
+ "onmouseout",
1172
+ "onmouseover",
1173
+ "onmouseup",
1174
+ "onpaste",
1175
+ "onpause",
1176
+ "onplay",
1177
+ "onplaying",
1178
+ "onpointercancel",
1179
+ "onpointerdown",
1180
+ "onpointerenter",
1181
+ "onpointerleave",
1182
+ "onpointermove",
1183
+ "onpointerout",
1184
+ "onpointerover",
1185
+ "onpointerup",
1186
+ "onprogress",
1187
+ "onratechange",
1188
+ "onreset",
1189
+ "onresize",
1190
+ "onscroll",
1191
+ "onscrollend",
1192
+ "onsecuritypolicyviolation",
1193
+ "onseeked",
1194
+ "onseeking",
1195
+ "onselect",
1196
+ "onselectionchange",
1197
+ "onselectstart",
1198
+ "onslotchange",
1199
+ "onstalled",
1200
+ "onsubmit",
1201
+ "onsuspend",
1202
+ "ontimeupdate",
1203
+ "ontoggle",
1204
+ "ontouchcancel",
1205
+ "ontouchend",
1206
+ "ontouchmove",
1207
+ "ontouchstart",
1208
+ "ontransitioncancel",
1209
+ "ontransitionend",
1210
+ "ontransitionrun",
1211
+ "ontransitionstart",
1212
+ "onvolumechange",
1213
+ "onwaiting",
1214
+ "onwebkitanimationend",
1215
+ "onwebkitanimationiteration",
1216
+ "onwebkitanimationstart",
1217
+ "onwebkittransitionend",
1218
+ "onwheel"
1219
+ ];
1220
+ const EVENT_LIST_SET = new Set(EVENT_LIST);
1221
+ function isEventHandler(key) {
1222
+ return EVENT_LIST_SET.has(key);
1223
+ }
1224
+ function mergeProps(...args) {
1225
+ const result = { ...args[0] };
1226
+ for (let i = 1; i < args.length; i++) {
1227
+ const props = args[i];
1228
+ if (!props)
1229
+ continue;
1230
+ for (const key of Object.keys(props)) {
1231
+ const a = result[key];
1232
+ const b = props[key];
1233
+ const aIsFunction = typeof a === "function";
1234
+ const bIsFunction = typeof b === "function";
1235
+ if (aIsFunction && typeof bIsFunction && isEventHandler(key)) {
1236
+ const aHandler = a;
1237
+ const bHandler = b;
1238
+ result[key] = composeHandlers(aHandler, bHandler);
1239
+ } else if (aIsFunction && bIsFunction) {
1240
+ result[key] = executeCallbacks(a, b);
1241
+ } else if (key === "class") {
1242
+ const aIsClassValue = isClassValue(a);
1243
+ const bIsClassValue = isClassValue(b);
1244
+ if (aIsClassValue && bIsClassValue) {
1245
+ result[key] = clsx(a, b);
1246
+ } else if (aIsClassValue) {
1247
+ result[key] = clsx(a);
1248
+ } else if (bIsClassValue) {
1249
+ result[key] = clsx(b);
1250
+ }
1251
+ } else if (key === "style") {
1252
+ const aIsObject = typeof a === "object";
1253
+ const bIsObject = typeof b === "object";
1254
+ const aIsString = typeof a === "string";
1255
+ const bIsString = typeof b === "string";
1256
+ if (aIsObject && bIsObject) {
1257
+ result[key] = { ...a, ...b };
1258
+ } else if (aIsObject && bIsString) {
1259
+ const parsedStyle = cssToStyleObj(b);
1260
+ result[key] = { ...a, ...parsedStyle };
1261
+ } else if (aIsString && bIsObject) {
1262
+ const parsedStyle = cssToStyleObj(a);
1263
+ result[key] = { ...parsedStyle, ...b };
1264
+ } else if (aIsString && bIsString) {
1265
+ const parsedStyleA = cssToStyleObj(a);
1266
+ const parsedStyleB = cssToStyleObj(b);
1267
+ result[key] = { ...parsedStyleA, ...parsedStyleB };
1268
+ } else if (aIsObject) {
1269
+ result[key] = a;
1270
+ } else if (bIsObject) {
1271
+ result[key] = b;
1272
+ } else if (aIsString) {
1273
+ result[key] = a;
1274
+ } else if (bIsString) {
1275
+ result[key] = b;
1276
+ }
1277
+ } else {
1278
+ result[key] = b !== void 0 ? b : a;
1279
+ }
1280
+ }
1281
+ for (const key of Object.getOwnPropertySymbols(props)) {
1282
+ const a = result[key];
1283
+ const b = props[key];
1284
+ result[key] = b !== void 0 ? b : a;
1285
+ }
1286
+ }
1287
+ if (typeof result.style === "object") {
1288
+ result.style = styleToString(result.style).replaceAll("\n", " ");
1289
+ }
1290
+ if (result.hidden === false) {
1291
+ result.hidden = void 0;
1292
+ delete result.hidden;
1293
+ }
1294
+ if (result.disabled === false) {
1295
+ result.disabled = void 0;
1296
+ delete result.disabled;
1297
+ }
1298
+ return result;
1299
+ }
1300
+ const defaultWindow = void 0;
1301
+ function getActiveElement$1(document2) {
1302
+ let activeElement = document2.activeElement;
1303
+ while (activeElement?.shadowRoot) {
1304
+ const node = activeElement.shadowRoot.activeElement;
1305
+ if (node === activeElement)
1306
+ break;
1307
+ else
1308
+ activeElement = node;
1309
+ }
1310
+ return activeElement;
1311
+ }
1312
+ class ActiveElement {
1313
+ #document;
1314
+ #subscribe;
1315
+ constructor(options = {}) {
1316
+ const { window: window2 = defaultWindow, document: document2 = window2?.document } = options;
1317
+ if (window2 === void 0) return;
1318
+ this.#document = document2;
1319
+ this.#subscribe = createSubscriber();
1320
+ }
1321
+ get current() {
1322
+ this.#subscribe?.();
1323
+ if (!this.#document) return null;
1324
+ return getActiveElement$1(this.#document);
1325
+ }
1326
+ }
1327
+ new ActiveElement();
1328
+ class Context {
1329
+ #name;
1330
+ #key;
1331
+ /**
1332
+ * @param name The name of the context.
1333
+ * This is used for generating the context key and error messages.
1334
+ */
1335
+ constructor(name) {
1336
+ this.#name = name;
1337
+ this.#key = Symbol(name);
1338
+ }
1339
+ /**
1340
+ * The key used to get and set the context.
1341
+ *
1342
+ * It is not recommended to use this value directly.
1343
+ * Instead, use the methods provided by this class.
1344
+ */
1345
+ get key() {
1346
+ return this.#key;
1347
+ }
1348
+ /**
1349
+ * Checks whether this has been set in the context of a parent component.
1350
+ *
1351
+ * Must be called during component initialisation.
1352
+ */
1353
+ exists() {
1354
+ return hasContext(this.#key);
1355
+ }
1356
+ /**
1357
+ * Retrieves the context that belongs to the closest parent component.
1358
+ *
1359
+ * Must be called during component initialisation.
1360
+ *
1361
+ * @throws An error if the context does not exist.
1362
+ */
1363
+ get() {
1364
+ const context = getContext(this.#key);
1365
+ if (context === void 0) {
1366
+ throw new Error(`Context "${this.#name}" not found`);
1367
+ }
1368
+ return context;
1369
+ }
1370
+ /**
1371
+ * Retrieves the context that belongs to the closest parent component,
1372
+ * or the given fallback value if the context does not exist.
1373
+ *
1374
+ * Must be called during component initialisation.
1375
+ */
1376
+ getOr(fallback) {
1377
+ const context = getContext(this.#key);
1378
+ if (context === void 0) {
1379
+ return fallback;
1380
+ }
1381
+ return context;
1382
+ }
1383
+ /**
1384
+ * Associates the given value with the current component and returns it.
1385
+ *
1386
+ * Must be called during component initialisation.
1387
+ */
1388
+ set(context) {
1389
+ return setContext(this.#key, context);
1390
+ }
1391
+ }
1392
+ function runWatcher(sources, flush, effect, options = {}) {
1393
+ const { lazy = false } = options;
1394
+ }
1395
+ function watch(sources, effect, options) {
1396
+ runWatcher(sources, "post", effect, options);
1397
+ }
1398
+ function watchPre(sources, effect, options) {
1399
+ runWatcher(sources, "pre", effect, options);
1400
+ }
1401
+ watch.pre = watchPre;
1402
+ function afterTick(fn) {
1403
+ tick().then(fn);
1404
+ }
1405
+ const ELEMENT_NODE = 1;
1406
+ const DOCUMENT_NODE = 9;
1407
+ const DOCUMENT_FRAGMENT_NODE = 11;
1408
+ function isHTMLElement$1(node) {
1409
+ return isObject(node) && node.nodeType === ELEMENT_NODE && typeof node.nodeName === "string";
1410
+ }
1411
+ function isDocument(node) {
1412
+ return isObject(node) && node.nodeType === DOCUMENT_NODE;
1413
+ }
1414
+ function isWindow(node) {
1415
+ return isObject(node) && node.constructor?.name === "VisualViewport";
1416
+ }
1417
+ function isNode(node) {
1418
+ return isObject(node) && node.nodeType !== void 0;
1419
+ }
1420
+ function isShadowRoot(node) {
1421
+ return isNode(node) && node.nodeType === DOCUMENT_FRAGMENT_NODE && "host" in node;
1422
+ }
1423
+ function contains(parent, child) {
1424
+ if (!parent || !child)
1425
+ return false;
1426
+ if (!isHTMLElement$1(parent) || !isHTMLElement$1(child))
1427
+ return false;
1428
+ const rootNode = child.getRootNode?.();
1429
+ if (parent === child)
1430
+ return true;
1431
+ if (parent.contains(child))
1432
+ return true;
1433
+ if (rootNode && isShadowRoot(rootNode)) {
1434
+ let next = child;
1435
+ while (next) {
1436
+ if (parent === next)
1437
+ return true;
1438
+ next = next.parentNode || next.host;
1439
+ }
1440
+ }
1441
+ return false;
1442
+ }
1443
+ function getDocument(node) {
1444
+ if (isDocument(node))
1445
+ return node;
1446
+ if (isWindow(node))
1447
+ return node.document;
1448
+ return node?.ownerDocument ?? document;
1449
+ }
1450
+ function getWindow(node) {
1451
+ if (isShadowRoot(node))
1452
+ return getWindow(node.host);
1453
+ if (isDocument(node))
1454
+ return node.defaultView ?? window;
1455
+ if (isHTMLElement$1(node))
1456
+ return node.ownerDocument?.defaultView ?? window;
1457
+ return window;
1458
+ }
1459
+ function getActiveElement(rootNode) {
1460
+ let activeElement = rootNode.activeElement;
1461
+ while (activeElement?.shadowRoot) {
1462
+ const el = activeElement.shadowRoot.activeElement;
1463
+ if (el === activeElement)
1464
+ break;
1465
+ else
1466
+ activeElement = el;
1467
+ }
1468
+ return activeElement;
1469
+ }
1470
+ class DOMContext {
1471
+ element;
1472
+ #root = derived(() => {
1473
+ if (!this.element.current) return document;
1474
+ const rootNode = this.element.current.getRootNode() ?? document;
1475
+ return rootNode;
1476
+ });
1477
+ get root() {
1478
+ return this.#root();
1479
+ }
1480
+ set root($$value) {
1481
+ return this.#root($$value);
1482
+ }
1483
+ constructor(element) {
1484
+ if (typeof element === "function") {
1485
+ this.element = boxWith(element);
1486
+ } else {
1487
+ this.element = element;
1488
+ }
1489
+ }
1490
+ getDocument = () => {
1491
+ return getDocument(this.root);
1492
+ };
1493
+ getWindow = () => {
1494
+ return this.getDocument().defaultView ?? window;
1495
+ };
1496
+ getActiveElement = () => {
1497
+ return getActiveElement(this.root);
1498
+ };
1499
+ isActiveElement = (node) => {
1500
+ return node === this.getActiveElement();
1501
+ };
1502
+ getElementById(id) {
1503
+ return this.root.getElementById(id);
1504
+ }
1505
+ querySelector = (selector) => {
1506
+ if (!this.root) return null;
1507
+ return this.root.querySelector(selector);
1508
+ };
1509
+ querySelectorAll = (selector) => {
1510
+ if (!this.root) return [];
1511
+ return this.root.querySelectorAll(selector);
1512
+ };
1513
+ setTimeout = (callback, delay) => {
1514
+ return this.getWindow().setTimeout(callback, delay);
1515
+ };
1516
+ clearTimeout = (timeoutId) => {
1517
+ return this.getWindow().clearTimeout(timeoutId);
1518
+ };
1519
+ }
1520
+ function createAttachmentKey() {
1521
+ return Symbol(ATTACHMENT_KEY);
1522
+ }
1523
+ function attachRef(ref, onChange) {
1524
+ return {
1525
+ [createAttachmentKey()]: (node) => {
1526
+ if (isBox(ref)) {
1527
+ ref.current = node;
1528
+ run(() => onChange?.(node));
1529
+ return () => {
1530
+ if ("isConnected" in node && node.isConnected)
1531
+ return;
1532
+ ref.current = null;
1533
+ onChange?.(null);
1534
+ };
1535
+ }
1536
+ ref(node);
1537
+ run(() => onChange?.(node));
1538
+ return () => {
1539
+ if ("isConnected" in node && node.isConnected)
1540
+ return;
1541
+ ref(null);
1542
+ onChange?.(null);
1543
+ };
1544
+ }
1545
+ };
1546
+ }
1547
+ function boolToStr(condition) {
1548
+ return condition ? "true" : "false";
1549
+ }
1550
+ function boolToEmptyStrOrUndef(condition) {
1551
+ return condition ? "" : void 0;
1552
+ }
1553
+ function getDataOpenClosed(condition) {
1554
+ return condition ? "open" : "closed";
1555
+ }
1556
+ function getDataTransitionAttrs(state) {
1557
+ if (state === "starting")
1558
+ return { "data-starting-style": "" };
1559
+ if (state === "ending")
1560
+ return { "data-ending-style": "" };
1561
+ return {};
1562
+ }
1563
+ function getAriaChecked(checked, indeterminate) {
1564
+ if (indeterminate)
1565
+ return "mixed";
1566
+ return checked ? "true" : "false";
1567
+ }
1568
+ class BitsAttrs {
1569
+ #variant;
1570
+ #prefix;
1571
+ attrs;
1572
+ constructor(config) {
1573
+ this.#variant = config.getVariant ? config.getVariant() : null;
1574
+ this.#prefix = this.#variant ? `data-${this.#variant}-` : `data-${config.component}-`;
1575
+ this.getAttr = this.getAttr.bind(this);
1576
+ this.selector = this.selector.bind(this);
1577
+ this.attrs = Object.fromEntries(config.parts.map((part) => [part, this.getAttr(part)]));
1578
+ }
1579
+ getAttr(part, variantOverride) {
1580
+ if (variantOverride)
1581
+ return `data-${variantOverride}-${part}`;
1582
+ return `${this.#prefix}${part}`;
1583
+ }
1584
+ selector(part, variantOverride) {
1585
+ return `[${this.getAttr(part, variantOverride)}]`;
1586
+ }
1587
+ }
1588
+ function createBitsAttrs(config) {
1589
+ const bitsAttrs = new BitsAttrs(config);
1590
+ return {
1591
+ ...bitsAttrs.attrs,
1592
+ selector: bitsAttrs.selector,
1593
+ getAttr: bitsAttrs.getAttr
1594
+ };
1595
+ }
1596
+ const ARROW_DOWN = "ArrowDown";
1597
+ const ARROW_LEFT = "ArrowLeft";
1598
+ const ARROW_RIGHT = "ArrowRight";
1599
+ const ARROW_UP = "ArrowUp";
1600
+ const END = "End";
1601
+ const ENTER = "Enter";
1602
+ const ESCAPE = "Escape";
1603
+ const HOME = "Home";
1604
+ const PAGE_DOWN = "PageDown";
1605
+ const PAGE_UP = "PageUp";
1606
+ const SPACE = " ";
1607
+ const TAB = "Tab";
1608
+ const isBrowser = typeof document !== "undefined";
1609
+ const isIOS = getIsIOS();
1610
+ function getIsIOS() {
1611
+ return isBrowser && window?.navigator?.userAgent && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || // The new iPad Pro Gen3 does not identify itself as iPad, but as Macintosh.
1612
+ window?.navigator?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
1613
+ }
1614
+ function isHTMLElement(element) {
1615
+ return element instanceof HTMLElement;
1616
+ }
1617
+ function isElement(element) {
1618
+ return element instanceof Element;
1619
+ }
1620
+ function isElementOrSVGElement(element) {
1621
+ return element instanceof Element || element instanceof SVGElement;
1622
+ }
1623
+ function isTouch(e) {
1624
+ return e.pointerType === "touch";
1625
+ }
1626
+ function isFocusVisible(element) {
1627
+ return element.matches(":focus-visible");
1628
+ }
1629
+ function isNotNull(value) {
1630
+ return value !== null;
1631
+ }
1632
+ function isSelectableInput(element) {
1633
+ return element instanceof HTMLInputElement && "select" in element;
1634
+ }
1635
+ class AnimationsComplete {
1636
+ #opts;
1637
+ #currentFrame = null;
1638
+ #observer = null;
1639
+ #runId = 0;
1640
+ constructor(opts) {
1641
+ this.#opts = opts;
1642
+ }
1643
+ #cleanup() {
1644
+ if (this.#currentFrame !== null) {
1645
+ window.cancelAnimationFrame(this.#currentFrame);
1646
+ this.#currentFrame = null;
1647
+ }
1648
+ this.#observer?.disconnect();
1649
+ this.#observer = null;
1650
+ this.#runId++;
1651
+ }
1652
+ run(fn) {
1653
+ this.#cleanup();
1654
+ const node = this.#opts.ref.current;
1655
+ if (!node)
1656
+ return;
1657
+ if (typeof node.getAnimations !== "function") {
1658
+ this.#executeCallback(fn);
1659
+ return;
1660
+ }
1661
+ const runId = this.#runId;
1662
+ const executeIfCurrent = () => {
1663
+ if (runId !== this.#runId)
1664
+ return;
1665
+ this.#executeCallback(fn);
1666
+ };
1667
+ const waitForAnimations = () => {
1668
+ if (runId !== this.#runId)
1669
+ return;
1670
+ const animations = node.getAnimations();
1671
+ if (animations.length === 0) {
1672
+ executeIfCurrent();
1673
+ return;
1674
+ }
1675
+ Promise.all(animations.map((animation) => animation.finished)).then(() => {
1676
+ executeIfCurrent();
1677
+ }).catch(() => {
1678
+ if (runId !== this.#runId)
1679
+ return;
1680
+ const currentAnimations = node.getAnimations();
1681
+ const hasRunningAnimations = currentAnimations.some((animation) => animation.pending || animation.playState !== "finished");
1682
+ if (hasRunningAnimations) {
1683
+ waitForAnimations();
1684
+ return;
1685
+ }
1686
+ executeIfCurrent();
1687
+ });
1688
+ };
1689
+ const requestWaitForAnimations = () => {
1690
+ this.#currentFrame = window.requestAnimationFrame(() => {
1691
+ this.#currentFrame = null;
1692
+ waitForAnimations();
1693
+ });
1694
+ };
1695
+ if (!this.#opts.afterTick.current) {
1696
+ requestWaitForAnimations();
1697
+ return;
1698
+ }
1699
+ this.#currentFrame = window.requestAnimationFrame(() => {
1700
+ this.#currentFrame = null;
1701
+ const startingStyleAttr = "data-starting-style";
1702
+ if (!node.hasAttribute(startingStyleAttr)) {
1703
+ requestWaitForAnimations();
1704
+ return;
1705
+ }
1706
+ this.#observer = new MutationObserver(() => {
1707
+ if (runId !== this.#runId)
1708
+ return;
1709
+ if (node.hasAttribute(startingStyleAttr))
1710
+ return;
1711
+ this.#observer?.disconnect();
1712
+ this.#observer = null;
1713
+ requestWaitForAnimations();
1714
+ });
1715
+ this.#observer.observe(node, {
1716
+ attributes: true,
1717
+ attributeFilter: [startingStyleAttr]
1718
+ });
1719
+ });
1720
+ }
1721
+ #executeCallback(fn) {
1722
+ const execute = () => {
1723
+ fn();
1724
+ };
1725
+ if (this.#opts.afterTick) {
1726
+ afterTick(execute);
1727
+ } else {
1728
+ execute();
1729
+ }
1730
+ }
1731
+ }
1732
+ class PresenceManager {
1733
+ #opts;
1734
+ #enabled;
1735
+ #afterAnimations;
1736
+ #shouldRender = false;
1737
+ #transitionStatus = void 0;
1738
+ #hasMounted = false;
1739
+ #transitionFrame = null;
1740
+ constructor(opts) {
1741
+ this.#opts = opts;
1742
+ this.#shouldRender = opts.open.current;
1743
+ this.#enabled = opts.enabled ?? true;
1744
+ this.#afterAnimations = new AnimationsComplete({ ref: this.#opts.ref, afterTick: this.#opts.open });
1745
+ watch(() => this.#opts.open.current, (isOpen) => {
1746
+ if (!this.#hasMounted) {
1747
+ this.#hasMounted = true;
1748
+ return;
1749
+ }
1750
+ this.#clearTransitionFrame();
1751
+ if (!isOpen && this.#opts.shouldSkipExitAnimation?.()) {
1752
+ this.#shouldRender = false;
1753
+ this.#transitionStatus = void 0;
1754
+ this.#opts.onComplete?.();
1755
+ return;
1756
+ }
1757
+ if (isOpen) this.#shouldRender = true;
1758
+ this.#transitionStatus = isOpen ? "starting" : "ending";
1759
+ if (isOpen) {
1760
+ this.#transitionFrame = window.requestAnimationFrame(() => {
1761
+ this.#transitionFrame = null;
1762
+ if (this.#opts.open.current) {
1763
+ this.#transitionStatus = void 0;
1764
+ }
1765
+ });
1766
+ }
1767
+ if (!this.#enabled) {
1768
+ if (!isOpen) {
1769
+ this.#shouldRender = false;
1770
+ }
1771
+ this.#transitionStatus = void 0;
1772
+ this.#opts.onComplete?.();
1773
+ return;
1774
+ }
1775
+ this.#afterAnimations.run(() => {
1776
+ if (isOpen === this.#opts.open.current) {
1777
+ if (!this.#opts.open.current) {
1778
+ this.#shouldRender = false;
1779
+ }
1780
+ this.#transitionStatus = void 0;
1781
+ this.#opts.onComplete?.();
1782
+ }
1783
+ });
1784
+ });
1785
+ }
1786
+ get shouldRender() {
1787
+ return this.#shouldRender;
1788
+ }
1789
+ get transitionStatus() {
1790
+ return this.#transitionStatus;
1791
+ }
1792
+ #clearTransitionFrame() {
1793
+ if (this.#transitionFrame === null) return;
1794
+ window.cancelAnimationFrame(this.#transitionFrame);
1795
+ this.#transitionFrame = null;
1796
+ }
1797
+ }
1798
+ function noop() {
1799
+ }
1800
+ function createId(prefixOrUid, uid) {
1801
+ return `bits-${prefixOrUid}`;
1802
+ }
1803
+ const BitsConfigContext = new Context("BitsConfig");
1804
+ function getBitsConfig() {
1805
+ const fallback = new BitsConfigState(null, {});
1806
+ return BitsConfigContext.getOr(fallback).opts;
1807
+ }
1808
+ class BitsConfigState {
1809
+ opts;
1810
+ constructor(parent, opts) {
1811
+ const resolveConfigOption = createConfigResolver(parent, opts);
1812
+ this.opts = {
1813
+ defaultPortalTo: resolveConfigOption((config) => config.defaultPortalTo),
1814
+ defaultLocale: resolveConfigOption((config) => config.defaultLocale)
1815
+ };
1816
+ }
1817
+ }
1818
+ function createConfigResolver(parent, currentOpts) {
1819
+ return (getter) => {
1820
+ const configOption = boxWith(() => {
1821
+ const value = getter(currentOpts)?.current;
1822
+ if (value !== void 0)
1823
+ return value;
1824
+ if (parent === null)
1825
+ return void 0;
1826
+ return getter(parent.opts)?.current;
1827
+ });
1828
+ return configOption;
1829
+ };
1830
+ }
1831
+ function createPropResolver(configOption, fallback) {
1832
+ return (getProp) => {
1833
+ const config = getBitsConfig();
1834
+ return boxWith(() => {
1835
+ const propValue = getProp();
1836
+ if (propValue !== void 0)
1837
+ return propValue;
1838
+ const option = configOption(config).current;
1839
+ if (option !== void 0)
1840
+ return option;
1841
+ return fallback;
1842
+ });
1843
+ };
1844
+ }
1845
+ const resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, "body");
1846
+ function Portal($$renderer, $$props) {
1847
+ $$renderer.component(($$renderer2) => {
1848
+ let { to: toProp, children, disabled } = $$props;
1849
+ const to = resolvePortalToProp(() => toProp);
1850
+ getAllContexts();
1851
+ let target = derived(getTarget);
1852
+ function getTarget() {
1853
+ if (!isBrowser || disabled) return null;
1854
+ let localTarget = null;
1855
+ if (typeof to.current === "string") {
1856
+ const target2 = document.querySelector(to.current);
1857
+ localTarget = target2;
1858
+ } else {
1859
+ localTarget = to.current;
1860
+ }
1861
+ return localTarget;
1862
+ }
1863
+ let instance;
1864
+ function unmountInstance() {
1865
+ if (instance) {
1866
+ unmount();
1867
+ instance = null;
1868
+ }
1869
+ }
1870
+ watch([() => target(), () => disabled], ([target2, disabled2]) => {
1871
+ if (!target2 || disabled2) {
1872
+ unmountInstance();
1873
+ return;
1874
+ }
1875
+ instance = mount();
1876
+ return () => {
1877
+ unmountInstance();
1878
+ };
1879
+ });
1880
+ if (disabled) {
1881
+ $$renderer2.push("<!--[0-->");
1882
+ children?.($$renderer2);
1883
+ $$renderer2.push(`<!---->`);
1884
+ } else {
1885
+ $$renderer2.push("<!--[-1-->");
1886
+ }
1887
+ $$renderer2.push(`<!--]-->`);
1888
+ });
1889
+ }
1890
+ function debounce(fn, wait = 500) {
1891
+ let timeout = null;
1892
+ const debounced = (...args) => {
1893
+ if (timeout !== null) {
1894
+ clearTimeout(timeout);
1895
+ }
1896
+ timeout = setTimeout(() => {
1897
+ fn(...args);
1898
+ }, wait);
1899
+ };
1900
+ debounced.destroy = () => {
1901
+ if (timeout !== null) {
1902
+ clearTimeout(timeout);
1903
+ timeout = null;
1904
+ }
1905
+ };
1906
+ return debounced;
1907
+ }
1908
+ function isOrContainsTarget(node, target) {
1909
+ return node === target || node.contains(target);
1910
+ }
1911
+ function getOwnerDocument(el) {
1912
+ return el?.ownerDocument ?? document;
1913
+ }
1914
+ function isClickTrulyOutside(event, contentNode) {
1915
+ const { clientX, clientY } = event;
1916
+ const rect = contentNode.getBoundingClientRect();
1917
+ return clientX < rect.left || clientX > rect.right || clientY < rect.top || clientY > rect.bottom;
1918
+ }
1919
+ const CONTEXT_MENU_TRIGGER_ATTR = "data-context-menu-trigger";
1920
+ const CONTEXT_MENU_CONTENT_ATTR = "data-context-menu-content";
1921
+ globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
1922
+ class DismissibleLayerState {
1923
+ static create(opts) {
1924
+ return new DismissibleLayerState(opts);
1925
+ }
1926
+ opts;
1927
+ #interactOutsideProp;
1928
+ #behaviorType;
1929
+ #interceptedEvents = { pointerdown: false };
1930
+ #isResponsibleLayer = false;
1931
+ #capturedPointerDown = null;
1932
+ #isFocusInsideDOMTree = false;
1933
+ #documentObj = void 0;
1934
+ #onFocusOutside;
1935
+ #unsubClickListener = noop;
1936
+ /**
1937
+ * Set once the layer is torn down. Deferred work scheduled before teardown can
1938
+ * still run afterwards, so every such callback must short-circuit on this
1939
+ * before reading `this.opts.ref.current` — reading a destroyed `$derived`
1940
+ * triggers Svelte's `derived_inert` warning. A class field rather than a
1941
+ * constructor local so the class-field handlers below can see it too.
1942
+ */
1943
+ #destroyed = false;
1944
+ constructor(opts) {
1945
+ this.opts = opts;
1946
+ this.#behaviorType = opts.interactOutsideBehavior;
1947
+ this.#interactOutsideProp = opts.onInteractOutside;
1948
+ this.#onFocusOutside = opts.onFocusOutside;
1949
+ let unsubEvents = noop;
1950
+ let registeredNode = null;
1951
+ const cleanup = () => {
1952
+ registeredNode = null;
1953
+ this.#resetState();
1954
+ globalThis.bitsDismissableLayers.delete(this);
1955
+ this.#handleInteractOutside.destroy();
1956
+ this.#unsubClickListener();
1957
+ unsubEvents();
1958
+ };
1959
+ watch([() => this.opts.enabled.current, () => this.opts.ref.current], ([enabled, node]) => {
1960
+ const nextNode = enabled ? node : null;
1961
+ if (registeredNode === nextNode) return;
1962
+ cleanup();
1963
+ if (!nextNode) return;
1964
+ registeredNode = nextNode;
1965
+ this.#documentObj = getOwnerDocument(nextNode);
1966
+ globalThis.bitsDismissableLayers.set(this, this.#behaviorType);
1967
+ unsubEvents = this.#addEventListeners();
1968
+ });
1969
+ }
1970
+ #handleFocus = (event) => {
1971
+ if (event.defaultPrevented) return;
1972
+ if (this.#destroyed || !this.opts.ref.current) return;
1973
+ afterTick(() => {
1974
+ if (this.#destroyed) return;
1975
+ if (!this.opts.ref.current || this.#isTargetWithinLayer(event.target)) return;
1976
+ if (event.target && !this.#isFocusInsideDOMTree) {
1977
+ this.#onFocusOutside.current?.(event);
1978
+ }
1979
+ });
1980
+ };
1981
+ #addEventListeners() {
1982
+ const document2 = this.#documentObj;
1983
+ const onPointerDownCapture = (event) => {
1984
+ run(() => {
1985
+ this.#markInterceptedEvent(event);
1986
+ this.#markResponsibleLayer(event);
1987
+ });
1988
+ };
1989
+ const onPointerDown = (event) => {
1990
+ if (event.cancelBubble || event !== this.#capturedPointerDown) return;
1991
+ this.#markNonInterceptedEvent(event);
1992
+ if (event.pointerType === "touch") {
1993
+ this.#handleInteractOutside.destroy();
1994
+ this.#interactOutside(event);
1995
+ } else {
1996
+ this.#handleInteractOutside(event);
1997
+ }
1998
+ };
1999
+ document2.addEventListener("pointerdown", onPointerDownCapture, true);
2000
+ document2.addEventListener("pointerdown", onPointerDown);
2001
+ return executeCallbacks(() => document2.removeEventListener("pointerdown", onPointerDownCapture, true), () => document2.removeEventListener("pointerdown", onPointerDown), on(document2, "focusin", this.#handleFocus));
2002
+ }
2003
+ #handleDismiss = (e) => {
2004
+ let event = e;
2005
+ if (event.defaultPrevented) {
2006
+ event = createWrappedEvent(e);
2007
+ }
2008
+ this.#interactOutsideProp.current(e);
2009
+ };
2010
+ #interactOutside = (e) => {
2011
+ if (!this.opts.ref.current) {
2012
+ this.#unsubClickListener();
2013
+ return;
2014
+ }
2015
+ const isEventValid = this.opts.isValidEvent.current(e, this.opts.ref.current) || isValidEvent(e, this.opts.ref.current);
2016
+ if (!this.#isResponsibleLayer || this.#isAnyEventIntercepted() || !isEventValid) {
2017
+ this.#unsubClickListener();
2018
+ return;
2019
+ }
2020
+ let event = e;
2021
+ if (event.defaultPrevented) {
2022
+ event = createWrappedEvent(event);
2023
+ }
2024
+ if (this.#behaviorType.current !== "close" && this.#behaviorType.current !== "defer-otherwise-close") {
2025
+ this.#unsubClickListener();
2026
+ return;
2027
+ }
2028
+ if (e.pointerType === "touch") {
2029
+ this.#unsubClickListener();
2030
+ let backup = null;
2031
+ let unsubClick = noop;
2032
+ const dismiss = (event2) => {
2033
+ unsubClick();
2034
+ this.#handleDismiss(event2);
2035
+ };
2036
+ unsubClick = executeCallbacks(
2037
+ on(this.#documentObj, "click", dismiss, { once: true }),
2038
+ on(
2039
+ this.#documentObj,
2040
+ "click",
2041
+ (event2) => {
2042
+ backup = setTimeout(() => dismiss(event2), 0);
2043
+ },
2044
+ { once: true, capture: true }
2045
+ ),
2046
+ () => {
2047
+ if (backup !== null) clearTimeout(backup);
2048
+ backup = null;
2049
+ }
2050
+ );
2051
+ this.#unsubClickListener = unsubClick;
2052
+ } else {
2053
+ this.#interactOutsideProp.current(event);
2054
+ }
2055
+ };
2056
+ #handleInteractOutside = debounce(this.#interactOutside, 10);
2057
+ #markInterceptedEvent = (e) => {
2058
+ this.#interceptedEvents[e.type] = true;
2059
+ };
2060
+ #markNonInterceptedEvent = (e) => {
2061
+ this.#interceptedEvents[e.type] = false;
2062
+ };
2063
+ #markResponsibleLayer = (event) => {
2064
+ this.#capturedPointerDown = event;
2065
+ if (!this.opts.ref.current) return;
2066
+ this.#isResponsibleLayer = isResponsibleLayer(this.opts.ref.current);
2067
+ };
2068
+ #isTargetWithinLayer = (target) => {
2069
+ if (!this.opts.ref.current) return false;
2070
+ return isOrContainsTarget(this.opts.ref.current, target);
2071
+ };
2072
+ /**
2073
+ * Resets the per-interaction state. Must stay synchronous.
2074
+ *
2075
+ * This was a `debounce(..., 20)` from when it was also wired to a capture-phase
2076
+ * interaction-end listener and had to land after the 10ms `#handleInteractOutside`
2077
+ * debounce. That listener is gone, but the debounce stayed on the `cleanup()` path —
2078
+ * and because `watch` runs `cleanup()` once per open (`ref` goes null -> node), every
2079
+ * layer scheduled a reset 20ms into its own lifetime. An outside `pointerdown` landing
2080
+ * 10-20ms after that cleanup would have its `#isResponsibleLayer` flag cleared by the
2081
+ * stale reset in the gap before the debounced `#handleInteractOutside` ran, which then
2082
+ * bailed and left the layer open. `cleanup()` destroys `#handleInteractOutside` anyway,
2083
+ * so nothing is left in flight that needs to observe the pre-reset state.
2084
+ */
2085
+ #resetState = () => {
2086
+ for (const eventType in this.#interceptedEvents) {
2087
+ this.#interceptedEvents[eventType] = false;
2088
+ }
2089
+ this.#isResponsibleLayer = false;
2090
+ this.#capturedPointerDown = null;
2091
+ };
2092
+ #isAnyEventIntercepted() {
2093
+ const i = Object.values(this.#interceptedEvents).some(Boolean);
2094
+ return i;
2095
+ }
2096
+ #onfocuscapture = () => {
2097
+ this.#isFocusInsideDOMTree = true;
2098
+ };
2099
+ #onblurcapture = () => {
2100
+ this.#isFocusInsideDOMTree = false;
2101
+ };
2102
+ props = {
2103
+ onfocuscapture: this.#onfocuscapture,
2104
+ onblurcapture: this.#onblurcapture
2105
+ };
2106
+ }
2107
+ function getTopMostDismissableLayer(layersArr = [...globalThis.bitsDismissableLayers]) {
2108
+ return layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
2109
+ }
2110
+ function isResponsibleLayer(node) {
2111
+ const layersArr = [...globalThis.bitsDismissableLayers];
2112
+ const topMostLayer = getTopMostDismissableLayer(layersArr);
2113
+ if (topMostLayer) return topMostLayer[0].opts.ref.current === node;
2114
+ const [firstLayerNode] = layersArr[0];
2115
+ return firstLayerNode.opts.ref.current === node;
2116
+ }
2117
+ function isValidEvent(e, node) {
2118
+ const target = e.target;
2119
+ if (!isElementOrSVGElement(target)) return false;
2120
+ const targetIsContextMenuTrigger = Boolean(target.closest(`[${CONTEXT_MENU_TRIGGER_ATTR}]`));
2121
+ const nodeIsContextMenu = Boolean(node.closest(`[${CONTEXT_MENU_CONTENT_ATTR}]`));
2122
+ if ("button" in e && e.button > 0 && !targetIsContextMenuTrigger) return false;
2123
+ if ("button" in e && e.button === 0 && targetIsContextMenuTrigger && nodeIsContextMenu) {
2124
+ return true;
2125
+ }
2126
+ if (targetIsContextMenuTrigger && nodeIsContextMenu) return false;
2127
+ const ownerDocument = getOwnerDocument(target);
2128
+ const isValid = ownerDocument.documentElement.contains(target) && !isOrContainsTarget(node, target) && isClickTrulyOutside(e, node);
2129
+ return isValid;
2130
+ }
2131
+ function createWrappedEvent(e) {
2132
+ const capturedCurrentTarget = e.currentTarget;
2133
+ const capturedTarget = e.target;
2134
+ let newEvent;
2135
+ if (e instanceof PointerEvent) {
2136
+ newEvent = new PointerEvent(e.type, e);
2137
+ } else {
2138
+ newEvent = new PointerEvent("pointerdown", e);
2139
+ }
2140
+ let isPrevented = false;
2141
+ const wrappedEvent = new Proxy(newEvent, {
2142
+ get: (target, prop) => {
2143
+ if (prop === "currentTarget") {
2144
+ return capturedCurrentTarget;
2145
+ }
2146
+ if (prop === "target") {
2147
+ return capturedTarget;
2148
+ }
2149
+ if (prop === "preventDefault") {
2150
+ return () => {
2151
+ isPrevented = true;
2152
+ if (typeof target.preventDefault === "function") {
2153
+ target.preventDefault();
2154
+ }
2155
+ };
2156
+ }
2157
+ if (prop === "defaultPrevented") {
2158
+ return isPrevented;
2159
+ }
2160
+ if (prop in target) {
2161
+ return target[prop];
2162
+ }
2163
+ return e[prop];
2164
+ }
2165
+ });
2166
+ return wrappedEvent;
2167
+ }
2168
+ function Dismissible_layer($$renderer, $$props) {
2169
+ $$renderer.component(($$renderer2) => {
2170
+ let {
2171
+ interactOutsideBehavior = "close",
2172
+ onInteractOutside = noop,
2173
+ onFocusOutside = noop,
2174
+ id,
2175
+ children,
2176
+ enabled,
2177
+ isValidEvent: isValidEvent2 = () => false,
2178
+ ref
2179
+ } = $$props;
2180
+ const dismissibleLayerState = DismissibleLayerState.create({
2181
+ id: boxWith(() => id),
2182
+ interactOutsideBehavior: boxWith(() => interactOutsideBehavior),
2183
+ onInteractOutside: boxWith(() => onInteractOutside),
2184
+ enabled: boxWith(() => enabled),
2185
+ onFocusOutside: boxWith(() => onFocusOutside),
2186
+ isValidEvent: boxWith(() => isValidEvent2),
2187
+ ref
2188
+ });
2189
+ children?.($$renderer2, { props: dismissibleLayerState.props });
2190
+ $$renderer2.push(`<!---->`);
2191
+ });
2192
+ }
2193
+ globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
2194
+ class EscapeLayerState {
2195
+ static create(opts) {
2196
+ return new EscapeLayerState(opts);
2197
+ }
2198
+ opts;
2199
+ domContext;
2200
+ constructor(opts) {
2201
+ this.opts = opts;
2202
+ this.domContext = new DOMContext(this.opts.ref);
2203
+ let unsubEvents = noop;
2204
+ watch(() => opts.enabled.current, (enabled) => {
2205
+ if (enabled) {
2206
+ globalThis.bitsEscapeLayers.set(this, opts.escapeKeydownBehavior);
2207
+ unsubEvents = this.#addEventListener();
2208
+ }
2209
+ return () => {
2210
+ unsubEvents();
2211
+ globalThis.bitsEscapeLayers.delete(this);
2212
+ };
2213
+ });
2214
+ }
2215
+ #addEventListener = () => {
2216
+ return on(this.domContext.getDocument(), "keydown", this.#onkeydown, { passive: false });
2217
+ };
2218
+ #onkeydown = (e) => {
2219
+ if (e.key !== ESCAPE || !isResponsibleEscapeLayer(this)) return;
2220
+ const clonedEvent = new KeyboardEvent(e.type, e);
2221
+ e.preventDefault();
2222
+ const behaviorType = this.opts.escapeKeydownBehavior.current;
2223
+ if (behaviorType !== "close" && behaviorType !== "defer-otherwise-close") return;
2224
+ this.opts.onEscapeKeydown.current(clonedEvent);
2225
+ };
2226
+ }
2227
+ function isResponsibleEscapeLayer(instance) {
2228
+ const layersArr = [...globalThis.bitsEscapeLayers];
2229
+ const topMostLayer = layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
2230
+ if (topMostLayer) return topMostLayer[0] === instance;
2231
+ const [firstLayerNode] = layersArr[0];
2232
+ return firstLayerNode === instance;
2233
+ }
2234
+ function Escape_layer($$renderer, $$props) {
2235
+ $$renderer.component(($$renderer2) => {
2236
+ let {
2237
+ escapeKeydownBehavior = "close",
2238
+ onEscapeKeydown = noop,
2239
+ children,
2240
+ enabled,
2241
+ ref
2242
+ } = $$props;
2243
+ EscapeLayerState.create({
2244
+ escapeKeydownBehavior: boxWith(() => escapeKeydownBehavior),
2245
+ onEscapeKeydown: boxWith(() => onEscapeKeydown),
2246
+ enabled: boxWith(() => enabled),
2247
+ ref
2248
+ });
2249
+ children?.($$renderer2);
2250
+ $$renderer2.push(`<!---->`);
2251
+ });
2252
+ }
2253
+ class FocusScopeManager {
2254
+ static instance;
2255
+ #scopeStack = simpleBox([]);
2256
+ #focusHistory = /* @__PURE__ */ new WeakMap();
2257
+ #preFocusHistory = /* @__PURE__ */ new WeakMap();
2258
+ static getInstance() {
2259
+ if (!this.instance) {
2260
+ this.instance = new FocusScopeManager();
2261
+ }
2262
+ return this.instance;
2263
+ }
2264
+ register(scope) {
2265
+ const current = this.getActive();
2266
+ if (current && current !== scope) {
2267
+ current.pause();
2268
+ }
2269
+ const activeElement = getActiveElement(document);
2270
+ if (activeElement && activeElement !== document.body) {
2271
+ this.#preFocusHistory.set(scope, activeElement);
2272
+ }
2273
+ this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);
2274
+ this.#scopeStack.current.unshift(scope);
2275
+ }
2276
+ unregister(scope) {
2277
+ this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);
2278
+ const next = this.getActive();
2279
+ if (next) {
2280
+ next.resume();
2281
+ }
2282
+ }
2283
+ getActive() {
2284
+ return this.#scopeStack.current[0];
2285
+ }
2286
+ setFocusMemory(scope, element) {
2287
+ this.#focusHistory.set(scope, element);
2288
+ }
2289
+ getFocusMemory(scope) {
2290
+ return this.#focusHistory.get(scope);
2291
+ }
2292
+ isActiveScope(scope) {
2293
+ return this.getActive() === scope;
2294
+ }
2295
+ setPreFocusMemory(scope, element) {
2296
+ this.#preFocusHistory.set(scope, element);
2297
+ }
2298
+ getPreFocusMemory(scope) {
2299
+ return this.#preFocusHistory.get(scope);
2300
+ }
2301
+ clearPreFocusMemory(scope) {
2302
+ this.#preFocusHistory.delete(scope);
2303
+ }
2304
+ }
2305
+ class FocusScope {
2306
+ #paused = false;
2307
+ #container = null;
2308
+ #manager = FocusScopeManager.getInstance();
2309
+ #cleanupFns = [];
2310
+ #opts;
2311
+ constructor(opts) {
2312
+ this.#opts = opts;
2313
+ }
2314
+ get paused() {
2315
+ return this.#paused;
2316
+ }
2317
+ pause() {
2318
+ this.#paused = true;
2319
+ }
2320
+ resume() {
2321
+ this.#paused = false;
2322
+ }
2323
+ #cleanup() {
2324
+ for (const fn of this.#cleanupFns) {
2325
+ fn();
2326
+ }
2327
+ this.#cleanupFns = [];
2328
+ }
2329
+ mount(container) {
2330
+ if (this.#container) {
2331
+ this.unmount();
2332
+ }
2333
+ this.#container = container;
2334
+ this.#manager.register(this);
2335
+ this.#setupEventListeners();
2336
+ this.#handleOpenAutoFocus();
2337
+ }
2338
+ unmount() {
2339
+ if (!this.#container) return;
2340
+ this.#cleanup();
2341
+ this.#handleCloseAutoFocus();
2342
+ this.#manager.unregister(this);
2343
+ this.#manager.clearPreFocusMemory(this);
2344
+ this.#container = null;
2345
+ }
2346
+ #handleOpenAutoFocus() {
2347
+ if (!this.#container) return;
2348
+ const event = new CustomEvent("focusScope.onOpenAutoFocus", { bubbles: false, cancelable: true });
2349
+ this.#opts.onOpenAutoFocus.current(event);
2350
+ if (!event.defaultPrevented) {
2351
+ requestAnimationFrame(() => {
2352
+ if (!this.#container || this.#paused || !this.#manager.isActiveScope(this) || this.#container.contains(getActiveElement(this.#container.ownerDocument))) {
2353
+ return;
2354
+ }
2355
+ const firstTabbable = this.#getFirstTabbable();
2356
+ if (firstTabbable) {
2357
+ firstTabbable.focus();
2358
+ this.#manager.setFocusMemory(this, firstTabbable);
2359
+ } else {
2360
+ this.#container.focus();
2361
+ }
2362
+ });
2363
+ }
2364
+ }
2365
+ #handleCloseAutoFocus() {
2366
+ const event = new CustomEvent("focusScope.onCloseAutoFocus", { bubbles: false, cancelable: true });
2367
+ this.#opts.onCloseAutoFocus.current?.(event);
2368
+ if (!event.defaultPrevented) {
2369
+ const preFocusedElement = this.#manager.getPreFocusMemory(this);
2370
+ if (preFocusedElement && preFocusedElement.isConnected) {
2371
+ try {
2372
+ preFocusedElement.focus();
2373
+ } catch {
2374
+ document.body.focus();
2375
+ }
2376
+ }
2377
+ }
2378
+ }
2379
+ #setupEventListeners() {
2380
+ if (!this.#container || !this.#opts.trap.current) return;
2381
+ const container = this.#container;
2382
+ const doc = container.ownerDocument;
2383
+ const handleFocus = (e) => {
2384
+ if (this.#paused || !this.#manager.isActiveScope(this)) return;
2385
+ const target = e.composedPath()[0];
2386
+ if (!target) return;
2387
+ const isInside = container.contains(target);
2388
+ if (isInside) {
2389
+ this.#manager.setFocusMemory(this, target);
2390
+ } else {
2391
+ const lastFocused = this.#manager.getFocusMemory(this);
2392
+ if (lastFocused && container.contains(lastFocused) && isFocusable(lastFocused)) {
2393
+ e.preventDefault();
2394
+ lastFocused.focus();
2395
+ } else {
2396
+ const firstTabbable = this.#getFirstTabbable();
2397
+ const firstFocusable = this.#getAllFocusables()[0];
2398
+ (firstTabbable || firstFocusable || container).focus();
2399
+ }
2400
+ }
2401
+ };
2402
+ const handleKeydown = (e) => {
2403
+ if (!this.#opts.loop || this.#paused || e.key !== "Tab") return;
2404
+ if (!this.#manager.isActiveScope(this)) return;
2405
+ const tabbables = this.#getTabbables();
2406
+ if (tabbables.length === 0) return;
2407
+ const first = tabbables[0];
2408
+ const last = tabbables[tabbables.length - 1];
2409
+ if (!e.shiftKey && getActiveElement(doc) === last) {
2410
+ e.preventDefault();
2411
+ first.focus();
2412
+ } else if (e.shiftKey && getActiveElement(doc) === first) {
2413
+ e.preventDefault();
2414
+ last.focus();
2415
+ }
2416
+ };
2417
+ this.#cleanupFns.push(on(doc, "focusin", handleFocus, { capture: true }), on(container, "keydown", handleKeydown));
2418
+ const observer = new MutationObserver(() => {
2419
+ const lastFocused = this.#manager.getFocusMemory(this);
2420
+ if (lastFocused && !container.contains(lastFocused)) {
2421
+ const firstTabbable = this.#getFirstTabbable();
2422
+ const firstFocusable = this.#getAllFocusables()[0];
2423
+ const elementToFocus = firstTabbable || firstFocusable;
2424
+ if (elementToFocus) {
2425
+ elementToFocus.focus();
2426
+ this.#manager.setFocusMemory(this, elementToFocus);
2427
+ } else {
2428
+ container.focus();
2429
+ }
2430
+ }
2431
+ });
2432
+ observer.observe(container, { childList: true, subtree: true });
2433
+ this.#cleanupFns.push(() => observer.disconnect());
2434
+ }
2435
+ #getTabbables() {
2436
+ if (!this.#container) return [];
2437
+ return tabbable(this.#container, { includeContainer: false, getShadowRoot: true });
2438
+ }
2439
+ #getFirstTabbable() {
2440
+ const tabbables = this.#getTabbables();
2441
+ return tabbables[0] || null;
2442
+ }
2443
+ #getAllFocusables() {
2444
+ if (!this.#container) return [];
2445
+ return focusable(this.#container, { includeContainer: false, getShadowRoot: true });
2446
+ }
2447
+ static use(opts) {
2448
+ let scope = null;
2449
+ watch([() => opts.ref.current, () => opts.enabled.current], ([ref, enabled]) => {
2450
+ if (ref && enabled) {
2451
+ if (!scope) {
2452
+ scope = new FocusScope(opts);
2453
+ }
2454
+ scope.mount(ref);
2455
+ } else if (scope) {
2456
+ scope.unmount();
2457
+ scope = null;
2458
+ }
2459
+ });
2460
+ return {
2461
+ get props() {
2462
+ return { tabindex: -1 };
2463
+ }
2464
+ };
2465
+ }
2466
+ }
2467
+ function Focus_scope($$renderer, $$props) {
2468
+ $$renderer.component(($$renderer2) => {
2469
+ let {
2470
+ enabled = false,
2471
+ trapFocus = false,
2472
+ loop = false,
2473
+ onCloseAutoFocus = noop,
2474
+ onOpenAutoFocus = noop,
2475
+ focusScope,
2476
+ ref
2477
+ } = $$props;
2478
+ const focusScopeState = FocusScope.use({
2479
+ enabled: boxWith(() => enabled),
2480
+ trap: boxWith(() => trapFocus),
2481
+ loop,
2482
+ onCloseAutoFocus: boxWith(() => onCloseAutoFocus),
2483
+ onOpenAutoFocus: boxWith(() => onOpenAutoFocus),
2484
+ ref
2485
+ });
2486
+ focusScope?.($$renderer2, { props: focusScopeState.props });
2487
+ $$renderer2.push(`<!---->`);
2488
+ });
2489
+ }
2490
+ const noopPointer = () => {
2491
+ };
2492
+ globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
2493
+ class TextSelectionLayerState {
2494
+ static create(opts) {
2495
+ return new TextSelectionLayerState(opts);
2496
+ }
2497
+ opts;
2498
+ domContext;
2499
+ #unsubSelectionLock = noop;
2500
+ #enabledSnapshot = false;
2501
+ #onPointerDownSnapshot = noopPointer;
2502
+ #onPointerUpSnapshot = noopPointer;
2503
+ constructor(opts) {
2504
+ this.opts = opts;
2505
+ this.domContext = new DOMContext(opts.ref);
2506
+ let unsubEvents = noop;
2507
+ watch(
2508
+ () => [
2509
+ this.opts.enabled.current,
2510
+ this.opts.onPointerDown.current,
2511
+ this.opts.onPointerUp.current
2512
+ ],
2513
+ ([enabled, onPointerDown, onPointerUp]) => {
2514
+ this.#enabledSnapshot = enabled;
2515
+ this.#onPointerDownSnapshot = onPointerDown;
2516
+ this.#onPointerUpSnapshot = onPointerUp;
2517
+ if (enabled) {
2518
+ globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled);
2519
+ unsubEvents();
2520
+ unsubEvents = this.#addEventListeners();
2521
+ }
2522
+ return () => {
2523
+ this.#enabledSnapshot = false;
2524
+ unsubEvents();
2525
+ this.#resetSelectionLock();
2526
+ globalThis.bitsTextSelectionLayers.delete(this);
2527
+ };
2528
+ }
2529
+ );
2530
+ }
2531
+ #addEventListeners() {
2532
+ return executeCallbacks(on(this.domContext.getDocument(), "pointerdown", this.#pointerdown), on(this.domContext.getDocument(), "pointerup", this.#pointerup));
2533
+ }
2534
+ #pointerup = (e) => {
2535
+ this.#resetSelectionLock();
2536
+ if (e.defaultPrevented) return;
2537
+ this.#onPointerUpSnapshot(e);
2538
+ };
2539
+ #pointerdown = (e) => {
2540
+ if (!this.#enabledSnapshot) return;
2541
+ this.#resetSelectionLock();
2542
+ const node = this.opts.ref.current;
2543
+ const target = e.target;
2544
+ if (!isHTMLElement(node) || !isHTMLElement(target)) return;
2545
+ if (!isHighestLayer(this) || !contains(node, target)) return;
2546
+ this.#onPointerDownSnapshot(e);
2547
+ if (e.defaultPrevented) return;
2548
+ this.#unsubSelectionLock = preventTextSelectionOverflow(node, this.domContext.getDocument().body);
2549
+ };
2550
+ #resetSelectionLock = () => {
2551
+ this.#unsubSelectionLock();
2552
+ this.#unsubSelectionLock = noop;
2553
+ };
2554
+ }
2555
+ const getUserSelect = (node) => node.style.userSelect || node.style.webkitUserSelect;
2556
+ function preventTextSelectionOverflow(node, body) {
2557
+ const originalBodyUserSelect = getUserSelect(body);
2558
+ const originalNodeUserSelect = getUserSelect(node);
2559
+ setUserSelect(body, "none");
2560
+ setUserSelect(node, "text");
2561
+ return () => {
2562
+ setUserSelect(body, originalBodyUserSelect);
2563
+ setUserSelect(node, originalNodeUserSelect);
2564
+ };
2565
+ }
2566
+ function setUserSelect(node, value) {
2567
+ node.style.userSelect = value;
2568
+ node.style.webkitUserSelect = value;
2569
+ }
2570
+ function isHighestLayer(instance) {
2571
+ const layersArr = [...globalThis.bitsTextSelectionLayers];
2572
+ if (!layersArr.length) return false;
2573
+ const highestLayer = layersArr.at(-1);
2574
+ if (!highestLayer) return false;
2575
+ return highestLayer[0] === instance;
2576
+ }
2577
+ function Text_selection_layer($$renderer, $$props) {
2578
+ $$renderer.component(($$renderer2) => {
2579
+ let {
2580
+ preventOverflowTextSelection = true,
2581
+ onPointerDown = noop,
2582
+ onPointerUp = noop,
2583
+ id,
2584
+ children,
2585
+ enabled,
2586
+ ref
2587
+ } = $$props;
2588
+ TextSelectionLayerState.create({
2589
+ id: boxWith(() => id),
2590
+ onPointerDown: boxWith(() => onPointerDown),
2591
+ onPointerUp: boxWith(() => onPointerUp),
2592
+ enabled: boxWith(() => enabled && preventOverflowTextSelection),
2593
+ ref
2594
+ });
2595
+ children?.($$renderer2);
2596
+ $$renderer2.push(`<!---->`);
2597
+ });
2598
+ }
2599
+ globalThis.bitsIdCounter ??= { current: 0 };
2600
+ function useId(prefix = "bits") {
2601
+ globalThis.bitsIdCounter.current++;
2602
+ return `${prefix}-${globalThis.bitsIdCounter.current}`;
2603
+ }
2604
+ class SharedState {
2605
+ #factory;
2606
+ #subscribers = 0;
2607
+ #state;
2608
+ #scope;
2609
+ constructor(factory) {
2610
+ this.#factory = factory;
2611
+ }
2612
+ #dispose() {
2613
+ this.#subscribers -= 1;
2614
+ if (this.#scope && this.#subscribers <= 0) {
2615
+ this.#scope();
2616
+ this.#state = void 0;
2617
+ this.#scope = void 0;
2618
+ }
2619
+ }
2620
+ get(...args) {
2621
+ this.#subscribers += 1;
2622
+ if (this.#state === void 0) {
2623
+ this.#scope = () => {
2624
+ };
2625
+ }
2626
+ return this.#state;
2627
+ }
2628
+ }
2629
+ const lockMap = new SvelteMap();
2630
+ const MANAGED_PROPERTIES = [
2631
+ "padding-right",
2632
+ "margin-right",
2633
+ "overflow",
2634
+ "overflow-x",
2635
+ "overflow-y",
2636
+ "pointer-events",
2637
+ "--scrollbar-width"
2638
+ ];
2639
+ let initialProperties = null;
2640
+ const modifiedProperties = /* @__PURE__ */ new Set();
2641
+ let cleanupTimeoutId = null;
2642
+ let isInCleanupTransition = false;
2643
+ function setManagedProperty(style, property, value) {
2644
+ style.setProperty(property, value);
2645
+ modifiedProperties.add(property);
2646
+ if (property === "overflow") {
2647
+ modifiedProperties.add("overflow-x");
2648
+ modifiedProperties.add("overflow-y");
2649
+ }
2650
+ }
2651
+ const anyLocked = boxWith(() => {
2652
+ for (const value of lockMap.values()) {
2653
+ if (value) return true;
2654
+ }
2655
+ return false;
2656
+ });
2657
+ let cleanupScheduledAt = null;
2658
+ const bodyLockStackCount = new SharedState(() => {
2659
+ function resetBodyStyle(documentObj) {
2660
+ return;
2661
+ }
2662
+ function cancelPendingCleanup() {
2663
+ if (cleanupTimeoutId === null) return;
2664
+ window.clearTimeout(cleanupTimeoutId);
2665
+ cleanupTimeoutId = null;
2666
+ }
2667
+ function scheduleCleanupIfNoNewLocks(delay, callback) {
2668
+ cancelPendingCleanup();
2669
+ isInCleanupTransition = true;
2670
+ cleanupScheduledAt = Date.now();
2671
+ const currentCleanupId = cleanupScheduledAt;
2672
+ const cleanupFn = () => {
2673
+ cleanupTimeoutId = null;
2674
+ if (cleanupScheduledAt !== currentCleanupId) return;
2675
+ if (!isAnyLocked(lockMap)) {
2676
+ isInCleanupTransition = false;
2677
+ callback();
2678
+ } else {
2679
+ isInCleanupTransition = false;
2680
+ }
2681
+ };
2682
+ const actualDelay = delay === null ? 24 : delay;
2683
+ cleanupTimeoutId = window.setTimeout(cleanupFn, actualDelay);
2684
+ }
2685
+ function ensureInitialStyleCaptured() {
2686
+ if (initialProperties === null && lockMap.size === 0 && !isInCleanupTransition) {
2687
+ document.body.hasAttribute("style");
2688
+ initialProperties = /* @__PURE__ */ new Map();
2689
+ for (const prop of MANAGED_PROPERTIES) {
2690
+ initialProperties.set(prop, {
2691
+ value: document.body.style.getPropertyValue(prop),
2692
+ priority: document.body.style.getPropertyPriority(prop)
2693
+ });
2694
+ }
2695
+ }
2696
+ }
2697
+ watch(() => anyLocked.current, () => {
2698
+ if (!anyLocked.current) return;
2699
+ ensureInitialStyleCaptured();
2700
+ isInCleanupTransition = false;
2701
+ const htmlStyle = getComputedStyle(document.documentElement);
2702
+ const bodyStyle = getComputedStyle(document.body);
2703
+ const hasStableGutter = htmlStyle.scrollbarGutter?.includes("stable") || bodyStyle.scrollbarGutter?.includes("stable");
2704
+ const verticalScrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
2705
+ const paddingRight = Number.parseInt(bodyStyle.paddingRight ?? "0", 10);
2706
+ const config = {
2707
+ padding: paddingRight + verticalScrollbarWidth,
2708
+ margin: Number.parseInt(bodyStyle.marginRight ?? "0", 10)
2709
+ };
2710
+ if (verticalScrollbarWidth > 0 && !hasStableGutter) {
2711
+ setManagedProperty(document.body.style, "padding-right", `${config.padding}px`);
2712
+ setManagedProperty(document.body.style, "margin-right", `${config.margin}px`);
2713
+ setManagedProperty(document.body.style, "--scrollbar-width", `${verticalScrollbarWidth}px`);
2714
+ }
2715
+ setManagedProperty(document.body.style, "overflow", "hidden");
2716
+ if (isIOS) {
2717
+ on(
2718
+ document,
2719
+ "touchmove",
2720
+ (e) => {
2721
+ if (e.target !== document.documentElement) return;
2722
+ if (e.touches.length > 1) return;
2723
+ e.preventDefault();
2724
+ },
2725
+ { passive: false }
2726
+ );
2727
+ }
2728
+ afterTick(() => {
2729
+ setManagedProperty(document.body.style, "pointer-events", "none");
2730
+ setManagedProperty(document.body.style, "overflow", "hidden");
2731
+ });
2732
+ });
2733
+ return {
2734
+ get lockMap() {
2735
+ return lockMap;
2736
+ },
2737
+ resetBodyStyle,
2738
+ scheduleCleanupIfNoNewLocks,
2739
+ cancelPendingCleanup,
2740
+ ensureInitialStyleCaptured
2741
+ };
2742
+ });
2743
+ class BodyScrollLock {
2744
+ #id = useId();
2745
+ #initialState;
2746
+ #restoreScrollDelay = () => null;
2747
+ #countState;
2748
+ locked;
2749
+ constructor(initialState, restoreScrollDelay = () => null) {
2750
+ this.#initialState = initialState;
2751
+ this.#restoreScrollDelay = restoreScrollDelay;
2752
+ this.#countState = bodyLockStackCount.get();
2753
+ if (!this.#countState) return;
2754
+ this.#countState.cancelPendingCleanup();
2755
+ this.#countState.ensureInitialStyleCaptured();
2756
+ this.#countState.lockMap.set(this.#id, this.#initialState ?? false);
2757
+ this.locked = boxWith(() => this.#countState.lockMap.get(this.#id) ?? false, (v) => this.#countState.lockMap.set(this.#id, v));
2758
+ }
2759
+ }
2760
+ function isAnyLocked(map) {
2761
+ for (const [_, value] of map) {
2762
+ if (value) return true;
2763
+ }
2764
+ return false;
2765
+ }
2766
+ function Scroll_lock($$renderer, $$props) {
2767
+ $$renderer.component(($$renderer2) => {
2768
+ let { preventScroll = true, restoreScrollDelay = null } = $$props;
2769
+ if (preventScroll) {
2770
+ new BodyScrollLock(preventScroll, () => restoreScrollDelay);
2771
+ }
2772
+ });
2773
+ }
2774
+
2775
+ export { boxFlatten as $, ARROW_DOWN as A, boolToEmptyStrOrUndef as B, Context as C, DOMContext as D, ENTER as E, Focus_scope as F, afterTick as G, TAB as H, isHTMLElement as I, PAGE_UP as J, HOME as K, ARROW_UP as L, PAGE_DOWN as M, END as N, isElementOrSVGElement as O, PresenceManager as P, isFocusVisible as Q, tabbable as R, SPACE as S, Text_selection_layer as T, isWritableSymbol as U, BoxSymbol as V, isFocusable as W, focusable as X, isSelectableInput as Y, ARROW_RIGHT as Z, ARROW_LEFT as _, createId as a, toReadonlyBox as a0, isBox as a1, isWritableBox as a2, getAriaChecked as a3, boxWith as b, createBitsAttrs as c, attachRef as d, boolToStr as e, boxFrom as f, getDataOpenClosed as g, isElement as h, isTouch as i, isTabbable as j, getDataTransitionAttrs as k, getDocument as l, mergeProps as m, noop as n, cssToStyleObj as o, isNotNull as p, styleToString as q, getWindow as r, simpleBox as s, defaultWindow as t, useId as u, Scroll_lock as v, watch as w, Escape_layer as x, Dismissible_layer as y, Portal as z };
2776
+ //# sourceMappingURL=scroll-lock.js-KJygphA1.js.map