@chrisjowen/wheelhouse 0.17.1 → 0.18.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 (387) hide show
  1. package/README.md +2 -2
  2. package/build/client/_app/immutable/assets/{0.DNJoTEVa.css → 0.Dyflbqc4.css} +1 -1
  3. package/build/client/_app/immutable/assets/0.Dyflbqc4.css.br +0 -0
  4. package/build/client/_app/immutable/assets/{0.DNJoTEVa.css.gz → 0.Dyflbqc4.css.gz} +0 -0
  5. package/build/client/_app/immutable/chunks/{_8osrypQ.js → 0RGfo0js.js} +1 -1
  6. package/build/client/_app/immutable/chunks/0RGfo0js.js.br +2 -0
  7. package/build/client/_app/immutable/chunks/0RGfo0js.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/{CF9qC7cA.js → B13jYnr5.js} +1 -1
  9. package/build/client/_app/immutable/chunks/B13jYnr5.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/B13jYnr5.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/{DwBYQnih.js → B5OMEixy.js} +1 -1
  12. package/build/client/_app/immutable/chunks/B5OMEixy.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/B5OMEixy.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/{iI4tqZHC.js → BDhezwGC.js} +1 -1
  15. package/build/client/_app/immutable/chunks/BDhezwGC.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/BDhezwGC.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{CxexnUzw.js → Bd8l0yTM.js} +1 -1
  18. package/build/client/_app/immutable/chunks/Bd8l0yTM.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/Bd8l0yTM.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/{Ch7J5mLH.js → BisZnsml.js} +1 -1
  21. package/build/client/_app/immutable/chunks/BisZnsml.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/BisZnsml.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/{BS3n5c7l.js → Bl_aeMq-.js} +1 -1
  24. package/build/client/_app/immutable/chunks/Bl_aeMq-.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/Bl_aeMq-.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/{RedPhL9b.js → Bm06it9w.js} +1 -1
  27. package/build/client/_app/immutable/chunks/Bm06it9w.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/Bm06it9w.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/{DkntkkRH.js → BvPKyGA8.js} +1 -1
  30. package/build/client/_app/immutable/chunks/BvPKyGA8.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/BvPKyGA8.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/{Bgm2YDEc.js → C8rIEWKQ.js} +1 -1
  33. package/build/client/_app/immutable/chunks/C8rIEWKQ.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/C8rIEWKQ.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/{ClSB0siN.js → ClopdZ_7.js} +1 -1
  36. package/build/client/_app/immutable/chunks/ClopdZ_7.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/ClopdZ_7.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/{CLADX83T.js → Cv4HO3U0.js} +1 -1
  39. package/build/client/_app/immutable/chunks/Cv4HO3U0.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/Cv4HO3U0.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/{D8F9xgmh.js → Cwq50RB4.js} +1 -1
  42. package/build/client/_app/immutable/chunks/Cwq50RB4.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/Cwq50RB4.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/{DP7xDWnQ.js → DJmeKpkq.js} +1 -1
  45. package/build/client/_app/immutable/chunks/DJmeKpkq.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/DJmeKpkq.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/{CXsGgEzT.js → Drqp3nkL.js} +1 -1
  48. package/build/client/_app/immutable/chunks/Drqp3nkL.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/Drqp3nkL.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/{CU0ZJcdF.js → HCiUQtkc.js} +2 -2
  51. package/build/client/_app/immutable/chunks/HCiUQtkc.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/HCiUQtkc.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/{CS4t4atW.js → V46v89bT.js} +1 -1
  54. package/build/client/_app/immutable/chunks/V46v89bT.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/V46v89bT.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/{BQPyzYAS.js → Y3845wkB.js} +1 -1
  57. package/build/client/_app/immutable/chunks/Y3845wkB.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/Y3845wkB.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/{CGRtmaS4.js → gS_jJyWs.js} +1 -1
  60. package/build/client/_app/immutable/chunks/gS_jJyWs.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/gS_jJyWs.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/{CH2Y0BVE.js → rWDJOr9L.js} +1 -1
  63. package/build/client/_app/immutable/chunks/rWDJOr9L.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/rWDJOr9L.js.gz +0 -0
  65. package/build/client/_app/immutable/entry/{app.DzMOOaXE.js → app.C_f-0Vea.js} +2 -2
  66. package/build/client/_app/immutable/entry/app.C_f-0Vea.js.br +0 -0
  67. package/build/client/_app/immutable/entry/app.C_f-0Vea.js.gz +0 -0
  68. package/build/client/_app/immutable/entry/start.CmPU2liD.js +1 -0
  69. package/build/client/_app/immutable/entry/start.CmPU2liD.js.br +0 -0
  70. package/build/client/_app/immutable/entry/start.CmPU2liD.js.gz +0 -0
  71. package/build/client/_app/immutable/nodes/{0.BIHpRnqw.js → 0.CycGUKhI.js} +1 -1
  72. package/build/client/_app/immutable/nodes/0.CycGUKhI.js.br +0 -0
  73. package/build/client/_app/immutable/nodes/0.CycGUKhI.js.gz +0 -0
  74. package/build/client/_app/immutable/nodes/{1.BJIoIsvP.js → 1.70vrwjqS.js} +1 -1
  75. package/build/client/_app/immutable/nodes/1.70vrwjqS.js.br +0 -0
  76. package/build/client/_app/immutable/nodes/1.70vrwjqS.js.gz +0 -0
  77. package/build/client/_app/immutable/nodes/{10.DRDVy09M.js → 10.CG7LxHir.js} +1 -1
  78. package/build/client/_app/immutable/nodes/10.CG7LxHir.js.br +0 -0
  79. package/build/client/_app/immutable/nodes/10.CG7LxHir.js.gz +0 -0
  80. package/build/client/_app/immutable/nodes/{11.B2EhouGG.js → 11.CvQ4cyM3.js} +1 -1
  81. package/build/client/_app/immutable/nodes/11.CvQ4cyM3.js.br +0 -0
  82. package/build/client/_app/immutable/nodes/11.CvQ4cyM3.js.gz +0 -0
  83. package/build/client/_app/immutable/nodes/{12.5fuIl1It.js → 12.D9IHJjN9.js} +1 -1
  84. package/build/client/_app/immutable/nodes/12.D9IHJjN9.js.br +0 -0
  85. package/build/client/_app/immutable/nodes/12.D9IHJjN9.js.gz +0 -0
  86. package/build/client/_app/immutable/nodes/{13.BHd8lAXB.js → 13.D-hvVuS1.js} +1 -1
  87. package/build/client/_app/immutable/nodes/13.D-hvVuS1.js.br +0 -0
  88. package/build/client/_app/immutable/nodes/13.D-hvVuS1.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/{14.DgsN2-TN.js → 14.DfUdqoEO.js} +1 -1
  90. package/build/client/_app/immutable/nodes/14.DfUdqoEO.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/14.DfUdqoEO.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/{15.CPHkfcQw.js → 15.CZRsd2Eg.js} +1 -1
  93. package/build/client/_app/immutable/nodes/15.CZRsd2Eg.js.br +0 -0
  94. package/build/client/_app/immutable/nodes/15.CZRsd2Eg.js.gz +0 -0
  95. package/build/client/_app/immutable/nodes/{16.CrpxQoZ7.js → 16.qfrdNFMy.js} +1 -1
  96. package/build/client/_app/immutable/nodes/16.qfrdNFMy.js.br +0 -0
  97. package/build/client/_app/immutable/nodes/16.qfrdNFMy.js.gz +0 -0
  98. package/build/client/_app/immutable/nodes/{17.B83y7TTZ.js → 17.D83W_Tta.js} +1 -1
  99. package/build/client/_app/immutable/nodes/17.D83W_Tta.js.br +0 -0
  100. package/build/client/_app/immutable/nodes/17.D83W_Tta.js.gz +0 -0
  101. package/build/client/_app/immutable/nodes/{19.BGzbdUG8.js → 19.BzcQyaMT.js} +1 -1
  102. package/build/client/_app/immutable/nodes/19.BzcQyaMT.js.br +0 -0
  103. package/build/client/_app/immutable/nodes/19.BzcQyaMT.js.gz +0 -0
  104. package/build/client/_app/immutable/nodes/{2.B_zXlRDw.js → 2.C5dTKKEn.js} +1 -1
  105. package/build/client/_app/immutable/nodes/2.C5dTKKEn.js.br +0 -0
  106. package/build/client/_app/immutable/nodes/2.C5dTKKEn.js.gz +0 -0
  107. package/build/client/_app/immutable/nodes/{20.CQE-Zjw-.js → 20.HovxKElE.js} +1 -1
  108. package/build/client/_app/immutable/nodes/20.HovxKElE.js.br +0 -0
  109. package/build/client/_app/immutable/nodes/20.HovxKElE.js.gz +0 -0
  110. package/build/client/_app/immutable/nodes/{21.BjSp2mZI.js → 21.2vXCaqsr.js} +1 -1
  111. package/build/client/_app/immutable/nodes/21.2vXCaqsr.js.br +0 -0
  112. package/build/client/_app/immutable/nodes/21.2vXCaqsr.js.gz +0 -0
  113. package/build/client/_app/immutable/nodes/{22.BycUFjCM.js → 22.C2_CQQkD.js} +1 -1
  114. package/build/client/_app/immutable/nodes/22.C2_CQQkD.js.br +0 -0
  115. package/build/client/_app/immutable/nodes/22.C2_CQQkD.js.gz +0 -0
  116. package/build/client/_app/immutable/nodes/{23.BjOud3nL.js → 23.DLyV0afL.js} +1 -1
  117. package/build/client/_app/immutable/nodes/23.DLyV0afL.js.br +0 -0
  118. package/build/client/_app/immutable/nodes/23.DLyV0afL.js.gz +0 -0
  119. package/build/client/_app/immutable/nodes/{24.DmaWt7EU.js → 24.B3x35Hk8.js} +1 -1
  120. package/build/client/_app/immutable/nodes/24.B3x35Hk8.js.br +0 -0
  121. package/build/client/_app/immutable/nodes/24.B3x35Hk8.js.gz +0 -0
  122. package/build/client/_app/immutable/nodes/25.nwMZWq7u.js +20 -0
  123. package/build/client/_app/immutable/nodes/25.nwMZWq7u.js.br +0 -0
  124. package/build/client/_app/immutable/nodes/25.nwMZWq7u.js.gz +0 -0
  125. package/build/client/_app/immutable/nodes/{26.BxG4S8mB.js → 26.Djo0UcCH.js} +1 -1
  126. package/build/client/_app/immutable/nodes/26.Djo0UcCH.js.br +0 -0
  127. package/build/client/_app/immutable/nodes/26.Djo0UcCH.js.gz +0 -0
  128. package/build/client/_app/immutable/nodes/{28.Ds4FDR_a.js → 28.SqN60QfL.js} +1 -1
  129. package/build/client/_app/immutable/nodes/28.SqN60QfL.js.br +0 -0
  130. package/build/client/_app/immutable/nodes/28.SqN60QfL.js.gz +0 -0
  131. package/build/client/_app/immutable/nodes/{3.CldWfpKa.js → 3.CNDDXR-R.js} +1 -1
  132. package/build/client/_app/immutable/nodes/3.CNDDXR-R.js.br +0 -0
  133. package/build/client/_app/immutable/nodes/3.CNDDXR-R.js.gz +0 -0
  134. package/build/client/_app/immutable/nodes/{4.Ds0FcslK.js → 4.Dajo6qs6.js} +1 -1
  135. package/build/client/_app/immutable/nodes/4.Dajo6qs6.js.br +0 -0
  136. package/build/client/_app/immutable/nodes/4.Dajo6qs6.js.gz +0 -0
  137. package/build/client/_app/immutable/nodes/{6.CvP4hVA3.js → 6.BHt0DwZF.js} +1 -1
  138. package/build/client/_app/immutable/nodes/6.BHt0DwZF.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/6.BHt0DwZF.js.gz +0 -0
  140. package/build/client/_app/immutable/nodes/{7.Ca_DVOMc.js → 7.BIfa9MqV.js} +1 -1
  141. package/build/client/_app/immutable/nodes/7.BIfa9MqV.js.br +0 -0
  142. package/build/client/_app/immutable/nodes/7.BIfa9MqV.js.gz +0 -0
  143. package/build/client/_app/immutable/nodes/{8.D8JqGvkd.js → 8.CKbZrwQ8.js} +1 -1
  144. package/build/client/_app/immutable/nodes/8.CKbZrwQ8.js.br +0 -0
  145. package/build/client/_app/immutable/nodes/8.CKbZrwQ8.js.gz +0 -0
  146. package/build/client/_app/immutable/nodes/{9.CHSFcAbh.js → 9.BbThPsu4.js} +1 -1
  147. package/build/client/_app/immutable/nodes/9.BbThPsu4.js.br +0 -0
  148. package/build/client/_app/immutable/nodes/9.BbThPsu4.js.gz +0 -0
  149. package/build/client/_app/version.json +1 -1
  150. package/build/client/_app/version.json.br +0 -0
  151. package/build/client/_app/version.json.gz +0 -0
  152. package/build/handler.js +4 -4
  153. package/build/index.js +4 -4
  154. package/build/server/chunks/chunks/{detail.js-T1brxxWW.js → detail.js-K2fb6vUl.js} +2 -2
  155. package/build/server/chunks/chunks/{feedback.js-0cB22LBt.js → feedback.js-gBLi4FYP.js} +2 -2
  156. package/build/server/chunks/chunks/{harness.js-DPojOlFJ.js → harness.js-C1CYCy4c.js} +2 -2
  157. package/build/server/chunks/chunks/{internal.js-BJRpqxxM.js → internal.js-BOM77MfQ.js} +3 -3
  158. package/build/server/chunks/chunks/{keychain.js-CsTOqhf4.js → keychain.js-DDSo_IW8.js} +2 -2
  159. package/build/server/chunks/chunks/{marketplace-service.js-CckS3apE.js → marketplace-service.js-QhO4MhZa.js} +2 -2
  160. package/build/server/chunks/chunks/{page.js-D5V2PN2q.js → page.js-6KzOUc5P.js} +2 -2
  161. package/build/server/chunks/chunks/{previewhelper2.js-DRcdOpNv.js → previewhelper2.js-Dza1zgQB.js} +2 -2
  162. package/build/server/chunks/chunks/{repo.js-CsdCOmUL.js → repo.js-Aq4DOLtb.js} +2 -2
  163. package/build/server/chunks/chunks/{runtime.js-CbmzOl0F.js → runtime.js-DKYCLRYC.js} +12396 -11676
  164. package/build/server/chunks/chunks/{service.js-DztM8MY5.js → service.js-D9kA6Dvq.js} +2 -2
  165. package/build/server/chunks/chunks/{service2.js-DQccL6zz.js → service2.js-Dx7TTUyO.js} +141 -441
  166. package/build/server/chunks/chunks/{starter.js-ROzdTBeO.js → starter.js-BjLPYDEU.js} +2 -2
  167. package/build/server/chunks/chunks/terminal.js-Cr5N1hVN.js +189 -0
  168. package/build/server/chunks/chunks/{view.js-BDo4J83f.js → view.js-D6_Y6e4W.js} +2 -2
  169. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-BTTHbZK6.js → _server.ts.js-C8-Bqwz2.js} +5 -5
  170. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-m9cTbE-7.js → _server.ts.js-iHvZiw6L.js} +3 -3
  171. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-z8BbPJ2P.js → _server.ts.js-C2083EnL.js} +5 -5
  172. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-BniUpesu.js → _server.ts.js-DXerC_lz.js} +5 -5
  173. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-B0WcXQJH.js → _server.ts.js-DkrVdgsY.js} +5 -5
  174. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CncNeTwM.js → _server.ts.js-itkq-Zhc.js} +5 -5
  175. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-hnvcy9Ia.js → _server.ts.js-BClrQ76Y.js} +5 -5
  176. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-BQgc12gv.js → _server.ts.js-CSaP0hys.js} +5 -5
  177. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-Cpq1OUlv.js → _server.ts.js-Cpm8-Jaf.js} +5 -5
  178. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DcduvTz-.js → _server.ts.js-DxSC3HLK.js} +5 -5
  179. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-r_OTtndR.js → _server.ts.js-CITZvyir.js} +5 -5
  180. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-DRc0m-xP.js → _server.ts.js-7uCkkloP.js} +5 -5
  181. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-DBrNAwQy.js → _server.ts.js-RSm-5UF2.js} +5 -5
  182. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-D1Q8V-y_.js → _server.ts.js-CbHftl32.js} +5 -5
  183. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-cN8CO68M.js → _server.ts.js-DTbyWHA5.js} +5 -5
  184. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-BSpvCzuX.js → _server.ts.js-Dgj64C-8.js} +5 -5
  185. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-Cs9IYII5.js → _server.ts.js-8Ao3NA-E.js} +5 -5
  186. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-D2iFH361.js → _server.ts.js-DGBE7UIq.js} +5 -5
  187. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-BnZZNGqp.js → _server.ts.js-DqkXU31r.js} +5 -5
  188. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-6-pUqSbs.js → _server.ts.js-DVanxkdv.js} +5 -5
  189. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-BRHI8EzR.js → _server.ts.js-Cm68Rf5I.js} +5 -5
  190. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-D75GJhqf.js → _server.ts.js-3OGDAdpk.js} +6 -6
  191. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-DXlq6GNe.js → _server.ts.js-CFU80BaE.js} +7 -7
  192. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DzCq67Pq.js → _server.ts.js-KWWnKNbi.js} +5 -5
  193. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DP4Br_Kb.js → _server.ts.js-B_5x0zJS.js} +2 -2
  194. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-BTZibvW1.js → _server.ts.js-C90RNY_X.js} +5 -5
  195. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-BVEiTedk.js → _server.ts.js-DvGxNP7H.js} +2 -2
  196. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-BARKIuL9.js → _server.ts.js-CiLDpQsQ.js} +5 -5
  197. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-vXn-DxW7.js → _server.ts.js-B1XZhaia.js} +2 -2
  198. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-BrTsfhpU.js → _server.ts.js-DSD7vM9f.js} +2 -2
  199. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-uLUVa1Yc.js → _server.ts.js-CSXJmx4K.js} +6 -6
  200. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-fFGC33td.js → _server.ts.js-CBscduVo.js} +6 -6
  201. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-CV30SKJH.js → _server.ts.js-CbuLtoHm.js} +6 -6
  202. package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-BmywjWsD.js → _server.ts.js-Dwfzypry.js} +5 -5
  203. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-C928jxXA.js → _server.ts.js-B5BKYa3M.js} +2 -2
  204. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-DsVDHPoG.js → _server.ts.js-C4c7W5Q_.js} +5 -5
  205. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-B5kai_f_.js → _server.ts.js-D6V8uWHn.js} +6 -6
  206. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-DFdhVYKr.js → _server.ts.js-B2ihTXgb.js} +6 -6
  207. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-C3rHPgm9.js → _server.ts.js-kXH0W1Ky.js} +6 -6
  208. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-GMslvRRG.js → _server.ts.js-DzwBz0wz.js} +6 -6
  209. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-G6S2vjwB.js → _server.ts.js-uTK3V5EE.js} +6 -6
  210. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-nDbd4-FQ.js → _server.ts.js-Cl4zIULt.js} +6 -6
  211. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-v9aqCXY5.js → _server.ts.js-DqjxxFau.js} +5 -5
  212. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-BLxZZ6h-.js → _server.ts.js-dVN9ikOu.js} +5 -5
  213. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-BViJ-Ufk.js → _server.ts.js-_iOzae7t.js} +22 -9
  214. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-T0HJn3Nc.js → _server.ts.js-XMhnf3Ej.js} +5 -5
  215. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-DN9vhG-X.js → _server.ts.js-KZTObDbB.js} +6 -6
  216. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-azR55GM-.js → _server.ts.js-DyjUgwF7.js} +5 -5
  217. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-NfTPilV6.js → _server.ts.js-CalJli32.js} +5 -5
  218. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-DzTACS2K.js → _server.ts.js-DWPP0yu8.js} +5 -5
  219. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-iObKq15r.js → _server.ts.js-0Nyn7nbY.js} +5 -5
  220. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-CFL0gv8m.js → _server.ts.js-3z5OVCPe.js} +6 -6
  221. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-CxnJ6MH1.js → _server.ts.js-AbPbPvOK.js} +5 -5
  222. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-BzHUulBR.js → _server.ts.js-D029CrEh.js} +2 -2
  223. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-CwIEgYLU.js → _server.ts.js-BfHTqL2O.js} +2 -2
  224. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-BfV0Rwjv.js → _server.ts.js-CIRed7Ae.js} +2 -2
  225. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-D0M-kf3z.js → _server.ts.js-CvvKgDa5.js} +5 -5
  226. package/build/server/chunks/entries/{hooks.server.js-BK27kVep.js → hooks.server.js-C9TJKrED.js} +5 -5
  227. package/build/server/chunks/entries/pages/{_layout.server.ts.js-thMV7ofo.js → _layout.server.ts.js-BfjTrg6R.js} +2 -2
  228. package/build/server/chunks/entries/pages/{_page.server.ts.js-IJJCfEOr.js → _page.server.ts.js-BFfRDA3t.js} +2 -2
  229. package/build/server/chunks/entries/pages/{_page.svelte.js-DK0vMDpM.js → _page.svelte.js-dxbEuRWy.js} +2 -2
  230. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-BknW8CoP.js → _page.server.ts.js-aZNQQOb5.js} +2 -2
  231. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-FcsedjYb.js → _page.server.ts.js-CLBsxhmZ.js} +2 -2
  232. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-NxhxpluO.js → _page.server.ts.js-Dtrn3Jt8.js} +2 -2
  233. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-D0vCnVfw.js → _page.server.ts.js-DYrU0BeU.js} +2 -2
  234. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-8pe9nMCl.js → _page.server.ts.js-UKBrFpbo.js} +2 -2
  235. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-D5ACh022.js → _page.server.ts.js-COlncgCa.js} +2 -2
  236. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-BKpNXqUB.js → _page.server.ts.js-Bay2qA2Q.js} +2 -2
  237. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-DKtUeDFH.js → _page.server.ts.js-CU7ds9LA.js} +3 -3
  238. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-CAfpJ8z4.js → _page.server.ts.js-BGGSKQqb.js} +3 -3
  239. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-DhvAOslS.js → _page.server.ts.js-CnSUSATt.js} +4 -4
  240. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-BbR8eGg8.js → _page.server.ts.js-_7cU19E_.js} +2 -2
  241. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-CFi9Cpz4.js → _page.server.ts.js-C1Yxudql.js} +2 -2
  242. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-CGyBG4Yp.js → _page.server.ts.js-DTNE52aZ.js} +2 -2
  243. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-Bh0E2kwq.js → _page.server.ts.js-CrhYOE-D.js} +2 -2
  244. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-DcSZoBEC.js → _page.server.ts.js-CifBaqFj.js} +2 -2
  245. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-v3Tp8x_0.js → _page.server.ts.js-EKuElYxp.js} +2 -2
  246. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-BnpgnteD.js → _page.server.ts.js-BF8rdJhn.js} +2 -2
  247. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DQfv8ZWG.js → _page.server.ts.js-CrElCh4A.js} +2 -2
  248. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-CvG2Lr9C.js → _page.server.ts.js-wycRiBir.js} +3 -3
  249. package/build/server/chunks/entries/pages/setup/{_page.svelte.js-BZsw7k9z.js → _page.svelte.js-C1CXNUmI.js} +206 -33
  250. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-_ivyEUli.js → _page.server.ts.js-CYQPki7W.js} +3 -3
  251. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-CSJ4X_eg.js → _page.server.ts.js-ecgyPy_T.js} +2 -2
  252. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-CUc80zxD.js → _page.server.ts.js-DSQc-xWi.js} +2 -2
  253. package/build/server/chunks/{handler-CBnQILkF.js → handler-BHDQVtZw.js} +3 -3
  254. package/build/server/chunks/{index.js-8K34DF7Q.js → index.js-CrFdVwqU.js} +2 -2
  255. package/build/server/chunks/{manifest.js-DqAt-2-E.js → manifest.js-Dja0Po5-.js} +87 -87
  256. package/build/server/chunks/nodes/{0.js-B_9UrGRh.js → 0.js-NNn8Cg6_.js} +8 -8
  257. package/build/server/chunks/nodes/{1.js-DHSqapc6.js → 1.js-B4fNjYoV.js} +2 -2
  258. package/build/server/chunks/nodes/{10.js-Cw8UPtK2.js → 10.js-CmLFT1Pj.js} +2 -2
  259. package/build/server/chunks/nodes/{11.js-BIyDysEr.js → 11.js-BQqPaZKt.js} +7 -7
  260. package/build/server/chunks/nodes/{12.js-ClZNXjgF.js → 12.js-uooOT7mU.js} +8 -8
  261. package/build/server/chunks/nodes/{13.js-B8qskPtO.js → 13.js-Bwsn9ad_.js} +8 -8
  262. package/build/server/chunks/nodes/{14.js-DRbS2pR2.js → 14.js-RxQ3KjAZ.js} +9 -9
  263. package/build/server/chunks/nodes/{15.js-EWY83mDS.js → 15.js-mrYlzb81.js} +8 -8
  264. package/build/server/chunks/nodes/{16.js-Cm0oYApC.js → 16.js-Uqhuspdc.js} +6 -6
  265. package/build/server/chunks/nodes/{17.js-Cu5a2UaQ.js → 17.js-xO4_vt9v.js} +2 -2
  266. package/build/server/chunks/nodes/{19.js-B7TKyMV0.js → 19.js-Bp0kyiVl.js} +6 -6
  267. package/build/server/chunks/nodes/{2.js-DltTHZOL.js → 2.js-DiF_CXqM.js} +8 -8
  268. package/build/server/chunks/nodes/{20.js-CwLFSrxO.js → 20.js--x681h54.js} +7 -7
  269. package/build/server/chunks/nodes/{21.js-D_0U5UVP.js → 21.js-BWa_e-es.js} +7 -7
  270. package/build/server/chunks/nodes/{22.js-C2r9JmW7.js → 22.js-yLTp3XfM.js} +7 -7
  271. package/build/server/chunks/nodes/{23.js-h4YwJvrO.js → 23.js-gx53Nzzh.js} +8 -8
  272. package/build/server/chunks/nodes/{24.js-BciJ1KTf.js → 24.js-Ci8dS_77.js} +4 -4
  273. package/build/server/chunks/nodes/{25.js-ZCknzNaV.js → 25.js-WBDsJGik.js} +9 -9
  274. package/build/server/chunks/nodes/{26.js-BUolTInv.js → 26.js-CZ4lN-gH.js} +8 -8
  275. package/build/server/chunks/nodes/{27.js-DcvlJkEN.js → 27.js-DPEzrdzK.js} +7 -7
  276. package/build/server/chunks/nodes/{28.js-DPp6-E4I.js → 28.js-BJ38Ryxz.js} +7 -7
  277. package/build/server/chunks/nodes/{3.js-CLE5bCBt.js → 3.js-D52LKb1w.js} +7 -7
  278. package/build/server/chunks/nodes/{4.js-BXXDgWZn.js → 4.js-DDItN7w8.js} +7 -7
  279. package/build/server/chunks/nodes/{5.js-BtthxHsw.js → 5.js-DJ1sVBVf.js} +6 -6
  280. package/build/server/chunks/nodes/{6.js-C3hPPfLf.js → 6.js-D_Aqt_hx.js} +7 -7
  281. package/build/server/chunks/nodes/{7.js-v18x97qv.js → 7.js-tS4lw5ka.js} +7 -7
  282. package/build/server/chunks/nodes/{8.js-Csojentz.js → 8.js-ChN4dMEU.js} +7 -7
  283. package/build/server/chunks/nodes/{9.js-3NVn9Z4u.js → 9.js-BpLLOWXa.js} +2 -2
  284. package/dist/cli.js +314 -157
  285. package/dist/wh-vault.js +1 -1
  286. package/package.json +1 -1
  287. package/skills/manage-wheelhouse/references/operations.md +24 -22
  288. package/build/client/_app/immutable/assets/0.DNJoTEVa.css.br +0 -0
  289. package/build/client/_app/immutable/chunks/BQPyzYAS.js.br +0 -0
  290. package/build/client/_app/immutable/chunks/BQPyzYAS.js.gz +0 -0
  291. package/build/client/_app/immutable/chunks/BS3n5c7l.js.br +0 -0
  292. package/build/client/_app/immutable/chunks/BS3n5c7l.js.gz +0 -0
  293. package/build/client/_app/immutable/chunks/Bgm2YDEc.js.br +0 -0
  294. package/build/client/_app/immutable/chunks/Bgm2YDEc.js.gz +0 -0
  295. package/build/client/_app/immutable/chunks/CF9qC7cA.js.br +0 -0
  296. package/build/client/_app/immutable/chunks/CF9qC7cA.js.gz +0 -0
  297. package/build/client/_app/immutable/chunks/CGRtmaS4.js.br +0 -0
  298. package/build/client/_app/immutable/chunks/CGRtmaS4.js.gz +0 -0
  299. package/build/client/_app/immutable/chunks/CH2Y0BVE.js.br +0 -0
  300. package/build/client/_app/immutable/chunks/CH2Y0BVE.js.gz +0 -0
  301. package/build/client/_app/immutable/chunks/CLADX83T.js.br +0 -0
  302. package/build/client/_app/immutable/chunks/CLADX83T.js.gz +0 -0
  303. package/build/client/_app/immutable/chunks/CS4t4atW.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/CS4t4atW.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/CU0ZJcdF.js.br +0 -0
  306. package/build/client/_app/immutable/chunks/CU0ZJcdF.js.gz +0 -0
  307. package/build/client/_app/immutable/chunks/CXsGgEzT.js.br +0 -0
  308. package/build/client/_app/immutable/chunks/CXsGgEzT.js.gz +0 -0
  309. package/build/client/_app/immutable/chunks/Ch7J5mLH.js.br +0 -0
  310. package/build/client/_app/immutable/chunks/Ch7J5mLH.js.gz +0 -0
  311. package/build/client/_app/immutable/chunks/ClSB0siN.js.br +0 -0
  312. package/build/client/_app/immutable/chunks/ClSB0siN.js.gz +0 -0
  313. package/build/client/_app/immutable/chunks/CxexnUzw.js.br +0 -0
  314. package/build/client/_app/immutable/chunks/CxexnUzw.js.gz +0 -0
  315. package/build/client/_app/immutable/chunks/D8F9xgmh.js.br +0 -0
  316. package/build/client/_app/immutable/chunks/D8F9xgmh.js.gz +0 -0
  317. package/build/client/_app/immutable/chunks/DP7xDWnQ.js.br +0 -0
  318. package/build/client/_app/immutable/chunks/DP7xDWnQ.js.gz +0 -0
  319. package/build/client/_app/immutable/chunks/DkntkkRH.js.br +0 -0
  320. package/build/client/_app/immutable/chunks/DkntkkRH.js.gz +0 -0
  321. package/build/client/_app/immutable/chunks/DwBYQnih.js.br +0 -0
  322. package/build/client/_app/immutable/chunks/DwBYQnih.js.gz +0 -0
  323. package/build/client/_app/immutable/chunks/RedPhL9b.js.br +0 -0
  324. package/build/client/_app/immutable/chunks/RedPhL9b.js.gz +0 -0
  325. package/build/client/_app/immutable/chunks/_8osrypQ.js.br +0 -2
  326. package/build/client/_app/immutable/chunks/_8osrypQ.js.gz +0 -0
  327. package/build/client/_app/immutable/chunks/iI4tqZHC.js.br +0 -0
  328. package/build/client/_app/immutable/chunks/iI4tqZHC.js.gz +0 -0
  329. package/build/client/_app/immutable/entry/app.DzMOOaXE.js.br +0 -0
  330. package/build/client/_app/immutable/entry/app.DzMOOaXE.js.gz +0 -0
  331. package/build/client/_app/immutable/entry/start.BP7YKN_Q.js +0 -1
  332. package/build/client/_app/immutable/entry/start.BP7YKN_Q.js.br +0 -0
  333. package/build/client/_app/immutable/entry/start.BP7YKN_Q.js.gz +0 -0
  334. package/build/client/_app/immutable/nodes/0.BIHpRnqw.js.br +0 -0
  335. package/build/client/_app/immutable/nodes/0.BIHpRnqw.js.gz +0 -0
  336. package/build/client/_app/immutable/nodes/1.BJIoIsvP.js.br +0 -0
  337. package/build/client/_app/immutable/nodes/1.BJIoIsvP.js.gz +0 -0
  338. package/build/client/_app/immutable/nodes/10.DRDVy09M.js.br +0 -0
  339. package/build/client/_app/immutable/nodes/10.DRDVy09M.js.gz +0 -0
  340. package/build/client/_app/immutable/nodes/11.B2EhouGG.js.br +0 -0
  341. package/build/client/_app/immutable/nodes/11.B2EhouGG.js.gz +0 -0
  342. package/build/client/_app/immutable/nodes/12.5fuIl1It.js.br +0 -0
  343. package/build/client/_app/immutable/nodes/12.5fuIl1It.js.gz +0 -0
  344. package/build/client/_app/immutable/nodes/13.BHd8lAXB.js.br +0 -0
  345. package/build/client/_app/immutable/nodes/13.BHd8lAXB.js.gz +0 -0
  346. package/build/client/_app/immutable/nodes/14.DgsN2-TN.js.br +0 -0
  347. package/build/client/_app/immutable/nodes/14.DgsN2-TN.js.gz +0 -0
  348. package/build/client/_app/immutable/nodes/15.CPHkfcQw.js.br +0 -0
  349. package/build/client/_app/immutable/nodes/15.CPHkfcQw.js.gz +0 -0
  350. package/build/client/_app/immutable/nodes/16.CrpxQoZ7.js.br +0 -0
  351. package/build/client/_app/immutable/nodes/16.CrpxQoZ7.js.gz +0 -0
  352. package/build/client/_app/immutable/nodes/17.B83y7TTZ.js.br +0 -0
  353. package/build/client/_app/immutable/nodes/17.B83y7TTZ.js.gz +0 -0
  354. package/build/client/_app/immutable/nodes/19.BGzbdUG8.js.br +0 -0
  355. package/build/client/_app/immutable/nodes/19.BGzbdUG8.js.gz +0 -0
  356. package/build/client/_app/immutable/nodes/2.B_zXlRDw.js.br +0 -0
  357. package/build/client/_app/immutable/nodes/2.B_zXlRDw.js.gz +0 -0
  358. package/build/client/_app/immutable/nodes/20.CQE-Zjw-.js.br +0 -0
  359. package/build/client/_app/immutable/nodes/20.CQE-Zjw-.js.gz +0 -0
  360. package/build/client/_app/immutable/nodes/21.BjSp2mZI.js.br +0 -0
  361. package/build/client/_app/immutable/nodes/21.BjSp2mZI.js.gz +0 -0
  362. package/build/client/_app/immutable/nodes/22.BycUFjCM.js.br +0 -0
  363. package/build/client/_app/immutable/nodes/22.BycUFjCM.js.gz +0 -0
  364. package/build/client/_app/immutable/nodes/23.BjOud3nL.js.br +0 -0
  365. package/build/client/_app/immutable/nodes/23.BjOud3nL.js.gz +0 -0
  366. package/build/client/_app/immutable/nodes/24.DmaWt7EU.js.br +0 -0
  367. package/build/client/_app/immutable/nodes/24.DmaWt7EU.js.gz +0 -0
  368. package/build/client/_app/immutable/nodes/25.DpdKssoo.js +0 -15
  369. package/build/client/_app/immutable/nodes/25.DpdKssoo.js.br +0 -0
  370. package/build/client/_app/immutable/nodes/25.DpdKssoo.js.gz +0 -0
  371. package/build/client/_app/immutable/nodes/26.BxG4S8mB.js.br +0 -0
  372. package/build/client/_app/immutable/nodes/26.BxG4S8mB.js.gz +0 -0
  373. package/build/client/_app/immutable/nodes/28.Ds4FDR_a.js.br +0 -0
  374. package/build/client/_app/immutable/nodes/28.Ds4FDR_a.js.gz +0 -0
  375. package/build/client/_app/immutable/nodes/3.CldWfpKa.js.br +0 -0
  376. package/build/client/_app/immutable/nodes/3.CldWfpKa.js.gz +0 -0
  377. package/build/client/_app/immutable/nodes/4.Ds0FcslK.js.br +0 -0
  378. package/build/client/_app/immutable/nodes/4.Ds0FcslK.js.gz +0 -0
  379. package/build/client/_app/immutable/nodes/6.CvP4hVA3.js.br +0 -0
  380. package/build/client/_app/immutable/nodes/6.CvP4hVA3.js.gz +0 -0
  381. package/build/client/_app/immutable/nodes/7.Ca_DVOMc.js.br +0 -0
  382. package/build/client/_app/immutable/nodes/7.Ca_DVOMc.js.gz +0 -0
  383. package/build/client/_app/immutable/nodes/8.D8JqGvkd.js.br +0 -0
  384. package/build/client/_app/immutable/nodes/8.D8JqGvkd.js.gz +0 -0
  385. package/build/client/_app/immutable/nodes/9.CHSFcAbh.js.br +0 -0
  386. package/build/client/_app/immutable/nodes/9.CHSFcAbh.js.gz +0 -0
  387. package/build/server/chunks/chunks/terminal.js-BUurgI6D.js +0 -81
@@ -1 +1 @@
1
- import{p as r}from"./CS4t4atW.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
1
+ import{p as r}from"./V46v89bT.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
@@ -0,0 +1,2 @@
1
+ @d�m�)iGr/���o�U;.�����(�$;ШT��[#K�ˌJ�S�}w(������ ,3mD>��|J�]Cׅ�6OM�)��-����*�0�VȊ^A*
2
+ ���PC{�9���_)R����|�a�c
@@ -1,4 +1,4 @@
1
- import{k as pn,A as mn,H as wn,ae as vn,bE as yn,i as A,g as p,aD as xn,u as rt,p as et,j as X,f as V,aa as $,a as W,b as nt,m as N,q as Wt,v as C,s as Et,c as kt,aE as St,aG as Ke,h as dt,r as ft,l as bn,n as On,w as Pn,t as An,d as Cn,y as $t,x as Sn}from"./BuRWgnCz.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./BAOiF0in.js";import{I as En}from"./xH4qmLqM.js";import{s as j}from"./B2RyWxmQ.js";import{i as gt}from"./BDpRITyb.js";import{l as Ft}from"./Cwb6d3g_.js";import{i as Fn,C as Yt,s as it,j as Tn,b as E,k as Dt,u as Xe,l as Dn,n as _n,o as Mn,w as _t,p as In,m as bt,F as kn,S as Ae,E as Bn,q as Wn,T as Ln,r as Hn,t as ht,v as Ce,x as Nn,y as Ht,z as Rn,A as zn,B as Ye,G as Vn,H as Kn,I as Xn,J as Yn,c as Ue,K as xt,P as Un,f as jn,e as qn,g as Zn,a as Gn,h as Jn}from"./DVEiwmFn.js";import{o as Qn}from"./RYq3318d.js";import{b as $n}from"./BQPyzYAS.js";import{e as je}from"./CXsGgEzT.js";import{c as yt}from"./DLuhTA05.js";import{X as to}from"./rS7QE60d.js";function ai(e,t,n){pn(()=>{var o=mn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};wn(()=>{var s=n();vn(s),r&&yn(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var eo=new Set(["$$slots","$$events","$$legacy"]);function li(e,t){let n=vt(t,eo);const o={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]]};En(e,Pt(()=>n,{get icon(){return o}}))}function no(e){return typeof e=="function"}function Se(e){return no(e)?e():e}class oo{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(p(this.#n)?.(),this.getSize().width));#a=A(()=>(p(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=Se(this.#r);if(t)return xn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,f)=>Math.max(l,f.inlineSize),0),this.#t.height=a.reduce((l,f)=>Math.max(l,f.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??Fn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Se(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),f=n-i-a,u=o-s-l;return{width:f,height:u}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return p(this.#n)?.(),this.getSize()}get width(){return p(this.#s)}get height(){return p(this.#a)}}const ce=new Yt("Floating.Root"),ue=new Yt("Floating.Root");class Nt{static create(t=!1){return t?ue.set(new Nt):ce.set(new Nt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Rt{static create(t,n=!1){return n?new Rt(t,ue.get()):new Rt(t,ce.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Tn(t.virtualEl.current):n.triggerNode=t.ref}}function ro(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Nt.create(n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}function ct(e){return typeof e=="function"?e():e}function qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){const n=qe(e);return Math.round(t*n)/n}function Fe(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function io(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Rt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}const so=["top","right","bottom","left"],st=Math.min,J=Math.max,zt=Math.round,Bt=Math.floor,Q=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return J(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function de(e){return e==="x"?"y":"x"}function fe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function he(e){return de(q(e))}function lo(e,t,n){n===void 0&&(n=!1);const o=At(e),r=he(e),i=fe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function co(e){const t=Vt(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Te=["left","right"],De=["right","left"],uo=["top","bottom"],fo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?De:Te:t?Te:De;case"left":case"right":return t?uo:fo;default:return[]}}function go(e,t,n,o){const r=At(e);let i=ho(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ie)))),i}function Vt(e){const t=at(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ge(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _e(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=he(t),a=fe(s),l=at(t),f=i==="y",u=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:u,y:o.y-r.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:h};break;case"left":c={x:o.x-r.width,y:h};break;default:c={x:o.x,y:o.y}}const g=At(t);return g&&(c[s]+=d*(g==="end"?1:-1)*(n&&f?-1:1)),c}async function mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=tt(t,e),g=Ge(c),y=a[d?h==="floating"?"reference":"floating":h],w=Kt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+g.top)/x.y,bottom:(S.bottom-w.bottom+g.bottom)/x.y,left:(w.left-S.left+g.left)/x.x,right:(S.right-w.right+g.right)/x.x}}const wo=50,vo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:mo},l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:h}=_e(f,o,l),d=o,c=0;const g={};for(let m=0;m<i.length;m++){const y=i[m];if(!y)continue;const{name:w,fn:v}=y,{x:P,y:x,data:S,reset:b}=await v({x:u,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=P??u,h=x??h,g[w]={...g[w],...S},b&&c<wo&&(c++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:h}=_e(f,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:r,middlewareData:g}},yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=tt(e,t)||{};if(f==null)return{};const h=Ge(u),d={x:n,y:o},c=he(r),g=fe(c),m=await s.getDimensions(f),y=c==="y",w=y?"top":"left",v=y?"bottom":"right",P=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[c]-d[c]-i.floating[g],S=d[c]-i.reference[c],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=b?b[P]:0;(!F||!await(s.isElement==null?void 0:s.isElement(b)))&&(F=a.floating[P]||i.floating[g]);const _=x/2-S/2,L=F/2-m[g]/2-1,M=st(h[w],L),R=st(h[v],L),H=F-m[g]-R,I=F/2-m[g]/2+_,D=Ze(M,I,H),K=!l.arrow&&At(r)!=null&&I!==D&&i.reference[g]/2-(I<M?M:R)-m[g]/2<0,z=K?I<M?I-M:I-H:0;return{[c]:d[c]+z,data:{[c]:D,centerOffset:I-D-z,...K&&{alignmentOffset:z}},reset:K}}}),xo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=d||(P||!m?[Vt(a)]:co(a)),b=g!=="none";!d&&b&&S.push(...go(a,m,g,x));const F=[a,...S],_=await l.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&L.push(_[w]),h){const D=lo(r,s,x);L.push(_[D[0]],_[D[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(D=>D<=0)){var R,H;const D=(((R=i.flip)==null?void 0:R.index)||0)+1,K=F[D];if(K&&(!(h==="alignment"?v!==q(K):!1)||M.every(T=>q(T.placement)===v?T.overflows[0]>0:!0)))return{data:{index:D,overflows:M},reset:{placement:K}};let z=(H=M.filter(B=>B.overflows[0]<=0).sort((B,T)=>B.overflows[1]-T.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var I;const B=(I=M.filter(T=>{if(b){const k=q(T.placement);return k===v||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:I[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return so.some(t=>e[t]>=0)}const bo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Me(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ie(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Me(s,n.floating);return{data:{escapedOffsets:a,escaped:Ie(a)}}}default:return{}}}}},Je=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=At(n),l=q(n)==="y",f=Je.has(s)?-1:1,u=i&&l?-1:1,h=tt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(c=a==="end"?g*-1:g),l?{x:c*u,y:d*f}:{x:d*f,y:c*u}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Oo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ao=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:P,y:x}=v;return{x:P,y:x}}},...f}=tt(e,t),u={x:n,y:o},h=await i.detectOverflow(t,f),d=q(r),c=de(d);let g=u[c],m=u[d];const y=(v,P)=>Ze(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(g=y(c,g)),a&&(m=y(d,m));const w=l.fn({...t,[c]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},Co=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:h=!0}=tt(e,t),d={x:r,y:i},c=q(s),g=de(c);let m=d[g],y=d[c];const w=tt(f,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const S=g==="y"?"height":"width",b=a.reference[g]-a.floating[S]+v.mainAxis,F=a.reference[g]+a.reference[S]-v.mainAxis;m<b?m=b:m>F&&(m=F)}if(h){var P,x;const S=g==="y"?"width":"height",b=Je.has(at(s)),F=a.reference[c]-a.floating[S]+(b&&((P=l.offset)==null?void 0:P[c])||0)+(b?0:v.crossAxis),_=a.reference[c]+a.reference[S]+(b?0:((x=l.offset)==null?void 0:x[c])||0)-(b?v.crossAxis:0);y<F?y=F:y>_&&(y=_)}return{[g]:m,[c]:y}}}},So=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),f=at(n),u=At(n),h=q(n)==="y",{width:d,height:c}=o.floating;let g,m;f==="top"||f==="bottom"?(g=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,g=u==="end"?"top":"bottom");const y=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[g],y),P=st(d-l[m],w),x=t.middlewareData.shift,S=!x;let b=v,F=P;x!=null&&x.enabled.x&&(F=w),x!=null&&x.enabled.y&&(b=y),S&&!u&&(h?F=d-2*J(l.left,l.right):b=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:F,availableHeight:b});const _=await r.getDimensions(i.floating);return d!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function Ct(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Qe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qe(e){return Ut()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Ut()?e instanceof Element||e instanceof U(e).Element:!1}function lt(e){return Ut()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function ke(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Eo(e){return/^(table|td|th)$/.test(Ct(e))}function qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Fo=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let te;function ge(e){const t=Z(e)?G(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!pe()&&(ut(t.backdropFilter)||ut(t.filter))||Fo.test(t.willChange||"")||To.test(t.contain||"")}function Do(e){let t=pt(e);for(;lt(t)&&!Mt(t);){if(ge(t))return t;if(qt(t))return null;t=pt(t)}return null}function pe(){return te==null&&(te=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),te}function Mt(e){return/^(html|body|#document)$/.test(Ct(e))}function G(e){return U(e).getComputedStyle(e)}function Zt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||ot(e);return ke(t)?t.host:t}function $e(e){const t=pt(e);return Mt(t)?(e.ownerDocument||e).body:lt(t)&&jt(t)?t:$e(t)}function It(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=se(s);return t.concat(s,s.visualViewport||[],jt(r)?r:[],a&&n?It(a):[])}else return t.concat(r,It(r,[],n))}function se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=lt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function me(e){return Z(e)?e:e.contextElement}function Ot(e){const t=me(e);if(!lt(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tn(t);let s=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _o=Q(0);function en(e){const t=U(e);return!pe()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=me(e);let s=Q(1);t&&(o?Z(o)&&(s=Ot(o)):s=Ot(e));const a=Mo(i,n,o)?en(i):Q(0);let l=(r.left+a.x)/s.x,f=(r.top+a.y)/s.y,u=r.width/s.x,h=r.height/s.y;if(i&&o){const d=U(i),c=Z(o)?U(o):o;let g=d,m=se(g);for(;m&&c!==g;){const y=Ot(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,f*=y.y,u*=y.x,h*=y.y,l+=P,f+=x,g=U(m),m=se(g)}}return Kt({width:u,height:h,x:l,y:f})}function Gt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Io(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?qt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},f=Q(1);const u=Q(0),h=lt(o);if((h||!i)&&((Ct(o)!=="body"||jt(s))&&(l=Zt(o)),h)){const c=mt(o);f=Ot(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const d=s&&!h&&!i?nn(s,l):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:n.y*f.y-l.scrollTop*f.y+u.y+d.y}}function ko(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bo(e){const t=Zt(e),n=e.ownerDocument.body,o=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Gt(e);const s=-t.scrollTop;return G(n).direction==="rtl"&&(i+=J(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Wo=25;function Lo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,f=0,u=0;if(s){const d=!pe()||t==="fixed";o?d||(f=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,d&&(f=s.offsetLeft,u=s.offsetTop))}if(Gt(i)<=0){const d=i.ownerDocument,c=d.body,g=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;w<=Wo&&(a-=w)}return{width:a,height:l,x:f,y:u}}function Ho(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,f=o*i.y;return{width:s,height:a,x:l,y:f}}function Be(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lo(e,n,t);else if(t==="document")o=Bo(ot(e));else if(Z(t))o=Ho(t,n);else{const r=en(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function No(e,t){const n=t.get(e);if(n)return n;let o=It(e,[],!1).filter(a=>Z(a)&&Ct(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Mt(s);){const a=G(s),l=ge(s),f=r?r.position:i?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function Ro(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:No(t,this._c):[].concat(n),o],a=Be(t,s[0],r);let l=a.top,f=a.right,u=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=Be(t,s[d],r);l=J(c.top,l),f=st(c.right,f),u=st(c.bottom,u),h=J(c.left,h)}return{width:f-h,height:u-l,x:h,y:l}}function zo(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Vo(e,t,n){const o=lt(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Ct(t)!=="body"||jt(r))&&(a=Zt(t)),o)){const d=mt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Gt(r));const f=r&&!o&&!i?nn(r,a):Q(0),u=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function ee(e){return G(e).position==="static"}function We(e,t){if(!lt(e)||G(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=U(e);if(qt(e))return n;if(!lt(e)){let r=pt(e);for(;r&&!Mt(r);){if(Z(r)&&!ee(r))return r;r=pt(r)}return n}let o=We(e,t);for(;o&&Eo(o)&&ee(o);)o=We(o,t);return o&&Mt(o)&&ee(o)&&!ge(o)?n:o||Do(e)||n}const Ko=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,o=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ot,getClippingRect:Ro,getOffsetParent:on,getElementRects:Ko,getClientRects:ko,getDimensions:zo,getScale:Ot,isElement:Z,isRTL:Xo};function rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t,n){let o=null,r;const i=ot(e);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:g,width:m,height:y}=d;if(u||t(),!m||!y)return;const w=Bt(g),v=Bt(i.clientWidth-(c+m)),P=Bt(i.clientHeight-(g+y)),x=Bt(c),b={rootMargin:-w+"px "+-v+"px "+-P+"px "+-x+"px",threshold:J(0,st(1,h))||1};let F=!0;function _(L){const M=L[0].intersectionRatio;if(!rn(d,e.getBoundingClientRect()))return a();if(M!==h){if(!F)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1}try{o=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,b)}o.observe(e)}const l=U(e),f=()=>a(n);return l.addEventListener("resize",f),a(!0),()=>{l.removeEventListener("resize",f),s()}}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=me(e),u=r||i?[...f?It(f):[],...t?It(t):[]]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=f&&a?Uo(f,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),f&&!l&&c.observe(f),t&&c.observe(t));let g,m=l?mt(e):null;l&&y();function y(){const w=mt(e);m&&!rn(m,w)&&n(),m=w,g=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(g)}}const qo=Po,Zo=Ao,Go=xo,Jo=So,Qo=bo,$o=yo,tr=Co,er=(e,t,n)=>{const o=new Map,r=n??{},i={...Yo,...r.platform,_c:o};return vo(e,t,{...r,platform:i})};function nr(e){const t=e.whileElementsMounted,n=A(()=>ct(e.open)??!0),o=A(()=>ct(e.middleware)),r=A(()=>ct(e.transform)??!0),i=A(()=>ct(e.placement)??"bottom"),s=A(()=>ct(e.strategy)??"absolute"),a=A(()=>ct(e.sideOffset)??0),l=A(()=>ct(e.alignOffset)??0),f=e.reference;let u=N(0),h=N(0);const d=it(null);let c=N(Wt(p(s))),g=N(Wt(p(i))),m=N(Wt({})),y=N(!1),w=!1,v=0,P=!1;const x=A(()=>{const R=d.current?Ee(d.current,p(u)):p(u),H=d.current?Ee(d.current,p(h)):p(h);return p(r)?{position:p(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...d.current&&qe(d.current)>=1.5&&{willChange:"transform"}}:{position:p(c),left:`${R}px`,top:`${H}px`}});let S;function b(){if(P||f.current===null||d.current===null)return;const R=f.current,H=d.current,I=++v;er(R,H,{middleware:p(o),placement:p(i),strategy:p(s)}).then(D=>{if(I!==v||f.current!==R||d.current!==H)return;if(or(R)){C(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const z=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(D.x<=z&&D.y<=z)return}C(u,D.x,!0),C(h,D.y,!0),C(c,D.strategy,!0),C(g,D.placement,!0),C(m,D.middlewareData,!0),C(y,!0)})}function F(){typeof S=="function"&&(S(),S=void 0),v++}function _(){if(F(),t===void 0){b();return}p(n)&&(f.current===null||d.current===null||(S=t(f.current,d.current,b)))}function L(){!p(n)&&d.current===null&&C(y,!1)}function M(){return[p(o),p(i),p(s),p(a),p(l),p(n)]}return rt(()=>{t===void 0&&p(n)&&b()}),rt(_),rt(()=>{if(t!==void 0){if(M(),!p(n)){w=!1;return}if(!p(y)){w=!1;return}if(!w){w=!0;return}b()}}),rt(L),rt(()=>()=>{P=!0,F()}),{floating:d,reference:f,get strategy(){return p(c)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(y)},get floatingStyles(){return p(x)},get update(){return b}}}function or(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rr={top:"bottom",right:"left",bottom:"top",left:"right"},ae=new Yt("Floating.Content");class Xt{static create(t,n=!1){return n?ae.set(new Xt(t,ue.get())):ae.set(new Xt(t,ce.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Dt(this.contentRef);wrapperAttachment=Dt(this.wrapperRef);arrowAttachment=Dt(this.arrowRef);arrowId=it(Xe());#t=A(()=>{if(typeof this.opts.style=="string")return Dn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new oo(()=>this.arrowRef.current??void 0);#r=A(()=>this.#i?.width??0);#e=A(()=>this.#i?.height??0);#s=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=A(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(_n),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(t){C(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=A(()=>[qo({mainAxis:this.opts.sideOffset.current+p(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Zo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Go({...this.detectOverflowOptions}),Jo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;C(this.#c,n,!0),C(this.#d,o,!0),C(this.#f,r,!0),C(this.#g,i,!0)}}),this.arrowRef.current&&$o({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ir({arrowWidth:p(this.#r),arrowHeight:p(this.#e)}),this.opts.hideWhenDetached.current&&Qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>sr(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>ar(this.floating.placement));get placedAlign(){return p(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return p(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>rr[this.placedSide]);get arrowBaseSide(){return p(this.#x)}set arrowBaseSide(t){C(this.#x,t)}#b=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#d)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...p(this.#t)}),...this.contentAttachment}));get props(){return p(this.#O)}set props(t){C(this.#O,t)}#P=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_t(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=nr({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>jo(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_t(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=In(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class sn{static create(t){return new sn(t,ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#t)}set props(t){C(this.#t,t)}}function ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,u]=we(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let g="",m="";return f==="bottom"?(g=s?h:`${d}px`,m=`${-l}px`):f==="top"?(g=s?h:`${d}px`,m=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,m=s?h:`${c}px`):f==="left"&&(g=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:g,y:m}}}}}function we(e){const[t,n="center"]=e.split("-");return[t,n]}function sr(e){return we(e)[0]}function ar(e){return we(e)[1]}function lr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),f=O(t,"collisionPadding",3,0),u=O(t,"hideWhenDetached",3,!1),h=O(t,"onPlaced",3,()=>{}),d=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),g=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),y=O(t,"style",19,()=>({})),w=O(t,"wrapperId",19,Xe),v=O(t,"customAnchor",3,null),P=O(t,"tooltip",3,!1);const x=Xt.create({side:E(()=>n()),sideOffset:E(()=>o()),align:E(()=>r()),alignOffset:E(()=>i()),id:E(()=>t.id),arrowPadding:E(()=>s()),avoidCollisions:E(()=>a()),collisionBoundary:E(()=>l()),collisionPadding:E(()=>f()),hideWhenDetached:E(()=>u()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>g()),dir:E(()=>m()),style:E(()=>y()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>bt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var b=X(),F=V(b);j(F,()=>t.content??$,()=>({props:x.props,wrapperProps:p(S)})),W(e,b),nt()}function cr(e,t){et(t,!0),Qn(()=>{t.onPlaced?.()});var n=X(),o=V(n);j(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var ur=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dr(e,t){let n=O(t,"isStatic",3,!1),o=vt(t,ur);var r=X(),i=V(r);{var s=l=>{cr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{lr(l,Pt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),hr=kt("<!> <!>",1);function an(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),f=vt(t,fr);const u=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(p(u)?"fixed":"absolute"));dr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return p(h)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,g)=>{let m=()=>(g?.()).props,y=()=>(g?.()).wrapperProps;var w=hr(),v=V(w);{var P=b=>{Ae(b,{get preventScroll(){return p(u)}})},x=b=>{Ae(b,{get preventScroll(){return p(u)}})};gt(v,b=>{t.forceMount&&t.enabled?b(P):t.forceMount||b(x,1)})}var S=Et(v,2);kn(S,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(F,_)=>{let L=()=>(_?.()).props;Bn(F,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,R)=>{Wn(M,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,D)=>{let K=()=>(D?.()).props;Ln(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var T=X(),k=V(T);{let Y=A(()=>({props:bt(f,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:y()}));j(k,()=>t.popper??$,()=>p(Y))}W(z,T)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,w)},$$slots:{content:!0}}),nt()}var gr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function pr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,gr);var l=X(),f=V(l);{var u=h=>{an(h,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};gt(f,h=>{t.shouldRender&&h(u)})}W(e,l)}var mr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function wr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,mr);an(e,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function ne(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,f]=t[s]??[0,0],[u,h]=t[a]??[0,0];f>=o!=h>=o&&n<=(u-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function oe(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Le(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class vr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,_t([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Hn(o),a=d=>{this.#p([d.clientX,d.clientY],o,r)},l=d=>{const c=d.relatedTarget;if(ht(c)&&r.contains(c))return;const g=this.#t.ignoredTargets?.()??[];ht(c)&&g.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&g.length>0?g.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},f=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const c=d.relatedTarget;ht(c)&&o.contains(c)||(this.#r=[d.clientX,d.clientY],this.#e="trigger",this.#d())};return[St(s,"pointermove",a),St(o,"pointerleave",l),St(o,"pointerenter",f),St(r,"pointerenter",u),St(r,"pointerleave",h)].reduce((d,c)=>()=>{d(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&oe(t,i)){this.#u();return}if(this.#e==="trigger"&&oe(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(oe(t,h))return;const d=Le(r,h),c=this.#h(r,h,d);if(c&&ne(t,c))return}const s=Le(r,i),a=this.#h(r,i,s);if(a&&ne(t,a))return;const l=this.#e==="content"?i:r,f=this.#m(this.#r,l,s,this.#e);ne(t,f)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const le=Yn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ve=new Yt("Popover.Root");class ye{static create(t){return ve.set(new ye(t))}opts;#t=N(null);get contentNode(){return p(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return p(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return p(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return p(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return p(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return p(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Ce({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ce({ref:E(()=>this.overlayNode),open:this.opts.open}),_t(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class xe{static create(t){return new xe(t,ve.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Dt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new Nn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),_t(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ht(t)||(C(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ht(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),p(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Rn||t.key===zn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=A(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Vn(this.root.opts.open.current),"data-state":Ye(this.root.opts.open.current),"aria-controls":this.#a(),[le.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#n)}set props(t){C(this.#n,t)}}class be{static create(t){return new be(t,ve.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Dt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ht(n)&&Kn(n)&&this.root.markInteraction()}onpointerenter(t){Ht(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ht(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(le.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ht(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ye(this.root.opts.open.current),...Xn(this.root.contentPresence.transitionStatus),[le.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var yr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),He=kt("<div><div><!></div></div>");function ci(e,t){const n=Ke();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ue(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,xt),a=O(t,"onCloseAutoFocus",3,xt),l=O(t,"onEscapeKeydown",3,xt),f=O(t,"onInteractOutside",3,xt),u=O(t,"trapFocus",3,!0),h=O(t,"preventScroll",3,!1),d=O(t,"customAnchor",3,null),c=vt(t,yr);const g=be.create({id:E(()=>r()),ref:E(()=>o(),b=>o(b)),onInteractOutside:E(()=>f()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>bt(c,g.props)),y=A(()=>u()&&g.shouldTrapFocus);function w(b){g.shouldTrapFocus||b.preventDefault(),s()(b)}var v=X(),P=V(v);{var x=b=>{wr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),D=V(I);{var K=B=>{var T=X(),k=V(T);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,T)},z=B=>{var T=He();Ft(T,()=>({...R()}));var k=dt(T);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(T),W(B,T)};gt(D,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))},S=b=>{pr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),D=V(I);{var K=B=>{var T=X(),k=V(T);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,T)},z=B=>{var T=He();Ft(T,()=>({...R()}));var k=dt(T);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(T),W(B,T)};gt(D,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))};gt(P,b=>{i()?b(x):i()||b(S,1)})}W(e,v),nt()}var xr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),br=kt("<button><!></button>");function ui(e,t){const n=Ke();et(t,!0);let o=O(t,"id",19,()=>Ue(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),f=O(t,"closeDelay",3,300),u=vt(t,xr);const h=xe.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>f())}),d=A(()=>bt(u,h.props,{type:i()}));io(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,g)=>{var m=X(),y=V(m);{var w=P=>{var x=X(),S=V(x);j(S,()=>t.child,()=>({props:p(d)})),W(P,x)},v=P=>{var x=br();Ft(x,()=>({...p(d)}));var S=dt(x);j(S,()=>t.children??$),ft(x),W(P,x)};gt(y,P=>{t.child?P(w):P(v,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function di(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,xt),r=O(t,"onOpenChangeComplete",3,xt);ye.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),ro(e,{children:(i,s)=>{var a=X(),l=V(a);j(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}class Or{#t=N(Wt([]));get rows(){return p(this.#t)}set rows(t){C(this.#t,t,!0)}}const fi=new Or,Pr=/^\/session\/[A-Za-z0-9_-]+\/?$/;function ln(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&$n.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Ar(e){return ln(e)&&Pr.test(URL.parse(e).pathname)}function Cr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Sr(e,t=null){const n=[];for(const o of je(Cr(e))){if(!ln(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function Jt(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ne=2*6e4,Er=3,cn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(Jt),Fr=(e,t)=>new RegExp(`${cn(t)}(?![\\w-])`).test(e),Tt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function un(e,t){if(e.status!=="landed")return!0;const n=Tt(e.mergedAt);return n!==null&&t!==null&&t<n}function dn(e,t){const n=Oe(t);return je(e).some(o=>n.includes(Jt(o)))}function fn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${cn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Fr(e,t.pr.url.replace(/\/+$/,""))}function Tr(e,t){return fn(e,t)||dn(e,t)}const Dr=e=>e.preview?.url??e.board?.url??null;function _r(e,t,n){const o=Jt(e);return n.some(r=>un(r,t)&&Oe(r).includes(o))}function Re(e,t,n){e.set(t,[...e.get(t)??[],n])}function hi(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=Dr(a),f=Tt(a.preview?.reportedAt??a.board?.reportedAt),u=a.status==="landed",h=u?Tt(a.mergedAt):null;let d=null,c=null,g=null;for(const y of e){if(y.kind!=="turn")continue;const w=Tt(y.at);if(f!==null&&(w===null||w<f-Ne))continue;const v=x=>un(a,w)&&dn(x,a),P=y.parts.find(x=>x.kind==="text"&&(fn(x.text,a)||v(x.text)));if(!(!P||P.kind!=="text")&&(d??=P.id,v(P.text)&&(c=P.id),u&&(h===null||w!==null&&w>=h-Ne))){g=P.id;break}}const m=g??c??d;m&&(Re(o,m,{task:a,url:l,board:!a.preview,landed:u}),i.set(m,[...i.get(m)??[],...Oe(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=Tt(a.at);for(const f of a.parts){if(f.kind!=="text")continue;const u=new Set;let h=0;for(const d of Sr(f.text,n)){const c=URL.parse(d).origin,g=Jt(d);if(i.get(f.id)?.includes(g)){s.delete(g);continue}u.has(c)||_r(d,l,r)||h>=Er||(u.add(c),h++,s.delete(g),s.set(g,{anchor:f.id,url:d}))}}}for(const{anchor:a,url:l}of s.values())Re(o,a,{task:null,url:l,board:Ar(l),landed:!1});return o}function ze(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Mr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ze(e.id)}: ${e.title}]`:`[task ${ze(e.id)}: ${e.title}]`}function gi(e){return e.map(t=>typeof t=="string"?t:Mr(t)).join("").replace(/\u00a0/g," ").trim()}function Ir(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const kr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Br(e){const t=[];let n=0;for(const o of e.matchAll(kr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Wr=140,Lr={firstmate:"Firstmate",captain:"my message"};function hn(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Br(t).map(n=>typeof n=="string"?n:Ir(n,60)).join("").replace(/\s+/g," ").trim()}function pi(e,t=Wr){const n=hn(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function mi(e,t){const n=t.trim();return n&&`> Replying to ${Lr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
1
+ import{k as pn,A as mn,H as wn,ae as vn,bE as yn,i as A,g as p,aD as xn,u as rt,p as et,j as X,f as V,aa as $,a as W,b as nt,m as N,q as Wt,v as C,s as Et,c as kt,aE as St,aG as Ke,h as dt,r as ft,l as bn,n as On,w as Pn,t as An,d as Cn,y as $t,x as Sn}from"./BuRWgnCz.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./BAOiF0in.js";import{I as En}from"./xH4qmLqM.js";import{s as j}from"./B2RyWxmQ.js";import{i as gt}from"./BDpRITyb.js";import{l as Ft}from"./Cwb6d3g_.js";import{i as Fn,C as Yt,s as it,j as Tn,b as E,k as Dt,u as Xe,l as Dn,n as _n,o as Mn,w as _t,p as In,m as bt,F as kn,S as Ae,E as Bn,q as Wn,T as Ln,r as Hn,t as ht,v as Ce,x as Nn,y as Ht,z as Rn,A as zn,B as Ye,G as Vn,H as Kn,I as Xn,J as Yn,c as Ue,K as xt,P as Un,f as jn,e as qn,g as Zn,a as Gn,h as Jn}from"./DVEiwmFn.js";import{o as Qn}from"./RYq3318d.js";import{b as $n}from"./Y3845wkB.js";import{e as je}from"./Drqp3nkL.js";import{c as yt}from"./DLuhTA05.js";import{X as to}from"./rS7QE60d.js";function ai(e,t,n){pn(()=>{var o=mn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};wn(()=>{var s=n();vn(s),r&&yn(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var eo=new Set(["$$slots","$$events","$$legacy"]);function li(e,t){let n=vt(t,eo);const o={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]]};En(e,Pt(()=>n,{get icon(){return o}}))}function no(e){return typeof e=="function"}function Se(e){return no(e)?e():e}class oo{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(p(this.#n)?.(),this.getSize().width));#a=A(()=>(p(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=Se(this.#r);if(t)return xn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,f)=>Math.max(l,f.inlineSize),0),this.#t.height=a.reduce((l,f)=>Math.max(l,f.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??Fn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Se(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),f=n-i-a,u=o-s-l;return{width:f,height:u}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return p(this.#n)?.(),this.getSize()}get width(){return p(this.#s)}get height(){return p(this.#a)}}const ce=new Yt("Floating.Root"),ue=new Yt("Floating.Root");class Nt{static create(t=!1){return t?ue.set(new Nt):ce.set(new Nt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Rt{static create(t,n=!1){return n?new Rt(t,ue.get()):new Rt(t,ce.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Tn(t.virtualEl.current):n.triggerNode=t.ref}}function ro(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Nt.create(n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}function ct(e){return typeof e=="function"?e():e}function qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){const n=qe(e);return Math.round(t*n)/n}function Fe(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function io(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Rt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}const so=["top","right","bottom","left"],st=Math.min,J=Math.max,zt=Math.round,Bt=Math.floor,Q=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return J(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function de(e){return e==="x"?"y":"x"}function fe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function he(e){return de(q(e))}function lo(e,t,n){n===void 0&&(n=!1);const o=At(e),r=he(e),i=fe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function co(e){const t=Vt(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Te=["left","right"],De=["right","left"],uo=["top","bottom"],fo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?De:Te:t?Te:De;case"left":case"right":return t?uo:fo;default:return[]}}function go(e,t,n,o){const r=At(e);let i=ho(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ie)))),i}function Vt(e){const t=at(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ge(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _e(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=he(t),a=fe(s),l=at(t),f=i==="y",u=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:u,y:o.y-r.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:h};break;case"left":c={x:o.x-r.width,y:h};break;default:c={x:o.x,y:o.y}}const g=At(t);return g&&(c[s]+=d*(g==="end"?1:-1)*(n&&f?-1:1)),c}async function mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=tt(t,e),g=Ge(c),y=a[d?h==="floating"?"reference":"floating":h],w=Kt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+g.top)/x.y,bottom:(S.bottom-w.bottom+g.bottom)/x.y,left:(w.left-S.left+g.left)/x.x,right:(S.right-w.right+g.right)/x.x}}const wo=50,vo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:mo},l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:h}=_e(f,o,l),d=o,c=0;const g={};for(let m=0;m<i.length;m++){const y=i[m];if(!y)continue;const{name:w,fn:v}=y,{x:P,y:x,data:S,reset:b}=await v({x:u,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=P??u,h=x??h,g[w]={...g[w],...S},b&&c<wo&&(c++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:h}=_e(f,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:r,middlewareData:g}},yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=tt(e,t)||{};if(f==null)return{};const h=Ge(u),d={x:n,y:o},c=he(r),g=fe(c),m=await s.getDimensions(f),y=c==="y",w=y?"top":"left",v=y?"bottom":"right",P=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[c]-d[c]-i.floating[g],S=d[c]-i.reference[c],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=b?b[P]:0;(!F||!await(s.isElement==null?void 0:s.isElement(b)))&&(F=a.floating[P]||i.floating[g]);const _=x/2-S/2,L=F/2-m[g]/2-1,M=st(h[w],L),R=st(h[v],L),H=F-m[g]-R,I=F/2-m[g]/2+_,D=Ze(M,I,H),K=!l.arrow&&At(r)!=null&&I!==D&&i.reference[g]/2-(I<M?M:R)-m[g]/2<0,z=K?I<M?I-M:I-H:0;return{[c]:d[c]+z,data:{[c]:D,centerOffset:I-D-z,...K&&{alignmentOffset:z}},reset:K}}}),xo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=d||(P||!m?[Vt(a)]:co(a)),b=g!=="none";!d&&b&&S.push(...go(a,m,g,x));const F=[a,...S],_=await l.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&L.push(_[w]),h){const D=lo(r,s,x);L.push(_[D[0]],_[D[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(D=>D<=0)){var R,H;const D=(((R=i.flip)==null?void 0:R.index)||0)+1,K=F[D];if(K&&(!(h==="alignment"?v!==q(K):!1)||M.every(T=>q(T.placement)===v?T.overflows[0]>0:!0)))return{data:{index:D,overflows:M},reset:{placement:K}};let z=(H=M.filter(B=>B.overflows[0]<=0).sort((B,T)=>B.overflows[1]-T.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var I;const B=(I=M.filter(T=>{if(b){const k=q(T.placement);return k===v||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:I[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return so.some(t=>e[t]>=0)}const bo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Me(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ie(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Me(s,n.floating);return{data:{escapedOffsets:a,escaped:Ie(a)}}}default:return{}}}}},Je=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=At(n),l=q(n)==="y",f=Je.has(s)?-1:1,u=i&&l?-1:1,h=tt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(c=a==="end"?g*-1:g),l?{x:c*u,y:d*f}:{x:d*f,y:c*u}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Oo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ao=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:P,y:x}=v;return{x:P,y:x}}},...f}=tt(e,t),u={x:n,y:o},h=await i.detectOverflow(t,f),d=q(r),c=de(d);let g=u[c],m=u[d];const y=(v,P)=>Ze(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(g=y(c,g)),a&&(m=y(d,m));const w=l.fn({...t,[c]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},Co=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:h=!0}=tt(e,t),d={x:r,y:i},c=q(s),g=de(c);let m=d[g],y=d[c];const w=tt(f,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const S=g==="y"?"height":"width",b=a.reference[g]-a.floating[S]+v.mainAxis,F=a.reference[g]+a.reference[S]-v.mainAxis;m<b?m=b:m>F&&(m=F)}if(h){var P,x;const S=g==="y"?"width":"height",b=Je.has(at(s)),F=a.reference[c]-a.floating[S]+(b&&((P=l.offset)==null?void 0:P[c])||0)+(b?0:v.crossAxis),_=a.reference[c]+a.reference[S]+(b?0:((x=l.offset)==null?void 0:x[c])||0)-(b?v.crossAxis:0);y<F?y=F:y>_&&(y=_)}return{[g]:m,[c]:y}}}},So=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),f=at(n),u=At(n),h=q(n)==="y",{width:d,height:c}=o.floating;let g,m;f==="top"||f==="bottom"?(g=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,g=u==="end"?"top":"bottom");const y=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[g],y),P=st(d-l[m],w),x=t.middlewareData.shift,S=!x;let b=v,F=P;x!=null&&x.enabled.x&&(F=w),x!=null&&x.enabled.y&&(b=y),S&&!u&&(h?F=d-2*J(l.left,l.right):b=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:F,availableHeight:b});const _=await r.getDimensions(i.floating);return d!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function Ct(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Qe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qe(e){return Ut()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Ut()?e instanceof Element||e instanceof U(e).Element:!1}function lt(e){return Ut()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function ke(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Eo(e){return/^(table|td|th)$/.test(Ct(e))}function qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Fo=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let te;function ge(e){const t=Z(e)?G(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!pe()&&(ut(t.backdropFilter)||ut(t.filter))||Fo.test(t.willChange||"")||To.test(t.contain||"")}function Do(e){let t=pt(e);for(;lt(t)&&!Mt(t);){if(ge(t))return t;if(qt(t))return null;t=pt(t)}return null}function pe(){return te==null&&(te=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),te}function Mt(e){return/^(html|body|#document)$/.test(Ct(e))}function G(e){return U(e).getComputedStyle(e)}function Zt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||ot(e);return ke(t)?t.host:t}function $e(e){const t=pt(e);return Mt(t)?(e.ownerDocument||e).body:lt(t)&&jt(t)?t:$e(t)}function It(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=se(s);return t.concat(s,s.visualViewport||[],jt(r)?r:[],a&&n?It(a):[])}else return t.concat(r,It(r,[],n))}function se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=lt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function me(e){return Z(e)?e:e.contextElement}function Ot(e){const t=me(e);if(!lt(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tn(t);let s=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _o=Q(0);function en(e){const t=U(e);return!pe()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=me(e);let s=Q(1);t&&(o?Z(o)&&(s=Ot(o)):s=Ot(e));const a=Mo(i,n,o)?en(i):Q(0);let l=(r.left+a.x)/s.x,f=(r.top+a.y)/s.y,u=r.width/s.x,h=r.height/s.y;if(i&&o){const d=U(i),c=Z(o)?U(o):o;let g=d,m=se(g);for(;m&&c!==g;){const y=Ot(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,f*=y.y,u*=y.x,h*=y.y,l+=P,f+=x,g=U(m),m=se(g)}}return Kt({width:u,height:h,x:l,y:f})}function Gt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Io(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?qt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},f=Q(1);const u=Q(0),h=lt(o);if((h||!i)&&((Ct(o)!=="body"||jt(s))&&(l=Zt(o)),h)){const c=mt(o);f=Ot(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const d=s&&!h&&!i?nn(s,l):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:n.y*f.y-l.scrollTop*f.y+u.y+d.y}}function ko(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bo(e){const t=Zt(e),n=e.ownerDocument.body,o=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Gt(e);const s=-t.scrollTop;return G(n).direction==="rtl"&&(i+=J(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Wo=25;function Lo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,f=0,u=0;if(s){const d=!pe()||t==="fixed";o?d||(f=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,d&&(f=s.offsetLeft,u=s.offsetTop))}if(Gt(i)<=0){const d=i.ownerDocument,c=d.body,g=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;w<=Wo&&(a-=w)}return{width:a,height:l,x:f,y:u}}function Ho(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,f=o*i.y;return{width:s,height:a,x:l,y:f}}function Be(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lo(e,n,t);else if(t==="document")o=Bo(ot(e));else if(Z(t))o=Ho(t,n);else{const r=en(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function No(e,t){const n=t.get(e);if(n)return n;let o=It(e,[],!1).filter(a=>Z(a)&&Ct(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Mt(s);){const a=G(s),l=ge(s),f=r?r.position:i?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function Ro(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:No(t,this._c):[].concat(n),o],a=Be(t,s[0],r);let l=a.top,f=a.right,u=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=Be(t,s[d],r);l=J(c.top,l),f=st(c.right,f),u=st(c.bottom,u),h=J(c.left,h)}return{width:f-h,height:u-l,x:h,y:l}}function zo(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Vo(e,t,n){const o=lt(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Ct(t)!=="body"||jt(r))&&(a=Zt(t)),o)){const d=mt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Gt(r));const f=r&&!o&&!i?nn(r,a):Q(0),u=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function ee(e){return G(e).position==="static"}function We(e,t){if(!lt(e)||G(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=U(e);if(qt(e))return n;if(!lt(e)){let r=pt(e);for(;r&&!Mt(r);){if(Z(r)&&!ee(r))return r;r=pt(r)}return n}let o=We(e,t);for(;o&&Eo(o)&&ee(o);)o=We(o,t);return o&&Mt(o)&&ee(o)&&!ge(o)?n:o||Do(e)||n}const Ko=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,o=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ot,getClippingRect:Ro,getOffsetParent:on,getElementRects:Ko,getClientRects:ko,getDimensions:zo,getScale:Ot,isElement:Z,isRTL:Xo};function rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t,n){let o=null,r;const i=ot(e);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:g,width:m,height:y}=d;if(u||t(),!m||!y)return;const w=Bt(g),v=Bt(i.clientWidth-(c+m)),P=Bt(i.clientHeight-(g+y)),x=Bt(c),b={rootMargin:-w+"px "+-v+"px "+-P+"px "+-x+"px",threshold:J(0,st(1,h))||1};let F=!0;function _(L){const M=L[0].intersectionRatio;if(!rn(d,e.getBoundingClientRect()))return a();if(M!==h){if(!F)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1}try{o=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,b)}o.observe(e)}const l=U(e),f=()=>a(n);return l.addEventListener("resize",f),a(!0),()=>{l.removeEventListener("resize",f),s()}}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=me(e),u=r||i?[...f?It(f):[],...t?It(t):[]]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=f&&a?Uo(f,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),f&&!l&&c.observe(f),t&&c.observe(t));let g,m=l?mt(e):null;l&&y();function y(){const w=mt(e);m&&!rn(m,w)&&n(),m=w,g=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(g)}}const qo=Po,Zo=Ao,Go=xo,Jo=So,Qo=bo,$o=yo,tr=Co,er=(e,t,n)=>{const o=new Map,r=n??{},i={...Yo,...r.platform,_c:o};return vo(e,t,{...r,platform:i})};function nr(e){const t=e.whileElementsMounted,n=A(()=>ct(e.open)??!0),o=A(()=>ct(e.middleware)),r=A(()=>ct(e.transform)??!0),i=A(()=>ct(e.placement)??"bottom"),s=A(()=>ct(e.strategy)??"absolute"),a=A(()=>ct(e.sideOffset)??0),l=A(()=>ct(e.alignOffset)??0),f=e.reference;let u=N(0),h=N(0);const d=it(null);let c=N(Wt(p(s))),g=N(Wt(p(i))),m=N(Wt({})),y=N(!1),w=!1,v=0,P=!1;const x=A(()=>{const R=d.current?Ee(d.current,p(u)):p(u),H=d.current?Ee(d.current,p(h)):p(h);return p(r)?{position:p(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...d.current&&qe(d.current)>=1.5&&{willChange:"transform"}}:{position:p(c),left:`${R}px`,top:`${H}px`}});let S;function b(){if(P||f.current===null||d.current===null)return;const R=f.current,H=d.current,I=++v;er(R,H,{middleware:p(o),placement:p(i),strategy:p(s)}).then(D=>{if(I!==v||f.current!==R||d.current!==H)return;if(or(R)){C(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const z=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(D.x<=z&&D.y<=z)return}C(u,D.x,!0),C(h,D.y,!0),C(c,D.strategy,!0),C(g,D.placement,!0),C(m,D.middlewareData,!0),C(y,!0)})}function F(){typeof S=="function"&&(S(),S=void 0),v++}function _(){if(F(),t===void 0){b();return}p(n)&&(f.current===null||d.current===null||(S=t(f.current,d.current,b)))}function L(){!p(n)&&d.current===null&&C(y,!1)}function M(){return[p(o),p(i),p(s),p(a),p(l),p(n)]}return rt(()=>{t===void 0&&p(n)&&b()}),rt(_),rt(()=>{if(t!==void 0){if(M(),!p(n)){w=!1;return}if(!p(y)){w=!1;return}if(!w){w=!0;return}b()}}),rt(L),rt(()=>()=>{P=!0,F()}),{floating:d,reference:f,get strategy(){return p(c)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(y)},get floatingStyles(){return p(x)},get update(){return b}}}function or(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rr={top:"bottom",right:"left",bottom:"top",left:"right"},ae=new Yt("Floating.Content");class Xt{static create(t,n=!1){return n?ae.set(new Xt(t,ue.get())):ae.set(new Xt(t,ce.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Dt(this.contentRef);wrapperAttachment=Dt(this.wrapperRef);arrowAttachment=Dt(this.arrowRef);arrowId=it(Xe());#t=A(()=>{if(typeof this.opts.style=="string")return Dn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new oo(()=>this.arrowRef.current??void 0);#r=A(()=>this.#i?.width??0);#e=A(()=>this.#i?.height??0);#s=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=A(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(_n),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(t){C(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=A(()=>[qo({mainAxis:this.opts.sideOffset.current+p(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Zo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Go({...this.detectOverflowOptions}),Jo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;C(this.#c,n,!0),C(this.#d,o,!0),C(this.#f,r,!0),C(this.#g,i,!0)}}),this.arrowRef.current&&$o({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ir({arrowWidth:p(this.#r),arrowHeight:p(this.#e)}),this.opts.hideWhenDetached.current&&Qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>sr(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>ar(this.floating.placement));get placedAlign(){return p(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return p(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>rr[this.placedSide]);get arrowBaseSide(){return p(this.#x)}set arrowBaseSide(t){C(this.#x,t)}#b=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#d)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...p(this.#t)}),...this.contentAttachment}));get props(){return p(this.#O)}set props(t){C(this.#O,t)}#P=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_t(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=nr({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>jo(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_t(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=In(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class sn{static create(t){return new sn(t,ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#t)}set props(t){C(this.#t,t)}}function ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,u]=we(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let g="",m="";return f==="bottom"?(g=s?h:`${d}px`,m=`${-l}px`):f==="top"?(g=s?h:`${d}px`,m=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,m=s?h:`${c}px`):f==="left"&&(g=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:g,y:m}}}}}function we(e){const[t,n="center"]=e.split("-");return[t,n]}function sr(e){return we(e)[0]}function ar(e){return we(e)[1]}function lr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),f=O(t,"collisionPadding",3,0),u=O(t,"hideWhenDetached",3,!1),h=O(t,"onPlaced",3,()=>{}),d=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),g=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),y=O(t,"style",19,()=>({})),w=O(t,"wrapperId",19,Xe),v=O(t,"customAnchor",3,null),P=O(t,"tooltip",3,!1);const x=Xt.create({side:E(()=>n()),sideOffset:E(()=>o()),align:E(()=>r()),alignOffset:E(()=>i()),id:E(()=>t.id),arrowPadding:E(()=>s()),avoidCollisions:E(()=>a()),collisionBoundary:E(()=>l()),collisionPadding:E(()=>f()),hideWhenDetached:E(()=>u()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>g()),dir:E(()=>m()),style:E(()=>y()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>bt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var b=X(),F=V(b);j(F,()=>t.content??$,()=>({props:x.props,wrapperProps:p(S)})),W(e,b),nt()}function cr(e,t){et(t,!0),Qn(()=>{t.onPlaced?.()});var n=X(),o=V(n);j(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var ur=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dr(e,t){let n=O(t,"isStatic",3,!1),o=vt(t,ur);var r=X(),i=V(r);{var s=l=>{cr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{lr(l,Pt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),hr=kt("<!> <!>",1);function an(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),f=vt(t,fr);const u=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(p(u)?"fixed":"absolute"));dr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return p(h)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,g)=>{let m=()=>(g?.()).props,y=()=>(g?.()).wrapperProps;var w=hr(),v=V(w);{var P=b=>{Ae(b,{get preventScroll(){return p(u)}})},x=b=>{Ae(b,{get preventScroll(){return p(u)}})};gt(v,b=>{t.forceMount&&t.enabled?b(P):t.forceMount||b(x,1)})}var S=Et(v,2);kn(S,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(F,_)=>{let L=()=>(_?.()).props;Bn(F,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,R)=>{Wn(M,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,D)=>{let K=()=>(D?.()).props;Ln(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var T=X(),k=V(T);{let Y=A(()=>({props:bt(f,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:y()}));j(k,()=>t.popper??$,()=>p(Y))}W(z,T)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,w)},$$slots:{content:!0}}),nt()}var gr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function pr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,gr);var l=X(),f=V(l);{var u=h=>{an(h,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};gt(f,h=>{t.shouldRender&&h(u)})}W(e,l)}var mr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function wr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,mr);an(e,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function ne(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,f]=t[s]??[0,0],[u,h]=t[a]??[0,0];f>=o!=h>=o&&n<=(u-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function oe(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Le(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class vr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,_t([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Hn(o),a=d=>{this.#p([d.clientX,d.clientY],o,r)},l=d=>{const c=d.relatedTarget;if(ht(c)&&r.contains(c))return;const g=this.#t.ignoredTargets?.()??[];ht(c)&&g.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&g.length>0?g.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},f=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const c=d.relatedTarget;ht(c)&&o.contains(c)||(this.#r=[d.clientX,d.clientY],this.#e="trigger",this.#d())};return[St(s,"pointermove",a),St(o,"pointerleave",l),St(o,"pointerenter",f),St(r,"pointerenter",u),St(r,"pointerleave",h)].reduce((d,c)=>()=>{d(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&oe(t,i)){this.#u();return}if(this.#e==="trigger"&&oe(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(oe(t,h))return;const d=Le(r,h),c=this.#h(r,h,d);if(c&&ne(t,c))return}const s=Le(r,i),a=this.#h(r,i,s);if(a&&ne(t,a))return;const l=this.#e==="content"?i:r,f=this.#m(this.#r,l,s,this.#e);ne(t,f)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const le=Yn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ve=new Yt("Popover.Root");class ye{static create(t){return ve.set(new ye(t))}opts;#t=N(null);get contentNode(){return p(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return p(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return p(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return p(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return p(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return p(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Ce({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ce({ref:E(()=>this.overlayNode),open:this.opts.open}),_t(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class xe{static create(t){return new xe(t,ve.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Dt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new Nn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),_t(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ht(t)||(C(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ht(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),p(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Rn||t.key===zn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=A(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Vn(this.root.opts.open.current),"data-state":Ye(this.root.opts.open.current),"aria-controls":this.#a(),[le.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#n)}set props(t){C(this.#n,t)}}class be{static create(t){return new be(t,ve.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Dt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ht(n)&&Kn(n)&&this.root.markInteraction()}onpointerenter(t){Ht(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ht(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(le.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ht(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ye(this.root.opts.open.current),...Xn(this.root.contentPresence.transitionStatus),[le.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var yr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),He=kt("<div><div><!></div></div>");function ci(e,t){const n=Ke();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ue(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,xt),a=O(t,"onCloseAutoFocus",3,xt),l=O(t,"onEscapeKeydown",3,xt),f=O(t,"onInteractOutside",3,xt),u=O(t,"trapFocus",3,!0),h=O(t,"preventScroll",3,!1),d=O(t,"customAnchor",3,null),c=vt(t,yr);const g=be.create({id:E(()=>r()),ref:E(()=>o(),b=>o(b)),onInteractOutside:E(()=>f()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>bt(c,g.props)),y=A(()=>u()&&g.shouldTrapFocus);function w(b){g.shouldTrapFocus||b.preventDefault(),s()(b)}var v=X(),P=V(v);{var x=b=>{wr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),D=V(I);{var K=B=>{var T=X(),k=V(T);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,T)},z=B=>{var T=He();Ft(T,()=>({...R()}));var k=dt(T);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(T),W(B,T)};gt(D,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))},S=b=>{pr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),D=V(I);{var K=B=>{var T=X(),k=V(T);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,T)},z=B=>{var T=He();Ft(T,()=>({...R()}));var k=dt(T);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(T),W(B,T)};gt(D,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))};gt(P,b=>{i()?b(x):i()||b(S,1)})}W(e,v),nt()}var xr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),br=kt("<button><!></button>");function ui(e,t){const n=Ke();et(t,!0);let o=O(t,"id",19,()=>Ue(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),f=O(t,"closeDelay",3,300),u=vt(t,xr);const h=xe.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>f())}),d=A(()=>bt(u,h.props,{type:i()}));io(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,g)=>{var m=X(),y=V(m);{var w=P=>{var x=X(),S=V(x);j(S,()=>t.child,()=>({props:p(d)})),W(P,x)},v=P=>{var x=br();Ft(x,()=>({...p(d)}));var S=dt(x);j(S,()=>t.children??$),ft(x),W(P,x)};gt(y,P=>{t.child?P(w):P(v,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function di(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,xt),r=O(t,"onOpenChangeComplete",3,xt);ye.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),ro(e,{children:(i,s)=>{var a=X(),l=V(a);j(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}class Or{#t=N(Wt([]));get rows(){return p(this.#t)}set rows(t){C(this.#t,t,!0)}}const fi=new Or,Pr=/^\/session\/[A-Za-z0-9_-]+\/?$/;function ln(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&$n.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Ar(e){return ln(e)&&Pr.test(URL.parse(e).pathname)}function Cr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Sr(e,t=null){const n=[];for(const o of je(Cr(e))){if(!ln(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function Jt(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ne=2*6e4,Er=3,cn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(Jt),Fr=(e,t)=>new RegExp(`${cn(t)}(?![\\w-])`).test(e),Tt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function un(e,t){if(e.status!=="landed")return!0;const n=Tt(e.mergedAt);return n!==null&&t!==null&&t<n}function dn(e,t){const n=Oe(t);return je(e).some(o=>n.includes(Jt(o)))}function fn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${cn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Fr(e,t.pr.url.replace(/\/+$/,""))}function Tr(e,t){return fn(e,t)||dn(e,t)}const Dr=e=>e.preview?.url??e.board?.url??null;function _r(e,t,n){const o=Jt(e);return n.some(r=>un(r,t)&&Oe(r).includes(o))}function Re(e,t,n){e.set(t,[...e.get(t)??[],n])}function hi(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=Dr(a),f=Tt(a.preview?.reportedAt??a.board?.reportedAt),u=a.status==="landed",h=u?Tt(a.mergedAt):null;let d=null,c=null,g=null;for(const y of e){if(y.kind!=="turn")continue;const w=Tt(y.at);if(f!==null&&(w===null||w<f-Ne))continue;const v=x=>un(a,w)&&dn(x,a),P=y.parts.find(x=>x.kind==="text"&&(fn(x.text,a)||v(x.text)));if(!(!P||P.kind!=="text")&&(d??=P.id,v(P.text)&&(c=P.id),u&&(h===null||w!==null&&w>=h-Ne))){g=P.id;break}}const m=g??c??d;m&&(Re(o,m,{task:a,url:l,board:!a.preview,landed:u}),i.set(m,[...i.get(m)??[],...Oe(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=Tt(a.at);for(const f of a.parts){if(f.kind!=="text")continue;const u=new Set;let h=0;for(const d of Sr(f.text,n)){const c=URL.parse(d).origin,g=Jt(d);if(i.get(f.id)?.includes(g)){s.delete(g);continue}u.has(c)||_r(d,l,r)||h>=Er||(u.add(c),h++,s.delete(g),s.set(g,{anchor:f.id,url:d}))}}}for(const{anchor:a,url:l}of s.values())Re(o,a,{task:null,url:l,board:Ar(l),landed:!1});return o}function ze(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Mr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ze(e.id)}: ${e.title}]`:`[task ${ze(e.id)}: ${e.title}]`}function gi(e){return e.map(t=>typeof t=="string"?t:Mr(t)).join("").replace(/\u00a0/g," ").trim()}function Ir(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const kr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Br(e){const t=[];let n=0;for(const o of e.matchAll(kr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Wr=140,Lr={firstmate:"Firstmate",captain:"my message"};function hn(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Br(t).map(n=>typeof n=="string"?n:Ir(n,60)).join("").replace(/\s+/g," ").trim()}function pi(e,t=Wr){const n=hn(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function mi(e,t){const n=t.trim();return n&&`> Replying to ${Lr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
2
2
 
3
3
  ${n}`}const Hr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function Nr(e){const t=e.replace(/\r\n?/g,`
4
4
  `).match(Hr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function wi(e,t){const n=hn(t);if(!n)return!1;const o=e.snippet.endsWith("…")?e.snippet.slice(0,-1):e.snippet;return e.snippet.endsWith("…")?n.startsWith(o):n===o}const wt="unsorted",Lt={topic:wt,source:null},Rr=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,zr=/^\s{0,3}(`{3,}|~{3,})/;function Vr(e){const t=[];let n=null,o=[],r=null;const i=()=>{const s=o.join(`
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{i as c}from"./CKBPLT-z.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./BuRWgnCz.js";import{e as w,s as o}from"./Cwb6d3g_.js";import{p as n}from"./_8osrypQ.js";var y=i('<a class="nav-tab shrink-0"> </a>'),k=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function W(p,f){b(f,!1);const h=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/cloud",label:"Cloud"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"}],g=a=>n.url.pathname===a||n.url.pathname.startsWith(`${a}/`);c();var t=k();w(t,5,()=>h,a=>a.href,(a,s)=>{var e=y(),u=d(e,!0);_(m=>{o(e,"href",r(s).href),o(e,"aria-current",m),x(u,r(s).label)},[()=>g(r(s).href)?"page":void 0]),l(a,e)}),S(t),l(p,t),v()}export{W as S};
1
+ import"./DsnmJJEf.js";import{i as c}from"./CKBPLT-z.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./BuRWgnCz.js";import{e as w,s as o}from"./Cwb6d3g_.js";import{p as n}from"./0RGfo0js.js";var y=i('<a class="nav-tab shrink-0"> </a>'),k=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function W(p,f){b(f,!1);const h=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/cloud",label:"Cloud"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"}],g=a=>n.url.pathname===a||n.url.pathname.startsWith(`${a}/`);c();var t=k();w(t,5,()=>h,a=>a.href,(a,s)=>{var e=y(),u=d(e,!0);_(m=>{o(e,"href",r(s).href),o(e,"aria-current",m),x(u,r(s).label)},[()=>g(r(s).href)?"page":void 0]),l(a,e)}),S(t),l(p,t),v()}export{W as S};
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{aG as Ue,p as ve,j as F,f as l,a as r,b as ge,g as e,h as se,aa as Ve,r as oe,i as P,c as T,l as Ee,m as U,q as Je,s as u,n as W,w as j,v as a,t as ue,d as fe,x as Ke,y as Me,o as Be}from"./BuRWgnCz.js";import{i as V}from"./BDpRITyb.js";import{c as _}from"./DLuhTA05.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./Cwb6d3g_.js";import{a as Te}from"./BMFk7aZ6.js";import{p as C,r as we,s as le}from"./BAOiF0in.js";import{p as Xe}from"./_8osrypQ.js";import{c as Ye,D as et,b as be,m as tt,a as rt}from"./DVEiwmFn.js";import{D as at,a as st,b as ot,c as lt,d as xe,P as nt,e as it,i as dt,f as ut,m as ft}from"./CH2Y0BVE.js";import{s as Ge}from"./B2RyWxmQ.js";import{B as X}from"./C5BN6RHR.js";import{C as vt,d as gt,b as ct,i as pt}from"./CxexnUzw.js";import{P as mt}from"./DNc9cRsu.js";import{L as _t}from"./CP7u-DWX.js";import{T as ht}from"./kynOtL7x.js";var $t=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),bt=T("<button><!></button>");function xt(H,s){const z=Ue();ve(s,!0);let G=C(s,"id",19,()=>Ye(z)),O=C(s,"ref",15,null),k=C(s,"disabled",3,!1),t=we(s,$t);const p=et.create({id:be(()=>G()),ref:be(()=>O(),m=>O(m)),disabled:be(()=>!!k())}),b=P(()=>tt(t,p.props));var n=F(),f=l(n);{var Z=m=>{var D=F(),E=l(D);Ge(E,()=>s.child,()=>({props:e(b)})),r(m,D)},ne=m=>{var D=bt();Qe(D,()=>({...e(b)}));var E=se(D);Ge(E,()=>s.children??Ve),oe(D),r(m,D)};V(f,m=>{s.child?m(Z):m(ne,-1)})}r(H,n),ge()}var wt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Oe(H,s){ve(s,!0);let z=C(s,"ref",15,null),G=C(s,"type",3,"button"),O=we(s,wt);var k=F(),t=l(k);_(t,()=>rt,(p,b)=>{b(p,le({"data-slot":"dialog-close",get type(){return G()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var yt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Pt(H,s){ve(s,!0);let z=C(s,"ref",15,null),G=C(s,"type",3,"button"),O=we(s,yt);var k=F(),t=l(k);_(t,()=>xt,(p,b)=>{b(p,le({"data-slot":"dialog-trigger",get type(){return G()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var kt=T("<!> ",1),ae=T("<!> <!>",1),Dt=T('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),It=T("<!>Fetching…",1),St=T('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),At=T('<p class="text-xs text-danger" role="alert"> </p>'),Re=T("<!> <!> <!>",1),Bt=T("<p> </p>");function Jt(H,s){ve(s,!0);let z=C(s,"busy",19,()=>[]),G=C(s,"suggested",3,null),O=C(s,"label",3,"Install plugin"),k=U(!1),t=U("form"),p=U(""),b=U(""),n=U(null),f=U(null),Z=U(Je({}));const ne=P(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e(p).trim())),m=P(()=>e(f)?ft(e(f),e(Z)):null),D=()=>Xe.data.sessionToken,E="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function ye(){a(t,"form"),a(n,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(ne)||e(t)==="looking")return;a(t,"looking"),a(n,null);const L=await gt({repo:e(p).trim(),ref:e(b).trim()||null},D());if(!L.ok){a(n,L.error,!0),a(t,"form");return}a(f,L.value,!0),a(Z,dt(L.value),!0),a(t,"review")}async function je(){if(!e(f)||e(m))return;a(t,"saving"),a(n,null);const Y=ct(),L=await pt(e(f),ut(e(Z)),D());if(!L.ok){a(n,L.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var Pe=F(),Fe=l(Pe);_(Fe,()=>it,(Y,L)=>{L(Y,{onOpenChange:J=>{J&&(e(t)==="done"||e(t)==="slow")&&(a(p,""),a(b,""),ye()),J&&e(t)==="form"&&G()&&!e(p)&&a(p,G())},get open(){return e(k)},set open(J){a(k,J,!0)},children:(J,Ct)=>{var ke=ae(),De=l(ke);{const ce=(ee,te)=>{X(ee,le(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Se,pe)=>{var re=kt(),ie=l(re);mt(ie,{});var me=u(ie,1,!0);ue(()=>fe(me,O())),r(Se,re)},$$slots:{default:!0}}))};_(De,()=>Pt,(ee,te)=>{te(ee,{child:ce,$$slots:{child:!0}})})}var He=u(De,2);{let ce=P(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");_(He,()=>at,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(ce)},children:(Ie,Se)=>{var pe=ae(),re=l(pe);_(re,()=>st,(x,I)=>{I(x,{children:(h,S)=>{var w=ae(),A=l(w);_(A,()=>ot,(i,v)=>{v(i,{class:"font-display text-lg",children:(q,d)=>{W();var g=j("Install a plugin from GitHub");r(q,g)},$$slots:{default:!0}})});var o=u(A,2);_(o,()=>lt,(i,v)=>{v(i,{children:(q,d)=>{var g=F(),B=l(g);{var $=c=>{var R=j("Check what it is and where it comes from before you install it.");r(c,R)},y=c=>{var R=j(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
1
+ import"./DsnmJJEf.js";import{aG as Ue,p as ve,j as F,f as l,a as r,b as ge,g as e,h as se,aa as Ve,r as oe,i as P,c as T,l as Ee,m as U,q as Je,s as u,n as W,w as j,v as a,t as ue,d as fe,x as Ke,y as Me,o as Be}from"./BuRWgnCz.js";import{i as V}from"./BDpRITyb.js";import{c as _}from"./DLuhTA05.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./Cwb6d3g_.js";import{a as Te}from"./BMFk7aZ6.js";import{p as C,r as we,s as le}from"./BAOiF0in.js";import{p as Xe}from"./0RGfo0js.js";import{c as Ye,D as et,b as be,m as tt,a as rt}from"./DVEiwmFn.js";import{D as at,a as st,b as ot,c as lt,d as xe,P as nt,e as it,i as dt,f as ut,m as ft}from"./rWDJOr9L.js";import{s as Ge}from"./B2RyWxmQ.js";import{B as X}from"./C5BN6RHR.js";import{C as vt,d as gt,b as ct,i as pt}from"./Bd8l0yTM.js";import{P as mt}from"./DNc9cRsu.js";import{L as _t}from"./CP7u-DWX.js";import{T as ht}from"./kynOtL7x.js";var $t=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),bt=T("<button><!></button>");function xt(H,s){const z=Ue();ve(s,!0);let G=C(s,"id",19,()=>Ye(z)),O=C(s,"ref",15,null),k=C(s,"disabled",3,!1),t=we(s,$t);const p=et.create({id:be(()=>G()),ref:be(()=>O(),m=>O(m)),disabled:be(()=>!!k())}),b=P(()=>tt(t,p.props));var n=F(),f=l(n);{var Z=m=>{var D=F(),E=l(D);Ge(E,()=>s.child,()=>({props:e(b)})),r(m,D)},ne=m=>{var D=bt();Qe(D,()=>({...e(b)}));var E=se(D);Ge(E,()=>s.children??Ve),oe(D),r(m,D)};V(f,m=>{s.child?m(Z):m(ne,-1)})}r(H,n),ge()}var wt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Oe(H,s){ve(s,!0);let z=C(s,"ref",15,null),G=C(s,"type",3,"button"),O=we(s,wt);var k=F(),t=l(k);_(t,()=>rt,(p,b)=>{b(p,le({"data-slot":"dialog-close",get type(){return G()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var yt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Pt(H,s){ve(s,!0);let z=C(s,"ref",15,null),G=C(s,"type",3,"button"),O=we(s,yt);var k=F(),t=l(k);_(t,()=>xt,(p,b)=>{b(p,le({"data-slot":"dialog-trigger",get type(){return G()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var kt=T("<!> ",1),ae=T("<!> <!>",1),Dt=T('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),It=T("<!>Fetching…",1),St=T('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),At=T('<p class="text-xs text-danger" role="alert"> </p>'),Re=T("<!> <!> <!>",1),Bt=T("<p> </p>");function Jt(H,s){ve(s,!0);let z=C(s,"busy",19,()=>[]),G=C(s,"suggested",3,null),O=C(s,"label",3,"Install plugin"),k=U(!1),t=U("form"),p=U(""),b=U(""),n=U(null),f=U(null),Z=U(Je({}));const ne=P(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e(p).trim())),m=P(()=>e(f)?ft(e(f),e(Z)):null),D=()=>Xe.data.sessionToken,E="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function ye(){a(t,"form"),a(n,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(ne)||e(t)==="looking")return;a(t,"looking"),a(n,null);const L=await gt({repo:e(p).trim(),ref:e(b).trim()||null},D());if(!L.ok){a(n,L.error,!0),a(t,"form");return}a(f,L.value,!0),a(Z,dt(L.value),!0),a(t,"review")}async function je(){if(!e(f)||e(m))return;a(t,"saving"),a(n,null);const Y=ct(),L=await pt(e(f),ut(e(Z)),D());if(!L.ok){a(n,L.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var Pe=F(),Fe=l(Pe);_(Fe,()=>it,(Y,L)=>{L(Y,{onOpenChange:J=>{J&&(e(t)==="done"||e(t)==="slow")&&(a(p,""),a(b,""),ye()),J&&e(t)==="form"&&G()&&!e(p)&&a(p,G())},get open(){return e(k)},set open(J){a(k,J,!0)},children:(J,Ct)=>{var ke=ae(),De=l(ke);{const ce=(ee,te)=>{X(ee,le(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Se,pe)=>{var re=kt(),ie=l(re);mt(ie,{});var me=u(ie,1,!0);ue(()=>fe(me,O())),r(Se,re)},$$slots:{default:!0}}))};_(De,()=>Pt,(ee,te)=>{te(ee,{child:ce,$$slots:{child:!0}})})}var He=u(De,2);{let ce=P(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");_(He,()=>at,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(ce)},children:(Ie,Se)=>{var pe=ae(),re=l(pe);_(re,()=>st,(x,I)=>{I(x,{children:(h,S)=>{var w=ae(),A=l(w);_(A,()=>ot,(i,v)=>{v(i,{class:"font-display text-lg",children:(q,d)=>{W();var g=j("Install a plugin from GitHub");r(q,g)},$$slots:{default:!0}})});var o=u(A,2);_(o,()=>lt,(i,v)=>{v(i,{children:(q,d)=>{var g=F(),B=l(g);{var $=c=>{var R=j("Check what it is and where it comes from before you install it.");r(c,R)},y=c=>{var R=j(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
2
2
  Nothing runs until you install it.`);r(c,R)};V(B,c=>{e(t)==="review"?c($):c(y,-1)})}r(q,g)},$$slots:{default:!0}})}),r(h,w)},$$slots:{default:!0}})});var ie=u(re,2);{var me=x=>{var I=St(),h=l(I),S=se(h),w=u(se(S),2);Ce(w),ze(w,1,Le(E)),W(2),oe(S);var A=u(S,2),o=u(se(A),2);Ce(o),ze(o,1,Le(E)),W(2),oe(A);var i=u(A,2);{var v=d=>{var g=Dt(),B=se(g);ht(B,{class:"mt-0.5 size-3.5 shrink-0"});var $=u(B,1,!0);oe(g),ue(()=>fe($,e(n))),r(d,g)};V(i,d=>{e(n)&&d(v)})}oe(h);var q=u(h,2);_(q,()=>xe,(d,g)=>{g(d,{children:(B,$)=>{var y=ae(),c=l(y);{const N=(K,M)=>{X(K,le(()=>(M?.()).props,{variant:"ghost",children:(he,Ae)=>{W();var $e=j("Cancel");r(he,$e)},$$slots:{default:!0}}))};_(c,()=>Oe,(K,M)=>{M(K,{child:N,$$slots:{child:!0}})})}var R=u(c,2);{let N=P(()=>!e(ne)||e(t)==="looking");X(R,{type:"submit",form:"install-plugin-form",get disabled(){return e(N)},children:(K,M)=>{var _e=F(),he=l(_e);{var Ae=Q=>{var de=It(),Ne=l(de);_t(Ne,{class:"animate-spin"}),W(),r(Q,de)},$e=Q=>{var de=j("Look it up");r(Q,de)};V(he,Q=>{e(t)==="looking"?Q(Ae):Q($e,-1)})}r(K,_e)},$$slots:{default:!0}})}r(B,y)},$$slots:{default:!0}})}),Ke("submit",h,We),Me("input",w,()=>a(n,null)),Te(w,()=>e(p),d=>a(p,d)),Te(o,()=>e(b),d=>a(b,d)),r(x,I)},Ze=x=>{var I=Re(),h=l(I);nt(h,{get preview(){return e(f)},get busy(){return z()},get answers(){return e(Z)},set answers(o){a(Z,o,!0)}});var S=u(h,2);{var w=o=>{var i=At(),v=Be(i,!0);ue(()=>fe(v,e(n))),r(o,i)};V(S,o=>{e(n)&&o(w)})}var A=u(S,2);_(A,()=>xe,(o,i)=>{i(o,{children:(v,q)=>{var d=ae(),g=l(d);X(g,{variant:"ghost",onclick:ye,children:($,y)=>{W();var c=j("Back");r($,c)},$$slots:{default:!0}});var B=u(g,2);{let $=P(()=>!!e(m)),y=P(()=>e(m)?`${e(m).title} is needed`:void 0);X(B,{onclick:je,get disabled(){return e($)},get title(){return e(y)},children:(c,R)=>{W();var N=j("Install and restart");r(c,N)},$$slots:{default:!0}})}r(v,d)},$$slots:{default:!0}})}),r(x,I)},qe=x=>{var I=Re(),h=l(I);{let o=P(()=>e(f).id),i=P(()=>e(f).commit.slice(0,7)),v=P(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");vt(h,{get label(){return`Install ${e(o)??""} at ${e(i)??""}`},get phase(){return e(v)}})}var S=u(h,2);{var w=o=>{var i=Bt(),v=Be(i);ue(()=>fe(v,`${e(f).name??""}
3
3
  ${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(o,i)};V(S,o=>{e(t)==="done"&&o(w)})}var A=u(S,2);_(A,()=>xe,(o,i)=>{i(o,{children:(v,q)=>{var d=F(),g=l(d);{const B=($,y)=>{let c=()=>(y?.()).props;{let R=P(()=>e(t)==="saving"||e(t)==="restarting");X($,le(c,{get disabled(){return e(R)},children:(N,K)=>{W();var M=j("Done");r(N,M)},$$slots:{default:!0}}))}};_(g,()=>Oe,($,y)=>{y($,{child:B,$$slots:{child:!0}})})}r(v,d)},$$slots:{default:!0}})}),r(x,I)};V(ie,x=>{e(t)==="form"||e(t)==="looking"?x(me):e(t)==="review"&&e(f)?x(Ze,1):e(f)&&x(qe,2)})}r(Ie,pe)},$$slots:{default:!0}})})}r(J,ke)},$$slots:{default:!0}})}),r(H,Pe),ge()}Ee(["input"]);export{Oe as D,Jt as I};
@@ -1,2 +1,2 @@
1
- import{l as ee}from"./D8F9xgmh.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as i,o as D,b as oe}from"./BuRWgnCz.js";import{i as g}from"./BDpRITyb.js";import{a as A,e as H,f as J,j as re,k as ie,r as ne,s as le}from"./Cwb6d3g_.js";import{L as Y}from"./CP7u-DWX.js";import{C as B}from"./cmRB1an4.js";import{a as pe}from"./BMFk7aZ6.js";import{p as G}from"./BAOiF0in.js";async function d(e,a,s){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(s??{})}),v=await p.json().catch(()=>null);return p.ok&&v?{ok:!0,value:v}:{ok:!1,error:v?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>d("/api/plugins/updates",null),Ne=e=>d("/api/plugins/updates",e),Oe=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Ae=(e,a)=>d("/api/plugins/inspect",a,e),Fe=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Le=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function De(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const He=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Je=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Ye=(e,a)=>d(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
1
+ import{l as ee}from"./Cwq50RB4.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as i,o as D,b as oe}from"./BuRWgnCz.js";import{i as g}from"./BDpRITyb.js";import{a as A,e as H,f as J,j as re,k as ie,r as ne,s as le}from"./Cwb6d3g_.js";import{L as Y}from"./CP7u-DWX.js";import{C as B}from"./cmRB1an4.js";import{a as pe}from"./BMFk7aZ6.js";import{p as G}from"./BAOiF0in.js";async function d(e,a,s){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(s??{})}),v=await p.json().catch(()=>null);return p.ok&&v?{ok:!0,value:v}:{ok:!1,error:v?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>d("/api/plugins/updates",null),Ne=e=>d("/api/plugins/updates",e),Oe=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Ae=(e,a)=>d("/api/plugins/inspect",a,e),Fe=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Le=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function De(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const He=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Je=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Ye=(e,a)=>d(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
2
2
  change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function Be(e,a){var s=de(),p=h(s),v=h(p),w=h(v);{var I=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},R=o=>{B(o,{class:"size-4 text-success"})};g(w,o=>{a.phase==="saving"?o(I):o(R,-1)})}var r=f(w,1,!0);b(v);var _=f(v,2),S=h(_);{var C=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},E=o=>{B(o,{class:"size-4 text-success"})},N=o=>{var P=ce();l(o,P)};g(S,o=>{a.phase==="restarting"||a.phase==="slow"?o(C):a.phase==="done"?o(E,1):o(N,-1)})}te(),b(_),b(p);var O=f(p,2);{var q=o=>{var P=ue();l(o,P)};g(O,o=>{a.phase==="slow"&&o(q)})}b(s),k(()=>{z(r,a.label),A(_,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,s)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Ge=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var me=u('<span class="text-danger" aria-hidden="true">&nbsp;*</span>'),fe=u('<span class="text-muted-foreground">&nbsp;(optional)</span>'),ge=u("<option>Not set</option>"),_e=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Ke(e,a){se(a,!0);let s=G(a,"answers",15),p=G(a,"disabled",3,!1);const v="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,R=>R.key,(R,r)=>{var _=ke(),S=h(_),C=h(S,!0),E=f(C);{var N=n=>{var t=me();l(n,t)},O=n=>{var t=fe();l(n,t)};g(E,n=>{i(r).required?n(N):n(O,-1)})}b(S);var q=f(S,2);{var o=n=>{var t=be();A(t,1,J(v));var x=h(t);{var Q=c=>{var m=ge();m.value=m.__value="",l(c,m)};g(x,c=>{i(r).required||c(Q)})}var V=f(x);{var X=c=>{var m=L(),j=W(m);H(j,17,()=>i(r).options,y=>y.value,(y,F)=>{var U=_e(),$=D(U,!0),T={};k(()=>{z($,i(F).label),T!==(T=i(F).value)&&(U.value=(U.__value=T)??"")}),l(y,U)}),l(c,m)},Z=c=>{var m=he(),j=W(m);j.value=j.__value="yes";var y=f(j,2);y.value=y.__value="no",l(c,m)};g(V,c=>{i(r).options?c(X):c(Z,-1)})}b(t),re(t),k(()=>{t.required=i(r).required,t.disabled=p()}),ie(t,()=>s()[i(r).key],c=>s(s()[i(r).key]=c,!0)),l(n,t)},P=n=>{var t=xe();ne(t),A(t,1,J(v)),k(()=>{le(t,"inputmode",i(r).type==="number"?"decimal":void 0),t.required=i(r).required,t.disabled=p()}),pe(t,()=>s()[i(r).key],x=>s(s()[i(r).key]=x,!0)),l(n,t)};g(q,n=>{i(r).type==="boolean"||i(r).options?n(o):n(P,-1)})}var K=f(q,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${i(r).description??""??""}${i(r).type==="list"?`${i(r).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};g(K,n=>{(i(r).description||i(r).type==="list")&&n(M)})}b(_),k(()=>z(C,i(r).title)),l(R,_)}),l(e,w),oe()}export{Be as C,Ke as S,Ge as a,De as b,He as c,Ae as d,Ne as e,Je as f,Te as g,ve as h,Fe as i,Ye as l,Oe as m,Ee as p,We as r,Le as u};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{i as n}from"./CKBPLT-z.js";import{p as h,a as s,b as v,c as i,o as c,t as u,g as o,d as b,r as g}from"./BuRWgnCz.js";import{e as _,s as f}from"./Cwb6d3g_.js";import{p as d}from"./_8osrypQ.js";import{L as x}from"./cwI46DFb.js";var O=i('<a class="nav-tab shrink-0"> </a>'),L=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function K(l,p){h(p,!1),n();var r=L();_(r,5,()=>x,t=>t.href,(t,e)=>{var a=O(),m=c(a,!0);u(()=>{f(a,"href",o(e).href),f(a,"aria-current",d.url.pathname===o(e).href?"page":void 0),b(m,o(e).label)}),s(t,a)}),g(r),s(l,r),v()}export{K as I};
1
+ import"./DsnmJJEf.js";import{i as n}from"./CKBPLT-z.js";import{p as h,a as s,b as v,c as i,o as c,t as u,g as o,d as b,r as g}from"./BuRWgnCz.js";import{e as _,s as f}from"./Cwb6d3g_.js";import{p as d}from"./0RGfo0js.js";import{L as x}from"./cwI46DFb.js";var O=i('<a class="nav-tab shrink-0"> </a>'),L=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function K(l,p){h(p,!1),n();var r=L();_(r,5,()=>x,t=>t.href,(t,e)=>{var a=O(),m=c(a,!0);u(()=>{f(a,"href",o(e).href),f(a,"aria-current",d.url.pathname===o(e).href?"page":void 0),b(m,o(e).label)}),s(t,a)}),g(r),s(l,r),v()}export{K as I};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{l as D,p as N,f as G,h as P,n as J,r as k,s as w,g as r,y as H,a as c,b as O,m as j,v as M,c as f,i as C,t as p,o as y,d as q}from"./BuRWgnCz.js";import{i as F}from"./BDpRITyb.js";import{M as K,P as Q}from"./CGRtmaS4.js";import{e as U,a as T,s as _,d as V}from"./Cwb6d3g_.js";import{p as S}from"./BAOiF0in.js";import{l as X}from"./D8F9xgmh.js";import{s as Y,c as Z}from"./BB2roMZd.js";import{e as $,C as ee}from"./CR7y1ULG.js";import{C as te}from"./D2ynzrtM.js";var ae=f('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function ke(z,e){N(e,!0);let s=j(null),o=j(!1);function x(n){const l=n.currentTarget,u=l.closest("article"),L=u?.querySelector("[data-card-picture]");M(s,(L??u??l).getBoundingClientRect(),!0),M(o,!0)}var v=ae(),i=G(v),d=P(i),h=P(d);K(h,{class:"size-3.5","aria-hidden":"true"}),J(),k(d),k(i);var E=w(i,2);{var g=n=>{{let l=C(()=>e.task.preview?.url??""),u=C(()=>e.task.status!=="landed");Q(n,{get taskId(){return e.task.id},get title(){return e.task.shortTitle},get url(){return r(l)},get talk(){return r(u)},get from(){return r(s)},onclose:()=>M(o,!1)})}};F(E,n=>{r(o)&&e.task.preview&&n(g)})}H("click",d,x),c(z,v),O()}D(["click"]);const re={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},B={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var ne=f("<li></li>"),oe=f("<span> </span>"),se=f('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),ie=f('<span class="text-foreground/80"> </span>'),le=f('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function we(z,e){N(e,!0);let s=S(e,"busy",3,!1),o=S(e,"lead",3,null),x=S(e,"leadClass",3,""),v=S(e,"size",3,"card"),i=S(e,"questions",3,null);const d=C(()=>e.pipeline.steps.map(t=>({s:t,tone:Y(t,e.pipeline)}))),h=C(()=>Z(e.pipeline,X.now)),E=C(()=>`Checks: ${r(d).map(({s:t,tone:a})=>`${t.label} ${B[a]}`).join(", ")}`);var g=le(),n=P(g);U(n,21,()=>r(d),({s:t,tone:a})=>t.key,(t,a)=>{let m=()=>r(a).s,b=()=>r(a).tone;var I=ne();p(()=>{T(I,1,`h-1 rounded-full ${re[b()]??""} ${s()&&(b()==="active"||b()==="fixing")?"motion-safe:animate-pulse":""}`),_(I,"title",`${m().label??""}: ${B[b()]??""}`)}),c(t,I)}),k(n);var l=w(n,2),u=P(l);{var L=t=>{var a=oe(),m=y(a);p(()=>{T(a,1,`font-medium ${x()??""}`),q(m,`${o()??""}.`)}),c(t,a)};F(u,t=>{o()&&t(L)})}var R=w(u,2);{var W=t=>{var a=se(),m=y(a,!0);p(()=>{_(a,"aria-expanded",i().expanded),_(a,"aria-controls",i().controls),_(a,"title",i().expanded?"Hide the questions":"Show the questions"),q(m,r(h))}),H("click",a,function(...b){i().toggle?.apply(this,b)}),c(t,a)},A=t=>{var a=ie(),m=y(a,!0);p(()=>q(m,r(h))),c(t,a)};F(R,t=>{i()?t(W):t(A,-1)})}k(l),k(g),p(()=>{V(n,`grid-template-columns: repeat(${r(d).length??""}, minmax(0, 1fr))`),_(n,"aria-label",r(E)),T(l,1,`tabular line-clamp-2 text-muted-foreground ${v()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),c(z,g),O()}D(["click"]);var de=f('<span class="shrink-0 text-muted-foreground"> </span>'),ue=f('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function Ce(z,e){N(e,!0);const s=C(()=>$(e.eta));var o=ue(),x=P(o);te(x,{class:"size-3.5 shrink-0","aria-hidden":"true"});var v=w(x,2),i=y(v,!0),d=w(v,2);{var h=n=>{var l=de(),u=y(l);p(L=>q(u,`· ${L??""}`),[()=>ee[e.eta.confidence].toLowerCase()]),c(n,l)};F(d,n=>{r(s).tone==="normal"&&e.eta.confidence!=="none"&&n(h)})}var E=w(d,2),g=y(E,!0);k(o),p(()=>{T(o,1,`flex min-w-0 items-center gap-1.5 text-xs ${r(s).tone==="warning"?"text-warning":r(s).tone==="muted"?"text-muted-foreground":"text-foreground"}`),_(o,"title",r(s).note),q(i,r(s).text),q(g,r(s).note)}),c(z,o),O()}export{we as C,Ce as E,ke as a};
1
+ import"./DsnmJJEf.js";import{l as D,p as N,f as G,h as P,n as J,r as k,s as w,g as r,y as H,a as c,b as O,m as j,v as M,c as f,i as C,t as p,o as y,d as q}from"./BuRWgnCz.js";import{i as F}from"./BDpRITyb.js";import{M as K,P as Q}from"./gS_jJyWs.js";import{e as U,a as T,s as _,d as V}from"./Cwb6d3g_.js";import{p as S}from"./BAOiF0in.js";import{l as X}from"./Cwq50RB4.js";import{s as Y,c as Z}from"./BB2roMZd.js";import{e as $,C as ee}from"./CR7y1ULG.js";import{C as te}from"./D2ynzrtM.js";var ae=f('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function ke(z,e){N(e,!0);let s=j(null),o=j(!1);function x(n){const l=n.currentTarget,u=l.closest("article"),L=u?.querySelector("[data-card-picture]");M(s,(L??u??l).getBoundingClientRect(),!0),M(o,!0)}var v=ae(),i=G(v),d=P(i),h=P(d);K(h,{class:"size-3.5","aria-hidden":"true"}),J(),k(d),k(i);var E=w(i,2);{var g=n=>{{let l=C(()=>e.task.preview?.url??""),u=C(()=>e.task.status!=="landed");Q(n,{get taskId(){return e.task.id},get title(){return e.task.shortTitle},get url(){return r(l)},get talk(){return r(u)},get from(){return r(s)},onclose:()=>M(o,!1)})}};F(E,n=>{r(o)&&e.task.preview&&n(g)})}H("click",d,x),c(z,v),O()}D(["click"]);const re={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},B={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var ne=f("<li></li>"),oe=f("<span> </span>"),se=f('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),ie=f('<span class="text-foreground/80"> </span>'),le=f('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function we(z,e){N(e,!0);let s=S(e,"busy",3,!1),o=S(e,"lead",3,null),x=S(e,"leadClass",3,""),v=S(e,"size",3,"card"),i=S(e,"questions",3,null);const d=C(()=>e.pipeline.steps.map(t=>({s:t,tone:Y(t,e.pipeline)}))),h=C(()=>Z(e.pipeline,X.now)),E=C(()=>`Checks: ${r(d).map(({s:t,tone:a})=>`${t.label} ${B[a]}`).join(", ")}`);var g=le(),n=P(g);U(n,21,()=>r(d),({s:t,tone:a})=>t.key,(t,a)=>{let m=()=>r(a).s,b=()=>r(a).tone;var I=ne();p(()=>{T(I,1,`h-1 rounded-full ${re[b()]??""} ${s()&&(b()==="active"||b()==="fixing")?"motion-safe:animate-pulse":""}`),_(I,"title",`${m().label??""}: ${B[b()]??""}`)}),c(t,I)}),k(n);var l=w(n,2),u=P(l);{var L=t=>{var a=oe(),m=y(a);p(()=>{T(a,1,`font-medium ${x()??""}`),q(m,`${o()??""}.`)}),c(t,a)};F(u,t=>{o()&&t(L)})}var R=w(u,2);{var W=t=>{var a=se(),m=y(a,!0);p(()=>{_(a,"aria-expanded",i().expanded),_(a,"aria-controls",i().controls),_(a,"title",i().expanded?"Hide the questions":"Show the questions"),q(m,r(h))}),H("click",a,function(...b){i().toggle?.apply(this,b)}),c(t,a)},A=t=>{var a=ie(),m=y(a,!0);p(()=>q(m,r(h))),c(t,a)};F(R,t=>{i()?t(W):t(A,-1)})}k(l),k(g),p(()=>{V(n,`grid-template-columns: repeat(${r(d).length??""}, minmax(0, 1fr))`),_(n,"aria-label",r(E)),T(l,1,`tabular line-clamp-2 text-muted-foreground ${v()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),c(z,g),O()}D(["click"]);var de=f('<span class="shrink-0 text-muted-foreground"> </span>'),ue=f('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function Ce(z,e){N(e,!0);const s=C(()=>$(e.eta));var o=ue(),x=P(o);te(x,{class:"size-3.5 shrink-0","aria-hidden":"true"});var v=w(x,2),i=y(v,!0),d=w(v,2);{var h=n=>{var l=de(),u=y(l);p(L=>q(u,`· ${L??""}`),[()=>ee[e.eta.confidence].toLowerCase()]),c(n,l)};F(d,n=>{r(s).tone==="normal"&&e.eta.confidence!=="none"&&n(h)})}var E=w(d,2),g=y(E,!0);k(o),p(()=>{T(o,1,`flex min-w-0 items-center gap-1.5 text-xs ${r(s).tone==="warning"?"text-warning":r(s).tone==="muted"?"text-muted-foreground":"text-foreground"}`),_(o,"title",r(s).note),q(i,r(s).text),q(g,r(s).note)}),c(z,o),O()}export{we as C,Ce as E,ke as a};
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{s as ye,r as ke,p as Z}from"./BAOiF0in.js";import{I as Te}from"./xH4qmLqM.js";import{l as se,p as de,u as D,g as e,A as oe,v as _,h as k,r as y,t as z,x as le,a as c,b as ue,m as O,i as ie,s as g,o as N,d as w,y as ne,c as T,w as U,f as ve,q as Ee}from"./BuRWgnCz.js";import{i as X}from"./BDpRITyb.js";import{s as V,d as Ce,a as te,e as Se}from"./Cwb6d3g_.js";import{b as re}from"./BWRIDih-.js";import{c as fe,m as Me}from"./BCUUi0V0.js";import{e as Le,l as ee,c as ae}from"./DP7xDWnQ.js";import{b as ce,a as Oe}from"./CGRtmaS4.js";import{S as me}from"./IPRCqR05.js";import{X as Ne}from"./rS7QE60d.js";var ze=new Set(["$$slots","$$events","$$legacy"]);function pt(r,a){let n=ke(a,ze);const d={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]]};Te(r,ye(()=>n,{get icon(){return d}}))}const Ie="No screenshots saved",Ae="No live preview reported",Pe="No pull request recorded",ht=r=>r.attention?.owner==="captain"&&r.attention.kind==="review";function Fe(r){return r<=0?Ie:`${r} ${r===1?"screenshot":"screenshots"}`}function xt(r,a=null){const n=a??[],d=a?n.length:r.screenshots,u=r.preview?.url??r.passage.link?.url??null;return{shots:n,shotsText:Fe(d),preview:u?{url:u}:null,previewText:u?"Live preview":Ae,pr:r.pr?{url:r.pr.url,label:r.pr.number?`PR #${r.pr.number}`:"Pull request"}:null,prText:r.pr?r.pr.number?`PR #${r.pr.number}`:"Pull request":Pe}}const pe={full:1e3,window:2e3},He=80,he=1.45,Re=11,We=32;function je(r){let a=0;for(const n of r)a=Math.max(a,[...n.trimEnd()].length);return Math.max(He,a)}function Xe(r){const a=r.lineHeight??he,n=Math.max(1,Math.floor(r.cols)),d=r.width/(n*(r.charWidth>0?r.charWidth:.6)),u=Number.isFinite(d)?Math.min(We,Math.max(Re,d)):13,o=Math.floor(u*10)/10,s=Math.max(1,Math.floor(Math.max(0,r.height)/(o*a)));return{fontSize:o,cols:n,rows:s}}function Qe({load:r,intervalMs:a,onresult:n,onerror:d,doc:u}){let o=!1,s=!1,t;const E=()=>{clearTimeout(t),o||(t=setTimeout(x,a))},x=async()=>{if(!(o||s)){if(u.hidden)return E();s=!0;try{const m=await r();o||n(m)}catch(m){o||d(m instanceof Error?m:new Error(String(m)))}finally{s=!1}E()}},C=()=>{!u.hidden&&!s&&(clearTimeout(t),x())};return u.addEventListener("visibilitychange",C),x(),()=>{o=!0,clearTimeout(t),u.removeEventListener("visibilitychange",C)}}function xe(r,a,n,d,u=document){const o=`/api/tasks/${encodeURIComponent(r)}/output?lines=${a}`;return Qe({load:async()=>{const s=await fetch(o);if(!s.ok)throw new Error(`HTTP ${s.status}`);return await s.json()},intervalMs:n,doc:u,...d})}var De=T('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Ue=T('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Ve=T('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),Ge=T('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function Be(r,a){de(a,!0);let n=Z(a,"open",15,!1);const d=200,u=16;let o=O(null),s=O(null),t=O(null),E=O(!1),x=O(0),C=O(0),m=O(.6),H=!0;D(()=>{if(e(o))if(n()&&!e(o).open){H=!0;const v=e(o);Le(document.documentElement).then(()=>{!n()||!v.isConnected?ee(document.documentElement):v.open||v.showModal()})}else!n()&&e(o).open&&e(o).close()}),D(()=>{if(!n())return;const v=document.documentElement;let h=!1;const f=()=>{document.fullscreenElement===v?h=!0:h&&(h=!1,n(!1))};return document.addEventListener("fullscreenchange",f),()=>{document.removeEventListener("fullscreenchange",f),ee(v)}}),D(()=>{if(!n())return;oe(()=>ae.open++);const v=xe(a.task.id,d,pe.full,{onresult:h=>{_(t,h,!0),_(E,!1)},onerror:()=>_(E,!0)});return()=>{v(),oe(()=>ae.open--)}}),D(()=>{if(!e(s))return;const v=getComputedStyle(e(s)).fontFamily,h=document.createElement("canvas").getContext("2d");if(!h)return;h.font=`100px ${v}`;const f=h.measureText("M".repeat(10)).width/1e3;f>0&&_(m,f)});const P=ie(()=>e(t)?.available?e(t).lines:[]),R=ie(()=>Xe({width:e(x)-2*u,height:e(C)-2*u,cols:je(e(P)),charWidth:e(m)}));D(()=>{e(t),e(R),e(s)&&H&&(e(s).scrollTop=e(s).scrollHeight)});const G=()=>{e(s)&&(H=e(s).scrollHeight-e(s).scrollTop-e(s).clientHeight<24)};var I=Ge(),J=k(I);{var K=v=>{var h=Ve(),f=k(h),l=k(f);me(l,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var p=g(l,2),W=N(p,!0),S=g(p,2),B=N(S),A=g(S,4),F=k(A);Ne(F,{class:"size-4"}),y(A),y(f);var i=g(f,2),M=k(i);{var ge=b=>{var j=De();let Y;var $=N(j,!0);z(q=>{V(j,"data-cols",e(R).cols),V(j,"data-rows",e(R).rows),Y=Ce(j,"",Y,{padding:"16px","font-size":`${e(R).fontSize??""}px`,"line-height":he}),w($,q)},[()=>e(P).join(`
1
+ import"./DsnmJJEf.js";import{s as ye,r as ke,p as Z}from"./BAOiF0in.js";import{I as Te}from"./xH4qmLqM.js";import{l as se,p as de,u as D,g as e,A as oe,v as _,h as k,r as y,t as z,x as le,a as c,b as ue,m as O,i as ie,s as g,o as N,d as w,y as ne,c as T,w as U,f as ve,q as Ee}from"./BuRWgnCz.js";import{i as X}from"./BDpRITyb.js";import{s as V,d as Ce,a as te,e as Se}from"./Cwb6d3g_.js";import{b as re}from"./BWRIDih-.js";import{c as fe,m as Me}from"./BCUUi0V0.js";import{e as Le,l as ee,c as ae}from"./DJmeKpkq.js";import{b as ce,a as Oe}from"./gS_jJyWs.js";import{S as me}from"./IPRCqR05.js";import{X as Ne}from"./rS7QE60d.js";var ze=new Set(["$$slots","$$events","$$legacy"]);function pt(r,a){let n=ke(a,ze);const d={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]]};Te(r,ye(()=>n,{get icon(){return d}}))}const Ie="No screenshots saved",Ae="No live preview reported",Pe="No pull request recorded",ht=r=>r.attention?.owner==="captain"&&r.attention.kind==="review";function Fe(r){return r<=0?Ie:`${r} ${r===1?"screenshot":"screenshots"}`}function xt(r,a=null){const n=a??[],d=a?n.length:r.screenshots,u=r.preview?.url??r.passage.link?.url??null;return{shots:n,shotsText:Fe(d),preview:u?{url:u}:null,previewText:u?"Live preview":Ae,pr:r.pr?{url:r.pr.url,label:r.pr.number?`PR #${r.pr.number}`:"Pull request"}:null,prText:r.pr?r.pr.number?`PR #${r.pr.number}`:"Pull request":Pe}}const pe={full:1e3,window:2e3},He=80,he=1.45,Re=11,We=32;function je(r){let a=0;for(const n of r)a=Math.max(a,[...n.trimEnd()].length);return Math.max(He,a)}function Xe(r){const a=r.lineHeight??he,n=Math.max(1,Math.floor(r.cols)),d=r.width/(n*(r.charWidth>0?r.charWidth:.6)),u=Number.isFinite(d)?Math.min(We,Math.max(Re,d)):13,o=Math.floor(u*10)/10,s=Math.max(1,Math.floor(Math.max(0,r.height)/(o*a)));return{fontSize:o,cols:n,rows:s}}function Qe({load:r,intervalMs:a,onresult:n,onerror:d,doc:u}){let o=!1,s=!1,t;const E=()=>{clearTimeout(t),o||(t=setTimeout(x,a))},x=async()=>{if(!(o||s)){if(u.hidden)return E();s=!0;try{const m=await r();o||n(m)}catch(m){o||d(m instanceof Error?m:new Error(String(m)))}finally{s=!1}E()}},C=()=>{!u.hidden&&!s&&(clearTimeout(t),x())};return u.addEventListener("visibilitychange",C),x(),()=>{o=!0,clearTimeout(t),u.removeEventListener("visibilitychange",C)}}function xe(r,a,n,d,u=document){const o=`/api/tasks/${encodeURIComponent(r)}/output?lines=${a}`;return Qe({load:async()=>{const s=await fetch(o);if(!s.ok)throw new Error(`HTTP ${s.status}`);return await s.json()},intervalMs:n,doc:u,...d})}var De=T('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Ue=T('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Ve=T('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),Ge=T('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function Be(r,a){de(a,!0);let n=Z(a,"open",15,!1);const d=200,u=16;let o=O(null),s=O(null),t=O(null),E=O(!1),x=O(0),C=O(0),m=O(.6),H=!0;D(()=>{if(e(o))if(n()&&!e(o).open){H=!0;const v=e(o);Le(document.documentElement).then(()=>{!n()||!v.isConnected?ee(document.documentElement):v.open||v.showModal()})}else!n()&&e(o).open&&e(o).close()}),D(()=>{if(!n())return;const v=document.documentElement;let h=!1;const f=()=>{document.fullscreenElement===v?h=!0:h&&(h=!1,n(!1))};return document.addEventListener("fullscreenchange",f),()=>{document.removeEventListener("fullscreenchange",f),ee(v)}}),D(()=>{if(!n())return;oe(()=>ae.open++);const v=xe(a.task.id,d,pe.full,{onresult:h=>{_(t,h,!0),_(E,!1)},onerror:()=>_(E,!0)});return()=>{v(),oe(()=>ae.open--)}}),D(()=>{if(!e(s))return;const v=getComputedStyle(e(s)).fontFamily,h=document.createElement("canvas").getContext("2d");if(!h)return;h.font=`100px ${v}`;const f=h.measureText("M".repeat(10)).width/1e3;f>0&&_(m,f)});const P=ie(()=>e(t)?.available?e(t).lines:[]),R=ie(()=>Xe({width:e(x)-2*u,height:e(C)-2*u,cols:je(e(P)),charWidth:e(m)}));D(()=>{e(t),e(R),e(s)&&H&&(e(s).scrollTop=e(s).scrollHeight)});const G=()=>{e(s)&&(H=e(s).scrollHeight-e(s).scrollTop-e(s).clientHeight<24)};var I=Ge(),J=k(I);{var K=v=>{var h=Ve(),f=k(h),l=k(f);me(l,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var p=g(l,2),W=N(p,!0),S=g(p,2),B=N(S),A=g(S,4),F=k(A);Ne(F,{class:"size-4"}),y(A),y(f);var i=g(f,2),M=k(i);{var ge=b=>{var j=De();let Y;var $=N(j,!0);z(q=>{V(j,"data-cols",e(R).cols),V(j,"data-rows",e(R).rows),Y=Ce(j,"",Y,{padding:"16px","font-size":`${e(R).fontSize??""}px`,"line-height":he}),w($,q)},[()=>e(P).join(`
2
2
  `)]),c(b,j)},_e=b=>{var j=Ue(),Y=k(j);{var $=L=>{var Q=U("Could not reach the Wheelhouse server.");c(L,Q)},q=L=>{var Q=U("Reading the worker’s terminal…");c(L,Q)},be=L=>{var Q=U();z(()=>w(Q,e(t).reason)),c(L,Q)},we=L=>{var Q=U("The terminal is empty.");c(L,Q)};X(Y,L=>{e(E)?L($):e(t)?e(t).available?L(we,-1):L(be,2):L(q,1)})}y(j),c(b,j)};X(M,b=>{e(P).length?b(ge):b(_e,-1)})}y(i),re(i,b=>_(s,b),()=>e(s)),y(h),z(b=>{w(W,a.task.shortTitle),w(B,`· live console, read-only${b??""}`)},[()=>e(t)?.capturedAt?` · ${fe(e(t).capturedAt)}`:""]),ne("click",A,()=>n(!1)),le("scroll",i,G),ce(i,"clientWidth",b=>_(x,b)),ce(i,"clientHeight",b=>_(C,b)),c(v,h)};X(J,v=>{n()&&v(K)})}y(I),re(I,v=>_(o,v),()=>e(o)),z(()=>{V(I,"aria-label",`${a.task.shortTitle??""}: live console`),V(I,"data-console-fullscreen",a.task.id)}),le("close",I,()=>{ee(document.documentElement),n(!1)}),c(r,I),ue()}se(["click"]);var Je=T('<pre class="flex min-h-0 flex-1 flex-col justify-end overflow-hidden px-3 py-2 font-mono text-xs leading-[1.45] whitespace-pre max-md:[overflow-wrap:anywhere] max-md:whitespace-pre-wrap" aria-label="Latest lines of the worker’s terminal"> </pre>'),Ke=T('<p class="grid flex-1 place-items-center px-4 text-center text-xs text-terminal-foreground/60"><!></p>'),Ye=T('<div><button type="button" class="absolute inset-0 z-10 rounded-[inherit] focus-visible:ring-3 focus-visible:ring-ring/60 focus-visible:outline-none" title="Open full screen"></button> <div class="flex items-center gap-1.5 border-b border-terminal-foreground/10 px-3 py-1.5 text-xs text-terminal-foreground/60"><!> <span class="max-md:whitespace-nowrap">Live console</span> <span class="ml-auto max-md:min-w-0 max-md:truncate"> </span> <!></div> <!></div> <!>',1);function gt(r,a){de(a,!0);let n=Z(a,"lines",3,12),d=Z(a,"class",3,"");const u=24;let o=O(null),s=O(!1),t=O(null),E=O(!1),x=O(!1);D(()=>{if(!e(o))return;const l=new IntersectionObserver(([p])=>_(s,p.isIntersecting,!0),{rootMargin:"100px"});return l.observe(e(o)),()=>l.disconnect()}),D(()=>{if(!(!e(s)||ae.open>0))return xe(a.task.id,n()+u,pe.window,{onresult:l=>{_(t,l,!0),_(E,!1)},onerror:()=>_(E,!0)})}),D(()=>{a.onsample?.(e(t)?.available&&e(t).lines.length?{line:Me(e(t).lines),capturedAt:e(t).capturedAt}:null)});var C=Ye(),m=ve(C),H=k(m),P=g(H,2),R=k(P);me(R,{class:"size-3","aria-hidden":"true"});var G=g(R,4),I=N(G),J=g(G,2);Oe(J,{class:"size-3.5 text-terminal-foreground/60 transition-colors group-hover/console:text-terminal-foreground","aria-hidden":"true"}),y(P);var K=g(P,2);{var v=l=>{var p=Je(),W=N(p,!0);z(S=>w(W,S),[()=>e(t).lines.slice(-n()).join(`
3
3
  `)]),c(l,p)},h=l=>{var p=Ke(),W=k(p);{var S=i=>{var M=U("Could not reach the Wheelhouse server.");c(i,M)},B=i=>{var M=U("Reading the worker’s terminal…");c(i,M)},A=i=>{var M=U();z(()=>w(M,e(t).reason)),c(i,M)},F=i=>{var M=U("The terminal is empty.");c(i,M)};X(W,i=>{e(E)?i(S):e(t)?e(t).available?i(F,-1):i(A,2):i(B,1)})}y(p),c(l,p)};X(K,l=>{e(t)?.available&&e(t).lines.length?l(v):l(h,-1)})}y(m),re(m,l=>_(o,l),()=>e(o));var f=g(m,2);Be(f,{get task(){return a.task},get open(){return e(x)},set open(l){_(x,l,!0)}}),z(l=>{te(m,1,`group/console relative z-10 flex aspect-[16/10] flex-col overflow-hidden rounded-sm border bg-terminal text-terminal-foreground ${d()??""}`),V(m,"data-console",a.task.id),V(H,"aria-label",`Open ${a.task.shortTitle??""}’s live console full screen`),w(I,`read-only${l??""}`)},[()=>e(t)?.capturedAt?` · ${fe(e(t).capturedAt)}`:""]),ne("click",H,()=>_(x,!0)),c(r,C),ue()}se(["click"]);var Ze=T('<p class="mt-1.5 leading-relaxed whitespace-pre-line text-muted-foreground" data-question-detail=""> </p>'),$e=T('<!> <button type="button" class="touch-target mt-1 text-xs text-muted-foreground hover:text-foreground hover:underline"> </button>',1),qe=T('<p class="mt-0.5 leading-relaxed"> </p>'),et=T('<div class="mt-2 border-l-2 border-brass/60 pl-2.5" data-question-call=""><p class="text-xs text-muted-foreground">Firstmate decided: <span class="font-medium text-foreground"> </span></p> <!></div>'),tt=T('<li><div class="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1"><p class="text-xs text-muted-foreground"> </p> <span> </span></div> <p class="mt-1 leading-relaxed"> </p> <!> <!></li>'),rt=T('<ol class="space-y-2" data-questions=""></ol>');function _t(r,a){let n=Z(a,"size",3,"page"),d=Ee({});const u={waiting:{label:"Waiting on Firstmate",class:"bg-warning/10 text-warning"},answered:{label:"Answered",class:"bg-success/10 text-success"},closed:{label:"Closed without an answer",class:"bg-muted text-muted-foreground"}};var o=rt();Se(o,23,()=>a.questions,s=>s.id,(s,t,E)=>{var x=tt(),C=k(x),m=k(C),H=N(m),P=g(m,2),R=N(P,!0);y(C);var G=g(C,2),I=N(G,!0),J=g(G,2);{var K=f=>{var l=$e(),p=ve(l);{var W=A=>{var F=Ze(),i=N(F,!0);z(()=>w(i,e(t).detail)),c(A,F)};X(p,A=>{d[e(t).id]&&A(W)})}var S=g(p,2),B=N(S,!0);z(()=>{V(S,"aria-expanded",!!d[e(t).id]),w(B,d[e(t).id]?"Show less":"Show the whole question")}),ne("click",S,()=>d[e(t).id]=!d[e(t).id]),c(f,l)};X(J,f=>{e(t).detail&&f(K)})}var v=g(J,2);{var h=f=>{var l=et(),p=k(l),W=g(k(p)),S=N(W,!0);y(p);var B=g(p,2);{var A=F=>{var i=qe(),M=N(i,!0);z(()=>w(M,e(t).reason)),c(F,i)};X(B,F=>{e(t).reason&&F(A)})}y(l),z(()=>w(S,e(t).verdict)),c(f,l)};X(v,f=>{e(t).verdict&&f(h)})}y(x),z(()=>{te(x,1,`rounded-md border border-hair bg-card ${n()==="card"?"px-2.5 py-2 text-xs":"px-3 py-2.5 text-sm"}`),V(x,"data-question",e(t).status),w(H,`Question ${e(E)+1}${e(t).where?` · ${e(t).where}`:""}${e(t).serious?" · marked serious":""}`),te(P,1,`rounded-full px-2 py-0.5 text-xs font-medium ${u[e(t).status].class??""}`),w(R,u[e(t).status].label),w(I,e(t).summary)}),c(s,x)}),y(o),c(r,o)}se(["click"]);export{gt as C,pt as I,_t as Q,ht as a,xt as r,Fe as s};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{s as g,r as m,p}from"./BAOiF0in.js";import{I as u}from"./xH4qmLqM.js";import{p as f,v as x,g as r,b as w,m as v,i as o}from"./BuRWgnCz.js";import{p as i}from"./_8osrypQ.js";import{i as s}from"./CspN1OJw.js";import{D as _,a as D}from"./Bgm2YDEc.js";var b=new Set(["$$slots","$$events","$$legacy"]);function I(a,e){let n=m(e,b);const t={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9"}]]};u(a,g(()=>n,{get icon(){return t}}))}function L(a,e){f(e,!0);let n=p(e,"project",3,null),t=v(!1);const c=o(()=>i.data.sessionToken??"");{let l=o(()=>s.view(i.data.inbox)?.canAnswer??!1),d=o(()=>s.errors[e.card.id]??null);_(a,{get card(){return e.card},get project(){return n()},get expanded(){return r(t)},get canAnswer(){return r(l)},get error(){return r(d)},get now(){return e.now},onAgree:()=>D(e.card,r(c)),get onLater(){return e.onLater},onClose:()=>s.answer(e.card,"close",null,r(c)),onToggle:()=>x(t,!r(t))})}w()}export{I as G,L as O};
1
+ import"./DsnmJJEf.js";import{s as g,r as m,p}from"./BAOiF0in.js";import{I as u}from"./xH4qmLqM.js";import{p as f,v as x,g as r,b as w,m as v,i as o}from"./BuRWgnCz.js";import{p as i}from"./0RGfo0js.js";import{i as s}from"./CspN1OJw.js";import{D as _,a as D}from"./C8rIEWKQ.js";var b=new Set(["$$slots","$$events","$$legacy"]);function I(a,e){let n=m(e,b);const t={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9"}]]};u(a,g(()=>n,{get icon(){return t}}))}function L(a,e){f(e,!0);let n=p(e,"project",3,null),t=v(!1);const c=o(()=>i.data.sessionToken??"");{let l=o(()=>s.view(i.data.inbox)?.canAnswer??!1),d=o(()=>s.errors[e.card.id]??null);_(a,{get card(){return e.card},get project(){return n()},get expanded(){return r(t)},get canAnswer(){return r(l)},get error(){return r(d)},get now(){return e.now},onAgree:()=>D(e.card,r(c)),get onLater(){return e.onLater},onClose:()=>s.answer(e.card,"close",null,r(c)),onToggle:()=>x(t,!r(t))})}w()}export{I as G,L as O};