@getontime/cli 4.4.0 → 4.4.2

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 (377) hide show
  1. package/client/assets/{Backstage-ScLTYJAt.js → Backstage-BdrcXNr9.js} +2 -2
  2. package/client/assets/Backstage-BdrcXNr9.js.br +0 -0
  3. package/client/assets/Backstage-BdrcXNr9.js.gz +0 -0
  4. package/client/assets/{Backstage-ScLTYJAt.js.map → Backstage-BdrcXNr9.js.map} +1 -1
  5. package/client/assets/{Countdown-DA_Lph2k.js → Countdown-DQM2ppPg.js} +2 -2
  6. package/client/assets/Countdown-DQM2ppPg.js.br +0 -0
  7. package/client/assets/Countdown-DQM2ppPg.js.gz +0 -0
  8. package/client/assets/{Countdown-DA_Lph2k.js.map → Countdown-DQM2ppPg.js.map} +1 -1
  9. package/client/assets/{CuesheetTable-C7hP6tMi.js → CuesheetTable-B5LQVh5m.js} +2 -2
  10. package/client/assets/CuesheetTable-B5LQVh5m.js.br +0 -0
  11. package/client/assets/CuesheetTable-B5LQVh5m.js.gz +0 -0
  12. package/client/assets/{CuesheetTable-C7hP6tMi.js.map → CuesheetTable-B5LQVh5m.js.map} +1 -1
  13. package/client/assets/CustomTranslationModal-CML7Vsot.js +2 -0
  14. package/client/assets/CustomTranslationModal-CML7Vsot.js.br +0 -0
  15. package/client/assets/CustomTranslationModal-CML7Vsot.js.gz +0 -0
  16. package/client/assets/{CustomTranslationModal-0ROtCxPC.js.map → CustomTranslationModal-CML7Vsot.js.map} +1 -1
  17. package/client/assets/DelayIndicator-DKS6mZdB.js +2 -0
  18. package/client/assets/DelayIndicator-DKS6mZdB.js.br +0 -0
  19. package/client/assets/DelayIndicator-DKS6mZdB.js.gz +0 -0
  20. package/client/assets/DelayIndicator-DKS6mZdB.js.map +1 -0
  21. package/client/assets/{EditorFeatureWrapper-B_KH_YqU.js → EditorFeatureWrapper-C1vLQxiy.js} +2 -2
  22. package/client/assets/EditorFeatureWrapper-C1vLQxiy.js.br +0 -0
  23. package/client/assets/EditorFeatureWrapper-C1vLQxiy.js.gz +0 -0
  24. package/client/assets/{EditorFeatureWrapper-B_KH_YqU.js.map → EditorFeatureWrapper-C1vLQxiy.js.map} +1 -1
  25. package/client/assets/{EditorUtils-BxN0w0-D.js → EditorUtils-BLcTuWz1.js} +2 -2
  26. package/client/assets/EditorUtils-BLcTuWz1.js.br +0 -0
  27. package/client/assets/EditorUtils-BLcTuWz1.js.gz +0 -0
  28. package/client/assets/{EditorUtils-BxN0w0-D.js.map → EditorUtils-BLcTuWz1.js.map} +1 -1
  29. package/client/assets/{EmptyPage-CcO33dlE.js → EmptyPage-CYVrjOvI.js} +2 -2
  30. package/client/assets/EmptyPage-CYVrjOvI.js.br +0 -0
  31. package/client/assets/EmptyPage-CYVrjOvI.js.gz +0 -0
  32. package/client/assets/{EmptyPage-CcO33dlE.js.map → EmptyPage-CYVrjOvI.js.map} +1 -1
  33. package/client/assets/{FollowButton-DJCtYYXt.js → FollowButton-DcSbb4R_.js} +2 -2
  34. package/client/assets/FollowButton-DcSbb4R_.js.br +0 -0
  35. package/client/assets/FollowButton-DcSbb4R_.js.gz +0 -0
  36. package/client/assets/{FollowButton-DJCtYYXt.js.map → FollowButton-DcSbb4R_.js.map} +1 -1
  37. package/client/assets/{MessageControlExport-DGo2ZNMw.js → MessageControlExport-BgT9JaXk.js} +3 -3
  38. package/client/assets/MessageControlExport-BgT9JaXk.js.br +0 -0
  39. package/client/assets/MessageControlExport-BgT9JaXk.js.gz +0 -0
  40. package/client/assets/{MessageControlExport-DGo2ZNMw.js.map → MessageControlExport-BgT9JaXk.js.map} +1 -1
  41. package/client/assets/{MultiPartProgressBar-IIU35-x9.js → MultiPartProgressBar-W2a-JWPY.js} +2 -2
  42. package/client/assets/MultiPartProgressBar-W2a-JWPY.js.br +0 -0
  43. package/client/assets/MultiPartProgressBar-W2a-JWPY.js.gz +0 -0
  44. package/client/assets/{MultiPartProgressBar-IIU35-x9.js.map → MultiPartProgressBar-W2a-JWPY.js.map} +1 -1
  45. package/client/assets/{OperatorExport-C-KafSVE.js → OperatorExport-CbWojpp6.js} +2 -2
  46. package/client/assets/OperatorExport-CbWojpp6.js.br +0 -0
  47. package/client/assets/OperatorExport-CbWojpp6.js.gz +0 -0
  48. package/client/assets/{OperatorExport-C-KafSVE.js.map → OperatorExport-CbWojpp6.js.map} +1 -1
  49. package/client/assets/{OverviewWrapper-B6AeBRb6.js → OverviewWrapper-B2i8d3rt.js} +2 -2
  50. package/client/assets/OverviewWrapper-B2i8d3rt.js.br +0 -0
  51. package/client/assets/OverviewWrapper-B2i8d3rt.js.gz +0 -0
  52. package/client/assets/{OverviewWrapper-B6AeBRb6.js.map → OverviewWrapper-B2i8d3rt.js.map} +1 -1
  53. package/client/assets/{PipHost-BueqKsmJ.js → PipHost-Dz2oy7XG.js} +2 -2
  54. package/client/assets/PipHost-Dz2oy7XG.js.br +0 -0
  55. package/client/assets/PipHost-Dz2oy7XG.js.gz +0 -0
  56. package/client/assets/{PipHost-BueqKsmJ.js.map → PipHost-Dz2oy7XG.js.map} +1 -1
  57. package/client/assets/{ProjectInfo-DiD9lzzx.js → ProjectInfo-BR_7Hp5u.js} +2 -2
  58. package/client/assets/ProjectInfo-BR_7Hp5u.js.br +0 -0
  59. package/client/assets/ProjectInfo-BR_7Hp5u.js.gz +0 -0
  60. package/client/assets/{ProjectInfo-DiD9lzzx.js.map → ProjectInfo-BR_7Hp5u.js.map} +1 -1
  61. package/client/assets/{ProtectRoute-CcDK6JVA.js → ProtectRoute-Bxq6q7ba.js} +2 -2
  62. package/client/assets/ProtectRoute-Bxq6q7ba.js.br +0 -0
  63. package/client/assets/ProtectRoute-Bxq6q7ba.js.gz +0 -0
  64. package/client/assets/{ProtectRoute-CcDK6JVA.js.map → ProtectRoute-Bxq6q7ba.js.map} +1 -1
  65. package/client/assets/ProtectedCuesheet-C7AqD2dy.js +2 -0
  66. package/client/assets/ProtectedCuesheet-C7AqD2dy.js.br +0 -0
  67. package/client/assets/ProtectedCuesheet-C7AqD2dy.js.gz +0 -0
  68. package/client/assets/{ProtectedCuesheet-D19INqhI.js.map → ProtectedCuesheet-C7AqD2dy.js.map} +1 -1
  69. package/client/assets/ProtectedEditor-CsfvVyOU.js +3 -0
  70. package/client/assets/ProtectedEditor-CsfvVyOU.js.br +0 -0
  71. package/client/assets/ProtectedEditor-CsfvVyOU.js.gz +0 -0
  72. package/client/assets/ProtectedEditor-CsfvVyOU.js.map +1 -0
  73. package/client/assets/RundownExport-25orDQIW.js +2 -0
  74. package/client/assets/RundownExport-25orDQIW.js.br +0 -0
  75. package/client/assets/RundownExport-25orDQIW.js.gz +0 -0
  76. package/client/assets/RundownExport-25orDQIW.js.map +1 -0
  77. package/client/assets/RundownExport-CzaSrbaj.css +1 -0
  78. package/client/assets/RundownExport-CzaSrbaj.css.br +0 -0
  79. package/client/assets/RundownExport-CzaSrbaj.css.gz +0 -0
  80. package/client/assets/Select-BnGTAeXJ.js +2 -0
  81. package/client/assets/Select-BnGTAeXJ.js.br +0 -0
  82. package/client/assets/Select-BnGTAeXJ.js.gz +0 -0
  83. package/client/assets/{Select-B3zdv0Ng.js.map → Select-BnGTAeXJ.js.map} +1 -1
  84. package/client/assets/{Studio-DS_uXtgn.js → Studio-BK2Klo_K.js} +2 -2
  85. package/client/assets/Studio-BK2Klo_K.js.br +0 -0
  86. package/client/assets/Studio-BK2Klo_K.js.gz +0 -0
  87. package/client/assets/{Studio-DS_uXtgn.js.map → Studio-BK2Klo_K.js.map} +1 -1
  88. package/client/assets/StyleEditor-DIHQ1PUV.js +2 -0
  89. package/client/assets/StyleEditor-DIHQ1PUV.js.br +0 -0
  90. package/client/assets/StyleEditor-DIHQ1PUV.js.gz +0 -0
  91. package/client/assets/{StyleEditor-DcyJgmAF.js.map → StyleEditor-DIHQ1PUV.js.map} +1 -1
  92. package/client/assets/{SuperscriptPeriod-DswX2aei.js → SuperscriptPeriod-EEedc9rG.js} +2 -2
  93. package/client/assets/SuperscriptPeriod-EEedc9rG.js.br +0 -0
  94. package/client/assets/SuperscriptPeriod-EEedc9rG.js.gz +0 -0
  95. package/client/assets/{SuperscriptPeriod-DswX2aei.js.map → SuperscriptPeriod-EEedc9rG.js.map} +1 -1
  96. package/client/assets/{SuperscriptTime-COS4JWHJ.js → SuperscriptTime-BVanhNvd.js} +2 -2
  97. package/client/assets/SuperscriptTime-BVanhNvd.js.br +0 -0
  98. package/client/assets/SuperscriptTime-BVanhNvd.js.gz +0 -0
  99. package/client/assets/{SuperscriptTime-COS4JWHJ.js.map → SuperscriptTime-BVanhNvd.js.map} +1 -1
  100. package/client/assets/SwatchPicker-Ckpchvjo.js +2 -0
  101. package/client/assets/SwatchPicker-Ckpchvjo.js.br +0 -0
  102. package/client/assets/SwatchPicker-Ckpchvjo.js.gz +0 -0
  103. package/client/assets/{SwatchPicker-DPyJv7aS.js.map → SwatchPicker-Ckpchvjo.js.map} +1 -1
  104. package/client/assets/TimeElements-CYIgGk0T.js +2 -0
  105. package/client/assets/TimeElements-CYIgGk0T.js.br +0 -0
  106. package/client/assets/TimeElements-CYIgGk0T.js.gz +0 -0
  107. package/client/assets/{TimeElements-8rNLGU60.js.map → TimeElements-CYIgGk0T.js.map} +1 -1
  108. package/client/assets/{TimeInput-OX4LMRQl.js → TimeInput-Cwl9vLWA.js} +2 -2
  109. package/client/assets/TimeInput-Cwl9vLWA.js.br +0 -0
  110. package/client/assets/TimeInput-Cwl9vLWA.js.gz +0 -0
  111. package/client/assets/{TimeInput-OX4LMRQl.js.map → TimeInput-Cwl9vLWA.js.map} +1 -1
  112. package/client/assets/{TimelinePage-7kRpUl6P.js → TimelinePage-D4QNdk-Z.js} +2 -2
  113. package/client/assets/TimelinePage-D4QNdk-Z.js.br +0 -0
  114. package/client/assets/TimelinePage-D4QNdk-Z.js.gz +0 -0
  115. package/client/assets/{TimelinePage-7kRpUl6P.js.map → TimelinePage-D4QNdk-Z.js.map} +1 -1
  116. package/client/assets/{Timer-Bg9pVhup.js → Timer-BJQKNHfo.js} +2 -2
  117. package/client/assets/Timer-BJQKNHfo.js.br +0 -0
  118. package/client/assets/Timer-BJQKNHfo.js.gz +0 -0
  119. package/client/assets/{Timer-Bg9pVhup.js.map → Timer-BJQKNHfo.js.map} +1 -1
  120. package/client/assets/TimerControlExport-Ba1vifNg.js +2 -0
  121. package/client/assets/TimerControlExport-Ba1vifNg.js.br +0 -0
  122. package/client/assets/TimerControlExport-Ba1vifNg.js.gz +0 -0
  123. package/client/assets/{TimerControlExport-BNfZ99Im.js.map → TimerControlExport-Ba1vifNg.js.map} +1 -1
  124. package/client/assets/TimerDisplay-tVcUk9j3.js +2 -0
  125. package/client/assets/TimerDisplay-tVcUk9j3.js.br +0 -0
  126. package/client/assets/TimerDisplay-tVcUk9j3.js.gz +0 -0
  127. package/client/assets/{TimerDisplay-DQQ7sMDc.js.map → TimerDisplay-tVcUk9j3.js.map} +1 -1
  128. package/client/assets/{TitleCard-De0WhlN2.js → TitleCard-BNjv58eq.js} +2 -2
  129. package/client/assets/TitleCard-BNjv58eq.js.br +0 -0
  130. package/client/assets/TitleCard-BNjv58eq.js.gz +0 -0
  131. package/client/assets/{TitleCard-De0WhlN2.js.map → TitleCard-BNjv58eq.js.map} +1 -1
  132. package/client/assets/Tooltip-DZJ7u9gm.js +2 -0
  133. package/client/assets/Tooltip-DZJ7u9gm.js.br +4 -0
  134. package/client/assets/Tooltip-DZJ7u9gm.js.gz +0 -0
  135. package/client/assets/{Tooltip-B4PEP32j.js.map → Tooltip-DZJ7u9gm.js.map} +1 -1
  136. package/client/assets/{ViewLogo-CHqiH4C0.js → ViewLogo-2I7w5Yms.js} +2 -2
  137. package/client/assets/ViewLogo-2I7w5Yms.js.br +0 -0
  138. package/client/assets/ViewLogo-2I7w5Yms.js.gz +0 -0
  139. package/client/assets/{ViewLogo-CHqiH4C0.js.map → ViewLogo-2I7w5Yms.js.map} +1 -1
  140. package/client/assets/{ViewParamsEditor-BHIK3qtx.js → ViewParamsEditor-BX2RM8sx.js} +2 -2
  141. package/client/assets/ViewParamsEditor-BX2RM8sx.js.br +0 -0
  142. package/client/assets/ViewParamsEditor-BX2RM8sx.js.gz +0 -0
  143. package/client/assets/{ViewParamsEditor-BHIK3qtx.js.map → ViewParamsEditor-BX2RM8sx.js.map} +1 -1
  144. package/client/assets/{editorSettings-VcitNPq1.js → editorSettings-_x6YKRfR.js} +2 -2
  145. package/client/assets/editorSettings-_x6YKRfR.js.br +6 -0
  146. package/client/assets/editorSettings-_x6YKRfR.js.gz +0 -0
  147. package/client/assets/{editorSettings-VcitNPq1.js.map → editorSettings-_x6YKRfR.js.map} +1 -1
  148. package/client/assets/{getProgress-mRMYlU96.js → getProgress-ZUTmCn_v.js} +2 -2
  149. package/client/assets/getProgress-ZUTmCn_v.js.br +0 -0
  150. package/client/assets/getProgress-ZUTmCn_v.js.gz +0 -0
  151. package/client/assets/{getProgress-mRMYlU96.js.map → getProgress-ZUTmCn_v.js.map} +1 -1
  152. package/client/assets/index-Dm-4OTmY.js +3 -0
  153. package/client/assets/index-Dm-4OTmY.js.br +0 -0
  154. package/client/assets/index-Dm-4OTmY.js.gz +0 -0
  155. package/client/assets/index-Dm-4OTmY.js.map +1 -0
  156. package/client/assets/{offset-Bs6CY1IK.js → offset-VthsmtrO.js} +2 -2
  157. package/client/assets/offset-VthsmtrO.js.br +0 -0
  158. package/client/assets/offset-VthsmtrO.js.gz +0 -0
  159. package/client/assets/{offset-Bs6CY1IK.js.map → offset-VthsmtrO.js.map} +1 -1
  160. package/client/assets/{parseUserTime-CI7s8pYc.js → parseUserTime-sZbEBi61.js} +2 -2
  161. package/client/assets/parseUserTime-sZbEBi61.js.br +0 -0
  162. package/client/assets/parseUserTime-sZbEBi61.js.gz +0 -0
  163. package/client/assets/{parseUserTime-CI7s8pYc.js.map → parseUserTime-sZbEBi61.js.map} +1 -1
  164. package/client/assets/{playbackstate-DisgQbHM.js → playbackstate-Dl_ZJABT.js} +2 -2
  165. package/client/assets/playbackstate-Dl_ZJABT.js.br +0 -0
  166. package/client/assets/playbackstate-Dl_ZJABT.js.gz +0 -0
  167. package/client/assets/{playbackstate-DisgQbHM.js.map → playbackstate-Dl_ZJABT.js.map} +1 -1
  168. package/client/assets/{presentation.utils-Bv3PuMWv.js → presentation.utils-Z61KykAH.js} +2 -2
  169. package/client/assets/presentation.utils-Z61KykAH.js.br +0 -0
  170. package/client/assets/presentation.utils-Z61KykAH.js.gz +0 -0
  171. package/client/assets/{presentation.utils-Bv3PuMWv.js.map → presentation.utils-Z61KykAH.js.map} +1 -1
  172. package/client/assets/rundownUtils-CXZRD6yP.js +2 -0
  173. package/client/assets/rundownUtils-CXZRD6yP.js.br +0 -0
  174. package/client/assets/rundownUtils-CXZRD6yP.js.gz +0 -0
  175. package/client/assets/rundownUtils-CXZRD6yP.js.map +1 -0
  176. package/client/assets/timer.utils-B4bvsns3.js +2 -0
  177. package/client/assets/timer.utils-B4bvsns3.js.br +0 -0
  178. package/client/assets/timer.utils-B4bvsns3.js.gz +0 -0
  179. package/client/assets/{timer.utils-P25ngopd.js.map → timer.utils-B4bvsns3.js.map} +1 -1
  180. package/client/assets/useCustomFields-BBE4LBBr.js +2 -0
  181. package/client/assets/useCustomFields-BBE4LBBr.js.br +0 -0
  182. package/client/assets/useCustomFields-BBE4LBBr.js.gz +0 -0
  183. package/client/assets/useCustomFields-BBE4LBBr.js.map +1 -0
  184. package/client/assets/useEventSelection-Bpbu89c7.js +2 -0
  185. package/client/assets/useEventSelection-Bpbu89c7.js.br +0 -0
  186. package/client/assets/useEventSelection-Bpbu89c7.js.gz +0 -0
  187. package/client/assets/useEventSelection-Bpbu89c7.js.map +1 -0
  188. package/client/assets/useProjectData-C110zIXC.js +2 -0
  189. package/client/assets/useProjectData-C110zIXC.js.br +0 -0
  190. package/client/assets/useProjectData-C110zIXC.js.gz +0 -0
  191. package/client/assets/useProjectData-C110zIXC.js.map +1 -0
  192. package/client/assets/useReport-DqSBq4MG.js +2 -0
  193. package/client/assets/useReport-DqSBq4MG.js.br +0 -0
  194. package/client/assets/useReport-DqSBq4MG.js.gz +0 -0
  195. package/client/assets/useReport-DqSBq4MG.js.map +1 -0
  196. package/client/assets/useRundown-DAo6huE4.js +2 -0
  197. package/client/assets/useRundown-DAo6huE4.js.br +0 -0
  198. package/client/assets/useRundown-DAo6huE4.js.gz +0 -0
  199. package/client/assets/useRundown-DAo6huE4.js.map +1 -0
  200. package/client/assets/{useSelectAndRevealEntry-CzSIOtzH.js → useSelectAndRevealEntry-DTg0hmxA.js} +2 -2
  201. package/client/assets/useSelectAndRevealEntry-DTg0hmxA.js.br +0 -0
  202. package/client/assets/useSelectAndRevealEntry-DTg0hmxA.js.gz +0 -0
  203. package/client/assets/{useSelectAndRevealEntry-CzSIOtzH.js.map → useSelectAndRevealEntry-DTg0hmxA.js.map} +1 -1
  204. package/client/assets/{useWindowTitle-Cl1AVD9_.js → useWindowTitle-DM8dIp8L.js} +2 -2
  205. package/client/assets/useWindowTitle-DM8dIp8L.js.br +0 -0
  206. package/client/assets/useWindowTitle-DM8dIp8L.js.gz +0 -0
  207. package/client/assets/{useWindowTitle-Cl1AVD9_.js.map → useWindowTitle-DM8dIp8L.js.map} +1 -1
  208. package/client/assets/validateEvent-GnPt-e9-.js +2 -0
  209. package/client/assets/validateEvent-GnPt-e9-.js.br +0 -0
  210. package/client/assets/validateEvent-GnPt-e9-.js.gz +0 -0
  211. package/client/assets/{validateEvent-DhFtLvz_.js.map → validateEvent-GnPt-e9-.js.map} +1 -1
  212. package/client/assets/{vendor-dQa48psh.js → vendor-BKUJ0_Du.js} +12 -12
  213. package/client/assets/vendor-BKUJ0_Du.js.br +0 -0
  214. package/client/assets/vendor-BKUJ0_Du.js.gz +0 -0
  215. package/client/assets/{vendor-dQa48psh.js.map → vendor-BKUJ0_Du.js.map} +1 -1
  216. package/client/assets/{viewLoader.utils-ndDejZHN.js → viewLoader.utils-4lL4PiNI.js} +2 -2
  217. package/client/assets/viewLoader.utils-4lL4PiNI.js.br +0 -0
  218. package/client/assets/viewLoader.utils-4lL4PiNI.js.gz +0 -0
  219. package/client/assets/{viewLoader.utils-ndDejZHN.js.map → viewLoader.utils-4lL4PiNI.js.map} +1 -1
  220. package/client/assets/{viewUtils-rcOl1-o8.js → viewUtils-29a3Mmiu.js} +2 -2
  221. package/client/assets/viewUtils-29a3Mmiu.js.br +0 -0
  222. package/client/assets/viewUtils-29a3Mmiu.js.gz +0 -0
  223. package/client/assets/{viewUtils-rcOl1-o8.js.map → viewUtils-29a3Mmiu.js.map} +1 -1
  224. package/client/index.html +2 -2
  225. package/package.json +1 -1
  226. package/server/index.cjs +87 -87
  227. package/client/assets/Backstage-ScLTYJAt.js.br +0 -0
  228. package/client/assets/Backstage-ScLTYJAt.js.gz +0 -0
  229. package/client/assets/Countdown-DA_Lph2k.js.br +0 -0
  230. package/client/assets/Countdown-DA_Lph2k.js.gz +0 -0
  231. package/client/assets/CuesheetTable-C7hP6tMi.js.br +0 -0
  232. package/client/assets/CuesheetTable-C7hP6tMi.js.gz +0 -0
  233. package/client/assets/CustomTranslationModal-0ROtCxPC.js +0 -2
  234. package/client/assets/CustomTranslationModal-0ROtCxPC.js.br +0 -0
  235. package/client/assets/CustomTranslationModal-0ROtCxPC.js.gz +0 -0
  236. package/client/assets/DelayIndicator-OEjcqoIx.js +0 -2
  237. package/client/assets/DelayIndicator-OEjcqoIx.js.br +0 -0
  238. package/client/assets/DelayIndicator-OEjcqoIx.js.gz +0 -0
  239. package/client/assets/DelayIndicator-OEjcqoIx.js.map +0 -1
  240. package/client/assets/EditorFeatureWrapper-B_KH_YqU.js.br +0 -0
  241. package/client/assets/EditorFeatureWrapper-B_KH_YqU.js.gz +0 -0
  242. package/client/assets/EditorUtils-BxN0w0-D.js.br +0 -0
  243. package/client/assets/EditorUtils-BxN0w0-D.js.gz +0 -0
  244. package/client/assets/EmptyPage-CcO33dlE.js.br +0 -0
  245. package/client/assets/EmptyPage-CcO33dlE.js.gz +0 -0
  246. package/client/assets/FollowButton-DJCtYYXt.js.br +0 -0
  247. package/client/assets/FollowButton-DJCtYYXt.js.gz +0 -0
  248. package/client/assets/MessageControlExport-DGo2ZNMw.js.br +0 -0
  249. package/client/assets/MessageControlExport-DGo2ZNMw.js.gz +0 -0
  250. package/client/assets/MultiPartProgressBar-IIU35-x9.js.br +0 -0
  251. package/client/assets/MultiPartProgressBar-IIU35-x9.js.gz +0 -0
  252. package/client/assets/OperatorExport-C-KafSVE.js.br +0 -0
  253. package/client/assets/OperatorExport-C-KafSVE.js.gz +0 -0
  254. package/client/assets/OverviewWrapper-B6AeBRb6.js.br +0 -0
  255. package/client/assets/OverviewWrapper-B6AeBRb6.js.gz +0 -0
  256. package/client/assets/PipHost-BueqKsmJ.js.br +0 -0
  257. package/client/assets/PipHost-BueqKsmJ.js.gz +0 -0
  258. package/client/assets/ProjectInfo-DiD9lzzx.js.br +0 -0
  259. package/client/assets/ProjectInfo-DiD9lzzx.js.gz +0 -0
  260. package/client/assets/ProtectRoute-CcDK6JVA.js.br +0 -0
  261. package/client/assets/ProtectRoute-CcDK6JVA.js.gz +0 -0
  262. package/client/assets/ProtectedCuesheet-D19INqhI.js +0 -2
  263. package/client/assets/ProtectedCuesheet-D19INqhI.js.br +0 -0
  264. package/client/assets/ProtectedCuesheet-D19INqhI.js.gz +0 -0
  265. package/client/assets/ProtectedEditor-BVabJfIz.js +0 -3
  266. package/client/assets/ProtectedEditor-BVabJfIz.js.br +0 -0
  267. package/client/assets/ProtectedEditor-BVabJfIz.js.gz +0 -0
  268. package/client/assets/ProtectedEditor-BVabJfIz.js.map +0 -1
  269. package/client/assets/RundownEntry-C5kdIHbb.js +0 -2
  270. package/client/assets/RundownEntry-C5kdIHbb.js.br +0 -0
  271. package/client/assets/RundownEntry-C5kdIHbb.js.gz +0 -0
  272. package/client/assets/RundownEntry-C5kdIHbb.js.map +0 -1
  273. package/client/assets/RundownEntry-jE09YkV2.css +0 -1
  274. package/client/assets/RundownEntry-jE09YkV2.css.br +0 -0
  275. package/client/assets/RundownEntry-jE09YkV2.css.gz +0 -0
  276. package/client/assets/RundownExport-BFn7H24P.css +0 -1
  277. package/client/assets/RundownExport-BFn7H24P.css.br +0 -0
  278. package/client/assets/RundownExport-BFn7H24P.css.gz +0 -0
  279. package/client/assets/RundownExport-DhzzqPCD.js +0 -3
  280. package/client/assets/RundownExport-DhzzqPCD.js.br +0 -0
  281. package/client/assets/RundownExport-DhzzqPCD.js.gz +0 -0
  282. package/client/assets/RundownExport-DhzzqPCD.js.map +0 -1
  283. package/client/assets/Select-B3zdv0Ng.js +0 -2
  284. package/client/assets/Select-B3zdv0Ng.js.br +0 -0
  285. package/client/assets/Select-B3zdv0Ng.js.gz +0 -0
  286. package/client/assets/Studio-DS_uXtgn.js.br +0 -0
  287. package/client/assets/Studio-DS_uXtgn.js.gz +0 -0
  288. package/client/assets/StyleEditor-DcyJgmAF.js +0 -2
  289. package/client/assets/StyleEditor-DcyJgmAF.js.br +0 -0
  290. package/client/assets/StyleEditor-DcyJgmAF.js.gz +0 -0
  291. package/client/assets/SuperscriptPeriod-DswX2aei.js.br +0 -0
  292. package/client/assets/SuperscriptPeriod-DswX2aei.js.gz +0 -0
  293. package/client/assets/SuperscriptTime-COS4JWHJ.js.br +0 -0
  294. package/client/assets/SuperscriptTime-COS4JWHJ.js.gz +0 -0
  295. package/client/assets/SwatchPicker-DPyJv7aS.js +0 -2
  296. package/client/assets/SwatchPicker-DPyJv7aS.js.br +0 -0
  297. package/client/assets/SwatchPicker-DPyJv7aS.js.gz +0 -0
  298. package/client/assets/TimeElements-8rNLGU60.js +0 -2
  299. package/client/assets/TimeElements-8rNLGU60.js.br +0 -0
  300. package/client/assets/TimeElements-8rNLGU60.js.gz +0 -0
  301. package/client/assets/TimeInput-OX4LMRQl.js.br +0 -0
  302. package/client/assets/TimeInput-OX4LMRQl.js.gz +0 -0
  303. package/client/assets/TimelinePage-7kRpUl6P.js.br +0 -0
  304. package/client/assets/TimelinePage-7kRpUl6P.js.gz +0 -0
  305. package/client/assets/Timer-Bg9pVhup.js.br +0 -0
  306. package/client/assets/Timer-Bg9pVhup.js.gz +0 -0
  307. package/client/assets/TimerControlExport-BNfZ99Im.js +0 -2
  308. package/client/assets/TimerControlExport-BNfZ99Im.js.br +0 -0
  309. package/client/assets/TimerControlExport-BNfZ99Im.js.gz +0 -0
  310. package/client/assets/TimerDisplay-DQQ7sMDc.js +0 -2
  311. package/client/assets/TimerDisplay-DQQ7sMDc.js.br +0 -0
  312. package/client/assets/TimerDisplay-DQQ7sMDc.js.gz +0 -0
  313. package/client/assets/TitleCard-De0WhlN2.js.br +0 -0
  314. package/client/assets/TitleCard-De0WhlN2.js.gz +0 -0
  315. package/client/assets/Tooltip-B4PEP32j.js +0 -2
  316. package/client/assets/Tooltip-B4PEP32j.js.br +0 -0
  317. package/client/assets/Tooltip-B4PEP32j.js.gz +0 -0
  318. package/client/assets/ViewLogo-CHqiH4C0.js.br +0 -0
  319. package/client/assets/ViewLogo-CHqiH4C0.js.gz +0 -0
  320. package/client/assets/ViewParamsEditor-BHIK3qtx.js.br +0 -0
  321. package/client/assets/ViewParamsEditor-BHIK3qtx.js.gz +0 -0
  322. package/client/assets/editorSettings-VcitNPq1.js.br +0 -0
  323. package/client/assets/editorSettings-VcitNPq1.js.gz +0 -0
  324. package/client/assets/getProgress-mRMYlU96.js.br +0 -0
  325. package/client/assets/getProgress-mRMYlU96.js.gz +0 -0
  326. package/client/assets/index-DYkg-xOk.js +0 -3
  327. package/client/assets/index-DYkg-xOk.js.br +0 -0
  328. package/client/assets/index-DYkg-xOk.js.gz +0 -0
  329. package/client/assets/index-DYkg-xOk.js.map +0 -1
  330. package/client/assets/offset-Bs6CY1IK.js.br +0 -3
  331. package/client/assets/offset-Bs6CY1IK.js.gz +0 -0
  332. package/client/assets/parseUserTime-CI7s8pYc.js.br +0 -0
  333. package/client/assets/parseUserTime-CI7s8pYc.js.gz +0 -0
  334. package/client/assets/playbackstate-DisgQbHM.js.br +0 -0
  335. package/client/assets/playbackstate-DisgQbHM.js.gz +0 -0
  336. package/client/assets/presentation.utils-Bv3PuMWv.js.br +0 -0
  337. package/client/assets/presentation.utils-Bv3PuMWv.js.gz +0 -0
  338. package/client/assets/rundownUtils-CJxEqFha.js +0 -2
  339. package/client/assets/rundownUtils-CJxEqFha.js.br +0 -0
  340. package/client/assets/rundownUtils-CJxEqFha.js.gz +0 -0
  341. package/client/assets/rundownUtils-CJxEqFha.js.map +0 -1
  342. package/client/assets/timer.utils-P25ngopd.js +0 -2
  343. package/client/assets/timer.utils-P25ngopd.js.br +0 -0
  344. package/client/assets/timer.utils-P25ngopd.js.gz +0 -0
  345. package/client/assets/useCustomFields-DUYgd-E7.js +0 -2
  346. package/client/assets/useCustomFields-DUYgd-E7.js.br +0 -0
  347. package/client/assets/useCustomFields-DUYgd-E7.js.gz +0 -0
  348. package/client/assets/useCustomFields-DUYgd-E7.js.map +0 -1
  349. package/client/assets/useEventSelection-R7JdgAzy.js +0 -2
  350. package/client/assets/useEventSelection-R7JdgAzy.js.br +0 -0
  351. package/client/assets/useEventSelection-R7JdgAzy.js.gz +0 -0
  352. package/client/assets/useEventSelection-R7JdgAzy.js.map +0 -1
  353. package/client/assets/useProjectData-DdITd09M.js +0 -2
  354. package/client/assets/useProjectData-DdITd09M.js.br +0 -0
  355. package/client/assets/useProjectData-DdITd09M.js.gz +0 -0
  356. package/client/assets/useProjectData-DdITd09M.js.map +0 -1
  357. package/client/assets/useReport-CR0k0b85.js +0 -2
  358. package/client/assets/useReport-CR0k0b85.js.br +0 -0
  359. package/client/assets/useReport-CR0k0b85.js.gz +0 -0
  360. package/client/assets/useReport-CR0k0b85.js.map +0 -1
  361. package/client/assets/useRundown-CR9Ah1Fa.js +0 -2
  362. package/client/assets/useRundown-CR9Ah1Fa.js.br +0 -0
  363. package/client/assets/useRundown-CR9Ah1Fa.js.gz +0 -0
  364. package/client/assets/useRundown-CR9Ah1Fa.js.map +0 -1
  365. package/client/assets/useSelectAndRevealEntry-CzSIOtzH.js.br +0 -0
  366. package/client/assets/useSelectAndRevealEntry-CzSIOtzH.js.gz +0 -0
  367. package/client/assets/useWindowTitle-Cl1AVD9_.js.br +0 -0
  368. package/client/assets/useWindowTitle-Cl1AVD9_.js.gz +0 -0
  369. package/client/assets/validateEvent-DhFtLvz_.js +0 -2
  370. package/client/assets/validateEvent-DhFtLvz_.js.br +0 -0
  371. package/client/assets/validateEvent-DhFtLvz_.js.gz +0 -0
  372. package/client/assets/vendor-dQa48psh.js.br +0 -0
  373. package/client/assets/vendor-dQa48psh.js.gz +0 -0
  374. package/client/assets/viewLoader.utils-ndDejZHN.js.br +0 -0
  375. package/client/assets/viewLoader.utils-ndDejZHN.js.gz +0 -0
  376. package/client/assets/viewUtils-rcOl1-o8.js.br +0 -0
  377. package/client/assets/viewUtils-rcOl1-o8.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- var Dk=Object.defineProperty;var ZT=e=>{throw TypeError(e)};var Lk=(e,t,n)=>t in e?Dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qt=(e,t,n)=>Lk(e,typeof t!="symbol"?t+"":t,n),Wy=(e,t,n)=>t.has(e)||ZT("Cannot "+n);var ee=(e,t,n)=>(Wy(e,t,"read from private field"),n?n.call(e):t.get(e)),it=(e,t,n)=>t.has(e)?ZT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Xe=(e,t,n,r)=>(Wy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ot=(e,t,n)=>(Wy(e,t,"access private method"),n);var kp=(e,t,n,r)=>({set _(i){Xe(e,t,i,n)},get _(){return ee(e,t,r)}});(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1bb78e78-654d-4be7-936e-ca5b0c37ed8a",e._sentryDebugIdIdentifier="sentry-dbid-1bb78e78-654d-4be7-936e-ca5b0c37ed8a")}catch{}})();function LM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Pk=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Pk.SENTRY_RELEASE={id:"b6a01a52e21dc582eb62da094548ea286c4fe0cb"};var e_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ky={exports:{}},qf={};var t_;function kk(){if(t_)return qf;t_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var u in i)u!=="key"&&(s[u]=i[u])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return qf.Fragment=t,qf.jsx=n,qf.jsxs=n,qf}var n_;function Nk(){return n_||(n_=1,Ky.exports=kk()),Ky.exports}var be=Nk(),Qy={exports:{}},yt={};var r_;function Fk(){if(r_)return yt;r_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),m=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=m&&k[m]||k["@@iterator"],typeof k=="function"?k:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function C(k,$,W){this.props=k,this.context=$,this.refs=x,this.updater=W||E}C.prototype.isReactComponent={},C.prototype.setState=function(k,$){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,$,"setState")},C.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function R(){}R.prototype=C.prototype;function T(k,$,W){this.props=k,this.context=$,this.refs=x,this.updater=W||E}var O=T.prototype=new R;O.constructor=T,b(O,C.prototype),O.isPureReactComponent=!0;var _=Array.isArray;function M(){}var A={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function L(k,$,W){var te=W.ref;return{$$typeof:e,type:k,key:$,ref:te!==void 0?te:null,props:W}}function N(k,$){return L(k.type,$,k.props)}function H(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function j(k){var $={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(W){return $[W]})}var F=/\/+/g;function q(k,$){return typeof k=="object"&&k!==null&&k.key!=null?j(""+k.key):$.toString(36)}function U(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(M,M):(k.status="pending",k.then(function($){k.status==="pending"&&(k.status="fulfilled",k.value=$)},function($){k.status==="pending"&&(k.status="rejected",k.reason=$)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function P(k,$,W,te,ae){var ne=typeof k;(ne==="undefined"||ne==="boolean")&&(k=null);var ce=!1;if(k===null)ce=!0;else switch(ne){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(k.$$typeof){case e:case t:ce=!0;break;case p:return ce=k._init,P(ce(k._payload),$,W,te,ae)}}if(ce)return ae=ae(k),ce=te===""?"."+q(k,0):te,_(ae)?(W="",ce!=null&&(W=ce.replace(F,"$&/")+"/"),P(ae,$,W,"",function(ve){return ve})):ae!=null&&(H(ae)&&(ae=N(ae,W+(ae.key==null||k&&k.key===ae.key?"":(""+ae.key).replace(F,"$&/")+"/")+ce)),$.push(ae)),1;ce=0;var Q=te===""?".":te+":";if(_(k))for(var de=0;de<k.length;de++)te=k[de],ne=Q+q(te,de),ce+=P(te,$,W,ne,ae);else if(de=v(k),typeof de=="function")for(k=de.call(k),de=0;!(te=k.next()).done;)te=te.value,ne=Q+q(te,de++),ce+=P(te,$,W,ne,ae);else if(ne==="object"){if(typeof k.then=="function")return P(U(k),$,W,te,ae);throw $=String(k),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return ce}function G(k,$,W){if(k==null)return k;var te=[],ae=0;return P(k,te,"","",function(ne){return $.call(W,ne,ae++)}),te}function B(k){if(k._status===-1){var $=k._result;$=$(),$.then(function(W){(k._status===0||k._status===-1)&&(k._status=1,k._result=W)},function(W){(k._status===0||k._status===-1)&&(k._status=2,k._result=W)}),k._status===-1&&(k._status=0,k._result=$)}if(k._status===1)return k._result.default;throw k._result}var Y=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},J={map:G,forEach:function(k,$,W){G(k,function(){$.apply(this,arguments)},W)},count:function(k){var $=0;return G(k,function(){$++}),$},toArray:function(k){return G(k,function($){return $})||[]},only:function(k){if(!H(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return yt.Activity=g,yt.Children=J,yt.Component=C,yt.Fragment=n,yt.Profiler=i,yt.PureComponent=T,yt.StrictMode=r,yt.Suspense=f,yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,yt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return A.H.useMemoCache(k)}},yt.cache=function(k){return function(){return k.apply(null,arguments)}},yt.cacheSignal=function(){return null},yt.cloneElement=function(k,$,W){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var te=b({},k.props),ae=k.key;if($!=null)for(ne in $.key!==void 0&&(ae=""+$.key),$)!D.call($,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&$.ref===void 0||(te[ne]=$[ne]);var ne=arguments.length-2;if(ne===1)te.children=W;else if(1<ne){for(var ce=Array(ne),Q=0;Q<ne;Q++)ce[Q]=arguments[Q+2];te.children=ce}return L(k.type,ae,te)},yt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},yt.createElement=function(k,$,W){var te,ae={},ne=null;if($!=null)for(te in $.key!==void 0&&(ne=""+$.key),$)D.call($,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ae[te]=$[te]);var ce=arguments.length-2;if(ce===1)ae.children=W;else if(1<ce){for(var Q=Array(ce),de=0;de<ce;de++)Q[de]=arguments[de+2];ae.children=Q}if(k&&k.defaultProps)for(te in ce=k.defaultProps,ce)ae[te]===void 0&&(ae[te]=ce[te]);return L(k,ne,ae)},yt.createRef=function(){return{current:null}},yt.forwardRef=function(k){return{$$typeof:u,render:k}},yt.isValidElement=H,yt.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:B}},yt.memo=function(k,$){return{$$typeof:d,type:k,compare:$===void 0?null:$}},yt.startTransition=function(k){var $=A.T,W={};A.T=W;try{var te=k(),ae=A.S;ae!==null&&ae(W,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(M,Y)}catch(ne){Y(ne)}finally{$!==null&&W.types!==null&&($.types=W.types),A.T=$}},yt.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},yt.use=function(k){return A.H.use(k)},yt.useActionState=function(k,$,W){return A.H.useActionState(k,$,W)},yt.useCallback=function(k,$){return A.H.useCallback(k,$)},yt.useContext=function(k){return A.H.useContext(k)},yt.useDebugValue=function(){},yt.useDeferredValue=function(k,$){return A.H.useDeferredValue(k,$)},yt.useEffect=function(k,$){return A.H.useEffect(k,$)},yt.useEffectEvent=function(k){return A.H.useEffectEvent(k)},yt.useId=function(){return A.H.useId()},yt.useImperativeHandle=function(k,$,W){return A.H.useImperativeHandle(k,$,W)},yt.useInsertionEffect=function(k,$){return A.H.useInsertionEffect(k,$)},yt.useLayoutEffect=function(k,$){return A.H.useLayoutEffect(k,$)},yt.useMemo=function(k,$){return A.H.useMemo(k,$)},yt.useOptimistic=function(k,$){return A.H.useOptimistic(k,$)},yt.useReducer=function(k,$,W){return A.H.useReducer(k,$,W)},yt.useRef=function(k){return A.H.useRef(k)},yt.useState=function(k){return A.H.useState(k)},yt.useSyncExternalStore=function(k,$,W){return A.H.useSyncExternalStore(k,$,W)},yt.useTransition=function(){return A.H.useTransition()},yt.version="19.2.3",yt}var o_;function _s(){return o_||(o_=1,Qy.exports=Fk()),Qy.exports}var S=_s();const fe=Ts(S),PM=LM({__proto__:null,default:fe},[S]);var Jy={exports:{}},Gf={},Zy={exports:{}},e1={};var i_;function zk(){return i_||(i_=1,function(e){function t(P,G){var B=P.length;P.push(G);e:for(;0<B;){var Y=B-1>>>1,J=P[Y];if(0<i(J,G))P[Y]=G,P[B]=J,B=Y;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var G=P[0],B=P.pop();if(B!==G){P[0]=B;e:for(var Y=0,J=P.length,k=J>>>1;Y<k;){var $=2*(Y+1)-1,W=P[$],te=$+1,ae=P[te];if(0>i(W,B))te<J&&0>i(ae,W)?(P[Y]=ae,P[te]=B,Y=te):(P[Y]=W,P[$]=B,Y=$);else if(te<J&&0>i(ae,B))P[Y]=ae,P[te]=B,Y=te;else break e}}return G}function i(P,G){var B=P.sortIndex-G.sortIndex;return B!==0?B:P.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],d=[],p=1,g=null,m=3,v=!1,E=!1,b=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function O(P){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=P)r(d),G.sortIndex=G.expirationTime,t(f,G);else break;G=n(d)}}function _(P){if(b=!1,O(P),!E)if(n(f)!==null)E=!0,M||(M=!0,j());else{var G=n(d);G!==null&&U(_,G.startTime-P)}}var M=!1,A=-1,D=5,L=-1;function N(){return x?!0:!(e.unstable_now()-L<D)}function H(){if(x=!1,M){var P=e.unstable_now();L=P;var G=!0;try{e:{E=!1,b&&(b=!1,R(A),A=-1),v=!0;var B=m;try{t:{for(O(P),g=n(f);g!==null&&!(g.expirationTime>P&&N());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,m=g.priorityLevel;var J=Y(g.expirationTime<=P);if(P=e.unstable_now(),typeof J=="function"){g.callback=J,O(P),G=!0;break t}g===n(f)&&r(f),O(P)}else r(f);g=n(f)}if(g!==null)G=!0;else{var k=n(d);k!==null&&U(_,k.startTime-P),G=!1}}break e}finally{g=null,m=B,v=!1}G=void 0}}finally{G?j():M=!1}}}var j;if(typeof T=="function")j=function(){T(H)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,q=F.port2;F.port1.onmessage=H,j=function(){q.postMessage(null)}}else j=function(){C(H,0)};function U(P,G){A=C(function(){P(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(P){switch(m){case 1:case 2:case 3:var G=3;break;default:G=m}var B=m;m=G;try{return P()}finally{m=B}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(P,G){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var B=m;m=P;try{return G()}finally{m=B}},e.unstable_scheduleCallback=function(P,G,B){var Y=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Y+B:Y):B=Y,P){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=B+J,P={id:p++,callback:G,priorityLevel:P,startTime:B,expirationTime:J,sortIndex:-1},B>Y?(P.sortIndex=B,t(d,P),n(f)===null&&P===n(d)&&(b?(R(A),A=-1):b=!0,U(_,B-Y))):(P.sortIndex=J,t(f,P),E||v||(E=!0,M||(M=!0,j()))),P},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(P){var G=m;return function(){var B=m;m=G;try{return P.apply(this,arguments)}finally{m=B}}}}(e1)),e1}var s_;function Hk(){return s_||(s_=1,Zy.exports=zk()),Zy.exports}var t1={exports:{}},Sr={};var a_;function Bk(){if(a_)return Sr;a_=1;var e=_s();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(f,d,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:f,containerInfo:d,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Sr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Sr.createPortal=function(f,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,p)},Sr.flushSync=function(f){var d=l.T,p=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=p,r.d.f()}},Sr.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},Sr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Sr.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var p=d.as,g=u(p,d.crossOrigin),m=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:m,fetchPriority:v}):p==="script"&&r.d.X(f,{crossOrigin:g,integrity:m,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Sr.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=u(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},Sr.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,g=u(p,d.crossOrigin);r.d.L(f,p,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Sr.preloadModule=function(f,d){if(typeof f=="string")if(d){var p=u(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},Sr.requestFormReset=function(f){r.d.r(f)},Sr.unstable_batchedUpdates=function(f,d){return f(d)},Sr.useFormState=function(f,d,p){return l.H.useFormState(f,d,p)},Sr.useFormStatus=function(){return l.H.useHostTransitionStatus()},Sr.version="19.2.3",Sr}var l_;function kM(){if(l_)return t1.exports;l_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),t1.exports=Bk(),t1.exports}var u_;function Uk(){if(u_)return Gf;u_=1;var e=Hk(),t=_s(),n=kM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,c=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(c=a.return),o=a.return;while(o)}return a.tag===3?c:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function u(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function f(o){if(s(o)!==o)throw Error(r(188))}function d(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var c=o,h=a;;){var y=c.return;if(y===null)break;var w=y.alternate;if(w===null){if(h=y.return,h!==null){c=h;continue}break}if(y.child===w.child){for(w=y.child;w;){if(w===c)return f(y),o;if(w===h)return f(y),a;w=w.sibling}throw Error(r(188))}if(c.return!==h.return)c=y,h=w;else{for(var I=!1,z=y.child;z;){if(z===c){I=!0,c=y,h=w;break}if(z===h){I=!0,h=y,c=w;break}z=z.sibling}if(!I){for(z=w.child;z;){if(z===c){I=!0,c=w,h=y;break}if(z===h){I=!0,h=w,c=y;break}z=z.sibling}if(!I)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?o:a}function p(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=p(o),a!==null)return a;o=o.sibling}return null}var g=Object.assign,m=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function j(o){return o===null||typeof o!="object"?null:(o=H&&o[H]||o["@@iterator"],typeof o=="function"?o:null)}var F=Symbol.for("react.client.reference");function q(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===F?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case C:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case E:return"Portal";case T:return o.displayName||"Context";case R:return(o._context.displayName||"Context")+".Consumer";case O:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case A:return a=o.displayName||null,a!==null?a:q(o.type)||"Memo";case D:a=o._payload,o=o._init;try{return q(o(a))}catch{}}return null}var U=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},Y=[],J=-1;function k(o){return{current:o}}function $(o){0>J||(o.current=Y[J],Y[J]=null,J--)}function W(o,a){J++,Y[J]=o.current,o.current=a}var te=k(null),ae=k(null),ne=k(null),ce=k(null);function Q(o,a){switch(W(ne,a),W(ae,o),W(te,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?wT(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=wT(a),o=RT(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}$(te),W(te,o)}function de(){$(te),$(ae),$(ne)}function ve(o){o.memoizedState!==null&&W(ce,o);var a=te.current,c=RT(a,o.type);a!==c&&(W(ae,o),W(te,c))}function ue(o){ae.current===o&&($(te),$(ae)),ce.current===o&&($(ce),Uf._currentValue=B)}var me,xe;function Ce(o){if(me===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);me=a&&a[1]||"",xe=-1<c.stack.indexOf(`
1
+ var Dk=Object.defineProperty;var ZT=e=>{throw TypeError(e)};var Lk=(e,t,n)=>t in e?Dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qt=(e,t,n)=>Lk(e,typeof t!="symbol"?t+"":t,n),Wy=(e,t,n)=>t.has(e)||ZT("Cannot "+n);var ee=(e,t,n)=>(Wy(e,t,"read from private field"),n?n.call(e):t.get(e)),it=(e,t,n)=>t.has(e)?ZT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Xe=(e,t,n,r)=>(Wy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ot=(e,t,n)=>(Wy(e,t,"access private method"),n);var kp=(e,t,n,r)=>({set _(i){Xe(e,t,i,n)},get _(){return ee(e,t,r)}});(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b66d91e8-596c-4b8d-ace6-f6e4d640e0fa",e._sentryDebugIdIdentifier="sentry-dbid-b66d91e8-596c-4b8d-ace6-f6e4d640e0fa")}catch{}})();function LM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Pk=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Pk.SENTRY_RELEASE={id:"c3a7cd6a399cad5b2d4bf0197e7491fa6c35ecd4"};var e_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ky={exports:{}},qf={};var t_;function kk(){if(t_)return qf;t_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var u in i)u!=="key"&&(s[u]=i[u])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return qf.Fragment=t,qf.jsx=n,qf.jsxs=n,qf}var n_;function Nk(){return n_||(n_=1,Ky.exports=kk()),Ky.exports}var be=Nk(),Qy={exports:{}},yt={};var r_;function Fk(){if(r_)return yt;r_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),m=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=m&&k[m]||k["@@iterator"],typeof k=="function"?k:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function C(k,$,W){this.props=k,this.context=$,this.refs=x,this.updater=W||E}C.prototype.isReactComponent={},C.prototype.setState=function(k,$){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,$,"setState")},C.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function R(){}R.prototype=C.prototype;function T(k,$,W){this.props=k,this.context=$,this.refs=x,this.updater=W||E}var O=T.prototype=new R;O.constructor=T,b(O,C.prototype),O.isPureReactComponent=!0;var _=Array.isArray;function M(){}var A={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function L(k,$,W){var te=W.ref;return{$$typeof:e,type:k,key:$,ref:te!==void 0?te:null,props:W}}function N(k,$){return L(k.type,$,k.props)}function H(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function j(k){var $={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(W){return $[W]})}var F=/\/+/g;function q(k,$){return typeof k=="object"&&k!==null&&k.key!=null?j(""+k.key):$.toString(36)}function U(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(M,M):(k.status="pending",k.then(function($){k.status==="pending"&&(k.status="fulfilled",k.value=$)},function($){k.status==="pending"&&(k.status="rejected",k.reason=$)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function P(k,$,W,te,ae){var ne=typeof k;(ne==="undefined"||ne==="boolean")&&(k=null);var ce=!1;if(k===null)ce=!0;else switch(ne){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(k.$$typeof){case e:case t:ce=!0;break;case p:return ce=k._init,P(ce(k._payload),$,W,te,ae)}}if(ce)return ae=ae(k),ce=te===""?"."+q(k,0):te,_(ae)?(W="",ce!=null&&(W=ce.replace(F,"$&/")+"/"),P(ae,$,W,"",function(ve){return ve})):ae!=null&&(H(ae)&&(ae=N(ae,W+(ae.key==null||k&&k.key===ae.key?"":(""+ae.key).replace(F,"$&/")+"/")+ce)),$.push(ae)),1;ce=0;var Q=te===""?".":te+":";if(_(k))for(var de=0;de<k.length;de++)te=k[de],ne=Q+q(te,de),ce+=P(te,$,W,ne,ae);else if(de=v(k),typeof de=="function")for(k=de.call(k),de=0;!(te=k.next()).done;)te=te.value,ne=Q+q(te,de++),ce+=P(te,$,W,ne,ae);else if(ne==="object"){if(typeof k.then=="function")return P(U(k),$,W,te,ae);throw $=String(k),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return ce}function G(k,$,W){if(k==null)return k;var te=[],ae=0;return P(k,te,"","",function(ne){return $.call(W,ne,ae++)}),te}function B(k){if(k._status===-1){var $=k._result;$=$(),$.then(function(W){(k._status===0||k._status===-1)&&(k._status=1,k._result=W)},function(W){(k._status===0||k._status===-1)&&(k._status=2,k._result=W)}),k._status===-1&&(k._status=0,k._result=$)}if(k._status===1)return k._result.default;throw k._result}var Y=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},J={map:G,forEach:function(k,$,W){G(k,function(){$.apply(this,arguments)},W)},count:function(k){var $=0;return G(k,function(){$++}),$},toArray:function(k){return G(k,function($){return $})||[]},only:function(k){if(!H(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return yt.Activity=g,yt.Children=J,yt.Component=C,yt.Fragment=n,yt.Profiler=i,yt.PureComponent=T,yt.StrictMode=r,yt.Suspense=f,yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,yt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return A.H.useMemoCache(k)}},yt.cache=function(k){return function(){return k.apply(null,arguments)}},yt.cacheSignal=function(){return null},yt.cloneElement=function(k,$,W){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var te=b({},k.props),ae=k.key;if($!=null)for(ne in $.key!==void 0&&(ae=""+$.key),$)!D.call($,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&$.ref===void 0||(te[ne]=$[ne]);var ne=arguments.length-2;if(ne===1)te.children=W;else if(1<ne){for(var ce=Array(ne),Q=0;Q<ne;Q++)ce[Q]=arguments[Q+2];te.children=ce}return L(k.type,ae,te)},yt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},yt.createElement=function(k,$,W){var te,ae={},ne=null;if($!=null)for(te in $.key!==void 0&&(ne=""+$.key),$)D.call($,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ae[te]=$[te]);var ce=arguments.length-2;if(ce===1)ae.children=W;else if(1<ce){for(var Q=Array(ce),de=0;de<ce;de++)Q[de]=arguments[de+2];ae.children=Q}if(k&&k.defaultProps)for(te in ce=k.defaultProps,ce)ae[te]===void 0&&(ae[te]=ce[te]);return L(k,ne,ae)},yt.createRef=function(){return{current:null}},yt.forwardRef=function(k){return{$$typeof:u,render:k}},yt.isValidElement=H,yt.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:B}},yt.memo=function(k,$){return{$$typeof:d,type:k,compare:$===void 0?null:$}},yt.startTransition=function(k){var $=A.T,W={};A.T=W;try{var te=k(),ae=A.S;ae!==null&&ae(W,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(M,Y)}catch(ne){Y(ne)}finally{$!==null&&W.types!==null&&($.types=W.types),A.T=$}},yt.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},yt.use=function(k){return A.H.use(k)},yt.useActionState=function(k,$,W){return A.H.useActionState(k,$,W)},yt.useCallback=function(k,$){return A.H.useCallback(k,$)},yt.useContext=function(k){return A.H.useContext(k)},yt.useDebugValue=function(){},yt.useDeferredValue=function(k,$){return A.H.useDeferredValue(k,$)},yt.useEffect=function(k,$){return A.H.useEffect(k,$)},yt.useEffectEvent=function(k){return A.H.useEffectEvent(k)},yt.useId=function(){return A.H.useId()},yt.useImperativeHandle=function(k,$,W){return A.H.useImperativeHandle(k,$,W)},yt.useInsertionEffect=function(k,$){return A.H.useInsertionEffect(k,$)},yt.useLayoutEffect=function(k,$){return A.H.useLayoutEffect(k,$)},yt.useMemo=function(k,$){return A.H.useMemo(k,$)},yt.useOptimistic=function(k,$){return A.H.useOptimistic(k,$)},yt.useReducer=function(k,$,W){return A.H.useReducer(k,$,W)},yt.useRef=function(k){return A.H.useRef(k)},yt.useState=function(k){return A.H.useState(k)},yt.useSyncExternalStore=function(k,$,W){return A.H.useSyncExternalStore(k,$,W)},yt.useTransition=function(){return A.H.useTransition()},yt.version="19.2.3",yt}var o_;function _s(){return o_||(o_=1,Qy.exports=Fk()),Qy.exports}var S=_s();const fe=Ts(S),PM=LM({__proto__:null,default:fe},[S]);var Jy={exports:{}},Gf={},Zy={exports:{}},e1={};var i_;function zk(){return i_||(i_=1,function(e){function t(P,G){var B=P.length;P.push(G);e:for(;0<B;){var Y=B-1>>>1,J=P[Y];if(0<i(J,G))P[Y]=G,P[B]=J,B=Y;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var G=P[0],B=P.pop();if(B!==G){P[0]=B;e:for(var Y=0,J=P.length,k=J>>>1;Y<k;){var $=2*(Y+1)-1,W=P[$],te=$+1,ae=P[te];if(0>i(W,B))te<J&&0>i(ae,W)?(P[Y]=ae,P[te]=B,Y=te):(P[Y]=W,P[$]=B,Y=$);else if(te<J&&0>i(ae,B))P[Y]=ae,P[te]=B,Y=te;else break e}}return G}function i(P,G){var B=P.sortIndex-G.sortIndex;return B!==0?B:P.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],d=[],p=1,g=null,m=3,v=!1,E=!1,b=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function O(P){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=P)r(d),G.sortIndex=G.expirationTime,t(f,G);else break;G=n(d)}}function _(P){if(b=!1,O(P),!E)if(n(f)!==null)E=!0,M||(M=!0,j());else{var G=n(d);G!==null&&U(_,G.startTime-P)}}var M=!1,A=-1,D=5,L=-1;function N(){return x?!0:!(e.unstable_now()-L<D)}function H(){if(x=!1,M){var P=e.unstable_now();L=P;var G=!0;try{e:{E=!1,b&&(b=!1,R(A),A=-1),v=!0;var B=m;try{t:{for(O(P),g=n(f);g!==null&&!(g.expirationTime>P&&N());){var Y=g.callback;if(typeof Y=="function"){g.callback=null,m=g.priorityLevel;var J=Y(g.expirationTime<=P);if(P=e.unstable_now(),typeof J=="function"){g.callback=J,O(P),G=!0;break t}g===n(f)&&r(f),O(P)}else r(f);g=n(f)}if(g!==null)G=!0;else{var k=n(d);k!==null&&U(_,k.startTime-P),G=!1}}break e}finally{g=null,m=B,v=!1}G=void 0}}finally{G?j():M=!1}}}var j;if(typeof T=="function")j=function(){T(H)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,q=F.port2;F.port1.onmessage=H,j=function(){q.postMessage(null)}}else j=function(){C(H,0)};function U(P,G){A=C(function(){P(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(P){switch(m){case 1:case 2:case 3:var G=3;break;default:G=m}var B=m;m=G;try{return P()}finally{m=B}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(P,G){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var B=m;m=P;try{return G()}finally{m=B}},e.unstable_scheduleCallback=function(P,G,B){var Y=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Y+B:Y):B=Y,P){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=B+J,P={id:p++,callback:G,priorityLevel:P,startTime:B,expirationTime:J,sortIndex:-1},B>Y?(P.sortIndex=B,t(d,P),n(f)===null&&P===n(d)&&(b?(R(A),A=-1):b=!0,U(_,B-Y))):(P.sortIndex=J,t(f,P),E||v||(E=!0,M||(M=!0,j()))),P},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(P){var G=m;return function(){var B=m;m=G;try{return P.apply(this,arguments)}finally{m=B}}}}(e1)),e1}var s_;function Hk(){return s_||(s_=1,Zy.exports=zk()),Zy.exports}var t1={exports:{}},Sr={};var a_;function Bk(){if(a_)return Sr;a_=1;var e=_s();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(f,d,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:f,containerInfo:d,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Sr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Sr.createPortal=function(f,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,p)},Sr.flushSync=function(f){var d=l.T,p=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=p,r.d.f()}},Sr.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},Sr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Sr.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var p=d.as,g=u(p,d.crossOrigin),m=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:m,fetchPriority:v}):p==="script"&&r.d.X(f,{crossOrigin:g,integrity:m,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Sr.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=u(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},Sr.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,g=u(p,d.crossOrigin);r.d.L(f,p,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Sr.preloadModule=function(f,d){if(typeof f=="string")if(d){var p=u(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},Sr.requestFormReset=function(f){r.d.r(f)},Sr.unstable_batchedUpdates=function(f,d){return f(d)},Sr.useFormState=function(f,d,p){return l.H.useFormState(f,d,p)},Sr.useFormStatus=function(){return l.H.useHostTransitionStatus()},Sr.version="19.2.3",Sr}var l_;function kM(){if(l_)return t1.exports;l_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),t1.exports=Bk(),t1.exports}var u_;function Uk(){if(u_)return Gf;u_=1;var e=Hk(),t=_s(),n=kM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,c=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(c=a.return),o=a.return;while(o)}return a.tag===3?c:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function u(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function f(o){if(s(o)!==o)throw Error(r(188))}function d(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var c=o,h=a;;){var y=c.return;if(y===null)break;var w=y.alternate;if(w===null){if(h=y.return,h!==null){c=h;continue}break}if(y.child===w.child){for(w=y.child;w;){if(w===c)return f(y),o;if(w===h)return f(y),a;w=w.sibling}throw Error(r(188))}if(c.return!==h.return)c=y,h=w;else{for(var I=!1,z=y.child;z;){if(z===c){I=!0,c=y,h=w;break}if(z===h){I=!0,h=y,c=w;break}z=z.sibling}if(!I){for(z=w.child;z;){if(z===c){I=!0,c=w,h=y;break}if(z===h){I=!0,h=w,c=y;break}z=z.sibling}if(!I)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?o:a}function p(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=p(o),a!==null)return a;o=o.sibling}return null}var g=Object.assign,m=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function j(o){return o===null||typeof o!="object"?null:(o=H&&o[H]||o["@@iterator"],typeof o=="function"?o:null)}var F=Symbol.for("react.client.reference");function q(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===F?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case C:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case E:return"Portal";case T:return o.displayName||"Context";case R:return(o._context.displayName||"Context")+".Consumer";case O:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case A:return a=o.displayName||null,a!==null?a:q(o.type)||"Memo";case D:a=o._payload,o=o._init;try{return q(o(a))}catch{}}return null}var U=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},Y=[],J=-1;function k(o){return{current:o}}function $(o){0>J||(o.current=Y[J],Y[J]=null,J--)}function W(o,a){J++,Y[J]=o.current,o.current=a}var te=k(null),ae=k(null),ne=k(null),ce=k(null);function Q(o,a){switch(W(ne,a),W(ae,o),W(te,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?wT(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=wT(a),o=RT(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}$(te),W(te,o)}function de(){$(te),$(ae),$(ne)}function ve(o){o.memoizedState!==null&&W(ce,o);var a=te.current,c=RT(a,o.type);a!==c&&(W(ae,o),W(te,c))}function ue(o){ae.current===o&&($(te),$(ae)),ce.current===o&&($(ce),Uf._currentValue=B)}var me,xe;function Ce(o){if(me===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);me=a&&a[1]||"",xe=-1<c.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
3
3
  `+me+o+xe}var Ae=!1;function Se(o,a){if(!o||Ae)return"";Ae=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(Re){var ye=Re}Reflect.construct(o,[],Me)}else{try{Me.call()}catch(Re){ye=Re}o.call(Me.prototype)}}else{try{throw Error()}catch(Re){ye=Re}(Me=o())&&typeof Me.catch=="function"&&Me.catch(function(){})}}catch(Re){if(Re&&ye&&typeof Re.stack=="string")return[Re.stack,ye.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),I=w[0],z=w[1];if(I&&z){var K=I.split(`
4
4
  `),ge=z.split(`
@@ -8,16 +8,16 @@ Error generating stack: `+h.message+`
8
8
  `+h.stack}}var De=Object.prototype.hasOwnProperty,V=e.unstable_scheduleCallback,X=e.unstable_cancelCallback,Z=e.unstable_shouldYield,ie=e.unstable_requestPaint,se=e.unstable_now,re=e.unstable_getCurrentPriorityLevel,Ie=e.unstable_ImmediatePriority,Ue=e.unstable_UserBlockingPriority,ke=e.unstable_NormalPriority,Ge=e.unstable_LowPriority,nt=e.unstable_IdlePriority,rt=e.log,It=e.unstable_setDisableYieldValue,st=null,he=null;function He(o){if(typeof rt=="function"&&It(o),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(st,o)}catch{}}var ze=Math.clz32?Math.clz32:et,$e=Math.log,Ze=Math.LN2;function et(o){return o>>>=0,o===0?32:31-($e(o)/Ze|0)|0}var ft=256,Yt=262144,ot=4194304;function Et(o){var a=o&42;if(a!==0)return a;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function dt(o,a,c){var h=o.pendingLanes;if(h===0)return 0;var y=0,w=o.suspendedLanes,I=o.pingedLanes;o=o.warmLanes;var z=h&134217727;return z!==0?(h=z&~w,h!==0?y=Et(h):(I&=z,I!==0?y=Et(I):c||(c=z&~o,c!==0&&(y=Et(c))))):(z=h&~w,z!==0?y=Et(z):I!==0?y=Et(I):c||(c=h&~o,c!==0&&(y=Et(c)))),y===0?0:a!==0&&a!==y&&(a&w)===0&&(w=y&-y,c=a&-a,w>=c||w===32&&(c&4194048)!==0)?a:y}function Bt(o,a){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&a)===0}function an(o,a){switch(o){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var o=ot;return ot<<=1,(ot&62914560)===0&&(ot=4194304),o}function At(o){for(var a=[],c=0;31>c;c++)a.push(o);return a}function tn(o,a){o.pendingLanes|=a,a!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ut(o,a,c,h,y,w){var I=o.pendingLanes;o.pendingLanes=c,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=c,o.entangledLanes&=c,o.errorRecoveryDisabledLanes&=c,o.shellSuspendCounter=0;var z=o.entanglements,K=o.expirationTimes,ge=o.hiddenUpdates;for(c=I&~c;0<c;){var _e=31-ze(c),Me=1<<_e;z[_e]=0,K[_e]=-1;var ye=ge[_e];if(ye!==null)for(ge[_e]=null,_e=0;_e<ye.length;_e++){var Re=ye[_e];Re!==null&&(Re.lane&=-536870913)}c&=~Me}h!==0&&ln(o,h,0),w!==0&&y===0&&o.tag!==0&&(o.suspendedLanes|=w&~(I&~a))}function ln(o,a,c){o.pendingLanes|=a,o.suspendedLanes&=~a;var h=31-ze(a);o.entangledLanes|=a,o.entanglements[h]=o.entanglements[h]|1073741824|c&261930}function yn(o,a){var c=o.entangledLanes|=a;for(o=o.entanglements;c;){var h=31-ze(c),y=1<<h;y&a|o[h]&a&&(o[h]|=a),c&=~y}}function mn(o,a){var c=a&-a;return c=(c&42)!==0?1:dr(c),(c&(o.suspendedLanes|a))!==0?0:c}function dr(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Fr(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function $n(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:GT(o.type))}function io(o,a){var c=G.p;try{return G.p=o,a()}finally{G.p=c}}var zr=Math.random().toString(36).slice(2),Zn="__reactFiber$"+zr,hr="__reactProps$"+zr,ji="__reactContainer$"+zr,Gl="__reactEvents$"+zr,EL="__reactListeners$"+zr,wL="__reactHandles$"+zr,uR="__reactResources$"+zr,tf="__reactMarker$"+zr;function U0(o){delete o[Zn],delete o[hr],delete o[Gl],delete o[EL],delete o[wL]}function Yl(o){var a=o[Zn];if(a)return a;for(var c=o.parentNode;c;){if(a=c[ji]||c[Zn]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(o=MT(o);o!==null;){if(c=o[Zn])return c;o=MT(o)}return a}o=c,c=o.parentNode}return null}function Xl(o){if(o=o[Zn]||o[ji]){var a=o.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return o}return null}function nf(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o.stateNode;throw Error(r(33))}function Wl(o){var a=o[uR];return a||(a=o[uR]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function sr(o){o[tf]=!0}var cR=new Set,fR={};function Ha(o,a){Kl(o,a),Kl(o+"Capture",a)}function Kl(o,a){for(fR[o]=a,o=0;o<a.length;o++)cR.add(a[o])}var RL=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dR={},hR={};function xL(o){return De.call(hR,o)?!0:De.call(dR,o)?!1:RL.test(o)?hR[o]=!0:(dR[o]=!0,!1)}function Rh(o,a,c){if(xL(a))if(c===null)o.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":o.removeAttribute(a);return;case"boolean":var h=a.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){o.removeAttribute(a);return}}o.setAttribute(a,""+c)}}function xh(o,a,c){if(c===null)o.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(a);return}o.setAttribute(a,""+c)}}function $i(o,a,c,h){if(h===null)o.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttributeNS(a,c,""+h)}}function xo(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function pR(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function CL(o,a,c){var h=Object.getOwnPropertyDescriptor(o.constructor.prototype,a);if(!o.hasOwnProperty(a)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var y=h.get,w=h.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return y.call(this)},set:function(I){c=""+I,w.call(this,I)}}),Object.defineProperty(o,a,{enumerable:h.enumerable}),{getValue:function(){return c},setValue:function(I){c=""+I},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function V0(o){if(!o._valueTracker){var a=pR(o)?"checked":"value";o._valueTracker=CL(o,a,""+o[a])}}function gR(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var c=a.getValue(),h="";return o&&(h=pR(o)?o.checked?"true":"false":o.value),o=h,o!==c?(a.setValue(o),!0):!1}function Ch(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var TL=/[\n"\\]/g;function Co(o){return o.replace(TL,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function j0(o,a,c,h,y,w,I,z){o.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?o.type=I:o.removeAttribute("type"),a!=null?I==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+xo(a)):o.value!==""+xo(a)&&(o.value=""+xo(a)):I!=="submit"&&I!=="reset"||o.removeAttribute("value"),a!=null?$0(o,I,xo(a)):c!=null?$0(o,I,xo(c)):h!=null&&o.removeAttribute("value"),y==null&&w!=null&&(o.defaultChecked=!!w),y!=null&&(o.checked=y&&typeof y!="function"&&typeof y!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?o.name=""+xo(z):o.removeAttribute("name")}function mR(o,a,c,h,y,w,I,z){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(o.type=w),a!=null||c!=null){if(!(w!=="submit"&&w!=="reset"||a!=null)){V0(o);return}c=c!=null?""+xo(c):"",a=a!=null?""+xo(a):c,z||a===o.value||(o.value=a),o.defaultValue=a}h=h??y,h=typeof h!="function"&&typeof h!="symbol"&&!!h,o.checked=z?o.checked:!!h,o.defaultChecked=!!h,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(o.name=I),V0(o)}function $0(o,a,c){a==="number"&&Ch(o.ownerDocument)===o||o.defaultValue===""+c||(o.defaultValue=""+c)}function Ql(o,a,c,h){if(o=o.options,a){a={};for(var y=0;y<c.length;y++)a["$"+c[y]]=!0;for(c=0;c<o.length;c++)y=a.hasOwnProperty("$"+o[c].value),o[c].selected!==y&&(o[c].selected=y),y&&h&&(o[c].defaultSelected=!0)}else{for(c=""+xo(c),a=null,y=0;y<o.length;y++){if(o[y].value===c){o[y].selected=!0,h&&(o[y].defaultSelected=!0);return}a!==null||o[y].disabled||(a=o[y])}a!==null&&(a.selected=!0)}}function vR(o,a,c){if(a!=null&&(a=""+xo(a),a!==o.value&&(o.value=a),c==null)){o.defaultValue!==a&&(o.defaultValue=a);return}o.defaultValue=c!=null?""+xo(c):""}function yR(o,a,c,h){if(a==null){if(h!=null){if(c!=null)throw Error(r(92));if(U(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),a=c}c=xo(a),o.defaultValue=c,h=o.textContent,h===c&&h!==""&&h!==null&&(o.value=h),V0(o)}function Jl(o,a){if(a){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=a;return}}o.textContent=a}var _L=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function bR(o,a,c){var h=a.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?o.setProperty(a,""):a==="float"?o.cssFloat="":o[a]="":h?o.setProperty(a,c):typeof c!="number"||c===0||_L.has(a)?a==="float"?o.cssFloat=c:o[a]=(""+c).trim():o[a]=c+"px"}function SR(o,a,c){if(a!=null&&typeof a!="object")throw Error(r(62));if(o=o.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||a!=null&&a.hasOwnProperty(h)||(h.indexOf("--")===0?o.setProperty(h,""):h==="float"?o.cssFloat="":o[h]="");for(var y in a)h=a[y],a.hasOwnProperty(y)&&c[y]!==h&&bR(o,y,h)}else for(var w in a)a.hasOwnProperty(w)&&bR(o,w,a[w])}function q0(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var AL=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),OL=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Th(o){return OL.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function qi(){}var G0=null;function Y0(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Zl=null,eu=null;function ER(o){var a=Xl(o);if(a&&(o=a.stateNode)){var c=o[hr]||null;e:switch(o=a.stateNode,a.type){case"input":if(j0(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),a=c.name,c.type==="radio"&&a!=null){for(c=o;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Co(""+a)+'"][type="radio"]'),a=0;a<c.length;a++){var h=c[a];if(h!==o&&h.form===o.form){var y=h[hr]||null;if(!y)throw Error(r(90));j0(h,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(a=0;a<c.length;a++)h=c[a],h.form===o.form&&gR(h)}break e;case"textarea":vR(o,c.value,c.defaultValue);break e;case"select":a=c.value,a!=null&&Ql(o,!!c.multiple,a,!1)}}}var X0=!1;function wR(o,a,c){if(X0)return o(a,c);X0=!0;try{var h=o(a);return h}finally{if(X0=!1,(Zl!==null||eu!==null)&&(hp(),Zl&&(a=Zl,o=eu,eu=Zl=null,ER(a),o)))for(a=0;a<o.length;a++)ER(o[a])}}function rf(o,a){var c=o.stateNode;if(c===null)return null;var h=c[hr]||null;if(h===null)return null;c=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(o=o.type,h=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!h;break e;default:o=!1}if(o)return null;if(c&&typeof c!="function")throw Error(r(231,a,typeof c));return c}var Gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W0=!1;if(Gi)try{var of={};Object.defineProperty(of,"passive",{get:function(){W0=!0}}),window.addEventListener("test",of,of),window.removeEventListener("test",of,of)}catch{W0=!1}var Is=null,K0=null,_h=null;function RR(){if(_h)return _h;var o,a=K0,c=a.length,h,y="value"in Is?Is.value:Is.textContent,w=y.length;for(o=0;o<c&&a[o]===y[o];o++);var I=c-o;for(h=1;h<=I&&a[c-h]===y[w-h];h++);return _h=y.slice(o,1<h?1-h:void 0)}function Ah(o){var a=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function Oh(){return!0}function xR(){return!1}function Hr(o){function a(c,h,y,w,I){this._reactName=c,this._targetInst=y,this.type=h,this.nativeEvent=w,this.target=I,this.currentTarget=null;for(var z in o)o.hasOwnProperty(z)&&(c=o[z],this[z]=c?c(w):w[z]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Oh:xR,this.isPropagationStopped=xR,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Oh)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Oh)},persist:function(){},isPersistent:Oh}),a}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mh=Hr(Ba),sf=g({},Ba,{view:0,detail:0}),ML=Hr(sf),Q0,J0,af,Ih=g({},sf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ev,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==af&&(af&&o.type==="mousemove"?(Q0=o.screenX-af.screenX,J0=o.screenY-af.screenY):J0=Q0=0,af=o),Q0)},movementY:function(o){return"movementY"in o?o.movementY:J0}}),CR=Hr(Ih),IL=g({},Ih,{dataTransfer:0}),DL=Hr(IL),LL=g({},sf,{relatedTarget:0}),Z0=Hr(LL),PL=g({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),kL=Hr(PL),NL=g({},Ba,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),FL=Hr(NL),zL=g({},Ba,{data:0}),TR=Hr(zL),HL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BL={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},UL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VL(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=UL[o])?!!a[o]:!1}function ev(){return VL}var jL=g({},sf,{key:function(o){if(o.key){var a=HL[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=Ah(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?BL[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ev,charCode:function(o){return o.type==="keypress"?Ah(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Ah(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),$L=Hr(jL),qL=g({},Ih,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_R=Hr(qL),GL=g({},sf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ev}),YL=Hr(GL),XL=g({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),WL=Hr(XL),KL=g({},Ih,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),QL=Hr(KL),JL=g({},Ba,{newState:0,oldState:0}),ZL=Hr(JL),eP=[9,13,27,32],tv=Gi&&"CompositionEvent"in window,lf=null;Gi&&"documentMode"in document&&(lf=document.documentMode);var tP=Gi&&"TextEvent"in window&&!lf,AR=Gi&&(!tv||lf&&8<lf&&11>=lf),OR=" ",MR=!1;function IR(o,a){switch(o){case"keyup":return eP.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DR(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var tu=!1;function nP(o,a){switch(o){case"compositionend":return DR(a);case"keypress":return a.which!==32?null:(MR=!0,OR);case"textInput":return o=a.data,o===OR&&MR?null:o;default:return null}}function rP(o,a){if(tu)return o==="compositionend"||!tv&&IR(o,a)?(o=RR(),_h=K0=Is=null,tu=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return AR&&a.locale!=="ko"?null:a.data;default:return null}}var oP={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function LR(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!oP[o.type]:a==="textarea"}function PR(o,a,c,h){Zl?eu?eu.push(h):eu=[h]:Zl=h,a=Sp(a,"onChange"),0<a.length&&(c=new Mh("onChange","change",null,c,h),o.push({event:c,listeners:a}))}var uf=null,cf=null;function iP(o){mT(o,0)}function Dh(o){var a=nf(o);if(gR(a))return o}function kR(o,a){if(o==="change")return a}var NR=!1;if(Gi){var nv;if(Gi){var rv="oninput"in document;if(!rv){var FR=document.createElement("div");FR.setAttribute("oninput","return;"),rv=typeof FR.oninput=="function"}nv=rv}else nv=!1;NR=nv&&(!document.documentMode||9<document.documentMode)}function zR(){uf&&(uf.detachEvent("onpropertychange",HR),cf=uf=null)}function HR(o){if(o.propertyName==="value"&&Dh(cf)){var a=[];PR(a,cf,o,Y0(o)),wR(iP,a)}}function sP(o,a,c){o==="focusin"?(zR(),uf=a,cf=c,uf.attachEvent("onpropertychange",HR)):o==="focusout"&&zR()}function aP(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Dh(cf)}function lP(o,a){if(o==="click")return Dh(a)}function uP(o,a){if(o==="input"||o==="change")return Dh(a)}function cP(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var so=typeof Object.is=="function"?Object.is:cP;function ff(o,a){if(so(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var c=Object.keys(o),h=Object.keys(a);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var y=c[h];if(!De.call(a,y)||!so(o[y],a[y]))return!1}return!0}function BR(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function UR(o,a){var c=BR(o);o=0;for(var h;c;){if(c.nodeType===3){if(h=o+c.textContent.length,o<=a&&h>=a)return{node:c,offset:a-o};o=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=BR(c)}}function VR(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?VR(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function jR(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var a=Ch(o.document);a instanceof o.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)o=a.contentWindow;else break;a=Ch(o.document)}return a}function ov(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}var fP=Gi&&"documentMode"in document&&11>=document.documentMode,nu=null,iv=null,df=null,sv=!1;function $R(o,a,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;sv||nu==null||nu!==Ch(h)||(h=nu,"selectionStart"in h&&ov(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),df&&ff(df,h)||(df=h,h=Sp(iv,"onSelect"),0<h.length&&(a=new Mh("onSelect","select",null,a,c),o.push({event:a,listeners:h}),a.target=nu)))}function Ua(o,a){var c={};return c[o.toLowerCase()]=a.toLowerCase(),c["Webkit"+o]="webkit"+a,c["Moz"+o]="moz"+a,c}var ru={animationend:Ua("Animation","AnimationEnd"),animationiteration:Ua("Animation","AnimationIteration"),animationstart:Ua("Animation","AnimationStart"),transitionrun:Ua("Transition","TransitionRun"),transitionstart:Ua("Transition","TransitionStart"),transitioncancel:Ua("Transition","TransitionCancel"),transitionend:Ua("Transition","TransitionEnd")},av={},qR={};Gi&&(qR=document.createElement("div").style,"AnimationEvent"in window||(delete ru.animationend.animation,delete ru.animationiteration.animation,delete ru.animationstart.animation),"TransitionEvent"in window||delete ru.transitionend.transition);function Va(o){if(av[o])return av[o];if(!ru[o])return o;var a=ru[o],c;for(c in a)if(a.hasOwnProperty(c)&&c in qR)return av[o]=a[c];return o}var GR=Va("animationend"),YR=Va("animationiteration"),XR=Va("animationstart"),dP=Va("transitionrun"),hP=Va("transitionstart"),pP=Va("transitioncancel"),WR=Va("transitionend"),KR=new Map,lv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");lv.push("scrollEnd");function Yo(o,a){KR.set(o,a),Ha(a,[o])}var Lh=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},To=[],ou=0,uv=0;function Ph(){for(var o=ou,a=uv=ou=0;a<o;){var c=To[a];To[a++]=null;var h=To[a];To[a++]=null;var y=To[a];To[a++]=null;var w=To[a];if(To[a++]=null,h!==null&&y!==null){var I=h.pending;I===null?y.next=y:(y.next=I.next,I.next=y),h.pending=y}w!==0&&QR(c,y,w)}}function kh(o,a,c,h){To[ou++]=o,To[ou++]=a,To[ou++]=c,To[ou++]=h,uv|=h,o.lanes|=h,o=o.alternate,o!==null&&(o.lanes|=h)}function cv(o,a,c,h){return kh(o,a,c,h),Nh(o)}function ja(o,a){return kh(o,null,null,a),Nh(o)}function QR(o,a,c){o.lanes|=c;var h=o.alternate;h!==null&&(h.lanes|=c);for(var y=!1,w=o.return;w!==null;)w.childLanes|=c,h=w.alternate,h!==null&&(h.childLanes|=c),w.tag===22&&(o=w.stateNode,o===null||o._visibility&1||(y=!0)),o=w,w=w.return;return o.tag===3?(w=o.stateNode,y&&a!==null&&(y=31-ze(c),o=w.hiddenUpdates,h=o[y],h===null?o[y]=[a]:h.push(a),a.lane=c|536870912),w):null}function Nh(o){if(50<Pf)throw Pf=0,by=null,Error(r(185));for(var a=o.return;a!==null;)o=a,a=o.return;return o.tag===3?o.stateNode:null}var iu={};function gP(o,a,c,h){this.tag=o,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ao(o,a,c,h){return new gP(o,a,c,h)}function fv(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Yi(o,a){var c=o.alternate;return c===null?(c=ao(o.tag,a,o.key,o.mode),c.elementType=o.elementType,c.type=o.type,c.stateNode=o.stateNode,c.alternate=o,o.alternate=c):(c.pendingProps=a,c.type=o.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=o.flags&65011712,c.childLanes=o.childLanes,c.lanes=o.lanes,c.child=o.child,c.memoizedProps=o.memoizedProps,c.memoizedState=o.memoizedState,c.updateQueue=o.updateQueue,a=o.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=o.sibling,c.index=o.index,c.ref=o.ref,c.refCleanup=o.refCleanup,c}function JR(o,a){o.flags&=65011714;var c=o.alternate;return c===null?(o.childLanes=0,o.lanes=a,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=c.childLanes,o.lanes=c.lanes,o.child=c.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=c.memoizedProps,o.memoizedState=c.memoizedState,o.updateQueue=c.updateQueue,o.type=c.type,a=c.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),o}function Fh(o,a,c,h,y,w){var I=0;if(h=o,typeof o=="function")fv(o)&&(I=1);else if(typeof o=="string")I=Sk(o,c,te.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case L:return o=ao(31,c,a,y),o.elementType=L,o.lanes=w,o;case b:return $a(c.children,y,w,a);case x:I=8,y|=24;break;case C:return o=ao(12,c,a,y|2),o.elementType=C,o.lanes=w,o;case _:return o=ao(13,c,a,y),o.elementType=_,o.lanes=w,o;case M:return o=ao(19,c,a,y),o.elementType=M,o.lanes=w,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case T:I=10;break e;case R:I=9;break e;case O:I=11;break e;case A:I=14;break e;case D:I=16,h=null;break e}I=29,c=Error(r(130,o===null?"null":typeof o,"")),h=null}return a=ao(I,c,a,y),a.elementType=o,a.type=h,a.lanes=w,a}function $a(o,a,c,h){return o=ao(7,o,h,a),o.lanes=c,o}function dv(o,a,c){return o=ao(6,o,null,a),o.lanes=c,o}function ZR(o){var a=ao(18,null,null,0);return a.stateNode=o,a}function hv(o,a,c){return a=ao(4,o.children!==null?o.children:[],o.key,a),a.lanes=c,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}var ex=new WeakMap;function _o(o,a){if(typeof o=="object"&&o!==null){var c=ex.get(o);return c!==void 0?c:(a={value:o,source:a,stack:we(a)},ex.set(o,a),a)}return{value:o,source:a,stack:we(a)}}var su=[],au=0,zh=null,hf=0,Ao=[],Oo=0,Ds=null,hi=1,pi="";function Xi(o,a){su[au++]=hf,su[au++]=zh,zh=o,hf=a}function tx(o,a,c){Ao[Oo++]=hi,Ao[Oo++]=pi,Ao[Oo++]=Ds,Ds=o;var h=hi;o=pi;var y=32-ze(h)-1;h&=~(1<<y),c+=1;var w=32-ze(a)+y;if(30<w){var I=y-y%5;w=(h&(1<<I)-1).toString(32),h>>=I,y-=I,hi=1<<32-ze(a)+y|c<<y|h,pi=w+o}else hi=1<<w|c<<y|h,pi=o}function pv(o){o.return!==null&&(Xi(o,1),tx(o,1,0))}function gv(o){for(;o===zh;)zh=su[--au],su[au]=null,hf=su[--au],su[au]=null;for(;o===Ds;)Ds=Ao[--Oo],Ao[Oo]=null,pi=Ao[--Oo],Ao[Oo]=null,hi=Ao[--Oo],Ao[Oo]=null}function nx(o,a){Ao[Oo++]=hi,Ao[Oo++]=pi,Ao[Oo++]=Ds,hi=a.id,pi=a.overflow,Ds=o}var pr=null,bn=null,Ft=!1,Ls=null,Mo=!1,mv=Error(r(519));function Ps(o){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pf(_o(a,o)),mv}function rx(o){var a=o.stateNode,c=o.type,h=o.memoizedProps;switch(a[Zn]=o,a[hr]=h,c){case"dialog":Pt("cancel",a),Pt("close",a);break;case"iframe":case"object":case"embed":Pt("load",a);break;case"video":case"audio":for(c=0;c<Nf.length;c++)Pt(Nf[c],a);break;case"source":Pt("error",a);break;case"img":case"image":case"link":Pt("error",a),Pt("load",a);break;case"details":Pt("toggle",a);break;case"input":Pt("invalid",a),mR(a,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Pt("invalid",a);break;case"textarea":Pt("invalid",a),yR(a,h.value,h.defaultValue,h.children)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||a.textContent===""+c||h.suppressHydrationWarning===!0||ST(a.textContent,c)?(h.popover!=null&&(Pt("beforetoggle",a),Pt("toggle",a)),h.onScroll!=null&&Pt("scroll",a),h.onScrollEnd!=null&&Pt("scrollend",a),h.onClick!=null&&(a.onclick=qi),a=!0):a=!1,a||Ps(o,!0)}function ox(o){for(pr=o.return;pr;)switch(pr.tag){case 5:case 31:case 13:Mo=!1;return;case 27:case 3:Mo=!0;return;default:pr=pr.return}}function lu(o){if(o!==pr)return!1;if(!Ft)return ox(o),Ft=!0,!1;var a=o.tag,c;if((c=a!==3&&a!==27)&&((c=a===5)&&(c=o.type,c=!(c!=="form"&&c!=="button")||Py(o.type,o.memoizedProps)),c=!c),c&&bn&&Ps(o),ox(o),a===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));bn=OT(o)}else if(a===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));bn=OT(o)}else a===27?(a=bn,Xs(o.type)?(o=Hy,Hy=null,bn=o):bn=a):bn=pr?Do(o.stateNode.nextSibling):null;return!0}function qa(){bn=pr=null,Ft=!1}function vv(){var o=Ls;return o!==null&&(jr===null?jr=o:jr.push.apply(jr,o),Ls=null),o}function pf(o){Ls===null?Ls=[o]:Ls.push(o)}var yv=k(null),Ga=null,Wi=null;function ks(o,a,c){W(yv,a._currentValue),a._currentValue=c}function Ki(o){o._currentValue=yv.current,$(yv)}function bv(o,a,c){for(;o!==null;){var h=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),o===c)break;o=o.return}}function Sv(o,a,c,h){var y=o.child;for(y!==null&&(y.return=o);y!==null;){var w=y.dependencies;if(w!==null){var I=y.child;w=w.firstContext;e:for(;w!==null;){var z=w;w=y;for(var K=0;K<a.length;K++)if(z.context===a[K]){w.lanes|=c,z=w.alternate,z!==null&&(z.lanes|=c),bv(w.return,c,o),h||(I=null);break e}w=z.next}}else if(y.tag===18){if(I=y.return,I===null)throw Error(r(341));I.lanes|=c,w=I.alternate,w!==null&&(w.lanes|=c),bv(I,c,o),I=null}else I=y.child;if(I!==null)I.return=y;else for(I=y;I!==null;){if(I===o){I=null;break}if(y=I.sibling,y!==null){y.return=I.return,I=y;break}I=I.return}y=I}}function uu(o,a,c,h){o=null;for(var y=a,w=!1;y!==null;){if(!w){if((y.flags&524288)!==0)w=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var I=y.alternate;if(I===null)throw Error(r(387));if(I=I.memoizedProps,I!==null){var z=y.type;so(y.pendingProps.value,I.value)||(o!==null?o.push(z):o=[z])}}else if(y===ce.current){if(I=y.alternate,I===null)throw Error(r(387));I.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(o!==null?o.push(Uf):o=[Uf])}y=y.return}o!==null&&Sv(a,o,c,h),a.flags|=262144}function Hh(o){for(o=o.firstContext;o!==null;){if(!so(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ya(o){Ga=o,Wi=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function gr(o){return ix(Ga,o)}function Bh(o,a){return Ga===null&&Ya(o),ix(o,a)}function ix(o,a){var c=a._currentValue;if(a={context:a,memoizedValue:c,next:null},Wi===null){if(o===null)throw Error(r(308));Wi=a,o.dependencies={lanes:0,firstContext:a},o.flags|=524288}else Wi=Wi.next=a;return c}var mP=typeof AbortController<"u"?AbortController:function(){var o=[],a=this.signal={aborted:!1,addEventListener:function(c,h){o.push(h)}};this.abort=function(){a.aborted=!0,o.forEach(function(c){return c()})}},vP=e.unstable_scheduleCallback,yP=e.unstable_NormalPriority,qn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ev(){return{controller:new mP,data:new Map,refCount:0}}function gf(o){o.refCount--,o.refCount===0&&vP(yP,function(){o.controller.abort()})}var mf=null,wv=0,cu=0,fu=null;function bP(o,a){if(mf===null){var c=mf=[];wv=0,cu=Cy(),fu={status:"pending",value:void 0,then:function(h){c.push(h)}}}return wv++,a.then(sx,sx),a}function sx(){if(--wv===0&&mf!==null){fu!==null&&(fu.status="fulfilled");var o=mf;mf=null,cu=0,fu=null;for(var a=0;a<o.length;a++)(0,o[a])()}}function SP(o,a){var c=[],h={status:"pending",value:null,reason:null,then:function(y){c.push(y)}};return o.then(function(){h.status="fulfilled",h.value=a;for(var y=0;y<c.length;y++)(0,c[y])(a)},function(y){for(h.status="rejected",h.reason=y,y=0;y<c.length;y++)(0,c[y])(void 0)}),h}var ax=P.S;P.S=function(o,a){$C=se(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&bP(o,a),ax!==null&&ax(o,a)};var Xa=k(null);function Rv(){var o=Xa.current;return o!==null?o:gn.pooledCache}function Uh(o,a){a===null?W(Xa,Xa.current):W(Xa,a.pool)}function lx(){var o=Rv();return o===null?null:{parent:qn._currentValue,pool:o}}var du=Error(r(460)),xv=Error(r(474)),Vh=Error(r(542)),jh={then:function(){}};function ux(o){return o=o.status,o==="fulfilled"||o==="rejected"}function cx(o,a,c){switch(c=o[c],c===void 0?o.push(a):c!==a&&(a.then(qi,qi),a=c),a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,dx(o),o;default:if(typeof a.status=="string")a.then(qi,qi);else{if(o=gn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=a,o.status="pending",o.then(function(h){if(a.status==="pending"){var y=a;y.status="fulfilled",y.value=h}},function(h){if(a.status==="pending"){var y=a;y.status="rejected",y.reason=h}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,dx(o),o}throw Ka=a,du}}function Wa(o){try{var a=o._init;return a(o._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Ka=c,du):c}}var Ka=null;function fx(){if(Ka===null)throw Error(r(459));var o=Ka;return Ka=null,o}function dx(o){if(o===du||o===Vh)throw Error(r(483))}var hu=null,vf=0;function $h(o){var a=vf;return vf+=1,hu===null&&(hu=[]),cx(hu,o,a)}function yf(o,a){a=a.props.ref,o.ref=a!==void 0?a:null}function qh(o,a){throw a.$$typeof===m?Error(r(525)):(o=Object.prototype.toString.call(a),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o)))}function hx(o){function a(le,oe){if(o){var pe=le.deletions;pe===null?(le.deletions=[oe],le.flags|=16):pe.push(oe)}}function c(le,oe){if(!o)return null;for(;oe!==null;)a(le,oe),oe=oe.sibling;return null}function h(le){for(var oe=new Map;le!==null;)le.key!==null?oe.set(le.key,le):oe.set(le.index,le),le=le.sibling;return oe}function y(le,oe){return le=Yi(le,oe),le.index=0,le.sibling=null,le}function w(le,oe,pe){return le.index=pe,o?(pe=le.alternate,pe!==null?(pe=pe.index,pe<oe?(le.flags|=67108866,oe):pe):(le.flags|=67108866,oe)):(le.flags|=1048576,oe)}function I(le){return o&&le.alternate===null&&(le.flags|=67108866),le}function z(le,oe,pe,Oe){return oe===null||oe.tag!==6?(oe=dv(pe,le.mode,Oe),oe.return=le,oe):(oe=y(oe,pe),oe.return=le,oe)}function K(le,oe,pe,Oe){var tt=pe.type;return tt===b?_e(le,oe,pe.props.children,Oe,pe.key):oe!==null&&(oe.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===D&&Wa(tt)===oe.type)?(oe=y(oe,pe.props),yf(oe,pe),oe.return=le,oe):(oe=Fh(pe.type,pe.key,pe.props,null,le.mode,Oe),yf(oe,pe),oe.return=le,oe)}function ge(le,oe,pe,Oe){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==pe.containerInfo||oe.stateNode.implementation!==pe.implementation?(oe=hv(pe,le.mode,Oe),oe.return=le,oe):(oe=y(oe,pe.children||[]),oe.return=le,oe)}function _e(le,oe,pe,Oe,tt){return oe===null||oe.tag!==7?(oe=$a(pe,le.mode,Oe,tt),oe.return=le,oe):(oe=y(oe,pe),oe.return=le,oe)}function Me(le,oe,pe){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return oe=dv(""+oe,le.mode,pe),oe.return=le,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:return pe=Fh(oe.type,oe.key,oe.props,null,le.mode,pe),yf(pe,oe),pe.return=le,pe;case E:return oe=hv(oe,le.mode,pe),oe.return=le,oe;case D:return oe=Wa(oe),Me(le,oe,pe)}if(U(oe)||j(oe))return oe=$a(oe,le.mode,pe,null),oe.return=le,oe;if(typeof oe.then=="function")return Me(le,$h(oe),pe);if(oe.$$typeof===T)return Me(le,Bh(le,oe),pe);qh(le,oe)}return null}function ye(le,oe,pe,Oe){var tt=oe!==null?oe.key:null;if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return tt!==null?null:z(le,oe,""+pe,Oe);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case v:return pe.key===tt?K(le,oe,pe,Oe):null;case E:return pe.key===tt?ge(le,oe,pe,Oe):null;case D:return pe=Wa(pe),ye(le,oe,pe,Oe)}if(U(pe)||j(pe))return tt!==null?null:_e(le,oe,pe,Oe,null);if(typeof pe.then=="function")return ye(le,oe,$h(pe),Oe);if(pe.$$typeof===T)return ye(le,oe,Bh(le,pe),Oe);qh(le,pe)}return null}function Re(le,oe,pe,Oe,tt){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return le=le.get(pe)||null,z(oe,le,""+Oe,tt);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case v:return le=le.get(Oe.key===null?pe:Oe.key)||null,K(oe,le,Oe,tt);case E:return le=le.get(Oe.key===null?pe:Oe.key)||null,ge(oe,le,Oe,tt);case D:return Oe=Wa(Oe),Re(le,oe,pe,Oe,tt)}if(U(Oe)||j(Oe))return le=le.get(pe)||null,_e(oe,le,Oe,tt,null);if(typeof Oe.then=="function")return Re(le,oe,pe,$h(Oe),tt);if(Oe.$$typeof===T)return Re(le,oe,pe,Bh(oe,Oe),tt);qh(oe,Oe)}return null}function Ke(le,oe,pe,Oe){for(var tt=null,jt=null,Qe=oe,xt=oe=0,Nt=null;Qe!==null&&xt<pe.length;xt++){Qe.index>xt?(Nt=Qe,Qe=null):Nt=Qe.sibling;var $t=ye(le,Qe,pe[xt],Oe);if($t===null){Qe===null&&(Qe=Nt);break}o&&Qe&&$t.alternate===null&&a(le,Qe),oe=w($t,oe,xt),jt===null?tt=$t:jt.sibling=$t,jt=$t,Qe=Nt}if(xt===pe.length)return c(le,Qe),Ft&&Xi(le,xt),tt;if(Qe===null){for(;xt<pe.length;xt++)Qe=Me(le,pe[xt],Oe),Qe!==null&&(oe=w(Qe,oe,xt),jt===null?tt=Qe:jt.sibling=Qe,jt=Qe);return Ft&&Xi(le,xt),tt}for(Qe=h(Qe);xt<pe.length;xt++)Nt=Re(Qe,le,xt,pe[xt],Oe),Nt!==null&&(o&&Nt.alternate!==null&&Qe.delete(Nt.key===null?xt:Nt.key),oe=w(Nt,oe,xt),jt===null?tt=Nt:jt.sibling=Nt,jt=Nt);return o&&Qe.forEach(function(Zs){return a(le,Zs)}),Ft&&Xi(le,xt),tt}function at(le,oe,pe,Oe){if(pe==null)throw Error(r(151));for(var tt=null,jt=null,Qe=oe,xt=oe=0,Nt=null,$t=pe.next();Qe!==null&&!$t.done;xt++,$t=pe.next()){Qe.index>xt?(Nt=Qe,Qe=null):Nt=Qe.sibling;var Zs=ye(le,Qe,$t.value,Oe);if(Zs===null){Qe===null&&(Qe=Nt);break}o&&Qe&&Zs.alternate===null&&a(le,Qe),oe=w(Zs,oe,xt),jt===null?tt=Zs:jt.sibling=Zs,jt=Zs,Qe=Nt}if($t.done)return c(le,Qe),Ft&&Xi(le,xt),tt;if(Qe===null){for(;!$t.done;xt++,$t=pe.next())$t=Me(le,$t.value,Oe),$t!==null&&(oe=w($t,oe,xt),jt===null?tt=$t:jt.sibling=$t,jt=$t);return Ft&&Xi(le,xt),tt}for(Qe=h(Qe);!$t.done;xt++,$t=pe.next())$t=Re(Qe,le,xt,$t.value,Oe),$t!==null&&(o&&$t.alternate!==null&&Qe.delete($t.key===null?xt:$t.key),oe=w($t,oe,xt),jt===null?tt=$t:jt.sibling=$t,jt=$t);return o&&Qe.forEach(function(Ik){return a(le,Ik)}),Ft&&Xi(le,xt),tt}function fn(le,oe,pe,Oe){if(typeof pe=="object"&&pe!==null&&pe.type===b&&pe.key===null&&(pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case v:e:{for(var tt=pe.key;oe!==null;){if(oe.key===tt){if(tt=pe.type,tt===b){if(oe.tag===7){c(le,oe.sibling),Oe=y(oe,pe.props.children),Oe.return=le,le=Oe;break e}}else if(oe.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===D&&Wa(tt)===oe.type){c(le,oe.sibling),Oe=y(oe,pe.props),yf(Oe,pe),Oe.return=le,le=Oe;break e}c(le,oe);break}else a(le,oe);oe=oe.sibling}pe.type===b?(Oe=$a(pe.props.children,le.mode,Oe,pe.key),Oe.return=le,le=Oe):(Oe=Fh(pe.type,pe.key,pe.props,null,le.mode,Oe),yf(Oe,pe),Oe.return=le,le=Oe)}return I(le);case E:e:{for(tt=pe.key;oe!==null;){if(oe.key===tt)if(oe.tag===4&&oe.stateNode.containerInfo===pe.containerInfo&&oe.stateNode.implementation===pe.implementation){c(le,oe.sibling),Oe=y(oe,pe.children||[]),Oe.return=le,le=Oe;break e}else{c(le,oe);break}else a(le,oe);oe=oe.sibling}Oe=hv(pe,le.mode,Oe),Oe.return=le,le=Oe}return I(le);case D:return pe=Wa(pe),fn(le,oe,pe,Oe)}if(U(pe))return Ke(le,oe,pe,Oe);if(j(pe)){if(tt=j(pe),typeof tt!="function")throw Error(r(150));return pe=tt.call(pe),at(le,oe,pe,Oe)}if(typeof pe.then=="function")return fn(le,oe,$h(pe),Oe);if(pe.$$typeof===T)return fn(le,oe,Bh(le,pe),Oe);qh(le,pe)}return typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint"?(pe=""+pe,oe!==null&&oe.tag===6?(c(le,oe.sibling),Oe=y(oe,pe),Oe.return=le,le=Oe):(c(le,oe),Oe=dv(pe,le.mode,Oe),Oe.return=le,le=Oe),I(le)):c(le,oe)}return function(le,oe,pe,Oe){try{vf=0;var tt=fn(le,oe,pe,Oe);return hu=null,tt}catch(Qe){if(Qe===du||Qe===Vh)throw Qe;var jt=ao(29,Qe,null,le.mode);return jt.lanes=Oe,jt.return=le,jt}finally{}}}var Qa=hx(!0),px=hx(!1),Ns=!1;function Cv(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tv(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Fs(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function zs(o,a,c){var h=o.updateQueue;if(h===null)return null;if(h=h.shared,(Xt&2)!==0){var y=h.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),h.pending=a,a=Nh(o),QR(o,null,c),a}return kh(o,h,a,c),Nh(o)}function bf(o,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194048)!==0)){var h=a.lanes;h&=o.pendingLanes,c|=h,a.lanes=c,yn(o,c)}}function _v(o,a){var c=o.updateQueue,h=o.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var y=null,w=null;if(c=c.firstBaseUpdate,c!==null){do{var I={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};w===null?y=w=I:w=w.next=I,c=c.next}while(c!==null);w===null?y=w=a:w=w.next=a}else y=w=a;c={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:h.shared,callbacks:h.callbacks},o.updateQueue=c;return}o=c.lastBaseUpdate,o===null?c.firstBaseUpdate=a:o.next=a,c.lastBaseUpdate=a}var Av=!1;function Sf(){if(Av){var o=fu;if(o!==null)throw o}}function Ef(o,a,c,h){Av=!1;var y=o.updateQueue;Ns=!1;var w=y.firstBaseUpdate,I=y.lastBaseUpdate,z=y.shared.pending;if(z!==null){y.shared.pending=null;var K=z,ge=K.next;K.next=null,I===null?w=ge:I.next=ge,I=K;var _e=o.alternate;_e!==null&&(_e=_e.updateQueue,z=_e.lastBaseUpdate,z!==I&&(z===null?_e.firstBaseUpdate=ge:z.next=ge,_e.lastBaseUpdate=K))}if(w!==null){var Me=y.baseState;I=0,_e=ge=K=null,z=w;do{var ye=z.lane&-536870913,Re=ye!==z.lane;if(Re?(kt&ye)===ye:(h&ye)===ye){ye!==0&&ye===cu&&(Av=!0),_e!==null&&(_e=_e.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var Ke=o,at=z;ye=a;var fn=c;switch(at.tag){case 1:if(Ke=at.payload,typeof Ke=="function"){Me=Ke.call(fn,Me,ye);break e}Me=Ke;break e;case 3:Ke.flags=Ke.flags&-65537|128;case 0:if(Ke=at.payload,ye=typeof Ke=="function"?Ke.call(fn,Me,ye):Ke,ye==null)break e;Me=g({},Me,ye);break e;case 2:Ns=!0}}ye=z.callback,ye!==null&&(o.flags|=64,Re&&(o.flags|=8192),Re=y.callbacks,Re===null?y.callbacks=[ye]:Re.push(ye))}else Re={lane:ye,tag:z.tag,payload:z.payload,callback:z.callback,next:null},_e===null?(ge=_e=Re,K=Me):_e=_e.next=Re,I|=ye;if(z=z.next,z===null){if(z=y.shared.pending,z===null)break;Re=z,z=Re.next,Re.next=null,y.lastBaseUpdate=Re,y.shared.pending=null}}while(!0);_e===null&&(K=Me),y.baseState=K,y.firstBaseUpdate=ge,y.lastBaseUpdate=_e,w===null&&(y.shared.lanes=0),js|=I,o.lanes=I,o.memoizedState=Me}}function gx(o,a){if(typeof o!="function")throw Error(r(191,o));o.call(a)}function mx(o,a){var c=o.callbacks;if(c!==null)for(o.callbacks=null,o=0;o<c.length;o++)gx(c[o],a)}var pu=k(null),Gh=k(0);function vx(o,a){o=is,W(Gh,o),W(pu,a),is=o|a.baseLanes}function Ov(){W(Gh,is),W(pu,pu.current)}function Mv(){is=Gh.current,$(pu),$(Gh)}var lo=k(null),Io=null;function Hs(o){var a=o.alternate;W(zn,zn.current&1),W(lo,o),Io===null&&(a===null||pu.current!==null||a.memoizedState!==null)&&(Io=o)}function Iv(o){W(zn,zn.current),W(lo,o),Io===null&&(Io=o)}function yx(o){o.tag===22?(W(zn,zn.current),W(lo,o),Io===null&&(Io=o)):Bs()}function Bs(){W(zn,zn.current),W(lo,lo.current)}function uo(o){$(lo),Io===o&&(Io=null),$(zn)}var zn=k(0);function Yh(o){for(var a=o;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||Fy(c)||zy(c)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Qi=0,wt=null,un=null,Gn=null,Xh=!1,gu=!1,Ja=!1,Wh=0,wf=0,mu=null,EP=0;function Ln(){throw Error(r(321))}function Dv(o,a){if(a===null)return!1;for(var c=0;c<a.length&&c<o.length;c++)if(!so(o[c],a[c]))return!1;return!0}function Lv(o,a,c,h,y,w){return Qi=w,wt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,P.H=o===null||o.memoizedState===null?tC:Xv,Ja=!1,w=c(h,y),Ja=!1,gu&&(w=Sx(a,c,h,y)),bx(o),w}function bx(o){P.H=Cf;var a=un!==null&&un.next!==null;if(Qi=0,Gn=un=wt=null,Xh=!1,wf=0,mu=null,a)throw Error(r(300));o===null||Yn||(o=o.dependencies,o!==null&&Hh(o)&&(Yn=!0))}function Sx(o,a,c,h){wt=o;var y=0;do{if(gu&&(mu=null),wf=0,gu=!1,25<=y)throw Error(r(301));if(y+=1,Gn=un=null,o.updateQueue!=null){var w=o.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}P.H=nC,w=a(c,h)}while(gu);return w}function wP(){var o=P.H,a=o.useState()[0];return a=typeof a.then=="function"?Rf(a):a,o=o.useState()[0],(un!==null?un.memoizedState:null)!==o&&(wt.flags|=1024),a}function Pv(){var o=Wh!==0;return Wh=0,o}function kv(o,a,c){a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~c}function Nv(o){if(Xh){for(o=o.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Xh=!1}Qi=0,Gn=un=wt=null,gu=!1,wf=Wh=0,mu=null}function _r(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gn===null?wt.memoizedState=Gn=o:Gn=Gn.next=o,Gn}function Hn(){if(un===null){var o=wt.alternate;o=o!==null?o.memoizedState:null}else o=un.next;var a=Gn===null?wt.memoizedState:Gn.next;if(a!==null)Gn=a,un=o;else{if(o===null)throw wt.alternate===null?Error(r(467)):Error(r(310));un=o,o={memoizedState:un.memoizedState,baseState:un.baseState,baseQueue:un.baseQueue,queue:un.queue,next:null},Gn===null?wt.memoizedState=Gn=o:Gn=Gn.next=o}return Gn}function Kh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rf(o){var a=wf;return wf+=1,mu===null&&(mu=[]),o=cx(mu,o,a),a=wt,(Gn===null?a.memoizedState:Gn.next)===null&&(a=a.alternate,P.H=a===null||a.memoizedState===null?tC:Xv),o}function Qh(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Rf(o);if(o.$$typeof===T)return gr(o)}throw Error(r(438,String(o)))}function Fv(o){var a=null,c=wt.updateQueue;if(c!==null&&(a=c.memoCache),a==null){var h=wt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(a={data:h.data.map(function(y){return y.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),c===null&&(c=Kh(),wt.updateQueue=c),c.memoCache=a,c=a.data[a.index],c===void 0)for(c=a.data[a.index]=Array(o),h=0;h<o;h++)c[h]=N;return a.index++,c}function Ji(o,a){return typeof a=="function"?a(o):a}function Jh(o){var a=Hn();return zv(a,un,o)}function zv(o,a,c){var h=o.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var y=o.baseQueue,w=h.pending;if(w!==null){if(y!==null){var I=y.next;y.next=w.next,w.next=I}a.baseQueue=y=w,h.pending=null}if(w=o.baseState,y===null)o.memoizedState=w;else{a=y.next;var z=I=null,K=null,ge=a,_e=!1;do{var Me=ge.lane&-536870913;if(Me!==ge.lane?(kt&Me)===Me:(Qi&Me)===Me){var ye=ge.revertLane;if(ye===0)K!==null&&(K=K.next={lane:0,revertLane:0,gesture:null,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null}),Me===cu&&(_e=!0);else if((Qi&ye)===ye){ge=ge.next,ye===cu&&(_e=!0);continue}else Me={lane:0,revertLane:ge.revertLane,gesture:null,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},K===null?(z=K=Me,I=w):K=K.next=Me,wt.lanes|=ye,js|=ye;Me=ge.action,Ja&&c(w,Me),w=ge.hasEagerState?ge.eagerState:c(w,Me)}else ye={lane:Me,revertLane:ge.revertLane,gesture:ge.gesture,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},K===null?(z=K=ye,I=w):K=K.next=ye,wt.lanes|=Me,js|=Me;ge=ge.next}while(ge!==null&&ge!==a);if(K===null?I=w:K.next=z,!so(w,o.memoizedState)&&(Yn=!0,_e&&(c=fu,c!==null)))throw c;o.memoizedState=w,o.baseState=I,o.baseQueue=K,h.lastRenderedState=w}return y===null&&(h.lanes=0),[o.memoizedState,h.dispatch]}function Hv(o){var a=Hn(),c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var h=c.dispatch,y=c.pending,w=a.memoizedState;if(y!==null){c.pending=null;var I=y=y.next;do w=o(w,I.action),I=I.next;while(I!==y);so(w,a.memoizedState)||(Yn=!0),a.memoizedState=w,a.baseQueue===null&&(a.baseState=w),c.lastRenderedState=w}return[w,h]}function Ex(o,a,c){var h=wt,y=Hn(),w=Ft;if(w){if(c===void 0)throw Error(r(407));c=c()}else c=a();var I=!so((un||y).memoizedState,c);if(I&&(y.memoizedState=c,Yn=!0),y=y.queue,Vv(xx.bind(null,h,y,o),[o]),y.getSnapshot!==a||I||Gn!==null&&Gn.memoizedState.tag&1){if(h.flags|=2048,vu(9,{destroy:void 0},Rx.bind(null,h,y,c,a),null),gn===null)throw Error(r(349));w||(Qi&127)!==0||wx(h,a,c)}return c}function wx(o,a,c){o.flags|=16384,o={getSnapshot:a,value:c},a=wt.updateQueue,a===null?(a=Kh(),wt.updateQueue=a,a.stores=[o]):(c=a.stores,c===null?a.stores=[o]:c.push(o))}function Rx(o,a,c,h){a.value=c,a.getSnapshot=h,Cx(a)&&Tx(o)}function xx(o,a,c){return c(function(){Cx(a)&&Tx(o)})}function Cx(o){var a=o.getSnapshot;o=o.value;try{var c=a();return!so(o,c)}catch{return!0}}function Tx(o){var a=ja(o,2);a!==null&&$r(a,o,2)}function Bv(o){var a=_r();if(typeof o=="function"){var c=o;if(o=c(),Ja){He(!0);try{c()}finally{He(!1)}}}return a.memoizedState=a.baseState=o,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:o},a}function _x(o,a,c,h){return o.baseState=c,zv(o,un,typeof h=="function"?h:Ji)}function RP(o,a,c,h,y){if(tp(o))throw Error(r(485));if(o=a.action,o!==null){var w={payload:y,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){w.listeners.push(I)}};P.T!==null?c(!0):w.isTransition=!1,h(w),c=a.pending,c===null?(w.next=a.pending=w,Ax(a,w)):(w.next=c.next,a.pending=c.next=w)}}function Ax(o,a){var c=a.action,h=a.payload,y=o.state;if(a.isTransition){var w=P.T,I={};P.T=I;try{var z=c(y,h),K=P.S;K!==null&&K(I,z),Ox(o,a,z)}catch(ge){Uv(o,a,ge)}finally{w!==null&&I.types!==null&&(w.types=I.types),P.T=w}}else try{w=c(y,h),Ox(o,a,w)}catch(ge){Uv(o,a,ge)}}function Ox(o,a,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){Mx(o,a,h)},function(h){return Uv(o,a,h)}):Mx(o,a,c)}function Mx(o,a,c){a.status="fulfilled",a.value=c,Ix(a),o.state=c,a=o.pending,a!==null&&(c=a.next,c===a?o.pending=null:(c=c.next,a.next=c,Ax(o,c)))}function Uv(o,a,c){var h=o.pending;if(o.pending=null,h!==null){h=h.next;do a.status="rejected",a.reason=c,Ix(a),a=a.next;while(a!==h)}o.action=null}function Ix(o){o=o.listeners;for(var a=0;a<o.length;a++)(0,o[a])()}function Dx(o,a){return a}function Lx(o,a){if(Ft){var c=gn.formState;if(c!==null){e:{var h=wt;if(Ft){if(bn){t:{for(var y=bn,w=Mo;y.nodeType!==8;){if(!w){y=null;break t}if(y=Do(y.nextSibling),y===null){y=null;break t}}w=y.data,y=w==="F!"||w==="F"?y:null}if(y){bn=Do(y.nextSibling),h=y.data==="F!";break e}}Ps(h)}h=!1}h&&(a=c[0])}}return c=_r(),c.memoizedState=c.baseState=a,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dx,lastRenderedState:a},c.queue=h,c=Jx.bind(null,wt,h),h.dispatch=c,h=Bv(!1),w=Yv.bind(null,wt,!1,h.queue),h=_r(),y={state:a,dispatch:null,action:o,pending:null},h.queue=y,c=RP.bind(null,wt,y,w,c),y.dispatch=c,h.memoizedState=o,[a,c,!1]}function Px(o){var a=Hn();return kx(a,un,o)}function kx(o,a,c){if(a=zv(o,a,Dx)[0],o=Jh(Ji)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var h=Rf(a)}catch(I){throw I===du?Vh:I}else h=a;a=Hn();var y=a.queue,w=y.dispatch;return c!==a.memoizedState&&(wt.flags|=2048,vu(9,{destroy:void 0},xP.bind(null,y,c),null)),[h,w,o]}function xP(o,a){o.action=a}function Nx(o){var a=Hn(),c=un;if(c!==null)return kx(a,c,o);Hn(),a=a.memoizedState,c=Hn();var h=c.queue.dispatch;return c.memoizedState=o,[a,h,!1]}function vu(o,a,c,h){return o={tag:o,create:c,deps:h,inst:a,next:null},a=wt.updateQueue,a===null&&(a=Kh(),wt.updateQueue=a),c=a.lastEffect,c===null?a.lastEffect=o.next=o:(h=c.next,c.next=o,o.next=h,a.lastEffect=o),o}function Fx(){return Hn().memoizedState}function Zh(o,a,c,h){var y=_r();wt.flags|=o,y.memoizedState=vu(1|a,{destroy:void 0},c,h===void 0?null:h)}function ep(o,a,c,h){var y=Hn();h=h===void 0?null:h;var w=y.memoizedState.inst;un!==null&&h!==null&&Dv(h,un.memoizedState.deps)?y.memoizedState=vu(a,w,c,h):(wt.flags|=o,y.memoizedState=vu(1|a,w,c,h))}function zx(o,a){Zh(8390656,8,o,a)}function Vv(o,a){ep(2048,8,o,a)}function CP(o){wt.flags|=4;var a=wt.updateQueue;if(a===null)a=Kh(),wt.updateQueue=a,a.events=[o];else{var c=a.events;c===null?a.events=[o]:c.push(o)}}function Hx(o){var a=Hn().memoizedState;return CP({ref:a,nextImpl:o}),function(){if((Xt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Bx(o,a){return ep(4,2,o,a)}function Ux(o,a){return ep(4,4,o,a)}function Vx(o,a){if(typeof a=="function"){o=o();var c=a(o);return function(){typeof c=="function"?c():a(null)}}if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function jx(o,a,c){c=c!=null?c.concat([o]):null,ep(4,4,Vx.bind(null,a,o),c)}function jv(){}function $x(o,a){var c=Hn();a=a===void 0?null:a;var h=c.memoizedState;return a!==null&&Dv(a,h[1])?h[0]:(c.memoizedState=[o,a],o)}function qx(o,a){var c=Hn();a=a===void 0?null:a;var h=c.memoizedState;if(a!==null&&Dv(a,h[1]))return h[0];if(h=o(),Ja){He(!0);try{o()}finally{He(!1)}}return c.memoizedState=[h,a],h}function $v(o,a,c){return c===void 0||(Qi&1073741824)!==0&&(kt&261930)===0?o.memoizedState=a:(o.memoizedState=c,o=GC(),wt.lanes|=o,js|=o,c)}function Gx(o,a,c,h){return so(c,a)?c:pu.current!==null?(o=$v(o,c,h),so(o,a)||(Yn=!0),o):(Qi&42)===0||(Qi&1073741824)!==0&&(kt&261930)===0?(Yn=!0,o.memoizedState=c):(o=GC(),wt.lanes|=o,js|=o,a)}function Yx(o,a,c,h,y){var w=G.p;G.p=w!==0&&8>w?w:8;var I=P.T,z={};P.T=z,Yv(o,!1,a,c);try{var K=y(),ge=P.S;if(ge!==null&&ge(z,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var _e=SP(K,h);xf(o,a,_e,ho(o))}else xf(o,a,h,ho(o))}catch(Me){xf(o,a,{then:function(){},status:"rejected",reason:Me},ho())}finally{G.p=w,I!==null&&z.types!==null&&(I.types=z.types),P.T=I}}function TP(){}function qv(o,a,c,h){if(o.tag!==5)throw Error(r(476));var y=Xx(o).queue;Yx(o,y,a,B,c===null?TP:function(){return Wx(o),c(h)})}function Xx(o){var a=o.memoizedState;if(a!==null)return a;a={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:B},next:null};var c={};return a.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:c},next:null},o.memoizedState=a,o=o.alternate,o!==null&&(o.memoizedState=a),a}function Wx(o){var a=Xx(o);a.next===null&&(a=o.alternate.memoizedState),xf(o,a.next.queue,{},ho())}function Gv(){return gr(Uf)}function Kx(){return Hn().memoizedState}function Qx(){return Hn().memoizedState}function _P(o){for(var a=o.return;a!==null;){switch(a.tag){case 24:case 3:var c=ho();o=Fs(c);var h=zs(a,o,c);h!==null&&($r(h,a,c),bf(h,a,c)),a={cache:Ev()},o.payload=a;return}a=a.return}}function AP(o,a,c){var h=ho();c={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},tp(o)?Zx(a,c):(c=cv(o,a,c,h),c!==null&&($r(c,o,h),eC(c,a,h)))}function Jx(o,a,c){var h=ho();xf(o,a,c,h)}function xf(o,a,c,h){var y={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(tp(o))Zx(a,y);else{var w=o.alternate;if(o.lanes===0&&(w===null||w.lanes===0)&&(w=a.lastRenderedReducer,w!==null))try{var I=a.lastRenderedState,z=w(I,c);if(y.hasEagerState=!0,y.eagerState=z,so(z,I))return kh(o,a,y,0),gn===null&&Ph(),!1}catch{}finally{}if(c=cv(o,a,y,h),c!==null)return $r(c,o,h),eC(c,a,h),!0}return!1}function Yv(o,a,c,h){if(h={lane:2,revertLane:Cy(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},tp(o)){if(a)throw Error(r(479))}else a=cv(o,c,h,2),a!==null&&$r(a,o,2)}function tp(o){var a=o.alternate;return o===wt||a!==null&&a===wt}function Zx(o,a){gu=Xh=!0;var c=o.pending;c===null?a.next=a:(a.next=c.next,c.next=a),o.pending=a}function eC(o,a,c){if((c&4194048)!==0){var h=a.lanes;h&=o.pendingLanes,c|=h,a.lanes=c,yn(o,c)}}var Cf={readContext:gr,use:Qh,useCallback:Ln,useContext:Ln,useEffect:Ln,useImperativeHandle:Ln,useLayoutEffect:Ln,useInsertionEffect:Ln,useMemo:Ln,useReducer:Ln,useRef:Ln,useState:Ln,useDebugValue:Ln,useDeferredValue:Ln,useTransition:Ln,useSyncExternalStore:Ln,useId:Ln,useHostTransitionStatus:Ln,useFormState:Ln,useActionState:Ln,useOptimistic:Ln,useMemoCache:Ln,useCacheRefresh:Ln};Cf.useEffectEvent=Ln;var tC={readContext:gr,use:Qh,useCallback:function(o,a){return _r().memoizedState=[o,a===void 0?null:a],o},useContext:gr,useEffect:zx,useImperativeHandle:function(o,a,c){c=c!=null?c.concat([o]):null,Zh(4194308,4,Vx.bind(null,a,o),c)},useLayoutEffect:function(o,a){return Zh(4194308,4,o,a)},useInsertionEffect:function(o,a){Zh(4,2,o,a)},useMemo:function(o,a){var c=_r();a=a===void 0?null:a;var h=o();if(Ja){He(!0);try{o()}finally{He(!1)}}return c.memoizedState=[h,a],h},useReducer:function(o,a,c){var h=_r();if(c!==void 0){var y=c(a);if(Ja){He(!0);try{c(a)}finally{He(!1)}}}else y=a;return h.memoizedState=h.baseState=y,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:y},h.queue=o,o=o.dispatch=AP.bind(null,wt,o),[h.memoizedState,o]},useRef:function(o){var a=_r();return o={current:o},a.memoizedState=o},useState:function(o){o=Bv(o);var a=o.queue,c=Jx.bind(null,wt,a);return a.dispatch=c,[o.memoizedState,c]},useDebugValue:jv,useDeferredValue:function(o,a){var c=_r();return $v(c,o,a)},useTransition:function(){var o=Bv(!1);return o=Yx.bind(null,wt,o.queue,!0,!1),_r().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,a,c){var h=wt,y=_r();if(Ft){if(c===void 0)throw Error(r(407));c=c()}else{if(c=a(),gn===null)throw Error(r(349));(kt&127)!==0||wx(h,a,c)}y.memoizedState=c;var w={value:c,getSnapshot:a};return y.queue=w,zx(xx.bind(null,h,w,o),[o]),h.flags|=2048,vu(9,{destroy:void 0},Rx.bind(null,h,w,c,a),null),c},useId:function(){var o=_r(),a=gn.identifierPrefix;if(Ft){var c=pi,h=hi;c=(h&~(1<<32-ze(h)-1)).toString(32)+c,a="_"+a+"R_"+c,c=Wh++,0<c&&(a+="H"+c.toString(32)),a+="_"}else c=EP++,a="_"+a+"r_"+c.toString(32)+"_";return o.memoizedState=a},useHostTransitionStatus:Gv,useFormState:Lx,useActionState:Lx,useOptimistic:function(o){var a=_r();a.memoizedState=a.baseState=o;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=c,a=Yv.bind(null,wt,!0,c),c.dispatch=a,[o,a]},useMemoCache:Fv,useCacheRefresh:function(){return _r().memoizedState=_P.bind(null,wt)},useEffectEvent:function(o){var a=_r(),c={impl:o};return a.memoizedState=c,function(){if((Xt&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}},Xv={readContext:gr,use:Qh,useCallback:$x,useContext:gr,useEffect:Vv,useImperativeHandle:jx,useInsertionEffect:Bx,useLayoutEffect:Ux,useMemo:qx,useReducer:Jh,useRef:Fx,useState:function(){return Jh(Ji)},useDebugValue:jv,useDeferredValue:function(o,a){var c=Hn();return Gx(c,un.memoizedState,o,a)},useTransition:function(){var o=Jh(Ji)[0],a=Hn().memoizedState;return[typeof o=="boolean"?o:Rf(o),a]},useSyncExternalStore:Ex,useId:Kx,useHostTransitionStatus:Gv,useFormState:Px,useActionState:Px,useOptimistic:function(o,a){var c=Hn();return _x(c,un,o,a)},useMemoCache:Fv,useCacheRefresh:Qx};Xv.useEffectEvent=Hx;var nC={readContext:gr,use:Qh,useCallback:$x,useContext:gr,useEffect:Vv,useImperativeHandle:jx,useInsertionEffect:Bx,useLayoutEffect:Ux,useMemo:qx,useReducer:Hv,useRef:Fx,useState:function(){return Hv(Ji)},useDebugValue:jv,useDeferredValue:function(o,a){var c=Hn();return un===null?$v(c,o,a):Gx(c,un.memoizedState,o,a)},useTransition:function(){var o=Hv(Ji)[0],a=Hn().memoizedState;return[typeof o=="boolean"?o:Rf(o),a]},useSyncExternalStore:Ex,useId:Kx,useHostTransitionStatus:Gv,useFormState:Nx,useActionState:Nx,useOptimistic:function(o,a){var c=Hn();return un!==null?_x(c,un,o,a):(c.baseState=o,[o,c.queue.dispatch])},useMemoCache:Fv,useCacheRefresh:Qx};nC.useEffectEvent=Hx;function Wv(o,a,c,h){a=o.memoizedState,c=c(h,a),c=c==null?a:g({},a,c),o.memoizedState=c,o.lanes===0&&(o.updateQueue.baseState=c)}var Kv={enqueueSetState:function(o,a,c){o=o._reactInternals;var h=ho(),y=Fs(h);y.payload=a,c!=null&&(y.callback=c),a=zs(o,y,h),a!==null&&($r(a,o,h),bf(a,o,h))},enqueueReplaceState:function(o,a,c){o=o._reactInternals;var h=ho(),y=Fs(h);y.tag=1,y.payload=a,c!=null&&(y.callback=c),a=zs(o,y,h),a!==null&&($r(a,o,h),bf(a,o,h))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var c=ho(),h=Fs(c);h.tag=2,a!=null&&(h.callback=a),a=zs(o,h,c),a!==null&&($r(a,o,c),bf(a,o,c))}};function rC(o,a,c,h,y,w,I){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(h,w,I):a.prototype&&a.prototype.isPureReactComponent?!ff(c,h)||!ff(y,w):!0}function oC(o,a,c,h){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,h),a.state!==o&&Kv.enqueueReplaceState(a,a.state,null)}function Za(o,a){var c=a;if("ref"in a){c={};for(var h in a)h!=="ref"&&(c[h]=a[h])}if(o=o.defaultProps){c===a&&(c=g({},c));for(var y in o)c[y]===void 0&&(c[y]=o[y])}return c}function iC(o){Lh(o)}function sC(o){console.error(o)}function aC(o){Lh(o)}function np(o,a){try{var c=o.onUncaughtError;c(a.value,{componentStack:a.stack})}catch(h){setTimeout(function(){throw h})}}function lC(o,a,c){try{var h=o.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function Qv(o,a,c){return c=Fs(c),c.tag=3,c.payload={element:null},c.callback=function(){np(o,a)},c}function uC(o){return o=Fs(o),o.tag=3,o}function cC(o,a,c,h){var y=c.type.getDerivedStateFromError;if(typeof y=="function"){var w=h.value;o.payload=function(){return y(w)},o.callback=function(){lC(a,c,h)}}var I=c.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(o.callback=function(){lC(a,c,h),typeof y!="function"&&($s===null?$s=new Set([this]):$s.add(this));var z=h.stack;this.componentDidCatch(h.value,{componentStack:z!==null?z:""})})}function OP(o,a,c,h,y){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(a=c.alternate,a!==null&&uu(a,c,y,!0),c=lo.current,c!==null){switch(c.tag){case 31:case 13:return Io===null?pp():c.alternate===null&&Pn===0&&(Pn=3),c.flags&=-257,c.flags|=65536,c.lanes=y,h===jh?c.flags|=16384:(a=c.updateQueue,a===null?c.updateQueue=new Set([h]):a.add(h),wy(o,h,y)),!1;case 22:return c.flags|=65536,h===jh?c.flags|=16384:(a=c.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=a):(c=a.retryQueue,c===null?a.retryQueue=new Set([h]):c.add(h)),wy(o,h,y)),!1}throw Error(r(435,c.tag))}return wy(o,h,y),pp(),!1}if(Ft)return a=lo.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=y,h!==mv&&(o=Error(r(422),{cause:h}),pf(_o(o,c)))):(h!==mv&&(a=Error(r(423),{cause:h}),pf(_o(a,c))),o=o.current.alternate,o.flags|=65536,y&=-y,o.lanes|=y,h=_o(h,c),y=Qv(o.stateNode,h,y),_v(o,y),Pn!==4&&(Pn=2)),!1;var w=Error(r(520),{cause:h});if(w=_o(w,c),Lf===null?Lf=[w]:Lf.push(w),Pn!==4&&(Pn=2),a===null)return!0;h=_o(h,c),c=a;do{switch(c.tag){case 3:return c.flags|=65536,o=y&-y,c.lanes|=o,o=Qv(c.stateNode,h,o),_v(c,o),!1;case 1:if(a=c.type,w=c.stateNode,(c.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&($s===null||!$s.has(w))))return c.flags|=65536,y&=-y,c.lanes|=y,y=uC(y),cC(y,o,c,h),_v(c,y),!1}c=c.return}while(c!==null);return!1}var Jv=Error(r(461)),Yn=!1;function mr(o,a,c,h){a.child=o===null?px(a,null,c,h):Qa(a,o.child,c,h)}function fC(o,a,c,h,y){c=c.render;var w=a.ref;if("ref"in h){var I={};for(var z in h)z!=="ref"&&(I[z]=h[z])}else I=h;return Ya(a),h=Lv(o,a,c,I,w,y),z=Pv(),o!==null&&!Yn?(kv(o,a,y),Zi(o,a,y)):(Ft&&z&&pv(a),a.flags|=1,mr(o,a,h,y),a.child)}function dC(o,a,c,h,y){if(o===null){var w=c.type;return typeof w=="function"&&!fv(w)&&w.defaultProps===void 0&&c.compare===null?(a.tag=15,a.type=w,hC(o,a,w,h,y)):(o=Fh(c.type,null,h,a,a.mode,y),o.ref=a.ref,o.return=a,a.child=o)}if(w=o.child,!sy(o,y)){var I=w.memoizedProps;if(c=c.compare,c=c!==null?c:ff,c(I,h)&&o.ref===a.ref)return Zi(o,a,y)}return a.flags|=1,o=Yi(w,h),o.ref=a.ref,o.return=a,a.child=o}function hC(o,a,c,h,y){if(o!==null){var w=o.memoizedProps;if(ff(w,h)&&o.ref===a.ref)if(Yn=!1,a.pendingProps=h=w,sy(o,y))(o.flags&131072)!==0&&(Yn=!0);else return a.lanes=o.lanes,Zi(o,a,y)}return Zv(o,a,c,h,y)}function pC(o,a,c,h){var y=h.children,w=o!==null?o.memoizedState:null;if(o===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((a.flags&128)!==0){if(w=w!==null?w.baseLanes|c:c,o!==null){for(h=a.child=o.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;h=y&~w}else h=0,a.child=null;return gC(o,a,w,c,h)}if((c&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},o!==null&&Uh(a,w!==null?w.cachePool:null),w!==null?vx(a,w):Ov(),yx(a);else return h=a.lanes=536870912,gC(o,a,w!==null?w.baseLanes|c:c,c,h)}else w!==null?(Uh(a,w.cachePool),vx(a,w),Bs(),a.memoizedState=null):(o!==null&&Uh(a,null),Ov(),Bs());return mr(o,a,y,c),a.child}function Tf(o,a){return o!==null&&o.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function gC(o,a,c,h,y){var w=Rv();return w=w===null?null:{parent:qn._currentValue,pool:w},a.memoizedState={baseLanes:c,cachePool:w},o!==null&&Uh(a,null),Ov(),yx(a),o!==null&&uu(o,a,h,!0),a.childLanes=y,null}function rp(o,a){return a=ip({mode:a.mode,children:a.children},o.mode),a.ref=o.ref,o.child=a,a.return=o,a}function mC(o,a,c){return Qa(a,o.child,null,c),o=rp(a,a.pendingProps),o.flags|=2,uo(a),a.memoizedState=null,o}function MP(o,a,c){var h=a.pendingProps,y=(a.flags&128)!==0;if(a.flags&=-129,o===null){if(Ft){if(h.mode==="hidden")return o=rp(a,h),a.lanes=536870912,Tf(null,o);if(Iv(a),(o=bn)?(o=AT(o,Mo),o=o!==null&&o.data==="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Ds!==null?{id:hi,overflow:pi}:null,retryLane:536870912,hydrationErrors:null},c=ZR(o),c.return=a,a.child=c,pr=a,bn=null)):o=null,o===null)throw Ps(a);return a.lanes=536870912,null}return rp(a,h)}var w=o.memoizedState;if(w!==null){var I=w.dehydrated;if(Iv(a),y)if(a.flags&256)a.flags&=-257,a=mC(o,a,c);else if(a.memoizedState!==null)a.child=o.child,a.flags|=128,a=null;else throw Error(r(558));else if(Yn||uu(o,a,c,!1),y=(c&o.childLanes)!==0,Yn||y){if(h=gn,h!==null&&(I=mn(h,c),I!==0&&I!==w.retryLane))throw w.retryLane=I,ja(o,I),$r(h,o,I),Jv;pp(),a=mC(o,a,c)}else o=w.treeContext,bn=Do(I.nextSibling),pr=a,Ft=!0,Ls=null,Mo=!1,o!==null&&nx(a,o),a=rp(a,h),a.flags|=4096;return a}return o=Yi(o.child,{mode:h.mode,children:h.children}),o.ref=a.ref,a.child=o,o.return=a,o}function op(o,a){var c=a.ref;if(c===null)o!==null&&o.ref!==null&&(a.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(o===null||o.ref!==c)&&(a.flags|=4194816)}}function Zv(o,a,c,h,y){return Ya(a),c=Lv(o,a,c,h,void 0,y),h=Pv(),o!==null&&!Yn?(kv(o,a,y),Zi(o,a,y)):(Ft&&h&&pv(a),a.flags|=1,mr(o,a,c,y),a.child)}function vC(o,a,c,h,y,w){return Ya(a),a.updateQueue=null,c=Sx(a,h,c,y),bx(o),h=Pv(),o!==null&&!Yn?(kv(o,a,w),Zi(o,a,w)):(Ft&&h&&pv(a),a.flags|=1,mr(o,a,c,w),a.child)}function yC(o,a,c,h,y){if(Ya(a),a.stateNode===null){var w=iu,I=c.contextType;typeof I=="object"&&I!==null&&(w=gr(I)),w=new c(h,w),a.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Kv,a.stateNode=w,w._reactInternals=a,w=a.stateNode,w.props=h,w.state=a.memoizedState,w.refs={},Cv(a),I=c.contextType,w.context=typeof I=="object"&&I!==null?gr(I):iu,w.state=a.memoizedState,I=c.getDerivedStateFromProps,typeof I=="function"&&(Wv(a,c,I,h),w.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(I=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),I!==w.state&&Kv.enqueueReplaceState(w,w.state,null),Ef(a,h,w,y),Sf(),w.state=a.memoizedState),typeof w.componentDidMount=="function"&&(a.flags|=4194308),h=!0}else if(o===null){w=a.stateNode;var z=a.memoizedProps,K=Za(c,z);w.props=K;var ge=w.context,_e=c.contextType;I=iu,typeof _e=="object"&&_e!==null&&(I=gr(_e));var Me=c.getDerivedStateFromProps;_e=typeof Me=="function"||typeof w.getSnapshotBeforeUpdate=="function",z=a.pendingProps!==z,_e||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(z||ge!==I)&&oC(a,w,h,I),Ns=!1;var ye=a.memoizedState;w.state=ye,Ef(a,h,w,y),Sf(),ge=a.memoizedState,z||ye!==ge||Ns?(typeof Me=="function"&&(Wv(a,c,Me,h),ge=a.memoizedState),(K=Ns||rC(a,c,K,h,ye,ge,I))?(_e||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(a.flags|=4194308)):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=ge),w.props=h,w.state=ge,w.context=I,h=K):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{w=a.stateNode,Tv(o,a),I=a.memoizedProps,_e=Za(c,I),w.props=_e,Me=a.pendingProps,ye=w.context,ge=c.contextType,K=iu,typeof ge=="object"&&ge!==null&&(K=gr(ge)),z=c.getDerivedStateFromProps,(ge=typeof z=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(I!==Me||ye!==K)&&oC(a,w,h,K),Ns=!1,ye=a.memoizedState,w.state=ye,Ef(a,h,w,y),Sf();var Re=a.memoizedState;I!==Me||ye!==Re||Ns||o!==null&&o.dependencies!==null&&Hh(o.dependencies)?(typeof z=="function"&&(Wv(a,c,z,h),Re=a.memoizedState),(_e=Ns||rC(a,c,_e,h,ye,Re,K)||o!==null&&o.dependencies!==null&&Hh(o.dependencies))?(ge||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(h,Re,K),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(h,Re,K)),typeof w.componentDidUpdate=="function"&&(a.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof w.componentDidUpdate!="function"||I===o.memoizedProps&&ye===o.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&ye===o.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=Re),w.props=h,w.state=Re,w.context=K,h=_e):(typeof w.componentDidUpdate!="function"||I===o.memoizedProps&&ye===o.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||I===o.memoizedProps&&ye===o.memoizedState||(a.flags|=1024),h=!1)}return w=h,op(o,a),h=(a.flags&128)!==0,w||h?(w=a.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:w.render(),a.flags|=1,o!==null&&h?(a.child=Qa(a,o.child,null,y),a.child=Qa(a,null,c,y)):mr(o,a,c,y),a.memoizedState=w.state,o=a.child):o=Zi(o,a,y),o}function bC(o,a,c,h){return qa(),a.flags|=256,mr(o,a,c,h),a.child}var ey={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ty(o){return{baseLanes:o,cachePool:lx()}}function ny(o,a,c){return o=o!==null?o.childLanes&~c:0,a&&(o|=fo),o}function SC(o,a,c){var h=a.pendingProps,y=!1,w=(a.flags&128)!==0,I;if((I=w)||(I=o!==null&&o.memoizedState===null?!1:(zn.current&2)!==0),I&&(y=!0,a.flags&=-129),I=(a.flags&32)!==0,a.flags&=-33,o===null){if(Ft){if(y?Hs(a):Bs(),(o=bn)?(o=AT(o,Mo),o=o!==null&&o.data!=="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Ds!==null?{id:hi,overflow:pi}:null,retryLane:536870912,hydrationErrors:null},c=ZR(o),c.return=a,a.child=c,pr=a,bn=null)):o=null,o===null)throw Ps(a);return zy(o)?a.lanes=32:a.lanes=536870912,null}var z=h.children;return h=h.fallback,y?(Bs(),y=a.mode,z=ip({mode:"hidden",children:z},y),h=$a(h,y,c,null),z.return=a,h.return=a,z.sibling=h,a.child=z,h=a.child,h.memoizedState=ty(c),h.childLanes=ny(o,I,c),a.memoizedState=ey,Tf(null,h)):(Hs(a),ry(a,z))}var K=o.memoizedState;if(K!==null&&(z=K.dehydrated,z!==null)){if(w)a.flags&256?(Hs(a),a.flags&=-257,a=oy(o,a,c)):a.memoizedState!==null?(Bs(),a.child=o.child,a.flags|=128,a=null):(Bs(),z=h.fallback,y=a.mode,h=ip({mode:"visible",children:h.children},y),z=$a(z,y,c,null),z.flags|=2,h.return=a,z.return=a,h.sibling=z,a.child=h,Qa(a,o.child,null,c),h=a.child,h.memoizedState=ty(c),h.childLanes=ny(o,I,c),a.memoizedState=ey,a=Tf(null,h));else if(Hs(a),zy(z)){if(I=z.nextSibling&&z.nextSibling.dataset,I)var ge=I.dgst;I=ge,h=Error(r(419)),h.stack="",h.digest=I,pf({value:h,source:null,stack:null}),a=oy(o,a,c)}else if(Yn||uu(o,a,c,!1),I=(c&o.childLanes)!==0,Yn||I){if(I=gn,I!==null&&(h=mn(I,c),h!==0&&h!==K.retryLane))throw K.retryLane=h,ja(o,h),$r(I,o,h),Jv;Fy(z)||pp(),a=oy(o,a,c)}else Fy(z)?(a.flags|=192,a.child=o.child,a=null):(o=K.treeContext,bn=Do(z.nextSibling),pr=a,Ft=!0,Ls=null,Mo=!1,o!==null&&nx(a,o),a=ry(a,h.children),a.flags|=4096);return a}return y?(Bs(),z=h.fallback,y=a.mode,K=o.child,ge=K.sibling,h=Yi(K,{mode:"hidden",children:h.children}),h.subtreeFlags=K.subtreeFlags&65011712,ge!==null?z=Yi(ge,z):(z=$a(z,y,c,null),z.flags|=2),z.return=a,h.return=a,h.sibling=z,a.child=h,Tf(null,h),h=a.child,z=o.child.memoizedState,z===null?z=ty(c):(y=z.cachePool,y!==null?(K=qn._currentValue,y=y.parent!==K?{parent:K,pool:K}:y):y=lx(),z={baseLanes:z.baseLanes|c,cachePool:y}),h.memoizedState=z,h.childLanes=ny(o,I,c),a.memoizedState=ey,Tf(o.child,h)):(Hs(a),c=o.child,o=c.sibling,c=Yi(c,{mode:"visible",children:h.children}),c.return=a,c.sibling=null,o!==null&&(I=a.deletions,I===null?(a.deletions=[o],a.flags|=16):I.push(o)),a.child=c,a.memoizedState=null,c)}function ry(o,a){return a=ip({mode:"visible",children:a},o.mode),a.return=o,o.child=a}function ip(o,a){return o=ao(22,o,null,a),o.lanes=0,o}function oy(o,a,c){return Qa(a,o.child,null,c),o=ry(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function EC(o,a,c){o.lanes|=a;var h=o.alternate;h!==null&&(h.lanes|=a),bv(o.return,a,c)}function iy(o,a,c,h,y,w){var I=o.memoizedState;I===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:y,treeForkCount:w}:(I.isBackwards=a,I.rendering=null,I.renderingStartTime=0,I.last=h,I.tail=c,I.tailMode=y,I.treeForkCount=w)}function wC(o,a,c){var h=a.pendingProps,y=h.revealOrder,w=h.tail;h=h.children;var I=zn.current,z=(I&2)!==0;if(z?(I=I&1|2,a.flags|=128):I&=1,W(zn,I),mr(o,a,h,c),h=Ft?hf:0,!z&&o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&EC(o,c,a);else if(o.tag===19)EC(o,c,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(y){case"forwards":for(c=a.child,y=null;c!==null;)o=c.alternate,o!==null&&Yh(o)===null&&(y=c),c=c.sibling;c=y,c===null?(y=a.child,a.child=null):(y=c.sibling,c.sibling=null),iy(a,!1,y,c,w,h);break;case"backwards":case"unstable_legacy-backwards":for(c=null,y=a.child,a.child=null;y!==null;){if(o=y.alternate,o!==null&&Yh(o)===null){a.child=y;break}o=y.sibling,y.sibling=c,c=y,y=o}iy(a,!0,c,null,w,h);break;case"together":iy(a,!1,null,null,void 0,h);break;default:a.memoizedState=null}return a.child}function Zi(o,a,c){if(o!==null&&(a.dependencies=o.dependencies),js|=a.lanes,(c&a.childLanes)===0)if(o!==null){if(uu(o,a,c,!1),(c&a.childLanes)===0)return null}else return null;if(o!==null&&a.child!==o.child)throw Error(r(153));if(a.child!==null){for(o=a.child,c=Yi(o,o.pendingProps),a.child=c,c.return=a;o.sibling!==null;)o=o.sibling,c=c.sibling=Yi(o,o.pendingProps),c.return=a;c.sibling=null}return a.child}function sy(o,a){return(o.lanes&a)!==0?!0:(o=o.dependencies,!!(o!==null&&Hh(o)))}function IP(o,a,c){switch(a.tag){case 3:Q(a,a.stateNode.containerInfo),ks(a,qn,o.memoizedState.cache),qa();break;case 27:case 5:ve(a);break;case 4:Q(a,a.stateNode.containerInfo);break;case 10:ks(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Iv(a),null;break;case 13:var h=a.memoizedState;if(h!==null)return h.dehydrated!==null?(Hs(a),a.flags|=128,null):(c&a.child.childLanes)!==0?SC(o,a,c):(Hs(a),o=Zi(o,a,c),o!==null?o.sibling:null);Hs(a);break;case 19:var y=(o.flags&128)!==0;if(h=(c&a.childLanes)!==0,h||(uu(o,a,c,!1),h=(c&a.childLanes)!==0),y){if(h)return wC(o,a,c);a.flags|=128}if(y=a.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),W(zn,zn.current),h)break;return null;case 22:return a.lanes=0,pC(o,a,c,a.pendingProps);case 24:ks(a,qn,o.memoizedState.cache)}return Zi(o,a,c)}function RC(o,a,c){if(o!==null)if(o.memoizedProps!==a.pendingProps)Yn=!0;else{if(!sy(o,c)&&(a.flags&128)===0)return Yn=!1,IP(o,a,c);Yn=(o.flags&131072)!==0}else Yn=!1,Ft&&(a.flags&1048576)!==0&&tx(a,hf,a.index);switch(a.lanes=0,a.tag){case 16:e:{var h=a.pendingProps;if(o=Wa(a.elementType),a.type=o,typeof o=="function")fv(o)?(h=Za(o,h),a.tag=1,a=yC(null,a,o,h,c)):(a.tag=0,a=Zv(null,a,o,h,c));else{if(o!=null){var y=o.$$typeof;if(y===O){a.tag=11,a=fC(null,a,o,h,c);break e}else if(y===A){a.tag=14,a=dC(null,a,o,h,c);break e}}throw a=q(o)||o,Error(r(306,a,""))}}return a;case 0:return Zv(o,a,a.type,a.pendingProps,c);case 1:return h=a.type,y=Za(h,a.pendingProps),yC(o,a,h,y,c);case 3:e:{if(Q(a,a.stateNode.containerInfo),o===null)throw Error(r(387));h=a.pendingProps;var w=a.memoizedState;y=w.element,Tv(o,a),Ef(a,h,null,c);var I=a.memoizedState;if(h=I.cache,ks(a,qn,h),h!==w.cache&&Sv(a,[qn],c,!0),Sf(),h=I.element,w.isDehydrated)if(w={element:h,isDehydrated:!1,cache:I.cache},a.updateQueue.baseState=w,a.memoizedState=w,a.flags&256){a=bC(o,a,h,c);break e}else if(h!==y){y=_o(Error(r(424)),a),pf(y),a=bC(o,a,h,c);break e}else{switch(o=a.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(bn=Do(o.firstChild),pr=a,Ft=!0,Ls=null,Mo=!0,c=px(a,null,h,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(qa(),h===y){a=Zi(o,a,c);break e}mr(o,a,h,c)}a=a.child}return a;case 26:return op(o,a),o===null?(c=PT(a.type,null,a.pendingProps,null))?a.memoizedState=c:Ft||(c=a.type,o=a.pendingProps,h=Ep(ne.current).createElement(c),h[Zn]=a,h[hr]=o,vr(h,c,o),sr(h),a.stateNode=h):a.memoizedState=PT(a.type,o.memoizedProps,a.pendingProps,o.memoizedState),null;case 27:return ve(a),o===null&&Ft&&(h=a.stateNode=IT(a.type,a.pendingProps,ne.current),pr=a,Mo=!0,y=bn,Xs(a.type)?(Hy=y,bn=Do(h.firstChild)):bn=y),mr(o,a,a.pendingProps.children,c),op(o,a),o===null&&(a.flags|=4194304),a.child;case 5:return o===null&&Ft&&((y=h=bn)&&(h=ak(h,a.type,a.pendingProps,Mo),h!==null?(a.stateNode=h,pr=a,bn=Do(h.firstChild),Mo=!1,y=!0):y=!1),y||Ps(a)),ve(a),y=a.type,w=a.pendingProps,I=o!==null?o.memoizedProps:null,h=w.children,Py(y,w)?h=null:I!==null&&Py(y,I)&&(a.flags|=32),a.memoizedState!==null&&(y=Lv(o,a,wP,null,null,c),Uf._currentValue=y),op(o,a),mr(o,a,h,c),a.child;case 6:return o===null&&Ft&&((o=c=bn)&&(c=lk(c,a.pendingProps,Mo),c!==null?(a.stateNode=c,pr=a,bn=null,o=!0):o=!1),o||Ps(a)),null;case 13:return SC(o,a,c);case 4:return Q(a,a.stateNode.containerInfo),h=a.pendingProps,o===null?a.child=Qa(a,null,h,c):mr(o,a,h,c),a.child;case 11:return fC(o,a,a.type,a.pendingProps,c);case 7:return mr(o,a,a.pendingProps,c),a.child;case 8:return mr(o,a,a.pendingProps.children,c),a.child;case 12:return mr(o,a,a.pendingProps.children,c),a.child;case 10:return h=a.pendingProps,ks(a,a.type,h.value),mr(o,a,h.children,c),a.child;case 9:return y=a.type._context,h=a.pendingProps.children,Ya(a),y=gr(y),h=h(y),a.flags|=1,mr(o,a,h,c),a.child;case 14:return dC(o,a,a.type,a.pendingProps,c);case 15:return hC(o,a,a.type,a.pendingProps,c);case 19:return wC(o,a,c);case 31:return MP(o,a,c);case 22:return pC(o,a,c,a.pendingProps);case 24:return Ya(a),h=gr(qn),o===null?(y=Rv(),y===null&&(y=gn,w=Ev(),y.pooledCache=w,w.refCount++,w!==null&&(y.pooledCacheLanes|=c),y=w),a.memoizedState={parent:h,cache:y},Cv(a),ks(a,qn,y)):((o.lanes&c)!==0&&(Tv(o,a),Ef(a,null,null,c),Sf()),y=o.memoizedState,w=a.memoizedState,y.parent!==h?(y={parent:h,cache:h},a.memoizedState=y,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=y),ks(a,qn,h)):(h=w.cache,ks(a,qn,h),h!==y.cache&&Sv(a,[qn],c,!0))),mr(o,a,a.pendingProps.children,c),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function es(o){o.flags|=4}function ay(o,a,c,h,y){if((a=(o.mode&32)!==0)&&(a=!1),a){if(o.flags|=16777216,(y&335544128)===y)if(o.stateNode.complete)o.flags|=8192;else if(KC())o.flags|=8192;else throw Ka=jh,xv}else o.flags&=-16777217}function xC(o,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!HT(a))if(KC())o.flags|=8192;else throw Ka=jh,xv}function sp(o,a){a!==null&&(o.flags|=4),o.flags&16384&&(a=o.tag!==22?Ye():536870912,o.lanes|=a,Eu|=a)}function _f(o,a){if(!Ft)switch(o.tailMode){case"hidden":a=o.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?o.tail=null:c.sibling=null;break;case"collapsed":c=o.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:h.sibling=null}}function Sn(o){var a=o.alternate!==null&&o.alternate.child===o.child,c=0,h=0;if(a)for(var y=o.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags&65011712,h|=y.flags&65011712,y.return=o,y=y.sibling;else for(y=o.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=o,y=y.sibling;return o.subtreeFlags|=h,o.childLanes=c,a}function DP(o,a,c){var h=a.pendingProps;switch(gv(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sn(a),null;case 1:return Sn(a),null;case 3:return c=a.stateNode,h=null,o!==null&&(h=o.memoizedState.cache),a.memoizedState.cache!==h&&(a.flags|=2048),Ki(qn),de(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(o===null||o.child===null)&&(lu(a)?es(a):o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,vv())),Sn(a),null;case 26:var y=a.type,w=a.memoizedState;return o===null?(es(a),w!==null?(Sn(a),xC(a,w)):(Sn(a),ay(a,y,null,h,c))):w?w!==o.memoizedState?(es(a),Sn(a),xC(a,w)):(Sn(a),a.flags&=-16777217):(o=o.memoizedProps,o!==h&&es(a),Sn(a),ay(a,y,o,h,c)),null;case 27:if(ue(a),c=ne.current,y=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==h&&es(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return Sn(a),null}o=te.current,lu(a)?rx(a):(o=IT(y,h,c),a.stateNode=o,es(a))}return Sn(a),null;case 5:if(ue(a),y=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==h&&es(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return Sn(a),null}if(w=te.current,lu(a))rx(a);else{var I=Ep(ne.current);switch(w){case 1:w=I.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:w=I.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":w=I.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":w=I.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":w=I.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof h.is=="string"?I.createElement("select",{is:h.is}):I.createElement("select"),h.multiple?w.multiple=!0:h.size&&(w.size=h.size);break;default:w=typeof h.is=="string"?I.createElement(y,{is:h.is}):I.createElement(y)}}w[Zn]=a,w[hr]=h;e:for(I=a.child;I!==null;){if(I.tag===5||I.tag===6)w.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===a)break e;for(;I.sibling===null;){if(I.return===null||I.return===a)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}a.stateNode=w;e:switch(vr(w,y,h),y){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&es(a)}}return Sn(a),ay(a,a.type,o===null?null:o.memoizedProps,a.pendingProps,c),null;case 6:if(o&&a.stateNode!=null)o.memoizedProps!==h&&es(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error(r(166));if(o=ne.current,lu(a)){if(o=a.stateNode,c=a.memoizedProps,h=null,y=pr,y!==null)switch(y.tag){case 27:case 5:h=y.memoizedProps}o[Zn]=a,o=!!(o.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||ST(o.nodeValue,c)),o||Ps(a,!0)}else o=Ep(o).createTextNode(h),o[Zn]=a,a.stateNode=o}return Sn(a),null;case 31:if(c=a.memoizedState,o===null||o.memoizedState!==null){if(h=lu(a),c!==null){if(o===null){if(!h)throw Error(r(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Zn]=a}else qa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Sn(a),o=!1}else c=vv(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=c),o=!0;if(!o)return a.flags&256?(uo(a),a):(uo(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Sn(a),null;case 13:if(h=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(y=lu(a),h!==null&&h.dehydrated!==null){if(o===null){if(!y)throw Error(r(318));if(y=a.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[Zn]=a}else qa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Sn(a),y=!1}else y=vv(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=y),y=!0;if(!y)return a.flags&256?(uo(a),a):(uo(a),null)}return uo(a),(a.flags&128)!==0?(a.lanes=c,a):(c=h!==null,o=o!==null&&o.memoizedState!==null,c&&(h=a.child,y=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(y=h.alternate.memoizedState.cachePool.pool),w=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),w!==y&&(h.flags|=2048)),c!==o&&c&&(a.child.flags|=8192),sp(a,a.updateQueue),Sn(a),null);case 4:return de(),o===null&&Oy(a.stateNode.containerInfo),Sn(a),null;case 10:return Ki(a.type),Sn(a),null;case 19:if($(zn),h=a.memoizedState,h===null)return Sn(a),null;if(y=(a.flags&128)!==0,w=h.rendering,w===null)if(y)_f(h,!1);else{if(Pn!==0||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(w=Yh(o),w!==null){for(a.flags|=128,_f(h,!1),o=w.updateQueue,a.updateQueue=o,sp(a,o),a.subtreeFlags=0,o=c,c=a.child;c!==null;)JR(c,o),c=c.sibling;return W(zn,zn.current&1|2),Ft&&Xi(a,h.treeForkCount),a.child}o=o.sibling}h.tail!==null&&se()>fp&&(a.flags|=128,y=!0,_f(h,!1),a.lanes=4194304)}else{if(!y)if(o=Yh(w),o!==null){if(a.flags|=128,y=!0,o=o.updateQueue,a.updateQueue=o,sp(a,o),_f(h,!0),h.tail===null&&h.tailMode==="hidden"&&!w.alternate&&!Ft)return Sn(a),null}else 2*se()-h.renderingStartTime>fp&&c!==536870912&&(a.flags|=128,y=!0,_f(h,!1),a.lanes=4194304);h.isBackwards?(w.sibling=a.child,a.child=w):(o=h.last,o!==null?o.sibling=w:a.child=w,h.last=w)}return h.tail!==null?(o=h.tail,h.rendering=o,h.tail=o.sibling,h.renderingStartTime=se(),o.sibling=null,c=zn.current,W(zn,y?c&1|2:c&1),Ft&&Xi(a,h.treeForkCount),o):(Sn(a),null);case 22:case 23:return uo(a),Mv(),h=a.memoizedState!==null,o!==null?o.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(c&536870912)!==0&&(a.flags&128)===0&&(Sn(a),a.subtreeFlags&6&&(a.flags|=8192)):Sn(a),c=a.updateQueue,c!==null&&sp(a,c.retryQueue),c=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==c&&(a.flags|=2048),o!==null&&$(Xa),null;case 24:return c=null,o!==null&&(c=o.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Ki(qn),Sn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function LP(o,a){switch(gv(a),a.tag){case 1:return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return Ki(qn),de(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 26:case 27:case 5:return ue(a),null;case 31:if(a.memoizedState!==null){if(uo(a),a.alternate===null)throw Error(r(340));qa()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 13:if(uo(a),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(r(340));qa()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return $(zn),null;case 4:return de(),null;case 10:return Ki(a.type),null;case 22:case 23:return uo(a),Mv(),o!==null&&$(Xa),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 24:return Ki(qn),null;case 25:return null;default:return null}}function CC(o,a){switch(gv(a),a.tag){case 3:Ki(qn),de();break;case 26:case 27:case 5:ue(a);break;case 4:de();break;case 31:a.memoizedState!==null&&uo(a);break;case 13:uo(a);break;case 19:$(zn);break;case 10:Ki(a.type);break;case 22:case 23:uo(a),Mv(),o!==null&&$(Xa);break;case 24:Ki(qn)}}function Af(o,a){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var y=h.next;c=y;do{if((c.tag&o)===o){h=void 0;var w=c.create,I=c.inst;h=w(),I.destroy=h}c=c.next}while(c!==y)}}catch(z){rn(a,a.return,z)}}function Us(o,a,c){try{var h=a.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var w=y.next;h=w;do{if((h.tag&o)===o){var I=h.inst,z=I.destroy;if(z!==void 0){I.destroy=void 0,y=a;var K=c,ge=z;try{ge()}catch(_e){rn(y,K,_e)}}}h=h.next}while(h!==w)}}catch(_e){rn(a,a.return,_e)}}function TC(o){var a=o.updateQueue;if(a!==null){var c=o.stateNode;try{mx(a,c)}catch(h){rn(o,o.return,h)}}}function _C(o,a,c){c.props=Za(o.type,o.memoizedProps),c.state=o.memoizedState;try{c.componentWillUnmount()}catch(h){rn(o,a,h)}}function Of(o,a){try{var c=o.ref;if(c!==null){switch(o.tag){case 26:case 27:case 5:var h=o.stateNode;break;case 30:h=o.stateNode;break;default:h=o.stateNode}typeof c=="function"?o.refCleanup=c(h):c.current=h}}catch(y){rn(o,a,y)}}function gi(o,a){var c=o.ref,h=o.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(y){rn(o,a,y)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(y){rn(o,a,y)}else c.current=null}function AC(o){var a=o.type,c=o.memoizedProps,h=o.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(y){rn(o,o.return,y)}}function ly(o,a,c){try{var h=o.stateNode;tk(h,o.type,c,a),h[hr]=a}catch(y){rn(o,o.return,y)}}function OC(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Xs(o.type)||o.tag===4}function uy(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||OC(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Xs(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function cy(o,a,c){var h=o.tag;if(h===5||h===6)o=o.stateNode,a?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(o,a):(a=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,a.appendChild(o),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=qi));else if(h!==4&&(h===27&&Xs(o.type)&&(c=o.stateNode,a=null),o=o.child,o!==null))for(cy(o,a,c),o=o.sibling;o!==null;)cy(o,a,c),o=o.sibling}function ap(o,a,c){var h=o.tag;if(h===5||h===6)o=o.stateNode,a?c.insertBefore(o,a):c.appendChild(o);else if(h!==4&&(h===27&&Xs(o.type)&&(c=o.stateNode),o=o.child,o!==null))for(ap(o,a,c),o=o.sibling;o!==null;)ap(o,a,c),o=o.sibling}function MC(o){var a=o.stateNode,c=o.memoizedProps;try{for(var h=o.type,y=a.attributes;y.length;)a.removeAttributeNode(y[0]);vr(a,h,c),a[Zn]=o,a[hr]=c}catch(w){rn(o,o.return,w)}}var ts=!1,Xn=!1,fy=!1,IC=typeof WeakSet=="function"?WeakSet:Set,ar=null;function PP(o,a){if(o=o.containerInfo,Dy=Ap,o=jR(o),ov(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var y=h.anchorOffset,w=h.focusNode;h=h.focusOffset;try{c.nodeType,w.nodeType}catch{c=null;break e}var I=0,z=-1,K=-1,ge=0,_e=0,Me=o,ye=null;t:for(;;){for(var Re;Me!==c||y!==0&&Me.nodeType!==3||(z=I+y),Me!==w||h!==0&&Me.nodeType!==3||(K=I+h),Me.nodeType===3&&(I+=Me.nodeValue.length),(Re=Me.firstChild)!==null;)ye=Me,Me=Re;for(;;){if(Me===o)break t;if(ye===c&&++ge===y&&(z=I),ye===w&&++_e===h&&(K=I),(Re=Me.nextSibling)!==null)break;Me=ye,ye=Me.parentNode}Me=Re}c=z===-1||K===-1?null:{start:z,end:K}}else c=null}c=c||{start:0,end:0}}else c=null;for(Ly={focusedElem:o,selectionRange:c},Ap=!1,ar=a;ar!==null;)if(a=ar,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,ar=o;else for(;ar!==null;){switch(a=ar,w=a.alternate,o=a.flags,a.tag){case 0:if((o&4)!==0&&(o=a.updateQueue,o=o!==null?o.events:null,o!==null))for(c=0;c<o.length;c++)y=o[c],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&w!==null){o=void 0,c=a,y=w.memoizedProps,w=w.memoizedState,h=c.stateNode;try{var Ke=Za(c.type,y);o=h.getSnapshotBeforeUpdate(Ke,w),h.__reactInternalSnapshotBeforeUpdate=o}catch(at){rn(c,c.return,at)}}break;case 3:if((o&1024)!==0){if(o=a.stateNode.containerInfo,c=o.nodeType,c===9)Ny(o);else if(c===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Ny(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=a.sibling,o!==null){o.return=a.return,ar=o;break}ar=a.return}}function DC(o,a,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:rs(o,c),h&4&&Af(5,c);break;case 1:if(rs(o,c),h&4)if(o=c.stateNode,a===null)try{o.componentDidMount()}catch(I){rn(c,c.return,I)}else{var y=Za(c.type,a.memoizedProps);a=a.memoizedState;try{o.componentDidUpdate(y,a,o.__reactInternalSnapshotBeforeUpdate)}catch(I){rn(c,c.return,I)}}h&64&&TC(c),h&512&&Of(c,c.return);break;case 3:if(rs(o,c),h&64&&(o=c.updateQueue,o!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{mx(o,a)}catch(I){rn(c,c.return,I)}}break;case 27:a===null&&h&4&&MC(c);case 26:case 5:rs(o,c),a===null&&h&4&&AC(c),h&512&&Of(c,c.return);break;case 12:rs(o,c);break;case 31:rs(o,c),h&4&&kC(o,c);break;case 13:rs(o,c),h&4&&NC(o,c),h&64&&(o=c.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(c=jP.bind(null,c),uk(o,c))));break;case 22:if(h=c.memoizedState!==null||ts,!h){a=a!==null&&a.memoizedState!==null||Xn,y=ts;var w=Xn;ts=h,(Xn=a)&&!w?os(o,c,(c.subtreeFlags&8772)!==0):rs(o,c),ts=y,Xn=w}break;case 30:break;default:rs(o,c)}}function LC(o){var a=o.alternate;a!==null&&(o.alternate=null,LC(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&U0(a)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var _n=null,Br=!1;function ns(o,a,c){for(c=c.child;c!==null;)PC(o,a,c),c=c.sibling}function PC(o,a,c){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(st,c)}catch{}switch(c.tag){case 26:Xn||gi(c,a),ns(o,a,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Xn||gi(c,a);var h=_n,y=Br;Xs(c.type)&&(_n=c.stateNode,Br=!1),ns(o,a,c),zf(c.stateNode),_n=h,Br=y;break;case 5:Xn||gi(c,a);case 6:if(h=_n,y=Br,_n=null,ns(o,a,c),_n=h,Br=y,_n!==null)if(Br)try{(_n.nodeType===9?_n.body:_n.nodeName==="HTML"?_n.ownerDocument.body:_n).removeChild(c.stateNode)}catch(w){rn(c,a,w)}else try{_n.removeChild(c.stateNode)}catch(w){rn(c,a,w)}break;case 18:_n!==null&&(Br?(o=_n,TT(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,c.stateNode),Ou(o)):TT(_n,c.stateNode));break;case 4:h=_n,y=Br,_n=c.stateNode.containerInfo,Br=!0,ns(o,a,c),_n=h,Br=y;break;case 0:case 11:case 14:case 15:Us(2,c,a),Xn||Us(4,c,a),ns(o,a,c);break;case 1:Xn||(gi(c,a),h=c.stateNode,typeof h.componentWillUnmount=="function"&&_C(c,a,h)),ns(o,a,c);break;case 21:ns(o,a,c);break;case 22:Xn=(h=Xn)||c.memoizedState!==null,ns(o,a,c),Xn=h;break;default:ns(o,a,c)}}function kC(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Ou(o)}catch(c){rn(a,a.return,c)}}}function NC(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ou(o)}catch(c){rn(a,a.return,c)}}function kP(o){switch(o.tag){case 31:case 13:case 19:var a=o.stateNode;return a===null&&(a=o.stateNode=new IC),a;case 22:return o=o.stateNode,a=o._retryCache,a===null&&(a=o._retryCache=new IC),a;default:throw Error(r(435,o.tag))}}function lp(o,a){var c=kP(o);a.forEach(function(h){if(!c.has(h)){c.add(h);var y=$P.bind(null,o,h);h.then(y,y)}})}function Ur(o,a){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var y=c[h],w=o,I=a,z=I;e:for(;z!==null;){switch(z.tag){case 27:if(Xs(z.type)){_n=z.stateNode,Br=!1;break e}break;case 5:_n=z.stateNode,Br=!1;break e;case 3:case 4:_n=z.stateNode.containerInfo,Br=!0;break e}z=z.return}if(_n===null)throw Error(r(160));PC(w,I,y),_n=null,Br=!1,w=y.alternate,w!==null&&(w.return=null),y.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)FC(a,o),a=a.sibling}var Xo=null;function FC(o,a){var c=o.alternate,h=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Ur(a,o),Vr(o),h&4&&(Us(3,o,o.return),Af(3,o),Us(5,o,o.return));break;case 1:Ur(a,o),Vr(o),h&512&&(Xn||c===null||gi(c,c.return)),h&64&&ts&&(o=o.updateQueue,o!==null&&(h=o.callbacks,h!==null&&(c=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var y=Xo;if(Ur(a,o),Vr(o),h&512&&(Xn||c===null||gi(c,c.return)),h&4){var w=c!==null?c.memoizedState:null;if(h=o.memoizedState,c===null)if(h===null)if(o.stateNode===null){e:{h=o.type,c=o.memoizedProps,y=y.ownerDocument||y;t:switch(h){case"title":w=y.getElementsByTagName("title")[0],(!w||w[tf]||w[Zn]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=y.createElement(h),y.head.insertBefore(w,y.querySelector("head > title"))),vr(w,h,c),w[Zn]=o,sr(w),h=w;break e;case"link":var I=FT("link","href",y).get(h+(c.href||""));if(I){for(var z=0;z<I.length;z++)if(w=I[z],w.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&w.getAttribute("rel")===(c.rel==null?null:c.rel)&&w.getAttribute("title")===(c.title==null?null:c.title)&&w.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){I.splice(z,1);break t}}w=y.createElement(h),vr(w,h,c),y.head.appendChild(w);break;case"meta":if(I=FT("meta","content",y).get(h+(c.content||""))){for(z=0;z<I.length;z++)if(w=I[z],w.getAttribute("content")===(c.content==null?null:""+c.content)&&w.getAttribute("name")===(c.name==null?null:c.name)&&w.getAttribute("property")===(c.property==null?null:c.property)&&w.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&w.getAttribute("charset")===(c.charSet==null?null:c.charSet)){I.splice(z,1);break t}}w=y.createElement(h),vr(w,h,c),y.head.appendChild(w);break;default:throw Error(r(468,h))}w[Zn]=o,sr(w),h=w}o.stateNode=h}else zT(y,o.type,o.stateNode);else o.stateNode=NT(y,h,o.memoizedProps);else w!==h?(w===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):w.count--,h===null?zT(y,o.type,o.stateNode):NT(y,h,o.memoizedProps)):h===null&&o.stateNode!==null&&ly(o,o.memoizedProps,c.memoizedProps)}break;case 27:Ur(a,o),Vr(o),h&512&&(Xn||c===null||gi(c,c.return)),c!==null&&h&4&&ly(o,o.memoizedProps,c.memoizedProps);break;case 5:if(Ur(a,o),Vr(o),h&512&&(Xn||c===null||gi(c,c.return)),o.flags&32){y=o.stateNode;try{Jl(y,"")}catch(Ke){rn(o,o.return,Ke)}}h&4&&o.stateNode!=null&&(y=o.memoizedProps,ly(o,y,c!==null?c.memoizedProps:y)),h&1024&&(fy=!0);break;case 6:if(Ur(a,o),Vr(o),h&4){if(o.stateNode===null)throw Error(r(162));h=o.memoizedProps,c=o.stateNode;try{c.nodeValue=h}catch(Ke){rn(o,o.return,Ke)}}break;case 3:if(xp=null,y=Xo,Xo=wp(a.containerInfo),Ur(a,o),Xo=y,Vr(o),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Ou(a.containerInfo)}catch(Ke){rn(o,o.return,Ke)}fy&&(fy=!1,zC(o));break;case 4:h=Xo,Xo=wp(o.stateNode.containerInfo),Ur(a,o),Vr(o),Xo=h;break;case 12:Ur(a,o),Vr(o);break;case 31:Ur(a,o),Vr(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,lp(o,h)));break;case 13:Ur(a,o),Vr(o),o.child.flags&8192&&o.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(cp=se()),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,lp(o,h)));break;case 22:y=o.memoizedState!==null;var K=c!==null&&c.memoizedState!==null,ge=ts,_e=Xn;if(ts=ge||y,Xn=_e||K,Ur(a,o),Xn=_e,ts=ge,Vr(o),h&8192)e:for(a=o.stateNode,a._visibility=y?a._visibility&-2:a._visibility|1,y&&(c===null||K||ts||Xn||el(o)),c=null,a=o;;){if(a.tag===5||a.tag===26){if(c===null){K=c=a;try{if(w=K.stateNode,y)I=w.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{z=K.stateNode;var Me=K.memoizedProps.style,ye=Me!=null&&Me.hasOwnProperty("display")?Me.display:null;z.style.display=ye==null||typeof ye=="boolean"?"":(""+ye).trim()}}catch(Ke){rn(K,K.return,Ke)}}}else if(a.tag===6){if(c===null){K=a;try{K.stateNode.nodeValue=y?"":K.memoizedProps}catch(Ke){rn(K,K.return,Ke)}}}else if(a.tag===18){if(c===null){K=a;try{var Re=K.stateNode;y?_T(Re,!0):_T(K.stateNode,!1)}catch(Ke){rn(K,K.return,Ke)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===o)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;c===a&&(c=null),a=a.return}c===a&&(c=null),a.sibling.return=a.return,a=a.sibling}h&4&&(h=o.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,lp(o,c))));break;case 19:Ur(a,o),Vr(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,lp(o,h)));break;case 30:break;case 21:break;default:Ur(a,o),Vr(o)}}function Vr(o){var a=o.flags;if(a&2){try{for(var c,h=o.return;h!==null;){if(OC(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var y=c.stateNode,w=uy(o);ap(o,w,y);break;case 5:var I=c.stateNode;c.flags&32&&(Jl(I,""),c.flags&=-33);var z=uy(o);ap(o,z,I);break;case 3:case 4:var K=c.stateNode.containerInfo,ge=uy(o);cy(o,ge,K);break;default:throw Error(r(161))}}catch(_e){rn(o,o.return,_e)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function zC(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var a=o;zC(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),o=o.sibling}}function rs(o,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)DC(o,a.alternate,a),a=a.sibling}function el(o){for(o=o.child;o!==null;){var a=o;switch(a.tag){case 0:case 11:case 14:case 15:Us(4,a,a.return),el(a);break;case 1:gi(a,a.return);var c=a.stateNode;typeof c.componentWillUnmount=="function"&&_C(a,a.return,c),el(a);break;case 27:zf(a.stateNode);case 26:case 5:gi(a,a.return),el(a);break;case 22:a.memoizedState===null&&el(a);break;case 30:el(a);break;default:el(a)}o=o.sibling}}function os(o,a,c){for(c=c&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var h=a.alternate,y=o,w=a,I=w.flags;switch(w.tag){case 0:case 11:case 15:os(y,w,c),Af(4,w);break;case 1:if(os(y,w,c),h=w,y=h.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(ge){rn(h,h.return,ge)}if(h=w,y=h.updateQueue,y!==null){var z=h.stateNode;try{var K=y.shared.hiddenCallbacks;if(K!==null)for(y.shared.hiddenCallbacks=null,y=0;y<K.length;y++)gx(K[y],z)}catch(ge){rn(h,h.return,ge)}}c&&I&64&&TC(w),Of(w,w.return);break;case 27:MC(w);case 26:case 5:os(y,w,c),c&&h===null&&I&4&&AC(w),Of(w,w.return);break;case 12:os(y,w,c);break;case 31:os(y,w,c),c&&I&4&&kC(y,w);break;case 13:os(y,w,c),c&&I&4&&NC(y,w);break;case 22:w.memoizedState===null&&os(y,w,c),Of(w,w.return);break;case 30:break;default:os(y,w,c)}a=a.sibling}}function dy(o,a){var c=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==c&&(o!=null&&o.refCount++,c!=null&&gf(c))}function hy(o,a){o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&gf(o))}function Wo(o,a,c,h){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)HC(o,a,c,h),a=a.sibling}function HC(o,a,c,h){var y=a.flags;switch(a.tag){case 0:case 11:case 15:Wo(o,a,c,h),y&2048&&Af(9,a);break;case 1:Wo(o,a,c,h);break;case 3:Wo(o,a,c,h),y&2048&&(o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&gf(o)));break;case 12:if(y&2048){Wo(o,a,c,h),o=a.stateNode;try{var w=a.memoizedProps,I=w.id,z=w.onPostCommit;typeof z=="function"&&z(I,a.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(K){rn(a,a.return,K)}}else Wo(o,a,c,h);break;case 31:Wo(o,a,c,h);break;case 13:Wo(o,a,c,h);break;case 23:break;case 22:w=a.stateNode,I=a.alternate,a.memoizedState!==null?w._visibility&2?Wo(o,a,c,h):Mf(o,a):w._visibility&2?Wo(o,a,c,h):(w._visibility|=2,yu(o,a,c,h,(a.subtreeFlags&10256)!==0||!1)),y&2048&&dy(I,a);break;case 24:Wo(o,a,c,h),y&2048&&hy(a.alternate,a);break;default:Wo(o,a,c,h)}}function yu(o,a,c,h,y){for(y=y&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var w=o,I=a,z=c,K=h,ge=I.flags;switch(I.tag){case 0:case 11:case 15:yu(w,I,z,K,y),Af(8,I);break;case 23:break;case 22:var _e=I.stateNode;I.memoizedState!==null?_e._visibility&2?yu(w,I,z,K,y):Mf(w,I):(_e._visibility|=2,yu(w,I,z,K,y)),y&&ge&2048&&dy(I.alternate,I);break;case 24:yu(w,I,z,K,y),y&&ge&2048&&hy(I.alternate,I);break;default:yu(w,I,z,K,y)}a=a.sibling}}function Mf(o,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var c=o,h=a,y=h.flags;switch(h.tag){case 22:Mf(c,h),y&2048&&dy(h.alternate,h);break;case 24:Mf(c,h),y&2048&&hy(h.alternate,h);break;default:Mf(c,h)}a=a.sibling}}var If=8192;function bu(o,a,c){if(o.subtreeFlags&If)for(o=o.child;o!==null;)BC(o,a,c),o=o.sibling}function BC(o,a,c){switch(o.tag){case 26:bu(o,a,c),o.flags&If&&o.memoizedState!==null&&Ek(c,Xo,o.memoizedState,o.memoizedProps);break;case 5:bu(o,a,c);break;case 3:case 4:var h=Xo;Xo=wp(o.stateNode.containerInfo),bu(o,a,c),Xo=h;break;case 22:o.memoizedState===null&&(h=o.alternate,h!==null&&h.memoizedState!==null?(h=If,If=16777216,bu(o,a,c),If=h):bu(o,a,c));break;default:bu(o,a,c)}}function UC(o){var a=o.alternate;if(a!==null&&(o=a.child,o!==null)){a.child=null;do a=o.sibling,o.sibling=null,o=a;while(o!==null)}}function Df(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];ar=h,jC(h,o)}UC(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)VC(o),o=o.sibling}function VC(o){switch(o.tag){case 0:case 11:case 15:Df(o),o.flags&2048&&Us(9,o,o.return);break;case 3:Df(o);break;case 12:Df(o);break;case 22:var a=o.stateNode;o.memoizedState!==null&&a._visibility&2&&(o.return===null||o.return.tag!==13)?(a._visibility&=-3,up(o)):Df(o);break;default:Df(o)}}function up(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];ar=h,jC(h,o)}UC(o)}for(o=o.child;o!==null;){switch(a=o,a.tag){case 0:case 11:case 15:Us(8,a,a.return),up(a);break;case 22:c=a.stateNode,c._visibility&2&&(c._visibility&=-3,up(a));break;default:up(a)}o=o.sibling}}function jC(o,a){for(;ar!==null;){var c=ar;switch(c.tag){case 0:case 11:case 15:Us(8,c,a);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:gf(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,ar=h;else e:for(c=o;ar!==null;){h=ar;var y=h.sibling,w=h.return;if(LC(h),h===c){ar=null;break e}if(y!==null){y.return=w,ar=y;break e}ar=w}}}var NP={getCacheForType:function(o){var a=gr(qn),c=a.data.get(o);return c===void 0&&(c=o(),a.data.set(o,c)),c},cacheSignal:function(){return gr(qn).controller.signal}},FP=typeof WeakMap=="function"?WeakMap:Map,Xt=0,gn=null,Lt=null,kt=0,nn=0,co=null,Vs=!1,Su=!1,py=!1,is=0,Pn=0,js=0,tl=0,gy=0,fo=0,Eu=0,Lf=null,jr=null,my=!1,cp=0,$C=0,fp=1/0,dp=null,$s=null,er=0,qs=null,wu=null,ss=0,vy=0,yy=null,qC=null,Pf=0,by=null;function ho(){return(Xt&2)!==0&&kt!==0?kt&-kt:P.T!==null?Cy():$n()}function GC(){if(fo===0)if((kt&536870912)===0||Ft){var o=Yt;Yt<<=1,(Yt&3932160)===0&&(Yt=262144),fo=o}else fo=536870912;return o=lo.current,o!==null&&(o.flags|=32),fo}function $r(o,a,c){(o===gn&&(nn===2||nn===9)||o.cancelPendingCommit!==null)&&(Ru(o,0),Gs(o,kt,fo,!1)),tn(o,c),((Xt&2)===0||o!==gn)&&(o===gn&&((Xt&2)===0&&(tl|=c),Pn===4&&Gs(o,kt,fo,!1)),mi(o))}function YC(o,a,c){if((Xt&6)!==0)throw Error(r(327));var h=!c&&(a&127)===0&&(a&o.expiredLanes)===0||Bt(o,a),y=h?BP(o,a):Ey(o,a,!0),w=h;do{if(y===0){Su&&!h&&Gs(o,a,0,!1);break}else{if(c=o.current.alternate,w&&!zP(c)){y=Ey(o,a,!1),w=!1;continue}if(y===2){if(w=a,o.errorRecoveryDisabledLanes&w)var I=0;else I=o.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){a=I;e:{var z=o;y=Lf;var K=z.current.memoizedState.isDehydrated;if(K&&(Ru(z,I).flags|=256),I=Ey(z,I,!1),I!==2){if(py&&!K){z.errorRecoveryDisabledLanes|=w,tl|=w,y=4;break e}w=jr,jr=y,w!==null&&(jr===null?jr=w:jr.push.apply(jr,w))}y=I}if(w=!1,y!==2)continue}}if(y===1){Ru(o,0),Gs(o,a,0,!0);break}e:{switch(h=o,w=y,w){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Gs(h,a,fo,!Vs);break e;case 2:jr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(y=cp+300-se(),10<y)){if(Gs(h,a,fo,!Vs),dt(h,0,!0)!==0)break e;ss=a,h.timeoutHandle=xT(XC.bind(null,h,c,jr,dp,my,a,fo,tl,Eu,Vs,w,"Throttled",-0,0),y);break e}XC(h,c,jr,dp,my,a,fo,tl,Eu,Vs,w,null,-0,0)}}break}while(!0);mi(o)}function XC(o,a,c,h,y,w,I,z,K,ge,_e,Me,ye,Re){if(o.timeoutHandle=-1,Me=a.subtreeFlags,Me&8192||(Me&16785408)===16785408){Me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qi},BC(a,w,Me);var Ke=(w&62914560)===w?cp-se():(w&4194048)===w?$C-se():0;if(Ke=wk(Me,Ke),Ke!==null){ss=w,o.cancelPendingCommit=Ke(nT.bind(null,o,a,w,c,h,y,I,z,K,_e,Me,null,ye,Re)),Gs(o,w,I,!ge);return}}nT(o,a,w,c,h,y,I,z,K)}function zP(o){for(var a=o;;){var c=a.tag;if((c===0||c===11||c===15)&&a.flags&16384&&(c=a.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var y=c[h],w=y.getSnapshot;y=y.value;try{if(!so(w(),y))return!1}catch{return!1}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Gs(o,a,c,h){a&=~gy,a&=~tl,o.suspendedLanes|=a,o.pingedLanes&=~a,h&&(o.warmLanes|=a),h=o.expirationTimes;for(var y=a;0<y;){var w=31-ze(y),I=1<<w;h[w]=-1,y&=~I}c!==0&&ln(o,c,a)}function hp(){return(Xt&6)===0?(kf(0),!1):!0}function Sy(){if(Lt!==null){if(nn===0)var o=Lt.return;else o=Lt,Wi=Ga=null,Nv(o),hu=null,vf=0,o=Lt;for(;o!==null;)CC(o.alternate,o),o=o.return;Lt=null}}function Ru(o,a){var c=o.timeoutHandle;c!==-1&&(o.timeoutHandle=-1,ok(c)),c=o.cancelPendingCommit,c!==null&&(o.cancelPendingCommit=null,c()),ss=0,Sy(),gn=o,Lt=c=Yi(o.current,null),kt=a,nn=0,co=null,Vs=!1,Su=Bt(o,a),py=!1,Eu=fo=gy=tl=js=Pn=0,jr=Lf=null,my=!1,(a&8)!==0&&(a|=a&32);var h=o.entangledLanes;if(h!==0)for(o=o.entanglements,h&=a;0<h;){var y=31-ze(h),w=1<<y;a|=o[y],h&=~w}return is=a,Ph(),c}function WC(o,a){wt=null,P.H=Cf,a===du||a===Vh?(a=fx(),nn=3):a===xv?(a=fx(),nn=4):nn=a===Jv?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,co=a,Lt===null&&(Pn=1,np(o,_o(a,o.current)))}function KC(){var o=lo.current;return o===null?!0:(kt&4194048)===kt?Io===null:(kt&62914560)===kt||(kt&536870912)!==0?o===Io:!1}function QC(){var o=P.H;return P.H=Cf,o===null?Cf:o}function JC(){var o=P.A;return P.A=NP,o}function pp(){Pn=4,Vs||(kt&4194048)!==kt&&lo.current!==null||(Su=!0),(js&134217727)===0&&(tl&134217727)===0||gn===null||Gs(gn,kt,fo,!1)}function Ey(o,a,c){var h=Xt;Xt|=2;var y=QC(),w=JC();(gn!==o||kt!==a)&&(dp=null,Ru(o,a)),a=!1;var I=Pn;e:do try{if(nn!==0&&Lt!==null){var z=Lt,K=co;switch(nn){case 8:Sy(),I=6;break e;case 3:case 2:case 9:case 6:lo.current===null&&(a=!0);var ge=nn;if(nn=0,co=null,xu(o,z,K,ge),c&&Su){I=0;break e}break;default:ge=nn,nn=0,co=null,xu(o,z,K,ge)}}HP(),I=Pn;break}catch(_e){WC(o,_e)}while(!0);return a&&o.shellSuspendCounter++,Wi=Ga=null,Xt=h,P.H=y,P.A=w,Lt===null&&(gn=null,kt=0,Ph()),I}function HP(){for(;Lt!==null;)ZC(Lt)}function BP(o,a){var c=Xt;Xt|=2;var h=QC(),y=JC();gn!==o||kt!==a?(dp=null,fp=se()+500,Ru(o,a)):Su=Bt(o,a);e:do try{if(nn!==0&&Lt!==null){a=Lt;var w=co;t:switch(nn){case 1:nn=0,co=null,xu(o,a,w,1);break;case 2:case 9:if(ux(w)){nn=0,co=null,eT(a);break}a=function(){nn!==2&&nn!==9||gn!==o||(nn=7),mi(o)},w.then(a,a);break e;case 3:nn=7;break e;case 4:nn=5;break e;case 7:ux(w)?(nn=0,co=null,eT(a)):(nn=0,co=null,xu(o,a,w,7));break;case 5:var I=null;switch(Lt.tag){case 26:I=Lt.memoizedState;case 5:case 27:var z=Lt;if(I?HT(I):z.stateNode.complete){nn=0,co=null;var K=z.sibling;if(K!==null)Lt=K;else{var ge=z.return;ge!==null?(Lt=ge,gp(ge)):Lt=null}break t}}nn=0,co=null,xu(o,a,w,5);break;case 6:nn=0,co=null,xu(o,a,w,6);break;case 8:Sy(),Pn=6;break e;default:throw Error(r(462))}}UP();break}catch(_e){WC(o,_e)}while(!0);return Wi=Ga=null,P.H=h,P.A=y,Xt=c,Lt!==null?0:(gn=null,kt=0,Ph(),Pn)}function UP(){for(;Lt!==null&&!Z();)ZC(Lt)}function ZC(o){var a=RC(o.alternate,o,is);o.memoizedProps=o.pendingProps,a===null?gp(o):Lt=a}function eT(o){var a=o,c=a.alternate;switch(a.tag){case 15:case 0:a=vC(c,a,a.pendingProps,a.type,void 0,kt);break;case 11:a=vC(c,a,a.pendingProps,a.type.render,a.ref,kt);break;case 5:Nv(a);default:CC(c,a),a=Lt=JR(a,is),a=RC(c,a,is)}o.memoizedProps=o.pendingProps,a===null?gp(o):Lt=a}function xu(o,a,c,h){Wi=Ga=null,Nv(a),hu=null,vf=0;var y=a.return;try{if(OP(o,y,a,c,kt)){Pn=1,np(o,_o(c,o.current)),Lt=null;return}}catch(w){if(y!==null)throw Lt=y,w;Pn=1,np(o,_o(c,o.current)),Lt=null;return}a.flags&32768?(Ft||h===1?o=!0:Su||(kt&536870912)!==0?o=!1:(Vs=o=!0,(h===2||h===9||h===3||h===6)&&(h=lo.current,h!==null&&h.tag===13&&(h.flags|=16384))),tT(a,o)):gp(a)}function gp(o){var a=o;do{if((a.flags&32768)!==0){tT(a,Vs);return}o=a.return;var c=DP(a.alternate,a,is);if(c!==null){Lt=c;return}if(a=a.sibling,a!==null){Lt=a;return}Lt=a=o}while(a!==null);Pn===0&&(Pn=5)}function tT(o,a){do{var c=LP(o.alternate,o);if(c!==null){c.flags&=32767,Lt=c;return}if(c=o.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!a&&(o=o.sibling,o!==null)){Lt=o;return}Lt=o=c}while(o!==null);Pn=6,Lt=null}function nT(o,a,c,h,y,w,I,z,K){o.cancelPendingCommit=null;do mp();while(er!==0);if((Xt&6)!==0)throw Error(r(327));if(a!==null){if(a===o.current)throw Error(r(177));if(w=a.lanes|a.childLanes,w|=uv,Ut(o,c,w,I,z,K),o===gn&&(Lt=gn=null,kt=0),wu=a,qs=o,ss=c,vy=w,yy=y,qC=h,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,qP(ke,function(){return aT(),null})):(o.callbackNode=null,o.callbackPriority=0),h=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||h){h=P.T,P.T=null,y=G.p,G.p=2,I=Xt,Xt|=4;try{PP(o,a,c)}finally{Xt=I,G.p=y,P.T=h}}er=1,rT(),oT(),iT()}}function rT(){if(er===1){er=0;var o=qs,a=wu,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=P.T,P.T=null;var h=G.p;G.p=2;var y=Xt;Xt|=4;try{FC(a,o);var w=Ly,I=jR(o.containerInfo),z=w.focusedElem,K=w.selectionRange;if(I!==z&&z&&z.ownerDocument&&VR(z.ownerDocument.documentElement,z)){if(K!==null&&ov(z)){var ge=K.start,_e=K.end;if(_e===void 0&&(_e=ge),"selectionStart"in z)z.selectionStart=ge,z.selectionEnd=Math.min(_e,z.value.length);else{var Me=z.ownerDocument||document,ye=Me&&Me.defaultView||window;if(ye.getSelection){var Re=ye.getSelection(),Ke=z.textContent.length,at=Math.min(K.start,Ke),fn=K.end===void 0?at:Math.min(K.end,Ke);!Re.extend&&at>fn&&(I=fn,fn=at,at=I);var le=UR(z,at),oe=UR(z,fn);if(le&&oe&&(Re.rangeCount!==1||Re.anchorNode!==le.node||Re.anchorOffset!==le.offset||Re.focusNode!==oe.node||Re.focusOffset!==oe.offset)){var pe=Me.createRange();pe.setStart(le.node,le.offset),Re.removeAllRanges(),at>fn?(Re.addRange(pe),Re.extend(oe.node,oe.offset)):(pe.setEnd(oe.node,oe.offset),Re.addRange(pe))}}}}for(Me=[],Re=z;Re=Re.parentNode;)Re.nodeType===1&&Me.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<Me.length;z++){var Oe=Me[z];Oe.element.scrollLeft=Oe.left,Oe.element.scrollTop=Oe.top}}Ap=!!Dy,Ly=Dy=null}finally{Xt=y,G.p=h,P.T=c}}o.current=a,er=2}}function oT(){if(er===2){er=0;var o=qs,a=wu,c=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||c){c=P.T,P.T=null;var h=G.p;G.p=2;var y=Xt;Xt|=4;try{DC(o,a.alternate,a)}finally{Xt=y,G.p=h,P.T=c}}er=3}}function iT(){if(er===4||er===3){er=0,ie();var o=qs,a=wu,c=ss,h=qC;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?er=5:(er=0,wu=qs=null,sT(o,o.pendingLanes));var y=o.pendingLanes;if(y===0&&($s=null),Fr(c),a=a.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(st,a,void 0,(a.current.flags&128)===128)}catch{}if(h!==null){a=P.T,y=G.p,G.p=2,P.T=null;try{for(var w=o.onRecoverableError,I=0;I<h.length;I++){var z=h[I];w(z.value,{componentStack:z.stack})}}finally{P.T=a,G.p=y}}(ss&3)!==0&&mp(),mi(o),y=o.pendingLanes,(c&261930)!==0&&(y&42)!==0?o===by?Pf++:(Pf=0,by=o):Pf=0,kf(0)}}function sT(o,a){(o.pooledCacheLanes&=a)===0&&(a=o.pooledCache,a!=null&&(o.pooledCache=null,gf(a)))}function mp(){return rT(),oT(),iT(),aT()}function aT(){if(er!==5)return!1;var o=qs,a=vy;vy=0;var c=Fr(ss),h=P.T,y=G.p;try{G.p=32>c?32:c,P.T=null,c=yy,yy=null;var w=qs,I=ss;if(er=0,wu=qs=null,ss=0,(Xt&6)!==0)throw Error(r(331));var z=Xt;if(Xt|=4,VC(w.current),HC(w,w.current,I,c),Xt=z,kf(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(st,w)}catch{}return!0}finally{G.p=y,P.T=h,sT(o,a)}}function lT(o,a,c){a=_o(c,a),a=Qv(o.stateNode,a,2),o=zs(o,a,2),o!==null&&(tn(o,2),mi(o))}function rn(o,a,c){if(o.tag===3)lT(o,o,c);else for(;a!==null;){if(a.tag===3){lT(a,o,c);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&($s===null||!$s.has(h))){o=_o(c,o),c=uC(2),h=zs(a,c,2),h!==null&&(cC(c,h,a,o),tn(h,2),mi(h));break}}a=a.return}}function wy(o,a,c){var h=o.pingCache;if(h===null){h=o.pingCache=new FP;var y=new Set;h.set(a,y)}else y=h.get(a),y===void 0&&(y=new Set,h.set(a,y));y.has(c)||(py=!0,y.add(c),o=VP.bind(null,o,a,c),a.then(o,o))}function VP(o,a,c){var h=o.pingCache;h!==null&&h.delete(a),o.pingedLanes|=o.suspendedLanes&c,o.warmLanes&=~c,gn===o&&(kt&c)===c&&(Pn===4||Pn===3&&(kt&62914560)===kt&&300>se()-cp?(Xt&2)===0&&Ru(o,0):gy|=c,Eu===kt&&(Eu=0)),mi(o)}function uT(o,a){a===0&&(a=Ye()),o=ja(o,a),o!==null&&(tn(o,a),mi(o))}function jP(o){var a=o.memoizedState,c=0;a!==null&&(c=a.retryLane),uT(o,c)}function $P(o,a){var c=0;switch(o.tag){case 31:case 13:var h=o.stateNode,y=o.memoizedState;y!==null&&(c=y.retryLane);break;case 19:h=o.stateNode;break;case 22:h=o.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(a),uT(o,c)}function qP(o,a){return V(o,a)}var vp=null,Cu=null,Ry=!1,yp=!1,xy=!1,Ys=0;function mi(o){o!==Cu&&o.next===null&&(Cu===null?vp=Cu=o:Cu=Cu.next=o),yp=!0,Ry||(Ry=!0,YP())}function kf(o,a){if(!xy&&yp){xy=!0;do for(var c=!1,h=vp;h!==null;){if(o!==0){var y=h.pendingLanes;if(y===0)var w=0;else{var I=h.suspendedLanes,z=h.pingedLanes;w=(1<<31-ze(42|o)+1)-1,w&=y&~(I&~z),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(c=!0,hT(h,w))}else w=kt,w=dt(h,h===gn?w:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(w&3)===0||Bt(h,w)||(c=!0,hT(h,w));h=h.next}while(c);xy=!1}}function GP(){cT()}function cT(){yp=Ry=!1;var o=0;Ys!==0&&rk()&&(o=Ys);for(var a=se(),c=null,h=vp;h!==null;){var y=h.next,w=fT(h,a);w===0?(h.next=null,c===null?vp=y:c.next=y,y===null&&(Cu=c)):(c=h,(o!==0||(w&3)!==0)&&(yp=!0)),h=y}er!==0&&er!==5||kf(o),Ys!==0&&(Ys=0)}function fT(o,a){for(var c=o.suspendedLanes,h=o.pingedLanes,y=o.expirationTimes,w=o.pendingLanes&-62914561;0<w;){var I=31-ze(w),z=1<<I,K=y[I];K===-1?((z&c)===0||(z&h)!==0)&&(y[I]=an(z,a)):K<=a&&(o.expiredLanes|=z),w&=~z}if(a=gn,c=kt,c=dt(o,o===a?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h=o.callbackNode,c===0||o===a&&(nn===2||nn===9)||o.cancelPendingCommit!==null)return h!==null&&h!==null&&X(h),o.callbackNode=null,o.callbackPriority=0;if((c&3)===0||Bt(o,c)){if(a=c&-c,a===o.callbackPriority)return a;switch(h!==null&&X(h),Fr(c)){case 2:case 8:c=Ue;break;case 32:c=ke;break;case 268435456:c=nt;break;default:c=ke}return h=dT.bind(null,o),c=V(c,h),o.callbackPriority=a,o.callbackNode=c,a}return h!==null&&h!==null&&X(h),o.callbackPriority=2,o.callbackNode=null,2}function dT(o,a){if(er!==0&&er!==5)return o.callbackNode=null,o.callbackPriority=0,null;var c=o.callbackNode;if(mp()&&o.callbackNode!==c)return null;var h=kt;return h=dt(o,o===gn?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h===0?null:(YC(o,h,a),fT(o,se()),o.callbackNode!=null&&o.callbackNode===c?dT.bind(null,o):null)}function hT(o,a){if(mp())return null;YC(o,a,!0)}function YP(){ik(function(){(Xt&6)!==0?V(Ie,GP):cT()})}function Cy(){if(Ys===0){var o=cu;o===0&&(o=ft,ft<<=1,(ft&261888)===0&&(ft=256)),Ys=o}return Ys}function pT(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Th(""+o)}function gT(o,a){var c=a.ownerDocument.createElement("input");return c.name=a.name,c.value=a.value,o.id&&c.setAttribute("form",o.id),a.parentNode.insertBefore(c,a),o=new FormData(o),c.parentNode.removeChild(c),o}function XP(o,a,c,h,y){if(a==="submit"&&c&&c.stateNode===y){var w=pT((y[hr]||null).action),I=h.submitter;I&&(a=(a=I[hr]||null)?pT(a.formAction):I.getAttribute("formAction"),a!==null&&(w=a,I=null));var z=new Mh("action","action",null,h,y);o.push({event:z,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Ys!==0){var K=I?gT(y,I):new FormData(y);qv(c,{pending:!0,data:K,method:y.method,action:w},null,K)}}else typeof w=="function"&&(z.preventDefault(),K=I?gT(y,I):new FormData(y),qv(c,{pending:!0,data:K,method:y.method,action:w},w,K))},currentTarget:y}]})}}for(var Ty=0;Ty<lv.length;Ty++){var _y=lv[Ty],WP=_y.toLowerCase(),KP=_y[0].toUpperCase()+_y.slice(1);Yo(WP,"on"+KP)}Yo(GR,"onAnimationEnd"),Yo(YR,"onAnimationIteration"),Yo(XR,"onAnimationStart"),Yo("dblclick","onDoubleClick"),Yo("focusin","onFocus"),Yo("focusout","onBlur"),Yo(dP,"onTransitionRun"),Yo(hP,"onTransitionStart"),Yo(pP,"onTransitionCancel"),Yo(WR,"onTransitionEnd"),Kl("onMouseEnter",["mouseout","mouseover"]),Kl("onMouseLeave",["mouseout","mouseover"]),Kl("onPointerEnter",["pointerout","pointerover"]),Kl("onPointerLeave",["pointerout","pointerover"]),Ha("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ha("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ha("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ha("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ha("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ha("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),QP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nf));function mT(o,a){a=(a&4)!==0;for(var c=0;c<o.length;c++){var h=o[c],y=h.event;h=h.listeners;e:{var w=void 0;if(a)for(var I=h.length-1;0<=I;I--){var z=h[I],K=z.instance,ge=z.currentTarget;if(z=z.listener,K!==w&&y.isPropagationStopped())break e;w=z,y.currentTarget=ge;try{w(y)}catch(_e){Lh(_e)}y.currentTarget=null,w=K}else for(I=0;I<h.length;I++){if(z=h[I],K=z.instance,ge=z.currentTarget,z=z.listener,K!==w&&y.isPropagationStopped())break e;w=z,y.currentTarget=ge;try{w(y)}catch(_e){Lh(_e)}y.currentTarget=null,w=K}}}}function Pt(o,a){var c=a[Gl];c===void 0&&(c=a[Gl]=new Set);var h=o+"__bubble";c.has(h)||(vT(a,o,2,!1),c.add(h))}function Ay(o,a,c){var h=0;a&&(h|=4),vT(c,o,h,a)}var bp="_reactListening"+Math.random().toString(36).slice(2);function Oy(o){if(!o[bp]){o[bp]=!0,cR.forEach(function(c){c!=="selectionchange"&&(QP.has(c)||Ay(c,!1,o),Ay(c,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[bp]||(a[bp]=!0,Ay("selectionchange",!1,a))}}function vT(o,a,c,h){switch(GT(a)){case 2:var y=Ck;break;case 8:y=Tk;break;default:y=$y}c=y.bind(null,a,c,o),y=void 0,!W0||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(y=!0),h?y!==void 0?o.addEventListener(a,c,{capture:!0,passive:y}):o.addEventListener(a,c,!0):y!==void 0?o.addEventListener(a,c,{passive:y}):o.addEventListener(a,c,!1)}function My(o,a,c,h,y){var w=h;if((a&1)===0&&(a&2)===0&&h!==null)e:for(;;){if(h===null)return;var I=h.tag;if(I===3||I===4){var z=h.stateNode.containerInfo;if(z===y)break;if(I===4)for(I=h.return;I!==null;){var K=I.tag;if((K===3||K===4)&&I.stateNode.containerInfo===y)return;I=I.return}for(;z!==null;){if(I=Yl(z),I===null)return;if(K=I.tag,K===5||K===6||K===26||K===27){h=w=I;continue e}z=z.parentNode}}h=h.return}wR(function(){var ge=w,_e=Y0(c),Me=[];e:{var ye=KR.get(o);if(ye!==void 0){var Re=Mh,Ke=o;switch(o){case"keypress":if(Ah(c)===0)break e;case"keydown":case"keyup":Re=$L;break;case"focusin":Ke="focus",Re=Z0;break;case"focusout":Ke="blur",Re=Z0;break;case"beforeblur":case"afterblur":Re=Z0;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=CR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=DL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=YL;break;case GR:case YR:case XR:Re=kL;break;case WR:Re=WL;break;case"scroll":case"scrollend":Re=ML;break;case"wheel":Re=QL;break;case"copy":case"cut":case"paste":Re=FL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=_R;break;case"toggle":case"beforetoggle":Re=ZL}var at=(a&4)!==0,fn=!at&&(o==="scroll"||o==="scrollend"),le=at?ye!==null?ye+"Capture":null:ye;at=[];for(var oe=ge,pe;oe!==null;){var Oe=oe;if(pe=Oe.stateNode,Oe=Oe.tag,Oe!==5&&Oe!==26&&Oe!==27||pe===null||le===null||(Oe=rf(oe,le),Oe!=null&&at.push(Ff(oe,Oe,pe))),fn)break;oe=oe.return}0<at.length&&(ye=new Re(ye,Ke,null,c,_e),Me.push({event:ye,listeners:at}))}}if((a&7)===0){e:{if(ye=o==="mouseover"||o==="pointerover",Re=o==="mouseout"||o==="pointerout",ye&&c!==G0&&(Ke=c.relatedTarget||c.fromElement)&&(Yl(Ke)||Ke[ji]))break e;if((Re||ye)&&(ye=_e.window===_e?_e:(ye=_e.ownerDocument)?ye.defaultView||ye.parentWindow:window,Re?(Ke=c.relatedTarget||c.toElement,Re=ge,Ke=Ke?Yl(Ke):null,Ke!==null&&(fn=s(Ke),at=Ke.tag,Ke!==fn||at!==5&&at!==27&&at!==6)&&(Ke=null)):(Re=null,Ke=ge),Re!==Ke)){if(at=CR,Oe="onMouseLeave",le="onMouseEnter",oe="mouse",(o==="pointerout"||o==="pointerover")&&(at=_R,Oe="onPointerLeave",le="onPointerEnter",oe="pointer"),fn=Re==null?ye:nf(Re),pe=Ke==null?ye:nf(Ke),ye=new at(Oe,oe+"leave",Re,c,_e),ye.target=fn,ye.relatedTarget=pe,Oe=null,Yl(_e)===ge&&(at=new at(le,oe+"enter",Ke,c,_e),at.target=pe,at.relatedTarget=fn,Oe=at),fn=Oe,Re&&Ke)t:{for(at=JP,le=Re,oe=Ke,pe=0,Oe=le;Oe;Oe=at(Oe))pe++;Oe=0;for(var tt=oe;tt;tt=at(tt))Oe++;for(;0<pe-Oe;)le=at(le),pe--;for(;0<Oe-pe;)oe=at(oe),Oe--;for(;pe--;){if(le===oe||oe!==null&&le===oe.alternate){at=le;break t}le=at(le),oe=at(oe)}at=null}else at=null;Re!==null&&yT(Me,ye,Re,at,!1),Ke!==null&&fn!==null&&yT(Me,fn,Ke,at,!0)}}e:{if(ye=ge?nf(ge):window,Re=ye.nodeName&&ye.nodeName.toLowerCase(),Re==="select"||Re==="input"&&ye.type==="file")var jt=kR;else if(LR(ye))if(NR)jt=uP;else{jt=aP;var Qe=sP}else Re=ye.nodeName,!Re||Re.toLowerCase()!=="input"||ye.type!=="checkbox"&&ye.type!=="radio"?ge&&q0(ge.elementType)&&(jt=kR):jt=lP;if(jt&&(jt=jt(o,ge))){PR(Me,jt,c,_e);break e}Qe&&Qe(o,ye,ge),o==="focusout"&&ge&&ye.type==="number"&&ge.memoizedProps.value!=null&&$0(ye,"number",ye.value)}switch(Qe=ge?nf(ge):window,o){case"focusin":(LR(Qe)||Qe.contentEditable==="true")&&(nu=Qe,iv=ge,df=null);break;case"focusout":df=iv=nu=null;break;case"mousedown":sv=!0;break;case"contextmenu":case"mouseup":case"dragend":sv=!1,$R(Me,c,_e);break;case"selectionchange":if(fP)break;case"keydown":case"keyup":$R(Me,c,_e)}var xt;if(tv)e:{switch(o){case"compositionstart":var Nt="onCompositionStart";break e;case"compositionend":Nt="onCompositionEnd";break e;case"compositionupdate":Nt="onCompositionUpdate";break e}Nt=void 0}else tu?IR(o,c)&&(Nt="onCompositionEnd"):o==="keydown"&&c.keyCode===229&&(Nt="onCompositionStart");Nt&&(AR&&c.locale!=="ko"&&(tu||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&tu&&(xt=RR()):(Is=_e,K0="value"in Is?Is.value:Is.textContent,tu=!0)),Qe=Sp(ge,Nt),0<Qe.length&&(Nt=new TR(Nt,o,null,c,_e),Me.push({event:Nt,listeners:Qe}),xt?Nt.data=xt:(xt=DR(c),xt!==null&&(Nt.data=xt)))),(xt=tP?nP(o,c):rP(o,c))&&(Nt=Sp(ge,"onBeforeInput"),0<Nt.length&&(Qe=new TR("onBeforeInput","beforeinput",null,c,_e),Me.push({event:Qe,listeners:Nt}),Qe.data=xt)),XP(Me,o,ge,c,_e)}mT(Me,a)})}function Ff(o,a,c){return{instance:o,listener:a,currentTarget:c}}function Sp(o,a){for(var c=a+"Capture",h=[];o!==null;){var y=o,w=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||w===null||(y=rf(o,c),y!=null&&h.unshift(Ff(o,y,w)),y=rf(o,a),y!=null&&h.push(Ff(o,y,w))),o.tag===3)return h;o=o.return}return[]}function JP(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function yT(o,a,c,h,y){for(var w=a._reactName,I=[];c!==null&&c!==h;){var z=c,K=z.alternate,ge=z.stateNode;if(z=z.tag,K!==null&&K===h)break;z!==5&&z!==26&&z!==27||ge===null||(K=ge,y?(ge=rf(c,w),ge!=null&&I.unshift(Ff(c,ge,K))):y||(ge=rf(c,w),ge!=null&&I.push(Ff(c,ge,K)))),c=c.return}I.length!==0&&o.push({event:a,listeners:I})}var ZP=/\r\n?/g,ek=/\u0000|\uFFFD/g;function bT(o){return(typeof o=="string"?o:""+o).replace(ZP,`
9
9
  `).replace(ek,"")}function ST(o,a){return a=bT(a),bT(o)===a}function cn(o,a,c,h,y,w){switch(c){case"children":typeof h=="string"?a==="body"||a==="textarea"&&h===""||Jl(o,h):(typeof h=="number"||typeof h=="bigint")&&a!=="body"&&Jl(o,""+h);break;case"className":xh(o,"class",h);break;case"tabIndex":xh(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":xh(o,c,h);break;case"style":SR(o,h,w);break;case"data":if(a!=="object"){xh(o,"data",h);break}case"src":case"href":if(h===""&&(a!=="a"||c!=="href")){o.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(c);break}h=Th(""+h),o.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){o.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(c==="formAction"?(a!=="input"&&cn(o,a,"name",y.name,y,null),cn(o,a,"formEncType",y.formEncType,y,null),cn(o,a,"formMethod",y.formMethod,y,null),cn(o,a,"formTarget",y.formTarget,y,null)):(cn(o,a,"encType",y.encType,y,null),cn(o,a,"method",y.method,y,null),cn(o,a,"target",y.target,y,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(c);break}h=Th(""+h),o.setAttribute(c,h);break;case"onClick":h!=null&&(o.onclick=qi);break;case"onScroll":h!=null&&Pt("scroll",o);break;case"onScrollEnd":h!=null&&Pt("scrollend",o);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(y.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"multiple":o.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":o.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){o.removeAttribute("xlink:href");break}c=Th(""+h),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(c,""+h):o.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(c,""):o.removeAttribute(c);break;case"capture":case"download":h===!0?o.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(c,h):o.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?o.setAttribute(c,h):o.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?o.removeAttribute(c):o.setAttribute(c,h);break;case"popover":Pt("beforetoggle",o),Pt("toggle",o),Rh(o,"popover",h);break;case"xlinkActuate":$i(o,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":$i(o,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":$i(o,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":$i(o,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":$i(o,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":$i(o,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":$i(o,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":$i(o,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":$i(o,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Rh(o,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=AL.get(c)||c,Rh(o,c,h))}}function Iy(o,a,c,h,y,w){switch(c){case"style":SR(o,h,w);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(y.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"children":typeof h=="string"?Jl(o,h):(typeof h=="number"||typeof h=="bigint")&&Jl(o,""+h);break;case"onScroll":h!=null&&Pt("scroll",o);break;case"onScrollEnd":h!=null&&Pt("scrollend",o);break;case"onClick":h!=null&&(o.onclick=qi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fR.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(y=c.endsWith("Capture"),a=c.slice(2,y?c.length-7:void 0),w=o[hr]||null,w=w!=null?w[c]:null,typeof w=="function"&&o.removeEventListener(a,w,y),typeof h=="function")){typeof w!="function"&&w!==null&&(c in o?o[c]=null:o.hasAttribute(c)&&o.removeAttribute(c)),o.addEventListener(a,h,y);break e}c in o?o[c]=h:h===!0?o.setAttribute(c,""):Rh(o,c,h)}}}function vr(o,a,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pt("error",o),Pt("load",o);var h=!1,y=!1,w;for(w in c)if(c.hasOwnProperty(w)){var I=c[w];if(I!=null)switch(w){case"src":h=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:cn(o,a,w,I,c,null)}}y&&cn(o,a,"srcSet",c.srcSet,c,null),h&&cn(o,a,"src",c.src,c,null);return;case"input":Pt("invalid",o);var z=w=I=y=null,K=null,ge=null;for(h in c)if(c.hasOwnProperty(h)){var _e=c[h];if(_e!=null)switch(h){case"name":y=_e;break;case"type":I=_e;break;case"checked":K=_e;break;case"defaultChecked":ge=_e;break;case"value":w=_e;break;case"defaultValue":z=_e;break;case"children":case"dangerouslySetInnerHTML":if(_e!=null)throw Error(r(137,a));break;default:cn(o,a,h,_e,c,null)}}mR(o,w,z,K,ge,I,y,!1);return;case"select":Pt("invalid",o),h=I=w=null;for(y in c)if(c.hasOwnProperty(y)&&(z=c[y],z!=null))switch(y){case"value":w=z;break;case"defaultValue":I=z;break;case"multiple":h=z;default:cn(o,a,y,z,c,null)}a=w,c=I,o.multiple=!!h,a!=null?Ql(o,!!h,a,!1):c!=null&&Ql(o,!!h,c,!0);return;case"textarea":Pt("invalid",o),w=y=h=null;for(I in c)if(c.hasOwnProperty(I)&&(z=c[I],z!=null))switch(I){case"value":h=z;break;case"defaultValue":y=z;break;case"children":w=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(91));break;default:cn(o,a,I,z,c,null)}yR(o,h,y,w);return;case"option":for(K in c)if(c.hasOwnProperty(K)&&(h=c[K],h!=null))switch(K){case"selected":o.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:cn(o,a,K,h,c,null)}return;case"dialog":Pt("beforetoggle",o),Pt("toggle",o),Pt("cancel",o),Pt("close",o);break;case"iframe":case"object":Pt("load",o);break;case"video":case"audio":for(h=0;h<Nf.length;h++)Pt(Nf[h],o);break;case"image":Pt("error",o),Pt("load",o);break;case"details":Pt("toggle",o);break;case"embed":case"source":case"link":Pt("error",o),Pt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ge in c)if(c.hasOwnProperty(ge)&&(h=c[ge],h!=null))switch(ge){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:cn(o,a,ge,h,c,null)}return;default:if(q0(a)){for(_e in c)c.hasOwnProperty(_e)&&(h=c[_e],h!==void 0&&Iy(o,a,_e,h,c,void 0));return}}for(z in c)c.hasOwnProperty(z)&&(h=c[z],h!=null&&cn(o,a,z,h,c,null))}function tk(o,a,c,h){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,w=null,I=null,z=null,K=null,ge=null,_e=null;for(Re in c){var Me=c[Re];if(c.hasOwnProperty(Re)&&Me!=null)switch(Re){case"checked":break;case"value":break;case"defaultValue":K=Me;default:h.hasOwnProperty(Re)||cn(o,a,Re,null,h,Me)}}for(var ye in h){var Re=h[ye];if(Me=c[ye],h.hasOwnProperty(ye)&&(Re!=null||Me!=null))switch(ye){case"type":w=Re;break;case"name":y=Re;break;case"checked":ge=Re;break;case"defaultChecked":_e=Re;break;case"value":I=Re;break;case"defaultValue":z=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,a));break;default:Re!==Me&&cn(o,a,ye,Re,h,Me)}}j0(o,I,z,K,ge,_e,w,y);return;case"select":Re=I=z=ye=null;for(w in c)if(K=c[w],c.hasOwnProperty(w)&&K!=null)switch(w){case"value":break;case"multiple":Re=K;default:h.hasOwnProperty(w)||cn(o,a,w,null,h,K)}for(y in h)if(w=h[y],K=c[y],h.hasOwnProperty(y)&&(w!=null||K!=null))switch(y){case"value":ye=w;break;case"defaultValue":z=w;break;case"multiple":I=w;default:w!==K&&cn(o,a,y,w,h,K)}a=z,c=I,h=Re,ye!=null?Ql(o,!!c,ye,!1):!!h!=!!c&&(a!=null?Ql(o,!!c,a,!0):Ql(o,!!c,c?[]:"",!1));return;case"textarea":Re=ye=null;for(z in c)if(y=c[z],c.hasOwnProperty(z)&&y!=null&&!h.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:cn(o,a,z,null,h,y)}for(I in h)if(y=h[I],w=c[I],h.hasOwnProperty(I)&&(y!=null||w!=null))switch(I){case"value":ye=y;break;case"defaultValue":Re=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==w&&cn(o,a,I,y,h,w)}vR(o,ye,Re);return;case"option":for(var Ke in c)if(ye=c[Ke],c.hasOwnProperty(Ke)&&ye!=null&&!h.hasOwnProperty(Ke))switch(Ke){case"selected":o.selected=!1;break;default:cn(o,a,Ke,null,h,ye)}for(K in h)if(ye=h[K],Re=c[K],h.hasOwnProperty(K)&&ye!==Re&&(ye!=null||Re!=null))switch(K){case"selected":o.selected=ye&&typeof ye!="function"&&typeof ye!="symbol";break;default:cn(o,a,K,ye,h,Re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var at in c)ye=c[at],c.hasOwnProperty(at)&&ye!=null&&!h.hasOwnProperty(at)&&cn(o,a,at,null,h,ye);for(ge in h)if(ye=h[ge],Re=c[ge],h.hasOwnProperty(ge)&&ye!==Re&&(ye!=null||Re!=null))switch(ge){case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(r(137,a));break;default:cn(o,a,ge,ye,h,Re)}return;default:if(q0(a)){for(var fn in c)ye=c[fn],c.hasOwnProperty(fn)&&ye!==void 0&&!h.hasOwnProperty(fn)&&Iy(o,a,fn,void 0,h,ye);for(_e in h)ye=h[_e],Re=c[_e],!h.hasOwnProperty(_e)||ye===Re||ye===void 0&&Re===void 0||Iy(o,a,_e,ye,h,Re);return}}for(var le in c)ye=c[le],c.hasOwnProperty(le)&&ye!=null&&!h.hasOwnProperty(le)&&cn(o,a,le,null,h,ye);for(Me in h)ye=h[Me],Re=c[Me],!h.hasOwnProperty(Me)||ye===Re||ye==null&&Re==null||cn(o,a,Me,ye,h,Re)}function ET(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nk(){if(typeof performance.getEntriesByType=="function"){for(var o=0,a=0,c=performance.getEntriesByType("resource"),h=0;h<c.length;h++){var y=c[h],w=y.transferSize,I=y.initiatorType,z=y.duration;if(w&&z&&ET(I)){for(I=0,z=y.responseEnd,h+=1;h<c.length;h++){var K=c[h],ge=K.startTime;if(ge>z)break;var _e=K.transferSize,Me=K.initiatorType;_e&&ET(Me)&&(K=K.responseEnd,I+=_e*(K<z?1:(z-ge)/(K-ge)))}if(--h,a+=8*(w+I)/(y.duration/1e3),o++,10<o)break}}if(0<o)return a/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Dy=null,Ly=null;function Ep(o){return o.nodeType===9?o:o.ownerDocument}function wT(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function RT(o,a){if(o===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&a==="foreignObject"?0:o}function Py(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ky=null;function rk(){var o=window.event;return o&&o.type==="popstate"?o===ky?!1:(ky=o,!0):(ky=null,!1)}var xT=typeof setTimeout=="function"?setTimeout:void 0,ok=typeof clearTimeout=="function"?clearTimeout:void 0,CT=typeof Promise=="function"?Promise:void 0,ik=typeof queueMicrotask=="function"?queueMicrotask:typeof CT<"u"?function(o){return CT.resolve(null).then(o).catch(sk)}:xT;function sk(o){setTimeout(function(){throw o})}function Xs(o){return o==="head"}function TT(o,a){var c=a,h=0;do{var y=c.nextSibling;if(o.removeChild(c),y&&y.nodeType===8)if(c=y.data,c==="/$"||c==="/&"){if(h===0){o.removeChild(y),Ou(a);return}h--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")h++;else if(c==="html")zf(o.ownerDocument.documentElement);else if(c==="head"){c=o.ownerDocument.head,zf(c);for(var w=c.firstChild;w;){var I=w.nextSibling,z=w.nodeName;w[tf]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&w.rel.toLowerCase()==="stylesheet"||c.removeChild(w),w=I}}else c==="body"&&zf(o.ownerDocument.body);c=y}while(c);Ou(a)}function _T(o,a){var c=o;o=0;do{var h=c.nextSibling;if(c.nodeType===1?a?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(a?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),h&&h.nodeType===8)if(c=h.data,c==="/$"){if(o===0)break;o--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||o++;c=h}while(c)}function Ny(o){var a=o.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var c=a;switch(a=a.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Ny(c),U0(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}o.removeChild(c)}}function ak(o,a,c,h){for(;o.nodeType===1;){var y=c;if(o.nodeName.toLowerCase()!==a.toLowerCase()){if(!h&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(h){if(!o[tf])switch(a){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(w=o.getAttribute("rel"),w==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(w!==y.rel||o.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||o.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||o.getAttribute("title")!==(y.title==null?null:y.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(w=o.getAttribute("src"),(w!==(y.src==null?null:y.src)||o.getAttribute("type")!==(y.type==null?null:y.type)||o.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&w&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(a==="input"&&o.type==="hidden"){var w=y.name==null?null:""+y.name;if(y.type==="hidden"&&o.getAttribute("name")===w)return o}else return o;if(o=Do(o.nextSibling),o===null)break}return null}function lk(o,a,c){if(a==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!c||(o=Do(o.nextSibling),o===null))return null;return o}function AT(o,a){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=Do(o.nextSibling),o===null))return null;return o}function Fy(o){return o.data==="$?"||o.data==="$~"}function zy(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function uk(o,a){var c=o.ownerDocument;if(o.data==="$~")o._reactRetry=a;else if(o.data!=="$?"||c.readyState!=="loading")a();else{var h=function(){a(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),o._reactRetry=h}}function Do(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return o}var Hy=null;function OT(o){o=o.nextSibling;for(var a=0;o;){if(o.nodeType===8){var c=o.data;if(c==="/$"||c==="/&"){if(a===0)return Do(o.nextSibling);a--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||a++}o=o.nextSibling}return null}function MT(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var c=o.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(a===0)return o;a--}else c!=="/$"&&c!=="/&"||a++}o=o.previousSibling}return null}function IT(o,a,c){switch(a=Ep(c),o){case"html":if(o=a.documentElement,!o)throw Error(r(452));return o;case"head":if(o=a.head,!o)throw Error(r(453));return o;case"body":if(o=a.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function zf(o){for(var a=o.attributes;a.length;)o.removeAttributeNode(a[0]);U0(o)}var Lo=new Map,DT=new Set;function wp(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var as=G.d;G.d={f:ck,r:fk,D:dk,C:hk,L:pk,m:gk,X:vk,S:mk,M:yk};function ck(){var o=as.f(),a=hp();return o||a}function fk(o){var a=Xl(o);a!==null&&a.tag===5&&a.type==="form"?Wx(a):as.r(o)}var Tu=typeof document>"u"?null:document;function LT(o,a,c){var h=Tu;if(h&&typeof a=="string"&&a){var y=Co(a);y='link[rel="'+o+'"][href="'+y+'"]',typeof c=="string"&&(y+='[crossorigin="'+c+'"]'),DT.has(y)||(DT.add(y),o={rel:o,crossOrigin:c,href:a},h.querySelector(y)===null&&(a=h.createElement("link"),vr(a,"link",o),sr(a),h.head.appendChild(a)))}}function dk(o){as.D(o),LT("dns-prefetch",o,null)}function hk(o,a){as.C(o,a),LT("preconnect",o,a)}function pk(o,a,c){as.L(o,a,c);var h=Tu;if(h&&o&&a){var y='link[rel="preload"][as="'+Co(a)+'"]';a==="image"&&c&&c.imageSrcSet?(y+='[imagesrcset="'+Co(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(y+='[imagesizes="'+Co(c.imageSizes)+'"]')):y+='[href="'+Co(o)+'"]';var w=y;switch(a){case"style":w=_u(o);break;case"script":w=Au(o)}Lo.has(w)||(o=g({rel:"preload",href:a==="image"&&c&&c.imageSrcSet?void 0:o,as:a},c),Lo.set(w,o),h.querySelector(y)!==null||a==="style"&&h.querySelector(Hf(w))||a==="script"&&h.querySelector(Bf(w))||(a=h.createElement("link"),vr(a,"link",o),sr(a),h.head.appendChild(a)))}}function gk(o,a){as.m(o,a);var c=Tu;if(c&&o){var h=a&&typeof a.as=="string"?a.as:"script",y='link[rel="modulepreload"][as="'+Co(h)+'"][href="'+Co(o)+'"]',w=y;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=Au(o)}if(!Lo.has(w)&&(o=g({rel:"modulepreload",href:o},a),Lo.set(w,o),c.querySelector(y)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Bf(w)))return}h=c.createElement("link"),vr(h,"link",o),sr(h),c.head.appendChild(h)}}}function mk(o,a,c){as.S(o,a,c);var h=Tu;if(h&&o){var y=Wl(h).hoistableStyles,w=_u(o);a=a||"default";var I=y.get(w);if(!I){var z={loading:0,preload:null};if(I=h.querySelector(Hf(w)))z.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":a},c),(c=Lo.get(w))&&By(o,c);var K=I=h.createElement("link");sr(K),vr(K,"link",o),K._p=new Promise(function(ge,_e){K.onload=ge,K.onerror=_e}),K.addEventListener("load",function(){z.loading|=1}),K.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Rp(I,a,h)}I={type:"stylesheet",instance:I,count:1,state:z},y.set(w,I)}}}function vk(o,a){as.X(o,a);var c=Tu;if(c&&o){var h=Wl(c).hoistableScripts,y=Au(o),w=h.get(y);w||(w=c.querySelector(Bf(y)),w||(o=g({src:o,async:!0},a),(a=Lo.get(y))&&Uy(o,a),w=c.createElement("script"),sr(w),vr(w,"link",o),c.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},h.set(y,w))}}function yk(o,a){as.M(o,a);var c=Tu;if(c&&o){var h=Wl(c).hoistableScripts,y=Au(o),w=h.get(y);w||(w=c.querySelector(Bf(y)),w||(o=g({src:o,async:!0,type:"module"},a),(a=Lo.get(y))&&Uy(o,a),w=c.createElement("script"),sr(w),vr(w,"link",o),c.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},h.set(y,w))}}function PT(o,a,c,h){var y=(y=ne.current)?wp(y):null;if(!y)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(a=_u(c.href),c=Wl(y).hoistableStyles,h=c.get(a),h||(h={type:"style",instance:null,count:0,state:null},c.set(a,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){o=_u(c.href);var w=Wl(y).hoistableStyles,I=w.get(o);if(I||(y=y.ownerDocument||y,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(o,I),(w=y.querySelector(Hf(o)))&&!w._p&&(I.instance=w,I.state.loading=5),Lo.has(o)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Lo.set(o,c),w||bk(y,o,c,I.state))),a&&h===null)throw Error(r(528,""));return I}if(a&&h!==null)throw Error(r(529,""));return null;case"script":return a=c.async,c=c.src,typeof c=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Au(c),c=Wl(y).hoistableScripts,h=c.get(a),h||(h={type:"script",instance:null,count:0,state:null},c.set(a,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function _u(o){return'href="'+Co(o)+'"'}function Hf(o){return'link[rel="stylesheet"]['+o+"]"}function kT(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function bk(o,a,c,h){o.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=1:(a=o.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=1}),a.addEventListener("error",function(){return h.loading|=2}),vr(a,"link",c),sr(a),o.head.appendChild(a))}function Au(o){return'[src="'+Co(o)+'"]'}function Bf(o){return"script[async]"+o}function NT(o,a,c){if(a.count++,a.instance===null)switch(a.type){case"style":var h=o.querySelector('style[data-href~="'+Co(c.href)+'"]');if(h)return a.instance=h,sr(h),h;var y=g({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(o.ownerDocument||o).createElement("style"),sr(h),vr(h,"style",y),Rp(h,c.precedence,o),a.instance=h;case"stylesheet":y=_u(c.href);var w=o.querySelector(Hf(y));if(w)return a.state.loading|=4,a.instance=w,sr(w),w;h=kT(c),(y=Lo.get(y))&&By(h,y),w=(o.ownerDocument||o).createElement("link"),sr(w);var I=w;return I._p=new Promise(function(z,K){I.onload=z,I.onerror=K}),vr(w,"link",h),a.state.loading|=4,Rp(w,c.precedence,o),a.instance=w;case"script":return w=Au(c.src),(y=o.querySelector(Bf(w)))?(a.instance=y,sr(y),y):(h=c,(y=Lo.get(w))&&(h=g({},c),Uy(h,y)),o=o.ownerDocument||o,y=o.createElement("script"),sr(y),vr(y,"link",h),o.head.appendChild(y),a.instance=y);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(h=a.instance,a.state.loading|=4,Rp(h,c.precedence,o));return a.instance}function Rp(o,a,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=h.length?h[h.length-1]:null,w=y,I=0;I<h.length;I++){var z=h[I];if(z.dataset.precedence===a)w=z;else if(w!==y)break}w?w.parentNode.insertBefore(o,w.nextSibling):(a=c.nodeType===9?c.head:c,a.insertBefore(o,a.firstChild))}function By(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.title==null&&(o.title=a.title)}function Uy(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.integrity==null&&(o.integrity=a.integrity)}var xp=null;function FT(o,a,c){if(xp===null){var h=new Map,y=xp=new Map;y.set(c,h)}else y=xp,h=y.get(c),h||(h=new Map,y.set(c,h));if(h.has(o))return h;for(h.set(o,null),c=c.getElementsByTagName(o),y=0;y<c.length;y++){var w=c[y];if(!(w[tf]||w[Zn]||o==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var I=w.getAttribute(a)||"";I=o+I;var z=h.get(I);z?z.push(w):h.set(I,[w])}}return h}function zT(o,a,c){o=o.ownerDocument||o,o.head.insertBefore(c,a==="title"?o.querySelector("head > title"):null)}function Sk(o,a,c){if(c===1||a.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return o=a.disabled,typeof a.precedence=="string"&&o==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function HT(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function Ek(o,a,c,h){if(c.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var y=_u(h.href),w=a.querySelector(Hf(y));if(w){a=w._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(o.count++,o=Cp.bind(o),a.then(o,o)),c.state.loading|=4,c.instance=w,sr(w);return}w=a.ownerDocument||a,h=kT(h),(y=Lo.get(y))&&By(h,y),w=w.createElement("link"),sr(w);var I=w;I._p=new Promise(function(z,K){I.onload=z,I.onerror=K}),vr(w,"link",h),c.instance=w}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(c,a),(a=c.state.preload)&&(c.state.loading&3)===0&&(o.count++,c=Cp.bind(o),a.addEventListener("load",c),a.addEventListener("error",c))}}var Vy=0;function wk(o,a){return o.stylesheets&&o.count===0&&_p(o,o.stylesheets),0<o.count||0<o.imgCount?function(c){var h=setTimeout(function(){if(o.stylesheets&&_p(o,o.stylesheets),o.unsuspend){var w=o.unsuspend;o.unsuspend=null,w()}},6e4+a);0<o.imgBytes&&Vy===0&&(Vy=62500*nk());var y=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&_p(o,o.stylesheets),o.unsuspend)){var w=o.unsuspend;o.unsuspend=null,w()}},(o.imgBytes>Vy?50:800)+a);return o.unsuspend=c,function(){o.unsuspend=null,clearTimeout(h),clearTimeout(y)}}:null}function Cp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_p(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Tp=null;function _p(o,a){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Tp=new Map,a.forEach(Rk,o),Tp=null,Cp.call(o))}function Rk(o,a){if(!(a.state.loading&4)){var c=Tp.get(o);if(c)var h=c.get(null);else{c=new Map,Tp.set(o,c);for(var y=o.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<y.length;w++){var I=y[w];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(c.set(I.dataset.precedence,I),h=I)}h&&c.set(null,h)}y=a.instance,I=y.getAttribute("data-precedence"),w=c.get(I)||h,w===h&&c.set(null,y),c.set(I,y),this.count++,h=Cp.bind(this),y.addEventListener("load",h),y.addEventListener("error",h),w?w.parentNode.insertBefore(y,w.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(y,o.firstChild)),a.state.loading|=4}}var Uf={$$typeof:T,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function xk(o,a,c,h,y,w,I,z,K){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=At(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=At(0),this.hiddenUpdates=At(null),this.identifierPrefix=h,this.onUncaughtError=y,this.onCaughtError=w,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function BT(o,a,c,h,y,w,I,z,K,ge,_e,Me){return o=new xk(o,a,c,I,K,ge,_e,Me,z),a=1,w===!0&&(a|=24),w=ao(3,null,null,a),o.current=w,w.stateNode=o,a=Ev(),a.refCount++,o.pooledCache=a,a.refCount++,w.memoizedState={element:h,isDehydrated:c,cache:a},Cv(w),o}function UT(o){return o?(o=iu,o):iu}function VT(o,a,c,h,y,w){y=UT(y),h.context===null?h.context=y:h.pendingContext=y,h=Fs(a),h.payload={element:c},w=w===void 0?null:w,w!==null&&(h.callback=w),c=zs(o,h,a),c!==null&&($r(c,o,a),bf(c,o,a))}function jT(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var c=o.retryLane;o.retryLane=c!==0&&c<a?c:a}}function jy(o,a){jT(o,a),(o=o.alternate)&&jT(o,a)}function $T(o){if(o.tag===13||o.tag===31){var a=ja(o,67108864);a!==null&&$r(a,o,67108864),jy(o,67108864)}}function qT(o){if(o.tag===13||o.tag===31){var a=ho();a=dr(a);var c=ja(o,a);c!==null&&$r(c,o,a),jy(o,a)}}var Ap=!0;function Ck(o,a,c,h){var y=P.T;P.T=null;var w=G.p;try{G.p=2,$y(o,a,c,h)}finally{G.p=w,P.T=y}}function Tk(o,a,c,h){var y=P.T;P.T=null;var w=G.p;try{G.p=8,$y(o,a,c,h)}finally{G.p=w,P.T=y}}function $y(o,a,c,h){if(Ap){var y=qy(h);if(y===null)My(o,a,h,Op,c),YT(o,h);else if(Ak(y,o,a,c,h))h.stopPropagation();else if(YT(o,h),a&4&&-1<_k.indexOf(o)){for(;y!==null;){var w=Xl(y);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var I=Et(w.pendingLanes);if(I!==0){var z=w;for(z.pendingLanes|=2,z.entangledLanes|=2;I;){var K=1<<31-ze(I);z.entanglements[1]|=K,I&=~K}mi(w),(Xt&6)===0&&(fp=se()+500,kf(0))}}break;case 31:case 13:z=ja(w,2),z!==null&&$r(z,w,2),hp(),jy(w,2)}if(w=qy(h),w===null&&My(o,a,h,Op,c),w===y)break;y=w}y!==null&&h.stopPropagation()}else My(o,a,h,null,c)}}function qy(o){return o=Y0(o),Gy(o)}var Op=null;function Gy(o){if(Op=null,o=Yl(o),o!==null){var a=s(o);if(a===null)o=null;else{var c=a.tag;if(c===13){if(o=l(a),o!==null)return o;o=null}else if(c===31){if(o=u(a),o!==null)return o;o=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Op=o,null}function GT(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(re()){case Ie:return 2;case Ue:return 8;case ke:case Ge:return 32;case nt:return 268435456;default:return 32}default:return 32}}var Yy=!1,Ws=null,Ks=null,Qs=null,Vf=new Map,jf=new Map,Js=[],_k="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function YT(o,a){switch(o){case"focusin":case"focusout":Ws=null;break;case"dragenter":case"dragleave":Ks=null;break;case"mouseover":case"mouseout":Qs=null;break;case"pointerover":case"pointerout":Vf.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":jf.delete(a.pointerId)}}function $f(o,a,c,h,y,w){return o===null||o.nativeEvent!==w?(o={blockedOn:a,domEventName:c,eventSystemFlags:h,nativeEvent:w,targetContainers:[y]},a!==null&&(a=Xl(a),a!==null&&$T(a)),o):(o.eventSystemFlags|=h,a=o.targetContainers,y!==null&&a.indexOf(y)===-1&&a.push(y),o)}function Ak(o,a,c,h,y){switch(a){case"focusin":return Ws=$f(Ws,o,a,c,h,y),!0;case"dragenter":return Ks=$f(Ks,o,a,c,h,y),!0;case"mouseover":return Qs=$f(Qs,o,a,c,h,y),!0;case"pointerover":var w=y.pointerId;return Vf.set(w,$f(Vf.get(w)||null,o,a,c,h,y)),!0;case"gotpointercapture":return w=y.pointerId,jf.set(w,$f(jf.get(w)||null,o,a,c,h,y)),!0}return!1}function XT(o){var a=Yl(o.target);if(a!==null){var c=s(a);if(c!==null){if(a=c.tag,a===13){if(a=l(c),a!==null){o.blockedOn=a,io(o.priority,function(){qT(c)});return}}else if(a===31){if(a=u(c),a!==null){o.blockedOn=a,io(o.priority,function(){qT(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){o.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Mp(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var c=qy(o.nativeEvent);if(c===null){c=o.nativeEvent;var h=new c.constructor(c.type,c);G0=h,c.target.dispatchEvent(h),G0=null}else return a=Xl(c),a!==null&&$T(a),o.blockedOn=c,!1;a.shift()}return!0}function WT(o,a,c){Mp(o)&&c.delete(a)}function Ok(){Yy=!1,Ws!==null&&Mp(Ws)&&(Ws=null),Ks!==null&&Mp(Ks)&&(Ks=null),Qs!==null&&Mp(Qs)&&(Qs=null),Vf.forEach(WT),jf.forEach(WT)}function Ip(o,a){o.blockedOn===a&&(o.blockedOn=null,Yy||(Yy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ok)))}var Dp=null;function KT(o){Dp!==o&&(Dp=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Dp===o&&(Dp=null);for(var a=0;a<o.length;a+=3){var c=o[a],h=o[a+1],y=o[a+2];if(typeof h!="function"){if(Gy(h||c)===null)continue;break}var w=Xl(c);w!==null&&(o.splice(a,3),a-=3,qv(w,{pending:!0,data:y,method:c.method,action:h},h,y))}}))}function Ou(o){function a(K){return Ip(K,o)}Ws!==null&&Ip(Ws,o),Ks!==null&&Ip(Ks,o),Qs!==null&&Ip(Qs,o),Vf.forEach(a),jf.forEach(a);for(var c=0;c<Js.length;c++){var h=Js[c];h.blockedOn===o&&(h.blockedOn=null)}for(;0<Js.length&&(c=Js[0],c.blockedOn===null);)XT(c),c.blockedOn===null&&Js.shift();if(c=(o.ownerDocument||o).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var y=c[h],w=c[h+1],I=y[hr]||null;if(typeof w=="function")I||KT(c);else if(I){var z=null;if(w&&w.hasAttribute("formAction")){if(y=w,I=w[hr]||null)z=I.formAction;else if(Gy(y)!==null)continue}else z=I.action;typeof z=="function"?c[h+1]=z:(c.splice(h,3),h-=3),KT(c)}}}function QT(){function o(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(I){return y=I})},focusReset:"manual",scroll:"manual"})}function a(){y!==null&&(y(),y=null),h||setTimeout(c,20)}function c(){if(!h&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,y=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(c,100),function(){h=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),y!==null&&(y(),y=null)}}}function Xy(o){this._internalRoot=o}Lp.prototype.render=Xy.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));var c=a.current,h=ho();VT(c,h,o,a,null,null)},Lp.prototype.unmount=Xy.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;VT(o.current,2,null,o,null,null),hp(),a[ji]=null}};function Lp(o){this._internalRoot=o}Lp.prototype.unstable_scheduleHydration=function(o){if(o){var a=$n();o={blockedOn:null,target:o,priority:a};for(var c=0;c<Js.length&&a!==0&&a<Js[c].priority;c++);Js.splice(c,0,o),c===0&&XT(o)}};var JT=t.version;if(JT!=="19.2.3")throw Error(r(527,JT,"19.2.3"));G.findDOMNode=function(o){var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(a),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var Mk={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pp.isDisabled&&Pp.supportsFiber)try{st=Pp.inject(Mk),he=Pp}catch{}}return Gf.createRoot=function(o,a){if(!i(o))throw Error(r(299));var c=!1,h="",y=iC,w=sC,I=aC;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(y=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(I=a.onRecoverableError)),a=BT(o,1,!1,null,null,c,h,null,y,w,I,QT),o[ji]=a.current,Oy(o),new Xy(a)},Gf.hydrateRoot=function(o,a,c){if(!i(o))throw Error(r(299));var h=!1,y="",w=iC,I=sC,z=aC,K=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(w=c.onUncaughtError),c.onCaughtError!==void 0&&(I=c.onCaughtError),c.onRecoverableError!==void 0&&(z=c.onRecoverableError),c.formState!==void 0&&(K=c.formState)),a=BT(o,1,!0,a,c??null,h,y,K,w,I,z,QT),a.context=UT(null),c=a.current,h=ho(),h=dr(h),y=Fs(h),y.callback=null,zs(c,y,h),c=h,a.current.lanes=c,tn(a,c),mi(a),o[ji]=a.current,Oy(o),new Lp(a)},Gf.version="19.2.3",Gf}var c_;function Vk(){if(c_)return Jy.exports;c_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Jy.exports=Uk(),Jy.exports}var cte=Vk();var f_="popstate";function jk(e={}){function t(r,i){let{pathname:s,search:l,hash:u}=r.location;return Ab("",{pathname:s,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:gd(i)}return qk(t,n,null,e)}function In(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function bo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $k(){return Math.random().toString(36).substring(2,10)}function d_(e,t){return{usr:e.state,key:e.key,idx:t}}function Ab(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?xc(t):t,state:n,key:t&&t.key||r||$k()}}function gd({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function xc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function qk(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,l=i.history,u="POP",f=null,d=p();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function p(){return(l.state||{idx:null}).idx}function g(){u="POP";let x=p(),C=x==null?null:x-d;d=x,f&&f({action:u,location:b.location,delta:C})}function m(x,C){u="PUSH";let R=Ab(b.location,x,C);d=p()+1;let T=d_(R,d),O=b.createHref(R);try{l.pushState(T,"",O)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(O)}s&&f&&f({action:u,location:b.location,delta:1})}function v(x,C){u="REPLACE";let R=Ab(b.location,x,C);d=p();let T=d_(R,d),O=b.createHref(R);l.replaceState(T,"",O),s&&f&&f({action:u,location:b.location,delta:0})}function E(x){return Gk(x)}let b={get action(){return u},get location(){return e(i,l)},listen(x){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(f_,g),f=x,()=>{i.removeEventListener(f_,g),f=null}},createHref(x){return t(i,x)},createURL:E,encodeLocation(x){let C=E(x);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:v,go(x){return l.go(x)}};return b}function Gk(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),In(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:gd(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function NM(e,t,n="/"){return Yk(e,t,n,!1)}function Yk(e,t,n,r){let i=typeof t=="string"?xc(t):t,s=ws(i.pathname||"/",n);if(s==null)return null;let l=FM(e);Xk(l);let u=null;for(let f=0;u==null&&f<l.length;++f){let d=i8(s);u=r8(l[f],d,r)}return u}function FM(e,t=[],n=[],r="",i=!1){let s=(l,u,f=i,d)=>{let p={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&f)return;In(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let g=bs([r,p.relativePath]),m=n.concat(p);l.children&&l.children.length>0&&(In(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),FM(l.children,t,m,g,f)),!(l.path==null&&!l.index)&&t.push({path:g,score:t8(g,l.index),routesMeta:m})};return e.forEach((l,u)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))s(l,u);else for(let d of zM(l.path))s(l,u,!0,d)}),t}function zM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let l=zM(r.join("/")),u=[];return u.push(...l.map(f=>f===""?s:[s,f].join("/"))),i&&u.push(...l),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function Xk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:n8(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Wk=/^:[\w-]+$/,Kk=3,Qk=2,Jk=1,Zk=10,e8=-2,h_=e=>e==="*";function t8(e,t){let n=e.split("/"),r=n.length;return n.some(h_)&&(r+=e8),t&&(r+=Qk),n.filter(i=>!h_(i)).reduce((i,s)=>i+(Wk.test(s)?Kk:s===""?Jk:Zk),r)}function n8(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function r8(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",l=[];for(let u=0;u<r.length;++u){let f=r[u],d=u===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",g=Vg({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},p),m=f.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=Vg({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(i,g.params),l.push({params:i,pathname:bs([s,g.pathname]),pathnameBase:u8(bs([s,g.pathnameBase])),route:m}),g.pathnameBase!=="/"&&(s=bs([s,g.pathnameBase]))}return l}function Vg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=o8(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],l=s.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:g},m)=>{if(p==="*"){let E=u[m]||"";l=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const v=u[m];return g&&!v?d[p]=void 0:d[p]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function o8(e,t=!1,n=!0){bo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function i8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ws(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var HM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,s8=e=>HM.test(e);function a8(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?xc(e):e,s;if(n)if(s8(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),bo(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${n}`)}n.startsWith("/")?s=p_(n.substring(1),"/"):s=p_(n,t)}else s=t;return{pathname:s,search:c8(r),hash:f8(i)}}function p_(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function n1(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function l8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lE(e){let t=l8(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function uE(e,t,n,r=!1){let i;typeof e=="string"?i=xc(e):(i={...e},In(!i.pathname||!i.pathname.includes("?"),n1("?","pathname","search",i)),In(!i.pathname||!i.pathname.includes("#"),n1("#","pathname","hash",i)),In(!i.search||!i.search.includes("#"),n1("#","search","hash",i)));let s=e===""||i.pathname==="",l=s?"/":i.pathname,u;if(l==null)u=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),g-=1;i.pathname=m.join("/")}u=g>=0?t[g]:"/"}let f=a8(i,u),d=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||p)&&(f.pathname+="/"),f}var bs=e=>e.join("/").replace(/\/\/+/g,"/"),u8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),c8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,f8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,d8=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function h8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function p8(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var BM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function UM(e,t){let n=e;if(typeof n!="string"||!HM.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(BM)try{let s=new URL(window.location.href),l=n.startsWith("//")?new URL(s.protocol+n):new URL(n),u=ws(l.pathname,t);l.origin===s.origin&&u!=null?n=u+l.search+l.hash:i=!0}catch{bo(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var VM=["POST","PUT","PATCH","DELETE"];new Set(VM);var g8=["GET",...VM];new Set(g8);var Cc=S.createContext(null);Cc.displayName="DataRouter";var Im=S.createContext(null);Im.displayName="DataRouterState";var m8=S.createContext(!1),jM=S.createContext({isTransitioning:!1});jM.displayName="ViewTransition";var v8=S.createContext(new Map);v8.displayName="Fetchers";var y8=S.createContext(null);y8.displayName="Await";var wo=S.createContext(null);wo.displayName="Navigation";var Tc=S.createContext(null);Tc.displayName="Location";var ui=S.createContext({outlet:null,matches:[],isDataRoute:!1});ui.displayName="Route";var cE=S.createContext(null);cE.displayName="RouteError";var $M="REACT_ROUTER_ERROR",b8="REDIRECT",S8="ROUTE_ERROR_RESPONSE";function E8(e){if(e.startsWith(`${$M}:${b8}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function w8(e){if(e.startsWith(`${$M}:${S8}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new d8(t.status,t.statusText,t.data)}catch{}}function R8(e,{relative:t}={}){In(_c(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(wo),{hash:i,pathname:s,search:l}=$d(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:bs([n,s])),r.createHref({pathname:u,search:l,hash:i})}function _c(){return S.useContext(Tc)!=null}function As(){return In(_c(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Tc).location}function fte(){return S.useContext(Tc).navigationType}var qM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function GM(e){S.useContext(wo).static||S.useLayoutEffect(e)}function fE(){let{isDataRoute:e}=S.useContext(ui);return e?N8():x8()}function x8(){In(_c(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Cc),{basename:t,navigator:n}=S.useContext(wo),{matches:r}=S.useContext(ui),{pathname:i}=As(),s=JSON.stringify(lE(r)),l=S.useRef(!1);return GM(()=>{l.current=!0}),S.useCallback((f,d={})=>{if(bo(l.current,qM),!l.current)return;if(typeof f=="number"){n.go(f);return}let p=uE(f,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:bs([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,s,i,e])}S.createContext(null);function dte(){let{matches:e}=S.useContext(ui),t=e[e.length-1];return t?t.params:{}}function $d(e,{relative:t}={}){let{matches:n}=S.useContext(ui),{pathname:r}=As(),i=JSON.stringify(lE(n));return S.useMemo(()=>uE(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function C8(e,t){return YM(e,t)}function YM(e,t,n,r,i){var R;In(_c(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(wo),{matches:l}=S.useContext(ui),u=l[l.length-1],f=u?u.params:{},d=u?u.pathname:"/",p=u?u.pathnameBase:"/",g=u&&u.route;{let T=g&&g.path||"";WM(d,!g||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
10
 
11
- Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let m=As(),v;if(t){let T=typeof t=="string"?xc(t):t;In(p==="/"||((R=T.pathname)==null?void 0:R.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${T.pathname}" was given in the \`location\` prop.`),v=T}else v=m;let E=v.pathname||"/",b=E;if(p!=="/"){let T=p.replace(/^\//,"").split("/");b="/"+E.replace(/^\//,"").split("/").slice(T.length).join("/")}let x=NM(e,{pathname:b});bo(g||x!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),bo(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=M8(x&&x.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:bs([p,s.encodeLocation?s.encodeLocation(T.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?p:bs([p,s.encodeLocation?s.encodeLocation(T.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),l,n,r,i);return t&&C?S.createElement(Tc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},C):C}function T8(){let e=k8(),t=h8(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,l)}var _8=S.createElement(T8,null),XM=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=w8(e.digest);n&&(e=n)}let t=e!==void 0?S.createElement(ui.Provider,{value:this.props.routeContext},S.createElement(cE.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(A8,{error:e},t):t}};XM.contextType=m8;var r1=new WeakMap;function A8({children:e,error:t}){let{basename:n}=S.useContext(wo);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=E8(t.digest);if(r){let i=r1.get(t);if(i)throw i;let s=UM(r.location,n);if(BM&&!r1.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw r1.set(t,l),l}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function O8({routeContext:e,match:t,children:n}){let r=S.useContext(Cc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ui.Provider,{value:e},n)}function M8(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=n==null?void 0:n.errors;if(l!=null){let p=s.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);In(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let u=!1,f=-1;if(n)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=p),g.route.id){let{loaderData:m,errors:v}=n,E=g.route.loader&&!m.hasOwnProperty(g.route.id)&&(!v||v[g.route.id]===void 0);if(g.route.lazy||E){u=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}let d=n&&r?(p,g)=>{var m,v;r(p,{location:n.location,params:((v=(m=n.matches)==null?void 0:m[0])==null?void 0:v.params)??{},unstable_pattern:p8(n.matches),errorInfo:g})}:void 0;return s.reduceRight((p,g,m)=>{let v,E=!1,b=null,x=null;n&&(v=l&&g.route.id?l[g.route.id]:void 0,b=g.route.errorElement||_8,u&&(f<0&&m===0?(WM("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,x=null):f===m&&(E=!0,x=g.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,m+1)),R=()=>{let T;return v?T=b:E?T=x:g.route.Component?T=S.createElement(g.route.Component,null):g.route.element?T=g.route.element:T=p,S.createElement(O8,{match:g,routeContext:{outlet:p,matches:C,isDataRoute:n!=null},children:T})};return n&&(g.route.ErrorBoundary||g.route.errorElement||m===0)?S.createElement(XM,{location:n.location,revalidation:n.revalidation,component:b,error:v,children:R(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:d}):R()},null)}function dE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function I8(e){let t=S.useContext(Cc);return In(t,dE(e)),t}function D8(e){let t=S.useContext(Im);return In(t,dE(e)),t}function L8(e){let t=S.useContext(ui);return In(t,dE(e)),t}function hE(e){let t=L8(e),n=t.matches[t.matches.length-1];return In(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function P8(){return hE("useRouteId")}function k8(){var r;let e=S.useContext(cE),t=D8("useRouteError"),n=hE("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function N8(){let{router:e}=I8("useNavigate"),t=hE("useNavigate"),n=S.useRef(!1);return GM(()=>{n.current=!0}),S.useCallback(async(i,s={})=>{bo(n.current,qM),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var g_={};function WM(e,t,n){!t&&!g_[e]&&(g_[e]=!0,bo(!1,n))}S.memo(F8);function F8({routes:e,future:t,state:n,onError:r}){return YM(e,void 0,n,r,t)}function hte({to:e,replace:t,state:n,relative:r}){In(_c(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=S.useContext(wo);bo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=S.useContext(ui),{pathname:l}=As(),u=fE(),f=uE(e,lE(s),l,r==="path"),d=JSON.stringify(f);return S.useEffect(()=>{u(JSON.parse(d),{replace:t,state:n,relative:r})},[u,d,r,t,n]),null}function z8(e){In(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function H8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:l}){In(!_c(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:u,navigator:i,static:s,unstable_useTransitions:l,future:{}}),[u,i,s,l]);typeof n=="string"&&(n=xc(n));let{pathname:d="/",search:p="",hash:g="",state:m=null,key:v="default"}=n,E=S.useMemo(()=>{let b=ws(d,u);return b==null?null:{location:{pathname:b,search:p,hash:g,state:m,key:v},navigationType:r}},[u,d,p,g,m,v,r]);return bo(E!=null,`<Router basename="${u}"> is not able to match the URL "${d}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:S.createElement(wo.Provider,{value:f},S.createElement(Tc.Provider,{children:t,value:E}))}function pte({children:e,location:t}){return C8(Ob(e),t)}function Ob(e,t=[]){let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let s=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Ob(r.props.children,s));return}In(r.type===z8,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),In(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ob(r.props.children,s)),n.push(l)}),n}var vg="get",yg="application/x-www-form-urlencoded";function Dm(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function B8(e){return Dm(e)&&e.tagName.toLowerCase()==="button"}function U8(e){return Dm(e)&&e.tagName.toLowerCase()==="form"}function V8(e){return Dm(e)&&e.tagName.toLowerCase()==="input"}function j8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $8(e,t){return e.button===0&&(!t||t==="_self")&&!j8(e)}function Mb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function q8(e,t){let n=Mb(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}var Np=null;function G8(){if(Np===null)try{new FormData(document.createElement("form"),0),Np=!1}catch{Np=!0}return Np}var Y8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function o1(e){return e!=null&&!Y8.has(e)?(bo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yg}"`),null):e}function X8(e,t){let n,r,i,s,l;if(U8(e)){let u=e.getAttribute("action");r=u?ws(u,t):null,n=e.getAttribute("method")||vg,i=o1(e.getAttribute("enctype"))||yg,s=new FormData(e)}else if(B8(e)||V8(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||u.getAttribute("action");if(r=f?ws(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||vg,i=o1(e.getAttribute("formenctype"))||o1(u.getAttribute("enctype"))||yg,s=new FormData(u,e),!G8()){let{name:d,type:p,value:g}=e;if(p==="image"){let m=d?`${d}.`:"";s.append(`${m}x`,"0"),s.append(`${m}y`,"0")}else d&&s.append(d,g)}}else{if(Dm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=vg,r=null,i=yg,l=e}return s&&i==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pE(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function W8(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ws(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function K8(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Q8(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function J8(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let l=await K8(s,n);return l.links?l.links():[]}return[]}));return nN(r.flat(1).filter(Q8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function m_(e,t,n,r,i,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,u=(f,d)=>{var p;return n[d].pathname!==f.pathname||((p=n[d].route.path)==null?void 0:p.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,d)=>l(f,d)||u(f,d)):s==="data"?t.filter((f,d)=>{var g;let p=r.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(l(f,d)||u(f,d))return!0;if(f.route.shouldRevalidate){let m=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function Z8(e,t,{includeHydrateFallback:n}={}){return eN(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function eN(e){return[...new Set(e)]}function tN(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function nN(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(tN(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function KM(){let e=S.useContext(Cc);return pE(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rN(){let e=S.useContext(Im);return pE(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gE=S.createContext(void 0);gE.displayName="FrameworkContext";function QM(){let e=S.useContext(gE);return pE(e,"You must render this element inside a <HydratedRouter> element"),e}function oN(e,t){let n=S.useContext(gE),[r,i]=S.useState(!1),[s,l]=S.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:d,onMouseLeave:p,onTouchStart:g}=t,m=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let b=C=>{C.forEach(R=>{l(R.isIntersecting)})},x=new IntersectionObserver(b,{threshold:.5});return m.current&&x.observe(m.current),()=>{x.disconnect()}}},[e]),S.useEffect(()=>{if(r){let b=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(b)}}},[r]);let v=()=>{i(!0)},E=()=>{i(!1),l(!1)};return n?e!=="intent"?[s,m,{}]:[s,m,{onFocus:Yf(u,v),onBlur:Yf(f,E),onMouseEnter:Yf(d,v),onMouseLeave:Yf(p,E),onTouchStart:Yf(g,v)}]:[!1,m,{}]}function Yf(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function iN({page:e,...t}){let{router:n}=KM(),r=S.useMemo(()=>NM(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(aN,{page:e,matches:r,...t}):null}function sN(e){let{manifest:t,routeModules:n}=QM(),[r,i]=S.useState([]);return S.useEffect(()=>{let s=!1;return J8(e,t,n).then(l=>{s||i(l)}),()=>{s=!0}},[e,t,n]),r}function aN({page:e,matches:t,...n}){let r=As(),{manifest:i,routeModules:s}=QM(),{basename:l}=KM(),{loaderData:u,matches:f}=rN(),d=S.useMemo(()=>m_(e,t,f,i,r,"data"),[e,t,f,i,r]),p=S.useMemo(()=>m_(e,t,f,i,r,"assets"),[e,t,f,i,r]),g=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let E=new Set,b=!1;if(t.forEach(C=>{var T;let R=i.routes[C.route.id];!R||!R.hasLoader||(!d.some(O=>O.route.id===C.route.id)&&C.route.id in u&&((T=s[C.route.id])!=null&&T.shouldRevalidate)||R.hasClientLoader?b=!0:E.add(C.route.id))}),E.size===0)return[];let x=W8(e,l,"data");return b&&E.size>0&&x.searchParams.set("_routes",t.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[x.pathname+x.search]},[l,u,r,i,d,t,e,s]),m=S.useMemo(()=>Z8(p,i),[p,i]),v=sN(p);return S.createElement(S.Fragment,null,g.map(E=>S.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...n})),m.map(E=>S.createElement("link",{key:E,rel:"modulepreload",href:E,...n})),v.map(({key:E,link:b})=>S.createElement("link",{key:E,nonce:n.nonce,...b})))}function lN(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var uN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{uN&&(window.__reactRouterVersion="7.11.0")}catch{}function gte({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=S.useRef();i.current==null&&(i.current=jk({window:r,v5Compat:!0}));let s=i.current,[l,u]=S.useState({action:s.action,location:s.location}),f=S.useCallback(d=>{n===!1?u(d):S.startTransition(()=>u(d))},[n]);return S.useLayoutEffect(()=>s.listen(f),[s,f]),S.createElement(H8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,unstable_useTransitions:n})}var JM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ZM=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:l,state:u,target:f,to:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m,...v},E){let{basename:b,unstable_useTransitions:x}=S.useContext(wo),C=typeof d=="string"&&JM.test(d),R=UM(d,b);d=R.to;let T=R8(d,{relative:i}),[O,_,M]=oN(r,v),A=hN(d,{replace:l,state:u,target:f,preventScrollReset:p,relative:i,viewTransition:g,unstable_defaultShouldRevalidate:m,unstable_useTransitions:x});function D(N){t&&t(N),N.defaultPrevented||A(N)}let L=S.createElement("a",{...v,...M,href:R.absoluteURL||T,onClick:R.isExternal||s?t:D,ref:lN(E,_),target:f,"data-discover":!C&&n==="render"?"true":void 0});return O&&!C?S.createElement(S.Fragment,null,L,S.createElement(iN,{page:T})):L});ZM.displayName="Link";var cN=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:l,viewTransition:u,children:f,...d},p){let g=$d(l,{relative:d.relative}),m=As(),v=S.useContext(Im),{navigator:E,basename:b}=S.useContext(wo),x=v!=null&&yN(g)&&u===!0,C=E.encodeLocation?E.encodeLocation(g).pathname:g.pathname,R=m.pathname,T=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(R=R.toLowerCase(),T=T?T.toLowerCase():null,C=C.toLowerCase()),T&&b&&(T=ws(T,b)||T);const O=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let _=R===C||!i&&R.startsWith(C)&&R.charAt(O)==="/",M=T!=null&&(T===C||!i&&T.startsWith(C)&&T.charAt(C.length)==="/"),A={isActive:_,isPending:M,isTransitioning:x},D=_?t:void 0,L;typeof r=="function"?L=r(A):L=[r,_?"active":null,M?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s(A):s;return S.createElement(ZM,{...d,"aria-current":D,className:L,ref:p,style:N,to:l,viewTransition:u},typeof f=="function"?f(A):f)});cN.displayName="NavLink";var fN=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:l=vg,action:u,onSubmit:f,relative:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m,...v},E)=>{let{unstable_useTransitions:b}=S.useContext(wo),x=mN(),C=vN(u,{relative:d}),R=l.toLowerCase()==="get"?"get":"post",T=typeof u=="string"&&JM.test(u),O=_=>{if(f&&f(_),_.defaultPrevented)return;_.preventDefault();let M=_.nativeEvent.submitter,A=(M==null?void 0:M.getAttribute("formmethod"))||l,D=()=>x(M||_.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m});b&&n!==!1?S.startTransition(()=>D()):D()};return S.createElement("form",{ref:E,method:R,action:C,onSubmit:r?f:O,...v,"data-discover":!T&&e==="render"?"true":void 0})});fN.displayName="Form";function dN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function e4(e){let t=S.useContext(Cc);return In(t,dN(e)),t}function hN(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:u,unstable_useTransitions:f}={}){let d=fE(),p=As(),g=$d(e,{relative:s});return S.useCallback(m=>{if($8(m,t)){m.preventDefault();let v=n!==void 0?n:gd(p)===gd(g),E=()=>d(e,{replace:v,state:r,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:u});f?S.startTransition(()=>E()):E()}},[p,d,g,n,r,t,e,i,s,l,u,f])}function mte(e){bo(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(Mb(e)),n=S.useRef(!1),r=As(),i=S.useMemo(()=>q8(r.search,n.current?null:t.current),[r.search]),s=fE(),l=S.useCallback((u,f)=>{const d=Mb(typeof u=="function"?u(new URLSearchParams(i)):u);n.current=!0,s("?"+d,f)},[s,i]);return[i,l]}var pN=0,gN=()=>`__${String(++pN)}__`;function mN(){let{router:e}=e4("useSubmit"),{basename:t}=S.useContext(wo),n=P8(),r=e.fetch,i=e.navigate;return S.useCallback(async(s,l={})=>{let{action:u,method:f,encType:d,formData:p,body:g}=X8(s,t);if(l.navigate===!1){let m=l.fetcherKey||gN();await r(m,n,l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:g,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await i(l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:g,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,i,t,n])}function vN(e,{relative:t}={}){let{basename:n}=S.useContext(wo),r=S.useContext(ui);In(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...$d(e||".",{relative:t})},l=As();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),f=u.getAll("index");if(f.some(p=>p==="")){u.delete("index"),f.filter(g=>g).forEach(g=>u.append("index",g));let p=u.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:bs([n,s.pathname])),gd(s)}function yN(e,{relative:t}={}){let n=S.useContext(jM);In(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=e4("useViewTransitionState"),i=$d(e,{relative:t});if(!n.isTransitioning)return!1;let s=ws(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ws(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vg(i.pathname,l)!=null||Vg(i.pathname,s)!=null}const bN=()=>{},Ve=typeof document<"u"?S.useLayoutEffect:bN;function Vt(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const t4=S.createContext(void 0);function qd(e){const t=S.useContext(t4);if(t===void 0&&!e)throw new Error(Vt(72));return t}const v_={};function Tr(e,t){const n=S.useRef(v_);return n.current===v_&&(n.current=e(t)),n}const SN=[];function mE(e){S.useEffect(e,SN)}const Xf=0;class Rs{constructor(){qt(this,"currentId",Xf);qt(this,"clear",()=>{this.currentId!==Xf&&(clearTimeout(this.currentId),this.currentId=Xf)});qt(this,"disposeEffect",()=>this.clear)}static create(){return new Rs}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Xf,n()},t)}isStarted(){return this.currentId!==Xf}}function Cn(){const e=Tr(Rs.create).current;return mE(e.disposeEffect),e}function Lm(){return typeof window<"u"}function Ma(e){return vE(e)?(e.nodeName||"").toLowerCase():"#document"}function Nn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zi(e){var t;return(t=(vE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vE(e){return Lm()?e instanceof Node||e instanceof Nn(e).Node:!1}function Jt(e){return Lm()?e instanceof Element||e instanceof Nn(e).Element:!1}function vn(e){return Lm()?e instanceof HTMLElement||e instanceof Nn(e).HTMLElement:!1}function Ib(e){return!Lm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nn(e).ShadowRoot}const EN=new Set(["inline","contents"]);function kl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!EN.has(i)}const wN=new Set(["table","td","th"]);function RN(e){return wN.has(Ma(e))}const xN=[":popover-open",":modal"];function Pm(e){return xN.some(t=>{try{return e.matches(t)}catch{return!1}})}const CN=["transform","translate","scale","rotate","perspective"],TN=["transform","translate","scale","rotate","perspective","filter"],_N=["paint","layout","strict","content"];function yE(e){const t=km(),n=Jt(e)?no(e):e;return CN.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||TN.some(r=>(n.willChange||"").includes(r))||_N.some(r=>(n.contain||"").includes(r))}function AN(e){let t=Mi(e);for(;vn(t)&&!Ai(t);){if(yE(t))return t;if(Pm(t))return null;t=Mi(t)}return null}function km(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ON=new Set(["html","body","#document"]);function Ai(e){return ON.has(Ma(e))}function no(e){return Nn(e).getComputedStyle(e)}function Nm(e){return Jt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mi(e){if(Ma(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ib(e)&&e.host||zi(e);return Ib(t)?t.host:t}function n4(e){const t=Mi(e);return Ai(t)?e.ownerDocument?e.ownerDocument.body:e.body:vn(t)&&kl(t)?t:n4(t)}function ga(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=n4(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),l=Nn(i);if(s){const u=Db(l);return t.concat(l,l.visualViewport||[],kl(i)?i:[],u&&n?ga(u):[])}return t.concat(i,ga(i,[],n))}function Db(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wn(e){const t=Tr(MN,e).current;return t.next=e,Ve(t.effect),t}function MN(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const i1=PM[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],IN=i1&&i1!==S.useLayoutEffect?i1:e=>e();function Be(e){const t=Tr(DN).current;return t.next=e,IN(t.effect),t.trampoline}function DN(){const e={next:void 0,callback:LN,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function LN(){}const Ac=typeof navigator<"u",s1=NN(),r4=zN(),o4=FN(),bE=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),PN=s1.platform==="MacIntel"&&s1.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(s1.platform),i4=Ac&&/apple/i.test(navigator.vendor),Lb=Ac&&/android/i.test(r4)||/android/i.test(o4),kN=Ac&&r4.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,s4=o4.includes("jsdom/");function NN(){if(!Ac)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e!=null&&e.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function FN(){if(!Ac)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function zN(){if(!Ac)return"";const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform??""}const Pb="data-base-ui-focusable",a4="active",l4="selected",u4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ma="ArrowLeft",va="ArrowRight",SE="ArrowUp",Gd="ArrowDown";function xi(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function Ct(e,t){var r;if(!e||!t)return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e.contains(t))return!0;if(n&&Ib(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Rr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ko(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function HN(e){return e.matches("html,body")}function Un(e){return(e==null?void 0:e.ownerDocument)||document}function EE(e){return vn(e)&&e.matches(u4)}function kb(e){return e?e.getAttribute("role")==="combobox"&&EE(e):!1}function BN(e){if(!e||s4)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function md(e){return e?e.hasAttribute(Pb)?e:e.querySelector(`[${Pb}]`)||e:null}function vl(e,t,n=!0){return e.filter(i=>{var s;return i.parentId===t&&(!n||((s=i.context)==null?void 0:s.open))}).flatMap(i=>[i,...vl(e,i.id,n)])}function y_(e,t){var i;let n=[],r=(i=e.find(s=>s.id===t))==null?void 0:i.parentId;for(;r;){const s=e.find(l=>l.id===r);r=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function wr(e){e.preventDefault(),e.stopPropagation()}function UN(e){return"nativeEvent"in e}function c4(e){return e.mozInputSource===0&&e.isTrusted?!0:Lb&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function f4(e){return s4?!1:!Lb&&e.width===0&&e.height===0||Lb&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function xl(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function d4(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const VN=["top","right","bottom","left"],fc=Math.min,go=Math.max,dc=Math.round,Pu=Math.floor,Oi=e=>({x:e,y:e}),jN={left:"right",right:"left",bottom:"top",top:"bottom"},$N={start:"end",end:"start"};function Nb(e,t,n){return go(e,fc(t,n))}function xs(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Ia(e){return e.split("-")[1]}function wE(e){return e==="x"?"y":"x"}function RE(e){return e==="y"?"height":"width"}const qN=new Set(["top","bottom"]);function Ho(e){return qN.has(Qr(e))?"y":"x"}function xE(e){return wE(Ho(e))}function GN(e,t,n){n===void 0&&(n=!1);const r=Ia(e),i=xE(e),s=RE(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=jg(l)),[l,jg(l)]}function YN(e){const t=jg(e);return[Fb(e),t,Fb(t)]}function Fb(e){return e.replace(/start|end/g,t=>$N[t])}const b_=["left","right"],S_=["right","left"],XN=["top","bottom"],WN=["bottom","top"];function KN(e,t,n){switch(e){case"top":case"bottom":return n?t?S_:b_:t?b_:S_;case"left":case"right":return t?XN:WN;default:return[]}}function QN(e,t,n,r){const i=Ia(e);let s=KN(Qr(e),n==="start",r);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(Fb)))),s}function jg(e){return e.replace(/left|right|bottom|top/g,t=>jN[t])}function JN(e){return{top:0,right:0,bottom:0,left:0,...e}}function h4(e){return typeof e!="number"?JN(e):{top:e,right:e,bottom:e,left:e}}function $g(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Fp(e,t,n){return Math.floor(e/t)!==n}function Uu(e,t){return t<0||t>=e.current.length}function bg(e,t){return yr(e,{disabledIndices:t})}function zb(e,t){return yr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function yr(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let s=t;do s+=n?-i:i;while(s>=0&&s<=e.current.length-1&&ya(e,s,r));return s}function p4(e,{event:t,orientation:n,loopFocus:r,rtl:i,cols:s,disabledIndices:l,minIndex:u,maxIndex:f,prevIndex:d,stopEvent:p=!1}){let g=d;const m=[],v={};let E=!1;{let C=null,R=-1;e.current.forEach((T,O)=>{if(T==null)return;const _=T.closest('[role="row"]');_&&(E=!0),(_!==C||R===-1)&&(C=_,R+=1,m[R]=[]),m[R].push(O),v[O]=R})}const b=E&&m.length>0&&m.some(C=>C.length!==s);function x(C){if(!b||d===-1)return;const R=v[d];if(R==null)return;const T=m[R].indexOf(d);let O=C==="up"?R-1:R+1;r&&(O<0?O=m.length-1:O>=m.length&&(O=0));const _=new Set;for(;O>=0&&O<m.length&&!_.has(O);){_.add(O);const M=m[O];if(M.length===0){O=C==="up"?O-1:O+1;continue}const A=Math.min(T,M.length-1);for(let D=A;D>=0;D-=1){const L=M[D];if(!ya(e,L,l))return L}O=C==="up"?O-1:O+1,r&&(O<0?O=m.length-1:O>=m.length&&(O=0))}}if(t.key===SE){const C=x("up");if(C!==void 0)p&&wr(t),g=C;else{if(p&&wr(t),d===-1)g=f;else if(g=yr(e,{startingIndex:g,amount:s,decrement:!0,disabledIndices:l}),r&&(d-s<u||g<0)){const R=d%s,T=f%s,O=f-(T-R);T===R?g=f:g=T>R?O:O-s}Uu(e,g)&&(g=d)}}if(t.key===Gd){const C=x("down");C!==void 0?(p&&wr(t),g=C):(p&&wr(t),d===-1?g=u:(g=yr(e,{startingIndex:d,amount:s,disabledIndices:l}),r&&d+s>f&&(g=yr(e,{startingIndex:d%s-s,amount:s,disabledIndices:l}))),Uu(e,g)&&(g=d))}if(n==="both"){const C=Pu(d/s);t.key===(i?ma:va)&&(p&&wr(t),d%s!==s-1?(g=yr(e,{startingIndex:d,disabledIndices:l}),r&&Fp(g,s,C)&&(g=yr(e,{startingIndex:d-d%s-1,disabledIndices:l}))):r&&(g=yr(e,{startingIndex:d-d%s-1,disabledIndices:l})),Fp(g,s,C)&&(g=d)),t.key===(i?va:ma)&&(p&&wr(t),d%s!==0?(g=yr(e,{startingIndex:d,decrement:!0,disabledIndices:l}),r&&Fp(g,s,C)&&(g=yr(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:l}))):r&&(g=yr(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:l})),Fp(g,s,C)&&(g=d));const R=Pu(f/s)===C;Uu(e,g)&&(r&&R?g=t.key===(i?va:ma)?f:yr(e,{startingIndex:d-d%s-1,disabledIndices:l}):g=d)}return g}function g4(e,t,n){const r=[];let i=0;return e.forEach(({width:s,height:l},u)=>{let f=!1;for(n&&(i=0);!f;){const d=[];for(let p=0;p<s;p+=1)for(let g=0;g<l;g+=1)d.push(i+p+g*t);i%t+s<=t&&d.every(p=>r[p]==null)?(d.forEach(p=>{r[p]=u}),f=!0):i+=1}}),[...r]}function m4(e,t,n,r,i){if(e===-1)return-1;const s=n.indexOf(e),l=t[e];switch(i){case"tl":return s;case"tr":return l?s+l.width-1:s;case"bl":return l?s+(l.height-1)*r:s;case"br":return n.lastIndexOf(e);default:return-1}}function v4(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function ya(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}var ZN=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],qg=ZN.join(","),y4=typeof Element>"u",hc=y4?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gg=!y4&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},vd=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=i===""||i==="true",l=s||n&&t&&vd(t.parentNode);return l},eF=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},b4=function(t,n,r){if(vd(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(qg));return n&&hc.call(t,qg)&&i.unshift(t),i=i.filter(r),i},Yg=function(t,n,r){for(var i=[],s=Array.from(t);s.length;){var l=s.shift();if(!vd(l,!1))if(l.tagName==="SLOT"){var u=l.assignedElements(),f=u.length?u:l.children,d=Yg(f,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:l,candidates:d})}else{var p=hc.call(l,qg);p&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),m=!vd(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&m){var v=Yg(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,v):i.push({scopeParent:l,candidates:v})}else s.unshift.apply(s,l.children)}}return i},S4=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},E4=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||eF(t))&&!S4(t)?0:t.tabIndex},tF=function(t,n){var r=E4(t);return r<0&&n&&!S4(t)?0:r},nF=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},w4=function(t){return t.tagName==="INPUT"},rF=function(t){return w4(t)&&t.type==="hidden"},oF=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},iF=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},sF=function(t){if(!t.name)return!0;var n=t.form||Gg(t),r=function(u){return n.querySelectorAll('input[type="radio"][name="'+u+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=iF(i,t.form);return!s||s===t},aF=function(t){return w4(t)&&t.type==="radio"},lF=function(t){return aF(t)&&!sF(t)},uF=function(t){var n,r=t&&Gg(t),i=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var l,u,f;for(s=!!((l=i)!==null&&l!==void 0&&(u=l.ownerDocument)!==null&&u!==void 0&&u.contains(i)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!s&&i;){var d,p,g;r=Gg(i),i=(d=r)===null||d===void 0?void 0:d.host,s=!!((p=i)!==null&&p!==void 0&&(g=p.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return s},E_=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},cF=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var l=hc.call(t,"details>summary:first-of-type"),u=l?t.parentElement:t;if(hc.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var f=t;t;){var d=t.parentElement,p=Gg(t);if(d&&!d.shadowRoot&&i(d)===!0)return E_(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=f}if(uF(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return E_(t);return!1},fF=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return hc.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},Hb=function(t,n){return!(n.disabled||vd(n)||rF(n)||cF(n,t)||oF(n)||fF(n))},Bb=function(t,n){return!(lF(n)||E4(n)<0||!Hb(t,n))},dF=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},R4=function(t){var n=[],r=[];return t.forEach(function(i,s){var l=!!i.scopeParent,u=l?i.scopeParent:i,f=tF(u,l),d=l?R4(i.candidates):u;f===0?l?n.push.apply(n,d):n.push(u):r.push({documentOrder:s,tabIndex:f,item:i,isScope:l,content:d})}),r.sort(nF).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(n)},Yd=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Yg([t],n.includeContainer,{filter:Bb.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:dF}):r=b4(t,n.includeContainer,Bb.bind(null,n)),R4(r)},hF=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Yg([t],n.includeContainer,{filter:Hb.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=b4(t,n.includeContainer,Hb.bind(null,n)),r},x4=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return hc.call(t,qg)===!1?!1:Bb(n,t)};const Oc=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function C4(e,t){const n=Yd(e,Oc()),r=n.length;if(r===0)return;const i=xi(Un(e)),s=n.indexOf(i),l=s===-1?t===1?0:r-1:s+t;return n[l]}function Fm(e){return C4(Un(e).body,1)||e}function T4(e){return C4(Un(e).body,-1)||e}function _4(e,t){if(!e)return null;const n=Yd(Un(e).body,Oc()),r=n.length;if(r===0)return null;const i=n.indexOf(e);if(i===-1)return null;const s=(i+t+r)%r;return n[s]}function A4(e){return _4(e,1)}function O4(e){return _4(e,-1)}function yl(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ct(n,r)}function pF(e){Yd(e,Oc()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function w_(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const gF={...PM};let R_=0;function mF(e,t="mui"){const[n,r]=S.useState(e),i=e||n;return S.useEffect(()=>{n==null&&(R_+=1,r(`${t}-${R_}`))},[n,t]),i}const x_=gF.useId;function Nl(e,t){if(x_!==void 0){const n=x_();return e??(t?`${t}-${n}`:n)}return mF(e,t)}function M4(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}class CE{constructor(){qt(this,"nodesRef",{current:[]});qt(this,"events",M4())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const I4=S.createContext(null),D4=S.createContext(null),Hi=()=>{var e;return((e=S.useContext(I4))==null?void 0:e.id)||null},Da=e=>{const t=S.useContext(D4);return e??t};function TE(e){const t=Nl(),n=Da(e),r=Hi();return Ve(()=>{if(!t)return;const i={id:t,parentId:r};return n==null||n.addNode(i),()=>{n==null||n.removeNode(i)}},[n,t,r]),t}function L4(e){const{children:t,id:n}=e,r=Hi();return be.jsx(I4.Provider,{value:S.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function P4(e){const{children:t,externalTree:n}=e,r=Tr(()=>n??new CE).current;return be.jsx(D4.Provider,{value:r,children:t})}function Kn(){}const Ea=Object.freeze([]),Mn=Object.freeze({}),vF=500,k4=500,yF={style:{transition:"none"}},N4="data-base-ui-click-trigger",F4={fallbackAxisSide:"none"},_E={fallbackAxisSide:"end"},bF={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Os="none",ti="trigger-press",ir="trigger-hover",yd="trigger-focus",AE="outside-press",od="item-press",Ii="focus-out",Xd="escape-key",Sg="list-navigation",z4="cancel-open",ed="sibling-open",SF="disabled",zm="imperative-action",EF="window-resize";function lt(e,t,n,r){let i=!1,s=!1;const l=Mn;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...l}}function pc(e){return`data-base-ui-${e}`}function Eg(e,t,n){if(n&&!xl(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}const H4=S.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Rs,currentIdRef:{current:null},currentContextRef:{current:null}});function wF(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=S.useRef(n),s=S.useRef(n),l=S.useRef(null),u=S.useRef(null),f=Cn();return be.jsx(H4.Provider,{value:S.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:s,currentIdRef:l,timeoutMs:r,currentContextRef:u,timeout:f}),[r,f]),children:t})}function RF(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{enabled:i=!0,open:s}=t,l=S.useContext(H4),{currentIdRef:u,delayRef:f,timeoutMs:d,initialDelayRef:p,currentContextRef:g,hasProvider:m,timeout:v}=l,[E,b]=S.useState(!1);return Ve(()=>{function x(){var C;b(!1),(C=g.current)==null||C.setIsInstantPhase(!1),u.current=null,g.current=null,f.current=p.current}if(i&&u.current&&!s&&u.current===r){if(b(!1),d){const C=r;return v.start(d,()=>{n.select("open")||u.current&&u.current!==C||x()}),()=>{v.clear()}}x()}},[i,s,r,u,f,d,p,g,v,n]),Ve(()=>{if(!i||!s)return;const x=g.current,C=u.current;v.clear(),g.current={onOpenChange:n.setOpen,setIsInstantPhase:b},u.current=r,f.current={open:0,close:Eg(p.current,"close")},C!==null&&C!==r?(b(!0),x==null||x.setIsInstantPhase(!0),x==null||x.onOpenChange(!1,lt(Os))):(b(!1),x==null||x.setIsInstantPhase(!1))},[i,s,r,n,u,f,d,p,g,v]),Ve(()=>()=>{g.current=null},[g]),S.useMemo(()=>({hasProvider:m,delayRef:f,isInstantPhase:E}),[m,f,E])}function So(e,t,n,r){const i=Tr(B4).current;return CF(i,e,t,n,r)&&U4(i,[e,t,n,r]),i.callback}function xF(e){const t=Tr(B4).current;return TF(t,e)&&U4(t,e),t.callback}function B4(){return{callback:null,cleanup:null,refs:[]}}function CF(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function TF(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function U4(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(r[i]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=r[i];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}const Fl={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1},zp=null;class _F{constructor(){qt(this,"callbacks",[]);qt(this,"callbacksCount",0);qt(this,"nextId",1);qt(this,"startId",1);qt(this,"isScheduled",!1);qt(this,"tick",t=>{var i;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let s=0;s<n.length;s+=1)(i=n[s])==null||i.call(n,t)})}request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Hp=new _F;class wi{constructor(){qt(this,"currentId",zp);qt(this,"cancel",()=>{this.currentId!==zp&&(Hp.cancel(this.currentId),this.currentId=zp)});qt(this,"disposeEffect",()=>this.cancel)}static create(){return new wi}static request(t){return Hp.request(t)}static cancel(t){return Hp.cancel(t)}request(t){this.cancel(),this.currentId=Hp.request(()=>{this.currentId=zp,t()})}}function Mc(){const e=Tr(wi.create).current;return mE(e.disposeEffect),e}function qo(e){return(e==null?void 0:e.ownerDocument)||document}const wa=S.forwardRef(function(t,n){const[r,i]=S.useState();Ve(()=>{i4&&i("button")},[]);const s={tabIndex:0,role:r};return be.jsx("span",{...t,ref:n,style:Fl,"aria-hidden":r?void 0:!0,...s,"data-base-ui-focus-guard":""})});let C_=0;function wg(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(C_);const s=()=>e==null?void 0:e.focus({preventScroll:n});i?s():C_=requestAnimationFrame(s)}const Vu={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function T_(e){return e==="inert"?Vu.inert:e==="aria-hidden"?Vu["aria-hidden"]:Vu.none}let Bp=new WeakSet,Up={},a1=0;const V4=e=>e&&(e.host||V4(e.parentNode)),AF=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=V4(n);return e.contains(r)?r:null}).filter(n=>n!=null);function OF(e,t,n,r){const i="data-base-ui-inert",s=r?"inert":n?"aria-hidden":null,l=AF(t,e),u=new Set,f=new Set(l),d=[];Up[i]||(Up[i]=new WeakMap);const p=Up[i];l.forEach(g),m(t),u.clear();function g(v){!v||u.has(v)||(u.add(v),v.parentNode&&g(v.parentNode))}function m(v){!v||f.has(v)||[].forEach.call(v.children,E=>{if(Ma(E)!=="script")if(u.has(E))m(E);else{const b=s?E.getAttribute(s):null,x=b!==null&&b!=="false",C=T_(s),R=(C.get(E)||0)+1,T=(p.get(E)||0)+1;C.set(E,R),p.set(E,T),d.push(E),R===1&&x&&Bp.add(E),T===1&&E.setAttribute(i,""),!x&&s&&E.setAttribute(s,s==="inert"?"":"true")}})}return a1+=1,()=>{d.forEach(v=>{const E=T_(s),x=(E.get(v)||0)-1,C=(p.get(v)||0)-1;E.set(v,x),p.set(v,C),x||(!Bp.has(v)&&s&&v.removeAttribute(s),Bp.delete(v)),C||v.removeAttribute(i)}),a1-=1,a1||(Vu.inert=new WeakMap,Vu["aria-hidden"]=new WeakMap,Vu.none=new WeakMap,Bp=new WeakSet,Up={})}}function MF(e,t=!1,n=!1){const r=Un(e[0]).body;return OF(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}var Dn=kM();const IF=Ts(Dn),DF=parseInt(S.version,10);function OE(e){return DF>=e}function __(e){if(!S.isValidElement(e))return null;const t=e,n=t.props;return(OE(19)?n==null?void 0:n.ref:t.ref)??null}function Ub(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function LF(e,t){const n={};for(const r in e){const i=e[r];if(t!=null&&t.hasOwnProperty(r)){const s=t[r](i);s!=null&&Object.assign(n,s);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function PF(e,t){return typeof e=="function"?e(t):e}function kF(e,t){return typeof e=="function"?e(t):e}const id={};function Di(e,t,n,r,i){let s={...Vb(e,id)};return t&&(s=td(s,t)),n&&(s=td(s,n)),r&&(s=td(s,r)),i&&(s=td(s,i)),s}function NF(e){if(e.length===0)return id;if(e.length===1)return Vb(e[0],id);let t={...Vb(e[0],id)};for(let n=1;n<e.length;n+=1)t=td(t,e[n]);return t}function td(e,t){return j4(t)?t(e):FF(e,t)}function FF(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Ub(e.style,r);break}case"className":{e[n]=$4(e.className,r);break}default:zF(n,r)?e[n]=HF(e[n],r):e[n]=r}}return e}function zF(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function j4(e){return typeof e=="function"}function Vb(e,t){return j4(e)?e(t):e??id}function HF(e,t){return t?e?n=>{if(BF(n)){const i=n;jb(i);const s=t(i);return i.baseUIHandlerPrevented||e==null||e(i),s}const r=t(n);return e==null||e(n),r}:t:e}function jb(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function $4(e,t){return t?e?t+" "+e:t:e}function BF(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function St(e,t,n={}){const r=t.render,i=UF(t,n);if(n.enabled===!1)return null;const s=n.state??Mn;return VF(e,r,i,s)}function UF(e,t={}){const{className:n,style:r,render:i}=e,{state:s=Mn,ref:l,props:u,stateAttributesMapping:f,enabled:d=!0}=t,p=d?PF(n,s):void 0,g=d?kF(r,s):void 0,m=d?LF(s,f):Mn,v=d?Ub(m,Array.isArray(u)?NF(u):u)??Mn:Mn;return typeof document<"u"&&(d?Array.isArray(l)?v.ref=xF([v.ref,__(i),...l]):v.ref=So(v.ref,__(i),l):So(null,null)),d?(p!==void 0&&(v.className=$4(v.className,p)),g!==void 0&&(v.style=Ub(v.style,g)),v):Mn}function VF(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=Di(n,t.props);return i.ref=n.ref,S.cloneElement(t,i)}if(e&&typeof e=="string")return jF(e,n);throw new Error(Vt(8))}function jF(e,t){return e==="button"?S.createElement("button",{type:"button",...t,key:t.key}):e==="img"?S.createElement("img",{alt:"",...t,key:t.key}):S.createElement(e,t)}const q4=S.createContext(null),G4=()=>S.useContext(q4),$F=pc("portal");function Y4(e={}){const{ref:t,container:n,componentProps:r=Mn,elementProps:i,elementState:s}=e,l=Nl(),u=G4(),f=u==null?void 0:u.portalNode,[d,p]=S.useState(null),[g,m]=S.useState(null),v=S.useRef(null);Ve(()=>{if(n===null){v.current&&(v.current=null,m(null),p(null));return}if(l==null)return;const x=(n&&(vE(n)?n:n.current))??f??document.body;if(x==null){v.current&&(v.current=null,m(null),p(null));return}v.current!==x&&(v.current=x,m(null),p(x))},[n,f,l]);const E=St("div",r,{ref:[t,m],state:s,props:[{id:l,[$F]:""},i]});return{portalNode:g,portalSubtree:d&&E?Dn.createPortal(E,d):null}}const Hm=S.forwardRef(function(t,n){const{children:r,container:i,className:s,render:l,renderGuards:u,...f}=t,{portalNode:d,portalSubtree:p}=Y4({container:i,ref:n,componentProps:t,elementProps:f}),g=S.useRef(null),m=S.useRef(null),v=S.useRef(null),E=S.useRef(null),[b,x]=S.useState(null),C=b==null?void 0:b.modal,R=b==null?void 0:b.open,T=typeof u=="boolean"?u:!!b&&!b.modal&&b.open&&!!d;S.useEffect(()=>{if(!d||C)return;function _(M){d&&yl(M)&&(M.type==="focusin"?w_:pF)(d)}return d.addEventListener("focusin",_,!0),d.addEventListener("focusout",_,!0),()=>{d.removeEventListener("focusin",_,!0),d.removeEventListener("focusout",_,!0)}},[d,C]),S.useEffect(()=>{!d||R||w_(d)},[R,d]);const O=S.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:m,beforeInsideRef:v,afterInsideRef:E,portalNode:d,setFocusManagerState:x}),[d]);return be.jsxs(S.Fragment,{children:[p,be.jsxs(q4.Provider,{value:O,children:[T&&d&&be.jsx(wa,{"data-type":"outside",ref:g,onFocus:_=>{var M;if(yl(_,d))(M=v.current)==null||M.focus();else{const A=b?b.domReference:null,D=T4(A);D==null||D.focus()}}}),T&&d&&be.jsx("span",{"aria-owns":d.id,style:bF}),d&&Dn.createPortal(r,d),T&&d&&be.jsx(wa,{"data-type":"outside",ref:m,onFocus:_=>{var M;if(yl(_,d))(M=E.current)==null||M.focus();else{const A=b?b.domReference:null,D=Fm(A);D==null||D.focus(),b!=null&&b.closeOnFocusOut&&(b==null||b.onOpenChange(!1,lt(Ii,_.nativeEvent)))}}})]})]})});function nl(e){return e==null?e:"current"in e?e.current:e}function qF(e,t){const n=Nn(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const GF=20;let da=[];function ME(){da=da.filter(e=>e.isConnected)}function YF(e){ME(),e&&Ma(e)!=="body"&&(da.push(e),da.length>GF&&(da=da.slice(-20)))}function l1(){return ME(),da[da.length-1]}function XF(e){if(!e)return null;const t=Oc();return x4(e,t)?e:Yd(e,t)[0]||e}function WF(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():no(e).display!=="none"}function A_(e,t){var l;if(!t.current.includes("floating")&&!((l=e.getAttribute("role"))!=null&&l.includes("dialog")))return;const n=Oc(),i=hF(e,n).filter(u=>{const f=u.getAttribute("data-tabindex")||"";return x4(u,n)||u.hasAttribute("data-tabindex")&&!f.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?s!=="0"&&e.setAttribute("tabindex","0"):(s!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Bm(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],initialFocus:s=!0,returnFocus:l=!0,restoreFocus:u=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:p="",getInsideElements:g=()=>[],nextFocusableElement:m,previousFocusableElement:v,beforeContentFocusGuardRef:E,externalTree:b}=e,x="rootStore"in t?t.rootStore:t,C=x.useState("open"),R=x.useState("domReferenceElement"),T=x.useState("floatingElement"),{events:O,dataRef:_}=x.context,M=Be(()=>{var Se;return(Se=_.current.floatingContext)==null?void 0:Se.nodeId}),A=Be(g),D=s===!1,L=kb(R)&&D,N=Wn(i),H=Wn(s),j=Wn(l),F=Wn(p),q=Da(b),U=G4(),P=S.useRef(null),G=S.useRef(null),B=S.useRef(!1),Y=S.useRef(!1),J=S.useRef(!1),k=S.useRef(-1),$=S.useRef(""),W=S.useRef(""),te=Cn(),ae=Cn(),ne=Mc(),ce=U!=null,Q=md(T),de=Be((Se=Q)=>Se?Yd(Se,Oc()):[]),ve=Be(Se=>{const Te=de(Se);return N.current.map(()=>Te).filter(Boolean).flat()});S.useEffect(()=>{if(r||!f)return;function Se(we){we.key==="Tab"&&Ct(Q,xi(Un(Q)))&&de().length===0&&!L&&wr(we)}const Te=Un(Q);return Te.addEventListener("keydown",Se),()=>{Te.removeEventListener("keydown",Se)}},[r,R,Q,f,N,L,de,ve]),S.useEffect(()=>{if(r||!T)return;function Se(Te){const we=Rr(Te),V=de().indexOf(we);V!==-1&&(k.current=V)}return T.addEventListener("focusin",Se),()=>{T.removeEventListener("focusin",Se)}},[r,T,de]),S.useEffect(()=>{if(r||!C)return;const Se=Un(Q);function Te(){J.current=!1}function we(V){const X=Rr(V),Z=Ct(T,X)||Ct(R,X)||Ct(U==null?void 0:U.portalNode,X);J.current=!Z,W.current=V.pointerType||"keyboard"}function De(){W.current="keyboard"}return Se.addEventListener("pointerdown",we,!0),Se.addEventListener("pointerup",Te,!0),Se.addEventListener("pointercancel",Te,!0),Se.addEventListener("keydown",De,!0),()=>{Se.removeEventListener("pointerdown",we,!0),Se.removeEventListener("pointerup",Te,!0),Se.removeEventListener("pointercancel",Te,!0),Se.removeEventListener("keydown",De,!0)}},[r,T,R,Q,C,U]),S.useEffect(()=>{if(r||!d)return;function Se(){Y.current=!0,ae.start(0,()=>{Y.current=!1})}function Te(X){const Z=X.relatedTarget,ie=X.currentTarget,se=Rr(X);queueMicrotask(()=>{const re=M(),Ie=x.context.triggerElements,Ue=!(Ct(R,Z)||Ct(T,Z)||Ct(Z,T)||Ct(U==null?void 0:U.portalNode,Z)||Z!=null&&Ie.hasElement(Z)||Ie.hasMatchingElement(ke=>Ct(ke,Z))||Z!=null&&Z.hasAttribute(pc("focus-guard"))||q&&(vl(q.nodesRef.current,re).find(ke=>{var Ge,nt;return Ct((Ge=ke.context)==null?void 0:Ge.elements.floating,Z)||Ct((nt=ke.context)==null?void 0:nt.elements.domReference,Z)})||y_(q.nodesRef.current,re).find(ke=>{var Ge,nt,rt;return[(Ge=ke.context)==null?void 0:Ge.elements.floating,md((nt=ke.context)==null?void 0:nt.elements.floating)].includes(Z)||((rt=ke.context)==null?void 0:rt.elements.domReference)===Z})));if(ie===R&&Q&&A_(Q,N),u&&ie!==R&&!WF(se)&&xi(Un(Q))===Un(Q).body){if(vn(Q)&&(Q.focus(),u==="popup")){ne.request(()=>{Q.focus()});return}const ke=k.current,Ge=de(),nt=Ge[ke]||Ge[Ge.length-1]||Q;vn(nt)&&nt.focus()}if(_.current.insideReactTree){_.current.insideReactTree=!1;return}(L||!f)&&Z&&Ue&&!Y.current&&(L||Z!==l1())&&(B.current=!0,x.setOpen(!1,lt(Ii,X)))})}function we(){J.current||(_.current.insideReactTree=!0,te.start(0,()=>{_.current.insideReactTree=!1}))}const De=vn(R)?R:null,V=[];if(!(!T&&!De))return De&&(De.addEventListener("focusout",Te),De.addEventListener("pointerdown",Se),V.push(()=>{De.removeEventListener("focusout",Te),De.removeEventListener("pointerdown",Se)})),T&&(T.addEventListener("focusout",Te),U&&(T.addEventListener("focusout",we,!0),V.push(()=>{T.removeEventListener("focusout",we,!0)})),V.push(()=>{T.removeEventListener("focusout",Te)})),()=>{V.forEach(X=>{X()})}},[r,R,T,Q,f,q,U,x,d,u,de,L,M,N,_,te,ae,ne]);const ue=S.useRef(null),me=S.useRef(null),xe=So(ue,E,U==null?void 0:U.beforeInsideRef),Ce=So(me,U==null?void 0:U.afterInsideRef);S.useEffect(()=>{var X,Z,ie;if(r||!T||!C)return;const Se=Array.from(((X=U==null?void 0:U.portalNode)==null?void 0:X.querySelectorAll(`[${pc("portal")}]`))||[]),we=(ie=(Z=(q?y_(q.nodesRef.current,M()):[]).find(se=>{var re;return kb(((re=se.context)==null?void 0:re.elements.domReference)||null)}))==null?void 0:Z.context)==null?void 0:ie.elements.domReference,De=[T,we,...Se,...A(),P.current,G.current,ue.current,me.current,U==null?void 0:U.beforeOutsideRef.current,U==null?void 0:U.afterOutsideRef.current,nl(v),nl(m),L?R:null].filter(se=>se!=null),V=MF(De,f||L);return()=>{V()}},[C,r,R,T,f,N,U,L,q,M,A,m,v]),Ve(()=>{if(!C||r||!vn(Q))return;const Se=Un(Q),Te=xi(Se);queueMicrotask(()=>{const we=ve(Q),De=H.current,V=typeof De=="function"?De(F.current||""):De;if(V===void 0||V===!1)return;let X;V===!0||V===null?X=we[0]||Q:X=nl(V),X=X||we[0]||Q,!Ct(Q,Te)&&wg(X,{preventScroll:X===Q})})},[r,C,Q,D,ve,H,F]),Ve(()=>{if(r||!Q)return;const Se=Un(Q),Te=xi(Se);YF(Te);function we(X){if(X.open||($.current=qF(X.nativeEvent,W.current)),X.reason===ir&&X.nativeEvent.type==="mouseleave"&&(B.current=!0),X.reason===AE)if(X.nested)B.current=!1;else if(c4(X.nativeEvent)||f4(X.nativeEvent))B.current=!1;else{let Z=!1;document.createElement("div").focus({get preventScroll(){return Z=!0,!1}}),Z?B.current=!1:B.current=!0}}O.on("openchange",we);const De=Se.createElement("span");De.setAttribute("tabindex","-1"),De.setAttribute("aria-hidden","true"),Object.assign(De.style,Fl),ce&&R&&R.insertAdjacentElement("afterend",De);function V(){const X=j.current;let Z=typeof X=="function"?X($.current):X;if(Z===void 0||Z===!1)return null;if(Z===null&&(Z=!0),typeof Z=="boolean"){const se=R||l1();return se&&se.isConnected?se:De}const ie=R||l1()||De;return nl(Z)||ie}return()=>{O.off("openchange",we);const X=xi(Se),Z=Ct(T,X)||q&&vl(q.nodesRef.current,M(),!1).some(se=>{var re;return Ct((re=se.context)==null?void 0:re.elements.floating,X)}),ie=V();queueMicrotask(()=>{const se=XF(ie),re=typeof j.current!="boolean";j.current&&!B.current&&vn(se)&&(!(!re&&se!==X&&X!==Se.body)||Z)&&se.focus({preventScroll:!0}),De.remove()})}},[r,T,Q,j,_,O,q,ce,R,M]),S.useEffect(()=>{queueMicrotask(()=>{B.current=!1})},[r]),S.useEffect(()=>{if(r||!C)return;function Se(we){const De=Rr(we);De!=null&&De.closest(`[${N4}]`)&&(Y.current=!0)}const Te=Un(Q);return Te.addEventListener("pointerdown",Se,!0),()=>{Te.removeEventListener("pointerdown",Se,!0)}},[r,C,Q]),Ve(()=>{if(!r&&U)return U.setFocusManagerState({modal:f,closeOnFocusOut:d,open:C,onOpenChange:x.setOpen,domReference:R}),()=>{U.setFocusManagerState(null)}},[r,U,f,C,x,d,R]),Ve(()=>{if(!(r||!Q))return A_(Q,N),()=>{queueMicrotask(ME)}},[r,Q,N]);const Ae=!r&&(f?!L:!0)&&(ce||f);return be.jsxs(S.Fragment,{children:[Ae&&be.jsx(wa,{"data-type":"inside",ref:xe,onFocus:Se=>{var Te;if(f){const we=ve();wg(we[we.length-1])}else if(U!=null&&U.portalNode)if(B.current=!1,yl(Se,U.portalNode)){const we=Fm(R);we==null||we.focus()}else(Te=nl(v??U.beforeOutsideRef))==null||Te.focus()}}),n,Ae&&be.jsx(wa,{"data-type":"inside",ref:Ce,onFocus:Se=>{var Te;if(f)wg(ve()[0]);else if(U!=null&&U.portalNode)if(d&&(B.current=!0),yl(Se,U.portalNode)){const we=T4(R);we==null||we.focus()}else(Te=nl(m??U.afterOutsideRef))==null||Te.focus()}})]})}function IE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,stickIfOpen:f=!0,touchOpenDelay:d=0}=t,p=S.useRef(void 0),g=Mc(),m=Cn(),v=S.useMemo(()=>({onPointerDown(E){p.current=E.pointerType},onMouseDown(E){const b=p.current,x=E.nativeEvent,C=n.select("open");if(E.button!==0||s==="click"||xl(b,!0)&&u)return;const R=r.current.openEvent,T=R==null?void 0:R.type,O=n.select("domReferenceElement")!==E.currentTarget,_=C&&O||!(C&&l&&(!(R&&f)||T==="click"||T==="mousedown"));if(EE(x.target)){const A=lt(ti,x,x.target);_&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,A)}):n.setOpen(_,A);return}const M=E.currentTarget;g.request(()=>{const A=lt(ti,x,M);_&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,A)}):n.setOpen(_,A)})},onClick(E){if(s==="mousedown-only")return;const b=p.current;if(s==="mousedown"&&b){p.current=void 0;return}if(xl(b,!0)&&u)return;const x=n.select("open"),C=r.current.openEvent,R=n.select("domReferenceElement")!==E.currentTarget,T=x&&R||!(x&&l&&(!(C&&f)||d4(C))),O=lt(ti,E.nativeEvent,E.currentTarget);T&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,O)}):n.setOpen(T,O)},onKeyDown(){p.current=void 0}}),[r,s,u,n,f,l,g,m,d]);return S.useMemo(()=>i?{reference:v}:Mn,[i,v])}function KF(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){var v;const s=(e==null?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",u=t.axis==="y"||t.axis==="both",f=["mouseenter","mousemove"].includes(((v=t.dataRef.current.openEvent)==null?void 0:v.type)||"")&&t.pointerType!=="touch";let d=s.width,p=s.height,g=s.x,m=s.y;return n==null&&t.x&&l&&(n=s.x-t.x),r==null&&t.y&&u&&(r=s.y-t.y),g-=n||0,m-=r||0,d=0,p=0,!i||f?(d=t.axis==="y"?s.width:0,p=t.axis==="x"?s.height:0,g=l&&t.x!=null?t.x:g,m=u&&t.y!=null?t.y:m):i&&!f&&(p=t.axis==="x"?s.height:p,d=t.axis==="y"?s.width:d),i=!0,{width:d,height:p,x:g,y:m,top:m,right:g+d,bottom:m+p,left:g}}}}function O_(e){return e!=null&&e.clientX!=null}function QF(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:u=!0,axis:f="both",x:d=null,y:p=null}=t,g=S.useRef(!1),m=S.useRef(null),[v,E]=S.useState(),[b,x]=S.useState([]),C=Be((M,A)=>{g.current||l.current.openEvent&&!O_(l.current.openEvent)||n.set("positionReference",KF(s,{x:M,y:A,axis:f,dataRef:l,pointerType:v}))}),R=Be(M=>{d!=null||p!=null||(r?m.current||x([]):C(M.clientX,M.clientY))}),T=xl(v)?i:r,O=S.useCallback(()=>{if(!T||!u||d!=null||p!=null)return;const M=Nn(i);function A(D){const L=Rr(D);Ct(i,L)?(M.removeEventListener("mousemove",A),m.current=null):C(D.clientX,D.clientY)}if(!l.current.openEvent||O_(l.current.openEvent)){M.addEventListener("mousemove",A);const D=()=>{M.removeEventListener("mousemove",A),m.current=null};return m.current=D,D}n.set("positionReference",s)},[T,u,d,p,i,l,s,n,C]);S.useEffect(()=>O(),[O,b]),S.useEffect(()=>{u&&!i&&(g.current=!1)},[u,i]),S.useEffect(()=>{!u&&r&&(g.current=!0)},[u,r]),Ve(()=>{u&&(d!=null||p!=null)&&(g.current=!1,C(d,p))},[u,d,p,C]);const _=S.useMemo(()=>{function M(A){E(A.pointerType)}return{onPointerDown:M,onPointerEnter:M,onMouseMove:R,onMouseEnter:R}},[R]);return S.useMemo(()=>u?{reference:_}:{},[u,_])}function M_(e,t,n){let{reference:r,floating:i}=e;const s=Ho(t),l=xE(t),u=RE(l),f=Qr(t),d=s==="y",p=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,m=r[u]/2-i[u]/2;let v;switch(f){case"top":v={x:p,y:r.y-i.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:g};break;case"left":v={x:r.x-i.width,y:g};break;default:v={x:r.x,y:r.y}}switch(Ia(t)){case"start":v[l]-=m*(n&&d?-1:1);break;case"end":v[l]+=m*(n&&d?-1:1);break}return v}const JF=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,u=s.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:g}=M_(d,r,f),m=r,v={},E=0;for(let b=0;b<u.length;b++){const{name:x,fn:C}=u[b],{x:R,y:T,data:O,reset:_}=await C({x:p,y:g,initialPlacement:r,placement:m,strategy:i,middlewareData:v,rects:d,platform:l,elements:{reference:e,floating:t}});p=R??p,g=T??g,v={...v,[x]:{...v[x],...O}},_&&E<=50&&(E++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(d=_.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:p,y:g}=M_(d,m,f)),b=-1)}return{x:p,y:g,placement:m,strategy:i,middlewareData:v}};async function bd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:u,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:m=!1,padding:v=0}=xs(t,e),E=h4(v),x=u[m?g==="floating"?"reference":"floating":g],C=$g(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:d,rootBoundary:p,strategy:f})),R=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),O=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},_=$g(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:R,offsetParent:T,strategy:f}):R);return{top:(C.top-_.top+E.top)/O.y,bottom:(_.bottom-C.bottom+E.bottom)/O.y,left:(C.left-_.left+E.left)/O.x,right:(_.right-C.right+E.right)/O.x}}const ZF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:u,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:b=!0,...x}=xs(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Qr(i),R=Ho(u),T=Qr(u)===u,O=await(f.isRTL==null?void 0:f.isRTL(d.floating)),_=m||(T||!b?[jg(u)]:YN(u)),M=E!=="none";!m&&M&&_.push(...QN(u,b,E,O));const A=[u,..._],D=await bd(t,x),L=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&L.push(D[C]),g){const q=GN(i,l,O);L.push(D[q[0]],D[q[1]])}if(N=[...N,{placement:i,overflows:L}],!L.every(q=>q<=0)){var H,j;const q=(((H=s.flip)==null?void 0:H.index)||0)+1,U=A[q];if(U&&(!(g==="alignment"?R!==Ho(U):!1)||N.every(B=>Ho(B.placement)===R?B.overflows[0]>0:!0)))return{data:{index:q,overflows:N},reset:{placement:U}};let P=(j=N.filter(G=>G.overflows[0]<=0).sort((G,B)=>G.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!P)switch(v){case"bestFit":{var F;const G=(F=N.filter(B=>{if(M){const Y=Ho(B.placement);return Y===R||Y==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(Y=>Y>0).reduce((Y,J)=>Y+J,0)]).sort((B,Y)=>B[1]-Y[1])[0])==null?void 0:F[0];G&&(P=G);break}case"initialPlacement":P=u;break}if(i!==P)return{reset:{placement:P}}}return{}}}};function I_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D_(e){return VN.some(t=>e[t]>=0)}const ez=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=xs(e,t);switch(r){case"referenceHidden":{const s=await bd(t,{...i,elementContext:"reference"}),l=I_(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:D_(l)}}}case"escaped":{const s=await bd(t,{...i,altBoundary:!0}),l=I_(s,n.floating);return{data:{escapedOffsets:l,escaped:D_(l)}}}default:return{}}}}},X4=new Set(["left","top"]);async function tz(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Qr(n),u=Ia(n),f=Ho(n)==="y",d=X4.has(l)?-1:1,p=s&&f?-1:1,g=xs(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof E=="number"&&(v=u==="end"?E*-1:E),f?{x:v*p,y:m*d}:{x:m*d,y:v*p}}const nz=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:l,middlewareData:u}=t,f=await tz(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:l}}}}},rz=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:x=>{let{x:C,y:R}=x;return{x:C,y:R}}},...f}=xs(e,t),d={x:n,y:r},p=await bd(t,f),g=Ho(Qr(i)),m=wE(g);let v=d[m],E=d[g];if(s){const x=m==="y"?"top":"left",C=m==="y"?"bottom":"right",R=v+p[x],T=v-p[C];v=Nb(R,v,T)}if(l){const x=g==="y"?"top":"left",C=g==="y"?"bottom":"right",R=E+p[x],T=E-p[C];E=Nb(R,E,T)}const b=u.fn({...t,[m]:v,[g]:E});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:s,[g]:l}}}}}},oz=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:f=!0,crossAxis:d=!0}=xs(e,t),p={x:n,y:r},g=Ho(i),m=wE(g);let v=p[m],E=p[g];const b=xs(u,t),x=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(f){const T=m==="y"?"height":"width",O=s.reference[m]-s.floating[T]+x.mainAxis,_=s.reference[m]+s.reference[T]-x.mainAxis;v<O?v=O:v>_&&(v=_)}if(d){var C,R;const T=m==="y"?"width":"height",O=X4.has(Qr(i)),_=s.reference[g]-s.floating[T]+(O&&((C=l.offset)==null?void 0:C[g])||0)+(O?0:x.crossAxis),M=s.reference[g]+s.reference[T]+(O?0:((R=l.offset)==null?void 0:R[g])||0)-(O?x.crossAxis:0);E<_?E=_:E>M&&(E=M)}return{[m]:v,[g]:E}}}},iz=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:l,elements:u}=t,{apply:f=()=>{},...d}=xs(e,t),p=await bd(t,d),g=Qr(i),m=Ia(i),v=Ho(i)==="y",{width:E,height:b}=s.floating;let x,C;g==="top"||g==="bottom"?(x=g,C=m===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(C=g,x=m==="end"?"top":"bottom");const R=b-p.top-p.bottom,T=E-p.left-p.right,O=fc(b-p[x],R),_=fc(E-p[C],T),M=!t.middlewareData.shift;let A=O,D=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=R),M&&!m){const N=go(p.left,0),H=go(p.right,0),j=go(p.top,0),F=go(p.bottom,0);v?D=E-2*(N!==0||H!==0?N+H:go(p.left,p.right)):A=b-2*(j!==0||F!==0?j+F:go(p.top,p.bottom))}await f({...t,availableWidth:D,availableHeight:A});const L=await l.getDimensions(u.floating);return E!==L.width||b!==L.height?{reset:{rects:!0}}:{}}}};function W4(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,u=dc(n)!==s||dc(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function DE(e){return Jt(e)?e:e.contextElement}function ju(e){const t=DE(e);if(!vn(t))return Oi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=W4(t);let l=(s?dc(n.width):n.width)/r,u=(s?dc(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const sz=Oi(0);function K4(e){const t=Nn(e);return!km()||!t.visualViewport?sz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function az(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nn(e)?!1:t}function Cl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=DE(e);let l=Oi(1);t&&(r?Jt(r)&&(l=ju(r)):l=ju(e));const u=az(s,n,r)?K4(s):Oi(0);let f=(i.left+u.x)/l.x,d=(i.top+u.y)/l.y,p=i.width/l.x,g=i.height/l.y;if(s){const m=Nn(s),v=r&&Jt(r)?Nn(r):r;let E=m,b=Db(E);for(;b&&r&&v!==E;){const x=ju(b),C=b.getBoundingClientRect(),R=no(b),T=C.left+(b.clientLeft+parseFloat(R.paddingLeft))*x.x,O=C.top+(b.clientTop+parseFloat(R.paddingTop))*x.y;f*=x.x,d*=x.y,p*=x.x,g*=x.y,f+=T,d+=O,E=Nn(b),b=Db(E)}}return $g({width:p,height:g,x:f,y:d})}function Um(e,t){const n=Nm(e).scrollLeft;return t?t.left+n:Cl(zi(e)).left+n}function Q4(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Um(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function lz(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",l=zi(r),u=t?Pm(t.floating):!1;if(r===l||u&&s)return n;let f={scrollLeft:0,scrollTop:0},d=Oi(1);const p=Oi(0),g=vn(r);if((g||!g&&!s)&&((Ma(r)!=="body"||kl(l))&&(f=Nm(r)),vn(r))){const v=Cl(r);d=ju(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const m=l&&!g&&!s?Q4(l,f):Oi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-f.scrollTop*d.y+p.y+m.y}}function uz(e){return Array.from(e.getClientRects())}function cz(e){const t=zi(e),n=Nm(e),r=e.ownerDocument.body,i=go(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=go(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Um(e);const u=-n.scrollTop;return no(r).direction==="rtl"&&(l+=go(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:l,y:u}}const L_=25;function fz(e,t){const n=Nn(e),r=zi(e),i=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,u=0,f=0;if(i){s=i.width,l=i.height;const p=km();(!p||p&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}const d=Um(r);if(d<=0){const p=r.ownerDocument,g=p.body,m=getComputedStyle(g),v=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,E=Math.abs(r.clientWidth-g.clientWidth-v);E<=L_&&(s-=E)}else d<=L_&&(s+=d);return{width:s,height:l,x:u,y:f}}const dz=new Set(["absolute","fixed"]);function hz(e,t){const n=Cl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=vn(e)?ju(e):Oi(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,f=i*s.x,d=r*s.y;return{width:l,height:u,x:f,y:d}}function P_(e,t,n){let r;if(t==="viewport")r=fz(e,n);else if(t==="document")r=cz(zi(e));else if(Jt(t))r=hz(t,n);else{const i=K4(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return $g(r)}function J4(e,t){const n=Mi(e);return n===t||!Jt(n)||Ai(n)?!1:no(n).position==="fixed"||J4(n,t)}function pz(e,t){const n=t.get(e);if(n)return n;let r=ga(e,[],!1).filter(u=>Jt(u)&&Ma(u)!=="body"),i=null;const s=no(e).position==="fixed";let l=s?Mi(e):e;for(;Jt(l)&&!Ai(l);){const u=no(l),f=yE(l);!f&&u.position==="fixed"&&(i=null),(s?!f&&!i:!f&&u.position==="static"&&!!i&&dz.has(i.position)||kl(l)&&!f&&J4(e,l))?r=r.filter(p=>p!==l):i=u,l=Mi(l)}return t.set(e,r),r}function gz(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Pm(t)?[]:pz(t,this._c):[].concat(n),r],u=l[0],f=l.reduce((d,p)=>{const g=P_(t,p,i);return d.top=go(g.top,d.top),d.right=fc(g.right,d.right),d.bottom=fc(g.bottom,d.bottom),d.left=go(g.left,d.left),d},P_(t,u,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function mz(e){const{width:t,height:n}=W4(e);return{width:t,height:n}}function vz(e,t,n){const r=vn(t),i=zi(t),s=n==="fixed",l=Cl(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=Oi(0);function d(){f.x=Um(i)}if(r||!r&&!s)if((Ma(t)!=="body"||kl(i))&&(u=Nm(t)),r){const v=Cl(t,!0,s,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else i&&d();s&&!r&&i&&d();const p=i&&!r&&!s?Q4(i,u):Oi(0),g=l.left+u.scrollLeft-f.x-p.x,m=l.top+u.scrollTop-f.y-p.y;return{x:g,y:m,width:l.width,height:l.height}}function u1(e){return no(e).position==="static"}function k_(e,t){if(!vn(e)||no(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zi(e)===n&&(n=n.ownerDocument.body),n}function Z4(e,t){const n=Nn(e);if(Pm(e))return n;if(!vn(e)){let i=Mi(e);for(;i&&!Ai(i);){if(Jt(i)&&!u1(i))return i;i=Mi(i)}return n}let r=k_(e,t);for(;r&&RN(r)&&u1(r);)r=k_(r,t);return r&&Ai(r)&&u1(r)&&!yE(r)?n:r||AN(e)||n}const yz=async function(e){const t=this.getOffsetParent||Z4,n=this.getDimensions,r=await n(e.floating);return{reference:vz(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bz(e){return no(e).direction==="rtl"}const Sz={convertOffsetParentRelativeRectToViewportRelativeRect:lz,getDocumentElement:zi,getClippingRect:gz,getOffsetParent:Z4,getElementRects:yz,getClientRects:uz,getDimensions:mz,getScale:ju,isElement:Jt,isRTL:bz};function eI(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ez(e,t){let n=null,r;const i=zi(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:p,top:g,width:m,height:v}=d;if(u||t(),!m||!v)return;const E=Pu(g),b=Pu(i.clientWidth-(p+m)),x=Pu(i.clientHeight-(g+v)),C=Pu(p),T={rootMargin:-E+"px "+-b+"px "+-x+"px "+-C+"px",threshold:go(0,fc(1,f))||1};let O=!0;function _(M){const A=M[0].intersectionRatio;if(A!==f){if(!O)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}A===1&&!eI(d,e.getBoundingClientRect())&&l(),O=!1}try{n=new IntersectionObserver(_,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,T)}n.observe(e)}return l(!0),s}function N_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=DE(e),p=i||s?[...d?ga(d):[],...ga(t)]:[];p.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const g=d&&u?Ez(d,n):null;let m=-1,v=null;l&&(v=new ResizeObserver(C=>{let[R]=C;R&&R.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var T;(T=v)==null||T.observe(t)})),n()}),d&&!f&&v.observe(d),v.observe(t));let E,b=f?Cl(e):null;f&&x();function x(){const C=Cl(e);b&&!eI(b,C)&&n(),b=C,E=requestAnimationFrame(x)}return n(),()=>{var C;p.forEach(R=>{i&&R.removeEventListener("scroll",n),s&&R.removeEventListener("resize",n)}),g==null||g(),(C=v)==null||C.disconnect(),v=null,f&&cancelAnimationFrame(E)}}const wz=nz,Rz=rz,xz=ZF,Cz=iz,Tz=ez,_z=oz,Az=(e,t,n)=>{const r=new Map,i={platform:Sz,...n},s={...i.platform,_c:r};return JF(e,t,{...i,platform:s})};var Oz=typeof document<"u",Mz=function(){},Rg=Oz?S.useLayoutEffect:Mz;function Xg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xg(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Xg(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function tI(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function F_(e,t){const n=tI(e);return Math.round(t*n)/n}function c1(e){const t=S.useRef(e);return Rg(()=>{t.current=e}),t}function Iz(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:f,open:d}=e,[p,g]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=S.useState(r);Xg(m,r)||v(r);const[E,b]=S.useState(null),[x,C]=S.useState(null),R=S.useCallback(B=>{B!==M.current&&(M.current=B,b(B))},[]),T=S.useCallback(B=>{B!==A.current&&(A.current=B,C(B))},[]),O=s||E,_=l||x,M=S.useRef(null),A=S.useRef(null),D=S.useRef(p),L=f!=null,N=c1(f),H=c1(i),j=c1(d),F=S.useCallback(()=>{if(!M.current||!A.current)return;const B={placement:t,strategy:n,middleware:m};H.current&&(B.platform=H.current),Az(M.current,A.current,B).then(Y=>{const J={...Y,isPositioned:j.current!==!1};q.current&&!Xg(D.current,J)&&(D.current=J,Dn.flushSync(()=>{g(J)}))})},[m,t,n,H,j]);Rg(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[d]);const q=S.useRef(!1);Rg(()=>(q.current=!0,()=>{q.current=!1}),[]),Rg(()=>{if(O&&(M.current=O),_&&(A.current=_),O&&_){if(N.current)return N.current(O,_,F);F()}},[O,_,F,N,L]);const U=S.useMemo(()=>({reference:M,floating:A,setReference:R,setFloating:T}),[R,T]),P=S.useMemo(()=>({reference:O,floating:_}),[O,_]),G=S.useMemo(()=>{const B={position:n,left:0,top:0};if(!P.floating)return B;const Y=F_(P.floating,p.x),J=F_(P.floating,p.y);return u?{...B,transform:"translate("+Y+"px, "+J+"px)",...tI(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:J}},[n,u,P.floating,p.x,p.y]);return S.useMemo(()=>({...p,update:F,refs:U,elements:P,floatingStyles:G}),[p,F,U,P,G])}const Dz=(e,t)=>({...wz(e),options:[e,t]}),Lz=(e,t)=>({...Rz(e),options:[e,t]}),Pz=(e,t)=>({..._z(e),options:[e,t]}),kz=(e,t)=>({...xz(e),options:[e,t]}),Nz=(e,t)=>({...Cz(e),options:[e,t]}),Fz=(e,t)=>({...Tz(e),options:[e,t]}),zz={intentional:"onClick",sloppy:"onPointerDown"};function Hz(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function Wd(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:u,dataRef:f}=n.context,{enabled:d=!0,escapeKey:p=!0,outsidePress:g=!0,outsidePressEvent:m="sloppy",referencePress:v=!1,referencePressEvent:E="sloppy",ancestorScroll:b=!1,bubbles:x,externalTree:C}=t,R=Da(C),T=Be(typeof g=="function"?g:()=>!1),O=typeof g=="function"?T:g,_=S.useRef(!1),{escapeKey:M,outsidePress:A}=Hz(x),D=S.useRef(null),L=Cn(),N=Cn(),H=Be(()=>{N.clear(),f.current.insideReactTree=!1}),j=S.useRef(!1),F=S.useRef(""),q=Be(ue=>{F.current=ue.pointerType}),U=Be(()=>{const ue=F.current,me=ue==="pen"||!ue?"mouse":ue,xe=typeof m=="function"?m():m;return typeof xe=="string"?xe:xe[me]}),P=Be(ue=>{var Se;if(!r||!d||!p||ue.key!=="Escape"||j.current)return;const me=(Se=f.current.floatingContext)==null?void 0:Se.nodeId,xe=R?vl(R.nodesRef.current,me):[];if(!M&&xe.length>0){let Te=!0;if(xe.forEach(we=>{var De;(De=we.context)!=null&&De.open&&!we.context.dataRef.current.__escapeKeyBubbles&&(Te=!1)}),!Te)return}const Ce=UN(ue)?ue.nativeEvent:ue,Ae=lt(Xd,Ce);n.setOpen(!1,Ae),!M&&!Ae.isPropagationAllowed&&ue.stopPropagation()}),G=Be(ue=>{const me=U();return me==="intentional"&&ue.type!=="click"||me==="sloppy"&&ue.type==="click"}),B=Be(()=>{f.current.insideReactTree=!0,N.start(0,H)}),Y=Be((ue,me=!1)=>{var X;if(G(ue)){H();return}if(f.current.insideReactTree){H();return}if(U()==="intentional"&&me||typeof O=="function"&&!O(ue))return;const xe=Rr(ue),Ce=`[${pc("inert")}]`,Ae=Un(n.select("floatingElement")).querySelectorAll(Ce),Se=n.context.triggerElements;if(xe&&(Se.hasElement(xe)||Se.hasMatchingElement(Z=>Ct(Z,xe))))return;let Te=Jt(xe)?xe:null;for(;Te&&!Ai(Te);){const Z=Mi(Te);if(Ai(Z)||!Jt(Z))break;Te=Z}if(Ae.length&&Jt(xe)&&!HN(xe)&&!Ct(xe,n.select("floatingElement"))&&Array.from(Ae).every(Z=>!Ct(Te,Z)))return;if(vn(xe)&&!("touches"in ue)){const Z=Ai(xe),ie=no(xe),se=/auto|scroll/,re=Z||se.test(ie.overflowX),Ie=Z||se.test(ie.overflowY),Ue=re&&xe.clientWidth>0&&xe.scrollWidth>xe.clientWidth,ke=Ie&&xe.clientHeight>0&&xe.scrollHeight>xe.clientHeight,Ge=ie.direction==="rtl",nt=ke&&(Ge?ue.offsetX<=xe.offsetWidth-xe.clientWidth:ue.offsetX>xe.clientWidth),rt=Ue&&ue.offsetY>xe.clientHeight;if(nt||rt)return}const we=(X=f.current.floatingContext)==null?void 0:X.nodeId,De=R&&vl(R.nodesRef.current,we).some(Z=>{var ie;return Ko(ue,(ie=Z.context)==null?void 0:ie.elements.floating)});if(Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement"))||De)return;const V=R?vl(R.nodesRef.current,we):[];if(V.length>0){let Z=!0;if(V.forEach(ie=>{var se;(se=ie.context)!=null&&se.open&&!ie.context.dataRef.current.__outsidePressBubbles&&(Z=!1)}),!Z)return}n.setOpen(!1,lt(AE,ue)),H()}),J=Be(ue=>{U()!=="sloppy"||ue.pointerType==="touch"||!n.select("open")||!d||Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement"))||Y(ue)}),k=Be(ue=>{if(U()!=="sloppy"||!n.select("open")||!d||Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement")))return;const me=ue.touches[0];me&&(D.current={startTime:Date.now(),startX:me.clientX,startY:me.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},L.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}),$=Be(ue=>{const me=Rr(ue);function xe(){k(ue),me==null||me.removeEventListener(ue.type,xe)}me==null||me.addEventListener(ue.type,xe)}),W=Be(ue=>{const me=_.current;if(_.current=!1,L.clear(),ue.type==="mousedown"&&D.current&&!D.current.dismissOnMouseDown)return;const xe=Rr(ue);function Ce(){ue.type==="pointerdown"?J(ue):Y(ue,me),xe==null||xe.removeEventListener(ue.type,Ce)}xe==null||xe.addEventListener(ue.type,Ce)}),te=Be(ue=>{if(U()!=="sloppy"||!D.current||Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement")))return;const me=ue.touches[0];if(!me)return;const xe=Math.abs(me.clientX-D.current.startX),Ce=Math.abs(me.clientY-D.current.startY),Ae=Math.sqrt(xe*xe+Ce*Ce);Ae>5&&(D.current.dismissOnTouchEnd=!0),Ae>10&&(Y(ue),L.clear(),D.current=null)}),ae=Be(ue=>{const me=Rr(ue);function xe(){te(ue),me==null||me.removeEventListener(ue.type,xe)}me==null||me.addEventListener(ue.type,xe)}),ne=Be(ue=>{U()!=="sloppy"||!D.current||Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement"))||(D.current.dismissOnTouchEnd&&Y(ue),L.clear(),D.current=null)}),ce=Be(ue=>{const me=Rr(ue);function xe(){ne(ue),me==null||me.removeEventListener(ue.type,xe)}me==null||me.addEventListener(ue.type,xe)});S.useEffect(()=>{if(!r||!d)return;f.current.__escapeKeyBubbles=M,f.current.__outsidePressBubbles=A;const ue=new Rs;function me(Te){n.setOpen(!1,lt(Os,Te))}function xe(){ue.clear(),j.current=!0}function Ce(){ue.start(km()?5:0,()=>{j.current=!1})}const Ae=Un(i);Ae.addEventListener("pointerdown",q,!0),p&&(Ae.addEventListener("keydown",P),Ae.addEventListener("compositionstart",xe),Ae.addEventListener("compositionend",Ce)),O&&(Ae.addEventListener("click",W,!0),Ae.addEventListener("pointerdown",W,!0),Ae.addEventListener("touchstart",$,!0),Ae.addEventListener("touchmove",ae,!0),Ae.addEventListener("touchend",ce,!0),Ae.addEventListener("mousedown",W,!0));let Se=[];return b&&(Jt(l)&&(Se=ga(l)),Jt(i)&&(Se=Se.concat(ga(i))),!Jt(s)&&s&&s.contextElement&&(Se=Se.concat(ga(s.contextElement)))),Se=Se.filter(Te=>{var we;return Te!==((we=Ae.defaultView)==null?void 0:we.visualViewport)}),Se.forEach(Te=>{Te.addEventListener("scroll",me,{passive:!0})}),()=>{Ae.removeEventListener("pointerdown",q,!0),p&&(Ae.removeEventListener("keydown",P),Ae.removeEventListener("compositionstart",xe),Ae.removeEventListener("compositionend",Ce)),O&&(Ae.removeEventListener("click",W,!0),Ae.removeEventListener("pointerdown",W,!0),Ae.removeEventListener("touchstart",$,!0),Ae.removeEventListener("touchmove",ae,!0),Ae.removeEventListener("touchend",ce,!0),Ae.removeEventListener("mousedown",W,!0)),Se.forEach(Te=>{Te.removeEventListener("scroll",me)}),ue.clear()}},[f,i,s,l,p,O,r,u,b,d,M,A,P,Y,W,J,$,ae,ce,q,n]),S.useEffect(H,[O,H]);const Q=S.useMemo(()=>({onKeyDown:P,...v&&{[zz[E]]:ue=>{n.setOpen(!1,lt(ti,ue.nativeEvent))},...E!=="intentional"&&{onClick(ue){n.setOpen(!1,lt(ti,ue.nativeEvent))}}}}),[P,n,v,E]),de=Be(ue=>{const me=Rr(ue.nativeEvent);!Ct(n.select("floatingElement"),me)||ue.button!==0||(_.current=!0)}),ve=S.useMemo(()=>({onKeyDown:P,onPointerDown:de,onMouseDown:de,onMouseUp:de,onClickCapture:B,onMouseDownCapture:B,onPointerDownCapture:B,onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[P,de,B]);return S.useMemo(()=>d?{reference:Q,floating:ve,trigger:Q}:{},[d,Q,ve])}var Wg=Symbol("NOT_FOUND");function Bz(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Uz(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Vz(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var z_=e=>Array.isArray(e)?e:[e];function jz(e){const t=Array.isArray(e[0])?e[0]:e;return Vz(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function $z(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function qz(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Wg},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Gz(e,t){let n=[];function r(u){const f=n.findIndex(d=>t(u,d.key));if(f>-1){const d=n[f];return f>0&&(n.splice(f,1),n.unshift(d)),d.value}return Wg}function i(u,f){r(u)===Wg&&(n.unshift({key:u,value:f}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:i,getEntries:s,clear:l}}var Yz=(e,t)=>e===t;function Xz(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let s=0;s<i;s++)if(!e(n[s],r[s]))return!1;return!0}}function Wz(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Yz,maxSize:i=1,resultEqualityCheck:s}=n,l=Xz(r);let u=0;const f=i<=1?qz(l):Gz(i,l);function d(){let p=f.get(arguments);if(p===Wg){if(p=e.apply(null,arguments),u++,s){const m=f.getEntries().find(v=>s(v.value,p));m&&(p=m.value,u!==0&&u--)}f.put(arguments,p)}return p}return d.clearCache=()=>{f.clear(),d.resetResultsCount()},d.resultsCount=()=>u,d.resetResultsCount=()=>{u=0},d}var Kz=class{constructor(e){this.value=e}deref(){return this.value}},Qz=typeof WeakRef<"u"?WeakRef:Kz,Jz=0,H_=1;function Vp(){return{s:Jz,v:void 0,o:null,p:null}}function nI(e,t={}){let n=Vp();const{resultEqualityCheck:r}=t;let i,s=0;function l(){var g;let u=n;const{length:f}=arguments;for(let m=0,v=f;m<v;m++){const E=arguments[m];if(typeof E=="function"||typeof E=="object"&&E!==null){let b=u.o;b===null&&(u.o=b=new WeakMap);const x=b.get(E);x===void 0?(u=Vp(),b.set(E,u)):u=x}else{let b=u.p;b===null&&(u.p=b=new Map);const x=b.get(E);x===void 0?(u=Vp(),b.set(E,u)):u=x}}const d=u;let p;if(u.s===H_)p=u.v;else if(p=e.apply(null,arguments),s++,r){const m=((g=i==null?void 0:i.deref)==null?void 0:g.call(i))??i;m!=null&&r(m,p)&&(p=m,s!==0&&s--),i=typeof p=="object"&&p!==null||typeof p=="function"?new Qz(p):p}return d.s=H_,d.v=p,p}return l.clearCache=()=>{n=Vp(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function rI(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,l=0,u,f={},d=i.pop();typeof d=="object"&&(f=d,d=i.pop()),Bz(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const p={...n,...f},{memoize:g,memoizeOptions:m=[],argsMemoize:v=nI,argsMemoizeOptions:E=[]}=p,b=z_(m),x=z_(E),C=jz(i),R=g(function(){return s++,d.apply(null,arguments)},...b),T=v(function(){l++;const _=$z(C,arguments);return u=R.apply(null,_),u},...x);return Object.assign(T,{resultFunc:d,memoizedResultFunc:R,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>u,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:g,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var Zz=rI(nI),eH=Object.assign((e,t=Zz)=>{Uz(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((l,u,f)=>(l[n[f]]=u,l),{}))},{withTypes:()=>eH});rI({memoize:Wz,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Ne=(e,t,n,r,i,s,...l)=>{if(l.length>0)throw new Error(Vt(1));let u;if(e)u=e;else throw new Error("Missing arguments");return u};var f1={exports:{}},d1={};var B_;function tH(){if(B_)return d1;B_=1;var e=_s();function t(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(g,m){var v=m(),E=r({inst:{value:v,getSnapshot:m}}),b=E[0].inst,x=E[1];return s(function(){b.value=v,b.getSnapshot=m,f(b)&&x({inst:b})},[g,v,m]),i(function(){return f(b)&&x({inst:b}),g(function(){f(b)&&x({inst:b})})},[g]),l(v),v}function f(g){var m=g.getSnapshot;g=g.value;try{var v=m();return!n(g,v)}catch{return!0}}function d(g,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:u;return d1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,d1}var U_;function oI(){return U_||(U_=1,f1.exports=tH()),f1.exports}var nH=oI(),h1={exports:{}},p1={};var V_;function rH(){if(V_)return p1;V_=1;var e=_s(),t=oI();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,f=e.useDebugValue;return p1.useSyncExternalStoreWithSelector=function(d,p,g,m,v){var E=s(null);if(E.current===null){var b={hasValue:!1,value:null};E.current=b}else b=E.current;E=u(function(){function C(M){if(!R){if(R=!0,T=M,M=m(M),v!==void 0&&b.hasValue){var A=b.value;if(v(A,M))return O=A}return O=M}if(A=O,r(T,M))return A;var D=m(M);return v!==void 0&&v(A,D)?(T=M,A):(T=M,O=D)}var R=!1,T,O,_=g===void 0?null:g;return[function(){return C(p())},_===null?void 0:function(){return C(_())}]},[p,g,m,v]);var x=i(d,E[0],E[1]);return l(function(){b.hasValue=!0,b.value=x},[x]),f(x),x},p1}var j_;function oH(){return j_||(j_=1,h1.exports=rH()),h1.exports}var iI=oH();const iH=Ts(iI),sH=OE(19),aH=sH?lH:uH;function vt(e,t,n,r,i){return aH(e,t,n,r,i)}function lH(e,t,n,r,i){const s=S.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return nH.useSyncExternalStore(e.subscribe,s,s)}function uH(e,t,n,r,i){return iI.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,i))}class $u{constructor(t){qt(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));qt(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){$u.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||$u.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};$u.prototype.setState.call(this,t)}}class Kd extends $u{constructor(n,r={},i){super(n);qt(this,"controlledValues",new Map);qt(this,"select",(n,r,i,s)=>{const l=this.selectors[n];return l(this.state,r,i,s)});qt(this,"useState",(n,r,i,s)=>{S.useDebugValue(n);const l=this.selectors[n];return vt(this,l,r,i,s)});this.context=r,this.selectors=i}useSyncedValue(n,r){S.useDebugValue(n),Ve(()=>{this.state[n]!==r&&this.set(n,r)},[n,r])}useSyncedValueWithCleanup(n,r){Ve(()=>(this.state[n]!==r&&this.set(n,r),()=>{this.set(n,void 0)}),[n,r])}useSyncedValues(n){const r=Object.values(n);Ve(()=>{this.update(n)},r)}useControlledProp(n,r,i){S.useDebugValue(n);const s=r!==void 0;this.controlledValues.has(n)||(this.controlledValues.set(n,s),!s&&!Object.is(this.state[n],i)&&super.setState({...this.state,[n]:i})),Ve(()=>{s&&!Object.is(this.state[n],r)&&super.setState({...this.state,[n]:r})},[n,r,i,s])}set(n,r){this.controlledValues.get(n)!==!0&&super.set(n,r)}update(n){const r={...n};for(const i in r)if(Object.hasOwn(r,i)&&this.controlledValues.get(i)===!0){delete r[i];continue}super.update(r)}setState(n){const r={...n};for(const i in r)if(Object.hasOwn(r,i)&&this.controlledValues.get(i)===!0){delete r[i];continue}super.setState({...this.state,...r})}useContextCallback(n,r){S.useDebugValue(n);const i=Be(r??Kn);this.context[n]=i}useStateSetter(n){const r=S.useRef(void 0);return r.current===void 0&&(r.current=i=>{this.set(n,i)}),r.current}observe(n,r){let i;typeof n=="function"?i=n:i=this.selectors[n];let s=i(this.state);return r(s,s,this),this.subscribe(l=>{const u=i(l);if(!Object.is(s,u)){const f=s;s=u,r(u,f,this)}})}}const cH={open:Ne(e=>e.open),domReferenceElement:Ne(e=>e.domReferenceElement),referenceElement:Ne(e=>e.positionReference??e.referenceElement),floatingElement:Ne(e=>e.floatingElement),floatingId:Ne(e=>e.floatingId)};class LE extends Kd{constructor(n){const{nested:r,noEmit:i,onOpenChange:s,triggerElements:l,...u}=n;super({...u,positionReference:u.referenceElement,domReferenceElement:u.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:M4(),nested:r,noEmit:i,triggerElements:l},cH);qt(this,"setOpen",(n,r)=>{var i,s;if((!n||!this.state.open||d4(r.event))&&(this.context.dataRef.current.openEvent=n?r.event:void 0),!this.context.noEmit){const l={open:n,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",l)}(s=(i=this.context).onOpenChange)==null||s.call(i,n,r)})}}function Ic(e,t=!1,n=!1){const[r,i]=S.useState(e&&t?"idle":void 0),[s,l]=S.useState(e);return e&&!s&&(l(!0),i("starting")),!e&&s&&r!=="ending"&&!n&&i("ending"),!e&&!s&&r==="ending"&&i(void 0),Ve(()=>{if(!e&&s&&r!=="ending"&&n){const u=wi.request(()=>{i("ending")});return()=>{wi.cancel(u)}}},[e,s,r,n]),Ve(()=>{if(!e||t)return;const u=wi.request(()=>{i(void 0)});return()=>{wi.cancel(u)}},[t,e]),Ve(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&i("starting");const u=wi.request(()=>{i("idle")});return()=>{wi.cancel(u)}},[t,e,s,i,r]),S.useMemo(()=>({mounted:s,setMounted:l,transitionStatus:r}),[s,r])}function PE(e,t=!1,n=!0){const r=Mc();return Be((i,s=null)=>{r.cancel();const l=nl(e);l!=null&&(typeof l.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?i():r.request(()=>{function u(){l&&Promise.all(l.getAnimations().map(f=>f.finished)).then(()=>{s!=null&&s.aborted||Dn.flushSync(i)}).catch(()=>{if(n){if(s!=null&&s.aborted)return;Dn.flushSync(i)}else l.getAnimations().length>0&&l.getAnimations().some(f=>f.pending||f.playState!=="finished")&&u()})}t?r.request(u):u()}))})}function ci(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,s=Wn(n),l=Be(i),u=PE(r,n);S.useEffect(()=>{t&&u(()=>{n===s.current&&l()})},[t,n,l,u,s])}function fH(e,t){const n=S.useRef(null);return S.useCallback(r=>{e!==void 0&&(n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null),r!==null&&(n.current=e,t.context.triggerElements.add(e,r)))},[t,e])}function kE(e,t,n,r){const i=n.useState("isMountedByTrigger",e),s=fH(e,n),l=Be(u=>{s(u),u!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:u,...r})});return Ve(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function Vm(e){const t=e.useState("open");Ve(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,i]=n.value;e.update({activeTriggerId:r,activeTriggerElement:i})}}},[t,e])}function jm(e,t,n){const{mounted:r,setMounted:i,transitionStatus:s}=Ic(e);t.useSyncedValues({mounted:r,transitionStatus:s});const l=Be(()=>{var f,d;i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n==null||n(),(d=(f=t.context).onOpenChangeComplete)==null||d.call(f,!1)}),u=t.useState("preventUnmountingOnClose");return ci({enabled:!u,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:s}}class Dc{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function dH(){return new LE({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Dc,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function $m(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:dH(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Mn,inactiveTriggerProps:Mn,popupProps:Mn}}const qm={open:Ne(e=>e.open),mounted:Ne(e=>e.mounted),transitionStatus:Ne(e=>e.transitionStatus),floatingRootContext:Ne(e=>e.floatingRootContext),preventUnmountingOnClose:Ne(e=>e.preventUnmountingOnClose),payload:Ne(e=>e.payload),activeTriggerId:Ne(e=>e.activeTriggerId),activeTriggerElement:Ne(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ne((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Ne((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Ne((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Ne((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ne(e=>e.popupProps),popupElement:Ne(e=>e.popupElement),positionerElement:Ne(e=>e.positionerElement)};function sI(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Nl(),s=Hi()!=null,l=Tr(()=>new LE({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new Dc,floatingId:i,nested:s,noEmit:e.noEmit||!1})).current;return Ve(()=>{const u={open:t,floatingId:i};r.reference!==void 0&&(u.referenceElement=r.reference,u.domReferenceElement=Jt(r.reference)?r.reference:null),r.floating!==void 0&&(u.floatingElement=r.floating),l.update(u)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=s,l.context.noEmit=e.noEmit||!1,l}function hH(e={}){const{nodeId:t,externalTree:n}=e,r=sI(e),i=e.rootContext||r,s={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,u]=S.useState(null),f=S.useRef(null),d=Da(n);Ve(()=>{s.domReference&&(f.current=s.domReference)},[s.domReference]);const p=Iz({...e,elements:{...s,...l&&{reference:l}}}),g=S.useCallback(A=>{const D=Jt(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;u(D),p.refs.setReference(D)},[p.refs]),[m,v]=S.useState(null),[E,b]=S.useState(null);i.useSyncedValue("referenceElement",m),i.useSyncedValue("domReferenceElement",Jt(m)?m:null),i.useSyncedValue("floatingElement",E);const x=S.useCallback(A=>{(Jt(A)||A===null)&&(f.current=A,v(A)),(Jt(p.refs.reference.current)||p.refs.reference.current===null||A!==null&&!Jt(A))&&p.refs.setReference(A)},[p.refs,v]),C=S.useCallback(A=>{b(A),p.refs.setFloating(A)},[p.refs]),R=S.useMemo(()=>({...p.refs,setReference:x,setFloating:C,setPositionReference:g,domReference:f}),[p.refs,x,C,g]),T=S.useMemo(()=>({...p.elements,domReference:s.domReference}),[p.elements,s.domReference]),O=i.useState("open"),_=i.useState("floatingId"),M=S.useMemo(()=>({...p,dataRef:i.context.dataRef,open:O,onOpenChange:i.setOpen,events:i.context.events,floatingId:_,refs:R,elements:T,nodeId:t,rootStore:i}),[p,R,T,t,i,O,_]);return Ve(()=>{i.context.dataRef.current.floatingContext=M;const A=d==null?void 0:d.nodesRef.current.find(D=>D.id===t);A&&(A.context=M)}),S.useMemo(()=>({...p,context:M,refs:R,elements:T,rootStore:i}),[p,R,T,M,i])}function Gm(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,s=Nl(),l=Hi()!=null,u=t.useState("open"),f=t.useState("activeTriggerElement"),d=t.useState(r?"popupElement":"positionerElement"),p=t.context.triggerElements,g=Tr(()=>new LE({open:u,referenceElement:f,floatingElement:d,triggerElements:p,onOpenChange:i,floatingId:s,nested:l,noEmit:n})).current;return Ve(()=>{const m={open:u,floatingId:s,referenceElement:f,floatingElement:d};Jt(f)&&(m.domReferenceElement=f),g.update(m)},[u,s,f,d,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const g1=kN&&i4;function aI(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:s=!0,visibleOnly:l=!0}=t,u=S.useRef(!1),f=Cn(),d=S.useRef(!0);S.useEffect(()=>{const g=n.select("domReferenceElement");if(!s)return;const m=Nn(g);function v(){!n.select("open")&&vn(g)&&g===xi(Un(g))&&(u.current=!0)}function E(){d.current=!0}function b(){d.current=!1}return m.addEventListener("blur",v),g1&&(m.addEventListener("keydown",E,!0),m.addEventListener("pointerdown",b,!0)),()=>{m.removeEventListener("blur",v),g1&&(m.removeEventListener("keydown",E,!0),m.removeEventListener("pointerdown",b,!0))}},[n,s]),S.useEffect(()=>{if(!s)return;function g(m){(m.reason===ti||m.reason===Xd)&&(u.current=!0)}return r.on("openchange",g),()=>{r.off("openchange",g)}},[r,s]);const p=S.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const m=Rr(g.nativeEvent);if(l&&Jt(m)){if(g1&&!g.relatedTarget){if(!d.current&&!EE(m))return}else if(!BN(m))return}n.setOpen(!0,lt(yd,g.nativeEvent,g.currentTarget))},onBlur(g){u.current=!1;const m=g.relatedTarget,v=g.nativeEvent,E=Jt(m)&&m.hasAttribute(pc("focus-guard"))&&m.getAttribute("data-type")==="outside";f.start(0,()=>{var C;const b=n.select("domReferenceElement"),x=xi(b?b.ownerDocument:document);!m&&x===b||Ct((C=i.current.floatingContext)==null?void 0:C.refs.floating.current,x)||Ct(b,x)||E||n.context.triggerElements.hasElement(g.relatedTarget)||n.setOpen(!1,lt(yd,v))})}}),[i,n,l,f]);return S.useMemo(()=>s?{reference:p,trigger:p}:{},[s,p])}const $b=pc("safe-polygon"),pH=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${u4}`;function gH(e){return e?!!e.closest(pH):!1}function lI(e){const t=S.useRef(void 0),n=S.useRef(!1),r=S.useRef(void 0),i=S.useRef(!0),s=S.useRef(!1),l=S.useRef(()=>{}),u=S.useRef(!1),f=Cn(),d=Cn(),p=S.useRef(void 0);return S.useMemo(()=>{const g=e.context.dataRef.current;return g.hoverInteractionState||(g.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:i,performedPointerEventsMutationRef:s,unbindMouseMoveRef:l,restTimeoutPendingRef:u,openChangeTimeout:f,restTimeout:d,handleCloseOptionsRef:p}),g.hoverInteractionState},[e,t,n,r,i,s,l,u,f,d,p])}const mH=new Set(["click","mousedown"]);function NE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:u=!0,closeDelay:f=0,externalTree:d}=t,{pointerTypeRef:p,interactedInsideRef:g,handlerRef:m,performedPointerEventsMutationRef:v,unbindMouseMoveRef:E,restTimeoutPendingRef:b,openChangeTimeout:x,handleCloseOptionsRef:C}=lI(n),R=Da(d),T=Hi(),O=Be(()=>g.current?!0:l.current.openEvent?mH.has(l.current.openEvent.type):!1),_=Be(()=>{var H;const N=(H=l.current.openEvent)==null?void 0:H.type;return(N==null?void 0:N.includes("mouse"))&&N!=="mousedown"}),M=S.useCallback((N,H=!0)=>{const j=vH(f,p.current);j&&!m.current?x.start(j,()=>n.setOpen(!1,lt(ir,N))):H&&(x.clear(),n.setOpen(!1,lt(ir,N)))},[f,m,n,p,x]),A=Be(()=>{E.current(),m.current=void 0}),D=Be(()=>{if(v.current){const N=Un(i).body;N.style.pointerEvents="",N.removeAttribute($b),v.current=!1}}),L=Be(N=>{const H=Rr(N);if(!gH(H)){g.current=!1;return}g.current=!0});Ve(()=>{r||(p.current=void 0,b.current=!1,g.current=!1,A(),D())},[r,p,b,g,A,D]),S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>D,[D]),Ve(()=>{var N,H,j;if(u&&r&&(N=C.current)!=null&&N.blockPointerEvents&&_()&&Jt(s)&&i){v.current=!0;const F=Un(i).body;F.setAttribute($b,"");const q=s,U=i,P=(j=(H=R==null?void 0:R.nodesRef.current.find(G=>G.id===T))==null?void 0:H.context)==null?void 0:j.elements.floating;return P&&(P.style.pointerEvents=""),F.style.pointerEvents="none",q.style.pointerEvents="auto",U.style.pointerEvents="auto",()=>{F.style.pointerEvents="",q.style.pointerEvents="",U.style.pointerEvents=""}}},[u,r,s,i,C,_,R,T,v]),S.useEffect(()=>{if(!u)return;function N(q){if(O()||!l.current.floatingContext||!n.select("open"))return;const U=n.context.triggerElements;q.relatedTarget&&U.hasElement(q.relatedTarget)||(D(),A(),O()||M(q))}function H(q){var U;x.clear(),D(),(U=m.current)==null||U.call(m,q),A()}function j(q){O()||M(q,!1)}const F=i;return F&&(F.addEventListener("mouseleave",N),F.addEventListener("mouseenter",H),F.addEventListener("mouseleave",j),F.addEventListener("pointerdown",L,!0)),()=>{F&&(F.removeEventListener("mouseleave",N),F.removeEventListener("mouseenter",H),F.removeEventListener("mouseleave",j),F.removeEventListener("pointerdown",L,!0))}})}function vH(e,t){return t&&!xl(t)?0:typeof e=="function"?e():e}function m1(e){return typeof e=="function"?e():e}const yH={current:null};function FE(e,t={}){var G;const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:f=!1,restMs:d=0,move:p=!0,triggerElementRef:g=yH,externalTree:m,isActiveTrigger:v=!0}=t,E=Da(m),{pointerTypeRef:b,interactedInsideRef:x,handlerRef:C,blockMouseMoveRef:R,performedPointerEventsMutationRef:T,unbindMouseMoveRef:O,restTimeoutPendingRef:_,openChangeTimeout:M,restTimeout:A,handleCloseOptionsRef:D}=lI(n),L=Wn(u),N=Wn(l),H=Wn(d);v&&(D.current=(G=L.current)==null?void 0:G.__options);const j=Be(()=>x.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),F=S.useCallback((B,Y=!0)=>{const J=Eg(N.current,"close",b.current);J&&!C.current?M.start(J,()=>n.setOpen(!1,lt(ir,B))):Y&&(M.clear(),n.setOpen(!1,lt(ir,B)))},[N,C,n,b,M]),q=Be(()=>{O.current(),C.current=void 0}),U=Be(()=>{if(T.current){const B=Un(n.select("domReferenceElement")).body;B.style.pointerEvents="",B.removeAttribute($b),T.current=!1}});S.useEffect(()=>{if(!s)return;function B(Y){Y.open||(M.clear(),A.clear(),R.current=!0,_.current=!1)}return i.on("openchange",B),()=>{i.off("openchange",B)}},[s,i,M,A,R,_]);const P=Be(B=>{var k;if(j()||!r.current.floatingContext)return;const Y=n.context.triggerElements;if(B.relatedTarget&&Y.hasElement(B.relatedTarget))return;const J=g.current;(k=L.current)==null||k.call(L,{...r.current.floatingContext,tree:E,x:B.clientX,y:B.clientY,onClose(){U(),q(),!j()&&J===n.select("domReferenceElement")&&F(B)}})(B)});return S.useEffect(()=>{if(!s)return;const B=g.current??(v?n.select("domReferenceElement"):null);if(!Jt(B))return;function Y($){if(M.clear(),R.current=!1,f&&!xl(b.current)||m1(H.current)>0&&!Eg(N.current,"open"))return;const W=Eg(N.current,"open",b.current),te=n.select("domReferenceElement"),ae=n.context.triggerElements,ne=(ae.hasElement($.target)||ae.hasMatchingElement(de=>Ct(de,$.target)))&&(!te||!Ct(te,$.target)),ce=$.currentTarget??null,Q=!n.select("open")||ne;W?M.start(W,()=>{Q&&n.setOpen(!0,lt(ir,$,ce))}):Q&&n.setOpen(!0,lt(ir,$,ce))}function J($){if(j()){U();return}O.current();const W=n.select("domReferenceElement"),te=Un(W);A.clear(),_.current=!1;const ae=n.context.triggerElements;if($.relatedTarget&&ae.hasElement($.relatedTarget))return;if(L.current&&r.current.floatingContext){n.select("open")||M.clear();const ce=g.current;C.current=L.current({...r.current.floatingContext,tree:E,x:$.clientX,y:$.clientY,onClose(){U(),q(),!j()&&ce===n.select("domReferenceElement")&&F($,!0)}});const Q=C.current;Q($),te.addEventListener("mousemove",Q),O.current=()=>{te.removeEventListener("mousemove",Q)};return}(b.current==="touch"?!Ct(n.select("floatingElement"),$.relatedTarget):!0)&&F($)}function k($){P($)}return n.select("open")&&B.addEventListener("mouseleave",k),p&&B.addEventListener("mousemove",Y,{once:!0}),B.addEventListener("mouseenter",Y),B.addEventListener("mouseleave",J),()=>{B.removeEventListener("mouseleave",k),p&&B.removeEventListener("mousemove",Y),B.removeEventListener("mouseenter",Y),B.removeEventListener("mouseleave",J)}},[q,U,R,r,N,F,n,s,L,P,v,j,f,p,b,H,A,_,M,g,E,O,C]),S.useMemo(()=>{function B(Y){b.current=Y.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(Y){const{nativeEvent:J}=Y,k=Y.currentTarget,$=n.select("domReferenceElement"),W=n.context.triggerElements,te=n.select("open"),ae=(W.hasElement(Y.target)||W.hasMatchingElement(ce=>Ct(ce,Y.target)))&&(!$||!Ct($,Y.target));if(f&&!xl(b.current)||te&&!ae||m1(H.current)===0||!ae&&_.current&&Y.movementX**2+Y.movementY**2<2)return;A.clear();function ne(){!R.current&&(!te||ae)&&n.setOpen(!0,lt(ir,J,k))}b.current==="touch"?Dn.flushSync(()=>{ne()}):ae&&te?ne():(_.current=!0,A.start(m1(H.current),ne))}}},[R,f,n,b,H,A,_])}function zl(e=[]){const t=e.map(d=>d==null?void 0:d.reference),n=e.map(d=>d==null?void 0:d.floating),r=e.map(d=>d==null?void 0:d.item),i=e.map(d=>d==null?void 0:d.trigger),s=S.useCallback(d=>jp(d,e,"reference"),t),l=S.useCallback(d=>jp(d,e,"floating"),n),u=S.useCallback(d=>jp(d,e,"item"),r),f=S.useCallback(d=>jp(d,e,"trigger"),i);return S.useMemo(()=>({getReferenceProps:s,getFloatingProps:l,getItemProps:u,getTriggerProps:f}),[s,l,u,f])}function jp(e,t,n){var l;const r=new Map,i=n==="item",s={};n==="floating"&&(s.tabIndex=-1,s[Pb]="");for(const u in e)i&&e&&(u===a4||u===l4)||(s[u]=e[u]);for(let u=0;u<t.length;u+=1){let f;const d=(l=t[u])==null?void 0:l[n];typeof d=="function"?f=e?d(e):null:f=d,f&&$_(s,f,i,r)}return $_(s,e,i,r),s}function $_(e,t,n,r){var i;for(const s in t){const l=t[s];n&&(s===a4||s===l4)||(s.startsWith("on")?(r.has(s)||r.set(s,[]),typeof l=="function"&&((i=r.get(s))==null||i.push(l),e[s]=(...u)=>{var f;return(f=r.get(s))==null?void 0:f.map(d=>d(...u)).find(d=>d!==void 0)})):e[s]=l)}}const bH="Escape";function Ym(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function $p(e,t){return Ym(t,e===SE||e===Gd,e===ma||e===va)}function v1(e,t,n){return Ym(t,e===Gd,n?e===ma:e===va)||e==="Enter"||e===" "||e===""}function SH(e,t,n){return Ym(t,n?e===ma:e===va,e===Gd)}function EH(e,t,n,r){const i=n?e===va:e===ma,s=e===SE;return t==="both"||t==="horizontal"&&r&&r>1?e===bH:Ym(t,i,s)}function uI(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),l=n.context.dataRef,{listRef:u,activeIndex:f,onNavigate:d=()=>{},enabled:p=!0,selectedIndex:g=null,allowEscape:m=!1,loopFocus:v=!1,nested:E=!1,rtl:b=!1,virtual:x=!1,focusItemOnOpen:C="auto",focusItemOnHover:R=!0,openOnArrowKeyDown:T=!0,disabledIndices:O=void 0,orientation:_="vertical",parentOrientation:M,cols:A=1,scrollItemIntoView:D=!0,itemSizes:L,dense:N=!1,id:H,resetOnPointerLeave:j=!0,externalTree:F}=t,q=md(i),U=Wn(q),P=Hi(),G=Da(F);Ve(()=>{l.current.orientation=_},[l,_]);const B=kb(s),Y=S.useRef(C),J=S.useRef(g??-1),k=S.useRef(null),$=S.useRef(!0),W=Be(ie=>{d(J.current===-1?null:J.current,ie)}),te=S.useRef(W),ae=S.useRef(!!i),ne=S.useRef(r),ce=S.useRef(!1),Q=S.useRef(!1),de=Wn(O),ve=Wn(r),ue=Wn(D),me=Wn(g),xe=Wn(j),Ce=Be(()=>{function ie(Ue){x?G==null||G.events.emit("virtualfocus",Ue):wg(Ue,{sync:ce.current,preventScroll:!0})}const se=u.current[J.current],re=Q.current;se&&ie(se),(ce.current?Ue=>Ue():requestAnimationFrame)(()=>{var nt;const Ue=u.current[J.current]||se;if(!Ue)return;se||ie(Ue);const ke=ue.current;ke&&Se&&(re||!$.current)&&((nt=Ue.scrollIntoView)==null||nt.call(Ue,typeof ke=="boolean"?{block:"nearest",inline:"nearest"}:ke))})});Ve(()=>{p&&(r&&i?(J.current=g??-1,Y.current&&g!=null&&(Q.current=!0,W())):ae.current&&(J.current=-1,te.current()))},[p,r,i,g,W]),Ve(()=>{if(p){if(!r){ce.current=!1;return}if(i)if(f==null){if(ce.current=!1,me.current!=null)return;if(ae.current&&(J.current=-1,Ce()),(!ne.current||!ae.current)&&Y.current&&(k.current!=null||Y.current===!0&&k.current==null)){let ie=0;const se=()=>{u.current[0]==null?(ie<2&&(ie?requestAnimationFrame:queueMicrotask)(se),ie+=1):(J.current=k.current==null||v1(k.current,_,b)||E?bg(u):zb(u),k.current=null,W())};se()}}else Uu(u,f)||(J.current=f,Ce(),Q.current=!1)}},[p,r,i,f,me,E,u,_,b,W,Ce,de]),Ve(()=>{var Ue,ke;if(!p||i||!G||x||!ae.current)return;const ie=G.nodesRef.current,se=(ke=(Ue=ie.find(Ge=>Ge.id===P))==null?void 0:Ue.context)==null?void 0:ke.elements.floating,re=xi(Un(i)),Ie=ie.some(Ge=>Ge.context&&Ct(Ge.context.elements.floating,re));se&&!Ie&&$.current&&se.focus({preventScroll:!0})},[p,i,G,P,x]),Ve(()=>{te.current=W,ne.current=r,ae.current=!!i}),Ve(()=>{r||(k.current=null,Y.current=C)},[r,C]);const Ae=f!=null,Se=S.useMemo(()=>{function ie(re){if(!ve.current)return;const Ie=u.current.indexOf(re.currentTarget);Ie!==-1&&J.current!==Ie&&(J.current=Ie,W(re))}return{onFocus(re){ce.current=!0,ie(re)},onClick:({currentTarget:re})=>re.focus({preventScroll:!0}),onMouseMove(re){ce.current=!0,Q.current=!1,R&&ie(re)},onPointerLeave(re){var Ue;if(!ve.current||!$.current||re.pointerType==="touch")return;ce.current=!0;const Ie=re.relatedTarget;!R||u.current.includes(Ie)||xe.current&&(J.current=-1,W(re),x||(Ue=U.current)==null||Ue.focus({preventScroll:!0}))}}},[ve,U,R,u,W,xe,x]),Te=S.useCallback(()=>{var ie,se,re;return M??((re=(se=(ie=G==null?void 0:G.nodesRef.current.find(Ie=>Ie.id===P))==null?void 0:ie.context)==null?void 0:se.dataRef)==null?void 0:re.current.orientation)},[P,G,M]),we=Be(ie=>{if($.current=!1,ce.current=!0,ie.which===229||!ve.current&&ie.currentTarget===U.current)return;if(E&&EH(ie.key,_,b,A)){$p(ie.key,Te())||wr(ie),n.setOpen(!1,lt(Sg,ie.nativeEvent)),vn(s)&&(x?G==null||G.events.emit("virtualfocus",s):s.focus());return}const se=J.current,re=bg(u,O),Ie=zb(u,O);if(B||(ie.key==="Home"&&(wr(ie),J.current=re,W(ie)),ie.key==="End"&&(wr(ie),J.current=Ie,W(ie))),A>1){const Ue=L||Array.from({length:u.current.length},()=>({width:1,height:1})),ke=g4(Ue,A,N),Ge=ke.findIndex(It=>It!=null&&!ya(u,It,O)),nt=ke.reduce((It,st,he)=>st!=null&&!ya(u,st,O)?he:It,-1),rt=ke[p4({current:ke.map(It=>It!=null?u.current[It]:null)},{event:ie,orientation:_,loopFocus:v,rtl:b,cols:A,disabledIndices:v4([...(typeof O!="function"?O:null)||u.current.map((It,st)=>ya(u,st,O)?st:void 0),void 0],ke),minIndex:Ge,maxIndex:nt,prevIndex:m4(J.current>Ie?re:J.current,Ue,ke,A,ie.key===Gd?"bl":ie.key===(b?ma:va)?"tr":"tl"),stopEvent:!0})];if(rt!=null&&(J.current=rt,W(ie)),_==="both")return}if($p(ie.key,_)){if(wr(ie),r&&!x&&xi(ie.currentTarget.ownerDocument)===ie.currentTarget){J.current=v1(ie.key,_,b)?re:Ie,W(ie);return}v1(ie.key,_,b)?v?se>=Ie?m&&se!==u.current.length?J.current=-1:(ce.current=!1,J.current=re):J.current=yr(u,{startingIndex:se,disabledIndices:O}):J.current=Math.min(Ie,yr(u,{startingIndex:se,disabledIndices:O})):v?se<=re?m&&se!==-1?J.current=u.current.length:(ce.current=!1,J.current=Ie):J.current=yr(u,{startingIndex:se,decrement:!0,disabledIndices:O}):J.current=Math.max(re,yr(u,{startingIndex:se,decrement:!0,disabledIndices:O})),Uu(u,J.current)&&(J.current=-1),W(ie)}}),De=S.useMemo(()=>x&&r&&Ae&&{"aria-activedescendant":`${H}-${f}`},[x,r,Ae,H,f]),V=S.useMemo(()=>({"aria-orientation":_==="both"?void 0:_,...B?{}:De,onKeyDown(ie){if(ie.key==="Tab"&&ie.shiftKey&&r&&!x){const se=Rr(ie.nativeEvent);if(se&&!Ct(U.current,se))return;wr(ie),n.setOpen(!1,lt(Ii,ie.nativeEvent)),vn(s)&&s.focus();return}we(ie)},onPointerMove(){$.current=!0}}),[De,we,U,_,B,n,r,x,s]),X=S.useMemo(()=>{function ie(re){C==="auto"&&c4(re.nativeEvent)&&(Y.current=!x)}function se(re){Y.current=C,C==="auto"&&f4(re.nativeEvent)&&(Y.current=!0)}return{onKeyDown(re){const Ie=n.select("open");$.current=!1;const Ue=re.key.startsWith("Arrow"),ke=SH(re.key,Te(),b),Ge=$p(re.key,_),nt=(E?ke:Ge)||re.key==="Enter"||re.key.trim()==="";if(x&&Ie)return we(re);if(!(!Ie&&!T&&Ue)){if(nt){const rt=$p(re.key,Te());k.current=E&&rt?null:re.key}if(E){ke&&(wr(re),Ie?(J.current=bg(u,de.current),W(re)):n.setOpen(!0,lt(Sg,re.nativeEvent,re.currentTarget)));return}Ge&&(me.current!=null&&(J.current=me.current),wr(re),!Ie&&T?n.setOpen(!0,lt(Sg,re.nativeEvent,re.currentTarget)):we(re),Ie&&W(re))}},onFocus(re){n.select("open")&&!x&&(J.current=-1,W(re))},onPointerDown:se,onPointerEnter:se,onMouseDown:ie,onClick:ie}},[we,de,C,u,E,W,n,T,_,Te,b,me,x]),Z=S.useMemo(()=>({...De,...X}),[De,X]);return S.useMemo(()=>p?{reference:Z,floating:V,item:Se,trigger:X}:{},[p,Z,V,X,Se])}const wH=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function zE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),s=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{enabled:u=!0,role:f="dialog"}=t,d=Nl(),p=(s==null?void 0:s.id)||d,g=S.useMemo(()=>{var T;return((T=md(l))==null?void 0:T.id)||i},[l,i]),m=wH.get(f)??f,E=Hi()!=null,b=S.useMemo(()=>m==="tooltip"||f==="label"?Mn:{"aria-haspopup":m==="alertdialog"?"dialog":m,"aria-expanded":"false",...m==="listbox"&&{role:"combobox"},...m==="menu"&&E&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[m,E,f]),x=S.useMemo(()=>m==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:r?g:void 0}:{...b,"aria-expanded":r?"true":"false","aria-controls":r?g:void 0,...m==="menu"&&{id:p}},[m,g,r,p,f,b]),C=S.useMemo(()=>{const T={id:g,...m&&{role:m}};return m==="tooltip"||f==="label"?T:{...T,...m==="menu"&&{"aria-labelledby":p}}},[m,g,p,f]),R=S.useCallback(({active:T,selected:O})=>{const _={role:"option",...T&&{id:`${g}-fui-option`}};switch(f){case"select":case"combobox":return{..._,"aria-selected":O}}return{}},[g,f]);return S.useMemo(()=>u?{reference:x,floating:C,item:R,trigger:b}:{},[u,x,C,b,R])}function cI(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.context.dataRef,{listRef:s,activeIndex:l,onMatch:u,onTypingChange:f,enabled:d=!0,findMatch:p=null,resetMs:g=750,ignoreKeys:m=Ea,selectedIndex:v=null}=t,E=Cn(),b=S.useRef(""),x=S.useRef(v??l??-1),C=S.useRef(null);Ve(()=>{r&&(E.clear(),C.current=null,b.current="")},[r,E]),Ve(()=>{r&&b.current===""&&(x.current=v??l??-1)},[r,v,l]);const R=Be(M=>{M?i.current.typing||(i.current.typing=M,f==null||f(M)):i.current.typing&&(i.current.typing=M,f==null||f(M))}),T=Be(M=>{function A(j,F,q){const U=p?p(F,q):F.find(P=>(P==null?void 0:P.toLocaleLowerCase().indexOf(q.toLocaleLowerCase()))===0);return U?j.indexOf(U):-1}const D=s.current;if(b.current.length>0&&b.current[0]!==" "&&(A(D,D,b.current)===-1?R(!1):M.key===" "&&wr(M)),D==null||m.includes(M.key)||M.key.length!==1||M.ctrlKey||M.metaKey||M.altKey)return;r&&M.key!==" "&&(wr(M),R(!0)),D.every(j=>{var F,q;return j?((F=j[0])==null?void 0:F.toLocaleLowerCase())!==((q=j[1])==null?void 0:q.toLocaleLowerCase()):!0})&&b.current===M.key&&(b.current="",x.current=C.current),b.current+=M.key,E.start(g,()=>{b.current="",x.current=C.current,R(!1)});const N=x.current,H=A(D,[...D.slice((N||0)+1),...D.slice(0,(N||0)+1)],b.current);H!==-1?(u==null||u(H),C.current=H):M.key!==" "&&(b.current="",R(!1))}),O=S.useMemo(()=>({onKeyDown:T}),[T]),_=S.useMemo(()=>({onKeyDown:T,onKeyUp(M){M.key===" "&&R(!1)}}),[T,R]);return S.useMemo(()=>d?{reference:O,floating:_}:{},[d,O,_])}function q_(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let l=0,u=s-1;l<s;u=l++){const[f,d]=t[l]||[0,0],[p,g]=t[u]||[0,0];d>=r!=g>=r&&n<=(p-f)*(r-d)/(g-d)+f&&(i=!i)}return i}function RH(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function HE(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new Rs;let s=!1,l=null,u=null,f=typeof performance<"u"?performance.now():0;function d(g,m){const v=performance.now(),E=v-f;if(l===null||u===null||E===0)return l=g,u=m,f=v,null;const b=g-l,x=m-u,R=Math.sqrt(b*b+x*x)/E;return l=g,u=m,f=v,R}const p=({x:g,y:m,placement:v,elements:E,onClose:b,nodeId:x,tree:C})=>function(T){function O(){i.clear(),b()}if(i.clear(),!E.domReference||!E.floating||v==null||g==null||m==null)return;const{clientX:_,clientY:M}=T,A=[_,M],D=Rr(T),L=T.type==="mouseleave",N=Ct(E.floating,D),H=Ct(E.domReference,D),j=E.domReference.getBoundingClientRect(),F=E.floating.getBoundingClientRect(),q=v.split("-")[0],U=g>F.right-F.width/2,P=m>F.bottom-F.height/2,G=RH(A,j),B=F.width>j.width,Y=F.height>j.height,J=(B?j:F).left,k=(B?j:F).right,$=(Y?j:F).top,W=(Y?j:F).bottom;if(N&&(s=!0,!L))return;if(H&&(s=!1),H&&!L){s=!0;return}if(L&&Jt(T.relatedTarget)&&Ct(E.floating,T.relatedTarget)||C&&vl(C.nodesRef.current,x).some(({context:ne})=>ne==null?void 0:ne.open))return;if(q==="top"&&m>=j.bottom-1||q==="bottom"&&m<=j.top+1||q==="left"&&g>=j.right-1||q==="right"&&g<=j.left+1)return O();let te=[];switch(q){case"top":te=[[J,j.top+1],[J,F.bottom-1],[k,F.bottom-1],[k,j.top+1]];break;case"bottom":te=[[J,F.top+1],[J,j.bottom-1],[k,j.bottom-1],[k,F.top+1]];break;case"left":te=[[F.right-1,W],[F.right-1,$],[j.left+1,$],[j.left+1,W]];break;case"right":te=[[j.right-1,W],[j.right-1,$],[F.left+1,$],[F.left+1,W]];break}function ae([ne,ce]){switch(q){case"top":{const Q=[B?ne+t/2:U?ne+t*4:ne-t*4,ce+t+1],de=[B?ne-t/2:U?ne+t*4:ne-t*4,ce+t+1],ve=[[F.left,U||B?F.bottom-t:F.top],[F.right,U?B?F.bottom-t:F.top:F.bottom-t]];return[Q,de,...ve]}case"bottom":{const Q=[B?ne+t/2:U?ne+t*4:ne-t*4,ce-t],de=[B?ne-t/2:U?ne+t*4:ne-t*4,ce-t],ve=[[F.left,U||B?F.top+t:F.bottom],[F.right,U?B?F.top+t:F.bottom:F.top+t]];return[Q,de,...ve]}case"left":{const Q=[ne+t+1,Y?ce+t/2:P?ce+t*4:ce-t*4],de=[ne+t+1,Y?ce-t/2:P?ce+t*4:ce-t*4];return[...[[P||Y?F.right-t:F.left,F.top],[P?Y?F.right-t:F.left:F.right-t,F.bottom]],Q,de]}case"right":{const Q=[ne-t,Y?ce+t/2:P?ce+t*4:ce-t*4],de=[ne-t,Y?ce-t/2:P?ce+t*4:ce-t*4],ve=[[P||Y?F.left+t:F.right,F.top],[P?Y?F.left+t:F.right:F.left+t,F.bottom]];return[Q,de,...ve]}default:return[]}}if(!q_([_,M],te)){if(s&&!G)return O();if(!L&&r){const ne=d(T.clientX,T.clientY);if(ne!==null&&ne<.1)return O()}q_([_,M],ae([g,m]))?!s&&r&&i.start(40,O):O()}};return p.__options={blockPointerEvents:n},p}const xH={...qm,disabled:Ne(e=>e.disabled),instantType:Ne(e=>e.instantType),isInstantPhase:Ne(e=>e.isInstantPhase),trackCursorAxis:Ne(e=>e.trackCursorAxis),disableHoverablePopup:Ne(e=>e.disableHoverablePopup),lastOpenChangeReason:Ne(e=>e.openChangeReason),closeDelay:Ne(e=>e.closeDelay)};class BE extends Kd{constructor(n){super({...CH(),...n},{popupRef:S.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Dc},xH);qt(this,"setOpen",(n,r)=>{var d,p;const i=r.reason,s=i===ir,l=n&&i===yd,u=!n&&(i===ti||i===Xd);if(r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(p=(d=this.context).onOpenChange)==null||p.call(d,n,r),r.isCanceled)return;const f=()=>{var v;const g={open:n,openChangeReason:i};l?g.instantType="focus":u?g.instantType="dismiss":i===ir&&(g.instantType=void 0);const m=((v=r.trigger)==null?void 0:v.id)??null;(m||n)&&(g.activeTriggerId=m,g.activeTriggerElement=r.trigger??null),this.update(g)};s?Dn.flushSync(f):f()})}static useStore(n,r){const i=Tr(()=>n??new BE(r)).current,s=Gm({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=s,i}}function CH(){return{...$m(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}function vte(e){const{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:l,onOpenChange:u,onOpenChangeComplete:f,handle:d,triggerId:p,defaultTriggerId:g=null,children:m}=e,v=BE.useStore(d==null?void 0:d.store,{open:r??n,activeTriggerId:p!==void 0?p:g});v.useControlledProp("open",r,n),v.useControlledProp("activeTriggerId",p,g),v.useContextCallback("onOpenChange",u),v.useContextCallback("onOpenChangeComplete",f);const E=v.useState("open"),b=v.useState("activeTriggerId"),x=v.useState("payload");v.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i});const C=!t&&E;Ve(()=>{E&&t&&v.setOpen(!1,lt(SF))},[E,t,v]),v.useSyncedValue("disabled",t),Vm(v);const{forceUnmount:R,transitionStatus:T}=jm(C,v),O=v.useState("isInstantPhase"),_=v.useState("instantType"),M=v.useState("lastOpenChangeReason"),A=S.useRef(null);Ve(()=>{T==="ending"&&M===Os||T!=="ending"&&O?(_!=="delay"&&(A.current=_),v.set("instantType","delay")):A.current!==null&&(v.set("instantType",A.current),A.current=null)},[T,O,M,_,v]),Ve(()=>{C&&b==null&&v.set("payload",void 0)},[v,b,C]);const D=S.useCallback(()=>{v.setOpen(!1,TH(v,zm))},[v]);S.useImperativeHandle(l,()=>({unmount:R,close:D}),[R,D]);const L=v.useState("floatingRootContext"),N=aI(L,{enabled:!t}),H=Wd(L,{enabled:!t,referencePress:!0}),j=QF(L,{enabled:!t&&s!=="none",axis:s==="none"?void 0:s}),{getReferenceProps:F,getFloatingProps:q,getTriggerProps:U}=zl([N,H,j]),P=S.useMemo(()=>F(),[F]),G=S.useMemo(()=>U(),[U]),B=S.useMemo(()=>q(),[q]);return v.useSyncedValues({floatingRootContext:L,activeTriggerProps:P,inactiveTriggerProps:G,popupProps:B}),be.jsx(t4.Provider,{value:v,children:typeof m=="function"?m({payload:x}):m})}function TH(e,t){const n=lt(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}let Kg=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const _H={[Kg.startingStyle]:""},AH={[Kg.endingStyle]:""},Bi={transitionStatus(e){return e==="starting"?_H:e==="ending"?AH:null}};let rl=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Kg.startingStyle]="startingStyle",e[e.endingStyle=Kg.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e}({}),qb=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({});const OH={[qb.popupOpen]:""},MH={[qb.popupOpen]:"",[qb.pressed]:""},IH={[rl.open]:""},DH={[rl.closed]:""},LH={[rl.anchorHidden]:""},UE={open(e){return e?OH:null}},Qg={open(e){return e?MH:null}},Go={open(e){return e?IH:DH},anchorHidden(e){return e?LH:null}};function Lr(e){return Nl(e,"base-ui")}const fI=S.createContext(void 0);function PH(){return S.useContext(fI)}const kH=600,yte=S.forwardRef(function(t,n){const{className:r,render:i,handle:s,payload:l,disabled:u,delay:f,closeDelay:d,id:p,...g}=t,m=qd(!0),v=(s==null?void 0:s.store)??m;if(!v)throw new Error(Vt(82));const E=Lr(p),b=v.useState("isTriggerActive",E),x=v.useState("floatingRootContext"),C=v.useState("isOpenedByTrigger",E),R=S.useRef(null),T=f??kH,O=d??0,{registerTrigger:_,isMountedByThisTrigger:M}=kE(E,R,v,{payload:l,closeDelay:O}),A=PH(),{delayRef:D,isInstantPhase:L,hasProvider:N}=RF(x,{open:C});v.useSyncedValue("isInstantPhase",L);const H=v.useState("disabled"),j=u??H,F=v.useState("trackCursorAxis"),q=v.useState("disableHoverablePopup"),U=FE(x,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!q&&F!=="both"?HE():null,restMs(){const Y=A==null?void 0:A.delay,J=typeof D.current=="object"?D.current.open:void 0;let k=T;return N&&(J!==0?k=f??Y??T:k=0),k},delay(){const Y=typeof D.current=="object"?D.current.close:void 0;let J=O;return d==null&&N&&(J=Y),{close:J}},triggerElementRef:R,isActiveTrigger:b}),P=S.useMemo(()=>({open:C}),[C]),G=v.useState("triggerProps",M);return St("button",t,{state:P,ref:[n,_,R],props:[U,G,{id:E},g],stateAttributesMapping:UE})}),dI=S.createContext(void 0);function NH(){const e=S.useContext(dI);if(e===void 0)throw new Error(Vt(70));return e}const FH=S.forwardRef(function(t,n){const{children:r,container:i,className:s,render:l,...u}=t,{portalNode:f,portalSubtree:d}=Y4({container:i,ref:n,componentProps:t,elementProps:u});return!d&&!f?null:be.jsxs(S.Fragment,{children:[d,f&&Dn.createPortal(r,f)]})}),bte=S.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return qd().useState("mounted")||r?be.jsx(dI.Provider,{value:r,children:be.jsx(FH,{ref:n,...i})}):null}),hI=S.createContext(void 0);function pI(){const e=S.useContext(hI);if(e===void 0)throw new Error(Vt(71));return e}const zH=S.createContext(void 0);function Hl(){const e=S.useContext(zH);return(e==null?void 0:e.direction)??"ltr"}const HH=e=>({name:"arrow",options:e,async fn(t){var Y,J;const{x:n,y:r,placement:i,rects:s,platform:l,elements:u,middlewareData:f}=t,{element:d,padding:p=0,offsetParent:g="real"}=xs(e,t)||{};if(d==null)return{};const m=h4(p),v={x:n,y:r},E=xE(i),b=RE(E),x=await l.getDimensions(d),C=E==="y",R=C?"top":"left",T=C?"bottom":"right",O=C?"clientHeight":"clientWidth",_=s.reference[b]+s.reference[E]-v[E]-s.floating[b],M=v[E]-s.reference[E],A=g==="real"?await((Y=l.getOffsetParent)==null?void 0:Y.call(l,d)):u.floating;let D=u.floating[O]||s.floating[b];(!D||!await((J=l.isElement)==null?void 0:J.call(l,A)))&&(D=u.floating[O]||s.floating[b]);const L=_/2-M/2,N=D/2-x[b]/2-1,H=Math.min(m[R],N),j=Math.min(m[T],N),F=H,q=D-x[b]-j,U=D/2-x[b]/2+L,P=Nb(F,U,q),G=!f.arrow&&Ia(i)!=null&&U!==P&&s.reference[b]/2-(U<F?H:j)-x[b]/2<0,B=G?U<F?U-F:U-q:0;return{[E]:v[E]+B,data:{[E]:P,centerOffset:U-P-B,...G&&{alignmentOffset:B}},reset:G}}}),BH=(e,t)=>({...HH(e),options:[e,t]}),UH={name:"hide",async fn(e){var u;const{width:t,height:n,x:r,y:i}=e.rects.reference,s=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:((u=(await Fz().fn(e)).data)==null?void 0:u.referenceHidden)||s}}}},xg={sideX:"left",sideY:"top"},gI={name:"adaptiveOrigin",async fn(e){var R,T;const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:s,strategy:l,placement:u}=e,f=Nn(i),d=f.getComputedStyle(i);if(!(d.transitionDuration!=="0s"&&d.transitionDuration!==""))return{x:t,y:n,data:xg};const g=await((R=s.getOffsetParent)==null?void 0:R.call(s,i));let m={width:0,height:0};if(l==="fixed"&&(f!=null&&f.visualViewport))m={width:f.visualViewport.width,height:f.visualViewport.height};else if(g===f){const O=qo(i);m={width:O.documentElement.clientWidth,height:O.documentElement.clientHeight}}else await((T=s.isElement)==null?void 0:T.call(s,g))&&(m=await s.getDimensions(g));const v=Qr(u);let E=t,b=n;v==="left"&&(E=m.width-(t+r.width)),v==="top"&&(b=m.height-(n+r.height));const x=v==="left"?"right":xg.sideX,C=v==="top"?"bottom":xg.sideY;return{x:E,y:b,data:{sideX:x,sideY:C}}}};function mI(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function G_(e,t,n){const{rects:r,placement:i}=e;return{side:mI(t,Qr(i),n),align:Ia(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Xm(e){var $e,Ze;const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,collisionBoundary:u,collisionPadding:f=5,sticky:d=!1,arrowPadding:p=5,disableAnchorTracking:g=!1,keepMounted:m=!1,floatingRootContext:v,mounted:E,collisionAvoidance:b,shiftCrossAxis:x=!1,nodeId:C,adaptiveOrigin:R,lazyFlip:T=!1,externalTree:O}=e,[_,M]=S.useState(null);!E&&_!==null&&M(null);const A=b.side||"flip",D=b.align||"flip",L=b.fallbackAxisSide||"end",N=typeof t=="function"?t:void 0,H=Be(N),j=N?H:t,F=Wn(t),U=Hl()==="rtl",P=_||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":U?"left":"right","inline-start":U?"right":"left"}[r],G=s==="center"?P:`${P}-${s}`;let B=f;const Y=1,J=r==="bottom"?Y:0,k=r==="top"?Y:0,$=r==="right"?Y:0,W=r==="left"?Y:0;typeof B=="number"?B={top:B+J,right:B+W,bottom:B+k,left:B+$}:B&&(B={top:(B.top||0)+J,right:(B.right||0)+W,bottom:(B.bottom||0)+k,left:(B.left||0)+$});const te={boundary:u==="clipping-ancestors"?"clippingAncestors":u,padding:B},ae=S.useRef(null),ne=Wn(i),ce=Wn(l),ve=[Dz(et=>{const ft=G_(et,r,U),Yt=typeof ne.current=="function"?ne.current(ft):ne.current,ot=typeof ce.current=="function"?ce.current(ft):ce.current;return{mainAxis:Yt,crossAxis:ot,alignmentAxis:ot}},[typeof i!="function"?i:0,typeof l!="function"?l:0,U,r])],ue=D==="none"&&A!=="shift",me=!ue&&(d||x||A==="shift"),xe=A==="none"?null:kz({...te,padding:{top:B.top+Y,right:B.right+Y,bottom:B.bottom+Y,left:B.left+Y},mainAxis:!x&&A==="flip",crossAxis:D==="flip"?"alignment":!1,fallbackAxisSideDirection:L}),Ce=ue?null:Lz(et=>{const ft=qo(et.elements.floating).documentElement;return{...te,rootBoundary:x?{x:0,y:0,width:ft.clientWidth,height:ft.clientHeight}:void 0,mainAxis:D!=="none",crossAxis:me,limiter:d||x?void 0:Pz(Yt=>{if(!ae.current)return{};const{width:ot,height:Et}=ae.current.getBoundingClientRect(),dt=Ho(Qr(Yt.placement)),Bt=dt==="y"?ot:Et,an=dt==="y"?B.left+B.right:B.top+B.bottom;return{offset:Bt/2+an/2}})}},[te,d,x,B,D]);A==="shift"||D==="shift"||s==="center"?ve.push(Ce,xe):ve.push(xe,Ce),ve.push(Nz({...te,apply({elements:{floating:et},rects:{reference:ft},availableWidth:Yt,availableHeight:ot}){Object.entries({"--available-width":`${Yt}px`,"--available-height":`${ot}px`,"--anchor-width":`${ft.width}px`,"--anchor-height":`${ft.height}px`}).forEach(([Et,dt])=>{et.style.setProperty(Et,dt)})}}),BH(()=>({element:ae.current||document.createElement("div"),padding:p,offsetParent:"floating"}),[p]),{name:"transformOrigin",fn(et){var hr,ji,Gl;const{elements:ft,middlewareData:Yt,placement:ot,rects:Et,y:dt}=et,Bt=Qr(ot),an=Ho(Bt),Ye=ae.current,At=((hr=Yt.arrow)==null?void 0:hr.x)||0,tn=((ji=Yt.arrow)==null?void 0:ji.y)||0,Ut=(Ye==null?void 0:Ye.clientWidth)||0,ln=(Ye==null?void 0:Ye.clientHeight)||0,yn=At+Ut/2,mn=tn+ln/2,dr=Math.abs(((Gl=Yt.shift)==null?void 0:Gl.y)||0),Fr=Et.reference.height/2,$n=typeof i=="function"?i(G_(et,r,U)):i,io=dr>$n,zr={top:`${yn}px calc(100% + ${$n}px)`,bottom:`${yn}px ${-$n}px`,left:`calc(100% + ${$n}px) ${mn}px`,right:`${-$n}px ${mn}px`}[Bt],Zn=`${yn}px ${Et.reference.y+Fr-dt}px`;return ft.floating.style.setProperty("--transform-origin",me&&an==="y"&&io?Zn:zr),{}}},UH,R),Ve(()=>{!E&&v&&v.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[E,v]);const Ae=S.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Se,elements:Te,x:we,y:De,middlewareData:V,update:X,placement:Z,context:ie,isPositioned:se,floatingStyles:re}=hH({rootContext:v,placement:G,middleware:ve,strategy:n,whileElementsMounted:m?void 0:(...et)=>N_(...et,Ae),nodeId:C,externalTree:O}),{sideX:Ie,sideY:Ue}=V.adaptiveOrigin||xg,ke=se?n:"fixed",Ge=S.useMemo(()=>R?{position:ke,[Ie]:we,[Ue]:De}:{position:ke,...re},[R,ke,Ie,we,Ue,De,re]),nt=S.useRef(null);Ve(()=>{if(!E)return;const et=F.current,ft=typeof et=="function"?et():et,ot=(Y_(ft)?ft.current:ft)||null||null;ot!==nt.current&&(Se.setPositionReference(ot),nt.current=ot)},[E,Se,j,F]),S.useEffect(()=>{if(!E)return;const et=F.current;typeof et!="function"&&Y_(et)&&et.current!==nt.current&&(Se.setPositionReference(et.current),nt.current=et.current)},[E,Se,j,F]),S.useEffect(()=>{if(m&&E&&Te.domReference&&Te.floating)return N_(Te.domReference,Te.floating,X,Ae)},[m,E,Te,X,Ae]);const rt=Qr(Z),It=mI(r,rt,U),st=Ia(Z)||"center",he=!!(($e=V.hide)!=null&&$e.referenceHidden);Ve(()=>{T&&E&&se&&M(rt)},[T,E,se,rt]);const He=S.useMemo(()=>{var et,ft;return{position:"absolute",top:(et=V.arrow)==null?void 0:et.y,left:(ft=V.arrow)==null?void 0:ft.x}},[V.arrow]),ze=((Ze=V.arrow)==null?void 0:Ze.centerOffset)!==0;return S.useMemo(()=>({positionerStyles:Ge,arrowStyles:He,arrowRef:ae,arrowUncentered:ze,side:It,align:st,physicalSide:rt,anchorHidden:he,refs:Se,context:ie,isPositioned:se,update:X}),[Ge,He,ae,ze,It,st,rt,he,Se,ie,se,X])}function Y_(e){return e!=null&&"current"in e}function Lc(e){return e==="starting"?yF:Mn}const Ste=S.forwardRef(function(t,n){const{render:r,className:i,anchor:s,positionMethod:l="absolute",side:u="top",align:f="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m=5,arrowPadding:v=5,sticky:E=!1,disableAnchorTracking:b=!1,collisionAvoidance:x=_E,...C}=t,R=qd(),T=NH(),O=R.useState("open"),_=R.useState("mounted"),M=R.useState("trackCursorAxis"),A=R.useState("disableHoverablePopup"),D=R.useState("floatingRootContext"),L=R.useState("instantType"),N=R.useState("transitionStatus"),H=Xm({anchor:s,positionMethod:l,floatingRootContext:D,mounted:_,side:u,sideOffset:d,align:f,alignOffset:p,collisionBoundary:g,collisionPadding:m,sticky:E,arrowPadding:v,disableAnchorTracking:b,keepMounted:T,collisionAvoidance:x,adaptiveOrigin:gI}),j=S.useMemo(()=>{const P={};return(!O||M==="both"||A)&&(P.pointerEvents="none"),{role:"presentation",hidden:!_,style:{...H.positionerStyles,...P}}},[O,M,A,_,H.positionerStyles]),F=S.useMemo(()=>({open:O,side:H.side,align:H.align,anchorHidden:H.anchorHidden,instant:M!=="none"?"tracking-cursor":L}),[O,H.side,H.align,H.anchorHidden,M,L]),q=S.useMemo(()=>({...F,arrowRef:H.arrowRef,arrowStyles:H.arrowStyles,arrowUncentered:H.arrowUncentered}),[F,H.arrowRef,H.arrowStyles,H.arrowUncentered]),U=St("div",t,{state:F,props:[j,Lc(N),C],ref:[n,R.useStateSetter("positionerElement")],stateAttributesMapping:Go});return be.jsx(hI.Provider,{value:q,children:U})});function X_(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r;return(dc(n)!==s||dc(r)!==l)&&(n=s,r=l),{width:n,height:r}}const VH=typeof ResizeObserver<"u",jH=()=>!0;function vI(e){const{popupElement:t,positionerElement:n,content:r,mounted:i,enabled:s=jH,onMeasureLayout:l,onMeasureLayoutComplete:u,side:f,direction:d}=e,p=S.useRef(!0),g=PE(t,!0,!1),m=Mc(),v=S.useRef(null),E=Be(l),b=Be(u),x=S.useMemo(()=>{let C=f==="top",R=f==="left";return d==="rtl"?(C=C||f==="inline-end",R=R||f==="inline-end"):(C=C||f==="inline-start",R=R||f==="inline-start"),C?{position:"absolute",[f==="top"?"bottom":"top"]:"0",[R?"right":"left"]:"0"}:Mn},[f,d]);Ve(()=>{if(!i||!s()||!VH){p.current=!0,v.current=null;return}if(!t||!n)return;Object.entries(x).forEach(([L,N])=>{t.style.setProperty(L,N)});const C=new ResizeObserver(L=>{const N=L[0];N&&(v.current===null?v.current={width:Math.ceil(N.borderBoxSize[0].inlineSize),height:Math.ceil(N.borderBoxSize[0].blockSize)}:(v.current.width=Math.ceil(N.borderBoxSize[0].inlineSize),v.current.height=Math.ceil(N.borderBoxSize[0].blockSize)))});C.observe(t),t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto");const R=Wf(t,"position","static"),T=Wf(t,"transform","none"),O=Wf(t,"scale","1"),_=Wf(n,"--available-width","max-content"),M=Wf(n,"--available-height","max-content");if(E==null||E(),p.current||v.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const L=X_(t);return n.style.setProperty("--positioner-width",`${L.width}px`),n.style.setProperty("--positioner-height",`${L.height}px`),R(),T(),O(),_(),M(),b==null||b(null,L),p.current=!1,()=>{C.disconnect()}}t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto"),n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const A=X_(t);t.style.setProperty("--popup-width",`${v.current.width}px`),t.style.setProperty("--popup-height",`${v.current.height}px`),R(),T(),_(),M(),b==null||b(v.current,A),n.style.setProperty("--positioner-width",`${A.width}px`),n.style.setProperty("--positioner-height",`${A.height}px`);const D=new AbortController;return m.request(()=>{t.style.setProperty("--popup-width",`${A.width}px`),t.style.setProperty("--popup-height",`${A.height}px`),g(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},D.signal)}),()=>{C.disconnect(),D.abort(),m.cancel()}},[r,t,n,g,m,s,i,E,b,x])}function Wf(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const $H={...Go,...Bi},Ete=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,l=qd(),{side:u,align:f}=pI(),d=l.useState("open"),p=l.useState("mounted"),g=l.useState("instantType"),m=l.useState("transitionStatus"),v=l.useState("popupProps"),E=l.useState("payload"),b=l.useState("popupElement"),x=l.useState("positionerElement"),C=l.useState("floatingRootContext"),R=Hl();ci({open:d,ref:l.context.popupRef,onComplete(){var N,H;d&&((H=(N=l.context).onOpenChangeComplete)==null||H.call(N,!0))}});function T(){C.context.events.emit("measure-layout")}function O(N,H){C.context.events.emit("measure-layout-complete",{previousDimensions:N,nextDimensions:H})}const _=S.useCallback(()=>l.context.triggerElements.size>1,[l]);vI({popupElement:b,positionerElement:x,mounted:p,content:E,enabled:_,onMeasureLayout:T,onMeasureLayoutComplete:O,side:u,direction:R});const M=l.useState("disabled"),A=l.useState("closeDelay");NE(C,{enabled:!M,closeDelay:A});const D=S.useMemo(()=>({open:d,side:u,align:f,instant:g,transitionStatus:m}),[d,u,f,g,m]);return St("div",t,{state:D,ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[v,Lc(m),s],stateAttributesMapping:$H})}),wte=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,u=qd().useState("instantType"),{open:f,arrowRef:d,side:p,align:g,arrowUncentered:m,arrowStyles:v}=pI(),E=S.useMemo(()=>({open:f,side:p,align:g,uncentered:m,instant:u}),[f,p,g,m,u]);return St("div",t,{state:E,ref:[n,d],props:[{style:v,"aria-hidden":!0},s],stateAttributesMapping:Go})}),Rte=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,s=S.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=S.useMemo(()=>({open:n,close:r}),[n,r]);return be.jsx(fI.Provider,{value:s,children:be.jsx(wF,{delay:l,timeoutMs:i,children:t.children})})};function Wm(e){return OE(19)?e:e?"true":void 0}var Pc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Tl=typeof window>"u"||"Deno"in globalThis;function Ir(){}function qH(e,t){return typeof e=="function"?e(t):e}function Gb(e){return typeof e=="number"&&e>=0&&e!==1/0}function yI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ba(e,t){return typeof e=="function"?e(t):e}function No(e,t){return typeof e=="function"?e(t):e}function W_(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==VE(l,t.options))return!1}else if(!Sd(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||s&&!s(t))}function K_(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(_l(t.options.mutationKey)!==_l(s))return!1}else if(!Sd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function VE(e,t){return((t==null?void 0:t.queryKeyHashFn)||_l)(e)}function _l(e){return JSON.stringify(e,(t,n)=>Yb(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Sd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Sd(e[n],t[n])):!1}var GH=Object.prototype.hasOwnProperty;function bI(e,t){if(e===t)return e;const n=Q_(e)&&Q_(t);if(!n&&!(Yb(e)&&Yb(t)))return t;const i=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),l=s.length,u=n?new Array(l):{};let f=0;for(let d=0;d<l;d++){const p=n?d:s[d],g=e[p],m=t[p];if(g===m){u[p]=g,(n?d<i:GH.call(e,p))&&f++;continue}if(g===null||m===null||typeof g!="object"||typeof m!="object"){u[p]=m;continue}const v=bI(g,m);u[p]=v,v===g&&f++}return i===l&&f===i?e:u}function Jg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Q_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yb(e){if(!J_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!J_(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function J_(e){return Object.prototype.toString.call(e)==="[object Object]"}function YH(e){return new Promise(t=>{setTimeout(t,e)})}function Xb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?bI(e,t):t}function XH(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function WH(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var jE=Symbol();function SI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===jE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function EI(e,t){return typeof e=="function"?e(...t):!!e}var ul,ra,Ju,RM,KH=(RM=class extends Pc{constructor(){super();it(this,ul);it(this,ra);it(this,Ju);Xe(this,Ju,t=>{if(!Tl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ee(this,ra)||this.setEventListener(ee(this,Ju))}onUnsubscribe(){var t;this.hasListeners()||((t=ee(this,ra))==null||t.call(this),Xe(this,ra,void 0))}setEventListener(t){var n;Xe(this,Ju,t),(n=ee(this,ra))==null||n.call(this),Xe(this,ra,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ee(this,ul)!==t&&(Xe(this,ul,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ee(this,ul)=="boolean"?ee(this,ul):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ul=new WeakMap,ra=new WeakMap,Ju=new WeakMap,RM),$E=new KH,Zu,oa,ec,xM,QH=(xM=class extends Pc{constructor(){super();it(this,Zu,!0);it(this,oa);it(this,ec);Xe(this,ec,t=>{if(!Tl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ee(this,oa)||this.setEventListener(ee(this,ec))}onUnsubscribe(){var t;this.hasListeners()||((t=ee(this,oa))==null||t.call(this),Xe(this,oa,void 0))}setEventListener(t){var n;Xe(this,ec,t),(n=ee(this,oa))==null||n.call(this),Xe(this,oa,t(this.setOnline.bind(this)))}setOnline(t){ee(this,Zu)!==t&&(Xe(this,Zu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ee(this,Zu)}},Zu=new WeakMap,oa=new WeakMap,ec=new WeakMap,xM),Zg=new QH;function Wb(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function JH(e){return Math.min(1e3*2**e,3e4)}function wI(e){return(e??"online")==="online"?Zg.isOnline():!0}var Kb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function RI(e){let t=!1,n=0,r;const i=Wb(),s=()=>i.status!=="pending",l=b=>{var x;if(!s()){const C=new Kb(b);m(C),(x=e.onCancel)==null||x.call(e,C)}},u=()=>{t=!0},f=()=>{t=!1},d=()=>$E.isFocused()&&(e.networkMode==="always"||Zg.isOnline())&&e.canRun(),p=()=>wI(e.networkMode)&&e.canRun(),g=b=>{s()||(r==null||r(),i.resolve(b))},m=b=>{s()||(r==null||r(),i.reject(b))},v=()=>new Promise(b=>{var x;r=C=>{(s()||d())&&b(C)},(x=e.onPause)==null||x.call(e)}).then(()=>{var b;r=void 0,s()||(b=e.onContinue)==null||b.call(e)}),E=()=>{if(s())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(C){b=Promise.reject(C)}Promise.resolve(b).then(g).catch(C=>{var M;if(s())return;const R=e.retry??(Tl?0:3),T=e.retryDelay??JH,O=typeof T=="function"?T(n,C):T,_=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,C);if(t||!_){m(C);return}n++,(M=e.onFail)==null||M.call(e,n,C),YH(O).then(()=>d()?void 0:v()).then(()=>{t?m(C):E()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:f,canStart:p,start:()=>(p()?E():v().then(E),i)}}var ZH=e=>setTimeout(e,0);function eB(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=ZH;const s=u=>{t?e.push(u):i(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{s(()=>{u(...f)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var or=eB(),cl,CM,xI=(CM=class{constructor(){it(this,cl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gb(this.gcTime)&&Xe(this,cl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tl?1/0:5*60*1e3))}clearGcTimeout(){ee(this,cl)&&(clearTimeout(ee(this,cl)),Xe(this,cl,void 0))}},cl=new WeakMap,CM),tc,nc,ko,fl,lr,Bd,dl,Qo,cs,TM,tB=(TM=class extends xI{constructor(t){super();it(this,Qo);it(this,tc);it(this,nc);it(this,ko);it(this,fl);it(this,lr);it(this,Bd);it(this,dl);Xe(this,dl,!1),Xe(this,Bd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Xe(this,fl,t.client),Xe(this,ko,ee(this,fl).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Xe(this,tc,nB(this.options)),this.state=t.state??ee(this,tc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ee(this,lr))==null?void 0:t.promise}setOptions(t){this.options={...ee(this,Bd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ee(this,ko).remove(this)}setData(t,n){const r=Xb(this.state.data,t,this.options);return Ot(this,Qo,cs).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ot(this,Qo,cs).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=ee(this,lr))==null?void 0:r.promise;return(i=ee(this,lr))==null||i.cancel(t),n?n.then(Ir).catch(Ir):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ee(this,tc))}isActive(){return this.observers.some(t=>No(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jE||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ba(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!yI(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ee(this,lr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ee(this,lr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ee(this,ko).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ee(this,lr)&&(ee(this,dl)?ee(this,lr).cancel({revert:!0}):ee(this,lr).cancelRetry()),this.scheduleGc()),ee(this,ko).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ot(this,Qo,cs).call(this,{type:"invalidate"})}async fetch(t,n){var f,d,p,g,m,v,E,b,x,C,R,T;if(this.state.fetchStatus!=="idle"&&((f=ee(this,lr))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ee(this,lr))return ee(this,lr).continueRetry(),ee(this,lr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const O=this.observers.find(_=>_.options.queryFn);O&&this.setOptions(O.options)}const r=new AbortController,i=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(Xe(this,dl,!0),r.signal)})},s=()=>{const O=SI(this.options,n),M=(()=>{const A={client:ee(this,fl),queryKey:this.queryKey,meta:this.meta};return i(A),A})();return Xe(this,dl,!1),this.options.persister?this.options.persister(O,M,this):O(M)},u=(()=>{const O={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ee(this,fl),state:this.state,fetchFn:s};return i(O),O})();(d=this.options.behavior)==null||d.onFetch(u,this),Xe(this,nc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&Ot(this,Qo,cs).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta}),Xe(this,lr,RI({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:O=>{O instanceof Kb&&O.revert&&this.setState({...ee(this,nc),fetchStatus:"idle"}),r.abort()},onFail:(O,_)=>{Ot(this,Qo,cs).call(this,{type:"failed",failureCount:O,error:_})},onPause:()=>{Ot(this,Qo,cs).call(this,{type:"pause"})},onContinue:()=>{Ot(this,Qo,cs).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const O=await ee(this,lr).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(v=(m=ee(this,ko).config).onSuccess)==null||v.call(m,O,this),(b=(E=ee(this,ko).config).onSettled)==null||b.call(E,O,this.state.error,this),O}catch(O){if(O instanceof Kb){if(O.silent)return ee(this,lr).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw Ot(this,Qo,cs).call(this,{type:"error",error:O}),(C=(x=ee(this,ko).config).onError)==null||C.call(x,O,this),(T=(R=ee(this,ko).config).onSettled)==null||T.call(R,this.state.data,O,this),O}finally{this.scheduleGc()}}},tc=new WeakMap,nc=new WeakMap,ko=new WeakMap,fl=new WeakMap,lr=new WeakMap,Bd=new WeakMap,dl=new WeakMap,Qo=new WeakSet,cs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...CI(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Xe(this,nc,t.manual?i:void 0),i;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),or.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ee(this,ko).notify({query:this,type:"updated",action:t})})},TM);function CI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function nB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var bi,_M,rB=(_M=class extends Pc{constructor(t={}){super();it(this,bi);this.config=t,Xe(this,bi,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??VE(i,n);let l=this.get(s);return l||(l=new tB({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){ee(this,bi).has(t.queryHash)||(ee(this,bi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ee(this,bi).get(t.queryHash);n&&(t.destroy(),n===t&&ee(this,bi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){or.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ee(this,bi).get(t)}getAll(){return[...ee(this,bi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>W_(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>W_(t,r)):n}notify(t){or.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){or.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){or.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bi=new WeakMap,_M),Si,Ar,hl,Ei,ta,AM,oB=(AM=class extends xI{constructor(t){super();it(this,Ei);it(this,Si);it(this,Ar);it(this,hl);this.mutationId=t.mutationId,Xe(this,Ar,t.mutationCache),Xe(this,Si,[]),this.state=t.state||TI(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ee(this,Si).includes(t)||(ee(this,Si).push(t),this.clearGcTimeout(),ee(this,Ar).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Xe(this,Si,ee(this,Si).filter(n=>n!==t)),this.scheduleGc(),ee(this,Ar).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ee(this,Si).length||(this.state.status==="pending"?this.scheduleGc():ee(this,Ar).remove(this))}continue(){var t;return((t=ee(this,hl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,u,f,d,p,g,m,v,E,b,x,C,R,T,O,_,M,A,D;const n=()=>{Ot(this,Ei,ta).call(this,{type:"continue"})};Xe(this,hl,RI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,N)=>{Ot(this,Ei,ta).call(this,{type:"failed",failureCount:L,error:N})},onPause:()=>{Ot(this,Ei,ta).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ee(this,Ar).canRun(this)}));const r=this.state.status==="pending",i=!ee(this,hl).canStart();try{if(r)n();else{Ot(this,Ei,ta).call(this,{type:"pending",variables:t,isPaused:i}),await((l=(s=ee(this,Ar).config).onMutate)==null?void 0:l.call(s,t,this));const N=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,t));N!==this.state.context&&Ot(this,Ei,ta).call(this,{type:"pending",context:N,variables:t,isPaused:i})}const L=await ee(this,hl).start();return await((p=(d=ee(this,Ar).config).onSuccess)==null?void 0:p.call(d,L,t,this.state.context,this)),await((m=(g=this.options).onSuccess)==null?void 0:m.call(g,L,t,this.state.context)),await((E=(v=ee(this,Ar).config).onSettled)==null?void 0:E.call(v,L,null,this.state.variables,this.state.context,this)),await((x=(b=this.options).onSettled)==null?void 0:x.call(b,L,null,t,this.state.context)),Ot(this,Ei,ta).call(this,{type:"success",data:L}),L}catch(L){try{throw await((R=(C=ee(this,Ar).config).onError)==null?void 0:R.call(C,L,t,this.state.context,this)),await((O=(T=this.options).onError)==null?void 0:O.call(T,L,t,this.state.context)),await((M=(_=ee(this,Ar).config).onSettled)==null?void 0:M.call(_,void 0,L,this.state.variables,this.state.context,this)),await((D=(A=this.options).onSettled)==null?void 0:D.call(A,void 0,L,t,this.state.context)),L}finally{Ot(this,Ei,ta).call(this,{type:"error",error:L})}}finally{ee(this,Ar).runNext(this)}}},Si=new WeakMap,Ar=new WeakMap,hl=new WeakMap,Ei=new WeakSet,ta=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),or.batch(()=>{ee(this,Si).forEach(r=>{r.onMutationUpdate(t)}),ee(this,Ar).notify({mutation:this,type:"updated",action:t})})},AM);function TI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hs,Jo,Ud,OM,iB=(OM=class extends Pc{constructor(t={}){super();it(this,hs);it(this,Jo);it(this,Ud);this.config=t,Xe(this,hs,new Set),Xe(this,Jo,new Map),Xe(this,Ud,0)}build(t,n,r){const i=new oB({mutationCache:this,mutationId:++kp(this,Ud)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ee(this,hs).add(t);const n=qp(t);if(typeof n=="string"){const r=ee(this,Jo).get(n);r?r.push(t):ee(this,Jo).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ee(this,hs).delete(t)){const n=qp(t);if(typeof n=="string"){const r=ee(this,Jo).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&ee(this,Jo).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=qp(t);if(typeof n=="string"){const r=ee(this,Jo).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=qp(t);if(typeof n=="string"){const i=(r=ee(this,Jo).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){or.batch(()=>{ee(this,hs).forEach(t=>{this.notify({type:"removed",mutation:t})}),ee(this,hs).clear(),ee(this,Jo).clear()})}getAll(){return Array.from(ee(this,hs))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>K_(n,r))}findAll(t={}){return this.getAll().filter(n=>K_(t,n))}notify(t){or.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return or.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ir))))}},hs=new WeakMap,Jo=new WeakMap,Ud=new WeakMap,OM);function qp(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Z_(e){return{onFetch:(t,n)=>{var p,g,m,v,E;const r=t.options,i=(m=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:m.direction,s=((v=t.state.data)==null?void 0:v.pages)||[],l=((E=t.state.data)==null?void 0:E.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const d=async()=>{let b=!1;const x=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},C=SI(t.options,t.fetchOptions),R=async(T,O,_)=>{if(b)return Promise.reject();if(O==null&&T.pages.length)return Promise.resolve(T);const A=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:O,direction:_?"backward":"forward",meta:t.options.meta};return x(H),H})(),D=await C(A),{maxPages:L}=t.options,N=_?WH:XH;return{pages:N(T.pages,D,L),pageParams:N(T.pageParams,O,L)}};if(i&&s.length){const T=i==="backward",O=T?sB:e2,_={pages:s,pageParams:l},M=O(r,_);u=await R(_,M,T)}else{const T=e??s.length;do{const O=f===0?l[0]??r.initialPageParam:e2(r,u);if(f>0&&O==null)break;u=await R(u,O),f++}while(f<T)}return u};t.options.persister?t.fetchFn=()=>{var b,x;return(x=(b=t.options).persister)==null?void 0:x.call(b,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function e2(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function sB(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var kn,ia,sa,rc,oc,aa,ic,sc,MM,xte=(MM=class{constructor(e={}){it(this,kn);it(this,ia);it(this,sa);it(this,rc);it(this,oc);it(this,aa);it(this,ic);it(this,sc);Xe(this,kn,e.queryCache||new rB),Xe(this,ia,e.mutationCache||new iB),Xe(this,sa,e.defaultOptions||{}),Xe(this,rc,new Map),Xe(this,oc,new Map),Xe(this,aa,0)}mount(){kp(this,aa)._++,ee(this,aa)===1&&(Xe(this,ic,$E.subscribe(async e=>{e&&(await this.resumePausedMutations(),ee(this,kn).onFocus())})),Xe(this,sc,Zg.subscribe(async e=>{e&&(await this.resumePausedMutations(),ee(this,kn).onOnline())})))}unmount(){var e,t;kp(this,aa)._--,ee(this,aa)===0&&((e=ee(this,ic))==null||e.call(this),Xe(this,ic,void 0),(t=ee(this,sc))==null||t.call(this),Xe(this,sc,void 0))}isFetching(e){return ee(this,kn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ee(this,ia).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ee(this,kn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=ee(this,kn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ba(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return ee(this,kn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=ee(this,kn).get(r.queryHash),s=i==null?void 0:i.state.data,l=qH(t,s);if(l!==void 0)return ee(this,kn).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return or.batch(()=>ee(this,kn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ee(this,kn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ee(this,kn);or.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ee(this,kn);return or.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=or.batch(()=>ee(this,kn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ir).catch(Ir)}invalidateQueries(e,t={}){return or.batch(()=>(ee(this,kn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=or.batch(()=>ee(this,kn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ir)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ir)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ee(this,kn).build(this,t);return n.isStaleByTime(ba(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ir).catch(Ir)}fetchInfiniteQuery(e){return e.behavior=Z_(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ir).catch(Ir)}ensureInfiniteQueryData(e){return e.behavior=Z_(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zg.isOnline()?ee(this,ia).resumePausedMutations():Promise.resolve()}getQueryCache(){return ee(this,kn)}getMutationCache(){return ee(this,ia)}getDefaultOptions(){return ee(this,sa)}setDefaultOptions(e){Xe(this,sa,e)}setQueryDefaults(e,t){ee(this,rc).set(_l(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ee(this,rc).values()],n={};return t.forEach(r=>{Sd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){ee(this,oc).set(_l(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ee(this,oc).values()],n={};return t.forEach(r=>{Sd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ee(this,sa).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VE(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===jE&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ee(this,sa).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ee(this,kn).clear(),ee(this,ia).clear()}},kn=new WeakMap,ia=new WeakMap,sa=new WeakMap,rc=new WeakMap,oc=new WeakMap,aa=new WeakMap,ic=new WeakMap,sc=new WeakMap,MM),Yr,zt,Vd,Or,pl,ac,ps,la,jd,lc,uc,gl,ml,ua,cc,en,nd,Qb,Jb,Zb,eS,tS,nS,rS,_I,IM,aB=(IM=class extends Pc{constructor(t,n){super();it(this,en);it(this,Yr);it(this,zt);it(this,Vd);it(this,Or);it(this,pl);it(this,ac);it(this,ps);it(this,la);it(this,jd);it(this,lc);it(this,uc);it(this,gl);it(this,ml);it(this,ua);it(this,cc,new Set);this.options=n,Xe(this,Yr,t),Xe(this,la,null),Xe(this,ps,Wb()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ee(this,zt).addObserver(this),t2(ee(this,zt),this.options)?Ot(this,en,nd).call(this):this.updateResult(),Ot(this,en,eS).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return oS(ee(this,zt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return oS(ee(this,zt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ot(this,en,tS).call(this),Ot(this,en,nS).call(this),ee(this,zt).removeObserver(this)}setOptions(t){const n=this.options,r=ee(this,zt);if(this.options=ee(this,Yr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof No(this.options.enabled,ee(this,zt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ot(this,en,rS).call(this),ee(this,zt).setOptions(this.options),n._defaulted&&!Jg(this.options,n)&&ee(this,Yr).getQueryCache().notify({type:"observerOptionsUpdated",query:ee(this,zt),observer:this});const i=this.hasListeners();i&&n2(ee(this,zt),r,this.options,n)&&Ot(this,en,nd).call(this),this.updateResult(),i&&(ee(this,zt)!==r||No(this.options.enabled,ee(this,zt))!==No(n.enabled,ee(this,zt))||ba(this.options.staleTime,ee(this,zt))!==ba(n.staleTime,ee(this,zt)))&&Ot(this,en,Qb).call(this);const s=Ot(this,en,Jb).call(this);i&&(ee(this,zt)!==r||No(this.options.enabled,ee(this,zt))!==No(n.enabled,ee(this,zt))||s!==ee(this,ua))&&Ot(this,en,Zb).call(this,s)}getOptimisticResult(t){const n=ee(this,Yr).getQueryCache().build(ee(this,Yr),t),r=this.createResult(n,t);return uB(this,r)&&(Xe(this,Or,r),Xe(this,ac,this.options),Xe(this,pl,ee(this,zt).state)),r}getCurrentResult(){return ee(this,Or)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&ee(this,ps).status==="pending"&&ee(this,ps).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){ee(this,cc).add(t)}getCurrentQuery(){return ee(this,zt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ee(this,Yr).defaultQueryOptions(t),r=ee(this,Yr).getQueryCache().build(ee(this,Yr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ot(this,en,nd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ee(this,Or)))}createResult(t,n){var L;const r=ee(this,zt),i=this.options,s=ee(this,Or),l=ee(this,pl),u=ee(this,ac),d=t!==r?t.state:ee(this,Vd),{state:p}=t;let g={...p},m=!1,v;if(n._optimisticResults){const N=this.hasListeners(),H=!N&&t2(t,n),j=N&&n2(t,r,n,i);(H||j)&&(g={...g,...CI(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:b,status:x}=g;v=g.data;let C=!1;if(n.placeholderData!==void 0&&v===void 0&&x==="pending"){let N;s!=null&&s.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(N=s.data,C=!0):N=typeof n.placeholderData=="function"?n.placeholderData((L=ee(this,uc))==null?void 0:L.state.data,ee(this,uc)):n.placeholderData,N!==void 0&&(x="success",v=Xb(s==null?void 0:s.data,N,n),m=!0)}if(n.select&&v!==void 0&&!C)if(s&&v===(l==null?void 0:l.data)&&n.select===ee(this,jd))v=ee(this,lc);else try{Xe(this,jd,n.select),v=n.select(v),v=Xb(s==null?void 0:s.data,v,n),Xe(this,lc,v),Xe(this,la,null)}catch(N){Xe(this,la,N)}ee(this,la)&&(E=ee(this,la),v=ee(this,lc),b=Date.now(),x="error");const R=g.fetchStatus==="fetching",T=x==="pending",O=x==="error",_=T&&R,M=v!==void 0,D={status:x,fetchStatus:g.fetchStatus,isPending:T,isSuccess:x==="success",isError:O,isInitialLoading:_,isLoading:_,data:v,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:O&&!M,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:O&&M,isStale:qE(t,n),refetch:this.refetch,promise:ee(this,ps),isEnabled:No(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=F=>{D.status==="error"?F.reject(D.error):D.data!==void 0&&F.resolve(D.data)},H=()=>{const F=Xe(this,ps,D.promise=Wb());N(F)},j=ee(this,ps);switch(j.status){case"pending":t.queryHash===r.queryHash&&N(j);break;case"fulfilled":(D.status==="error"||D.data!==j.value)&&H();break;case"rejected":(D.status!=="error"||D.error!==j.reason)&&H();break}}return D}updateResult(){const t=ee(this,Or),n=this.createResult(ee(this,zt),this.options);if(Xe(this,pl,ee(this,zt).state),Xe(this,ac,this.options),ee(this,pl).data!==void 0&&Xe(this,uc,ee(this,zt)),Jg(n,t))return;Xe(this,Or,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!ee(this,cc).size)return!0;const l=new Set(s??ee(this,cc));return this.options.throwOnError&&l.add("error"),Object.keys(ee(this,Or)).some(u=>{const f=u;return ee(this,Or)[f]!==t[f]&&l.has(f)})};Ot(this,en,_I).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ot(this,en,eS).call(this)}},Yr=new WeakMap,zt=new WeakMap,Vd=new WeakMap,Or=new WeakMap,pl=new WeakMap,ac=new WeakMap,ps=new WeakMap,la=new WeakMap,jd=new WeakMap,lc=new WeakMap,uc=new WeakMap,gl=new WeakMap,ml=new WeakMap,ua=new WeakMap,cc=new WeakMap,en=new WeakSet,nd=function(t){Ot(this,en,rS).call(this);let n=ee(this,zt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ir)),n},Qb=function(){Ot(this,en,tS).call(this);const t=ba(this.options.staleTime,ee(this,zt));if(Tl||ee(this,Or).isStale||!Gb(t))return;const r=yI(ee(this,Or).dataUpdatedAt,t)+1;Xe(this,gl,setTimeout(()=>{ee(this,Or).isStale||this.updateResult()},r))},Jb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ee(this,zt)):this.options.refetchInterval)??!1},Zb=function(t){Ot(this,en,nS).call(this),Xe(this,ua,t),!(Tl||No(this.options.enabled,ee(this,zt))===!1||!Gb(ee(this,ua))||ee(this,ua)===0)&&Xe(this,ml,setInterval(()=>{(this.options.refetchIntervalInBackground||$E.isFocused())&&Ot(this,en,nd).call(this)},ee(this,ua)))},eS=function(){Ot(this,en,Qb).call(this),Ot(this,en,Zb).call(this,Ot(this,en,Jb).call(this))},tS=function(){ee(this,gl)&&(clearTimeout(ee(this,gl)),Xe(this,gl,void 0))},nS=function(){ee(this,ml)&&(clearInterval(ee(this,ml)),Xe(this,ml,void 0))},rS=function(){const t=ee(this,Yr).getQueryCache().build(ee(this,Yr),this.options);if(t===ee(this,zt))return;const n=ee(this,zt);Xe(this,zt,t),Xe(this,Vd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},_I=function(t){or.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ee(this,Or))}),ee(this,Yr).getQueryCache().notify({query:ee(this,zt),type:"observerResultsUpdated"})})},IM);function lB(e,t){return No(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function t2(e,t){return lB(e,t)||e.state.data!==void 0&&oS(e,t,t.refetchOnMount)}function oS(e,t,n){if(No(t.enabled,e)!==!1&&ba(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qE(e,t)}return!1}function n2(e,t,n,r){return(e!==t||No(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&qE(e,n)}function qE(e,t){return No(t.enabled,e)!==!1&&e.isStaleByTime(ba(t.staleTime,e))}function uB(e,t){return!Jg(e.getCurrentResult(),t)}var ca,fa,Xr,gs,Es,Cg,iS,DM,cB=(DM=class extends Pc{constructor(n,r){super();it(this,Es);it(this,ca);it(this,fa);it(this,Xr);it(this,gs);Xe(this,ca,n),this.setOptions(r),this.bindMethods(),Ot(this,Es,Cg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=ee(this,ca).defaultMutationOptions(n),Jg(this.options,r)||ee(this,ca).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ee(this,Xr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&_l(r.mutationKey)!==_l(this.options.mutationKey)?this.reset():((i=ee(this,Xr))==null?void 0:i.state.status)==="pending"&&ee(this,Xr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ee(this,Xr))==null||n.removeObserver(this)}onMutationUpdate(n){Ot(this,Es,Cg).call(this),Ot(this,Es,iS).call(this,n)}getCurrentResult(){return ee(this,fa)}reset(){var n;(n=ee(this,Xr))==null||n.removeObserver(this),Xe(this,Xr,void 0),Ot(this,Es,Cg).call(this),Ot(this,Es,iS).call(this)}mutate(n,r){var i;return Xe(this,gs,r),(i=ee(this,Xr))==null||i.removeObserver(this),Xe(this,Xr,ee(this,ca).getMutationCache().build(ee(this,ca),this.options)),ee(this,Xr).addObserver(this),ee(this,Xr).execute(n)}},ca=new WeakMap,fa=new WeakMap,Xr=new WeakMap,gs=new WeakMap,Es=new WeakSet,Cg=function(){var r;const n=((r=ee(this,Xr))==null?void 0:r.state)??TI();Xe(this,fa,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},iS=function(n){or.batch(()=>{var r,i,s,l,u,f,d,p;if(ee(this,gs)&&this.hasListeners()){const g=ee(this,fa).variables,m=ee(this,fa).context;(n==null?void 0:n.type)==="success"?((i=(r=ee(this,gs)).onSuccess)==null||i.call(r,n.data,g,m),(l=(s=ee(this,gs)).onSettled)==null||l.call(s,n.data,null,g,m)):(n==null?void 0:n.type)==="error"&&((f=(u=ee(this,gs)).onError)==null||f.call(u,n.error,g,m),(p=(d=ee(this,gs)).onSettled)==null||p.call(d,void 0,n.error,g,m))}this.listeners.forEach(g=>{g(ee(this,fa))})})},DM),AI=S.createContext(void 0),OI=e=>{const t=S.useContext(AI);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tte=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),be.jsx(AI.Provider,{value:e,children:t})),MI=S.createContext(!1),fB=()=>S.useContext(MI);MI.Provider;function dB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hB=S.createContext(dB()),pB=()=>S.useContext(hB),gB=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},mB=e=>{S.useEffect(()=>{e.clearReset()},[e])},vB=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||EI(n,[e.error,r])),yB=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},bB=(e,t)=>e.isLoading&&e.isFetching&&!t,SB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,r2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function EB(e,t,n){var g,m,v,E,b;const r=fB(),i=pB(),s=OI(),l=s.defaultQueryOptions(e);(m=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||m.call(g,l),l._optimisticResults=r?"isRestoring":"optimistic",yB(l),gB(l,i),mB(i);const u=!s.getQueryCache().get(l.queryHash),[f]=S.useState(()=>new t(s,l)),d=f.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(x=>{const C=p?f.subscribe(or.batchCalls(x)):Ir;return f.updateResult(),C},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),S.useEffect(()=>{f.setOptions(l)},[l,f]),SB(l,d))throw r2(l,f,i);if(vB({result:d,errorResetBoundary:i,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if((E=(v=s.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||E.call(v,l,d),l.experimental_prefetchInRender&&!Tl&&bB(d,r)){const x=u?r2(l,f,i):(b=s.getQueryCache().get(l.queryHash))==null?void 0:b.promise;x==null||x.catch(Ir).finally(()=>{f.updateResult()})}return l.notifyOnChangeProps?d:f.trackResult(d)}function _te(e,t){return EB(e,aB)}function Ate(e,t){const n=OI(),[r]=S.useState(()=>new cB(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const i=S.useSyncExternalStore(S.useCallback(l=>r.subscribe(or.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((l,u)=>{r.mutate(l,u).catch(Ir)},[r]);if(i.error&&EI(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const wB="modulepreload",RB=function(e,t){return new URL(e,t).href},o2={},Ote=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const u=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),d=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));i=l(n.map(p=>{if(p=RB(p,r),p in o2)return;o2[p]=!0;const g=p.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(!!r)for(let b=u.length-1;b>=0;b--){const x=u[b];if(x.href===p&&(!g||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${p}"]${m}`))return;const E=document.createElement("link");if(E.rel=g?"stylesheet":wB,g||(E.as="script"),E.crossOrigin="",E.href=p,d&&E.setAttribute("nonce",d),document.head.appendChild(E),g)return new Promise((b,x)=>{E.addEventListener("load",b),E.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return i.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var Mte=function(){return null};const xB=!1,hn=globalThis,bl="10.9.0";function Bl(){return Km(hn),hn}function Km(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||bl,t[bl]=t[bl]||{}}function Qm(e,t,n=hn){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[bl]=r[bl]||{};return i[e]||(i[e]=t())}const CB=["debug","info","warn","error","log","assert","trace"],em={};function Jm(e){if(!("console"in hn))return e();const t=hn.console,n={},r=Object.keys(em);r.forEach(i=>{const s=em[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function TB(){YE().enabled=!0}function _B(){YE().enabled=!1}function AB(){return YE().enabled}function OB(...e){GE("log",...e)}function MB(...e){GE("warn",...e)}function IB(...e){GE("error",...e)}function GE(e,...t){}function YE(){return{enabled:!1}}const XE={enable:TB,disable:_B,isEnabled:AB,log:OB,warn:MB,error:IB},II=50,Al="?",i2=/\(error: (.*)\)/,s2=/captureMessage|captureException/;function DI(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],l=n.split(`
12
- `);for(let u=r;u<l.length;u++){let f=l[u];f.length>1024&&(f=f.slice(0,1024));const d=i2.test(f)?f.replace(i2,"$1"):f;if(!d.match(/\S*Error: /)){for(const p of t){const g=p(d);if(g){s.push(g);break}}if(s.length>=II+i)break}}return LB(s.slice(i))}}function DB(e){return Array.isArray(e)?DI(...e):e}function LB(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Gp(t).function||"")&&t.pop(),t.reverse(),s2.test(Gp(t).function||"")&&(t.pop(),s2.test(Gp(t).function||"")&&t.pop()),t.slice(0,II).map(n=>({...n,filename:n.filename||Gp(t).filename,function:n.function||Al}))}function Gp(e){return e[e.length-1]||{}}const y1="<anonymous>";function Ol(e){try{return!e||typeof e!="function"?y1:e.name||y1}catch{return y1}}function a2(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Tg={},l2={};function La(e,t){Tg[e]=Tg[e]||[],Tg[e].push(t)}function Pa(e,t){if(!l2[e]){l2[e]=!0;try{t()}catch{}}}function jo(e,t){const n=e&&Tg[e];if(n)for(const r of n)try{r(t)}catch{}}let b1=null;function LI(e){const t="error";La(t,e),Pa(t,PB)}function PB(){b1=hn.onerror,hn.onerror=function(e,t,n,r,i){return jo("error",{column:r,error:i,line:n,msg:e,url:t}),b1?b1.apply(this,arguments):!1},hn.onerror.__SENTRY_INSTRUMENTED__=!0}let S1=null;function PI(e){const t="unhandledrejection";La(t,e),Pa(t,kB)}function kB(){S1=hn.onunhandledrejection,hn.onunhandledrejection=function(e){return jo("unhandledrejection",e),S1?S1.apply(this,arguments):!0},hn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const kI=Object.prototype.toString;function Zm(e){switch(kI.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Cs(e,Error)}}function kc(e,t){return kI.call(e)===`[object ${t}]`}function NI(e){return kc(e,"ErrorEvent")}function u2(e){return kc(e,"DOMError")}function NB(e){return kc(e,"DOMException")}function Ss(e){return kc(e,"String")}function WE(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ed(e){return e===null||WE(e)||typeof e!="object"&&typeof e!="function"}function wd(e){return kc(e,"Object")}function e0(e){return typeof Event<"u"&&Cs(e,Event)}function FB(e){return typeof Element<"u"&&Cs(e,Element)}function zB(e){return kc(e,"RegExp")}function Qd(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function HB(e){return wd(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Cs(e,t){try{return e instanceof t}catch{return!1}}function FI(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function zI(e){return typeof Request<"u"&&Cs(e,Request)}const KE=hn,BB=80;function Li(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,l=0;const u=" > ",f=u.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||BB;for(;n&&s++<r&&(d=UB(n,p),!(d==="html"||s>1&&l+i.length*f+d.length>=g));)i.push(d),l+=d.length,n=n.parentNode;return i.reverse().join(u)}catch{return"<unknown>"}}function UB(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(KE.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t!=null&&t.length?t.filter(l=>n.getAttribute(l)).map(l=>[l,n.getAttribute(l)]):null;if(i!=null&&i.length)i.forEach(l=>{r.push(`[${l[0]}="${l[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const l=n.className;if(l&&Ss(l)){const u=l.split(/\s+/);for(const f of u)r.push(`.${f}`)}}const s=["aria-label","type","name","title","alt"];for(const l of s){const u=n.getAttribute(l);u&&r.push(`[${l}="${u}"]`)}return r.join("")}function Jd(){try{return KE.document.location.href}catch{return""}}function HI(e){if(!KE.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function tm(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function c2(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{FI(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function _g(e,t,n=!1){return Ss(e)?zB(t)?t.test(e):Ss(t)?n?e===t:e.includes(t):!1:!1}function Sa(e,t=[],n=!1){return t.some(r=>_g(e,r,n))}function vo(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&BI(i,r);try{e[t]=i}catch{}}function Pr(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function BI(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Pr(e,"__sentry_original__",t)}catch{}}function QE(e){return e.__sentry_original__}function UI(e){if(Zm(e))return{message:e.message,name:e.name,stack:e.stack,...d2(e)};if(e0(e)){const t={type:e.type,target:f2(e.target),currentTarget:f2(e.currentTarget),...d2(e)};return typeof CustomEvent<"u"&&Cs(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function f2(e){try{return FB(e)?Li(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function d2(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function VB(e,t=40){const n=Object.keys(UI(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return tm(r,t);for(let i=n.length;i>0;i--){const s=n.slice(0,i).join(", ");if(!(s.length>t))return i===n.length?s:tm(s,t)}return""}function jB(){const e=hn;return e.crypto||e.msCrypto}function $o(e=jB()){let t=()=>Math.random()*16;try{if(e!=null&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e!=null&&e.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function VI(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function $B(e){const{message:t,event_id:n}=e;if(t)return t;const r=VI(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function sS(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function gc(e,t){const n=VI(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i==null?void 0:i.data,...t.data};n.mechanism.data=s}}function h2(e){if(qB(e))return!0;try{Pr(e,"__sentry_captured__",!0)}catch{}return!1}function qB(e){try{return e.__sentry_captured__}catch{}}const jI=1e3;function Ul(){return Date.now()/jI}function GB(){const{performance:e}=hn;if(!(e!=null&&e.now)||!e.timeOrigin)return Ul;const t=e.timeOrigin;return()=>(t+e.now())/jI}let p2;function br(){return(p2??(p2=GB()))()}let E1;function YB(){var p;const{performance:e}=hn;if(!(e!=null&&e.now))return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,l=(p=e.timing)==null?void 0:p.navigationStart,f=typeof l=="number"?Math.abs(l+n-r):t,d=f<t;return s||d?i<=f?[e.timeOrigin,"timeOrigin"]:[l,"navigationStart"]:[r,"dateNow"]}function Ro(){return E1||(E1=YB()),E1[0]}function XB(e){const t=br(),n={sid:$o(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>KB(n)};return e&&mc(n,e),n}function mc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||br(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:$o()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function WB(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),mc(e,n)}function KB(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Zd(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=Zd(r[i],t[i],n-1));return r}function Ra(){return $o()}function eh(){return $o().substring(16)}const aS="_sentrySpan";function vc(e,t){t?Pr(e,aS,t):delete e[aS]}function nm(e){return e[aS]}const QB=100;class Pi{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ra(),sampleRand:Math.random()}}clone(){const t=new Pi;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,vc(t,nm(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&mc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Pi?n.getScopeData():wd(n)?t:void 0,{tags:i,extra:s,user:l,contexts:u,level:f,fingerprint:d=[],propagationContext:p}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,vc(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ra(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var s;const r=typeof n=="number"?n:QB;if(r<=0)return this;const i={timestamp:Ul(),...t,message:t.message?tm(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(s=this._client)==null||s.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:nm(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Zd(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||$o();if(!this._client)return r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=(r==null?void 0:r.event_id)||$o();if(!this._client)return i;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=(n==null?void 0:n.event_id)||$o();return this._client&&this._client.captureEvent(t,{...n,event_id:r},this),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function JB(){return Qm("defaultCurrentScope",()=>new Pi)}function ZB(){return Qm("defaultIsolationScope",()=>new Pi)}class e7{constructor(t,n){let r;t?r=t:r=new Pi;let i;n?i=n:i=new Pi,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return Qd(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function yc(){const e=Bl(),t=Km(e);return t.stack=t.stack||new e7(JB(),ZB())}function t7(e){return yc().withScope(e)}function n7(e,t){const n=yc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function g2(e){return yc().withScope(()=>e(yc().getIsolationScope()))}function r7(){return{withIsolationScope:g2,withScope:t7,withSetScope:n7,withSetIsolationScope:(e,t)=>g2(t),getCurrentScope:()=>yc().getScope(),getIsolationScope:()=>yc().getIsolationScope()}}function Nc(e){const t=Km(e);return t.acs?t.acs:r7()}function sn(){const e=Bl();return Nc(e).getCurrentScope()}function Ms(){const e=Bl();return Nc(e).getIsolationScope()}function o7(){return Qm("globalScope",()=>new Pi)}function Fc(...e){const t=Bl(),n=Nc(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Kt(){return sn().getClient()}function i7(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,s={trace_id:n,span_id:i||eh()};return r&&(s.parent_span_id=r),s}const Wr="sentry.source",JE="sentry.sample_rate",$I="sentry.previous_trace_sample_rate",ii="sentry.op",jn="sentry.origin",rm="sentry.idle_span_finish_reason",th="sentry.measurement_unit",nh="sentry.measurement_value",m2="sentry.custom_span_name",ZE="sentry.profile_id",zc="sentry.exclusive_time",s7="sentry.link.type",a7=0,qI=1,tr=2;function l7(e){if(e<400&&e>=100)return{code:qI};if(e>=400&&e<500)switch(e){case 401:return{code:tr,message:"unauthenticated"};case 403:return{code:tr,message:"permission_denied"};case 404:return{code:tr,message:"not_found"};case 409:return{code:tr,message:"already_exists"};case 413:return{code:tr,message:"failed_precondition"};case 429:return{code:tr,message:"resource_exhausted"};case 499:return{code:tr,message:"cancelled"};default:return{code:tr,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:tr,message:"unimplemented"};case 503:return{code:tr,message:"unavailable"};case 504:return{code:tr,message:"deadline_exceeded"};default:return{code:tr,message:"internal_error"}}return{code:tr,message:"unknown_error"}}function GI(e,t){e.setAttribute("http.response.status_code",t);const n=l7(t);n.message!=="unknown_error"&&e.setStatus(n)}const YI="_sentryScope",XI="_sentryIsolationScope";function u7(e,t,n){e&&(Pr(e,XI,n),Pr(e,YI,t))}function om(e){return{scope:e[YI],isolationScope:e[XI]}}const ew="sentry-",c7=/^sentry-/,f7=8192;function WI(e){const t=h7(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.match(c7)){const l=i.slice(ew.length);r[l]=s}return r},{});if(Object.keys(n).length>0)return n}function d7(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${ew}${r}`]=i),n),{});return p7(t)}function h7(e){if(!(!e||!Ss(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=v2(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):v2(e)}function v2(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function p7(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,l=i===0?s:`${t},${s}`;return l.length>f7?t:l},"")}const g7=/^o(\d+)\./,m7=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Hc(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:l,protocol:u,publicKey:f}=e;return`${u}://${f}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${l}`}function v7(e){const t=m7.exec(e);if(!t){Jm(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",l="",u=""]=t.slice(1);let f="",d=u;const p=d.split("/");if(p.length>1&&(f=p.slice(0,-1).join("/"),d=p.pop()),d){const g=d.match(/^\d+/);g&&(d=g[0])}return KI({host:s,pass:i,path:f,projectId:d,port:l,protocol:n,publicKey:r})}function KI(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function y7(e){return!0}function b7(e){const t=e.match(g7);return t==null?void 0:t[1]}function S7(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=b7(n)),r}function QI(e){const t=typeof e=="string"?v7(e):KI(e);if(!(!t||!y7()))return t}function Rd(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const JI=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function E7(e){if(!e)return;const t=e.match(JI);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function w7(e,t){const n=E7(e),r=WI(t);if(!(n!=null&&n.traceId))return{traceId:Ra(),sampleRand:Math.random()};const i=R7(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:l,parentSampled:u}=n;return{traceId:s,parentSpanId:l,sampled:u,dsc:r||{},sampleRand:i}}function ZI(e=Ra(),t=eh(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function R7(e,t){const n=Rd(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=Rd(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const e6=0,tw=1;let y2=!1;function x7(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:l,origin:u,links:f}=on(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:l,origin:u,links:f}}function C7(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:on(e).parent_span_id,s=om(e).scope,l=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||eh():t;return{parent_span_id:i,span_id:l,trace_id:n}}function T7(e){const{traceId:t,spanId:n}=e.spanContext(),r=Bc(e);return ZI(t,n,r)}function t6(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===tw,attributes:s,...i}))}function Sl(e){return typeof e=="number"?b2(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?b2(e.getTime()):br()}function b2(e){return e>9999999999?e/1e3:e}function on(e){var r;if(A7(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(_7(e)){const{attributes:i,startTime:s,name:l,endTime:u,status:f,links:d}=e,p="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:i,description:l,parent_span_id:p,start_timestamp:Sl(s),timestamp:Sl(u)||void 0,status:n6(f),op:i[ii],origin:i[jn],links:t6(d)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function _7(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function A7(e){return typeof e.getSpanJSON=="function"}function Bc(e){const{traceFlags:t}=e.spanContext();return t===tw}function n6(e){if(!(!e||e.code===a7))return e.code===qI?"ok":e.message||"unknown_error"}const El="_sentryChildSpans",lS="_sentryRootSpan";function r6(e,t){const n=e[lS]||e;Pr(t,lS,n),e[El]?e[El].add(t):Pr(e,El,new Set([t]))}function O7(e,t){e[El]&&e[El].delete(t)}function Ag(e){const t=new Set;function n(r){if(!t.has(r)&&Bc(r)){t.add(r);const i=r[El]?Array.from(r[El]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}function Jr(e){return e[lS]||e}function kr(){const e=Bl(),t=Nc(e);return t.getActiveSpan?t.getActiveSpan():nm(sn())}function uS(){y2||(Jm(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),y2=!0)}let S2=!1;function M7(){if(S2)return;function e(){const t=kr(),n=t&&Jr(t);n&&n.setStatus({code:tr,message:"internal_error"})}e.tag="sentry_tracingErrorCallback",S2=!0,LI(e),PI(e)}function xa(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=Kt())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const nw="production",o6="_frozenDsc";function Og(e,t){Pr(e,o6,t)}function i6(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||nw,release:n.release,public_key:r,trace_id:e,org_id:S7(t)};return t.emit("createDsc",i),i}function s6(e,t){const n=t.getPropagationContext();return n.dsc||i6(n.traceId,e)}function Ca(e){var E;const t=Kt();if(!t)return{};const n=Jr(e),r=on(n),i=r.data,s=n.spanContext().traceState,l=(s==null?void 0:s.get("sentry.sample_rate"))??i[JE]??i[$I];function u(b){return(typeof l=="number"||typeof l=="string")&&(b.sample_rate=`${l}`),b}const f=n[o6];if(f)return u(f);const d=s==null?void 0:s.get("sentry.dsc"),p=d&&WI(d);if(p)return u(p);const g=i6(e.spanContext().traceId,t),m=i[Wr],v=r.description;return m!=="url"&&v&&(g.transaction=v),xa()&&(g.sampled=String(Bc(n)),g.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((E=om(n).scope)==null?void 0:E.getPropagationContext().sampleRand.toString())),u(g),t.emit("createDsc",g,n),g}class Ta{constructor(t={}){this._traceId=t.traceId||Ra(),this._spanId=t.spanId||eh()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:e6}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function fs(e,t=100,n=1/0){try{return cS("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function a6(e,t=3,n=100*1024){const r=fs(e,t);return P7(r)>n?a6(e,t-1,n):r}function cS(e,t,n=1/0,r=1/0,i=k7()){const[s,l]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const u=I7(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return u.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const v=d.toJSON();return cS("",v,f-1,r,i)}catch{}const p=Array.isArray(t)?[]:{};let g=0;const m=UI(t);for(const v in m){if(!Object.prototype.hasOwnProperty.call(m,v))continue;if(g>=r){p[v]="[MaxProperties ~]";break}const E=m[v];p[v]=cS(v,E,f-1,r,i),g++}return l(t),p}function I7(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(FI(t))return"[VueViewModel]";if(HB(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Ol(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=D7(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function D7(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function L7(e){return~-encodeURI(e).split(/%..|./).length}function P7(e){return L7(JSON.stringify(e))}function k7(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Uc(e,t=[]){return[e,t]}function N7(e,t){const[n,r]=e;return[n,[...r,t]]}function E2(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function fS(e){const t=Km(hn);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function F7(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[fS(r),s]:r.push(typeof s=="string"?fS(s):s)}for(const s of n){const[l,u]=s;if(i(`
11
+ Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let m=As(),v;if(t){let T=typeof t=="string"?xc(t):t;In(p==="/"||((R=T.pathname)==null?void 0:R.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${T.pathname}" was given in the \`location\` prop.`),v=T}else v=m;let E=v.pathname||"/",b=E;if(p!=="/"){let T=p.replace(/^\//,"").split("/");b="/"+E.replace(/^\//,"").split("/").slice(T.length).join("/")}let x=NM(e,{pathname:b});bo(g||x!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),bo(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=M8(x&&x.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:bs([p,s.encodeLocation?s.encodeLocation(T.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?p:bs([p,s.encodeLocation?s.encodeLocation(T.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),l,n,r,i);return t&&C?S.createElement(Tc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},C):C}function T8(){let e=k8(),t=h8(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,l)}var _8=S.createElement(T8,null),XM=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=w8(e.digest);n&&(e=n)}let t=e!==void 0?S.createElement(ui.Provider,{value:this.props.routeContext},S.createElement(cE.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(A8,{error:e},t):t}};XM.contextType=m8;var r1=new WeakMap;function A8({children:e,error:t}){let{basename:n}=S.useContext(wo);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=E8(t.digest);if(r){let i=r1.get(t);if(i)throw i;let s=UM(r.location,n);if(BM&&!r1.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw r1.set(t,l),l}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function O8({routeContext:e,match:t,children:n}){let r=S.useContext(Cc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ui.Provider,{value:e},n)}function M8(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=n==null?void 0:n.errors;if(l!=null){let p=s.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);In(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let u=!1,f=-1;if(n)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=p),g.route.id){let{loaderData:m,errors:v}=n,E=g.route.loader&&!m.hasOwnProperty(g.route.id)&&(!v||v[g.route.id]===void 0);if(g.route.lazy||E){u=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}let d=n&&r?(p,g)=>{var m,v;r(p,{location:n.location,params:((v=(m=n.matches)==null?void 0:m[0])==null?void 0:v.params)??{},unstable_pattern:p8(n.matches),errorInfo:g})}:void 0;return s.reduceRight((p,g,m)=>{let v,E=!1,b=null,x=null;n&&(v=l&&g.route.id?l[g.route.id]:void 0,b=g.route.errorElement||_8,u&&(f<0&&m===0?(WM("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,x=null):f===m&&(E=!0,x=g.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,m+1)),R=()=>{let T;return v?T=b:E?T=x:g.route.Component?T=S.createElement(g.route.Component,null):g.route.element?T=g.route.element:T=p,S.createElement(O8,{match:g,routeContext:{outlet:p,matches:C,isDataRoute:n!=null},children:T})};return n&&(g.route.ErrorBoundary||g.route.errorElement||m===0)?S.createElement(XM,{location:n.location,revalidation:n.revalidation,component:b,error:v,children:R(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:d}):R()},null)}function dE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function I8(e){let t=S.useContext(Cc);return In(t,dE(e)),t}function D8(e){let t=S.useContext(Im);return In(t,dE(e)),t}function L8(e){let t=S.useContext(ui);return In(t,dE(e)),t}function hE(e){let t=L8(e),n=t.matches[t.matches.length-1];return In(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function P8(){return hE("useRouteId")}function k8(){var r;let e=S.useContext(cE),t=D8("useRouteError"),n=hE("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function N8(){let{router:e}=I8("useNavigate"),t=hE("useNavigate"),n=S.useRef(!1);return GM(()=>{n.current=!0}),S.useCallback(async(i,s={})=>{bo(n.current,qM),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var g_={};function WM(e,t,n){!t&&!g_[e]&&(g_[e]=!0,bo(!1,n))}S.memo(F8);function F8({routes:e,future:t,state:n,onError:r}){return YM(e,void 0,n,r,t)}function hte({to:e,replace:t,state:n,relative:r}){In(_c(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=S.useContext(wo);bo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=S.useContext(ui),{pathname:l}=As(),u=fE(),f=uE(e,lE(s),l,r==="path"),d=JSON.stringify(f);return S.useEffect(()=>{u(JSON.parse(d),{replace:t,state:n,relative:r})},[u,d,r,t,n]),null}function z8(e){In(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function H8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:l}){In(!_c(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:u,navigator:i,static:s,unstable_useTransitions:l,future:{}}),[u,i,s,l]);typeof n=="string"&&(n=xc(n));let{pathname:d="/",search:p="",hash:g="",state:m=null,key:v="default"}=n,E=S.useMemo(()=>{let b=ws(d,u);return b==null?null:{location:{pathname:b,search:p,hash:g,state:m,key:v},navigationType:r}},[u,d,p,g,m,v,r]);return bo(E!=null,`<Router basename="${u}"> is not able to match the URL "${d}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:S.createElement(wo.Provider,{value:f},S.createElement(Tc.Provider,{children:t,value:E}))}function pte({children:e,location:t}){return C8(Ob(e),t)}function Ob(e,t=[]){let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let s=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Ob(r.props.children,s));return}In(r.type===z8,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),In(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Ob(r.props.children,s)),n.push(l)}),n}var vg="get",yg="application/x-www-form-urlencoded";function Dm(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function B8(e){return Dm(e)&&e.tagName.toLowerCase()==="button"}function U8(e){return Dm(e)&&e.tagName.toLowerCase()==="form"}function V8(e){return Dm(e)&&e.tagName.toLowerCase()==="input"}function j8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $8(e,t){return e.button===0&&(!t||t==="_self")&&!j8(e)}function Mb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function q8(e,t){let n=Mb(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}var Np=null;function G8(){if(Np===null)try{new FormData(document.createElement("form"),0),Np=!1}catch{Np=!0}return Np}var Y8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function o1(e){return e!=null&&!Y8.has(e)?(bo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yg}"`),null):e}function X8(e,t){let n,r,i,s,l;if(U8(e)){let u=e.getAttribute("action");r=u?ws(u,t):null,n=e.getAttribute("method")||vg,i=o1(e.getAttribute("enctype"))||yg,s=new FormData(e)}else if(B8(e)||V8(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||u.getAttribute("action");if(r=f?ws(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||vg,i=o1(e.getAttribute("formenctype"))||o1(u.getAttribute("enctype"))||yg,s=new FormData(u,e),!G8()){let{name:d,type:p,value:g}=e;if(p==="image"){let m=d?`${d}.`:"";s.append(`${m}x`,"0"),s.append(`${m}y`,"0")}else d&&s.append(d,g)}}else{if(Dm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=vg,r=null,i=yg,l=e}return s&&i==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pE(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function W8(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ws(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function K8(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Q8(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function J8(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let l=await K8(s,n);return l.links?l.links():[]}return[]}));return nN(r.flat(1).filter(Q8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function m_(e,t,n,r,i,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,u=(f,d)=>{var p;return n[d].pathname!==f.pathname||((p=n[d].route.path)==null?void 0:p.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,d)=>l(f,d)||u(f,d)):s==="data"?t.filter((f,d)=>{var g;let p=r.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(l(f,d)||u(f,d))return!0;if(f.route.shouldRevalidate){let m=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function Z8(e,t,{includeHydrateFallback:n}={}){return eN(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function eN(e){return[...new Set(e)]}function tN(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function nN(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(tN(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function KM(){let e=S.useContext(Cc);return pE(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rN(){let e=S.useContext(Im);return pE(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gE=S.createContext(void 0);gE.displayName="FrameworkContext";function QM(){let e=S.useContext(gE);return pE(e,"You must render this element inside a <HydratedRouter> element"),e}function oN(e,t){let n=S.useContext(gE),[r,i]=S.useState(!1),[s,l]=S.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:d,onMouseLeave:p,onTouchStart:g}=t,m=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let b=C=>{C.forEach(R=>{l(R.isIntersecting)})},x=new IntersectionObserver(b,{threshold:.5});return m.current&&x.observe(m.current),()=>{x.disconnect()}}},[e]),S.useEffect(()=>{if(r){let b=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(b)}}},[r]);let v=()=>{i(!0)},E=()=>{i(!1),l(!1)};return n?e!=="intent"?[s,m,{}]:[s,m,{onFocus:Yf(u,v),onBlur:Yf(f,E),onMouseEnter:Yf(d,v),onMouseLeave:Yf(p,E),onTouchStart:Yf(g,v)}]:[!1,m,{}]}function Yf(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function iN({page:e,...t}){let{router:n}=KM(),r=S.useMemo(()=>NM(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(aN,{page:e,matches:r,...t}):null}function sN(e){let{manifest:t,routeModules:n}=QM(),[r,i]=S.useState([]);return S.useEffect(()=>{let s=!1;return J8(e,t,n).then(l=>{s||i(l)}),()=>{s=!0}},[e,t,n]),r}function aN({page:e,matches:t,...n}){let r=As(),{manifest:i,routeModules:s}=QM(),{basename:l}=KM(),{loaderData:u,matches:f}=rN(),d=S.useMemo(()=>m_(e,t,f,i,r,"data"),[e,t,f,i,r]),p=S.useMemo(()=>m_(e,t,f,i,r,"assets"),[e,t,f,i,r]),g=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let E=new Set,b=!1;if(t.forEach(C=>{var T;let R=i.routes[C.route.id];!R||!R.hasLoader||(!d.some(O=>O.route.id===C.route.id)&&C.route.id in u&&((T=s[C.route.id])!=null&&T.shouldRevalidate)||R.hasClientLoader?b=!0:E.add(C.route.id))}),E.size===0)return[];let x=W8(e,l,"data");return b&&E.size>0&&x.searchParams.set("_routes",t.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[x.pathname+x.search]},[l,u,r,i,d,t,e,s]),m=S.useMemo(()=>Z8(p,i),[p,i]),v=sN(p);return S.createElement(S.Fragment,null,g.map(E=>S.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...n})),m.map(E=>S.createElement("link",{key:E,rel:"modulepreload",href:E,...n})),v.map(({key:E,link:b})=>S.createElement("link",{key:E,nonce:n.nonce,...b})))}function lN(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var uN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{uN&&(window.__reactRouterVersion="7.11.0")}catch{}function gte({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=S.useRef();i.current==null&&(i.current=jk({window:r,v5Compat:!0}));let s=i.current,[l,u]=S.useState({action:s.action,location:s.location}),f=S.useCallback(d=>{n===!1?u(d):S.startTransition(()=>u(d))},[n]);return S.useLayoutEffect(()=>s.listen(f),[s,f]),S.createElement(H8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,unstable_useTransitions:n})}var JM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ZM=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:l,state:u,target:f,to:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m,...v},E){let{basename:b,unstable_useTransitions:x}=S.useContext(wo),C=typeof d=="string"&&JM.test(d),R=UM(d,b);d=R.to;let T=R8(d,{relative:i}),[O,_,M]=oN(r,v),A=hN(d,{replace:l,state:u,target:f,preventScrollReset:p,relative:i,viewTransition:g,unstable_defaultShouldRevalidate:m,unstable_useTransitions:x});function D(N){t&&t(N),N.defaultPrevented||A(N)}let L=S.createElement("a",{...v,...M,href:R.absoluteURL||T,onClick:R.isExternal||s?t:D,ref:lN(E,_),target:f,"data-discover":!C&&n==="render"?"true":void 0});return O&&!C?S.createElement(S.Fragment,null,L,S.createElement(iN,{page:T})):L});ZM.displayName="Link";var cN=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:l,viewTransition:u,children:f,...d},p){let g=$d(l,{relative:d.relative}),m=As(),v=S.useContext(Im),{navigator:E,basename:b}=S.useContext(wo),x=v!=null&&yN(g)&&u===!0,C=E.encodeLocation?E.encodeLocation(g).pathname:g.pathname,R=m.pathname,T=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(R=R.toLowerCase(),T=T?T.toLowerCase():null,C=C.toLowerCase()),T&&b&&(T=ws(T,b)||T);const O=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let _=R===C||!i&&R.startsWith(C)&&R.charAt(O)==="/",M=T!=null&&(T===C||!i&&T.startsWith(C)&&T.charAt(C.length)==="/"),A={isActive:_,isPending:M,isTransitioning:x},D=_?t:void 0,L;typeof r=="function"?L=r(A):L=[r,_?"active":null,M?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s(A):s;return S.createElement(ZM,{...d,"aria-current":D,className:L,ref:p,style:N,to:l,viewTransition:u},typeof f=="function"?f(A):f)});cN.displayName="NavLink";var fN=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:l=vg,action:u,onSubmit:f,relative:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m,...v},E)=>{let{unstable_useTransitions:b}=S.useContext(wo),x=mN(),C=vN(u,{relative:d}),R=l.toLowerCase()==="get"?"get":"post",T=typeof u=="string"&&JM.test(u),O=_=>{if(f&&f(_),_.defaultPrevented)return;_.preventDefault();let M=_.nativeEvent.submitter,A=(M==null?void 0:M.getAttribute("formmethod"))||l,D=()=>x(M||_.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:m});b&&n!==!1?S.startTransition(()=>D()):D()};return S.createElement("form",{ref:E,method:R,action:C,onSubmit:r?f:O,...v,"data-discover":!T&&e==="render"?"true":void 0})});fN.displayName="Form";function dN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function e4(e){let t=S.useContext(Cc);return In(t,dN(e)),t}function hN(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:u,unstable_useTransitions:f}={}){let d=fE(),p=As(),g=$d(e,{relative:s});return S.useCallback(m=>{if($8(m,t)){m.preventDefault();let v=n!==void 0?n:gd(p)===gd(g),E=()=>d(e,{replace:v,state:r,preventScrollReset:i,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:u});f?S.startTransition(()=>E()):E()}},[p,d,g,n,r,t,e,i,s,l,u,f])}function mte(e){bo(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(Mb(e)),n=S.useRef(!1),r=As(),i=S.useMemo(()=>q8(r.search,n.current?null:t.current),[r.search]),s=fE(),l=S.useCallback((u,f)=>{const d=Mb(typeof u=="function"?u(new URLSearchParams(i)):u);n.current=!0,s("?"+d,f)},[s,i]);return[i,l]}var pN=0,gN=()=>`__${String(++pN)}__`;function mN(){let{router:e}=e4("useSubmit"),{basename:t}=S.useContext(wo),n=P8(),r=e.fetch,i=e.navigate;return S.useCallback(async(s,l={})=>{let{action:u,method:f,encType:d,formData:p,body:g}=X8(s,t);if(l.navigate===!1){let m=l.fetcherKey||gN();await r(m,n,l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:g,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await i(l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:p,body:g,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,i,t,n])}function vN(e,{relative:t}={}){let{basename:n}=S.useContext(wo),r=S.useContext(ui);In(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...$d(e||".",{relative:t})},l=As();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),f=u.getAll("index");if(f.some(p=>p==="")){u.delete("index"),f.filter(g=>g).forEach(g=>u.append("index",g));let p=u.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:bs([n,s.pathname])),gd(s)}function yN(e,{relative:t}={}){let n=S.useContext(jM);In(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=e4("useViewTransitionState"),i=$d(e,{relative:t});if(!n.isTransitioning)return!1;let s=ws(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ws(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vg(i.pathname,l)!=null||Vg(i.pathname,s)!=null}const bN=()=>{},Ve=typeof document<"u"?S.useLayoutEffect:bN;function Vt(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const t4=S.createContext(void 0);function qd(e){const t=S.useContext(t4);if(t===void 0&&!e)throw new Error(Vt(72));return t}const v_={};function Tr(e,t){const n=S.useRef(v_);return n.current===v_&&(n.current=e(t)),n}const SN=[];function mE(e){S.useEffect(e,SN)}const Xf=0;class Rs{constructor(){qt(this,"currentId",Xf);qt(this,"clear",()=>{this.currentId!==Xf&&(clearTimeout(this.currentId),this.currentId=Xf)});qt(this,"disposeEffect",()=>this.clear)}static create(){return new Rs}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Xf,n()},t)}isStarted(){return this.currentId!==Xf}}function Cn(){const e=Tr(Rs.create).current;return mE(e.disposeEffect),e}function Lm(){return typeof window<"u"}function Ma(e){return vE(e)?(e.nodeName||"").toLowerCase():"#document"}function Nn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zi(e){var t;return(t=(vE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vE(e){return Lm()?e instanceof Node||e instanceof Nn(e).Node:!1}function Jt(e){return Lm()?e instanceof Element||e instanceof Nn(e).Element:!1}function vn(e){return Lm()?e instanceof HTMLElement||e instanceof Nn(e).HTMLElement:!1}function Ib(e){return!Lm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nn(e).ShadowRoot}const EN=new Set(["inline","contents"]);function kl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=no(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!EN.has(i)}const wN=new Set(["table","td","th"]);function RN(e){return wN.has(Ma(e))}const xN=[":popover-open",":modal"];function Pm(e){return xN.some(t=>{try{return e.matches(t)}catch{return!1}})}const CN=["transform","translate","scale","rotate","perspective"],TN=["transform","translate","scale","rotate","perspective","filter"],_N=["paint","layout","strict","content"];function yE(e){const t=km(),n=Jt(e)?no(e):e;return CN.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||TN.some(r=>(n.willChange||"").includes(r))||_N.some(r=>(n.contain||"").includes(r))}function AN(e){let t=Mi(e);for(;vn(t)&&!Ai(t);){if(yE(t))return t;if(Pm(t))return null;t=Mi(t)}return null}function km(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ON=new Set(["html","body","#document"]);function Ai(e){return ON.has(Ma(e))}function no(e){return Nn(e).getComputedStyle(e)}function Nm(e){return Jt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mi(e){if(Ma(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ib(e)&&e.host||zi(e);return Ib(t)?t.host:t}function n4(e){const t=Mi(e);return Ai(t)?e.ownerDocument?e.ownerDocument.body:e.body:vn(t)&&kl(t)?t:n4(t)}function ga(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=n4(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),l=Nn(i);if(s){const u=Db(l);return t.concat(l,l.visualViewport||[],kl(i)?i:[],u&&n?ga(u):[])}return t.concat(i,ga(i,[],n))}function Db(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wn(e){const t=Tr(MN,e).current;return t.next=e,Ve(t.effect),t}function MN(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const i1=PM[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],IN=i1&&i1!==S.useLayoutEffect?i1:e=>e();function Be(e){const t=Tr(DN).current;return t.next=e,IN(t.effect),t.trampoline}function DN(){const e={next:void 0,callback:LN,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function LN(){}const Ac=typeof navigator<"u",s1=NN(),r4=zN(),o4=FN(),bE=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),PN=s1.platform==="MacIntel"&&s1.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(s1.platform),i4=Ac&&/apple/i.test(navigator.vendor),Lb=Ac&&/android/i.test(r4)||/android/i.test(o4),kN=Ac&&r4.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,s4=o4.includes("jsdom/");function NN(){if(!Ac)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e!=null&&e.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function FN(){if(!Ac)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function zN(){if(!Ac)return"";const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform??""}const Pb="data-base-ui-focusable",a4="active",l4="selected",u4="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ma="ArrowLeft",va="ArrowRight",SE="ArrowUp",Gd="ArrowDown";function xi(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function Ct(e,t){var r;if(!e||!t)return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e.contains(t))return!0;if(n&&Ib(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Rr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ko(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function HN(e){return e.matches("html,body")}function Un(e){return(e==null?void 0:e.ownerDocument)||document}function EE(e){return vn(e)&&e.matches(u4)}function kb(e){return e?e.getAttribute("role")==="combobox"&&EE(e):!1}function BN(e){if(!e||s4)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function md(e){return e?e.hasAttribute(Pb)?e:e.querySelector(`[${Pb}]`)||e:null}function vl(e,t,n=!0){return e.filter(i=>{var s;return i.parentId===t&&(!n||((s=i.context)==null?void 0:s.open))}).flatMap(i=>[i,...vl(e,i.id,n)])}function y_(e,t){var i;let n=[],r=(i=e.find(s=>s.id===t))==null?void 0:i.parentId;for(;r;){const s=e.find(l=>l.id===r);r=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function wr(e){e.preventDefault(),e.stopPropagation()}function UN(e){return"nativeEvent"in e}function c4(e){return e.mozInputSource===0&&e.isTrusted?!0:Lb&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function f4(e){return s4?!1:!Lb&&e.width===0&&e.height===0||Lb&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function xl(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function d4(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const VN=["top","right","bottom","left"],fc=Math.min,go=Math.max,dc=Math.round,Pu=Math.floor,Oi=e=>({x:e,y:e}),jN={left:"right",right:"left",bottom:"top",top:"bottom"},$N={start:"end",end:"start"};function Nb(e,t,n){return go(e,fc(t,n))}function xs(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Ia(e){return e.split("-")[1]}function wE(e){return e==="x"?"y":"x"}function RE(e){return e==="y"?"height":"width"}const qN=new Set(["top","bottom"]);function Ho(e){return qN.has(Qr(e))?"y":"x"}function xE(e){return wE(Ho(e))}function GN(e,t,n){n===void 0&&(n=!1);const r=Ia(e),i=xE(e),s=RE(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=jg(l)),[l,jg(l)]}function YN(e){const t=jg(e);return[Fb(e),t,Fb(t)]}function Fb(e){return e.replace(/start|end/g,t=>$N[t])}const b_=["left","right"],S_=["right","left"],XN=["top","bottom"],WN=["bottom","top"];function KN(e,t,n){switch(e){case"top":case"bottom":return n?t?S_:b_:t?b_:S_;case"left":case"right":return t?XN:WN;default:return[]}}function QN(e,t,n,r){const i=Ia(e);let s=KN(Qr(e),n==="start",r);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(Fb)))),s}function jg(e){return e.replace(/left|right|bottom|top/g,t=>jN[t])}function JN(e){return{top:0,right:0,bottom:0,left:0,...e}}function h4(e){return typeof e!="number"?JN(e):{top:e,right:e,bottom:e,left:e}}function $g(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Fp(e,t,n){return Math.floor(e/t)!==n}function Uu(e,t){return t<0||t>=e.current.length}function bg(e,t){return yr(e,{disabledIndices:t})}function zb(e,t){return yr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function yr(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let s=t;do s+=n?-i:i;while(s>=0&&s<=e.current.length-1&&ya(e,s,r));return s}function p4(e,{event:t,orientation:n,loopFocus:r,rtl:i,cols:s,disabledIndices:l,minIndex:u,maxIndex:f,prevIndex:d,stopEvent:p=!1}){let g=d;const m=[],v={};let E=!1;{let C=null,R=-1;e.current.forEach((T,O)=>{if(T==null)return;const _=T.closest('[role="row"]');_&&(E=!0),(_!==C||R===-1)&&(C=_,R+=1,m[R]=[]),m[R].push(O),v[O]=R})}const b=E&&m.length>0&&m.some(C=>C.length!==s);function x(C){if(!b||d===-1)return;const R=v[d];if(R==null)return;const T=m[R].indexOf(d);let O=C==="up"?R-1:R+1;r&&(O<0?O=m.length-1:O>=m.length&&(O=0));const _=new Set;for(;O>=0&&O<m.length&&!_.has(O);){_.add(O);const M=m[O];if(M.length===0){O=C==="up"?O-1:O+1;continue}const A=Math.min(T,M.length-1);for(let D=A;D>=0;D-=1){const L=M[D];if(!ya(e,L,l))return L}O=C==="up"?O-1:O+1,r&&(O<0?O=m.length-1:O>=m.length&&(O=0))}}if(t.key===SE){const C=x("up");if(C!==void 0)p&&wr(t),g=C;else{if(p&&wr(t),d===-1)g=f;else if(g=yr(e,{startingIndex:g,amount:s,decrement:!0,disabledIndices:l}),r&&(d-s<u||g<0)){const R=d%s,T=f%s,O=f-(T-R);T===R?g=f:g=T>R?O:O-s}Uu(e,g)&&(g=d)}}if(t.key===Gd){const C=x("down");C!==void 0?(p&&wr(t),g=C):(p&&wr(t),d===-1?g=u:(g=yr(e,{startingIndex:d,amount:s,disabledIndices:l}),r&&d+s>f&&(g=yr(e,{startingIndex:d%s-s,amount:s,disabledIndices:l}))),Uu(e,g)&&(g=d))}if(n==="both"){const C=Pu(d/s);t.key===(i?ma:va)&&(p&&wr(t),d%s!==s-1?(g=yr(e,{startingIndex:d,disabledIndices:l}),r&&Fp(g,s,C)&&(g=yr(e,{startingIndex:d-d%s-1,disabledIndices:l}))):r&&(g=yr(e,{startingIndex:d-d%s-1,disabledIndices:l})),Fp(g,s,C)&&(g=d)),t.key===(i?va:ma)&&(p&&wr(t),d%s!==0?(g=yr(e,{startingIndex:d,decrement:!0,disabledIndices:l}),r&&Fp(g,s,C)&&(g=yr(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:l}))):r&&(g=yr(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:l})),Fp(g,s,C)&&(g=d));const R=Pu(f/s)===C;Uu(e,g)&&(r&&R?g=t.key===(i?va:ma)?f:yr(e,{startingIndex:d-d%s-1,disabledIndices:l}):g=d)}return g}function g4(e,t,n){const r=[];let i=0;return e.forEach(({width:s,height:l},u)=>{let f=!1;for(n&&(i=0);!f;){const d=[];for(let p=0;p<s;p+=1)for(let g=0;g<l;g+=1)d.push(i+p+g*t);i%t+s<=t&&d.every(p=>r[p]==null)?(d.forEach(p=>{r[p]=u}),f=!0):i+=1}}),[...r]}function m4(e,t,n,r,i){if(e===-1)return-1;const s=n.indexOf(e),l=t[e];switch(i){case"tl":return s;case"tr":return l?s+l.width-1:s;case"bl":return l?s+(l.height-1)*r:s;case"br":return n.lastIndexOf(e);default:return-1}}function v4(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function ya(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}var ZN=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],qg=ZN.join(","),y4=typeof Element>"u",hc=y4?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gg=!y4&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},vd=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=i===""||i==="true",l=s||n&&t&&vd(t.parentNode);return l},eF=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},b4=function(t,n,r){if(vd(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(qg));return n&&hc.call(t,qg)&&i.unshift(t),i=i.filter(r),i},Yg=function(t,n,r){for(var i=[],s=Array.from(t);s.length;){var l=s.shift();if(!vd(l,!1))if(l.tagName==="SLOT"){var u=l.assignedElements(),f=u.length?u:l.children,d=Yg(f,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:l,candidates:d})}else{var p=hc.call(l,qg);p&&r.filter(l)&&(n||!t.includes(l))&&i.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),m=!vd(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&m){var v=Yg(g===!0?l.children:g.children,!0,r);r.flatten?i.push.apply(i,v):i.push({scopeParent:l,candidates:v})}else s.unshift.apply(s,l.children)}}return i},S4=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},E4=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||eF(t))&&!S4(t)?0:t.tabIndex},tF=function(t,n){var r=E4(t);return r<0&&n&&!S4(t)?0:r},nF=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},w4=function(t){return t.tagName==="INPUT"},rF=function(t){return w4(t)&&t.type==="hidden"},oF=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},iF=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},sF=function(t){if(!t.name)return!0;var n=t.form||Gg(t),r=function(u){return n.querySelectorAll('input[type="radio"][name="'+u+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=iF(i,t.form);return!s||s===t},aF=function(t){return w4(t)&&t.type==="radio"},lF=function(t){return aF(t)&&!sF(t)},uF=function(t){var n,r=t&&Gg(t),i=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var l,u,f;for(s=!!((l=i)!==null&&l!==void 0&&(u=l.ownerDocument)!==null&&u!==void 0&&u.contains(i)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!s&&i;){var d,p,g;r=Gg(i),i=(d=r)===null||d===void 0?void 0:d.host,s=!!((p=i)!==null&&p!==void 0&&(g=p.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return s},E_=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},cF=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var l=hc.call(t,"details>summary:first-of-type"),u=l?t.parentElement:t;if(hc.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var f=t;t;){var d=t.parentElement,p=Gg(t);if(d&&!d.shadowRoot&&i(d)===!0)return E_(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=f}if(uF(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return E_(t);return!1},fF=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return hc.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},Hb=function(t,n){return!(n.disabled||vd(n)||rF(n)||cF(n,t)||oF(n)||fF(n))},Bb=function(t,n){return!(lF(n)||E4(n)<0||!Hb(t,n))},dF=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},R4=function(t){var n=[],r=[];return t.forEach(function(i,s){var l=!!i.scopeParent,u=l?i.scopeParent:i,f=tF(u,l),d=l?R4(i.candidates):u;f===0?l?n.push.apply(n,d):n.push(u):r.push({documentOrder:s,tabIndex:f,item:i,isScope:l,content:d})}),r.sort(nF).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(n)},Yd=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Yg([t],n.includeContainer,{filter:Bb.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:dF}):r=b4(t,n.includeContainer,Bb.bind(null,n)),R4(r)},hF=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Yg([t],n.includeContainer,{filter:Hb.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=b4(t,n.includeContainer,Hb.bind(null,n)),r},x4=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return hc.call(t,qg)===!1?!1:Bb(n,t)};const Oc=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function C4(e,t){const n=Yd(e,Oc()),r=n.length;if(r===0)return;const i=xi(Un(e)),s=n.indexOf(i),l=s===-1?t===1?0:r-1:s+t;return n[l]}function Fm(e){return C4(Un(e).body,1)||e}function T4(e){return C4(Un(e).body,-1)||e}function _4(e,t){if(!e)return null;const n=Yd(Un(e).body,Oc()),r=n.length;if(r===0)return null;const i=n.indexOf(e);if(i===-1)return null;const s=(i+t+r)%r;return n[s]}function A4(e){return _4(e,1)}function O4(e){return _4(e,-1)}function yl(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ct(n,r)}function pF(e){Yd(e,Oc()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function w_(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const gF={...PM};let R_=0;function mF(e,t="mui"){const[n,r]=S.useState(e),i=e||n;return S.useEffect(()=>{n==null&&(R_+=1,r(`${t}-${R_}`))},[n,t]),i}const x_=gF.useId;function Nl(e,t){if(x_!==void 0){const n=x_();return e??(t?`${t}-${n}`:n)}return mF(e,t)}function M4(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}class CE{constructor(){qt(this,"nodesRef",{current:[]});qt(this,"events",M4())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const I4=S.createContext(null),D4=S.createContext(null),Hi=()=>{var e;return((e=S.useContext(I4))==null?void 0:e.id)||null},Da=e=>{const t=S.useContext(D4);return e??t};function TE(e){const t=Nl(),n=Da(e),r=Hi();return Ve(()=>{if(!t)return;const i={id:t,parentId:r};return n==null||n.addNode(i),()=>{n==null||n.removeNode(i)}},[n,t,r]),t}function L4(e){const{children:t,id:n}=e,r=Hi();return be.jsx(I4.Provider,{value:S.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function P4(e){const{children:t,externalTree:n}=e,r=Tr(()=>n??new CE).current;return be.jsx(D4.Provider,{value:r,children:t})}function Kn(){}const Ea=Object.freeze([]),Mn=Object.freeze({}),vF=500,k4=500,yF={style:{transition:"none"}},N4="data-base-ui-click-trigger",F4={fallbackAxisSide:"none"},_E={fallbackAxisSide:"end"},bF={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Os="none",ti="trigger-press",ir="trigger-hover",yd="trigger-focus",AE="outside-press",od="item-press",Ii="focus-out",Xd="escape-key",Sg="list-navigation",z4="cancel-open",ed="sibling-open",SF="disabled",zm="imperative-action",EF="window-resize";function lt(e,t,n,r){let i=!1,s=!1;const l=Mn;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){s=!0},get isCanceled(){return i},get isPropagationAllowed(){return s},trigger:n,...l}}function pc(e){return`data-base-ui-${e}`}function Eg(e,t,n){if(n&&!xl(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}const H4=S.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Rs,currentIdRef:{current:null},currentContextRef:{current:null}});function wF(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=S.useRef(n),s=S.useRef(n),l=S.useRef(null),u=S.useRef(null),f=Cn();return be.jsx(H4.Provider,{value:S.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:s,currentIdRef:l,timeoutMs:r,currentContextRef:u,timeout:f}),[r,f]),children:t})}function RF(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{enabled:i=!0,open:s}=t,l=S.useContext(H4),{currentIdRef:u,delayRef:f,timeoutMs:d,initialDelayRef:p,currentContextRef:g,hasProvider:m,timeout:v}=l,[E,b]=S.useState(!1);return Ve(()=>{function x(){var C;b(!1),(C=g.current)==null||C.setIsInstantPhase(!1),u.current=null,g.current=null,f.current=p.current}if(i&&u.current&&!s&&u.current===r){if(b(!1),d){const C=r;return v.start(d,()=>{n.select("open")||u.current&&u.current!==C||x()}),()=>{v.clear()}}x()}},[i,s,r,u,f,d,p,g,v,n]),Ve(()=>{if(!i||!s)return;const x=g.current,C=u.current;v.clear(),g.current={onOpenChange:n.setOpen,setIsInstantPhase:b},u.current=r,f.current={open:0,close:Eg(p.current,"close")},C!==null&&C!==r?(b(!0),x==null||x.setIsInstantPhase(!0),x==null||x.onOpenChange(!1,lt(Os))):(b(!1),x==null||x.setIsInstantPhase(!1))},[i,s,r,n,u,f,d,p,g,v]),Ve(()=>()=>{g.current=null},[g]),S.useMemo(()=>({hasProvider:m,delayRef:f,isInstantPhase:E}),[m,f,E])}function So(e,t,n,r){const i=Tr(B4).current;return CF(i,e,t,n,r)&&U4(i,[e,t,n,r]),i.callback}function xF(e){const t=Tr(B4).current;return TF(t,e)&&U4(t,e),t.callback}function B4(){return{callback:null,cleanup:null,refs:[]}}function CF(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function TF(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function U4(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(r[i]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){const s=t[i];if(s!=null)switch(typeof s){case"function":{const l=r[i];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}const Fl={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1},zp=null;class _F{constructor(){qt(this,"callbacks",[]);qt(this,"callbacksCount",0);qt(this,"nextId",1);qt(this,"startId",1);qt(this,"isScheduled",!1);qt(this,"tick",t=>{var i;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let s=0;s<n.length;s+=1)(i=n[s])==null||i.call(n,t)})}request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Hp=new _F;class wi{constructor(){qt(this,"currentId",zp);qt(this,"cancel",()=>{this.currentId!==zp&&(Hp.cancel(this.currentId),this.currentId=zp)});qt(this,"disposeEffect",()=>this.cancel)}static create(){return new wi}static request(t){return Hp.request(t)}static cancel(t){return Hp.cancel(t)}request(t){this.cancel(),this.currentId=Hp.request(()=>{this.currentId=zp,t()})}}function Mc(){const e=Tr(wi.create).current;return mE(e.disposeEffect),e}function qo(e){return(e==null?void 0:e.ownerDocument)||document}const wa=S.forwardRef(function(t,n){const[r,i]=S.useState();Ve(()=>{i4&&i("button")},[]);const s={tabIndex:0,role:r};return be.jsx("span",{...t,ref:n,style:Fl,"aria-hidden":r?void 0:!0,...s,"data-base-ui-focus-guard":""})});let C_=0;function wg(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(C_);const s=()=>e==null?void 0:e.focus({preventScroll:n});i?s():C_=requestAnimationFrame(s)}const Vu={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function T_(e){return e==="inert"?Vu.inert:e==="aria-hidden"?Vu["aria-hidden"]:Vu.none}let Bp=new WeakSet,Up={},a1=0;const V4=e=>e&&(e.host||V4(e.parentNode)),AF=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=V4(n);return e.contains(r)?r:null}).filter(n=>n!=null);function OF(e,t,n,r){const i="data-base-ui-inert",s=r?"inert":n?"aria-hidden":null,l=AF(t,e),u=new Set,f=new Set(l),d=[];Up[i]||(Up[i]=new WeakMap);const p=Up[i];l.forEach(g),m(t),u.clear();function g(v){!v||u.has(v)||(u.add(v),v.parentNode&&g(v.parentNode))}function m(v){!v||f.has(v)||[].forEach.call(v.children,E=>{if(Ma(E)!=="script")if(u.has(E))m(E);else{const b=s?E.getAttribute(s):null,x=b!==null&&b!=="false",C=T_(s),R=(C.get(E)||0)+1,T=(p.get(E)||0)+1;C.set(E,R),p.set(E,T),d.push(E),R===1&&x&&Bp.add(E),T===1&&E.setAttribute(i,""),!x&&s&&E.setAttribute(s,s==="inert"?"":"true")}})}return a1+=1,()=>{d.forEach(v=>{const E=T_(s),x=(E.get(v)||0)-1,C=(p.get(v)||0)-1;E.set(v,x),p.set(v,C),x||(!Bp.has(v)&&s&&v.removeAttribute(s),Bp.delete(v)),C||v.removeAttribute(i)}),a1-=1,a1||(Vu.inert=new WeakMap,Vu["aria-hidden"]=new WeakMap,Vu.none=new WeakMap,Bp=new WeakSet,Up={})}}function MF(e,t=!1,n=!1){const r=Un(e[0]).body;return OF(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}var Dn=kM();const IF=Ts(Dn),DF=parseInt(S.version,10);function OE(e){return DF>=e}function __(e){if(!S.isValidElement(e))return null;const t=e,n=t.props;return(OE(19)?n==null?void 0:n.ref:t.ref)??null}function Ub(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function LF(e,t){const n={};for(const r in e){const i=e[r];if(t!=null&&t.hasOwnProperty(r)){const s=t[r](i);s!=null&&Object.assign(n,s);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function PF(e,t){return typeof e=="function"?e(t):e}function kF(e,t){return typeof e=="function"?e(t):e}const id={};function Di(e,t,n,r,i){let s={...Vb(e,id)};return t&&(s=td(s,t)),n&&(s=td(s,n)),r&&(s=td(s,r)),i&&(s=td(s,i)),s}function NF(e){if(e.length===0)return id;if(e.length===1)return Vb(e[0],id);let t={...Vb(e[0],id)};for(let n=1;n<e.length;n+=1)t=td(t,e[n]);return t}function td(e,t){return j4(t)?t(e):FF(e,t)}function FF(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Ub(e.style,r);break}case"className":{e[n]=$4(e.className,r);break}default:zF(n,r)?e[n]=HF(e[n],r):e[n]=r}}return e}function zF(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function j4(e){return typeof e=="function"}function Vb(e,t){return j4(e)?e(t):e??id}function HF(e,t){return t?e?n=>{if(BF(n)){const i=n;jb(i);const s=t(i);return i.baseUIHandlerPrevented||e==null||e(i),s}const r=t(n);return e==null||e(n),r}:t:e}function jb(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function $4(e,t){return t?e?t+" "+e:t:e}function BF(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function St(e,t,n={}){const r=t.render,i=UF(t,n);if(n.enabled===!1)return null;const s=n.state??Mn;return VF(e,r,i,s)}function UF(e,t={}){const{className:n,style:r,render:i}=e,{state:s=Mn,ref:l,props:u,stateAttributesMapping:f,enabled:d=!0}=t,p=d?PF(n,s):void 0,g=d?kF(r,s):void 0,m=d?LF(s,f):Mn,v=d?Ub(m,Array.isArray(u)?NF(u):u)??Mn:Mn;return typeof document<"u"&&(d?Array.isArray(l)?v.ref=xF([v.ref,__(i),...l]):v.ref=So(v.ref,__(i),l):So(null,null)),d?(p!==void 0&&(v.className=$4(v.className,p)),g!==void 0&&(v.style=Ub(v.style,g)),v):Mn}function VF(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const i=Di(n,t.props);return i.ref=n.ref,S.cloneElement(t,i)}if(e&&typeof e=="string")return jF(e,n);throw new Error(Vt(8))}function jF(e,t){return e==="button"?S.createElement("button",{type:"button",...t,key:t.key}):e==="img"?S.createElement("img",{alt:"",...t,key:t.key}):S.createElement(e,t)}const q4=S.createContext(null),G4=()=>S.useContext(q4),$F=pc("portal");function Y4(e={}){const{ref:t,container:n,componentProps:r=Mn,elementProps:i,elementState:s}=e,l=Nl(),u=G4(),f=u==null?void 0:u.portalNode,[d,p]=S.useState(null),[g,m]=S.useState(null),v=S.useRef(null);Ve(()=>{if(n===null){v.current&&(v.current=null,m(null),p(null));return}if(l==null)return;const x=(n&&(vE(n)?n:n.current))??f??document.body;if(x==null){v.current&&(v.current=null,m(null),p(null));return}v.current!==x&&(v.current=x,m(null),p(x))},[n,f,l]);const E=St("div",r,{ref:[t,m],state:s,props:[{id:l,[$F]:""},i]});return{portalNode:g,portalSubtree:d&&E?Dn.createPortal(E,d):null}}const Hm=S.forwardRef(function(t,n){const{children:r,container:i,className:s,render:l,renderGuards:u,...f}=t,{portalNode:d,portalSubtree:p}=Y4({container:i,ref:n,componentProps:t,elementProps:f}),g=S.useRef(null),m=S.useRef(null),v=S.useRef(null),E=S.useRef(null),[b,x]=S.useState(null),C=b==null?void 0:b.modal,R=b==null?void 0:b.open,T=typeof u=="boolean"?u:!!b&&!b.modal&&b.open&&!!d;S.useEffect(()=>{if(!d||C)return;function _(M){d&&yl(M)&&(M.type==="focusin"?w_:pF)(d)}return d.addEventListener("focusin",_,!0),d.addEventListener("focusout",_,!0),()=>{d.removeEventListener("focusin",_,!0),d.removeEventListener("focusout",_,!0)}},[d,C]),S.useEffect(()=>{!d||R||w_(d)},[R,d]);const O=S.useMemo(()=>({beforeOutsideRef:g,afterOutsideRef:m,beforeInsideRef:v,afterInsideRef:E,portalNode:d,setFocusManagerState:x}),[d]);return be.jsxs(S.Fragment,{children:[p,be.jsxs(q4.Provider,{value:O,children:[T&&d&&be.jsx(wa,{"data-type":"outside",ref:g,onFocus:_=>{var M;if(yl(_,d))(M=v.current)==null||M.focus();else{const A=b?b.domReference:null,D=T4(A);D==null||D.focus()}}}),T&&d&&be.jsx("span",{"aria-owns":d.id,style:bF}),d&&Dn.createPortal(r,d),T&&d&&be.jsx(wa,{"data-type":"outside",ref:m,onFocus:_=>{var M;if(yl(_,d))(M=E.current)==null||M.focus();else{const A=b?b.domReference:null,D=Fm(A);D==null||D.focus(),b!=null&&b.closeOnFocusOut&&(b==null||b.onOpenChange(!1,lt(Ii,_.nativeEvent)))}}})]})]})});function nl(e){return e==null?e:"current"in e?e.current:e}function qF(e,t){const n=Nn(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const GF=20;let da=[];function ME(){da=da.filter(e=>e.isConnected)}function YF(e){ME(),e&&Ma(e)!=="body"&&(da.push(e),da.length>GF&&(da=da.slice(-20)))}function l1(){return ME(),da[da.length-1]}function XF(e){if(!e)return null;const t=Oc();return x4(e,t)?e:Yd(e,t)[0]||e}function WF(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():no(e).display!=="none"}function A_(e,t){var l;if(!t.current.includes("floating")&&!((l=e.getAttribute("role"))!=null&&l.includes("dialog")))return;const n=Oc(),i=hF(e,n).filter(u=>{const f=u.getAttribute("data-tabindex")||"";return x4(u,n)||u.hasAttribute("data-tabindex")&&!f.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||i.length===0?s!=="0"&&e.setAttribute("tabindex","0"):(s!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Bm(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],initialFocus:s=!0,returnFocus:l=!0,restoreFocus:u=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:p="",getInsideElements:g=()=>[],nextFocusableElement:m,previousFocusableElement:v,beforeContentFocusGuardRef:E,externalTree:b}=e,x="rootStore"in t?t.rootStore:t,C=x.useState("open"),R=x.useState("domReferenceElement"),T=x.useState("floatingElement"),{events:O,dataRef:_}=x.context,M=Be(()=>{var Se;return(Se=_.current.floatingContext)==null?void 0:Se.nodeId}),A=Be(g),D=s===!1,L=kb(R)&&D,N=Wn(i),H=Wn(s),j=Wn(l),F=Wn(p),q=Da(b),U=G4(),P=S.useRef(null),G=S.useRef(null),B=S.useRef(!1),Y=S.useRef(!1),J=S.useRef(!1),k=S.useRef(-1),$=S.useRef(""),W=S.useRef(""),te=Cn(),ae=Cn(),ne=Mc(),ce=U!=null,Q=md(T),de=Be((Se=Q)=>Se?Yd(Se,Oc()):[]),ve=Be(Se=>{const Te=de(Se);return N.current.map(()=>Te).filter(Boolean).flat()});S.useEffect(()=>{if(r||!f)return;function Se(we){we.key==="Tab"&&Ct(Q,xi(Un(Q)))&&de().length===0&&!L&&wr(we)}const Te=Un(Q);return Te.addEventListener("keydown",Se),()=>{Te.removeEventListener("keydown",Se)}},[r,R,Q,f,N,L,de,ve]),S.useEffect(()=>{if(r||!T)return;function Se(Te){const we=Rr(Te),V=de().indexOf(we);V!==-1&&(k.current=V)}return T.addEventListener("focusin",Se),()=>{T.removeEventListener("focusin",Se)}},[r,T,de]),S.useEffect(()=>{if(r||!C)return;const Se=Un(Q);function Te(){J.current=!1}function we(V){const X=Rr(V),Z=Ct(T,X)||Ct(R,X)||Ct(U==null?void 0:U.portalNode,X);J.current=!Z,W.current=V.pointerType||"keyboard"}function De(){W.current="keyboard"}return Se.addEventListener("pointerdown",we,!0),Se.addEventListener("pointerup",Te,!0),Se.addEventListener("pointercancel",Te,!0),Se.addEventListener("keydown",De,!0),()=>{Se.removeEventListener("pointerdown",we,!0),Se.removeEventListener("pointerup",Te,!0),Se.removeEventListener("pointercancel",Te,!0),Se.removeEventListener("keydown",De,!0)}},[r,T,R,Q,C,U]),S.useEffect(()=>{if(r||!d)return;function Se(){Y.current=!0,ae.start(0,()=>{Y.current=!1})}function Te(X){const Z=X.relatedTarget,ie=X.currentTarget,se=Rr(X);queueMicrotask(()=>{const re=M(),Ie=x.context.triggerElements,Ue=!(Ct(R,Z)||Ct(T,Z)||Ct(Z,T)||Ct(U==null?void 0:U.portalNode,Z)||Z!=null&&Ie.hasElement(Z)||Ie.hasMatchingElement(ke=>Ct(ke,Z))||Z!=null&&Z.hasAttribute(pc("focus-guard"))||q&&(vl(q.nodesRef.current,re).find(ke=>{var Ge,nt;return Ct((Ge=ke.context)==null?void 0:Ge.elements.floating,Z)||Ct((nt=ke.context)==null?void 0:nt.elements.domReference,Z)})||y_(q.nodesRef.current,re).find(ke=>{var Ge,nt,rt;return[(Ge=ke.context)==null?void 0:Ge.elements.floating,md((nt=ke.context)==null?void 0:nt.elements.floating)].includes(Z)||((rt=ke.context)==null?void 0:rt.elements.domReference)===Z})));if(ie===R&&Q&&A_(Q,N),u&&ie!==R&&!WF(se)&&xi(Un(Q))===Un(Q).body){if(vn(Q)&&(Q.focus(),u==="popup")){ne.request(()=>{Q.focus()});return}const ke=k.current,Ge=de(),nt=Ge[ke]||Ge[Ge.length-1]||Q;vn(nt)&&nt.focus()}if(_.current.insideReactTree){_.current.insideReactTree=!1;return}(L||!f)&&Z&&Ue&&!Y.current&&(L||Z!==l1())&&(B.current=!0,x.setOpen(!1,lt(Ii,X)))})}function we(){J.current||(_.current.insideReactTree=!0,te.start(0,()=>{_.current.insideReactTree=!1}))}const De=vn(R)?R:null,V=[];if(!(!T&&!De))return De&&(De.addEventListener("focusout",Te),De.addEventListener("pointerdown",Se),V.push(()=>{De.removeEventListener("focusout",Te),De.removeEventListener("pointerdown",Se)})),T&&(T.addEventListener("focusout",Te),U&&(T.addEventListener("focusout",we,!0),V.push(()=>{T.removeEventListener("focusout",we,!0)})),V.push(()=>{T.removeEventListener("focusout",Te)})),()=>{V.forEach(X=>{X()})}},[r,R,T,Q,f,q,U,x,d,u,de,L,M,N,_,te,ae,ne]);const ue=S.useRef(null),me=S.useRef(null),xe=So(ue,E,U==null?void 0:U.beforeInsideRef),Ce=So(me,U==null?void 0:U.afterInsideRef);S.useEffect(()=>{var X,Z,ie;if(r||!T||!C)return;const Se=Array.from(((X=U==null?void 0:U.portalNode)==null?void 0:X.querySelectorAll(`[${pc("portal")}]`))||[]),we=(ie=(Z=(q?y_(q.nodesRef.current,M()):[]).find(se=>{var re;return kb(((re=se.context)==null?void 0:re.elements.domReference)||null)}))==null?void 0:Z.context)==null?void 0:ie.elements.domReference,De=[T,we,...Se,...A(),P.current,G.current,ue.current,me.current,U==null?void 0:U.beforeOutsideRef.current,U==null?void 0:U.afterOutsideRef.current,nl(v),nl(m),L?R:null].filter(se=>se!=null),V=MF(De,f||L);return()=>{V()}},[C,r,R,T,f,N,U,L,q,M,A,m,v]),Ve(()=>{if(!C||r||!vn(Q))return;const Se=Un(Q),Te=xi(Se);queueMicrotask(()=>{const we=ve(Q),De=H.current,V=typeof De=="function"?De(F.current||""):De;if(V===void 0||V===!1)return;let X;V===!0||V===null?X=we[0]||Q:X=nl(V),X=X||we[0]||Q,!Ct(Q,Te)&&wg(X,{preventScroll:X===Q})})},[r,C,Q,D,ve,H,F]),Ve(()=>{if(r||!Q)return;const Se=Un(Q),Te=xi(Se);YF(Te);function we(X){if(X.open||($.current=qF(X.nativeEvent,W.current)),X.reason===ir&&X.nativeEvent.type==="mouseleave"&&(B.current=!0),X.reason===AE)if(X.nested)B.current=!1;else if(c4(X.nativeEvent)||f4(X.nativeEvent))B.current=!1;else{let Z=!1;document.createElement("div").focus({get preventScroll(){return Z=!0,!1}}),Z?B.current=!1:B.current=!0}}O.on("openchange",we);const De=Se.createElement("span");De.setAttribute("tabindex","-1"),De.setAttribute("aria-hidden","true"),Object.assign(De.style,Fl),ce&&R&&R.insertAdjacentElement("afterend",De);function V(){const X=j.current;let Z=typeof X=="function"?X($.current):X;if(Z===void 0||Z===!1)return null;if(Z===null&&(Z=!0),typeof Z=="boolean"){const se=R||l1();return se&&se.isConnected?se:De}const ie=R||l1()||De;return nl(Z)||ie}return()=>{O.off("openchange",we);const X=xi(Se),Z=Ct(T,X)||q&&vl(q.nodesRef.current,M(),!1).some(se=>{var re;return Ct((re=se.context)==null?void 0:re.elements.floating,X)}),ie=V();queueMicrotask(()=>{const se=XF(ie),re=typeof j.current!="boolean";j.current&&!B.current&&vn(se)&&(!(!re&&se!==X&&X!==Se.body)||Z)&&se.focus({preventScroll:!0}),De.remove()})}},[r,T,Q,j,_,O,q,ce,R,M]),S.useEffect(()=>{queueMicrotask(()=>{B.current=!1})},[r]),S.useEffect(()=>{if(r||!C)return;function Se(we){const De=Rr(we);De!=null&&De.closest(`[${N4}]`)&&(Y.current=!0)}const Te=Un(Q);return Te.addEventListener("pointerdown",Se,!0),()=>{Te.removeEventListener("pointerdown",Se,!0)}},[r,C,Q]),Ve(()=>{if(!r&&U)return U.setFocusManagerState({modal:f,closeOnFocusOut:d,open:C,onOpenChange:x.setOpen,domReference:R}),()=>{U.setFocusManagerState(null)}},[r,U,f,C,x,d,R]),Ve(()=>{if(!(r||!Q))return A_(Q,N),()=>{queueMicrotask(ME)}},[r,Q,N]);const Ae=!r&&(f?!L:!0)&&(ce||f);return be.jsxs(S.Fragment,{children:[Ae&&be.jsx(wa,{"data-type":"inside",ref:xe,onFocus:Se=>{var Te;if(f){const we=ve();wg(we[we.length-1])}else if(U!=null&&U.portalNode)if(B.current=!1,yl(Se,U.portalNode)){const we=Fm(R);we==null||we.focus()}else(Te=nl(v??U.beforeOutsideRef))==null||Te.focus()}}),n,Ae&&be.jsx(wa,{"data-type":"inside",ref:Ce,onFocus:Se=>{var Te;if(f)wg(ve()[0]);else if(U!=null&&U.portalNode)if(d&&(B.current=!0),yl(Se,U.portalNode)){const we=T4(R);we==null||we.focus()}else(Te=nl(m??U.afterOutsideRef))==null||Te.focus()}})]})}function IE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,stickIfOpen:f=!0,touchOpenDelay:d=0}=t,p=S.useRef(void 0),g=Mc(),m=Cn(),v=S.useMemo(()=>({onPointerDown(E){p.current=E.pointerType},onMouseDown(E){const b=p.current,x=E.nativeEvent,C=n.select("open");if(E.button!==0||s==="click"||xl(b,!0)&&u)return;const R=r.current.openEvent,T=R==null?void 0:R.type,O=n.select("domReferenceElement")!==E.currentTarget,_=C&&O||!(C&&l&&(!(R&&f)||T==="click"||T==="mousedown"));if(EE(x.target)){const A=lt(ti,x,x.target);_&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,A)}):n.setOpen(_,A);return}const M=E.currentTarget;g.request(()=>{const A=lt(ti,x,M);_&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,A)}):n.setOpen(_,A)})},onClick(E){if(s==="mousedown-only")return;const b=p.current;if(s==="mousedown"&&b){p.current=void 0;return}if(xl(b,!0)&&u)return;const x=n.select("open"),C=r.current.openEvent,R=n.select("domReferenceElement")!==E.currentTarget,T=x&&R||!(x&&l&&(!(C&&f)||d4(C))),O=lt(ti,E.nativeEvent,E.currentTarget);T&&b==="touch"&&d>0?m.start(d,()=>{n.setOpen(!0,O)}):n.setOpen(T,O)},onKeyDown(){p.current=void 0}}),[r,s,u,n,f,l,g,m,d]);return S.useMemo(()=>i?{reference:v}:Mn,[i,v])}function KF(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){var v;const s=(e==null?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",u=t.axis==="y"||t.axis==="both",f=["mouseenter","mousemove"].includes(((v=t.dataRef.current.openEvent)==null?void 0:v.type)||"")&&t.pointerType!=="touch";let d=s.width,p=s.height,g=s.x,m=s.y;return n==null&&t.x&&l&&(n=s.x-t.x),r==null&&t.y&&u&&(r=s.y-t.y),g-=n||0,m-=r||0,d=0,p=0,!i||f?(d=t.axis==="y"?s.width:0,p=t.axis==="x"?s.height:0,g=l&&t.x!=null?t.x:g,m=u&&t.y!=null?t.y:m):i&&!f&&(p=t.axis==="x"?s.height:p,d=t.axis==="y"?s.width:d),i=!0,{width:d,height:p,x:g,y:m,top:m,right:g+d,bottom:m+p,left:g}}}}function O_(e){return e!=null&&e.clientX!=null}function QF(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),l=n.context.dataRef,{enabled:u=!0,axis:f="both",x:d=null,y:p=null}=t,g=S.useRef(!1),m=S.useRef(null),[v,E]=S.useState(),[b,x]=S.useState([]),C=Be((M,A)=>{g.current||l.current.openEvent&&!O_(l.current.openEvent)||n.set("positionReference",KF(s,{x:M,y:A,axis:f,dataRef:l,pointerType:v}))}),R=Be(M=>{d!=null||p!=null||(r?m.current||x([]):C(M.clientX,M.clientY))}),T=xl(v)?i:r,O=S.useCallback(()=>{if(!T||!u||d!=null||p!=null)return;const M=Nn(i);function A(D){const L=Rr(D);Ct(i,L)?(M.removeEventListener("mousemove",A),m.current=null):C(D.clientX,D.clientY)}if(!l.current.openEvent||O_(l.current.openEvent)){M.addEventListener("mousemove",A);const D=()=>{M.removeEventListener("mousemove",A),m.current=null};return m.current=D,D}n.set("positionReference",s)},[T,u,d,p,i,l,s,n,C]);S.useEffect(()=>O(),[O,b]),S.useEffect(()=>{u&&!i&&(g.current=!1)},[u,i]),S.useEffect(()=>{!u&&r&&(g.current=!0)},[u,r]),Ve(()=>{u&&(d!=null||p!=null)&&(g.current=!1,C(d,p))},[u,d,p,C]);const _=S.useMemo(()=>{function M(A){E(A.pointerType)}return{onPointerDown:M,onPointerEnter:M,onMouseMove:R,onMouseEnter:R}},[R]);return S.useMemo(()=>u?{reference:_}:{},[u,_])}function M_(e,t,n){let{reference:r,floating:i}=e;const s=Ho(t),l=xE(t),u=RE(l),f=Qr(t),d=s==="y",p=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,m=r[u]/2-i[u]/2;let v;switch(f){case"top":v={x:p,y:r.y-i.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:g};break;case"left":v={x:r.x-i.width,y:g};break;default:v={x:r.x,y:r.y}}switch(Ia(t)){case"start":v[l]-=m*(n&&d?-1:1);break;case"end":v[l]+=m*(n&&d?-1:1);break}return v}const JF=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,u=s.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:g}=M_(d,r,f),m=r,v={},E=0;for(let b=0;b<u.length;b++){const{name:x,fn:C}=u[b],{x:R,y:T,data:O,reset:_}=await C({x:p,y:g,initialPlacement:r,placement:m,strategy:i,middlewareData:v,rects:d,platform:l,elements:{reference:e,floating:t}});p=R??p,g=T??g,v={...v,[x]:{...v[x],...O}},_&&E<=50&&(E++,typeof _=="object"&&(_.placement&&(m=_.placement),_.rects&&(d=_.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:p,y:g}=M_(d,m,f)),b=-1)}return{x:p,y:g,placement:m,strategy:i,middlewareData:v}};async function bd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:u,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:m=!1,padding:v=0}=xs(t,e),E=h4(v),x=u[m?g==="floating"?"reference":"floating":g],C=$g(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:d,rootBoundary:p,strategy:f})),R=g==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),O=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},_=$g(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:R,offsetParent:T,strategy:f}):R);return{top:(C.top-_.top+E.top)/O.y,bottom:(_.bottom-C.bottom+E.bottom)/O.y,left:(C.left-_.left+E.left)/O.x,right:(_.right-C.right+E.right)/O.x}}const ZF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:u,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:b=!0,...x}=xs(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Qr(i),R=Ho(u),T=Qr(u)===u,O=await(f.isRTL==null?void 0:f.isRTL(d.floating)),_=m||(T||!b?[jg(u)]:YN(u)),M=E!=="none";!m&&M&&_.push(...QN(u,b,E,O));const A=[u,..._],D=await bd(t,x),L=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&L.push(D[C]),g){const q=GN(i,l,O);L.push(D[q[0]],D[q[1]])}if(N=[...N,{placement:i,overflows:L}],!L.every(q=>q<=0)){var H,j;const q=(((H=s.flip)==null?void 0:H.index)||0)+1,U=A[q];if(U&&(!(g==="alignment"?R!==Ho(U):!1)||N.every(B=>Ho(B.placement)===R?B.overflows[0]>0:!0)))return{data:{index:q,overflows:N},reset:{placement:U}};let P=(j=N.filter(G=>G.overflows[0]<=0).sort((G,B)=>G.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!P)switch(v){case"bestFit":{var F;const G=(F=N.filter(B=>{if(M){const Y=Ho(B.placement);return Y===R||Y==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(Y=>Y>0).reduce((Y,J)=>Y+J,0)]).sort((B,Y)=>B[1]-Y[1])[0])==null?void 0:F[0];G&&(P=G);break}case"initialPlacement":P=u;break}if(i!==P)return{reset:{placement:P}}}return{}}}};function I_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D_(e){return VN.some(t=>e[t]>=0)}const ez=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=xs(e,t);switch(r){case"referenceHidden":{const s=await bd(t,{...i,elementContext:"reference"}),l=I_(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:D_(l)}}}case"escaped":{const s=await bd(t,{...i,altBoundary:!0}),l=I_(s,n.floating);return{data:{escapedOffsets:l,escaped:D_(l)}}}default:return{}}}}},X4=new Set(["left","top"]);async function tz(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Qr(n),u=Ia(n),f=Ho(n)==="y",d=X4.has(l)?-1:1,p=s&&f?-1:1,g=xs(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof E=="number"&&(v=u==="end"?E*-1:E),f?{x:v*p,y:m*d}:{x:m*d,y:v*p}}const nz=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:l,middlewareData:u}=t,f=await tz(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:l}}}}},rz=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:x=>{let{x:C,y:R}=x;return{x:C,y:R}}},...f}=xs(e,t),d={x:n,y:r},p=await bd(t,f),g=Ho(Qr(i)),m=wE(g);let v=d[m],E=d[g];if(s){const x=m==="y"?"top":"left",C=m==="y"?"bottom":"right",R=v+p[x],T=v-p[C];v=Nb(R,v,T)}if(l){const x=g==="y"?"top":"left",C=g==="y"?"bottom":"right",R=E+p[x],T=E-p[C];E=Nb(R,E,T)}const b=u.fn({...t,[m]:v,[g]:E});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:s,[g]:l}}}}}},oz=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:f=!0,crossAxis:d=!0}=xs(e,t),p={x:n,y:r},g=Ho(i),m=wE(g);let v=p[m],E=p[g];const b=xs(u,t),x=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(f){const T=m==="y"?"height":"width",O=s.reference[m]-s.floating[T]+x.mainAxis,_=s.reference[m]+s.reference[T]-x.mainAxis;v<O?v=O:v>_&&(v=_)}if(d){var C,R;const T=m==="y"?"width":"height",O=X4.has(Qr(i)),_=s.reference[g]-s.floating[T]+(O&&((C=l.offset)==null?void 0:C[g])||0)+(O?0:x.crossAxis),M=s.reference[g]+s.reference[T]+(O?0:((R=l.offset)==null?void 0:R[g])||0)-(O?x.crossAxis:0);E<_?E=_:E>M&&(E=M)}return{[m]:v,[g]:E}}}},iz=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:l,elements:u}=t,{apply:f=()=>{},...d}=xs(e,t),p=await bd(t,d),g=Qr(i),m=Ia(i),v=Ho(i)==="y",{width:E,height:b}=s.floating;let x,C;g==="top"||g==="bottom"?(x=g,C=m===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(C=g,x=m==="end"?"top":"bottom");const R=b-p.top-p.bottom,T=E-p.left-p.right,O=fc(b-p[x],R),_=fc(E-p[C],T),M=!t.middlewareData.shift;let A=O,D=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=R),M&&!m){const N=go(p.left,0),H=go(p.right,0),j=go(p.top,0),F=go(p.bottom,0);v?D=E-2*(N!==0||H!==0?N+H:go(p.left,p.right)):A=b-2*(j!==0||F!==0?j+F:go(p.top,p.bottom))}await f({...t,availableWidth:D,availableHeight:A});const L=await l.getDimensions(u.floating);return E!==L.width||b!==L.height?{reset:{rects:!0}}:{}}}};function W4(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,u=dc(n)!==s||dc(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function DE(e){return Jt(e)?e:e.contextElement}function ju(e){const t=DE(e);if(!vn(t))return Oi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=W4(t);let l=(s?dc(n.width):n.width)/r,u=(s?dc(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const sz=Oi(0);function K4(e){const t=Nn(e);return!km()||!t.visualViewport?sz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function az(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nn(e)?!1:t}function Cl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=DE(e);let l=Oi(1);t&&(r?Jt(r)&&(l=ju(r)):l=ju(e));const u=az(s,n,r)?K4(s):Oi(0);let f=(i.left+u.x)/l.x,d=(i.top+u.y)/l.y,p=i.width/l.x,g=i.height/l.y;if(s){const m=Nn(s),v=r&&Jt(r)?Nn(r):r;let E=m,b=Db(E);for(;b&&r&&v!==E;){const x=ju(b),C=b.getBoundingClientRect(),R=no(b),T=C.left+(b.clientLeft+parseFloat(R.paddingLeft))*x.x,O=C.top+(b.clientTop+parseFloat(R.paddingTop))*x.y;f*=x.x,d*=x.y,p*=x.x,g*=x.y,f+=T,d+=O,E=Nn(b),b=Db(E)}}return $g({width:p,height:g,x:f,y:d})}function Um(e,t){const n=Nm(e).scrollLeft;return t?t.left+n:Cl(zi(e)).left+n}function Q4(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Um(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function lz(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",l=zi(r),u=t?Pm(t.floating):!1;if(r===l||u&&s)return n;let f={scrollLeft:0,scrollTop:0},d=Oi(1);const p=Oi(0),g=vn(r);if((g||!g&&!s)&&((Ma(r)!=="body"||kl(l))&&(f=Nm(r)),vn(r))){const v=Cl(r);d=ju(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const m=l&&!g&&!s?Q4(l,f):Oi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-f.scrollTop*d.y+p.y+m.y}}function uz(e){return Array.from(e.getClientRects())}function cz(e){const t=zi(e),n=Nm(e),r=e.ownerDocument.body,i=go(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=go(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Um(e);const u=-n.scrollTop;return no(r).direction==="rtl"&&(l+=go(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:l,y:u}}const L_=25;function fz(e,t){const n=Nn(e),r=zi(e),i=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,u=0,f=0;if(i){s=i.width,l=i.height;const p=km();(!p||p&&t==="fixed")&&(u=i.offsetLeft,f=i.offsetTop)}const d=Um(r);if(d<=0){const p=r.ownerDocument,g=p.body,m=getComputedStyle(g),v=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,E=Math.abs(r.clientWidth-g.clientWidth-v);E<=L_&&(s-=E)}else d<=L_&&(s+=d);return{width:s,height:l,x:u,y:f}}const dz=new Set(["absolute","fixed"]);function hz(e,t){const n=Cl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=vn(e)?ju(e):Oi(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,f=i*s.x,d=r*s.y;return{width:l,height:u,x:f,y:d}}function P_(e,t,n){let r;if(t==="viewport")r=fz(e,n);else if(t==="document")r=cz(zi(e));else if(Jt(t))r=hz(t,n);else{const i=K4(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return $g(r)}function J4(e,t){const n=Mi(e);return n===t||!Jt(n)||Ai(n)?!1:no(n).position==="fixed"||J4(n,t)}function pz(e,t){const n=t.get(e);if(n)return n;let r=ga(e,[],!1).filter(u=>Jt(u)&&Ma(u)!=="body"),i=null;const s=no(e).position==="fixed";let l=s?Mi(e):e;for(;Jt(l)&&!Ai(l);){const u=no(l),f=yE(l);!f&&u.position==="fixed"&&(i=null),(s?!f&&!i:!f&&u.position==="static"&&!!i&&dz.has(i.position)||kl(l)&&!f&&J4(e,l))?r=r.filter(p=>p!==l):i=u,l=Mi(l)}return t.set(e,r),r}function gz(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Pm(t)?[]:pz(t,this._c):[].concat(n),r],u=l[0],f=l.reduce((d,p)=>{const g=P_(t,p,i);return d.top=go(g.top,d.top),d.right=fc(g.right,d.right),d.bottom=fc(g.bottom,d.bottom),d.left=go(g.left,d.left),d},P_(t,u,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function mz(e){const{width:t,height:n}=W4(e);return{width:t,height:n}}function vz(e,t,n){const r=vn(t),i=zi(t),s=n==="fixed",l=Cl(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=Oi(0);function d(){f.x=Um(i)}if(r||!r&&!s)if((Ma(t)!=="body"||kl(i))&&(u=Nm(t)),r){const v=Cl(t,!0,s,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else i&&d();s&&!r&&i&&d();const p=i&&!r&&!s?Q4(i,u):Oi(0),g=l.left+u.scrollLeft-f.x-p.x,m=l.top+u.scrollTop-f.y-p.y;return{x:g,y:m,width:l.width,height:l.height}}function u1(e){return no(e).position==="static"}function k_(e,t){if(!vn(e)||no(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zi(e)===n&&(n=n.ownerDocument.body),n}function Z4(e,t){const n=Nn(e);if(Pm(e))return n;if(!vn(e)){let i=Mi(e);for(;i&&!Ai(i);){if(Jt(i)&&!u1(i))return i;i=Mi(i)}return n}let r=k_(e,t);for(;r&&RN(r)&&u1(r);)r=k_(r,t);return r&&Ai(r)&&u1(r)&&!yE(r)?n:r||AN(e)||n}const yz=async function(e){const t=this.getOffsetParent||Z4,n=this.getDimensions,r=await n(e.floating);return{reference:vz(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bz(e){return no(e).direction==="rtl"}const Sz={convertOffsetParentRelativeRectToViewportRelativeRect:lz,getDocumentElement:zi,getClippingRect:gz,getOffsetParent:Z4,getElementRects:yz,getClientRects:uz,getDimensions:mz,getScale:ju,isElement:Jt,isRTL:bz};function eI(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ez(e,t){let n=null,r;const i=zi(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:p,top:g,width:m,height:v}=d;if(u||t(),!m||!v)return;const E=Pu(g),b=Pu(i.clientWidth-(p+m)),x=Pu(i.clientHeight-(g+v)),C=Pu(p),T={rootMargin:-E+"px "+-b+"px "+-x+"px "+-C+"px",threshold:go(0,fc(1,f))||1};let O=!0;function _(M){const A=M[0].intersectionRatio;if(A!==f){if(!O)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}A===1&&!eI(d,e.getBoundingClientRect())&&l(),O=!1}try{n=new IntersectionObserver(_,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,T)}n.observe(e)}return l(!0),s}function N_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=DE(e),p=i||s?[...d?ga(d):[],...ga(t)]:[];p.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const g=d&&u?Ez(d,n):null;let m=-1,v=null;l&&(v=new ResizeObserver(C=>{let[R]=C;R&&R.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var T;(T=v)==null||T.observe(t)})),n()}),d&&!f&&v.observe(d),v.observe(t));let E,b=f?Cl(e):null;f&&x();function x(){const C=Cl(e);b&&!eI(b,C)&&n(),b=C,E=requestAnimationFrame(x)}return n(),()=>{var C;p.forEach(R=>{i&&R.removeEventListener("scroll",n),s&&R.removeEventListener("resize",n)}),g==null||g(),(C=v)==null||C.disconnect(),v=null,f&&cancelAnimationFrame(E)}}const wz=nz,Rz=rz,xz=ZF,Cz=iz,Tz=ez,_z=oz,Az=(e,t,n)=>{const r=new Map,i={platform:Sz,...n},s={...i.platform,_c:r};return JF(e,t,{...i,platform:s})};var Oz=typeof document<"u",Mz=function(){},Rg=Oz?S.useLayoutEffect:Mz;function Xg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xg(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Xg(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function tI(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function F_(e,t){const n=tI(e);return Math.round(t*n)/n}function c1(e){const t=S.useRef(e);return Rg(()=>{t.current=e}),t}function Iz(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:f,open:d}=e,[p,g]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=S.useState(r);Xg(m,r)||v(r);const[E,b]=S.useState(null),[x,C]=S.useState(null),R=S.useCallback(B=>{B!==M.current&&(M.current=B,b(B))},[]),T=S.useCallback(B=>{B!==A.current&&(A.current=B,C(B))},[]),O=s||E,_=l||x,M=S.useRef(null),A=S.useRef(null),D=S.useRef(p),L=f!=null,N=c1(f),H=c1(i),j=c1(d),F=S.useCallback(()=>{if(!M.current||!A.current)return;const B={placement:t,strategy:n,middleware:m};H.current&&(B.platform=H.current),Az(M.current,A.current,B).then(Y=>{const J={...Y,isPositioned:j.current!==!1};q.current&&!Xg(D.current,J)&&(D.current=J,Dn.flushSync(()=>{g(J)}))})},[m,t,n,H,j]);Rg(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[d]);const q=S.useRef(!1);Rg(()=>(q.current=!0,()=>{q.current=!1}),[]),Rg(()=>{if(O&&(M.current=O),_&&(A.current=_),O&&_){if(N.current)return N.current(O,_,F);F()}},[O,_,F,N,L]);const U=S.useMemo(()=>({reference:M,floating:A,setReference:R,setFloating:T}),[R,T]),P=S.useMemo(()=>({reference:O,floating:_}),[O,_]),G=S.useMemo(()=>{const B={position:n,left:0,top:0};if(!P.floating)return B;const Y=F_(P.floating,p.x),J=F_(P.floating,p.y);return u?{...B,transform:"translate("+Y+"px, "+J+"px)",...tI(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:J}},[n,u,P.floating,p.x,p.y]);return S.useMemo(()=>({...p,update:F,refs:U,elements:P,floatingStyles:G}),[p,F,U,P,G])}const Dz=(e,t)=>({...wz(e),options:[e,t]}),Lz=(e,t)=>({...Rz(e),options:[e,t]}),Pz=(e,t)=>({..._z(e),options:[e,t]}),kz=(e,t)=>({...xz(e),options:[e,t]}),Nz=(e,t)=>({...Cz(e),options:[e,t]}),Fz=(e,t)=>({...Tz(e),options:[e,t]}),zz={intentional:"onClick",sloppy:"onPointerDown"};function Hz(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function Wd(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("referenceElement"),l=n.useState("domReferenceElement"),{onOpenChange:u,dataRef:f}=n.context,{enabled:d=!0,escapeKey:p=!0,outsidePress:g=!0,outsidePressEvent:m="sloppy",referencePress:v=!1,referencePressEvent:E="sloppy",ancestorScroll:b=!1,bubbles:x,externalTree:C}=t,R=Da(C),T=Be(typeof g=="function"?g:()=>!1),O=typeof g=="function"?T:g,_=S.useRef(!1),{escapeKey:M,outsidePress:A}=Hz(x),D=S.useRef(null),L=Cn(),N=Cn(),H=Be(()=>{N.clear(),f.current.insideReactTree=!1}),j=S.useRef(!1),F=S.useRef(""),q=Be(ue=>{F.current=ue.pointerType}),U=Be(()=>{const ue=F.current,me=ue==="pen"||!ue?"mouse":ue,xe=typeof m=="function"?m():m;return typeof xe=="string"?xe:xe[me]}),P=Be(ue=>{var Se;if(!r||!d||!p||ue.key!=="Escape"||j.current)return;const me=(Se=f.current.floatingContext)==null?void 0:Se.nodeId,xe=R?vl(R.nodesRef.current,me):[];if(!M&&xe.length>0){let Te=!0;if(xe.forEach(we=>{var De;(De=we.context)!=null&&De.open&&!we.context.dataRef.current.__escapeKeyBubbles&&(Te=!1)}),!Te)return}const Ce=UN(ue)?ue.nativeEvent:ue,Ae=lt(Xd,Ce);n.setOpen(!1,Ae),!M&&!Ae.isPropagationAllowed&&ue.stopPropagation()}),G=Be(ue=>{const me=U();return me==="intentional"&&ue.type!=="click"||me==="sloppy"&&ue.type==="click"}),B=Be(()=>{f.current.insideReactTree=!0,N.start(0,H)}),Y=Be((ue,me=!1)=>{var X;if(G(ue)){H();return}if(f.current.insideReactTree){H();return}if(U()==="intentional"&&me||typeof O=="function"&&!O(ue))return;const xe=Rr(ue),Ce=`[${pc("inert")}]`,Ae=Un(n.select("floatingElement")).querySelectorAll(Ce),Se=n.context.triggerElements;if(xe&&(Se.hasElement(xe)||Se.hasMatchingElement(Z=>Ct(Z,xe))))return;let Te=Jt(xe)?xe:null;for(;Te&&!Ai(Te);){const Z=Mi(Te);if(Ai(Z)||!Jt(Z))break;Te=Z}if(Ae.length&&Jt(xe)&&!HN(xe)&&!Ct(xe,n.select("floatingElement"))&&Array.from(Ae).every(Z=>!Ct(Te,Z)))return;if(vn(xe)&&!("touches"in ue)){const Z=Ai(xe),ie=no(xe),se=/auto|scroll/,re=Z||se.test(ie.overflowX),Ie=Z||se.test(ie.overflowY),Ue=re&&xe.clientWidth>0&&xe.scrollWidth>xe.clientWidth,ke=Ie&&xe.clientHeight>0&&xe.scrollHeight>xe.clientHeight,Ge=ie.direction==="rtl",nt=ke&&(Ge?ue.offsetX<=xe.offsetWidth-xe.clientWidth:ue.offsetX>xe.clientWidth),rt=Ue&&ue.offsetY>xe.clientHeight;if(nt||rt)return}const we=(X=f.current.floatingContext)==null?void 0:X.nodeId,De=R&&vl(R.nodesRef.current,we).some(Z=>{var ie;return Ko(ue,(ie=Z.context)==null?void 0:ie.elements.floating)});if(Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement"))||De)return;const V=R?vl(R.nodesRef.current,we):[];if(V.length>0){let Z=!0;if(V.forEach(ie=>{var se;(se=ie.context)!=null&&se.open&&!ie.context.dataRef.current.__outsidePressBubbles&&(Z=!1)}),!Z)return}n.setOpen(!1,lt(AE,ue)),H()}),J=Be(ue=>{U()!=="sloppy"||ue.pointerType==="touch"||!n.select("open")||!d||Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement"))||Y(ue)}),k=Be(ue=>{if(U()!=="sloppy"||!n.select("open")||!d||Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement")))return;const me=ue.touches[0];me&&(D.current={startTime:Date.now(),startX:me.clientX,startY:me.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},L.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}),$=Be(ue=>{const me=Rr(ue);function xe(){k(ue),me==null||me.removeEventListener(ue.type,xe)}me==null||me.addEventListener(ue.type,xe)}),W=Be(ue=>{const me=_.current;if(_.current=!1,L.clear(),ue.type==="mousedown"&&D.current&&!D.current.dismissOnMouseDown)return;const xe=Rr(ue);function Ce(){ue.type==="pointerdown"?J(ue):Y(ue,me),xe==null||xe.removeEventListener(ue.type,Ce)}xe==null||xe.addEventListener(ue.type,Ce)}),te=Be(ue=>{if(U()!=="sloppy"||!D.current||Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement")))return;const me=ue.touches[0];if(!me)return;const xe=Math.abs(me.clientX-D.current.startX),Ce=Math.abs(me.clientY-D.current.startY),Ae=Math.sqrt(xe*xe+Ce*Ce);Ae>5&&(D.current.dismissOnTouchEnd=!0),Ae>10&&(Y(ue),L.clear(),D.current=null)}),ae=Be(ue=>{const me=Rr(ue);function xe(){te(ue),me==null||me.removeEventListener(ue.type,xe)}me==null||me.addEventListener(ue.type,xe)}),ne=Be(ue=>{U()!=="sloppy"||!D.current||Ko(ue,n.select("floatingElement"))||Ko(ue,n.select("domReferenceElement"))||(D.current.dismissOnTouchEnd&&Y(ue),L.clear(),D.current=null)}),ce=Be(ue=>{const me=Rr(ue);function xe(){ne(ue),me==null||me.removeEventListener(ue.type,xe)}me==null||me.addEventListener(ue.type,xe)});S.useEffect(()=>{if(!r||!d)return;f.current.__escapeKeyBubbles=M,f.current.__outsidePressBubbles=A;const ue=new Rs;function me(Te){n.setOpen(!1,lt(Os,Te))}function xe(){ue.clear(),j.current=!0}function Ce(){ue.start(km()?5:0,()=>{j.current=!1})}const Ae=Un(i);Ae.addEventListener("pointerdown",q,!0),p&&(Ae.addEventListener("keydown",P),Ae.addEventListener("compositionstart",xe),Ae.addEventListener("compositionend",Ce)),O&&(Ae.addEventListener("click",W,!0),Ae.addEventListener("pointerdown",W,!0),Ae.addEventListener("touchstart",$,!0),Ae.addEventListener("touchmove",ae,!0),Ae.addEventListener("touchend",ce,!0),Ae.addEventListener("mousedown",W,!0));let Se=[];return b&&(Jt(l)&&(Se=ga(l)),Jt(i)&&(Se=Se.concat(ga(i))),!Jt(s)&&s&&s.contextElement&&(Se=Se.concat(ga(s.contextElement)))),Se=Se.filter(Te=>{var we;return Te!==((we=Ae.defaultView)==null?void 0:we.visualViewport)}),Se.forEach(Te=>{Te.addEventListener("scroll",me,{passive:!0})}),()=>{Ae.removeEventListener("pointerdown",q,!0),p&&(Ae.removeEventListener("keydown",P),Ae.removeEventListener("compositionstart",xe),Ae.removeEventListener("compositionend",Ce)),O&&(Ae.removeEventListener("click",W,!0),Ae.removeEventListener("pointerdown",W,!0),Ae.removeEventListener("touchstart",$,!0),Ae.removeEventListener("touchmove",ae,!0),Ae.removeEventListener("touchend",ce,!0),Ae.removeEventListener("mousedown",W,!0)),Se.forEach(Te=>{Te.removeEventListener("scroll",me)}),ue.clear()}},[f,i,s,l,p,O,r,u,b,d,M,A,P,Y,W,J,$,ae,ce,q,n]),S.useEffect(H,[O,H]);const Q=S.useMemo(()=>({onKeyDown:P,...v&&{[zz[E]]:ue=>{n.setOpen(!1,lt(ti,ue.nativeEvent))},...E!=="intentional"&&{onClick(ue){n.setOpen(!1,lt(ti,ue.nativeEvent))}}}}),[P,n,v,E]),de=Be(ue=>{const me=Rr(ue.nativeEvent);!Ct(n.select("floatingElement"),me)||ue.button!==0||(_.current=!0)}),ve=S.useMemo(()=>({onKeyDown:P,onPointerDown:de,onMouseDown:de,onMouseUp:de,onClickCapture:B,onMouseDownCapture:B,onPointerDownCapture:B,onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[P,de,B]);return S.useMemo(()=>d?{reference:Q,floating:ve,trigger:Q}:{},[d,Q,ve])}var Wg=Symbol("NOT_FOUND");function Bz(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Uz(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Vz(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var z_=e=>Array.isArray(e)?e:[e];function jz(e){const t=Array.isArray(e[0])?e[0]:e;return Vz(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function $z(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function qz(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Wg},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Gz(e,t){let n=[];function r(u){const f=n.findIndex(d=>t(u,d.key));if(f>-1){const d=n[f];return f>0&&(n.splice(f,1),n.unshift(d)),d.value}return Wg}function i(u,f){r(u)===Wg&&(n.unshift({key:u,value:f}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:i,getEntries:s,clear:l}}var Yz=(e,t)=>e===t;function Xz(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let s=0;s<i;s++)if(!e(n[s],r[s]))return!1;return!0}}function Wz(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Yz,maxSize:i=1,resultEqualityCheck:s}=n,l=Xz(r);let u=0;const f=i<=1?qz(l):Gz(i,l);function d(){let p=f.get(arguments);if(p===Wg){if(p=e.apply(null,arguments),u++,s){const m=f.getEntries().find(v=>s(v.value,p));m&&(p=m.value,u!==0&&u--)}f.put(arguments,p)}return p}return d.clearCache=()=>{f.clear(),d.resetResultsCount()},d.resultsCount=()=>u,d.resetResultsCount=()=>{u=0},d}var Kz=class{constructor(e){this.value=e}deref(){return this.value}},Qz=typeof WeakRef<"u"?WeakRef:Kz,Jz=0,H_=1;function Vp(){return{s:Jz,v:void 0,o:null,p:null}}function nI(e,t={}){let n=Vp();const{resultEqualityCheck:r}=t;let i,s=0;function l(){var g;let u=n;const{length:f}=arguments;for(let m=0,v=f;m<v;m++){const E=arguments[m];if(typeof E=="function"||typeof E=="object"&&E!==null){let b=u.o;b===null&&(u.o=b=new WeakMap);const x=b.get(E);x===void 0?(u=Vp(),b.set(E,u)):u=x}else{let b=u.p;b===null&&(u.p=b=new Map);const x=b.get(E);x===void 0?(u=Vp(),b.set(E,u)):u=x}}const d=u;let p;if(u.s===H_)p=u.v;else if(p=e.apply(null,arguments),s++,r){const m=((g=i==null?void 0:i.deref)==null?void 0:g.call(i))??i;m!=null&&r(m,p)&&(p=m,s!==0&&s--),i=typeof p=="object"&&p!==null||typeof p=="function"?new Qz(p):p}return d.s=H_,d.v=p,p}return l.clearCache=()=>{n=Vp(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function rI(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,l=0,u,f={},d=i.pop();typeof d=="object"&&(f=d,d=i.pop()),Bz(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const p={...n,...f},{memoize:g,memoizeOptions:m=[],argsMemoize:v=nI,argsMemoizeOptions:E=[]}=p,b=z_(m),x=z_(E),C=jz(i),R=g(function(){return s++,d.apply(null,arguments)},...b),T=v(function(){l++;const _=$z(C,arguments);return u=R.apply(null,_),u},...x);return Object.assign(T,{resultFunc:d,memoizedResultFunc:R,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>u,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:g,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var Zz=rI(nI),eH=Object.assign((e,t=Zz)=>{Uz(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((l,u,f)=>(l[n[f]]=u,l),{}))},{withTypes:()=>eH});rI({memoize:Wz,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Ne=(e,t,n,r,i,s,...l)=>{if(l.length>0)throw new Error(Vt(1));let u;if(e)u=e;else throw new Error("Missing arguments");return u};var f1={exports:{}},d1={};var B_;function tH(){if(B_)return d1;B_=1;var e=_s();function t(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(g,m){var v=m(),E=r({inst:{value:v,getSnapshot:m}}),b=E[0].inst,x=E[1];return s(function(){b.value=v,b.getSnapshot=m,f(b)&&x({inst:b})},[g,v,m]),i(function(){return f(b)&&x({inst:b}),g(function(){f(b)&&x({inst:b})})},[g]),l(v),v}function f(g){var m=g.getSnapshot;g=g.value;try{var v=m();return!n(g,v)}catch{return!0}}function d(g,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:u;return d1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,d1}var U_;function oI(){return U_||(U_=1,f1.exports=tH()),f1.exports}var nH=oI(),h1={exports:{}},p1={};var V_;function rH(){if(V_)return p1;V_=1;var e=_s(),t=oI();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,f=e.useDebugValue;return p1.useSyncExternalStoreWithSelector=function(d,p,g,m,v){var E=s(null);if(E.current===null){var b={hasValue:!1,value:null};E.current=b}else b=E.current;E=u(function(){function C(M){if(!R){if(R=!0,T=M,M=m(M),v!==void 0&&b.hasValue){var A=b.value;if(v(A,M))return O=A}return O=M}if(A=O,r(T,M))return A;var D=m(M);return v!==void 0&&v(A,D)?(T=M,A):(T=M,O=D)}var R=!1,T,O,_=g===void 0?null:g;return[function(){return C(p())},_===null?void 0:function(){return C(_())}]},[p,g,m,v]);var x=i(d,E[0],E[1]);return l(function(){b.hasValue=!0,b.value=x},[x]),f(x),x},p1}var j_;function oH(){return j_||(j_=1,h1.exports=rH()),h1.exports}var iI=oH();const iH=Ts(iI),sH=OE(19),aH=sH?lH:uH;function vt(e,t,n,r,i){return aH(e,t,n,r,i)}function lH(e,t,n,r,i){const s=S.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return nH.useSyncExternalStore(e.subscribe,s,s)}function uH(e,t,n,r,i){return iI.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,i))}class $u{constructor(t){qt(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));qt(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){$u.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||$u.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};$u.prototype.setState.call(this,t)}}class Kd extends $u{constructor(n,r={},i){super(n);qt(this,"controlledValues",new Map);qt(this,"select",(n,r,i,s)=>{const l=this.selectors[n];return l(this.state,r,i,s)});qt(this,"useState",(n,r,i,s)=>{S.useDebugValue(n);const l=this.selectors[n];return vt(this,l,r,i,s)});this.context=r,this.selectors=i}useSyncedValue(n,r){S.useDebugValue(n),Ve(()=>{this.state[n]!==r&&this.set(n,r)},[n,r])}useSyncedValueWithCleanup(n,r){Ve(()=>(this.state[n]!==r&&this.set(n,r),()=>{this.set(n,void 0)}),[n,r])}useSyncedValues(n){const r=Object.values(n);Ve(()=>{this.update(n)},r)}useControlledProp(n,r,i){S.useDebugValue(n);const s=r!==void 0;this.controlledValues.has(n)||(this.controlledValues.set(n,s),!s&&!Object.is(this.state[n],i)&&super.setState({...this.state,[n]:i})),Ve(()=>{s&&!Object.is(this.state[n],r)&&super.setState({...this.state,[n]:r})},[n,r,i,s])}set(n,r){this.controlledValues.get(n)!==!0&&super.set(n,r)}update(n){const r={...n};for(const i in r)if(Object.hasOwn(r,i)&&this.controlledValues.get(i)===!0){delete r[i];continue}super.update(r)}setState(n){const r={...n};for(const i in r)if(Object.hasOwn(r,i)&&this.controlledValues.get(i)===!0){delete r[i];continue}super.setState({...this.state,...r})}useContextCallback(n,r){S.useDebugValue(n);const i=Be(r??Kn);this.context[n]=i}useStateSetter(n){const r=S.useRef(void 0);return r.current===void 0&&(r.current=i=>{this.set(n,i)}),r.current}observe(n,r){let i;typeof n=="function"?i=n:i=this.selectors[n];let s=i(this.state);return r(s,s,this),this.subscribe(l=>{const u=i(l);if(!Object.is(s,u)){const f=s;s=u,r(u,f,this)}})}}const cH={open:Ne(e=>e.open),domReferenceElement:Ne(e=>e.domReferenceElement),referenceElement:Ne(e=>e.positionReference??e.referenceElement),floatingElement:Ne(e=>e.floatingElement),floatingId:Ne(e=>e.floatingId)};class LE extends Kd{constructor(n){const{nested:r,noEmit:i,onOpenChange:s,triggerElements:l,...u}=n;super({...u,positionReference:u.referenceElement,domReferenceElement:u.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:M4(),nested:r,noEmit:i,triggerElements:l},cH);qt(this,"setOpen",(n,r)=>{var i,s;if((!n||!this.state.open||d4(r.event))&&(this.context.dataRef.current.openEvent=n?r.event:void 0),!this.context.noEmit){const l={open:n,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",l)}(s=(i=this.context).onOpenChange)==null||s.call(i,n,r)})}}function Ic(e,t=!1,n=!1){const[r,i]=S.useState(e&&t?"idle":void 0),[s,l]=S.useState(e);return e&&!s&&(l(!0),i("starting")),!e&&s&&r!=="ending"&&!n&&i("ending"),!e&&!s&&r==="ending"&&i(void 0),Ve(()=>{if(!e&&s&&r!=="ending"&&n){const u=wi.request(()=>{i("ending")});return()=>{wi.cancel(u)}}},[e,s,r,n]),Ve(()=>{if(!e||t)return;const u=wi.request(()=>{i(void 0)});return()=>{wi.cancel(u)}},[t,e]),Ve(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&i("starting");const u=wi.request(()=>{i("idle")});return()=>{wi.cancel(u)}},[t,e,s,i,r]),S.useMemo(()=>({mounted:s,setMounted:l,transitionStatus:r}),[s,r])}function PE(e,t=!1,n=!0){const r=Mc();return Be((i,s=null)=>{r.cancel();const l=nl(e);l!=null&&(typeof l.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?i():r.request(()=>{function u(){l&&Promise.all(l.getAnimations().map(f=>f.finished)).then(()=>{s!=null&&s.aborted||Dn.flushSync(i)}).catch(()=>{if(n){if(s!=null&&s.aborted)return;Dn.flushSync(i)}else l.getAnimations().length>0&&l.getAnimations().some(f=>f.pending||f.playState!=="finished")&&u()})}t?r.request(u):u()}))})}function ci(e){const{enabled:t=!0,open:n,ref:r,onComplete:i}=e,s=Wn(n),l=Be(i),u=PE(r,n);S.useEffect(()=>{t&&u(()=>{n===s.current&&l()})},[t,n,l,u,s])}function fH(e,t){const n=S.useRef(null);return S.useCallback(r=>{e!==void 0&&(n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null),r!==null&&(n.current=e,t.context.triggerElements.add(e,r)))},[t,e])}function kE(e,t,n,r){const i=n.useState("isMountedByTrigger",e),s=fH(e,n),l=Be(u=>{s(u),u!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:u,...r})});return Ve(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:l,isMountedByThisTrigger:i}}function Vm(e){const t=e.useState("open");Ve(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,i]=n.value;e.update({activeTriggerId:r,activeTriggerElement:i})}}},[t,e])}function jm(e,t,n){const{mounted:r,setMounted:i,transitionStatus:s}=Ic(e);t.useSyncedValues({mounted:r,transitionStatus:s});const l=Be(()=>{var f,d;i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n==null||n(),(d=(f=t.context).onOpenChangeComplete)==null||d.call(f,!1)}),u=t.useState("preventUnmountingOnClose");return ci({enabled:!u,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:s}}class Dc{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function dH(){return new LE({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Dc,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function $m(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:dH(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Mn,inactiveTriggerProps:Mn,popupProps:Mn}}const qm={open:Ne(e=>e.open),mounted:Ne(e=>e.mounted),transitionStatus:Ne(e=>e.transitionStatus),floatingRootContext:Ne(e=>e.floatingRootContext),preventUnmountingOnClose:Ne(e=>e.preventUnmountingOnClose),payload:Ne(e=>e.payload),activeTriggerId:Ne(e=>e.activeTriggerId),activeTriggerElement:Ne(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ne((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Ne((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Ne((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Ne((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ne(e=>e.popupProps),popupElement:Ne(e=>e.popupElement),positionerElement:Ne(e=>e.positionerElement)};function sI(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Nl(),s=Hi()!=null,l=Tr(()=>new LE({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new Dc,floatingId:i,nested:s,noEmit:e.noEmit||!1})).current;return Ve(()=>{const u={open:t,floatingId:i};r.reference!==void 0&&(u.referenceElement=r.reference,u.domReferenceElement=Jt(r.reference)?r.reference:null),r.floating!==void 0&&(u.floatingElement=r.floating),l.update(u)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=s,l.context.noEmit=e.noEmit||!1,l}function hH(e={}){const{nodeId:t,externalTree:n}=e,r=sI(e),i=e.rootContext||r,s={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[l,u]=S.useState(null),f=S.useRef(null),d=Da(n);Ve(()=>{s.domReference&&(f.current=s.domReference)},[s.domReference]);const p=Iz({...e,elements:{...s,...l&&{reference:l}}}),g=S.useCallback(A=>{const D=Jt(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;u(D),p.refs.setReference(D)},[p.refs]),[m,v]=S.useState(null),[E,b]=S.useState(null);i.useSyncedValue("referenceElement",m),i.useSyncedValue("domReferenceElement",Jt(m)?m:null),i.useSyncedValue("floatingElement",E);const x=S.useCallback(A=>{(Jt(A)||A===null)&&(f.current=A,v(A)),(Jt(p.refs.reference.current)||p.refs.reference.current===null||A!==null&&!Jt(A))&&p.refs.setReference(A)},[p.refs,v]),C=S.useCallback(A=>{b(A),p.refs.setFloating(A)},[p.refs]),R=S.useMemo(()=>({...p.refs,setReference:x,setFloating:C,setPositionReference:g,domReference:f}),[p.refs,x,C,g]),T=S.useMemo(()=>({...p.elements,domReference:s.domReference}),[p.elements,s.domReference]),O=i.useState("open"),_=i.useState("floatingId"),M=S.useMemo(()=>({...p,dataRef:i.context.dataRef,open:O,onOpenChange:i.setOpen,events:i.context.events,floatingId:_,refs:R,elements:T,nodeId:t,rootStore:i}),[p,R,T,t,i,O,_]);return Ve(()=>{i.context.dataRef.current.floatingContext=M;const A=d==null?void 0:d.nodesRef.current.find(D=>D.id===t);A&&(A.context=M)}),S.useMemo(()=>({...p,context:M,refs:R,elements:T,rootStore:i}),[p,R,T,M,i])}function Gm(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:i}=e,s=Nl(),l=Hi()!=null,u=t.useState("open"),f=t.useState("activeTriggerElement"),d=t.useState(r?"popupElement":"positionerElement"),p=t.context.triggerElements,g=Tr(()=>new LE({open:u,referenceElement:f,floatingElement:d,triggerElements:p,onOpenChange:i,floatingId:s,nested:l,noEmit:n})).current;return Ve(()=>{const m={open:u,floatingId:s,referenceElement:f,floatingElement:d};Jt(f)&&(m.domReferenceElement=f),g.update(m)},[u,s,f,d,g]),g.context.onOpenChange=i,g.context.nested=l,g.context.noEmit=n,g}const g1=kN&&i4;function aI(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:i}=n.context,{enabled:s=!0,visibleOnly:l=!0}=t,u=S.useRef(!1),f=Cn(),d=S.useRef(!0);S.useEffect(()=>{const g=n.select("domReferenceElement");if(!s)return;const m=Nn(g);function v(){!n.select("open")&&vn(g)&&g===xi(Un(g))&&(u.current=!0)}function E(){d.current=!0}function b(){d.current=!1}return m.addEventListener("blur",v),g1&&(m.addEventListener("keydown",E,!0),m.addEventListener("pointerdown",b,!0)),()=>{m.removeEventListener("blur",v),g1&&(m.removeEventListener("keydown",E,!0),m.removeEventListener("pointerdown",b,!0))}},[n,s]),S.useEffect(()=>{if(!s)return;function g(m){(m.reason===ti||m.reason===Xd)&&(u.current=!0)}return r.on("openchange",g),()=>{r.off("openchange",g)}},[r,s]);const p=S.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const m=Rr(g.nativeEvent);if(l&&Jt(m)){if(g1&&!g.relatedTarget){if(!d.current&&!EE(m))return}else if(!BN(m))return}n.setOpen(!0,lt(yd,g.nativeEvent,g.currentTarget))},onBlur(g){u.current=!1;const m=g.relatedTarget,v=g.nativeEvent,E=Jt(m)&&m.hasAttribute(pc("focus-guard"))&&m.getAttribute("data-type")==="outside";f.start(0,()=>{var C;const b=n.select("domReferenceElement"),x=xi(b?b.ownerDocument:document);!m&&x===b||Ct((C=i.current.floatingContext)==null?void 0:C.refs.floating.current,x)||Ct(b,x)||E||n.context.triggerElements.hasElement(g.relatedTarget)||n.setOpen(!1,lt(yd,v))})}}),[i,n,l,f]);return S.useMemo(()=>s?{reference:p,trigger:p}:{},[s,p])}const $b=pc("safe-polygon"),pH=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${u4}`;function gH(e){return e?!!e.closest(pH):!1}function lI(e){const t=S.useRef(void 0),n=S.useRef(!1),r=S.useRef(void 0),i=S.useRef(!0),s=S.useRef(!1),l=S.useRef(()=>{}),u=S.useRef(!1),f=Cn(),d=Cn(),p=S.useRef(void 0);return S.useMemo(()=>{const g=e.context.dataRef.current;return g.hoverInteractionState||(g.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:i,performedPointerEventsMutationRef:s,unbindMouseMoveRef:l,restTimeoutPendingRef:u,openChangeTimeout:f,restTimeout:d,handleCloseOptionsRef:p}),g.hoverInteractionState},[e,t,n,r,i,s,l,u,f,d,p])}const mH=new Set(["click","mousedown"]);function NE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),{dataRef:l}=n.context,{enabled:u=!0,closeDelay:f=0,externalTree:d}=t,{pointerTypeRef:p,interactedInsideRef:g,handlerRef:m,performedPointerEventsMutationRef:v,unbindMouseMoveRef:E,restTimeoutPendingRef:b,openChangeTimeout:x,handleCloseOptionsRef:C}=lI(n),R=Da(d),T=Hi(),O=Be(()=>g.current?!0:l.current.openEvent?mH.has(l.current.openEvent.type):!1),_=Be(()=>{var H;const N=(H=l.current.openEvent)==null?void 0:H.type;return(N==null?void 0:N.includes("mouse"))&&N!=="mousedown"}),M=S.useCallback((N,H=!0)=>{const j=vH(f,p.current);j&&!m.current?x.start(j,()=>n.setOpen(!1,lt(ir,N))):H&&(x.clear(),n.setOpen(!1,lt(ir,N)))},[f,m,n,p,x]),A=Be(()=>{E.current(),m.current=void 0}),D=Be(()=>{if(v.current){const N=Un(i).body;N.style.pointerEvents="",N.removeAttribute($b),v.current=!1}}),L=Be(N=>{const H=Rr(N);if(!gH(H)){g.current=!1;return}g.current=!0});Ve(()=>{r||(p.current=void 0,b.current=!1,g.current=!1,A(),D())},[r,p,b,g,A,D]),S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>D,[D]),Ve(()=>{var N,H,j;if(u&&r&&(N=C.current)!=null&&N.blockPointerEvents&&_()&&Jt(s)&&i){v.current=!0;const F=Un(i).body;F.setAttribute($b,"");const q=s,U=i,P=(j=(H=R==null?void 0:R.nodesRef.current.find(G=>G.id===T))==null?void 0:H.context)==null?void 0:j.elements.floating;return P&&(P.style.pointerEvents=""),F.style.pointerEvents="none",q.style.pointerEvents="auto",U.style.pointerEvents="auto",()=>{F.style.pointerEvents="",q.style.pointerEvents="",U.style.pointerEvents=""}}},[u,r,s,i,C,_,R,T,v]),S.useEffect(()=>{if(!u)return;function N(q){if(O()||!l.current.floatingContext||!n.select("open"))return;const U=n.context.triggerElements;q.relatedTarget&&U.hasElement(q.relatedTarget)||(D(),A(),O()||M(q))}function H(q){var U;x.clear(),D(),(U=m.current)==null||U.call(m,q),A()}function j(q){O()||M(q,!1)}const F=i;return F&&(F.addEventListener("mouseleave",N),F.addEventListener("mouseenter",H),F.addEventListener("mouseleave",j),F.addEventListener("pointerdown",L,!0)),()=>{F&&(F.removeEventListener("mouseleave",N),F.removeEventListener("mouseenter",H),F.removeEventListener("mouseleave",j),F.removeEventListener("pointerdown",L,!0))}})}function vH(e,t){return t&&!xl(t)?0:typeof e=="function"?e():e}function m1(e){return typeof e=="function"?e():e}const yH={current:null};function FE(e,t={}){var G;const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:i}=n.context,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:f=!1,restMs:d=0,move:p=!0,triggerElementRef:g=yH,externalTree:m,isActiveTrigger:v=!0}=t,E=Da(m),{pointerTypeRef:b,interactedInsideRef:x,handlerRef:C,blockMouseMoveRef:R,performedPointerEventsMutationRef:T,unbindMouseMoveRef:O,restTimeoutPendingRef:_,openChangeTimeout:M,restTimeout:A,handleCloseOptionsRef:D}=lI(n),L=Wn(u),N=Wn(l),H=Wn(d);v&&(D.current=(G=L.current)==null?void 0:G.__options);const j=Be(()=>x.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),F=S.useCallback((B,Y=!0)=>{const J=Eg(N.current,"close",b.current);J&&!C.current?M.start(J,()=>n.setOpen(!1,lt(ir,B))):Y&&(M.clear(),n.setOpen(!1,lt(ir,B)))},[N,C,n,b,M]),q=Be(()=>{O.current(),C.current=void 0}),U=Be(()=>{if(T.current){const B=Un(n.select("domReferenceElement")).body;B.style.pointerEvents="",B.removeAttribute($b),T.current=!1}});S.useEffect(()=>{if(!s)return;function B(Y){Y.open||(M.clear(),A.clear(),R.current=!0,_.current=!1)}return i.on("openchange",B),()=>{i.off("openchange",B)}},[s,i,M,A,R,_]);const P=Be(B=>{var k;if(j()||!r.current.floatingContext)return;const Y=n.context.triggerElements;if(B.relatedTarget&&Y.hasElement(B.relatedTarget))return;const J=g.current;(k=L.current)==null||k.call(L,{...r.current.floatingContext,tree:E,x:B.clientX,y:B.clientY,onClose(){U(),q(),!j()&&J===n.select("domReferenceElement")&&F(B)}})(B)});return S.useEffect(()=>{if(!s)return;const B=g.current??(v?n.select("domReferenceElement"):null);if(!Jt(B))return;function Y($){if(M.clear(),R.current=!1,f&&!xl(b.current)||m1(H.current)>0&&!Eg(N.current,"open"))return;const W=Eg(N.current,"open",b.current),te=n.select("domReferenceElement"),ae=n.context.triggerElements,ne=(ae.hasElement($.target)||ae.hasMatchingElement(de=>Ct(de,$.target)))&&(!te||!Ct(te,$.target)),ce=$.currentTarget??null,Q=!n.select("open")||ne;W?M.start(W,()=>{Q&&n.setOpen(!0,lt(ir,$,ce))}):Q&&n.setOpen(!0,lt(ir,$,ce))}function J($){if(j()){U();return}O.current();const W=n.select("domReferenceElement"),te=Un(W);A.clear(),_.current=!1;const ae=n.context.triggerElements;if($.relatedTarget&&ae.hasElement($.relatedTarget))return;if(L.current&&r.current.floatingContext){n.select("open")||M.clear();const ce=g.current;C.current=L.current({...r.current.floatingContext,tree:E,x:$.clientX,y:$.clientY,onClose(){U(),q(),!j()&&ce===n.select("domReferenceElement")&&F($,!0)}});const Q=C.current;Q($),te.addEventListener("mousemove",Q),O.current=()=>{te.removeEventListener("mousemove",Q)};return}(b.current==="touch"?!Ct(n.select("floatingElement"),$.relatedTarget):!0)&&F($)}function k($){P($)}return n.select("open")&&B.addEventListener("mouseleave",k),p&&B.addEventListener("mousemove",Y,{once:!0}),B.addEventListener("mouseenter",Y),B.addEventListener("mouseleave",J),()=>{B.removeEventListener("mouseleave",k),p&&B.removeEventListener("mousemove",Y),B.removeEventListener("mouseenter",Y),B.removeEventListener("mouseleave",J)}},[q,U,R,r,N,F,n,s,L,P,v,j,f,p,b,H,A,_,M,g,E,O,C]),S.useMemo(()=>{function B(Y){b.current=Y.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(Y){const{nativeEvent:J}=Y,k=Y.currentTarget,$=n.select("domReferenceElement"),W=n.context.triggerElements,te=n.select("open"),ae=(W.hasElement(Y.target)||W.hasMatchingElement(ce=>Ct(ce,Y.target)))&&(!$||!Ct($,Y.target));if(f&&!xl(b.current)||te&&!ae||m1(H.current)===0||!ae&&_.current&&Y.movementX**2+Y.movementY**2<2)return;A.clear();function ne(){!R.current&&(!te||ae)&&n.setOpen(!0,lt(ir,J,k))}b.current==="touch"?Dn.flushSync(()=>{ne()}):ae&&te?ne():(_.current=!0,A.start(m1(H.current),ne))}}},[R,f,n,b,H,A,_])}function zl(e=[]){const t=e.map(d=>d==null?void 0:d.reference),n=e.map(d=>d==null?void 0:d.floating),r=e.map(d=>d==null?void 0:d.item),i=e.map(d=>d==null?void 0:d.trigger),s=S.useCallback(d=>jp(d,e,"reference"),t),l=S.useCallback(d=>jp(d,e,"floating"),n),u=S.useCallback(d=>jp(d,e,"item"),r),f=S.useCallback(d=>jp(d,e,"trigger"),i);return S.useMemo(()=>({getReferenceProps:s,getFloatingProps:l,getItemProps:u,getTriggerProps:f}),[s,l,u,f])}function jp(e,t,n){var l;const r=new Map,i=n==="item",s={};n==="floating"&&(s.tabIndex=-1,s[Pb]="");for(const u in e)i&&e&&(u===a4||u===l4)||(s[u]=e[u]);for(let u=0;u<t.length;u+=1){let f;const d=(l=t[u])==null?void 0:l[n];typeof d=="function"?f=e?d(e):null:f=d,f&&$_(s,f,i,r)}return $_(s,e,i,r),s}function $_(e,t,n,r){var i;for(const s in t){const l=t[s];n&&(s===a4||s===l4)||(s.startsWith("on")?(r.has(s)||r.set(s,[]),typeof l=="function"&&((i=r.get(s))==null||i.push(l),e[s]=(...u)=>{var f;return(f=r.get(s))==null?void 0:f.map(d=>d(...u)).find(d=>d!==void 0)})):e[s]=l)}}const bH="Escape";function Ym(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function $p(e,t){return Ym(t,e===SE||e===Gd,e===ma||e===va)}function v1(e,t,n){return Ym(t,e===Gd,n?e===ma:e===va)||e==="Enter"||e===" "||e===""}function SH(e,t,n){return Ym(t,n?e===ma:e===va,e===Gd)}function EH(e,t,n,r){const i=n?e===va:e===ma,s=e===SE;return t==="both"||t==="horizontal"&&r&&r>1?e===bH:Ym(t,i,s)}function uI(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),l=n.context.dataRef,{listRef:u,activeIndex:f,onNavigate:d=()=>{},enabled:p=!0,selectedIndex:g=null,allowEscape:m=!1,loopFocus:v=!1,nested:E=!1,rtl:b=!1,virtual:x=!1,focusItemOnOpen:C="auto",focusItemOnHover:R=!0,openOnArrowKeyDown:T=!0,disabledIndices:O=void 0,orientation:_="vertical",parentOrientation:M,cols:A=1,scrollItemIntoView:D=!0,itemSizes:L,dense:N=!1,id:H,resetOnPointerLeave:j=!0,externalTree:F}=t,q=md(i),U=Wn(q),P=Hi(),G=Da(F);Ve(()=>{l.current.orientation=_},[l,_]);const B=kb(s),Y=S.useRef(C),J=S.useRef(g??-1),k=S.useRef(null),$=S.useRef(!0),W=Be(ie=>{d(J.current===-1?null:J.current,ie)}),te=S.useRef(W),ae=S.useRef(!!i),ne=S.useRef(r),ce=S.useRef(!1),Q=S.useRef(!1),de=Wn(O),ve=Wn(r),ue=Wn(D),me=Wn(g),xe=Wn(j),Ce=Be(()=>{function ie(Ue){x?G==null||G.events.emit("virtualfocus",Ue):wg(Ue,{sync:ce.current,preventScroll:!0})}const se=u.current[J.current],re=Q.current;se&&ie(se),(ce.current?Ue=>Ue():requestAnimationFrame)(()=>{var nt;const Ue=u.current[J.current]||se;if(!Ue)return;se||ie(Ue);const ke=ue.current;ke&&Se&&(re||!$.current)&&((nt=Ue.scrollIntoView)==null||nt.call(Ue,typeof ke=="boolean"?{block:"nearest",inline:"nearest"}:ke))})});Ve(()=>{p&&(r&&i?(J.current=g??-1,Y.current&&g!=null&&(Q.current=!0,W())):ae.current&&(J.current=-1,te.current()))},[p,r,i,g,W]),Ve(()=>{if(p){if(!r){ce.current=!1;return}if(i)if(f==null){if(ce.current=!1,me.current!=null)return;if(ae.current&&(J.current=-1,Ce()),(!ne.current||!ae.current)&&Y.current&&(k.current!=null||Y.current===!0&&k.current==null)){let ie=0;const se=()=>{u.current[0]==null?(ie<2&&(ie?requestAnimationFrame:queueMicrotask)(se),ie+=1):(J.current=k.current==null||v1(k.current,_,b)||E?bg(u):zb(u),k.current=null,W())};se()}}else Uu(u,f)||(J.current=f,Ce(),Q.current=!1)}},[p,r,i,f,me,E,u,_,b,W,Ce,de]),Ve(()=>{var Ue,ke;if(!p||i||!G||x||!ae.current)return;const ie=G.nodesRef.current,se=(ke=(Ue=ie.find(Ge=>Ge.id===P))==null?void 0:Ue.context)==null?void 0:ke.elements.floating,re=xi(Un(i)),Ie=ie.some(Ge=>Ge.context&&Ct(Ge.context.elements.floating,re));se&&!Ie&&$.current&&se.focus({preventScroll:!0})},[p,i,G,P,x]),Ve(()=>{te.current=W,ne.current=r,ae.current=!!i}),Ve(()=>{r||(k.current=null,Y.current=C)},[r,C]);const Ae=f!=null,Se=S.useMemo(()=>{function ie(re){if(!ve.current)return;const Ie=u.current.indexOf(re.currentTarget);Ie!==-1&&J.current!==Ie&&(J.current=Ie,W(re))}return{onFocus(re){ce.current=!0,ie(re)},onClick:({currentTarget:re})=>re.focus({preventScroll:!0}),onMouseMove(re){ce.current=!0,Q.current=!1,R&&ie(re)},onPointerLeave(re){var Ue;if(!ve.current||!$.current||re.pointerType==="touch")return;ce.current=!0;const Ie=re.relatedTarget;!R||u.current.includes(Ie)||xe.current&&(J.current=-1,W(re),x||(Ue=U.current)==null||Ue.focus({preventScroll:!0}))}}},[ve,U,R,u,W,xe,x]),Te=S.useCallback(()=>{var ie,se,re;return M??((re=(se=(ie=G==null?void 0:G.nodesRef.current.find(Ie=>Ie.id===P))==null?void 0:ie.context)==null?void 0:se.dataRef)==null?void 0:re.current.orientation)},[P,G,M]),we=Be(ie=>{if($.current=!1,ce.current=!0,ie.which===229||!ve.current&&ie.currentTarget===U.current)return;if(E&&EH(ie.key,_,b,A)){$p(ie.key,Te())||wr(ie),n.setOpen(!1,lt(Sg,ie.nativeEvent)),vn(s)&&(x?G==null||G.events.emit("virtualfocus",s):s.focus());return}const se=J.current,re=bg(u,O),Ie=zb(u,O);if(B||(ie.key==="Home"&&(wr(ie),J.current=re,W(ie)),ie.key==="End"&&(wr(ie),J.current=Ie,W(ie))),A>1){const Ue=L||Array.from({length:u.current.length},()=>({width:1,height:1})),ke=g4(Ue,A,N),Ge=ke.findIndex(It=>It!=null&&!ya(u,It,O)),nt=ke.reduce((It,st,he)=>st!=null&&!ya(u,st,O)?he:It,-1),rt=ke[p4({current:ke.map(It=>It!=null?u.current[It]:null)},{event:ie,orientation:_,loopFocus:v,rtl:b,cols:A,disabledIndices:v4([...(typeof O!="function"?O:null)||u.current.map((It,st)=>ya(u,st,O)?st:void 0),void 0],ke),minIndex:Ge,maxIndex:nt,prevIndex:m4(J.current>Ie?re:J.current,Ue,ke,A,ie.key===Gd?"bl":ie.key===(b?ma:va)?"tr":"tl"),stopEvent:!0})];if(rt!=null&&(J.current=rt,W(ie)),_==="both")return}if($p(ie.key,_)){if(wr(ie),r&&!x&&xi(ie.currentTarget.ownerDocument)===ie.currentTarget){J.current=v1(ie.key,_,b)?re:Ie,W(ie);return}v1(ie.key,_,b)?v?se>=Ie?m&&se!==u.current.length?J.current=-1:(ce.current=!1,J.current=re):J.current=yr(u,{startingIndex:se,disabledIndices:O}):J.current=Math.min(Ie,yr(u,{startingIndex:se,disabledIndices:O})):v?se<=re?m&&se!==-1?J.current=u.current.length:(ce.current=!1,J.current=Ie):J.current=yr(u,{startingIndex:se,decrement:!0,disabledIndices:O}):J.current=Math.max(re,yr(u,{startingIndex:se,decrement:!0,disabledIndices:O})),Uu(u,J.current)&&(J.current=-1),W(ie)}}),De=S.useMemo(()=>x&&r&&Ae&&{"aria-activedescendant":`${H}-${f}`},[x,r,Ae,H,f]),V=S.useMemo(()=>({"aria-orientation":_==="both"?void 0:_,...B?{}:De,onKeyDown(ie){if(ie.key==="Tab"&&ie.shiftKey&&r&&!x){const se=Rr(ie.nativeEvent);if(se&&!Ct(U.current,se))return;wr(ie),n.setOpen(!1,lt(Ii,ie.nativeEvent)),vn(s)&&s.focus();return}we(ie)},onPointerMove(){$.current=!0}}),[De,we,U,_,B,n,r,x,s]),X=S.useMemo(()=>{function ie(re){C==="auto"&&c4(re.nativeEvent)&&(Y.current=!x)}function se(re){Y.current=C,C==="auto"&&f4(re.nativeEvent)&&(Y.current=!0)}return{onKeyDown(re){const Ie=n.select("open");$.current=!1;const Ue=re.key.startsWith("Arrow"),ke=SH(re.key,Te(),b),Ge=$p(re.key,_),nt=(E?ke:Ge)||re.key==="Enter"||re.key.trim()==="";if(x&&Ie)return we(re);if(!(!Ie&&!T&&Ue)){if(nt){const rt=$p(re.key,Te());k.current=E&&rt?null:re.key}if(E){ke&&(wr(re),Ie?(J.current=bg(u,de.current),W(re)):n.setOpen(!0,lt(Sg,re.nativeEvent,re.currentTarget)));return}Ge&&(me.current!=null&&(J.current=me.current),wr(re),!Ie&&T?n.setOpen(!0,lt(Sg,re.nativeEvent,re.currentTarget)):we(re),Ie&&W(re))}},onFocus(re){n.select("open")&&!x&&(J.current=-1,W(re))},onPointerDown:se,onPointerEnter:se,onMouseDown:ie,onClick:ie}},[we,de,C,u,E,W,n,T,_,Te,b,me,x]),Z=S.useMemo(()=>({...De,...X}),[De,X]);return S.useMemo(()=>p?{reference:Z,floating:V,item:Se,trigger:X}:{},[p,Z,V,X,Se])}const wH=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function zE(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingId"),s=n.useState("domReferenceElement"),l=n.useState("floatingElement"),{enabled:u=!0,role:f="dialog"}=t,d=Nl(),p=(s==null?void 0:s.id)||d,g=S.useMemo(()=>{var T;return((T=md(l))==null?void 0:T.id)||i},[l,i]),m=wH.get(f)??f,E=Hi()!=null,b=S.useMemo(()=>m==="tooltip"||f==="label"?Mn:{"aria-haspopup":m==="alertdialog"?"dialog":m,"aria-expanded":"false",...m==="listbox"&&{role:"combobox"},...m==="menu"&&E&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[m,E,f]),x=S.useMemo(()=>m==="tooltip"||f==="label"?{[`aria-${f==="label"?"labelledby":"describedby"}`]:r?g:void 0}:{...b,"aria-expanded":r?"true":"false","aria-controls":r?g:void 0,...m==="menu"&&{id:p}},[m,g,r,p,f,b]),C=S.useMemo(()=>{const T={id:g,...m&&{role:m}};return m==="tooltip"||f==="label"?T:{...T,...m==="menu"&&{"aria-labelledby":p}}},[m,g,p,f]),R=S.useCallback(({active:T,selected:O})=>{const _={role:"option",...T&&{id:`${g}-fui-option`}};switch(f){case"select":case"combobox":return{..._,"aria-selected":O}}return{}},[g,f]);return S.useMemo(()=>u?{reference:x,floating:C,item:R,trigger:b}:{},[u,x,C,b,R])}function cI(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.context.dataRef,{listRef:s,activeIndex:l,onMatch:u,onTypingChange:f,enabled:d=!0,findMatch:p=null,resetMs:g=750,ignoreKeys:m=Ea,selectedIndex:v=null}=t,E=Cn(),b=S.useRef(""),x=S.useRef(v??l??-1),C=S.useRef(null);Ve(()=>{r&&(E.clear(),C.current=null,b.current="")},[r,E]),Ve(()=>{r&&b.current===""&&(x.current=v??l??-1)},[r,v,l]);const R=Be(M=>{M?i.current.typing||(i.current.typing=M,f==null||f(M)):i.current.typing&&(i.current.typing=M,f==null||f(M))}),T=Be(M=>{function A(j,F,q){const U=p?p(F,q):F.find(P=>(P==null?void 0:P.toLocaleLowerCase().indexOf(q.toLocaleLowerCase()))===0);return U?j.indexOf(U):-1}const D=s.current;if(b.current.length>0&&b.current[0]!==" "&&(A(D,D,b.current)===-1?R(!1):M.key===" "&&wr(M)),D==null||m.includes(M.key)||M.key.length!==1||M.ctrlKey||M.metaKey||M.altKey)return;r&&M.key!==" "&&(wr(M),R(!0)),D.every(j=>{var F,q;return j?((F=j[0])==null?void 0:F.toLocaleLowerCase())!==((q=j[1])==null?void 0:q.toLocaleLowerCase()):!0})&&b.current===M.key&&(b.current="",x.current=C.current),b.current+=M.key,E.start(g,()=>{b.current="",x.current=C.current,R(!1)});const N=x.current,H=A(D,[...D.slice((N||0)+1),...D.slice(0,(N||0)+1)],b.current);H!==-1?(u==null||u(H),C.current=H):M.key!==" "&&(b.current="",R(!1))}),O=S.useMemo(()=>({onKeyDown:T}),[T]),_=S.useMemo(()=>({onKeyDown:T,onKeyUp(M){M.key===" "&&R(!1)}}),[T,R]);return S.useMemo(()=>d?{reference:O,floating:_}:{},[d,O,_])}function q_(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let l=0,u=s-1;l<s;u=l++){const[f,d]=t[l]||[0,0],[p,g]=t[u]||[0,0];d>=r!=g>=r&&n<=(p-f)*(r-d)/(g-d)+f&&(i=!i)}return i}function RH(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function HE(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i=new Rs;let s=!1,l=null,u=null,f=typeof performance<"u"?performance.now():0;function d(g,m){const v=performance.now(),E=v-f;if(l===null||u===null||E===0)return l=g,u=m,f=v,null;const b=g-l,x=m-u,R=Math.sqrt(b*b+x*x)/E;return l=g,u=m,f=v,R}const p=({x:g,y:m,placement:v,elements:E,onClose:b,nodeId:x,tree:C})=>function(T){function O(){i.clear(),b()}if(i.clear(),!E.domReference||!E.floating||v==null||g==null||m==null)return;const{clientX:_,clientY:M}=T,A=[_,M],D=Rr(T),L=T.type==="mouseleave",N=Ct(E.floating,D),H=Ct(E.domReference,D),j=E.domReference.getBoundingClientRect(),F=E.floating.getBoundingClientRect(),q=v.split("-")[0],U=g>F.right-F.width/2,P=m>F.bottom-F.height/2,G=RH(A,j),B=F.width>j.width,Y=F.height>j.height,J=(B?j:F).left,k=(B?j:F).right,$=(Y?j:F).top,W=(Y?j:F).bottom;if(N&&(s=!0,!L))return;if(H&&(s=!1),H&&!L){s=!0;return}if(L&&Jt(T.relatedTarget)&&Ct(E.floating,T.relatedTarget)||C&&vl(C.nodesRef.current,x).some(({context:ne})=>ne==null?void 0:ne.open))return;if(q==="top"&&m>=j.bottom-1||q==="bottom"&&m<=j.top+1||q==="left"&&g>=j.right-1||q==="right"&&g<=j.left+1)return O();let te=[];switch(q){case"top":te=[[J,j.top+1],[J,F.bottom-1],[k,F.bottom-1],[k,j.top+1]];break;case"bottom":te=[[J,F.top+1],[J,j.bottom-1],[k,j.bottom-1],[k,F.top+1]];break;case"left":te=[[F.right-1,W],[F.right-1,$],[j.left+1,$],[j.left+1,W]];break;case"right":te=[[j.right-1,W],[j.right-1,$],[F.left+1,$],[F.left+1,W]];break}function ae([ne,ce]){switch(q){case"top":{const Q=[B?ne+t/2:U?ne+t*4:ne-t*4,ce+t+1],de=[B?ne-t/2:U?ne+t*4:ne-t*4,ce+t+1],ve=[[F.left,U||B?F.bottom-t:F.top],[F.right,U?B?F.bottom-t:F.top:F.bottom-t]];return[Q,de,...ve]}case"bottom":{const Q=[B?ne+t/2:U?ne+t*4:ne-t*4,ce-t],de=[B?ne-t/2:U?ne+t*4:ne-t*4,ce-t],ve=[[F.left,U||B?F.top+t:F.bottom],[F.right,U?B?F.top+t:F.bottom:F.top+t]];return[Q,de,...ve]}case"left":{const Q=[ne+t+1,Y?ce+t/2:P?ce+t*4:ce-t*4],de=[ne+t+1,Y?ce-t/2:P?ce+t*4:ce-t*4];return[...[[P||Y?F.right-t:F.left,F.top],[P?Y?F.right-t:F.left:F.right-t,F.bottom]],Q,de]}case"right":{const Q=[ne-t,Y?ce+t/2:P?ce+t*4:ce-t*4],de=[ne-t,Y?ce-t/2:P?ce+t*4:ce-t*4],ve=[[P||Y?F.left+t:F.right,F.top],[P?Y?F.left+t:F.right:F.left+t,F.bottom]];return[Q,de,...ve]}default:return[]}}if(!q_([_,M],te)){if(s&&!G)return O();if(!L&&r){const ne=d(T.clientX,T.clientY);if(ne!==null&&ne<.1)return O()}q_([_,M],ae([g,m]))?!s&&r&&i.start(40,O):O()}};return p.__options={blockPointerEvents:n},p}const xH={...qm,disabled:Ne(e=>e.disabled),instantType:Ne(e=>e.instantType),isInstantPhase:Ne(e=>e.isInstantPhase),trackCursorAxis:Ne(e=>e.trackCursorAxis),disableHoverablePopup:Ne(e=>e.disableHoverablePopup),lastOpenChangeReason:Ne(e=>e.openChangeReason),closeDelay:Ne(e=>e.closeDelay)};class BE extends Kd{constructor(n){super({...CH(),...n},{popupRef:S.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Dc},xH);qt(this,"setOpen",(n,r)=>{var d,p;const i=r.reason,s=i===ir,l=n&&i===yd,u=!n&&(i===ti||i===Xd);if(r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(p=(d=this.context).onOpenChange)==null||p.call(d,n,r),r.isCanceled)return;const f=()=>{var v;const g={open:n,openChangeReason:i};l?g.instantType="focus":u?g.instantType="dismiss":i===ir&&(g.instantType=void 0);const m=((v=r.trigger)==null?void 0:v.id)??null;(m||n)&&(g.activeTriggerId=m,g.activeTriggerElement=r.trigger??null),this.update(g)};s?Dn.flushSync(f):f()})}static useStore(n,r){const i=Tr(()=>n??new BE(r)).current,s=Gm({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=s,i}}function CH(){return{...$m(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}function vte(e){const{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:l,onOpenChange:u,onOpenChangeComplete:f,handle:d,triggerId:p,defaultTriggerId:g=null,children:m}=e,v=BE.useStore(d==null?void 0:d.store,{open:r??n,activeTriggerId:p!==void 0?p:g});v.useControlledProp("open",r,n),v.useControlledProp("activeTriggerId",p,g),v.useContextCallback("onOpenChange",u),v.useContextCallback("onOpenChangeComplete",f);const E=v.useState("open"),b=v.useState("activeTriggerId"),x=v.useState("payload");v.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i});const C=!t&&E;Ve(()=>{E&&t&&v.setOpen(!1,lt(SF))},[E,t,v]),v.useSyncedValue("disabled",t),Vm(v);const{forceUnmount:R,transitionStatus:T}=jm(C,v),O=v.useState("isInstantPhase"),_=v.useState("instantType"),M=v.useState("lastOpenChangeReason"),A=S.useRef(null);Ve(()=>{T==="ending"&&M===Os||T!=="ending"&&O?(_!=="delay"&&(A.current=_),v.set("instantType","delay")):A.current!==null&&(v.set("instantType",A.current),A.current=null)},[T,O,M,_,v]),Ve(()=>{C&&b==null&&v.set("payload",void 0)},[v,b,C]);const D=S.useCallback(()=>{v.setOpen(!1,TH(v,zm))},[v]);S.useImperativeHandle(l,()=>({unmount:R,close:D}),[R,D]);const L=v.useState("floatingRootContext"),N=aI(L,{enabled:!t}),H=Wd(L,{enabled:!t,referencePress:!0}),j=QF(L,{enabled:!t&&s!=="none",axis:s==="none"?void 0:s}),{getReferenceProps:F,getFloatingProps:q,getTriggerProps:U}=zl([N,H,j]),P=S.useMemo(()=>F(),[F]),G=S.useMemo(()=>U(),[U]),B=S.useMemo(()=>q(),[q]);return v.useSyncedValues({floatingRootContext:L,activeTriggerProps:P,inactiveTriggerProps:G,popupProps:B}),be.jsx(t4.Provider,{value:v,children:typeof m=="function"?m({payload:x}):m})}function TH(e,t){const n=lt(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}let Kg=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const _H={[Kg.startingStyle]:""},AH={[Kg.endingStyle]:""},Bi={transitionStatus(e){return e==="starting"?_H:e==="ending"?AH:null}};let rl=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Kg.startingStyle]="startingStyle",e[e.endingStyle=Kg.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e}({}),qb=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({});const OH={[qb.popupOpen]:""},MH={[qb.popupOpen]:"",[qb.pressed]:""},IH={[rl.open]:""},DH={[rl.closed]:""},LH={[rl.anchorHidden]:""},UE={open(e){return e?OH:null}},Qg={open(e){return e?MH:null}},Go={open(e){return e?IH:DH},anchorHidden(e){return e?LH:null}};function Lr(e){return Nl(e,"base-ui")}const fI=S.createContext(void 0);function PH(){return S.useContext(fI)}const kH=600,yte=S.forwardRef(function(t,n){const{className:r,render:i,handle:s,payload:l,disabled:u,delay:f,closeDelay:d,id:p,...g}=t,m=qd(!0),v=(s==null?void 0:s.store)??m;if(!v)throw new Error(Vt(82));const E=Lr(p),b=v.useState("isTriggerActive",E),x=v.useState("floatingRootContext"),C=v.useState("isOpenedByTrigger",E),R=S.useRef(null),T=f??kH,O=d??0,{registerTrigger:_,isMountedByThisTrigger:M}=kE(E,R,v,{payload:l,closeDelay:O}),A=PH(),{delayRef:D,isInstantPhase:L,hasProvider:N}=RF(x,{open:C});v.useSyncedValue("isInstantPhase",L);const H=v.useState("disabled"),j=u??H,F=v.useState("trackCursorAxis"),q=v.useState("disableHoverablePopup"),U=FE(x,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!q&&F!=="both"?HE():null,restMs(){const Y=A==null?void 0:A.delay,J=typeof D.current=="object"?D.current.open:void 0;let k=T;return N&&(J!==0?k=f??Y??T:k=0),k},delay(){const Y=typeof D.current=="object"?D.current.close:void 0;let J=O;return d==null&&N&&(J=Y),{close:J}},triggerElementRef:R,isActiveTrigger:b}),P=S.useMemo(()=>({open:C}),[C]),G=v.useState("triggerProps",M);return St("button",t,{state:P,ref:[n,_,R],props:[U,G,{id:E},g],stateAttributesMapping:UE})}),dI=S.createContext(void 0);function NH(){const e=S.useContext(dI);if(e===void 0)throw new Error(Vt(70));return e}const FH=S.forwardRef(function(t,n){const{children:r,container:i,className:s,render:l,...u}=t,{portalNode:f,portalSubtree:d}=Y4({container:i,ref:n,componentProps:t,elementProps:u});return!d&&!f?null:be.jsxs(S.Fragment,{children:[d,f&&Dn.createPortal(r,f)]})}),bte=S.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return qd().useState("mounted")||r?be.jsx(dI.Provider,{value:r,children:be.jsx(FH,{ref:n,...i})}):null}),hI=S.createContext(void 0);function pI(){const e=S.useContext(hI);if(e===void 0)throw new Error(Vt(71));return e}const zH=S.createContext(void 0);function Hl(){const e=S.useContext(zH);return(e==null?void 0:e.direction)??"ltr"}const HH=e=>({name:"arrow",options:e,async fn(t){var Y,J;const{x:n,y:r,placement:i,rects:s,platform:l,elements:u,middlewareData:f}=t,{element:d,padding:p=0,offsetParent:g="real"}=xs(e,t)||{};if(d==null)return{};const m=h4(p),v={x:n,y:r},E=xE(i),b=RE(E),x=await l.getDimensions(d),C=E==="y",R=C?"top":"left",T=C?"bottom":"right",O=C?"clientHeight":"clientWidth",_=s.reference[b]+s.reference[E]-v[E]-s.floating[b],M=v[E]-s.reference[E],A=g==="real"?await((Y=l.getOffsetParent)==null?void 0:Y.call(l,d)):u.floating;let D=u.floating[O]||s.floating[b];(!D||!await((J=l.isElement)==null?void 0:J.call(l,A)))&&(D=u.floating[O]||s.floating[b]);const L=_/2-M/2,N=D/2-x[b]/2-1,H=Math.min(m[R],N),j=Math.min(m[T],N),F=H,q=D-x[b]-j,U=D/2-x[b]/2+L,P=Nb(F,U,q),G=!f.arrow&&Ia(i)!=null&&U!==P&&s.reference[b]/2-(U<F?H:j)-x[b]/2<0,B=G?U<F?U-F:U-q:0;return{[E]:v[E]+B,data:{[E]:P,centerOffset:U-P-B,...G&&{alignmentOffset:B}},reset:G}}}),BH=(e,t)=>({...HH(e),options:[e,t]}),UH={name:"hide",async fn(e){var u;const{width:t,height:n,x:r,y:i}=e.rects.reference,s=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:((u=(await Fz().fn(e)).data)==null?void 0:u.referenceHidden)||s}}}},xg={sideX:"left",sideY:"top"},gI={name:"adaptiveOrigin",async fn(e){var R,T;const{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:s,strategy:l,placement:u}=e,f=Nn(i),d=f.getComputedStyle(i);if(!(d.transitionDuration!=="0s"&&d.transitionDuration!==""))return{x:t,y:n,data:xg};const g=await((R=s.getOffsetParent)==null?void 0:R.call(s,i));let m={width:0,height:0};if(l==="fixed"&&(f!=null&&f.visualViewport))m={width:f.visualViewport.width,height:f.visualViewport.height};else if(g===f){const O=qo(i);m={width:O.documentElement.clientWidth,height:O.documentElement.clientHeight}}else await((T=s.isElement)==null?void 0:T.call(s,g))&&(m=await s.getDimensions(g));const v=Qr(u);let E=t,b=n;v==="left"&&(E=m.width-(t+r.width)),v==="top"&&(b=m.height-(n+r.height));const x=v==="left"?"right":xg.sideX,C=v==="top"?"bottom":xg.sideY;return{x:E,y:b,data:{sideX:x,sideY:C}}}};function mI(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function G_(e,t,n){const{rects:r,placement:i}=e;return{side:mI(t,Qr(i),n),align:Ia(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Xm(e){var $e,Ze;const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,collisionBoundary:u,collisionPadding:f=5,sticky:d=!1,arrowPadding:p=5,disableAnchorTracking:g=!1,keepMounted:m=!1,floatingRootContext:v,mounted:E,collisionAvoidance:b,shiftCrossAxis:x=!1,nodeId:C,adaptiveOrigin:R,lazyFlip:T=!1,externalTree:O}=e,[_,M]=S.useState(null);!E&&_!==null&&M(null);const A=b.side||"flip",D=b.align||"flip",L=b.fallbackAxisSide||"end",N=typeof t=="function"?t:void 0,H=Be(N),j=N?H:t,F=Wn(t),U=Hl()==="rtl",P=_||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":U?"left":"right","inline-start":U?"right":"left"}[r],G=s==="center"?P:`${P}-${s}`;let B=f;const Y=1,J=r==="bottom"?Y:0,k=r==="top"?Y:0,$=r==="right"?Y:0,W=r==="left"?Y:0;typeof B=="number"?B={top:B+J,right:B+W,bottom:B+k,left:B+$}:B&&(B={top:(B.top||0)+J,right:(B.right||0)+W,bottom:(B.bottom||0)+k,left:(B.left||0)+$});const te={boundary:u==="clipping-ancestors"?"clippingAncestors":u,padding:B},ae=S.useRef(null),ne=Wn(i),ce=Wn(l),ve=[Dz(et=>{const ft=G_(et,r,U),Yt=typeof ne.current=="function"?ne.current(ft):ne.current,ot=typeof ce.current=="function"?ce.current(ft):ce.current;return{mainAxis:Yt,crossAxis:ot,alignmentAxis:ot}},[typeof i!="function"?i:0,typeof l!="function"?l:0,U,r])],ue=D==="none"&&A!=="shift",me=!ue&&(d||x||A==="shift"),xe=A==="none"?null:kz({...te,padding:{top:B.top+Y,right:B.right+Y,bottom:B.bottom+Y,left:B.left+Y},mainAxis:!x&&A==="flip",crossAxis:D==="flip"?"alignment":!1,fallbackAxisSideDirection:L}),Ce=ue?null:Lz(et=>{const ft=qo(et.elements.floating).documentElement;return{...te,rootBoundary:x?{x:0,y:0,width:ft.clientWidth,height:ft.clientHeight}:void 0,mainAxis:D!=="none",crossAxis:me,limiter:d||x?void 0:Pz(Yt=>{if(!ae.current)return{};const{width:ot,height:Et}=ae.current.getBoundingClientRect(),dt=Ho(Qr(Yt.placement)),Bt=dt==="y"?ot:Et,an=dt==="y"?B.left+B.right:B.top+B.bottom;return{offset:Bt/2+an/2}})}},[te,d,x,B,D]);A==="shift"||D==="shift"||s==="center"?ve.push(Ce,xe):ve.push(xe,Ce),ve.push(Nz({...te,apply({elements:{floating:et},rects:{reference:ft},availableWidth:Yt,availableHeight:ot}){Object.entries({"--available-width":`${Yt}px`,"--available-height":`${ot}px`,"--anchor-width":`${ft.width}px`,"--anchor-height":`${ft.height}px`}).forEach(([Et,dt])=>{et.style.setProperty(Et,dt)})}}),BH(()=>({element:ae.current||document.createElement("div"),padding:p,offsetParent:"floating"}),[p]),{name:"transformOrigin",fn(et){var hr,ji,Gl;const{elements:ft,middlewareData:Yt,placement:ot,rects:Et,y:dt}=et,Bt=Qr(ot),an=Ho(Bt),Ye=ae.current,At=((hr=Yt.arrow)==null?void 0:hr.x)||0,tn=((ji=Yt.arrow)==null?void 0:ji.y)||0,Ut=(Ye==null?void 0:Ye.clientWidth)||0,ln=(Ye==null?void 0:Ye.clientHeight)||0,yn=At+Ut/2,mn=tn+ln/2,dr=Math.abs(((Gl=Yt.shift)==null?void 0:Gl.y)||0),Fr=Et.reference.height/2,$n=typeof i=="function"?i(G_(et,r,U)):i,io=dr>$n,zr={top:`${yn}px calc(100% + ${$n}px)`,bottom:`${yn}px ${-$n}px`,left:`calc(100% + ${$n}px) ${mn}px`,right:`${-$n}px ${mn}px`}[Bt],Zn=`${yn}px ${Et.reference.y+Fr-dt}px`;return ft.floating.style.setProperty("--transform-origin",me&&an==="y"&&io?Zn:zr),{}}},UH,R),Ve(()=>{!E&&v&&v.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[E,v]);const Ae=S.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Se,elements:Te,x:we,y:De,middlewareData:V,update:X,placement:Z,context:ie,isPositioned:se,floatingStyles:re}=hH({rootContext:v,placement:G,middleware:ve,strategy:n,whileElementsMounted:m?void 0:(...et)=>N_(...et,Ae),nodeId:C,externalTree:O}),{sideX:Ie,sideY:Ue}=V.adaptiveOrigin||xg,ke=se?n:"fixed",Ge=S.useMemo(()=>R?{position:ke,[Ie]:we,[Ue]:De}:{position:ke,...re},[R,ke,Ie,we,Ue,De,re]),nt=S.useRef(null);Ve(()=>{if(!E)return;const et=F.current,ft=typeof et=="function"?et():et,ot=(Y_(ft)?ft.current:ft)||null||null;ot!==nt.current&&(Se.setPositionReference(ot),nt.current=ot)},[E,Se,j,F]),S.useEffect(()=>{if(!E)return;const et=F.current;typeof et!="function"&&Y_(et)&&et.current!==nt.current&&(Se.setPositionReference(et.current),nt.current=et.current)},[E,Se,j,F]),S.useEffect(()=>{if(m&&E&&Te.domReference&&Te.floating)return N_(Te.domReference,Te.floating,X,Ae)},[m,E,Te,X,Ae]);const rt=Qr(Z),It=mI(r,rt,U),st=Ia(Z)||"center",he=!!(($e=V.hide)!=null&&$e.referenceHidden);Ve(()=>{T&&E&&se&&M(rt)},[T,E,se,rt]);const He=S.useMemo(()=>{var et,ft;return{position:"absolute",top:(et=V.arrow)==null?void 0:et.y,left:(ft=V.arrow)==null?void 0:ft.x}},[V.arrow]),ze=((Ze=V.arrow)==null?void 0:Ze.centerOffset)!==0;return S.useMemo(()=>({positionerStyles:Ge,arrowStyles:He,arrowRef:ae,arrowUncentered:ze,side:It,align:st,physicalSide:rt,anchorHidden:he,refs:Se,context:ie,isPositioned:se,update:X}),[Ge,He,ae,ze,It,st,rt,he,Se,ie,se,X])}function Y_(e){return e!=null&&"current"in e}function Lc(e){return e==="starting"?yF:Mn}const Ste=S.forwardRef(function(t,n){const{render:r,className:i,anchor:s,positionMethod:l="absolute",side:u="top",align:f="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m=5,arrowPadding:v=5,sticky:E=!1,disableAnchorTracking:b=!1,collisionAvoidance:x=_E,...C}=t,R=qd(),T=NH(),O=R.useState("open"),_=R.useState("mounted"),M=R.useState("trackCursorAxis"),A=R.useState("disableHoverablePopup"),D=R.useState("floatingRootContext"),L=R.useState("instantType"),N=R.useState("transitionStatus"),H=Xm({anchor:s,positionMethod:l,floatingRootContext:D,mounted:_,side:u,sideOffset:d,align:f,alignOffset:p,collisionBoundary:g,collisionPadding:m,sticky:E,arrowPadding:v,disableAnchorTracking:b,keepMounted:T,collisionAvoidance:x,adaptiveOrigin:gI}),j=S.useMemo(()=>{const P={};return(!O||M==="both"||A)&&(P.pointerEvents="none"),{role:"presentation",hidden:!_,style:{...H.positionerStyles,...P}}},[O,M,A,_,H.positionerStyles]),F=S.useMemo(()=>({open:O,side:H.side,align:H.align,anchorHidden:H.anchorHidden,instant:M!=="none"?"tracking-cursor":L}),[O,H.side,H.align,H.anchorHidden,M,L]),q=S.useMemo(()=>({...F,arrowRef:H.arrowRef,arrowStyles:H.arrowStyles,arrowUncentered:H.arrowUncentered}),[F,H.arrowRef,H.arrowStyles,H.arrowUncentered]),U=St("div",t,{state:F,props:[j,Lc(N),C],ref:[n,R.useStateSetter("positionerElement")],stateAttributesMapping:Go});return be.jsx(hI.Provider,{value:q,children:U})});function X_(e){const t=no(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r;return(dc(n)!==s||dc(r)!==l)&&(n=s,r=l),{width:n,height:r}}const VH=typeof ResizeObserver<"u",jH=()=>!0;function vI(e){const{popupElement:t,positionerElement:n,content:r,mounted:i,enabled:s=jH,onMeasureLayout:l,onMeasureLayoutComplete:u,side:f,direction:d}=e,p=S.useRef(!0),g=PE(t,!0,!1),m=Mc(),v=S.useRef(null),E=Be(l),b=Be(u),x=S.useMemo(()=>{let C=f==="top",R=f==="left";return d==="rtl"?(C=C||f==="inline-end",R=R||f==="inline-end"):(C=C||f==="inline-start",R=R||f==="inline-start"),C?{position:"absolute",[f==="top"?"bottom":"top"]:"0",[R?"right":"left"]:"0"}:Mn},[f,d]);Ve(()=>{if(!i||!s()||!VH){p.current=!0,v.current=null;return}if(!t||!n)return;Object.entries(x).forEach(([L,N])=>{t.style.setProperty(L,N)});const C=new ResizeObserver(L=>{const N=L[0];N&&(v.current===null?v.current={width:Math.ceil(N.borderBoxSize[0].inlineSize),height:Math.ceil(N.borderBoxSize[0].blockSize)}:(v.current.width=Math.ceil(N.borderBoxSize[0].inlineSize),v.current.height=Math.ceil(N.borderBoxSize[0].blockSize)))});C.observe(t),t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto");const R=Wf(t,"position","static"),T=Wf(t,"transform","none"),O=Wf(t,"scale","1"),_=Wf(n,"--available-width","max-content"),M=Wf(n,"--available-height","max-content");if(E==null||E(),p.current||v.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const L=X_(t);return n.style.setProperty("--positioner-width",`${L.width}px`),n.style.setProperty("--positioner-height",`${L.height}px`),R(),T(),O(),_(),M(),b==null||b(null,L),p.current=!1,()=>{C.disconnect()}}t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto"),n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const A=X_(t);t.style.setProperty("--popup-width",`${v.current.width}px`),t.style.setProperty("--popup-height",`${v.current.height}px`),R(),T(),_(),M(),b==null||b(v.current,A),n.style.setProperty("--positioner-width",`${A.width}px`),n.style.setProperty("--positioner-height",`${A.height}px`);const D=new AbortController;return m.request(()=>{t.style.setProperty("--popup-width",`${A.width}px`),t.style.setProperty("--popup-height",`${A.height}px`),g(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},D.signal)}),()=>{C.disconnect(),D.abort(),m.cancel()}},[r,t,n,g,m,s,i,E,b,x])}function Wf(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const $H={...Go,...Bi},Ete=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,l=qd(),{side:u,align:f}=pI(),d=l.useState("open"),p=l.useState("mounted"),g=l.useState("instantType"),m=l.useState("transitionStatus"),v=l.useState("popupProps"),E=l.useState("payload"),b=l.useState("popupElement"),x=l.useState("positionerElement"),C=l.useState("floatingRootContext"),R=Hl();ci({open:d,ref:l.context.popupRef,onComplete(){var N,H;d&&((H=(N=l.context).onOpenChangeComplete)==null||H.call(N,!0))}});function T(){C.context.events.emit("measure-layout")}function O(N,H){C.context.events.emit("measure-layout-complete",{previousDimensions:N,nextDimensions:H})}const _=S.useCallback(()=>l.context.triggerElements.size>1,[l]);vI({popupElement:b,positionerElement:x,mounted:p,content:E,enabled:_,onMeasureLayout:T,onMeasureLayoutComplete:O,side:u,direction:R});const M=l.useState("disabled"),A=l.useState("closeDelay");NE(C,{enabled:!M,closeDelay:A});const D=S.useMemo(()=>({open:d,side:u,align:f,instant:g,transitionStatus:m}),[d,u,f,g,m]);return St("div",t,{state:D,ref:[n,l.context.popupRef,l.useStateSetter("popupElement")],props:[v,Lc(m),s],stateAttributesMapping:$H})}),wte=S.forwardRef(function(t,n){const{className:r,render:i,...s}=t,u=qd().useState("instantType"),{open:f,arrowRef:d,side:p,align:g,arrowUncentered:m,arrowStyles:v}=pI(),E=S.useMemo(()=>({open:f,side:p,align:g,uncentered:m,instant:u}),[f,p,g,m,u]);return St("div",t,{state:E,ref:[n,d],props:[{style:v,"aria-hidden":!0},s],stateAttributesMapping:Go})}),Rte=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,s=S.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=S.useMemo(()=>({open:n,close:r}),[n,r]);return be.jsx(fI.Provider,{value:s,children:be.jsx(wF,{delay:l,timeoutMs:i,children:t.children})})};function Wm(e){return OE(19)?e:e?"true":void 0}var Pc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Tl=typeof window>"u"||"Deno"in globalThis;function Ir(){}function qH(e,t){return typeof e=="function"?e(t):e}function Gb(e){return typeof e=="number"&&e>=0&&e!==1/0}function yI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ba(e,t){return typeof e=="function"?e(t):e}function No(e,t){return typeof e=="function"?e(t):e}function W_(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==VE(l,t.options))return!1}else if(!Sd(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||s&&!s(t))}function K_(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(_l(t.options.mutationKey)!==_l(s))return!1}else if(!Sd(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function VE(e,t){return((t==null?void 0:t.queryKeyHashFn)||_l)(e)}function _l(e){return JSON.stringify(e,(t,n)=>Yb(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Sd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Sd(e[n],t[n])):!1}var GH=Object.prototype.hasOwnProperty;function bI(e,t){if(e===t)return e;const n=Q_(e)&&Q_(t);if(!n&&!(Yb(e)&&Yb(t)))return t;const i=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),l=s.length,u=n?new Array(l):{};let f=0;for(let d=0;d<l;d++){const p=n?d:s[d],g=e[p],m=t[p];if(g===m){u[p]=g,(n?d<i:GH.call(e,p))&&f++;continue}if(g===null||m===null||typeof g!="object"||typeof m!="object"){u[p]=m;continue}const v=bI(g,m);u[p]=v,v===g&&f++}return i===l&&f===i?e:u}function Jg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Q_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Yb(e){if(!J_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!J_(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function J_(e){return Object.prototype.toString.call(e)==="[object Object]"}function YH(e){return new Promise(t=>{setTimeout(t,e)})}function Xb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?bI(e,t):t}function XH(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function WH(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var jE=Symbol();function SI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===jE?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function EI(e,t){return typeof e=="function"?e(...t):!!e}var ul,ra,Ju,RM,KH=(RM=class extends Pc{constructor(){super();it(this,ul);it(this,ra);it(this,Ju);Xe(this,Ju,t=>{if(!Tl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ee(this,ra)||this.setEventListener(ee(this,Ju))}onUnsubscribe(){var t;this.hasListeners()||((t=ee(this,ra))==null||t.call(this),Xe(this,ra,void 0))}setEventListener(t){var n;Xe(this,Ju,t),(n=ee(this,ra))==null||n.call(this),Xe(this,ra,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ee(this,ul)!==t&&(Xe(this,ul,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ee(this,ul)=="boolean"?ee(this,ul):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ul=new WeakMap,ra=new WeakMap,Ju=new WeakMap,RM),$E=new KH,Zu,oa,ec,xM,QH=(xM=class extends Pc{constructor(){super();it(this,Zu,!0);it(this,oa);it(this,ec);Xe(this,ec,t=>{if(!Tl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ee(this,oa)||this.setEventListener(ee(this,ec))}onUnsubscribe(){var t;this.hasListeners()||((t=ee(this,oa))==null||t.call(this),Xe(this,oa,void 0))}setEventListener(t){var n;Xe(this,ec,t),(n=ee(this,oa))==null||n.call(this),Xe(this,oa,t(this.setOnline.bind(this)))}setOnline(t){ee(this,Zu)!==t&&(Xe(this,Zu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ee(this,Zu)}},Zu=new WeakMap,oa=new WeakMap,ec=new WeakMap,xM),Zg=new QH;function Wb(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function JH(e){return Math.min(1e3*2**e,3e4)}function wI(e){return(e??"online")==="online"?Zg.isOnline():!0}var Kb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function RI(e){let t=!1,n=0,r;const i=Wb(),s=()=>i.status!=="pending",l=b=>{var x;if(!s()){const C=new Kb(b);m(C),(x=e.onCancel)==null||x.call(e,C)}},u=()=>{t=!0},f=()=>{t=!1},d=()=>$E.isFocused()&&(e.networkMode==="always"||Zg.isOnline())&&e.canRun(),p=()=>wI(e.networkMode)&&e.canRun(),g=b=>{s()||(r==null||r(),i.resolve(b))},m=b=>{s()||(r==null||r(),i.reject(b))},v=()=>new Promise(b=>{var x;r=C=>{(s()||d())&&b(C)},(x=e.onPause)==null||x.call(e)}).then(()=>{var b;r=void 0,s()||(b=e.onContinue)==null||b.call(e)}),E=()=>{if(s())return;let b;const x=n===0?e.initialPromise:void 0;try{b=x??e.fn()}catch(C){b=Promise.reject(C)}Promise.resolve(b).then(g).catch(C=>{var M;if(s())return;const R=e.retry??(Tl?0:3),T=e.retryDelay??JH,O=typeof T=="function"?T(n,C):T,_=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,C);if(t||!_){m(C);return}n++,(M=e.onFail)==null||M.call(e,n,C),YH(O).then(()=>d()?void 0:v()).then(()=>{t?m(C):E()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:f,canStart:p,start:()=>(p()?E():v().then(E),i)}}var ZH=e=>setTimeout(e,0);function eB(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=ZH;const s=u=>{t?e.push(u):i(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{s(()=>{u(...f)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var or=eB(),cl,CM,xI=(CM=class{constructor(){it(this,cl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gb(this.gcTime)&&Xe(this,cl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tl?1/0:5*60*1e3))}clearGcTimeout(){ee(this,cl)&&(clearTimeout(ee(this,cl)),Xe(this,cl,void 0))}},cl=new WeakMap,CM),tc,nc,ko,fl,lr,Bd,dl,Qo,cs,TM,tB=(TM=class extends xI{constructor(t){super();it(this,Qo);it(this,tc);it(this,nc);it(this,ko);it(this,fl);it(this,lr);it(this,Bd);it(this,dl);Xe(this,dl,!1),Xe(this,Bd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Xe(this,fl,t.client),Xe(this,ko,ee(this,fl).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Xe(this,tc,nB(this.options)),this.state=t.state??ee(this,tc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ee(this,lr))==null?void 0:t.promise}setOptions(t){this.options={...ee(this,Bd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ee(this,ko).remove(this)}setData(t,n){const r=Xb(this.state.data,t,this.options);return Ot(this,Qo,cs).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ot(this,Qo,cs).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=ee(this,lr))==null?void 0:r.promise;return(i=ee(this,lr))==null||i.cancel(t),n?n.then(Ir).catch(Ir):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ee(this,tc))}isActive(){return this.observers.some(t=>No(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jE||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ba(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!yI(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ee(this,lr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ee(this,lr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ee(this,ko).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ee(this,lr)&&(ee(this,dl)?ee(this,lr).cancel({revert:!0}):ee(this,lr).cancelRetry()),this.scheduleGc()),ee(this,ko).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ot(this,Qo,cs).call(this,{type:"invalidate"})}async fetch(t,n){var f,d,p,g,m,v,E,b,x,C,R,T;if(this.state.fetchStatus!=="idle"&&((f=ee(this,lr))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ee(this,lr))return ee(this,lr).continueRetry(),ee(this,lr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const O=this.observers.find(_=>_.options.queryFn);O&&this.setOptions(O.options)}const r=new AbortController,i=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(Xe(this,dl,!0),r.signal)})},s=()=>{const O=SI(this.options,n),M=(()=>{const A={client:ee(this,fl),queryKey:this.queryKey,meta:this.meta};return i(A),A})();return Xe(this,dl,!1),this.options.persister?this.options.persister(O,M,this):O(M)},u=(()=>{const O={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ee(this,fl),state:this.state,fetchFn:s};return i(O),O})();(d=this.options.behavior)==null||d.onFetch(u,this),Xe(this,nc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&Ot(this,Qo,cs).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta}),Xe(this,lr,RI({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:O=>{O instanceof Kb&&O.revert&&this.setState({...ee(this,nc),fetchStatus:"idle"}),r.abort()},onFail:(O,_)=>{Ot(this,Qo,cs).call(this,{type:"failed",failureCount:O,error:_})},onPause:()=>{Ot(this,Qo,cs).call(this,{type:"pause"})},onContinue:()=>{Ot(this,Qo,cs).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const O=await ee(this,lr).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(v=(m=ee(this,ko).config).onSuccess)==null||v.call(m,O,this),(b=(E=ee(this,ko).config).onSettled)==null||b.call(E,O,this.state.error,this),O}catch(O){if(O instanceof Kb){if(O.silent)return ee(this,lr).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw Ot(this,Qo,cs).call(this,{type:"error",error:O}),(C=(x=ee(this,ko).config).onError)==null||C.call(x,O,this),(T=(R=ee(this,ko).config).onSettled)==null||T.call(R,this.state.data,O,this),O}finally{this.scheduleGc()}}},tc=new WeakMap,nc=new WeakMap,ko=new WeakMap,fl=new WeakMap,lr=new WeakMap,Bd=new WeakMap,dl=new WeakMap,Qo=new WeakSet,cs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...CI(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Xe(this,nc,t.manual?i:void 0),i;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),or.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ee(this,ko).notify({query:this,type:"updated",action:t})})},TM);function CI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function nB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var bi,_M,rB=(_M=class extends Pc{constructor(t={}){super();it(this,bi);this.config=t,Xe(this,bi,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??VE(i,n);let l=this.get(s);return l||(l=new tB({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){ee(this,bi).has(t.queryHash)||(ee(this,bi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ee(this,bi).get(t.queryHash);n&&(t.destroy(),n===t&&ee(this,bi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){or.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ee(this,bi).get(t)}getAll(){return[...ee(this,bi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>W_(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>W_(t,r)):n}notify(t){or.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){or.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){or.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},bi=new WeakMap,_M),Si,Ar,hl,Ei,ta,AM,oB=(AM=class extends xI{constructor(t){super();it(this,Ei);it(this,Si);it(this,Ar);it(this,hl);this.mutationId=t.mutationId,Xe(this,Ar,t.mutationCache),Xe(this,Si,[]),this.state=t.state||TI(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ee(this,Si).includes(t)||(ee(this,Si).push(t),this.clearGcTimeout(),ee(this,Ar).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Xe(this,Si,ee(this,Si).filter(n=>n!==t)),this.scheduleGc(),ee(this,Ar).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ee(this,Si).length||(this.state.status==="pending"?this.scheduleGc():ee(this,Ar).remove(this))}continue(){var t;return((t=ee(this,hl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,u,f,d,p,g,m,v,E,b,x,C,R,T,O,_,M,A,D;const n=()=>{Ot(this,Ei,ta).call(this,{type:"continue"})};Xe(this,hl,RI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,N)=>{Ot(this,Ei,ta).call(this,{type:"failed",failureCount:L,error:N})},onPause:()=>{Ot(this,Ei,ta).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ee(this,Ar).canRun(this)}));const r=this.state.status==="pending",i=!ee(this,hl).canStart();try{if(r)n();else{Ot(this,Ei,ta).call(this,{type:"pending",variables:t,isPaused:i}),await((l=(s=ee(this,Ar).config).onMutate)==null?void 0:l.call(s,t,this));const N=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,t));N!==this.state.context&&Ot(this,Ei,ta).call(this,{type:"pending",context:N,variables:t,isPaused:i})}const L=await ee(this,hl).start();return await((p=(d=ee(this,Ar).config).onSuccess)==null?void 0:p.call(d,L,t,this.state.context,this)),await((m=(g=this.options).onSuccess)==null?void 0:m.call(g,L,t,this.state.context)),await((E=(v=ee(this,Ar).config).onSettled)==null?void 0:E.call(v,L,null,this.state.variables,this.state.context,this)),await((x=(b=this.options).onSettled)==null?void 0:x.call(b,L,null,t,this.state.context)),Ot(this,Ei,ta).call(this,{type:"success",data:L}),L}catch(L){try{throw await((R=(C=ee(this,Ar).config).onError)==null?void 0:R.call(C,L,t,this.state.context,this)),await((O=(T=this.options).onError)==null?void 0:O.call(T,L,t,this.state.context)),await((M=(_=ee(this,Ar).config).onSettled)==null?void 0:M.call(_,void 0,L,this.state.variables,this.state.context,this)),await((D=(A=this.options).onSettled)==null?void 0:D.call(A,void 0,L,t,this.state.context)),L}finally{Ot(this,Ei,ta).call(this,{type:"error",error:L})}}finally{ee(this,Ar).runNext(this)}}},Si=new WeakMap,Ar=new WeakMap,hl=new WeakMap,Ei=new WeakSet,ta=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),or.batch(()=>{ee(this,Si).forEach(r=>{r.onMutationUpdate(t)}),ee(this,Ar).notify({mutation:this,type:"updated",action:t})})},AM);function TI(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hs,Jo,Ud,OM,iB=(OM=class extends Pc{constructor(t={}){super();it(this,hs);it(this,Jo);it(this,Ud);this.config=t,Xe(this,hs,new Set),Xe(this,Jo,new Map),Xe(this,Ud,0)}build(t,n,r){const i=new oB({mutationCache:this,mutationId:++kp(this,Ud)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ee(this,hs).add(t);const n=qp(t);if(typeof n=="string"){const r=ee(this,Jo).get(n);r?r.push(t):ee(this,Jo).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ee(this,hs).delete(t)){const n=qp(t);if(typeof n=="string"){const r=ee(this,Jo).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&ee(this,Jo).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=qp(t);if(typeof n=="string"){const r=ee(this,Jo).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=qp(t);if(typeof n=="string"){const i=(r=ee(this,Jo).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){or.batch(()=>{ee(this,hs).forEach(t=>{this.notify({type:"removed",mutation:t})}),ee(this,hs).clear(),ee(this,Jo).clear()})}getAll(){return Array.from(ee(this,hs))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>K_(n,r))}findAll(t={}){return this.getAll().filter(n=>K_(t,n))}notify(t){or.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return or.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ir))))}},hs=new WeakMap,Jo=new WeakMap,Ud=new WeakMap,OM);function qp(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Z_(e){return{onFetch:(t,n)=>{var p,g,m,v,E;const r=t.options,i=(m=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:m.direction,s=((v=t.state.data)==null?void 0:v.pages)||[],l=((E=t.state.data)==null?void 0:E.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const d=async()=>{let b=!1;const x=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},C=SI(t.options,t.fetchOptions),R=async(T,O,_)=>{if(b)return Promise.reject();if(O==null&&T.pages.length)return Promise.resolve(T);const A=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:O,direction:_?"backward":"forward",meta:t.options.meta};return x(H),H})(),D=await C(A),{maxPages:L}=t.options,N=_?WH:XH;return{pages:N(T.pages,D,L),pageParams:N(T.pageParams,O,L)}};if(i&&s.length){const T=i==="backward",O=T?sB:e2,_={pages:s,pageParams:l},M=O(r,_);u=await R(_,M,T)}else{const T=e??s.length;do{const O=f===0?l[0]??r.initialPageParam:e2(r,u);if(f>0&&O==null)break;u=await R(u,O),f++}while(f<T)}return u};t.options.persister?t.fetchFn=()=>{var b,x;return(x=(b=t.options).persister)==null?void 0:x.call(b,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function e2(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function sB(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var kn,ia,sa,rc,oc,aa,ic,sc,MM,xte=(MM=class{constructor(e={}){it(this,kn);it(this,ia);it(this,sa);it(this,rc);it(this,oc);it(this,aa);it(this,ic);it(this,sc);Xe(this,kn,e.queryCache||new rB),Xe(this,ia,e.mutationCache||new iB),Xe(this,sa,e.defaultOptions||{}),Xe(this,rc,new Map),Xe(this,oc,new Map),Xe(this,aa,0)}mount(){kp(this,aa)._++,ee(this,aa)===1&&(Xe(this,ic,$E.subscribe(async e=>{e&&(await this.resumePausedMutations(),ee(this,kn).onFocus())})),Xe(this,sc,Zg.subscribe(async e=>{e&&(await this.resumePausedMutations(),ee(this,kn).onOnline())})))}unmount(){var e,t;kp(this,aa)._--,ee(this,aa)===0&&((e=ee(this,ic))==null||e.call(this),Xe(this,ic,void 0),(t=ee(this,sc))==null||t.call(this),Xe(this,sc,void 0))}isFetching(e){return ee(this,kn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ee(this,ia).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ee(this,kn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=ee(this,kn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ba(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return ee(this,kn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=ee(this,kn).get(r.queryHash),s=i==null?void 0:i.state.data,l=qH(t,s);if(l!==void 0)return ee(this,kn).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return or.batch(()=>ee(this,kn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ee(this,kn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ee(this,kn);or.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ee(this,kn);return or.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=or.batch(()=>ee(this,kn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ir).catch(Ir)}invalidateQueries(e,t={}){return or.batch(()=>(ee(this,kn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=or.batch(()=>ee(this,kn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ir)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ir)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ee(this,kn).build(this,t);return n.isStaleByTime(ba(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ir).catch(Ir)}fetchInfiniteQuery(e){return e.behavior=Z_(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ir).catch(Ir)}ensureInfiniteQueryData(e){return e.behavior=Z_(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zg.isOnline()?ee(this,ia).resumePausedMutations():Promise.resolve()}getQueryCache(){return ee(this,kn)}getMutationCache(){return ee(this,ia)}getDefaultOptions(){return ee(this,sa)}setDefaultOptions(e){Xe(this,sa,e)}setQueryDefaults(e,t){ee(this,rc).set(_l(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ee(this,rc).values()],n={};return t.forEach(r=>{Sd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){ee(this,oc).set(_l(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ee(this,oc).values()],n={};return t.forEach(r=>{Sd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ee(this,sa).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VE(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===jE&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ee(this,sa).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ee(this,kn).clear(),ee(this,ia).clear()}},kn=new WeakMap,ia=new WeakMap,sa=new WeakMap,rc=new WeakMap,oc=new WeakMap,aa=new WeakMap,ic=new WeakMap,sc=new WeakMap,MM),Yr,zt,Vd,Or,pl,ac,ps,la,jd,lc,uc,gl,ml,ua,cc,en,nd,Qb,Jb,Zb,eS,tS,nS,rS,_I,IM,aB=(IM=class extends Pc{constructor(t,n){super();it(this,en);it(this,Yr);it(this,zt);it(this,Vd);it(this,Or);it(this,pl);it(this,ac);it(this,ps);it(this,la);it(this,jd);it(this,lc);it(this,uc);it(this,gl);it(this,ml);it(this,ua);it(this,cc,new Set);this.options=n,Xe(this,Yr,t),Xe(this,la,null),Xe(this,ps,Wb()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ee(this,zt).addObserver(this),t2(ee(this,zt),this.options)?Ot(this,en,nd).call(this):this.updateResult(),Ot(this,en,eS).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return oS(ee(this,zt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return oS(ee(this,zt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ot(this,en,tS).call(this),Ot(this,en,nS).call(this),ee(this,zt).removeObserver(this)}setOptions(t){const n=this.options,r=ee(this,zt);if(this.options=ee(this,Yr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof No(this.options.enabled,ee(this,zt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ot(this,en,rS).call(this),ee(this,zt).setOptions(this.options),n._defaulted&&!Jg(this.options,n)&&ee(this,Yr).getQueryCache().notify({type:"observerOptionsUpdated",query:ee(this,zt),observer:this});const i=this.hasListeners();i&&n2(ee(this,zt),r,this.options,n)&&Ot(this,en,nd).call(this),this.updateResult(),i&&(ee(this,zt)!==r||No(this.options.enabled,ee(this,zt))!==No(n.enabled,ee(this,zt))||ba(this.options.staleTime,ee(this,zt))!==ba(n.staleTime,ee(this,zt)))&&Ot(this,en,Qb).call(this);const s=Ot(this,en,Jb).call(this);i&&(ee(this,zt)!==r||No(this.options.enabled,ee(this,zt))!==No(n.enabled,ee(this,zt))||s!==ee(this,ua))&&Ot(this,en,Zb).call(this,s)}getOptimisticResult(t){const n=ee(this,Yr).getQueryCache().build(ee(this,Yr),t),r=this.createResult(n,t);return uB(this,r)&&(Xe(this,Or,r),Xe(this,ac,this.options),Xe(this,pl,ee(this,zt).state)),r}getCurrentResult(){return ee(this,Or)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&ee(this,ps).status==="pending"&&ee(this,ps).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){ee(this,cc).add(t)}getCurrentQuery(){return ee(this,zt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ee(this,Yr).defaultQueryOptions(t),r=ee(this,Yr).getQueryCache().build(ee(this,Yr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ot(this,en,nd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ee(this,Or)))}createResult(t,n){var L;const r=ee(this,zt),i=this.options,s=ee(this,Or),l=ee(this,pl),u=ee(this,ac),d=t!==r?t.state:ee(this,Vd),{state:p}=t;let g={...p},m=!1,v;if(n._optimisticResults){const N=this.hasListeners(),H=!N&&t2(t,n),j=N&&n2(t,r,n,i);(H||j)&&(g={...g,...CI(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:b,status:x}=g;v=g.data;let C=!1;if(n.placeholderData!==void 0&&v===void 0&&x==="pending"){let N;s!=null&&s.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(N=s.data,C=!0):N=typeof n.placeholderData=="function"?n.placeholderData((L=ee(this,uc))==null?void 0:L.state.data,ee(this,uc)):n.placeholderData,N!==void 0&&(x="success",v=Xb(s==null?void 0:s.data,N,n),m=!0)}if(n.select&&v!==void 0&&!C)if(s&&v===(l==null?void 0:l.data)&&n.select===ee(this,jd))v=ee(this,lc);else try{Xe(this,jd,n.select),v=n.select(v),v=Xb(s==null?void 0:s.data,v,n),Xe(this,lc,v),Xe(this,la,null)}catch(N){Xe(this,la,N)}ee(this,la)&&(E=ee(this,la),v=ee(this,lc),b=Date.now(),x="error");const R=g.fetchStatus==="fetching",T=x==="pending",O=x==="error",_=T&&R,M=v!==void 0,D={status:x,fetchStatus:g.fetchStatus,isPending:T,isSuccess:x==="success",isError:O,isInitialLoading:_,isLoading:_,data:v,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:O&&!M,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:O&&M,isStale:qE(t,n),refetch:this.refetch,promise:ee(this,ps),isEnabled:No(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=F=>{D.status==="error"?F.reject(D.error):D.data!==void 0&&F.resolve(D.data)},H=()=>{const F=Xe(this,ps,D.promise=Wb());N(F)},j=ee(this,ps);switch(j.status){case"pending":t.queryHash===r.queryHash&&N(j);break;case"fulfilled":(D.status==="error"||D.data!==j.value)&&H();break;case"rejected":(D.status!=="error"||D.error!==j.reason)&&H();break}}return D}updateResult(){const t=ee(this,Or),n=this.createResult(ee(this,zt),this.options);if(Xe(this,pl,ee(this,zt).state),Xe(this,ac,this.options),ee(this,pl).data!==void 0&&Xe(this,uc,ee(this,zt)),Jg(n,t))return;Xe(this,Or,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!ee(this,cc).size)return!0;const l=new Set(s??ee(this,cc));return this.options.throwOnError&&l.add("error"),Object.keys(ee(this,Or)).some(u=>{const f=u;return ee(this,Or)[f]!==t[f]&&l.has(f)})};Ot(this,en,_I).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ot(this,en,eS).call(this)}},Yr=new WeakMap,zt=new WeakMap,Vd=new WeakMap,Or=new WeakMap,pl=new WeakMap,ac=new WeakMap,ps=new WeakMap,la=new WeakMap,jd=new WeakMap,lc=new WeakMap,uc=new WeakMap,gl=new WeakMap,ml=new WeakMap,ua=new WeakMap,cc=new WeakMap,en=new WeakSet,nd=function(t){Ot(this,en,rS).call(this);let n=ee(this,zt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ir)),n},Qb=function(){Ot(this,en,tS).call(this);const t=ba(this.options.staleTime,ee(this,zt));if(Tl||ee(this,Or).isStale||!Gb(t))return;const r=yI(ee(this,Or).dataUpdatedAt,t)+1;Xe(this,gl,setTimeout(()=>{ee(this,Or).isStale||this.updateResult()},r))},Jb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ee(this,zt)):this.options.refetchInterval)??!1},Zb=function(t){Ot(this,en,nS).call(this),Xe(this,ua,t),!(Tl||No(this.options.enabled,ee(this,zt))===!1||!Gb(ee(this,ua))||ee(this,ua)===0)&&Xe(this,ml,setInterval(()=>{(this.options.refetchIntervalInBackground||$E.isFocused())&&Ot(this,en,nd).call(this)},ee(this,ua)))},eS=function(){Ot(this,en,Qb).call(this),Ot(this,en,Zb).call(this,Ot(this,en,Jb).call(this))},tS=function(){ee(this,gl)&&(clearTimeout(ee(this,gl)),Xe(this,gl,void 0))},nS=function(){ee(this,ml)&&(clearInterval(ee(this,ml)),Xe(this,ml,void 0))},rS=function(){const t=ee(this,Yr).getQueryCache().build(ee(this,Yr),this.options);if(t===ee(this,zt))return;const n=ee(this,zt);Xe(this,zt,t),Xe(this,Vd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},_I=function(t){or.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ee(this,Or))}),ee(this,Yr).getQueryCache().notify({query:ee(this,zt),type:"observerResultsUpdated"})})},IM);function lB(e,t){return No(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function t2(e,t){return lB(e,t)||e.state.data!==void 0&&oS(e,t,t.refetchOnMount)}function oS(e,t,n){if(No(t.enabled,e)!==!1&&ba(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qE(e,t)}return!1}function n2(e,t,n,r){return(e!==t||No(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&qE(e,n)}function qE(e,t){return No(t.enabled,e)!==!1&&e.isStaleByTime(ba(t.staleTime,e))}function uB(e,t){return!Jg(e.getCurrentResult(),t)}var ca,fa,Xr,gs,Es,Cg,iS,DM,cB=(DM=class extends Pc{constructor(n,r){super();it(this,Es);it(this,ca);it(this,fa);it(this,Xr);it(this,gs);Xe(this,ca,n),this.setOptions(r),this.bindMethods(),Ot(this,Es,Cg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=ee(this,ca).defaultMutationOptions(n),Jg(this.options,r)||ee(this,ca).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ee(this,Xr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&_l(r.mutationKey)!==_l(this.options.mutationKey)?this.reset():((i=ee(this,Xr))==null?void 0:i.state.status)==="pending"&&ee(this,Xr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ee(this,Xr))==null||n.removeObserver(this)}onMutationUpdate(n){Ot(this,Es,Cg).call(this),Ot(this,Es,iS).call(this,n)}getCurrentResult(){return ee(this,fa)}reset(){var n;(n=ee(this,Xr))==null||n.removeObserver(this),Xe(this,Xr,void 0),Ot(this,Es,Cg).call(this),Ot(this,Es,iS).call(this)}mutate(n,r){var i;return Xe(this,gs,r),(i=ee(this,Xr))==null||i.removeObserver(this),Xe(this,Xr,ee(this,ca).getMutationCache().build(ee(this,ca),this.options)),ee(this,Xr).addObserver(this),ee(this,Xr).execute(n)}},ca=new WeakMap,fa=new WeakMap,Xr=new WeakMap,gs=new WeakMap,Es=new WeakSet,Cg=function(){var r;const n=((r=ee(this,Xr))==null?void 0:r.state)??TI();Xe(this,fa,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},iS=function(n){or.batch(()=>{var r,i,s,l,u,f,d,p;if(ee(this,gs)&&this.hasListeners()){const g=ee(this,fa).variables,m=ee(this,fa).context;(n==null?void 0:n.type)==="success"?((i=(r=ee(this,gs)).onSuccess)==null||i.call(r,n.data,g,m),(l=(s=ee(this,gs)).onSettled)==null||l.call(s,n.data,null,g,m)):(n==null?void 0:n.type)==="error"&&((f=(u=ee(this,gs)).onError)==null||f.call(u,n.error,g,m),(p=(d=ee(this,gs)).onSettled)==null||p.call(d,void 0,n.error,g,m))}this.listeners.forEach(g=>{g(ee(this,fa))})})},DM),AI=S.createContext(void 0),OI=e=>{const t=S.useContext(AI);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tte=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),be.jsx(AI.Provider,{value:e,children:t})),MI=S.createContext(!1),fB=()=>S.useContext(MI);MI.Provider;function dB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var hB=S.createContext(dB()),pB=()=>S.useContext(hB),gB=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},mB=e=>{S.useEffect(()=>{e.clearReset()},[e])},vB=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||EI(n,[e.error,r])),yB=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},bB=(e,t)=>e.isLoading&&e.isFetching&&!t,SB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,r2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function EB(e,t,n){var g,m,v,E,b;const r=fB(),i=pB(),s=OI(),l=s.defaultQueryOptions(e);(m=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||m.call(g,l),l._optimisticResults=r?"isRestoring":"optimistic",yB(l),gB(l,i),mB(i);const u=!s.getQueryCache().get(l.queryHash),[f]=S.useState(()=>new t(s,l)),d=f.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(x=>{const C=p?f.subscribe(or.batchCalls(x)):Ir;return f.updateResult(),C},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),S.useEffect(()=>{f.setOptions(l)},[l,f]),SB(l,d))throw r2(l,f,i);if(vB({result:d,errorResetBoundary:i,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if((E=(v=s.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||E.call(v,l,d),l.experimental_prefetchInRender&&!Tl&&bB(d,r)){const x=u?r2(l,f,i):(b=s.getQueryCache().get(l.queryHash))==null?void 0:b.promise;x==null||x.catch(Ir).finally(()=>{f.updateResult()})}return l.notifyOnChangeProps?d:f.trackResult(d)}function _te(e,t){return EB(e,aB)}function Ate(e,t){const n=OI(),[r]=S.useState(()=>new cB(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const i=S.useSyncExternalStore(S.useCallback(l=>r.subscribe(or.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((l,u)=>{r.mutate(l,u).catch(Ir)},[r]);if(i.error&&EI(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const wB="modulepreload",RB=function(e,t){return new URL(e,t).href},o2={},Ote=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const u=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),d=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));i=l(n.map(p=>{if(p=RB(p,r),p in o2)return;o2[p]=!0;const g=p.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(!!r)for(let b=u.length-1;b>=0;b--){const x=u[b];if(x.href===p&&(!g||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${p}"]${m}`))return;const E=document.createElement("link");if(E.rel=g?"stylesheet":wB,g||(E.as="script"),E.crossOrigin="",E.href=p,d&&E.setAttribute("nonce",d),document.head.appendChild(E),g)return new Promise((b,x)=>{E.addEventListener("load",b),E.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return i.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};var Mte=function(){return null};function II(e,t){return function(){return e.apply(t,arguments)}}const{toString:xB}=Object.prototype,{getPrototypeOf:GE}=Object,{iterator:Km,toStringTag:DI}=Symbol,Qm=(e=>t=>{const n=xB.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fi=e=>(e=e.toLowerCase(),t=>Qm(t)===e),Jm=e=>t=>typeof t===e,{isArray:kc}=Array,gc=Jm("undefined");function Qd(e){return e!==null&&!gc(e)&&e.constructor!==null&&!gc(e.constructor)&&Jr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const LI=fi("ArrayBuffer");function CB(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&LI(e.buffer),t}const TB=Jm("string"),Jr=Jm("function"),PI=Jm("number"),Jd=e=>e!==null&&typeof e=="object",_B=e=>e===!0||e===!1,Tg=e=>{if(Qm(e)!=="object")return!1;const t=GE(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(DI in e)&&!(Km in e)},AB=e=>{if(!Jd(e)||Qd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},OB=fi("Date"),MB=fi("File"),IB=fi("Blob"),DB=fi("FileList"),LB=e=>Jd(e)&&Jr(e.pipe),PB=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jr(e.append)&&((t=Qm(e))==="formdata"||t==="object"&&Jr(e.toString)&&e.toString()==="[object FormData]"))},kB=fi("URLSearchParams"),[NB,FB,zB,HB]=["ReadableStream","Request","Response","Headers"].map(fi),BB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),kc(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Qd(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function kI(e,t){if(Qd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,NI=e=>!gc(e)&&e!==ol;function sS(){const{caseless:e,skipUndefined:t}=NI(this)&&this||{},n={},r=(i,s)=>{const l=e&&kI(n,s)||s;Tg(n[l])&&Tg(i)?n[l]=sS(n[l],i):Tg(i)?n[l]=sS({},i):kc(i)?n[l]=i.slice():(!t||!gc(i))&&(n[l]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Zd(arguments[i],r);return n}const UB=(e,t,n,{allOwnKeys:r}={})=>(Zd(t,(i,s)=>{n&&Jr(i)?e[s]=II(i,n):e[s]=i},{allOwnKeys:r}),e),VB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jB=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},$B=(e,t,n,r)=>{let i,s,l;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)l=i[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&GE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qB=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},GB=e=>{if(!e)return null;if(kc(e))return e;let t=e.length;if(!PI(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},YB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&GE(Uint8Array)),XB=(e,t)=>{const r=(e&&e[Km]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},WB=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},KB=fi("HTMLFormElement"),QB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),i2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),JB=fi("RegExp"),FI=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zd(n,(i,s)=>{let l;(l=t(i,s,e))!==!1&&(r[s]=l||i)}),Object.defineProperties(e,r)},ZB=e=>{FI(e,(t,n)=>{if(Jr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Jr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},e7=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return kc(e)?r(e):r(String(e).split(t)),n},t7=()=>{},n7=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function r7(e){return!!(e&&Jr(e.append)&&e[DI]==="FormData"&&e[Km])}const o7=e=>{const t=new Array(10),n=(r,i)=>{if(Jd(r)){if(t.indexOf(r)>=0)return;if(Qd(r))return r;if(!("toJSON"in r)){t[i]=r;const s=kc(r)?[]:{};return Zd(r,(l,u)=>{const f=n(l,i+1);!gc(f)&&(s[u]=f)}),t[i]=void 0,s}}return r};return n(e,0)},i7=fi("AsyncFunction"),s7=e=>e&&(Jd(e)||Jr(e))&&Jr(e.then)&&Jr(e.catch),zI=((e,t)=>e?setImmediate:t?((n,r)=>(ol.addEventListener("message",({source:i,data:s})=>{i===ol&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ol.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jr(ol.postMessage)),a7=typeof queueMicrotask<"u"?queueMicrotask.bind(ol):typeof process<"u"&&process.nextTick||zI,l7=e=>e!=null&&Jr(e[Km]),Ee={isArray:kc,isArrayBuffer:LI,isBuffer:Qd,isFormData:PB,isArrayBufferView:CB,isString:TB,isNumber:PI,isBoolean:_B,isObject:Jd,isPlainObject:Tg,isEmptyObject:AB,isReadableStream:NB,isRequest:FB,isResponse:zB,isHeaders:HB,isUndefined:gc,isDate:OB,isFile:MB,isBlob:IB,isRegExp:JB,isFunction:Jr,isStream:LB,isURLSearchParams:kB,isTypedArray:YB,isFileList:DB,forEach:Zd,merge:sS,extend:UB,trim:BB,stripBOM:VB,inherits:jB,toFlatObject:$B,kindOf:Qm,kindOfTest:fi,endsWith:qB,toArray:GB,forEachEntry:XB,matchAll:WB,isHTMLForm:KB,hasOwnProperty:i2,hasOwnProp:i2,reduceDescriptors:FI,freezeMethods:ZB,toObjectSet:e7,toCamelCase:QB,noop:t7,toFiniteNumber:n7,findKey:kI,global:ol,isContextDefined:NI,isSpecCompliantForm:r7,toJSONObject:o7,isAsyncFn:i7,isThenable:s7,setImmediate:zI,asap:a7,isIterable:l7};function Rt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Ee.inherits(Rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.status}}});const HI=Rt.prototype,BI={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{BI[e]={value:e}});Object.defineProperties(Rt,BI);Object.defineProperty(HI,"isAxiosError",{value:!0});Rt.from=(e,t,n,r,i,s)=>{const l=Object.create(HI);Ee.toFlatObject(e,l,function(p){return p!==Error.prototype},d=>d!=="isAxiosError");const u=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return Rt.call(l,u,f,n,r,i),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",s&&Object.assign(l,s),l};const u7=null;function aS(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function UI(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function s2(e,t,n){return e?e.concat(t).map(function(i,s){return i=UI(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function c7(e){return Ee.isArray(e)&&!e.some(aS)}const f7=Ee.toFlatObject(Ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Zm(e,t,n){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,x){return!Ee.isUndefined(x[b])});const r=n.metaTokens,i=n.visitor||p,s=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(i))throw new TypeError("visitor must be a function");function d(E){if(E===null)return"";if(Ee.isDate(E))return E.toISOString();if(Ee.isBoolean(E))return E.toString();if(!f&&Ee.isBlob(E))throw new Rt("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(E)||Ee.isTypedArray(E)?f&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function p(E,b,x){let C=E;if(E&&!x&&typeof E=="object"){if(Ee.endsWith(b,"{}"))b=r?b:b.slice(0,-2),E=JSON.stringify(E);else if(Ee.isArray(E)&&c7(E)||(Ee.isFileList(E)||Ee.endsWith(b,"[]"))&&(C=Ee.toArray(E)))return b=UI(b),C.forEach(function(T,O){!(Ee.isUndefined(T)||T===null)&&t.append(l===!0?s2([b],O,s):l===null?b:b+"[]",d(T))}),!1}return aS(E)?!0:(t.append(s2(x,b,s),d(E)),!1)}const g=[],m=Object.assign(f7,{defaultVisitor:p,convertValue:d,isVisitable:aS});function v(E,b){if(!Ee.isUndefined(E)){if(g.indexOf(E)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(E),Ee.forEach(E,function(C,R){(!(Ee.isUndefined(C)||C===null)&&i.call(t,C,Ee.isString(R)?R.trim():R,b,m))===!0&&v(C,b?b.concat(R):[R])}),g.pop()}}if(!Ee.isObject(e))throw new TypeError("data must be an object");return v(e),t}function a2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function YE(e,t){this._pairs=[],e&&Zm(e,this,t)}const VI=YE.prototype;VI.append=function(t,n){this._pairs.push([t,n])};VI.toString=function(t){const n=t?function(r){return t.call(this,r,a2)}:a2;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function d7(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jI(e,t,n){if(!t)return e;const r=n&&n.encode||d7;Ee.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=Ee.isURLSearchParams(t)?t.toString():new YE(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class l2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $I={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},h7=typeof URLSearchParams<"u"?URLSearchParams:YE,p7=typeof FormData<"u"?FormData:null,g7=typeof Blob<"u"?Blob:null,m7={isBrowser:!0,classes:{URLSearchParams:h7,FormData:p7,Blob:g7},protocols:["http","https","file","blob","url","data"]},XE=typeof window<"u"&&typeof document<"u",lS=typeof navigator=="object"&&navigator||void 0,v7=XE&&(!lS||["ReactNative","NativeScript","NS"].indexOf(lS.product)<0),y7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b7=XE&&window.location.href||"http://localhost",S7=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:XE,hasStandardBrowserEnv:v7,hasStandardBrowserWebWorkerEnv:y7,navigator:lS,origin:b7},Symbol.toStringTag,{value:"Module"})),xr={...S7,...m7};function E7(e,t){return Zm(e,new xr.classes.URLSearchParams,{visitor:function(n,r,i,s){return xr.isNode&&Ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function w7(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function R7(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function qI(e){function t(n,r,i,s){let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),f=s>=n.length;return l=!l&&Ee.isArray(i)?i.length:l,f?(Ee.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!u):((!i[l]||!Ee.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],s)&&Ee.isArray(i[l])&&(i[l]=R7(i[l])),!u)}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){const n={};return Ee.forEachEntry(e,(r,i)=>{t(w7(r),i,n,0)}),n}return null}function x7(e,t,n){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const eh={transitional:$I,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=Ee.isObject(t);if(s&&Ee.isHTMLForm(t)&&(t=new FormData(t)),Ee.isFormData(t))return i?JSON.stringify(qI(t)):t;if(Ee.isArrayBuffer(t)||Ee.isBuffer(t)||Ee.isStream(t)||Ee.isFile(t)||Ee.isBlob(t)||Ee.isReadableStream(t))return t;if(Ee.isArrayBufferView(t))return t.buffer;if(Ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return E7(t,this.formSerializer).toString();if((u=Ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Zm(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),x7(t)):t}],transformResponse:[function(t){const n=this.transitional||eh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Ee.isResponse(t)||Ee.isReadableStream(t))return t;if(t&&Ee.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(u){if(l)throw u.name==="SyntaxError"?Rt.from(u,Rt.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ee.forEach(["delete","get","head","post","put","patch"],e=>{eh.headers[e]={}});const C7=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),T7=e=>{const t={};let n,r,i;return e&&e.split(`
12
+ `).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&C7[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},u2=Symbol("internals");function Kf(e){return e&&String(e).trim().toLowerCase()}function _g(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(_g):String(e)}function _7(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const A7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function y1(e,t,n,r,i){if(Ee.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ee.isString(t)){if(Ee.isString(r))return t.indexOf(r)!==-1;if(Ee.isRegExp(r))return r.test(t)}}function O7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function M7(e,t){const n=Ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,l){return this[r].call(this,t,i,s,l)},configurable:!0})})}let Zr=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(u,f,d){const p=Kf(f);if(!p)throw new Error("header name must be a non-empty string");const g=Ee.findKey(i,p);(!g||i[g]===void 0||d===!0||d===void 0&&i[g]!==!1)&&(i[g||f]=_g(u))}const l=(u,f)=>Ee.forEach(u,(d,p)=>s(d,p,f));if(Ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(Ee.isString(t)&&(t=t.trim())&&!A7(t))l(T7(t),n);else if(Ee.isObject(t)&&Ee.isIterable(t)){let u={},f,d;for(const p of t){if(!Ee.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[d=p[0]]=(f=u[d])?Ee.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}l(u,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Kf(t),t){const r=Ee.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return _7(i);if(Ee.isFunction(n))return n.call(this,i,r);if(Ee.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Kf(t),t){const r=Ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||y1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(l){if(l=Kf(l),l){const u=Ee.findKey(r,l);u&&(!n||y1(r,r[u],u,n))&&(delete r[u],i=!0)}}return Ee.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||y1(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return Ee.forEach(this,(i,s)=>{const l=Ee.findKey(r,s);if(l){n[l]=_g(i),delete n[s];return}const u=t?O7(s):String(s).trim();u!==s&&delete n[s],n[u]=_g(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ee.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
13
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[u2]=this[u2]={accessors:{}}).accessors,i=this.prototype;function s(l){const u=Kf(l);r[u]||(M7(i,l),r[u]=!0)}return Ee.isArray(t)?t.forEach(s):s(t),this}};Zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.reduceDescriptors(Zr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ee.freezeMethods(Zr);function b1(e,t){const n=this||eh,r=t||n,i=Zr.from(r.headers);let s=r.data;return Ee.forEach(e,function(u){s=u.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function GI(e){return!!(e&&e.__CANCEL__)}function Nc(e,t,n){Rt.call(this,e??"canceled",Rt.ERR_CANCELED,t,n),this.name="CanceledError"}Ee.inherits(Nc,Rt,{__CANCEL__:!0});function YI(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Rt("Request failed with status code "+n.status,[Rt.ERR_BAD_REQUEST,Rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function I7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function D7(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,l;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),p=r[s];l||(l=d),n[i]=f,r[i]=d;let g=s,m=0;for(;g!==i;)m+=n[g++],g=g%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),d-l<t)return;const v=p&&d-p;return v?Math.round(m*1e3/v):void 0}}function L7(e,t){let n=0,r=1e3/t,i,s;const l=(d,p=Date.now())=>{n=p,i=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const p=Date.now(),g=p-n;g>=r?l(d,p):(i=d,s||(s=setTimeout(()=>{s=null,l(i)},r-g)))},()=>i&&l(i)]}const em=(e,t,n=3)=>{let r=0;const i=D7(50,250);return L7(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,f=l-r,d=i(f),p=l<=u;r=l;const g={loaded:l,total:u,progress:u?l/u:void 0,bytes:f,rate:d||void 0,estimated:d&&u&&p?(u-l)/d:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},c2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},f2=e=>(...t)=>Ee.asap(()=>e(...t)),P7=xr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xr.origin),xr.navigator&&/(msie|trident)/i.test(xr.navigator.userAgent)):()=>!0,k7=xr.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const l=[e+"="+encodeURIComponent(t)];Ee.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),Ee.isString(r)&&l.push("path="+r),Ee.isString(i)&&l.push("domain="+i),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function N7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function F7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function XI(e,t,n){let r=!N7(t);return e&&(r||n==!1)?F7(e,t):t}const d2=e=>e instanceof Zr?{...e}:e;function Al(e,t){t=t||{};const n={};function r(d,p,g,m){return Ee.isPlainObject(d)&&Ee.isPlainObject(p)?Ee.merge.call({caseless:m},d,p):Ee.isPlainObject(p)?Ee.merge({},p):Ee.isArray(p)?p.slice():p}function i(d,p,g,m){if(Ee.isUndefined(p)){if(!Ee.isUndefined(d))return r(void 0,d,g,m)}else return r(d,p,g,m)}function s(d,p){if(!Ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(Ee.isUndefined(p)){if(!Ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function u(d,p,g){if(g in t)return r(d,p);if(g in e)return r(void 0,d)}const f={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(d,p,g)=>i(d2(d),d2(p),g,!0)};return Ee.forEach(Object.keys({...e,...t}),function(p){const g=f[p]||i,m=g(e[p],t[p],p);Ee.isUndefined(m)&&g!==u||(n[p]=m)}),n}const WI=e=>{const t=Al({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:l,auth:u}=t;if(t.headers=l=Zr.from(l),t.url=jI(XI(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),Ee.isFormData(n)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(Ee.isFunction(n.getHeaders)){const f=n.getHeaders(),d=["content-type","content-length"];Object.entries(f).forEach(([p,g])=>{d.includes(p.toLowerCase())&&l.set(p,g)})}}if(xr.hasStandardBrowserEnv&&(r&&Ee.isFunction(r)&&(r=r(t)),r||r!==!1&&P7(t.url))){const f=i&&s&&k7.read(s);f&&l.set(i,f)}return t},z7=typeof XMLHttpRequest<"u",H7=z7&&function(e){return new Promise(function(n,r){const i=WI(e);let s=i.data;const l=Zr.from(i.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:d}=i,p,g,m,v,E;function b(){v&&v(),E&&E(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function C(){if(!x)return;const T=Zr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),_={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:T,config:e,request:x};YI(function(A){n(A),b()},function(A){r(A),b()},_),x=null}"onloadend"in x?x.onloadend=C:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(C)},x.onabort=function(){x&&(r(new Rt("Request aborted",Rt.ECONNABORTED,e,x)),x=null)},x.onerror=function(O){const _=O&&O.message?O.message:"Network Error",M=new Rt(_,Rt.ERR_NETWORK,e,x);M.event=O||null,r(M),x=null},x.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||$I;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),r(new Rt(O,_.clarifyTimeoutError?Rt.ETIMEDOUT:Rt.ECONNABORTED,e,x)),x=null},s===void 0&&l.setContentType(null),"setRequestHeader"in x&&Ee.forEach(l.toJSON(),function(O,_){x.setRequestHeader(_,O)}),Ee.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),u&&u!=="json"&&(x.responseType=i.responseType),d&&([m,E]=em(d,!0),x.addEventListener("progress",m)),f&&x.upload&&([g,v]=em(f),x.upload.addEventListener("progress",g),x.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(p=T=>{x&&(r(!T||T.type?new Nc(null,e,x):T),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const R=I7(i.url);if(R&&xr.protocols.indexOf(R)===-1){r(new Rt("Unsupported protocol "+R+":",Rt.ERR_BAD_REQUEST,e));return}x.send(s||null)})},B7=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(d){if(!i){i=!0,u();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Rt?p:new Nc(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new Rt(`timeout ${t} of ms exceeded`,Rt.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>Ee.asap(u),f}},U7=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},V7=async function*(e,t){for await(const n of j7(e))yield*U7(n,t)},j7=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},h2=(e,t,n,r)=>{const i=V7(e,t);let s=0,l,u=f=>{l||(l=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:d,value:p}=await i.next();if(d){u(),f.close();return}let g=p.byteLength;if(n){let m=s+=g;n(m)}f.enqueue(new Uint8Array(p))}catch(d){throw u(d),d}},cancel(f){return u(f),i.return()}},{highWaterMark:2})},p2=64*1024,{isFunction:Gp}=Ee,$7=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ee.global),{ReadableStream:g2,TextEncoder:m2}=Ee.global,v2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},q7=e=>{e=Ee.merge.call({skipUndefined:!0},$7,e);const{fetch:t,Request:n,Response:r}=e,i=t?Gp(t):typeof fetch=="function",s=Gp(n),l=Gp(r);if(!i)return!1;const u=i&&Gp(g2),f=i&&(typeof m2=="function"?(E=>b=>E.encode(b))(new m2):async E=>new Uint8Array(await new n(E).arrayBuffer())),d=s&&u&&v2(()=>{let E=!1;const b=new n(xr.origin,{body:new g2,method:"POST",get duplex(){return E=!0,"half"}}).headers.has("Content-Type");return E&&!b}),p=l&&u&&v2(()=>Ee.isReadableStream(new r("").body)),g={stream:p&&(E=>E.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!g[E]&&(g[E]=(b,x)=>{let C=b&&b[E];if(C)return C.call(b);throw new Rt(`Response type '${E}' is not supported`,Rt.ERR_NOT_SUPPORT,x)})});const m=async E=>{if(E==null)return 0;if(Ee.isBlob(E))return E.size;if(Ee.isSpecCompliantForm(E))return(await new n(xr.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(Ee.isArrayBufferView(E)||Ee.isArrayBuffer(E))return E.byteLength;if(Ee.isURLSearchParams(E)&&(E=E+""),Ee.isString(E))return(await f(E)).byteLength},v=async(E,b)=>{const x=Ee.toFiniteNumber(E.getContentLength());return x??m(b)};return async E=>{let{url:b,method:x,data:C,signal:R,cancelToken:T,timeout:O,onDownloadProgress:_,onUploadProgress:M,responseType:A,headers:D,withCredentials:L="same-origin",fetchOptions:N}=WI(E),H=t||fetch;A=A?(A+"").toLowerCase():"text";let j=B7([R,T&&T.toAbortSignal()],O),F=null;const q=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let U;try{if(M&&d&&x!=="get"&&x!=="head"&&(U=await v(D,C))!==0){let k=new n(b,{method:"POST",body:C,duplex:"half"}),$;if(Ee.isFormData(C)&&($=k.headers.get("content-type"))&&D.setContentType($),k.body){const[W,te]=c2(U,em(f2(M)));C=h2(k.body,p2,W,te)}}Ee.isString(L)||(L=L?"include":"omit");const P=s&&"credentials"in n.prototype,G={...N,signal:j,method:x.toUpperCase(),headers:D.normalize().toJSON(),body:C,duplex:"half",credentials:P?L:void 0};F=s&&new n(b,G);let B=await(s?H(F,N):H(b,G));const Y=p&&(A==="stream"||A==="response");if(p&&(_||Y&&q)){const k={};["status","statusText","headers"].forEach(ae=>{k[ae]=B[ae]});const $=Ee.toFiniteNumber(B.headers.get("content-length")),[W,te]=_&&c2($,em(f2(_),!0))||[];B=new r(h2(B.body,p2,W,()=>{te&&te(),q&&q()}),k)}A=A||"text";let J=await g[Ee.findKey(g,A)||"text"](B,E);return!Y&&q&&q(),await new Promise((k,$)=>{YI(k,$,{data:J,headers:Zr.from(B.headers),status:B.status,statusText:B.statusText,config:E,request:F})})}catch(P){throw q&&q(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new Rt("Network Error",Rt.ERR_NETWORK,E,F),{cause:P.cause||P}):Rt.from(P,P&&P.code,E,F)}}},G7=new Map,KI=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let l=s.length,u=l,f,d,p=G7;for(;u--;)f=s[u],d=p.get(f),d===void 0&&p.set(f,d=u?new Map:q7(t)),p=d;return d};KI();const uS={http:u7,xhr:H7,fetch:{get:KI}};Ee.forEach(uS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const y2=e=>`- ${e}`,Y7=e=>Ee.isFunction(e)||e===null||e===!1,QI={getAdapter:(e,t)=>{e=Ee.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let l=0;l<n;l++){r=e[l];let u;if(i=r,!Y7(r)&&(i=uS[(u=String(r)).toLowerCase()],i===void 0))throw new Rt(`Unknown adapter '${u}'`);if(i&&(Ee.isFunction(i)||(i=i.get(t))))break;s[u||"#"+l]=i}if(!i){const l=Object.entries(s).map(([f,d])=>`adapter ${f} `+(d===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since :
14
+ `+l.map(y2).join(`
15
+ `):" "+y2(l[0]):"as no adapter specified";throw new Rt("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i},adapters:uS};function S1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nc(null,e)}function b2(e){return S1(e),e.headers=Zr.from(e.headers),e.data=b1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),QI.getAdapter(e.adapter||eh.adapter,e)(e).then(function(r){return S1(e),r.data=b1.call(e,e.transformResponse,r),r.headers=Zr.from(r.headers),r},function(r){return GI(r)||(S1(e),r&&r.response&&(r.response.data=b1.call(e,e.transformResponse,r.response),r.response.headers=Zr.from(r.response.headers))),Promise.reject(r)})}const JI="1.12.2",e0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const S2={};e0.transitional=function(t,n,r){function i(s,l){return"[Axios v"+JI+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,u)=>{if(t===!1)throw new Rt(i(l," has been removed"+(n?" in "+n:"")),Rt.ERR_DEPRECATED);return n&&!S2[l]&&(S2[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,u):!0}};e0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function X7(e,t,n){if(typeof e!="object")throw new Rt("options must be an object",Rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],l=t[s];if(l){const u=e[s],f=u===void 0||l(u,s,e);if(f!==!0)throw new Rt("option "+s+" must be "+f,Rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Rt("Unknown option "+s,Rt.ERR_BAD_OPTION)}}const Ag={assertOptions:X7,validators:e0},vi=Ag.validators;let bl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new l2,response:new l2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
16
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Al(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Ag.assertOptions(r,{silentJSONParsing:vi.transitional(vi.boolean),forcedJSONParsing:vi.transitional(vi.boolean),clarifyTimeoutError:vi.transitional(vi.boolean)},!1),i!=null&&(Ee.isFunction(i)?n.paramsSerializer={serialize:i}:Ag.assertOptions(i,{encode:vi.function,serialize:vi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ag.assertOptions(n,{baseUrl:vi.spelling("baseURL"),withXsrfToken:vi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&Ee.merge(s.common,s[n.method]);s&&Ee.forEach(["delete","get","head","post","put","patch","common"],E=>{delete s[E]}),n.headers=Zr.concat(l,s);const u=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(f=f&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let p,g=0,m;if(!f){const E=[b2.bind(this),void 0];for(E.unshift(...u),E.push(...d),m=E.length,p=Promise.resolve(n);g<m;)p=p.then(E[g++],E[g++]);return p}m=u.length;let v=n;for(;g<m;){const E=u[g++],b=u[g++];try{v=E(v)}catch(x){b.call(this,x);break}}try{p=b2.call(this,v)}catch(E){return Promise.reject(E)}for(g=0,m=d.length;g<m;)p=p.then(d[g++],d[g++]);return p}getUri(t){t=Al(this.defaults,t);const n=XI(t.baseURL,t.url,t.allowAbsoluteUrls);return jI(n,t.params,t.paramsSerializer)}};Ee.forEach(["delete","get","head","options"],function(t){bl.prototype[t]=function(n,r){return this.request(Al(r||{},{method:t,url:n,data:(r||{}).data}))}});Ee.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,u){return this.request(Al(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}bl.prototype[t]=n(),bl.prototype[t+"Form"]=n(!0)});let W7=class ZI{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(i);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,u){r.reason||(r.reason=new Nc(s,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ZI(function(i){t=i}),cancel:t}}};function K7(e){return function(n){return e.apply(null,n)}}function Q7(e){return Ee.isObject(e)&&e.isAxiosError===!0}const cS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cS).forEach(([e,t])=>{cS[t]=e});function e6(e){const t=new bl(e),n=II(bl.prototype.request,t);return Ee.extend(n,bl.prototype,t,{allOwnKeys:!0}),Ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return e6(Al(e,i))},n}const Jn=e6(eh);Jn.Axios=bl;Jn.CanceledError=Nc;Jn.CancelToken=W7;Jn.isCancel=GI;Jn.VERSION=JI;Jn.toFormData=Zm;Jn.AxiosError=Rt;Jn.Cancel=Jn.CanceledError;Jn.all=function(t){return Promise.all(t)};Jn.spread=K7;Jn.isAxiosError=Q7;Jn.mergeConfig=Al;Jn.AxiosHeaders=Zr;Jn.formToJSON=e=>qI(Ee.isHTMLForm(e)?new FormData(e):e);Jn.getAdapter=QI.getAdapter;Jn.HttpStatusCode=cS;Jn.default=Jn;const{Axios:Lte,AxiosError:Pte,CanceledError:kte,isCancel:Nte,CancelToken:Fte,VERSION:zte,all:Hte,Cancel:Bte,isAxiosError:Ute,spread:Vte,toFormData:jte,AxiosHeaders:$te,HttpStatusCode:qte,formToJSON:Gte,getAdapter:Yte,mergeConfig:Xte}=Jn,J7=!1,hn=globalThis,Sl="10.9.0";function Bl(){return t0(hn),hn}function t0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Sl,t[Sl]=t[Sl]||{}}function n0(e,t,n=hn){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Sl]=r[Sl]||{};return i[e]||(i[e]=t())}const Z7=["debug","info","warn","error","log","assert","trace"],tm={};function r0(e){if(!("console"in hn))return e();const t=hn.console,n={},r=Object.keys(tm);r.forEach(i=>{const s=tm[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function eU(){KE().enabled=!0}function tU(){KE().enabled=!1}function nU(){return KE().enabled}function rU(...e){WE("log",...e)}function oU(...e){WE("warn",...e)}function iU(...e){WE("error",...e)}function WE(e,...t){}function KE(){return{enabled:!1}}const QE={enable:eU,disable:tU,isEnabled:nU,log:rU,warn:oU,error:iU},t6=50,Ol="?",E2=/\(error: (.*)\)/,w2=/captureMessage|captureException/;function n6(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],l=n.split(`
17
+ `);for(let u=r;u<l.length;u++){let f=l[u];f.length>1024&&(f=f.slice(0,1024));const d=E2.test(f)?f.replace(E2,"$1"):f;if(!d.match(/\S*Error: /)){for(const p of t){const g=p(d);if(g){s.push(g);break}}if(s.length>=t6+i)break}}return aU(s.slice(i))}}function sU(e){return Array.isArray(e)?n6(...e):e}function aU(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Yp(t).function||"")&&t.pop(),t.reverse(),w2.test(Yp(t).function||"")&&(t.pop(),w2.test(Yp(t).function||"")&&t.pop()),t.slice(0,t6).map(n=>({...n,filename:n.filename||Yp(t).filename,function:n.function||Ol}))}function Yp(e){return e[e.length-1]||{}}const E1="<anonymous>";function Ml(e){try{return!e||typeof e!="function"?E1:e.name||E1}catch{return E1}}function R2(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Og={},x2={};function La(e,t){Og[e]=Og[e]||[],Og[e].push(t)}function Pa(e,t){if(!x2[e]){x2[e]=!0;try{t()}catch{}}}function jo(e,t){const n=e&&Og[e];if(n)for(const r of n)try{r(t)}catch{}}let w1=null;function r6(e){const t="error";La(t,e),Pa(t,lU)}function lU(){w1=hn.onerror,hn.onerror=function(e,t,n,r,i){return jo("error",{column:r,error:i,line:n,msg:e,url:t}),w1?w1.apply(this,arguments):!1},hn.onerror.__SENTRY_INSTRUMENTED__=!0}let R1=null;function o6(e){const t="unhandledrejection";La(t,e),Pa(t,uU)}function uU(){R1=hn.onunhandledrejection,hn.onunhandledrejection=function(e){return jo("unhandledrejection",e),R1?R1.apply(this,arguments):!0},hn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const i6=Object.prototype.toString;function o0(e){switch(i6.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Cs(e,Error)}}function Fc(e,t){return i6.call(e)===`[object ${t}]`}function s6(e){return Fc(e,"ErrorEvent")}function C2(e){return Fc(e,"DOMError")}function cU(e){return Fc(e,"DOMException")}function Ss(e){return Fc(e,"String")}function JE(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ed(e){return e===null||JE(e)||typeof e!="object"&&typeof e!="function"}function wd(e){return Fc(e,"Object")}function i0(e){return typeof Event<"u"&&Cs(e,Event)}function fU(e){return typeof Element<"u"&&Cs(e,Element)}function dU(e){return Fc(e,"RegExp")}function th(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function hU(e){return wd(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Cs(e,t){try{return e instanceof t}catch{return!1}}function a6(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function l6(e){return typeof Request<"u"&&Cs(e,Request)}const ZE=hn,pU=80;function Li(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,l=0;const u=" > ",f=u.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||pU;for(;n&&s++<r&&(d=gU(n,p),!(d==="html"||s>1&&l+i.length*f+d.length>=g));)i.push(d),l+=d.length,n=n.parentNode;return i.reverse().join(u)}catch{return"<unknown>"}}function gU(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(ZE.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t!=null&&t.length?t.filter(l=>n.getAttribute(l)).map(l=>[l,n.getAttribute(l)]):null;if(i!=null&&i.length)i.forEach(l=>{r.push(`[${l[0]}="${l[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const l=n.className;if(l&&Ss(l)){const u=l.split(/\s+/);for(const f of u)r.push(`.${f}`)}}const s=["aria-label","type","name","title","alt"];for(const l of s){const u=n.getAttribute(l);u&&r.push(`[${l}="${u}"]`)}return r.join("")}function nh(){try{return ZE.document.location.href}catch{return""}}function u6(e){if(!ZE.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function nm(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function T2(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{a6(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Mg(e,t,n=!1){return Ss(e)?dU(t)?t.test(e):Ss(t)?n?e===t:e.includes(t):!1:!1}function Sa(e,t=[],n=!1){return t.some(r=>Mg(e,r,n))}function vo(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&c6(i,r);try{e[t]=i}catch{}}function Pr(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function c6(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Pr(e,"__sentry_original__",t)}catch{}}function ew(e){return e.__sentry_original__}function f6(e){if(o0(e))return{message:e.message,name:e.name,stack:e.stack,...A2(e)};if(i0(e)){const t={type:e.type,target:_2(e.target),currentTarget:_2(e.currentTarget),...A2(e)};return typeof CustomEvent<"u"&&Cs(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function _2(e){try{return fU(e)?Li(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function A2(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function mU(e,t=40){const n=Object.keys(f6(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return nm(r,t);for(let i=n.length;i>0;i--){const s=n.slice(0,i).join(", ");if(!(s.length>t))return i===n.length?s:nm(s,t)}return""}function vU(){const e=hn;return e.crypto||e.msCrypto}function $o(e=vU()){let t=()=>Math.random()*16;try{if(e!=null&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e!=null&&e.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function d6(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function yU(e){const{message:t,event_id:n}=e;if(t)return t;const r=d6(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function fS(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function mc(e,t){const n=d6(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i==null?void 0:i.data,...t.data};n.mechanism.data=s}}function O2(e){if(bU(e))return!0;try{Pr(e,"__sentry_captured__",!0)}catch{}return!1}function bU(e){try{return e.__sentry_captured__}catch{}}const h6=1e3;function Ul(){return Date.now()/h6}function SU(){const{performance:e}=hn;if(!(e!=null&&e.now)||!e.timeOrigin)return Ul;const t=e.timeOrigin;return()=>(t+e.now())/h6}let M2;function br(){return(M2??(M2=SU()))()}let x1;function EU(){var p;const{performance:e}=hn;if(!(e!=null&&e.now))return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,l=(p=e.timing)==null?void 0:p.navigationStart,f=typeof l=="number"?Math.abs(l+n-r):t,d=f<t;return s||d?i<=f?[e.timeOrigin,"timeOrigin"]:[l,"navigationStart"]:[r,"dateNow"]}function Ro(){return x1||(x1=EU()),x1[0]}function wU(e){const t=br(),n={sid:$o(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>xU(n)};return e&&vc(n,e),n}function vc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||br(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:$o()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function RU(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),vc(e,n)}function xU(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function rh(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=rh(r[i],t[i],n-1));return r}function Ra(){return $o()}function oh(){return $o().substring(16)}const dS="_sentrySpan";function yc(e,t){t?Pr(e,dS,t):delete e[dS]}function rm(e){return e[dS]}const CU=100;class Pi{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ra(),sampleRand:Math.random()}}clone(){const t=new Pi;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,yc(t,rm(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&vc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Pi?n.getScopeData():wd(n)?t:void 0,{tags:i,extra:s,user:l,contexts:u,level:f,fingerprint:d=[],propagationContext:p}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,yc(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ra(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var s;const r=typeof n=="number"?n:CU;if(r<=0)return this;const i={timestamp:Ul(),...t,message:t.message?nm(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(s=this._client)==null||s.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:rm(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=rh(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||$o();if(!this._client)return r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=(r==null?void 0:r.event_id)||$o();if(!this._client)return i;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=(n==null?void 0:n.event_id)||$o();return this._client&&this._client.captureEvent(t,{...n,event_id:r},this),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function TU(){return n0("defaultCurrentScope",()=>new Pi)}function _U(){return n0("defaultIsolationScope",()=>new Pi)}class AU{constructor(t,n){let r;t?r=t:r=new Pi;let i;n?i=n:i=new Pi,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return th(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function bc(){const e=Bl(),t=t0(e);return t.stack=t.stack||new AU(TU(),_U())}function OU(e){return bc().withScope(e)}function MU(e,t){const n=bc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function I2(e){return bc().withScope(()=>e(bc().getIsolationScope()))}function IU(){return{withIsolationScope:I2,withScope:OU,withSetScope:MU,withSetIsolationScope:(e,t)=>I2(t),getCurrentScope:()=>bc().getScope(),getIsolationScope:()=>bc().getIsolationScope()}}function zc(e){const t=t0(e);return t.acs?t.acs:IU()}function sn(){const e=Bl();return zc(e).getCurrentScope()}function Ms(){const e=Bl();return zc(e).getIsolationScope()}function DU(){return n0("globalScope",()=>new Pi)}function Hc(...e){const t=Bl(),n=zc(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Kt(){return sn().getClient()}function LU(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,s={trace_id:n,span_id:i||oh()};return r&&(s.parent_span_id=r),s}const Wr="sentry.source",tw="sentry.sample_rate",p6="sentry.previous_trace_sample_rate",ii="sentry.op",jn="sentry.origin",om="sentry.idle_span_finish_reason",ih="sentry.measurement_unit",sh="sentry.measurement_value",D2="sentry.custom_span_name",nw="sentry.profile_id",Bc="sentry.exclusive_time",PU="sentry.link.type",kU=0,g6=1,tr=2;function NU(e){if(e<400&&e>=100)return{code:g6};if(e>=400&&e<500)switch(e){case 401:return{code:tr,message:"unauthenticated"};case 403:return{code:tr,message:"permission_denied"};case 404:return{code:tr,message:"not_found"};case 409:return{code:tr,message:"already_exists"};case 413:return{code:tr,message:"failed_precondition"};case 429:return{code:tr,message:"resource_exhausted"};case 499:return{code:tr,message:"cancelled"};default:return{code:tr,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:tr,message:"unimplemented"};case 503:return{code:tr,message:"unavailable"};case 504:return{code:tr,message:"deadline_exceeded"};default:return{code:tr,message:"internal_error"}}return{code:tr,message:"unknown_error"}}function m6(e,t){e.setAttribute("http.response.status_code",t);const n=NU(t);n.message!=="unknown_error"&&e.setStatus(n)}const v6="_sentryScope",y6="_sentryIsolationScope";function FU(e,t,n){e&&(Pr(e,y6,n),Pr(e,v6,t))}function im(e){return{scope:e[v6],isolationScope:e[y6]}}const rw="sentry-",zU=/^sentry-/,HU=8192;function b6(e){const t=UU(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.match(zU)){const l=i.slice(rw.length);r[l]=s}return r},{});if(Object.keys(n).length>0)return n}function BU(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${rw}${r}`]=i),n),{});return VU(t)}function UU(e){if(!(!e||!Ss(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=L2(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):L2(e)}function L2(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function VU(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,l=i===0?s:`${t},${s}`;return l.length>HU?t:l},"")}const jU=/^o(\d+)\./,$U=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Uc(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:l,protocol:u,publicKey:f}=e;return`${u}://${f}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${l}`}function qU(e){const t=$U.exec(e);if(!t){r0(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",l="",u=""]=t.slice(1);let f="",d=u;const p=d.split("/");if(p.length>1&&(f=p.slice(0,-1).join("/"),d=p.pop()),d){const g=d.match(/^\d+/);g&&(d=g[0])}return S6({host:s,pass:i,path:f,projectId:d,port:l,protocol:n,publicKey:r})}function S6(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function GU(e){return!0}function YU(e){const t=e.match(jU);return t==null?void 0:t[1]}function XU(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=YU(n)),r}function E6(e){const t=typeof e=="string"?qU(e):S6(e);if(!(!t||!GU()))return t}function Rd(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const w6=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function WU(e){if(!e)return;const t=e.match(w6);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function KU(e,t){const n=WU(e),r=b6(t);if(!(n!=null&&n.traceId))return{traceId:Ra(),sampleRand:Math.random()};const i=QU(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:l,parentSampled:u}=n;return{traceId:s,parentSpanId:l,sampled:u,dsc:r||{},sampleRand:i}}function R6(e=Ra(),t=oh(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function QU(e,t){const n=Rd(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=Rd(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const x6=0,ow=1;let P2=!1;function JU(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:l,origin:u,links:f}=on(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:l,origin:u,links:f}}function ZU(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:on(e).parent_span_id,s=im(e).scope,l=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||oh():t;return{parent_span_id:i,span_id:l,trace_id:n}}function eV(e){const{traceId:t,spanId:n}=e.spanContext(),r=Vc(e);return R6(t,n,r)}function C6(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===ow,attributes:s,...i}))}function El(e){return typeof e=="number"?k2(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?k2(e.getTime()):br()}function k2(e){return e>9999999999?e/1e3:e}function on(e){var r;if(nV(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(tV(e)){const{attributes:i,startTime:s,name:l,endTime:u,status:f,links:d}=e,p="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:i,description:l,parent_span_id:p,start_timestamp:El(s),timestamp:El(u)||void 0,status:T6(f),op:i[ii],origin:i[jn],links:C6(d)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function tV(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function nV(e){return typeof e.getSpanJSON=="function"}function Vc(e){const{traceFlags:t}=e.spanContext();return t===ow}function T6(e){if(!(!e||e.code===kU))return e.code===g6?"ok":e.message||"unknown_error"}const wl="_sentryChildSpans",hS="_sentryRootSpan";function _6(e,t){const n=e[hS]||e;Pr(t,hS,n),e[wl]?e[wl].add(t):Pr(e,wl,new Set([t]))}function rV(e,t){e[wl]&&e[wl].delete(t)}function Ig(e){const t=new Set;function n(r){if(!t.has(r)&&Vc(r)){t.add(r);const i=r[wl]?Array.from(r[wl]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}function eo(e){return e[hS]||e}function kr(){const e=Bl(),t=zc(e);return t.getActiveSpan?t.getActiveSpan():rm(sn())}function pS(){P2||(r0(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),P2=!0)}let N2=!1;function oV(){if(N2)return;function e(){const t=kr(),n=t&&eo(t);n&&n.setStatus({code:tr,message:"internal_error"})}e.tag="sentry_tracingErrorCallback",N2=!0,r6(e),o6(e)}function xa(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=Kt())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const iw="production",A6="_frozenDsc";function Dg(e,t){Pr(e,A6,t)}function O6(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||iw,release:n.release,public_key:r,trace_id:e,org_id:XU(t)};return t.emit("createDsc",i),i}function M6(e,t){const n=t.getPropagationContext();return n.dsc||O6(n.traceId,e)}function Ca(e){var E;const t=Kt();if(!t)return{};const n=eo(e),r=on(n),i=r.data,s=n.spanContext().traceState,l=(s==null?void 0:s.get("sentry.sample_rate"))??i[tw]??i[p6];function u(b){return(typeof l=="number"||typeof l=="string")&&(b.sample_rate=`${l}`),b}const f=n[A6];if(f)return u(f);const d=s==null?void 0:s.get("sentry.dsc"),p=d&&b6(d);if(p)return u(p);const g=O6(e.spanContext().traceId,t),m=i[Wr],v=r.description;return m!=="url"&&v&&(g.transaction=v),xa()&&(g.sampled=String(Vc(n)),g.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((E=im(n).scope)==null?void 0:E.getPropagationContext().sampleRand.toString())),u(g),t.emit("createDsc",g,n),g}class Ta{constructor(t={}){this._traceId=t.traceId||Ra(),this._spanId=t.spanId||oh()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:x6}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function fs(e,t=100,n=1/0){try{return gS("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function I6(e,t=3,n=100*1024){const r=fs(e,t);return lV(r)>n?I6(e,t-1,n):r}function gS(e,t,n=1/0,r=1/0,i=uV()){const[s,l]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const u=iV(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;const f=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(f===0)return u.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const v=d.toJSON();return gS("",v,f-1,r,i)}catch{}const p=Array.isArray(t)?[]:{};let g=0;const m=f6(t);for(const v in m){if(!Object.prototype.hasOwnProperty.call(m,v))continue;if(g>=r){p[v]="[MaxProperties ~]";break}const E=m[v];p[v]=gS(v,E,f-1,r,i),g++}return l(t),p}function iV(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(a6(t))return"[VueViewModel]";if(hU(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Ml(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=sV(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function sV(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function aV(e){return~-encodeURI(e).split(/%..|./).length}function lV(e){return aV(JSON.stringify(e))}function uV(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function jc(e,t=[]){return[e,t]}function cV(e,t){const[n,r]=e;return[n,[...r,t]]}function F2(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function mS(e){const t=t0(hn);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function fV(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[mS(r),s]:r.push(typeof s=="string"?mS(s):s)}for(const s of n){const[l,u]=s;if(i(`
13
18
  ${JSON.stringify(l)}
14
- `),typeof u=="string"||u instanceof Uint8Array)i(u);else{let f;try{f=JSON.stringify(u)}catch{f=JSON.stringify(fs(u))}i(f)}}return typeof r=="string"?r:z7(r)}function z7(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function H7(e){return[{type:"span"},e]}function B7(e){const t=typeof e.data=="string"?fS(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const U7={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function w2(e){return U7[e]}function l6(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function V7(e,t,n,r){var s;const i=(s=e.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Hc(r)},...i&&{trace:i}}}function dS(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if($7(n)){if(_g(e.description,n))return!0;continue}if(!n.name&&!n.op)continue;const r=n.name?_g(e.description,n.name):!0,i=n.op?e.op&&_g(e.op,n.op):!0;if(r&&i)return!0}return!1}function j7(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function $7(e){return typeof e=="string"||e instanceof RegExp}function q7(e,t){var r,i,s,l;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((i=e.sdk)==null?void 0:i.packages)||[],...t.packages||[]],settings:(s=e.sdk)!=null&&s.settings||t.settings?{...(l=e.sdk)==null?void 0:l.settings,...t.settings}:void 0},e}function G7(e,t,n,r){const i=l6(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Hc(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Uc(s,[l])}function Y7(e,t,n,r){const i=l6(n),s=e.type&&e.type!=="replay_event"?e.type:"event";q7(e,n==null?void 0:n.sdk);const l=V7(e,i,r,t);return delete e.sdkProcessingMetadata,Uc(l,[[{type:s},e]])}function X7(e,t){function n(v){return!!v.trace_id&&!!v.public_key}const r=Ca(e[0]),i=t==null?void 0:t.getDsn(),s=t==null?void 0:t.getOptions().tunnel,l={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:Hc(i)}},{beforeSendSpan:u,ignoreSpans:f}=(t==null?void 0:t.getOptions())||{},d=f!=null&&f.length?e.filter(v=>!dS(on(v),f)):e,p=e.length-d.length;p&&(t==null||t.recordDroppedEvent("before_send","span",p));const g=u?v=>{const E=on(v),b=u(E);return b||(uS(),E)}:on,m=[];for(const v of d){const E=g(v);E&&m.push(H7(E))}return Uc(l,m)}function W7(e,t,n,r=kr()){const i=r&&Jr(r);i&&i.addEvent(e,{[nh]:t,[th]:n})}function R2(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[th],s=r[nh];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}const x2=1e3;class t0{constructor(t={}){this._traceId=t.traceId||Ra(),this._spanId=t.spanId||eh(),this._startTime=t.startTimestamp||br(),this._links=t.links,this._attributes={},this.setAttributes({[jn]:"manual",[ii]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?tw:e6}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Sl(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Wr,"custom"),this}end(t){this._endTime||(this._endTime=Sl(t),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ii],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:n6(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[jn],profile_id:this._attributes[ZE],exclusive_time:this._attributes[zc],measurements:R2(this._events),is_segment:this._isStandaloneSpan&&Jr(this)===this||void 0,segment_id:this._isStandaloneSpan?Jr(this).spanContext().spanId:void 0,links:t6(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){const i=C2(n)?n:r||br(),s=C2(n)?{}:n||{},l={name:t,time:Sl(i),attributes:s};return this._events.push(l),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Kt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Jr(this)))return;if(this._isStandaloneSpan){this._sampled?Q7(X7([this],t)):t&&t.recordDroppedEvent("sample_rate","span");return}const r=this._convertSpanToTransaction();r&&(om(this).scope||sn()).captureEvent(r)}_convertSpanToTransaction(){var p;if(!T2(on(this)))return;this._name||(this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=om(this),r=(p=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:p.normalizedRequest;if(this._sampled!==!0)return;const s=Ag(this).filter(g=>g!==this&&!K7(g)).map(g=>on(g)).filter(T2),l=this._attributes[Wr];delete this._attributes[m2],s.forEach(g=>{delete g.data[m2]});const u={contexts:{trace:x7(this)},spans:s.length>x2?s.sort((g,m)=>g.start_timestamp-m.start_timestamp).slice(0,x2):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ca(this)},request:r,...l&&{transaction_info:{source:l}}},f=R2(this._events);return f&&Object.keys(f).length&&(u.measurements=f),u}}function C2(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function T2(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function K7(e){return e instanceof t0&&e.isStandaloneSpan()}function Q7(e){const t=Kt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function J7(e,t,n=()=>{}){let r;try{r=e()}catch(i){throw t(i),n(),i}return Z7(r,t,n)}function Z7(e,t,n){return Qd(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function eU(e,t,n){if(!xa(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:u=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):u}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const s=Rd(i);return s===void 0?[!1]:s?[n<s,s,r]:[!1,s,r]}const u6="__SENTRY_SUPPRESS_TRACING__";function tU(e,t){const n=ow();if(n.startSpan)return n.startSpan(e,t);const r=f6(e),{forceTransaction:i,parentSpan:s,scope:l}=e,u=l==null?void 0:l.clone();return Fc(u,()=>rU(s)(()=>{const d=sn(),p=d6(d,s),m=e.onlyIfParent&&!p?new Ta:c6({parentSpan:p,spanArguments:r,forceTransaction:i,scope:d});return vc(d,m),J7(()=>t(m),()=>{const{status:v}=on(m);m.isRecording()&&(!v||v==="ok")&&m.setStatus({code:tr,message:"internal_error"})},()=>{m.end()})}))}function Vc(e){const t=ow();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=f6(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?l=>Fc(e.scope,l):i!==void 0?l=>rw(i,l):l=>l())(()=>{const l=sn(),u=d6(l,i);return e.onlyIfParent&&!u?new Ta:c6({parentSpan:u,spanArguments:n,forceTransaction:r,scope:l})})}function rw(e,t){const n=ow();return n.withActiveSpan?n.withActiveSpan(e,t):Fc(r=>(vc(r,e||void 0),t(r)))}function c6({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!xa()){const l=new Ta;if(n||!e){const u={sampled:"false",sample_rate:"0",transaction:t.name,...Ca(l)};Og(l,u)}return l}const i=Ms();let s;if(e&&!n)s=nU(e,r,t),r6(e,s);else if(e){const l=Ca(e),{traceId:u,spanId:f}=e.spanContext(),d=Bc(e);s=_2({traceId:u,parentSpanId:f,...t},r,d),Og(s,l)}else{const{traceId:l,dsc:u,parentSpanId:f,sampled:d}={...i.getPropagationContext(),...r.getPropagationContext()};s=_2({traceId:l,parentSpanId:f,...t},r,d),u&&Og(s,u)}return u7(s,r,i),s}function f6(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Sl(e.startTime),delete r.startTime,r}return n}function ow(){const e=Bl();return Nc(e)}function _2(e,t,n){var E;const r=Kt(),i=(r==null?void 0:r.getOptions())||{},{name:s=""}=e,l={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r==null||r.emit("beforeSampling",l,{decision:!1});const u=l.parentSampled??n,f=l.spanAttributes,d=t.getPropagationContext(),[p,g,m]=t.getScopeData().sdkProcessingMetadata[u6]?[!1]:eU(i,{name:s,parentSampled:u,attributes:f,parentSampleRate:Rd((E=d.dsc)==null?void 0:E.sample_rate)},d.sampleRand),v=new t0({...e,attributes:{[Wr]:"custom",[JE]:g!==void 0&&m?g:void 0,...f},sampled:p});return!p&&r&&r.recordDroppedEvent("sample_rate","transaction"),r&&r.emit("spanStart",v),v}function nU(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[u6]?!1:Bc(e),l=s?new t0({...n,parentSpanId:r,traceId:i,sampled:s}):new Ta({traceId:i});r6(e,l);const u=Kt();return u&&(u.emit("spanStart",l),n.endTimestamp&&u.emit("spanEnd",l)),l}function d6(e,t){if(t)return t;if(t===null)return;const n=nm(e);if(!n)return;const r=Kt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Jr(n):n}function rU(e){return e!==void 0?t=>rw(e,t):t=>t()}const Mg={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},oU="heartbeatFailed",iU="idleTimeout",sU="finalTimeout",aU="externalFinish";function h6(e,t={}){const n=new Map;let r=!1,i,s=aU,l=!t.disableAutoFinish;const u=[],{idleTimeout:f=Mg.idleTimeout,finalTimeout:d=Mg.finalTimeout,childSpanTimeout:p=Mg.childSpanTimeout,beforeSpanEnd:g}=t,m=Kt();if(!m||!xa()){const M=new Ta,A={sample_rate:"0",sampled:"false",...Ca(M)};return Og(M,A),M}const v=sn(),E=kr(),b=lU(e);b.end=new Proxy(b.end,{apply(M,A,D){if(g&&g(b),A instanceof Ta)return;const[L,...N]=D,H=L||br(),j=Sl(H),F=Ag(b).filter(B=>B!==b);if(!F.length)return _(j),Reflect.apply(M,A,[j,...N]);const q=F.map(B=>on(B).timestamp).filter(B=>!!B),U=q.length?Math.max(...q):void 0,P=on(b).start_timestamp,G=Math.min(P?P+d/1e3:1/0,Math.max(P||-1/0,Math.min(j,U||1/0)));return _(G),Reflect.apply(M,A,[G,...N])}});function x(){i&&(clearTimeout(i),i=void 0)}function C(M){x(),i=setTimeout(()=>{!r&&n.size===0&&l&&(s=iU,b.end(M))},f)}function R(M){i=setTimeout(()=>{!r&&l&&(s=oU,b.end(M))},p)}function T(M){x(),n.set(M,!0);const A=br();R(A+p/1e3)}function O(M){if(n.has(M)&&n.delete(M),n.size===0){const A=br();C(A+f/1e3)}}function _(M){r=!0,n.clear(),u.forEach(j=>j()),vc(v,E);const A=on(b),{start_timestamp:D}=A;if(!D)return;A.data[rm]||b.setAttribute(rm,s),XE.log(`[Tracing] Idle span "${A.op}" finished`);const N=Ag(b).filter(j=>j!==b);let H=0;N.forEach(j=>{j.isRecording()&&(j.setStatus({code:tr,message:"cancelled"}),j.end(M));const F=on(j),{timestamp:q=0,start_timestamp:U=0}=F,P=U<=M,G=(d+f)/1e3;(!(q-U<=G)||!P)&&(O7(b,j),H++)}),H>0&&b.setAttribute("sentry.idle_span_discarded_spans",H)}return u.push(m.on("spanStart",M=>{if(r||M===b||on(M).timestamp||M instanceof t0&&M.isStandaloneSpan())return;Ag(b).includes(M)&&T(M.spanContext().spanId)})),u.push(m.on("spanEnd",M=>{r||O(M.spanContext().spanId)})),u.push(m.on("idleSpanEnableAutoFinish",M=>{M===b&&(l=!0,C(),n.size&&R())})),t.disableAutoFinish||C(),setTimeout(()=>{r||(b.setStatus({code:tr,message:"deadline_exceeded"}),s=sU,b.end())},d),b}function lU(e){const t=Vc(e);return vc(sn(),t),t}const w1=0,A2=1,O2=2;function Ml(e){return new _a(t=>{t(e)})}function im(e){return new _a((t,n)=>{n(e)})}class _a{constructor(t){this._state=w1,this._handlers=[],this._runExecutor(t)}then(t,n){return new _a((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(l){i(l)}},s=>{if(!n)i(s);else try{r(n(s))}catch(l){i(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new _a((n,r)=>{let i,s;return this.then(l=>{s=!1,i=l,t&&t()},l=>{s=!0,i=l,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===w1)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===A2&&n[1](this._value),this._state===O2&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,l)=>{if(this._state===w1){if(Qd(l)){l.then(r,i);return}this._state=s,this._value=l,this._executeHandlers()}},r=s=>{n(A2,s)},i=s=>{n(O2,s)};try{t(r,i)}catch(s){i(s)}}}function hS(e,t,n,r=0){return new _a((i,s)=>{const l=e[r];if(t===null||typeof l!="function")i(t);else{const u=l({...t},n);Qd(u)?u.then(f=>hS(e,f,n,r+1).then(i)).then(null,s):hS(e,u,n,r+1).then(i).then(null,s)}})}function uU(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;cU(e,t),r&&hU(e,r),pU(e,n),fU(e,i),dU(e,s)}function M2(e,t){const{extra:n,tags:r,user:i,contexts:s,level:l,sdkProcessingMetadata:u,breadcrumbs:f,fingerprint:d,eventProcessors:p,attachments:g,propagationContext:m,transactionName:v,span:E}=t;Yp(e,"extra",n),Yp(e,"tags",r),Yp(e,"user",i),Yp(e,"contexts",s),e.sdkProcessingMetadata=Zd(e.sdkProcessingMetadata,u,2),l&&(e.level=l),v&&(e.transactionName=v),E&&(e.span=E),f.length&&(e.breadcrumbs=[...e.breadcrumbs,...f]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...m}}function Yp(e,t,n){e[t]=Zd(e[t],n,1)}function cU(e,t){const{extra:n,tags:r,user:i,contexts:s,level:l,transactionName:u}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),l&&(e.level=l),u&&e.type!=="transaction"&&(e.transaction=u)}function fU(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function dU(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function hU(e,t){e.contexts={trace:C7(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ca(t),...e.sdkProcessingMetadata};const n=Jr(t),r=on(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function pU(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let Xp,I2,Wp;function gU(e){const t=hn._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Wp&&n.length===I2||(I2=n.length,Wp=n.reduce((r,i)=>{Xp||(Xp={});const s=Xp[i];if(s)r[s[0]]=s[1];else{const l=e(i);for(let u=l.length-1;u>=0;u--){const f=l[u],d=f==null?void 0:f.filename,p=t[i];if(d&&p){r[d]=p,Xp[i]=[d,p];break}}}return r},{})),Wp}function mU(e,t,n,r,i,s){const{normalizeDepth:l=3,normalizeMaxBreadth:u=1e3}=e,f={...t,event_id:t.event_id||n.event_id||$o(),timestamp:t.timestamp||Ul()},d=n.integrations||e.integrations.map(x=>x.name);vU(f,e),SU(f,d),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&yU(f,e.stackParser);const p=wU(r,n.captureContext);n.mechanism&&gc(f,n.mechanism);const g=i?i.getEventProcessors():[],m=o7().getScopeData();if(s){const x=s.getScopeData();M2(m,x)}if(p){const x=p.getScopeData();M2(m,x)}const v=[...n.attachments||[],...m.attachments];v.length&&(n.attachments=v),uU(f,m);const E=[...g,...m.eventProcessors];return hS(E,f,n).then(x=>(x&&bU(x),typeof l=="number"&&l>0?EU(x,l,u):x))}function vU(e,t){const{environment:n,release:r,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||n||nw,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const l=e.request;l!=null&&l.url&&(l.url=tm(l.url,s))}function yU(e,t){var r,i;const n=gU(t);(i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var l,u;(u=(l=s.stacktrace)==null?void 0:l.frames)==null||u.forEach(f=>{f.filename&&(f.debug_id=n[f.filename])})})}function bU(e){var r,i;const t={};if((i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var l,u;(u=(l=s.stacktrace)==null?void 0:l.frames)==null||u.forEach(f=>{f.debug_id&&(f.abs_path?t[f.abs_path]=f.debug_id:f.filename&&(t[f.filename]=f.debug_id),delete f.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,l])=>{n.push({type:"sourcemap",code_file:s,debug_id:l})})}function SU(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function EU(e,t,n){var i,s;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(l=>({...l,...l.data&&{data:fs(l.data,t,n)}}))},...e.user&&{user:fs(e.user,t,n)},...e.contexts&&{contexts:fs(e.contexts,t,n)},...e.extra&&{extra:fs(e.extra,t,n)}};return(i=e.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=fs(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(l=>({...l,...l.data&&{data:fs(l.data,t,n)}}))),(s=e.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=fs(e.contexts.flags,3,n)),r}function wU(e,t){if(!t)return e;const n=e?e.clone():new Pi;return n.update(t),n}function RU(e){if(e)return xU(e)?{captureContext:e}:TU(e)?{captureContext:e}:e}function xU(e){return e instanceof Pi||typeof e=="function"}const CU=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function TU(e){return Object.keys(e).some(t=>CU.includes(t))}function p6(e,t){return sn().captureException(e,RU(t))}function g6(e,t){return sn().captureEvent(e,t)}function _U(e,t){Ms().setContext(e,t)}function AU(){return Ms().lastEventId()}function OU(){const e=Kt();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function D2(e){const t=Ms(),n=sn(),{userAgent:r}=hn.navigator||{},i=XB({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),s=t.getSession();return(s==null?void 0:s.status)==="ok"&&mc(s,{status:"exited"}),m6(),t.setSession(i),i}function m6(){const e=Ms(),n=sn().getSession()||e.getSession();n&&WB(n),v6(),e.setSession()}function v6(){const e=Ms(),t=Kt(),n=e.getSession();n&&t&&t.captureSession(n)}function L2(e=!1){if(e){m6();return}v6()}const MU="7";function y6(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function IU(e){return`${y6(e)}${e.projectId}/envelope/`}function DU(e,t){const n={sentry_version:MU};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function LU(e,t,n){return t||`${IU(e)}?${DU(e,n)}`}function PU(e,t){const n=QI(e);if(!n)return"";const r=`${y6(n)}embed/error-page/`;let i=`dsn=${Hc(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const l=t.user;if(!l)continue;l.name&&(i+=`&name=${encodeURIComponent(l.name)}`),l.email&&(i+=`&email=${encodeURIComponent(l.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const P2=[];function kU(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function NU(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return kU(r)}function FU(e,t){const n={};return t.forEach(r=>{r&&b6(e,r,n)}),n}function k2(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function b6(e,t,n){if(!n[t.name]){if(n[t.name]=t,P2.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),P2.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,l)=>r(s,l,e),{id:t.name});e.addEventProcessor(i)}}}function zU(e,t,n){const r=[{type:"client_report"},{timestamp:Ul(),discarded_events:e}];return Uc(t?{dsn:t}:{},[r])}function HU(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function BU(e){var f;const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:l,op:u}=((f=e.contexts)==null?void 0:f.trace)??{};return{data:l??{},description:e.transaction,op:u,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:l==null?void 0:l[ZE],exclusive_time:l==null?void 0:l[zc],measurements:e.measurements,is_segment:!0}}function UU(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[ZE]:e.profile_id},...e.exclusive_time&&{[zc]:e.exclusive_time}}}},measurements:e.measurements}}const S6=Symbol.for("SentryInternalError"),E6=Symbol.for("SentryDoNotSendEventError");function Ig(e){return{message:e,[S6]:!0}}function R1(e){return{message:e,[E6]:!0}}function VU(e){return!!e&&typeof e=="object"&&S6 in e}function jU(e){return!!e&&typeof e=="object"&&E6 in e}class $U{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn&&(this._dsn=QI(t.dsn)),this._dsn){const n=LU(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const i=$o();if(h2(t))return i;const s={event_id:i,...n};return this._process(this.eventFromException(t,s).then(l=>this._captureEvent(l,s,r))),s.event_id}captureMessage(t,n,r,i){const s={event_id:$o(),...r},l=WE(t)?t:String(t),u=Ed(t)?this.eventFromMessage(l,n,s):this.eventFromException(t,s);return this._process(u.then(f=>this._captureEvent(f,s,i))),s.event_id}captureEvent(t,n,r){const i=$o();if(n!=null&&n.originalException&&h2(n.originalException))return i;const s={event_id:i,...n},l=t.sdkProcessingMetadata||{},u=l.capturedSpanScope,f=l.capturedSpanIsolationScope;return this._process(this._captureEvent(t,s,u||r,f)),s.event_id}captureSession(t){this.sendSession(t),mc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):Ml(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];b6(this,t,this._integrations),n||k2(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Y7(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=N7(r,B7(s));const i=this.sendEnvelope(r);i&&i.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const{release:n,environment:r=nw}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n)return;s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n)return;t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=G7(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>n):Ml({})}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=FU(this,t),k2(this,t)}_updateSessionFromEvent(t,n){var f;let r=n.level==="fatal",i=!1;const s=(f=n.exception)==null?void 0:f.values;if(s){i=!0;for(const d of s){const p=d.mechanism;if((p==null?void 0:p.handled)===!1){r=!0;break}}}const l=t.status==="ok";(l&&t.errors===0||l&&r)&&(mc(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new _a(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,t&&r>=t&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const s=this.getOptions(),l=Object.keys(this._integrations);return!n.integrations&&(l!=null&&l.length)&&(n.integrations=l),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),mU(s,t,n,r,this,i).then(u=>{if(u===null)return u;this.emit("postprocessEvent",u,n),u.contexts={trace:i7(r),...u.contexts};const f=s6(this,r);return u.sdkProcessingMetadata={dynamicSamplingContext:f,...u.sdkProcessingMetadata},u})}_captureEvent(t,n={},r=sn(),i=Ms()){return this._processEvent(t,n,r,i).then(s=>s.event_id,s=>{})}_processEvent(t,n,r,i){const s=this.getOptions(),{sampleRate:l}=s,u=R6(t),f=w6(t),d=t.type||"error",p=`before send for type \`${d}\``,g=typeof l>"u"?void 0:Rd(l);if(f&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error"),im(R1(`Discarding event because it's not included in the random sample (sampling rate = ${l})`));const m=d==="replay_event"?"replay":d;return this._prepareEvent(t,n,r,i).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",m),R1("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;const b=GU(this,s,v,n);return qU(b,p)}).then(v=>{var x;if(v===null){if(this.recordDroppedEvent("before_send",m),u){const R=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw R1(`${p} returned \`null\`, will not send event.`)}const E=r.getSession()||i.getSession();if(f&&E&&this._updateSessionFromEvent(E,v),u){const C=((x=v.sdkProcessingMetadata)==null?void 0:x.spanCountBeforeProcessing)||0,R=v.spans?v.spans.length:0,T=C-R;T>0&&this.recordDroppedEvent("before_send","span",T)}const b=v.transaction_info;if(u&&b&&v.transaction!==t.transaction){const C="custom";v.transaction_info={...b,source:C}}return this.sendEvent(v,n),v}).then(null,v=>{throw jU(v)||VU(v)?v:(this.captureException(v,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:v}),Ig(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
15
- Reason: ${v}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0||!this._dsn)return;const n=zU(t,this._options.tunnel&&Hc(this._dsn));this.sendEnvelope(n)}}function qU(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Qd(e))return e.then(r=>{if(!wd(r)&&r!==null)throw Ig(n);return r},r=>{throw Ig(`${t} rejected with ${r}`)});if(!wd(e)&&e!==null)throw Ig(n);return e}function GU(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:l,ignoreSpans:u}=t;let f=n;if(w6(f)&&i)return i(f,r);if(R6(f)){if(l||u){const d=BU(f);if(u!=null&&u.length&&dS(d,u))return null;if(l){const p=l(d);p?f=Zd(n,UU(p)):uS()}if(f.spans){const p=[],g=f.spans;for(const v of g){if(u!=null&&u.length&&dS(v,u)){j7(g,v);continue}if(l){const E=l(v);E?p.push(E):(uS(),p.push(v))}else p.push(v)}const m=f.spans.length-p.length;m&&e.recordDroppedEvent("before_send","span",m),f.spans=p}}if(s){if(f.spans){const d=f.spans.length;f.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return s(f,r)}}return f}function w6(e){return e.type===void 0}function R6(e){return e.type==="transaction"}function YU(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function XU(e,t,n,r){const i={};return t!=null&&t.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Hc(r)),Uc(i,[YU(e)])}function x1(e,t){const n=WU(e)??[];if(n.length===0)return;const r=e.getOptions(),i=XU(n,r._metadata,r.tunnel,e.getDsn());x6().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function WU(e){return x6().get(e)}function x6(){return Qm("clientToLogBufferMap",()=>new WeakMap)}function KU(e,t){t.debug===!0&&Jm(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),sn().update(t.initialScope);const r=new e(t);return QU(r),r.init(),r}function QU(e){sn().setClient(e)}const C6=Symbol.for("SentryBufferFullError");function JU(e){const t=[];function n(){return e===void 0||t.length<e}function r(l){return t.splice(t.indexOf(l),1)[0]||Promise.resolve(void 0)}function i(l){if(!n())return im(C6);const u=l();return t.indexOf(u)===-1&&t.push(u),u.then(()=>r(u)).then(null,()=>r(u).then(null,()=>{})),u}function s(l){return new _a((u,f)=>{let d=t.length;if(!d)return u(!0);const p=setTimeout(()=>{l&&l>0&&u(!1)},l);t.forEach(g=>{Ml(g).then(()=>{--d||(clearTimeout(p),u(!0))},f)})})}return{$:t,add:i,drain:s}}const ZU=60*1e3;function eV(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?ZU:r-t}function tV(e,t){return e[t]||e.all||0}function nV(e,t,n=Date.now()){return tV(e,t)>n}function rV(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n==null?void 0:n["x-sentry-rate-limits"],l=n==null?void 0:n["retry-after"];if(s)for(const u of s.trim().split(",")){const[f,d,,,p]=u.split(":",5),g=parseInt(f,10),m=(isNaN(g)?60:g)*1e3;if(!d)i.all=r+m;else for(const v of d.split(";"))v==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(i[v]=r+m):i[v]=r+m}else l?i.all=r+eV(l,r):t===429&&(i.all=r+60*1e3);return i}const oV=64;function iV(e,t,n=JU(e.bufferSize||oV)){let r={};const i=l=>n.drain(l);function s(l){const u=[];if(E2(l,(g,m)=>{const v=w2(m);nV(r,v)?e.recordDroppedEvent("ratelimit_backoff",v):u.push(g)}),u.length===0)return Ml({});const f=Uc(l[0],u),d=g=>{E2(f,(m,v)=>{e.recordDroppedEvent(g,w2(v))})},p=()=>t({body:F7(f)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300),r=rV(r,g),g),g=>{throw d("network_error"),g});return n.add(p).then(g=>g,g=>{if(g===C6)return d("queue_overflow"),Ml({});throw g})}return{send:s,flush:i}}const sV="thismessage:/";function T6(e){return"isRelative"in e}function _6(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?sV:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function aV(e){if(T6(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function wl(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function lV(e){return e.split(/[?#]/,1)[0]}function uV(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function A6(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:bl})),version:bl}),e._metadata=i}function O6(e={}){const t=e.client||Kt();if(!OU()||!t)return{};const n=Bl(),r=Nc(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||sn(),s=e.span||kr(),l=s?T7(s):cV(i),u=s?Ca(s):s6(t,i),f=d7(u);return JI.test(l)?{"sentry-trace":l,baggage:f}:(XE.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function cV(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return ZI(t,r,n)}const fV=100;function Il(e,t){const n=Kt(),r=Ms();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=fV}=n.getOptions();if(s<=0)return;const u={timestamp:Ul(),...e},f=i?Jm(()=>i(u,t)):u;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),r.addBreadcrumb(f,s))}let N2;const dV="FunctionToString",F2=new WeakMap,hV=()=>({name:dV,setupOnce(){N2=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=QE(this),n=F2.has(Kt())&&t!==void 0?t:this;return N2.apply(n,e)}}catch{}},setup(e){F2.set(e,!0)}}),pV=hV,gV=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],mV="EventFilters",vV=(e={})=>{let t;return{name:mV,setup(n){const r=n.getOptions();t=z2(e,r)},processEvent(n,r,i){if(!t){const s=i.getOptions();t=z2(e,s)}return bV(n,t)?null:n}}},yV=(e={})=>({...vV(e),name:"InboundFilters"});function z2(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:gV],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function bV(e,t){if(e.type){if(e.type==="transaction"&&EV(e,t.ignoreTransactions))return!0}else if(SV(e,t.ignoreErrors)||CV(e)||wV(e,t.denyUrls)||!RV(e,t.allowUrls))return!0;return!1}function SV(e,t){return t!=null&&t.length?HU(e).some(n=>Sa(n,t)):!1}function EV(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?Sa(n,t):!1}function wV(e,t){if(!(t!=null&&t.length))return!1;const n=M6(e);return n?Sa(n,t):!1}function RV(e,t){if(!(t!=null&&t.length))return!0;const n=M6(e);return n?Sa(n,t):!0}function xV(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function M6(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(s=>{var l,u,f;return((l=s.mechanism)==null?void 0:l.parent_id)===void 0&&((f=(u=s.stacktrace)==null?void 0:u.frames)==null?void 0:f.length)}),i=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return i?xV(i):null}catch{return null}}function CV(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function TV(e,t,n,r,i,s){var u;if(!((u=i.exception)!=null&&u.values)||!s||!Cs(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=pS(e,t,r,s.originalException,n,i.exception.values,l,0))}function pS(e,t,n,r,i,s,l,u){if(s.length>=n+1)return s;let f=[...s];if(Cs(r[i],Error)){H2(l,u);const d=e(t,r[i]),p=f.length;B2(d,i,p,u),f=pS(e,t,n,r[i],i,[d,...f],d,p)}return Array.isArray(r.errors)&&r.errors.forEach((d,p)=>{if(Cs(d,Error)){H2(l,u);const g=e(t,d),m=f.length;B2(g,`errors[${p}]`,m,u),f=pS(e,t,n,d,i,[g,...f],g,m)}}),f}function H2(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function B2(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function _V(e){const t="console";La(t,e),Pa(t,AV)}function AV(){"console"in hn&&CB.forEach(function(e){e in hn.console&&vo(hn.console,e,function(t){return em[e]=t,function(...n){jo("console",{args:n,level:e});const i=em[e];i==null||i.apply(hn.console,n)}})})}function OV(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const MV="Dedupe",IV=()=>{let e;return{name:MV,processEvent(t){if(t.type)return t;try{if(LV(t,e))return xB&&XE.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},DV=IV;function LV(e,t){return t?!!(PV(e,t)||kV(e,t)):!1}function PV(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!D6(e,t)||!I6(e,t))}function kV(e,t){const n=U2(t),r=U2(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!D6(e,t)||!I6(e,t))}function I6(e,t){let n=a2(e),r=a2(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],l=n[i];if(s.filename!==l.filename||s.lineno!==l.lineno||s.colno!==l.colno||s.function!==l.function)return!1}return!0}function D6(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function U2(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function NV(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const{method:s,url:l}=e.fetchData,u=xa()&&t(l);if(e.endTimestamp&&u){const g=e.fetchData.__span;if(!g)return;const m=r[g];m&&(zV(m,e),delete r[g]);return}const f=!!kr(),d=u&&f?Vc(BV(l,s,i)):new Ta;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const g=e.args[0],m=e.args[1]||{},v=FV(g,m,xa()&&f?d:void 0);v&&(e.args[1]=m,m.headers=v)}const p=Kt();if(p){const g={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,g)}return d}function FV(e,t,n){const r=O6({span:n}),i=r["sentry-trace"],s=r.baggage;if(!i)return;const l=t.headers||(zI(e)?e.headers:void 0);if(l)if(HV(l)){const u=new Headers(l);if(u.get("sentry-trace")||u.set("sentry-trace",i),s){const f=u.get("baggage");f?Kp(f)||u.set("baggage",`${f},${s}`):u.set("baggage",s)}return u}else if(Array.isArray(l)){const u=[...l];l.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",i]);const f=l.find(d=>d[0]==="baggage"&&Kp(d[1]));return s&&!f&&u.push(["baggage",s]),u}else{const u="sentry-trace"in l?l["sentry-trace"]:void 0,f="baggage"in l?l.baggage:void 0,d=f?Array.isArray(f)?[...f]:[f]:[],p=f&&(Array.isArray(f)?f.find(g=>Kp(g)):Kp(f));return s&&!p&&d.push(s),{...l,"sentry-trace":u??i,baggage:d.length>0?d.join(","):void 0}}else return{...r}}function zV(e,t){var n,r;if(t.response){GI(e,t.response.status);const i=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(i){const s=parseInt(i);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:tr,message:"internal_error"});e.end()}function Kp(e){return e.split(",").some(t=>t.trim().startsWith(ew))}function HV(e){return typeof Headers<"u"&&Cs(e,Headers)}function BV(e,t,n){const r=_6(e);return{name:r?`${t} ${aV(r)}`:t,attributes:UV(e,r,t,n)}}function UV(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[jn]:r,[ii]:"http.client"};return t&&(T6(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function L6(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const xd=hn;function VV(){return"history"in xd&&!!xd.history}function jV(){if(!("fetch"in xd))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function gS(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function $V(){var n;if(typeof EdgeRuntime=="string")return!0;if(!jV())return!1;if(gS(xd.fetch))return!0;let e=!1;const t=xd.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=gS(r.contentWindow.fetch)),t.head.removeChild(r)}catch{}return e}function P6(e,t){const n="fetch";La(n,e),Pa(n,()=>k6(void 0,t))}function qV(e){const t="fetch-body-resolved";La(t,e),Pa(t,()=>k6(YV))}function k6(e,t=!1){t&&!$V()||vo(hn,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:l}=XV(r),u={args:r,fetchData:{method:s,url:l},startTimestamp:br()*1e3,virtualError:i,headers:WV(r)};return e||jo("fetch",{...u}),n.apply(hn,r).then(async f=>(e?e(f):jo("fetch",{...u,endTimestamp:br()*1e3,response:f}),f),f=>{if(jo("fetch",{...u,endTimestamp:br()*1e3,error:f}),Zm(f)&&f.stack===void 0&&(f.stack=i.stack,Pr(f,"framesToPop",1)),f instanceof TypeError&&(f.message==="Failed to fetch"||f.message==="Load failed"||f.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(u.fetchData.url);f.message=`${f.message} (${d.host})`}catch{}throw f})}})}async function GV(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let l;try{l=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:u}=await r.read();clearTimeout(l),u&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(l)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function YV(e){let t;try{t=e.clone()}catch{return}GV(t,()=>{jo("fetch-body-resolved",{endTimestamp:br()*1e3,response:e})})}function mS(e,t){return!!e&&typeof e=="object"&&!!e[t]}function V2(e){return typeof e=="string"?e:e?mS(e,"url")?e.url:e.toString?e.toString():"":""}function XV(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:V2(n),method:mS(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:V2(t),method:mS(t,"method")?String(t.method).toUpperCase():"GET"}}function WV(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(zI(t))return new Headers(t.headers)}catch{}}function KV(){return"npm"}const Dt=hn;let vS=0;function N6(){return vS>0}function QV(){vS++,setTimeout(()=>{vS--})}function bc(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(QE(e))return e}catch{return e}const r=function(...i){try{const s=i.map(l=>bc(l,t));return e.apply(this,s)}catch(s){throw QV(),Fc(l=>{l.addEventProcessor(u=>(t.mechanism&&(sS(u,void 0),gc(u,t.mechanism)),u.extra={...u.extra,arguments:i},u)),p6(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}BI(r,e),Pr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function iw(){const e=Jd(),{referrer:t}=Dt.document||{},{userAgent:n}=Dt.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function sw(e,t){const n=aw(e,t),r={type:n9(t),value:r9(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function JV(e,t,n,r){const i=Kt(),s=i==null?void 0:i.getOptions().normalizeDepth,l=l9(t),u={__serialized__:a6(t,s)};if(l)return{exception:{values:[sw(e,l)]},extra:u};const f={exception:{values:[{type:e0(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:s9(t,{isUnhandledRejection:r})}]},extra:u};if(n){const d=aw(e,n);d.length&&(f.exception.values[0].stacktrace={frames:d})}return f}function C1(e,t){return{exception:{values:[sw(e,t)]}}}function aw(e,t){const n=t.stacktrace||t.stack||"",r=e9(t),i=t9(t);try{return e(n,r,i)}catch{}return[]}const ZV=/Minified React error #\d+;/i;function e9(e){return e&&ZV.test(e.message)?1:0}function t9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function F6(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function n9(e){const t=e==null?void 0:e.name;return!t&&F6(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function r9(e){const t=e==null?void 0:e.message;return F6(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function o9(e,t,n,r){const i=(n==null?void 0:n.syntheticException)||void 0,s=lw(e,t,i,r);return gc(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),Ml(s)}function i9(e,t,n="info",r,i){const s=(r==null?void 0:r.syntheticException)||void 0,l=yS(e,t,s,i);return l.level=n,r!=null&&r.event_id&&(l.event_id=r.event_id),Ml(l)}function lw(e,t,n,r,i){let s;if(NI(t)&&t.error)return C1(e,t.error);if(u2(t)||NB(t)){const l=t;if("stack"in t)s=C1(e,t);else{const u=l.name||(u2(l)?"DOMError":"DOMException"),f=l.message?`${u}: ${l.message}`:u;s=yS(e,f,n,r),sS(s,f)}return"code"in l&&(s.tags={...s.tags,"DOMException.code":`${l.code}`}),s}return Zm(t)?C1(e,t):wd(t)||e0(t)?(s=JV(e,t,n,i),gc(s,{synthetic:!0}),s):(s=yS(e,t,n,r),sS(s,`${t}`),gc(s,{synthetic:!0}),s)}function yS(e,t,n,r){const i={};if(r&&n){const s=aw(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),gc(i,{synthetic:!0})}if(WE(t)){const{__sentry_template_string__:s,__sentry_template_values__:l}=t;return i.logentry={message:s,params:l},i}return i.message=t,i}function s9(e,{isUnhandledRejection:t}){const n=VB(e),r=t?"promise rejection":"exception";return NI(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:e0(e)?`Event \`${a9(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function a9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function l9(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const u9=5e3;class c9 extends $U{constructor(t){var u;const n=f9(t),r=Dt.SENTRY_SDK_SOURCE||KV();A6(n,"browser",["browser"],r),(u=n._metadata)!=null&&u.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:l}=this._options;Dt.document&&(s||l)&&Dt.document.addEventListener("visibilitychange",()=>{Dt.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),l&&x1(this))}),l&&(this.on("flush",()=>{x1(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{x1(this)},u9)})),i&&this.on("beforeSendSession",uV)}eventFromException(t,n){return o9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return i9(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function f9(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Dt.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const mt=hn,d9=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",rh=(e,t,n,r)=>{let i,s;return l=>{t.value>=0&&(l||r)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=d9(t.value,n),e(t)))}},h9=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,oh=(e=!0)=>{var n,r;const t=(r=(n=mt.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},jc=()=>{const e=oh();return(e==null?void 0:e.activationStart)??0},ih=(e,t=-1)=>{var s,l;const n=oh();let r="navigate";return n&&((s=mt.document)!=null&&s.prerendering||jc()>0?r="prerender":(l=mt.document)!=null&&l.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:h9(),navigationType:r}},T1=new WeakMap;function uw(e,t){return T1.get(e)||T1.set(e,new t),T1.get(e)}class sm{constructor(){sm.prototype.__init.call(this),sm.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var i;if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),(i=this._onAfterProcessingUnexpectedShift)==null||i.call(this,t)}}const $c=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},cw=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let sd=-1;const p9=()=>{var e,t;return((e=mt.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=mt.document)!=null&&t.prerendering)?0:1/0},am=e=>{mt.document.visibilityState==="hidden"&&sd>-1&&(sd=e.type==="visibilitychange"?e.timeStamp:0,m9())},g9=()=>{addEventListener("visibilitychange",am,!0),addEventListener("prerenderingchange",am,!0)},m9=()=>{removeEventListener("visibilitychange",am,!0),removeEventListener("prerenderingchange",am,!0)},fw=()=>{var e;if(mt.document&&sd<0){const t=jc();sd=(mt.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??p9(),g9()}return{get firstHiddenTime(){return sd}}},n0=e=>{var t;(t=mt.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},v9=[1800,3e3],y9=(e,t={})=>{n0(()=>{const n=fw(),r=ih("FCP");let i;const l=$c("paint",u=>{for(const f of u)f.name==="first-contentful-paint"&&(l.disconnect(),f.startTime<n.firstHiddenTime&&(r.value=Math.max(f.startTime-jc(),0),r.entries.push(f),i(!0)))});l&&(i=rh(e,r,v9,t.reportAllChanges))})},b9=[.1,.25],S9=(e,t={})=>{y9(cw(()=>{var u,f;const n=ih("CLS",0);let r;const i=uw(t,sm),s=d=>{for(const p of d)i._processEntry(p);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},l=$c("layout-shift",s);l&&(r=rh(e,n,b9,t.reportAllChanges),(u=mt.document)==null||u.addEventListener("visibilitychange",()=>{var d;((d=mt.document)==null?void 0:d.visibilityState)==="hidden"&&(s(l.takeRecords()),r(!0))}),(f=mt==null?void 0:mt.setTimeout)==null||f.call(mt,r))}))};let z6=0,_1=1/0,Qp=0;const E9=e=>{e.forEach(t=>{t.interactionId&&(_1=Math.min(_1,t.interactionId),Qp=Math.max(Qp,t.interactionId),z6=Qp?(Qp-_1)/7+1:0)})};let bS;const H6=()=>bS?z6:performance.interactionCount||0,w9=()=>{"interactionCount"in performance||bS||(bS=$c("event",E9,{type:"event",buffered:!0,durationThreshold:0}))},A1=10;let B6=0;const R9=()=>H6()-B6;class lm{constructor(){lm.prototype.__init.call(this),lm.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){B6=H6(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(R9()/50));return this._longestInteractionList[t]}_processEntry(t){var i,s;if((i=this._onBeforeProcessingEntry)==null||i.call(this,t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<A1||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((l,u)=>u._latency-l._latency),this._longestInteractionList.length>A1){const l=this._longestInteractionList.splice(A1);for(const u of l)this._longestInteractionMap.delete(u.id)}(s=this._onAfterProcessingINPCandidate)==null||s.call(this,r)}}}const dw=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=mt.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};mt.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},U6=e=>{var n;const t=mt.requestIdleCallback||mt.setTimeout;((n=mt.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=cw(e),t(e),dw(e))},x9=[200,500],C9=40,T9=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&n0(()=>{w9();const n=ih("INP");let r;const i=uw(t,lm),s=u=>{U6(()=>{for(const d of u)i._processEntry(d);const f=i._estimateP98LongestInteraction();f&&f._latency!==n.value&&(n.value=f._latency,n.entries=f.entries,r())})},l=$c("event",s,{durationThreshold:t.durationThreshold??C9});r=rh(e,n,x9,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),dw(()=>{s(l.takeRecords()),r(!0)}))})};class _9{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const A9=[2500,4e3],O9=(e,t={})=>{n0(()=>{const n=fw(),r=ih("LCP");let i;const s=uw(t,_9),l=f=>{t.reportAllChanges||(f=f.slice(-1));for(const d of f)s._processEntry(d),d.startTime<n.firstHiddenTime&&(r.value=Math.max(d.startTime-jc(),0),r.entries=[d],i())},u=$c("largest-contentful-paint",l);if(u){i=rh(e,r,A9,t.reportAllChanges);const f=cw(()=>{l(u.takeRecords()),u.disconnect(),i(!0)});for(const d of["keydown","click","visibilitychange"])mt.document&&addEventListener(d,()=>U6(f),{capture:!0,once:!0})}})},M9=[800,1800],SS=e=>{var t,n;(t=mt.document)!=null&&t.prerendering?n0(()=>SS(e)):((n=mt.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>SS(e),!0):setTimeout(e)},I9=(e,t={})=>{const n=ih("TTFB"),r=rh(e,n,M9,t.reportAllChanges);SS(()=>{const i=oh();i&&(n.value=Math.max(i.responseStart-jc(),0),n.entries=[i],r(!0))})},ad={},um={};let V6,j6,$6,q6;function G6(e,t=!1){return r0("cls",e,P9,V6,t)}function Y6(e,t=!1){return r0("lcp",e,k9,j6,t)}function D9(e){return r0("ttfb",e,N9,$6)}function L9(e){return r0("inp",e,F9,q6)}function Sc(e,t){return X6(e,t),um[e]||(z9(e),um[e]=!0),W6(e,t)}function sh(e,t){const n=ad[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch{}}function P9(){return S9(e=>{sh("cls",{metric:e}),V6=e},{reportAllChanges:!0})}function k9(){return O9(e=>{sh("lcp",{metric:e}),j6=e},{reportAllChanges:!0})}function N9(){return I9(e=>{sh("ttfb",{metric:e}),$6=e})}function F9(){return T9(e=>{sh("inp",{metric:e}),q6=e})}function r0(e,t,n,r,i=!1){X6(e,t);let s;return um[e]||(s=n(),um[e]=!0),r&&t({metric:r}),W6(e,t,i?s:void 0)}function z9(e){const t={};e==="event"&&(t.durationThreshold=0),$c(e,n=>{sh(e,{entries:n})},t)}function X6(e,t){ad[e]=ad[e]||[],ad[e].push(t)}function W6(e,t,n){return()=>{n&&n();const r=ad[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function H9(e){return"duration"in e}function O1(e){return typeof e=="number"&&isFinite(e)}function Aa(e,t,n,{...r}){const i=on(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),rw(e,()=>{const s=Vc({startTime:t,...r});return s&&s.end(n),s})}function hw(e){var x;const t=Kt();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:l,environment:u,sendDefaultPii:f}=t.getOptions(),d=t.getIntegrationByName("Replay"),p=d==null?void 0:d.getReplayId(),g=sn(),m=g.getUser(),v=m!==void 0?m.email||m.id||m.ip_address:void 0;let E;try{E=g.getScopeData().contexts.profile.profile_id}catch{}const b={release:l,environment:u,user:v||void 0,profile_id:E||void 0,replay_id:p||void 0,transaction:r,"user_agent.original":(x=mt.navigator)==null?void 0:x.userAgent,"client.address":f?"{{auto}}":void 0,...i};return Vc({name:n,attributes:b,startTime:s,experimental:{standalone:!0}})}function o0(){return mt.addEventListener&&mt.performance}function Fn(e){return e/1e3}function K6(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function Q6(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function J6(e,t){let n,r=!1;function i(u){!r&&n&&t(u,n),r=!0}dw(()=>{i("pagehide")});const s=e.on("beforeStartNavigationSpan",(u,f)=>{f!=null&&f.isRedirect||(i("navigation"),j2(s,l))}),l=e.on("afterStartPageLoadSpan",u=>{n=u.spanContext().spanId,j2(l)})}function j2(...e){e.forEach(t=>t&&setTimeout(t,0))}function B9(e){let t=0,n;if(!Q6("layout-shift"))return;const r=G6(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);J6(e,(i,s)=>{U9(t,n,s,i),r()})}function U9(e,t,n,r){var d;const i=Fn((Ro()||0)+((t==null?void 0:t.startTime)||0)),s=sn().getScopeData().transactionName,l=t?Li((d=t.sources[0])==null?void 0:d.node):"Layout shift",u={[jn]:"auto.http.browser.cls",[ii]:"ui.webvital.cls",[zc]:(t==null?void 0:t.duration)||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((p,g)=>{u[`cls.source.${g+1}`]=Li(p.node)});const f=hw({name:l,transaction:s,attributes:u,startTime:i});f&&(f.addEvent("cls",{[th]:"",[nh]:e}),f.end(i))}function V9(e){let t=0,n;if(!Q6("largest-contentful-paint"))return;const r=Y6(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);J6(e,(i,s)=>{j9(t,n,s,i),r()})}function j9(e,t,n,r){const i=Fn((Ro()||0)+((t==null?void 0:t.startTime)||0)),s=sn().getScopeData().transactionName,l=t?Li(t.element):"Largest contentful paint",u={[jn]:"auto.http.browser.lcp",[ii]:"ui.webvital.lcp",[zc]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(u["lcp.element"]=Li(t.element)),t.id&&(u["lcp.id"]=t.id),t.url&&(u["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(u["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(u["lcp.renderTime"]=t.renderTime),t.size!=null&&(u["lcp.size"]=t.size));const f=hw({name:l,transaction:s,attributes:u,startTime:i});f&&(f.addEvent("lcp",{[th]:"millisecond",[nh]:e}),f.end(i))}const $9=2147483647;let $2=0,Zo={},Gr,ku;function q9({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=o0();if(r&&Ro()){r.mark&&mt.performance.mark("sentry-tracing-init");const i=t?V9(n):K9(),s=Q9(),l=e?B9(n):W9();return()=>{i==null||i(),s(),l==null||l()}}return()=>{}}function G9(){Sc("longtask",({entries:e})=>{const t=kr();if(!t)return;const{op:n,start_timestamp:r}=on(t);for(const i of e){const s=Fn(Ro()+i.startTime),l=Fn(i.duration);n==="navigation"&&r&&s<r||Aa(t,s,s+l,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[jn]:"auto.ui.browser.metrics"}})}})}function Y9(){new PerformanceObserver(t=>{const n=kr();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=Fn(Ro()+r.startTime),{start_timestamp:s,op:l}=on(n);if(l==="navigation"&&s&&i<s)continue;const u=Fn(r.duration),f={[jn]:"auto.ui.browser.metrics"},d=r.scripts[0],{invoker:p,invokerType:g,sourceURL:m,sourceFunctionName:v,sourceCharPosition:E}=d;f["browser.script.invoker"]=p,f["browser.script.invoker_type"]=g,m&&(f["code.filepath"]=m),v&&(f["code.function"]=v),E!==-1&&(f["browser.script.source_char_position"]=E),Aa(n,i,i+u,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function X9(){Sc("event",({entries:e})=>{const t=kr();if(t){for(const n of e)if(n.name==="click"){const r=Fn(Ro()+n.startTime),i=Fn(n.duration),s={name:Li(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[jn]:"auto.ui.browser.metrics"}},l=HI(n.target);l&&(s.attributes["ui.component_name"]=l),Aa(t,r,r+i,s)}}})}function W9(){return G6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Zo.cls={value:e.value,unit:""},ku=t)},!0)}function K9(){return Y6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Zo.lcp={value:e.value,unit:"millisecond"},Gr=t)},!0)}function Q9(){return D9(({metric:e})=>{e.entries[e.entries.length-1]&&(Zo.ttfb={value:e.value,unit:"millisecond"})})}function J9(e,t){const n=o0(),r=Ro();if(!(n!=null&&n.getEntries)||!r)return;const i=Fn(r),s=n.getEntries(),{op:l,start_timestamp:u}=on(e);s.slice($2).forEach(f=>{const d=Fn(f.startTime),p=Fn(Math.max(0,f.duration));if(!(l==="navigation"&&u&&i+d<u))switch(f.entryType){case"navigation":{tj(e,f,i);break}case"mark":case"paint":case"measure":{Z9(e,f,d,p,i,t.ignorePerformanceApiSpans);const g=fw(),m=f.startTime<g.firstHiddenTime;f.name==="first-paint"&&m&&(Zo.fp={value:f.startTime,unit:"millisecond"}),f.name==="first-contentful-paint"&&m&&(Zo.fcp={value:f.startTime,unit:"millisecond"});break}case"resource":{oj(e,f,f.name,d,p,i,t.ignoreResourceSpans);break}}}),$2=Math.max(s.length-1,0),ij(e),l==="pageload"&&(aj(Zo),t.recordClsOnPageloadSpan||delete Zo.cls,t.recordLcpOnPageloadSpan||delete Zo.lcp,Object.entries(Zo).forEach(([f,d])=>{W7(f,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",jc()),sj(e,t)),Gr=void 0,ku=void 0,Zo={}}function Z9(e,t,n,r,i,s){if(["mark","measure"].includes(t.entryType)&&Sa(t.name,s))return;const l=oh(!1),u=Fn(l?l.requestStart:0),f=i+Math.max(n,u),d=i+n,p=d+r,g={[jn]:"auto.resource.browser.metrics"};f!==d&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=f),ej(g,t),f<=p&&Aa(e,f,p,{name:t.name,op:t.entryType,attributes:g})}function ej(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Ed(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Ed(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function tj(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Jp(e,t,r,n)}),Jp(e,t,"secureConnection",n,"TLS/SSL"),Jp(e,t,"fetch",n,"cache"),Jp(e,t,"domainLookup",n,"DNS"),rj(e,t,n)}function Jp(e,t,n,r,i=n){const s=nj(n),l=t[s],u=t[`${n}Start`];!u||!l||Aa(e,r+Fn(u),r+Fn(l),{op:`browser.${i}`,name:t.name,attributes:{[jn]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function nj(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function rj(e,t,n){const r=n+Fn(t.requestStart),i=n+Fn(t.responseEnd),s=n+Fn(t.responseStart);t.responseEnd&&(Aa(e,r,i,{op:"browser.request",name:t.name,attributes:{[jn]:"auto.ui.browser.metrics"}}),Aa(e,s,i,{op:"browser.response",name:t.name,attributes:{[jn]:"auto.ui.browser.metrics"}}))}function oj(e,t,n,r,i,s,l){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(l!=null&&l.includes(u))return;const f=wl(n),d={[jn]:"auto.resource.browser.metrics"};M1(d,t,"transferSize","http.response_transfer_size"),M1(d,t,"encodedBodySize","http.response_content_length"),M1(d,t,"decodedBodySize","http.decoded_response_content_length");const p=t.deliveryType;p!=null&&(d["http.response_delivery_type"]=p);const g=t.renderBlockingStatus;if(g&&(d["resource.render_blocking_status"]=g),f.protocol&&(d["url.scheme"]=f.protocol.split(":").pop()),f.host&&(d["server.address"]=f.host),d["url.same_origin"]=n.includes(mt.location.origin),t.nextHopProtocol!=null){const{name:E,version:b}=K6(t.nextHopProtocol);d["network.protocol.name"]=E,d["network.protocol.version"]=b}const m=s+r,v=m+i;Aa(e,m,v,{name:n.replace(mt.location.origin,""),op:u,attributes:d})}function ij(e){const t=mt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),O1(n.rtt)&&(Zo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),O1(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),O1(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function sj(e,t){Gr&&t.recordLcpOnPageloadSpan&&(Gr.element&&e.setAttribute("lcp.element",Li(Gr.element)),Gr.id&&e.setAttribute("lcp.id",Gr.id),Gr.url&&e.setAttribute("lcp.url",Gr.url.trim().slice(0,200)),Gr.loadTime!=null&&e.setAttribute("lcp.loadTime",Gr.loadTime),Gr.renderTime!=null&&e.setAttribute("lcp.renderTime",Gr.renderTime),e.setAttribute("lcp.size",Gr.size)),ku!=null&&ku.sources&&t.recordClsOnPageloadSpan&&ku.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,Li(n.node)))}function M1(e,t,n,r){const i=t[n];i!=null&&i<$9&&(e[r]=i)}function aj(e){const t=oh(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function lj(){return o0()&&Ro()?Sc("element",uj):()=>{}}const uj=({entries:e})=>{const t=kr(),n=t?Jr(t):void 0,r=n?on(n).description:sn().getScopeData().transactionName;e.forEach(i=>{var v,E;const s=i;if(!s.identifier)return;const l=s.name,u=s.renderTime,f=s.loadTime,[d,p]=f?[Fn(f),"load-time"]:u?[Fn(u),"render-time"]:[br(),"entry-emission"],g=l==="image-paint"?Fn(Math.max(0,(u??0)-(f??0))):0,m={[jn]:"auto.ui.browser.elementtiming",[ii]:"ui.elementtiming",[Wr]:"component","sentry.span_start_time_source":p,"sentry.transaction_name":r,"element.id":s.id,"element.type":((E=(v=s.element)==null?void 0:v.tagName)==null?void 0:E.toLowerCase())||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":u,"element.load_time":f,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":l};tU({name:`element[${s.identifier}]`,attributes:m,startTime:d,onlyIfParent:!0},b=>{b.end(d+g)})})},cj=1e3;let q2,ES,wS;function fj(e){const t="dom";La(t,e),Pa(t,dj)}function dj(){if(!mt.document)return;const e=jo.bind(null,"dom"),t=G2(e,!0);mt.document.addEventListener("click",t,!1),mt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var s,l;const i=(s=mt[n])==null?void 0:s.prototype;(l=i==null?void 0:i.hasOwnProperty)!=null&&l.call(i,"addEventListener")&&(vo(i,"addEventListener",function(u){return function(f,d,p){if(f==="click"||f=="keypress")try{const g=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},m=g[f]=g[f]||{refCount:0};if(!m.handler){const v=G2(e);m.handler=v,u.call(this,f,v,p)}m.refCount++}catch{}return u.call(this,f,d,p)}}),vo(i,"removeEventListener",function(u){return function(f,d,p){if(f==="click"||f=="keypress")try{const g=this.__sentry_instrumentation_handlers__||{},m=g[f];m&&(m.refCount--,m.refCount<=0&&(u.call(this,f,m.handler,p),m.handler=void 0,delete g[f]),Object.keys(g).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return u.call(this,f,d,p)}}))})}function hj(e){if(e.type!==ES)return!1;try{if(!e.target||e.target._sentryId!==wS)return!1}catch{}return!0}function pj(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function G2(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=gj(n);if(pj(n.type,r))return;Pr(n,"_sentryCaptured",!0),r&&!r._sentryId&&Pr(r,"_sentryId",$o());const i=n.type==="keypress"?"input":n.type;hj(n)||(e({event:n,name:i,global:t}),ES=n.type,wS=r?r._sentryId:void 0),clearTimeout(q2),q2=mt.setTimeout(()=>{wS=void 0,ES=void 0},cj)}}function gj(e){try{return e.target}catch{return null}}let Zp;function pw(e){const t="history";La(t,e),Pa(t,mj)}function mj(){if(mt.addEventListener("popstate",()=>{const t=mt.location.href,n=Zp;if(Zp=t,n===t)return;jo("history",{from:n,to:t})}),!VV())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Zp,s=vj(String(r));if(Zp=s,i===s)return t.apply(this,n);jo("history",{from:i,to:s})}return t.apply(this,n)}}vo(mt.history,"pushState",e),vo(mt.history,"replaceState",e)}function vj(e){try{return new URL(e,mt.location.origin).toString()}catch{return e}}const Dg={};function yj(e){const t=Dg[e];if(t)return t;let n=mt[e];if(gS(n))return Dg[e]=n.bind(mt);const r=mt.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s!=null&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch{}return n&&(Dg[e]=n.bind(mt))}function Y2(e){Dg[e]=void 0}const Nu="__sentry_xhr_v3__";function Z6(e){const t="xhr";La(t,e),Pa(t,bj)}function bj(){if(!mt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,s=br()*1e3,l=Ss(r[0])?r[0].toUpperCase():void 0,u=Sj(r[1]);if(!l||!u)return t.apply(n,r);n[Nu]={method:l,url:u,request_headers:{}},l==="POST"&&u.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const d=n[Nu];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const p={endTimestamp:br()*1e3,startTimestamp:s,xhr:n,virtualError:i};jo("xhr",p)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,p,g){return f(),d.apply(p,g)}}):n.addEventListener("readystatechange",f),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,p,g){const[m,v]=g,E=p[Nu];return E&&Ss(m)&&Ss(v)&&(E.request_headers[m.toLowerCase()]=v),d.apply(p,g)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Nu];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:br()*1e3,xhr:n};return jo("xhr",s),t.apply(n,r)}})}function Sj(e){if(Ss(e))return e;try{return e.toString()}catch{}}const I1=[],Lg=new Map,Ej=60;function wj(){if(o0()&&Ro()){const t=Rj();return()=>{t()}}return()=>{}}const X2={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Rj(){return L9(xj)}const xj=({metric:e})=>{if(e.value==null)return;const t=Fn(e.value);if(t>Ej)return;const n=e.entries.find(E=>E.duration===e.value&&X2[E.name]);if(!n)return;const{interactionId:r}=n,i=X2[n.name],s=Fn(Ro()+n.startTime),l=kr(),u=l?Jr(l):void 0,d=(r!=null?Lg.get(r):void 0)||u,p=d?on(d).description:sn().getScopeData().transactionName,g=Li(n.target),m={[jn]:"auto.http.browser.inp",[ii]:`ui.interaction.${i}`,[zc]:n.duration},v=hw({name:g,transaction:p,attributes:m,startTime:s});v&&(v.addEvent("inp",{[th]:"millisecond",[nh]:e.value}),v.end(s+t))};function Cj(){const e=({entries:t})=>{const n=kr(),r=n&&Jr(n);t.forEach(i=>{if(!H9(i)||!r)return;const s=i.interactionId;if(s!=null&&!Lg.has(s)){if(I1.length>10){const l=I1.shift();Lg.delete(l)}I1.push(s),Lg.set(s,r)}})};Sc("event",e),Sc("first-input",e)}function Tj(e,t=yj("fetch")){let n=0,r=0;function i(s){const l=s.body.length;n+=l,r++;const u={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Y2("fetch"),im("No fetch implementation available");try{return t(e.url,u).then(f=>(n-=l,r--,{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}))}catch(f){return Y2("fetch"),n-=l,r--,im(f)}}return iV(e,i)}const _j=30,Aj=50;function RS(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?Al:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Oj=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Mj=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ij=/\((\S*)(?::(\d+))(?::(\d+))\)/,Dj=/at (.+?) ?\(data:(.+?),/,Lj=e=>{const t=e.match(Dj);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Oj.exec(e);if(n){const[,i,s,l]=n;return RS(i,Al,+s,+l)}const r=Mj.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const u=Ij.exec(r[2]);u&&(r[2]=u[1],r[3]=u[2],r[4]=u[3])}const[s,l]=e3(r[1]||Al,r[2]);return RS(l,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Pj=[_j,Lj],kj=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Nj=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Fj=e=>{const t=kj.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=Nj.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||Al;return[i,r]=e3(i,r),RS(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},zj=[Aj,Fj],Hj=[Pj,zj],Bj=DI(...Hj),e3=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Al,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},W2=1024,Uj="Breadcrumbs",Vj=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Uj,setup(n){t.console&&_V(Gj(n)),t.dom&&fj(qj(n,t.dom)),t.xhr&&Z6(Yj(n)),t.fetch&&P6(Xj(n)),t.history&&pw(Wj(n)),t.sentry&&n.on("beforeSendEvent",$j(n))}}},jj=Vj;function $j(e){return function(n){Kt()===e&&Il({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:$B(n)},{event:n})}}function qj(e,t){return function(r){if(Kt()!==e)return;let i,s,l=typeof t=="object"?t.serializeAttribute:void 0,u=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;u&&u>W2&&(u=W2),typeof l=="string"&&(l=[l]);try{const d=r.event,p=Kj(d)?d.target:d;i=Li(p,{keyAttrs:l,maxStringLength:u}),s=HI(p)}catch{i="<unknown>"}if(i.length===0)return;const f={category:`ui.${r.name}`,message:i};s&&(f.data={"ui.component_name":s}),Il(f,{event:r.event,name:r.name,global:r.global})}}function Gj(e){return function(n){if(Kt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:OV(n.level),message:c2(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${c2(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Il(r,{input:n.args,level:n.level})}}function Yj(e){return function(n){if(Kt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Nu];if(!r||!i||!s)return;const{method:l,url:u,status_code:f,body:d}=s,p={method:l,url:u,status_code:f},g={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},m={category:"xhr",data:p,type:"http",level:L6(f)};e.emit("beforeOutgoingRequestBreadcrumb",m,g),Il(m,g)}}function Xj(e){return function(n){if(Kt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,l={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},u={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",u,l),Il(u,l)}else{const s=n.response,l={...n.fetchData,status_code:s==null?void 0:s.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s==null||s.status;const u={input:n.args,response:s,startTimestamp:r,endTimestamp:i},f={category:"fetch",data:l,type:"http",level:L6(l.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",f,u),Il(f,u)}}}function Wj(e){return function(n){if(Kt()!==e)return;let r=n.from,i=n.to;const s=wl(Dt.location.href);let l=r?wl(r):void 0;const u=wl(i);l!=null&&l.path||(l=s),s.protocol===u.protocol&&s.host===u.host&&(i=u.relative),s.protocol===l.protocol&&s.host===l.host&&(r=l.relative),Il({category:"navigation",data:{from:r,to:i}})}}function Kj(e){return!!e&&!!e.target}const Qj=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Jj="BrowserApiErrors",Zj=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Jj,setupOnce(){t.setTimeout&&vo(Dt,"setTimeout",K2),t.setInterval&&vo(Dt,"setInterval",K2),t.requestAnimationFrame&&vo(Dt,"requestAnimationFrame",t$),t.XMLHttpRequest&&"XMLHttpRequest"in Dt&&vo(XMLHttpRequest.prototype,"send",n$);const n=t.eventTarget;n&&(Array.isArray(n)?n:Qj).forEach(i=>r$(i,t))}}},e$=Zj;function K2(e){return function(...t){const n=t[0];return t[0]=bc(n,{mechanism:{data:{function:Ol(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function t$(e){return function(t){return e.apply(this,[bc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ol(e)},handled:!1,type:"instrument"}})])}}function n$(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&vo(n,i,function(s){const l={mechanism:{data:{function:i,handler:Ol(s)},handled:!1,type:"instrument"}},u=QE(s);return u&&(l.mechanism.data.handler=Ol(u)),bc(s,l)})}),e.apply(this,t)}}function r$(e,t){var i,s;const r=(i=Dt[e])==null?void 0:i.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(vo(r,"addEventListener",function(l){return function(u,f,d){try{o$(f)&&(f.handleEvent=bc(f.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ol(f),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&i$(this,u,f),l.apply(this,[u,bc(f,{mechanism:{data:{function:"addEventListener",handler:Ol(f),target:e},handled:!1,type:"instrument"}}),d])}}),vo(r,"removeEventListener",function(l){return function(u,f,d){try{const p=f.__sentry_wrapped__;p&&l.call(this,u,p,d)}catch{}return l.call(this,u,f,d)}}))}function o$(e){return typeof e.handleEvent=="function"}function i$(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const s$=()=>({name:"BrowserSession",setupOnce(){typeof Dt.document>"u"||(D2({ignoreDuration:!0}),L2(),pw(({from:e,to:t})=>{e!==void 0&&e!==t&&(D2({ignoreDuration:!0}),L2())}))}}),a$="GlobalHandlers",l$=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:a$,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&c$(n),t.onunhandledrejection&&f$(n)}}},u$=l$;function c$(e){LI(t=>{const{stackParser:n,attachStacktrace:r}=t3();if(Kt()!==e||N6())return;const{msg:i,url:s,line:l,column:u,error:f}=t,d=p$(lw(n,f||i,void 0,r,!1),s,l,u);d.level="error",g6(d,{originalException:f,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function f$(e){PI(t=>{const{stackParser:n,attachStacktrace:r}=t3();if(Kt()!==e||N6())return;const i=d$(t),s=Ed(i)?h$(i):lw(n,i,void 0,r,!0);s.level="error",g6(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function d$(e){if(Ed(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function h$(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function p$(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],l=s[0]=s[0]||{},u=l.stacktrace=l.stacktrace||{},f=u.frames=u.frames||[],d=r,p=n,g=g$(t)??Jd();return f.length===0&&f.push({colno:d,filename:g,function:Al,in_app:!0,lineno:p}),e}function t3(){const e=Kt();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function g$(e){if(!(!Ss(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e.slice(0,1024)}}const m$=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Dt.navigator&&!Dt.location&&!Dt.document)return;const t=iw(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),v$="cause",y$=5,b$="LinkedErrors",S$=(e={})=>{const t=e.limit||y$,n=e.key||v$;return{name:b$,preprocessEvent(r,i,s){const l=s.getOptions();TV(sw,l.stackParser,n,t,r,i)}}},E$=S$;function w$(){return!!R$()}function R$(){var s;if(typeof Dt.window>"u")return!1;const e=Dt;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((s=t==null?void 0:t.runtime)!=null&&s.id))return!1;const n=Jd(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Dt===Dt.top&&r.some(l=>n.startsWith(`${l}://`)))}function x$(e){return[yV(),pV(),e$(),jj(),u$(),E$(),DV(),m$(),s$()]}function C$(e={}){const t=!e.skipBrowserExtensionCheck&&w$(),n={...e,enabled:t?!1:e.enabled,stackParser:DB(e.stackParser||Bj),integrations:NU({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?x$():e.defaultIntegrations}),transport:e.transport||Tj};return KU(c9,n)}function Q2(e={}){const t=Dt.document,n=(t==null?void 0:t.head)||(t==null?void 0:t.body);if(!n)return;const r=sn(),i=Kt(),s=i==null?void 0:i.getDsn();if(!s)return;const l={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||AU()},u=Dt.document.createElement("script");u.async=!0,u.crossOrigin="anonymous",u.src=PU(s,l);const{onLoad:f,onClose:d}=l;if(f&&(u.onload=f),d){const p=g=>{if(g.data==="__sentry_reportdialog_closed__")try{d()}finally{Dt.removeEventListener("message",p)}};Dt.addEventListener("message",p)}n.appendChild(u)}function vi(e=0){return((Ro()||performance.timeOrigin)+e)/1e3}function T$(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=K6(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return Ro()?[...t,["http.request.redirect_start",vi(e.redirectStart)],["http.request.fetch_start",vi(e.fetchStart)],["http.request.domain_lookup_start",vi(e.domainLookupStart)],["http.request.domain_lookup_end",vi(e.domainLookupEnd)],["http.request.connect_start",vi(e.connectStart)],["http.request.secure_connection_start",vi(e.secureConnectionStart)],["http.request.connection_end",vi(e.connectEnd)],["http.request.request_start",vi(e.requestStart)],["http.request.response_start",vi(e.responseStart)],["http.request.response_end",vi(e.responseEnd)]]:t}const J2=new WeakMap,D1=new Map,n3={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function _$(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:l,tracePropagationTargets:u,onRequestSpanStart:f}={...n3,...t},d=typeof s=="function"?s:m=>!0,p=m=>O$(m,u),g={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(v=>{if(v.op==="http.client"){const E=D1.get(v.span_id);E&&(v.timestamp=E/1e3,D1.delete(v.span_id))}}),m)),i&&qV(m=>{if(m.response){const v=J2.get(m.response);v&&m.endTimestamp&&D1.set(v,m.endTimestamp)}}),P6(m=>{const v=NV(m,d,p,g);if(m.response&&m.fetchData.__span&&J2.set(m.response,m.fetchData.__span),v){const E=r3(m.fetchData.url),b=E?wl(E).host:void 0;v.setAttributes({"http.url":E,"server.address":b}),l&&Z2(v),f==null||f(v,{headers:m.headers})}})),r&&Z6(m=>{var E;const v=M$(m,d,p,g);if(v){l&&Z2(v);let b;try{b=new Headers((E=m.xhr.__sentry_xhr_v3__)==null?void 0:E.request_headers)}catch{}f==null||f(v,{headers:b})}})}function A$(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Z2(e){const{url:t}=on(e).data;if(!t||typeof t!="string")return;const n=Sc("resource",({entries:r})=>{r.forEach(i=>{A$(i)&&i.name.endsWith(t)&&(T$(i).forEach(l=>e.setAttribute(...l)),setTimeout(n))})})}function O$(e,t){const n=Jd();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?Sa(r.toString(),t)||s&&Sa(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?Sa(e,t):r}}function M$(e,t,n,r){const i=e.xhr,s=i==null?void 0:i[Nu];if(!i||i.__sentry_own_request__||!s)return;const{url:l,method:u}=s,f=xa()&&t(l);if(e.endTimestamp&&f){const b=i.__sentry_xhr_span_id__;if(!b)return;const x=r[b];x&&s.status_code!==void 0&&(GI(x,s.status_code),x.end(),delete r[b]);return}const d=r3(l),p=wl(d||l),g=lV(l),m=!!kr(),v=f&&m?Vc({name:`${u} ${g}`,attributes:{url:l,type:"xhr","http.method":u,"http.url":d,"server.address":p==null?void 0:p.host,[jn]:"auto.http.browser",[ii]:"http.client",...(p==null?void 0:p.search)&&{"http.query":p==null?void 0:p.search},...(p==null?void 0:p.hash)&&{"http.fragment":p==null?void 0:p.hash}}}):new Ta;i.__sentry_xhr_span_id__=v.spanContext().spanId,r[i.__sentry_xhr_span_id__]=v,n(l)&&I$(i,xa()&&m?v:void 0);const E=Kt();return E&&E.emit("beforeOutgoingRequestSpan",v,e),v}function I$(e,t){const{"sentry-trace":n,baggage:r}=O6({span:t});n&&D$(e,n,r)}function D$(e,t,n){var i;const r=(i=e.__sentry_xhr_v3__)==null?void 0:i.request_headers;if(!(r!=null&&r["sentry-trace"]))try{if(e.setRequestHeader("sentry-trace",t),n){const s=r==null?void 0:r.baggage;(!s||!L$(s))&&e.setRequestHeader("baggage",n)}}catch{}}function L$(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function r3(e){try{return new URL(e,Dt.location.origin).href}catch{return}}function P$(){Dt.document&&Dt.document.addEventListener("visibilitychange",()=>{const e=kr();if(!e)return;const t=Jr(e);if(Dt.document.hidden&&t){const n="cancelled",{op:r,status:i}=on(t);i||t.setStatus({code:tr,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})}const k$=3600,o3="sentry_previous_trace",N$="sentry.previous_trace";function F$(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?B$():void 0;e.on("spanStart",l=>{if(Jr(l)!==l)return;const u=sn().getPropagationContext();i=z$(i,l,u),r&&H$(i)});let s=!0;n&&e.on("beforeSampling",l=>{if(!i)return;const u=sn(),f=u.getPropagationContext();if(s&&f.parentSpanId){s=!1;return}u.setPropagationContext({...f,dsc:{...f.dsc,sample_rate:String(i.sampleRate),sampled:String(xS(i.spanContext))},sampleRand:i.sampleRand}),l.parentSampled=xS(i.spanContext),l.parentSampleRate=i.sampleRate,l.spanAttributes={...l.spanAttributes,[$I]:i.sampleRate}})}function z$(e,t,n){const r=on(t);function i(){var u,f;try{return Number((u=n.dsc)==null?void 0:u.sample_rate)??Number((f=r.data)==null?void 0:f[JE])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const l=e.spanContext;return l.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=k$&&(t.addLink({context:l,attributes:{[s7]:"previous_trace"}}),t.setAttribute(N$,`${l.traceId}-${l.spanId}-${xS(l)?1:0}`)),s)}function H$(e){try{Dt.sessionStorage.setItem(o3,JSON.stringify(e))}catch{}}function B$(){var e;try{const t=(e=Dt.sessionStorage)==null?void 0:e.getItem(o3);return JSON.parse(t)}catch{return}}function xS(e){return e.traceFlags===1}const U$="BrowserTracing",V$={...Mg,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...n3},j$=(e={})=>{const t={name:void 0,source:void 0},n=Dt.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:l,_experiments:{enableInteractions:u,enableStandaloneClsSpans:f,enableStandaloneLcpSpans:d},beforeStartSpan:p,idleTimeout:g,finalTimeout:m,childSpanTimeout:v,markBackgroundSpan:E,traceFetch:b,traceXHR:x,trackFetchStreamPerformance:C,shouldCreateSpanForRequest:R,enableHTTPTimings:T,ignoreResourceSpans:O,ignorePerformanceApiSpans:_,instrumentPageLoad:M,instrumentNavigation:A,detectRedirects:D,linkPreviousTrace:L,consistentTraceSampling:N,onRequestSpanStart:H}={...V$,...e};let j,F;function q(U,P,G=!0){const B=P.op==="pageload",Y=P.name,J=p?p(P):P,k=J.attributes||{};if(Y!==J.name&&(k[Wr]="custom",J.attributes=k),!G){const te=Ul();Vc({...J,startTime:te}).end(te);return}t.name=J.name,t.source=k[Wr];const $=h6(J,{idleTimeout:g,finalTimeout:m,childSpanTimeout:v,disableAutoFinish:B,beforeSpanEnd:te=>{j==null||j(),J9(te,{recordClsOnPageloadSpan:!f,recordLcpOnPageloadSpan:!d,ignoreResourceSpans:O,ignorePerformanceApiSpans:_}),tA(U,void 0);const ae=sn(),ne=ae.getPropagationContext();ae.setPropagationContext({...ne,traceId:$.spanContext().traceId,sampled:Bc($),dsc:Ca(te)})}});tA(U,$);function W(){n&&["interactive","complete"].includes(n.readyState)&&U.emit("idleSpanEnableAutoFinish",$)}B&&n&&(n.addEventListener("readystatechange",()=>{W()}),W())}return{name:U$,setup(U){if(M7(),j=q9({recordClsStandaloneSpans:f||!1,recordLcpStandaloneSpans:d||!1,client:U}),r&&wj(),i&&lj(),l&&hn.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Y9():s&&G9(),u&&X9(),D&&n){const G=()=>{F=br()};addEventListener("click",G,{capture:!0}),addEventListener("keydown",G,{capture:!0,passive:!0})}function P(){const G=Cd(U);G&&!on(G).timestamp&&(G.setAttribute(rm,"cancelled"),G.end())}U.on("startNavigationSpan",(G,B)=>{if(Kt()!==U)return;if(B!=null&&B.isRedirect){q(U,{op:"navigation.redirect",...G},!1);return}F=void 0,P(),Ms().setPropagationContext({traceId:Ra(),sampleRand:Math.random()});const Y=sn();Y.setPropagationContext({traceId:Ra(),sampleRand:Math.random()}),Y.setSDKProcessingMetadata({normalizedRequest:void 0}),q(U,{op:"navigation",...G})}),U.on("startPageLoadSpan",(G,B={})=>{if(Kt()!==U)return;P();const Y=B.sentryTrace||eA("sentry-trace"),J=B.baggage||eA("baggage"),k=w7(Y,J),$=sn();$.setPropagationContext(k),$.setSDKProcessingMetadata({normalizedRequest:iw()}),q(U,{op:"pageload",...G})})},afterAllSetup(U){let P=Jd();if(L!=="off"&&F$(U,{linkPreviousTrace:L,consistentTraceSampling:N}),Dt.location){if(M){const G=Ro();i3(U,{name:Dt.location.pathname,startTime:G?G/1e3:void 0,attributes:{[Wr]:"url",[jn]:"auto.pageload.browser"}})}A&&pw(({to:G,from:B})=>{if(B===void 0&&(P==null?void 0:P.indexOf(G))!==-1){P=void 0;return}P=void 0;const Y=_6(G),J=Cd(U),k=J&&D&&q$(J,F);s3(U,{name:(Y==null?void 0:Y.pathname)||Dt.location.pathname,attributes:{[Wr]:"url",[jn]:"auto.navigation.browser"}},{url:G,isRedirect:k})})}E&&P$(),u&&$$(U,g,m,v,t),r&&Cj(),_$(U,{traceFetch:b,traceXHR:x,trackFetchStreamPerformance:C,tracePropagationTargets:U.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:R,enableHTTPTimings:T,onRequestSpanStart:H})}}};function i3(e,t,n){e.emit("startPageLoadSpan",t,n),sn().setTransactionName(t.name);const r=Cd(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function s3(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const s=sn();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...iw(),url:r}}),Cd(e)}function eA(e){const t=Dt.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function $$(e,t,n,r,i){const s=Dt.document;let l;const u=()=>{const f="ui.action.click",d=Cd(e);if(d){const p=on(d).op;if(["navigation","pageload"].includes(p))return}l&&(l.setAttribute(rm,"interactionInterrupted"),l.end(),l=void 0),i.name&&(l=h6({name:i.name,op:f,attributes:{[Wr]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}))};s&&addEventListener("click",u,{capture:!0})}const a3="_sentry_idleSpan";function Cd(e){return e[a3]}function tA(e,t){Pr(e,a3,t)}const nA=1.5;function q$(e,t){const n=on(e),r=Ul(),i=n.start_timestamp;return!(r-i>nA||t&&r-t<=nA)}function Ite(e){const t={...e};return A6(t,"react"),_U("react",{version:S.version}),C$(t)}function G$(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function Y$(e,t){const n=new WeakSet;function r(i,s){if(!n.has(i)){if(i.cause)return n.add(i),r(i.cause,s);i.cause=s}}r(e,t)}function X$(e,{componentStack:t},n){if(G$(S.version)&&Zm(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,Y$(e,r)}return Fc(r=>(r.setContext("react",{componentStack:t}),p6(e,n)))}var L1={exports:{}},Qt={};var rA;function W$(){if(rA)return Qt;rA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function T(_){if(typeof _=="object"&&_!==null){var M=_.$$typeof;switch(M){case t:switch(_=_.type,_){case f:case d:case r:case s:case i:case g:return _;default:switch(_=_&&_.$$typeof,_){case u:case p:case E:case v:case l:return _;default:return M}}case n:return M}}}function O(_){return T(_)===d}return Qt.AsyncMode=f,Qt.ConcurrentMode=d,Qt.ContextConsumer=u,Qt.ContextProvider=l,Qt.Element=t,Qt.ForwardRef=p,Qt.Fragment=r,Qt.Lazy=E,Qt.Memo=v,Qt.Portal=n,Qt.Profiler=s,Qt.StrictMode=i,Qt.Suspense=g,Qt.isAsyncMode=function(_){return O(_)||T(_)===f},Qt.isConcurrentMode=O,Qt.isContextConsumer=function(_){return T(_)===u},Qt.isContextProvider=function(_){return T(_)===l},Qt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Qt.isForwardRef=function(_){return T(_)===p},Qt.isFragment=function(_){return T(_)===r},Qt.isLazy=function(_){return T(_)===E},Qt.isMemo=function(_){return T(_)===v},Qt.isPortal=function(_){return T(_)===n},Qt.isProfiler=function(_){return T(_)===s},Qt.isStrictMode=function(_){return T(_)===i},Qt.isSuspense=function(_){return T(_)===g},Qt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===s||_===i||_===g||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===E||_.$$typeof===v||_.$$typeof===l||_.$$typeof===u||_.$$typeof===p||_.$$typeof===x||_.$$typeof===C||_.$$typeof===R||_.$$typeof===b)},Qt.typeOf=T,Qt}var oA;function K$(){return oA||(oA=1,L1.exports=W$()),L1.exports}var P1,iA;function Q$(){if(iA)return P1;iA=1;var e=K$(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function l(E){return e.isMemo(E)?i:s[E.$$typeof]||t}var u=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function v(E,b,x){if(typeof b!="string"){if(m){var C=g(b);C&&C!==m&&v(E,C,x)}var R=f(b);d&&(R=R.concat(d(b)));for(var T=l(E),O=l(b),_=0;_<R.length;++_){var M=R[_];if(!n[M]&&!(x&&x[M])&&!(O&&O[M])&&!(T&&T[M])){var A=p(b,M);try{u(E,M,A)}catch{}}}}return E}return P1=v,P1}var l3=Q$();const u3=Ts(l3),J$=LM({__proto__:null,default:u3},[l3]),Z$=u3||J$,k1={componentStack:null,error:null,eventId:null};class Dte extends S.Component{constructor(t){super(t),this.state=k1,this._openFallbackReportDialog=!0;const n=Kt();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Q2({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:i,onError:s,showDialog:l,dialogOptions:u}=this.props;Fc(f=>{i&&i(f,t,r);const d=this.props.handled!=null?this.props.handled:!!this.props.fallback,p=X$(t,n,{mechanism:{handled:d}});s&&s(t,r,p),l&&(this._lastEventId=p,this._openFallbackReportDialog&&Q2({...u,eventId:p})),this.setState({error:t,componentStack:r,eventId:p})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&(this.state===k1?i(null,null,null):i(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(k1)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const i=typeof t=="function"?S.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return S.isValidElement(i)?i:null}}let i0,Fu=!1;function eq(e,t=!1){i0=e,Fu=t}function tq(e,t){if(e.some(i=>i.lazy||i.handle&&typeof i.handle=="object"&&Object.values(i.handle).some(s=>typeof s=="function")))return!0;const r=i0(e,t);return!r||r.length===0}function nq(e){return oq(e.route.path||"")}function rq(e){return e.params["*"]||""}function oq(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function qu(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function c3(e){return e.endsWith("*")}function sA(e,t){var n;return c3(e)&&!!((n=t.route.children)!=null&&n.length)||!1}function iq(e){var t;return!!(!e.children&&e.element&&((t=e.path)!=null&&t.endsWith("/*")))}function sq(e,t,n){const r=e||Fu?cm(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function aA(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function cm(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function Td(e){return e[0]==="/"?e:`/${e}`}function gw(e,t){const n=i0(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const i=nq(r),s=cm(t.pathname,Td(r.pathnameBase));return t.pathname===s?qu(s):qu(qu(i||"")+Td(gw(e.filter(l=>l!==r.route),{pathname:s})))}return""}function f3(e,t){const n=i0(t,e);if(n){for(const r of n)if(iq(r.route)&&rq(r))return!0}return!1}function d3(e,t,n,r=""){if(!e||e.length===0)return[Fu?cm(t.pathname,r):t.pathname,"url"];let i="";if(n)for(const l of n){const u=l.route;if(u){if(u.index)return sq(i,l.pathname,r);const f=u.path;if(f&&!sA(f,l)){const d=f[0]==="/"||i[i.length-1]==="/"?f:`/${f}`;if(i=qu(i)+Td(d),qu(t.pathname)===qu(r+l.pathname))return aA(i)!==aA(l.pathname)&&!c3(i)?[(Fu?"":r)+d,"route"]:(sA(i,l)&&(i=i.slice(0,-1)),[(Fu?"":r)+i,"route"])}}}return[Fu?cm(t.pathname,r):t.pathname||"","url"]}function aq(e,t,n,r,i=""){let s,l="url";const u=f3(e,n);return u&&(s=Td(gw(n,e)),l="route"),(!u||!s)&&([s,l]=d3(t,e,r,i)),[s||e.pathname,l]}let CS,TS,_S,AS,s0;const h3=new WeakSet,OS=new Set;function lq(e,t){const n=j$({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:i,useNavigationType:s,createRoutesFromChildren:l,matchRoutes:u,stripBasename:f,enableAsyncRouteHandlers:d=!1,instrumentPageLoad:p=!0,instrumentNavigation:g=!0}=e;return{...n,setup(m){n.setup(m),CS=r,TS=i,_S=s,s0=u,AS=l,eq(u,f||!1)},afterAllSetup(m){var E;n.afterAllSetup(m);const v=(E=Dt.location)==null?void 0:E.pathname;p&&v&&i3(m,{name:v,attributes:{[Wr]:"url",[ii]:"pageload",[jn]:`auto.pageload.react.reactrouter_v${t}`}}),g&&h3.add(m)}}}function uq(e){const{location:t,routes:n,navigationType:r,version:i,matches:s,basename:l,allRoutes:u}=e,f=Array.isArray(s)?s:s0(n,t,l),d=Kt();if(!(!d||!h3.has(d))&&(r==="PUSH"||r==="POP")&&f){const[p,g]=aq(t,n,u||n,f,l),m=tq(u||n,t),v=kr(),E=v&&on(v);(E==null?void 0:E.op)==="navigation"&&v&&E?pq(v,E,p,g,m):gq(d,p,g,i,m)}}function cq(e){e.forEach(t=>{p3(t).forEach(r=>{OS.add(r)})})}function p3(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{p3(n,t).forEach(i=>{t.add(i)})})),t}function fq({activeRootSpan:e,location:t,routes:n,matches:r,basename:i,allRoutes:s}){const l=Array.isArray(r)?r:s0(s||n,t,i);if(l){let u,f="url";const d=f3(t,s||n);d&&(u=Td(gw(s||n,t)),f="route"),(!d||!u)&&([u,f]=d3(n,t,l,i)),sn().setTransactionName(u||"/"),e&&(e.updateName(u),e.setAttribute(Wr,f))}}function dq(e,t){if(!CS||!TS||!_S||!AS||!s0)return e;const n=r=>{const i=S.useRef(!0),s=TS(),l=_S();return CS(()=>{const u=AS(r.children);i.current?(cq(u),fq({activeRootSpan:hq(),location:s,routes:u,allRoutes:Array.from(OS)}),i.current=!1):uq({location:s,routes:u,navigationType:l,version:t,allRoutes:Array.from(OS)})},[s,l]),S.createElement(e,{...r})};return Z$(n,e),n}function hq(){const e=kr(),t=e?Jr(e):void 0;if(!t)return;const n=on(t).op;return n==="navigation"||n==="pageload"?t:void 0}function pq(e,t,n,r,i){(e==null?void 0:e.__sentry_navigation_name_set__)||(t.timestamp||e==null||e.updateName(n),i||Pr(e,"__sentry_navigation_name_set__",!0)),e==null||e.setAttribute(Wr,r)}function gq(e,t,n,r,i){const s=s3(e,{name:t,attributes:{[Wr]:n,[ii]:"navigation",[jn]:`auto.navigation.react.reactrouter_v${r}`}});!i&&s&&Pr(s,"__sentry_navigation_name_set__",!0)}function Lte(e){return dq(e,"6")}function Pte(e){return lq(e,"7")}function g3(e,t){return function(){return e.apply(t,arguments)}}const{toString:mq}=Object.prototype,{getPrototypeOf:mw}=Object,{iterator:a0,toStringTag:m3}=Symbol,l0=(e=>t=>{const n=mq.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fi=e=>(e=e.toLowerCase(),t=>l0(t)===e),u0=e=>t=>typeof t===e,{isArray:qc}=Array,Ec=u0("undefined");function ah(e){return e!==null&&!Ec(e)&&e.constructor!==null&&!Ec(e.constructor)&&Zr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const v3=fi("ArrayBuffer");function vq(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&v3(e.buffer),t}const yq=u0("string"),Zr=u0("function"),y3=u0("number"),lh=e=>e!==null&&typeof e=="object",bq=e=>e===!0||e===!1,Pg=e=>{if(l0(e)!=="object")return!1;const t=mw(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(m3 in e)&&!(a0 in e)},Sq=e=>{if(!lh(e)||ah(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Eq=fi("Date"),wq=fi("File"),Rq=fi("Blob"),xq=fi("FileList"),Cq=e=>lh(e)&&Zr(e.pipe),Tq=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Zr(e.append)&&((t=l0(e))==="formdata"||t==="object"&&Zr(e.toString)&&e.toString()==="[object FormData]"))},_q=fi("URLSearchParams"),[Aq,Oq,Mq,Iq]=["ReadableStream","Request","Response","Headers"].map(fi),Dq=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function uh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),qc(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ah(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let u;for(r=0;r<l;r++)u=s[r],t.call(null,e[u],u,e)}}function b3(e,t){if(ah(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,S3=e=>!Ec(e)&&e!==ol;function MS(){const{caseless:e,skipUndefined:t}=S3(this)&&this||{},n={},r=(i,s)=>{const l=e&&b3(n,s)||s;Pg(n[l])&&Pg(i)?n[l]=MS(n[l],i):Pg(i)?n[l]=MS({},i):qc(i)?n[l]=i.slice():(!t||!Ec(i))&&(n[l]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&uh(arguments[i],r);return n}const Lq=(e,t,n,{allOwnKeys:r}={})=>(uh(t,(i,s)=>{n&&Zr(i)?e[s]=g3(i,n):e[s]=i},{allOwnKeys:r}),e),Pq=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kq=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Nq=(e,t,n,r)=>{let i,s,l;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)l=i[s],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&mw(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fq=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},zq=e=>{if(!e)return null;if(qc(e))return e;let t=e.length;if(!y3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hq=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mw(Uint8Array)),Bq=(e,t)=>{const r=(e&&e[a0]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Uq=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vq=fi("HTMLFormElement"),jq=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),lA=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$q=fi("RegExp"),E3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};uh(n,(i,s)=>{let l;(l=t(i,s,e))!==!1&&(r[s]=l||i)}),Object.defineProperties(e,r)},qq=e=>{E3(e,(t,n)=>{if(Zr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Zr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Gq=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return qc(e)?r(e):r(String(e).split(t)),n},Yq=()=>{},Xq=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Wq(e){return!!(e&&Zr(e.append)&&e[m3]==="FormData"&&e[a0])}const Kq=e=>{const t=new Array(10),n=(r,i)=>{if(lh(r)){if(t.indexOf(r)>=0)return;if(ah(r))return r;if(!("toJSON"in r)){t[i]=r;const s=qc(r)?[]:{};return uh(r,(l,u)=>{const f=n(l,i+1);!Ec(f)&&(s[u]=f)}),t[i]=void 0,s}}return r};return n(e,0)},Qq=fi("AsyncFunction"),Jq=e=>e&&(lh(e)||Zr(e))&&Zr(e.then)&&Zr(e.catch),w3=((e,t)=>e?setImmediate:t?((n,r)=>(ol.addEventListener("message",({source:i,data:s})=>{i===ol&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ol.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Zr(ol.postMessage)),Zq=typeof queueMicrotask<"u"?queueMicrotask.bind(ol):typeof process<"u"&&process.nextTick||w3,eG=e=>e!=null&&Zr(e[a0]),Ee={isArray:qc,isArrayBuffer:v3,isBuffer:ah,isFormData:Tq,isArrayBufferView:vq,isString:yq,isNumber:y3,isBoolean:bq,isObject:lh,isPlainObject:Pg,isEmptyObject:Sq,isReadableStream:Aq,isRequest:Oq,isResponse:Mq,isHeaders:Iq,isUndefined:Ec,isDate:Eq,isFile:wq,isBlob:Rq,isRegExp:$q,isFunction:Zr,isStream:Cq,isURLSearchParams:_q,isTypedArray:Hq,isFileList:xq,forEach:uh,merge:MS,extend:Lq,trim:Dq,stripBOM:Pq,inherits:kq,toFlatObject:Nq,kindOf:l0,kindOfTest:fi,endsWith:Fq,toArray:zq,forEachEntry:Bq,matchAll:Uq,isHTMLForm:Vq,hasOwnProperty:lA,hasOwnProp:lA,reduceDescriptors:E3,freezeMethods:qq,toObjectSet:Gq,toCamelCase:jq,noop:Yq,toFiniteNumber:Xq,findKey:b3,global:ol,isContextDefined:S3,isSpecCompliantForm:Wq,toJSONObject:Kq,isAsyncFn:Qq,isThenable:Jq,setImmediate:w3,asap:Zq,isIterable:eG};function Rt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Ee.inherits(Rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ee.toJSONObject(this.config),code:this.code,status:this.status}}});const R3=Rt.prototype,x3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{x3[e]={value:e}});Object.defineProperties(Rt,x3);Object.defineProperty(R3,"isAxiosError",{value:!0});Rt.from=(e,t,n,r,i,s)=>{const l=Object.create(R3);Ee.toFlatObject(e,l,function(p){return p!==Error.prototype},d=>d!=="isAxiosError");const u=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return Rt.call(l,u,f,n,r,i),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",s&&Object.assign(l,s),l};const tG=null;function IS(e){return Ee.isPlainObject(e)||Ee.isArray(e)}function C3(e){return Ee.endsWith(e,"[]")?e.slice(0,-2):e}function uA(e,t,n){return e?e.concat(t).map(function(i,s){return i=C3(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function nG(e){return Ee.isArray(e)&&!e.some(IS)}const rG=Ee.toFlatObject(Ee,{},null,function(t){return/^is[A-Z]/.test(t)});function c0(e,t,n){if(!Ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,x){return!Ee.isUndefined(x[b])});const r=n.metaTokens,i=n.visitor||p,s=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&Ee.isSpecCompliantForm(t);if(!Ee.isFunction(i))throw new TypeError("visitor must be a function");function d(E){if(E===null)return"";if(Ee.isDate(E))return E.toISOString();if(Ee.isBoolean(E))return E.toString();if(!f&&Ee.isBlob(E))throw new Rt("Blob is not supported. Use a Buffer instead.");return Ee.isArrayBuffer(E)||Ee.isTypedArray(E)?f&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function p(E,b,x){let C=E;if(E&&!x&&typeof E=="object"){if(Ee.endsWith(b,"{}"))b=r?b:b.slice(0,-2),E=JSON.stringify(E);else if(Ee.isArray(E)&&nG(E)||(Ee.isFileList(E)||Ee.endsWith(b,"[]"))&&(C=Ee.toArray(E)))return b=C3(b),C.forEach(function(T,O){!(Ee.isUndefined(T)||T===null)&&t.append(l===!0?uA([b],O,s):l===null?b:b+"[]",d(T))}),!1}return IS(E)?!0:(t.append(uA(x,b,s),d(E)),!1)}const g=[],m=Object.assign(rG,{defaultVisitor:p,convertValue:d,isVisitable:IS});function v(E,b){if(!Ee.isUndefined(E)){if(g.indexOf(E)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(E),Ee.forEach(E,function(C,R){(!(Ee.isUndefined(C)||C===null)&&i.call(t,C,Ee.isString(R)?R.trim():R,b,m))===!0&&v(C,b?b.concat(R):[R])}),g.pop()}}if(!Ee.isObject(e))throw new TypeError("data must be an object");return v(e),t}function cA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vw(e,t){this._pairs=[],e&&c0(e,this,t)}const T3=vw.prototype;T3.append=function(t,n){this._pairs.push([t,n])};T3.toString=function(t){const n=t?function(r){return t.call(this,r,cA)}:cA;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function oG(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _3(e,t,n){if(!t)return e;const r=n&&n.encode||oG;Ee.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=Ee.isURLSearchParams(t)?t.toString():new vw(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class fA{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const A3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iG=typeof URLSearchParams<"u"?URLSearchParams:vw,sG=typeof FormData<"u"?FormData:null,aG=typeof Blob<"u"?Blob:null,lG={isBrowser:!0,classes:{URLSearchParams:iG,FormData:sG,Blob:aG},protocols:["http","https","file","blob","url","data"]},yw=typeof window<"u"&&typeof document<"u",DS=typeof navigator=="object"&&navigator||void 0,uG=yw&&(!DS||["ReactNative","NativeScript","NS"].indexOf(DS.product)<0),cG=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fG=yw&&window.location.href||"http://localhost",dG=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yw,hasStandardBrowserEnv:uG,hasStandardBrowserWebWorkerEnv:cG,navigator:DS,origin:fG},Symbol.toStringTag,{value:"Module"})),xr={...dG,...lG};function hG(e,t){return c0(e,new xr.classes.URLSearchParams,{visitor:function(n,r,i,s){return xr.isNode&&Ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function pG(e){return Ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gG(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function O3(e){function t(n,r,i,s){let l=n[s++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),f=s>=n.length;return l=!l&&Ee.isArray(i)?i.length:l,f?(Ee.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!u):((!i[l]||!Ee.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],s)&&Ee.isArray(i[l])&&(i[l]=gG(i[l])),!u)}if(Ee.isFormData(e)&&Ee.isFunction(e.entries)){const n={};return Ee.forEachEntry(e,(r,i)=>{t(pG(r),i,n,0)}),n}return null}function mG(e,t,n){if(Ee.isString(e))try{return(t||JSON.parse)(e),Ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ch={transitional:A3,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=Ee.isObject(t);if(s&&Ee.isHTMLForm(t)&&(t=new FormData(t)),Ee.isFormData(t))return i?JSON.stringify(O3(t)):t;if(Ee.isArrayBuffer(t)||Ee.isBuffer(t)||Ee.isStream(t)||Ee.isFile(t)||Ee.isBlob(t)||Ee.isReadableStream(t))return t;if(Ee.isArrayBufferView(t))return t.buffer;if(Ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return hG(t,this.formSerializer).toString();if((u=Ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return c0(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),mG(t)):t}],transformResponse:[function(t){const n=this.transitional||ch.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Ee.isResponse(t)||Ee.isReadableStream(t))return t;if(t&&Ee.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(u){if(l)throw u.name==="SyntaxError"?Rt.from(u,Rt.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ee.forEach(["delete","get","head","post","put","patch"],e=>{ch.headers[e]={}});const vG=Ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yG=e=>{const t={};let n,r,i;return e&&e.split(`
16
- `).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&vG[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},dA=Symbol("internals");function Kf(e){return e&&String(e).trim().toLowerCase()}function kg(e){return e===!1||e==null?e:Ee.isArray(e)?e.map(kg):String(e)}function bG(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const SG=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function N1(e,t,n,r,i){if(Ee.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ee.isString(t)){if(Ee.isString(r))return t.indexOf(r)!==-1;if(Ee.isRegExp(r))return r.test(t)}}function EG(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function wG(e,t){const n=Ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,l){return this[r].call(this,t,i,s,l)},configurable:!0})})}let eo=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(u,f,d){const p=Kf(f);if(!p)throw new Error("header name must be a non-empty string");const g=Ee.findKey(i,p);(!g||i[g]===void 0||d===!0||d===void 0&&i[g]!==!1)&&(i[g||f]=kg(u))}const l=(u,f)=>Ee.forEach(u,(d,p)=>s(d,p,f));if(Ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(Ee.isString(t)&&(t=t.trim())&&!SG(t))l(yG(t),n);else if(Ee.isObject(t)&&Ee.isIterable(t)){let u={},f,d;for(const p of t){if(!Ee.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[d=p[0]]=(f=u[d])?Ee.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}l(u,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Kf(t),t){const r=Ee.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return bG(i);if(Ee.isFunction(n))return n.call(this,i,r);if(Ee.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Kf(t),t){const r=Ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||N1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(l){if(l=Kf(l),l){const u=Ee.findKey(r,l);u&&(!n||N1(r,r[u],u,n))&&(delete r[u],i=!0)}}return Ee.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||N1(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return Ee.forEach(this,(i,s)=>{const l=Ee.findKey(r,s);if(l){n[l]=kg(i),delete n[s];return}const u=t?EG(s):String(s).trim();u!==s&&delete n[s],n[u]=kg(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ee.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
17
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[dA]=this[dA]={accessors:{}}).accessors,i=this.prototype;function s(l){const u=Kf(l);r[u]||(wG(i,l),r[u]=!0)}return Ee.isArray(t)?t.forEach(s):s(t),this}};eo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.reduceDescriptors(eo.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ee.freezeMethods(eo);function F1(e,t){const n=this||ch,r=t||n,i=eo.from(r.headers);let s=r.data;return Ee.forEach(e,function(u){s=u.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function M3(e){return!!(e&&e.__CANCEL__)}function Gc(e,t,n){Rt.call(this,e??"canceled",Rt.ERR_CANCELED,t,n),this.name="CanceledError"}Ee.inherits(Gc,Rt,{__CANCEL__:!0});function I3(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Rt("Request failed with status code "+n.status,[Rt.ERR_BAD_REQUEST,Rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function RG(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xG(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,l;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),p=r[s];l||(l=d),n[i]=f,r[i]=d;let g=s,m=0;for(;g!==i;)m+=n[g++],g=g%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),d-l<t)return;const v=p&&d-p;return v?Math.round(m*1e3/v):void 0}}function CG(e,t){let n=0,r=1e3/t,i,s;const l=(d,p=Date.now())=>{n=p,i=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const p=Date.now(),g=p-n;g>=r?l(d,p):(i=d,s||(s=setTimeout(()=>{s=null,l(i)},r-g)))},()=>i&&l(i)]}const fm=(e,t,n=3)=>{let r=0;const i=xG(50,250);return CG(s=>{const l=s.loaded,u=s.lengthComputable?s.total:void 0,f=l-r,d=i(f),p=l<=u;r=l;const g={loaded:l,total:u,progress:u?l/u:void 0,bytes:f,rate:d||void 0,estimated:d&&u&&p?(u-l)/d:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},hA=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},pA=e=>(...t)=>Ee.asap(()=>e(...t)),TG=xr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xr.origin),xr.navigator&&/(msie|trident)/i.test(xr.navigator.userAgent)):()=>!0,_G=xr.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const l=[e+"="+encodeURIComponent(t)];Ee.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),Ee.isString(r)&&l.push("path="+r),Ee.isString(i)&&l.push("domain="+i),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function AG(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OG(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function D3(e,t,n){let r=!AG(t);return e&&(r||n==!1)?OG(e,t):t}const gA=e=>e instanceof eo?{...e}:e;function Dl(e,t){t=t||{};const n={};function r(d,p,g,m){return Ee.isPlainObject(d)&&Ee.isPlainObject(p)?Ee.merge.call({caseless:m},d,p):Ee.isPlainObject(p)?Ee.merge({},p):Ee.isArray(p)?p.slice():p}function i(d,p,g,m){if(Ee.isUndefined(p)){if(!Ee.isUndefined(d))return r(void 0,d,g,m)}else return r(d,p,g,m)}function s(d,p){if(!Ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(Ee.isUndefined(p)){if(!Ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function u(d,p,g){if(g in t)return r(d,p);if(g in e)return r(void 0,d)}const f={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(d,p,g)=>i(gA(d),gA(p),g,!0)};return Ee.forEach(Object.keys({...e,...t}),function(p){const g=f[p]||i,m=g(e[p],t[p],p);Ee.isUndefined(m)&&g!==u||(n[p]=m)}),n}const L3=e=>{const t=Dl({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:l,auth:u}=t;if(t.headers=l=eo.from(l),t.url=_3(D3(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),Ee.isFormData(n)){if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(Ee.isFunction(n.getHeaders)){const f=n.getHeaders(),d=["content-type","content-length"];Object.entries(f).forEach(([p,g])=>{d.includes(p.toLowerCase())&&l.set(p,g)})}}if(xr.hasStandardBrowserEnv&&(r&&Ee.isFunction(r)&&(r=r(t)),r||r!==!1&&TG(t.url))){const f=i&&s&&_G.read(s);f&&l.set(i,f)}return t},MG=typeof XMLHttpRequest<"u",IG=MG&&function(e){return new Promise(function(n,r){const i=L3(e);let s=i.data;const l=eo.from(i.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:d}=i,p,g,m,v,E;function b(){v&&v(),E&&E(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function C(){if(!x)return;const T=eo.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),_={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:T,config:e,request:x};I3(function(A){n(A),b()},function(A){r(A),b()},_),x=null}"onloadend"in x?x.onloadend=C:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(C)},x.onabort=function(){x&&(r(new Rt("Request aborted",Rt.ECONNABORTED,e,x)),x=null)},x.onerror=function(O){const _=O&&O.message?O.message:"Network Error",M=new Rt(_,Rt.ERR_NETWORK,e,x);M.event=O||null,r(M),x=null},x.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||A3;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),r(new Rt(O,_.clarifyTimeoutError?Rt.ETIMEDOUT:Rt.ECONNABORTED,e,x)),x=null},s===void 0&&l.setContentType(null),"setRequestHeader"in x&&Ee.forEach(l.toJSON(),function(O,_){x.setRequestHeader(_,O)}),Ee.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),u&&u!=="json"&&(x.responseType=i.responseType),d&&([m,E]=fm(d,!0),x.addEventListener("progress",m)),f&&x.upload&&([g,v]=fm(f),x.upload.addEventListener("progress",g),x.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(p=T=>{x&&(r(!T||T.type?new Gc(null,e,x):T),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const R=RG(i.url);if(R&&xr.protocols.indexOf(R)===-1){r(new Rt("Unsupported protocol "+R+":",Rt.ERR_BAD_REQUEST,e));return}x.send(s||null)})},DG=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(d){if(!i){i=!0,u();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Rt?p:new Gc(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new Rt(`timeout ${t} of ms exceeded`,Rt.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>Ee.asap(u),f}},LG=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},PG=async function*(e,t){for await(const n of kG(e))yield*LG(n,t)},kG=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},mA=(e,t,n,r)=>{const i=PG(e,t);let s=0,l,u=f=>{l||(l=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:d,value:p}=await i.next();if(d){u(),f.close();return}let g=p.byteLength;if(n){let m=s+=g;n(m)}f.enqueue(new Uint8Array(p))}catch(d){throw u(d),d}},cancel(f){return u(f),i.return()}},{highWaterMark:2})},vA=64*1024,{isFunction:eg}=Ee,NG=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ee.global),{ReadableStream:yA,TextEncoder:bA}=Ee.global,SA=(e,...t)=>{try{return!!e(...t)}catch{return!1}},FG=e=>{e=Ee.merge.call({skipUndefined:!0},NG,e);const{fetch:t,Request:n,Response:r}=e,i=t?eg(t):typeof fetch=="function",s=eg(n),l=eg(r);if(!i)return!1;const u=i&&eg(yA),f=i&&(typeof bA=="function"?(E=>b=>E.encode(b))(new bA):async E=>new Uint8Array(await new n(E).arrayBuffer())),d=s&&u&&SA(()=>{let E=!1;const b=new n(xr.origin,{body:new yA,method:"POST",get duplex(){return E=!0,"half"}}).headers.has("Content-Type");return E&&!b}),p=l&&u&&SA(()=>Ee.isReadableStream(new r("").body)),g={stream:p&&(E=>E.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!g[E]&&(g[E]=(b,x)=>{let C=b&&b[E];if(C)return C.call(b);throw new Rt(`Response type '${E}' is not supported`,Rt.ERR_NOT_SUPPORT,x)})});const m=async E=>{if(E==null)return 0;if(Ee.isBlob(E))return E.size;if(Ee.isSpecCompliantForm(E))return(await new n(xr.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(Ee.isArrayBufferView(E)||Ee.isArrayBuffer(E))return E.byteLength;if(Ee.isURLSearchParams(E)&&(E=E+""),Ee.isString(E))return(await f(E)).byteLength},v=async(E,b)=>{const x=Ee.toFiniteNumber(E.getContentLength());return x??m(b)};return async E=>{let{url:b,method:x,data:C,signal:R,cancelToken:T,timeout:O,onDownloadProgress:_,onUploadProgress:M,responseType:A,headers:D,withCredentials:L="same-origin",fetchOptions:N}=L3(E),H=t||fetch;A=A?(A+"").toLowerCase():"text";let j=DG([R,T&&T.toAbortSignal()],O),F=null;const q=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let U;try{if(M&&d&&x!=="get"&&x!=="head"&&(U=await v(D,C))!==0){let k=new n(b,{method:"POST",body:C,duplex:"half"}),$;if(Ee.isFormData(C)&&($=k.headers.get("content-type"))&&D.setContentType($),k.body){const[W,te]=hA(U,fm(pA(M)));C=mA(k.body,vA,W,te)}}Ee.isString(L)||(L=L?"include":"omit");const P=s&&"credentials"in n.prototype,G={...N,signal:j,method:x.toUpperCase(),headers:D.normalize().toJSON(),body:C,duplex:"half",credentials:P?L:void 0};F=s&&new n(b,G);let B=await(s?H(F,N):H(b,G));const Y=p&&(A==="stream"||A==="response");if(p&&(_||Y&&q)){const k={};["status","statusText","headers"].forEach(ae=>{k[ae]=B[ae]});const $=Ee.toFiniteNumber(B.headers.get("content-length")),[W,te]=_&&hA($,fm(pA(_),!0))||[];B=new r(mA(B.body,vA,W,()=>{te&&te(),q&&q()}),k)}A=A||"text";let J=await g[Ee.findKey(g,A)||"text"](B,E);return!Y&&q&&q(),await new Promise((k,$)=>{I3(k,$,{data:J,headers:eo.from(B.headers),status:B.status,statusText:B.statusText,config:E,request:F})})}catch(P){throw q&&q(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new Rt("Network Error",Rt.ERR_NETWORK,E,F),{cause:P.cause||P}):Rt.from(P,P&&P.code,E,F)}}},zG=new Map,P3=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let l=s.length,u=l,f,d,p=zG;for(;u--;)f=s[u],d=p.get(f),d===void 0&&p.set(f,d=u?new Map:FG(t)),p=d;return d};P3();const LS={http:tG,xhr:IG,fetch:{get:P3}};Ee.forEach(LS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const EA=e=>`- ${e}`,HG=e=>Ee.isFunction(e)||e===null||e===!1,k3={getAdapter:(e,t)=>{e=Ee.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let l=0;l<n;l++){r=e[l];let u;if(i=r,!HG(r)&&(i=LS[(u=String(r)).toLowerCase()],i===void 0))throw new Rt(`Unknown adapter '${u}'`);if(i&&(Ee.isFunction(i)||(i=i.get(t))))break;s[u||"#"+l]=i}if(!i){const l=Object.entries(s).map(([f,d])=>`adapter ${f} `+(d===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since :
18
- `+l.map(EA).join(`
19
- `):" "+EA(l[0]):"as no adapter specified";throw new Rt("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i},adapters:LS};function z1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gc(null,e)}function wA(e){return z1(e),e.headers=eo.from(e.headers),e.data=F1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),k3.getAdapter(e.adapter||ch.adapter,e)(e).then(function(r){return z1(e),r.data=F1.call(e,e.transformResponse,r),r.headers=eo.from(r.headers),r},function(r){return M3(r)||(z1(e),r&&r.response&&(r.response.data=F1.call(e,e.transformResponse,r.response),r.response.headers=eo.from(r.response.headers))),Promise.reject(r)})}const N3="1.12.2",f0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{f0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const RA={};f0.transitional=function(t,n,r){function i(s,l){return"[Axios v"+N3+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,u)=>{if(t===!1)throw new Rt(i(l," has been removed"+(n?" in "+n:"")),Rt.ERR_DEPRECATED);return n&&!RA[l]&&(RA[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,u):!0}};f0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function BG(e,t,n){if(typeof e!="object")throw new Rt("options must be an object",Rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],l=t[s];if(l){const u=e[s],f=u===void 0||l(u,s,e);if(f!==!0)throw new Rt("option "+s+" must be "+f,Rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Rt("Unknown option "+s,Rt.ERR_BAD_OPTION)}}const Ng={assertOptions:BG,validators:f0},yi=Ng.validators;let Rl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new fA,response:new fA}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
20
- `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dl(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Ng.assertOptions(r,{silentJSONParsing:yi.transitional(yi.boolean),forcedJSONParsing:yi.transitional(yi.boolean),clarifyTimeoutError:yi.transitional(yi.boolean)},!1),i!=null&&(Ee.isFunction(i)?n.paramsSerializer={serialize:i}:Ng.assertOptions(i,{encode:yi.function,serialize:yi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ng.assertOptions(n,{baseUrl:yi.spelling("baseURL"),withXsrfToken:yi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&Ee.merge(s.common,s[n.method]);s&&Ee.forEach(["delete","get","head","post","put","patch","common"],E=>{delete s[E]}),n.headers=eo.concat(l,s);const u=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(f=f&&b.synchronous,u.unshift(b.fulfilled,b.rejected))});const d=[];this.interceptors.response.forEach(function(b){d.push(b.fulfilled,b.rejected)});let p,g=0,m;if(!f){const E=[wA.bind(this),void 0];for(E.unshift(...u),E.push(...d),m=E.length,p=Promise.resolve(n);g<m;)p=p.then(E[g++],E[g++]);return p}m=u.length;let v=n;for(;g<m;){const E=u[g++],b=u[g++];try{v=E(v)}catch(x){b.call(this,x);break}}try{p=wA.call(this,v)}catch(E){return Promise.reject(E)}for(g=0,m=d.length;g<m;)p=p.then(d[g++],d[g++]);return p}getUri(t){t=Dl(this.defaults,t);const n=D3(t.baseURL,t.url,t.allowAbsoluteUrls);return _3(n,t.params,t.paramsSerializer)}};Ee.forEach(["delete","get","head","options"],function(t){Rl.prototype[t]=function(n,r){return this.request(Dl(r||{},{method:t,url:n,data:(r||{}).data}))}});Ee.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,u){return this.request(Dl(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Rl.prototype[t]=n(),Rl.prototype[t+"Form"]=n(!0)});let UG=class F3{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const l=new Promise(u=>{r.subscribe(u),s=u}).then(i);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,u){r.reason||(r.reason=new Gc(s,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new F3(function(i){t=i}),cancel:t}}};function VG(e){return function(n){return e.apply(null,n)}}function jG(e){return Ee.isObject(e)&&e.isAxiosError===!0}const PS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(PS).forEach(([e,t])=>{PS[t]=e});function z3(e){const t=new Rl(e),n=g3(Rl.prototype.request,t);return Ee.extend(n,Rl.prototype,t,{allOwnKeys:!0}),Ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return z3(Dl(e,i))},n}const Jn=z3(ch);Jn.Axios=Rl;Jn.CanceledError=Gc;Jn.CancelToken=UG;Jn.isCancel=M3;Jn.VERSION=N3;Jn.toFormData=c0;Jn.AxiosError=Rt;Jn.Cancel=Jn.CanceledError;Jn.all=function(t){return Promise.all(t)};Jn.spread=VG;Jn.isAxiosError=jG;Jn.mergeConfig=Dl;Jn.AxiosHeaders=eo;Jn.formToJSON=e=>O3(Ee.isHTMLForm(e)?new FormData(e):e);Jn.getAdapter=k3.getAdapter;Jn.HttpStatusCode=PS;Jn.default=Jn;const{Axios:Fte,AxiosError:zte,CanceledError:Hte,isCancel:Bte,CancelToken:Ute,VERSION:Vte,all:jte,Cancel:$te,isAxiosError:qte,spread:Gte,toFormData:Yte,AxiosHeaders:Xte,HttpStatusCode:Wte,formToJSON:Kte,getAdapter:Qte,mergeConfig:Jte}=Jn;let $G=e=>crypto.getRandomValues(new Uint8Array(e)),qG=(e,t,n)=>{let r=(2<<Math.log2(e.length-1))-1,i=-~(1.6*r*t/e.length);return(s=t)=>{let l="";for(;;){let u=n(i),f=i|0;for(;f--;)if(l+=e[u[f]&r]||"",l.length>=s)return l}}},Zte=(e,t=21)=>qG(e,t|0,$G);const xA=e=>{let t;const n=new Set,r=(d,p)=>{const g=typeof d=="function"?d(t):d;if(!Object.is(g,t)){const m=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(v=>v(t,m))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,i,u);return u},H3=e=>e?xA(e):xA,GG=e=>e;function YG(e,t=GG){const n=fe.useSyncExternalStore(e.subscribe,fe.useCallback(()=>t(e.getState()),[e,t]),fe.useCallback(()=>t(e.getInitialState()),[e,t]));return fe.useDebugValue(n),n}const CA=e=>{const t=H3(e),n=r=>YG(t,r);return Object.assign(n,t),n},ene=e=>e?CA(e):CA;var H1,TA;function XG(){if(TA)return H1;TA=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var u,f,d;if(Array.isArray(s)){if(u=s.length,u!=l.length)return!1;for(f=u;f--!==0;)if(!i(s[f],l[f]))return!1;return!0}var p;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(p=s.entries();!(f=p.next()).done;)if(!l.has(f.value[0]))return!1;for(p=s.entries();!(f=p.next()).done;)if(!i(f.value[1],l.get(f.value[0])))return!1;return!0}if(n&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(p=s.entries();!(f=p.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(u=s.length,u!=l.length)return!1;for(f=u;f--!==0;)if(s[f]!==l[f])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(d=Object.keys(s),u=d.length,u!==Object.keys(l).length)return!1;for(f=u;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,d[f]))return!1;if(e&&s instanceof Element)return!1;for(f=u;f--!==0;)if(!((d[f]==="_owner"||d[f]==="__v"||d[f]==="__o")&&s.$$typeof)&&!i(s[d[f]],l[d[f]]))return!1;return!0}return s!==s&&l!==l}return H1=function(l,u){try{return i(l,u)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},H1}var WG=XG();const tne=Ts(WG),{useSyncExternalStoreWithSelector:KG}=iH,QG=e=>e;function JG(e,t=QG,n){const r=KG(e.subscribe,e.getState,e.getInitialState,t,n);return fe.useDebugValue(r),r}const _A=(e,t)=>{const n=H3(e),r=(i,s=t)=>JG(n,i,s);return Object.assign(r,n),r},nne=(e,t)=>e?_A(e,t):_A;function ZG(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function rne(e,t){const{delay:n,flushOnUnmount:r,leading:i}={delay:t,flushOnUnmount:!1,leading:!1},s=ZG(e),l=S.useRef(0),u=S.useMemo(()=>{const f=Object.assign((...d)=>{window.clearTimeout(l.current);const p=f._isFirstCall;f._isFirstCall=!1;function g(){window.clearTimeout(l.current),l.current=0,f._isFirstCall=!0}if(i&&p){s(...d);const E=()=>{g()},b=()=>{l.current!==0&&(g(),s(...d))},x=()=>{g()};f.flush=b,f.cancel=x,l.current=window.setTimeout(E,n);return}if(i&&!p){const E=()=>{l.current!==0&&(g(),s(...d))},b=()=>{g()};f.flush=E,f.cancel=b;const x=()=>{g()};l.current=window.setTimeout(x,n);return}const m=()=>{l.current!==0&&(g(),s(...d))},v=()=>{g()};f.flush=m,f.cancel=v,l.current=window.setTimeout(m,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return f},[s,n,i]);return S.useEffect(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}const eY=["mousedown","touchstart"];function one(e,t,n){const r=S.useRef(null),i=eY;return S.useEffect(()=>{const s=l=>{const{target:u}=l??{};if(Array.isArray(n)){const f=!document.body.contains(u)&&(u==null?void 0:u.tagName)!=="HTML";n.every(p=>!!p&&!l.composedPath().includes(p))&&!f&&e(l)}else r.current&&!r.current.contains(u)&&e(l)};return i.forEach(l=>document.addEventListener(l,s)),()=>{i.forEach(l=>document.removeEventListener(l,s))}},[r,e,n]),r}const tY=typeof document<"u"?S.useLayoutEffect:S.useEffect;function dm(e,t,n){S.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function nY(e,t="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function rY(e){try{return e&&JSON.parse(e)}catch{return e}}function oY(e){return{getItem:i=>{try{return window[e].getItem(i)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(i,s)=>{try{window[e].setItem(i,s)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:i=>{try{window[e].removeItem(i)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function B3(e,t){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:r,setItem:i,removeItem:s}=oY(e);return function({key:u,defaultValue:f,getInitialValueInEffect:d=!0,sync:p=!0,deserialize:g=rY,serialize:m=v=>nY(v,t)}){const v=S.useCallback(R=>{let T;try{T=typeof window>"u"||!(e in window)||window[e]===null||!!R}catch{T=!0}if(T)return f;const O=r(u);return O!==null?g(O):f},[u,f]),[E,b]=S.useState(v(d)),x=S.useCallback(R=>{R instanceof Function?b(T=>{const O=R(T);return i(u,m(O)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:u,value:R(T)}}))}),O}):(i(u,m(R)),window.dispatchEvent(new CustomEvent(n,{detail:{key:u,value:R}})),b(R))},[u]),C=S.useCallback(()=>{s(u),b(f),window.dispatchEvent(new CustomEvent(n,{detail:{key:u,value:f}}))},[u,f]);return dm("storage",R=>{p&&R.storageArea===window[e]&&R.key===u&&b(g(R.newValue??void 0))}),dm(n,R=>{p&&R.detail.key===u&&b(R.detail.value)}),S.useEffect(()=>{f!==void 0&&E===void 0&&x(f)},[f,E,x]),S.useEffect(()=>{const R=v();R!==void 0&&x(R)},[u]),[E===void 0?f:E,x,C]}}function ine(e){return B3("localStorage","use-local-storage")(e)}function sne(e){return B3("sessionStorage","use-session-storage")(e)}function AA(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function ane(...e){const t=new Map;return n=>{if(e.forEach(r=>{const i=AA(r,n);i&&t.set(r,i)}),t.size>0)return()=>{e.forEach(r=>{const i=t.get(r);i&&typeof i=="function"?i():AA(r,null)}),t.clear()}}}const OA={passive:!0};function lne(){const[e,t]=S.useState({width:0,height:0}),n=S.useCallback(()=>{t({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return dm("resize",n,OA),dm("orientationchange",n,OA),S.useEffect(n,[]),e}const iY={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function tg(e){const t=e.replace("Key","").toLowerCase();return iY[e]||t}function sY(e){const t=e.toLowerCase().split("+").map(s=>s.trim()),n={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift"),plus:t.includes("[plus]")},r=["alt","ctrl","meta","shift","mod"],i=t.find(s=>!r.includes(s));return{...n,key:i==="[plus]"?"+":i}}function aY(e,t,n){const{alt:r,ctrl:i,meta:s,mod:l,shift:u,key:f}=e,{altKey:d,ctrlKey:p,metaKey:g,shiftKey:m,key:v,code:E}=t;if(r!==d)return!1;if(l){if(!p&&!g)return!1}else if(i!==p||s!==g)return!1;return u!==m?!1:!!(f&&(n?tg(E)===tg(f):tg(v??E)===tg(f)))}function U3(e,t){return n=>aY(sY(e),n,t)}function une(e){return t=>{const n="nativeEvent"in t?t.nativeEvent:t;e.forEach(([r,i,s={preventDefault:!0,usePhysicalKeys:!1}])=>{U3(r,s.usePhysicalKeys)(n)&&(s.preventDefault&&t.preventDefault(),i(n))})}}function lY(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function cne(e,t=["INPUT","TEXTAREA","SELECT"],n=!1){S.useEffect(()=>{const r=i=>{e.forEach(([s,l,u={preventDefault:!0,usePhysicalKeys:!1}])=>{U3(s,u.usePhysicalKeys)(i)&&lY(i,t,n)&&(u.preventDefault&&i.preventDefault(),l(i))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[e])}function MA(){const e=window.document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement}function uY(){const e=window.document;return typeof e.exitFullscreen=="function"?e.exitFullscreen():typeof e.msExitFullscreen=="function"?e.msExitFullscreen():typeof e.webkitExitFullscreen=="function"?e.webkitExitFullscreen():typeof e.mozCancelFullScreen=="function"?e.mozCancelFullScreen():null}function cY(e){var n,r,i,s,l;const t=e;return((n=t.requestFullscreen)==null?void 0:n.call(t))||((r=t.msRequestFullscreen)==null?void 0:r.call(t))||((i=t.webkitEnterFullscreen)==null?void 0:i.call(t))||((s=t.webkitRequestFullscreen)==null?void 0:s.call(t))||((l=t.mozRequestFullscreen)==null?void 0:l.call(t))}const IA=["","webkit","moz","ms"];function DA(e,{onFullScreen:t,onError:n}){return IA.forEach(r=>{e.addEventListener(`${r}fullscreenchange`,t),e.addEventListener(`${r}fullscreenerror`,n)}),()=>{IA.forEach(r=>{e.removeEventListener(`${r}fullscreenchange`,t),e.removeEventListener(`${r}fullscreenerror`,n)})}}function fne(){const[e,t]=S.useState(!1),n=S.useRef(null),r=S.useCallback(u=>{t(u.target===MA())},[t]),i=S.useCallback(u=>{t(!1),console.error(`[@mantine/hooks] use-fullscreen: Error attempting full-screen mode method: ${u} (${u.target})`)},[t]),s=S.useCallback(async()=>{MA()?await uY():await cY(n.current)},[]),l=S.useCallback(u=>{u===null?n.current=window.document.documentElement:n.current=u},[]);return S.useEffect(()=>{if(!n.current&&window.document)return n.current=window.document.documentElement,DA(n.current,{onFullScreen:r,onError:i});if(n.current)return DA(n.current,{onFullScreen:r,onError:i})},[n.current]),{ref:l,toggle:s,fullscreen:e}}function LA(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function fY(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function dY(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function hY(e){return/Android/i.test(e)}function pY(e){return/Linux/i.test(e)}function gY(e){return/CrOS/i.test(e)}function PA(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return fY(e)||LA(e)&&"ontouchend"in document?"ios":LA(e)?"macos":dY(e)?"windows":hY(e)?"android":pY(e)?"linux":gY(e)?"chromeos":"undetermined"}function dne(e={getValueInEffect:!0}){const[t,n]=S.useState(e.getValueInEffect?"undetermined":PA());return tY(()=>{e.getValueInEffect&&n(PA)},[]),t}function hne(e=!1,t={}){const[n,r]=S.useState(e),i=S.useCallback(()=>{r(u=>{var f;return u||((f=t.onOpen)==null||f.call(t),!0)})},[t.onOpen]),s=S.useCallback(()=>{r(u=>{var f;return u&&((f=t.onClose)==null||f.call(t),!1)})},[t.onClose]),l=S.useCallback(()=>{n?s():i()},[s,i,n]);return[n,{open:i,close:s,toggle:l}]}var V3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},kA=fe.createContext&&fe.createContext(V3),mY=["attr","size","title"];function vY(e,t){if(e==null)return{};var n=yY(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hm(){return hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hm.apply(this,arguments)}function NA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NA(Object(n),!0).forEach(function(r){bY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bY(e,t,n){return t=SY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SY(e){var t=EY(e,"string");return typeof t=="symbol"?t:t+""}function EY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j3(e){return e&&e.map((t,n)=>fe.createElement(t.tag,pm({key:n},t.attr),j3(t.child)))}function qe(e){return t=>fe.createElement(wY,hm({attr:pm({},e.attr)},t),j3(e.child))}function wY(e){var t=n=>{var{attr:r,size:i,title:s}=e,l=vY(e,mY),u=i||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),fe.createElement("svg",hm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:f,style:pm(pm({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&fe.createElement("title",null,s),e.children)};return kA!==void 0?fe.createElement(kA.Consumer,null,n=>t(n)):t(V3)}function pne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288m144-144H112"},child:[]}]})(e)}function gne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M250.26 166.05 256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z"},child:[]},{tag:"path",attr:{d:"M256 367.91a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(e)}function mne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm0 319.91a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm21.72-201.15-5.74 122a16 16 0 0 1-32 0l-5.74-121.94v-.05a21.74 21.74 0 1 1 43.44 0z"},child:[]}]})(e)}function vne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104 160a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zM104 312a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zM104 464a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56z"},child:[]}]})(e)}function yne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M244 400 100 256l144-144M120 256h292"},child:[]}]})(e)}function bne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 268 144 144 144-144M256 392V100"},child:[]}]})(e)}function Sne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m268 112 144 144-144 144m124-144H100"},child:[]}]})(e)}function Ene(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 244 144-144 144 144M256 120v292"},child:[]}]})(e)}function wne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"200",fill:"none",strokeMiterlimit:"10",strokeWidth:"48"},child:[]},{tag:"path",attr:{strokeMiterlimit:"10",strokeWidth:"48",d:"m114.58 114.58 282.84 282.84"},child:[]}]})(e)}function Rne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0 1 16 16v288a16 16 0 0 1-16 16c-128 0-177.45 25.81-208 64-30.37-38-80-64-208-64-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0 1 16-16c131.57.59 192 32.84 208 96zm0 0v288"},child:[]}]})(e)}function xne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29-134.4 160a16 16 0 0 1-12 5.71h-.27a16 16 0 0 1-11.89-5.3l-57.6-64a16 16 0 1 1 23.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0 1 24.5 20.58z"},child:[]}]})(e)}function Cne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M464 128 240 384l-96-96m0 96-96-96m320-160L232 284"},child:[]}]})(e)}function Tne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}function _ne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Ane(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 328 144-144 144 144"},child:[]}]})(e)}function One(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function Mne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M400 240c-8.89-89.54-71-144-144-144-69 0-113.44 48.2-128 96-60 6-112 43.59-112 112 0 66 54 112 120 112h260c55 0 100-27.44 100-88 0-59.82-53-85.76-96-88z"},child:[]}]})(e)}function Ine(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 416V304h112m-101.8 10.23L432 432M208 96v112H96m101.8-10.23L80 80m336 128H304V96m10.23 101.8L432 80M96 304h112v112m-10.23-101.8L80 432"},child:[]}]})(e)}function Dne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"},child:[]}]})(e)}function Lne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M408 480H184a72 72 0 0 1-72-72V184a72 72 0 0 1 72-72h224a72 72 0 0 1 72 72v224a72 72 0 0 1-72 72z"},child:[]},{tag:"path",attr:{d:"M160 80h235.88A72.12 72.12 0 0 0 328 32H104a72 72 0 0 0-72 72v224a72.12 72.12 0 0 0 48 67.88V160a80 80 0 0 1 80-80z"},child:[]}]})(e)}function Pne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120"},child:[]}]})(e)}function kne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m176 272 80 80 80-80M256 48v288"},child:[]}]})(e)}function Nne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24m168-168v160m80-80H216"},child:[]}]})(e)}function Fne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"192",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]}]})(e)}function zne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"48"},child:[]},{tag:"circle",attr:{cx:"416",cy:"256",r:"48"},child:[]},{tag:"circle",attr:{cx:"96",cy:"256",r:"48"},child:[]}]})(e)}function Hne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320m101.8-10.23L304 304M80 192V80h112M90.2 90.23 208 208M320 80h112v112M421.77 90.2 304 208M192 432H80V320m10.23 101.8L208 304"},child:[]}]})(e)}function Bne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448zm-176.34-64c-41.49 0-81.5-12.28-118.92-36.5-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58 2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1 204.8 204.8 0 0 1-51.16 6.47zm235.18-145.4c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83 2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1 192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37 34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16 310.72 310.72 0 0 1-64.12 72.73 2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13 343.49 343.49 0 0 0 68.64-78.48 32.2 32.2 0 0 0-.1-34.78z"},child:[]},{tag:"path",attr:{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4 2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160zm-90.22 73.66a2 2 0 0 0-3.38 1 96 96 0 0 0 115 115 2 2 0 0 0 1-3.38z"},child:[]}]})(e)}function Une(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z"},child:[]},{tag:"circle",attr:{cx:"256",cy:"256",r:"80",fill:"none",strokeMiterlimit:"10",strokeWidth:"32"},child:[]}]})(e)}function Vne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"64"},child:[]},{tag:"path",attr:{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 0 0-.1-34.76zM256 352a96 96 0 1 1 96-96 96.11 96.11 0 0 1-96 96z"},child:[]}]})(e)}function jne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M461.05 51a65 65 0 0 0-45.71-19h-.76a61.81 61.81 0 0 0-44.36 19.25 12.81 12.81 0 0 0-1.07 1.25l-54 69.76c-5.62 7.1-12.74 8.68-16.78 4.64l-1.9-1.9a48 48 0 0 0-67.92 67.92l9.91 9.91a2 2 0 0 1 0 2.83L58.7 385.38C54 390.05 46.9 399.85 38.85 431c-4.06 15.71-6.51 29.66-6.61 30.24A16 16 0 0 0 48 480a15.68 15.68 0 0 0 2.64-.22c.58-.1 14.44-2.43 30.13-6.44 31.07-7.94 41.05-15.24 45.85-20l179.77-179.79a2 2 0 0 1 2.82 0l9.92 9.92a48 48 0 0 0 67.92-67.93l-1.59-1.54c-5-5-2.52-12.11 4.32-17.14l69.75-53.94a17.82 17.82 0 0 0 1.47-1.32 63.2 63.2 0 0 0 19-45A63.88 63.88 0 0 0 461.05 51zM250.78 283.9c-2.92 2.92-16.18 7.92-23.39.71s-2.24-20.42.69-23.35l33-33a2 2 0 0 1 2.83 0l19.84 19.83a2 2 0 0 1 0 2.83z"},child:[]}]})(e)}function $ne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M194.82 496a18.36 18.36 0 0 1-18.1-21.53v-.11L204.83 320H96a16 16 0 0 1-12.44-26.06L302.73 23a18.45 18.45 0 0 1 32.8 13.71c0 .3-.08.59-.13.89L307.19 192H416a16 16 0 0 1 12.44 26.06L209.24 489a18.45 18.45 0 0 1-14.42 7z"},child:[]}]})(e)}function qne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M64 192v-72a40 40 0 0 1 40-40h75.89a40 40 0 0 1 22.19 6.72l27.84 18.56a40 40 0 0 0 22.19 6.72H408a40 40 0 0 1 40 40v40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M479.9 226.55 463.68 392a40 40 0 0 1-39.93 40H88.25a40 40 0 0 1-39.93-40L32.1 226.55A32 32 0 0 1 64 192h384.1a32 32 0 0 1 31.8 34.55z"},child:[]}]})(e)}function Gne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 152a56 56 0 0 0-56-56H220.11a23.89 23.89 0 0 1-13.31-4L179 73.41A55.77 55.77 0 0 0 147.89 64H72a56 56 0 0 0-56 56v48a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8zM16 392a56 56 0 0 0 56 56h368a56 56 0 0 0 56-56V216a8 8 0 0 0-8-8H24a8 8 0 0 0-8 8z"},child:[]}]})(e)}function Yne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 1 1-26 26 26 26 0 0 1 26-26zm48 226h-88a16 16 0 0 1 0-32h28v-88h-16a16 16 0 0 1 0-32h32a16 16 0 0 1 16 16v104h28a16 16 0 0 1 0 32z"},child:[]}]})(e)}function Xne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M200.66 352H144a96 96 0 0 1 0-192h55.41m113.18 0H368a96 96 0 0 1 0 192h-56.66m-142.27-96h175.86"},child:[]}]})(e)}function Wne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M160 144h288M160 256h288M160 368h288"},child:[]},{tag:"circle",attr:{cx:"80",cy:"144",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"circle",attr:{cx:"80",cy:"256",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"circle",attr:{cx:"80",cy:"368",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]}]})(e)}function Kne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M256 96V56m0 400v-40m0-304a144 144 0 1 0 144 144 144 144 0 0 0-144-144zm160 144h40m-400 0h40"},child:[]}]})(e)}function Qne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 208v-95a80 80 0 0 0-160 0v95"},child:[]},{tag:"rect",attr:{width:"320",height:"272",x:"96",y:"208",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function Jne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368 192h-16v-80a96 96 0 1 0-192 0v80h-16a64.07 64.07 0 0 0-64 64v176a64.07 64.07 0 0 0 64 64h224a64.07 64.07 0 0 0 64-64V256a64.07 64.07 0 0 0-64-64zm-48 0H192v-80a64 64 0 1 1 128 0z"},child:[]}]})(e)}function Zne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 112a80 80 0 0 0-160 0v96"},child:[]},{tag:"rect",attr:{width:"320",height:"272",x:"96",y:"208",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function ere(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48M336 64h112v112M224 288 440 72"},child:[]}]})(e)}function tre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 144h226.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32h-66.75a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32zm384 224h-66.75a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32h226.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32zm0-128H221.25a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32h66.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32z"},child:[]}]})(e)}function nre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16zm144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16z"},child:[]}]})(e)}function rre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M364.13 125.25 87 403l-23 45 44.99-23 277.76-277.13-22.62-22.62zm56.56-56.56-22.62 22.62 22.62 22.63 22.62-22.63a16 16 0 0 0 0-22.62h0a16 16 0 0 0-22.62 0z"},child:[]}]})(e)}function ore(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M358.62 129.28 86.49 402.08 70 442l39.92-16.49 272.8-272.13-24.1-24.1zm54.45-54.44-11.79 11.78 24.1 24.1 11.79-11.79a16.51 16.51 0 0 0 0-23.34l-.75-.75a16.51 16.51 0 0 0-23.35 0z"},child:[]}]})(e)}function ire(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m481.29 229.47-188.87-113a30.54 30.54 0 0 0-31.09-.39 33.74 33.74 0 0 0-16.76 29.47v79.05L63.85 116.44a30.54 30.54 0 0 0-31.09-.39A33.74 33.74 0 0 0 16 145.52v221A33.74 33.74 0 0 0 32.76 396a30.54 30.54 0 0 0 31.09-.39L244.57 287.4v79.08A33.74 33.74 0 0 0 261.33 396a30.54 30.54 0 0 0 31.09-.39l188.87-113a31.27 31.27 0 0 0 0-53z"},child:[]}]})(e)}function sre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M112 64a16 16 0 0 1 16 16v136.43L360.77 77.11a35.13 35.13 0 0 1 35.77-.44c12 6.8 19.46 20 19.46 34.33v290c0 14.37-7.46 27.53-19.46 34.33a35.14 35.14 0 0 1-35.77-.45L128 295.57V432a16 16 0 0 1-32 0V80a16 16 0 0 1 16-16z"},child:[]}]})(e)}function are(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 64a16 16 0 0 0-16 16v136.43L151.23 77.11a35.13 35.13 0 0 0-35.77-.44C103.46 83.47 96 96.63 96 111v290c0 14.37 7.46 27.53 19.46 34.33a35.14 35.14 0 0 0 35.77-.45L384 295.57V432a16 16 0 0 0 32 0V80a16 16 0 0 0-16-16z"},child:[]}]})(e)}function lre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.36a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z"},child:[]}]})(e)}function ure(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"m400 148-21.12-24.57A191.43 191.43 0 0 0 240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 0 0 181.07-128"},child:[]},{tag:"path",attr:{d:"M464 97.42V208a16 16 0 0 1-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"},child:[]}]})(e)}function cre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 256H176"},child:[]}]})(e)}function fre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm80 224H176a16 16 0 0 1 0-32h160a16 16 0 0 1 0 32z"},child:[]}]})(e)}function dre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M400 256H112"},child:[]}]})(e)}function hre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M118 304h276m-276-96h276"},child:[]}]})(e)}function pre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64 63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z"},child:[]}]})(e)}function gre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M262.29 192.31a64 64 0 1 0 57.4 57.4 64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22 155.3 155.3 0 0 1-21.46-12.57 16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22 155.3 155.3 0 0 1 21.46 12.57 16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z"},child:[]}]})(e)}function mre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 176 225.2 304 176 255.8"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z"},child:[]}]})(e)}function vre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M392 432H120a40 40 0 0 1-40-40V120a40 40 0 0 1 40-40h272a40 40 0 0 1 40 40v272a40 40 0 0 1-40 40z"},child:[]}]})(e)}function yre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M464 208 352 96 240 208m112-94.87V416M48 304l112 112 112-112m-112 94V96"},child:[]}]})(e)}function bre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48zm96 240h-96a16 16 0 0 1-16-16V128a16 16 0 0 1 32 0v128h80a16 16 0 0 1 0 32z"},child:[]}]})(e)}function Sre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"448",height:"80",x:"32",y:"48",rx:"32",ry:"32"},child:[]},{tag:"path",attr:{d:"M74.45 160a8 8 0 0 0-8 8.83l26.31 252.56a1.5 1.5 0 0 0 0 .22A48 48 0 0 0 140.45 464h231.09a48 48 0 0 0 47.67-42.39v-.21l26.27-252.57a8 8 0 0 0-8-8.83zm248.86 180.69a16 16 0 1 1-22.63 22.62L256 318.63l-44.69 44.68a16 16 0 0 1-22.63-22.62L233.37 296l-44.69-44.69a16 16 0 0 1 22.63-22.62L256 273.37l44.68-44.68a16 16 0 0 1 22.63 22.62L278.62 296z"},child:[]}]})(e)}function Ere(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",d:"M296 64h-80a7.91 7.91 0 0 0-8 8v24h96V72a7.91 7.91 0 0 0-8-8z"},child:[]},{tag:"path",attr:{d:"M432 96h-96V72a40 40 0 0 0-40-40h-80a40 40 0 0 0-40 40v24H80a16 16 0 0 0 0 32h17l19 304.92c1.42 26.85 22 47.08 48 47.08h184c26.13 0 46.3-19.78 48-47l19-305h17a16 16 0 0 0 0-32zM192.57 416H192a16 16 0 0 1-16-15.43l-8-224a16 16 0 1 1 32-1.14l8 224A16 16 0 0 1 192.57 416zM272 400a16 16 0 0 1-32 0V176a16 16 0 0 1 32 0zm32-304h-96V72a7.91 7.91 0 0 1 8-8h80a7.91 7.91 0 0 1 8 8zm32 304.57A16 16 0 0 1 320 416h-.58A16 16 0 0 1 304 399.43l8-224a16 16 0 1 1 32 1.14z"},child:[]}]})(e)}function wre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M200.66 352H144a96 96 0 0 1 0-192h55.41m113.18 0H368a96 96 0 0 1 0 192h-56.66"},child:[]}]})(e)}function Rre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(e)}function xre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08 278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17zm-198.6-1.83a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm21.72-201.15-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7z"},child:[]}]})(e)}function Cre(e){return qe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 17V3"},child:[]},{tag:"path",attr:{d:"m6 11 6 6 6-6"},child:[]},{tag:"path",attr:{d:"M19 21H5"},child:[]}]})(e)}function Tre(e){return qe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m7 15 5 5 5-5"},child:[]},{tag:"path",attr:{d:"m7 9 5-5 5 5"},child:[]}]})(e)}function _re(e){return qe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 2v2"},child:[]},{tag:"path",attr:{d:"M14 2v2"},child:[]},{tag:"path",attr:{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1"},child:[]},{tag:"path",attr:{d:"M6 2v2"},child:[]}]})(e)}function Are(e){return qe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"7",height:"9",x:"3",y:"3",rx:"1"},child:[]},{tag:"rect",attr:{width:"7",height:"5",x:"14",y:"3",rx:"1"},child:[]},{tag:"rect",attr:{width:"7",height:"9",x:"14",y:"12",rx:"1"},child:[]},{tag:"rect",attr:{width:"7",height:"5",x:"3",y:"16",rx:"1"},child:[]}]})(e)}const $3=S.createContext(void 0);function fh(e){const t=S.useContext($3);if(e===!1&&t===void 0)throw new Error(Vt(27));return t}const RY={...Go,...Bi},Ore=S.forwardRef(function(t,n){const{render:r,className:i,forceRender:s=!1,...l}=t,{store:u}=fh(),f=u.useState("open"),d=u.useState("nested"),p=u.useState("mounted"),g=u.useState("transitionStatus"),m=S.useMemo(()=>({open:f,transitionStatus:g}),[f,g]);return St("div",t,{state:m,ref:[u.context.backdropRef,n],stateAttributesMapping:RY,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:s||!d})}),q3=S.createContext(void 0);function bw(e=!1){const t=S.useContext(q3);if(t===void 0&&!e)throw new Error(Vt(16));return t}function xY(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:s}=e,l=r&&t!==!1,u=r&&t===!1;return{props:S.useMemo(()=>{const d={onKeyDown(p){n&&t&&p.key!=="Tab"&&p.preventDefault()}};return r||(d.tabIndex=i,!s&&n&&(d.tabIndex=t?i:-1)),(s&&(t||l)||!s&&n)&&(d["aria-disabled"]=n),s&&(!t||u)&&(d.disabled=n),d},[r,n,t,l,u,s,i])}}function Ui(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,s=S.useRef(null),l=bw(!0)!==void 0,u=Be(()=>{const m=s.current;return!!((m==null?void 0:m.tagName)==="A"&&(m!=null&&m.href))}),{props:f}=xY({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),d=S.useCallback(()=>{const m=s.current;CY(m)&&l&&t&&f.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,f.disabled,l]);Ve(d,[d]);const p=S.useCallback((m={})=>{const{onClick:v,onMouseDown:E,onKeyUp:b,onKeyDown:x,onPointerDown:C,...R}=m;return Di({type:i?"button":void 0,onClick(O){if(t){O.preventDefault();return}v==null||v(O)},onMouseDown(O){t||E==null||E(O)},onKeyDown(O){if(t||(jb(O),x==null||x(O)),O.baseUIHandlerPrevented)return;const _=O.target===O.currentTarget&&!i&&!u()&&!t,M=O.key==="Enter",A=O.key===" ";_&&((A||M)&&O.preventDefault(),M&&(v==null||v(O)))},onKeyUp(O){t||(jb(O),b==null||b(O)),!O.baseUIHandlerPrevented&&O.target===O.currentTarget&&!i&&!t&&O.key===" "&&(v==null||v(O))},onPointerDown(O){if(t){O.preventDefault();return}C==null||C(O)}},i?void 0:{role:"button"},f,R)},[t,f,i,u]),g=Be(m=>{s.current=m,d()});return{getButtonProps:p,buttonRef:g}}function CY(e){return vn(e)&&e.tagName==="BUTTON"}let TY=function(e){return e.nestedDialogs="--nested-dialogs",e}({}),_Y=function(e){return e[e.open=rl.open]="open",e[e.closed=rl.closed]="closed",e[e.startingStyle=rl.startingStyle]="startingStyle",e[e.endingStyle=rl.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e}({});const G3=S.createContext(void 0);function AY(){const e=S.useContext(G3);if(e===void 0)throw new Error(Vt(26));return e}const Gu="ArrowUp",il="ArrowDown",_d="ArrowLeft",Yu="ArrowRight",dh="Home",hh="End",Y3=new Set([_d,Yu]),OY=new Set([_d,Yu,dh,hh]),X3=new Set([Gu,il]),MY=new Set([Gu,il,dh,hh]),W3=new Set([...Y3,...X3]),IY=new Set([...W3,dh,hh]),d0=new Set([Gu,il,_d,Yu,dh,hh]),K3="Shift",DY="Control",LY="Alt",PY="Meta",kY=new Set([K3,DY,LY,PY]);function NY(e){return vn(e)&&e.tagName==="INPUT"}function FA(e){return!!(NY(e)&&e.selectionStart!=null||vn(e)&&e.tagName==="TEXTAREA")}function zA(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,s=e.scrollTop;const l=e.clientWidth<e.scrollWidth,u=e.clientHeight<e.scrollHeight;if(l&&r!=="vertical"){const f=HA(e,t,"left"),d=ng(e),p=ng(t);n==="ltr"&&(f+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?i=f+t.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:f-p.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(i=f-p.scrollMarginLeft-d.scrollPaddingLeft)),n==="rtl"&&(f-p.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?i=f-p.scrollMarginLeft-d.scrollPaddingLeft:f+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(i=f+t.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(u&&r!=="horizontal"){const f=HA(e,t,"top"),d=ng(e),p=ng(t);f-p.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?s=f-p.scrollMarginTop-d.scrollPaddingTop:f+t.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(s=f+t.offsetHeight+p.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:i,top:s,behavior:"auto"})}function HA(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function ng(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}const FY={...Go,...Bi,nestedDialogOpen(e){return e?{[_Y.nestedDialogOpen]:""}:null}},Mre=S.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:s,render:l,...u}=t,{store:f}=fh(),d=f.useState("descriptionElementId"),p=f.useState("disablePointerDismissal"),g=f.useState("floatingRootContext"),m=f.useState("popupProps"),v=f.useState("modal"),E=f.useState("mounted"),b=f.useState("nested"),x=f.useState("nestedOpenDialogCount"),C=f.useState("open"),R=f.useState("openMethod"),T=f.useState("titleElementId"),O=f.useState("transitionStatus"),_=f.useState("role");AY(),ci({open:C,ref:f.context.popupRef,onComplete(){var H,j;C&&((j=(H=f.context).onOpenChangeComplete)==null||j.call(H,!0))}});function M(H){return H==="touch"?f.context.popupRef.current:!0}const A=s===void 0?M:s,D=x>0,L=S.useMemo(()=>({open:C,nested:b,transitionStatus:O,nestedDialogOpen:D}),[C,b,O,D]),N=St("div",t,{state:L,props:[m,{"aria-labelledby":T??void 0,"aria-describedby":d??void 0,role:_,tabIndex:-1,hidden:!E,onKeyDown(H){d0.has(H.key)&&H.stopPropagation()},style:{[TY.nestedDialogs]:x}},u],ref:[n,f.context.popupRef,f.useStateSetter("popupElement")],stateAttributesMapping:FY});return be.jsx(Bm,{context:g,openInteractionType:R,disabled:!E,closeOnFocusOut:!p,initialFocus:A,returnFocus:i,modal:v!==!1,restoreFocus:"popup",children:N})}),h0=S.forwardRef(function(t,n){const{cutout:r,...i}=t;let s;if(r){const l=r==null?void 0:r.getBoundingClientRect();s=`polygon(
19
+ `),typeof u=="string"||u instanceof Uint8Array)i(u);else{let f;try{f=JSON.stringify(u)}catch{f=JSON.stringify(fs(u))}i(f)}}return typeof r=="string"?r:dV(r)}function dV(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function hV(e){return[{type:"span"},e]}function pV(e){const t=typeof e.data=="string"?mS(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const gV={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function z2(e){return gV[e]}function D6(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function mV(e,t,n,r){var s;const i=(s=e.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Uc(r)},...i&&{trace:i}}}function vS(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(yV(n)){if(Mg(e.description,n))return!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Mg(e.description,n.name):!0,i=n.op?e.op&&Mg(e.op,n.op):!0;if(r&&i)return!0}return!1}function vV(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function yV(e){return typeof e=="string"||e instanceof RegExp}function bV(e,t){var r,i,s,l;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((i=e.sdk)==null?void 0:i.packages)||[],...t.packages||[]],settings:(s=e.sdk)!=null&&s.settings||t.settings?{...(l=e.sdk)==null?void 0:l.settings,...t.settings}:void 0},e}function SV(e,t,n,r){const i=D6(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Uc(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return jc(s,[l])}function EV(e,t,n,r){const i=D6(n),s=e.type&&e.type!=="replay_event"?e.type:"event";bV(e,n==null?void 0:n.sdk);const l=mV(e,i,r,t);return delete e.sdkProcessingMetadata,jc(l,[[{type:s},e]])}function wV(e,t){function n(v){return!!v.trace_id&&!!v.public_key}const r=Ca(e[0]),i=t==null?void 0:t.getDsn(),s=t==null?void 0:t.getOptions().tunnel,l={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:Uc(i)}},{beforeSendSpan:u,ignoreSpans:f}=(t==null?void 0:t.getOptions())||{},d=f!=null&&f.length?e.filter(v=>!vS(on(v),f)):e,p=e.length-d.length;p&&(t==null||t.recordDroppedEvent("before_send","span",p));const g=u?v=>{const E=on(v),b=u(E);return b||(pS(),E)}:on,m=[];for(const v of d){const E=g(v);E&&m.push(hV(E))}return jc(l,m)}function RV(e,t,n,r=kr()){const i=r&&eo(r);i&&i.addEvent(e,{[sh]:t,[ih]:n})}function H2(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[ih],s=r[sh];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}const B2=1e3;class s0{constructor(t={}){this._traceId=t.traceId||Ra(),this._spanId=t.spanId||oh(),this._startTime=t.startTimestamp||br(),this._links=t.links,this._attributes={},this.setAttributes({[jn]:"manual",[ii]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?ow:x6}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=El(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Wr,"custom"),this}end(t){this._endTime||(this._endTime=El(t),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ii],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:T6(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[jn],profile_id:this._attributes[nw],exclusive_time:this._attributes[Bc],measurements:H2(this._events),is_segment:this._isStandaloneSpan&&eo(this)===this||void 0,segment_id:this._isStandaloneSpan?eo(this).spanContext().spanId:void 0,links:C6(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){const i=U2(n)?n:r||br(),s=U2(n)?{}:n||{},l={name:t,time:El(i),attributes:s};return this._events.push(l),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Kt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===eo(this)))return;if(this._isStandaloneSpan){this._sampled?CV(wV([this],t)):t&&t.recordDroppedEvent("sample_rate","span");return}const r=this._convertSpanToTransaction();r&&(im(this).scope||sn()).captureEvent(r)}_convertSpanToTransaction(){var p;if(!V2(on(this)))return;this._name||(this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=im(this),r=(p=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:p.normalizedRequest;if(this._sampled!==!0)return;const s=Ig(this).filter(g=>g!==this&&!xV(g)).map(g=>on(g)).filter(V2),l=this._attributes[Wr];delete this._attributes[D2],s.forEach(g=>{delete g.data[D2]});const u={contexts:{trace:JU(this)},spans:s.length>B2?s.sort((g,m)=>g.start_timestamp-m.start_timestamp).slice(0,B2):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ca(this)},request:r,...l&&{transaction_info:{source:l}}},f=H2(this._events);return f&&Object.keys(f).length&&(u.measurements=f),u}}function U2(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function V2(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function xV(e){return e instanceof s0&&e.isStandaloneSpan()}function CV(e){const t=Kt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function TV(e,t,n=()=>{}){let r;try{r=e()}catch(i){throw t(i),n(),i}return _V(r,t,n)}function _V(e,t,n){return th(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function AV(e,t,n){if(!xa(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:u=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):u}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const s=Rd(i);return s===void 0?[!1]:s?[n<s,s,r]:[!1,s,r]}const L6="__SENTRY_SUPPRESS_TRACING__";function OV(e,t){const n=aw();if(n.startSpan)return n.startSpan(e,t);const r=k6(e),{forceTransaction:i,parentSpan:s,scope:l}=e,u=l==null?void 0:l.clone();return Hc(u,()=>IV(s)(()=>{const d=sn(),p=N6(d,s),m=e.onlyIfParent&&!p?new Ta:P6({parentSpan:p,spanArguments:r,forceTransaction:i,scope:d});return yc(d,m),TV(()=>t(m),()=>{const{status:v}=on(m);m.isRecording()&&(!v||v==="ok")&&m.setStatus({code:tr,message:"internal_error"})},()=>{m.end()})}))}function $c(e){const t=aw();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=k6(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?l=>Hc(e.scope,l):i!==void 0?l=>sw(i,l):l=>l())(()=>{const l=sn(),u=N6(l,i);return e.onlyIfParent&&!u?new Ta:P6({parentSpan:u,spanArguments:n,forceTransaction:r,scope:l})})}function sw(e,t){const n=aw();return n.withActiveSpan?n.withActiveSpan(e,t):Hc(r=>(yc(r,e||void 0),t(r)))}function P6({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!xa()){const l=new Ta;if(n||!e){const u={sampled:"false",sample_rate:"0",transaction:t.name,...Ca(l)};Dg(l,u)}return l}const i=Ms();let s;if(e&&!n)s=MV(e,r,t),_6(e,s);else if(e){const l=Ca(e),{traceId:u,spanId:f}=e.spanContext(),d=Vc(e);s=j2({traceId:u,parentSpanId:f,...t},r,d),Dg(s,l)}else{const{traceId:l,dsc:u,parentSpanId:f,sampled:d}={...i.getPropagationContext(),...r.getPropagationContext()};s=j2({traceId:l,parentSpanId:f,...t},r,d),u&&Dg(s,u)}return FU(s,r,i),s}function k6(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=El(e.startTime),delete r.startTime,r}return n}function aw(){const e=Bl();return zc(e)}function j2(e,t,n){var E;const r=Kt(),i=(r==null?void 0:r.getOptions())||{},{name:s=""}=e,l={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r==null||r.emit("beforeSampling",l,{decision:!1});const u=l.parentSampled??n,f=l.spanAttributes,d=t.getPropagationContext(),[p,g,m]=t.getScopeData().sdkProcessingMetadata[L6]?[!1]:AV(i,{name:s,parentSampled:u,attributes:f,parentSampleRate:Rd((E=d.dsc)==null?void 0:E.sample_rate)},d.sampleRand),v=new s0({...e,attributes:{[Wr]:"custom",[tw]:g!==void 0&&m?g:void 0,...f},sampled:p});return!p&&r&&r.recordDroppedEvent("sample_rate","transaction"),r&&r.emit("spanStart",v),v}function MV(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[L6]?!1:Vc(e),l=s?new s0({...n,parentSpanId:r,traceId:i,sampled:s}):new Ta({traceId:i});_6(e,l);const u=Kt();return u&&(u.emit("spanStart",l),n.endTimestamp&&u.emit("spanEnd",l)),l}function N6(e,t){if(t)return t;if(t===null)return;const n=rm(e);if(!n)return;const r=Kt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?eo(n):n}function IV(e){return e!==void 0?t=>sw(e,t):t=>t()}const Lg={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},DV="heartbeatFailed",LV="idleTimeout",PV="finalTimeout",kV="externalFinish";function F6(e,t={}){const n=new Map;let r=!1,i,s=kV,l=!t.disableAutoFinish;const u=[],{idleTimeout:f=Lg.idleTimeout,finalTimeout:d=Lg.finalTimeout,childSpanTimeout:p=Lg.childSpanTimeout,beforeSpanEnd:g}=t,m=Kt();if(!m||!xa()){const M=new Ta,A={sample_rate:"0",sampled:"false",...Ca(M)};return Dg(M,A),M}const v=sn(),E=kr(),b=NV(e);b.end=new Proxy(b.end,{apply(M,A,D){if(g&&g(b),A instanceof Ta)return;const[L,...N]=D,H=L||br(),j=El(H),F=Ig(b).filter(B=>B!==b);if(!F.length)return _(j),Reflect.apply(M,A,[j,...N]);const q=F.map(B=>on(B).timestamp).filter(B=>!!B),U=q.length?Math.max(...q):void 0,P=on(b).start_timestamp,G=Math.min(P?P+d/1e3:1/0,Math.max(P||-1/0,Math.min(j,U||1/0)));return _(G),Reflect.apply(M,A,[G,...N])}});function x(){i&&(clearTimeout(i),i=void 0)}function C(M){x(),i=setTimeout(()=>{!r&&n.size===0&&l&&(s=LV,b.end(M))},f)}function R(M){i=setTimeout(()=>{!r&&l&&(s=DV,b.end(M))},p)}function T(M){x(),n.set(M,!0);const A=br();R(A+p/1e3)}function O(M){if(n.has(M)&&n.delete(M),n.size===0){const A=br();C(A+f/1e3)}}function _(M){r=!0,n.clear(),u.forEach(j=>j()),yc(v,E);const A=on(b),{start_timestamp:D}=A;if(!D)return;A.data[om]||b.setAttribute(om,s),QE.log(`[Tracing] Idle span "${A.op}" finished`);const N=Ig(b).filter(j=>j!==b);let H=0;N.forEach(j=>{j.isRecording()&&(j.setStatus({code:tr,message:"cancelled"}),j.end(M));const F=on(j),{timestamp:q=0,start_timestamp:U=0}=F,P=U<=M,G=(d+f)/1e3;(!(q-U<=G)||!P)&&(rV(b,j),H++)}),H>0&&b.setAttribute("sentry.idle_span_discarded_spans",H)}return u.push(m.on("spanStart",M=>{if(r||M===b||on(M).timestamp||M instanceof s0&&M.isStandaloneSpan())return;Ig(b).includes(M)&&T(M.spanContext().spanId)})),u.push(m.on("spanEnd",M=>{r||O(M.spanContext().spanId)})),u.push(m.on("idleSpanEnableAutoFinish",M=>{M===b&&(l=!0,C(),n.size&&R())})),t.disableAutoFinish||C(),setTimeout(()=>{r||(b.setStatus({code:tr,message:"deadline_exceeded"}),s=PV,b.end())},d),b}function NV(e){const t=$c(e);return yc(sn(),t),t}const C1=0,$2=1,q2=2;function Il(e){return new _a(t=>{t(e)})}function sm(e){return new _a((t,n)=>{n(e)})}class _a{constructor(t){this._state=C1,this._handlers=[],this._runExecutor(t)}then(t,n){return new _a((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(l){i(l)}},s=>{if(!n)i(s);else try{r(n(s))}catch(l){i(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new _a((n,r)=>{let i,s;return this.then(l=>{s=!1,i=l,t&&t()},l=>{s=!0,i=l,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===C1)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===$2&&n[1](this._value),this._state===q2&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,l)=>{if(this._state===C1){if(th(l)){l.then(r,i);return}this._state=s,this._value=l,this._executeHandlers()}},r=s=>{n($2,s)},i=s=>{n(q2,s)};try{t(r,i)}catch(s){i(s)}}}function yS(e,t,n,r=0){return new _a((i,s)=>{const l=e[r];if(t===null||typeof l!="function")i(t);else{const u=l({...t},n);th(u)?u.then(f=>yS(e,f,n,r+1).then(i)).then(null,s):yS(e,u,n,r+1).then(i).then(null,s)}})}function FV(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;zV(e,t),r&&UV(e,r),VV(e,n),HV(e,i),BV(e,s)}function G2(e,t){const{extra:n,tags:r,user:i,contexts:s,level:l,sdkProcessingMetadata:u,breadcrumbs:f,fingerprint:d,eventProcessors:p,attachments:g,propagationContext:m,transactionName:v,span:E}=t;Xp(e,"extra",n),Xp(e,"tags",r),Xp(e,"user",i),Xp(e,"contexts",s),e.sdkProcessingMetadata=rh(e.sdkProcessingMetadata,u,2),l&&(e.level=l),v&&(e.transactionName=v),E&&(e.span=E),f.length&&(e.breadcrumbs=[...e.breadcrumbs,...f]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...m}}function Xp(e,t,n){e[t]=rh(e[t],n,1)}function zV(e,t){const{extra:n,tags:r,user:i,contexts:s,level:l,transactionName:u}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),l&&(e.level=l),u&&e.type!=="transaction"&&(e.transaction=u)}function HV(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function BV(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function UV(e,t){e.contexts={trace:ZU(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ca(t),...e.sdkProcessingMetadata};const n=eo(t),r=on(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function VV(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let Wp,Y2,Kp;function jV(e){const t=hn._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Kp&&n.length===Y2||(Y2=n.length,Kp=n.reduce((r,i)=>{Wp||(Wp={});const s=Wp[i];if(s)r[s[0]]=s[1];else{const l=e(i);for(let u=l.length-1;u>=0;u--){const f=l[u],d=f==null?void 0:f.filename,p=t[i];if(d&&p){r[d]=p,Wp[i]=[d,p];break}}}return r},{})),Kp}function $V(e,t,n,r,i,s){const{normalizeDepth:l=3,normalizeMaxBreadth:u=1e3}=e,f={...t,event_id:t.event_id||n.event_id||$o(),timestamp:t.timestamp||Ul()},d=n.integrations||e.integrations.map(x=>x.name);qV(f,e),XV(f,d),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&GV(f,e.stackParser);const p=KV(r,n.captureContext);n.mechanism&&mc(f,n.mechanism);const g=i?i.getEventProcessors():[],m=DU().getScopeData();if(s){const x=s.getScopeData();G2(m,x)}if(p){const x=p.getScopeData();G2(m,x)}const v=[...n.attachments||[],...m.attachments];v.length&&(n.attachments=v),FV(f,m);const E=[...g,...m.eventProcessors];return yS(E,f,n).then(x=>(x&&YV(x),typeof l=="number"&&l>0?WV(x,l,u):x))}function qV(e,t){const{environment:n,release:r,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||n||iw,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const l=e.request;l!=null&&l.url&&(l.url=nm(l.url,s))}function GV(e,t){var r,i;const n=jV(t);(i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var l,u;(u=(l=s.stacktrace)==null?void 0:l.frames)==null||u.forEach(f=>{f.filename&&(f.debug_id=n[f.filename])})})}function YV(e){var r,i;const t={};if((i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var l,u;(u=(l=s.stacktrace)==null?void 0:l.frames)==null||u.forEach(f=>{f.debug_id&&(f.abs_path?t[f.abs_path]=f.debug_id:f.filename&&(t[f.filename]=f.debug_id),delete f.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,l])=>{n.push({type:"sourcemap",code_file:s,debug_id:l})})}function XV(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function WV(e,t,n){var i,s;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(l=>({...l,...l.data&&{data:fs(l.data,t,n)}}))},...e.user&&{user:fs(e.user,t,n)},...e.contexts&&{contexts:fs(e.contexts,t,n)},...e.extra&&{extra:fs(e.extra,t,n)}};return(i=e.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=fs(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(l=>({...l,...l.data&&{data:fs(l.data,t,n)}}))),(s=e.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=fs(e.contexts.flags,3,n)),r}function KV(e,t){if(!t)return e;const n=e?e.clone():new Pi;return n.update(t),n}function QV(e){if(e)return JV(e)?{captureContext:e}:e9(e)?{captureContext:e}:e}function JV(e){return e instanceof Pi||typeof e=="function"}const ZV=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function e9(e){return Object.keys(e).some(t=>ZV.includes(t))}function z6(e,t){return sn().captureException(e,QV(t))}function H6(e,t){return sn().captureEvent(e,t)}function t9(e,t){Ms().setContext(e,t)}function n9(){return Ms().lastEventId()}function r9(){const e=Kt();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function X2(e){const t=Ms(),n=sn(),{userAgent:r}=hn.navigator||{},i=wU({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),s=t.getSession();return(s==null?void 0:s.status)==="ok"&&vc(s,{status:"exited"}),B6(),t.setSession(i),i}function B6(){const e=Ms(),n=sn().getSession()||e.getSession();n&&RU(n),U6(),e.setSession()}function U6(){const e=Ms(),t=Kt(),n=e.getSession();n&&t&&t.captureSession(n)}function W2(e=!1){if(e){B6();return}U6()}const o9="7";function V6(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function i9(e){return`${V6(e)}${e.projectId}/envelope/`}function s9(e,t){const n={sentry_version:o9};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function a9(e,t,n){return t||`${i9(e)}?${s9(e,n)}`}function l9(e,t){const n=E6(e);if(!n)return"";const r=`${V6(n)}embed/error-page/`;let i=`dsn=${Uc(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const l=t.user;if(!l)continue;l.name&&(i+=`&name=${encodeURIComponent(l.name)}`),l.email&&(i+=`&email=${encodeURIComponent(l.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const K2=[];function u9(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function c9(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return u9(r)}function f9(e,t){const n={};return t.forEach(r=>{r&&j6(e,r,n)}),n}function Q2(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function j6(e,t,n){if(!n[t.name]){if(n[t.name]=t,K2.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),K2.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,l)=>r(s,l,e),{id:t.name});e.addEventProcessor(i)}}}function d9(e,t,n){const r=[{type:"client_report"},{timestamp:Ul(),discarded_events:e}];return jc(t?{dsn:t}:{},[r])}function h9(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function p9(e){var f;const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:l,op:u}=((f=e.contexts)==null?void 0:f.trace)??{};return{data:l??{},description:e.transaction,op:u,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:l==null?void 0:l[nw],exclusive_time:l==null?void 0:l[Bc],measurements:e.measurements,is_segment:!0}}function g9(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[nw]:e.profile_id},...e.exclusive_time&&{[Bc]:e.exclusive_time}}}},measurements:e.measurements}}const $6=Symbol.for("SentryInternalError"),q6=Symbol.for("SentryDoNotSendEventError");function Pg(e){return{message:e,[$6]:!0}}function T1(e){return{message:e,[q6]:!0}}function m9(e){return!!e&&typeof e=="object"&&$6 in e}function v9(e){return!!e&&typeof e=="object"&&q6 in e}class y9{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn&&(this._dsn=E6(t.dsn)),this._dsn){const n=a9(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const i=$o();if(O2(t))return i;const s={event_id:i,...n};return this._process(this.eventFromException(t,s).then(l=>this._captureEvent(l,s,r))),s.event_id}captureMessage(t,n,r,i){const s={event_id:$o(),...r},l=JE(t)?t:String(t),u=Ed(t)?this.eventFromMessage(l,n,s):this.eventFromException(t,s);return this._process(u.then(f=>this._captureEvent(f,s,i))),s.event_id}captureEvent(t,n,r){const i=$o();if(n!=null&&n.originalException&&O2(n.originalException))return i;const s={event_id:i,...n},l=t.sdkProcessingMetadata||{},u=l.capturedSpanScope,f=l.capturedSpanIsolationScope;return this._process(this._captureEvent(t,s,u||r,f)),s.event_id}captureSession(t){this.sendSession(t),vc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):Il(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];j6(this,t,this._integrations),n||Q2(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=EV(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=cV(r,pV(s));const i=this.sendEnvelope(r);i&&i.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const{release:n,environment:r=iw}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n)return;s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n)return;t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=SV(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>n):Il({})}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=f9(this,t),Q2(this,t)}_updateSessionFromEvent(t,n){var f;let r=n.level==="fatal",i=!1;const s=(f=n.exception)==null?void 0:f.values;if(s){i=!0;for(const d of s){const p=d.mechanism;if((p==null?void 0:p.handled)===!1){r=!0;break}}}const l=t.status==="ok";(l&&t.errors===0||l&&r)&&(vc(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new _a(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,t&&r>=t&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const s=this.getOptions(),l=Object.keys(this._integrations);return!n.integrations&&(l!=null&&l.length)&&(n.integrations=l),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),$V(s,t,n,r,this,i).then(u=>{if(u===null)return u;this.emit("postprocessEvent",u,n),u.contexts={trace:LU(r),...u.contexts};const f=M6(this,r);return u.sdkProcessingMetadata={dynamicSamplingContext:f,...u.sdkProcessingMetadata},u})}_captureEvent(t,n={},r=sn(),i=Ms()){return this._processEvent(t,n,r,i).then(s=>s.event_id,s=>{})}_processEvent(t,n,r,i){const s=this.getOptions(),{sampleRate:l}=s,u=Y6(t),f=G6(t),d=t.type||"error",p=`before send for type \`${d}\``,g=typeof l>"u"?void 0:Rd(l);if(f&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error"),sm(T1(`Discarding event because it's not included in the random sample (sampling rate = ${l})`));const m=d==="replay_event"?"replay":d;return this._prepareEvent(t,n,r,i).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",m),T1("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;const b=S9(this,s,v,n);return b9(b,p)}).then(v=>{var x;if(v===null){if(this.recordDroppedEvent("before_send",m),u){const R=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw T1(`${p} returned \`null\`, will not send event.`)}const E=r.getSession()||i.getSession();if(f&&E&&this._updateSessionFromEvent(E,v),u){const C=((x=v.sdkProcessingMetadata)==null?void 0:x.spanCountBeforeProcessing)||0,R=v.spans?v.spans.length:0,T=C-R;T>0&&this.recordDroppedEvent("before_send","span",T)}const b=v.transaction_info;if(u&&b&&v.transaction!==t.transaction){const C="custom";v.transaction_info={...b,source:C}}return this.sendEvent(v,n),v}).then(null,v=>{throw v9(v)||m9(v)?v:(this.captureException(v,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:v}),Pg(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
20
+ Reason: ${v}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0||!this._dsn)return;const n=d9(t,this._options.tunnel&&Uc(this._dsn));this.sendEnvelope(n)}}function b9(e,t){const n=`${t} must return \`null\` or a valid event.`;if(th(e))return e.then(r=>{if(!wd(r)&&r!==null)throw Pg(n);return r},r=>{throw Pg(`${t} rejected with ${r}`)});if(!wd(e)&&e!==null)throw Pg(n);return e}function S9(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:l,ignoreSpans:u}=t;let f=n;if(G6(f)&&i)return i(f,r);if(Y6(f)){if(l||u){const d=p9(f);if(u!=null&&u.length&&vS(d,u))return null;if(l){const p=l(d);p?f=rh(n,g9(p)):pS()}if(f.spans){const p=[],g=f.spans;for(const v of g){if(u!=null&&u.length&&vS(v,u)){vV(g,v);continue}if(l){const E=l(v);E?p.push(E):(pS(),p.push(v))}else p.push(v)}const m=f.spans.length-p.length;m&&e.recordDroppedEvent("before_send","span",m),f.spans=p}}if(s){if(f.spans){const d=f.spans.length;f.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return s(f,r)}}return f}function G6(e){return e.type===void 0}function Y6(e){return e.type==="transaction"}function E9(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function w9(e,t,n,r){const i={};return t!=null&&t.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Uc(r)),jc(i,[E9(e)])}function _1(e,t){const n=R9(e)??[];if(n.length===0)return;const r=e.getOptions(),i=w9(n,r._metadata,r.tunnel,e.getDsn());X6().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function R9(e){return X6().get(e)}function X6(){return n0("clientToLogBufferMap",()=>new WeakMap)}function x9(e,t){t.debug===!0&&r0(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),sn().update(t.initialScope);const r=new e(t);return C9(r),r.init(),r}function C9(e){sn().setClient(e)}const W6=Symbol.for("SentryBufferFullError");function T9(e){const t=[];function n(){return e===void 0||t.length<e}function r(l){return t.splice(t.indexOf(l),1)[0]||Promise.resolve(void 0)}function i(l){if(!n())return sm(W6);const u=l();return t.indexOf(u)===-1&&t.push(u),u.then(()=>r(u)).then(null,()=>r(u).then(null,()=>{})),u}function s(l){return new _a((u,f)=>{let d=t.length;if(!d)return u(!0);const p=setTimeout(()=>{l&&l>0&&u(!1)},l);t.forEach(g=>{Il(g).then(()=>{--d||(clearTimeout(p),u(!0))},f)})})}return{$:t,add:i,drain:s}}const _9=60*1e3;function A9(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?_9:r-t}function O9(e,t){return e[t]||e.all||0}function M9(e,t,n=Date.now()){return O9(e,t)>n}function I9(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n==null?void 0:n["x-sentry-rate-limits"],l=n==null?void 0:n["retry-after"];if(s)for(const u of s.trim().split(",")){const[f,d,,,p]=u.split(":",5),g=parseInt(f,10),m=(isNaN(g)?60:g)*1e3;if(!d)i.all=r+m;else for(const v of d.split(";"))v==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(i[v]=r+m):i[v]=r+m}else l?i.all=r+A9(l,r):t===429&&(i.all=r+60*1e3);return i}const D9=64;function L9(e,t,n=T9(e.bufferSize||D9)){let r={};const i=l=>n.drain(l);function s(l){const u=[];if(F2(l,(g,m)=>{const v=z2(m);M9(r,v)?e.recordDroppedEvent("ratelimit_backoff",v):u.push(g)}),u.length===0)return Il({});const f=jc(l[0],u),d=g=>{F2(f,(m,v)=>{e.recordDroppedEvent(g,z2(v))})},p=()=>t({body:fV(f)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300),r=I9(r,g),g),g=>{throw d("network_error"),g});return n.add(p).then(g=>g,g=>{if(g===W6)return d("queue_overflow"),Il({});throw g})}return{send:s,flush:i}}const P9="thismessage:/";function K6(e){return"isRelative"in e}function Q6(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?P9:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function k9(e){if(K6(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Rl(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function N9(e){return e.split(/[?#]/,1)[0]}function F9(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function J6(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:Sl})),version:Sl}),e._metadata=i}function Z6(e={}){const t=e.client||Kt();if(!r9()||!t)return{};const n=Bl(),r=zc(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||sn(),s=e.span||kr(),l=s?eV(s):z9(i),u=s?Ca(s):M6(t,i),f=BU(u);return w6.test(l)?{"sentry-trace":l,baggage:f}:(QE.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function z9(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return R6(t,r,n)}const H9=100;function Dl(e,t){const n=Kt(),r=Ms();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=H9}=n.getOptions();if(s<=0)return;const u={timestamp:Ul(),...e},f=i?r0(()=>i(u,t)):u;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),r.addBreadcrumb(f,s))}let J2;const B9="FunctionToString",Z2=new WeakMap,U9=()=>({name:B9,setupOnce(){J2=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ew(this),n=Z2.has(Kt())&&t!==void 0?t:this;return J2.apply(n,e)}}catch{}},setup(e){Z2.set(e,!0)}}),V9=U9,j9=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],$9="EventFilters",q9=(e={})=>{let t;return{name:$9,setup(n){const r=n.getOptions();t=eA(e,r)},processEvent(n,r,i){if(!t){const s=i.getOptions();t=eA(e,s)}return Y9(n,t)?null:n}}},G9=(e={})=>({...q9(e),name:"InboundFilters"});function eA(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:j9],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Y9(e,t){if(e.type){if(e.type==="transaction"&&W9(e,t.ignoreTransactions))return!0}else if(X9(e,t.ignoreErrors)||Z9(e)||K9(e,t.denyUrls)||!Q9(e,t.allowUrls))return!0;return!1}function X9(e,t){return t!=null&&t.length?h9(e).some(n=>Sa(n,t)):!1}function W9(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?Sa(n,t):!1}function K9(e,t){if(!(t!=null&&t.length))return!1;const n=e3(e);return n?Sa(n,t):!1}function Q9(e,t){if(!(t!=null&&t.length))return!0;const n=e3(e);return n?Sa(n,t):!0}function J9(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function e3(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(s=>{var l,u,f;return((l=s.mechanism)==null?void 0:l.parent_id)===void 0&&((f=(u=s.stacktrace)==null?void 0:u.frames)==null?void 0:f.length)}),i=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return i?J9(i):null}catch{return null}}function Z9(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function ej(e,t,n,r,i,s){var u;if(!((u=i.exception)!=null&&u.values)||!s||!Cs(s.originalException,Error))return;const l=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;l&&(i.exception.values=bS(e,t,r,s.originalException,n,i.exception.values,l,0))}function bS(e,t,n,r,i,s,l,u){if(s.length>=n+1)return s;let f=[...s];if(Cs(r[i],Error)){tA(l,u);const d=e(t,r[i]),p=f.length;nA(d,i,p,u),f=bS(e,t,n,r[i],i,[d,...f],d,p)}return Array.isArray(r.errors)&&r.errors.forEach((d,p)=>{if(Cs(d,Error)){tA(l,u);const g=e(t,d),m=f.length;nA(g,`errors[${p}]`,m,u),f=bS(e,t,n,d,i,[g,...f],g,m)}}),f}function tA(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function nA(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function tj(e){const t="console";La(t,e),Pa(t,nj)}function nj(){"console"in hn&&Z7.forEach(function(e){e in hn.console&&vo(hn.console,e,function(t){return tm[e]=t,function(...n){jo("console",{args:n,level:e});const i=tm[e];i==null||i.apply(hn.console,n)}})})}function rj(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const oj="Dedupe",ij=()=>{let e;return{name:oj,processEvent(t){if(t.type)return t;try{if(aj(t,e))return J7&&QE.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},sj=ij;function aj(e,t){return t?!!(lj(e,t)||uj(e,t)):!1}function lj(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!n3(e,t)||!t3(e,t))}function uj(e,t){const n=rA(t),r=rA(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!n3(e,t)||!t3(e,t))}function t3(e,t){let n=R2(e),r=R2(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],l=n[i];if(s.filename!==l.filename||s.lineno!==l.lineno||s.colno!==l.colno||s.function!==l.function)return!1}return!0}function n3(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function rA(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function cj(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;const{method:s,url:l}=e.fetchData,u=xa()&&t(l);if(e.endTimestamp&&u){const g=e.fetchData.__span;if(!g)return;const m=r[g];m&&(dj(m,e),delete r[g]);return}const f=!!kr(),d=u&&f?$c(pj(l,s,i)):new Ta;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const g=e.args[0],m=e.args[1]||{},v=fj(g,m,xa()&&f?d:void 0);v&&(e.args[1]=m,m.headers=v)}const p=Kt();if(p){const g={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,g)}return d}function fj(e,t,n){const r=Z6({span:n}),i=r["sentry-trace"],s=r.baggage;if(!i)return;const l=t.headers||(l6(e)?e.headers:void 0);if(l)if(hj(l)){const u=new Headers(l);if(u.get("sentry-trace")||u.set("sentry-trace",i),s){const f=u.get("baggage");f?Qp(f)||u.set("baggage",`${f},${s}`):u.set("baggage",s)}return u}else if(Array.isArray(l)){const u=[...l];l.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",i]);const f=l.find(d=>d[0]==="baggage"&&Qp(d[1]));return s&&!f&&u.push(["baggage",s]),u}else{const u="sentry-trace"in l?l["sentry-trace"]:void 0,f="baggage"in l?l.baggage:void 0,d=f?Array.isArray(f)?[...f]:[f]:[],p=f&&(Array.isArray(f)?f.find(g=>Qp(g)):Qp(f));return s&&!p&&d.push(s),{...l,"sentry-trace":u??i,baggage:d.length>0?d.join(","):void 0}}else return{...r}}function dj(e,t){var n,r;if(t.response){m6(e,t.response.status);const i=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(i){const s=parseInt(i);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:tr,message:"internal_error"});e.end()}function Qp(e){return e.split(",").some(t=>t.trim().startsWith(rw))}function hj(e){return typeof Headers<"u"&&Cs(e,Headers)}function pj(e,t,n){const r=Q6(e);return{name:r?`${t} ${k9(r)}`:t,attributes:gj(e,r,t,n)}}function gj(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[jn]:r,[ii]:"http.client"};return t&&(K6(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function r3(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const xd=hn;function mj(){return"history"in xd&&!!xd.history}function vj(){if(!("fetch"in xd))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function SS(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yj(){var n;if(typeof EdgeRuntime=="string")return!0;if(!vj())return!1;if(SS(xd.fetch))return!0;let e=!1;const t=xd.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=SS(r.contentWindow.fetch)),t.head.removeChild(r)}catch{}return e}function o3(e,t){const n="fetch";La(n,e),Pa(n,()=>i3(void 0,t))}function bj(e){const t="fetch-body-resolved";La(t,e),Pa(t,()=>i3(Ej))}function i3(e,t=!1){t&&!yj()||vo(hn,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:l}=wj(r),u={args:r,fetchData:{method:s,url:l},startTimestamp:br()*1e3,virtualError:i,headers:Rj(r)};return e||jo("fetch",{...u}),n.apply(hn,r).then(async f=>(e?e(f):jo("fetch",{...u,endTimestamp:br()*1e3,response:f}),f),f=>{if(jo("fetch",{...u,endTimestamp:br()*1e3,error:f}),o0(f)&&f.stack===void 0&&(f.stack=i.stack,Pr(f,"framesToPop",1)),f instanceof TypeError&&(f.message==="Failed to fetch"||f.message==="Load failed"||f.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(u.fetchData.url);f.message=`${f.message} (${d.host})`}catch{}throw f})}})}async function Sj(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let l;try{l=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:u}=await r.read();clearTimeout(l),u&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(l)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Ej(e){let t;try{t=e.clone()}catch{return}Sj(t,()=>{jo("fetch-body-resolved",{endTimestamp:br()*1e3,response:e})})}function ES(e,t){return!!e&&typeof e=="object"&&!!e[t]}function oA(e){return typeof e=="string"?e:e?ES(e,"url")?e.url:e.toString?e.toString():"":""}function wj(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:oA(n),method:ES(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:oA(t),method:ES(t,"method")?String(t.method).toUpperCase():"GET"}}function Rj(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(l6(t))return new Headers(t.headers)}catch{}}function xj(){return"npm"}const Dt=hn;let wS=0;function s3(){return wS>0}function Cj(){wS++,setTimeout(()=>{wS--})}function Sc(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(ew(e))return e}catch{return e}const r=function(...i){try{const s=i.map(l=>Sc(l,t));return e.apply(this,s)}catch(s){throw Cj(),Hc(l=>{l.addEventProcessor(u=>(t.mechanism&&(fS(u,void 0),mc(u,t.mechanism)),u.extra={...u.extra,arguments:i},u)),z6(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}c6(r,e),Pr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function lw(){const e=nh(),{referrer:t}=Dt.document||{},{userAgent:n}=Dt.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function uw(e,t){const n=cw(e,t),r={type:Mj(t),value:Ij(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Tj(e,t,n,r){const i=Kt(),s=i==null?void 0:i.getOptions().normalizeDepth,l=Nj(t),u={__serialized__:I6(t,s)};if(l)return{exception:{values:[uw(e,l)]},extra:u};const f={exception:{values:[{type:i0(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Pj(t,{isUnhandledRejection:r})}]},extra:u};if(n){const d=cw(e,n);d.length&&(f.exception.values[0].stacktrace={frames:d})}return f}function A1(e,t){return{exception:{values:[uw(e,t)]}}}function cw(e,t){const n=t.stacktrace||t.stack||"",r=Aj(t),i=Oj(t);try{return e(n,r,i)}catch{}return[]}const _j=/Minified React error #\d+;/i;function Aj(e){return e&&_j.test(e.message)?1:0}function Oj(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function a3(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Mj(e){const t=e==null?void 0:e.name;return!t&&a3(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Ij(e){const t=e==null?void 0:e.message;return a3(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Dj(e,t,n,r){const i=(n==null?void 0:n.syntheticException)||void 0,s=fw(e,t,i,r);return mc(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),Il(s)}function Lj(e,t,n="info",r,i){const s=(r==null?void 0:r.syntheticException)||void 0,l=RS(e,t,s,i);return l.level=n,r!=null&&r.event_id&&(l.event_id=r.event_id),Il(l)}function fw(e,t,n,r,i){let s;if(s6(t)&&t.error)return A1(e,t.error);if(C2(t)||cU(t)){const l=t;if("stack"in t)s=A1(e,t);else{const u=l.name||(C2(l)?"DOMError":"DOMException"),f=l.message?`${u}: ${l.message}`:u;s=RS(e,f,n,r),fS(s,f)}return"code"in l&&(s.tags={...s.tags,"DOMException.code":`${l.code}`}),s}return o0(t)?A1(e,t):wd(t)||i0(t)?(s=Tj(e,t,n,i),mc(s,{synthetic:!0}),s):(s=RS(e,t,n,r),fS(s,`${t}`),mc(s,{synthetic:!0}),s)}function RS(e,t,n,r){const i={};if(r&&n){const s=cw(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),mc(i,{synthetic:!0})}if(JE(t)){const{__sentry_template_string__:s,__sentry_template_values__:l}=t;return i.logentry={message:s,params:l},i}return i.message=t,i}function Pj(e,{isUnhandledRejection:t}){const n=mU(e),r=t?"promise rejection":"exception";return s6(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:i0(e)?`Event \`${kj(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function kj(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Nj(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const Fj=5e3;class zj extends y9{constructor(t){var u;const n=Hj(t),r=Dt.SENTRY_SDK_SOURCE||xj();J6(n,"browser",["browser"],r),(u=n._metadata)!=null&&u.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:l}=this._options;Dt.document&&(s||l)&&Dt.document.addEventListener("visibilitychange",()=>{Dt.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),l&&_1(this))}),l&&(this.on("flush",()=>{_1(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{_1(this)},Fj)})),i&&this.on("beforeSendSession",F9)}eventFromException(t,n){return Dj(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Lj(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function Hj(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Dt.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const mt=hn,Bj=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ah=(e,t,n,r)=>{let i,s;return l=>{t.value>=0&&(l||r)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=Bj(t.value,n),e(t)))}},Uj=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,lh=(e=!0)=>{var n,r;const t=(r=(n=mt.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},qc=()=>{const e=lh();return(e==null?void 0:e.activationStart)??0},uh=(e,t=-1)=>{var s,l;const n=lh();let r="navigate";return n&&((s=mt.document)!=null&&s.prerendering||qc()>0?r="prerender":(l=mt.document)!=null&&l.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Uj(),navigationType:r}},O1=new WeakMap;function dw(e,t){return O1.get(e)||O1.set(e,new t),O1.get(e)}class am{constructor(){am.prototype.__init.call(this),am.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var i;if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),(i=this._onAfterProcessingUnexpectedShift)==null||i.call(this,t)}}const Gc=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},hw=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let sd=-1;const Vj=()=>{var e,t;return((e=mt.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=mt.document)!=null&&t.prerendering)?0:1/0},lm=e=>{mt.document.visibilityState==="hidden"&&sd>-1&&(sd=e.type==="visibilitychange"?e.timeStamp:0,$j())},jj=()=>{addEventListener("visibilitychange",lm,!0),addEventListener("prerenderingchange",lm,!0)},$j=()=>{removeEventListener("visibilitychange",lm,!0),removeEventListener("prerenderingchange",lm,!0)},pw=()=>{var e;if(mt.document&&sd<0){const t=qc();sd=(mt.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??Vj(),jj()}return{get firstHiddenTime(){return sd}}},a0=e=>{var t;(t=mt.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},qj=[1800,3e3],Gj=(e,t={})=>{a0(()=>{const n=pw(),r=uh("FCP");let i;const l=Gc("paint",u=>{for(const f of u)f.name==="first-contentful-paint"&&(l.disconnect(),f.startTime<n.firstHiddenTime&&(r.value=Math.max(f.startTime-qc(),0),r.entries.push(f),i(!0)))});l&&(i=ah(e,r,qj,t.reportAllChanges))})},Yj=[.1,.25],Xj=(e,t={})=>{Gj(hw(()=>{var u,f;const n=uh("CLS",0);let r;const i=dw(t,am),s=d=>{for(const p of d)i._processEntry(p);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},l=Gc("layout-shift",s);l&&(r=ah(e,n,Yj,t.reportAllChanges),(u=mt.document)==null||u.addEventListener("visibilitychange",()=>{var d;((d=mt.document)==null?void 0:d.visibilityState)==="hidden"&&(s(l.takeRecords()),r(!0))}),(f=mt==null?void 0:mt.setTimeout)==null||f.call(mt,r))}))};let l3=0,M1=1/0,Jp=0;const Wj=e=>{e.forEach(t=>{t.interactionId&&(M1=Math.min(M1,t.interactionId),Jp=Math.max(Jp,t.interactionId),l3=Jp?(Jp-M1)/7+1:0)})};let xS;const u3=()=>xS?l3:performance.interactionCount||0,Kj=()=>{"interactionCount"in performance||xS||(xS=Gc("event",Wj,{type:"event",buffered:!0,durationThreshold:0}))},I1=10;let c3=0;const Qj=()=>u3()-c3;class um{constructor(){um.prototype.__init.call(this),um.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){c3=u3(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Qj()/50));return this._longestInteractionList[t]}_processEntry(t){var i,s;if((i=this._onBeforeProcessingEntry)==null||i.call(this,t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<I1||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((l,u)=>u._latency-l._latency),this._longestInteractionList.length>I1){const l=this._longestInteractionList.splice(I1);for(const u of l)this._longestInteractionMap.delete(u.id)}(s=this._onAfterProcessingINPCandidate)==null||s.call(this,r)}}}const gw=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=mt.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};mt.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},f3=e=>{var n;const t=mt.requestIdleCallback||mt.setTimeout;((n=mt.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=hw(e),t(e),gw(e))},Jj=[200,500],Zj=40,e$=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&a0(()=>{Kj();const n=uh("INP");let r;const i=dw(t,um),s=u=>{f3(()=>{for(const d of u)i._processEntry(d);const f=i._estimateP98LongestInteraction();f&&f._latency!==n.value&&(n.value=f._latency,n.entries=f.entries,r())})},l=Gc("event",s,{durationThreshold:t.durationThreshold??Zj});r=ah(e,n,Jj,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),gw(()=>{s(l.takeRecords()),r(!0)}))})};class t${_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const n$=[2500,4e3],r$=(e,t={})=>{a0(()=>{const n=pw(),r=uh("LCP");let i;const s=dw(t,t$),l=f=>{t.reportAllChanges||(f=f.slice(-1));for(const d of f)s._processEntry(d),d.startTime<n.firstHiddenTime&&(r.value=Math.max(d.startTime-qc(),0),r.entries=[d],i())},u=Gc("largest-contentful-paint",l);if(u){i=ah(e,r,n$,t.reportAllChanges);const f=hw(()=>{l(u.takeRecords()),u.disconnect(),i(!0)});for(const d of["keydown","click","visibilitychange"])mt.document&&addEventListener(d,()=>f3(f),{capture:!0,once:!0})}})},o$=[800,1800],CS=e=>{var t,n;(t=mt.document)!=null&&t.prerendering?a0(()=>CS(e)):((n=mt.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>CS(e),!0):setTimeout(e)},i$=(e,t={})=>{const n=uh("TTFB"),r=ah(e,n,o$,t.reportAllChanges);CS(()=>{const i=lh();i&&(n.value=Math.max(i.responseStart-qc(),0),n.entries=[i],r(!0))})},ad={},cm={};let d3,h3,p3,g3;function m3(e,t=!1){return l0("cls",e,l$,d3,t)}function v3(e,t=!1){return l0("lcp",e,u$,h3,t)}function s$(e){return l0("ttfb",e,c$,p3)}function a$(e){return l0("inp",e,f$,g3)}function Ec(e,t){return y3(e,t),cm[e]||(d$(e),cm[e]=!0),b3(e,t)}function ch(e,t){const n=ad[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch{}}function l$(){return Xj(e=>{ch("cls",{metric:e}),d3=e},{reportAllChanges:!0})}function u$(){return r$(e=>{ch("lcp",{metric:e}),h3=e},{reportAllChanges:!0})}function c$(){return i$(e=>{ch("ttfb",{metric:e}),p3=e})}function f$(){return e$(e=>{ch("inp",{metric:e}),g3=e})}function l0(e,t,n,r,i=!1){y3(e,t);let s;return cm[e]||(s=n(),cm[e]=!0),r&&t({metric:r}),b3(e,t,i?s:void 0)}function d$(e){const t={};e==="event"&&(t.durationThreshold=0),Gc(e,n=>{ch(e,{entries:n})},t)}function y3(e,t){ad[e]=ad[e]||[],ad[e].push(t)}function b3(e,t,n){return()=>{n&&n();const r=ad[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function h$(e){return"duration"in e}function D1(e){return typeof e=="number"&&isFinite(e)}function Aa(e,t,n,{...r}){const i=on(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),sw(e,()=>{const s=$c({startTime:t,...r});return s&&s.end(n),s})}function mw(e){var x;const t=Kt();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:l,environment:u,sendDefaultPii:f}=t.getOptions(),d=t.getIntegrationByName("Replay"),p=d==null?void 0:d.getReplayId(),g=sn(),m=g.getUser(),v=m!==void 0?m.email||m.id||m.ip_address:void 0;let E;try{E=g.getScopeData().contexts.profile.profile_id}catch{}const b={release:l,environment:u,user:v||void 0,profile_id:E||void 0,replay_id:p||void 0,transaction:r,"user_agent.original":(x=mt.navigator)==null?void 0:x.userAgent,"client.address":f?"{{auto}}":void 0,...i};return $c({name:n,attributes:b,startTime:s,experimental:{standalone:!0}})}function u0(){return mt.addEventListener&&mt.performance}function Fn(e){return e/1e3}function S3(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function E3(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function w3(e,t){let n,r=!1;function i(u){!r&&n&&t(u,n),r=!0}gw(()=>{i("pagehide")});const s=e.on("beforeStartNavigationSpan",(u,f)=>{f!=null&&f.isRedirect||(i("navigation"),iA(s,l))}),l=e.on("afterStartPageLoadSpan",u=>{n=u.spanContext().spanId,iA(l)})}function iA(...e){e.forEach(t=>t&&setTimeout(t,0))}function p$(e){let t=0,n;if(!E3("layout-shift"))return;const r=m3(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);w3(e,(i,s)=>{g$(t,n,s,i),r()})}function g$(e,t,n,r){var d;const i=Fn((Ro()||0)+((t==null?void 0:t.startTime)||0)),s=sn().getScopeData().transactionName,l=t?Li((d=t.sources[0])==null?void 0:d.node):"Layout shift",u={[jn]:"auto.http.browser.cls",[ii]:"ui.webvital.cls",[Bc]:(t==null?void 0:t.duration)||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((p,g)=>{u[`cls.source.${g+1}`]=Li(p.node)});const f=mw({name:l,transaction:s,attributes:u,startTime:i});f&&(f.addEvent("cls",{[ih]:"",[sh]:e}),f.end(i))}function m$(e){let t=0,n;if(!E3("largest-contentful-paint"))return;const r=v3(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);w3(e,(i,s)=>{v$(t,n,s,i),r()})}function v$(e,t,n,r){const i=Fn((Ro()||0)+((t==null?void 0:t.startTime)||0)),s=sn().getScopeData().transactionName,l=t?Li(t.element):"Largest contentful paint",u={[jn]:"auto.http.browser.lcp",[ii]:"ui.webvital.lcp",[Bc]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(u["lcp.element"]=Li(t.element)),t.id&&(u["lcp.id"]=t.id),t.url&&(u["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(u["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(u["lcp.renderTime"]=t.renderTime),t.size!=null&&(u["lcp.size"]=t.size));const f=mw({name:l,transaction:s,attributes:u,startTime:i});f&&(f.addEvent("lcp",{[ih]:"millisecond",[sh]:e}),f.end(i))}const y$=2147483647;let sA=0,Zo={},Gr,ku;function b$({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=u0();if(r&&Ro()){r.mark&&mt.performance.mark("sentry-tracing-init");const i=t?m$(n):x$(),s=C$(),l=e?p$(n):R$();return()=>{i==null||i(),s(),l==null||l()}}return()=>{}}function S$(){Ec("longtask",({entries:e})=>{const t=kr();if(!t)return;const{op:n,start_timestamp:r}=on(t);for(const i of e){const s=Fn(Ro()+i.startTime),l=Fn(i.duration);n==="navigation"&&r&&s<r||Aa(t,s,s+l,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[jn]:"auto.ui.browser.metrics"}})}})}function E$(){new PerformanceObserver(t=>{const n=kr();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=Fn(Ro()+r.startTime),{start_timestamp:s,op:l}=on(n);if(l==="navigation"&&s&&i<s)continue;const u=Fn(r.duration),f={[jn]:"auto.ui.browser.metrics"},d=r.scripts[0],{invoker:p,invokerType:g,sourceURL:m,sourceFunctionName:v,sourceCharPosition:E}=d;f["browser.script.invoker"]=p,f["browser.script.invoker_type"]=g,m&&(f["code.filepath"]=m),v&&(f["code.function"]=v),E!==-1&&(f["browser.script.source_char_position"]=E),Aa(n,i,i+u,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function w$(){Ec("event",({entries:e})=>{const t=kr();if(t){for(const n of e)if(n.name==="click"){const r=Fn(Ro()+n.startTime),i=Fn(n.duration),s={name:Li(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[jn]:"auto.ui.browser.metrics"}},l=u6(n.target);l&&(s.attributes["ui.component_name"]=l),Aa(t,r,r+i,s)}}})}function R$(){return m3(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Zo.cls={value:e.value,unit:""},ku=t)},!0)}function x$(){return v3(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Zo.lcp={value:e.value,unit:"millisecond"},Gr=t)},!0)}function C$(){return s$(({metric:e})=>{e.entries[e.entries.length-1]&&(Zo.ttfb={value:e.value,unit:"millisecond"})})}function T$(e,t){const n=u0(),r=Ro();if(!(n!=null&&n.getEntries)||!r)return;const i=Fn(r),s=n.getEntries(),{op:l,start_timestamp:u}=on(e);s.slice(sA).forEach(f=>{const d=Fn(f.startTime),p=Fn(Math.max(0,f.duration));if(!(l==="navigation"&&u&&i+d<u))switch(f.entryType){case"navigation":{O$(e,f,i);break}case"mark":case"paint":case"measure":{_$(e,f,d,p,i,t.ignorePerformanceApiSpans);const g=pw(),m=f.startTime<g.firstHiddenTime;f.name==="first-paint"&&m&&(Zo.fp={value:f.startTime,unit:"millisecond"}),f.name==="first-contentful-paint"&&m&&(Zo.fcp={value:f.startTime,unit:"millisecond"});break}case"resource":{D$(e,f,f.name,d,p,i,t.ignoreResourceSpans);break}}}),sA=Math.max(s.length-1,0),L$(e),l==="pageload"&&(k$(Zo),t.recordClsOnPageloadSpan||delete Zo.cls,t.recordLcpOnPageloadSpan||delete Zo.lcp,Object.entries(Zo).forEach(([f,d])=>{RV(f,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",qc()),P$(e,t)),Gr=void 0,ku=void 0,Zo={}}function _$(e,t,n,r,i,s){if(["mark","measure"].includes(t.entryType)&&Sa(t.name,s))return;const l=lh(!1),u=Fn(l?l.requestStart:0),f=i+Math.max(n,u),d=i+n,p=d+r,g={[jn]:"auto.resource.browser.metrics"};f!==d&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=f),A$(g,t),f<=p&&Aa(e,f,p,{name:t.name,op:t.entryType,attributes:g})}function A$(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Ed(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Ed(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function O$(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Zp(e,t,r,n)}),Zp(e,t,"secureConnection",n,"TLS/SSL"),Zp(e,t,"fetch",n,"cache"),Zp(e,t,"domainLookup",n,"DNS"),I$(e,t,n)}function Zp(e,t,n,r,i=n){const s=M$(n),l=t[s],u=t[`${n}Start`];!u||!l||Aa(e,r+Fn(u),r+Fn(l),{op:`browser.${i}`,name:t.name,attributes:{[jn]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function M$(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function I$(e,t,n){const r=n+Fn(t.requestStart),i=n+Fn(t.responseEnd),s=n+Fn(t.responseStart);t.responseEnd&&(Aa(e,r,i,{op:"browser.request",name:t.name,attributes:{[jn]:"auto.ui.browser.metrics"}}),Aa(e,s,i,{op:"browser.response",name:t.name,attributes:{[jn]:"auto.ui.browser.metrics"}}))}function D$(e,t,n,r,i,s,l){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(l!=null&&l.includes(u))return;const f=Rl(n),d={[jn]:"auto.resource.browser.metrics"};L1(d,t,"transferSize","http.response_transfer_size"),L1(d,t,"encodedBodySize","http.response_content_length"),L1(d,t,"decodedBodySize","http.decoded_response_content_length");const p=t.deliveryType;p!=null&&(d["http.response_delivery_type"]=p);const g=t.renderBlockingStatus;if(g&&(d["resource.render_blocking_status"]=g),f.protocol&&(d["url.scheme"]=f.protocol.split(":").pop()),f.host&&(d["server.address"]=f.host),d["url.same_origin"]=n.includes(mt.location.origin),t.nextHopProtocol!=null){const{name:E,version:b}=S3(t.nextHopProtocol);d["network.protocol.name"]=E,d["network.protocol.version"]=b}const m=s+r,v=m+i;Aa(e,m,v,{name:n.replace(mt.location.origin,""),op:u,attributes:d})}function L$(e){const t=mt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),D1(n.rtt)&&(Zo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),D1(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),D1(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function P$(e,t){Gr&&t.recordLcpOnPageloadSpan&&(Gr.element&&e.setAttribute("lcp.element",Li(Gr.element)),Gr.id&&e.setAttribute("lcp.id",Gr.id),Gr.url&&e.setAttribute("lcp.url",Gr.url.trim().slice(0,200)),Gr.loadTime!=null&&e.setAttribute("lcp.loadTime",Gr.loadTime),Gr.renderTime!=null&&e.setAttribute("lcp.renderTime",Gr.renderTime),e.setAttribute("lcp.size",Gr.size)),ku!=null&&ku.sources&&t.recordClsOnPageloadSpan&&ku.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,Li(n.node)))}function L1(e,t,n,r){const i=t[n];i!=null&&i<y$&&(e[r]=i)}function k$(e){const t=lh(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function N$(){return u0()&&Ro()?Ec("element",F$):()=>{}}const F$=({entries:e})=>{const t=kr(),n=t?eo(t):void 0,r=n?on(n).description:sn().getScopeData().transactionName;e.forEach(i=>{var v,E;const s=i;if(!s.identifier)return;const l=s.name,u=s.renderTime,f=s.loadTime,[d,p]=f?[Fn(f),"load-time"]:u?[Fn(u),"render-time"]:[br(),"entry-emission"],g=l==="image-paint"?Fn(Math.max(0,(u??0)-(f??0))):0,m={[jn]:"auto.ui.browser.elementtiming",[ii]:"ui.elementtiming",[Wr]:"component","sentry.span_start_time_source":p,"sentry.transaction_name":r,"element.id":s.id,"element.type":((E=(v=s.element)==null?void 0:v.tagName)==null?void 0:E.toLowerCase())||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":u,"element.load_time":f,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":l};OV({name:`element[${s.identifier}]`,attributes:m,startTime:d,onlyIfParent:!0},b=>{b.end(d+g)})})},z$=1e3;let aA,TS,_S;function H$(e){const t="dom";La(t,e),Pa(t,B$)}function B$(){if(!mt.document)return;const e=jo.bind(null,"dom"),t=lA(e,!0);mt.document.addEventListener("click",t,!1),mt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var s,l;const i=(s=mt[n])==null?void 0:s.prototype;(l=i==null?void 0:i.hasOwnProperty)!=null&&l.call(i,"addEventListener")&&(vo(i,"addEventListener",function(u){return function(f,d,p){if(f==="click"||f=="keypress")try{const g=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},m=g[f]=g[f]||{refCount:0};if(!m.handler){const v=lA(e);m.handler=v,u.call(this,f,v,p)}m.refCount++}catch{}return u.call(this,f,d,p)}}),vo(i,"removeEventListener",function(u){return function(f,d,p){if(f==="click"||f=="keypress")try{const g=this.__sentry_instrumentation_handlers__||{},m=g[f];m&&(m.refCount--,m.refCount<=0&&(u.call(this,f,m.handler,p),m.handler=void 0,delete g[f]),Object.keys(g).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return u.call(this,f,d,p)}}))})}function U$(e){if(e.type!==TS)return!1;try{if(!e.target||e.target._sentryId!==_S)return!1}catch{}return!0}function V$(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function lA(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=j$(n);if(V$(n.type,r))return;Pr(n,"_sentryCaptured",!0),r&&!r._sentryId&&Pr(r,"_sentryId",$o());const i=n.type==="keypress"?"input":n.type;U$(n)||(e({event:n,name:i,global:t}),TS=n.type,_S=r?r._sentryId:void 0),clearTimeout(aA),aA=mt.setTimeout(()=>{_S=void 0,TS=void 0},z$)}}function j$(e){try{return e.target}catch{return null}}let eg;function vw(e){const t="history";La(t,e),Pa(t,$$)}function $$(){if(mt.addEventListener("popstate",()=>{const t=mt.location.href,n=eg;if(eg=t,n===t)return;jo("history",{from:n,to:t})}),!mj())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=eg,s=q$(String(r));if(eg=s,i===s)return t.apply(this,n);jo("history",{from:i,to:s})}return t.apply(this,n)}}vo(mt.history,"pushState",e),vo(mt.history,"replaceState",e)}function q$(e){try{return new URL(e,mt.location.origin).toString()}catch{return e}}const kg={};function G$(e){const t=kg[e];if(t)return t;let n=mt[e];if(SS(n))return kg[e]=n.bind(mt);const r=mt.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s!=null&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch{}return n&&(kg[e]=n.bind(mt))}function uA(e){kg[e]=void 0}const Nu="__sentry_xhr_v3__";function R3(e){const t="xhr";La(t,e),Pa(t,Y$)}function Y$(){if(!mt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,s=br()*1e3,l=Ss(r[0])?r[0].toUpperCase():void 0,u=X$(r[1]);if(!l||!u)return t.apply(n,r);n[Nu]={method:l,url:u,request_headers:{}},l==="POST"&&u.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const d=n[Nu];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const p={endTimestamp:br()*1e3,startTimestamp:s,xhr:n,virtualError:i};jo("xhr",p)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,p,g){return f(),d.apply(p,g)}}):n.addEventListener("readystatechange",f),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,p,g){const[m,v]=g,E=p[Nu];return E&&Ss(m)&&Ss(v)&&(E.request_headers[m.toLowerCase()]=v),d.apply(p,g)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Nu];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:br()*1e3,xhr:n};return jo("xhr",s),t.apply(n,r)}})}function X$(e){if(Ss(e))return e;try{return e.toString()}catch{}}const P1=[],Ng=new Map,W$=60;function K$(){if(u0()&&Ro()){const t=Q$();return()=>{t()}}return()=>{}}const cA={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Q$(){return a$(J$)}const J$=({metric:e})=>{if(e.value==null)return;const t=Fn(e.value);if(t>W$)return;const n=e.entries.find(E=>E.duration===e.value&&cA[E.name]);if(!n)return;const{interactionId:r}=n,i=cA[n.name],s=Fn(Ro()+n.startTime),l=kr(),u=l?eo(l):void 0,d=(r!=null?Ng.get(r):void 0)||u,p=d?on(d).description:sn().getScopeData().transactionName,g=Li(n.target),m={[jn]:"auto.http.browser.inp",[ii]:`ui.interaction.${i}`,[Bc]:n.duration},v=mw({name:g,transaction:p,attributes:m,startTime:s});v&&(v.addEvent("inp",{[ih]:"millisecond",[sh]:e.value}),v.end(s+t))};function Z$(){const e=({entries:t})=>{const n=kr(),r=n&&eo(n);t.forEach(i=>{if(!h$(i)||!r)return;const s=i.interactionId;if(s!=null&&!Ng.has(s)){if(P1.length>10){const l=P1.shift();Ng.delete(l)}P1.push(s),Ng.set(s,r)}})};Ec("event",e),Ec("first-input",e)}function eq(e,t=G$("fetch")){let n=0,r=0;function i(s){const l=s.body.length;n+=l,r++;const u={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return uA("fetch"),sm("No fetch implementation available");try{return t(e.url,u).then(f=>(n-=l,r--,{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}))}catch(f){return uA("fetch"),n-=l,r--,sm(f)}}return L9(e,i)}const tq=30,nq=50;function AS(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?Ol:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const rq=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,oq=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iq=/\((\S*)(?::(\d+))(?::(\d+))\)/,sq=/at (.+?) ?\(data:(.+?),/,aq=e=>{const t=e.match(sq);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=rq.exec(e);if(n){const[,i,s,l]=n;return AS(i,Ol,+s,+l)}const r=oq.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const u=iq.exec(r[2]);u&&(r[2]=u[1],r[3]=u[2],r[4]=u[3])}const[s,l]=x3(r[1]||Ol,r[2]);return AS(l,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},lq=[tq,aq],uq=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,cq=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,fq=e=>{const t=uq.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=cq.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||Ol;return[i,r]=x3(i,r),AS(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},dq=[nq,fq],hq=[lq,dq],pq=n6(...hq),x3=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Ol,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},fA=1024,gq="Breadcrumbs",mq=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:gq,setup(n){t.console&&tj(Sq(n)),t.dom&&H$(bq(n,t.dom)),t.xhr&&R3(Eq(n)),t.fetch&&o3(wq(n)),t.history&&vw(Rq(n)),t.sentry&&n.on("beforeSendEvent",yq(n))}}},vq=mq;function yq(e){return function(n){Kt()===e&&Dl({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:yU(n)},{event:n})}}function bq(e,t){return function(r){if(Kt()!==e)return;let i,s,l=typeof t=="object"?t.serializeAttribute:void 0,u=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;u&&u>fA&&(u=fA),typeof l=="string"&&(l=[l]);try{const d=r.event,p=xq(d)?d.target:d;i=Li(p,{keyAttrs:l,maxStringLength:u}),s=u6(p)}catch{i="<unknown>"}if(i.length===0)return;const f={category:`ui.${r.name}`,message:i};s&&(f.data={"ui.component_name":s}),Dl(f,{event:r.event,name:r.name,global:r.global})}}function Sq(e){return function(n){if(Kt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:rj(n.level),message:T2(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${T2(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Dl(r,{input:n.args,level:n.level})}}function Eq(e){return function(n){if(Kt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Nu];if(!r||!i||!s)return;const{method:l,url:u,status_code:f,body:d}=s,p={method:l,url:u,status_code:f},g={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},m={category:"xhr",data:p,type:"http",level:r3(f)};e.emit("beforeOutgoingRequestBreadcrumb",m,g),Dl(m,g)}}function wq(e){return function(n){if(Kt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,l={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},u={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",u,l),Dl(u,l)}else{const s=n.response,l={...n.fetchData,status_code:s==null?void 0:s.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s==null||s.status;const u={input:n.args,response:s,startTimestamp:r,endTimestamp:i},f={category:"fetch",data:l,type:"http",level:r3(l.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",f,u),Dl(f,u)}}}function Rq(e){return function(n){if(Kt()!==e)return;let r=n.from,i=n.to;const s=Rl(Dt.location.href);let l=r?Rl(r):void 0;const u=Rl(i);l!=null&&l.path||(l=s),s.protocol===u.protocol&&s.host===u.host&&(i=u.relative),s.protocol===l.protocol&&s.host===l.host&&(r=l.relative),Dl({category:"navigation",data:{from:r,to:i}})}}function xq(e){return!!e&&!!e.target}const Cq=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Tq="BrowserApiErrors",_q=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Tq,setupOnce(){t.setTimeout&&vo(Dt,"setTimeout",dA),t.setInterval&&vo(Dt,"setInterval",dA),t.requestAnimationFrame&&vo(Dt,"requestAnimationFrame",Oq),t.XMLHttpRequest&&"XMLHttpRequest"in Dt&&vo(XMLHttpRequest.prototype,"send",Mq);const n=t.eventTarget;n&&(Array.isArray(n)?n:Cq).forEach(i=>Iq(i,t))}}},Aq=_q;function dA(e){return function(...t){const n=t[0];return t[0]=Sc(n,{mechanism:{data:{function:Ml(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Oq(e){return function(t){return e.apply(this,[Sc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ml(e)},handled:!1,type:"instrument"}})])}}function Mq(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&vo(n,i,function(s){const l={mechanism:{data:{function:i,handler:Ml(s)},handled:!1,type:"instrument"}},u=ew(s);return u&&(l.mechanism.data.handler=Ml(u)),Sc(s,l)})}),e.apply(this,t)}}function Iq(e,t){var i,s;const r=(i=Dt[e])==null?void 0:i.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(vo(r,"addEventListener",function(l){return function(u,f,d){try{Dq(f)&&(f.handleEvent=Sc(f.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ml(f),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&Lq(this,u,f),l.apply(this,[u,Sc(f,{mechanism:{data:{function:"addEventListener",handler:Ml(f),target:e},handled:!1,type:"instrument"}}),d])}}),vo(r,"removeEventListener",function(l){return function(u,f,d){try{const p=f.__sentry_wrapped__;p&&l.call(this,u,p,d)}catch{}return l.call(this,u,f,d)}}))}function Dq(e){return typeof e.handleEvent=="function"}function Lq(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Pq=()=>({name:"BrowserSession",setupOnce(){typeof Dt.document>"u"||(X2({ignoreDuration:!0}),W2(),vw(({from:e,to:t})=>{e!==void 0&&e!==t&&(X2({ignoreDuration:!0}),W2())}))}}),kq="GlobalHandlers",Nq=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:kq,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&zq(n),t.onunhandledrejection&&Hq(n)}}},Fq=Nq;function zq(e){r6(t=>{const{stackParser:n,attachStacktrace:r}=C3();if(Kt()!==e||s3())return;const{msg:i,url:s,line:l,column:u,error:f}=t,d=Vq(fw(n,f||i,void 0,r,!1),s,l,u);d.level="error",H6(d,{originalException:f,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Hq(e){o6(t=>{const{stackParser:n,attachStacktrace:r}=C3();if(Kt()!==e||s3())return;const i=Bq(t),s=Ed(i)?Uq(i):fw(n,i,void 0,r,!0);s.level="error",H6(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Bq(e){if(Ed(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Uq(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Vq(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],l=s[0]=s[0]||{},u=l.stacktrace=l.stacktrace||{},f=u.frames=u.frames||[],d=r,p=n,g=jq(t)??nh();return f.length===0&&f.push({colno:d,filename:g,function:Ol,in_app:!0,lineno:p}),e}function C3(){const e=Kt();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function jq(e){if(!(!Ss(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e.slice(0,1024)}}const $q=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Dt.navigator&&!Dt.location&&!Dt.document)return;const t=lw(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),qq="cause",Gq=5,Yq="LinkedErrors",Xq=(e={})=>{const t=e.limit||Gq,n=e.key||qq;return{name:Yq,preprocessEvent(r,i,s){const l=s.getOptions();ej(uw,l.stackParser,n,t,r,i)}}},Wq=Xq;function Kq(){return!!Qq()}function Qq(){var s;if(typeof Dt.window>"u")return!1;const e=Dt;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((s=t==null?void 0:t.runtime)!=null&&s.id))return!1;const n=nh(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Dt===Dt.top&&r.some(l=>n.startsWith(`${l}://`)))}function Jq(e){return[G9(),V9(),Aq(),vq(),Fq(),Wq(),sj(),$q(),Pq()]}function Zq(e={}){const t=!e.skipBrowserExtensionCheck&&Kq(),n={...e,enabled:t?!1:e.enabled,stackParser:sU(e.stackParser||pq),integrations:c9({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?Jq():e.defaultIntegrations}),transport:e.transport||eq};return x9(zj,n)}function hA(e={}){const t=Dt.document,n=(t==null?void 0:t.head)||(t==null?void 0:t.body);if(!n)return;const r=sn(),i=Kt(),s=i==null?void 0:i.getDsn();if(!s)return;const l={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||n9()},u=Dt.document.createElement("script");u.async=!0,u.crossOrigin="anonymous",u.src=l9(s,l);const{onLoad:f,onClose:d}=l;if(f&&(u.onload=f),d){const p=g=>{if(g.data==="__sentry_reportdialog_closed__")try{d()}finally{Dt.removeEventListener("message",p)}};Dt.addEventListener("message",p)}n.appendChild(u)}function yi(e=0){return((Ro()||performance.timeOrigin)+e)/1e3}function eG(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=S3(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return Ro()?[...t,["http.request.redirect_start",yi(e.redirectStart)],["http.request.fetch_start",yi(e.fetchStart)],["http.request.domain_lookup_start",yi(e.domainLookupStart)],["http.request.domain_lookup_end",yi(e.domainLookupEnd)],["http.request.connect_start",yi(e.connectStart)],["http.request.secure_connection_start",yi(e.secureConnectionStart)],["http.request.connection_end",yi(e.connectEnd)],["http.request.request_start",yi(e.requestStart)],["http.request.response_start",yi(e.responseStart)],["http.request.response_end",yi(e.responseEnd)]]:t}const pA=new WeakMap,k1=new Map,T3={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function tG(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:l,tracePropagationTargets:u,onRequestSpanStart:f}={...T3,...t},d=typeof s=="function"?s:m=>!0,p=m=>rG(m,u),g={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(v=>{if(v.op==="http.client"){const E=k1.get(v.span_id);E&&(v.timestamp=E/1e3,k1.delete(v.span_id))}}),m)),i&&bj(m=>{if(m.response){const v=pA.get(m.response);v&&m.endTimestamp&&k1.set(v,m.endTimestamp)}}),o3(m=>{const v=cj(m,d,p,g);if(m.response&&m.fetchData.__span&&pA.set(m.response,m.fetchData.__span),v){const E=_3(m.fetchData.url),b=E?Rl(E).host:void 0;v.setAttributes({"http.url":E,"server.address":b}),l&&gA(v),f==null||f(v,{headers:m.headers})}})),r&&R3(m=>{var E;const v=oG(m,d,p,g);if(v){l&&gA(v);let b;try{b=new Headers((E=m.xhr.__sentry_xhr_v3__)==null?void 0:E.request_headers)}catch{}f==null||f(v,{headers:b})}})}function nG(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function gA(e){const{url:t}=on(e).data;if(!t||typeof t!="string")return;const n=Ec("resource",({entries:r})=>{r.forEach(i=>{nG(i)&&i.name.endsWith(t)&&(eG(i).forEach(l=>e.setAttribute(...l)),setTimeout(n))})})}function rG(e,t){const n=nh();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?Sa(r.toString(),t)||s&&Sa(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?Sa(e,t):r}}function oG(e,t,n,r){const i=e.xhr,s=i==null?void 0:i[Nu];if(!i||i.__sentry_own_request__||!s)return;const{url:l,method:u}=s,f=xa()&&t(l);if(e.endTimestamp&&f){const b=i.__sentry_xhr_span_id__;if(!b)return;const x=r[b];x&&s.status_code!==void 0&&(m6(x,s.status_code),x.end(),delete r[b]);return}const d=_3(l),p=Rl(d||l),g=N9(l),m=!!kr(),v=f&&m?$c({name:`${u} ${g}`,attributes:{url:l,type:"xhr","http.method":u,"http.url":d,"server.address":p==null?void 0:p.host,[jn]:"auto.http.browser",[ii]:"http.client",...(p==null?void 0:p.search)&&{"http.query":p==null?void 0:p.search},...(p==null?void 0:p.hash)&&{"http.fragment":p==null?void 0:p.hash}}}):new Ta;i.__sentry_xhr_span_id__=v.spanContext().spanId,r[i.__sentry_xhr_span_id__]=v,n(l)&&iG(i,xa()&&m?v:void 0);const E=Kt();return E&&E.emit("beforeOutgoingRequestSpan",v,e),v}function iG(e,t){const{"sentry-trace":n,baggage:r}=Z6({span:t});n&&sG(e,n,r)}function sG(e,t,n){var i;const r=(i=e.__sentry_xhr_v3__)==null?void 0:i.request_headers;if(!(r!=null&&r["sentry-trace"]))try{if(e.setRequestHeader("sentry-trace",t),n){const s=r==null?void 0:r.baggage;(!s||!aG(s))&&e.setRequestHeader("baggage",n)}}catch{}}function aG(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function _3(e){try{return new URL(e,Dt.location.origin).href}catch{return}}function lG(){Dt.document&&Dt.document.addEventListener("visibilitychange",()=>{const e=kr();if(!e)return;const t=eo(e);if(Dt.document.hidden&&t){const n="cancelled",{op:r,status:i}=on(t);i||t.setStatus({code:tr,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})}const uG=3600,A3="sentry_previous_trace",cG="sentry.previous_trace";function fG(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?pG():void 0;e.on("spanStart",l=>{if(eo(l)!==l)return;const u=sn().getPropagationContext();i=dG(i,l,u),r&&hG(i)});let s=!0;n&&e.on("beforeSampling",l=>{if(!i)return;const u=sn(),f=u.getPropagationContext();if(s&&f.parentSpanId){s=!1;return}u.setPropagationContext({...f,dsc:{...f.dsc,sample_rate:String(i.sampleRate),sampled:String(OS(i.spanContext))},sampleRand:i.sampleRand}),l.parentSampled=OS(i.spanContext),l.parentSampleRate=i.sampleRate,l.spanAttributes={...l.spanAttributes,[p6]:i.sampleRate}})}function dG(e,t,n){const r=on(t);function i(){var u,f;try{return Number((u=n.dsc)==null?void 0:u.sample_rate)??Number((f=r.data)==null?void 0:f[tw])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const l=e.spanContext;return l.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=uG&&(t.addLink({context:l,attributes:{[PU]:"previous_trace"}}),t.setAttribute(cG,`${l.traceId}-${l.spanId}-${OS(l)?1:0}`)),s)}function hG(e){try{Dt.sessionStorage.setItem(A3,JSON.stringify(e))}catch{}}function pG(){var e;try{const t=(e=Dt.sessionStorage)==null?void 0:e.getItem(A3);return JSON.parse(t)}catch{return}}function OS(e){return e.traceFlags===1}const gG="BrowserTracing",mG={...Lg,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...T3},vG=(e={})=>{const t={name:void 0,source:void 0},n=Dt.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:l,_experiments:{enableInteractions:u,enableStandaloneClsSpans:f,enableStandaloneLcpSpans:d},beforeStartSpan:p,idleTimeout:g,finalTimeout:m,childSpanTimeout:v,markBackgroundSpan:E,traceFetch:b,traceXHR:x,trackFetchStreamPerformance:C,shouldCreateSpanForRequest:R,enableHTTPTimings:T,ignoreResourceSpans:O,ignorePerformanceApiSpans:_,instrumentPageLoad:M,instrumentNavigation:A,detectRedirects:D,linkPreviousTrace:L,consistentTraceSampling:N,onRequestSpanStart:H}={...mG,...e};let j,F;function q(U,P,G=!0){const B=P.op==="pageload",Y=P.name,J=p?p(P):P,k=J.attributes||{};if(Y!==J.name&&(k[Wr]="custom",J.attributes=k),!G){const te=Ul();$c({...J,startTime:te}).end(te);return}t.name=J.name,t.source=k[Wr];const $=F6(J,{idleTimeout:g,finalTimeout:m,childSpanTimeout:v,disableAutoFinish:B,beforeSpanEnd:te=>{j==null||j(),T$(te,{recordClsOnPageloadSpan:!f,recordLcpOnPageloadSpan:!d,ignoreResourceSpans:O,ignorePerformanceApiSpans:_}),vA(U,void 0);const ae=sn(),ne=ae.getPropagationContext();ae.setPropagationContext({...ne,traceId:$.spanContext().traceId,sampled:Vc($),dsc:Ca(te)})}});vA(U,$);function W(){n&&["interactive","complete"].includes(n.readyState)&&U.emit("idleSpanEnableAutoFinish",$)}B&&n&&(n.addEventListener("readystatechange",()=>{W()}),W())}return{name:gG,setup(U){if(oV(),j=b$({recordClsStandaloneSpans:f||!1,recordLcpStandaloneSpans:d||!1,client:U}),r&&K$(),i&&N$(),l&&hn.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?E$():s&&S$(),u&&w$(),D&&n){const G=()=>{F=br()};addEventListener("click",G,{capture:!0}),addEventListener("keydown",G,{capture:!0,passive:!0})}function P(){const G=Cd(U);G&&!on(G).timestamp&&(G.setAttribute(om,"cancelled"),G.end())}U.on("startNavigationSpan",(G,B)=>{if(Kt()!==U)return;if(B!=null&&B.isRedirect){q(U,{op:"navigation.redirect",...G},!1);return}F=void 0,P(),Ms().setPropagationContext({traceId:Ra(),sampleRand:Math.random()});const Y=sn();Y.setPropagationContext({traceId:Ra(),sampleRand:Math.random()}),Y.setSDKProcessingMetadata({normalizedRequest:void 0}),q(U,{op:"navigation",...G})}),U.on("startPageLoadSpan",(G,B={})=>{if(Kt()!==U)return;P();const Y=B.sentryTrace||mA("sentry-trace"),J=B.baggage||mA("baggage"),k=KU(Y,J),$=sn();$.setPropagationContext(k),$.setSDKProcessingMetadata({normalizedRequest:lw()}),q(U,{op:"pageload",...G})})},afterAllSetup(U){let P=nh();if(L!=="off"&&fG(U,{linkPreviousTrace:L,consistentTraceSampling:N}),Dt.location){if(M){const G=Ro();O3(U,{name:Dt.location.pathname,startTime:G?G/1e3:void 0,attributes:{[Wr]:"url",[jn]:"auto.pageload.browser"}})}A&&vw(({to:G,from:B})=>{if(B===void 0&&(P==null?void 0:P.indexOf(G))!==-1){P=void 0;return}P=void 0;const Y=Q6(G),J=Cd(U),k=J&&D&&bG(J,F);M3(U,{name:(Y==null?void 0:Y.pathname)||Dt.location.pathname,attributes:{[Wr]:"url",[jn]:"auto.navigation.browser"}},{url:G,isRedirect:k})})}E&&lG(),u&&yG(U,g,m,v,t),r&&Z$(),tG(U,{traceFetch:b,traceXHR:x,trackFetchStreamPerformance:C,tracePropagationTargets:U.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:R,enableHTTPTimings:T,onRequestSpanStart:H})}}};function O3(e,t,n){e.emit("startPageLoadSpan",t,n),sn().setTransactionName(t.name);const r=Cd(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function M3(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const s=sn();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...lw(),url:r}}),Cd(e)}function mA(e){const t=Dt.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function yG(e,t,n,r,i){const s=Dt.document;let l;const u=()=>{const f="ui.action.click",d=Cd(e);if(d){const p=on(d).op;if(["navigation","pageload"].includes(p))return}l&&(l.setAttribute(om,"interactionInterrupted"),l.end(),l=void 0),i.name&&(l=F6({name:i.name,op:f,attributes:{[Wr]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}))};s&&addEventListener("click",u,{capture:!0})}const I3="_sentry_idleSpan";function Cd(e){return e[I3]}function vA(e,t){Pr(e,I3,t)}const yA=1.5;function bG(e,t){const n=on(e),r=Ul(),i=n.start_timestamp;return!(r-i>yA||t&&r-t<=yA)}function Wte(e){const t={...e};return J6(t,"react"),t9("react",{version:S.version}),Zq(t)}function SG(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function EG(e,t){const n=new WeakSet;function r(i,s){if(!n.has(i)){if(i.cause)return n.add(i),r(i.cause,s);i.cause=s}}r(e,t)}function wG(e,{componentStack:t},n){if(SG(S.version)&&o0(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,EG(e,r)}return Hc(r=>(r.setContext("react",{componentStack:t}),z6(e,n)))}var N1={exports:{}},Qt={};var bA;function RG(){if(bA)return Qt;bA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function T(_){if(typeof _=="object"&&_!==null){var M=_.$$typeof;switch(M){case t:switch(_=_.type,_){case f:case d:case r:case s:case i:case g:return _;default:switch(_=_&&_.$$typeof,_){case u:case p:case E:case v:case l:return _;default:return M}}case n:return M}}}function O(_){return T(_)===d}return Qt.AsyncMode=f,Qt.ConcurrentMode=d,Qt.ContextConsumer=u,Qt.ContextProvider=l,Qt.Element=t,Qt.ForwardRef=p,Qt.Fragment=r,Qt.Lazy=E,Qt.Memo=v,Qt.Portal=n,Qt.Profiler=s,Qt.StrictMode=i,Qt.Suspense=g,Qt.isAsyncMode=function(_){return O(_)||T(_)===f},Qt.isConcurrentMode=O,Qt.isContextConsumer=function(_){return T(_)===u},Qt.isContextProvider=function(_){return T(_)===l},Qt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Qt.isForwardRef=function(_){return T(_)===p},Qt.isFragment=function(_){return T(_)===r},Qt.isLazy=function(_){return T(_)===E},Qt.isMemo=function(_){return T(_)===v},Qt.isPortal=function(_){return T(_)===n},Qt.isProfiler=function(_){return T(_)===s},Qt.isStrictMode=function(_){return T(_)===i},Qt.isSuspense=function(_){return T(_)===g},Qt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===s||_===i||_===g||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===E||_.$$typeof===v||_.$$typeof===l||_.$$typeof===u||_.$$typeof===p||_.$$typeof===x||_.$$typeof===C||_.$$typeof===R||_.$$typeof===b)},Qt.typeOf=T,Qt}var SA;function xG(){return SA||(SA=1,N1.exports=RG()),N1.exports}var F1,EA;function CG(){if(EA)return F1;EA=1;var e=xG(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function l(E){return e.isMemo(E)?i:s[E.$$typeof]||t}var u=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function v(E,b,x){if(typeof b!="string"){if(m){var C=g(b);C&&C!==m&&v(E,C,x)}var R=f(b);d&&(R=R.concat(d(b)));for(var T=l(E),O=l(b),_=0;_<R.length;++_){var M=R[_];if(!n[M]&&!(x&&x[M])&&!(O&&O[M])&&!(T&&T[M])){var A=p(b,M);try{u(E,M,A)}catch{}}}}return E}return F1=v,F1}var D3=CG();const L3=Ts(D3),TG=LM({__proto__:null,default:L3},[D3]),_G=L3||TG,z1={componentStack:null,error:null,eventId:null};class Kte extends S.Component{constructor(t){super(t),this.state=z1,this._openFallbackReportDialog=!0;const n=Kt();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&hA({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:i,onError:s,showDialog:l,dialogOptions:u}=this.props;Hc(f=>{i&&i(f,t,r);const d=this.props.handled!=null?this.props.handled:!!this.props.fallback,p=wG(t,n,{mechanism:{handled:d}});s&&s(t,r,p),l&&(this._lastEventId=p,this._openFallbackReportDialog&&hA({...u,eventId:p})),this.setState({error:t,componentStack:r,eventId:p})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&(this.state===z1?i(null,null,null):i(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(z1)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const i=typeof t=="function"?S.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return S.isValidElement(i)?i:null}}let c0,Fu=!1;function AG(e,t=!1){c0=e,Fu=t}function OG(e,t){if(e.some(i=>i.lazy||i.handle&&typeof i.handle=="object"&&Object.values(i.handle).some(s=>typeof s=="function")))return!0;const r=c0(e,t);return!r||r.length===0}function MG(e){return DG(e.route.path||"")}function IG(e){return e.params["*"]||""}function DG(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function qu(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function P3(e){return e.endsWith("*")}function wA(e,t){var n;return P3(e)&&!!((n=t.route.children)!=null&&n.length)||!1}function LG(e){var t;return!!(!e.children&&e.element&&((t=e.path)!=null&&t.endsWith("/*")))}function PG(e,t,n){const r=e||Fu?fm(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function RA(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function fm(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function Td(e){return e[0]==="/"?e:`/${e}`}function yw(e,t){const n=c0(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const i=MG(r),s=fm(t.pathname,Td(r.pathnameBase));return t.pathname===s?qu(s):qu(qu(i||"")+Td(yw(e.filter(l=>l!==r.route),{pathname:s})))}return""}function k3(e,t){const n=c0(t,e);if(n){for(const r of n)if(LG(r.route)&&IG(r))return!0}return!1}function N3(e,t,n,r=""){if(!e||e.length===0)return[Fu?fm(t.pathname,r):t.pathname,"url"];let i="";if(n)for(const l of n){const u=l.route;if(u){if(u.index)return PG(i,l.pathname,r);const f=u.path;if(f&&!wA(f,l)){const d=f[0]==="/"||i[i.length-1]==="/"?f:`/${f}`;if(i=qu(i)+Td(d),qu(t.pathname)===qu(r+l.pathname))return RA(i)!==RA(l.pathname)&&!P3(i)?[(Fu?"":r)+d,"route"]:(wA(i,l)&&(i=i.slice(0,-1)),[(Fu?"":r)+i,"route"])}}}return[Fu?fm(t.pathname,r):t.pathname||"","url"]}function kG(e,t,n,r,i=""){let s,l="url";const u=k3(e,n);return u&&(s=Td(yw(n,e)),l="route"),(!u||!s)&&([s,l]=N3(t,e,r,i)),[s||e.pathname,l]}let MS,IS,DS,LS,f0;const F3=new WeakSet,PS=new Set;function NG(e,t){const n=vG({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:i,useNavigationType:s,createRoutesFromChildren:l,matchRoutes:u,stripBasename:f,enableAsyncRouteHandlers:d=!1,instrumentPageLoad:p=!0,instrumentNavigation:g=!0}=e;return{...n,setup(m){n.setup(m),MS=r,IS=i,DS=s,f0=u,LS=l,AG(u,f||!1)},afterAllSetup(m){var E;n.afterAllSetup(m);const v=(E=Dt.location)==null?void 0:E.pathname;p&&v&&O3(m,{name:v,attributes:{[Wr]:"url",[ii]:"pageload",[jn]:`auto.pageload.react.reactrouter_v${t}`}}),g&&F3.add(m)}}}function FG(e){const{location:t,routes:n,navigationType:r,version:i,matches:s,basename:l,allRoutes:u}=e,f=Array.isArray(s)?s:f0(n,t,l),d=Kt();if(!(!d||!F3.has(d))&&(r==="PUSH"||r==="POP")&&f){const[p,g]=kG(t,n,u||n,f,l),m=OG(u||n,t),v=kr(),E=v&&on(v);(E==null?void 0:E.op)==="navigation"&&v&&E?VG(v,E,p,g,m):jG(d,p,g,i,m)}}function zG(e){e.forEach(t=>{z3(t).forEach(r=>{PS.add(r)})})}function z3(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{z3(n,t).forEach(i=>{t.add(i)})})),t}function HG({activeRootSpan:e,location:t,routes:n,matches:r,basename:i,allRoutes:s}){const l=Array.isArray(r)?r:f0(s||n,t,i);if(l){let u,f="url";const d=k3(t,s||n);d&&(u=Td(yw(s||n,t)),f="route"),(!d||!u)&&([u,f]=N3(n,t,l,i)),sn().setTransactionName(u||"/"),e&&(e.updateName(u),e.setAttribute(Wr,f))}}function BG(e,t){if(!MS||!IS||!DS||!LS||!f0)return e;const n=r=>{const i=S.useRef(!0),s=IS(),l=DS();return MS(()=>{const u=LS(r.children);i.current?(zG(u),HG({activeRootSpan:UG(),location:s,routes:u,allRoutes:Array.from(PS)}),i.current=!1):FG({location:s,routes:u,navigationType:l,version:t,allRoutes:Array.from(PS)})},[s,l]),S.createElement(e,{...r})};return _G(n,e),n}function UG(){const e=kr(),t=e?eo(e):void 0;if(!t)return;const n=on(t).op;return n==="navigation"||n==="pageload"?t:void 0}function VG(e,t,n,r,i){(e==null?void 0:e.__sentry_navigation_name_set__)||(t.timestamp||e==null||e.updateName(n),i||Pr(e,"__sentry_navigation_name_set__",!0)),e==null||e.setAttribute(Wr,r)}function jG(e,t,n,r,i){const s=M3(e,{name:t,attributes:{[Wr]:n,[ii]:"navigation",[jn]:`auto.navigation.react.reactrouter_v${r}`}});!i&&s&&Pr(s,"__sentry_navigation_name_set__",!0)}function Qte(e){return BG(e,"6")}function Jte(e){return NG(e,"7")}let $G=e=>crypto.getRandomValues(new Uint8Array(e)),qG=(e,t,n)=>{let r=(2<<Math.log2(e.length-1))-1,i=-~(1.6*r*t/e.length);return(s=t)=>{let l="";for(;;){let u=n(i),f=i|0;for(;f--;)if(l+=e[u[f]&r]||"",l.length>=s)return l}}},Zte=(e,t=21)=>qG(e,t|0,$G);const xA=e=>{let t;const n=new Set,r=(d,p)=>{const g=typeof d=="function"?d(t):d;if(!Object.is(g,t)){const m=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(v=>v(t,m))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,i,u);return u},H3=e=>e?xA(e):xA,GG=e=>e;function YG(e,t=GG){const n=fe.useSyncExternalStore(e.subscribe,fe.useCallback(()=>t(e.getState()),[e,t]),fe.useCallback(()=>t(e.getInitialState()),[e,t]));return fe.useDebugValue(n),n}const CA=e=>{const t=H3(e),n=r=>YG(t,r);return Object.assign(n,t),n},ene=e=>e?CA(e):CA;var H1,TA;function XG(){if(TA)return H1;TA=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var u,f,d;if(Array.isArray(s)){if(u=s.length,u!=l.length)return!1;for(f=u;f--!==0;)if(!i(s[f],l[f]))return!1;return!0}var p;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(p=s.entries();!(f=p.next()).done;)if(!l.has(f.value[0]))return!1;for(p=s.entries();!(f=p.next()).done;)if(!i(f.value[1],l.get(f.value[0])))return!1;return!0}if(n&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(p=s.entries();!(f=p.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(u=s.length,u!=l.length)return!1;for(f=u;f--!==0;)if(s[f]!==l[f])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(d=Object.keys(s),u=d.length,u!==Object.keys(l).length)return!1;for(f=u;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,d[f]))return!1;if(e&&s instanceof Element)return!1;for(f=u;f--!==0;)if(!((d[f]==="_owner"||d[f]==="__v"||d[f]==="__o")&&s.$$typeof)&&!i(s[d[f]],l[d[f]]))return!1;return!0}return s!==s&&l!==l}return H1=function(l,u){try{return i(l,u)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},H1}var WG=XG();const tne=Ts(WG),{useSyncExternalStoreWithSelector:KG}=iH,QG=e=>e;function JG(e,t=QG,n){const r=KG(e.subscribe,e.getState,e.getInitialState,t,n);return fe.useDebugValue(r),r}const _A=(e,t)=>{const n=H3(e),r=(i,s=t)=>JG(n,i,s);return Object.assign(r,n),r},nne=(e,t)=>e?_A(e,t):_A;function ZG(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function rne(e,t){const{delay:n,flushOnUnmount:r,leading:i}={delay:t,flushOnUnmount:!1,leading:!1},s=ZG(e),l=S.useRef(0),u=S.useMemo(()=>{const f=Object.assign((...d)=>{window.clearTimeout(l.current);const p=f._isFirstCall;f._isFirstCall=!1;function g(){window.clearTimeout(l.current),l.current=0,f._isFirstCall=!0}if(i&&p){s(...d);const E=()=>{g()},b=()=>{l.current!==0&&(g(),s(...d))},x=()=>{g()};f.flush=b,f.cancel=x,l.current=window.setTimeout(E,n);return}if(i&&!p){const E=()=>{l.current!==0&&(g(),s(...d))},b=()=>{g()};f.flush=E,f.cancel=b;const x=()=>{g()};l.current=window.setTimeout(x,n);return}const m=()=>{l.current!==0&&(g(),s(...d))},v=()=>{g()};f.flush=m,f.cancel=v,l.current=window.setTimeout(m,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return f},[s,n,i]);return S.useEffect(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}const eY=["mousedown","touchstart"];function one(e,t,n){const r=S.useRef(null),i=eY;return S.useEffect(()=>{const s=l=>{const{target:u}=l??{};if(Array.isArray(n)){const f=!document.body.contains(u)&&(u==null?void 0:u.tagName)!=="HTML";n.every(p=>!!p&&!l.composedPath().includes(p))&&!f&&e(l)}else r.current&&!r.current.contains(u)&&e(l)};return i.forEach(l=>document.addEventListener(l,s)),()=>{i.forEach(l=>document.removeEventListener(l,s))}},[r,e,n]),r}const tY=typeof document<"u"?S.useLayoutEffect:S.useEffect;function dm(e,t,n){S.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function nY(e,t="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function rY(e){try{return e&&JSON.parse(e)}catch{return e}}function oY(e){return{getItem:i=>{try{return window[e].getItem(i)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(i,s)=>{try{window[e].setItem(i,s)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:i=>{try{window[e].removeItem(i)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function B3(e,t){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:r,setItem:i,removeItem:s}=oY(e);return function({key:u,defaultValue:f,getInitialValueInEffect:d=!0,sync:p=!0,deserialize:g=rY,serialize:m=v=>nY(v,t)}){const v=S.useCallback(R=>{let T;try{T=typeof window>"u"||!(e in window)||window[e]===null||!!R}catch{T=!0}if(T)return f;const O=r(u);return O!==null?g(O):f},[u,f]),[E,b]=S.useState(v(d)),x=S.useCallback(R=>{R instanceof Function?b(T=>{const O=R(T);return i(u,m(O)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:u,value:R(T)}}))}),O}):(i(u,m(R)),window.dispatchEvent(new CustomEvent(n,{detail:{key:u,value:R}})),b(R))},[u]),C=S.useCallback(()=>{s(u),b(f),window.dispatchEvent(new CustomEvent(n,{detail:{key:u,value:f}}))},[u,f]);return dm("storage",R=>{p&&R.storageArea===window[e]&&R.key===u&&b(g(R.newValue??void 0))}),dm(n,R=>{p&&R.detail.key===u&&b(R.detail.value)}),S.useEffect(()=>{f!==void 0&&E===void 0&&x(f)},[f,E,x]),S.useEffect(()=>{const R=v();R!==void 0&&x(R)},[u]),[E===void 0?f:E,x,C]}}function ine(e){return B3("localStorage","use-local-storage")(e)}function sne(e){return B3("sessionStorage","use-session-storage")(e)}function AA(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function ane(...e){const t=new Map;return n=>{if(e.forEach(r=>{const i=AA(r,n);i&&t.set(r,i)}),t.size>0)return()=>{e.forEach(r=>{const i=t.get(r);i&&typeof i=="function"?i():AA(r,null)}),t.clear()}}}const OA={passive:!0};function lne(){const[e,t]=S.useState({width:0,height:0}),n=S.useCallback(()=>{t({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return dm("resize",n,OA),dm("orientationchange",n,OA),S.useEffect(n,[]),e}const iY={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function tg(e){const t=e.replace("Key","").toLowerCase();return iY[e]||t}function sY(e){const t=e.toLowerCase().split("+").map(s=>s.trim()),n={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift"),plus:t.includes("[plus]")},r=["alt","ctrl","meta","shift","mod"],i=t.find(s=>!r.includes(s));return{...n,key:i==="[plus]"?"+":i}}function aY(e,t,n){const{alt:r,ctrl:i,meta:s,mod:l,shift:u,key:f}=e,{altKey:d,ctrlKey:p,metaKey:g,shiftKey:m,key:v,code:E}=t;if(r!==d)return!1;if(l){if(!p&&!g)return!1}else if(i!==p||s!==g)return!1;return u!==m?!1:!!(f&&(n?tg(E)===tg(f):tg(v??E)===tg(f)))}function U3(e,t){return n=>aY(sY(e),n,t)}function une(e){return t=>{const n="nativeEvent"in t?t.nativeEvent:t;e.forEach(([r,i,s={preventDefault:!0,usePhysicalKeys:!1}])=>{U3(r,s.usePhysicalKeys)(n)&&(s.preventDefault&&t.preventDefault(),i(n))})}}function lY(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function cne(e,t=["INPUT","TEXTAREA","SELECT"],n=!1){S.useEffect(()=>{const r=i=>{e.forEach(([s,l,u={preventDefault:!0,usePhysicalKeys:!1}])=>{U3(s,u.usePhysicalKeys)(i)&&lY(i,t,n)&&(u.preventDefault&&i.preventDefault(),l(i))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[e])}function MA(){const e=window.document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement}function uY(){const e=window.document;return typeof e.exitFullscreen=="function"?e.exitFullscreen():typeof e.msExitFullscreen=="function"?e.msExitFullscreen():typeof e.webkitExitFullscreen=="function"?e.webkitExitFullscreen():typeof e.mozCancelFullScreen=="function"?e.mozCancelFullScreen():null}function cY(e){var n,r,i,s,l;const t=e;return((n=t.requestFullscreen)==null?void 0:n.call(t))||((r=t.msRequestFullscreen)==null?void 0:r.call(t))||((i=t.webkitEnterFullscreen)==null?void 0:i.call(t))||((s=t.webkitRequestFullscreen)==null?void 0:s.call(t))||((l=t.mozRequestFullscreen)==null?void 0:l.call(t))}const IA=["","webkit","moz","ms"];function DA(e,{onFullScreen:t,onError:n}){return IA.forEach(r=>{e.addEventListener(`${r}fullscreenchange`,t),e.addEventListener(`${r}fullscreenerror`,n)}),()=>{IA.forEach(r=>{e.removeEventListener(`${r}fullscreenchange`,t),e.removeEventListener(`${r}fullscreenerror`,n)})}}function fne(){const[e,t]=S.useState(!1),n=S.useRef(null),r=S.useCallback(u=>{t(u.target===MA())},[t]),i=S.useCallback(u=>{t(!1),console.error(`[@mantine/hooks] use-fullscreen: Error attempting full-screen mode method: ${u} (${u.target})`)},[t]),s=S.useCallback(async()=>{MA()?await uY():await cY(n.current)},[]),l=S.useCallback(u=>{u===null?n.current=window.document.documentElement:n.current=u},[]);return S.useEffect(()=>{if(!n.current&&window.document)return n.current=window.document.documentElement,DA(n.current,{onFullScreen:r,onError:i});if(n.current)return DA(n.current,{onFullScreen:r,onError:i})},[n.current]),{ref:l,toggle:s,fullscreen:e}}function LA(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function fY(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function dY(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function hY(e){return/Android/i.test(e)}function pY(e){return/Linux/i.test(e)}function gY(e){return/CrOS/i.test(e)}function PA(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return fY(e)||LA(e)&&"ontouchend"in document?"ios":LA(e)?"macos":dY(e)?"windows":hY(e)?"android":pY(e)?"linux":gY(e)?"chromeos":"undetermined"}function dne(e={getValueInEffect:!0}){const[t,n]=S.useState(e.getValueInEffect?"undetermined":PA());return tY(()=>{e.getValueInEffect&&n(PA)},[]),t}function hne(e=!1,t={}){const[n,r]=S.useState(e),i=S.useCallback(()=>{r(u=>{var f;return u||((f=t.onOpen)==null||f.call(t),!0)})},[t.onOpen]),s=S.useCallback(()=>{r(u=>{var f;return u&&((f=t.onClose)==null||f.call(t),!1)})},[t.onClose]),l=S.useCallback(()=>{n?s():i()},[s,i,n]);return[n,{open:i,close:s,toggle:l}]}var V3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},kA=fe.createContext&&fe.createContext(V3),mY=["attr","size","title"];function vY(e,t){if(e==null)return{};var n=yY(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hm(){return hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hm.apply(this,arguments)}function NA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NA(Object(n),!0).forEach(function(r){bY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bY(e,t,n){return t=SY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SY(e){var t=EY(e,"string");return typeof t=="symbol"?t:t+""}function EY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j3(e){return e&&e.map((t,n)=>fe.createElement(t.tag,pm({key:n},t.attr),j3(t.child)))}function qe(e){return t=>fe.createElement(wY,hm({attr:pm({},e.attr)},t),j3(e.child))}function wY(e){var t=n=>{var{attr:r,size:i,title:s}=e,l=vY(e,mY),u=i||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),fe.createElement("svg",hm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:f,style:pm(pm({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&fe.createElement("title",null,s),e.children)};return kA!==void 0?fe.createElement(kA.Consumer,null,n=>t(n)):t(V3)}function pne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288m144-144H112"},child:[]}]})(e)}function gne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M250.26 166.05 256 288l5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 6z"},child:[]},{tag:"path",attr:{d:"M256 367.91a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(e)}function mne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm0 319.91a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm21.72-201.15-5.74 122a16 16 0 0 1-32 0l-5.74-121.94v-.05a21.74 21.74 0 1 1 43.44 0z"},child:[]}]})(e)}function vne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104 160a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zM104 312a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zM104 464a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56zm152 0a56 56 0 1 1 56-56 56.06 56.06 0 0 1-56 56z"},child:[]}]})(e)}function yne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M244 400 100 256l144-144M120 256h292"},child:[]}]})(e)}function bne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 268 144 144 144-144M256 392V100"},child:[]}]})(e)}function Sne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m268 112 144 144-144 144m124-144H100"},child:[]}]})(e)}function Ene(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 244 144-144 144 144M256 120v292"},child:[]}]})(e)}function wne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"200",fill:"none",strokeMiterlimit:"10",strokeWidth:"48"},child:[]},{tag:"path",attr:{strokeMiterlimit:"10",strokeWidth:"48",d:"m114.58 114.58 282.84 282.84"},child:[]}]})(e)}function Rne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0 1 16 16v288a16 16 0 0 1-16 16c-128 0-177.45 25.81-208 64-30.37-38-80-64-208-64-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0 1 16-16c131.57.59 192 32.84 208 96zm0 0v288"},child:[]}]})(e)}function xne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29-134.4 160a16 16 0 0 1-12 5.71h-.27a16 16 0 0 1-11.89-5.3l-57.6-64a16 16 0 1 1 23.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0 1 24.5 20.58z"},child:[]}]})(e)}function Cne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M464 128 240 384l-96-96m0 96-96-96m320-160L232 284"},child:[]}]})(e)}function Tne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}function _ne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function Ane(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 328 144-144 144 144"},child:[]}]})(e)}function One(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function Mne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M400 240c-8.89-89.54-71-144-144-144-69 0-113.44 48.2-128 96-60 6-112 43.59-112 112 0 66 54 112 120 112h260c55 0 100-27.44 100-88 0-59.82-53-85.76-96-88z"},child:[]}]})(e)}function Ine(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 416V304h112m-101.8 10.23L432 432M208 96v112H96m101.8-10.23L80 80m336 128H304V96m10.23 101.8L432 80M96 304h112v112m-10.23-101.8L80 432"},child:[]}]})(e)}function Dne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"},child:[]}]})(e)}function Lne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M408 480H184a72 72 0 0 1-72-72V184a72 72 0 0 1 72-72h224a72 72 0 0 1 72 72v224a72 72 0 0 1-72 72z"},child:[]},{tag:"path",attr:{d:"M160 80h235.88A72.12 72.12 0 0 0 328 32H104a72 72 0 0 0-72 72v224a72.12 72.12 0 0 0 48 67.88V160a80 80 0 0 1 80-80z"},child:[]}]})(e)}function Pne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120"},child:[]}]})(e)}function kne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m176 272 80 80 80-80M256 48v288"},child:[]}]})(e)}function Nne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24m168-168v160m80-80H216"},child:[]}]})(e)}function Fne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"192",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]}]})(e)}function zne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"48"},child:[]},{tag:"circle",attr:{cx:"416",cy:"256",r:"48"},child:[]},{tag:"circle",attr:{cx:"96",cy:"256",r:"48"},child:[]}]})(e)}function Hne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M432 320v112H320m101.8-10.23L304 304M80 192V80h112M90.2 90.23 208 208M320 80h112v112M421.77 90.2 304 208M192 432H80V320m10.23 101.8L208 304"},child:[]}]})(e)}function Bne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448zm-176.34-64c-41.49 0-81.5-12.28-118.92-36.5-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58 2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1 204.8 204.8 0 0 1-51.16 6.47zm235.18-145.4c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83 2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1 192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37 34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16 310.72 310.72 0 0 1-64.12 72.73 2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13 343.49 343.49 0 0 0 68.64-78.48 32.2 32.2 0 0 0-.1-34.78z"},child:[]},{tag:"path",attr:{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4 2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160zm-90.22 73.66a2 2 0 0 0-3.38 1 96 96 0 0 0 115 115 2 2 0 0 0 1-3.38z"},child:[]}]})(e)}function Une(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z"},child:[]},{tag:"circle",attr:{cx:"256",cy:"256",r:"80",fill:"none",strokeMiterlimit:"10",strokeWidth:"32"},child:[]}]})(e)}function Vne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"64"},child:[]},{tag:"path",attr:{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 0 0-.1-34.76zM256 352a96 96 0 1 1 96-96 96.11 96.11 0 0 1-96 96z"},child:[]}]})(e)}function jne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M461.05 51a65 65 0 0 0-45.71-19h-.76a61.81 61.81 0 0 0-44.36 19.25 12.81 12.81 0 0 0-1.07 1.25l-54 69.76c-5.62 7.1-12.74 8.68-16.78 4.64l-1.9-1.9a48 48 0 0 0-67.92 67.92l9.91 9.91a2 2 0 0 1 0 2.83L58.7 385.38C54 390.05 46.9 399.85 38.85 431c-4.06 15.71-6.51 29.66-6.61 30.24A16 16 0 0 0 48 480a15.68 15.68 0 0 0 2.64-.22c.58-.1 14.44-2.43 30.13-6.44 31.07-7.94 41.05-15.24 45.85-20l179.77-179.79a2 2 0 0 1 2.82 0l9.92 9.92a48 48 0 0 0 67.92-67.93l-1.59-1.54c-5-5-2.52-12.11 4.32-17.14l69.75-53.94a17.82 17.82 0 0 0 1.47-1.32 63.2 63.2 0 0 0 19-45A63.88 63.88 0 0 0 461.05 51zM250.78 283.9c-2.92 2.92-16.18 7.92-23.39.71s-2.24-20.42.69-23.35l33-33a2 2 0 0 1 2.83 0l19.84 19.83a2 2 0 0 1 0 2.83z"},child:[]}]})(e)}function $ne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M194.82 496a18.36 18.36 0 0 1-18.1-21.53v-.11L204.83 320H96a16 16 0 0 1-12.44-26.06L302.73 23a18.45 18.45 0 0 1 32.8 13.71c0 .3-.08.59-.13.89L307.19 192H416a16 16 0 0 1 12.44 26.06L209.24 489a18.45 18.45 0 0 1-14.42 7z"},child:[]}]})(e)}function qne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M64 192v-72a40 40 0 0 1 40-40h75.89a40 40 0 0 1 22.19 6.72l27.84 18.56a40 40 0 0 0 22.19 6.72H408a40 40 0 0 1 40 40v40"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M479.9 226.55 463.68 392a40 40 0 0 1-39.93 40H88.25a40 40 0 0 1-39.93-40L32.1 226.55A32 32 0 0 1 64 192h384.1a32 32 0 0 1 31.8 34.55z"},child:[]}]})(e)}function Gne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 152a56 56 0 0 0-56-56H220.11a23.89 23.89 0 0 1-13.31-4L179 73.41A55.77 55.77 0 0 0 147.89 64H72a56 56 0 0 0-56 56v48a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8zM16 392a56 56 0 0 0 56 56h368a56 56 0 0 0 56-56V216a8 8 0 0 0-8-8H24a8 8 0 0 0-8 8z"},child:[]}]})(e)}function Yne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 56C145.72 56 56 145.72 56 256s89.72 200 200 200 200-89.72 200-200S366.28 56 256 56zm0 82a26 26 0 1 1-26 26 26 26 0 0 1 26-26zm48 226h-88a16 16 0 0 1 0-32h28v-88h-16a16 16 0 0 1 0-32h32a16 16 0 0 1 16 16v104h28a16 16 0 0 1 0 32z"},child:[]}]})(e)}function Xne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M200.66 352H144a96 96 0 0 1 0-192h55.41m113.18 0H368a96 96 0 0 1 0 192h-56.66m-142.27-96h175.86"},child:[]}]})(e)}function Wne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M160 144h288M160 256h288M160 368h288"},child:[]},{tag:"circle",attr:{cx:"80",cy:"144",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"circle",attr:{cx:"80",cy:"256",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"circle",attr:{cx:"80",cy:"368",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]}]})(e)}function Kne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M256 96V56m0 400v-40m0-304a144 144 0 1 0 144 144 144 144 0 0 0-144-144zm160 144h40m-400 0h40"},child:[]}]})(e)}function Qne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 208v-95a80 80 0 0 0-160 0v95"},child:[]},{tag:"rect",attr:{width:"320",height:"272",x:"96",y:"208",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function Jne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368 192h-16v-80a96 96 0 1 0-192 0v80h-16a64.07 64.07 0 0 0-64 64v176a64.07 64.07 0 0 0 64 64h224a64.07 64.07 0 0 0 64-64V256a64.07 64.07 0 0 0-64-64zm-48 0H192v-80a64 64 0 1 1 128 0z"},child:[]}]})(e)}function Zne(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 112a80 80 0 0 0-160 0v96"},child:[]},{tag:"rect",attr:{width:"320",height:"272",x:"96",y:"208",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function ere(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48M336 64h112v112M224 288 440 72"},child:[]}]})(e)}function tre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 144h226.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32h-66.75a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32zm384 224h-66.75a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32h226.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32zm0-128H221.25a48 48 0 0 0-90.5 0H64a16 16 0 0 0 0 32h66.75a48 48 0 0 0 90.5 0H448a16 16 0 0 0 0-32z"},child:[]}]})(e)}function nre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16zm144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16z"},child:[]}]})(e)}function rre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M364.13 125.25 87 403l-23 45 44.99-23 277.76-277.13-22.62-22.62zm56.56-56.56-22.62 22.62 22.62 22.63 22.62-22.63a16 16 0 0 0 0-22.62h0a16 16 0 0 0-22.62 0z"},child:[]}]})(e)}function ore(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M358.62 129.28 86.49 402.08 70 442l39.92-16.49 272.8-272.13-24.1-24.1zm54.45-54.44-11.79 11.78 24.1 24.1 11.79-11.79a16.51 16.51 0 0 0 0-23.34l-.75-.75a16.51 16.51 0 0 0-23.35 0z"},child:[]}]})(e)}function ire(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m481.29 229.47-188.87-113a30.54 30.54 0 0 0-31.09-.39 33.74 33.74 0 0 0-16.76 29.47v79.05L63.85 116.44a30.54 30.54 0 0 0-31.09-.39A33.74 33.74 0 0 0 16 145.52v221A33.74 33.74 0 0 0 32.76 396a30.54 30.54 0 0 0 31.09-.39L244.57 287.4v79.08A33.74 33.74 0 0 0 261.33 396a30.54 30.54 0 0 0 31.09-.39l188.87-113a31.27 31.27 0 0 0 0-53z"},child:[]}]})(e)}function sre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M112 64a16 16 0 0 1 16 16v136.43L360.77 77.11a35.13 35.13 0 0 1 35.77-.44c12 6.8 19.46 20 19.46 34.33v290c0 14.37-7.46 27.53-19.46 34.33a35.14 35.14 0 0 1-35.77-.45L128 295.57V432a16 16 0 0 1-32 0V80a16 16 0 0 1 16-16z"},child:[]}]})(e)}function are(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 64a16 16 0 0 0-16 16v136.43L151.23 77.11a35.13 35.13 0 0 0-35.77-.44C103.46 83.47 96 96.63 96 111v290c0 14.37 7.46 27.53 19.46 34.33a35.14 35.14 0 0 0 35.77-.45L384 295.57V432a16 16 0 0 0 32 0V80a16 16 0 0 0-16-16z"},child:[]}]})(e)}function lre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.36a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z"},child:[]}]})(e)}function ure(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"m400 148-21.12-24.57A191.43 191.43 0 0 0 240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 0 0 181.07-128"},child:[]},{tag:"path",attr:{d:"M464 97.42V208a16 16 0 0 1-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"},child:[]}]})(e)}function cre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 256H176"},child:[]}]})(e)}function fre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm80 224H176a16 16 0 0 1 0-32h160a16 16 0 0 1 0 32z"},child:[]}]})(e)}function dre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M400 256H112"},child:[]}]})(e)}function hre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"44",d:"M118 304h276m-276-96h276"},child:[]}]})(e)}function pre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64 63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z"},child:[]}]})(e)}function gre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M262.29 192.31a64 64 0 1 0 57.4 57.4 64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22 155.3 155.3 0 0 1-21.46-12.57 16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22 155.3 155.3 0 0 1 21.46 12.57 16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z"},child:[]}]})(e)}function mre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 176 225.2 304 176 255.8"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M463.1 112.37C373.68 96.33 336.71 84.45 256 48c-80.71 36.45-117.68 48.33-207.1 64.37C32.7 369.13 240.58 457.79 256 464c15.42-6.21 223.3-94.87 207.1-351.63z"},child:[]}]})(e)}function vre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M392 432H120a40 40 0 0 1-40-40V120a40 40 0 0 1 40-40h272a40 40 0 0 1 40 40v272a40 40 0 0 1-40 40z"},child:[]}]})(e)}function yre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M464 208 352 96 240 208m112-94.87V416M48 304l112 112 112-112m-112 94V96"},child:[]}]})(e)}function bre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48zm96 240h-96a16 16 0 0 1-16-16V128a16 16 0 0 1 32 0v128h80a16 16 0 0 1 0 32z"},child:[]}]})(e)}function Sre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"448",height:"80",x:"32",y:"48",rx:"32",ry:"32"},child:[]},{tag:"path",attr:{d:"M74.45 160a8 8 0 0 0-8 8.83l26.31 252.56a1.5 1.5 0 0 0 0 .22A48 48 0 0 0 140.45 464h231.09a48 48 0 0 0 47.67-42.39v-.21l26.27-252.57a8 8 0 0 0-8-8.83zm248.86 180.69a16 16 0 1 1-22.63 22.62L256 318.63l-44.69 44.68a16 16 0 0 1-22.63-22.62L233.37 296l-44.69-44.69a16 16 0 0 1 22.63-22.62L256 273.37l44.68-44.68a16 16 0 0 1 22.63 22.62L278.62 296z"},child:[]}]})(e)}function Ere(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",d:"M296 64h-80a7.91 7.91 0 0 0-8 8v24h96V72a7.91 7.91 0 0 0-8-8z"},child:[]},{tag:"path",attr:{d:"M432 96h-96V72a40 40 0 0 0-40-40h-80a40 40 0 0 0-40 40v24H80a16 16 0 0 0 0 32h17l19 304.92c1.42 26.85 22 47.08 48 47.08h184c26.13 0 46.3-19.78 48-47l19-305h17a16 16 0 0 0 0-32zM192.57 416H192a16 16 0 0 1-16-15.43l-8-224a16 16 0 1 1 32-1.14l8 224A16 16 0 0 1 192.57 416zM272 400a16 16 0 0 1-32 0V176a16 16 0 0 1 32 0zm32-304h-96V72a7.91 7.91 0 0 1 8-8h80a7.91 7.91 0 0 1 8 8zm32 304.57A16 16 0 0 1 320 416h-.58A16 16 0 0 1 304 399.43l8-224a16 16 0 1 1 32 1.14z"},child:[]}]})(e)}function wre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M200.66 352H144a96 96 0 0 1 0-192h55.41m113.18 0H368a96 96 0 0 1 0 192h-56.66"},child:[]}]})(e)}function Rre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(e)}function xre(e){return qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08 278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17zm-198.6-1.83a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm21.72-201.15-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7z"},child:[]}]})(e)}function Cre(e){return qe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 17V3"},child:[]},{tag:"path",attr:{d:"m6 11 6 6 6-6"},child:[]},{tag:"path",attr:{d:"M19 21H5"},child:[]}]})(e)}function Tre(e){return qe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m7 15 5 5 5-5"},child:[]},{tag:"path",attr:{d:"m7 9 5-5 5 5"},child:[]}]})(e)}function _re(e){return qe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 2v2"},child:[]},{tag:"path",attr:{d:"M14 2v2"},child:[]},{tag:"path",attr:{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1"},child:[]},{tag:"path",attr:{d:"M6 2v2"},child:[]}]})(e)}function Are(e){return qe({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"7",height:"9",x:"3",y:"3",rx:"1"},child:[]},{tag:"rect",attr:{width:"7",height:"5",x:"14",y:"3",rx:"1"},child:[]},{tag:"rect",attr:{width:"7",height:"9",x:"14",y:"12",rx:"1"},child:[]},{tag:"rect",attr:{width:"7",height:"5",x:"3",y:"16",rx:"1"},child:[]}]})(e)}const $3=S.createContext(void 0);function fh(e){const t=S.useContext($3);if(e===!1&&t===void 0)throw new Error(Vt(27));return t}const RY={...Go,...Bi},Ore=S.forwardRef(function(t,n){const{render:r,className:i,forceRender:s=!1,...l}=t,{store:u}=fh(),f=u.useState("open"),d=u.useState("nested"),p=u.useState("mounted"),g=u.useState("transitionStatus"),m=S.useMemo(()=>({open:f,transitionStatus:g}),[f,g]);return St("div",t,{state:m,ref:[u.context.backdropRef,n],stateAttributesMapping:RY,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:s||!d})}),q3=S.createContext(void 0);function bw(e=!1){const t=S.useContext(q3);if(t===void 0&&!e)throw new Error(Vt(16));return t}function xY(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:s}=e,l=r&&t!==!1,u=r&&t===!1;return{props:S.useMemo(()=>{const d={onKeyDown(p){n&&t&&p.key!=="Tab"&&p.preventDefault()}};return r||(d.tabIndex=i,!s&&n&&(d.tabIndex=t?i:-1)),(s&&(t||l)||!s&&n)&&(d["aria-disabled"]=n),s&&(!t||u)&&(d.disabled=n),d},[r,n,t,l,u,s,i])}}function Ui(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0}=e,s=S.useRef(null),l=bw(!0)!==void 0,u=Be(()=>{const m=s.current;return!!((m==null?void 0:m.tagName)==="A"&&(m!=null&&m.href))}),{props:f}=xY({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),d=S.useCallback(()=>{const m=s.current;CY(m)&&l&&t&&f.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,f.disabled,l]);Ve(d,[d]);const p=S.useCallback((m={})=>{const{onClick:v,onMouseDown:E,onKeyUp:b,onKeyDown:x,onPointerDown:C,...R}=m;return Di({type:i?"button":void 0,onClick(O){if(t){O.preventDefault();return}v==null||v(O)},onMouseDown(O){t||E==null||E(O)},onKeyDown(O){if(t||(jb(O),x==null||x(O)),O.baseUIHandlerPrevented)return;const _=O.target===O.currentTarget&&!i&&!u()&&!t,M=O.key==="Enter",A=O.key===" ";_&&((A||M)&&O.preventDefault(),M&&(v==null||v(O)))},onKeyUp(O){t||(jb(O),b==null||b(O)),!O.baseUIHandlerPrevented&&O.target===O.currentTarget&&!i&&!t&&O.key===" "&&(v==null||v(O))},onPointerDown(O){if(t){O.preventDefault();return}C==null||C(O)}},i?void 0:{role:"button"},f,R)},[t,f,i,u]),g=Be(m=>{s.current=m,d()});return{getButtonProps:p,buttonRef:g}}function CY(e){return vn(e)&&e.tagName==="BUTTON"}let TY=function(e){return e.nestedDialogs="--nested-dialogs",e}({}),_Y=function(e){return e[e.open=rl.open]="open",e[e.closed=rl.closed]="closed",e[e.startingStyle=rl.startingStyle]="startingStyle",e[e.endingStyle=rl.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e}({});const G3=S.createContext(void 0);function AY(){const e=S.useContext(G3);if(e===void 0)throw new Error(Vt(26));return e}const Gu="ArrowUp",il="ArrowDown",_d="ArrowLeft",Yu="ArrowRight",dh="Home",hh="End",Y3=new Set([_d,Yu]),OY=new Set([_d,Yu,dh,hh]),X3=new Set([Gu,il]),MY=new Set([Gu,il,dh,hh]),W3=new Set([...Y3,...X3]),IY=new Set([...W3,dh,hh]),d0=new Set([Gu,il,_d,Yu,dh,hh]),K3="Shift",DY="Control",LY="Alt",PY="Meta",kY=new Set([K3,DY,LY,PY]);function NY(e){return vn(e)&&e.tagName==="INPUT"}function FA(e){return!!(NY(e)&&e.selectionStart!=null||vn(e)&&e.tagName==="TEXTAREA")}function zA(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,s=e.scrollTop;const l=e.clientWidth<e.scrollWidth,u=e.clientHeight<e.scrollHeight;if(l&&r!=="vertical"){const f=HA(e,t,"left"),d=ng(e),p=ng(t);n==="ltr"&&(f+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?i=f+t.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:f-p.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(i=f-p.scrollMarginLeft-d.scrollPaddingLeft)),n==="rtl"&&(f-p.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?i=f-p.scrollMarginLeft-d.scrollPaddingLeft:f+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(i=f+t.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(u&&r!=="horizontal"){const f=HA(e,t,"top"),d=ng(e),p=ng(t);f-p.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?s=f-p.scrollMarginTop-d.scrollPaddingTop:f+t.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(s=f+t.offsetHeight+p.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:i,top:s,behavior:"auto"})}function HA(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function ng(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}const FY={...Go,...Bi,nestedDialogOpen(e){return e?{[_Y.nestedDialogOpen]:""}:null}},Mre=S.forwardRef(function(t,n){const{className:r,finalFocus:i,initialFocus:s,render:l,...u}=t,{store:f}=fh(),d=f.useState("descriptionElementId"),p=f.useState("disablePointerDismissal"),g=f.useState("floatingRootContext"),m=f.useState("popupProps"),v=f.useState("modal"),E=f.useState("mounted"),b=f.useState("nested"),x=f.useState("nestedOpenDialogCount"),C=f.useState("open"),R=f.useState("openMethod"),T=f.useState("titleElementId"),O=f.useState("transitionStatus"),_=f.useState("role");AY(),ci({open:C,ref:f.context.popupRef,onComplete(){var H,j;C&&((j=(H=f.context).onOpenChangeComplete)==null||j.call(H,!0))}});function M(H){return H==="touch"?f.context.popupRef.current:!0}const A=s===void 0?M:s,D=x>0,L=S.useMemo(()=>({open:C,nested:b,transitionStatus:O,nestedDialogOpen:D}),[C,b,O,D]),N=St("div",t,{state:L,props:[m,{"aria-labelledby":T??void 0,"aria-describedby":d??void 0,role:_,tabIndex:-1,hidden:!E,onKeyDown(H){d0.has(H.key)&&H.stopPropagation()},style:{[TY.nestedDialogs]:x}},u],ref:[n,f.context.popupRef,f.useStateSetter("popupElement")],stateAttributesMapping:FY});return be.jsx(Bm,{context:g,openInteractionType:R,disabled:!E,closeOnFocusOut:!p,initialFocus:A,returnFocus:i,modal:v!==!1,restoreFocus:"popup",children:N})}),h0=S.forwardRef(function(t,n){const{cutout:r,...i}=t;let s;if(r){const l=r==null?void 0:r.getBoundingClientRect();s=`polygon(
21
21
  0% 0%,
22
22
  100% 0%,
23
23
  100% 100%,
@@ -70,5 +70,5 @@ Reason: ${v}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessi
70
70
  `);if(ze!==Et){var dt=ft[Yt];Ge({value:Et,selectionStart:dt!=null&&dt.startsWith(et)?$e-et.length:$e,selectionEnd:Ze-(ze.length-Et.length)})}}else if($e!==Ze){var ft=re(ze,$e),Bt=ft.length-1,an=re(ze,Ze).length-1,dt=ft[Bt];Ge({value:ze.split(`
71
71
  `).map(function($n,io){return io>=Bt&&io<=an?et+$n:$n}).join(`
72
72
  `),selectionStart:dt&&/\S/.test(dt)?$e+et.length:$e,selectionEnd:Ze+et.length*(an-Bt+1)})}else{var Ye=$e+et.length;Ge({value:ze.substring(0,$e)+et+ze.substring(Ze),selectionStart:Ye,selectionEnd:Ye})}else if(he.key==="Backspace"){var At=$e!==Ze,tn=ze.substring(0,$e);if(tn.endsWith(et)&&!At){he.preventDefault();var Ye=$e-et.length;Ge({value:ze.substring(0,$e-et.length)+ze.substring(Ze),selectionStart:Ye,selectionEnd:Ye})}}else if(he.key==="Enter"){if($e===Ze){var Ut=re(ze,$e).pop(),ln=Ut==null?void 0:Ut.match(/^\s+/);if(ln!=null&&ln[0]){he.preventDefault();var yn=`
73
- `+ln[0],Ye=$e+yn.length;Ge({value:ze.substring(0,$e)+yn+ze.substring(Ze),selectionStart:Ye,selectionEnd:Ye})}}}else if(he.keyCode===d||he.keyCode===p||he.keyCode===g||he.keyCode===m){var mn=void 0;he.keyCode===d&&he.shiftKey?mn=["(",")"]:he.keyCode===p?he.shiftKey?mn=["{","}"]:mn=["[","]"]:he.keyCode===g?he.shiftKey?mn=['"','"']:mn=["'","'"]:he.keyCode===m&&!he.shiftKey&&(mn=["`","`"]),$e!==Ze&&mn&&(he.preventDefault(),Ge({value:ze.substring(0,$e)+mn[0]+ze.substring($e,Ze)+mn[1]+ze.substring(Ze),selectionStart:$e,selectionEnd:Ze+2}))}else(x?he.metaKey&&he.keyCode===u:he.ctrlKey&&he.keyCode===u)&&!he.shiftKey&&!he.altKey?(he.preventDefault(),nt()):(x?he.metaKey&&he.keyCode===u&&he.shiftKey:b?he.ctrlKey&&he.keyCode===l:he.ctrlKey&&he.keyCode===u&&he.shiftKey)&&!he.altKey?(he.preventDefault(),rt()):he.keyCode===f&&he.ctrlKey&&(!x||he.shiftKey)&&(he.preventDefault(),Z(function(dr){return!dr}))}},st=function(he){var He=he.currentTarget,ze=He.value,$e=He.selectionStart,Ze=He.selectionEnd;Ie({value:ze,selectionStart:$e,selectionEnd:Ze},!0),te(ze)};return s.useEffect(function(){Ue()},[Ue]),s.useImperativeHandle(A,function(){return{get session(){return{history:we.current}},set session(he){we.current=he.history}}},[]),s.createElement("div",e({},Te,{style:e(e({},O.container),ue)}),s.createElement("pre",e({className:Q,"aria-hidden":"true",style:e(e(e({},O.editor),O.highlight),ie)},typeof se=="string"?{dangerouslySetInnerHTML:{__html:se+"<br />"}}:{children:se})),s.createElement("textarea",{ref:function(he){return De.current=he},style:e(e(e({},O.editor),O.textarea),ie),className:C+(Ce?" ".concat(Ce):""),id:Ae,value:Se,onChange:st,onKeyDown:It,onClick:J,onKeyUp:W,onFocus:k,onBlur:Y,disabled:L,form:N,maxLength:P,minLength:G,name:B,placeholder:ce,readOnly:de,required:ve,autoFocus:D,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),s.createElement("style",{dangerouslySetInnerHTML:{__html:R}}))}),O={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};return qr.default=T,qr}var ste=ite();const iie=Ts(ste);var _b={exports:{}},wM;function ate(){return wM||(wM=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,l={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function R(T){return T instanceof f?new f(T.type,R(T.content),T.alias):Array.isArray(T)?T.map(R):T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(R){return Object.prototype.toString.call(R).slice(8,-1)},objId:function(R){return R.__id||Object.defineProperty(R,"__id",{value:++s}),R.__id},clone:function R(T,O){O=O||{};var _,M;switch(u.util.type(T)){case"Object":if(M=u.util.objId(T),O[M])return O[M];_={},O[M]=_;for(var A in T)T.hasOwnProperty(A)&&(_[A]=R(T[A],O));return _;case"Array":return M=u.util.objId(T),O[M]?O[M]:(_=[],O[M]=_,T.forEach(function(D,L){_[L]=R(D,O)}),_);default:return T}},getLanguage:function(R){for(;R;){var T=i.exec(R.className);if(T)return T[1].toLowerCase();R=R.parentElement}return"none"},setLanguage:function(R,T){R.className=R.className.replace(RegExp(i,"gi"),""),R.classList.add("language-"+T)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(_){var R=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(R){var T=document.getElementsByTagName("script");for(var O in T)if(T[O].src==R)return T[O]}return null}},isActive:function(R,T,O){for(var _="no-"+T;R;){var M=R.classList;if(M.contains(T))return!0;if(M.contains(_))return!1;R=R.parentElement}return!!O}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(R,T){var O=u.util.clone(u.languages[R]);for(var _ in T)O[_]=T[_];return O},insertBefore:function(R,T,O,_){_=_||u.languages;var M=_[R],A={};for(var D in M)if(M.hasOwnProperty(D)){if(D==T)for(var L in O)O.hasOwnProperty(L)&&(A[L]=O[L]);O.hasOwnProperty(D)||(A[D]=M[D])}var N=_[R];return _[R]=A,u.languages.DFS(u.languages,function(H,j){j===N&&H!=R&&(this[H]=A)}),A},DFS:function R(T,O,_,M){M=M||{};var A=u.util.objId;for(var D in T)if(T.hasOwnProperty(D)){O.call(T,D,T[D],_||D);var L=T[D],N=u.util.type(L);N==="Object"&&!M[A(L)]?(M[A(L)]=!0,R(L,O,null,M)):N==="Array"&&!M[A(L)]&&(M[A(L)]=!0,R(L,O,D,M))}}},plugins:{},highlightAll:function(R,T){u.highlightAllUnder(document,R,T)},highlightAllUnder:function(R,T,O){var _={callback:O,container:R,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),u.hooks.run("before-all-elements-highlight",_);for(var M=0,A;A=_.elements[M++];)u.highlightElement(A,T===!0,_.callback)},highlightElement:function(R,T,O){var _=u.util.getLanguage(R),M=u.languages[_];u.util.setLanguage(R,_);var A=R.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(A,_);var D=R.textContent,L={element:R,language:_,grammar:M,code:D};function N(j){L.highlightedCode=j,u.hooks.run("before-insert",L),L.element.innerHTML=L.highlightedCode,u.hooks.run("after-highlight",L),u.hooks.run("complete",L),O&&O.call(L.element)}if(u.hooks.run("before-sanity-check",L),A=L.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!L.code){u.hooks.run("complete",L),O&&O.call(L.element);return}if(u.hooks.run("before-highlight",L),!L.grammar){N(u.util.encode(L.code));return}if(T&&r.Worker){var H=new Worker(u.filename);H.onmessage=function(j){N(j.data)},H.postMessage(JSON.stringify({language:L.language,code:L.code,immediateClose:!0}))}else N(u.highlight(L.code,L.grammar,L.language))},highlight:function(R,T,O){var _={code:R,grammar:T,language:O};if(u.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=u.tokenize(_.code,_.grammar),u.hooks.run("after-tokenize",_),f.stringify(u.util.encode(_.tokens),_.language)},tokenize:function(R,T){var O=T.rest;if(O){for(var _ in O)T[_]=O[_];delete T.rest}var M=new g;return m(M,M.head,R),p(R,M,T,M.head,0),E(M)},hooks:{all:{},add:function(R,T){var O=u.hooks.all;O[R]=O[R]||[],O[R].push(T)},run:function(R,T){var O=u.hooks.all[R];if(!(!O||!O.length))for(var _=0,M;M=O[_++];)M(T)}},Token:f};r.Prism=u;function f(R,T,O,_){this.type=R,this.content=T,this.alias=O,this.length=(_||"").length|0}f.stringify=function R(T,O){if(typeof T=="string")return T;if(Array.isArray(T)){var _="";return T.forEach(function(N){_+=R(N,O)}),_}var M={type:T.type,content:R(T.content,O),tag:"span",classes:["token",T.type],attributes:{},language:O},A=T.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(M.classes,A):M.classes.push(A)),u.hooks.run("wrap",M);var D="";for(var L in M.attributes)D+=" "+L+'="'+(M.attributes[L]||"").replace(/"/g,"&quot;")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+D+">"+M.content+"</"+M.tag+">"};function d(R,T,O,_){R.lastIndex=T;var M=R.exec(O);if(M&&_&&M[1]){var A=M[1].length;M.index+=A,M[0]=M[0].slice(A)}return M}function p(R,T,O,_,M,A){for(var D in O)if(!(!O.hasOwnProperty(D)||!O[D])){var L=O[D];L=Array.isArray(L)?L:[L];for(var N=0;N<L.length;++N){if(A&&A.cause==D+","+N)return;var H=L[N],j=H.inside,F=!!H.lookbehind,q=!!H.greedy,U=H.alias;if(q&&!H.pattern.global){var P=H.pattern.toString().match(/[imsuy]*$/)[0];H.pattern=RegExp(H.pattern.source,P+"g")}for(var G=H.pattern||H,B=_.next,Y=M;B!==T.tail&&!(A&&Y>=A.reach);Y+=B.value.length,B=B.next){var J=B.value;if(T.length>R.length)return;if(!(J instanceof f)){var k=1,$;if(q){if($=d(G,Y,R,F),!$||$.index>=R.length)break;var ne=$.index,W=$.index+$[0].length,te=Y;for(te+=B.value.length;ne>=te;)B=B.next,te+=B.value.length;if(te-=B.value.length,Y=te,B.value instanceof f)continue;for(var ae=B;ae!==T.tail&&(te<W||typeof ae.value=="string");ae=ae.next)k++,te+=ae.value.length;k--,J=R.slice(Y,te),$.index-=Y}else if($=d(G,0,J,F),!$)continue;var ne=$.index,ce=$[0],Q=J.slice(0,ne),de=J.slice(ne+ce.length),ve=Y+J.length;A&&ve>A.reach&&(A.reach=ve);var ue=B.prev;Q&&(ue=m(T,ue,Q),Y+=Q.length),v(T,ue,k);var me=new f(D,j?u.tokenize(ce,j):ce,U,ce);if(B=m(T,ue,me),de&&m(T,B,de),k>1){var xe={cause:D+","+N,reach:ve};p(R,T,O,B.prev,Y,xe),A&&xe.reach>A.reach&&(A.reach=xe.reach)}}}}}}function g(){var R={value:null,prev:null,next:null},T={value:null,prev:R,next:null};R.next=T,this.head=R,this.tail=T,this.length=0}function m(R,T,O){var _=T.next,M={value:O,prev:T,next:_};return T.next=M,_.prev=M,R.length++,M}function v(R,T,O){for(var _=T.next,M=0;M<O&&_!==R.tail;M++)_=_.next;T.next=_,_.prev=T,R.length-=M}function E(R){for(var T=[],O=R.head.next;O!==R.tail;)T.push(O.value),O=O.next;return T}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(R){var T=JSON.parse(R.data),O=T.language,_=T.code,M=T.immediateClose;r.postMessage(u.highlight(_,u.languages[O],O)),M&&r.close()},!1)),u;var b=u.util.currentScript();b&&(u.filename=b.src,b.hasAttribute("data-manual")&&(u.manual=!0));function x(){u.manual||u.highlightAll()}if(!u.manual){var C=document.readyState;C==="loading"||C==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",x):window.requestAnimationFrame?window.requestAnimationFrame(x):window.setTimeout(x,16)}return u}(t);e.exports&&(e.exports=n),typeof e_<"u"&&(e_.Prism=n)}(_b)),_b.exports}var lte=ate();const sie=Ts(lte);(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);export{Ote as $,Tne as A,Lne as B,hne as C,Dre as D,fne as E,As as F,Lre as G,Ine as H,vne as I,Hne as J,yre as K,_re as L,cne as M,Pre as N,OI as O,Ate as P,xte as Q,fe as R,a8 as S,pne as T,Ite as U,Pte as V,Lte as W,NM as X,Ob as Y,fte as Z,pte as _,nne as a,Voe as a$,z8 as a0,hte as a1,dte as a2,Tte as a3,Rte as a4,gte as a5,Mte as a6,cte as a7,yne as a8,pre as a9,vre as aA,dre as aB,nre as aC,lre as aD,zoe as aE,Are as aF,sne as aG,Loe as aH,Poe as aI,Noe as aJ,koe as aK,Foe as aL,Kne as aM,_ne as aN,Soe as aO,boe as aP,Eoe as aQ,xoe as aR,Coe as aS,woe as aT,Roe as aU,rne as aV,Wne as aW,Qoe as aX,Koe as aY,Zoe as aZ,Joe as a_,ore as aa,doe as ab,ere as ac,noe as ad,one as ae,ane as af,toe as ag,Ere as ah,Rre as ai,voe as aj,Sre as ak,mre as al,Xne as am,kne as an,Mne as ao,rre as ap,Pne as aq,Nne as ar,zne as as,Sne as at,Dne as au,bne as av,Une as aw,Dte as ax,ine as ay,are as az,H3 as b,Cre as b$,Uoe as b0,tL as b1,oie as b2,rie as b3,Am as b4,qne as b5,hre as b6,Ane as b7,qoe as b8,joe as b9,hoe as bA,poe as bB,wne as bC,Ioe as bD,Doe as bE,Ooe as bF,Moe as bG,Aoe as bH,Qre as bI,_oe as bJ,xre as bK,kre as bL,Nre as bM,Jre as bN,Zre as bO,aoe as bP,loe as bQ,uoe as bR,coe as bS,foe as bT,roe as bU,ooe as bV,jne as bW,eoe as bX,sre as bY,ure as bZ,bre as b_,yoe as ba,nie as bb,tie as bc,Boe as bd,une as be,wre as bf,Jne as bg,Zne as bh,gne as bi,Yne as bj,mne as bk,xne as bl,$oe as bm,dZ as bn,moe as bo,ioe as bp,soe as bq,tre as br,Rne as bs,Xoe as bt,eie as bu,Goe as bv,Woe as bw,Hoe as bx,Yoe as by,goe as bz,Zte as c,Vne as c0,Bne as c1,Fre as c2,zre as c3,Hre as c4,Bre as c5,Tre as c6,Ure as c7,Vre as c8,Kre as c9,jre as ca,Xre as cb,$re as cc,qre as cd,Gre as ce,Yre as cf,Wre as cg,Toe as ch,vte as ci,yte as cj,bte as ck,Ste as cl,Ete as cm,wte as cn,iie as co,sie as cp,Cne as cq,fre as cr,cre as cs,$ne as ct,ire as cu,Gne as cv,YG as d,Jn as e,ene as f,p6 as g,S as h,tne as i,be as j,_te as k,mte as l,gre as m,Qne as n,lne as o,Fne as p,Ire as q,Dn as r,Ore as s,Mre as t,JG as u,One as v,Fc as w,fE as x,Ene as y,dne as z};
74
- //# sourceMappingURL=vendor-dQa48psh.js.map
73
+ `+ln[0],Ye=$e+yn.length;Ge({value:ze.substring(0,$e)+yn+ze.substring(Ze),selectionStart:Ye,selectionEnd:Ye})}}}else if(he.keyCode===d||he.keyCode===p||he.keyCode===g||he.keyCode===m){var mn=void 0;he.keyCode===d&&he.shiftKey?mn=["(",")"]:he.keyCode===p?he.shiftKey?mn=["{","}"]:mn=["[","]"]:he.keyCode===g?he.shiftKey?mn=['"','"']:mn=["'","'"]:he.keyCode===m&&!he.shiftKey&&(mn=["`","`"]),$e!==Ze&&mn&&(he.preventDefault(),Ge({value:ze.substring(0,$e)+mn[0]+ze.substring($e,Ze)+mn[1]+ze.substring(Ze),selectionStart:$e,selectionEnd:Ze+2}))}else(x?he.metaKey&&he.keyCode===u:he.ctrlKey&&he.keyCode===u)&&!he.shiftKey&&!he.altKey?(he.preventDefault(),nt()):(x?he.metaKey&&he.keyCode===u&&he.shiftKey:b?he.ctrlKey&&he.keyCode===l:he.ctrlKey&&he.keyCode===u&&he.shiftKey)&&!he.altKey?(he.preventDefault(),rt()):he.keyCode===f&&he.ctrlKey&&(!x||he.shiftKey)&&(he.preventDefault(),Z(function(dr){return!dr}))}},st=function(he){var He=he.currentTarget,ze=He.value,$e=He.selectionStart,Ze=He.selectionEnd;Ie({value:ze,selectionStart:$e,selectionEnd:Ze},!0),te(ze)};return s.useEffect(function(){Ue()},[Ue]),s.useImperativeHandle(A,function(){return{get session(){return{history:we.current}},set session(he){we.current=he.history}}},[]),s.createElement("div",e({},Te,{style:e(e({},O.container),ue)}),s.createElement("pre",e({className:Q,"aria-hidden":"true",style:e(e(e({},O.editor),O.highlight),ie)},typeof se=="string"?{dangerouslySetInnerHTML:{__html:se+"<br />"}}:{children:se})),s.createElement("textarea",{ref:function(he){return De.current=he},style:e(e(e({},O.editor),O.textarea),ie),className:C+(Ce?" ".concat(Ce):""),id:Ae,value:Se,onChange:st,onKeyDown:It,onClick:J,onKeyUp:W,onFocus:k,onBlur:Y,disabled:L,form:N,maxLength:P,minLength:G,name:B,placeholder:ce,readOnly:de,required:ve,autoFocus:D,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),s.createElement("style",{dangerouslySetInnerHTML:{__html:R}}))}),O={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};return qr.default=T,qr}var ste=ite();const iie=Ts(ste);var _b={exports:{}},wM;function ate(){return wM||(wM=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,l={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function R(T){return T instanceof f?new f(T.type,R(T.content),T.alias):Array.isArray(T)?T.map(R):T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(R){return Object.prototype.toString.call(R).slice(8,-1)},objId:function(R){return R.__id||Object.defineProperty(R,"__id",{value:++s}),R.__id},clone:function R(T,O){O=O||{};var _,M;switch(u.util.type(T)){case"Object":if(M=u.util.objId(T),O[M])return O[M];_={},O[M]=_;for(var A in T)T.hasOwnProperty(A)&&(_[A]=R(T[A],O));return _;case"Array":return M=u.util.objId(T),O[M]?O[M]:(_=[],O[M]=_,T.forEach(function(D,L){_[L]=R(D,O)}),_);default:return T}},getLanguage:function(R){for(;R;){var T=i.exec(R.className);if(T)return T[1].toLowerCase();R=R.parentElement}return"none"},setLanguage:function(R,T){R.className=R.className.replace(RegExp(i,"gi"),""),R.classList.add("language-"+T)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(_){var R=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(R){var T=document.getElementsByTagName("script");for(var O in T)if(T[O].src==R)return T[O]}return null}},isActive:function(R,T,O){for(var _="no-"+T;R;){var M=R.classList;if(M.contains(T))return!0;if(M.contains(_))return!1;R=R.parentElement}return!!O}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(R,T){var O=u.util.clone(u.languages[R]);for(var _ in T)O[_]=T[_];return O},insertBefore:function(R,T,O,_){_=_||u.languages;var M=_[R],A={};for(var D in M)if(M.hasOwnProperty(D)){if(D==T)for(var L in O)O.hasOwnProperty(L)&&(A[L]=O[L]);O.hasOwnProperty(D)||(A[D]=M[D])}var N=_[R];return _[R]=A,u.languages.DFS(u.languages,function(H,j){j===N&&H!=R&&(this[H]=A)}),A},DFS:function R(T,O,_,M){M=M||{};var A=u.util.objId;for(var D in T)if(T.hasOwnProperty(D)){O.call(T,D,T[D],_||D);var L=T[D],N=u.util.type(L);N==="Object"&&!M[A(L)]?(M[A(L)]=!0,R(L,O,null,M)):N==="Array"&&!M[A(L)]&&(M[A(L)]=!0,R(L,O,D,M))}}},plugins:{},highlightAll:function(R,T){u.highlightAllUnder(document,R,T)},highlightAllUnder:function(R,T,O){var _={callback:O,container:R,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),u.hooks.run("before-all-elements-highlight",_);for(var M=0,A;A=_.elements[M++];)u.highlightElement(A,T===!0,_.callback)},highlightElement:function(R,T,O){var _=u.util.getLanguage(R),M=u.languages[_];u.util.setLanguage(R,_);var A=R.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(A,_);var D=R.textContent,L={element:R,language:_,grammar:M,code:D};function N(j){L.highlightedCode=j,u.hooks.run("before-insert",L),L.element.innerHTML=L.highlightedCode,u.hooks.run("after-highlight",L),u.hooks.run("complete",L),O&&O.call(L.element)}if(u.hooks.run("before-sanity-check",L),A=L.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!L.code){u.hooks.run("complete",L),O&&O.call(L.element);return}if(u.hooks.run("before-highlight",L),!L.grammar){N(u.util.encode(L.code));return}if(T&&r.Worker){var H=new Worker(u.filename);H.onmessage=function(j){N(j.data)},H.postMessage(JSON.stringify({language:L.language,code:L.code,immediateClose:!0}))}else N(u.highlight(L.code,L.grammar,L.language))},highlight:function(R,T,O){var _={code:R,grammar:T,language:O};if(u.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=u.tokenize(_.code,_.grammar),u.hooks.run("after-tokenize",_),f.stringify(u.util.encode(_.tokens),_.language)},tokenize:function(R,T){var O=T.rest;if(O){for(var _ in O)T[_]=O[_];delete T.rest}var M=new g;return m(M,M.head,R),p(R,M,T,M.head,0),E(M)},hooks:{all:{},add:function(R,T){var O=u.hooks.all;O[R]=O[R]||[],O[R].push(T)},run:function(R,T){var O=u.hooks.all[R];if(!(!O||!O.length))for(var _=0,M;M=O[_++];)M(T)}},Token:f};r.Prism=u;function f(R,T,O,_){this.type=R,this.content=T,this.alias=O,this.length=(_||"").length|0}f.stringify=function R(T,O){if(typeof T=="string")return T;if(Array.isArray(T)){var _="";return T.forEach(function(N){_+=R(N,O)}),_}var M={type:T.type,content:R(T.content,O),tag:"span",classes:["token",T.type],attributes:{},language:O},A=T.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(M.classes,A):M.classes.push(A)),u.hooks.run("wrap",M);var D="";for(var L in M.attributes)D+=" "+L+'="'+(M.attributes[L]||"").replace(/"/g,"&quot;")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+D+">"+M.content+"</"+M.tag+">"};function d(R,T,O,_){R.lastIndex=T;var M=R.exec(O);if(M&&_&&M[1]){var A=M[1].length;M.index+=A,M[0]=M[0].slice(A)}return M}function p(R,T,O,_,M,A){for(var D in O)if(!(!O.hasOwnProperty(D)||!O[D])){var L=O[D];L=Array.isArray(L)?L:[L];for(var N=0;N<L.length;++N){if(A&&A.cause==D+","+N)return;var H=L[N],j=H.inside,F=!!H.lookbehind,q=!!H.greedy,U=H.alias;if(q&&!H.pattern.global){var P=H.pattern.toString().match(/[imsuy]*$/)[0];H.pattern=RegExp(H.pattern.source,P+"g")}for(var G=H.pattern||H,B=_.next,Y=M;B!==T.tail&&!(A&&Y>=A.reach);Y+=B.value.length,B=B.next){var J=B.value;if(T.length>R.length)return;if(!(J instanceof f)){var k=1,$;if(q){if($=d(G,Y,R,F),!$||$.index>=R.length)break;var ne=$.index,W=$.index+$[0].length,te=Y;for(te+=B.value.length;ne>=te;)B=B.next,te+=B.value.length;if(te-=B.value.length,Y=te,B.value instanceof f)continue;for(var ae=B;ae!==T.tail&&(te<W||typeof ae.value=="string");ae=ae.next)k++,te+=ae.value.length;k--,J=R.slice(Y,te),$.index-=Y}else if($=d(G,0,J,F),!$)continue;var ne=$.index,ce=$[0],Q=J.slice(0,ne),de=J.slice(ne+ce.length),ve=Y+J.length;A&&ve>A.reach&&(A.reach=ve);var ue=B.prev;Q&&(ue=m(T,ue,Q),Y+=Q.length),v(T,ue,k);var me=new f(D,j?u.tokenize(ce,j):ce,U,ce);if(B=m(T,ue,me),de&&m(T,B,de),k>1){var xe={cause:D+","+N,reach:ve};p(R,T,O,B.prev,Y,xe),A&&xe.reach>A.reach&&(A.reach=xe.reach)}}}}}}function g(){var R={value:null,prev:null,next:null},T={value:null,prev:R,next:null};R.next=T,this.head=R,this.tail=T,this.length=0}function m(R,T,O){var _=T.next,M={value:O,prev:T,next:_};return T.next=M,_.prev=M,R.length++,M}function v(R,T,O){for(var _=T.next,M=0;M<O&&_!==R.tail;M++)_=_.next;T.next=_,_.prev=T,R.length-=M}function E(R){for(var T=[],O=R.head.next;O!==R.tail;)T.push(O.value),O=O.next;return T}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(R){var T=JSON.parse(R.data),O=T.language,_=T.code,M=T.immediateClose;r.postMessage(u.highlight(_,u.languages[O],O)),M&&r.close()},!1)),u;var b=u.util.currentScript();b&&(u.filename=b.src,b.hasAttribute("data-manual")&&(u.manual=!0));function x(){u.manual||u.highlightAll()}if(!u.manual){var C=document.readyState;C==="loading"||C==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",x):window.requestAnimationFrame?window.requestAnimationFrame(x):window.setTimeout(x,16)}return u}(t);e.exports&&(e.exports=n),typeof e_<"u"&&(e_.Prism=n)}(_b)),_b.exports}var lte=ate();const sie=Ts(lte);(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);export{Ote as $,Tne as A,Lne as B,hne as C,Dre as D,fne as E,As as F,Lre as G,Ine as H,vne as I,Hne as J,yre as K,_re as L,cne as M,Pre as N,OI as O,Ate as P,xte as Q,fe as R,a8 as S,pne as T,Wte as U,Jte as V,Qte as W,NM as X,Ob as Y,fte as Z,pte as _,Jn as a,Voe as a$,z8 as a0,hte as a1,dte as a2,Tte as a3,Rte as a4,gte as a5,Mte as a6,cte as a7,yne as a8,pre as a9,vre as aA,dre as aB,nre as aC,lre as aD,zoe as aE,Are as aF,sne as aG,Loe as aH,Poe as aI,Noe as aJ,koe as aK,Foe as aL,Kne as aM,_ne as aN,Soe as aO,boe as aP,Eoe as aQ,xoe as aR,Coe as aS,woe as aT,Roe as aU,rne as aV,Wne as aW,Qoe as aX,Koe as aY,Zoe as aZ,Joe as a_,ore as aa,doe as ab,ere as ac,noe as ad,one as ae,ane as af,toe as ag,Ere as ah,Rre as ai,voe as aj,Sre as ak,mre as al,Xne as am,kne as an,Mne as ao,rre as ap,Pne as aq,Nne as ar,zne as as,Sne as at,Dne as au,bne as av,Une as aw,Kte as ax,ine as ay,are as az,nne as b,coe as b$,Uoe as b0,tL as b1,oie as b2,rie as b3,Am as b4,qne as b5,hre as b6,Ane as b7,goe as b8,hoe as b9,dZ as bA,moe as bB,ioe as bC,soe as bD,tre as bE,Rne as bF,Xoe as bG,eie as bH,Goe as bI,Woe as bJ,Hoe as bK,Yoe as bL,Ioe as bM,Doe as bN,Ooe as bO,Moe as bP,Aoe as bQ,Qre as bR,_oe as bS,xre as bT,kre as bU,Nre as bV,Jre as bW,Zre as bX,aoe as bY,loe as bZ,uoe as b_,poe as ba,Cne as bb,xne as bc,fre as bd,cre as be,ure as bf,Cre as bg,$ne as bh,bre as bi,wne as bj,ire as bk,wre as bl,Gne as bm,yoe as bn,qoe as bo,joe as bp,nie as bq,tie as br,Boe as bs,une as bt,Jne as bu,Zne as bv,gne as bw,Yne as bx,mne as by,$oe as bz,Zte as c,foe as c0,roe as c1,ooe as c2,jne as c3,eoe as c4,sre as c5,Vne as c6,Bne as c7,Fre as c8,zre as c9,Hre as ca,Bre as cb,Tre as cc,Ure as cd,Vre as ce,Kre as cf,jre as cg,Xre as ch,$re as ci,qre as cj,Gre as ck,Yre as cl,Wre as cm,Toe as cn,vte as co,yte as cp,bte as cq,Ste as cr,Ete as cs,wte as ct,iie as cu,sie as cv,H3 as d,YG as e,ene as f,z6 as g,S as h,tne as i,be as j,_te as k,mte as l,gre as m,Qne as n,lne as o,Fne as p,Ire as q,Dn as r,Ore as s,Mre as t,JG as u,One as v,Hc as w,fE as x,Ene as y,dne as z};
74
+ //# sourceMappingURL=vendor-BKUJ0_Du.js.map