@getontime/cli 4.2.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/assets/Backstage-CDH53Q_N.js +2 -0
- package/client/assets/Backstage-CDH53Q_N.js.br +0 -0
- package/client/assets/Backstage-CDH53Q_N.js.gz +0 -0
- package/client/assets/Backstage-CDH53Q_N.js.map +1 -0
- package/client/assets/Countdown-B-MuMf1C.js +2 -0
- package/client/assets/Countdown-B-MuMf1C.js.br +0 -0
- package/client/assets/Countdown-B-MuMf1C.js.gz +0 -0
- package/client/assets/Countdown-B-MuMf1C.js.map +1 -0
- package/client/assets/CustomTranslationModal-DiQbmcgD.js +2 -0
- package/client/assets/CustomTranslationModal-DiQbmcgD.js.br +0 -0
- package/client/assets/CustomTranslationModal-DiQbmcgD.js.gz +0 -0
- package/client/assets/{CustomTranslationModal-CtBvokyt.js.map → CustomTranslationModal-DiQbmcgD.js.map} +1 -1
- package/client/assets/DelayIndicator-D--91EO3.js +2 -0
- package/client/assets/DelayIndicator-D--91EO3.js.br +0 -0
- package/client/assets/DelayIndicator-D--91EO3.js.gz +0 -0
- package/client/assets/{DelayIndicator-BFZFpsY5.js.map → DelayIndicator-D--91EO3.js.map} +1 -1
- package/client/assets/EditorFeatureWrapper-DwXUAV4k.js +2 -0
- package/client/assets/EditorFeatureWrapper-DwXUAV4k.js.br +0 -0
- package/client/assets/EditorFeatureWrapper-DwXUAV4k.js.gz +0 -0
- package/client/assets/{EditorFeatureWrapper-DaMxgBMP.js.map → EditorFeatureWrapper-DwXUAV4k.js.map} +1 -1
- package/client/assets/EditorUtils-DuKjlUkF.js +2 -0
- package/client/assets/EditorUtils-DuKjlUkF.js.br +0 -0
- package/client/assets/EditorUtils-DuKjlUkF.js.gz +0 -0
- package/client/assets/{EditorUtils-DoaSwWiz.js.map → EditorUtils-DuKjlUkF.js.map} +1 -1
- package/client/assets/EditorUtils-L4Sg72o_.css +1 -0
- package/client/assets/EditorUtils-L4Sg72o_.css.br +0 -0
- package/client/assets/EditorUtils-L4Sg72o_.css.gz +0 -0
- package/client/assets/{Empty-D1UteOYj.js → Empty-CJbZxh45.js} +2 -2
- package/client/assets/Empty-CJbZxh45.js.br +0 -0
- package/client/assets/Empty-CJbZxh45.js.gz +0 -0
- package/client/assets/{Empty-D1UteOYj.js.map → Empty-CJbZxh45.js.map} +1 -1
- package/client/assets/{EmptyPage-DeRjpRKZ.js → EmptyPage-Bc358YpE.js} +2 -2
- package/client/assets/EmptyPage-Bc358YpE.js.br +5 -0
- package/client/assets/EmptyPage-Bc358YpE.js.gz +0 -0
- package/client/assets/{EmptyPage-DeRjpRKZ.js.map → EmptyPage-Bc358YpE.js.map} +1 -1
- package/client/assets/{FollowButton-FodezDem.js → FollowButton-C6Fvaqh0.js} +2 -2
- package/client/assets/FollowButton-C6Fvaqh0.js.br +0 -0
- package/client/assets/FollowButton-C6Fvaqh0.js.gz +0 -0
- package/client/assets/{FollowButton-FodezDem.js.map → FollowButton-C6Fvaqh0.js.map} +1 -1
- package/client/assets/MessageControlExport-D_pNX6Vj.css +1 -0
- package/client/assets/MessageControlExport-D_pNX6Vj.css.br +0 -0
- package/client/assets/MessageControlExport-D_pNX6Vj.css.gz +0 -0
- package/client/assets/MessageControlExport-GmOrvUik.js +3 -0
- package/client/assets/MessageControlExport-GmOrvUik.js.br +0 -0
- package/client/assets/MessageControlExport-GmOrvUik.js.gz +0 -0
- package/client/assets/MessageControlExport-GmOrvUik.js.map +1 -0
- package/client/assets/MilestoneEditor-BA0PVIQh.js +2 -0
- package/client/assets/MilestoneEditor-BA0PVIQh.js.br +0 -0
- package/client/assets/MilestoneEditor-BA0PVIQh.js.gz +0 -0
- package/client/assets/MilestoneEditor-BA0PVIQh.js.map +1 -0
- package/client/assets/Modal-BKx0PDGT.js +2 -0
- package/client/assets/Modal-BKx0PDGT.js.br +0 -0
- package/client/assets/Modal-BKx0PDGT.js.gz +0 -0
- package/client/assets/Modal-BKx0PDGT.js.map +1 -0
- package/client/assets/{MultiPartProgressBar-BKHk19Hb.js → MultiPartProgressBar-BXdLxJpy.js} +2 -2
- package/client/assets/MultiPartProgressBar-BXdLxJpy.js.br +0 -0
- package/client/assets/MultiPartProgressBar-BXdLxJpy.js.gz +0 -0
- package/client/assets/{MultiPartProgressBar-BKHk19Hb.js.map → MultiPartProgressBar-BXdLxJpy.js.map} +1 -1
- package/client/assets/OperatorExport-CA5WcIt5.css +1 -0
- package/client/assets/OperatorExport-CA5WcIt5.css.br +0 -0
- package/client/assets/OperatorExport-CA5WcIt5.css.gz +0 -0
- package/client/assets/OperatorExport-X7-qi2jv.js +2 -0
- package/client/assets/OperatorExport-X7-qi2jv.js.br +0 -0
- package/client/assets/OperatorExport-X7-qi2jv.js.gz +0 -0
- package/client/assets/OperatorExport-X7-qi2jv.js.map +1 -0
- package/client/assets/OverviewWrapper-BQb2xl_N.js +2 -0
- package/client/assets/OverviewWrapper-BQb2xl_N.js.br +0 -0
- package/client/assets/OverviewWrapper-BQb2xl_N.js.gz +0 -0
- package/client/assets/OverviewWrapper-BQb2xl_N.js.map +1 -0
- package/client/assets/{PipHost-B9-cZ8Lm.js → PipHost-CvtlZIn7.js} +2 -2
- package/client/assets/PipHost-CvtlZIn7.js.br +0 -0
- package/client/assets/PipHost-CvtlZIn7.js.gz +0 -0
- package/client/assets/PipHost-CvtlZIn7.js.map +1 -0
- package/client/assets/ProjectInfo-1tw48NHZ.js +2 -0
- package/client/assets/ProjectInfo-1tw48NHZ.js.br +0 -0
- package/client/assets/ProjectInfo-1tw48NHZ.js.gz +0 -0
- package/client/assets/{ProjectInfo-Dp1TZyBd.js.map → ProjectInfo-1tw48NHZ.js.map} +1 -1
- package/client/assets/{ProtectRoute-EejQ5o_H.js → ProtectRoute-BH-QvsU0.js} +2 -2
- package/client/assets/ProtectRoute-BH-QvsU0.js.br +0 -0
- package/client/assets/ProtectRoute-BH-QvsU0.js.gz +0 -0
- package/client/assets/{ProtectRoute-EejQ5o_H.js.map → ProtectRoute-BH-QvsU0.js.map} +1 -1
- package/client/assets/ProtectedCuesheet-CYBIcg1c.js +2 -0
- package/client/assets/ProtectedCuesheet-CYBIcg1c.js.br +0 -0
- package/client/assets/ProtectedCuesheet-CYBIcg1c.js.gz +0 -0
- package/client/assets/ProtectedCuesheet-CYBIcg1c.js.map +1 -0
- package/client/assets/ProtectedCuesheet-DPO7xYMb.css +1 -0
- package/client/assets/ProtectedCuesheet-DPO7xYMb.css.br +0 -0
- package/client/assets/ProtectedCuesheet-DPO7xYMb.css.gz +0 -0
- package/client/assets/{ProtectedEditor-Dw0pWw0J.css → ProtectedEditor-BtSuTFlT.css} +1 -1
- package/client/assets/ProtectedEditor-BtSuTFlT.css.br +0 -0
- package/client/assets/{ProtectedEditor-Dw0pWw0J.css.gz → ProtectedEditor-BtSuTFlT.css.gz} +0 -0
- package/client/assets/ProtectedEditor-D_A75byA.js +3 -0
- package/client/assets/ProtectedEditor-D_A75byA.js.br +0 -0
- package/client/assets/ProtectedEditor-D_A75byA.js.gz +0 -0
- package/client/assets/ProtectedEditor-D_A75byA.js.map +1 -0
- package/client/assets/RundownEntry-bkqwx57t.js +2 -0
- package/client/assets/RundownEntry-bkqwx57t.js.br +0 -0
- package/client/assets/RundownEntry-bkqwx57t.js.gz +0 -0
- package/client/assets/RundownEntry-bkqwx57t.js.map +1 -0
- package/client/assets/{RundownExport-DtSvAfBG.css → RundownExport-Bgtg_idR.css} +1 -1
- package/client/assets/RundownExport-Bgtg_idR.css.br +0 -0
- package/client/assets/RundownExport-Bgtg_idR.css.gz +0 -0
- package/client/assets/RundownExport-EorsanA0.js +3 -0
- package/client/assets/RundownExport-EorsanA0.js.br +0 -0
- package/client/assets/RundownExport-EorsanA0.js.gz +0 -0
- package/client/assets/RundownExport-EorsanA0.js.map +1 -0
- package/client/assets/{Select-cHK8JrMG.js → Select-BGGVCKqU.js} +2 -2
- package/client/assets/Select-BGGVCKqU.js.br +0 -0
- package/client/assets/Select-BGGVCKqU.js.gz +0 -0
- package/client/assets/Select-BGGVCKqU.js.map +1 -0
- package/client/assets/Studio-BjNZ4l-W.js +2 -0
- package/client/assets/Studio-BjNZ4l-W.js.br +0 -0
- package/client/assets/Studio-BjNZ4l-W.js.gz +0 -0
- package/client/assets/Studio-BjNZ4l-W.js.map +1 -0
- package/client/assets/{StyleEditor-RZvkKHdf.js → StyleEditor-CpciRLYh.js} +2 -2
- package/client/assets/StyleEditor-CpciRLYh.js.br +0 -0
- package/client/assets/StyleEditor-CpciRLYh.js.gz +0 -0
- package/client/assets/{StyleEditor-RZvkKHdf.js.map → StyleEditor-CpciRLYh.js.map} +1 -1
- package/client/assets/{SuperscriptPeriod-DaZq1rr6.js → SuperscriptPeriod-DsPdWN_s.js} +2 -2
- package/client/assets/SuperscriptPeriod-DsPdWN_s.js.br +0 -0
- package/client/assets/SuperscriptPeriod-DsPdWN_s.js.gz +0 -0
- package/client/assets/SuperscriptPeriod-DsPdWN_s.js.map +1 -0
- package/client/assets/SuperscriptTime-CA6S2R55.js +2 -0
- package/client/assets/SuperscriptTime-CA6S2R55.js.br +0 -0
- package/client/assets/SuperscriptTime-CA6S2R55.js.gz +0 -0
- package/client/assets/SuperscriptTime-CA6S2R55.js.map +1 -0
- package/client/assets/SwatchPicker-Cm5Eicvv.js +2 -0
- package/client/assets/SwatchPicker-Cm5Eicvv.js.br +0 -0
- package/client/assets/SwatchPicker-Cm5Eicvv.js.gz +0 -0
- package/client/assets/SwatchPicker-Cm5Eicvv.js.map +1 -0
- package/client/assets/{TimeElements-dIvFHgcd.js → TimeElements-DbclWDbU.js} +2 -2
- package/client/assets/TimeElements-DbclWDbU.js.br +0 -0
- package/client/assets/TimeElements-DbclWDbU.js.gz +0 -0
- package/client/assets/TimeElements-DbclWDbU.js.map +1 -0
- package/client/assets/TimeInput-C8DQoFXv.js +2 -0
- package/client/assets/TimeInput-C8DQoFXv.js.br +0 -0
- package/client/assets/TimeInput-C8DQoFXv.js.gz +0 -0
- package/client/assets/{TimeInput-Duzx40TC.js.map → TimeInput-C8DQoFXv.js.map} +1 -1
- package/client/assets/TimelinePage-Cgtl1qNp.js +2 -0
- package/client/assets/TimelinePage-Cgtl1qNp.js.br +0 -0
- package/client/assets/TimelinePage-Cgtl1qNp.js.gz +0 -0
- package/client/assets/TimelinePage-Cgtl1qNp.js.map +1 -0
- package/client/assets/Timer-BbixOGdj.js +2 -0
- package/client/assets/Timer-BbixOGdj.js.br +0 -0
- package/client/assets/Timer-BbixOGdj.js.gz +0 -0
- package/client/assets/Timer-BbixOGdj.js.map +1 -0
- package/client/assets/TimerControlExport-Dx3SSGNG.js +2 -0
- package/client/assets/TimerControlExport-Dx3SSGNG.js.br +0 -0
- package/client/assets/TimerControlExport-Dx3SSGNG.js.gz +0 -0
- package/client/assets/{TimerControlExport-GJn4WWdH.js.map → TimerControlExport-Dx3SSGNG.js.map} +1 -1
- package/client/assets/{TimerControlExport-DavNxY9p.css → TimerControlExport-cJRa5GUp.css} +1 -1
- package/client/assets/TimerControlExport-cJRa5GUp.css.br +0 -0
- package/client/assets/{TimerControlExport-DavNxY9p.css.gz → TimerControlExport-cJRa5GUp.css.gz} +0 -0
- package/client/assets/{TitleCard-BqbrUnHO.js → TitleCard-Xdr7xwzU.js} +2 -2
- package/client/assets/TitleCard-Xdr7xwzU.js.br +0 -0
- package/client/assets/TitleCard-Xdr7xwzU.js.gz +0 -0
- package/client/assets/{TitleCard-BqbrUnHO.js.map → TitleCard-Xdr7xwzU.js.map} +1 -1
- package/client/assets/{Tooltip-BQBvaIZx.js → Tooltip-B5vsLcFu.js} +2 -2
- package/client/assets/Tooltip-B5vsLcFu.js.br +0 -0
- package/client/assets/Tooltip-B5vsLcFu.js.gz +0 -0
- package/client/assets/Tooltip-B5vsLcFu.js.map +1 -0
- package/client/assets/{ViewLogo-BdL1hUV1.js → ViewLogo-G7EosFIr.js} +2 -2
- package/client/assets/ViewLogo-G7EosFIr.js.br +0 -0
- package/client/assets/ViewLogo-G7EosFIr.js.gz +0 -0
- package/client/assets/{ViewLogo-BdL1hUV1.js.map → ViewLogo-G7EosFIr.js.map} +1 -1
- package/client/assets/ViewParamsEditor-C2-TRP6e.js +2 -0
- package/client/assets/ViewParamsEditor-C2-TRP6e.js.br +0 -0
- package/client/assets/ViewParamsEditor-C2-TRP6e.js.gz +0 -0
- package/client/assets/ViewParamsEditor-C2-TRP6e.js.map +1 -0
- package/client/assets/{dateConfig-BU1RZfIK.js → dateConfig-D7xim1t4.js} +2 -2
- package/client/assets/dateConfig-D7xim1t4.js.br +0 -0
- package/client/assets/dateConfig-D7xim1t4.js.gz +0 -0
- package/client/assets/{dateConfig-BU1RZfIK.js.map → dateConfig-D7xim1t4.js.map} +1 -1
- package/client/assets/{editorSettings-BMt-7s8I.js → editorSettings-D2f7e1a6.js} +2 -2
- package/client/assets/editorSettings-D2f7e1a6.js.br +0 -0
- package/client/assets/editorSettings-D2f7e1a6.js.gz +0 -0
- package/client/assets/{editorSettings-BMt-7s8I.js.map → editorSettings-D2f7e1a6.js.map} +1 -1
- package/client/assets/{getProgress-sdxPEEPi.js → getProgress-cLuBFPjh.js} +2 -2
- package/client/assets/getProgress-cLuBFPjh.js.br +0 -0
- package/client/assets/getProgress-cLuBFPjh.js.gz +0 -0
- package/client/assets/{getProgress-sdxPEEPi.js.map → getProgress-cLuBFPjh.js.map} +1 -1
- package/client/assets/index-B81u4hxi.js +3 -0
- package/client/assets/index-B81u4hxi.js.br +0 -0
- package/client/assets/index-B81u4hxi.js.gz +0 -0
- package/client/assets/index-B81u4hxi.js.map +1 -0
- package/client/assets/{index-BuJoGGff.css → index-D6S93MXv.css} +1 -1
- package/client/assets/index-D6S93MXv.css.br +0 -0
- package/client/assets/index-D6S93MXv.css.gz +0 -0
- package/client/assets/{offset-BS90Rks2.js → offset-R98EXhWK.js} +2 -2
- package/client/assets/offset-R98EXhWK.js.br +0 -0
- package/client/assets/offset-R98EXhWK.js.gz +0 -0
- package/client/assets/{offset-BS90Rks2.js.map → offset-R98EXhWK.js.map} +1 -1
- package/client/assets/{parseUserTime-DZJMcfuJ.js → parseUserTime-YeFR8t3F.js} +2 -2
- package/client/assets/parseUserTime-YeFR8t3F.js.br +0 -0
- package/client/assets/parseUserTime-YeFR8t3F.js.gz +0 -0
- package/client/assets/{parseUserTime-DZJMcfuJ.js.map → parseUserTime-YeFR8t3F.js.map} +1 -1
- package/client/assets/{playbackstate-CWexoP3a.js → playbackstate-CPQdnF-k.js} +2 -2
- package/client/assets/playbackstate-CPQdnF-k.js.br +0 -0
- package/client/assets/playbackstate-CPQdnF-k.js.gz +0 -0
- package/client/assets/{playbackstate-CWexoP3a.js.map → playbackstate-CPQdnF-k.js.map} +1 -1
- package/client/assets/{presentation.utils-Zo5hNQje.js → presentation.utils-Cl-L3pHN.js} +2 -2
- package/client/assets/presentation.utils-Cl-L3pHN.js.br +0 -0
- package/client/assets/presentation.utils-Cl-L3pHN.js.gz +0 -0
- package/client/assets/{presentation.utils-Zo5hNQje.js.map → presentation.utils-Cl-L3pHN.js.map} +1 -1
- package/client/assets/rundownUtils-CtVGQDQn.js +2 -0
- package/client/assets/rundownUtils-CtVGQDQn.js.br +0 -0
- package/client/assets/rundownUtils-CtVGQDQn.js.gz +0 -0
- package/client/assets/{rundownUtils-Dl1x6NDv.js.map → rundownUtils-CtVGQDQn.js.map} +1 -1
- package/client/assets/{timer.utils-BnMyVO6Z.js → timer.utils-rGyI9NYa.js} +2 -2
- package/client/assets/timer.utils-rGyI9NYa.js.br +0 -0
- package/client/assets/timer.utils-rGyI9NYa.js.gz +0 -0
- package/client/assets/timer.utils-rGyI9NYa.js.map +1 -0
- package/client/assets/{useCustomFields-CcTb-GQM.js → useCustomFields-k4piRt9n.js} +2 -2
- package/client/assets/useCustomFields-k4piRt9n.js.br +0 -0
- package/client/assets/useCustomFields-k4piRt9n.js.gz +0 -0
- package/client/assets/{useCustomFields-CcTb-GQM.js.map → useCustomFields-k4piRt9n.js.map} +1 -1
- package/client/assets/{useFollowComponent-BjhV6Uv8.js → useFollowComponent-B7vvPzG2.js} +2 -2
- package/client/assets/useFollowComponent-B7vvPzG2.js.br +0 -0
- package/client/assets/useFollowComponent-B7vvPzG2.js.gz +0 -0
- package/client/assets/{useFollowComponent-BjhV6Uv8.js.map → useFollowComponent-B7vvPzG2.js.map} +1 -1
- package/client/assets/useProjectData-DdgKoYzk.js +2 -0
- package/client/assets/useProjectData-DdgKoYzk.js.br +0 -0
- package/client/assets/useProjectData-DdgKoYzk.js.gz +0 -0
- package/client/assets/useProjectData-DdgKoYzk.js.map +1 -0
- package/client/assets/{useReport-zMbyWwpn.js → useReport-DSuFnUb9.js} +2 -2
- package/client/assets/useReport-DSuFnUb9.js.br +0 -0
- package/client/assets/useReport-DSuFnUb9.js.gz +0 -0
- package/client/assets/{useReport-zMbyWwpn.js.map → useReport-DSuFnUb9.js.map} +1 -1
- package/client/assets/useRundown-Bn6ZPsz0.js +2 -0
- package/client/assets/useRundown-Bn6ZPsz0.js.br +0 -0
- package/client/assets/useRundown-Bn6ZPsz0.js.gz +0 -0
- package/client/assets/useRundown-Bn6ZPsz0.js.map +1 -0
- package/client/assets/{useWindowTitle-mLKt65i7.js → useWindowTitle-Bpmo_HzW.js} +2 -2
- package/client/assets/useWindowTitle-Bpmo_HzW.js.br +0 -0
- package/client/assets/useWindowTitle-Bpmo_HzW.js.gz +0 -0
- package/client/assets/useWindowTitle-Bpmo_HzW.js.map +1 -0
- package/client/assets/{validateEvent-CUmvjN95.js → validateEvent-Do8yE_DJ.js} +2 -2
- package/client/assets/validateEvent-Do8yE_DJ.js.br +3 -0
- package/client/assets/validateEvent-Do8yE_DJ.js.gz +0 -0
- package/client/assets/{validateEvent-CUmvjN95.js.map → validateEvent-Do8yE_DJ.js.map} +1 -1
- package/client/assets/vendor-q6fv0YT2.js +74 -0
- package/client/assets/vendor-q6fv0YT2.js.br +0 -0
- package/client/assets/vendor-q6fv0YT2.js.gz +0 -0
- package/client/assets/{vendor-Cdwxo8bP.js.map → vendor-q6fv0YT2.js.map} +1 -1
- package/client/assets/{viewLoader.utils-DuXjY5zb.js → viewLoader.utils-b42scp-I.js} +2 -2
- package/client/assets/viewLoader.utils-b42scp-I.js.br +0 -0
- package/client/assets/viewLoader.utils-b42scp-I.js.gz +0 -0
- package/client/assets/{viewLoader.utils-DuXjY5zb.js.map → viewLoader.utils-b42scp-I.js.map} +1 -1
- package/client/assets/{viewUtils-dKRKkb_F.js → viewUtils-B8Dr4GHH.js} +2 -2
- package/client/assets/viewUtils-B8Dr4GHH.js.br +0 -0
- package/client/assets/viewUtils-B8Dr4GHH.js.gz +0 -0
- package/client/assets/viewUtils-B8Dr4GHH.js.map +1 -0
- package/client/index.html +3 -3
- package/package.json +1 -1
- package/server/index.cjs +100 -100
- package/client/assets/Backstage-WSlbFC9X.js +0 -2
- package/client/assets/Backstage-WSlbFC9X.js.br +0 -0
- package/client/assets/Backstage-WSlbFC9X.js.gz +0 -0
- package/client/assets/Backstage-WSlbFC9X.js.map +0 -1
- package/client/assets/Countdown-B32qlxYT.js +0 -2
- package/client/assets/Countdown-B32qlxYT.js.br +0 -0
- package/client/assets/Countdown-B32qlxYT.js.gz +0 -0
- package/client/assets/Countdown-B32qlxYT.js.map +0 -1
- package/client/assets/CustomTranslationModal-CtBvokyt.js +0 -2
- package/client/assets/CustomTranslationModal-CtBvokyt.js.br +0 -0
- package/client/assets/CustomTranslationModal-CtBvokyt.js.gz +0 -0
- package/client/assets/DelayIndicator-BFZFpsY5.js +0 -2
- package/client/assets/DelayIndicator-BFZFpsY5.js.br +0 -0
- package/client/assets/DelayIndicator-BFZFpsY5.js.gz +0 -0
- package/client/assets/Editor-B_NlyOLw.css +0 -1
- package/client/assets/Editor-B_NlyOLw.css.br +0 -0
- package/client/assets/Editor-B_NlyOLw.css.gz +0 -0
- package/client/assets/Editor.module-DvV2efYs.js +0 -2
- package/client/assets/Editor.module-DvV2efYs.js.br +0 -0
- package/client/assets/Editor.module-DvV2efYs.js.gz +0 -0
- package/client/assets/Editor.module-DvV2efYs.js.map +0 -1
- package/client/assets/EditorFeatureWrapper-DaMxgBMP.js +0 -2
- package/client/assets/EditorFeatureWrapper-DaMxgBMP.js.br +0 -0
- package/client/assets/EditorFeatureWrapper-DaMxgBMP.js.gz +0 -0
- package/client/assets/EditorUtils-CgF7UfHP.css +0 -1
- package/client/assets/EditorUtils-CgF7UfHP.css.br +0 -0
- package/client/assets/EditorUtils-CgF7UfHP.css.gz +0 -0
- package/client/assets/EditorUtils-DoaSwWiz.js +0 -2
- package/client/assets/EditorUtils-DoaSwWiz.js.br +0 -0
- package/client/assets/EditorUtils-DoaSwWiz.js.gz +0 -0
- package/client/assets/Empty-D1UteOYj.js.br +0 -0
- package/client/assets/Empty-D1UteOYj.js.gz +0 -0
- package/client/assets/EmptyPage-DeRjpRKZ.js.br +0 -0
- package/client/assets/EmptyPage-DeRjpRKZ.js.gz +0 -0
- package/client/assets/FollowButton-FodezDem.js.br +0 -0
- package/client/assets/FollowButton-FodezDem.js.gz +0 -0
- package/client/assets/MessageControlExport-CFGgiwk_.js +0 -3
- package/client/assets/MessageControlExport-CFGgiwk_.js.br +0 -0
- package/client/assets/MessageControlExport-CFGgiwk_.js.gz +0 -0
- package/client/assets/MessageControlExport-CFGgiwk_.js.map +0 -1
- package/client/assets/MessageControlExport-DjoUioWA.css +0 -1
- package/client/assets/MessageControlExport-DjoUioWA.css.br +0 -0
- package/client/assets/MessageControlExport-DjoUioWA.css.gz +0 -0
- package/client/assets/MilestoneEditor-B5BdJ5ju.js +0 -2
- package/client/assets/MilestoneEditor-B5BdJ5ju.js.br +0 -0
- package/client/assets/MilestoneEditor-B5BdJ5ju.js.gz +0 -0
- package/client/assets/MilestoneEditor-B5BdJ5ju.js.map +0 -1
- package/client/assets/Modal-B8ZZbVMg.js +0 -2
- package/client/assets/Modal-B8ZZbVMg.js.br +0 -0
- package/client/assets/Modal-B8ZZbVMg.js.gz +0 -0
- package/client/assets/Modal-B8ZZbVMg.js.map +0 -1
- package/client/assets/MultiPartProgressBar-BKHk19Hb.js.br +0 -0
- package/client/assets/MultiPartProgressBar-BKHk19Hb.js.gz +0 -0
- package/client/assets/OperatorExport-BiBcgVKc.css +0 -1
- package/client/assets/OperatorExport-BiBcgVKc.css.br +0 -0
- package/client/assets/OperatorExport-BiBcgVKc.css.gz +0 -0
- package/client/assets/OperatorExport-DQM14DsN.js +0 -2
- package/client/assets/OperatorExport-DQM14DsN.js.br +0 -0
- package/client/assets/OperatorExport-DQM14DsN.js.gz +0 -0
- package/client/assets/OperatorExport-DQM14DsN.js.map +0 -1
- package/client/assets/OverviewWrapper-D1hUkrRi.js +0 -2
- package/client/assets/OverviewWrapper-D1hUkrRi.js.br +0 -0
- package/client/assets/OverviewWrapper-D1hUkrRi.js.gz +0 -0
- package/client/assets/OverviewWrapper-D1hUkrRi.js.map +0 -1
- package/client/assets/PipHost-B9-cZ8Lm.js.br +0 -0
- package/client/assets/PipHost-B9-cZ8Lm.js.gz +0 -0
- package/client/assets/PipHost-B9-cZ8Lm.js.map +0 -1
- package/client/assets/ProjectInfo-Dp1TZyBd.js +0 -2
- package/client/assets/ProjectInfo-Dp1TZyBd.js.br +0 -0
- package/client/assets/ProjectInfo-Dp1TZyBd.js.gz +0 -0
- package/client/assets/ProtectRoute-EejQ5o_H.js.br +0 -0
- package/client/assets/ProtectRoute-EejQ5o_H.js.gz +0 -0
- package/client/assets/ProtectedCuesheet-C_tKodwo.css +0 -1
- package/client/assets/ProtectedCuesheet-C_tKodwo.css.br +0 -0
- package/client/assets/ProtectedCuesheet-C_tKodwo.css.gz +0 -0
- package/client/assets/ProtectedCuesheet-DvYSgueA.js +0 -2
- package/client/assets/ProtectedCuesheet-DvYSgueA.js.br +0 -0
- package/client/assets/ProtectedCuesheet-DvYSgueA.js.gz +0 -0
- package/client/assets/ProtectedCuesheet-DvYSgueA.js.map +0 -1
- package/client/assets/ProtectedEditor-B0l0X3QP.js +0 -3
- package/client/assets/ProtectedEditor-B0l0X3QP.js.br +0 -0
- package/client/assets/ProtectedEditor-B0l0X3QP.js.gz +0 -0
- package/client/assets/ProtectedEditor-B0l0X3QP.js.map +0 -1
- package/client/assets/ProtectedEditor-Dw0pWw0J.css.br +0 -0
- package/client/assets/RundownEntry-CwiStTnR.js +0 -2
- package/client/assets/RundownEntry-CwiStTnR.js.br +0 -0
- package/client/assets/RundownEntry-CwiStTnR.js.gz +0 -0
- package/client/assets/RundownEntry-CwiStTnR.js.map +0 -1
- package/client/assets/RundownExport-CCaOfHIr.js +0 -3
- package/client/assets/RundownExport-CCaOfHIr.js.br +0 -0
- package/client/assets/RundownExport-CCaOfHIr.js.gz +0 -0
- package/client/assets/RundownExport-CCaOfHIr.js.map +0 -1
- package/client/assets/RundownExport-DtSvAfBG.css.br +0 -0
- package/client/assets/RundownExport-DtSvAfBG.css.gz +0 -0
- package/client/assets/Select-cHK8JrMG.js.br +0 -0
- package/client/assets/Select-cHK8JrMG.js.gz +0 -0
- package/client/assets/Select-cHK8JrMG.js.map +0 -1
- package/client/assets/Studio-BzwFDYzk.js +0 -2
- package/client/assets/Studio-BzwFDYzk.js.br +0 -0
- package/client/assets/Studio-BzwFDYzk.js.gz +0 -0
- package/client/assets/Studio-BzwFDYzk.js.map +0 -1
- package/client/assets/StyleEditor-RZvkKHdf.js.br +0 -0
- package/client/assets/StyleEditor-RZvkKHdf.js.gz +0 -0
- package/client/assets/SuperscriptPeriod-DaZq1rr6.js.br +0 -0
- package/client/assets/SuperscriptPeriod-DaZq1rr6.js.gz +0 -0
- package/client/assets/SuperscriptPeriod-DaZq1rr6.js.map +0 -1
- package/client/assets/SuperscriptTime-Mc0ZGBMo.js +0 -2
- package/client/assets/SuperscriptTime-Mc0ZGBMo.js.br +0 -0
- package/client/assets/SuperscriptTime-Mc0ZGBMo.js.gz +0 -0
- package/client/assets/SuperscriptTime-Mc0ZGBMo.js.map +0 -1
- package/client/assets/TimeElements-dIvFHgcd.js.br +0 -0
- package/client/assets/TimeElements-dIvFHgcd.js.gz +0 -0
- package/client/assets/TimeElements-dIvFHgcd.js.map +0 -1
- package/client/assets/TimeInput-Duzx40TC.js +0 -2
- package/client/assets/TimeInput-Duzx40TC.js.br +0 -0
- package/client/assets/TimeInput-Duzx40TC.js.gz +0 -0
- package/client/assets/TimelinePage-C-OHrCR8.js +0 -2
- package/client/assets/TimelinePage-C-OHrCR8.js.br +0 -0
- package/client/assets/TimelinePage-C-OHrCR8.js.gz +0 -0
- package/client/assets/TimelinePage-C-OHrCR8.js.map +0 -1
- package/client/assets/Timer-CGqVtVEC.js +0 -2
- package/client/assets/Timer-CGqVtVEC.js.br +0 -0
- package/client/assets/Timer-CGqVtVEC.js.gz +0 -0
- package/client/assets/Timer-CGqVtVEC.js.map +0 -1
- package/client/assets/TimerControlExport-DavNxY9p.css.br +0 -0
- package/client/assets/TimerControlExport-GJn4WWdH.js +0 -2
- package/client/assets/TimerControlExport-GJn4WWdH.js.br +0 -0
- package/client/assets/TimerControlExport-GJn4WWdH.js.gz +0 -0
- package/client/assets/TitleCard-BqbrUnHO.js.br +0 -0
- package/client/assets/TitleCard-BqbrUnHO.js.gz +0 -0
- package/client/assets/Tooltip-BQBvaIZx.js.br +0 -0
- package/client/assets/Tooltip-BQBvaIZx.js.gz +0 -0
- package/client/assets/Tooltip-BQBvaIZx.js.map +0 -1
- package/client/assets/ViewLogo-BdL1hUV1.js.br +0 -0
- package/client/assets/ViewLogo-BdL1hUV1.js.gz +0 -0
- package/client/assets/ViewParamsEditor-CFedpp6w.js +0 -2
- package/client/assets/ViewParamsEditor-CFedpp6w.js.br +0 -0
- package/client/assets/ViewParamsEditor-CFedpp6w.js.gz +0 -0
- package/client/assets/ViewParamsEditor-CFedpp6w.js.map +0 -1
- package/client/assets/dateConfig-BU1RZfIK.js.br +0 -0
- package/client/assets/dateConfig-BU1RZfIK.js.gz +0 -0
- package/client/assets/editorSettings-BMt-7s8I.js.br +0 -0
- package/client/assets/editorSettings-BMt-7s8I.js.gz +0 -0
- package/client/assets/getProgress-sdxPEEPi.js.br +0 -0
- package/client/assets/getProgress-sdxPEEPi.js.gz +0 -0
- package/client/assets/index-BuJoGGff.css.br +0 -0
- package/client/assets/index-BuJoGGff.css.gz +0 -0
- package/client/assets/index-CoGiopcb.js +0 -3
- package/client/assets/index-CoGiopcb.js.br +0 -0
- package/client/assets/index-CoGiopcb.js.gz +0 -0
- package/client/assets/index-CoGiopcb.js.map +0 -1
- package/client/assets/offset-BS90Rks2.js.br +0 -0
- package/client/assets/offset-BS90Rks2.js.gz +0 -0
- package/client/assets/parseUserTime-DZJMcfuJ.js.br +0 -0
- package/client/assets/parseUserTime-DZJMcfuJ.js.gz +0 -0
- package/client/assets/playbackstate-CWexoP3a.js.br +0 -0
- package/client/assets/playbackstate-CWexoP3a.js.gz +0 -0
- package/client/assets/presentation.utils-Zo5hNQje.js.br +0 -0
- package/client/assets/presentation.utils-Zo5hNQje.js.gz +0 -0
- package/client/assets/rundownUtils-Dl1x6NDv.js +0 -2
- package/client/assets/rundownUtils-Dl1x6NDv.js.br +0 -0
- package/client/assets/rundownUtils-Dl1x6NDv.js.gz +0 -0
- package/client/assets/timer.utils-BnMyVO6Z.js.br +0 -0
- package/client/assets/timer.utils-BnMyVO6Z.js.gz +0 -0
- package/client/assets/timer.utils-BnMyVO6Z.js.map +0 -1
- package/client/assets/useCustomFields-CcTb-GQM.js.br +0 -0
- package/client/assets/useCustomFields-CcTb-GQM.js.gz +0 -0
- package/client/assets/useFollowComponent-BjhV6Uv8.js.br +0 -0
- package/client/assets/useFollowComponent-BjhV6Uv8.js.gz +0 -0
- package/client/assets/useProjectData-B5mjXsMj.js +0 -2
- package/client/assets/useProjectData-B5mjXsMj.js.br +0 -0
- package/client/assets/useProjectData-B5mjXsMj.js.gz +0 -0
- package/client/assets/useProjectData-B5mjXsMj.js.map +0 -1
- package/client/assets/useReport-zMbyWwpn.js.br +0 -0
- package/client/assets/useReport-zMbyWwpn.js.gz +0 -0
- package/client/assets/useRundown-CHsh5rnl.js +0 -2
- package/client/assets/useRundown-CHsh5rnl.js.br +0 -0
- package/client/assets/useRundown-CHsh5rnl.js.gz +0 -0
- package/client/assets/useRundown-CHsh5rnl.js.map +0 -1
- package/client/assets/useWindowTitle-mLKt65i7.js.br +0 -0
- package/client/assets/useWindowTitle-mLKt65i7.js.gz +0 -0
- package/client/assets/useWindowTitle-mLKt65i7.js.map +0 -1
- package/client/assets/validateEvent-CUmvjN95.js.br +0 -0
- package/client/assets/validateEvent-CUmvjN95.js.gz +0 -0
- package/client/assets/vendor-Cdwxo8bP.js +0 -75
- package/client/assets/vendor-Cdwxo8bP.js.br +0 -0
- package/client/assets/vendor-Cdwxo8bP.js.gz +0 -0
- package/client/assets/viewLoader.utils-DuXjY5zb.js.br +0 -0
- package/client/assets/viewLoader.utils-DuXjY5zb.js.gz +0 -0
- package/client/assets/viewUtils-dKRKkb_F.js.br +0 -0
- package/client/assets/viewUtils-dKRKkb_F.js.gz +0 -0
- package/client/assets/viewUtils-dKRKkb_F.js.map +0 -1
- /package/client/assets/{useProjectData-Cw1aXCwD.css → SwatchPicker-Cw1aXCwD.css} +0 -0
- /package/client/assets/{useProjectData-Cw1aXCwD.css.br → SwatchPicker-Cw1aXCwD.css.br} +0 -0
- /package/client/assets/{useProjectData-Cw1aXCwD.css.gz → SwatchPicker-Cw1aXCwD.css.gz} +0 -0
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var Xk=Object.defineProperty;var N_=e=>{throw TypeError(e)};var Qk=(e,t,n)=>t in e?Xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rn=(e,t,n)=>Qk(e,typeof t!="symbol"?t+"":t,n),ny=(e,t,n)=>t.has(e)||N_("Cannot "+n);var ee=(e,t,n)=>(ny(e,t,"read from private field"),n?n.call(e):t.get(e)),Ze=(e,t,n)=>t.has(e)?N_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ue=(e,t,n,r)=>(ny(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Rt=(e,t,n)=>(ny(e,t,"access private method"),n);var Kh=(e,t,n,r)=>({set _(o){Ue(e,t,o,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]="040e6572-86a4-4f8e-9858-a5a3fdaa5209",e._sentryDebugIdIdentifier="sentry-dbid-040e6572-86a4-4f8e-9858-a5a3fdaa5209")}catch{}})();function fM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Zk=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Zk.SENTRY_RELEASE={id:"9ba5ebd4bda3bf6798617277b351cf439737676c"};var F_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ry={exports:{}},gf={};var B_;function Jk(){if(B_)return gf;B_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var l=null;if(s!==void 0&&(l=""+s),o.key!==void 0&&(l=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:s}}return gf.Fragment=t,gf.jsx=n,gf.jsxs=n,gf}var H_;function eL(){return H_||(H_=1,ry.exports=Jk()),ry.exports}var Ee=eL(),oy={exports:{}},vt={};var z_;function tL(){if(z_)return vt;z_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function m(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function R(P,Q,Z){this.props=P,this.context=Q,this.refs=S,this.updater=Z||y}R.prototype.isReactComponent={},R.prototype.setState=function(P,Q){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,Q,"setState")},R.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function C(){}C.prototype=R.prototype;function x(P,Q,Z){this.props=P,this.context=Q,this.refs=S,this.updater=Z||y}var _=x.prototype=new C;_.constructor=x,b(_,R.prototype),_.isPureReactComponent=!0;var M=Array.isArray,T={H:null,A:null,T:null,S:null,V:null},A=Object.prototype.hasOwnProperty;function O(P,Q,Z,G,ne,re){return Z=re.ref,{$$typeof:e,type:P,key:Q,ref:Z!==void 0?Z:null,props:re}}function k(P,Q){return O(P.type,Q,void 0,void 0,void 0,P.props)}function D(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function U(P){var Q={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(Z){return Q[Z]})}var L=/\/+/g;function j(P,Q){return typeof P=="object"&&P!==null&&P.key!=null?U(""+P.key):Q.toString(36)}function B(){}function Y(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(B,B):(P.status="pending",P.then(function(Q){P.status==="pending"&&(P.status="fulfilled",P.value=Q)},function(Q){P.status==="pending"&&(P.status="rejected",P.reason=Q)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function H(P,Q,Z,G,ne){var re=typeof P;(re==="undefined"||re==="boolean")&&(P=null);var z=!1;if(P===null)z=!0;else switch(re){case"bigint":case"string":case"number":z=!0;break;case"object":switch(P.$$typeof){case e:case t:z=!0;break;case p:return z=P._init,H(z(P._payload),Q,Z,G,ne)}}if(z)return ne=ne(P),z=G===""?"."+j(P,0):G,M(ne)?(Z="",z!=null&&(Z=z.replace(L,"$&/")+"/"),H(ne,Q,Z,"",function(se){return se})):ne!=null&&(D(ne)&&(ne=k(ne,Z+(ne.key==null||P&&P.key===ne.key?"":(""+ne.key).replace(L,"$&/")+"/")+z)),Q.push(ne)),1;z=0;var le=G===""?".":G+":";if(M(P))for(var K=0;K<P.length;K++)G=P[K],re=le+j(G,K),z+=H(G,Q,Z,re,ne);else if(K=m(P),typeof K=="function")for(P=K.call(P),K=0;!(G=P.next()).done;)G=G.value,re=le+j(G,K++),z+=H(G,Q,Z,re,ne);else if(re==="object"){if(typeof P.then=="function")return H(Y(P),Q,Z,G,ne);throw Q=String(P),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return z}function F(P,Q,Z){if(P==null)return P;var G=[],ne=0;return H(P,G,"","",function(re){return Q.call(Z,re,ne++)}),G}function V(P){if(P._status===-1){var Q=P._result;Q=Q(),Q.then(function(Z){(P._status===0||P._status===-1)&&(P._status=1,P._result=Z)},function(Z){(P._status===0||P._status===-1)&&(P._status=2,P._result=Z)}),P._status===-1&&(P._status=0,P._result=Q)}if(P._status===1)return P._result.default;throw P._result}var $=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function W(){}return vt.Children={map:F,forEach:function(P,Q,Z){F(P,function(){Q.apply(this,arguments)},Z)},count:function(P){var Q=0;return F(P,function(){Q++}),Q},toArray:function(P){return F(P,function(Q){return Q})||[]},only:function(P){if(!D(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},vt.Component=R,vt.Fragment=n,vt.Profiler=o,vt.PureComponent=x,vt.StrictMode=r,vt.Suspense=f,vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,vt.__COMPILER_RUNTIME={__proto__:null,c:function(P){return T.H.useMemoCache(P)}},vt.cache=function(P){return function(){return P.apply(null,arguments)}},vt.cloneElement=function(P,Q,Z){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var G=b({},P.props),ne=P.key,re=void 0;if(Q!=null)for(z in Q.ref!==void 0&&(re=void 0),Q.key!==void 0&&(ne=""+Q.key),Q)!A.call(Q,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&Q.ref===void 0||(G[z]=Q[z]);var z=arguments.length-2;if(z===1)G.children=Z;else if(1<z){for(var le=Array(z),K=0;K<z;K++)le[K]=arguments[K+2];G.children=le}return O(P.type,ne,void 0,void 0,re,G)},vt.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:s,_context:P},P},vt.createElement=function(P,Q,Z){var G,ne={},re=null;if(Q!=null)for(G in Q.key!==void 0&&(re=""+Q.key),Q)A.call(Q,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(ne[G]=Q[G]);var z=arguments.length-2;if(z===1)ne.children=Z;else if(1<z){for(var le=Array(z),K=0;K<z;K++)le[K]=arguments[K+2];ne.children=le}if(P&&P.defaultProps)for(G in z=P.defaultProps,z)ne[G]===void 0&&(ne[G]=z[G]);return O(P,re,void 0,void 0,null,ne)},vt.createRef=function(){return{current:null}},vt.forwardRef=function(P){return{$$typeof:c,render:P}},vt.isValidElement=D,vt.lazy=function(P){return{$$typeof:p,_payload:{_status:-1,_result:P},_init:V}},vt.memo=function(P,Q){return{$$typeof:d,type:P,compare:Q===void 0?null:Q}},vt.startTransition=function(P){var Q=T.T,Z={};T.T=Z;try{var G=P(),ne=T.S;ne!==null&&ne(Z,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(W,$)}catch(re){$(re)}finally{T.T=Q}},vt.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},vt.use=function(P){return T.H.use(P)},vt.useActionState=function(P,Q,Z){return T.H.useActionState(P,Q,Z)},vt.useCallback=function(P,Q){return T.H.useCallback(P,Q)},vt.useContext=function(P){return T.H.useContext(P)},vt.useDebugValue=function(){},vt.useDeferredValue=function(P,Q){return T.H.useDeferredValue(P,Q)},vt.useEffect=function(P,Q,Z){var G=T.H;if(typeof Z=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return G.useEffect(P,Q)},vt.useId=function(){return T.H.useId()},vt.useImperativeHandle=function(P,Q,Z){return T.H.useImperativeHandle(P,Q,Z)},vt.useInsertionEffect=function(P,Q){return T.H.useInsertionEffect(P,Q)},vt.useLayoutEffect=function(P,Q){return T.H.useLayoutEffect(P,Q)},vt.useMemo=function(P,Q){return T.H.useMemo(P,Q)},vt.useOptimistic=function(P,Q){return T.H.useOptimistic(P,Q)},vt.useReducer=function(P,Q,Z){return T.H.useReducer(P,Q,Z)},vt.useRef=function(P){return T.H.useRef(P)},vt.useState=function(P){return T.H.useState(P)},vt.useSyncExternalStore=function(P,Q,Z){return T.H.useSyncExternalStore(P,Q,Z)},vt.useTransition=function(){return T.H.useTransition()},vt.version="19.1.1",vt}var U_;function cs(){return U_||(U_=1,oy.exports=tL()),oy.exports}var E=cs();const ce=us(E),dM=fM({__proto__:null,default:ce},[E]);var iy={exports:{}},mf={},sy={exports:{}},ay={};var V_;function nL(){return V_||(V_=1,function(e){function t(F,V){var $=F.length;F.push(V);e:for(;0<$;){var W=$-1>>>1,P=F[W];if(0<o(P,V))F[W]=V,F[$]=P,$=W;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var V=F[0],$=F.pop();if($!==V){F[0]=$;e:for(var W=0,P=F.length,Q=P>>>1;W<Q;){var Z=2*(W+1)-1,G=F[Z],ne=Z+1,re=F[ne];if(0>o(G,$))ne<P&&0>o(re,G)?(F[W]=re,F[ne]=$,W=ne):(F[W]=G,F[Z]=$,W=Z);else if(ne<P&&0>o(re,$))F[W]=re,F[ne]=$,W=ne;else break e}}return V}function o(F,V){var $=F.sortIndex-V.sortIndex;return $!==0?$:F.id-V.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,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],p=1,g=null,m=3,y=!1,b=!1,S=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function M(F){for(var V=n(d);V!==null;){if(V.callback===null)r(d);else if(V.startTime<=F)r(d),V.sortIndex=V.expirationTime,t(f,V);else break;V=n(d)}}function T(F){if(S=!1,M(F),!b)if(n(f)!==null)b=!0,A||(A=!0,j());else{var V=n(d);V!==null&&H(T,V.startTime-F)}}var A=!1,O=-1,k=5,D=-1;function U(){return R?!0:!(e.unstable_now()-D<k)}function L(){if(R=!1,A){var F=e.unstable_now();D=F;var V=!0;try{e:{b=!1,S&&(S=!1,x(O),O=-1),y=!0;var $=m;try{t:{for(M(F),g=n(f);g!==null&&!(g.expirationTime>F&&U());){var W=g.callback;if(typeof W=="function"){g.callback=null,m=g.priorityLevel;var P=W(g.expirationTime<=F);if(F=e.unstable_now(),typeof P=="function"){g.callback=P,M(F),V=!0;break t}g===n(f)&&r(f),M(F)}else r(f);g=n(f)}if(g!==null)V=!0;else{var Q=n(d);Q!==null&&H(T,Q.startTime-F),V=!1}}break e}finally{g=null,m=$,y=!1}V=void 0}}finally{V?j():A=!1}}}var j;if(typeof _=="function")j=function(){_(L)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,Y=B.port2;B.port1.onmessage=L,j=function(){Y.postMessage(null)}}else j=function(){C(L,0)};function H(F,V){O=C(function(){F(e.unstable_now())},V)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(F){switch(m){case 1:case 2:case 3:var V=3;break;default:V=m}var $=m;m=V;try{return F()}finally{m=$}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(F,V){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var $=m;m=F;try{return V()}finally{m=$}},e.unstable_scheduleCallback=function(F,V,$){var W=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?W+$:W):$=W,F){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=$+P,F={id:p++,callback:V,priorityLevel:F,startTime:$,expirationTime:P,sortIndex:-1},$>W?(F.sortIndex=$,t(d,F),n(f)===null&&F===n(d)&&(S?(x(O),O=-1):S=!0,H(T,$-W))):(F.sortIndex=P,t(f,F),b||y||(b=!0,A||(A=!0,j()))),F},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(F){var V=m;return function(){var $=m;m=V;try{return F.apply(this,arguments)}finally{m=$}}}}(ay)),ay}var j_;function rL(){return j_||(j_=1,sy.exports=nL()),sy.exports}var ly={exports:{}},gr={};var q_;function oL(){if(q_)return gr;q_=1;var e=cs();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},o=Symbol.for("react.portal");function s(f,d,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,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 c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return gr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gr.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)},gr.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()}},gr.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))},gr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},gr.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var p=d.as,g=c(p,d.crossOrigin),m=typeof d.integrity=="string"?d.integrity:void 0,y=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:y}):p==="script"&&r.d.X(f,{crossOrigin:g,integrity:m,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},gr.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=c(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)},gr.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,g=c(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})}},gr.preloadModule=function(f,d){if(typeof f=="string")if(d){var p=c(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)},gr.requestFormReset=function(f){r.d.r(f)},gr.unstable_batchedUpdates=function(f,d){return f(d)},gr.useFormState=function(f,d,p){return l.H.useFormState(f,d,p)},gr.useFormStatus=function(){return l.H.useHostTransitionStatus()},gr.version="19.1.1",gr}var $_;function hM(){if($_)return ly.exports;$_=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(),ly.exports=oL(),ly.exports}var G_;function iL(){if(G_)return mf;G_=1;var e=rL(),t=cs(),n=hM();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,u=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(u=a.return),i=a.return;while(i)}return a.tag===3?u:null}function l(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function c(i){if(s(i)!==i)throw Error(r(188))}function f(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var u=i,h=a;;){var v=u.return;if(v===null)break;var w=v.alternate;if(w===null){if(h=v.return,h!==null){u=h;continue}break}if(v.child===w.child){for(w=v.child;w;){if(w===u)return c(v),i;if(w===h)return c(v),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=v,h=w;else{for(var I=!1,N=v.child;N;){if(N===u){I=!0,u=v,h=w;break}if(N===h){I=!0,h=v,u=w;break}N=N.sibling}if(!I){for(N=w.child;N;){if(N===u){I=!0,u=w,h=v;break}if(N===h){I=!0,h=w,u=v;break}N=N.sibling}if(!I)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:a}function d(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=d(i),a!==null)return a;i=i.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),_=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function j(i){return i===null||typeof i!="object"?null:(i=L&&i[L]||i["@@iterator"],typeof i=="function"?i:null)}var B=Symbol.for("react.client.reference");function Y(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===B?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case R:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList";case D:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case _:return(i.displayName||"Context")+".Provider";case x:return(i._context.displayName||"Context")+".Consumer";case M:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case O:return a=i.displayName||null,a!==null?a:Y(i.type)||"Memo";case k:a=i._payload,i=i._init;try{return Y(i(a))}catch{}}return null}var H=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},W=[],P=-1;function Q(i){return{current:i}}function Z(i){0>P||(i.current=W[P],W[P]=null,P--)}function G(i,a){P++,W[P]=i.current,i.current=a}var ne=Q(null),re=Q(null),z=Q(null),le=Q(null);function K(i,a){switch(G(z,a),G(re,i),G(ne,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?c_(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=c_(a),i=f_(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Z(ne),G(ne,i)}function se(){Z(ne),Z(re),Z(z)}function ie(i){i.memoizedState!==null&&G(le,i);var a=ne.current,u=f_(a,i.type);a!==u&&(G(re,i),G(ne,u))}function ve(i){re.current===i&&(Z(ne),Z(re)),le.current===i&&(Z(le),cf._currentValue=$)}var pe=Object.prototype.hasOwnProperty,Se=e.unstable_scheduleCallback,Ie=e.unstable_cancelCallback,Te=e.unstable_shouldYield,Le=e.unstable_requestPaint,ge=e.unstable_now,Re=e.unstable_getCurrentPriorityLevel,xe=e.unstable_ImmediatePriority,q=e.unstable_UserBlockingPriority,J=e.unstable_NormalPriority,ae=e.unstable_LowPriority,Me=e.unstable_IdlePriority,_e=e.log,be=e.unstable_setDisableYieldValue,ke=null,He=null;function Ve(i){if(typeof _e=="function"&&be(i),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(ke,i)}catch{}}var Fe=Math.clz32?Math.clz32:an,Et=Math.log,pt=Math.LN2;function an(i){return i>>>=0,i===0?32:31-(Et(i)/pt|0)|0}var en=256,ye=4194304;function $e(i){var a=i&42;if(a!==0)return a;switch(i&-i){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:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function je(i,a,u){var h=i.pendingLanes;if(h===0)return 0;var v=0,w=i.suspendedLanes,I=i.pingedLanes;i=i.warmLanes;var N=h&134217727;return N!==0?(h=N&~w,h!==0?v=$e(h):(I&=N,I!==0?v=$e(I):u||(u=N&~i,u!==0&&(v=$e(u))))):(N=h&~w,N!==0?v=$e(N):I!==0?v=$e(I):u||(u=h&~i,u!==0&&(v=$e(u)))),v===0?0:a!==0&&a!==v&&(a&w)===0&&(w=v&-v,u=a&-a,w>=u||w===32&&(u&4194048)!==0)?a:v}function Ge(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function Ke(i,a){switch(i){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 tt(){var i=en;return en<<=1,(en&4194048)===0&&(en=256),i}function Nt(){var i=ye;return ye<<=1,(ye&62914560)===0&&(ye=4194304),i}function Wt(i){for(var a=[],u=0;31>u;u++)a.push(i);return a}function wt(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function kt(i,a,u,h,v,w){var I=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var N=i.entanglements,X=i.expirationTimes,fe=i.hiddenUpdates;for(u=I&~u;0<u;){var we=31-Fe(u),Ae=1<<we;N[we]=0,X[we]=-1;var de=fe[we];if(de!==null)for(fe[we]=null,we=0;we<de.length;we++){var he=de[we];he!==null&&(he.lane&=-536870913)}u&=~Ae}h!==0&>(i,h,0),w!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=w&~(I&~a))}function gt(i,a,u){i.pendingLanes|=a,i.suspendedLanes&=~a;var h=31-Fe(a);i.entangledLanes|=a,i.entanglements[h]=i.entanglements[h]|1073741824|u&4194090}function Vt(i,a){var u=i.entangledLanes|=a;for(i=i.entanglements;u;){var h=31-Fe(u),v=1<<h;v&a|i[h]&a&&(i[h]|=a),u&=~v}}function Ft(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Mt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function fn(){var i=V.p;return i!==0?i:(i=window.event,i===void 0?32:O_(i.type))}function mt(i,a){var u=V.p;try{return V.p=i,a()}finally{V.p=u}}var ft=Math.random().toString(36).slice(2),ot="__reactFiber$"+ft,Ht="__reactProps$"+ft,Ot="__reactContainer$"+ft,Fn="__reactEvents$"+ft,Wn="__reactListeners$"+ft,Xn="__reactHandles$"+ft,sr="__reactResources$"+ft,Po="__reactMarker$"+ft;function bl(i){delete i[ot],delete i[Ht],delete i[Fn],delete i[Wn],delete i[Xn]}function Mi(i){var a=i[ot];if(a)return a;for(var u=i.parentNode;u;){if(a=u[Ot]||u[ot]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(i=g_(i);i!==null;){if(u=i[ot])return u;i=g_(i)}return a}i=u,u=i.parentNode}return null}function Oi(i){if(i=i[ot]||i[Ot]){var a=i.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return i}return null}function Ec(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(r(33))}function Sl(i){var a=i[sr];return a||(a=i[sr]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Qn(i){i[Po]=!0}var JE=new Set,ew={};function Ea(i,a){El(i,a),El(i+"Capture",a)}function El(i,a){for(ew[i]=a,i=0;i<a.length;i++)JE.add(a[i])}var V3=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]*$"),tw={},nw={};function j3(i){return pe.call(nw,i)?!0:pe.call(tw,i)?!1:V3.test(i)?nw[i]=!0:(tw[i]=!0,!1)}function Bd(i,a,u){if(j3(a))if(u===null)i.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var h=a.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+u)}}function Hd(i,a,u){if(u===null)i.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+u)}}function Ii(i,a,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(a,u,""+h)}}var Xm,rw;function wl(i){if(Xm===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Xm=a&&a[1]||"",rw=-1<u.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Xm+i+rw}var Qm=!1;function Zm(i,a){if(!i||Qm)return"";Qm=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(he){var de=he}Reflect.construct(i,[],Ae)}else{try{Ae.call()}catch(he){de=he}i.call(Ae.prototype)}}else{try{throw Error()}catch(he){de=he}(Ae=i())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(he){if(he&&de&&typeof he.stack=="string")return[he.stack,de.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),I=w[0],N=w[1];if(I&&N){var X=I.split(`
|
|
4
|
-
`),fe=N.split(`
|
|
5
|
-
`);for(v=h=0;h<X.length&&!X[h].includes("DetermineComponentFrameRoot");)h++;for(;v<fe.length&&!fe[v].includes("DetermineComponentFrameRoot");)v++;if(h===X.length||v===fe.length)for(h=X.length-1,v=fe.length-1;1<=h&&0<=v&&X[h]!==fe[v];)v--;for(;1<=h&&0<=v;h--,v--)if(X[h]!==fe[v]){if(h!==1||v!==1)do if(h--,v--,0>v||X[h]!==fe[v]){var we=`
|
|
6
|
-
`+X[h].replace(" at new "," at ");return i.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",i.displayName)),we}while(1<=h&&0<=v);break}}}finally{Qm=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?wl(u):""}function q3(i){switch(i.tag){case 26:case 27:case 5:return wl(i.type);case 16:return wl("Lazy");case 13:return wl("Suspense");case 19:return wl("SuspenseList");case 0:case 15:return Zm(i.type,!1);case 11:return Zm(i.type.render,!1);case 1:return Zm(i.type,!0);case 31:return wl("Activity");default:return""}}function ow(i){try{var a="";do a+=q3(i),i=i.return;while(i);return a}catch(u){return`
|
|
7
|
-
Error generating stack: `+u.message+`
|
|
8
|
-
`+u.stack}}function co(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function iw(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function $3(i){var a=iw(i)?"checked":"value",u=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),h=""+i[a];if(!i.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var v=u.get,w=u.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return v.call(this)},set:function(I){h=""+I,w.call(this,I)}}),Object.defineProperty(i,a,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(I){h=""+I},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function zd(i){i._valueTracker||(i._valueTracker=$3(i))}function sw(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var u=a.getValue(),h="";return i&&(h=iw(i)?i.checked?"true":"false":i.value),i=h,i!==u?(a.setValue(i),!0):!1}function Ud(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var G3=/[\n"\\]/g;function fo(i){return i.replace(G3,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Jm(i,a,u,h,v,w,I,N){i.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?i.type=I:i.removeAttribute("type"),a!=null?I==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+co(a)):i.value!==""+co(a)&&(i.value=""+co(a)):I!=="submit"&&I!=="reset"||i.removeAttribute("value"),a!=null?e0(i,I,co(a)):u!=null?e0(i,I,co(u)):h!=null&&i.removeAttribute("value"),v==null&&w!=null&&(i.defaultChecked=!!w),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.name=""+co(N):i.removeAttribute("name")}function aw(i,a,u,h,v,w,I,N){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(i.type=w),a!=null||u!=null){if(!(w!=="submit"&&w!=="reset"||a!=null))return;u=u!=null?""+co(u):"",a=a!=null?""+co(a):u,N||a===i.value||(i.value=a),i.defaultValue=a}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=N?i.checked:!!h,i.defaultChecked=!!h,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(i.name=I)}function e0(i,a,u){a==="number"&&Ud(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Rl(i,a,u,h){if(i=i.options,a){a={};for(var v=0;v<u.length;v++)a["$"+u[v]]=!0;for(u=0;u<i.length;u++)v=a.hasOwnProperty("$"+i[u].value),i[u].selected!==v&&(i[u].selected=v),v&&h&&(i[u].defaultSelected=!0)}else{for(u=""+co(u),a=null,v=0;v<i.length;v++){if(i[v].value===u){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}a!==null||i[v].disabled||(a=i[v])}a!==null&&(a.selected=!0)}}function lw(i,a,u){if(a!=null&&(a=""+co(a),a!==i.value&&(i.value=a),u==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=u!=null?""+co(u):""}function uw(i,a,u,h){if(a==null){if(h!=null){if(u!=null)throw Error(r(92));if(H(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),a=u}u=co(a),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h)}function xl(i,a){if(a){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=a;return}}i.textContent=a}var Y3=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 cw(i,a,u){var h=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":h?i.setProperty(a,u):typeof u!="number"||u===0||Y3.has(a)?a==="float"?i.cssFloat=u:i[a]=(""+u).trim():i[a]=u+"px"}function fw(i,a,u){if(a!=null&&typeof a!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||a!=null&&a.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var v in a)h=a[v],a.hasOwnProperty(v)&&u[v]!==h&&cw(i,v,h)}else for(var w in a)a.hasOwnProperty(w)&&cw(i,w,a[w])}function t0(i){if(i.indexOf("-")===-1)return!1;switch(i){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 K3=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"]]),W3=/^[\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 Vd(i){return W3.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var n0=null;function r0(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var _l=null,Cl=null;function dw(i){var a=Oi(i);if(a&&(i=a.stateNode)){var u=i[Ht]||null;e:switch(i=a.stateNode,a.type){case"input":if(Jm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+fo(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var h=u[a];if(h!==i&&h.form===i.form){var v=h[Ht]||null;if(!v)throw Error(r(90));Jm(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(a=0;a<u.length;a++)h=u[a],h.form===i.form&&sw(h)}break e;case"textarea":lw(i,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&Rl(i,!!u.multiple,a,!1)}}}var o0=!1;function hw(i,a,u){if(o0)return i(a,u);o0=!0;try{var h=i(a);return h}finally{if(o0=!1,(_l!==null||Cl!==null)&&(Th(),_l&&(a=_l,i=Cl,Cl=_l=null,dw(a),i)))for(a=0;a<i.length;a++)dw(i[a])}}function wc(i,a){var u=i.stateNode;if(u===null)return null;var h=u[Ht]||null;if(h===null)return null;u=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)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var Di=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),i0=!1;if(Di)try{var Rc={};Object.defineProperty(Rc,"passive",{get:function(){i0=!0}}),window.addEventListener("test",Rc,Rc),window.removeEventListener("test",Rc,Rc)}catch{i0=!1}var ms=null,s0=null,jd=null;function pw(){if(jd)return jd;var i,a=s0,u=a.length,h,v="value"in ms?ms.value:ms.textContent,w=v.length;for(i=0;i<u&&a[i]===v[i];i++);var I=u-i;for(h=1;h<=I&&a[u-h]===v[w-h];h++);return jd=v.slice(i,1<h?1-h:void 0)}function qd(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function $d(){return!0}function gw(){return!1}function Ir(i){function a(u,h,v,w,I){this._reactName=u,this._targetInst=v,this.type=h,this.nativeEvent=w,this.target=I,this.currentTarget=null;for(var N in i)i.hasOwnProperty(N)&&(u=i[N],this[N]=u?u(w):w[N]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?$d:gw,this.isPropagationStopped=gw,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=$d)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=$d)},persist:function(){},isPersistent:$d}),a}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gd=Ir(wa),xc=p({},wa,{view:0,detail:0}),X3=Ir(xc),a0,l0,_c,Yd=p({},xc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:c0,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==_c&&(_c&&i.type==="mousemove"?(a0=i.screenX-_c.screenX,l0=i.screenY-_c.screenY):l0=a0=0,_c=i),a0)},movementY:function(i){return"movementY"in i?i.movementY:l0}}),mw=Ir(Yd),Q3=p({},Yd,{dataTransfer:0}),Z3=Ir(Q3),J3=p({},xc,{relatedTarget:0}),u0=Ir(J3),e5=p({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),t5=Ir(e5),n5=p({},wa,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),r5=Ir(n5),o5=p({},wa,{data:0}),vw=Ir(o5),i5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},s5={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"},a5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l5(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=a5[i])?!!a[i]:!1}function c0(){return l5}var u5=p({},xc,{key:function(i){if(i.key){var a=i5[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=qd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?s5[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:c0,charCode:function(i){return i.type==="keypress"?qd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?qd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),c5=Ir(u5),f5=p({},Yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yw=Ir(f5),d5=p({},xc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:c0}),h5=Ir(d5),p5=p({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),g5=Ir(p5),m5=p({},Yd,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),v5=Ir(m5),y5=p({},wa,{newState:0,oldState:0}),b5=Ir(y5),S5=[9,13,27,32],f0=Di&&"CompositionEvent"in window,Cc=null;Di&&"documentMode"in document&&(Cc=document.documentMode);var E5=Di&&"TextEvent"in window&&!Cc,bw=Di&&(!f0||Cc&&8<Cc&&11>=Cc),Sw=" ",Ew=!1;function ww(i,a){switch(i){case"keyup":return S5.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rw(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Tl=!1;function w5(i,a){switch(i){case"compositionend":return Rw(a);case"keypress":return a.which!==32?null:(Ew=!0,Sw);case"textInput":return i=a.data,i===Sw&&Ew?null:i;default:return null}}function R5(i,a){if(Tl)return i==="compositionend"||!f0&&ww(i,a)?(i=pw(),jd=s0=ms=null,Tl=!1,i):null;switch(i){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 bw&&a.locale!=="ko"?null:a.data;default:return null}}var x5={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 xw(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!x5[i.type]:a==="textarea"}function _w(i,a,u,h){_l?Cl?Cl.push(h):Cl=[h]:_l=h,a=kh(a,"onChange"),0<a.length&&(u=new Gd("onChange","change",null,u,h),i.push({event:u,listeners:a}))}var Tc=null,Ac=null;function _5(i){i_(i,0)}function Kd(i){var a=Ec(i);if(sw(a))return i}function Cw(i,a){if(i==="change")return a}var Tw=!1;if(Di){var d0;if(Di){var h0="oninput"in document;if(!h0){var Aw=document.createElement("div");Aw.setAttribute("oninput","return;"),h0=typeof Aw.oninput=="function"}d0=h0}else d0=!1;Tw=d0&&(!document.documentMode||9<document.documentMode)}function Mw(){Tc&&(Tc.detachEvent("onpropertychange",Ow),Ac=Tc=null)}function Ow(i){if(i.propertyName==="value"&&Kd(Ac)){var a=[];_w(a,Ac,i,r0(i)),hw(_5,a)}}function C5(i,a,u){i==="focusin"?(Mw(),Tc=a,Ac=u,Tc.attachEvent("onpropertychange",Ow)):i==="focusout"&&Mw()}function T5(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Kd(Ac)}function A5(i,a){if(i==="click")return Kd(a)}function M5(i,a){if(i==="input"||i==="change")return Kd(a)}function O5(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var Yr=typeof Object.is=="function"?Object.is:O5;function Mc(i,a){if(Yr(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var u=Object.keys(i),h=Object.keys(a);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var v=u[h];if(!pe.call(a,v)||!Yr(i[v],a[v]))return!1}return!0}function Iw(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Dw(i,a){var u=Iw(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=a&&h>=a)return{node:u,offset:a-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Iw(u)}}function kw(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?kw(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function Lw(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=Ud(i.document);a instanceof i.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)i=a.contentWindow;else break;a=Ud(i.document)}return a}function p0(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}var I5=Di&&"documentMode"in document&&11>=document.documentMode,Al=null,g0=null,Oc=null,m0=!1;function Pw(i,a,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;m0||Al==null||Al!==Ud(h)||(h=Al,"selectionStart"in h&&p0(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}),Oc&&Mc(Oc,h)||(Oc=h,h=kh(g0,"onSelect"),0<h.length&&(a=new Gd("onSelect","select",null,a,u),i.push({event:a,listeners:h}),a.target=Al)))}function Ra(i,a){var u={};return u[i.toLowerCase()]=a.toLowerCase(),u["Webkit"+i]="webkit"+a,u["Moz"+i]="moz"+a,u}var Ml={animationend:Ra("Animation","AnimationEnd"),animationiteration:Ra("Animation","AnimationIteration"),animationstart:Ra("Animation","AnimationStart"),transitionrun:Ra("Transition","TransitionRun"),transitionstart:Ra("Transition","TransitionStart"),transitioncancel:Ra("Transition","TransitionCancel"),transitionend:Ra("Transition","TransitionEnd")},v0={},Nw={};Di&&(Nw=document.createElement("div").style,"AnimationEvent"in window||(delete Ml.animationend.animation,delete Ml.animationiteration.animation,delete Ml.animationstart.animation),"TransitionEvent"in window||delete Ml.transitionend.transition);function xa(i){if(v0[i])return v0[i];if(!Ml[i])return i;var a=Ml[i],u;for(u in a)if(a.hasOwnProperty(u)&&u in Nw)return v0[i]=a[u];return i}var Fw=xa("animationend"),Bw=xa("animationiteration"),Hw=xa("animationstart"),D5=xa("transitionrun"),k5=xa("transitionstart"),L5=xa("transitioncancel"),zw=xa("transitionend"),Uw=new Map,y0="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(" ");y0.push("scrollEnd");function No(i,a){Uw.set(i,a),Ea(a,[i])}var Vw=new WeakMap;function ho(i,a){if(typeof i=="object"&&i!==null){var u=Vw.get(i);return u!==void 0?u:(a={value:i,source:a,stack:ow(a)},Vw.set(i,a),a)}return{value:i,source:a,stack:ow(a)}}var po=[],Ol=0,b0=0;function Wd(){for(var i=Ol,a=b0=Ol=0;a<i;){var u=po[a];po[a++]=null;var h=po[a];po[a++]=null;var v=po[a];po[a++]=null;var w=po[a];if(po[a++]=null,h!==null&&v!==null){var I=h.pending;I===null?v.next=v:(v.next=I.next,I.next=v),h.pending=v}w!==0&&jw(u,v,w)}}function Xd(i,a,u,h){po[Ol++]=i,po[Ol++]=a,po[Ol++]=u,po[Ol++]=h,b0|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function S0(i,a,u,h){return Xd(i,a,u,h),Qd(i)}function Il(i,a){return Xd(i,null,null,a),Qd(i)}function jw(i,a,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var v=!1,w=i.return;w!==null;)w.childLanes|=u,h=w.alternate,h!==null&&(h.childLanes|=u),w.tag===22&&(i=w.stateNode,i===null||i._visibility&1||(v=!0)),i=w,w=w.return;return i.tag===3?(w=i.stateNode,v&&a!==null&&(v=31-Fe(u),i=w.hiddenUpdates,h=i[v],h===null?i[v]=[a]:h.push(a),a.lane=u|536870912),w):null}function Qd(i){if(50<tf)throw tf=0,Cv=null,Error(r(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var Dl={};function P5(i,a,u,h){this.tag=i,this.key=u,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 Kr(i,a,u,h){return new P5(i,a,u,h)}function E0(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ki(i,a){var u=i.alternate;return u===null?(u=Kr(i.tag,a,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=a,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,a=i.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function qw(i,a){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=a,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,a=u.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function Zd(i,a,u,h,v,w){var I=0;if(h=i,typeof i=="function")E0(i)&&(I=1);else if(typeof i=="string")I=Fk(i,u,ne.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case D:return i=Kr(31,u,a,v),i.elementType=D,i.lanes=w,i;case b:return _a(u.children,v,w,a);case S:I=8,v|=24;break;case R:return i=Kr(12,u,a,v|2),i.elementType=R,i.lanes=w,i;case T:return i=Kr(13,u,a,v),i.elementType=T,i.lanes=w,i;case A:return i=Kr(19,u,a,v),i.elementType=A,i.lanes=w,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case C:case _:I=10;break e;case x:I=9;break e;case M:I=11;break e;case O:I=14;break e;case k:I=16,h=null;break e}I=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return a=Kr(I,u,a,v),a.elementType=i,a.type=h,a.lanes=w,a}function _a(i,a,u,h){return i=Kr(7,i,h,a),i.lanes=u,i}function w0(i,a,u){return i=Kr(6,i,null,a),i.lanes=u,i}function R0(i,a,u){return a=Kr(4,i.children!==null?i.children:[],i.key,a),a.lanes=u,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}var kl=[],Ll=0,Jd=null,eh=0,go=[],mo=0,Ca=null,Li=1,Pi="";function Ta(i,a){kl[Ll++]=eh,kl[Ll++]=Jd,Jd=i,eh=a}function $w(i,a,u){go[mo++]=Li,go[mo++]=Pi,go[mo++]=Ca,Ca=i;var h=Li;i=Pi;var v=32-Fe(h)-1;h&=~(1<<v),u+=1;var w=32-Fe(a)+v;if(30<w){var I=v-v%5;w=(h&(1<<I)-1).toString(32),h>>=I,v-=I,Li=1<<32-Fe(a)+v|u<<v|h,Pi=w+i}else Li=1<<w|u<<v|h,Pi=i}function x0(i){i.return!==null&&(Ta(i,1),$w(i,1,0))}function _0(i){for(;i===Jd;)Jd=kl[--Ll],kl[Ll]=null,eh=kl[--Ll],kl[Ll]=null;for(;i===Ca;)Ca=go[--mo],go[mo]=null,Pi=go[--mo],go[mo]=null,Li=go[--mo],go[mo]=null}var Er=null,Cn=null,jt=!1,Aa=null,Jo=!1,C0=Error(r(519));function Ma(i){var a=Error(r(418,""));throw kc(ho(a,i)),C0}function Gw(i){var a=i.stateNode,u=i.type,h=i.memoizedProps;switch(a[ot]=i,a[Ht]=h,u){case"dialog":Dt("cancel",a),Dt("close",a);break;case"iframe":case"object":case"embed":Dt("load",a);break;case"video":case"audio":for(u=0;u<rf.length;u++)Dt(rf[u],a);break;case"source":Dt("error",a);break;case"img":case"image":case"link":Dt("error",a),Dt("load",a);break;case"details":Dt("toggle",a);break;case"input":Dt("invalid",a),aw(a,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),zd(a);break;case"select":Dt("invalid",a);break;case"textarea":Dt("invalid",a),uw(a,h.value,h.defaultValue,h.children),zd(a)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||h.suppressHydrationWarning===!0||u_(a.textContent,u)?(h.popover!=null&&(Dt("beforetoggle",a),Dt("toggle",a)),h.onScroll!=null&&Dt("scroll",a),h.onScrollEnd!=null&&Dt("scrollend",a),h.onClick!=null&&(a.onclick=Lh),a=!0):a=!1,a||Ma(i)}function Yw(i){for(Er=i.return;Er;)switch(Er.tag){case 5:case 13:Jo=!1;return;case 27:case 3:Jo=!0;return;default:Er=Er.return}}function Ic(i){if(i!==Er)return!1;if(!jt)return Yw(i),jt=!0,!1;var a=i.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||Vv(i.type,i.memoizedProps)),u=!u),u&&Cn&&Ma(i),Yw(i),a===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8)if(u=i.data,u==="/$"){if(a===0){Cn=Bo(i.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;i=i.nextSibling}Cn=null}}else a===27?(a=Cn,Ds(i.type)?(i=Gv,Gv=null,Cn=i):Cn=a):Cn=Er?Bo(i.stateNode.nextSibling):null;return!0}function Dc(){Cn=Er=null,jt=!1}function Kw(){var i=Aa;return i!==null&&(Lr===null?Lr=i:Lr.push.apply(Lr,i),Aa=null),i}function kc(i){Aa===null?Aa=[i]:Aa.push(i)}var T0=Q(null),Oa=null,Ni=null;function vs(i,a,u){G(T0,a._currentValue),a._currentValue=u}function Fi(i){i._currentValue=T0.current,Z(T0)}function A0(i,a,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),i===u)break;i=i.return}}function M0(i,a,u,h){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var w=v.dependencies;if(w!==null){var I=v.child;w=w.firstContext;e:for(;w!==null;){var N=w;w=v;for(var X=0;X<a.length;X++)if(N.context===a[X]){w.lanes|=u,N=w.alternate,N!==null&&(N.lanes|=u),A0(w.return,u,i),h||(I=null);break e}w=N.next}}else if(v.tag===18){if(I=v.return,I===null)throw Error(r(341));I.lanes|=u,w=I.alternate,w!==null&&(w.lanes|=u),A0(I,u,i),I=null}else I=v.child;if(I!==null)I.return=v;else for(I=v;I!==null;){if(I===i){I=null;break}if(v=I.sibling,v!==null){v.return=I.return,I=v;break}I=I.return}v=I}}function Lc(i,a,u,h){i=null;for(var v=a,w=!1;v!==null;){if(!w){if((v.flags&524288)!==0)w=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var I=v.alternate;if(I===null)throw Error(r(387));if(I=I.memoizedProps,I!==null){var N=v.type;Yr(v.pendingProps.value,I.value)||(i!==null?i.push(N):i=[N])}}else if(v===le.current){if(I=v.alternate,I===null)throw Error(r(387));I.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(cf):i=[cf])}v=v.return}i!==null&&M0(a,i,u,h),a.flags|=262144}function th(i){for(i=i.firstContext;i!==null;){if(!Yr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ia(i){Oa=i,Ni=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function pr(i){return Ww(Oa,i)}function nh(i,a){return Oa===null&&Ia(i),Ww(i,a)}function Ww(i,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},Ni===null){if(i===null)throw Error(r(308));Ni=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else Ni=Ni.next=a;return u}var N5=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){a.aborted=!0,i.forEach(function(u){return u()})}},F5=e.unstable_scheduleCallback,B5=e.unstable_NormalPriority,jn={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function O0(){return{controller:new N5,data:new Map,refCount:0}}function Pc(i){i.refCount--,i.refCount===0&&F5(B5,function(){i.controller.abort()})}var Nc=null,I0=0,Pl=0,Nl=null;function H5(i,a){if(Nc===null){var u=Nc=[];I0=0,Pl=kv(),Nl={status:"pending",value:void 0,then:function(h){u.push(h)}}}return I0++,a.then(Xw,Xw),a}function Xw(){if(--I0===0&&Nc!==null){Nl!==null&&(Nl.status="fulfilled");var i=Nc;Nc=null,Pl=0,Nl=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function z5(i,a){var u=[],h={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return i.then(function(){h.status="fulfilled",h.value=a;for(var v=0;v<u.length;v++)(0,u[v])(a)},function(v){for(h.status="rejected",h.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),h}var Qw=F.S;F.S=function(i,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&H5(i,a),Qw!==null&&Qw(i,a)};var Da=Q(null);function D0(){var i=Da.current;return i!==null?i:dn.pooledCache}function rh(i,a){a===null?G(Da,Da.current):G(Da,a.pool)}function Zw(){var i=D0();return i===null?null:{parent:jn._currentValue,pool:i}}var Fc=Error(r(460)),Jw=Error(r(474)),oh=Error(r(542)),k0={then:function(){}};function eR(i){return i=i.status,i==="fulfilled"||i==="rejected"}function ih(){}function tR(i,a,u){switch(u=i[u],u===void 0?i.push(a):u!==a&&(a.then(ih,ih),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,rR(i),i;default:if(typeof a.status=="string")a.then(ih,ih);else{if(i=dn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=a,i.status="pending",i.then(function(h){if(a.status==="pending"){var v=a;v.status="fulfilled",v.value=h}},function(h){if(a.status==="pending"){var v=a;v.status="rejected",v.reason=h}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,rR(i),i}throw Bc=a,Fc}}var Bc=null;function nR(){if(Bc===null)throw Error(r(459));var i=Bc;return Bc=null,i}function rR(i){if(i===Fc||i===oh)throw Error(r(483))}var ys=!1;function L0(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function P0(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function bs(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ss(i,a,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Xt&2)!==0){var v=h.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),h.pending=a,a=Qd(i),jw(i,null,u),a}return Xd(i,h,a,u),Qd(i)}function Hc(i,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var h=a.lanes;h&=i.pendingLanes,u|=h,a.lanes=u,Vt(i,u)}}function N0(i,a){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var v=null,w=null;if(u=u.firstBaseUpdate,u!==null){do{var I={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};w===null?v=w=I:w=w.next=I,u=u.next}while(u!==null);w===null?v=w=a:w=w.next=a}else v=w=a;u={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:w,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=a:i.next=a,u.lastBaseUpdate=a}var F0=!1;function zc(){if(F0){var i=Nl;if(i!==null)throw i}}function Uc(i,a,u,h){F0=!1;var v=i.updateQueue;ys=!1;var w=v.firstBaseUpdate,I=v.lastBaseUpdate,N=v.shared.pending;if(N!==null){v.shared.pending=null;var X=N,fe=X.next;X.next=null,I===null?w=fe:I.next=fe,I=X;var we=i.alternate;we!==null&&(we=we.updateQueue,N=we.lastBaseUpdate,N!==I&&(N===null?we.firstBaseUpdate=fe:N.next=fe,we.lastBaseUpdate=X))}if(w!==null){var Ae=v.baseState;I=0,we=fe=X=null,N=w;do{var de=N.lane&-536870913,he=de!==N.lane;if(he?(Bt&de)===de:(h&de)===de){de!==0&&de===Pl&&(F0=!0),we!==null&&(we=we.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var nt=i,Je=N;de=a;var rn=u;switch(Je.tag){case 1:if(nt=Je.payload,typeof nt=="function"){Ae=nt.call(rn,Ae,de);break e}Ae=nt;break e;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=Je.payload,de=typeof nt=="function"?nt.call(rn,Ae,de):nt,de==null)break e;Ae=p({},Ae,de);break e;case 2:ys=!0}}de=N.callback,de!==null&&(i.flags|=64,he&&(i.flags|=8192),he=v.callbacks,he===null?v.callbacks=[de]:he.push(de))}else he={lane:de,tag:N.tag,payload:N.payload,callback:N.callback,next:null},we===null?(fe=we=he,X=Ae):we=we.next=he,I|=de;if(N=N.next,N===null){if(N=v.shared.pending,N===null)break;he=N,N=he.next,he.next=null,v.lastBaseUpdate=he,v.shared.pending=null}}while(!0);we===null&&(X=Ae),v.baseState=X,v.firstBaseUpdate=fe,v.lastBaseUpdate=we,w===null&&(v.shared.lanes=0),As|=I,i.lanes=I,i.memoizedState=Ae}}function oR(i,a){if(typeof i!="function")throw Error(r(191,i));i.call(a)}function iR(i,a){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)oR(u[i],a)}var Fl=Q(null),sh=Q(0);function sR(i,a){i=qi,G(sh,i),G(Fl,a),qi=i|a.baseLanes}function B0(){G(sh,qi),G(Fl,Fl.current)}function H0(){qi=sh.current,Z(Fl),Z(sh)}var Es=0,xt=null,tn=null,Bn=null,ah=!1,Bl=!1,ka=!1,lh=0,Vc=0,Hl=null,U5=0;function On(){throw Error(r(321))}function z0(i,a){if(a===null)return!1;for(var u=0;u<a.length&&u<i.length;u++)if(!Yr(i[u],a[u]))return!1;return!0}function U0(i,a,u,h,v,w){return Es=w,xt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,F.H=i===null||i.memoizedState===null?jR:qR,ka=!1,w=u(h,v),ka=!1,Bl&&(w=lR(a,u,h,v)),aR(i),w}function aR(i){F.H=ph;var a=tn!==null&&tn.next!==null;if(Es=0,Bn=tn=xt=null,ah=!1,Vc=0,Hl=null,a)throw Error(r(300));i===null||Zn||(i=i.dependencies,i!==null&&th(i)&&(Zn=!0))}function lR(i,a,u,h){xt=i;var v=0;do{if(Bl&&(Hl=null),Vc=0,Bl=!1,25<=v)throw Error(r(301));if(v+=1,Bn=tn=null,i.updateQueue!=null){var w=i.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}F.H=K5,w=a(u,h)}while(Bl);return w}function V5(){var i=F.H,a=i.useState()[0];return a=typeof a.then=="function"?jc(a):a,i=i.useState()[0],(tn!==null?tn.memoizedState:null)!==i&&(xt.flags|=1024),a}function V0(){var i=lh!==0;return lh=0,i}function j0(i,a,u){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~u}function q0(i){if(ah){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}ah=!1}Es=0,Bn=tn=xt=null,Bl=!1,Vc=lh=0,Hl=null}function Dr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bn===null?xt.memoizedState=Bn=i:Bn=Bn.next=i,Bn}function Hn(){if(tn===null){var i=xt.alternate;i=i!==null?i.memoizedState:null}else i=tn.next;var a=Bn===null?xt.memoizedState:Bn.next;if(a!==null)Bn=a,tn=i;else{if(i===null)throw xt.alternate===null?Error(r(467)):Error(r(310));tn=i,i={memoizedState:tn.memoizedState,baseState:tn.baseState,baseQueue:tn.baseQueue,queue:tn.queue,next:null},Bn===null?xt.memoizedState=Bn=i:Bn=Bn.next=i}return Bn}function $0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jc(i){var a=Vc;return Vc+=1,Hl===null&&(Hl=[]),i=tR(Hl,i,a),a=xt,(Bn===null?a.memoizedState:Bn.next)===null&&(a=a.alternate,F.H=a===null||a.memoizedState===null?jR:qR),i}function uh(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return jc(i);if(i.$$typeof===_)return pr(i)}throw Error(r(438,String(i)))}function G0(i){var a=null,u=xt.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var h=xt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(a={data:h.data.map(function(v){return v.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=$0(),xt.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(i),h=0;h<i;h++)u[h]=U;return a.index++,u}function Bi(i,a){return typeof a=="function"?a(i):a}function ch(i){var a=Hn();return Y0(a,tn,i)}function Y0(i,a,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var v=i.baseQueue,w=h.pending;if(w!==null){if(v!==null){var I=v.next;v.next=w.next,w.next=I}a.baseQueue=v=w,h.pending=null}if(w=i.baseState,v===null)i.memoizedState=w;else{a=v.next;var N=I=null,X=null,fe=a,we=!1;do{var Ae=fe.lane&-536870913;if(Ae!==fe.lane?(Bt&Ae)===Ae:(Es&Ae)===Ae){var de=fe.revertLane;if(de===0)X!==null&&(X=X.next={lane:0,revertLane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),Ae===Pl&&(we=!0);else if((Es&de)===de){fe=fe.next,de===Pl&&(we=!0);continue}else Ae={lane:0,revertLane:fe.revertLane,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},X===null?(N=X=Ae,I=w):X=X.next=Ae,xt.lanes|=de,As|=de;Ae=fe.action,ka&&u(w,Ae),w=fe.hasEagerState?fe.eagerState:u(w,Ae)}else de={lane:Ae,revertLane:fe.revertLane,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},X===null?(N=X=de,I=w):X=X.next=de,xt.lanes|=Ae,As|=Ae;fe=fe.next}while(fe!==null&&fe!==a);if(X===null?I=w:X.next=N,!Yr(w,i.memoizedState)&&(Zn=!0,we&&(u=Nl,u!==null)))throw u;i.memoizedState=w,i.baseState=I,i.baseQueue=X,h.lastRenderedState=w}return v===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function K0(i){var a=Hn(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,v=u.pending,w=a.memoizedState;if(v!==null){u.pending=null;var I=v=v.next;do w=i(w,I.action),I=I.next;while(I!==v);Yr(w,a.memoizedState)||(Zn=!0),a.memoizedState=w,a.baseQueue===null&&(a.baseState=w),u.lastRenderedState=w}return[w,h]}function uR(i,a,u){var h=xt,v=Hn(),w=jt;if(w){if(u===void 0)throw Error(r(407));u=u()}else u=a();var I=!Yr((tn||v).memoizedState,u);I&&(v.memoizedState=u,Zn=!0),v=v.queue;var N=dR.bind(null,h,v,i);if(qc(2048,8,N,[i]),v.getSnapshot!==a||I||Bn!==null&&Bn.memoizedState.tag&1){if(h.flags|=2048,zl(9,fh(),fR.bind(null,h,v,u,a),null),dn===null)throw Error(r(349));w||(Es&124)!==0||cR(h,a,u)}return u}function cR(i,a,u){i.flags|=16384,i={getSnapshot:a,value:u},a=xt.updateQueue,a===null?(a=$0(),xt.updateQueue=a,a.stores=[i]):(u=a.stores,u===null?a.stores=[i]:u.push(i))}function fR(i,a,u,h){a.value=u,a.getSnapshot=h,hR(a)&&pR(i)}function dR(i,a,u){return u(function(){hR(a)&&pR(i)})}function hR(i){var a=i.getSnapshot;i=i.value;try{var u=a();return!Yr(i,u)}catch{return!0}}function pR(i){var a=Il(i,2);a!==null&&Jr(a,i,2)}function W0(i){var a=Dr();if(typeof i=="function"){var u=i;if(i=u(),ka){Ve(!0);try{u()}finally{Ve(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:i},a}function gR(i,a,u,h){return i.baseState=u,Y0(i,tn,typeof h=="function"?h:Bi)}function j5(i,a,u,h,v){if(hh(i))throw Error(r(485));if(i=a.action,i!==null){var w={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){w.listeners.push(I)}};F.T!==null?u(!0):w.isTransition=!1,h(w),u=a.pending,u===null?(w.next=a.pending=w,mR(a,w)):(w.next=u.next,a.pending=u.next=w)}}function mR(i,a){var u=a.action,h=a.payload,v=i.state;if(a.isTransition){var w=F.T,I={};F.T=I;try{var N=u(v,h),X=F.S;X!==null&&X(I,N),vR(i,a,N)}catch(fe){X0(i,a,fe)}finally{F.T=w}}else try{w=u(v,h),vR(i,a,w)}catch(fe){X0(i,a,fe)}}function vR(i,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){yR(i,a,h)},function(h){return X0(i,a,h)}):yR(i,a,u)}function yR(i,a,u){a.status="fulfilled",a.value=u,bR(a),i.state=u,a=i.pending,a!==null&&(u=a.next,u===a?i.pending=null:(u=u.next,a.next=u,mR(i,u)))}function X0(i,a,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do a.status="rejected",a.reason=u,bR(a),a=a.next;while(a!==h)}i.action=null}function bR(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function SR(i,a){return a}function ER(i,a){if(jt){var u=dn.formState;if(u!==null){e:{var h=xt;if(jt){if(Cn){t:{for(var v=Cn,w=Jo;v.nodeType!==8;){if(!w){v=null;break t}if(v=Bo(v.nextSibling),v===null){v=null;break t}}w=v.data,v=w==="F!"||w==="F"?v:null}if(v){Cn=Bo(v.nextSibling),h=v.data==="F!";break e}}Ma(h)}h=!1}h&&(a=u[0])}}return u=Dr(),u.memoizedState=u.baseState=a,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:SR,lastRenderedState:a},u.queue=h,u=zR.bind(null,xt,h),h.dispatch=u,h=W0(!1),w=tv.bind(null,xt,!1,h.queue),h=Dr(),v={state:a,dispatch:null,action:i,pending:null},h.queue=v,u=j5.bind(null,xt,v,w,u),v.dispatch=u,h.memoizedState=i,[a,u,!1]}function wR(i){var a=Hn();return RR(a,tn,i)}function RR(i,a,u){if(a=Y0(i,a,SR)[0],i=ch(Bi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var h=jc(a)}catch(I){throw I===Fc?oh:I}else h=a;a=Hn();var v=a.queue,w=v.dispatch;return u!==a.memoizedState&&(xt.flags|=2048,zl(9,fh(),q5.bind(null,v,u),null)),[h,w,i]}function q5(i,a){i.action=a}function xR(i){var a=Hn(),u=tn;if(u!==null)return RR(a,u,i);Hn(),a=a.memoizedState,u=Hn();var h=u.queue.dispatch;return u.memoizedState=i,[a,h,!1]}function zl(i,a,u,h){return i={tag:i,create:u,deps:h,inst:a,next:null},a=xt.updateQueue,a===null&&(a=$0(),xt.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,a.lastEffect=i),i}function fh(){return{destroy:void 0,resource:void 0}}function _R(){return Hn().memoizedState}function dh(i,a,u,h){var v=Dr();h=h===void 0?null:h,xt.flags|=i,v.memoizedState=zl(1|a,fh(),u,h)}function qc(i,a,u,h){var v=Hn();h=h===void 0?null:h;var w=v.memoizedState.inst;tn!==null&&h!==null&&z0(h,tn.memoizedState.deps)?v.memoizedState=zl(a,w,u,h):(xt.flags|=i,v.memoizedState=zl(1|a,w,u,h))}function CR(i,a){dh(8390656,8,i,a)}function TR(i,a){qc(2048,8,i,a)}function AR(i,a){return qc(4,2,i,a)}function MR(i,a){return qc(4,4,i,a)}function OR(i,a){if(typeof a=="function"){i=i();var u=a(i);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function IR(i,a,u){u=u!=null?u.concat([i]):null,qc(4,4,OR.bind(null,a,i),u)}function Q0(){}function DR(i,a){var u=Hn();a=a===void 0?null:a;var h=u.memoizedState;return a!==null&&z0(a,h[1])?h[0]:(u.memoizedState=[i,a],i)}function kR(i,a){var u=Hn();a=a===void 0?null:a;var h=u.memoizedState;if(a!==null&&z0(a,h[1]))return h[0];if(h=i(),ka){Ve(!0);try{i()}finally{Ve(!1)}}return u.memoizedState=[h,a],h}function Z0(i,a,u){return u===void 0||(Es&1073741824)!==0?i.memoizedState=a:(i.memoizedState=u,i=Nx(),xt.lanes|=i,As|=i,u)}function LR(i,a,u,h){return Yr(u,a)?u:Fl.current!==null?(i=Z0(i,u,h),Yr(i,a)||(Zn=!0),i):(Es&42)===0?(Zn=!0,i.memoizedState=u):(i=Nx(),xt.lanes|=i,As|=i,a)}function PR(i,a,u,h,v){var w=V.p;V.p=w!==0&&8>w?w:8;var I=F.T,N={};F.T=N,tv(i,!1,a,u);try{var X=v(),fe=F.S;if(fe!==null&&fe(N,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var we=z5(X,h);$c(i,a,we,Zr(i))}else $c(i,a,h,Zr(i))}catch(Ae){$c(i,a,{then:function(){},status:"rejected",reason:Ae},Zr())}finally{V.p=w,F.T=I}}function $5(){}function J0(i,a,u,h){if(i.tag!==5)throw Error(r(476));var v=NR(i).queue;PR(i,v,a,$,u===null?$5:function(){return FR(i),u(h)})}function NR(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:$},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:u},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function FR(i){var a=NR(i).next.queue;$c(i,a,{},Zr())}function ev(){return pr(cf)}function BR(){return Hn().memoizedState}function HR(){return Hn().memoizedState}function G5(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var u=Zr();i=bs(u);var h=Ss(a,i,u);h!==null&&(Jr(h,a,u),Hc(h,a,u)),a={cache:O0()},i.payload=a;return}a=a.return}}function Y5(i,a,u){var h=Zr();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},hh(i)?UR(a,u):(u=S0(i,a,u,h),u!==null&&(Jr(u,i,h),VR(u,a,h)))}function zR(i,a,u){var h=Zr();$c(i,a,u,h)}function $c(i,a,u,h){var v={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(hh(i))UR(a,v);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=a.lastRenderedReducer,w!==null))try{var I=a.lastRenderedState,N=w(I,u);if(v.hasEagerState=!0,v.eagerState=N,Yr(N,I))return Xd(i,a,v,0),dn===null&&Wd(),!1}catch{}finally{}if(u=S0(i,a,v,h),u!==null)return Jr(u,i,h),VR(u,a,h),!0}return!1}function tv(i,a,u,h){if(h={lane:2,revertLane:kv(),action:h,hasEagerState:!1,eagerState:null,next:null},hh(i)){if(a)throw Error(r(479))}else a=S0(i,u,h,2),a!==null&&Jr(a,i,2)}function hh(i){var a=i.alternate;return i===xt||a!==null&&a===xt}function UR(i,a){Bl=ah=!0;var u=i.pending;u===null?a.next=a:(a.next=u.next,u.next=a),i.pending=a}function VR(i,a,u){if((u&4194048)!==0){var h=a.lanes;h&=i.pendingLanes,u|=h,a.lanes=u,Vt(i,u)}}var ph={readContext:pr,use:uh,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useLayoutEffect:On,useInsertionEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useSyncExternalStore:On,useId:On,useHostTransitionStatus:On,useFormState:On,useActionState:On,useOptimistic:On,useMemoCache:On,useCacheRefresh:On},jR={readContext:pr,use:uh,useCallback:function(i,a){return Dr().memoizedState=[i,a===void 0?null:a],i},useContext:pr,useEffect:CR,useImperativeHandle:function(i,a,u){u=u!=null?u.concat([i]):null,dh(4194308,4,OR.bind(null,a,i),u)},useLayoutEffect:function(i,a){return dh(4194308,4,i,a)},useInsertionEffect:function(i,a){dh(4,2,i,a)},useMemo:function(i,a){var u=Dr();a=a===void 0?null:a;var h=i();if(ka){Ve(!0);try{i()}finally{Ve(!1)}}return u.memoizedState=[h,a],h},useReducer:function(i,a,u){var h=Dr();if(u!==void 0){var v=u(a);if(ka){Ve(!0);try{u(a)}finally{Ve(!1)}}}else v=a;return h.memoizedState=h.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},h.queue=i,i=i.dispatch=Y5.bind(null,xt,i),[h.memoizedState,i]},useRef:function(i){var a=Dr();return i={current:i},a.memoizedState=i},useState:function(i){i=W0(i);var a=i.queue,u=zR.bind(null,xt,a);return a.dispatch=u,[i.memoizedState,u]},useDebugValue:Q0,useDeferredValue:function(i,a){var u=Dr();return Z0(u,i,a)},useTransition:function(){var i=W0(!1);return i=PR.bind(null,xt,i.queue,!0,!1),Dr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,u){var h=xt,v=Dr();if(jt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),dn===null)throw Error(r(349));(Bt&124)!==0||cR(h,a,u)}v.memoizedState=u;var w={value:u,getSnapshot:a};return v.queue=w,CR(dR.bind(null,h,w,i),[i]),h.flags|=2048,zl(9,fh(),fR.bind(null,h,w,u,a),null),u},useId:function(){var i=Dr(),a=dn.identifierPrefix;if(jt){var u=Pi,h=Li;u=(h&~(1<<32-Fe(h)-1)).toString(32)+u,a="«"+a+"R"+u,u=lh++,0<u&&(a+="H"+u.toString(32)),a+="»"}else u=U5++,a="«"+a+"r"+u.toString(32)+"»";return i.memoizedState=a},useHostTransitionStatus:ev,useFormState:ER,useActionState:ER,useOptimistic:function(i){var a=Dr();a.memoizedState=a.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=tv.bind(null,xt,!0,u),u.dispatch=a,[i,a]},useMemoCache:G0,useCacheRefresh:function(){return Dr().memoizedState=G5.bind(null,xt)}},qR={readContext:pr,use:uh,useCallback:DR,useContext:pr,useEffect:TR,useImperativeHandle:IR,useInsertionEffect:AR,useLayoutEffect:MR,useMemo:kR,useReducer:ch,useRef:_R,useState:function(){return ch(Bi)},useDebugValue:Q0,useDeferredValue:function(i,a){var u=Hn();return LR(u,tn.memoizedState,i,a)},useTransition:function(){var i=ch(Bi)[0],a=Hn().memoizedState;return[typeof i=="boolean"?i:jc(i),a]},useSyncExternalStore:uR,useId:BR,useHostTransitionStatus:ev,useFormState:wR,useActionState:wR,useOptimistic:function(i,a){var u=Hn();return gR(u,tn,i,a)},useMemoCache:G0,useCacheRefresh:HR},K5={readContext:pr,use:uh,useCallback:DR,useContext:pr,useEffect:TR,useImperativeHandle:IR,useInsertionEffect:AR,useLayoutEffect:MR,useMemo:kR,useReducer:K0,useRef:_R,useState:function(){return K0(Bi)},useDebugValue:Q0,useDeferredValue:function(i,a){var u=Hn();return tn===null?Z0(u,i,a):LR(u,tn.memoizedState,i,a)},useTransition:function(){var i=K0(Bi)[0],a=Hn().memoizedState;return[typeof i=="boolean"?i:jc(i),a]},useSyncExternalStore:uR,useId:BR,useHostTransitionStatus:ev,useFormState:xR,useActionState:xR,useOptimistic:function(i,a){var u=Hn();return tn!==null?gR(u,tn,i,a):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:G0,useCacheRefresh:HR},Ul=null,Gc=0;function gh(i){var a=Gc;return Gc+=1,Ul===null&&(Ul=[]),tR(Ul,i,a)}function Yc(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function mh(i,a){throw a.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function $R(i){var a=i._init;return a(i._payload)}function GR(i){function a(oe,te){if(i){var ue=oe.deletions;ue===null?(oe.deletions=[te],oe.flags|=16):ue.push(te)}}function u(oe,te){if(!i)return null;for(;te!==null;)a(oe,te),te=te.sibling;return null}function h(oe){for(var te=new Map;oe!==null;)oe.key!==null?te.set(oe.key,oe):te.set(oe.index,oe),oe=oe.sibling;return te}function v(oe,te){return oe=ki(oe,te),oe.index=0,oe.sibling=null,oe}function w(oe,te,ue){return oe.index=ue,i?(ue=oe.alternate,ue!==null?(ue=ue.index,ue<te?(oe.flags|=67108866,te):ue):(oe.flags|=67108866,te)):(oe.flags|=1048576,te)}function I(oe){return i&&oe.alternate===null&&(oe.flags|=67108866),oe}function N(oe,te,ue,Ce){return te===null||te.tag!==6?(te=w0(ue,oe.mode,Ce),te.return=oe,te):(te=v(te,ue),te.return=oe,te)}function X(oe,te,ue,Ce){var We=ue.type;return We===b?we(oe,te,ue.props.children,Ce,ue.key):te!==null&&(te.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===k&&$R(We)===te.type)?(te=v(te,ue.props),Yc(te,ue),te.return=oe,te):(te=Zd(ue.type,ue.key,ue.props,null,oe.mode,Ce),Yc(te,ue),te.return=oe,te)}function fe(oe,te,ue,Ce){return te===null||te.tag!==4||te.stateNode.containerInfo!==ue.containerInfo||te.stateNode.implementation!==ue.implementation?(te=R0(ue,oe.mode,Ce),te.return=oe,te):(te=v(te,ue.children||[]),te.return=oe,te)}function we(oe,te,ue,Ce,We){return te===null||te.tag!==7?(te=_a(ue,oe.mode,Ce,We),te.return=oe,te):(te=v(te,ue),te.return=oe,te)}function Ae(oe,te,ue){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=w0(""+te,oe.mode,ue),te.return=oe,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case m:return ue=Zd(te.type,te.key,te.props,null,oe.mode,ue),Yc(ue,te),ue.return=oe,ue;case y:return te=R0(te,oe.mode,ue),te.return=oe,te;case k:var Ce=te._init;return te=Ce(te._payload),Ae(oe,te,ue)}if(H(te)||j(te))return te=_a(te,oe.mode,ue,null),te.return=oe,te;if(typeof te.then=="function")return Ae(oe,gh(te),ue);if(te.$$typeof===_)return Ae(oe,nh(oe,te),ue);mh(oe,te)}return null}function de(oe,te,ue,Ce){var We=te!==null?te.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return We!==null?null:N(oe,te,""+ue,Ce);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case m:return ue.key===We?X(oe,te,ue,Ce):null;case y:return ue.key===We?fe(oe,te,ue,Ce):null;case k:return We=ue._init,ue=We(ue._payload),de(oe,te,ue,Ce)}if(H(ue)||j(ue))return We!==null?null:we(oe,te,ue,Ce,null);if(typeof ue.then=="function")return de(oe,te,gh(ue),Ce);if(ue.$$typeof===_)return de(oe,te,nh(oe,ue),Ce);mh(oe,ue)}return null}function he(oe,te,ue,Ce,We){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return oe=oe.get(ue)||null,N(te,oe,""+Ce,We);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case m:return oe=oe.get(Ce.key===null?ue:Ce.key)||null,X(te,oe,Ce,We);case y:return oe=oe.get(Ce.key===null?ue:Ce.key)||null,fe(te,oe,Ce,We);case k:var Ct=Ce._init;return Ce=Ct(Ce._payload),he(oe,te,ue,Ce,We)}if(H(Ce)||j(Ce))return oe=oe.get(ue)||null,we(te,oe,Ce,We,null);if(typeof Ce.then=="function")return he(oe,te,ue,gh(Ce),We);if(Ce.$$typeof===_)return he(oe,te,ue,nh(te,Ce),We);mh(te,Ce)}return null}function nt(oe,te,ue,Ce){for(var We=null,Ct=null,Xe=te,et=te=0,er=null;Xe!==null&&et<ue.length;et++){Xe.index>et?(er=Xe,Xe=null):er=Xe.sibling;var zt=de(oe,Xe,ue[et],Ce);if(zt===null){Xe===null&&(Xe=er);break}i&&Xe&&zt.alternate===null&&a(oe,Xe),te=w(zt,te,et),Ct===null?We=zt:Ct.sibling=zt,Ct=zt,Xe=er}if(et===ue.length)return u(oe,Xe),jt&&Ta(oe,et),We;if(Xe===null){for(;et<ue.length;et++)Xe=Ae(oe,ue[et],Ce),Xe!==null&&(te=w(Xe,te,et),Ct===null?We=Xe:Ct.sibling=Xe,Ct=Xe);return jt&&Ta(oe,et),We}for(Xe=h(Xe);et<ue.length;et++)er=he(Xe,oe,et,ue[et],Ce),er!==null&&(i&&er.alternate!==null&&Xe.delete(er.key===null?et:er.key),te=w(er,te,et),Ct===null?We=er:Ct.sibling=er,Ct=er);return i&&Xe.forEach(function(Fs){return a(oe,Fs)}),jt&&Ta(oe,et),We}function Je(oe,te,ue,Ce){if(ue==null)throw Error(r(151));for(var We=null,Ct=null,Xe=te,et=te=0,er=null,zt=ue.next();Xe!==null&&!zt.done;et++,zt=ue.next()){Xe.index>et?(er=Xe,Xe=null):er=Xe.sibling;var Fs=de(oe,Xe,zt.value,Ce);if(Fs===null){Xe===null&&(Xe=er);break}i&&Xe&&Fs.alternate===null&&a(oe,Xe),te=w(Fs,te,et),Ct===null?We=Fs:Ct.sibling=Fs,Ct=Fs,Xe=er}if(zt.done)return u(oe,Xe),jt&&Ta(oe,et),We;if(Xe===null){for(;!zt.done;et++,zt=ue.next())zt=Ae(oe,zt.value,Ce),zt!==null&&(te=w(zt,te,et),Ct===null?We=zt:Ct.sibling=zt,Ct=zt);return jt&&Ta(oe,et),We}for(Xe=h(Xe);!zt.done;et++,zt=ue.next())zt=he(Xe,oe,et,zt.value,Ce),zt!==null&&(i&&zt.alternate!==null&&Xe.delete(zt.key===null?et:zt.key),te=w(zt,te,et),Ct===null?We=zt:Ct.sibling=zt,Ct=zt);return i&&Xe.forEach(function(Wk){return a(oe,Wk)}),jt&&Ta(oe,et),We}function rn(oe,te,ue,Ce){if(typeof ue=="object"&&ue!==null&&ue.type===b&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case m:e:{for(var We=ue.key;te!==null;){if(te.key===We){if(We=ue.type,We===b){if(te.tag===7){u(oe,te.sibling),Ce=v(te,ue.props.children),Ce.return=oe,oe=Ce;break e}}else if(te.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===k&&$R(We)===te.type){u(oe,te.sibling),Ce=v(te,ue.props),Yc(Ce,ue),Ce.return=oe,oe=Ce;break e}u(oe,te);break}else a(oe,te);te=te.sibling}ue.type===b?(Ce=_a(ue.props.children,oe.mode,Ce,ue.key),Ce.return=oe,oe=Ce):(Ce=Zd(ue.type,ue.key,ue.props,null,oe.mode,Ce),Yc(Ce,ue),Ce.return=oe,oe=Ce)}return I(oe);case y:e:{for(We=ue.key;te!==null;){if(te.key===We)if(te.tag===4&&te.stateNode.containerInfo===ue.containerInfo&&te.stateNode.implementation===ue.implementation){u(oe,te.sibling),Ce=v(te,ue.children||[]),Ce.return=oe,oe=Ce;break e}else{u(oe,te);break}else a(oe,te);te=te.sibling}Ce=R0(ue,oe.mode,Ce),Ce.return=oe,oe=Ce}return I(oe);case k:return We=ue._init,ue=We(ue._payload),rn(oe,te,ue,Ce)}if(H(ue))return nt(oe,te,ue,Ce);if(j(ue)){if(We=j(ue),typeof We!="function")throw Error(r(150));return ue=We.call(ue),Je(oe,te,ue,Ce)}if(typeof ue.then=="function")return rn(oe,te,gh(ue),Ce);if(ue.$$typeof===_)return rn(oe,te,nh(oe,ue),Ce);mh(oe,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,te!==null&&te.tag===6?(u(oe,te.sibling),Ce=v(te,ue),Ce.return=oe,oe=Ce):(u(oe,te),Ce=w0(ue,oe.mode,Ce),Ce.return=oe,oe=Ce),I(oe)):u(oe,te)}return function(oe,te,ue,Ce){try{Gc=0;var We=rn(oe,te,ue,Ce);return Ul=null,We}catch(Xe){if(Xe===Fc||Xe===oh)throw Xe;var Ct=Kr(29,Xe,null,oe.mode);return Ct.lanes=Ce,Ct.return=oe,Ct}finally{}}}var Vl=GR(!0),YR=GR(!1),vo=Q(null),ei=null;function ws(i){var a=i.alternate;G(qn,qn.current&1),G(vo,i),ei===null&&(a===null||Fl.current!==null||a.memoizedState!==null)&&(ei=i)}function KR(i){if(i.tag===22){if(G(qn,qn.current),G(vo,i),ei===null){var a=i.alternate;a!==null&&a.memoizedState!==null&&(ei=i)}}else Rs()}function Rs(){G(qn,qn.current),G(vo,vo.current)}function Hi(i){Z(vo),ei===i&&(ei=null),Z(qn)}var qn=Q(0);function vh(i){for(var a=i;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||$v(u)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function nv(i,a,u,h){a=i.memoizedState,u=u(h,a),u=u==null?a:p({},a,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var rv={enqueueSetState:function(i,a,u){i=i._reactInternals;var h=Zr(),v=bs(h);v.payload=a,u!=null&&(v.callback=u),a=Ss(i,v,h),a!==null&&(Jr(a,i,h),Hc(a,i,h))},enqueueReplaceState:function(i,a,u){i=i._reactInternals;var h=Zr(),v=bs(h);v.tag=1,v.payload=a,u!=null&&(v.callback=u),a=Ss(i,v,h),a!==null&&(Jr(a,i,h),Hc(a,i,h))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var u=Zr(),h=bs(u);h.tag=2,a!=null&&(h.callback=a),a=Ss(i,h,u),a!==null&&(Jr(a,i,u),Hc(a,i,u))}};function WR(i,a,u,h,v,w,I){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,w,I):a.prototype&&a.prototype.isPureReactComponent?!Mc(u,h)||!Mc(v,w):!0}function XR(i,a,u,h){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,h),a.state!==i&&rv.enqueueReplaceState(a,a.state,null)}function La(i,a){var u=a;if("ref"in a){u={};for(var h in a)h!=="ref"&&(u[h]=a[h])}if(i=i.defaultProps){u===a&&(u=p({},u));for(var v in i)u[v]===void 0&&(u[v]=i[v])}return u}var yh=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function QR(i){yh(i)}function ZR(i){console.error(i)}function JR(i){yh(i)}function bh(i,a){try{var u=i.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(h){setTimeout(function(){throw h})}}function ex(i,a,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function ov(i,a,u){return u=bs(u),u.tag=3,u.payload={element:null},u.callback=function(){bh(i,a)},u}function tx(i){return i=bs(i),i.tag=3,i}function nx(i,a,u,h){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var w=h.value;i.payload=function(){return v(w)},i.callback=function(){ex(a,u,h)}}var I=u.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(i.callback=function(){ex(a,u,h),typeof v!="function"&&(Ms===null?Ms=new Set([this]):Ms.add(this));var N=h.stack;this.componentDidCatch(h.value,{componentStack:N!==null?N:""})})}function W5(i,a,u,h,v){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(a=u.alternate,a!==null&&Lc(a,u,v,!0),u=vo.current,u!==null){switch(u.tag){case 13:return ei===null?Av():u.alternate===null&&Tn===0&&(Tn=3),u.flags&=-257,u.flags|=65536,u.lanes=v,h===k0?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([h]):a.add(h),Ov(i,h,v)),!1;case 22:return u.flags|=65536,h===k0?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([h]):u.add(h)),Ov(i,h,v)),!1}throw Error(r(435,u.tag))}return Ov(i,h,v),Av(),!1}if(jt)return a=vo.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,h!==C0&&(i=Error(r(422),{cause:h}),kc(ho(i,u)))):(h!==C0&&(a=Error(r(423),{cause:h}),kc(ho(a,u))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,h=ho(h,u),v=ov(i.stateNode,h,v),N0(i,v),Tn!==4&&(Tn=2)),!1;var w=Error(r(520),{cause:h});if(w=ho(w,u),ef===null?ef=[w]:ef.push(w),Tn!==4&&(Tn=2),a===null)return!0;h=ho(h,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,i=v&-v,u.lanes|=i,i=ov(u.stateNode,h,i),N0(u,i),!1;case 1:if(a=u.type,w=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ms===null||!Ms.has(w))))return u.flags|=65536,v&=-v,u.lanes|=v,v=tx(v),nx(v,i,u,h),N0(u,v),!1}u=u.return}while(u!==null);return!1}var rx=Error(r(461)),Zn=!1;function ar(i,a,u,h){a.child=i===null?YR(a,null,u,h):Vl(a,i.child,u,h)}function ox(i,a,u,h,v){u=u.render;var w=a.ref;if("ref"in h){var I={};for(var N in h)N!=="ref"&&(I[N]=h[N])}else I=h;return Ia(a),h=U0(i,a,u,I,w,v),N=V0(),i!==null&&!Zn?(j0(i,a,v),zi(i,a,v)):(jt&&N&&x0(a),a.flags|=1,ar(i,a,h,v),a.child)}function ix(i,a,u,h,v){if(i===null){var w=u.type;return typeof w=="function"&&!E0(w)&&w.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=w,sx(i,a,w,h,v)):(i=Zd(u.type,null,h,a,a.mode,v),i.ref=a.ref,i.return=a,a.child=i)}if(w=i.child,!dv(i,v)){var I=w.memoizedProps;if(u=u.compare,u=u!==null?u:Mc,u(I,h)&&i.ref===a.ref)return zi(i,a,v)}return a.flags|=1,i=ki(w,h),i.ref=a.ref,i.return=a,a.child=i}function sx(i,a,u,h,v){if(i!==null){var w=i.memoizedProps;if(Mc(w,h)&&i.ref===a.ref)if(Zn=!1,a.pendingProps=h=w,dv(i,v))(i.flags&131072)!==0&&(Zn=!0);else return a.lanes=i.lanes,zi(i,a,v)}return iv(i,a,u,h,v)}function ax(i,a,u){var h=a.pendingProps,v=h.children,w=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((a.flags&128)!==0){if(h=w!==null?w.baseLanes|u:u,i!==null){for(v=a.child=i.child,w=0;v!==null;)w=w|v.lanes|v.childLanes,v=v.sibling;a.childLanes=w&~h}else a.childLanes=0,a.child=null;return lx(i,a,h,u)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&rh(a,w!==null?w.cachePool:null),w!==null?sR(a,w):B0(),KR(a);else return a.lanes=a.childLanes=536870912,lx(i,a,w!==null?w.baseLanes|u:u,u)}else w!==null?(rh(a,w.cachePool),sR(a,w),Rs(),a.memoizedState=null):(i!==null&&rh(a,null),B0(),Rs());return ar(i,a,v,u),a.child}function lx(i,a,u,h){var v=D0();return v=v===null?null:{parent:jn._currentValue,pool:v},a.memoizedState={baseLanes:u,cachePool:v},i!==null&&rh(a,null),B0(),KR(a),i!==null&&Lc(i,a,h,!0),null}function Sh(i,a){var u=a.ref;if(u===null)i!==null&&i.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(a.flags|=4194816)}}function iv(i,a,u,h,v){return Ia(a),u=U0(i,a,u,h,void 0,v),h=V0(),i!==null&&!Zn?(j0(i,a,v),zi(i,a,v)):(jt&&h&&x0(a),a.flags|=1,ar(i,a,u,v),a.child)}function ux(i,a,u,h,v,w){return Ia(a),a.updateQueue=null,u=lR(a,h,u,v),aR(i),h=V0(),i!==null&&!Zn?(j0(i,a,w),zi(i,a,w)):(jt&&h&&x0(a),a.flags|=1,ar(i,a,u,w),a.child)}function cx(i,a,u,h,v){if(Ia(a),a.stateNode===null){var w=Dl,I=u.contextType;typeof I=="object"&&I!==null&&(w=pr(I)),w=new u(h,w),a.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=rv,a.stateNode=w,w._reactInternals=a,w=a.stateNode,w.props=h,w.state=a.memoizedState,w.refs={},L0(a),I=u.contextType,w.context=typeof I=="object"&&I!==null?pr(I):Dl,w.state=a.memoizedState,I=u.getDerivedStateFromProps,typeof I=="function"&&(nv(a,u,I,h),w.state=a.memoizedState),typeof u.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&&rv.enqueueReplaceState(w,w.state,null),Uc(a,h,w,v),zc(),w.state=a.memoizedState),typeof w.componentDidMount=="function"&&(a.flags|=4194308),h=!0}else if(i===null){w=a.stateNode;var N=a.memoizedProps,X=La(u,N);w.props=X;var fe=w.context,we=u.contextType;I=Dl,typeof we=="object"&&we!==null&&(I=pr(we));var Ae=u.getDerivedStateFromProps;we=typeof Ae=="function"||typeof w.getSnapshotBeforeUpdate=="function",N=a.pendingProps!==N,we||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(N||fe!==I)&&XR(a,w,h,I),ys=!1;var de=a.memoizedState;w.state=de,Uc(a,h,w,v),zc(),fe=a.memoizedState,N||de!==fe||ys?(typeof Ae=="function"&&(nv(a,u,Ae,h),fe=a.memoizedState),(X=ys||WR(a,u,X,h,de,fe,I))?(we||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=fe),w.props=h,w.state=fe,w.context=I,h=X):(typeof w.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{w=a.stateNode,P0(i,a),I=a.memoizedProps,we=La(u,I),w.props=we,Ae=a.pendingProps,de=w.context,fe=u.contextType,X=Dl,typeof fe=="object"&&fe!==null&&(X=pr(fe)),N=u.getDerivedStateFromProps,(fe=typeof N=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(I!==Ae||de!==X)&&XR(a,w,h,X),ys=!1,de=a.memoizedState,w.state=de,Uc(a,h,w,v),zc();var he=a.memoizedState;I!==Ae||de!==he||ys||i!==null&&i.dependencies!==null&&th(i.dependencies)?(typeof N=="function"&&(nv(a,u,N,h),he=a.memoizedState),(we=ys||WR(a,u,we,h,de,he,X)||i!==null&&i.dependencies!==null&&th(i.dependencies))?(fe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(h,he,X),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(h,he,X)),typeof w.componentDidUpdate=="function"&&(a.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof w.componentDidUpdate!="function"||I===i.memoizedProps&&de===i.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&de===i.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=he),w.props=h,w.state=he,w.context=X,h=we):(typeof w.componentDidUpdate!="function"||I===i.memoizedProps&&de===i.memoizedState||(a.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||I===i.memoizedProps&&de===i.memoizedState||(a.flags|=1024),h=!1)}return w=h,Sh(i,a),h=(a.flags&128)!==0,w||h?(w=a.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:w.render(),a.flags|=1,i!==null&&h?(a.child=Vl(a,i.child,null,v),a.child=Vl(a,null,u,v)):ar(i,a,u,v),a.memoizedState=w.state,i=a.child):i=zi(i,a,v),i}function fx(i,a,u,h){return Dc(),a.flags|=256,ar(i,a,u,h),a.child}var sv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function av(i){return{baseLanes:i,cachePool:Zw()}}function lv(i,a,u){return i=i!==null?i.childLanes&~u:0,a&&(i|=yo),i}function dx(i,a,u){var h=a.pendingProps,v=!1,w=(a.flags&128)!==0,I;if((I=w)||(I=i!==null&&i.memoizedState===null?!1:(qn.current&2)!==0),I&&(v=!0,a.flags&=-129),I=(a.flags&32)!==0,a.flags&=-33,i===null){if(jt){if(v?ws(a):Rs(),jt){var N=Cn,X;if(X=N){e:{for(X=N,N=Jo;X.nodeType!==8;){if(!N){N=null;break e}if(X=Bo(X.nextSibling),X===null){N=null;break e}}N=X}N!==null?(a.memoizedState={dehydrated:N,treeContext:Ca!==null?{id:Li,overflow:Pi}:null,retryLane:536870912,hydrationErrors:null},X=Kr(18,null,null,0),X.stateNode=N,X.return=a,a.child=X,Er=a,Cn=null,X=!0):X=!1}X||Ma(a)}if(N=a.memoizedState,N!==null&&(N=N.dehydrated,N!==null))return $v(N)?a.lanes=32:a.lanes=536870912,null;Hi(a)}return N=h.children,h=h.fallback,v?(Rs(),v=a.mode,N=Eh({mode:"hidden",children:N},v),h=_a(h,v,u,null),N.return=a,h.return=a,N.sibling=h,a.child=N,v=a.child,v.memoizedState=av(u),v.childLanes=lv(i,I,u),a.memoizedState=sv,h):(ws(a),uv(a,N))}if(X=i.memoizedState,X!==null&&(N=X.dehydrated,N!==null)){if(w)a.flags&256?(ws(a),a.flags&=-257,a=cv(i,a,u)):a.memoizedState!==null?(Rs(),a.child=i.child,a.flags|=128,a=null):(Rs(),v=h.fallback,N=a.mode,h=Eh({mode:"visible",children:h.children},N),v=_a(v,N,u,null),v.flags|=2,h.return=a,v.return=a,h.sibling=v,a.child=h,Vl(a,i.child,null,u),h=a.child,h.memoizedState=av(u),h.childLanes=lv(i,I,u),a.memoizedState=sv,a=v);else if(ws(a),$v(N)){if(I=N.nextSibling&&N.nextSibling.dataset,I)var fe=I.dgst;I=fe,h=Error(r(419)),h.stack="",h.digest=I,kc({value:h,source:null,stack:null}),a=cv(i,a,u)}else if(Zn||Lc(i,a,u,!1),I=(u&i.childLanes)!==0,Zn||I){if(I=dn,I!==null&&(h=u&-u,h=(h&42)!==0?1:Ft(h),h=(h&(I.suspendedLanes|u))!==0?0:h,h!==0&&h!==X.retryLane))throw X.retryLane=h,Il(i,h),Jr(I,i,h),rx;N.data==="$?"||Av(),a=cv(i,a,u)}else N.data==="$?"?(a.flags|=192,a.child=i.child,a=null):(i=X.treeContext,Cn=Bo(N.nextSibling),Er=a,jt=!0,Aa=null,Jo=!1,i!==null&&(go[mo++]=Li,go[mo++]=Pi,go[mo++]=Ca,Li=i.id,Pi=i.overflow,Ca=a),a=uv(a,h.children),a.flags|=4096);return a}return v?(Rs(),v=h.fallback,N=a.mode,X=i.child,fe=X.sibling,h=ki(X,{mode:"hidden",children:h.children}),h.subtreeFlags=X.subtreeFlags&65011712,fe!==null?v=ki(fe,v):(v=_a(v,N,u,null),v.flags|=2),v.return=a,h.return=a,h.sibling=v,a.child=h,h=v,v=a.child,N=i.child.memoizedState,N===null?N=av(u):(X=N.cachePool,X!==null?(fe=jn._currentValue,X=X.parent!==fe?{parent:fe,pool:fe}:X):X=Zw(),N={baseLanes:N.baseLanes|u,cachePool:X}),v.memoizedState=N,v.childLanes=lv(i,I,u),a.memoizedState=sv,h):(ws(a),u=i.child,i=u.sibling,u=ki(u,{mode:"visible",children:h.children}),u.return=a,u.sibling=null,i!==null&&(I=a.deletions,I===null?(a.deletions=[i],a.flags|=16):I.push(i)),a.child=u,a.memoizedState=null,u)}function uv(i,a){return a=Eh({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function Eh(i,a){return i=Kr(22,i,null,a),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function cv(i,a,u){return Vl(a,i.child,null,u),i=uv(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function hx(i,a,u){i.lanes|=a;var h=i.alternate;h!==null&&(h.lanes|=a),A0(i.return,a,u)}function fv(i,a,u,h,v){var w=i.memoizedState;w===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:v}:(w.isBackwards=a,w.rendering=null,w.renderingStartTime=0,w.last=h,w.tail=u,w.tailMode=v)}function px(i,a,u){var h=a.pendingProps,v=h.revealOrder,w=h.tail;if(ar(i,a,h.children,u),h=qn.current,(h&2)!==0)h=h&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&hx(i,u,a);else if(i.tag===19)hx(i,u,a);else if(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}h&=1}switch(G(qn,h),v){case"forwards":for(u=a.child,v=null;u!==null;)i=u.alternate,i!==null&&vh(i)===null&&(v=u),u=u.sibling;u=v,u===null?(v=a.child,a.child=null):(v=u.sibling,u.sibling=null),fv(a,!1,v,u,w);break;case"backwards":for(u=null,v=a.child,a.child=null;v!==null;){if(i=v.alternate,i!==null&&vh(i)===null){a.child=v;break}i=v.sibling,v.sibling=u,u=v,v=i}fv(a,!0,u,null,w);break;case"together":fv(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function zi(i,a,u){if(i!==null&&(a.dependencies=i.dependencies),As|=a.lanes,(u&a.childLanes)===0)if(i!==null){if(Lc(i,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,u=ki(i,i.pendingProps),a.child=u,u.return=a;i.sibling!==null;)i=i.sibling,u=u.sibling=ki(i,i.pendingProps),u.return=a;u.sibling=null}return a.child}function dv(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&th(i)))}function X5(i,a,u){switch(a.tag){case 3:K(a,a.stateNode.containerInfo),vs(a,jn,i.memoizedState.cache),Dc();break;case 27:case 5:ie(a);break;case 4:K(a,a.stateNode.containerInfo);break;case 10:vs(a,a.type,a.memoizedProps.value);break;case 13:var h=a.memoizedState;if(h!==null)return h.dehydrated!==null?(ws(a),a.flags|=128,null):(u&a.child.childLanes)!==0?dx(i,a,u):(ws(a),i=zi(i,a,u),i!==null?i.sibling:null);ws(a);break;case 19:var v=(i.flags&128)!==0;if(h=(u&a.childLanes)!==0,h||(Lc(i,a,u,!1),h=(u&a.childLanes)!==0),v){if(h)return px(i,a,u);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),G(qn,qn.current),h)break;return null;case 22:case 23:return a.lanes=0,ax(i,a,u);case 24:vs(a,jn,i.memoizedState.cache)}return zi(i,a,u)}function gx(i,a,u){if(i!==null)if(i.memoizedProps!==a.pendingProps)Zn=!0;else{if(!dv(i,u)&&(a.flags&128)===0)return Zn=!1,X5(i,a,u);Zn=(i.flags&131072)!==0}else Zn=!1,jt&&(a.flags&1048576)!==0&&$w(a,eh,a.index);switch(a.lanes=0,a.tag){case 16:e:{i=a.pendingProps;var h=a.elementType,v=h._init;if(h=v(h._payload),a.type=h,typeof h=="function")E0(h)?(i=La(h,i),a.tag=1,a=cx(null,a,h,i,u)):(a.tag=0,a=iv(null,a,h,i,u));else{if(h!=null){if(v=h.$$typeof,v===M){a.tag=11,a=ox(null,a,h,i,u);break e}else if(v===O){a.tag=14,a=ix(null,a,h,i,u);break e}}throw a=Y(h)||h,Error(r(306,a,""))}}return a;case 0:return iv(i,a,a.type,a.pendingProps,u);case 1:return h=a.type,v=La(h,a.pendingProps),cx(i,a,h,v,u);case 3:e:{if(K(a,a.stateNode.containerInfo),i===null)throw Error(r(387));h=a.pendingProps;var w=a.memoizedState;v=w.element,P0(i,a),Uc(a,h,null,u);var I=a.memoizedState;if(h=I.cache,vs(a,jn,h),h!==w.cache&&M0(a,[jn],u,!0),zc(),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=fx(i,a,h,u);break e}else if(h!==v){v=ho(Error(r(424)),a),kc(v),a=fx(i,a,h,u);break e}else{switch(i=a.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Cn=Bo(i.firstChild),Er=a,jt=!0,Aa=null,Jo=!0,u=YR(a,null,h,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Dc(),h===v){a=zi(i,a,u);break e}ar(i,a,h,u)}a=a.child}return a;case 26:return Sh(i,a),i===null?(u=b_(a.type,null,a.pendingProps,null))?a.memoizedState=u:jt||(u=a.type,i=a.pendingProps,h=Ph(z.current).createElement(u),h[ot]=a,h[Ht]=i,ur(h,u,i),Qn(h),a.stateNode=h):a.memoizedState=b_(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return ie(a),i===null&&jt&&(h=a.stateNode=m_(a.type,a.pendingProps,z.current),Er=a,Jo=!0,v=Cn,Ds(a.type)?(Gv=v,Cn=Bo(h.firstChild)):Cn=v),ar(i,a,a.pendingProps.children,u),Sh(i,a),i===null&&(a.flags|=4194304),a.child;case 5:return i===null&&jt&&((v=h=Cn)&&(h=xk(h,a.type,a.pendingProps,Jo),h!==null?(a.stateNode=h,Er=a,Cn=Bo(h.firstChild),Jo=!1,v=!0):v=!1),v||Ma(a)),ie(a),v=a.type,w=a.pendingProps,I=i!==null?i.memoizedProps:null,h=w.children,Vv(v,w)?h=null:I!==null&&Vv(v,I)&&(a.flags|=32),a.memoizedState!==null&&(v=U0(i,a,V5,null,null,u),cf._currentValue=v),Sh(i,a),ar(i,a,h,u),a.child;case 6:return i===null&&jt&&((i=u=Cn)&&(u=_k(u,a.pendingProps,Jo),u!==null?(a.stateNode=u,Er=a,Cn=null,i=!0):i=!1),i||Ma(a)),null;case 13:return dx(i,a,u);case 4:return K(a,a.stateNode.containerInfo),h=a.pendingProps,i===null?a.child=Vl(a,null,h,u):ar(i,a,h,u),a.child;case 11:return ox(i,a,a.type,a.pendingProps,u);case 7:return ar(i,a,a.pendingProps,u),a.child;case 8:return ar(i,a,a.pendingProps.children,u),a.child;case 12:return ar(i,a,a.pendingProps.children,u),a.child;case 10:return h=a.pendingProps,vs(a,a.type,h.value),ar(i,a,h.children,u),a.child;case 9:return v=a.type._context,h=a.pendingProps.children,Ia(a),v=pr(v),h=h(v),a.flags|=1,ar(i,a,h,u),a.child;case 14:return ix(i,a,a.type,a.pendingProps,u);case 15:return sx(i,a,a.type,a.pendingProps,u);case 19:return px(i,a,u);case 31:return h=a.pendingProps,u=a.mode,h={mode:h.mode,children:h.children},i===null?(u=Eh(h,u),u.ref=a.ref,a.child=u,u.return=a,a=u):(u=ki(i.child,h),u.ref=a.ref,a.child=u,u.return=a,a=u),a;case 22:return ax(i,a,u);case 24:return Ia(a),h=pr(jn),i===null?(v=D0(),v===null&&(v=dn,w=O0(),v.pooledCache=w,w.refCount++,w!==null&&(v.pooledCacheLanes|=u),v=w),a.memoizedState={parent:h,cache:v},L0(a),vs(a,jn,v)):((i.lanes&u)!==0&&(P0(i,a),Uc(a,null,null,u),zc()),v=i.memoizedState,w=a.memoizedState,v.parent!==h?(v={parent:h,cache:h},a.memoizedState=v,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=v),vs(a,jn,h)):(h=w.cache,vs(a,jn,h),h!==v.cache&&M0(a,[jn],u,!0))),ar(i,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Ui(i){i.flags|=4}function mx(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!x_(a)){if(a=vo.current,a!==null&&((Bt&4194048)===Bt?ei!==null:(Bt&62914560)!==Bt&&(Bt&536870912)===0||a!==ei))throw Bc=k0,Jw;i.flags|=8192}}function wh(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?Nt():536870912,i.lanes|=a,Gl|=a)}function Kc(i,a){if(!jt)switch(i.tailMode){case"hidden":a=i.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function wn(i){var a=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(a)for(var v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=u,a}function Q5(i,a,u){var h=a.pendingProps;switch(_0(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wn(a),null;case 1:return wn(a),null;case 3:return u=a.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),a.memoizedState.cache!==h&&(a.flags|=2048),Fi(jn),se(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Ic(a)?Ui(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Kw())),wn(a),null;case 26:return u=a.memoizedState,i===null?(Ui(a),u!==null?(wn(a),mx(a,u)):(wn(a),a.flags&=-16777217)):u?u!==i.memoizedState?(Ui(a),wn(a),mx(a,u)):(wn(a),a.flags&=-16777217):(i.memoizedProps!==h&&Ui(a),wn(a),a.flags&=-16777217),null;case 27:ve(a),u=z.current;var v=a.type;if(i!==null&&a.stateNode!=null)i.memoizedProps!==h&&Ui(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return wn(a),null}i=ne.current,Ic(a)?Gw(a):(i=m_(v,h,u),a.stateNode=i,Ui(a))}return wn(a),null;case 5:if(ve(a),u=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==h&&Ui(a);else{if(!h){if(a.stateNode===null)throw Error(r(166));return wn(a),null}if(i=ne.current,Ic(a))Gw(a);else{switch(v=Ph(z.current),i){case 1:i=v.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:i=v.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":i=v.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":i=v.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":i=v.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?v.createElement("select",{is:h.is}):v.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?v.createElement(u,{is:h.is}):v.createElement(u)}}i[ot]=a,i[Ht]=h;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)i.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=i;e:switch(ur(i,u,h),u){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ui(a)}}return wn(a),a.flags&=-16777217,null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==h&&Ui(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error(r(166));if(i=z.current,Ic(a)){if(i=a.stateNode,u=a.memoizedProps,h=null,v=Er,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}i[ot]=a,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||u_(i.nodeValue,u)),i||Ma(a)}else i=Ph(i).createTextNode(h),i[ot]=a,a.stateNode=i}return wn(a),null;case 13:if(h=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Ic(a),h!==null&&h.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[ot]=a}else Dc(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;wn(a),v=!1}else v=Kw(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return a.flags&256?(Hi(a),a):(Hi(a),null)}if(Hi(a),(a.flags&128)!==0)return a.lanes=u,a;if(u=h!==null,i=i!==null&&i.memoizedState!==null,u){h=a.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool);var w=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),w!==v&&(h.flags|=2048)}return u!==i&&u&&(a.child.flags|=8192),wh(a,a.updateQueue),wn(a),null;case 4:return se(),i===null&&Fv(a.stateNode.containerInfo),wn(a),null;case 10:return Fi(a.type),wn(a),null;case 19:if(Z(qn),v=a.memoizedState,v===null)return wn(a),null;if(h=(a.flags&128)!==0,w=v.rendering,w===null)if(h)Kc(v,!1);else{if(Tn!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(w=vh(i),w!==null){for(a.flags|=128,Kc(v,!1),i=w.updateQueue,a.updateQueue=i,wh(a,i),a.subtreeFlags=0,i=u,u=a.child;u!==null;)qw(u,i),u=u.sibling;return G(qn,qn.current&1|2),a.child}i=i.sibling}v.tail!==null&&ge()>_h&&(a.flags|=128,h=!0,Kc(v,!1),a.lanes=4194304)}else{if(!h)if(i=vh(w),i!==null){if(a.flags|=128,h=!0,i=i.updateQueue,a.updateQueue=i,wh(a,i),Kc(v,!0),v.tail===null&&v.tailMode==="hidden"&&!w.alternate&&!jt)return wn(a),null}else 2*ge()-v.renderingStartTime>_h&&u!==536870912&&(a.flags|=128,h=!0,Kc(v,!1),a.lanes=4194304);v.isBackwards?(w.sibling=a.child,a.child=w):(i=v.last,i!==null?i.sibling=w:a.child=w,v.last=w)}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=ge(),a.sibling=null,i=qn.current,G(qn,h?i&1|2:i&1),a):(wn(a),null);case 22:case 23:return Hi(a),H0(),h=a.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(u&536870912)!==0&&(a.flags&128)===0&&(wn(a),a.subtreeFlags&6&&(a.flags|=8192)):wn(a),u=a.updateQueue,u!==null&&wh(a,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==u&&(a.flags|=2048),i!==null&&Z(Da),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Fi(jn),wn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function Z5(i,a){switch(_0(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return Fi(jn),se(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return ve(a),null;case 13:if(Hi(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Dc()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return Z(qn),null;case 4:return se(),null;case 10:return Fi(a.type),null;case 22:case 23:return Hi(a),H0(),i!==null&&Z(Da),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return Fi(jn),null;case 25:return null;default:return null}}function vx(i,a){switch(_0(a),a.tag){case 3:Fi(jn),se();break;case 26:case 27:case 5:ve(a);break;case 4:se();break;case 13:Hi(a);break;case 19:Z(qn);break;case 10:Fi(a.type);break;case 22:case 23:Hi(a),H0(),i!==null&&Z(Da);break;case 24:Fi(jn)}}function Wc(i,a){try{var u=a.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var v=h.next;u=v;do{if((u.tag&i)===i){h=void 0;var w=u.create,I=u.inst;h=w(),I.destroy=h}u=u.next}while(u!==v)}}catch(N){ln(a,a.return,N)}}function xs(i,a,u){try{var h=a.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var w=v.next;h=w;do{if((h.tag&i)===i){var I=h.inst,N=I.destroy;if(N!==void 0){I.destroy=void 0,v=a;var X=u,fe=N;try{fe()}catch(we){ln(v,X,we)}}}h=h.next}while(h!==w)}}catch(we){ln(a,a.return,we)}}function yx(i){var a=i.updateQueue;if(a!==null){var u=i.stateNode;try{iR(a,u)}catch(h){ln(i,i.return,h)}}}function bx(i,a,u){u.props=La(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){ln(i,a,h)}}function Xc(i,a){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(v){ln(i,a,v)}}function ti(i,a){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(v){ln(i,a,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){ln(i,a,v)}else u.current=null}function Sx(i){var a=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(v){ln(i,i.return,v)}}function hv(i,a,u){try{var h=i.stateNode;bk(h,i.type,u,a),h[Ht]=a}catch(v){ln(i,i.return,v)}}function Ex(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Ds(i.type)||i.tag===4}function pv(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Ex(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Ds(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function gv(i,a,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(i),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Lh));else if(h!==4&&(h===27&&Ds(i.type)&&(u=i.stateNode,a=null),i=i.child,i!==null))for(gv(i,a,u),i=i.sibling;i!==null;)gv(i,a,u),i=i.sibling}function Rh(i,a,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?u.insertBefore(i,a):u.appendChild(i);else if(h!==4&&(h===27&&Ds(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Rh(i,a,u),i=i.sibling;i!==null;)Rh(i,a,u),i=i.sibling}function wx(i){var a=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,v=a.attributes;v.length;)a.removeAttributeNode(v[0]);ur(a,h,u),a[ot]=i,a[Ht]=u}catch(w){ln(i,i.return,w)}}var Vi=!1,In=!1,mv=!1,Rx=typeof WeakSet=="function"?WeakSet:Set,Jn=null;function J5(i,a){if(i=i.containerInfo,zv=Uh,i=Lw(i),p0(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var v=h.anchorOffset,w=h.focusNode;h=h.focusOffset;try{u.nodeType,w.nodeType}catch{u=null;break e}var I=0,N=-1,X=-1,fe=0,we=0,Ae=i,de=null;t:for(;;){for(var he;Ae!==u||v!==0&&Ae.nodeType!==3||(N=I+v),Ae!==w||h!==0&&Ae.nodeType!==3||(X=I+h),Ae.nodeType===3&&(I+=Ae.nodeValue.length),(he=Ae.firstChild)!==null;)de=Ae,Ae=he;for(;;){if(Ae===i)break t;if(de===u&&++fe===v&&(N=I),de===w&&++we===h&&(X=I),(he=Ae.nextSibling)!==null)break;Ae=de,de=Ae.parentNode}Ae=he}u=N===-1||X===-1?null:{start:N,end:X}}else u=null}u=u||{start:0,end:0}}else u=null;for(Uv={focusedElem:i,selectionRange:u},Uh=!1,Jn=a;Jn!==null;)if(a=Jn,i=a.child,(a.subtreeFlags&1024)!==0&&i!==null)i.return=a,Jn=i;else for(;Jn!==null;){switch(a=Jn,w=a.alternate,i=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&w!==null){i=void 0,u=a,v=w.memoizedProps,w=w.memoizedState,h=u.stateNode;try{var nt=La(u.type,v,u.elementType===u.type);i=h.getSnapshotBeforeUpdate(nt,w),h.__reactInternalSnapshotBeforeUpdate=i}catch(Je){ln(u,u.return,Je)}}break;case 3:if((i&1024)!==0){if(i=a.stateNode.containerInfo,u=i.nodeType,u===9)qv(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":qv(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=a.sibling,i!==null){i.return=a.return,Jn=i;break}Jn=a.return}}function xx(i,a,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:_s(i,u),h&4&&Wc(5,u);break;case 1:if(_s(i,u),h&4)if(i=u.stateNode,a===null)try{i.componentDidMount()}catch(I){ln(u,u.return,I)}else{var v=La(u.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(v,a,i.__reactInternalSnapshotBeforeUpdate)}catch(I){ln(u,u.return,I)}}h&64&&yx(u),h&512&&Xc(u,u.return);break;case 3:if(_s(i,u),h&64&&(i=u.updateQueue,i!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{iR(i,a)}catch(I){ln(u,u.return,I)}}break;case 27:a===null&&h&4&&wx(u);case 26:case 5:_s(i,u),a===null&&h&4&&Sx(u),h&512&&Xc(u,u.return);break;case 12:_s(i,u);break;case 13:_s(i,u),h&4&&Tx(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=lk.bind(null,u),Ck(i,u))));break;case 22:if(h=u.memoizedState!==null||Vi,!h){a=a!==null&&a.memoizedState!==null||In,v=Vi;var w=In;Vi=h,(In=a)&&!w?Cs(i,u,(u.subtreeFlags&8772)!==0):_s(i,u),Vi=v,In=w}break;case 30:break;default:_s(i,u)}}function _x(i){var a=i.alternate;a!==null&&(i.alternate=null,_x(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&bl(a)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var yn=null,kr=!1;function ji(i,a,u){for(u=u.child;u!==null;)Cx(i,a,u),u=u.sibling}function Cx(i,a,u){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(ke,u)}catch{}switch(u.tag){case 26:In||ti(u,a),ji(i,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:In||ti(u,a);var h=yn,v=kr;Ds(u.type)&&(yn=u.stateNode,kr=!1),ji(i,a,u),sf(u.stateNode),yn=h,kr=v;break;case 5:In||ti(u,a);case 6:if(h=yn,v=kr,yn=null,ji(i,a,u),yn=h,kr=v,yn!==null)if(kr)try{(yn.nodeType===9?yn.body:yn.nodeName==="HTML"?yn.ownerDocument.body:yn).removeChild(u.stateNode)}catch(w){ln(u,a,w)}else try{yn.removeChild(u.stateNode)}catch(w){ln(u,a,w)}break;case 18:yn!==null&&(kr?(i=yn,p_(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),pf(i)):p_(yn,u.stateNode));break;case 4:h=yn,v=kr,yn=u.stateNode.containerInfo,kr=!0,ji(i,a,u),yn=h,kr=v;break;case 0:case 11:case 14:case 15:In||xs(2,u,a),In||xs(4,u,a),ji(i,a,u);break;case 1:In||(ti(u,a),h=u.stateNode,typeof h.componentWillUnmount=="function"&&bx(u,a,h)),ji(i,a,u);break;case 21:ji(i,a,u);break;case 22:In=(h=In)||u.memoizedState!==null,ji(i,a,u),In=h;break;default:ji(i,a,u)}}function Tx(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{pf(i)}catch(u){ln(a,a.return,u)}}function ek(i){switch(i.tag){case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new Rx),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new Rx),a;default:throw Error(r(435,i.tag))}}function vv(i,a){var u=ek(i);a.forEach(function(h){var v=uk.bind(null,i,h);u.has(h)||(u.add(h),h.then(v,v))})}function Wr(i,a){var u=a.deletions;if(u!==null)for(var h=0;h<u.length;h++){var v=u[h],w=i,I=a,N=I;e:for(;N!==null;){switch(N.tag){case 27:if(Ds(N.type)){yn=N.stateNode,kr=!1;break e}break;case 5:yn=N.stateNode,kr=!1;break e;case 3:case 4:yn=N.stateNode.containerInfo,kr=!0;break e}N=N.return}if(yn===null)throw Error(r(160));Cx(w,I,v),yn=null,kr=!1,w=v.alternate,w!==null&&(w.return=null),v.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Ax(a,i),a=a.sibling}var Fo=null;function Ax(i,a){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Wr(a,i),Xr(i),h&4&&(xs(3,i,i.return),Wc(3,i),xs(5,i,i.return));break;case 1:Wr(a,i),Xr(i),h&512&&(In||u===null||ti(u,u.return)),h&64&&Vi&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var v=Fo;if(Wr(a,i),Xr(i),h&512&&(In||u===null||ti(u,u.return)),h&4){var w=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":w=v.getElementsByTagName("title")[0],(!w||w[Po]||w[ot]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=v.createElement(h),v.head.insertBefore(w,v.querySelector("head > title"))),ur(w,h,u),w[ot]=i,Qn(w),h=w;break e;case"link":var I=w_("link","href",v).get(h+(u.href||""));if(I){for(var N=0;N<I.length;N++)if(w=I[N],w.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&w.getAttribute("rel")===(u.rel==null?null:u.rel)&&w.getAttribute("title")===(u.title==null?null:u.title)&&w.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){I.splice(N,1);break t}}w=v.createElement(h),ur(w,h,u),v.head.appendChild(w);break;case"meta":if(I=w_("meta","content",v).get(h+(u.content||""))){for(N=0;N<I.length;N++)if(w=I[N],w.getAttribute("content")===(u.content==null?null:""+u.content)&&w.getAttribute("name")===(u.name==null?null:u.name)&&w.getAttribute("property")===(u.property==null?null:u.property)&&w.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&w.getAttribute("charset")===(u.charSet==null?null:u.charSet)){I.splice(N,1);break t}}w=v.createElement(h),ur(w,h,u),v.head.appendChild(w);break;default:throw Error(r(468,h))}w[ot]=i,Qn(w),h=w}i.stateNode=h}else R_(v,i.type,i.stateNode);else i.stateNode=E_(v,h,i.memoizedProps);else w!==h?(w===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):w.count--,h===null?R_(v,i.type,i.stateNode):E_(v,h,i.memoizedProps)):h===null&&i.stateNode!==null&&hv(i,i.memoizedProps,u.memoizedProps)}break;case 27:Wr(a,i),Xr(i),h&512&&(In||u===null||ti(u,u.return)),u!==null&&h&4&&hv(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Wr(a,i),Xr(i),h&512&&(In||u===null||ti(u,u.return)),i.flags&32){v=i.stateNode;try{xl(v,"")}catch(he){ln(i,i.return,he)}}h&4&&i.stateNode!=null&&(v=i.memoizedProps,hv(i,v,u!==null?u.memoizedProps:v)),h&1024&&(mv=!0);break;case 6:if(Wr(a,i),Xr(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(he){ln(i,i.return,he)}}break;case 3:if(Bh=null,v=Fo,Fo=Nh(a.containerInfo),Wr(a,i),Fo=v,Xr(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{pf(a.containerInfo)}catch(he){ln(i,i.return,he)}mv&&(mv=!1,Mx(i));break;case 4:h=Fo,Fo=Nh(i.stateNode.containerInfo),Wr(a,i),Xr(i),Fo=h;break;case 12:Wr(a,i),Xr(i);break;case 13:Wr(a,i),Xr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Rv=ge()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,vv(i,h)));break;case 22:v=i.memoizedState!==null;var X=u!==null&&u.memoizedState!==null,fe=Vi,we=In;if(Vi=fe||v,In=we||X,Wr(a,i),In=we,Vi=fe,Xr(i),h&8192)e:for(a=i.stateNode,a._visibility=v?a._visibility&-2:a._visibility|1,v&&(u===null||X||Vi||In||Pa(i)),u=null,a=i;;){if(a.tag===5||a.tag===26){if(u===null){X=u=a;try{if(w=X.stateNode,v)I=w.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{N=X.stateNode;var Ae=X.memoizedProps.style,de=Ae!=null&&Ae.hasOwnProperty("display")?Ae.display:null;N.style.display=de==null||typeof de=="boolean"?"":(""+de).trim()}}catch(he){ln(X,X.return,he)}}}else if(a.tag===6){if(u===null){X=a;try{X.stateNode.nodeValue=v?"":X.memoizedProps}catch(he){ln(X,X.return,he)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,vv(i,u))));break;case 19:Wr(a,i),Xr(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,vv(i,h)));break;case 30:break;case 21:break;default:Wr(a,i),Xr(i)}}function Xr(i){var a=i.flags;if(a&2){try{for(var u,h=i.return;h!==null;){if(Ex(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,w=pv(i);Rh(i,w,v);break;case 5:var I=u.stateNode;u.flags&32&&(xl(I,""),u.flags&=-33);var N=pv(i);Rh(i,N,I);break;case 3:case 4:var X=u.stateNode.containerInfo,fe=pv(i);gv(i,fe,X);break;default:throw Error(r(161))}}catch(we){ln(i,i.return,we)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function Mx(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;Mx(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function _s(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)xx(i,a.alternate,a),a=a.sibling}function Pa(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:xs(4,a,a.return),Pa(a);break;case 1:ti(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&bx(a,a.return,u),Pa(a);break;case 27:sf(a.stateNode);case 26:case 5:ti(a,a.return),Pa(a);break;case 22:a.memoizedState===null&&Pa(a);break;case 30:Pa(a);break;default:Pa(a)}i=i.sibling}}function Cs(i,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var h=a.alternate,v=i,w=a,I=w.flags;switch(w.tag){case 0:case 11:case 15:Cs(v,w,u),Wc(4,w);break;case 1:if(Cs(v,w,u),h=w,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(fe){ln(h,h.return,fe)}if(h=w,v=h.updateQueue,v!==null){var N=h.stateNode;try{var X=v.shared.hiddenCallbacks;if(X!==null)for(v.shared.hiddenCallbacks=null,v=0;v<X.length;v++)oR(X[v],N)}catch(fe){ln(h,h.return,fe)}}u&&I&64&&yx(w),Xc(w,w.return);break;case 27:wx(w);case 26:case 5:Cs(v,w,u),u&&h===null&&I&4&&Sx(w),Xc(w,w.return);break;case 12:Cs(v,w,u);break;case 13:Cs(v,w,u),u&&I&4&&Tx(v,w);break;case 22:w.memoizedState===null&&Cs(v,w,u),Xc(w,w.return);break;case 30:break;default:Cs(v,w,u)}a=a.sibling}}function yv(i,a){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Pc(u))}function bv(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&Pc(i))}function ni(i,a,u,h){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Ox(i,a,u,h),a=a.sibling}function Ox(i,a,u,h){var v=a.flags;switch(a.tag){case 0:case 11:case 15:ni(i,a,u,h),v&2048&&Wc(9,a);break;case 1:ni(i,a,u,h);break;case 3:ni(i,a,u,h),v&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&Pc(i)));break;case 12:if(v&2048){ni(i,a,u,h),i=a.stateNode;try{var w=a.memoizedProps,I=w.id,N=w.onPostCommit;typeof N=="function"&&N(I,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(X){ln(a,a.return,X)}}else ni(i,a,u,h);break;case 13:ni(i,a,u,h);break;case 23:break;case 22:w=a.stateNode,I=a.alternate,a.memoizedState!==null?w._visibility&2?ni(i,a,u,h):Qc(i,a):w._visibility&2?ni(i,a,u,h):(w._visibility|=2,jl(i,a,u,h,(a.subtreeFlags&10256)!==0)),v&2048&&yv(I,a);break;case 24:ni(i,a,u,h),v&2048&&bv(a.alternate,a);break;default:ni(i,a,u,h)}}function jl(i,a,u,h,v){for(v=v&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var w=i,I=a,N=u,X=h,fe=I.flags;switch(I.tag){case 0:case 11:case 15:jl(w,I,N,X,v),Wc(8,I);break;case 23:break;case 22:var we=I.stateNode;I.memoizedState!==null?we._visibility&2?jl(w,I,N,X,v):Qc(w,I):(we._visibility|=2,jl(w,I,N,X,v)),v&&fe&2048&&yv(I.alternate,I);break;case 24:jl(w,I,N,X,v),v&&fe&2048&&bv(I.alternate,I);break;default:jl(w,I,N,X,v)}a=a.sibling}}function Qc(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=i,h=a,v=h.flags;switch(h.tag){case 22:Qc(u,h),v&2048&&yv(h.alternate,h);break;case 24:Qc(u,h),v&2048&&bv(h.alternate,h);break;default:Qc(u,h)}a=a.sibling}}var Zc=8192;function ql(i){if(i.subtreeFlags&Zc)for(i=i.child;i!==null;)Ix(i),i=i.sibling}function Ix(i){switch(i.tag){case 26:ql(i),i.flags&Zc&&i.memoizedState!==null&&Hk(Fo,i.memoizedState,i.memoizedProps);break;case 5:ql(i);break;case 3:case 4:var a=Fo;Fo=Nh(i.stateNode.containerInfo),ql(i),Fo=a;break;case 22:i.memoizedState===null&&(a=i.alternate,a!==null&&a.memoizedState!==null?(a=Zc,Zc=16777216,ql(i),Zc=a):ql(i));break;default:ql(i)}}function Dx(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function Jc(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var h=a[u];Jn=h,Lx(h,i)}Dx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)kx(i),i=i.sibling}function kx(i){switch(i.tag){case 0:case 11:case 15:Jc(i),i.flags&2048&&xs(9,i,i.return);break;case 3:Jc(i);break;case 12:Jc(i);break;case 22:var a=i.stateNode;i.memoizedState!==null&&a._visibility&2&&(i.return===null||i.return.tag!==13)?(a._visibility&=-3,xh(i)):Jc(i);break;default:Jc(i)}}function xh(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var h=a[u];Jn=h,Lx(h,i)}Dx(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:xs(8,a,a.return),xh(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,xh(a));break;default:xh(a)}i=i.sibling}}function Lx(i,a){for(;Jn!==null;){var u=Jn;switch(u.tag){case 0:case 11:case 15:xs(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Pc(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Jn=h;else e:for(u=i;Jn!==null;){h=Jn;var v=h.sibling,w=h.return;if(_x(h),h===u){Jn=null;break e}if(v!==null){v.return=w,Jn=v;break e}Jn=w}}}var tk={getCacheForType:function(i){var a=pr(jn),u=a.data.get(i);return u===void 0&&(u=i(),a.data.set(i,u)),u}},nk=typeof WeakMap=="function"?WeakMap:Map,Xt=0,dn=null,It=null,Bt=0,Qt=0,Qr=null,Ts=!1,$l=!1,Sv=!1,qi=0,Tn=0,As=0,Na=0,Ev=0,yo=0,Gl=0,ef=null,Lr=null,wv=!1,Rv=0,_h=1/0,Ch=null,Ms=null,lr=0,Os=null,Yl=null,Kl=0,xv=0,_v=null,Px=null,tf=0,Cv=null;function Zr(){if((Xt&2)!==0&&Bt!==0)return Bt&-Bt;if(F.T!==null){var i=Pl;return i!==0?i:kv()}return fn()}function Nx(){yo===0&&(yo=(Bt&536870912)===0||jt?tt():536870912);var i=vo.current;return i!==null&&(i.flags|=32),yo}function Jr(i,a,u){(i===dn&&(Qt===2||Qt===9)||i.cancelPendingCommit!==null)&&(Wl(i,0),Is(i,Bt,yo,!1)),wt(i,u),((Xt&2)===0||i!==dn)&&(i===dn&&((Xt&2)===0&&(Na|=u),Tn===4&&Is(i,Bt,yo,!1)),ri(i))}function Fx(i,a,u){if((Xt&6)!==0)throw Error(r(327));var h=!u&&(a&124)===0&&(a&i.expiredLanes)===0||Ge(i,a),v=h?ik(i,a):Mv(i,a,!0),w=h;do{if(v===0){$l&&!h&&Is(i,a,0,!1);break}else{if(u=i.current.alternate,w&&!rk(u)){v=Mv(i,a,!1),w=!1;continue}if(v===2){if(w=a,i.errorRecoveryDisabledLanes&w)var I=0;else I=i.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){a=I;e:{var N=i;v=ef;var X=N.current.memoizedState.isDehydrated;if(X&&(Wl(N,I).flags|=256),I=Mv(N,I,!1),I!==2){if(Sv&&!X){N.errorRecoveryDisabledLanes|=w,Na|=w,v=4;break e}w=Lr,Lr=v,w!==null&&(Lr===null?Lr=w:Lr.push.apply(Lr,w))}v=I}if(w=!1,v!==2)continue}}if(v===1){Wl(i,0),Is(i,a,0,!0);break}e:{switch(h=i,w=v,w){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Is(h,a,yo,!Ts);break e;case 2:Lr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(v=Rv+300-ge(),10<v)){if(Is(h,a,yo,!Ts),je(h,0,!0)!==0)break e;h.timeoutHandle=d_(Bx.bind(null,h,u,Lr,Ch,wv,a,yo,Na,Gl,Ts,w,2,-0,0),v);break e}Bx(h,u,Lr,Ch,wv,a,yo,Na,Gl,Ts,w,0,-0,0)}}break}while(!0);ri(i)}function Bx(i,a,u,h,v,w,I,N,X,fe,we,Ae,de,he){if(i.timeoutHandle=-1,Ae=a.subtreeFlags,(Ae&8192||(Ae&16785408)===16785408)&&(uf={stylesheets:null,count:0,unsuspend:Bk},Ix(a),Ae=zk(),Ae!==null)){i.cancelPendingCommit=Ae($x.bind(null,i,a,w,u,h,v,I,N,X,we,1,de,he)),Is(i,w,I,!fe);return}$x(i,a,w,u,h,v,I,N,X)}function rk(i){for(var a=i;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var v=u[h],w=v.getSnapshot;v=v.value;try{if(!Yr(w(),v))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Is(i,a,u,h){a&=~Ev,a&=~Na,i.suspendedLanes|=a,i.pingedLanes&=~a,h&&(i.warmLanes|=a),h=i.expirationTimes;for(var v=a;0<v;){var w=31-Fe(v),I=1<<w;h[w]=-1,v&=~I}u!==0&>(i,u,a)}function Th(){return(Xt&6)===0?(nf(0),!1):!0}function Tv(){if(It!==null){if(Qt===0)var i=It.return;else i=It,Ni=Oa=null,q0(i),Ul=null,Gc=0,i=It;for(;i!==null;)vx(i.alternate,i),i=i.return;It=null}}function Wl(i,a){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,Ek(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),Tv(),dn=i,It=u=ki(i.current,null),Bt=a,Qt=0,Qr=null,Ts=!1,$l=Ge(i,a),Sv=!1,Gl=yo=Ev=Na=As=Tn=0,Lr=ef=null,wv=!1,(a&8)!==0&&(a|=a&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=a;0<h;){var v=31-Fe(h),w=1<<v;a|=i[v],h&=~w}return qi=a,Wd(),u}function Hx(i,a){xt=null,F.H=ph,a===Fc||a===oh?(a=nR(),Qt=3):a===Jw?(a=nR(),Qt=4):Qt=a===rx?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Qr=a,It===null&&(Tn=1,bh(i,ho(a,i.current)))}function zx(){var i=F.H;return F.H=ph,i===null?ph:i}function Ux(){var i=F.A;return F.A=tk,i}function Av(){Tn=4,Ts||(Bt&4194048)!==Bt&&vo.current!==null||($l=!0),(As&134217727)===0&&(Na&134217727)===0||dn===null||Is(dn,Bt,yo,!1)}function Mv(i,a,u){var h=Xt;Xt|=2;var v=zx(),w=Ux();(dn!==i||Bt!==a)&&(Ch=null,Wl(i,a)),a=!1;var I=Tn;e:do try{if(Qt!==0&&It!==null){var N=It,X=Qr;switch(Qt){case 8:Tv(),I=6;break e;case 3:case 2:case 9:case 6:vo.current===null&&(a=!0);var fe=Qt;if(Qt=0,Qr=null,Xl(i,N,X,fe),u&&$l){I=0;break e}break;default:fe=Qt,Qt=0,Qr=null,Xl(i,N,X,fe)}}ok(),I=Tn;break}catch(we){Hx(i,we)}while(!0);return a&&i.shellSuspendCounter++,Ni=Oa=null,Xt=h,F.H=v,F.A=w,It===null&&(dn=null,Bt=0,Wd()),I}function ok(){for(;It!==null;)Vx(It)}function ik(i,a){var u=Xt;Xt|=2;var h=zx(),v=Ux();dn!==i||Bt!==a?(Ch=null,_h=ge()+500,Wl(i,a)):$l=Ge(i,a);e:do try{if(Qt!==0&&It!==null){a=It;var w=Qr;t:switch(Qt){case 1:Qt=0,Qr=null,Xl(i,a,w,1);break;case 2:case 9:if(eR(w)){Qt=0,Qr=null,jx(a);break}a=function(){Qt!==2&&Qt!==9||dn!==i||(Qt=7),ri(i)},w.then(a,a);break e;case 3:Qt=7;break e;case 4:Qt=5;break e;case 7:eR(w)?(Qt=0,Qr=null,jx(a)):(Qt=0,Qr=null,Xl(i,a,w,7));break;case 5:var I=null;switch(It.tag){case 26:I=It.memoizedState;case 5:case 27:var N=It;if(!I||x_(I)){Qt=0,Qr=null;var X=N.sibling;if(X!==null)It=X;else{var fe=N.return;fe!==null?(It=fe,Ah(fe)):It=null}break t}}Qt=0,Qr=null,Xl(i,a,w,5);break;case 6:Qt=0,Qr=null,Xl(i,a,w,6);break;case 8:Tv(),Tn=6;break e;default:throw Error(r(462))}}sk();break}catch(we){Hx(i,we)}while(!0);return Ni=Oa=null,F.H=h,F.A=v,Xt=u,It!==null?0:(dn=null,Bt=0,Wd(),Tn)}function sk(){for(;It!==null&&!Te();)Vx(It)}function Vx(i){var a=gx(i.alternate,i,qi);i.memoizedProps=i.pendingProps,a===null?Ah(i):It=a}function jx(i){var a=i,u=a.alternate;switch(a.tag){case 15:case 0:a=ux(u,a,a.pendingProps,a.type,void 0,Bt);break;case 11:a=ux(u,a,a.pendingProps,a.type.render,a.ref,Bt);break;case 5:q0(a);default:vx(u,a),a=It=qw(a,qi),a=gx(u,a,qi)}i.memoizedProps=i.pendingProps,a===null?Ah(i):It=a}function Xl(i,a,u,h){Ni=Oa=null,q0(a),Ul=null,Gc=0;var v=a.return;try{if(W5(i,v,a,u,Bt)){Tn=1,bh(i,ho(u,i.current)),It=null;return}}catch(w){if(v!==null)throw It=v,w;Tn=1,bh(i,ho(u,i.current)),It=null;return}a.flags&32768?(jt||h===1?i=!0:$l||(Bt&536870912)!==0?i=!1:(Ts=i=!0,(h===2||h===9||h===3||h===6)&&(h=vo.current,h!==null&&h.tag===13&&(h.flags|=16384))),qx(a,i)):Ah(a)}function Ah(i){var a=i;do{if((a.flags&32768)!==0){qx(a,Ts);return}i=a.return;var u=Q5(a.alternate,a,qi);if(u!==null){It=u;return}if(a=a.sibling,a!==null){It=a;return}It=a=i}while(a!==null);Tn===0&&(Tn=5)}function qx(i,a){do{var u=Z5(i.alternate,i);if(u!==null){u.flags&=32767,It=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(i=i.sibling,i!==null)){It=i;return}It=i=u}while(i!==null);Tn=6,It=null}function $x(i,a,u,h,v,w,I,N,X){i.cancelPendingCommit=null;do Mh();while(lr!==0);if((Xt&6)!==0)throw Error(r(327));if(a!==null){if(a===i.current)throw Error(r(177));if(w=a.lanes|a.childLanes,w|=b0,kt(i,u,w,I,N,X),i===dn&&(It=dn=null,Bt=0),Yl=a,Os=i,Kl=u,xv=w,_v=v,Px=h,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,ck(J,function(){return Xx(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||h){h=F.T,F.T=null,v=V.p,V.p=2,I=Xt,Xt|=4;try{J5(i,a,u)}finally{Xt=I,V.p=v,F.T=h}}lr=1,Gx(),Yx(),Kx()}}function Gx(){if(lr===1){lr=0;var i=Os,a=Yl,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=F.T,F.T=null;var h=V.p;V.p=2;var v=Xt;Xt|=4;try{Ax(a,i);var w=Uv,I=Lw(i.containerInfo),N=w.focusedElem,X=w.selectionRange;if(I!==N&&N&&N.ownerDocument&&kw(N.ownerDocument.documentElement,N)){if(X!==null&&p0(N)){var fe=X.start,we=X.end;if(we===void 0&&(we=fe),"selectionStart"in N)N.selectionStart=fe,N.selectionEnd=Math.min(we,N.value.length);else{var Ae=N.ownerDocument||document,de=Ae&&Ae.defaultView||window;if(de.getSelection){var he=de.getSelection(),nt=N.textContent.length,Je=Math.min(X.start,nt),rn=X.end===void 0?Je:Math.min(X.end,nt);!he.extend&&Je>rn&&(I=rn,rn=Je,Je=I);var oe=Dw(N,Je),te=Dw(N,rn);if(oe&&te&&(he.rangeCount!==1||he.anchorNode!==oe.node||he.anchorOffset!==oe.offset||he.focusNode!==te.node||he.focusOffset!==te.offset)){var ue=Ae.createRange();ue.setStart(oe.node,oe.offset),he.removeAllRanges(),Je>rn?(he.addRange(ue),he.extend(te.node,te.offset)):(ue.setEnd(te.node,te.offset),he.addRange(ue))}}}}for(Ae=[],he=N;he=he.parentNode;)he.nodeType===1&&Ae.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<Ae.length;N++){var Ce=Ae[N];Ce.element.scrollLeft=Ce.left,Ce.element.scrollTop=Ce.top}}Uh=!!zv,Uv=zv=null}finally{Xt=v,V.p=h,F.T=u}}i.current=a,lr=2}}function Yx(){if(lr===2){lr=0;var i=Os,a=Yl,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=F.T,F.T=null;var h=V.p;V.p=2;var v=Xt;Xt|=4;try{xx(i,a.alternate,a)}finally{Xt=v,V.p=h,F.T=u}}lr=3}}function Kx(){if(lr===4||lr===3){lr=0,Le();var i=Os,a=Yl,u=Kl,h=Px;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?lr=5:(lr=0,Yl=Os=null,Wx(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(Ms=null),Mt(u),a=a.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(ke,a,void 0,(a.current.flags&128)===128)}catch{}if(h!==null){a=F.T,v=V.p,V.p=2,F.T=null;try{for(var w=i.onRecoverableError,I=0;I<h.length;I++){var N=h[I];w(N.value,{componentStack:N.stack})}}finally{F.T=a,V.p=v}}(Kl&3)!==0&&Mh(),ri(i),v=i.pendingLanes,(u&4194090)!==0&&(v&42)!==0?i===Cv?tf++:(tf=0,Cv=i):tf=0,nf(0)}}function Wx(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,Pc(a)))}function Mh(i){return Gx(),Yx(),Kx(),Xx()}function Xx(){if(lr!==5)return!1;var i=Os,a=xv;xv=0;var u=Mt(Kl),h=F.T,v=V.p;try{V.p=32>u?32:u,F.T=null,u=_v,_v=null;var w=Os,I=Kl;if(lr=0,Yl=Os=null,Kl=0,(Xt&6)!==0)throw Error(r(331));var N=Xt;if(Xt|=4,kx(w.current),Ox(w,w.current,I,u),Xt=N,nf(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(ke,w)}catch{}return!0}finally{V.p=v,F.T=h,Wx(i,a)}}function Qx(i,a,u){a=ho(u,a),a=ov(i.stateNode,a,2),i=Ss(i,a,2),i!==null&&(wt(i,2),ri(i))}function ln(i,a,u){if(i.tag===3)Qx(i,i,u);else for(;a!==null;){if(a.tag===3){Qx(a,i,u);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Ms===null||!Ms.has(h))){i=ho(u,i),u=tx(2),h=Ss(a,u,2),h!==null&&(nx(u,h,a,i),wt(h,2),ri(h));break}}a=a.return}}function Ov(i,a,u){var h=i.pingCache;if(h===null){h=i.pingCache=new nk;var v=new Set;h.set(a,v)}else v=h.get(a),v===void 0&&(v=new Set,h.set(a,v));v.has(u)||(Sv=!0,v.add(u),i=ak.bind(null,i,a,u),a.then(i,i))}function ak(i,a,u){var h=i.pingCache;h!==null&&h.delete(a),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,dn===i&&(Bt&u)===u&&(Tn===4||Tn===3&&(Bt&62914560)===Bt&&300>ge()-Rv?(Xt&2)===0&&Wl(i,0):Ev|=u,Gl===Bt&&(Gl=0)),ri(i)}function Zx(i,a){a===0&&(a=Nt()),i=Il(i,a),i!==null&&(wt(i,a),ri(i))}function lk(i){var a=i.memoizedState,u=0;a!==null&&(u=a.retryLane),Zx(i,u)}function uk(i,a){var u=0;switch(i.tag){case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(a),Zx(i,u)}function ck(i,a){return Se(i,a)}var Oh=null,Ql=null,Iv=!1,Ih=!1,Dv=!1,Fa=0;function ri(i){i!==Ql&&i.next===null&&(Ql===null?Oh=Ql=i:Ql=Ql.next=i),Ih=!0,Iv||(Iv=!0,dk())}function nf(i,a){if(!Dv&&Ih){Dv=!0;do for(var u=!1,h=Oh;h!==null;){if(i!==0){var v=h.pendingLanes;if(v===0)var w=0;else{var I=h.suspendedLanes,N=h.pingedLanes;w=(1<<31-Fe(42|i)+1)-1,w&=v&~(I&~N),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(u=!0,n_(h,w))}else w=Bt,w=je(h,h===dn?w:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(w&3)===0||Ge(h,w)||(u=!0,n_(h,w));h=h.next}while(u);Dv=!1}}function fk(){Jx()}function Jx(){Ih=Iv=!1;var i=0;Fa!==0&&(Sk()&&(i=Fa),Fa=0);for(var a=ge(),u=null,h=Oh;h!==null;){var v=h.next,w=e_(h,a);w===0?(h.next=null,u===null?Oh=v:u.next=v,v===null&&(Ql=u)):(u=h,(i!==0||(w&3)!==0)&&(Ih=!0)),h=v}nf(i)}function e_(i,a){for(var u=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,w=i.pendingLanes&-62914561;0<w;){var I=31-Fe(w),N=1<<I,X=v[I];X===-1?((N&u)===0||(N&h)!==0)&&(v[I]=Ke(N,a)):X<=a&&(i.expiredLanes|=N),w&=~N}if(a=dn,u=Bt,u=je(i,i===a?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===a&&(Qt===2||Qt===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&Ie(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Ge(i,u)){if(a=u&-u,a===i.callbackPriority)return a;switch(h!==null&&Ie(h),Mt(u)){case 2:case 8:u=q;break;case 32:u=J;break;case 268435456:u=Me;break;default:u=J}return h=t_.bind(null,i),u=Se(u,h),i.callbackPriority=a,i.callbackNode=u,a}return h!==null&&h!==null&&Ie(h),i.callbackPriority=2,i.callbackNode=null,2}function t_(i,a){if(lr!==0&&lr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(Mh()&&i.callbackNode!==u)return null;var h=Bt;return h=je(i,i===dn?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(Fx(i,h,a),e_(i,ge()),i.callbackNode!=null&&i.callbackNode===u?t_.bind(null,i):null)}function n_(i,a){if(Mh())return null;Fx(i,a,!0)}function dk(){wk(function(){(Xt&6)!==0?Se(xe,fk):Jx()})}function kv(){return Fa===0&&(Fa=tt()),Fa}function r_(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Vd(""+i)}function o_(i,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,i.id&&u.setAttribute("form",i.id),a.parentNode.insertBefore(u,a),i=new FormData(i),u.parentNode.removeChild(u),i}function hk(i,a,u,h,v){if(a==="submit"&&u&&u.stateNode===v){var w=r_((v[Ht]||null).action),I=h.submitter;I&&(a=(a=I[Ht]||null)?r_(a.formAction):I.getAttribute("formAction"),a!==null&&(w=a,I=null));var N=new Gd("action","action",null,h,v);i.push({event:N,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Fa!==0){var X=I?o_(v,I):new FormData(v);J0(u,{pending:!0,data:X,method:v.method,action:w},null,X)}}else typeof w=="function"&&(N.preventDefault(),X=I?o_(v,I):new FormData(v),J0(u,{pending:!0,data:X,method:v.method,action:w},w,X))},currentTarget:v}]})}}for(var Lv=0;Lv<y0.length;Lv++){var Pv=y0[Lv],pk=Pv.toLowerCase(),gk=Pv[0].toUpperCase()+Pv.slice(1);No(pk,"on"+gk)}No(Fw,"onAnimationEnd"),No(Bw,"onAnimationIteration"),No(Hw,"onAnimationStart"),No("dblclick","onDoubleClick"),No("focusin","onFocus"),No("focusout","onBlur"),No(D5,"onTransitionRun"),No(k5,"onTransitionStart"),No(L5,"onTransitionCancel"),No(zw,"onTransitionEnd"),El("onMouseEnter",["mouseout","mouseover"]),El("onMouseLeave",["mouseout","mouseover"]),El("onPointerEnter",["pointerout","pointerover"]),El("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rf="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(" "),mk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rf));function i_(i,a){a=(a&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],v=h.event;h=h.listeners;e:{var w=void 0;if(a)for(var I=h.length-1;0<=I;I--){var N=h[I],X=N.instance,fe=N.currentTarget;if(N=N.listener,X!==w&&v.isPropagationStopped())break e;w=N,v.currentTarget=fe;try{w(v)}catch(we){yh(we)}v.currentTarget=null,w=X}else for(I=0;I<h.length;I++){if(N=h[I],X=N.instance,fe=N.currentTarget,N=N.listener,X!==w&&v.isPropagationStopped())break e;w=N,v.currentTarget=fe;try{w(v)}catch(we){yh(we)}v.currentTarget=null,w=X}}}}function Dt(i,a){var u=a[Fn];u===void 0&&(u=a[Fn]=new Set);var h=i+"__bubble";u.has(h)||(s_(a,i,2,!1),u.add(h))}function Nv(i,a,u){var h=0;a&&(h|=4),s_(u,i,h,a)}var Dh="_reactListening"+Math.random().toString(36).slice(2);function Fv(i){if(!i[Dh]){i[Dh]=!0,JE.forEach(function(u){u!=="selectionchange"&&(mk.has(u)||Nv(u,!1,i),Nv(u,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Dh]||(a[Dh]=!0,Nv("selectionchange",!1,a))}}function s_(i,a,u,h){switch(O_(a)){case 2:var v=jk;break;case 8:v=qk;break;default:v=Qv}u=v.bind(null,a,u,i),v=void 0,!i0||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(a,u,{capture:!0,passive:v}):i.addEventListener(a,u,!0):v!==void 0?i.addEventListener(a,u,{passive:v}):i.addEventListener(a,u,!1)}function Bv(i,a,u,h,v){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 N=h.stateNode.containerInfo;if(N===v)break;if(I===4)for(I=h.return;I!==null;){var X=I.tag;if((X===3||X===4)&&I.stateNode.containerInfo===v)return;I=I.return}for(;N!==null;){if(I=Mi(N),I===null)return;if(X=I.tag,X===5||X===6||X===26||X===27){h=w=I;continue e}N=N.parentNode}}h=h.return}hw(function(){var fe=w,we=r0(u),Ae=[];e:{var de=Uw.get(i);if(de!==void 0){var he=Gd,nt=i;switch(i){case"keypress":if(qd(u)===0)break e;case"keydown":case"keyup":he=c5;break;case"focusin":nt="focus",he=u0;break;case"focusout":nt="blur",he=u0;break;case"beforeblur":case"afterblur":he=u0;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=mw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=Z3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=h5;break;case Fw:case Bw:case Hw:he=t5;break;case zw:he=g5;break;case"scroll":case"scrollend":he=X3;break;case"wheel":he=v5;break;case"copy":case"cut":case"paste":he=r5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=yw;break;case"toggle":case"beforetoggle":he=b5}var Je=(a&4)!==0,rn=!Je&&(i==="scroll"||i==="scrollend"),oe=Je?de!==null?de+"Capture":null:de;Je=[];for(var te=fe,ue;te!==null;){var Ce=te;if(ue=Ce.stateNode,Ce=Ce.tag,Ce!==5&&Ce!==26&&Ce!==27||ue===null||oe===null||(Ce=wc(te,oe),Ce!=null&&Je.push(of(te,Ce,ue))),rn)break;te=te.return}0<Je.length&&(de=new he(de,nt,null,u,we),Ae.push({event:de,listeners:Je}))}}if((a&7)===0){e:{if(de=i==="mouseover"||i==="pointerover",he=i==="mouseout"||i==="pointerout",de&&u!==n0&&(nt=u.relatedTarget||u.fromElement)&&(Mi(nt)||nt[Ot]))break e;if((he||de)&&(de=we.window===we?we:(de=we.ownerDocument)?de.defaultView||de.parentWindow:window,he?(nt=u.relatedTarget||u.toElement,he=fe,nt=nt?Mi(nt):null,nt!==null&&(rn=s(nt),Je=nt.tag,nt!==rn||Je!==5&&Je!==27&&Je!==6)&&(nt=null)):(he=null,nt=fe),he!==nt)){if(Je=mw,Ce="onMouseLeave",oe="onMouseEnter",te="mouse",(i==="pointerout"||i==="pointerover")&&(Je=yw,Ce="onPointerLeave",oe="onPointerEnter",te="pointer"),rn=he==null?de:Ec(he),ue=nt==null?de:Ec(nt),de=new Je(Ce,te+"leave",he,u,we),de.target=rn,de.relatedTarget=ue,Ce=null,Mi(we)===fe&&(Je=new Je(oe,te+"enter",nt,u,we),Je.target=ue,Je.relatedTarget=rn,Ce=Je),rn=Ce,he&&nt)t:{for(Je=he,oe=nt,te=0,ue=Je;ue;ue=Zl(ue))te++;for(ue=0,Ce=oe;Ce;Ce=Zl(Ce))ue++;for(;0<te-ue;)Je=Zl(Je),te--;for(;0<ue-te;)oe=Zl(oe),ue--;for(;te--;){if(Je===oe||oe!==null&&Je===oe.alternate)break t;Je=Zl(Je),oe=Zl(oe)}Je=null}else Je=null;he!==null&&a_(Ae,de,he,Je,!1),nt!==null&&rn!==null&&a_(Ae,rn,nt,Je,!0)}}e:{if(de=fe?Ec(fe):window,he=de.nodeName&&de.nodeName.toLowerCase(),he==="select"||he==="input"&&de.type==="file")var We=Cw;else if(xw(de))if(Tw)We=M5;else{We=T5;var Ct=C5}else he=de.nodeName,!he||he.toLowerCase()!=="input"||de.type!=="checkbox"&&de.type!=="radio"?fe&&t0(fe.elementType)&&(We=Cw):We=A5;if(We&&(We=We(i,fe))){_w(Ae,We,u,we);break e}Ct&&Ct(i,de,fe),i==="focusout"&&fe&&de.type==="number"&&fe.memoizedProps.value!=null&&e0(de,"number",de.value)}switch(Ct=fe?Ec(fe):window,i){case"focusin":(xw(Ct)||Ct.contentEditable==="true")&&(Al=Ct,g0=fe,Oc=null);break;case"focusout":Oc=g0=Al=null;break;case"mousedown":m0=!0;break;case"contextmenu":case"mouseup":case"dragend":m0=!1,Pw(Ae,u,we);break;case"selectionchange":if(I5)break;case"keydown":case"keyup":Pw(Ae,u,we)}var Xe;if(f0)e:{switch(i){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else Tl?ww(i,u)&&(et="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(et="onCompositionStart");et&&(bw&&u.locale!=="ko"&&(Tl||et!=="onCompositionStart"?et==="onCompositionEnd"&&Tl&&(Xe=pw()):(ms=we,s0="value"in ms?ms.value:ms.textContent,Tl=!0)),Ct=kh(fe,et),0<Ct.length&&(et=new vw(et,i,null,u,we),Ae.push({event:et,listeners:Ct}),Xe?et.data=Xe:(Xe=Rw(u),Xe!==null&&(et.data=Xe)))),(Xe=E5?w5(i,u):R5(i,u))&&(et=kh(fe,"onBeforeInput"),0<et.length&&(Ct=new vw("onBeforeInput","beforeinput",null,u,we),Ae.push({event:Ct,listeners:et}),Ct.data=Xe)),hk(Ae,i,fe,u,we)}i_(Ae,a)})}function of(i,a,u){return{instance:i,listener:a,currentTarget:u}}function kh(i,a){for(var u=a+"Capture",h=[];i!==null;){var v=i,w=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||w===null||(v=wc(i,u),v!=null&&h.unshift(of(i,v,w)),v=wc(i,a),v!=null&&h.push(of(i,v,w))),i.tag===3)return h;i=i.return}return[]}function Zl(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function a_(i,a,u,h,v){for(var w=a._reactName,I=[];u!==null&&u!==h;){var N=u,X=N.alternate,fe=N.stateNode;if(N=N.tag,X!==null&&X===h)break;N!==5&&N!==26&&N!==27||fe===null||(X=fe,v?(fe=wc(u,w),fe!=null&&I.unshift(of(u,fe,X))):v||(fe=wc(u,w),fe!=null&&I.push(of(u,fe,X)))),u=u.return}I.length!==0&&i.push({event:a,listeners:I})}var vk=/\r\n?/g,yk=/\u0000|\uFFFD/g;function l_(i){return(typeof i=="string"?i:""+i).replace(vk,`
|
|
9
|
-
`).replace(yk,"")}function u_(i,a){return a=l_(a),l_(i)===a}function Lh(){}function nn(i,a,u,h,v,w){switch(u){case"children":typeof h=="string"?a==="body"||a==="textarea"&&h===""||xl(i,h):(typeof h=="number"||typeof h=="bigint")&&a!=="body"&&xl(i,""+h);break;case"className":Hd(i,"class",h);break;case"tabIndex":Hd(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Hd(i,u,h);break;case"style":fw(i,h,w);break;case"data":if(a!=="object"){Hd(i,"data",h);break}case"src":case"href":if(h===""&&(a!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=Vd(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"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"&&(u==="formAction"?(a!=="input"&&nn(i,a,"name",v.name,v,null),nn(i,a,"formEncType",v.formEncType,v,null),nn(i,a,"formMethod",v.formMethod,v,null),nn(i,a,"formTarget",v.formTarget,v,null)):(nn(i,a,"encType",v.encType,v,null),nn(i,a,"method",v.method,v,null),nn(i,a,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=Vd(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=Lh);break;case"onScroll":h!=null&&Dt("scroll",i);break;case"onScrollEnd":h!=null&&Dt("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.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"){i.removeAttribute("xlink:href");break}u=Vd(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);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"?i.setAttribute(u,""+h):i.removeAttribute(u);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"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":Dt("beforetoggle",i),Dt("toggle",i),Bd(i,"popover",h);break;case"xlinkActuate":Ii(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Ii(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Ii(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Ii(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Ii(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Ii(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Ii(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Ii(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Ii(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Bd(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=K3.get(u)||u,Bd(i,u,h))}}function Hv(i,a,u,h,v,w){switch(u){case"style":fw(i,h,w);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?xl(i,h):(typeof h=="number"||typeof h=="bigint")&&xl(i,""+h);break;case"onScroll":h!=null&&Dt("scroll",i);break;case"onScrollEnd":h!=null&&Dt("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Lh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ew.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),a=u.slice(2,v?u.length-7:void 0),w=i[Ht]||null,w=w!=null?w[u]:null,typeof w=="function"&&i.removeEventListener(a,w,v),typeof h=="function")){typeof w!="function"&&w!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(a,h,v);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):Bd(i,u,h)}}}function ur(i,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Dt("error",i),Dt("load",i);var h=!1,v=!1,w;for(w in u)if(u.hasOwnProperty(w)){var I=u[w];if(I!=null)switch(w){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:nn(i,a,w,I,u,null)}}v&&nn(i,a,"srcSet",u.srcSet,u,null),h&&nn(i,a,"src",u.src,u,null);return;case"input":Dt("invalid",i);var N=w=I=v=null,X=null,fe=null;for(h in u)if(u.hasOwnProperty(h)){var we=u[h];if(we!=null)switch(h){case"name":v=we;break;case"type":I=we;break;case"checked":X=we;break;case"defaultChecked":fe=we;break;case"value":w=we;break;case"defaultValue":N=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,a));break;default:nn(i,a,h,we,u,null)}}aw(i,w,N,X,fe,I,v,!1),zd(i);return;case"select":Dt("invalid",i),h=I=w=null;for(v in u)if(u.hasOwnProperty(v)&&(N=u[v],N!=null))switch(v){case"value":w=N;break;case"defaultValue":I=N;break;case"multiple":h=N;default:nn(i,a,v,N,u,null)}a=w,u=I,i.multiple=!!h,a!=null?Rl(i,!!h,a,!1):u!=null&&Rl(i,!!h,u,!0);return;case"textarea":Dt("invalid",i),w=v=h=null;for(I in u)if(u.hasOwnProperty(I)&&(N=u[I],N!=null))switch(I){case"value":h=N;break;case"defaultValue":v=N;break;case"children":w=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(91));break;default:nn(i,a,I,N,u,null)}uw(i,h,v,w),zd(i);return;case"option":for(X in u)if(u.hasOwnProperty(X)&&(h=u[X],h!=null))switch(X){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:nn(i,a,X,h,u,null)}return;case"dialog":Dt("beforetoggle",i),Dt("toggle",i),Dt("cancel",i),Dt("close",i);break;case"iframe":case"object":Dt("load",i);break;case"video":case"audio":for(h=0;h<rf.length;h++)Dt(rf[h],i);break;case"image":Dt("error",i),Dt("load",i);break;case"details":Dt("toggle",i);break;case"embed":case"source":case"link":Dt("error",i),Dt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(fe in u)if(u.hasOwnProperty(fe)&&(h=u[fe],h!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:nn(i,a,fe,h,u,null)}return;default:if(t0(a)){for(we in u)u.hasOwnProperty(we)&&(h=u[we],h!==void 0&&Hv(i,a,we,h,u,void 0));return}}for(N in u)u.hasOwnProperty(N)&&(h=u[N],h!=null&&nn(i,a,N,h,u,null))}function bk(i,a,u,h){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,w=null,I=null,N=null,X=null,fe=null,we=null;for(he in u){var Ae=u[he];if(u.hasOwnProperty(he)&&Ae!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":X=Ae;default:h.hasOwnProperty(he)||nn(i,a,he,null,h,Ae)}}for(var de in h){var he=h[de];if(Ae=u[de],h.hasOwnProperty(de)&&(he!=null||Ae!=null))switch(de){case"type":w=he;break;case"name":v=he;break;case"checked":fe=he;break;case"defaultChecked":we=he;break;case"value":I=he;break;case"defaultValue":N=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,a));break;default:he!==Ae&&nn(i,a,de,he,h,Ae)}}Jm(i,I,N,X,fe,we,w,v);return;case"select":he=I=N=de=null;for(w in u)if(X=u[w],u.hasOwnProperty(w)&&X!=null)switch(w){case"value":break;case"multiple":he=X;default:h.hasOwnProperty(w)||nn(i,a,w,null,h,X)}for(v in h)if(w=h[v],X=u[v],h.hasOwnProperty(v)&&(w!=null||X!=null))switch(v){case"value":de=w;break;case"defaultValue":N=w;break;case"multiple":I=w;default:w!==X&&nn(i,a,v,w,h,X)}a=N,u=I,h=he,de!=null?Rl(i,!!u,de,!1):!!h!=!!u&&(a!=null?Rl(i,!!u,a,!0):Rl(i,!!u,u?[]:"",!1));return;case"textarea":he=de=null;for(N in u)if(v=u[N],u.hasOwnProperty(N)&&v!=null&&!h.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:nn(i,a,N,null,h,v)}for(I in h)if(v=h[I],w=u[I],h.hasOwnProperty(I)&&(v!=null||w!=null))switch(I){case"value":de=v;break;case"defaultValue":he=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==w&&nn(i,a,I,v,h,w)}lw(i,de,he);return;case"option":for(var nt in u)if(de=u[nt],u.hasOwnProperty(nt)&&de!=null&&!h.hasOwnProperty(nt))switch(nt){case"selected":i.selected=!1;break;default:nn(i,a,nt,null,h,de)}for(X in h)if(de=h[X],he=u[X],h.hasOwnProperty(X)&&de!==he&&(de!=null||he!=null))switch(X){case"selected":i.selected=de&&typeof de!="function"&&typeof de!="symbol";break;default:nn(i,a,X,de,h,he)}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 Je in u)de=u[Je],u.hasOwnProperty(Je)&&de!=null&&!h.hasOwnProperty(Je)&&nn(i,a,Je,null,h,de);for(fe in h)if(de=h[fe],he=u[fe],h.hasOwnProperty(fe)&&de!==he&&(de!=null||he!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(r(137,a));break;default:nn(i,a,fe,de,h,he)}return;default:if(t0(a)){for(var rn in u)de=u[rn],u.hasOwnProperty(rn)&&de!==void 0&&!h.hasOwnProperty(rn)&&Hv(i,a,rn,void 0,h,de);for(we in h)de=h[we],he=u[we],!h.hasOwnProperty(we)||de===he||de===void 0&&he===void 0||Hv(i,a,we,de,h,he);return}}for(var oe in u)de=u[oe],u.hasOwnProperty(oe)&&de!=null&&!h.hasOwnProperty(oe)&&nn(i,a,oe,null,h,de);for(Ae in h)de=h[Ae],he=u[Ae],!h.hasOwnProperty(Ae)||de===he||de==null&&he==null||nn(i,a,Ae,de,h,he)}var zv=null,Uv=null;function Ph(i){return i.nodeType===9?i:i.ownerDocument}function c_(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function f_(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function Vv(i,a){return i==="textarea"||i==="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 jv=null;function Sk(){var i=window.event;return i&&i.type==="popstate"?i===jv?!1:(jv=i,!0):(jv=null,!1)}var d_=typeof setTimeout=="function"?setTimeout:void 0,Ek=typeof clearTimeout=="function"?clearTimeout:void 0,h_=typeof Promise=="function"?Promise:void 0,wk=typeof queueMicrotask=="function"?queueMicrotask:typeof h_<"u"?function(i){return h_.resolve(null).then(i).catch(Rk)}:d_;function Rk(i){setTimeout(function(){throw i})}function Ds(i){return i==="head"}function p_(i,a){var u=a,h=0,v=0;do{var w=u.nextSibling;if(i.removeChild(u),w&&w.nodeType===8)if(u=w.data,u==="/$"){if(0<h&&8>h){u=h;var I=i.ownerDocument;if(u&1&&sf(I.documentElement),u&2&&sf(I.body),u&4)for(u=I.head,sf(u),I=u.firstChild;I;){var N=I.nextSibling,X=I.nodeName;I[Po]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&I.rel.toLowerCase()==="stylesheet"||u.removeChild(I),I=N}}if(v===0){i.removeChild(w),pf(a);return}v--}else u==="$"||u==="$?"||u==="$!"?v++:h=u.charCodeAt(0)-48;else h=0;u=w}while(u);pf(a)}function qv(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":qv(u),bl(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function xk(i,a,u,h){for(;i.nodeType===1;){var v=u;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Po])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var w=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=Bo(i.nextSibling),i===null)break}return null}function _k(i,a,u){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Bo(i.nextSibling),i===null))return null;return i}function $v(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function Ck(i,a){var u=i.ownerDocument;if(i.data!=="$?"||u.readyState==="complete")a();else{var h=function(){a(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function Bo(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return i}var Gv=null;function g_(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return i;a--}else u==="/$"&&a++}i=i.previousSibling}return null}function m_(i,a,u){switch(a=Ph(u),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function sf(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);bl(i)}var bo=new Map,v_=new Set;function Nh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var $i=V.d;V.d={f:Tk,r:Ak,D:Mk,C:Ok,L:Ik,m:Dk,X:Lk,S:kk,M:Pk};function Tk(){var i=$i.f(),a=Th();return i||a}function Ak(i){var a=Oi(i);a!==null&&a.tag===5&&a.type==="form"?FR(a):$i.r(i)}var Jl=typeof document>"u"?null:document;function y_(i,a,u){var h=Jl;if(h&&typeof a=="string"&&a){var v=fo(a);v='link[rel="'+i+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),v_.has(v)||(v_.add(v),i={rel:i,crossOrigin:u,href:a},h.querySelector(v)===null&&(a=h.createElement("link"),ur(a,"link",i),Qn(a),h.head.appendChild(a)))}}function Mk(i){$i.D(i),y_("dns-prefetch",i,null)}function Ok(i,a){$i.C(i,a),y_("preconnect",i,a)}function Ik(i,a,u){$i.L(i,a,u);var h=Jl;if(h&&i&&a){var v='link[rel="preload"][as="'+fo(a)+'"]';a==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+fo(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+fo(u.imageSizes)+'"]')):v+='[href="'+fo(i)+'"]';var w=v;switch(a){case"style":w=eu(i);break;case"script":w=tu(i)}bo.has(w)||(i=p({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:i,as:a},u),bo.set(w,i),h.querySelector(v)!==null||a==="style"&&h.querySelector(af(w))||a==="script"&&h.querySelector(lf(w))||(a=h.createElement("link"),ur(a,"link",i),Qn(a),h.head.appendChild(a)))}}function Dk(i,a){$i.m(i,a);var u=Jl;if(u&&i){var h=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+fo(h)+'"][href="'+fo(i)+'"]',w=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=tu(i)}if(!bo.has(w)&&(i=p({rel:"modulepreload",href:i},a),bo.set(w,i),u.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(lf(w)))return}h=u.createElement("link"),ur(h,"link",i),Qn(h),u.head.appendChild(h)}}}function kk(i,a,u){$i.S(i,a,u);var h=Jl;if(h&&i){var v=Sl(h).hoistableStyles,w=eu(i);a=a||"default";var I=v.get(w);if(!I){var N={loading:0,preload:null};if(I=h.querySelector(af(w)))N.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":a},u),(u=bo.get(w))&&Yv(i,u);var X=I=h.createElement("link");Qn(X),ur(X,"link",i),X._p=new Promise(function(fe,we){X.onload=fe,X.onerror=we}),X.addEventListener("load",function(){N.loading|=1}),X.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Fh(I,a,h)}I={type:"stylesheet",instance:I,count:1,state:N},v.set(w,I)}}}function Lk(i,a){$i.X(i,a);var u=Jl;if(u&&i){var h=Sl(u).hoistableScripts,v=tu(i),w=h.get(v);w||(w=u.querySelector(lf(v)),w||(i=p({src:i,async:!0},a),(a=bo.get(v))&&Kv(i,a),w=u.createElement("script"),Qn(w),ur(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},h.set(v,w))}}function Pk(i,a){$i.M(i,a);var u=Jl;if(u&&i){var h=Sl(u).hoistableScripts,v=tu(i),w=h.get(v);w||(w=u.querySelector(lf(v)),w||(i=p({src:i,async:!0,type:"module"},a),(a=bo.get(v))&&Kv(i,a),w=u.createElement("script"),Qn(w),ur(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},h.set(v,w))}}function b_(i,a,u,h){var v=(v=z.current)?Nh(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=eu(u.href),u=Sl(v).hoistableStyles,h=u.get(a),h||(h={type:"style",instance:null,count:0,state:null},u.set(a,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=eu(u.href);var w=Sl(v).hoistableStyles,I=w.get(i);if(I||(v=v.ownerDocument||v,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(i,I),(w=v.querySelector(af(i)))&&!w._p&&(I.instance=w,I.state.loading=5),bo.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},bo.set(i,u),w||Nk(v,i,u,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=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=tu(u),u=Sl(v).hoistableScripts,h=u.get(a),h||(h={type:"script",instance:null,count:0,state:null},u.set(a,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function eu(i){return'href="'+fo(i)+'"'}function af(i){return'link[rel="stylesheet"]['+i+"]"}function S_(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function Nk(i,a,u,h){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=1:(a=i.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=1}),a.addEventListener("error",function(){return h.loading|=2}),ur(a,"link",u),Qn(a),i.head.appendChild(a))}function tu(i){return'[src="'+fo(i)+'"]'}function lf(i){return"script[async]"+i}function E_(i,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var h=i.querySelector('style[data-href~="'+fo(u.href)+'"]');if(h)return a.instance=h,Qn(h),h;var v=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Qn(h),ur(h,"style",v),Fh(h,u.precedence,i),a.instance=h;case"stylesheet":v=eu(u.href);var w=i.querySelector(af(v));if(w)return a.state.loading|=4,a.instance=w,Qn(w),w;h=S_(u),(v=bo.get(v))&&Yv(h,v),w=(i.ownerDocument||i).createElement("link"),Qn(w);var I=w;return I._p=new Promise(function(N,X){I.onload=N,I.onerror=X}),ur(w,"link",h),a.state.loading|=4,Fh(w,u.precedence,i),a.instance=w;case"script":return w=tu(u.src),(v=i.querySelector(lf(w)))?(a.instance=v,Qn(v),v):(h=u,(v=bo.get(w))&&(h=p({},u),Kv(h,v)),i=i.ownerDocument||i,v=i.createElement("script"),Qn(v),ur(v,"link",h),i.head.appendChild(v),a.instance=v);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,Fh(h,u.precedence,i));return a.instance}function Fh(i,a,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,w=v,I=0;I<h.length;I++){var N=h[I];if(N.dataset.precedence===a)w=N;else if(w!==v)break}w?w.parentNode.insertBefore(i,w.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(i,a.firstChild))}function Yv(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function Kv(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var Bh=null;function w_(i,a,u){if(Bh===null){var h=new Map,v=Bh=new Map;v.set(u,h)}else v=Bh,h=v.get(u),h||(h=new Map,v.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),v=0;v<u.length;v++){var w=u[v];if(!(w[Po]||w[ot]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var I=w.getAttribute(a)||"";I=i+I;var N=h.get(I);N?N.push(w):h.set(I,[w])}}return h}function R_(i,a,u){i=i.ownerDocument||i,i.head.insertBefore(u,a==="title"?i.querySelector("head > title"):null)}function Fk(i,a,u){if(u===1||a.itemProp!=null)return!1;switch(i){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 i=a.disabled,typeof a.precedence=="string"&&i==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 x_(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var uf=null;function Bk(){}function Hk(i,a,u){if(uf===null)throw Error(r(475));var h=uf;if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var v=eu(u.href),w=i.querySelector(af(v));if(w){i=w._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=Hh.bind(h),i.then(h,h)),a.state.loading|=4,a.instance=w,Qn(w);return}w=i.ownerDocument||i,u=S_(u),(v=bo.get(v))&&Yv(u,v),w=w.createElement("link"),Qn(w);var I=w;I._p=new Promise(function(N,X){I.onload=N,I.onerror=X}),ur(w,"link",u),a.instance=w}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(h.count++,a=Hh.bind(h),i.addEventListener("load",a),i.addEventListener("error",a))}}function zk(){if(uf===null)throw Error(r(475));var i=uf;return i.stylesheets&&i.count===0&&Wv(i,i.stylesheets),0<i.count?function(a){var u=setTimeout(function(){if(i.stylesheets&&Wv(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=a,function(){i.unsuspend=null,clearTimeout(u)}}:null}function Hh(){if(this.count--,this.count===0){if(this.stylesheets)Wv(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var zh=null;function Wv(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,zh=new Map,a.forEach(Uk,i),zh=null,Hh.call(i))}function Uk(i,a){if(!(a.state.loading&4)){var u=zh.get(i);if(u)var h=u.get(null);else{u=new Map,zh.set(i,u);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<v.length;w++){var I=v[w];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(u.set(I.dataset.precedence,I),h=I)}h&&u.set(null,h)}v=a.instance,I=v.getAttribute("data-precedence"),w=u.get(I)||h,w===h&&u.set(null,v),u.set(I,v),this.count++,h=Hh.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),w?w.parentNode.insertBefore(v,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),a.state.loading|=4}}var cf={$$typeof:_,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Vk(i,a,u,h,v,w,I,N){this.tag=1,this.containerInfo=i,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=Wt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.hiddenUpdates=Wt(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=w,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function __(i,a,u,h,v,w,I,N,X,fe,we,Ae){return i=new Vk(i,a,u,I,N,X,fe,Ae),a=1,w===!0&&(a|=24),w=Kr(3,null,null,a),i.current=w,w.stateNode=i,a=O0(),a.refCount++,i.pooledCache=a,a.refCount++,w.memoizedState={element:h,isDehydrated:u,cache:a},L0(w),i}function C_(i){return i?(i=Dl,i):Dl}function T_(i,a,u,h,v,w){v=C_(v),h.context===null?h.context=v:h.pendingContext=v,h=bs(a),h.payload={element:u},w=w===void 0?null:w,w!==null&&(h.callback=w),u=Ss(i,h,a),u!==null&&(Jr(u,i,a),Hc(u,i,a))}function A_(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<a?u:a}}function Xv(i,a){A_(i,a),(i=i.alternate)&&A_(i,a)}function M_(i){if(i.tag===13){var a=Il(i,67108864);a!==null&&Jr(a,i,67108864),Xv(i,67108864)}}var Uh=!0;function jk(i,a,u,h){var v=F.T;F.T=null;var w=V.p;try{V.p=2,Qv(i,a,u,h)}finally{V.p=w,F.T=v}}function qk(i,a,u,h){var v=F.T;F.T=null;var w=V.p;try{V.p=8,Qv(i,a,u,h)}finally{V.p=w,F.T=v}}function Qv(i,a,u,h){if(Uh){var v=Zv(h);if(v===null)Bv(i,a,h,Vh,u),I_(i,h);else if(Gk(v,i,a,u,h))h.stopPropagation();else if(I_(i,h),a&4&&-1<$k.indexOf(i)){for(;v!==null;){var w=Oi(v);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var I=$e(w.pendingLanes);if(I!==0){var N=w;for(N.pendingLanes|=2,N.entangledLanes|=2;I;){var X=1<<31-Fe(I);N.entanglements[1]|=X,I&=~X}ri(w),(Xt&6)===0&&(_h=ge()+500,nf(0))}}break;case 13:N=Il(w,2),N!==null&&Jr(N,w,2),Th(),Xv(w,2)}if(w=Zv(h),w===null&&Bv(i,a,h,Vh,u),w===v)break;v=w}v!==null&&h.stopPropagation()}else Bv(i,a,h,null,u)}}function Zv(i){return i=r0(i),Jv(i)}var Vh=null;function Jv(i){if(Vh=null,i=Mi(i),i!==null){var a=s(i);if(a===null)i=null;else{var u=a.tag;if(u===13){if(i=l(a),i!==null)return i;i=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Vh=i,null}function O_(i){switch(i){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 xe:return 2;case q:return 8;case J:case ae:return 32;case Me:return 268435456;default:return 32}default:return 32}}var ey=!1,ks=null,Ls=null,Ps=null,ff=new Map,df=new Map,Ns=[],$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 I_(i,a){switch(i){case"focusin":case"focusout":ks=null;break;case"dragenter":case"dragleave":Ls=null;break;case"mouseover":case"mouseout":Ps=null;break;case"pointerover":case"pointerout":ff.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":df.delete(a.pointerId)}}function hf(i,a,u,h,v,w){return i===null||i.nativeEvent!==w?(i={blockedOn:a,domEventName:u,eventSystemFlags:h,nativeEvent:w,targetContainers:[v]},a!==null&&(a=Oi(a),a!==null&&M_(a)),i):(i.eventSystemFlags|=h,a=i.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),i)}function Gk(i,a,u,h,v){switch(a){case"focusin":return ks=hf(ks,i,a,u,h,v),!0;case"dragenter":return Ls=hf(Ls,i,a,u,h,v),!0;case"mouseover":return Ps=hf(Ps,i,a,u,h,v),!0;case"pointerover":var w=v.pointerId;return ff.set(w,hf(ff.get(w)||null,i,a,u,h,v)),!0;case"gotpointercapture":return w=v.pointerId,df.set(w,hf(df.get(w)||null,i,a,u,h,v)),!0}return!1}function D_(i){var a=Mi(i.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=l(u),a!==null){i.blockedOn=a,mt(i.priority,function(){if(u.tag===13){var h=Zr();h=Ft(h);var v=Il(u,h);v!==null&&Jr(v,u,h),Xv(u,h)}});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function jh(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var u=Zv(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);n0=h,u.target.dispatchEvent(h),n0=null}else return a=Oi(u),a!==null&&M_(a),i.blockedOn=u,!1;a.shift()}return!0}function k_(i,a,u){jh(i)&&u.delete(a)}function Yk(){ey=!1,ks!==null&&jh(ks)&&(ks=null),Ls!==null&&jh(Ls)&&(Ls=null),Ps!==null&&jh(Ps)&&(Ps=null),ff.forEach(k_),df.forEach(k_)}function qh(i,a){i.blockedOn===a&&(i.blockedOn=null,ey||(ey=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Yk)))}var $h=null;function L_(i){$h!==i&&($h=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$h===i&&($h=null);for(var a=0;a<i.length;a+=3){var u=i[a],h=i[a+1],v=i[a+2];if(typeof h!="function"){if(Jv(h||u)===null)continue;break}var w=Oi(u);w!==null&&(i.splice(a,3),a-=3,J0(w,{pending:!0,data:v,method:u.method,action:h},h,v))}}))}function pf(i){function a(X){return qh(X,i)}ks!==null&&qh(ks,i),Ls!==null&&qh(Ls,i),Ps!==null&&qh(Ps,i),ff.forEach(a),df.forEach(a);for(var u=0;u<Ns.length;u++){var h=Ns[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Ns.length&&(u=Ns[0],u.blockedOn===null);)D_(u),u.blockedOn===null&&Ns.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var v=u[h],w=u[h+1],I=v[Ht]||null;if(typeof w=="function")I||L_(u);else if(I){var N=null;if(w&&w.hasAttribute("formAction")){if(v=w,I=w[Ht]||null)N=I.formAction;else if(Jv(v)!==null)continue}else N=I.action;typeof N=="function"?u[h+1]=N:(u.splice(h,3),h-=3),L_(u)}}}function ty(i){this._internalRoot=i}Gh.prototype.render=ty.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,h=Zr();T_(u,h,i,a,null,null)},Gh.prototype.unmount=ty.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;T_(i.current,2,null,i,null,null),Th(),a[Ot]=null}};function Gh(i){this._internalRoot=i}Gh.prototype.unstable_scheduleHydration=function(i){if(i){var a=fn();i={blockedOn:null,target:i,priority:a};for(var u=0;u<Ns.length&&a!==0&&a<Ns[u].priority;u++);Ns.splice(u,0,i),u===0&&D_(i)}};var P_=t.version;if(P_!=="19.1.1")throw Error(r(527,P_,"19.1.1"));V.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=f(a),i=i!==null?d(i):null,i=i===null?null:i.stateNode,i};var Kk={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yh.isDisabled&&Yh.supportsFiber)try{ke=Yh.inject(Kk),He=Yh}catch{}}return mf.createRoot=function(i,a){if(!o(i))throw Error(r(299));var u=!1,h="",v=QR,w=ZR,I=JR,N=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(I=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(N=a.unstable_transitionCallbacks)),a=__(i,1,!1,null,null,u,h,v,w,I,N,null),i[Ot]=a.current,Fv(i),new ty(a)},mf.hydrateRoot=function(i,a,u){if(!o(i))throw Error(r(299));var h=!1,v="",w=QR,I=ZR,N=JR,X=null,fe=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(I=u.onCaughtError),u.onRecoverableError!==void 0&&(N=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(X=u.unstable_transitionCallbacks),u.formState!==void 0&&(fe=u.formState)),a=__(i,1,!0,a,u??null,h,v,w,I,N,X,fe),a.context=C_(null),u=a.current,h=Zr(),h=Ft(h),v=bs(h),v.callback=null,Ss(u,v,h),u=h,a.current.lanes=u,wt(a,u),ri(a),i[Ot]=a.current,Fv(i),new Gh(a)},mf.version="19.1.1",mf}var Y_;function sL(){if(Y_)return iy.exports;Y_=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(),iy.exports=iL(),iy.exports}var MZ=sL();var K_="popstate";function aL(e={}){function t(r,o){let{pathname:s,search:l,hash:c}=r.location;return P1("",{pathname:s,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Ff(o)}return uL(t,n,null,e)}function En(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lL(){return Math.random().toString(36).substring(2,10)}function W_(e,t){return{usr:e.state,key:e.key,idx:t}}function P1(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Yu(t):t,state:n,key:t&&t.key||r||lL()}}function Ff({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 Yu(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 uL(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,l=o.history,c="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(){c="POP";let R=p(),C=R==null?null:R-d;d=R,f&&f({action:c,location:S.location,delta:C})}function m(R,C){c="PUSH";let x=P1(S.location,R,C);d=p()+1;let _=W_(x,d),M=S.createHref(x);try{l.pushState(_,"",M)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(M)}s&&f&&f({action:c,location:S.location,delta:1})}function y(R,C){c="REPLACE";let x=P1(S.location,R,C);d=p();let _=W_(x,d),M=S.createHref(x);l.replaceState(_,"",M),s&&f&&f({action:c,location:S.location,delta:0})}function b(R){return cL(R)}let S={get action(){return c},get location(){return e(o,l)},listen(R){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(K_,g),f=R,()=>{o.removeEventListener(K_,g),f=null}},createHref(R){return t(o,R)},createURL:b,encodeLocation(R){let C=b(R);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:y,go(R){return l.go(R)}};return S}function cL(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),En(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ff(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function pM(e,t,n="/"){return fL(e,t,n,!1)}function fL(e,t,n,r){let o=typeof t=="string"?Yu(t):t,s=ss(o.pathname||"/",n);if(s==null)return null;let l=gM(e);dL(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let d=RL(s);c=EL(l[f],d,r)}return c}function gM(e,t=[],n=[],r="",o=!1){let s=(l,c,f=o,d)=>{let p={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&f)return;En(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=rs([r,p.relativePath]),m=n.concat(p);l.children&&l.children.length>0&&(En(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),gM(l.children,t,m,g,f)),!(l.path==null&&!l.index)&&t.push({path:g,score:bL(g,l.index),routesMeta:m})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))s(l,c);else for(let d of mM(l.path))s(l,c,!0,d)}),t}function mM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let l=mM(r.join("/")),c=[];return c.push(...l.map(f=>f===""?s:[s,f].join("/"))),o&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function dL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:SL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var hL=/^:[\w-]+$/,pL=3,gL=2,mL=1,vL=10,yL=-2,X_=e=>e==="*";function bL(e,t){let n=e.split("/"),r=n.length;return n.some(X_)&&(r+=yL),t&&(r+=gL),n.filter(o=>!X_(o)).reduce((o,s)=>o+(hL.test(s)?pL:s===""?mL:vL),r)}function SL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function EL(e,t,n=!1){let{routesMeta:r}=e,o={},s="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",g=Jp({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},p),m=f.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=Jp({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(o,g.params),l.push({params:o,pathname:rs([s,g.pathname]),pathnameBase:TL(rs([s,g.pathnameBase])),route:m}),g.pathnameBase!=="/"&&(s=rs([s,g.pathnameBase]))}return l}function Jp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=wL(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((d,{paramName:p,isOptional:g},m)=>{if(p==="*"){let b=c[m]||"";l=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const y=c[m];return g&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function wL(e,t=!1,n=!0){Mo(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function RL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mo(!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 ss(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)||"/"}function xL(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Yu(e):e;return{pathname:n?n.startsWith("/")?n:_L(n,t):t,search:AL(r),hash:ML(o)}}function _L(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function uy(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 CL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pS(e){let t=CL(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function gS(e,t,n,r=!1){let o;typeof e=="string"?o=Yu(e):(o={...e},En(!o.pathname||!o.pathname.includes("?"),uy("?","pathname","search",o)),En(!o.pathname||!o.pathname.includes("#"),uy("#","pathname","hash",o)),En(!o.search||!o.search.includes("#"),uy("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,c;if(l==null)c=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),g-=1;o.pathname=m.join("/")}c=g>=0?t[g]:"/"}let f=xL(o,c),d=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||p)&&(f.pathname+="/"),f}var rs=e=>e.join("/").replace(/\/\/+/g,"/"),TL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ML=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var vM=["POST","PUT","PATCH","DELETE"];new Set(vM);var IL=["GET",...vM];new Set(IL);var Ku=E.createContext(null);Ku.displayName="DataRouter";var $g=E.createContext(null);$g.displayName="DataRouterState";E.createContext(!1);var yM=E.createContext({isTransitioning:!1});yM.displayName="ViewTransition";var DL=E.createContext(new Map);DL.displayName="Fetchers";var kL=E.createContext(null);kL.displayName="Await";var Wo=E.createContext(null);Wo.displayName="Navigation";var Wu=E.createContext(null);Wu.displayName="Location";var Xo=E.createContext({outlet:null,matches:[],isDataRoute:!1});Xo.displayName="Route";var mS=E.createContext(null);mS.displayName="RouteError";function LL(e,{relative:t}={}){En(Xu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Wo),{hash:o,pathname:s,search:l}=sd(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:rs([n,s])),r.createHref({pathname:c,search:l,hash:o})}function Xu(){return E.useContext(Wu)!=null}function fs(){return En(Xu(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Wu).location}function OZ(){return E.useContext(Wu).navigationType}var bM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function SM(e){E.useContext(Wo).static||E.useLayoutEffect(e)}function vS(){let{isDataRoute:e}=E.useContext(Xo);return e?YL():PL()}function PL(){En(Xu(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Ku),{basename:t,navigator:n}=E.useContext(Wo),{matches:r}=E.useContext(Xo),{pathname:o}=fs(),s=JSON.stringify(pS(r)),l=E.useRef(!1);return SM(()=>{l.current=!0}),E.useCallback((f,d={})=>{if(Mo(l.current,bM),!l.current)return;if(typeof f=="number"){n.go(f);return}let p=gS(f,JSON.parse(s),o,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:rs([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,s,o,e])}E.createContext(null);function IZ(){let{matches:e}=E.useContext(Xo),t=e[e.length-1];return t?t.params:{}}function sd(e,{relative:t}={}){let{matches:n}=E.useContext(Xo),{pathname:r}=fs(),o=JSON.stringify(pS(n));return E.useMemo(()=>gS(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function NL(e,t){return EM(e,t)}function EM(e,t,n,r,o){var x;En(Xu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(Wo),{matches:l}=E.useContext(Xo),c=l[l.length-1],f=c?c.params:{},d=c?c.pathname:"/",p=c?c.pathnameBase:"/",g=c&&c.route;{let _=g&&g.path||"";wM(d,!g||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${_}">) 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
|
-
|
|
11
|
-
Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let m=fs(),y;if(t){let _=typeof t=="string"?Yu(t):t;En(p==="/"||((x=_.pathname)==null?void 0:x.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 "${_.pathname}" was given in the \`location\` prop.`),y=_}else y=m;let b=y.pathname||"/",S=b;if(p!=="/"){let _=p.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(_.length).join("/")}let R=pM(e,{pathname:S});Mo(g||R!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Mo(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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=UL(R&&R.map(_=>Object.assign({},_,{params:Object.assign({},f,_.params),pathname:rs([p,s.encodeLocation?s.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?p:rs([p,s.encodeLocation?s.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),l,n,r,o);return t&&C?E.createElement(Wu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},C):C}function FL(){let e=GL(),t=OL(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)",o={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=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,l)}var BL=E.createElement(FL,null),HL=class extends E.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.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?E.createElement(Xo.Provider,{value:this.props.routeContext},E.createElement(mS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zL({routeContext:e,match:t,children:n}){let r=E.useContext(Ku);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Xo.Provider,{value:e},n)}function UL(e,t=[],n=null,r=null,o=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 d=s.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);En(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,f=-1;if(n)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=d),p.route.id){let{loaderData:g,errors:m}=n,y=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!m||m[p.route.id]===void 0);if(p.route.lazy||y){c=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((d,p,g)=>{let m,y=!1,b=null,S=null;n&&(m=l&&p.route.id?l[p.route.id]:void 0,b=p.route.errorElement||BL,c&&(f<0&&g===0?(wM("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,S=null):f===g&&(y=!0,S=p.route.hydrateFallbackElement||null)));let R=t.concat(s.slice(0,g+1)),C=()=>{let x;return m?x=b:y?x=S:p.route.Component?x=E.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=d,E.createElement(zL,{match:p,routeContext:{outlet:d,matches:R,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?E.createElement(HL,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:C(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:r}):C()},null)}function yS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VL(e){let t=E.useContext(Ku);return En(t,yS(e)),t}function jL(e){let t=E.useContext($g);return En(t,yS(e)),t}function qL(e){let t=E.useContext(Xo);return En(t,yS(e)),t}function bS(e){let t=qL(e),n=t.matches[t.matches.length-1];return En(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function $L(){return bS("useRouteId")}function GL(){var r;let e=E.useContext(mS),t=jL("useRouteError"),n=bS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function YL(){let{router:e}=VL("useNavigate"),t=bS("useNavigate"),n=E.useRef(!1);return SM(()=>{n.current=!0}),E.useCallback(async(o,s={})=>{Mo(n.current,bM),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var Q_={};function wM(e,t,n){!t&&!Q_[e]&&(Q_[e]=!0,Mo(!1,n))}E.memo(KL);function KL({routes:e,future:t,state:n,unstable_onError:r}){return EM(e,void 0,n,r,t)}function DZ({to:e,replace:t,state:n,relative:r}){En(Xu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=E.useContext(Wo);Mo(!o,"<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}=E.useContext(Xo),{pathname:l}=fs(),c=vS(),f=gS(e,pS(s),l,r==="path"),d=JSON.stringify(f);return E.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function WL(e){En(!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 XL({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1}){En(!Xu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=E.useMemo(()=>({basename:l,navigator:o,static:s,future:{}}),[l,o,s]);typeof n=="string"&&(n=Yu(n));let{pathname:f="/",search:d="",hash:p="",state:g=null,key:m="default"}=n,y=E.useMemo(()=>{let b=ss(f,l);return b==null?null:{location:{pathname:b,search:d,hash:p,state:g,key:m},navigationType:r}},[l,f,d,p,g,m,r]);return Mo(y!=null,`<Router basename="${l}"> is not able to match the URL "${f}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:E.createElement(Wo.Provider,{value:c},E.createElement(Wu.Provider,{children:t,value:y}))}function kZ({children:e,location:t}){return NL(N1(e),t)}function N1(e,t=[]){let n=[];return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let s=[...t,o];if(r.type===E.Fragment){n.push.apply(n,N1(r.props.children,s));return}En(r.type===WL,`[${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>`),En(!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,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=N1(r.props.children,s)),n.push(l)}),n}var Ap="get",Mp="application/x-www-form-urlencoded";function Gg(e){return e!=null&&typeof e.tagName=="string"}function QL(e){return Gg(e)&&e.tagName.toLowerCase()==="button"}function ZL(e){return Gg(e)&&e.tagName.toLowerCase()==="form"}function JL(e){return Gg(e)&&e.tagName.toLowerCase()==="input"}function eP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tP(e,t){return e.button===0&&(!t||t==="_self")&&!eP(e)}function F1(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(o=>[n,o]):[[n,r]])},[]))}function nP(e,t){let n=F1(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}var Wh=null;function rP(){if(Wh===null)try{new FormData(document.createElement("form"),0),Wh=!1}catch{Wh=!0}return Wh}var oP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function cy(e){return e!=null&&!oP.has(e)?(Mo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mp}"`),null):e}function iP(e,t){let n,r,o,s,l;if(ZL(e)){let c=e.getAttribute("action");r=c?ss(c,t):null,n=e.getAttribute("method")||Ap,o=cy(e.getAttribute("enctype"))||Mp,s=new FormData(e)}else if(QL(e)||JL(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?ss(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Ap,o=cy(e.getAttribute("formenctype"))||cy(c.getAttribute("enctype"))||Mp,s=new FormData(c,e),!rP()){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(Gg(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ap,r=null,o=Mp,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function SS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sP(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&&ss(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function aP(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 lP(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 uP(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let l=await aP(s,n);return l.links?l.links():[]}return[]}));return hP(r.flat(1).filter(lP).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Z_(e,t,n,r,o,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(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)||c(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)||c(f,d))return!0;if(f.route.shouldRevalidate){let m=f.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.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 cP(e,t,{includeHydrateFallback:n}={}){return fP(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function fP(e){return[...new Set(e)]}function dP(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function hP(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(dP(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function RM(){let e=E.useContext(Ku);return SS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function pP(){let e=E.useContext($g);return SS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ES=E.createContext(void 0);ES.displayName="FrameworkContext";function xM(){let e=E.useContext(ES);return SS(e,"You must render this element inside a <HydratedRouter> element"),e}function gP(e,t){let n=E.useContext(ES),[r,o]=E.useState(!1),[s,l]=E.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:p,onTouchStart:g}=t,m=E.useRef(null);E.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let S=C=>{C.forEach(x=>{l(x.isIntersecting)})},R=new IntersectionObserver(S,{threshold:.5});return m.current&&R.observe(m.current),()=>{R.disconnect()}}},[e]),E.useEffect(()=>{if(r){let S=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(S)}}},[r]);let y=()=>{o(!0)},b=()=>{o(!1),l(!1)};return n?e!=="intent"?[s,m,{}]:[s,m,{onFocus:vf(c,y),onBlur:vf(f,b),onMouseEnter:vf(d,y),onMouseLeave:vf(p,b),onTouchStart:vf(g,y)}]:[!1,m,{}]}function vf(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function mP({page:e,...t}){let{router:n}=RM(),r=E.useMemo(()=>pM(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(yP,{page:e,matches:r,...t}):null}function vP(e){let{manifest:t,routeModules:n}=xM(),[r,o]=E.useState([]);return E.useEffect(()=>{let s=!1;return uP(e,t,n).then(l=>{s||o(l)}),()=>{s=!0}},[e,t,n]),r}function yP({page:e,matches:t,...n}){let r=fs(),{manifest:o,routeModules:s}=xM(),{basename:l}=RM(),{loaderData:c,matches:f}=pP(),d=E.useMemo(()=>Z_(e,t,f,o,r,"data"),[e,t,f,o,r]),p=E.useMemo(()=>Z_(e,t,f,o,r,"assets"),[e,t,f,o,r]),g=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,S=!1;if(t.forEach(C=>{var _;let x=o.routes[C.route.id];!x||!x.hasLoader||(!d.some(M=>M.route.id===C.route.id)&&C.route.id in c&&((_=s[C.route.id])!=null&&_.shouldRevalidate)||x.hasClientLoader?S=!0:b.add(C.route.id))}),b.size===0)return[];let R=sP(e,l,"data");return S&&b.size>0&&R.searchParams.set("_routes",t.filter(C=>b.has(C.route.id)).map(C=>C.route.id).join(",")),[R.pathname+R.search]},[l,c,r,o,d,t,e,s]),m=E.useMemo(()=>cP(p,o),[p,o]),y=vP(p);return E.createElement(E.Fragment,null,g.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),m.map(b=>E.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),y.map(({key:b,link:S})=>E.createElement("link",{key:b,nonce:n.nonce,...S})))}function bP(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var _M=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{_M&&(window.__reactRouterVersion="7.8.2")}catch{}function LZ({basename:e,children:t,window:n}){let r=E.useRef();r.current==null&&(r.current=aL({window:n,v5Compat:!0}));let o=r.current,[s,l]=E.useState({action:o.action,location:o.location}),c=E.useCallback(f=>{E.startTransition(()=>l(f))},[l]);return E.useLayoutEffect(()=>o.listen(c),[o,c]),E.createElement(XL,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}var CM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TM=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:l,state:c,target:f,to:d,preventScrollReset:p,viewTransition:g,...m},y){let{basename:b}=E.useContext(Wo),S=typeof d=="string"&&CM.test(d),R,C=!1;if(typeof d=="string"&&S&&(R=d,_M))try{let D=new URL(window.location.href),U=d.startsWith("//")?new URL(D.protocol+d):new URL(d),L=ss(U.pathname,b);U.origin===D.origin&&L!=null?d=L+U.search+U.hash:C=!0}catch{Mo(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=LL(d,{relative:o}),[_,M,T]=gP(r,m),A=RP(d,{replace:l,state:c,target:f,preventScrollReset:p,relative:o,viewTransition:g});function O(D){t&&t(D),D.defaultPrevented||A(D)}let k=E.createElement("a",{...m,...T,href:R||x,onClick:C||s?t:O,ref:bP(y,M),target:f,"data-discover":!S&&n==="render"?"true":void 0});return _&&!S?E.createElement(E.Fragment,null,k,E.createElement(mP,{page:x})):k});TM.displayName="Link";var SP=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:l,viewTransition:c,children:f,...d},p){let g=sd(l,{relative:d.relative}),m=fs(),y=E.useContext($g),{navigator:b,basename:S}=E.useContext(Wo),R=y!=null&&AP(g)&&c===!0,C=b.encodeLocation?b.encodeLocation(g).pathname:g.pathname,x=m.pathname,_=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(x=x.toLowerCase(),_=_?_.toLowerCase():null,C=C.toLowerCase()),_&&S&&(_=ss(_,S)||_);const M=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let T=x===C||!o&&x.startsWith(C)&&x.charAt(M)==="/",A=_!=null&&(_===C||!o&&_.startsWith(C)&&_.charAt(C.length)==="/"),O={isActive:T,isPending:A,isTransitioning:R},k=T?t:void 0,D;typeof r=="function"?D=r(O):D=[r,T?"active":null,A?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let U=typeof s=="function"?s(O):s;return E.createElement(TM,{...d,"aria-current":k,className:D,ref:p,style:U,to:l,viewTransition:c},typeof f=="function"?f(O):f)});SP.displayName="NavLink";var EP=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:l=Ap,action:c,onSubmit:f,relative:d,preventScrollReset:p,viewTransition:g,...m},y)=>{let b=CP(),S=TP(c,{relative:d}),R=l.toLowerCase()==="get"?"get":"post",C=typeof c=="string"&&CM.test(c),x=_=>{if(f&&f(_),_.defaultPrevented)return;_.preventDefault();let M=_.nativeEvent.submitter,T=(M==null?void 0:M.getAttribute("formmethod"))||l;b(M||_.currentTarget,{fetcherKey:t,method:T,navigate:n,replace:o,state:s,relative:d,preventScrollReset:p,viewTransition:g})};return E.createElement("form",{ref:y,method:R,action:S,onSubmit:r?f:x,...m,"data-discover":!C&&e==="render"?"true":void 0})});EP.displayName="Form";function wP(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AM(e){let t=E.useContext(Ku);return En(t,wP(e)),t}function RP(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:l}={}){let c=vS(),f=fs(),d=sd(e,{relative:s});return E.useCallback(p=>{if(tP(p,t)){p.preventDefault();let g=n!==void 0?n:Ff(f)===Ff(d);c(e,{replace:g,state:r,preventScrollReset:o,relative:s,viewTransition:l})}},[f,c,d,n,r,t,e,o,s,l])}function PZ(e){Mo(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=E.useRef(F1(e)),n=E.useRef(!1),r=fs(),o=E.useMemo(()=>nP(r.search,n.current?null:t.current),[r.search]),s=vS(),l=E.useCallback((c,f)=>{const d=F1(typeof c=="function"?c(new URLSearchParams(o)):c);n.current=!0,s("?"+d,f)},[s,o]);return[o,l]}var xP=0,_P=()=>`__${String(++xP)}__`;function CP(){let{router:e}=AM("useSubmit"),{basename:t}=E.useContext(Wo),n=$L();return E.useCallback(async(r,o={})=>{let{action:s,method:l,encType:c,formData:f,body:d}=iP(r,t);if(o.navigate===!1){let p=o.fetcherKey||_P();await e.fetch(p,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:f,body:d,formMethod:o.method||l,formEncType:o.encType||c,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:f,body:d,formMethod:o.method||l,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function TP(e,{relative:t}={}){let{basename:n}=E.useContext(Wo),r=E.useContext(Xo);En(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...sd(e||".",{relative:t})},l=fs();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(p=>p==="")){c.delete("index"),f.filter(g=>g).forEach(g=>c.append("index",g));let p=c.toString();s.search=p?`?${p}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:rs([n,s.pathname])),Ff(s)}function AP(e,{relative:t}={}){let n=E.useContext(yM);En(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=AM("useViewTransitionState"),o=sd(e,{relative:t});if(!n.isTransitioning)return!1;let s=ss(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ss(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jp(o.pathname,l)!=null||Jp(o.pathname,s)!=null}var br=hM();const MP=us(br);function vi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(e!==void 0),[s,l]=E.useState(t),c=o?e:s,f=E.useCallback(d=>{o||l(d)},[]);return[c,f]}const J_={};function yi(e,t){const n=E.useRef(J_);return n.current===J_&&(n.current=e(t)),n}const fy=dM[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],OP=fy&&fy!==E.useLayoutEffect?fy:e=>e();function Be(e){const t=yi(IP).current;return t.next=e,OP(t.effect),t.trampoline}function IP(){const e={next:void 0,callback:DP,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function DP(){}const MM=E.createContext(void 0);function Yg(){const e=E.useContext(MM);if(e===void 0)throw new Error("Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.");return e}const kP=[];function OM(e){E.useEffect(e,kP)}const yf=0;class oa{constructor(){Rn(this,"currentId",yf);Rn(this,"clear",()=>{this.currentId!==yf&&(clearTimeout(this.currentId),this.currentId=yf)});Rn(this,"disposeEffect",()=>this.clear)}static create(){return new oa}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=yf,n()},t)}isStarted(){return this.currentId!==yf}}function _n(){const e=yi(oa.create).current;return OM(e.disposeEffect),e}const LP=()=>{},qe=typeof document<"u"?E.useLayoutEffect:LP;function Kg(){return typeof window<"u"}function ha(e){return wS(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xi(e){var t;return(t=(wS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wS(e){return Kg()?e instanceof Node||e instanceof Ln(e).Node:!1}function hn(e){return Kg()?e instanceof Element||e instanceof Ln(e).Element:!1}function Sn(e){return Kg()?e instanceof HTMLElement||e instanceof Ln(e).HTMLElement:!1}function B1(e){return!Kg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}const PP=new Set(["inline","contents"]);function ad(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Oo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!PP.has(o)}const NP=new Set(["table","td","th"]);function FP(e){return NP.has(ha(e))}const BP=[":popover-open",":modal"];function Wg(e){return BP.some(t=>{try{return e.matches(t)}catch{return!1}})}const HP=["transform","translate","scale","rotate","perspective"],zP=["transform","translate","scale","rotate","perspective","filter"],UP=["paint","layout","strict","content"];function RS(e){const t=Xg(),n=hn(e)?Oo(e):e;return HP.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)||zP.some(r=>(n.willChange||"").includes(r))||UP.some(r=>(n.contain||"").includes(r))}function VP(e){let t=bi(e);for(;Sn(t)&&!gi(t);){if(RS(t))return t;if(Wg(t))return null;t=bi(t)}return null}function Xg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const jP=new Set(["html","body","#document"]);function gi(e){return jP.has(ha(e))}function Oo(e){return Ln(e).getComputedStyle(e)}function Qg(e){return hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bi(e){if(ha(e)==="html")return e;const t=e.assignedSlot||e.parentNode||B1(e)&&e.host||xi(e);return B1(t)?t.host:t}function IM(e){const t=bi(e);return gi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Sn(t)&&ad(t)?t:IM(t)}function Zs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=IM(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=Ln(o);if(s){const c=H1(l);return t.concat(l,l.visualViewport||[],ad(o)?o:[],c&&n?Zs(c):[])}return t.concat(o,Zs(o,[],n))}function H1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xn(e){const t=yi(qP,e).current;return t.next=e,qe(t.effect),t}function qP(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Qu=typeof navigator<"u",dy=YP(),DM=WP(),kM=KP(),xS=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),$P=dy.platform==="MacIntel"&&dy.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(dy.platform),LM=Qu&&/apple/i.test(navigator.vendor),z1=Qu&&/android/i.test(DM)||/android/i.test(kM),GP=Qu&&DM.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,PM=kM.includes("jsdom/");function YP(){if(!Qu)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 KP(){if(!Qu)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function WP(){if(!Qu)return"";const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform??""}const U1="data-base-ui-focusable",NM="active",FM="selected",XP="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Js="ArrowLeft",ea="ArrowRight",_S="ArrowUp",ld="ArrowDown";function fi(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 un(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&&B1(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function to(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Gi(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 QP(e){return e.matches("html,body")}function zn(e){return(e==null?void 0:e.ownerDocument)||document}function CS(e){return Sn(e)&&e.matches(XP)}function V1(e){return e?e.getAttribute("role")==="combobox"&&CS(e):!1}function ZP(e){if(!e||PM)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Bf(e){return e?e.hasAttribute(U1)?e:e.querySelector(`[${U1}]`)||e:null}function Ja(e,t,n=!0){return e.filter(o=>{var s;return o.parentId===t&&(!n||((s=o.context)==null?void 0:s.open))}).flatMap(o=>[o,...Ja(e,o.id,n)])}function e2(e,t){var o;let n=[],r=(o=e.find(s=>s.id===t))==null?void 0:o.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 vr(e){e.preventDefault(),e.stopPropagation()}function JP(e){return"nativeEvent"in e}function BM(e){return e.mozInputSource===0&&e.isTrusted?!0:z1&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function HM(e){return PM?!1:!z1&&e.width===0&&e.height===0||z1&&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 ku(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}const e8=["top","right","bottom","left"],Lu=Math.min,no=Math.max,eg=Math.round,ou=Math.floor,mi=e=>({x:e,y:e}),t8={left:"right",right:"left",bottom:"top",top:"bottom"},n8={start:"end",end:"start"};function j1(e,t,n){return no(e,Lu(t,n))}function as(e,t){return typeof e=="function"?e(t):e}function io(e){return e.split("-")[0]}function pa(e){return e.split("-")[1]}function TS(e){return e==="x"?"y":"x"}function AS(e){return e==="y"?"height":"width"}const r8=new Set(["top","bottom"]);function _o(e){return r8.has(io(e))?"y":"x"}function MS(e){return TS(_o(e))}function o8(e,t,n){n===void 0&&(n=!1);const r=pa(e),o=MS(e),s=AS(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=tg(l)),[l,tg(l)]}function i8(e){const t=tg(e);return[q1(e),t,q1(t)]}function q1(e){return e.replace(/start|end/g,t=>n8[t])}const t2=["left","right"],n2=["right","left"],s8=["top","bottom"],a8=["bottom","top"];function l8(e,t,n){switch(e){case"top":case"bottom":return n?t?n2:t2:t?t2:n2;case"left":case"right":return t?s8:a8;default:return[]}}function u8(e,t,n,r){const o=pa(e);let s=l8(io(e),n==="start",r);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(q1)))),s}function tg(e){return e.replace(/left|right|bottom|top/g,t=>t8[t])}function c8(e){return{top:0,right:0,bottom:0,left:0,...e}}function zM(e){return typeof e!="number"?c8(e):{top:e,right:e,bottom:e,left:e}}function ng(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Xh(e,t,n){return Math.floor(e/t)!==n}function fu(e,t){return t<0||t>=e.current.length}function Op(e,t){return cr(e,{disabledIndices:t})}function $1(e,t){return cr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function cr(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let s=t;do s+=n?-o:o;while(s>=0&&s<=e.current.length-1&&ta(e,s,r));return s}function UM(e,{event:t,orientation:n,loop:r,rtl:o,cols:s,disabledIndices:l,minIndex:c,maxIndex:f,prevIndex:d,stopEvent:p=!1}){let g=d;const m=[],y={};let b=!1;{let C=null,x=-1;e.current.forEach((_,M)=>{if(_==null)return;const T=_.closest('[role="row"]');T&&(b=!0),(T!==C||x===-1)&&(C=T,x+=1,m[x]=[]),m[x].push(M),y[M]=x})}const S=b&&m.length>0&&m.some(C=>C.length!==s);function R(C){if(!S||d===-1)return;const x=y[d];if(x==null)return;const _=m[x].indexOf(d);let M=C==="up"?x-1:x+1;r&&(M<0?M=m.length-1:M>=m.length&&(M=0));const T=new Set;for(;M>=0&&M<m.length&&!T.has(M);){T.add(M);const A=m[M];if(A.length===0){M=C==="up"?M-1:M+1;continue}const O=Math.min(_,A.length-1);for(let k=O;k>=0;k-=1){const D=A[k];if(!ta(e,D,l))return D}M=C==="up"?M-1:M+1,r&&(M<0?M=m.length-1:M>=m.length&&(M=0))}}if(t.key===_S){const C=R("up");if(C!==void 0)p&&vr(t),g=C;else{if(p&&vr(t),d===-1)g=f;else if(g=cr(e,{startingIndex:g,amount:s,decrement:!0,disabledIndices:l}),r&&(d-s<c||g<0)){const x=d%s,_=f%s,M=f-(_-x);_===x?g=f:g=_>x?M:M-s}fu(e,g)&&(g=d)}}if(t.key===ld){const C=R("down");C!==void 0?(p&&vr(t),g=C):(p&&vr(t),d===-1?g=c:(g=cr(e,{startingIndex:d,amount:s,disabledIndices:l}),r&&d+s>f&&(g=cr(e,{startingIndex:d%s-s,amount:s,disabledIndices:l}))),fu(e,g)&&(g=d))}if(n==="both"){const C=ou(d/s);t.key===(o?Js:ea)&&(p&&vr(t),d%s!==s-1?(g=cr(e,{startingIndex:d,disabledIndices:l}),r&&Xh(g,s,C)&&(g=cr(e,{startingIndex:d-d%s-1,disabledIndices:l}))):r&&(g=cr(e,{startingIndex:d-d%s-1,disabledIndices:l})),Xh(g,s,C)&&(g=d)),t.key===(o?ea:Js)&&(p&&vr(t),d%s!==0?(g=cr(e,{startingIndex:d,decrement:!0,disabledIndices:l}),r&&Xh(g,s,C)&&(g=cr(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:l}))):r&&(g=cr(e,{startingIndex:d+(s-d%s),decrement:!0,disabledIndices:l})),Xh(g,s,C)&&(g=d));const x=ou(f/s)===C;fu(e,g)&&(r&&x?g=t.key===(o?ea:Js)?f:cr(e,{startingIndex:d-d%s-1,disabledIndices:l}):g=d)}return g}function VM(e,t,n){const r=[];let o=0;return e.forEach(({width:s,height:l},c)=>{let f=!1;for(n&&(o=0);!f;){const d=[];for(let p=0;p<s;p+=1)for(let g=0;g<l;g+=1)d.push(o+p+g*t);o%t+s<=t&&d.every(p=>r[p]==null)?(d.forEach(p=>{r[p]=c}),f=!0):o+=1}}),[...r]}function jM(e,t,n,r,o){if(e===-1)return-1;const s=n.indexOf(e),l=t[e];switch(o){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 qM(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function ta(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}var f8=["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])"],rg=f8.join(","),$M=typeof Element>"u",Pu=$M?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,og=!$M&&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},ig=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=o===""||o==="true",l=s||n&&t&&e(t.parentNode);return l},d8=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},GM=function(t,n,r){if(ig(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(rg));return n&&Pu.call(t,rg)&&o.unshift(t),o=o.filter(r),o},YM=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var l=s.shift();if(!ig(l,!1))if(l.tagName==="SLOT"){var c=l.assignedElements(),f=c.length?c:l.children,d=e(f,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:l,candidates:d})}else{var p=Pu.call(l,rg);p&&r.filter(l)&&(n||!t.includes(l))&&o.push(l);var g=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),m=!ig(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(g&&m){var y=e(g===!0?l.children:g.children,!0,r);r.flatten?o.push.apply(o,y):o.push({scopeParent:l,candidates:y})}else s.unshift.apply(s,l.children)}}return o},KM=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},WM=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||d8(t))&&!KM(t)?0:t.tabIndex},h8=function(t,n){var r=WM(t);return r<0&&n&&!KM(t)?0:r},p8=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},XM=function(t){return t.tagName==="INPUT"},g8=function(t){return XM(t)&&t.type==="hidden"},m8=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},v8=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},y8=function(t){if(!t.name)return!0;var n=t.form||og(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=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=v8(o,t.form);return!s||s===t},b8=function(t){return XM(t)&&t.type==="radio"},S8=function(t){return b8(t)&&!y8(t)},E8=function(t){var n,r=t&&og(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var l,c,f;for(s=!!((l=o)!==null&&l!==void 0&&(c=l.ownerDocument)!==null&&c!==void 0&&c.contains(o)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!s&&o;){var d,p,g;r=og(o),o=(d=r)===null||d===void 0?void 0:d.host,s=!!((p=o)!==null&&p!==void 0&&(g=p.ownerDocument)!==null&&g!==void 0&&g.contains(o))}}return s},r2=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},w8=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var s=Pu.call(t,"details>summary:first-of-type"),l=s?t.parentElement:t;if(Pu.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var f=t.parentElement,d=og(t);if(f&&!f.shadowRoot&&o(f)===!0)return r2(t);t.assignedSlot?t=t.assignedSlot:!f&&d!==t.ownerDocument?t=d.host:t=f}t=c}if(E8(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return r2(t);return!1},R8=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 o=n.children.item(r);if(o.tagName==="LEGEND")return Pu.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},G1=function(t,n){return!(n.disabled||ig(n)||g8(n)||w8(n,t)||m8(n)||R8(n))},Y1=function(t,n){return!(S8(n)||WM(n)<0||!G1(t,n))},x8=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},_8=function e(t){var n=[],r=[];return t.forEach(function(o,s){var l=!!o.scopeParent,c=l?o.scopeParent:o,f=h8(c,l),d=l?e(o.candidates):c;f===0?l?n.push.apply(n,d):n.push(c):r.push({documentOrder:s,tabIndex:f,item:o,isScope:l,content:d})}),r.sort(p8).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Zg=function(t,n){n=n||{};var r;return n.getShadowRoot?r=YM([t],n.includeContainer,{filter:Y1.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:x8}):r=GM(t,n.includeContainer,Y1.bind(null,n)),_8(r)},C8=function(t,n){n=n||{};var r;return n.getShadowRoot?r=YM([t],n.includeContainer,{filter:G1.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=GM(t,n.includeContainer,G1.bind(null,n)),r},QM=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Pu.call(t,rg)===!1?!1:Y1(n,t)};const ud=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ZM(e,t){const n=Zg(e,ud()),r=n.length;if(r===0)return;const o=fi(zn(e)),s=n.indexOf(o),l=s===-1?t===1?0:r-1:s+t;return n[l]}function JM(e){return ZM(zn(e).body,1)||e}function e4(e){return ZM(zn(e).body,-1)||e}function Cf(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!un(n,r)}function T8(e){Zg(e,ud()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function o2(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 A8={...dM};let i2=0;function M8(e,t="mui"){const[n,r]=E.useState(e),o=e||n;return E.useEffect(()=>{n==null&&(i2+=1,r(`${t}-${i2}`))},[n,t]),o}const s2=A8.useId;function Zu(e,t){if(s2!==void 0){const n=s2();return e??(t?`${t}-${n}`:n)}return M8(e,t)}function t4(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(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)}}}const n4=E.createContext(null),r4=E.createContext(null),ds=()=>{var e;return((e=E.useContext(n4))==null?void 0:e.id)||null},_i=()=>E.useContext(r4);function o4(e){const t=Zu(),n=_i(),o=ds();return qe(()=>{if(!t)return;const s={id:t,parentId:o};return n==null||n.addNode(s),()=>{n==null||n.removeNode(s)}},[n,t,o]),t}function i4(e){const{children:t,id:n}=e,r=ds();return Ee.jsx(n4.Provider,{value:E.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function s4(e){const{children:t}=e,n=E.useRef([]),r=E.useCallback(l=>{n.current=[...n.current,l]},[]),o=E.useCallback(l=>{n.current=n.current.filter(c=>c!==l)},[]),[s]=E.useState(()=>t4());return Ee.jsx(r4.Provider,{value:E.useMemo(()=>({nodesRef:n,addNode:r,removeNode:o,events:s}),[r,o,s]),children:t})}function fr(){}const Nu=Object.freeze([]),rr=Object.freeze({}),O8=500,a4=500,Jg={style:{transition:"none"}},l4="data-base-ui-click-trigger",u4={fallbackAxisSide:"none"},c4={fallbackAxisSide:"end"};function St(e,t,n){let r=!1,o=!1;const s=rr;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){o=!0},get isCanceled(){return r},get isPropagationAllowed(){return o},...s}}function Fu(e){return`data-base-ui-${e}`}const a2=Fu("safe-polygon");function Ip(e,t,n){if(n&&!ku(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]}function hy(e){return typeof e=="function"?e():e}function OS(e,t={}){const{open:n,onOpenChange:r,dataRef:o,events:s,elements:l}=e,{enabled:c=!0,delay:f=0,handleClose:d=null,mouseOnly:p=!1,restMs:g=0,move:m=!0}=t,y=_i(),b=ds(),S=xn(d),R=xn(f),C=xn(n),x=xn(g),_=E.useRef(void 0),M=_n(),T=E.useRef(void 0),A=_n(),O=E.useRef(!0),k=E.useRef(!1),D=E.useRef(()=>{}),U=E.useRef(!1),L=Be(()=>{var $;const V=($=o.current.openEvent)==null?void 0:$.type;return(V==null?void 0:V.includes("mouse"))&&V!=="mousedown"});E.useEffect(()=>{if(!c)return;function V($){$.open||(M.clear(),A.clear(),O.current=!0,U.current=!1)}return s.on("openchange",V),()=>{s.off("openchange",V)}},[c,s,M,A]),E.useEffect(()=>{if(!c||!S.current||!n)return;function V(W){L()&&r(!1,St("trigger-hover",W))}const $=zn(l.floating).documentElement;return $.addEventListener("mouseleave",V),()=>{$.removeEventListener("mouseleave",V)}},[l.floating,n,r,c,S,L]);const j=E.useCallback((V,$=!0)=>{const W=Ip(R.current,"close",_.current);W&&!T.current?M.start(W,()=>r(!1,St("trigger-hover",V))):$&&(M.clear(),r(!1,St("trigger-hover",V)))},[R,r,M]),B=Be(()=>{D.current(),T.current=void 0}),Y=Be(()=>{if(k.current){const V=zn(l.floating).body;V.style.pointerEvents="",V.removeAttribute(a2),k.current=!1}}),H=Be(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);E.useEffect(()=>{if(!c)return;function V(Z){if(M.clear(),O.current=!1,p&&!ku(_.current)||hy(x.current)>0&&!Ip(R.current,"open"))return;const G=Ip(R.current,"open",_.current);G?M.start(G,()=>{C.current||r(!0,St("trigger-hover",Z))}):n||r(!0,St("trigger-hover",Z))}function $(Z){if(H()){Y();return}D.current();const G=zn(l.floating);if(A.clear(),U.current=!1,S.current&&o.current.floatingContext){n||M.clear(),T.current=S.current({...o.current.floatingContext,tree:y,x:Z.clientX,y:Z.clientY,onClose(){Y(),B(),H()||j(Z,!0)}});const re=T.current;G.addEventListener("mousemove",re),D.current=()=>{G.removeEventListener("mousemove",re)};return}(_.current==="touch"?!un(l.floating,Z.relatedTarget):!0)&&j(Z)}function W(Z){var G;H()||o.current.floatingContext&&((G=S.current)==null||G.call(S,{...o.current.floatingContext,tree:y,x:Z.clientX,y:Z.clientY,onClose(){Y(),B(),H()||j(Z)}})(Z))}function P(){M.clear()}function Q(Z){H()||j(Z,!1)}if(hn(l.domReference)){const Z=l.domReference,G=l.floating;return n&&Z.addEventListener("mouseleave",W),m&&Z.addEventListener("mousemove",V,{once:!0}),Z.addEventListener("mouseenter",V),Z.addEventListener("mouseleave",$),G&&(G.addEventListener("mouseleave",W),G.addEventListener("mouseenter",P),G.addEventListener("mouseleave",Q)),()=>{n&&Z.removeEventListener("mouseleave",W),m&&Z.removeEventListener("mousemove",V),Z.removeEventListener("mouseenter",V),Z.removeEventListener("mouseleave",$),G&&(G.removeEventListener("mouseleave",W),G.removeEventListener("mouseenter",P),G.removeEventListener("mouseleave",Q))}}},[l,c,e,p,m,j,B,Y,r,n,C,y,R,S,o,H,x,M,A]),qe(()=>{var V,$,W,P;if(c&&n&&($=(V=S.current)==null?void 0:V.__options)!=null&&$.blockPointerEvents&&L()){k.current=!0;const Q=l.floating;if(hn(l.domReference)&&Q){const Z=zn(l.floating).body;Z.setAttribute(a2,"");const G=l.domReference,ne=(P=(W=y==null?void 0:y.nodesRef.current.find(re=>re.id===b))==null?void 0:W.context)==null?void 0:P.elements.floating;return ne&&(ne.style.pointerEvents=""),Z.style.pointerEvents="none",G.style.pointerEvents="auto",Q.style.pointerEvents="auto",()=>{Z.style.pointerEvents="",G.style.pointerEvents="",Q.style.pointerEvents=""}}}},[c,n,b,l,y,S,L]),qe(()=>{n||(_.current=void 0,U.current=!1,B(),Y())},[n,B,Y]),E.useEffect(()=>()=>{B(),M.clear(),A.clear()},[c,l.domReference,B,M,A]),E.useEffect(()=>Y,[Y]);const F=E.useMemo(()=>{function V($){_.current=$.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove($){const{nativeEvent:W}=$;function P(){!O.current&&!C.current&&r(!0,St("trigger-hover",W))}p&&!ku(_.current)||n||hy(x.current)===0||U.current&&$.movementX**2+$.movementY**2<2||(A.clear(),_.current==="touch"?P():(U.current=!0,A.start(hy(x.current),P)))}}},[p,r,n,C,x,A]);return E.useMemo(()=>c?{reference:F}:{},[c,F])}const f4=E.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new oa,currentIdRef:{current:null},currentContextRef:{current:null}});function I8(e){const{children:t,delay:n,timeoutMs:r=0}=e,o=E.useRef(n),s=E.useRef(n),l=E.useRef(null),c=E.useRef(null),f=_n();return Ee.jsx(f4.Provider,{value:E.useMemo(()=>({hasProvider:!0,delayRef:o,initialDelayRef:s,currentIdRef:l,timeoutMs:r,currentContextRef:c,timeout:f}),[r,f]),children:t})}function D8(e,t={}){const{open:n,onOpenChange:r,floatingId:o}=e,{enabled:s=!0}=t,l=E.useContext(f4),{currentIdRef:c,delayRef:f,timeoutMs:d,initialDelayRef:p,currentContextRef:g,hasProvider:m,timeout:y}=l,[b,S]=E.useState(!1);return qe(()=>{function R(){var C;S(!1),(C=g.current)==null||C.setIsInstantPhase(!1),c.current=null,g.current=null,f.current=p.current}if(s&&c.current&&!n&&c.current===o){if(S(!1),d)return y.start(d,R),()=>{y.clear()};R()}},[s,n,o,c,f,d,p,g,y]),qe(()=>{if(!s||!n)return;const R=g.current,C=c.current;g.current={onOpenChange:r,setIsInstantPhase:S},c.current=o,f.current={open:0,close:Ip(p.current,"close")},C!==null&&C!==o?(y.clear(),S(!0),R==null||R.setIsInstantPhase(!0),R==null||R.onOpenChange(!1,St("none"))):(S(!1),R==null||R.setIsInstantPhase(!1))},[s,n,o,r,c,f,d,p,g,y]),qe(()=>()=>{g.current=null},[g]),E.useMemo(()=>({hasProvider:m,delayRef:f,isInstantPhase:b}),[m,f,b])}function Tr(e,t,n,r){const o=yi(d4).current;return L8(o,e,t,n,r)&&h4(o,[e,t,n,r]),o.callback}function k8(e){const t=yi(d4).current;return P8(t,e)&&h4(t,e),t.callback}function d4(){return{callback:null,cleanup:null,refs:[]}}function L8(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function P8(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function h4(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 o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(r[o]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const l=r[o];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}const ga={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},Qh=null;class N8{constructor(){Rn(this,"callbacks",[]);Rn(this,"callbacksCount",0);Rn(this,"nextId",1);Rn(this,"startId",1);Rn(this,"isScheduled",!1);Rn(this,"tick",t=>{var o;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)(o=n[s])==null||o.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 Zh=new N8;class ui{constructor(){Rn(this,"currentId",Qh);Rn(this,"cancel",()=>{this.currentId!==Qh&&(Zh.cancel(this.currentId),this.currentId=Qh)});Rn(this,"disposeEffect",()=>this.cancel)}static create(){return new ui}static request(t){return Zh.request(t)}static cancel(t){return Zh.cancel(t)}request(t){this.cancel(),this.currentId=Zh.request(()=>{this.currentId=Qh,t()})}}function em(){const e=yi(ui.create).current;return OM(e.disposeEffect),e}function Io(e){return(e==null?void 0:e.ownerDocument)||document}const sg=E.forwardRef(function(t,n){const[r,o]=E.useState();qe(()=>{LM&&o("button")},[]);const s={tabIndex:0,role:r};return Ee.jsx("span",{...t,ref:n,style:ga,"aria-hidden":r?void 0:!0,...s,"data-base-ui-focus-guard":""})});let l2=0;function Dp(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(l2);const s=()=>e==null?void 0:e.focus({preventScroll:n});o?s():l2=requestAnimationFrame(s)}const du={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function u2(e){return e==="inert"?du.inert:e==="aria-hidden"?du["aria-hidden"]:du.none}let Jh=new WeakSet,ep={},py=0;const p4=e=>e&&(e.host||p4(e.parentNode)),F8=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=p4(n);return e.contains(r)?r:null}).filter(n=>n!=null);function B8(e,t,n,r){const o="data-base-ui-inert",s=r?"inert":n?"aria-hidden":null,l=F8(t,e),c=new Set,f=new Set(l),d=[];ep[o]||(ep[o]=new WeakMap);const p=ep[o];l.forEach(g),m(t),c.clear();function g(y){!y||c.has(y)||(c.add(y),y.parentNode&&g(y.parentNode))}function m(y){!y||f.has(y)||[].forEach.call(y.children,b=>{if(ha(b)!=="script")if(c.has(b))m(b);else{const S=s?b.getAttribute(s):null,R=S!==null&&S!=="false",C=u2(s),x=(C.get(b)||0)+1,_=(p.get(b)||0)+1;C.set(b,x),p.set(b,_),d.push(b),x===1&&R&&Jh.add(b),_===1&&b.setAttribute(o,""),!R&&s&&b.setAttribute(s,s==="inert"?"":"true")}})}return py+=1,()=>{d.forEach(y=>{const b=u2(s),R=(b.get(y)||0)-1,C=(p.get(y)||0)-1;b.set(y,R),p.set(y,C),R||(!Jh.has(y)&&s&&y.removeAttribute(s),Jh.delete(y)),C||y.removeAttribute(o)}),py-=1,py||(du.inert=new WeakMap,du["aria-hidden"]=new WeakMap,du.none=new WeakMap,Jh=new WeakSet,ep={})}}function H8(e,t=!1,n=!1){const r=zn(e[0]).body;return B8(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const g4=E.createContext(null),m4=()=>E.useContext(g4),c2=Fu("portal");function v4(e={}){const{id:t,root:n}=e,r=Zu(),o=m4(),[s,l]=E.useState(null),c=E.useRef(null);return qe(()=>()=>{s==null||s.remove(),queueMicrotask(()=>{c.current=null})},[s]),qe(()=>{if(!r||c.current)return;const f=t?document.getElementById(t):null;if(!f)return;const d=document.createElement("div");d.id=r,d.setAttribute(c2,""),f.appendChild(d),c.current=d,l(d)},[t,r]),qe(()=>{if(n===null||!r||c.current)return;let f=n||(o==null?void 0:o.portalNode);f&&!wS(f)&&(f=f.current),f=f||document.body;let d=null;t&&(d=document.createElement("div"),d.id=t,f.appendChild(d));const p=document.createElement("div");p.id=r,p.setAttribute(c2,""),f=d||f,f.appendChild(p),c.current=p,l(p)},[t,n,r,o]),s}function tm(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,s=v4({id:n,root:r}),[l,c]=E.useState(null),f=E.useRef(null),d=E.useRef(null),p=E.useRef(null),g=E.useRef(null),m=l==null?void 0:l.modal,y=l==null?void 0:l.open,b=!!l&&!l.modal&&l.open&&o&&!!(r||s);return E.useEffect(()=>{if(!s||!o||m)return;function S(R){s&&Cf(R)&&(R.type==="focusin"?o2:T8)(s)}return s.addEventListener("focusin",S,!0),s.addEventListener("focusout",S,!0),()=>{s.removeEventListener("focusin",S,!0),s.removeEventListener("focusout",S,!0)}},[s,o,m]),E.useEffect(()=>{s&&(y||o2(s))},[y,s]),Ee.jsxs(g4.Provider,{value:E.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:f,afterOutsideRef:d,beforeInsideRef:p,afterInsideRef:g,portalNode:s,setFocusManagerState:c}),[o,s]),children:[b&&s&&Ee.jsx(sg,{"data-type":"outside",ref:f,onFocus:S=>{var R;if(Cf(S,s))(R=p.current)==null||R.focus();else{const C=l?l.domReference:null,x=e4(C);x==null||x.focus()}}}),b&&s&&Ee.jsx("span",{"aria-owns":s.id,style:ga}),s&&br.createPortal(t,s),b&&s&&Ee.jsx(sg,{"data-type":"outside",ref:d,onFocus:S=>{var R;if(Cf(S,s))(R=g.current)==null||R.focus();else{const C=l?l.domReference:null,x=JM(C);x==null||x.focus(),l!=null&&l.closeOnFocusOut&&(l==null||l.onOpenChange(!1,St("focus-out",S.nativeEvent)))}}})]})}function z8(e,t){const n=Ln(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 U8=20;let Xs=[];function IS(){Xs=Xs.filter(e=>e.isConnected)}function V8(e){IS(),e&&ha(e)!=="body"&&(Xs.push(e),Xs.length>U8&&(Xs=Xs.slice(-20)))}function gy(){return IS(),Xs[Xs.length-1]}function j8(e){if(!e)return null;const t=ud();return QM(e,t)?e:Zg(e,t)[0]||e}function f2(e,t){var l;if(!t.current.includes("floating")&&!((l=e.getAttribute("role"))!=null&&l.includes("dialog")))return;const n=ud(),o=C8(e,n).filter(c=>{const f=c.getAttribute("data-tabindex")||"";return QM(c,n)||c.hasAttribute("data-tabindex")&&!f.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||o.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 nm(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],initialFocus:s=!0,returnFocus:l=!0,restoreFocus:c=!1,modal:f=!0,closeOnFocusOut:d=!0,openInteractionType:p="",getInsideElements:g=()=>[]}=e,{open:m,onOpenChange:y,events:b,dataRef:S,elements:{domReference:R,floating:C}}=t,x=Be(()=>{var ve;return(ve=S.current.floatingContext)==null?void 0:ve.nodeId}),_=Be(g),M=s===!1,T=V1(R)&&M,A=xn(o),O=xn(s),k=xn(l),D=xn(p),U=_i(),L=m4(),j=E.useRef(null),B=E.useRef(null),Y=E.useRef(!1),H=E.useRef(!1),F=E.useRef(-1),V=E.useRef(""),$=E.useRef(""),W=_n(),P=_n(),Q=em(),Z=L!=null,G=Bf(C),ne=Be((ve=G)=>ve?Zg(ve,ud()):[]),re=Be(ve=>{const pe=ne(ve);return A.current.map(()=>pe).filter(Boolean).flat()});E.useEffect(()=>{if(r||!f)return;function ve(Se){Se.key==="Tab"&&un(G,fi(zn(G)))&&ne().length===0&&!T&&vr(Se)}const pe=zn(G);return pe.addEventListener("keydown",ve),()=>{pe.removeEventListener("keydown",ve)}},[r,R,G,f,A,T,ne,re]),E.useEffect(()=>{if(r||!C)return;function ve(pe){const Se=to(pe),Te=ne().indexOf(Se);Te!==-1&&(F.current=Te)}return C.addEventListener("focusin",ve),()=>{C.removeEventListener("focusin",ve)}},[r,C,ne]),E.useEffect(()=>{if(r||!m)return;const ve=zn(G);function pe(Ie){$.current=Ie.pointerType||"keyboard"}function Se(){$.current="keyboard"}return ve.addEventListener("pointerdown",pe,!0),ve.addEventListener("keydown",Se,!0),()=>{ve.removeEventListener("pointerdown",pe,!0),ve.removeEventListener("keydown",Se,!0)}},[r,C,R,G,m]),E.useEffect(()=>{if(r||!d)return;function ve(){H.current=!0,P.start(0,()=>{H.current=!1})}function pe(Ie){const Te=Ie.relatedTarget,Le=Ie.currentTarget,ge=to(Ie);queueMicrotask(()=>{const Re=x(),xe=!(un(R,Te)||un(C,Te)||un(Te,C)||un(L==null?void 0:L.portalNode,Te)||Te!=null&&Te.hasAttribute(Fu("focus-guard"))||U&&(Ja(U.nodesRef.current,Re).find(q=>{var J,ae;return un((J=q.context)==null?void 0:J.elements.floating,Te)||un((ae=q.context)==null?void 0:ae.elements.domReference,Te)})||e2(U.nodesRef.current,Re).find(q=>{var J,ae,Me;return[(J=q.context)==null?void 0:J.elements.floating,Bf((ae=q.context)==null?void 0:ae.elements.floating)].includes(Te)||((Me=q.context)==null?void 0:Me.elements.domReference)===Te})));if(Le===R&&G&&f2(G,A),c&&Le!==R&&!(ge!=null&&ge.isConnected)&&fi(zn(G))===zn(G).body){if(Sn(G)&&(G.focus(),c==="popup")){Q.request(()=>{G.focus()});return}const q=F.current,J=ne(),ae=J[q]||J[J.length-1]||G;Sn(ae)&&ae.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(T||!f)&&Te&&xe&&(T||Te!==gy())&&(Y.current=!0,y(!1,St("focus-out",Ie)))})}function Se(){S.current.insideReactTree=!0,W.start(0,()=>{S.current.insideReactTree=!1})}if(C&&Sn(R))return R.addEventListener("focusout",pe),R.addEventListener("pointerdown",ve),C.addEventListener("focusout",pe),L&&C.addEventListener("focusout",Se,!0),()=>{R.removeEventListener("focusout",pe),R.removeEventListener("pointerdown",ve),C.removeEventListener("focusout",pe),L&&C.removeEventListener("focusout",Se,!0)}},[r,R,C,G,f,U,L,y,d,c,ne,T,x,A,S,W,P,Q]);const z=E.useRef(null),le=E.useRef(null),K=Tr(z,L==null?void 0:L.beforeInsideRef),se=Tr(le,L==null?void 0:L.afterInsideRef);E.useEffect(()=>{var Le,ge,Re;if(r||!C||!m)return;const ve=Array.from(((Le=L==null?void 0:L.portalNode)==null?void 0:Le.querySelectorAll(`[${Fu("portal")}]`))||[]),Se=(Re=(ge=(U?e2(U.nodesRef.current,x()):[]).find(xe=>{var q;return V1(((q=xe.context)==null?void 0:q.elements.domReference)||null)}))==null?void 0:ge.context)==null?void 0:Re.elements.domReference,Ie=[C,Se,...ve,..._(),j.current,B.current,z.current,le.current,L==null?void 0:L.beforeOutsideRef.current,L==null?void 0:L.afterOutsideRef.current,T?R:null].filter(xe=>xe!=null),Te=H8(Ie,f||T);return()=>{Te()}},[m,r,R,C,f,A,L,T,U,x,_]),qe(()=>{if(r||!Sn(G))return;const ve=zn(G),pe=fi(ve);queueMicrotask(()=>{const Se=re(G),Ie=O.current,Te=typeof Ie=="function"?Ie(D.current||""):Ie;if(Te===void 0||Te===!1)return;let Le;Te===!0||Te===null?Le=Se[0]||G:"current"in Te?Le=Te.current:Le=Te,Le=Le||Se[0]||G,!un(G,pe)&&m&&Dp(Le,{preventScroll:Le===G})})},[r,m,G,M,re,O,D]),qe(()=>{if(r||!G)return;const ve=zn(G),pe=fi(ve);V8(pe);function Se(Le){if(Le.open||(V.current=z8(Le.nativeEvent,$.current)),Le.reason==="trigger-hover"&&Le.nativeEvent.type==="mouseleave"&&(Y.current=!0),Le.reason==="outside-press")if(Le.nested)Y.current=!1;else if(BM(Le.nativeEvent)||HM(Le.nativeEvent))Y.current=!1;else{let ge=!1;document.createElement("div").focus({get preventScroll(){return ge=!0,!1}}),ge?Y.current=!1:Y.current=!0}}b.on("openchange",Se);const Ie=ve.createElement("span");Ie.setAttribute("tabindex","-1"),Ie.setAttribute("aria-hidden","true"),Object.assign(Ie.style,ga),Z&&R&&R.insertAdjacentElement("afterend",Ie);function Te(){const Le=k.current;let ge=typeof Le=="function"?Le(V.current):Le;if(ge===void 0||ge===!1)return null;if(ge===null&&(ge=!0),typeof ge=="boolean"){const xe=R||gy();return xe&&xe.isConnected?xe:Ie}const Re=R||gy()||Ie;return"current"in ge?ge.current||Re:ge||Re}return()=>{b.off("openchange",Se);const Le=fi(ve),ge=un(C,Le)||U&&Ja(U.nodesRef.current,x(),!1).some(xe=>{var q;return un((q=xe.context)==null?void 0:q.elements.floating,Le)}),Re=Te();queueMicrotask(()=>{const xe=j8(Re),q=typeof k.current!="boolean";k.current&&!Y.current&&Sn(xe)&&(!(!q&&xe!==Le&&Le!==ve.body)||ge)&&xe.focus({preventScroll:!0}),Ie.remove()})}},[r,C,G,k,S,b,U,Z,R,x]),E.useEffect(()=>{queueMicrotask(()=>{Y.current=!1})},[r]),E.useEffect(()=>{if(r||!m)return;function ve(Se){const Ie=to(Se);Ie!=null&&Ie.closest(`[${l4}]`)&&(H.current=!0)}const pe=zn(G);return pe.addEventListener("pointerdown",ve,!0),()=>{pe.removeEventListener("pointerdown",ve,!0)}},[r,m,G]),qe(()=>{if(!r&&L)return L.setFocusManagerState({modal:f,closeOnFocusOut:d,open:m,onOpenChange:y,domReference:R}),()=>{L.setFocusManagerState(null)}},[r,L,f,m,y,d,R]),qe(()=>{if(!(r||!G))return f2(G,A),()=>{queueMicrotask(IS)}},[r,G,A]);const ie=!r&&(f?!T:!0)&&(Z||f);return Ee.jsxs(E.Fragment,{children:[ie&&Ee.jsx(sg,{"data-type":"inside",ref:K,onFocus:ve=>{var pe;if(f){const Se=re();Dp(Se[Se.length-1])}else if(L!=null&&L.preserveTabOrder&&L.portalNode)if(Y.current=!1,Cf(ve,L.portalNode)){const Se=JM(R);Se==null||Se.focus()}else(pe=L.beforeOutsideRef.current)==null||pe.focus()}}),n,ie&&Ee.jsx(sg,{"data-type":"inside",ref:se,onFocus:ve=>{var pe;if(f)Dp(re()[0]);else if(L!=null&&L.preserveTabOrder&&L.portalNode)if(d&&(Y.current=!0),Cf(ve,L.portalNode)){const Se=e4(R);Se==null||Se.focus()}else(pe=L.afterOutsideRef.current)==null||pe.focus()}})]})}function rm(e,t={}){const{open:n,onOpenChange:r,dataRef:o}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:f=!1,stickIfOpen:d=!0,touchOpenDelay:p=0}=t,g=E.useRef(void 0),m=em(),y=_n(),b=E.useMemo(()=>({onPointerDown(S){g.current=S.pointerType},onMouseDown(S){const R=g.current,C=S.nativeEvent;if(S.button!==0||l==="click"||ku(R,!0)&&f)return;const x=o.current.openEvent,_=x==null?void 0:x.type,M=!(n&&c&&(!(x&&d)||_==="click"||_==="mousedown"));if(CS(C.target)){const T=St("trigger-press",C);M&&R==="touch"&&p>0?y.start(p,()=>{r(!0,T)}):r(M,T);return}m.request(()=>{const T=St("trigger-press",C);M&&R==="touch"&&p>0?y.start(p,()=>{r(!0,T)}):r(M,T)})},onClick(S){if(l==="mousedown-only")return;const R=g.current;if(l==="mousedown"&&R){g.current=void 0;return}if(ku(R,!0)&&f)return;const C=o.current.openEvent,x=C==null?void 0:C.type,_=!(n&&c&&(!(C&&d)||x==="click"||x==="mousedown"||x==="keydown"||x==="keyup")),M=St("trigger-press",S.nativeEvent);_&&R==="touch"&&p>0?y.start(p,()=>{r(!0,M)}):r(_,M)},onKeyDown(){g.current=void 0}}),[o,l,f,r,n,d,c,m,y,p]);return E.useMemo(()=>s?{reference:b}:rr,[s,b])}function q8(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){var y;const s=(e==null?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",c=t.axis==="y"||t.axis==="both",f=["mouseenter","mousemove"].includes(((y=t.dataRef.current.openEvent)==null?void 0:y.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&&c&&(r=s.y-t.y),g-=n||0,m-=r||0,d=0,p=0,!o||f?(d=t.axis==="y"?s.width:0,p=t.axis==="x"?s.height:0,g=l&&t.x!=null?t.x:g,m=c&&t.y!=null?t.y:m):o&&!f&&(p=t.axis==="x"?s.height:p,d=t.axis==="y"?s.width:d),o=!0,{width:d,height:p,x:g,y:m,top:m,right:g+d,bottom:m+p,left:g}}}}function d2(e){return e!=null&&e.clientX!=null}function $8(e,t={}){const{open:n,dataRef:r,elements:{floating:o,domReference:s},refs:l}=e,{enabled:c=!0,axis:f="both",x:d=null,y:p=null}=t,g=E.useRef(!1),m=E.useRef(null),[y,b]=E.useState(),[S,R]=E.useState([]),C=Be((A,O)=>{g.current||r.current.openEvent&&!d2(r.current.openEvent)||l.setPositionReference(q8(s,{x:A,y:O,axis:f,dataRef:r,pointerType:y}))}),x=Be(A=>{d!=null||p!=null||(n?m.current||R([]):C(A.clientX,A.clientY))}),_=ku(y)?o:n,M=E.useCallback(()=>{if(!_||!c||d!=null||p!=null)return;const A=Ln(o);function O(k){const D=to(k);un(o,D)?(A.removeEventListener("mousemove",O),m.current=null):C(k.clientX,k.clientY)}if(!r.current.openEvent||d2(r.current.openEvent)){A.addEventListener("mousemove",O);const k=()=>{A.removeEventListener("mousemove",O),m.current=null};return m.current=k,k}l.setPositionReference(s)},[_,c,d,p,o,r,l,s,C]);E.useEffect(()=>M(),[M,S]),E.useEffect(()=>{c&&!o&&(g.current=!1)},[c,o]),E.useEffect(()=>{!c&&n&&(g.current=!0)},[c,n]),qe(()=>{c&&(d!=null||p!=null)&&(g.current=!1,C(d,p))},[c,d,p,C]);const T=E.useMemo(()=>{function A(O){b(O.pointerType)}return{onPointerDown:A,onPointerEnter:A,onMouseMove:x,onMouseEnter:x}},[x]);return E.useMemo(()=>c?{reference:T}:{},[c,T])}function h2(e,t,n){let{reference:r,floating:o}=e;const s=_o(t),l=MS(t),c=AS(l),f=io(t),d=s==="y",p=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let y;switch(f){case"top":y={x:p,y:r.y-o.height};break;case"bottom":y={x:p,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-o.width,y:g};break;default:y={x:r.x,y:r.y}}switch(pa(t)){case"start":y[l]-=m*(n&&d?-1:1);break;case"end":y[l]+=m*(n&&d?-1:1);break}return y}const G8=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:g}=h2(d,r,f),m=r,y={},b=0;for(let S=0;S<c.length;S++){const{name:R,fn:C}=c[S],{x,y:_,data:M,reset:T}=await C({x:p,y:g,initialPlacement:r,placement:m,strategy:o,middlewareData:y,rects:d,platform:l,elements:{reference:e,floating:t}});p=x??p,g=_??g,y={...y,[R]:{...y[R],...M}},T&&b<=50&&(b++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(d=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:p,y:g}=h2(d,m,f)),S=-1)}return{x:p,y:g,placement:m,strategy:o,middlewareData:y}};async function Hf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:m=!1,padding:y=0}=as(t,e),b=zM(y),R=c[m?g==="floating"?"reference":"floating":g],C=ng(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(R)))==null||n?R:R.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:p,strategy:f})),x=g==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),M=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},T=ng(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:_,strategy:f}):x);return{top:(C.top-T.top+b.top)/M.y,bottom:(T.bottom-C.bottom+b.bottom)/M.y,left:(C.left-T.left+b.left)/M.x,right:(T.right-C.right+b.right)/M.x}}const Y8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:S=!0,...R}=as(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=io(o),x=_o(c),_=io(c)===c,M=await(f.isRTL==null?void 0:f.isRTL(d.floating)),T=m||(_||!S?[tg(c)]:i8(c)),A=b!=="none";!m&&A&&T.push(...u8(c,S,b,M));const O=[c,...T],k=await Hf(t,R),D=[];let U=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&D.push(k[C]),g){const Y=o8(o,l,M);D.push(k[Y[0]],k[Y[1]])}if(U=[...U,{placement:o,overflows:D}],!D.every(Y=>Y<=0)){var L,j;const Y=(((L=s.flip)==null?void 0:L.index)||0)+1,H=O[Y];if(H&&(!(g==="alignment"?x!==_o(H):!1)||U.every($=>_o($.placement)===x?$.overflows[0]>0:!0)))return{data:{index:Y,overflows:U},reset:{placement:H}};let F=(j=U.filter(V=>V.overflows[0]<=0).sort((V,$)=>V.overflows[1]-$.overflows[1])[0])==null?void 0:j.placement;if(!F)switch(y){case"bestFit":{var B;const V=(B=U.filter($=>{if(A){const W=_o($.placement);return W===x||W==="y"}return!0}).map($=>[$.placement,$.overflows.filter(W=>W>0).reduce((W,P)=>W+P,0)]).sort(($,W)=>$[1]-W[1])[0])==null?void 0:B[0];V&&(F=V);break}case"initialPlacement":F=c;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function p2(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function g2(e){return e8.some(t=>e[t]>=0)}const K8=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=as(e,t);switch(r){case"referenceHidden":{const s=await Hf(t,{...o,elementContext:"reference"}),l=p2(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:g2(l)}}}case"escaped":{const s=await Hf(t,{...o,altBoundary:!0}),l=p2(s,n.floating);return{data:{escapedOffsets:l,escaped:g2(l)}}}default:return{}}}}},y4=new Set(["left","top"]);async function W8(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=io(n),c=pa(n),f=_o(n)==="y",d=y4.has(l)?-1:1,p=s&&f?-1:1,g=as(t,e);let{mainAxis:m,crossAxis:y,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof b=="number"&&(y=c==="end"?b*-1:b),f?{x:y*p,y:m*d}:{x:m*d,y:y*p}}const X8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:l,middlewareData:c}=t,f=await W8(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:s+f.y,data:{...f,placement:l}}}}},Q8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:R=>{let{x:C,y:x}=R;return{x:C,y:x}}},...f}=as(e,t),d={x:n,y:r},p=await Hf(t,f),g=_o(io(o)),m=TS(g);let y=d[m],b=d[g];if(s){const R=m==="y"?"top":"left",C=m==="y"?"bottom":"right",x=y+p[R],_=y-p[C];y=j1(x,y,_)}if(l){const R=g==="y"?"top":"left",C=g==="y"?"bottom":"right",x=b+p[R],_=b-p[C];b=j1(x,b,_)}const S=c.fn({...t,[m]:y,[g]:b});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[m]:s,[g]:l}}}}}},Z8=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=as(e,t),p={x:n,y:r},g=_o(o),m=TS(g);let y=p[m],b=p[g];const S=as(c,t),R=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const _=m==="y"?"height":"width",M=s.reference[m]-s.floating[_]+R.mainAxis,T=s.reference[m]+s.reference[_]-R.mainAxis;y<M?y=M:y>T&&(y=T)}if(d){var C,x;const _=m==="y"?"width":"height",M=y4.has(io(o)),T=s.reference[g]-s.floating[_]+(M&&((C=l.offset)==null?void 0:C[g])||0)+(M?0:R.crossAxis),A=s.reference[g]+s.reference[_]+(M?0:((x=l.offset)==null?void 0:x[g])||0)-(M?R.crossAxis:0);b<T?b=T:b>A&&(b=A)}return{[m]:y,[g]:b}}}},J8=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:c}=t,{apply:f=()=>{},...d}=as(e,t),p=await Hf(t,d),g=io(o),m=pa(o),y=_o(o)==="y",{width:b,height:S}=s.floating;let R,C;g==="top"||g==="bottom"?(R=g,C=m===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(C=g,R=m==="end"?"top":"bottom");const x=S-p.top-p.bottom,_=b-p.left-p.right,M=Lu(S-p[R],x),T=Lu(b-p[C],_),A=!t.middlewareData.shift;let O=M,k=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=x),A&&!m){const U=no(p.left,0),L=no(p.right,0),j=no(p.top,0),B=no(p.bottom,0);y?k=b-2*(U!==0||L!==0?U+L:no(p.left,p.right)):O=S-2*(j!==0||B!==0?j+B:no(p.top,p.bottom))}await f({...t,availableWidth:k,availableHeight:O});const D=await l.getDimensions(c.floating);return b!==D.width||S!==D.height?{reset:{rects:!0}}:{}}}};function b4(e){const t=Oo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Sn(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,c=eg(n)!==s||eg(r)!==l;return c&&(n=s,r=l),{width:n,height:r,$:c}}function DS(e){return hn(e)?e:e.contextElement}function hu(e){const t=DS(e);if(!Sn(t))return mi(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=b4(t);let l=(s?eg(n.width):n.width)/r,c=(s?eg(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const eN=mi(0);function S4(e){const t=Ln(e);return!Xg()||!t.visualViewport?eN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ln(e)?!1:t}function il(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=DS(e);let l=mi(1);t&&(r?hn(r)&&(l=hu(r)):l=hu(e));const c=tN(s,n,r)?S4(s):mi(0);let f=(o.left+c.x)/l.x,d=(o.top+c.y)/l.y,p=o.width/l.x,g=o.height/l.y;if(s){const m=Ln(s),y=r&&hn(r)?Ln(r):r;let b=m,S=H1(b);for(;S&&r&&y!==b;){const R=hu(S),C=S.getBoundingClientRect(),x=Oo(S),_=C.left+(S.clientLeft+parseFloat(x.paddingLeft))*R.x,M=C.top+(S.clientTop+parseFloat(x.paddingTop))*R.y;f*=R.x,d*=R.y,p*=R.x,g*=R.y,f+=_,d+=M,b=Ln(S),S=H1(b)}}return ng({width:p,height:g,x:f,y:d})}function om(e,t){const n=Qg(e).scrollLeft;return t?t.left+n:il(xi(e)).left+n}function E4(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-om(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function nN(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=xi(r),c=t?Wg(t.floating):!1;if(r===l||c&&s)return n;let f={scrollLeft:0,scrollTop:0},d=mi(1);const p=mi(0),g=Sn(r);if((g||!g&&!s)&&((ha(r)!=="body"||ad(l))&&(f=Qg(r)),Sn(r))){const y=il(r);d=hu(r),p.x=y.x+r.clientLeft,p.y=y.y+r.clientTop}const m=l&&!g&&!s?E4(l,f):mi(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 rN(e){return Array.from(e.getClientRects())}function oN(e){const t=xi(e),n=Qg(e),r=e.ownerDocument.body,o=no(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=no(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+om(e);const c=-n.scrollTop;return Oo(r).direction==="rtl"&&(l+=no(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:c}}const m2=25;function iN(e,t){const n=Ln(e),r=xi(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,c=0,f=0;if(o){s=o.width,l=o.height;const p=Xg();(!p||p&&t==="fixed")&&(c=o.offsetLeft,f=o.offsetTop)}const d=om(r);if(d<=0){const p=r.ownerDocument,g=p.body,m=getComputedStyle(g),y=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(r.clientWidth-g.clientWidth-y);b<=m2&&(s-=b)}else d<=m2&&(s+=d);return{width:s,height:l,x:c,y:f}}const sN=new Set(["absolute","fixed"]);function aN(e,t){const n=il(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Sn(e)?hu(e):mi(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,f=o*s.x,d=r*s.y;return{width:l,height:c,x:f,y:d}}function v2(e,t,n){let r;if(t==="viewport")r=iN(e,n);else if(t==="document")r=oN(xi(e));else if(hn(t))r=aN(t,n);else{const o=S4(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ng(r)}function w4(e,t){const n=bi(e);return n===t||!hn(n)||gi(n)?!1:Oo(n).position==="fixed"||w4(n,t)}function lN(e,t){const n=t.get(e);if(n)return n;let r=Zs(e,[],!1).filter(c=>hn(c)&&ha(c)!=="body"),o=null;const s=Oo(e).position==="fixed";let l=s?bi(e):e;for(;hn(l)&&!gi(l);){const c=Oo(l),f=RS(l);!f&&c.position==="fixed"&&(o=null),(s?!f&&!o:!f&&c.position==="static"&&!!o&&sN.has(o.position)||ad(l)&&!f&&w4(e,l))?r=r.filter(p=>p!==l):o=c,l=bi(l)}return t.set(e,r),r}function uN(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?Wg(t)?[]:lN(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((d,p)=>{const g=v2(t,p,o);return d.top=no(g.top,d.top),d.right=Lu(g.right,d.right),d.bottom=Lu(g.bottom,d.bottom),d.left=no(g.left,d.left),d},v2(t,c,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function cN(e){const{width:t,height:n}=b4(e);return{width:t,height:n}}function fN(e,t,n){const r=Sn(t),o=xi(t),s=n==="fixed",l=il(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const f=mi(0);function d(){f.x=om(o)}if(r||!r&&!s)if((ha(t)!=="body"||ad(o))&&(c=Qg(t)),r){const y=il(t,!0,s,t);f.x=y.x+t.clientLeft,f.y=y.y+t.clientTop}else o&&d();s&&!r&&o&&d();const p=o&&!r&&!s?E4(o,c):mi(0),g=l.left+c.scrollLeft-f.x-p.x,m=l.top+c.scrollTop-f.y-p.y;return{x:g,y:m,width:l.width,height:l.height}}function my(e){return Oo(e).position==="static"}function y2(e,t){if(!Sn(e)||Oo(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xi(e)===n&&(n=n.ownerDocument.body),n}function R4(e,t){const n=Ln(e);if(Wg(e))return n;if(!Sn(e)){let o=bi(e);for(;o&&!gi(o);){if(hn(o)&&!my(o))return o;o=bi(o)}return n}let r=y2(e,t);for(;r&&FP(r)&&my(r);)r=y2(r,t);return r&&gi(r)&&my(r)&&!RS(r)?n:r||VP(e)||n}const dN=async function(e){const t=this.getOffsetParent||R4,n=this.getDimensions,r=await n(e.floating);return{reference:fN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hN(e){return Oo(e).direction==="rtl"}const pN={convertOffsetParentRelativeRectToViewportRelativeRect:nN,getDocumentElement:xi,getClippingRect:uN,getOffsetParent:R4,getElementRects:dN,getClientRects:rN,getDimensions:cN,getScale:hu,isElement:hn,isRTL:hN};function x4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gN(e,t){let n=null,r;const o=xi(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:p,top:g,width:m,height:y}=d;if(c||t(),!m||!y)return;const b=ou(g),S=ou(o.clientWidth-(p+m)),R=ou(o.clientHeight-(g+y)),C=ou(p),_={rootMargin:-b+"px "+-S+"px "+-R+"px "+-C+"px",threshold:no(0,Lu(1,f))||1};let M=!0;function T(A){const O=A[0].intersectionRatio;if(O!==f){if(!M)return l();O?l(!1,O):r=setTimeout(()=>{l(!1,1e-7)},1e3)}O===1&&!x4(d,e.getBoundingClientRect())&&l(),M=!1}try{n=new IntersectionObserver(T,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,_)}n.observe(e)}return l(!0),s}function b2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=DS(e),p=o||s?[...d?Zs(d):[],...Zs(t)]:[];p.forEach(C=>{o&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const g=d&&c?gN(d,n):null;let m=-1,y=null;l&&(y=new ResizeObserver(C=>{let[x]=C;x&&x.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var _;(_=y)==null||_.observe(t)})),n()}),d&&!f&&y.observe(d),y.observe(t));let b,S=f?il(e):null;f&&R();function R(){const C=il(e);S&&!x4(S,C)&&n(),S=C,b=requestAnimationFrame(R)}return n(),()=>{var C;p.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),g==null||g(),(C=y)==null||C.disconnect(),y=null,f&&cancelAnimationFrame(b)}}const mN=X8,vN=Q8,yN=Y8,bN=J8,SN=K8,EN=Z8,wN=(e,t,n)=>{const r=new Map,o={platform:pN,...n},s={...o.platform,_c:r};return G8(e,t,{...o,platform:s})};var RN=typeof document<"u",xN=function(){},kp=RN?E.useLayoutEffect:xN;function ag(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,o;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(!ag(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ag(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function _4(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function S2(e,t){const n=_4(e);return Math.round(t*n)/n}function vy(e){const t=E.useRef(e);return kp(()=>{t.current=e}),t}function _N(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[p,g]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,y]=E.useState(r);ag(m,r)||y(r);const[b,S]=E.useState(null),[R,C]=E.useState(null),x=E.useCallback($=>{$!==A.current&&(A.current=$,S($))},[]),_=E.useCallback($=>{$!==O.current&&(O.current=$,C($))},[]),M=s||b,T=l||R,A=E.useRef(null),O=E.useRef(null),k=E.useRef(p),D=f!=null,U=vy(f),L=vy(o),j=vy(d),B=E.useCallback(()=>{if(!A.current||!O.current)return;const $={placement:t,strategy:n,middleware:m};L.current&&($.platform=L.current),wN(A.current,O.current,$).then(W=>{const P={...W,isPositioned:j.current!==!1};Y.current&&!ag(k.current,P)&&(k.current=P,br.flushSync(()=>{g(P)}))})},[m,t,n,L,j]);kp(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g($=>({...$,isPositioned:!1})))},[d]);const Y=E.useRef(!1);kp(()=>(Y.current=!0,()=>{Y.current=!1}),[]),kp(()=>{if(M&&(A.current=M),T&&(O.current=T),M&&T){if(U.current)return U.current(M,T,B);B()}},[M,T,B,U,D]);const H=E.useMemo(()=>({reference:A,floating:O,setReference:x,setFloating:_}),[x,_]),F=E.useMemo(()=>({reference:M,floating:T}),[M,T]),V=E.useMemo(()=>{const $={position:n,left:0,top:0};if(!F.floating)return $;const W=S2(F.floating,p.x),P=S2(F.floating,p.y);return c?{...$,transform:"translate("+W+"px, "+P+"px)",..._4(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:P}},[n,c,F.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:B,refs:H,elements:F,floatingStyles:V}),[p,B,H,F,V])}const CN=(e,t)=>({...mN(e),options:[e,t]}),TN=(e,t)=>({...vN(e),options:[e,t]}),AN=(e,t)=>({...EN(e),options:[e,t]}),MN=(e,t)=>({...yN(e),options:[e,t]}),ON=(e,t)=>({...bN(e),options:[e,t]}),IN=(e,t)=>({...SN(e),options:[e,t]}),DN={intentional:"onClick",sloppy:"onPointerDown"};function E2(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 cd(e,t={}){const{open:n,onOpenChange:r,elements:o,dataRef:s}=e,{enabled:l=!0,escapeKey:c=!0,outsidePress:f=!0,outsidePressEvent:d="sloppy",referencePress:p=!1,referencePressEvent:g="sloppy",ancestorScroll:m=!1,bubbles:y,capture:b}=t,S=_i(),R=Be(typeof f=="function"?f:()=>!1),C=typeof f=="function"?R:f,x=E.useRef(!1),{escapeKey:_,outsidePress:M}=E2(y),{escapeKey:T,outsidePress:A}=E2(b),O=E.useRef(null),k=_n(),D=_n(),U=E.useRef(!1),L=E.useRef(""),j=Be(z=>{L.current=z.pointerType}),B=Be(()=>{const z=L.current,le=z==="pen"||!z?"mouse":z,K=typeof d=="function"?d():d;return typeof K=="string"?K:K[le]}),Y=Be(z=>{var ve;if(!n||!l||!c||z.key!=="Escape"||U.current)return;const le=(ve=s.current.floatingContext)==null?void 0:ve.nodeId,K=S?Ja(S.nodesRef.current,le):[];if(!_&&K.length>0){let pe=!0;if(K.forEach(Se=>{var Ie;(Ie=Se.context)!=null&&Ie.open&&!Se.context.dataRef.current.__escapeKeyBubbles&&(pe=!1)}),!pe)return}const se=JP(z)?z.nativeEvent:z,ie=St("escape-key",se);r(!1,ie),!_&&!ie.isPropagationAllowed&&z.stopPropagation()}),H=Be(z=>{const le=B();return le==="intentional"&&z.type!=="click"||le==="sloppy"&&z.type==="click"}),F=Be(z=>{var K;const le=()=>{var se;Y(z),(se=to(z))==null||se.removeEventListener("keydown",le)};(K=to(z))==null||K.addEventListener("keydown",le)}),V=Be((z,le=!1)=>{var Le;if(H(z))return;const K=s.current.insideReactTree;if(s.current.insideReactTree=!1,B()==="intentional"&&le||K||typeof C=="function"&&!C(z))return;const se=to(z),ie=`[${Fu("inert")}]`,ve=zn(o.floating).querySelectorAll(ie);let pe=hn(se)?se:null;for(;pe&&!gi(pe);){const ge=bi(pe);if(gi(ge)||!hn(ge))break;pe=ge}if(ve.length&&hn(se)&&!QP(se)&&!un(se,o.floating)&&Array.from(ve).every(ge=>!un(pe,ge)))return;if(Sn(se)){const ge=gi(se),Re=Oo(se),xe=/auto|scroll/,q=ge||xe.test(Re.overflowX),J=ge||xe.test(Re.overflowY),ae=q&&se.clientWidth>0&&se.scrollWidth>se.clientWidth,Me=J&&se.clientHeight>0&&se.scrollHeight>se.clientHeight,_e=Re.direction==="rtl",be=Me&&(_e?z.offsetX<=se.offsetWidth-se.clientWidth:z.offsetX>se.clientWidth),ke=ae&&z.offsetY>se.clientHeight;if(be||ke)return}const Se=(Le=s.current.floatingContext)==null?void 0:Le.nodeId,Ie=S&&Ja(S.nodesRef.current,Se).some(ge=>{var Re;return Gi(z,(Re=ge.context)==null?void 0:Re.elements.floating)});if(Gi(z,o.floating)||Gi(z,o.domReference)||Ie)return;const Te=S?Ja(S.nodesRef.current,Se):[];if(Te.length>0){let ge=!0;if(Te.forEach(Re=>{var xe;(xe=Re.context)!=null&&xe.open&&!Re.context.dataRef.current.__outsidePressBubbles&&(ge=!1)}),!ge)return}r(!1,St("outside-press",z))}),$=Be(z=>{if(!(B()!=="sloppy"||!n||!l||Gi(z,o.floating)||Gi(z,o.domReference))){if(z.pointerType==="touch"){O.current={startTime:Date.now(),startX:z.clientX,startY:z.clientY,dismissOnPointerUp:!1,dismissOnMouseDown:!0},k.start(1e3,()=>{O.current&&(O.current.dismissOnPointerUp=!1,O.current.dismissOnMouseDown=!1)});return}V(z)}}),W=Be(z=>{var se;const le=x.current;if(x.current=!1,H(z)||(k.clear(),z.type==="mousedown"&&O.current&&!O.current.dismissOnMouseDown))return;const K=()=>{var ie;z.type==="pointerdown"?$(z):V(z,le),(ie=to(z))==null||ie.removeEventListener(z.type,K)};(se=to(z))==null||se.addEventListener(z.type,K)}),P=Be(z=>{if(B()!=="sloppy"||z.pointerType!=="touch"||!O.current||Gi(z,o.floating)||Gi(z,o.domReference))return;const le=Math.abs(z.clientX-O.current.startX),K=Math.abs(z.clientY-O.current.startY),se=Math.sqrt(le*le+K*K);se>5&&(O.current.dismissOnPointerUp=!0),se>10&&(V(z),k.clear(),O.current=null)}),Q=Be(z=>{B()!=="sloppy"||z.pointerType!=="touch"||!O.current||Gi(z,o.floating)||Gi(z,o.domReference)||(O.current.dismissOnPointerUp&&V(z),k.clear(),O.current=null)});E.useEffect(()=>{if(!n||!l)return;s.current.__escapeKeyBubbles=_,s.current.__outsidePressBubbles=M;const z=new oa;function le(pe){r(!1,St("none",pe))}function K(){z.clear(),U.current=!0}function se(){z.start(Xg()?5:0,()=>{U.current=!1})}const ie=zn(o.floating);ie.addEventListener("pointerdown",j,!0),c&&(ie.addEventListener("keydown",T?F:Y,T),ie.addEventListener("compositionstart",K),ie.addEventListener("compositionend",se)),C&&(ie.addEventListener("click",A?W:V,A),ie.addEventListener("pointerdown",A?W:V,A),ie.addEventListener("pointermove",P,A),ie.addEventListener("pointerup",Q,A),ie.addEventListener("mousedown",W,A));let ve=[];return m&&(hn(o.domReference)&&(ve=Zs(o.domReference)),hn(o.floating)&&(ve=ve.concat(Zs(o.floating))),!hn(o.reference)&&o.reference&&o.reference.contextElement&&(ve=ve.concat(Zs(o.reference.contextElement)))),ve=ve.filter(pe=>{var Se;return pe!==((Se=ie.defaultView)==null?void 0:Se.visualViewport)}),ve.forEach(pe=>{pe.addEventListener("scroll",le,{passive:!0})}),()=>{ie.removeEventListener("pointerdown",j,!0),c&&(ie.removeEventListener("keydown",T?F:Y,T),ie.removeEventListener("compositionstart",K),ie.removeEventListener("compositionend",se)),C&&(ie.removeEventListener("click",A?W:V,A),ie.removeEventListener("pointerdown",A?W:V,A),ie.removeEventListener("pointermove",P,A),ie.removeEventListener("pointerup",Q,A),ie.removeEventListener("mousedown",W,A)),ve.forEach(pe=>{pe.removeEventListener("scroll",le)}),z.clear()}},[s,o,c,C,n,r,m,l,_,M,Y,T,F,V,A,W,$,P,Q,j]),E.useEffect(()=>{s.current.insideReactTree=!1},[s,C]);const Z=E.useMemo(()=>({onKeyDown:Y,...p&&{[DN[g]]:z=>{r(!1,St("trigger-press",z.nativeEvent))},...g!=="intentional"&&{onClick(z){r(!1,St("trigger-press",z.nativeEvent))}}}}),[Y,r,p,g]),G=Be(z=>{const le=to(z.nativeEvent);!un(o.floating,le)||z.button!==0||(x.current=!0)}),ne=Be(()=>{s.current.insideReactTree=!0,D.start(0,()=>{s.current.insideReactTree=!1})}),re=E.useMemo(()=>({onKeyDown:Y,onMouseDown:G,onMouseUp:G,onPointerDownCapture:ne,onMouseDownCapture:ne,onClickCapture:ne,onMouseUpCapture:ne}),[Y,G,ne]);return E.useMemo(()=>l?{reference:Z,floating:re}:{},[l,Z,re])}function Ju(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Zu(),s=E.useRef({}),[l]=E.useState(()=>t4()),c=ds()!=null,[f,d]=E.useState(r.reference),p=Be((y,b)=>{if(s.current.openEvent=y?b.event:void 0,!e.noEmit){const S={open:y,reason:b.reason,nativeEvent:b.event,nested:c};l.emit("openchange",S)}n==null||n(y,b)}),g=E.useMemo(()=>({setPositionReference:d}),[]),m=E.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return E.useMemo(()=>({dataRef:s,open:t,onOpenChange:p,elements:m,events:l,floatingId:o,refs:g}),[t,p,m,l,o,g])}function kN(){return{open:!1,onOpenChange:()=>{},dataRef:{current:{}},elements:{floating:null,reference:null,domReference:null},events:{on:()=>{},off:()=>{},emit:()=>{}},floatingId:"",refs:{setPositionReference:()=>{}}}}function LN(e={}){const{nodeId:t}=e,n=Ju({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,l]=E.useState(null),[c,f]=E.useState(null),p=(o==null?void 0:o.domReference)||s,g=E.useRef(null),m=_i();qe(()=>{p&&(g.current=p)},[p]);const y=_N({...e,elements:{...o,...c&&{reference:c}}}),b=E.useCallback(_=>{const M=hn(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;f(M),y.refs.setReference(M)},[y.refs]),S=E.useCallback(_=>{(hn(_)||_===null)&&(g.current=_,l(_)),(hn(y.refs.reference.current)||y.refs.reference.current===null||_!==null&&!hn(_))&&y.refs.setReference(_)},[y.refs]),R=E.useMemo(()=>({...y.refs,setReference:S,setPositionReference:b,domReference:g}),[y.refs,S,b]),C=E.useMemo(()=>({...y.elements,domReference:p}),[y.elements,p]),x=E.useMemo(()=>({...y,...r,refs:R,elements:C,nodeId:t}),[y,R,C,t,r]);return qe(()=>{r.dataRef.current.floatingContext=x;const _=m==null?void 0:m.nodesRef.current.find(M=>M.id===t);_&&(_.context=x)}),E.useMemo(()=>({...y,context:x,refs:R,elements:C}),[y,R,C,x])}const yy=GP&&LM;function C4(e,t={}){const{open:n,onOpenChange:r,events:o,dataRef:s,elements:l}=e,{enabled:c=!0,visibleOnly:f=!0}=t,d=E.useRef(!1),p=_n(),g=E.useRef(!0);E.useEffect(()=>{if(!c)return;const y=Ln(l.domReference);function b(){!n&&Sn(l.domReference)&&l.domReference===fi(zn(l.domReference))&&(d.current=!0)}function S(){g.current=!0}function R(){g.current=!1}return y.addEventListener("blur",b),yy&&(y.addEventListener("keydown",S,!0),y.addEventListener("pointerdown",R,!0)),()=>{y.removeEventListener("blur",b),yy&&(y.removeEventListener("keydown",S,!0),y.removeEventListener("pointerdown",R,!0))}},[l.domReference,n,c]),E.useEffect(()=>{if(!c)return;function y(b){(b.reason==="trigger-press"||b.reason==="escape-key")&&(d.current=!0)}return o.on("openchange",y),()=>{o.off("openchange",y)}},[o,c]);const m=E.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const b=to(y.nativeEvent);if(f&&hn(b)){if(yy&&!y.relatedTarget){if(!g.current&&!CS(b))return}else if(!ZP(b))return}r(!0,St("trigger-focus",y.nativeEvent))},onBlur(y){d.current=!1;const b=y.relatedTarget,S=y.nativeEvent,R=hn(b)&&b.hasAttribute(Fu("focus-guard"))&&b.getAttribute("data-type")==="outside";p.start(0,()=>{var x;const C=fi(l.domReference?l.domReference.ownerDocument:document);!b&&C===l.domReference||un((x=s.current.floatingContext)==null?void 0:x.refs.floating.current,C)||un(l.domReference,C)||R||r(!1,St("trigger-focus",S))})}}),[s,l.domReference,r,f,p]);return E.useMemo(()=>c?{reference:m}:{},[c,m])}function fd(e=[]){const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),o=E.useCallback(c=>by(c,e,"reference"),t),s=E.useCallback(c=>by(c,e,"floating"),n),l=E.useCallback(c=>by(c,e,"item"),r);return E.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:l}),[o,s,l])}function by(e,t,n){var l;const r=new Map,o=n==="item",s={};n==="floating"&&(s.tabIndex=-1,s[U1]="");for(const c in e)o&&e&&(c===NM||c===FM)||(s[c]=e[c]);for(let c=0;c<t.length;c+=1){let f;const d=(l=t[c])==null?void 0:l[n];typeof d=="function"?f=e?d(e):null:f=d,f&&w2(s,f,o,r)}return w2(s,e,o,r),s}function w2(e,t,n,r){var o;for(const s in t){const l=t[s];n&&(s===NM||s===FM)||(s.startsWith("on")?(r.has(s)||r.set(s,[]),typeof l=="function"&&((o=r.get(s))==null||o.push(l),e[s]=(...c)=>{var f;return(f=r.get(s))==null?void 0:f.map(d=>d(...c)).find(d=>d!==void 0)})):e[s]=l)}}const PN="Escape";function im(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function tp(e,t){return im(t,e===_S||e===ld,e===Js||e===ea)}function Sy(e,t,n){return im(t,e===ld,n?e===Js:e===ea)||e==="Enter"||e===" "||e===""}function NN(e,t,n){return im(t,n?e===Js:e===ea,e===ld)}function FN(e,t,n,r){const o=n?e===ea:e===Js,s=e===_S;return t==="both"||t==="horizontal"&&r&&r>1?e===PN:im(t,o,s)}function T4(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:s,activeIndex:l,onNavigate:c=()=>{},enabled:f=!0,selectedIndex:d=null,allowEscape:p=!1,loop:g=!1,nested:m=!1,rtl:y=!1,virtual:b=!1,focusItemOnOpen:S="auto",focusItemOnHover:R=!0,openOnArrowKeyDown:C=!0,disabledIndices:x=void 0,orientation:_="vertical",parentOrientation:M,cols:T=1,scrollItemIntoView:A=!0,itemSizes:O,dense:k=!1,id:D}=t,U=Bf(o.floating),L=xn(U),j=ds(),B=_i();qe(()=>{e.dataRef.current.orientation=_},[e,_]);const Y=V1(o.domReference),H=E.useRef(S),F=E.useRef(d??-1),V=E.useRef(null),$=E.useRef(!0),W=Be(ge=>{c(F.current===-1?null:F.current,ge)}),P=E.useRef(W),Q=E.useRef(!!o.floating),Z=E.useRef(n),G=E.useRef(!1),ne=E.useRef(!1),re=xn(x),z=xn(n),le=xn(A),K=xn(d),se=Be(()=>{function ge(J){b?B==null||B.events.emit("virtualfocus",J):Dp(J,{sync:G.current,preventScroll:!0})}const Re=s.current[F.current],xe=ne.current;Re&&ge(Re),(G.current?J=>J():requestAnimationFrame)(()=>{var _e;const J=s.current[F.current]||Re;if(!J)return;Re||ge(J);const ae=le.current;ae&&ve&&(xe||!$.current)&&((_e=J.scrollIntoView)==null||_e.call(J,typeof ae=="boolean"?{block:"nearest",inline:"nearest"}:ae))})});qe(()=>{f&&(n&&o.floating?H.current&&d!=null&&(ne.current=!0,F.current=d,W()):Q.current&&(F.current=-1,P.current()))},[f,n,o.floating,d,W]),qe(()=>{if(f){if(!n){G.current=!1;return}if(o.floating)if(l==null){if(G.current=!1,K.current!=null)return;if(Q.current&&(F.current=-1,se()),(!Z.current||!Q.current)&&H.current&&(V.current!=null||H.current===!0&&V.current==null)){let ge=0;const Re=()=>{s.current[0]==null?(ge<2&&(ge?requestAnimationFrame:queueMicrotask)(Re),ge+=1):(F.current=V.current==null||Sy(V.current,_,y)||m?Op(s,re.current):$1(s,re.current),V.current=null,W())};Re()}}else fu(s,l)||(F.current=l,se(),ne.current=!1)}},[f,n,o.floating,l,K,m,s,_,y,W,se,re]),qe(()=>{var J,ae;if(!f||o.floating||!B||b||!Q.current)return;const ge=B.nodesRef.current,Re=(ae=(J=ge.find(Me=>Me.id===j))==null?void 0:J.context)==null?void 0:ae.elements.floating,xe=fi(zn(o.floating)),q=ge.some(Me=>Me.context&&un(Me.context.elements.floating,xe));Re&&!q&&$.current&&Re.focus({preventScroll:!0})},[f,o.floating,B,j,b]),qe(()=>{P.current=W,Z.current=n,Q.current=!!o.floating}),qe(()=>{n||(V.current=null,H.current=S)},[n,S]);const ie=l!=null,ve=E.useMemo(()=>{function ge(xe){if(!z.current)return;const q=s.current.indexOf(xe.currentTarget);q!==-1&&F.current!==q&&(F.current=q,W(xe))}return{onFocus(xe){G.current=!0,ge(xe)},onClick:({currentTarget:xe})=>xe.focus({preventScroll:!0}),onMouseMove(xe){G.current=!0,ne.current=!1,R&&ge(xe)},onPointerLeave(xe){var J;if(!$.current||xe.pointerType==="touch")return;G.current=!0;const q=xe.relatedTarget;!R||s.current.includes(q)||(F.current=-1,W(xe),b||(J=L.current)==null||J.focus({preventScroll:!0}))}}},[z,L,R,s,W,b]),pe=E.useCallback(()=>{var ge,Re,xe;return M??((xe=(Re=(ge=B==null?void 0:B.nodesRef.current.find(q=>q.id===j))==null?void 0:ge.context)==null?void 0:Re.dataRef)==null?void 0:xe.current.orientation)},[j,B,M]),Se=Be(ge=>{if($.current=!1,G.current=!0,ge.which===229||!z.current&&ge.currentTarget===L.current)return;if(m&&FN(ge.key,_,y,T)){tp(ge.key,pe())||vr(ge),r(!1,St("list-navigation",ge.nativeEvent)),Sn(o.domReference)&&(b?B==null||B.events.emit("virtualfocus",o.domReference):o.domReference.focus());return}const Re=F.current,xe=Op(s,x),q=$1(s,x);if(Y||(ge.key==="Home"&&(vr(ge),F.current=xe,W(ge)),ge.key==="End"&&(vr(ge),F.current=q,W(ge))),T>1){const J=O||Array.from({length:s.current.length},()=>({width:1,height:1})),ae=VM(J,T,k),Me=ae.findIndex(ke=>ke!=null&&!ta(s,ke,x)),_e=ae.reduce((ke,He,Ve)=>He!=null&&!ta(s,He,x)?Ve:ke,-1),be=ae[UM({current:ae.map(ke=>ke!=null?s.current[ke]:null)},{event:ge,orientation:_,loop:g,rtl:y,cols:T,disabledIndices:qM([...(typeof x!="function"?x:null)||s.current.map((ke,He)=>ta(s,He,x)?He:void 0),void 0],ae),minIndex:Me,maxIndex:_e,prevIndex:jM(F.current>q?xe:F.current,J,ae,T,ge.key===ld?"bl":ge.key===(y?Js:ea)?"tr":"tl"),stopEvent:!0})];if(be!=null&&(F.current=be,W(ge)),_==="both")return}if(tp(ge.key,_)){if(vr(ge),n&&!b&&fi(ge.currentTarget.ownerDocument)===ge.currentTarget){F.current=Sy(ge.key,_,y)?xe:q,W(ge);return}Sy(ge.key,_,y)?g?Re>=q?p&&Re!==s.current.length?F.current=-1:(G.current=!1,F.current=xe):F.current=cr(s,{startingIndex:Re,disabledIndices:x}):F.current=Math.min(q,cr(s,{startingIndex:Re,disabledIndices:x})):g?Re<=xe?p&&Re!==-1?F.current=s.current.length:(G.current=!1,F.current=q):F.current=cr(s,{startingIndex:Re,decrement:!0,disabledIndices:x}):F.current=Math.max(xe,cr(s,{startingIndex:Re,decrement:!0,disabledIndices:x})),fu(s,F.current)&&(F.current=-1),W(ge)}}),Ie=E.useMemo(()=>b&&n&&ie&&{"aria-activedescendant":`${D}-${l}`},[b,n,ie,D,l]),Te=E.useMemo(()=>({"aria-orientation":_==="both"?void 0:_,...Y?{}:Ie,onKeyDown(ge){if(ge.key==="Tab"&&ge.shiftKey&&n&&!b){vr(ge),r(!1,St("list-navigation",ge.nativeEvent)),Sn(o.domReference)&&o.domReference.focus();return}Se(ge)},onPointerMove(){$.current=!0}}),[Ie,Se,_,Y,r,n,b,o.domReference]),Le=E.useMemo(()=>{function ge(xe){S==="auto"&&BM(xe.nativeEvent)&&(H.current=!b)}function Re(xe){H.current=S,S==="auto"&&HM(xe.nativeEvent)&&(H.current=!0)}return{...Ie,onKeyDown(xe){$.current=!1;const q=xe.key.startsWith("Arrow"),J=NN(xe.key,pe(),y),ae=tp(xe.key,_),Me=(m?J:ae)||xe.key==="Enter"||xe.key.trim()==="";if(b&&n)return Se(xe);if(!(!n&&!C&&q)){if(Me){const _e=tp(xe.key,pe());V.current=m&&_e?null:xe.key}if(m){J&&(vr(xe),n?(F.current=Op(s,re.current),W(xe)):r(!0,St("list-navigation",xe.nativeEvent)));return}ae&&(d!=null&&(F.current=d),vr(xe),!n&&C?r(!0,St("list-navigation",xe.nativeEvent)):Se(xe),n&&W(xe))}},onFocus(xe){n&&!b&&(F.current=-1,W(xe))},onPointerDown:Re,onPointerEnter:Re,onMouseDown:ge,onClick:ge}},[Ie,Se,re,S,s,m,W,r,n,C,_,pe,y,d,b]);return E.useMemo(()=>f?{reference:Le,floating:Te,item:ve}:{},[f,Le,Te,ve])}const BN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function kS(e,t={}){var R;const{open:n,elements:r,floatingId:o}=e,{enabled:s=!0,role:l="dialog"}=t,c=Zu(),f=((R=r.domReference)==null?void 0:R.id)||c,d=E.useMemo(()=>{var C;return((C=Bf(r.floating))==null?void 0:C.id)||o},[r.floating,o]),p=BN.get(l)??l,m=ds()!=null,y=E.useMemo(()=>p==="tooltip"||l==="label"?{[`aria-${l==="label"?"labelledby":"describedby"}`]:n?d:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":n?d:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:f},...p==="menu"&&m&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[p,d,m,n,f,l]),b=E.useMemo(()=>{const C={id:d,...p&&{role:p}};return p==="tooltip"||l==="label"?C:{...C,...p==="menu"&&{"aria-labelledby":f}}},[p,d,f,l]),S=E.useCallback(({active:C,selected:x})=>{const _={role:"option",...C&&{id:`${d}-fui-option`}};switch(l){case"select":case"combobox":return{..._,"aria-selected":x}}return{}},[d,l]);return E.useMemo(()=>s?{reference:y,floating:b,item:S}:{},[s,y,b,S])}function A4(e,t){const{open:n,dataRef:r}=e,{listRef:o,activeIndex:s,onMatch:l,onTypingChange:c,enabled:f=!0,findMatch:d=null,resetMs:p=750,ignoreKeys:g=[],selectedIndex:m=null}=t,y=_n(),b=E.useRef(""),S=E.useRef(m??s??-1),R=E.useRef(null),C=Be(l),x=Be(c),_=xn(d),M=xn(g);qe(()=>{n&&(y.clear(),R.current=null,b.current="")},[n,y]),qe(()=>{n&&b.current===""&&(S.current=m??s??-1)},[n,m,s]);const T=Be(D=>{D?r.current.typing||(r.current.typing=D,x(D)):r.current.typing&&(r.current.typing=D,x(D))}),A=Be(D=>{function U(H,F,V){const $=_.current?_.current(F,V):F.find(W=>(W==null?void 0:W.toLocaleLowerCase().indexOf(V.toLocaleLowerCase()))===0);return $?H.indexOf($):-1}const L=o.current;if(b.current.length>0&&b.current[0]!==" "&&(U(L,L,b.current)===-1?T(!1):D.key===" "&&vr(D)),L==null||M.current.includes(D.key)||D.key.length!==1||D.ctrlKey||D.metaKey||D.altKey)return;n&&D.key!==" "&&(vr(D),T(!0)),L.every(H=>{var F,V;return H?((F=H[0])==null?void 0:F.toLocaleLowerCase())!==((V=H[1])==null?void 0:V.toLocaleLowerCase()):!0})&&b.current===D.key&&(b.current="",S.current=R.current),b.current+=D.key,y.start(p,()=>{b.current="",S.current=R.current,T(!1)});const B=S.current,Y=U(L,[...L.slice((B||0)+1),...L.slice(0,(B||0)+1)],b.current);Y!==-1?(C(Y),R.current=Y):D.key!==" "&&(b.current="",T(!1))}),O=E.useMemo(()=>({onKeyDown:A}),[A]),k=E.useMemo(()=>({onKeyDown:A,onKeyUp(D){D.key===" "&&T(!1)}}),[A,T]);return E.useMemo(()=>f?{reference:O,floating:k}:{},[f,O,k])}function R2(e,t){const[n,r]=e;let o=!1;const s=t.length;for(let l=0,c=s-1;l<s;c=l++){const[f,d]=t[l]||[0,0],[p,g]=t[c]||[0,0];d>=r!=g>=r&&n<=(p-f)*(r-d)/(g-d)+f&&(o=!o)}return o}function HN(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function LS(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o=new oa;let s=!1,l=null,c=null,f=typeof performance<"u"?performance.now():0;function d(g,m){const y=performance.now(),b=y-f;if(l===null||c===null||b===0)return l=g,c=m,f=y,null;const S=g-l,R=m-c,x=Math.sqrt(S*S+R*R)/b;return l=g,c=m,f=y,x}const p=({x:g,y:m,placement:y,elements:b,onClose:S,nodeId:R,tree:C})=>function(_){function M(){o.clear(),S()}if(o.clear(),!b.domReference||!b.floating||y==null||g==null||m==null)return;const{clientX:T,clientY:A}=_,O=[T,A],k=to(_),D=_.type==="mouseleave",U=un(b.floating,k),L=un(b.domReference,k),j=b.domReference.getBoundingClientRect(),B=b.floating.getBoundingClientRect(),Y=y.split("-")[0],H=g>B.right-B.width/2,F=m>B.bottom-B.height/2,V=HN(O,j),$=B.width>j.width,W=B.height>j.height,P=($?j:B).left,Q=($?j:B).right,Z=(W?j:B).top,G=(W?j:B).bottom;if(U&&(s=!0,!D))return;if(L&&(s=!1),L&&!D){s=!0;return}if(D&&hn(_.relatedTarget)&&un(b.floating,_.relatedTarget)||C&&Ja(C.nodesRef.current,R).some(({context:z})=>z==null?void 0:z.open))return;if(Y==="top"&&m>=j.bottom-1||Y==="bottom"&&m<=j.top+1||Y==="left"&&g>=j.right-1||Y==="right"&&g<=j.left+1)return M();let ne=[];switch(Y){case"top":ne=[[P,j.top+1],[P,B.bottom-1],[Q,B.bottom-1],[Q,j.top+1]];break;case"bottom":ne=[[P,B.top+1],[P,j.bottom-1],[Q,j.bottom-1],[Q,B.top+1]];break;case"left":ne=[[B.right-1,G],[B.right-1,Z],[j.left+1,Z],[j.left+1,G]];break;case"right":ne=[[j.right-1,G],[j.right-1,Z],[B.left+1,Z],[B.left+1,G]];break}function re([z,le]){switch(Y){case"top":{const K=[$?z+t/2:H?z+t*4:z-t*4,le+t+1],se=[$?z-t/2:H?z+t*4:z-t*4,le+t+1],ie=[[B.left,H||$?B.bottom-t:B.top],[B.right,H?$?B.bottom-t:B.top:B.bottom-t]];return[K,se,...ie]}case"bottom":{const K=[$?z+t/2:H?z+t*4:z-t*4,le-t],se=[$?z-t/2:H?z+t*4:z-t*4,le-t],ie=[[B.left,H||$?B.top+t:B.bottom],[B.right,H?$?B.top+t:B.bottom:B.top+t]];return[K,se,...ie]}case"left":{const K=[z+t+1,W?le+t/2:F?le+t*4:le-t*4],se=[z+t+1,W?le-t/2:F?le+t*4:le-t*4];return[...[[F||W?B.right-t:B.left,B.top],[F?W?B.right-t:B.left:B.right-t,B.bottom]],K,se]}case"right":{const K=[z-t,W?le+t/2:F?le+t*4:le-t*4],se=[z-t,W?le-t/2:F?le+t*4:le-t*4],ie=[[F||W?B.left+t:B.right,B.top],[F?W?B.left+t:B.right:B.left+t,B.bottom]];return[K,se,...ie]}default:return[]}}if(!R2([T,A],ne)){if(s&&!V)return M();if(!D&&r){const z=d(_.clientX,_.clientY);if(z!==null&&z<.1)return M()}R2([T,A],re([g,m]))?!s&&r&&o.start(40,M):M()}};return p.__options={blockPointerEvents:n},p}function hs(e,t=!1,n=!1){const[r,o]=E.useState(e&&t?"idle":void 0),[s,l]=E.useState(e);return e&&!s&&(l(!0),o("starting")),!e&&s&&r!=="ending"&&!n&&o("ending"),!e&&!s&&r==="ending"&&o(void 0),qe(()=>{if(!e&&s&&r!=="ending"&&n){const c=ui.request(()=>{o("ending")});return()=>{ui.cancel(c)}}},[e,s,r,n]),qe(()=>{if(!e||t)return;const c=ui.request(()=>{br.flushSync(()=>{o(void 0)})});return()=>{ui.cancel(c)}},[t,e]),qe(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&o("starting");const c=ui.request(()=>{o("idle")});return()=>{ui.cancel(c)}},[t,e,s,o,r]),E.useMemo(()=>({mounted:s,setMounted:l,transitionStatus:r}),[s,r])}const zN=600;function UN(e,t=!1){const n=em();return Be((r,o=null)=>{if(n.cancel(),e==null)return;let s;if("current"in e){if(e.current==null)return;s=e.current}else s=e;typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?r():n.request(()=>{function l(){s&&Promise.allSettled(s.getAnimations().map(c=>c.finished)).then(()=>{o!=null&&o.aborted||br.flushSync(r)})}t?n.request(l):l()})})}function qr(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,s=xn(n),l=Be(o),c=UN(r,n);E.useEffect(()=>{t&&c(()=>{n===s.current&&l()})},[t,n,l,c,s])}const M4=E.createContext(void 0);function VN(){return E.useContext(M4)}function NZ(e){const{disabled:t=!1,defaultOpen:n=!1,onOpenChange:r,open:o,delay:s,closeDelay:l,hoverable:c=!0,trackCursorAxis:f="none",actionsRef:d,onOpenChangeComplete:p}=e,g=s??zN,m=l??0,[y,b]=E.useState(null),[S,R]=E.useState(null),[C,x]=E.useState(),_=E.useRef(null),[M,T]=vi({controlled:o,default:n,name:"Tooltip",state:"open"}),A=!t&&M;function O(le,K){const se=K.reason,ie=se==="trigger-hover",ve=le&&se==="trigger-focus",pe=!le&&(se==="trigger-press"||se==="escape-key");if(r==null||r(le,K),K.isCanceled)return;function Se(){T(le)}ie?br.flushSync(Se):Se(),ve||pe?x(ve?"focus":"dismiss"):se==="trigger-hover"&&x(void 0)}const k=Be(O);M&&t&&O(!1,St("disabled"));const{mounted:D,setMounted:U,transitionStatus:L}=hs(A),j=Be(()=>{U(!1),p==null||p(!1)});qr({enabled:!d,open:A,ref:_,onComplete(){A||j()}}),E.useImperativeHandle(d,()=>({unmount:j}),[j]);const B=Ju({elements:{reference:y,floating:S},open:A,onOpenChange:k}),Y=VN(),{delayRef:H,isInstantPhase:F,hasProvider:V}=D8(B),$=F?"delay":C,W=OS(B,{enabled:!t,mouseOnly:!0,move:!1,handleClose:c&&f!=="both"?LS():null,restMs(){const le=Y==null?void 0:Y.delay,K=typeof H.current=="object"?H.current.open:void 0;let se=g;return V&&(K!==0?se=s??le??g:se=0),se},delay(){const le=typeof H.current=="object"?H.current.close:void 0;let K=m;return l==null&&V&&(K=le),{close:K}}}),P=C4(B,{enabled:!t}),Q=cd(B,{enabled:!t,referencePress:!0}),Z=$8(B,{enabled:!t&&f!=="none",axis:f==="none"?void 0:f}),{getReferenceProps:G,getFloatingProps:ne}=fd([W,P,Q,Z]),re=E.useMemo(()=>({open:A,setOpen:k,mounted:D,setMounted:U,setTriggerElement:b,positionerElement:S,setPositionerElement:R,popupRef:_,triggerProps:G(),popupProps:ne(),floatingRootContext:B,instantType:$,transitionStatus:L,onOpenChangeComplete:p}),[A,k,D,U,b,S,R,_,G,ne,B,$,L,p]),z=E.useMemo(()=>({...re,delay:g,closeDelay:m,trackCursorAxis:f,hoverable:c}),[re,g,m,f,c]);return Ee.jsx(MM.Provider,{value:z,children:e.children})}let lg=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const jN={[lg.startingStyle]:""},qN={[lg.endingStyle]:""},Ci={transitionStatus(e){return e==="starting"?jN:e==="ending"?qN:null}};let Ha=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=lg.startingStyle]="startingStyle",e[e.endingStyle=lg.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e}({}),K1=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({});const $N={[K1.popupOpen]:""},GN={[K1.popupOpen]:"",[K1.pressed]:""},YN={[Ha.open]:""},KN={[Ha.closed]:""},WN={[Ha.anchorHidden]:""},PS={open(e){return e?$N:null}},ug={open(e){return e?GN:null}},Lo={open(e){return e?YN:KN},anchorHidden(e){return e?WN:null}},XN=parseInt(E.version,10);function O4(e){return XN>=e}function I4(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function QN(e,t){const n={};for(const r in e){const o=e[r];if(t!=null&&t.hasOwnProperty(r)){const s=t[r](o);s!=null&&Object.assign(n,s);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function ZN(e,t){return typeof e=="function"?e(t):e}const Tf={};function Do(e,t,n,r,o){let s={...W1(e,Tf)};return t&&(s=Rf(s,t)),n&&(s=Rf(s,n)),r&&(s=Rf(s,r)),o&&(s=Rf(s,o)),s}function JN(e){if(e.length===0)return Tf;if(e.length===1)return W1(e[0],Tf);let t={...W1(e[0],Tf)};for(let n=1;n<e.length;n+=1)t=Rf(t,e[n]);return t}function Rf(e,t){return D4(t)?t(e):eF(e,t)}function eF(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=I4(e.style,r);break}case"className":{e[n]=k4(e.className,r);break}default:tF(n,r)?e[n]=nF(e[n],r):e[n]=r}}return e}function tF(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function D4(e){return typeof e=="function"}function W1(e,t){return D4(e)?e(t):e??Tf}function nF(e,t){return t?e?n=>{if(rF(n)){const o=n;X1(o);const s=t(o);return o.baseUIHandlerPrevented||e==null||e(o),s}const r=t(n);return e==null||e(n),r}:t:e}function X1(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function k4(e,t){return t?e?t+" "+e:t:e}function rF(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function At(e,t,n={}){const r=t.render,o=oF(t,n);if(n.enabled===!1)return null;const s=n.state??rr;return iF(e,r,o,s)}function oF(e,t={}){const{className:n,render:r}=e,{state:o=rr,ref:s,props:l,stateAttributesMapping:c,enabled:f=!0}=t,d=f?ZN(n,o):void 0,p=f?QN(o,c):rr,g=f?I4(p,Array.isArray(l)?JN(l):l)??rr:rr;return typeof document<"u"&&(f?Array.isArray(s)?g.ref=k8([g.ref,x2(r),...s]):g.ref=Tr(g.ref,x2(r),s):Tr(null,null)),f?(d!==void 0&&(g.className=k4(g.className,d)),g):rr}function iF(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=Do(n,t.props);return o.ref=n.ref,E.cloneElement(t,o)}if(e&&typeof e=="string")return sF(e,n);throw new Error("Base UI: Render element or function are not defined.")}function sF(e,t){return e==="button"?Ee.jsx("button",{type:"button",...t}):e==="img"?Ee.jsx("img",{alt:"",...t}):E.createElement(e,t)}function x2(e){return e&&typeof e!="function"?O4(19)?e.props.ref:e.ref:null}const FZ=E.forwardRef(function(t,n){const{className:r,render:o,...s}=t,{open:l,setTriggerElement:c,triggerProps:f}=Yg(),d=E.useMemo(()=>({open:l}),[l]);return At("button",t,{state:d,ref:[n,c],props:[f,s],stateAttributesMapping:PS})}),L4=E.createContext(void 0);function aF(){const e=E.useContext(L4);if(e===void 0)throw new Error("Base UI: <Tooltip.Portal> is missing.");return e}function lF(e){const t=v4({root:e.root});return t&&br.createPortal(e.children,t)}function BZ(e){const{children:t,keepMounted:n=!1,container:r}=e,{mounted:o}=Yg();return o||n?Ee.jsx(L4.Provider,{value:n,children:Ee.jsx(lF,{root:r,children:t})}):null}const P4=E.createContext(void 0);function N4(){const e=E.useContext(P4);if(e===void 0)throw new Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.");return e}const uF=E.createContext(void 0);function NS(e=!0){const t=E.useContext(uF);if(t===void 0&&!e)throw new Error("Base UI: DirectionContext is missing.");return(t==null?void 0:t.direction)??"ltr"}const cF=e=>({name:"arrow",options:e,async fn(t){var W,P;const{x:n,y:r,placement:o,rects:s,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:p=0,offsetParent:g="real"}=as(e,t)||{};if(d==null)return{};const m=zM(p),y={x:n,y:r},b=MS(o),S=AS(b),R=await l.getDimensions(d),C=b==="y",x=C?"top":"left",_=C?"bottom":"right",M=C?"clientHeight":"clientWidth",T=s.reference[S]+s.reference[b]-y[b]-s.floating[S],A=y[b]-s.reference[b],O=g==="real"?await((W=l.getOffsetParent)==null?void 0:W.call(l,d)):c.floating;let k=c.floating[M]||s.floating[S];(!k||!await((P=l.isElement)==null?void 0:P.call(l,O)))&&(k=c.floating[M]||s.floating[S]);const D=T/2-A/2,U=k/2-R[S]/2-1,L=Math.min(m[x],U),j=Math.min(m[_],U),B=L,Y=k-R[S]-j,H=k/2-R[S]/2+D,F=j1(B,H,Y),V=!f.arrow&&pa(o)!=null&&H!==F&&s.reference[S]/2-(H<B?L:j)-R[S]/2<0,$=V?H<B?H-B:H-Y:0;return{[b]:y[b]+$,data:{[b]:F,centerOffset:H-F-$,...V&&{alignmentOffset:$}},reset:V}}}),fF=(e,t)=>({...cF(e),options:[e,t]});function F4(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 _2(e,t,n){const{rects:r,placement:o}=e;return{side:F4(t,io(o),n),align:pa(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function sm(e){var je,Ge;const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,collisionBoundary:c,collisionPadding:f=5,sticky:d=!1,arrowPadding:p=5,trackAnchor:g=!0,keepMounted:m=!1,floatingRootContext:y,mounted:b,collisionAvoidance:S,shiftCrossAxis:R=!1,nodeId:C,adaptiveOrigin:x,lazyFlip:_=!1}=e,[M,T]=E.useState(null);!b&&M!==null&&T(null);const A=S.side||"flip",O=S.align||"flip",k=S.fallbackAxisSide||"end",D=typeof t=="function"?t:void 0,U=Be(D),L=D?U:t,j=xn(t),Y=NS()==="rtl",H=M||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":Y?"left":"right","inline-start":Y?"right":"left"}[r],F=s==="center"?H:`${H}-${s}`;let V=f;const $=1,W=r==="bottom"?$:0,P=r==="top"?$:0,Q=r==="right"?$:0,Z=r==="left"?$:0;typeof V=="number"?V={top:V+W,right:V+Z,bottom:V+P,left:V+Q}:V&&(V={top:(V.top||0)+W,right:(V.right||0)+Z,bottom:(V.bottom||0)+P,left:(V.left||0)+Q});const G={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:V},ne=E.useRef(null),re=xn(o),z=xn(l),se=[CN(Ke=>{const tt=_2(Ke,r,Y),Nt=typeof re.current=="function"?re.current(tt):re.current,Wt=typeof z.current=="function"?z.current(tt):z.current;return{mainAxis:Nt,crossAxis:Wt,alignmentAxis:Wt}},[typeof o!="function"?o:0,typeof l!="function"?l:0,Y,r])],ie=O==="none"&&A!=="shift",ve=!ie&&(d||R||A==="shift"),pe=A==="none"?null:MN({...G,padding:{top:V.top+$,right:V.right+$,bottom:V.bottom+$,left:V.left+$},mainAxis:!R&&A==="flip",crossAxis:O==="flip"?"alignment":!1,fallbackAxisSideDirection:k}),Se=ie?null:TN(Ke=>{const tt=Io(Ke.elements.floating).documentElement;return{...G,rootBoundary:R?{x:0,y:0,width:tt.clientWidth,height:tt.clientHeight}:void 0,mainAxis:O!=="none",crossAxis:ve,limiter:d||R?void 0:AN(Nt=>{if(!ne.current)return{};const{width:Wt,height:wt}=ne.current.getBoundingClientRect(),kt=_o(io(Nt.placement)),gt=kt==="y"?Wt:wt,Vt=kt==="y"?V.left+V.right:V.top+V.bottom;return{offset:gt/2+Vt/2}})}},[G,d,R,V,O]);A==="shift"||O==="shift"||s==="center"?se.push(Se,pe):se.push(pe,Se),se.push(ON({...G,apply({elements:{floating:Ke},rects:{reference:tt},availableWidth:Nt,availableHeight:Wt}){Object.entries({"--available-width":`${Nt}px`,"--available-height":`${Wt}px`,"--anchor-width":`${tt.width}px`,"--anchor-height":`${tt.height}px`}).forEach(([wt,kt])=>{Ke.style.setProperty(wt,kt)})}}),fF(()=>({element:ne.current||document.createElement("div"),padding:p,offsetParent:"floating"}),[p]),IN(),{name:"transformOrigin",fn(Ke){var bl,Mi,Oi;const{elements:tt,middlewareData:Nt,placement:Wt,rects:wt,y:kt}=Ke,gt=io(Wt),Vt=_o(gt),Ft=ne.current,Mt=((bl=Nt.arrow)==null?void 0:bl.x)||0,fn=((Mi=Nt.arrow)==null?void 0:Mi.y)||0,mt=(Ft==null?void 0:Ft.clientWidth)||0,ft=(Ft==null?void 0:Ft.clientHeight)||0,ot=Mt+mt/2,Ht=fn+ft/2,Ot=Math.abs(((Oi=Nt.shift)==null?void 0:Oi.y)||0),Fn=wt.reference.height/2,Wn=typeof o=="function"?o(_2(Ke,r,Y)):o,Xn=Ot>Wn,sr={top:`${ot}px calc(100% + ${Wn}px)`,bottom:`${ot}px ${-Wn}px`,left:`calc(100% + ${Wn}px) ${Ht}px`,right:`${-Wn}px ${Ht}px`}[gt],Po=`${ot}px ${wt.reference.y+Fn-kt}px`;return tt.floating.style.setProperty("--transform-origin",ve&&Vt==="y"&&Xn?Po:sr),{}}},x);let Ie=y;!b&&y&&(Ie={...y,elements:{reference:null,floating:null,domReference:null}});const Te=E.useMemo(()=>({elementResize:g&&typeof ResizeObserver<"u",layoutShift:g&&typeof IntersectionObserver<"u"}),[g]),{refs:Le,elements:ge,x:Re,y:xe,middlewareData:q,update:J,placement:ae,context:Me,isPositioned:_e,floatingStyles:be}=LN({rootContext:Ie,placement:F,middleware:se,strategy:n,whileElementsMounted:m?void 0:(...Ke)=>b2(...Ke,Te),nodeId:C}),{sideX:ke,sideY:He}=q.adaptiveOrigin||{},Ve=E.useMemo(()=>x?{position:n,[ke]:`${Re}px`,[He]:`${xe}px`}:be,[x,ke,He,n,Re,xe,be]),Fe=E.useRef(null);qe(()=>{if(!b)return;const Ke=j.current,tt=typeof Ke=="function"?Ke():Ke,Wt=(C2(tt)?tt.current:tt)||null||null;Wt!==Fe.current&&(Le.setPositionReference(Wt),Fe.current=Wt)},[b,Le,L,j]),E.useEffect(()=>{if(!b)return;const Ke=j.current;typeof Ke!="function"&&C2(Ke)&&Ke.current!==Fe.current&&(Le.setPositionReference(Ke.current),Fe.current=Ke.current)},[b,Le,L,j]),E.useEffect(()=>{if(m&&b&&ge.domReference&&ge.floating)return b2(ge.domReference,ge.floating,J,Te)},[m,b,ge,J,Te]);const Et=io(ae),pt=F4(r,Et,Y),an=pa(ae)||"center",en=!!((je=q.hide)!=null&&je.referenceHidden);qe(()=>{_&&b&&_e&&T(Et)},[_,b,_e,Et]);const ye=E.useMemo(()=>{var Ke,tt;return{position:"absolute",top:(Ke=q.arrow)==null?void 0:Ke.y,left:(tt=q.arrow)==null?void 0:tt.x}},[q.arrow]),$e=((Ge=q.arrow)==null?void 0:Ge.centerOffset)!==0;return E.useMemo(()=>({positionerStyles:Ve,arrowStyles:ye,arrowRef:ne,arrowUncentered:$e,side:pt,align:an,physicalSide:Et,anchorHidden:en,refs:Le,context:Me,isPositioned:_e,update:J}),[Ve,ye,ne,$e,pt,an,Et,en,Le,Me,_e,J])}function C2(e){return e!=null&&"current"in e}const HZ=E.forwardRef(function(t,n){const{render:r,className:o,anchor:s,positionMethod:l="absolute",side:c="top",align:f="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m=5,arrowPadding:y=5,sticky:b=!1,trackAnchor:S=!0,collisionAvoidance:R=c4,...C}=t,{open:x,setPositionerElement:_,mounted:M,floatingRootContext:T,trackCursorAxis:A,hoverable:O}=Yg(),k=aF(),D=sm({anchor:s,positionMethod:l,floatingRootContext:T,mounted:M,side:c,sideOffset:d,align:f,alignOffset:p,collisionBoundary:g,collisionPadding:m,sticky:b,arrowPadding:y,trackAnchor:S,keepMounted:k,collisionAvoidance:R}),U=E.useMemo(()=>{const H={};return(!x||A==="both"||!O)&&(H.pointerEvents="none"),{role:"presentation",hidden:!M,style:{...D.positionerStyles,...H}}},[x,A,O,M,D.positionerStyles]),L=E.useMemo(()=>({props:U,...D}),[U,D]),j=E.useMemo(()=>({open:x,side:L.side,align:L.align,anchorHidden:L.anchorHidden}),[x,L.side,L.align,L.anchorHidden]),B=E.useMemo(()=>({...j,arrowRef:L.arrowRef,arrowStyles:L.arrowStyles,arrowUncentered:L.arrowUncentered}),[j,L.arrowRef,L.arrowStyles,L.arrowUncentered]),Y=At("div",t,{state:j,props:[L.props,C],ref:[n,_],stateAttributesMapping:Lo});return Ee.jsx(P4.Provider,{value:B,children:Y})}),dF={...Lo,...Ci},zZ=E.forwardRef(function(t,n){const{className:r,render:o,...s}=t,{open:l,instantType:c,transitionStatus:f,popupProps:d,popupRef:p,onOpenChangeComplete:g}=Yg(),{side:m,align:y}=N4();qr({open:l,ref:p,onComplete(){l&&(g==null||g(!0))}});const b=E.useMemo(()=>({open:l,side:m,align:y,instant:c,transitionStatus:f}),[l,m,y,c,f]);return At("div",t,{state:b,ref:[n,p],props:[d,f==="starting"?Jg:rr,s],stateAttributesMapping:dF})}),UZ=E.forwardRef(function(t,n){const{className:r,render:o,...s}=t,{open:l,arrowRef:c,side:f,align:d,arrowUncentered:p,arrowStyles:g}=N4(),m=E.useMemo(()=>({open:l,side:f,align:d,uncentered:p}),[l,f,d,p]);return At("div",t,{state:m,ref:[n,c],props:[{style:g,"aria-hidden":!0},s],stateAttributesMapping:Lo})}),VZ=function(t){const{delay:n,closeDelay:r,timeout:o=400}=t,s=E.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),l=E.useMemo(()=>({open:n,close:r}),[n,r]);return Ee.jsx(M4.Provider,{value:s,children:Ee.jsx(I8,{delay:l,timeoutMs:o,children:t.children})})};var ec=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(){}},sl=typeof window>"u"||"Deno"in globalThis;function _r(){}function hF(e,t){return typeof e=="function"?e(t):e}function Q1(e){return typeof e=="number"&&e>=0&&e!==1/0}function B4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function na(e,t){return typeof e=="function"?e(t):e}function wo(e,t){return typeof e=="function"?e(t):e}function T2(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==FS(l,t.options))return!1}else if(!zf(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||o&&o!==t.state.fetchStatus||s&&!s(t))}function A2(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(al(t.options.mutationKey)!==al(s))return!1}else if(!zf(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function FS(e,t){return((t==null?void 0:t.queryKeyHashFn)||al)(e)}function al(e){return JSON.stringify(e,(t,n)=>Z1(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function zf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zf(e[n],t[n])):!1}var pF=Object.prototype.hasOwnProperty;function H4(e,t){if(e===t)return e;const n=M2(e)&&M2(t);if(!n&&!(Z1(e)&&Z1(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),l=s.length,c=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){c[p]=g,(n?d<o:pF.call(e,p))&&f++;continue}if(g===null||m===null||typeof g!="object"||typeof m!="object"){c[p]=m;continue}const y=H4(g,m);c[p]=y,y===g&&f++}return o===l&&f===o?e:c}function cg(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 M2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Z1(e){if(!O2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!O2(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function O2(e){return Object.prototype.toString.call(e)==="[object Object]"}function gF(e){return new Promise(t=>{setTimeout(t,e)})}function J1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?H4(e,t):t}function mF(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function vF(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var BS=Symbol();function z4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===BS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function U4(e,t){return typeof e=="function"?e(...t):!!e}var $a,Us,Su,tM,yF=(tM=class extends ec{constructor(){super();Ze(this,$a);Ze(this,Us);Ze(this,Su);Ue(this,Su,t=>{if(!sl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ee(this,Us)||this.setEventListener(ee(this,Su))}onUnsubscribe(){var t;this.hasListeners()||((t=ee(this,Us))==null||t.call(this),Ue(this,Us,void 0))}setEventListener(t){var n;Ue(this,Su,t),(n=ee(this,Us))==null||n.call(this),Ue(this,Us,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ee(this,$a)!==t&&(Ue(this,$a,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ee(this,$a)=="boolean"?ee(this,$a):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$a=new WeakMap,Us=new WeakMap,Su=new WeakMap,tM),HS=new yF,Eu,Vs,wu,nM,bF=(nM=class extends ec{constructor(){super();Ze(this,Eu,!0);Ze(this,Vs);Ze(this,wu);Ue(this,wu,t=>{if(!sl&&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,Vs)||this.setEventListener(ee(this,wu))}onUnsubscribe(){var t;this.hasListeners()||((t=ee(this,Vs))==null||t.call(this),Ue(this,Vs,void 0))}setEventListener(t){var n;Ue(this,wu,t),(n=ee(this,Vs))==null||n.call(this),Ue(this,Vs,t(this.setOnline.bind(this)))}setOnline(t){ee(this,Eu)!==t&&(Ue(this,Eu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ee(this,Eu)}},Eu=new WeakMap,Vs=new WeakMap,wu=new WeakMap,nM),fg=new bF;function eb(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function SF(e){return Math.min(1e3*2**e,3e4)}function V4(e){return(e??"online")==="online"?fg.isOnline():!0}var tb=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function j4(e){let t=!1,n=0,r;const o=eb(),s=()=>o.status!=="pending",l=S=>{var R;if(!s()){const C=new tb(S);m(C),(R=e.onCancel)==null||R.call(e,C)}},c=()=>{t=!0},f=()=>{t=!1},d=()=>HS.isFocused()&&(e.networkMode==="always"||fg.isOnline())&&e.canRun(),p=()=>V4(e.networkMode)&&e.canRun(),g=S=>{s()||(r==null||r(),o.resolve(S))},m=S=>{s()||(r==null||r(),o.reject(S))},y=()=>new Promise(S=>{var R;r=C=>{(s()||d())&&S(C)},(R=e.onPause)==null||R.call(e)}).then(()=>{var S;r=void 0,s()||(S=e.onContinue)==null||S.call(e)}),b=()=>{if(s())return;let S;const R=n===0?e.initialPromise:void 0;try{S=R??e.fn()}catch(C){S=Promise.reject(C)}Promise.resolve(S).then(g).catch(C=>{var A;if(s())return;const x=e.retry??(sl?0:3),_=e.retryDelay??SF,M=typeof _=="function"?_(n,C):_,T=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,C);if(t||!T){m(C);return}n++,(A=e.onFail)==null||A.call(e,n,C),gF(M).then(()=>d()?void 0:y()).then(()=>{t?m(C):b()})})};return{promise:o,status:()=>o.status,cancel:l,continue:()=>(r==null||r(),o),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?b():y().then(b),o)}}var EF=e=>setTimeout(e,0);function wF(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=EF;const s=c=>{t?e.push(c):o(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&o(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},batchCalls:c=>(...f)=>{s(()=>{c(...f)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{o=c}}}var Kn=wF(),Ga,rM,q4=(rM=class{constructor(){Ze(this,Ga)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Q1(this.gcTime)&&Ue(this,Ga,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(sl?1/0:5*60*1e3))}clearGcTimeout(){ee(this,Ga)&&(clearTimeout(ee(this,Ga)),Ue(this,Ga,void 0))}},Ga=new WeakMap,rM),Ru,xu,Eo,Ya,tr,nd,Ka,Ho,Ki,oM,RF=(oM=class extends q4{constructor(t){super();Ze(this,Ho);Ze(this,Ru);Ze(this,xu);Ze(this,Eo);Ze(this,Ya);Ze(this,tr);Ze(this,nd);Ze(this,Ka);Ue(this,Ka,!1),Ue(this,nd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ue(this,Ya,t.client),Ue(this,Eo,ee(this,Ya).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ue(this,Ru,xF(this.options)),this.state=t.state??ee(this,Ru),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ee(this,tr))==null?void 0:t.promise}setOptions(t){this.options={...ee(this,nd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ee(this,Eo).remove(this)}setData(t,n){const r=J1(this.state.data,t,this.options);return Rt(this,Ho,Ki).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Rt(this,Ho,Ki).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=ee(this,tr))==null?void 0:r.promise;return(o=ee(this,tr))==null||o.cancel(t),n?n.then(_r).catch(_r):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ee(this,Ru))}isActive(){return this.observers.some(t=>wo(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===BS||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>na(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:!B4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ee(this,tr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ee(this,tr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ee(this,Eo).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,tr)&&(ee(this,Ka)?ee(this,tr).cancel({revert:!0}):ee(this,tr).cancelRetry()),this.scheduleGc()),ee(this,Eo).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Rt(this,Ho,Ki).call(this,{type:"invalidate"})}async fetch(t,n){var f,d,p,g,m,y,b,S,R,C,x,_;if(this.state.fetchStatus!=="idle"&&((f=ee(this,tr))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ee(this,tr))return ee(this,tr).continueRetry(),ee(this,tr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const M=this.observers.find(T=>T.options.queryFn);M&&this.setOptions(M.options)}const r=new AbortController,o=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(Ue(this,Ka,!0),r.signal)})},s=()=>{const M=z4(this.options,n),A=(()=>{const O={client:ee(this,Ya),queryKey:this.queryKey,meta:this.meta};return o(O),O})();return Ue(this,Ka,!1),this.options.persister?this.options.persister(M,A,this):M(A)},c=(()=>{const M={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ee(this,Ya),state:this.state,fetchFn:s};return o(M),M})();(d=this.options.behavior)==null||d.onFetch(c,this),Ue(this,xu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&Rt(this,Ho,Ki).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta}),Ue(this,tr,j4({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:M=>{M instanceof tb&&M.revert&&this.setState({...ee(this,xu),fetchStatus:"idle"}),r.abort()},onFail:(M,T)=>{Rt(this,Ho,Ki).call(this,{type:"failed",failureCount:M,error:T})},onPause:()=>{Rt(this,Ho,Ki).call(this,{type:"pause"})},onContinue:()=>{Rt(this,Ho,Ki).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const M=await ee(this,tr).start();if(M===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(M),(y=(m=ee(this,Eo).config).onSuccess)==null||y.call(m,M,this),(S=(b=ee(this,Eo).config).onSettled)==null||S.call(b,M,this.state.error,this),M}catch(M){if(M instanceof tb){if(M.silent)return ee(this,tr).promise;if(M.revert){if(this.state.data===void 0)throw M;return this.state.data}}throw Rt(this,Ho,Ki).call(this,{type:"error",error:M}),(C=(R=ee(this,Eo).config).onError)==null||C.call(R,M,this),(_=(x=ee(this,Eo).config).onSettled)==null||_.call(x,this.state.data,M,this),M}finally{this.scheduleGc()}}},Ru=new WeakMap,xu=new WeakMap,Eo=new WeakMap,Ya=new WeakMap,tr=new WeakMap,nd=new WeakMap,Ka=new WeakMap,Ho=new WeakSet,Ki=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,...$4(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...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 Ue(this,xu,t.manual?o:void 0),o;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),Kn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ee(this,Eo).notify({query:this,type:"updated",action:t})})},oM);function $4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:V4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xF(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 si,iM,_F=(iM=class extends ec{constructor(t={}){super();Ze(this,si);this.config=t,Ue(this,si,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??FS(o,n);let l=this.get(s);return l||(l=new RF({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){ee(this,si).has(t.queryHash)||(ee(this,si).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ee(this,si).get(t.queryHash);n&&(t.destroy(),n===t&&ee(this,si).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Kn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ee(this,si).get(t)}getAll(){return[...ee(this,si).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>T2(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>T2(t,r)):n}notify(t){Kn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Kn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Kn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},si=new WeakMap,iM),ai,wr,Wa,li,Hs,sM,CF=(sM=class extends q4{constructor(t){super();Ze(this,li);Ze(this,ai);Ze(this,wr);Ze(this,Wa);this.mutationId=t.mutationId,Ue(this,wr,t.mutationCache),Ue(this,ai,[]),this.state=t.state||G4(),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,ai).includes(t)||(ee(this,ai).push(t),this.clearGcTimeout(),ee(this,wr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ue(this,ai,ee(this,ai).filter(n=>n!==t)),this.scheduleGc(),ee(this,wr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ee(this,ai).length||(this.state.status==="pending"?this.scheduleGc():ee(this,wr).remove(this))}continue(){var t;return((t=ee(this,Wa))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,c,f,d,p,g,m,y,b,S,R,C,x,_,M,T,A,O,k;const n=()=>{Rt(this,li,Hs).call(this,{type:"continue"})};Ue(this,Wa,j4({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,U)=>{Rt(this,li,Hs).call(this,{type:"failed",failureCount:D,error:U})},onPause:()=>{Rt(this,li,Hs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ee(this,wr).canRun(this)}));const r=this.state.status==="pending",o=!ee(this,Wa).canStart();try{if(r)n();else{Rt(this,li,Hs).call(this,{type:"pending",variables:t,isPaused:o}),await((l=(s=ee(this,wr).config).onMutate)==null?void 0:l.call(s,t,this));const U=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,t));U!==this.state.context&&Rt(this,li,Hs).call(this,{type:"pending",context:U,variables:t,isPaused:o})}const D=await ee(this,Wa).start();return await((p=(d=ee(this,wr).config).onSuccess)==null?void 0:p.call(d,D,t,this.state.context,this)),await((m=(g=this.options).onSuccess)==null?void 0:m.call(g,D,t,this.state.context)),await((b=(y=ee(this,wr).config).onSettled)==null?void 0:b.call(y,D,null,this.state.variables,this.state.context,this)),await((R=(S=this.options).onSettled)==null?void 0:R.call(S,D,null,t,this.state.context)),Rt(this,li,Hs).call(this,{type:"success",data:D}),D}catch(D){try{throw await((x=(C=ee(this,wr).config).onError)==null?void 0:x.call(C,D,t,this.state.context,this)),await((M=(_=this.options).onError)==null?void 0:M.call(_,D,t,this.state.context)),await((A=(T=ee(this,wr).config).onSettled)==null?void 0:A.call(T,void 0,D,this.state.variables,this.state.context,this)),await((k=(O=this.options).onSettled)==null?void 0:k.call(O,void 0,D,t,this.state.context)),D}finally{Rt(this,li,Hs).call(this,{type:"error",error:D})}}finally{ee(this,wr).runNext(this)}}},ai=new WeakMap,wr=new WeakMap,Wa=new WeakMap,li=new WeakSet,Hs=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),Kn.batch(()=>{ee(this,ai).forEach(r=>{r.onMutationUpdate(t)}),ee(this,wr).notify({mutation:this,type:"updated",action:t})})},sM);function G4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qi,zo,rd,aM,TF=(aM=class extends ec{constructor(t={}){super();Ze(this,Qi);Ze(this,zo);Ze(this,rd);this.config=t,Ue(this,Qi,new Set),Ue(this,zo,new Map),Ue(this,rd,0)}build(t,n,r){const o=new CF({mutationCache:this,mutationId:++Kh(this,rd)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){ee(this,Qi).add(t);const n=np(t);if(typeof n=="string"){const r=ee(this,zo).get(n);r?r.push(t):ee(this,zo).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ee(this,Qi).delete(t)){const n=np(t);if(typeof n=="string"){const r=ee(this,zo).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&ee(this,zo).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=np(t);if(typeof n=="string"){const r=ee(this,zo).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=np(t);if(typeof n=="string"){const o=(r=ee(this,zo).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Kn.batch(()=>{ee(this,Qi).forEach(t=>{this.notify({type:"removed",mutation:t})}),ee(this,Qi).clear(),ee(this,zo).clear()})}getAll(){return Array.from(ee(this,Qi))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>A2(n,r))}findAll(t={}){return this.getAll().filter(n=>A2(t,n))}notify(t){Kn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Kn.batch(()=>Promise.all(t.map(n=>n.continue().catch(_r))))}},Qi=new WeakMap,zo=new WeakMap,rd=new WeakMap,aM);function np(e){var t;return(t=e.options.scope)==null?void 0:t.id}function I2(e){return{onFetch:(t,n)=>{var p,g,m,y,b;const r=t.options,o=(m=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:m.direction,s=((y=t.state.data)==null?void 0:y.pages)||[],l=((b=t.state.data)==null?void 0:b.pageParams)||[];let c={pages:[],pageParams:[]},f=0;const d=async()=>{let S=!1;const R=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?S=!0:t.signal.addEventListener("abort",()=>{S=!0}),t.signal)})},C=z4(t.options,t.fetchOptions),x=async(_,M,T)=>{if(S)return Promise.reject();if(M==null&&_.pages.length)return Promise.resolve(_);const O=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:M,direction:T?"backward":"forward",meta:t.options.meta};return R(L),L})(),k=await C(O),{maxPages:D}=t.options,U=T?vF:mF;return{pages:U(_.pages,k,D),pageParams:U(_.pageParams,M,D)}};if(o&&s.length){const _=o==="backward",M=_?AF:D2,T={pages:s,pageParams:l},A=M(r,T);c=await x(T,A,_)}else{const _=e??s.length;do{const M=f===0?l[0]??r.initialPageParam:D2(r,c);if(f>0&&M==null)break;c=await x(c,M),f++}while(f<_)}return c};t.options.persister?t.fetchFn=()=>{var S,R;return(R=(S=t.options).persister)==null?void 0:R.call(S,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function D2(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 AF(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 An,js,qs,_u,Cu,$s,Tu,Au,lM,jZ=(lM=class{constructor(e={}){Ze(this,An);Ze(this,js);Ze(this,qs);Ze(this,_u);Ze(this,Cu);Ze(this,$s);Ze(this,Tu);Ze(this,Au);Ue(this,An,e.queryCache||new _F),Ue(this,js,e.mutationCache||new TF),Ue(this,qs,e.defaultOptions||{}),Ue(this,_u,new Map),Ue(this,Cu,new Map),Ue(this,$s,0)}mount(){Kh(this,$s)._++,ee(this,$s)===1&&(Ue(this,Tu,HS.subscribe(async e=>{e&&(await this.resumePausedMutations(),ee(this,An).onFocus())})),Ue(this,Au,fg.subscribe(async e=>{e&&(await this.resumePausedMutations(),ee(this,An).onOnline())})))}unmount(){var e,t;Kh(this,$s)._--,ee(this,$s)===0&&((e=ee(this,Tu))==null||e.call(this),Ue(this,Tu,void 0),(t=ee(this,Au))==null||t.call(this),Ue(this,Au,void 0))}isFetching(e){return ee(this,An).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ee(this,js).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ee(this,An).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=ee(this,An).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(na(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return ee(this,An).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=ee(this,An).get(r.queryHash),s=o==null?void 0:o.state.data,l=hF(t,s);if(l!==void 0)return ee(this,An).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Kn.batch(()=>ee(this,An).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,An).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ee(this,An);Kn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ee(this,An);return Kn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Kn.batch(()=>ee(this,An).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(_r).catch(_r)}invalidateQueries(e,t={}){return Kn.batch(()=>(ee(this,An).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=Kn.batch(()=>ee(this,An).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(_r)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(_r)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ee(this,An).build(this,t);return n.isStaleByTime(na(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_r).catch(_r)}fetchInfiniteQuery(e){return e.behavior=I2(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_r).catch(_r)}ensureInfiniteQueryData(e){return e.behavior=I2(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fg.isOnline()?ee(this,js).resumePausedMutations():Promise.resolve()}getQueryCache(){return ee(this,An)}getMutationCache(){return ee(this,js)}getDefaultOptions(){return ee(this,qs)}setDefaultOptions(e){Ue(this,qs,e)}setQueryDefaults(e,t){ee(this,_u).set(al(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ee(this,_u).values()],n={};return t.forEach(r=>{zf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){ee(this,Cu).set(al(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ee(this,Cu).values()],n={};return t.forEach(r=>{zf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ee(this,qs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=FS(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===BS&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ee(this,qs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ee(this,An).clear(),ee(this,js).clear()}},An=new WeakMap,js=new WeakMap,qs=new WeakMap,_u=new WeakMap,Cu=new WeakMap,$s=new WeakMap,Tu=new WeakMap,Au=new WeakMap,lM),Fr,Lt,od,Rr,Xa,Mu,Zi,Gs,id,Ou,Iu,Qa,Za,Ys,Du,Kt,xf,nb,rb,ob,ib,sb,ab,lb,Y4,uM,MF=(uM=class extends ec{constructor(t,n){super();Ze(this,Kt);Ze(this,Fr);Ze(this,Lt);Ze(this,od);Ze(this,Rr);Ze(this,Xa);Ze(this,Mu);Ze(this,Zi);Ze(this,Gs);Ze(this,id);Ze(this,Ou);Ze(this,Iu);Ze(this,Qa);Ze(this,Za);Ze(this,Ys);Ze(this,Du,new Set);this.options=n,Ue(this,Fr,t),Ue(this,Gs,null),Ue(this,Zi,eb()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ee(this,Lt).addObserver(this),k2(ee(this,Lt),this.options)?Rt(this,Kt,xf).call(this):this.updateResult(),Rt(this,Kt,ib).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ub(ee(this,Lt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ub(ee(this,Lt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Rt(this,Kt,sb).call(this),Rt(this,Kt,ab).call(this),ee(this,Lt).removeObserver(this)}setOptions(t){const n=this.options,r=ee(this,Lt);if(this.options=ee(this,Fr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wo(this.options.enabled,ee(this,Lt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Rt(this,Kt,lb).call(this),ee(this,Lt).setOptions(this.options),n._defaulted&&!cg(this.options,n)&&ee(this,Fr).getQueryCache().notify({type:"observerOptionsUpdated",query:ee(this,Lt),observer:this});const o=this.hasListeners();o&&L2(ee(this,Lt),r,this.options,n)&&Rt(this,Kt,xf).call(this),this.updateResult(),o&&(ee(this,Lt)!==r||wo(this.options.enabled,ee(this,Lt))!==wo(n.enabled,ee(this,Lt))||na(this.options.staleTime,ee(this,Lt))!==na(n.staleTime,ee(this,Lt)))&&Rt(this,Kt,nb).call(this);const s=Rt(this,Kt,rb).call(this);o&&(ee(this,Lt)!==r||wo(this.options.enabled,ee(this,Lt))!==wo(n.enabled,ee(this,Lt))||s!==ee(this,Ys))&&Rt(this,Kt,ob).call(this,s)}getOptimisticResult(t){const n=ee(this,Fr).getQueryCache().build(ee(this,Fr),t),r=this.createResult(n,t);return IF(this,r)&&(Ue(this,Rr,r),Ue(this,Mu,this.options),Ue(this,Xa,ee(this,Lt).state)),r}getCurrentResult(){return ee(this,Rr)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&!this.options.experimental_prefetchInRender&&ee(this,Zi).status==="pending"&&ee(this,Zi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(t){ee(this,Du).add(t)}getCurrentQuery(){return ee(this,Lt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ee(this,Fr).defaultQueryOptions(t),r=ee(this,Fr).getQueryCache().build(ee(this,Fr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Rt(this,Kt,xf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ee(this,Rr)))}createResult(t,n){var D;const r=ee(this,Lt),o=this.options,s=ee(this,Rr),l=ee(this,Xa),c=ee(this,Mu),d=t!==r?t.state:ee(this,od),{state:p}=t;let g={...p},m=!1,y;if(n._optimisticResults){const U=this.hasListeners(),L=!U&&k2(t,n),j=U&&L2(t,r,n,o);(L||j)&&(g={...g,...$4(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:S,status:R}=g;y=g.data;let C=!1;if(n.placeholderData!==void 0&&y===void 0&&R==="pending"){let U;s!=null&&s.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(U=s.data,C=!0):U=typeof n.placeholderData=="function"?n.placeholderData((D=ee(this,Iu))==null?void 0:D.state.data,ee(this,Iu)):n.placeholderData,U!==void 0&&(R="success",y=J1(s==null?void 0:s.data,U,n),m=!0)}if(n.select&&y!==void 0&&!C)if(s&&y===(l==null?void 0:l.data)&&n.select===ee(this,id))y=ee(this,Ou);else try{Ue(this,id,n.select),y=n.select(y),y=J1(s==null?void 0:s.data,y,n),Ue(this,Ou,y),Ue(this,Gs,null)}catch(U){Ue(this,Gs,U)}ee(this,Gs)&&(b=ee(this,Gs),y=ee(this,Ou),S=Date.now(),R="error");const x=g.fetchStatus==="fetching",_=R==="pending",M=R==="error",T=_&&x,A=y!==void 0,k={status:R,fetchStatus:g.fetchStatus,isPending:_,isSuccess:R==="success",isError:M,isInitialLoading:T,isLoading:T,data:y,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:S,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:x,isRefetching:x&&!_,isLoadingError:M&&!A,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:M&&A,isStale:zS(t,n),refetch:this.refetch,promise:ee(this,Zi),isEnabled:wo(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const U=B=>{k.status==="error"?B.reject(k.error):k.data!==void 0&&B.resolve(k.data)},L=()=>{const B=Ue(this,Zi,k.promise=eb());U(B)},j=ee(this,Zi);switch(j.status){case"pending":t.queryHash===r.queryHash&&U(j);break;case"fulfilled":(k.status==="error"||k.data!==j.value)&&L();break;case"rejected":(k.status!=="error"||k.error!==j.reason)&&L();break}}return k}updateResult(){const t=ee(this,Rr),n=this.createResult(ee(this,Lt),this.options);if(Ue(this,Xa,ee(this,Lt).state),Ue(this,Mu,this.options),ee(this,Xa).data!==void 0&&Ue(this,Iu,ee(this,Lt)),cg(n,t))return;Ue(this,Rr,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!ee(this,Du).size)return!0;const l=new Set(s??ee(this,Du));return this.options.throwOnError&&l.add("error"),Object.keys(ee(this,Rr)).some(c=>{const f=c;return ee(this,Rr)[f]!==t[f]&&l.has(f)})};Rt(this,Kt,Y4).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Rt(this,Kt,ib).call(this)}},Fr=new WeakMap,Lt=new WeakMap,od=new WeakMap,Rr=new WeakMap,Xa=new WeakMap,Mu=new WeakMap,Zi=new WeakMap,Gs=new WeakMap,id=new WeakMap,Ou=new WeakMap,Iu=new WeakMap,Qa=new WeakMap,Za=new WeakMap,Ys=new WeakMap,Du=new WeakMap,Kt=new WeakSet,xf=function(t){Rt(this,Kt,lb).call(this);let n=ee(this,Lt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_r)),n},nb=function(){Rt(this,Kt,sb).call(this);const t=na(this.options.staleTime,ee(this,Lt));if(sl||ee(this,Rr).isStale||!Q1(t))return;const r=B4(ee(this,Rr).dataUpdatedAt,t)+1;Ue(this,Qa,setTimeout(()=>{ee(this,Rr).isStale||this.updateResult()},r))},rb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ee(this,Lt)):this.options.refetchInterval)??!1},ob=function(t){Rt(this,Kt,ab).call(this),Ue(this,Ys,t),!(sl||wo(this.options.enabled,ee(this,Lt))===!1||!Q1(ee(this,Ys))||ee(this,Ys)===0)&&Ue(this,Za,setInterval(()=>{(this.options.refetchIntervalInBackground||HS.isFocused())&&Rt(this,Kt,xf).call(this)},ee(this,Ys)))},ib=function(){Rt(this,Kt,nb).call(this),Rt(this,Kt,ob).call(this,Rt(this,Kt,rb).call(this))},sb=function(){ee(this,Qa)&&(clearTimeout(ee(this,Qa)),Ue(this,Qa,void 0))},ab=function(){ee(this,Za)&&(clearInterval(ee(this,Za)),Ue(this,Za,void 0))},lb=function(){const t=ee(this,Fr).getQueryCache().build(ee(this,Fr),this.options);if(t===ee(this,Lt))return;const n=ee(this,Lt);Ue(this,Lt,t),Ue(this,od,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Y4=function(t){Kn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ee(this,Rr))}),ee(this,Fr).getQueryCache().notify({query:ee(this,Lt),type:"observerResultsUpdated"})})},uM);function OF(e,t){return wo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function k2(e,t){return OF(e,t)||e.state.data!==void 0&&ub(e,t,t.refetchOnMount)}function ub(e,t,n){if(wo(t.enabled,e)!==!1&&na(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&zS(e,t)}return!1}function L2(e,t,n,r){return(e!==t||wo(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&zS(e,n)}function zS(e,t){return wo(t.enabled,e)!==!1&&e.isStaleByTime(na(t.staleTime,e))}function IF(e,t){return!cg(e.getCurrentResult(),t)}var Ks,Ws,Br,Ji,is,Lp,cb,cM,DF=(cM=class extends ec{constructor(n,r){super();Ze(this,is);Ze(this,Ks);Ze(this,Ws);Ze(this,Br);Ze(this,Ji);Ue(this,Ks,n),this.setOptions(r),this.bindMethods(),Rt(this,is,Lp).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=ee(this,Ks).defaultMutationOptions(n),cg(this.options,r)||ee(this,Ks).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ee(this,Br),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&al(r.mutationKey)!==al(this.options.mutationKey)?this.reset():((o=ee(this,Br))==null?void 0:o.state.status)==="pending"&&ee(this,Br).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ee(this,Br))==null||n.removeObserver(this)}onMutationUpdate(n){Rt(this,is,Lp).call(this),Rt(this,is,cb).call(this,n)}getCurrentResult(){return ee(this,Ws)}reset(){var n;(n=ee(this,Br))==null||n.removeObserver(this),Ue(this,Br,void 0),Rt(this,is,Lp).call(this),Rt(this,is,cb).call(this)}mutate(n,r){var o;return Ue(this,Ji,r),(o=ee(this,Br))==null||o.removeObserver(this),Ue(this,Br,ee(this,Ks).getMutationCache().build(ee(this,Ks),this.options)),ee(this,Br).addObserver(this),ee(this,Br).execute(n)}},Ks=new WeakMap,Ws=new WeakMap,Br=new WeakMap,Ji=new WeakMap,is=new WeakSet,Lp=function(){var r;const n=((r=ee(this,Br))==null?void 0:r.state)??G4();Ue(this,Ws,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},cb=function(n){Kn.batch(()=>{var r,o,s,l,c,f,d,p;if(ee(this,Ji)&&this.hasListeners()){const g=ee(this,Ws).variables,m=ee(this,Ws).context;(n==null?void 0:n.type)==="success"?((o=(r=ee(this,Ji)).onSuccess)==null||o.call(r,n.data,g,m),(l=(s=ee(this,Ji)).onSettled)==null||l.call(s,n.data,null,g,m)):(n==null?void 0:n.type)==="error"&&((f=(c=ee(this,Ji)).onError)==null||f.call(c,n.error,g,m),(p=(d=ee(this,Ji)).onSettled)==null||p.call(d,void 0,n.error,g,m))}this.listeners.forEach(g=>{g(ee(this,Ws))})})},cM),K4=E.createContext(void 0),W4=e=>{const t=E.useContext(K4);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},$Z=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Ee.jsx(K4.Provider,{value:e,children:t})),X4=E.createContext(!1),kF=()=>E.useContext(X4);X4.Provider;function LF(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var PF=E.createContext(LF()),NF=()=>E.useContext(PF),FF=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},BF=e=>{E.useEffect(()=>{e.clearReset()},[e])},HF=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||U4(n,[e.error,r])),zF=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},UF=(e,t)=>e.isLoading&&e.isFetching&&!t,VF=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,P2=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function jF(e,t,n){var g,m,y,b,S;const r=kF(),o=NF(),s=W4(),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",zF(l),FF(l,o),BF(o);const c=!s.getQueryCache().get(l.queryHash),[f]=E.useState(()=>new t(s,l)),d=f.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(R=>{const C=p?f.subscribe(Kn.batchCalls(R)):_r;return f.updateResult(),C},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),E.useEffect(()=>{f.setOptions(l)},[l,f]),VF(l,d))throw P2(l,f,o);if(HF({result:d,errorResetBoundary:o,throwOnError:l.throwOnError,query:s.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if((b=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||b.call(y,l,d),l.experimental_prefetchInRender&&!sl&&UF(d,r)){const R=c?P2(l,f,o):(S=s.getQueryCache().get(l.queryHash))==null?void 0:S.promise;R==null||R.catch(_r).finally(()=>{f.updateResult()})}return l.notifyOnChangeProps?d:f.trackResult(d)}function GZ(e,t){return jF(e,MF)}function YZ(e,t){const n=W4(),[r]=E.useState(()=>new DF(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const o=E.useSyncExternalStore(E.useCallback(l=>r.subscribe(Kn.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=E.useCallback((l,c)=>{r.mutate(l,c).catch(_r)},[r]);if(o.error&&U4(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const qF="modulepreload",$F=function(e,t){return new URL(e,t).href},N2={},KZ=function(t,n,r){let o=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 c=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),d=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));o=l(n.map(p=>{if(p=$F(p,r),p in N2)return;N2[p]=!0;const g=p.endsWith(".css"),m=g?'[rel="stylesheet"]':"";if(!!r)for(let S=c.length-1;S>=0;S--){const R=c[S];if(R.href===p&&(!g||R.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${p}"]${m}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":qF,g||(b.as="script"),b.crossOrigin="",b.href=p,d&&b.setAttribute("nonce",d),document.head.appendChild(b),g)return new Promise((S,R)=>{b.addEventListener("load",S),b.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var WZ=function(){return null};const GF=!1,sn=globalThis,el="10.9.0";function gl(){return am(sn),sn}function am(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||el,t[el]=t[el]||{}}function lm(e,t,n=sn){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[el]=r[el]||{};return o[e]||(o[e]=t())}const YF=["debug","info","warn","error","log","assert","trace"],dg={};function um(e){if(!("console"in sn))return e();const t=sn.console,n={},r=Object.keys(dg);r.forEach(o=>{const s=dg[o];n[o]=t[o],t[o]=s});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function KF(){VS().enabled=!0}function WF(){VS().enabled=!1}function XF(){return VS().enabled}function QF(...e){US("log",...e)}function ZF(...e){US("warn",...e)}function JF(...e){US("error",...e)}function US(e,...t){}function VS(){return{enabled:!1}}const jS={enable:KF,disable:WF,isEnabled:XF,log:QF,warn:ZF,error:JF},Q4=50,ll="?",F2=/\(error: (.*)\)/,B2=/captureMessage|captureException/;function Z4(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const s=[],l=n.split(`
|
|
12
|
-
`);for(let c=r;c<l.length;c++){let f=l[c];f.length>1024&&(f=f.slice(0,1024));const d=F2.test(f)?f.replace(F2,"$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>=Q4+o)break}}return tB(s.slice(o))}}function eB(e){return Array.isArray(e)?Z4(...e):e}function tB(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(rp(t).function||"")&&t.pop(),t.reverse(),B2.test(rp(t).function||"")&&(t.pop(),B2.test(rp(t).function||"")&&t.pop()),t.slice(0,Q4).map(n=>({...n,filename:n.filename||rp(t).filename,function:n.function||ll}))}function rp(e){return e[e.length-1]||{}}const Ey="<anonymous>";function ul(e){try{return!e||typeof e!="function"?Ey:e.name||Ey}catch{return Ey}}function H2(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 Pp={},z2={};function ma(e,t){Pp[e]=Pp[e]||[],Pp[e].push(t)}function va(e,t){if(!z2[e]){z2[e]=!0;try{t()}catch{}}}function To(e,t){const n=e&&Pp[e];if(n)for(const r of n)try{r(t)}catch{}}let wy=null;function J4(e){const t="error";ma(t,e),va(t,nB)}function nB(){wy=sn.onerror,sn.onerror=function(e,t,n,r,o){return To("error",{column:r,error:o,line:n,msg:e,url:t}),wy?wy.apply(this,arguments):!1},sn.onerror.__SENTRY_INSTRUMENTED__=!0}let Ry=null;function eO(e){const t="unhandledrejection";ma(t,e),va(t,rB)}function rB(){Ry=sn.onunhandledrejection,sn.onunhandledrejection=function(e){return To("unhandledrejection",e),Ry?Ry.apply(this,arguments):!0},sn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const tO=Object.prototype.toString;function cm(e){switch(tO.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ls(e,Error)}}function tc(e,t){return tO.call(e)===`[object ${t}]`}function nO(e){return tc(e,"ErrorEvent")}function U2(e){return tc(e,"DOMError")}function oB(e){return tc(e,"DOMException")}function os(e){return tc(e,"String")}function qS(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Uf(e){return e===null||qS(e)||typeof e!="object"&&typeof e!="function"}function Vf(e){return tc(e,"Object")}function fm(e){return typeof Event<"u"&&ls(e,Event)}function iB(e){return typeof Element<"u"&&ls(e,Element)}function sB(e){return tc(e,"RegExp")}function dd(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function aB(e){return Vf(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ls(e,t){try{return e instanceof t}catch{return!1}}function rO(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function oO(e){return typeof Request<"u"&&ls(e,Request)}const $S=sn,lB=80;function Si(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,l=0;const c=" > ",f=c.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||lB;for(;n&&s++<r&&(d=uB(n,p),!(d==="html"||s>1&&l+o.length*f+d.length>=g));)o.push(d),l+=d.length,n=n.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}function uB(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if($S.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 o=t!=null&&t.length?t.filter(l=>n.getAttribute(l)).map(l=>[l,n.getAttribute(l)]):null;if(o!=null&&o.length)o.forEach(l=>{r.push(`[${l[0]}="${l[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const l=n.className;if(l&&os(l)){const c=l.split(/\s+/);for(const f of c)r.push(`.${f}`)}}const s=["aria-label","type","name","title","alt"];for(const l of s){const c=n.getAttribute(l);c&&r.push(`[${l}="${c}"]`)}return r.join("")}function hd(){try{return $S.document.location.href}catch{return""}}function iO(e){if(!$S.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 hg(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function V2(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{rO(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Np(e,t,n=!1){return os(e)?sB(t)?t.test(e):os(t)?n?e===t:e.includes(t):!1:!1}function ra(e,t=[],n=!1){return t.some(r=>Np(e,r,n))}function oo(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const o=n(r);typeof o=="function"&&sO(o,r);try{e[t]=o}catch{}}function Ar(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function sO(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ar(e,"__sentry_original__",t)}catch{}}function GS(e){return e.__sentry_original__}function aO(e){if(cm(e))return{message:e.message,name:e.name,stack:e.stack,...q2(e)};if(fm(e)){const t={type:e.type,target:j2(e.target),currentTarget:j2(e.currentTarget),...q2(e)};return typeof CustomEvent<"u"&&ls(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function j2(e){try{return iB(e)?Si(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function q2(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 cB(e,t=40){const n=Object.keys(aO(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return hg(r,t);for(let o=n.length;o>0;o--){const s=n.slice(0,o).join(", ");if(!(s.length>t))return o===n.length?s:hg(s,t)}return""}function fB(){const e=sn;return e.crypto||e.msCrypto}function Ao(e=fB()){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 lO(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function dB(e){const{message:t,event_id:n}=e;if(t)return t;const r=lO(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function fb(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Bu(e,t){const n=lO(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const s={...o==null?void 0:o.data,...t.data};n.mechanism.data=s}}function $2(e){if(hB(e))return!0;try{Ar(e,"__sentry_captured__",!0)}catch{}return!1}function hB(e){try{return e.__sentry_captured__}catch{}}const uO=1e3;function ml(){return Date.now()/uO}function pB(){const{performance:e}=sn;if(!(e!=null&&e.now)||!e.timeOrigin)return ml;const t=e.timeOrigin;return()=>(t+e.now())/uO}let G2;function hr(){return(G2??(G2=pB()))()}let xy;function gB(){var p;const{performance:e}=sn;if(!(e!=null&&e.now))return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<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?o<=f?[e.timeOrigin,"timeOrigin"]:[l,"navigationStart"]:[r,"dateNow"]}function uo(){return xy||(xy=gB()),xy[0]}function mB(e){const t=hr(),n={sid:Ao(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>yB(n)};return e&&Hu(n,e),n}function Hu(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||hr(),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:Ao()),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 vB(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Hu(e,n)}function yB(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 pd(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 o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=pd(r[o],t[o],n-1));return r}function ia(){return Ao()}function gd(){return Ao().substring(16)}const db="_sentrySpan";function zu(e,t){t?Ar(e,db,t):delete e[db]}function pg(e){return e[db]}const bB=100;class Ei{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:ia(),sampleRand:Math.random()}}clone(){const t=new Ei;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,zu(t,pg(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&&Hu(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 Ei?n.getScopeData():Vf(n)?t:void 0,{tags:o,extra:s,user:l,contexts:c,level:f,fingerprint:d=[],propagationContext:p}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},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,zu(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ia(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var s;const r=typeof n=="number"?n:bB;if(r<=0)return this;const o={timestamp:ml(),...t,message:t.message?hg(t.message,2048):t.message};return this._breadcrumbs.push(o),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:pg(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=pd(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)||Ao();if(!this._client)return r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=(r==null?void 0:r.event_id)||Ao();if(!this._client)return o;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:o},this),o}captureEvent(t,n){const r=(n==null?void 0:n.event_id)||Ao();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 SB(){return lm("defaultCurrentScope",()=>new Ei)}function EB(){return lm("defaultIsolationScope",()=>new Ei)}class wB{constructor(t,n){let r;t?r=t:r=new Ei;let o;n?o=n:o=new Ei,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(o){throw this._popScope(),o}return dd(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(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 Uu(){const e=gl(),t=am(e);return t.stack=t.stack||new wB(SB(),EB())}function RB(e){return Uu().withScope(e)}function xB(e,t){const n=Uu();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Y2(e){return Uu().withScope(()=>e(Uu().getIsolationScope()))}function _B(){return{withIsolationScope:Y2,withScope:RB,withSetScope:xB,withSetIsolationScope:(e,t)=>Y2(t),getCurrentScope:()=>Uu().getScope(),getIsolationScope:()=>Uu().getIsolationScope()}}function nc(e){const t=am(e);return t.acs?t.acs:_B()}function Jt(){const e=gl();return nc(e).getCurrentScope()}function ps(){const e=gl();return nc(e).getIsolationScope()}function CB(){return lm("globalScope",()=>new Ei)}function rc(...e){const t=gl(),n=nc(t);if(e.length===2){const[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function $t(){return Jt().getClient()}function TB(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,s={trace_id:n,span_id:o||gd()};return r&&(s.parent_span_id=r),s}const Hr="sentry.source",YS="sentry.sample_rate",cO="sentry.previous_trace_sample_rate",Go="sentry.op",Nn="sentry.origin",gg="sentry.idle_span_finish_reason",md="sentry.measurement_unit",vd="sentry.measurement_value",K2="sentry.custom_span_name",KS="sentry.profile_id",oc="sentry.exclusive_time",AB="sentry.link.type",MB=0,fO=1,$n=2;function OB(e){if(e<400&&e>=100)return{code:fO};if(e>=400&&e<500)switch(e){case 401:return{code:$n,message:"unauthenticated"};case 403:return{code:$n,message:"permission_denied"};case 404:return{code:$n,message:"not_found"};case 409:return{code:$n,message:"already_exists"};case 413:return{code:$n,message:"failed_precondition"};case 429:return{code:$n,message:"resource_exhausted"};case 499:return{code:$n,message:"cancelled"};default:return{code:$n,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:$n,message:"unimplemented"};case 503:return{code:$n,message:"unavailable"};case 504:return{code:$n,message:"deadline_exceeded"};default:return{code:$n,message:"internal_error"}}return{code:$n,message:"unknown_error"}}function dO(e,t){e.setAttribute("http.response.status_code",t);const n=OB(t);n.message!=="unknown_error"&&e.setStatus(n)}const hO="_sentryScope",pO="_sentryIsolationScope";function IB(e,t,n){e&&(Ar(e,pO,n),Ar(e,hO,t))}function mg(e){return{scope:e[hO],isolationScope:e[pO]}}const WS="sentry-",DB=/^sentry-/,kB=8192;function gO(e){const t=PB(e);if(!t)return;const n=Object.entries(t).reduce((r,[o,s])=>{if(o.match(DB)){const l=o.slice(WS.length);r[l]=s}return r},{});if(Object.keys(n).length>0)return n}function LB(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${WS}${r}`]=o),n),{});return NB(t)}function PB(e){if(!(!e||!os(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=W2(n);return Object.entries(r).forEach(([o,s])=>{t[o]=s}),t},{}):W2(e)}function W2(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 NB(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,l=o===0?s:`${t},${s}`;return l.length>kB?t:l},"")}const FB=/^o(\d+)\./,BB=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ic(e,t=!1){const{host:n,path:r,pass:o,port:s,projectId:l,protocol:c,publicKey:f}=e;return`${c}://${f}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${l}`}function HB(e){const t=BB.exec(e);if(!t){um(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",s="",l="",c=""]=t.slice(1);let f="",d=c;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 mO({host:s,pass:o,path:f,projectId:d,port:l,protocol:n,publicKey:r})}function mO(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function zB(e){return!0}function UB(e){const t=e.match(FB);return t==null?void 0:t[1]}function VB(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=UB(n)),r}function vO(e){const t=typeof e=="string"?HB(e):mO(e);if(!(!t||!zB()))return t}function jf(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 yO=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function jB(e){if(!e)return;const t=e.match(yO);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 qB(e,t){const n=jB(e),r=gO(t);if(!(n!=null&&n.traceId))return{traceId:ia(),sampleRand:Math.random()};const o=$B(n,r);r&&(r.sample_rand=o.toString());const{traceId:s,parentSpanId:l,parentSampled:c}=n;return{traceId:s,parentSpanId:l,sampled:c,dsc:r||{},sampleRand:o}}function bO(e=ia(),t=gd(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function $B(e,t){const n=jf(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=jf(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 SO=0,XS=1;let X2=!1;function GB(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:s,status:l,origin:c,links:f}=Zt(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:o,status:l,origin:c,links:f}}function YB(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:Zt(e).parent_span_id,s=mg(e).scope,l=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||gd():t;return{parent_span_id:o,span_id:l,trace_id:n}}function KB(e){const{traceId:t,spanId:n}=e.spanContext(),r=sc(e);return bO(t,n,r)}function EO(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:s})=>({span_id:t,trace_id:n,sampled:r===XS,attributes:s,...o}))}function tl(e){return typeof e=="number"?Q2(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Q2(e.getTime()):hr()}function Q2(e){return e>9999999999?e/1e3:e}function Zt(e){var r;if(XB(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(WB(e)){const{attributes:o,startTime:s,name:l,endTime:c,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:o,description:l,parent_span_id:p,start_timestamp:tl(s),timestamp:tl(c)||void 0,status:wO(f),op:o[Go],origin:o[Nn],links:EO(d)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function WB(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function XB(e){return typeof e.getSpanJSON=="function"}function sc(e){const{traceFlags:t}=e.spanContext();return t===XS}function wO(e){if(!(!e||e.code===MB))return e.code===fO?"ok":e.message||"unknown_error"}const nl="_sentryChildSpans",hb="_sentryRootSpan";function RO(e,t){const n=e[hb]||e;Ar(t,hb,n),e[nl]?e[nl].add(t):Ar(e,nl,new Set([t]))}function QB(e,t){e[nl]&&e[nl].delete(t)}function Fp(e){const t=new Set;function n(r){if(!t.has(r)&&sc(r)){t.add(r);const o=r[nl]?Array.from(r[nl]):[];for(const s of o)n(s)}}return n(e),Array.from(t)}function Ur(e){return e[hb]||e}function Mr(){const e=gl(),t=nc(e);return t.getActiveSpan?t.getActiveSpan():pg(Jt())}function pb(){X2||(um(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),X2=!0)}let Z2=!1;function ZB(){if(Z2)return;function e(){const t=Mr(),n=t&&Ur(t);n&&n.setStatus({code:$n,message:"internal_error"})}e.tag="sentry_tracingErrorCallback",Z2=!0,J4(e),eO(e)}function sa(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=$t())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const QS="production",xO="_frozenDsc";function Bp(e,t){Ar(e,xO,t)}function _O(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||QS,release:n.release,public_key:r,trace_id:e,org_id:VB(t)};return t.emit("createDsc",o),o}function CO(e,t){const n=t.getPropagationContext();return n.dsc||_O(n.traceId,e)}function aa(e){var b;const t=$t();if(!t)return{};const n=Ur(e),r=Zt(n),o=r.data,s=n.spanContext().traceState,l=(s==null?void 0:s.get("sentry.sample_rate"))??o[YS]??o[cO];function c(S){return(typeof l=="number"||typeof l=="string")&&(S.sample_rate=`${l}`),S}const f=n[xO];if(f)return c(f);const d=s==null?void 0:s.get("sentry.dsc"),p=d&&gO(d);if(p)return c(p);const g=_O(e.spanContext().traceId,t),m=o[Hr],y=r.description;return m!=="url"&&y&&(g.transaction=y),sa()&&(g.sampled=String(sc(n)),g.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((b=mg(n).scope)==null?void 0:b.getPropagationContext().sampleRand.toString())),c(g),t.emit("createDsc",g,n),g}class la{constructor(t={}){this._traceId=t.traceId||ia(),this._spanId=t.spanId||gd()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:SO}}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 Wi(e,t=100,n=1/0){try{return gb("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function TO(e,t=3,n=100*1024){const r=Wi(e,t);return nH(r)>n?TO(e,t-1,n):r}function gb(e,t,n=1/0,r=1/0,o=rH()){const[s,l]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const c=JB(e,t);if(!c.startsWith("[object "))return c;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 c.replace("object ","");if(s(t))return"[Circular ~]";const d=t;if(d&&typeof d.toJSON=="function")try{const y=d.toJSON();return gb("",y,f-1,r,o)}catch{}const p=Array.isArray(t)?[]:{};let g=0;const m=aO(t);for(const y in m){if(!Object.prototype.hasOwnProperty.call(m,y))continue;if(g>=r){p[y]="[MaxProperties ~]";break}const b=m[y];p[y]=gb(y,b,f-1,r,o),g++}return l(t),p}function JB(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(rO(t))return"[VueViewModel]";if(aB(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ul(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=eH(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function eH(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function tH(e){return~-encodeURI(e).split(/%..|./).length}function nH(e){return tH(JSON.stringify(e))}function rH(){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 ac(e,t=[]){return[e,t]}function oH(e,t){const[n,r]=e;return[n,[...r,t]]}function J2(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function mb(e){const t=am(sn);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function iH(e){const[t,n]=e;let r=JSON.stringify(t);function o(s){typeof r=="string"?r=typeof s=="string"?r+s:[mb(r),s]:r.push(typeof s=="string"?mb(s):s)}for(const s of n){const[l,c]=s;if(o(`
|
|
13
|
-
${JSON.stringify(l)}
|
|
14
|
-
`),typeof c=="string"||c instanceof Uint8Array)o(c);else{let f;try{f=JSON.stringify(c)}catch{f=JSON.stringify(Wi(c))}o(f)}}return typeof r=="string"?r:sH(r)}function sH(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function aH(e){return[{type:"span"},e]}function lH(e){const t=typeof e.data=="string"?mb(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const uH={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 eC(e){return uH[e]}function AO(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function cH(e,t,n,r){var s;const o=(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:ic(r)},...o&&{trace:o}}}function vb(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(dH(n)){if(Np(e.description,n))return!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Np(e.description,n.name):!0,o=n.op?e.op&&Np(e.op,n.op):!0;if(r&&o)return!0}return!1}function fH(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function dH(e){return typeof e=="string"||e instanceof RegExp}function hH(e,t){var r,o,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:[...((o=e.sdk)==null?void 0:o.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 pH(e,t,n,r){const o=AO(n),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:ic(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ac(s,[l])}function gH(e,t,n,r){const o=AO(n),s=e.type&&e.type!=="replay_event"?e.type:"event";hH(e,n==null?void 0:n.sdk);const l=cH(e,o,r,t);return delete e.sdkProcessingMetadata,ac(l,[[{type:s},e]])}function mH(e,t){function n(y){return!!y.trace_id&&!!y.public_key}const r=aa(e[0]),o=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&&o&&{dsn:ic(o)}},{beforeSendSpan:c,ignoreSpans:f}=(t==null?void 0:t.getOptions())||{},d=f!=null&&f.length?e.filter(y=>!vb(Zt(y),f)):e,p=e.length-d.length;p&&(t==null||t.recordDroppedEvent("before_send","span",p));const g=c?y=>{const b=Zt(y),S=c(b);return S||(pb(),b)}:Zt,m=[];for(const y of d){const b=g(y);b&&m.push(aH(b))}return ac(l,m)}function vH(e,t,n,r=Mr()){const o=r&&Ur(r);o&&o.addEvent(e,{[vd]:t,[md]:n})}function tC(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},o=r[md],s=r[vd];typeof o=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:o})}),t}const nC=1e3;class dm{constructor(t={}){this._traceId=t.traceId||ia(),this._spanId=t.spanId||gd(),this._startTime=t.startTimestamp||hr(),this._links=t.links,this._attributes={},this.setAttributes({[Nn]:"manual",[Go]: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?XS:SO}}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=tl(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Hr,"custom"),this}end(t){this._endTime||(this._endTime=tl(t),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Go],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:wO(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Nn],profile_id:this._attributes[KS],exclusive_time:this._attributes[oc],measurements:tC(this._events),is_segment:this._isStandaloneSpan&&Ur(this)===this||void 0,segment_id:this._isStandaloneSpan?Ur(this).spanContext().spanId:void 0,links:EO(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){const o=rC(n)?n:r||hr(),s=rC(n)?{}:n||{},l={name:t,time:tl(o),attributes:s};return this._events.push(l),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=$t();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Ur(this)))return;if(this._isStandaloneSpan){this._sampled?bH(mH([this],t)):t&&t.recordDroppedEvent("sample_rate","span");return}const r=this._convertSpanToTransaction();r&&(mg(this).scope||Jt()).captureEvent(r)}_convertSpanToTransaction(){var p;if(!oC(Zt(this)))return;this._name||(this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=mg(this),r=(p=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:p.normalizedRequest;if(this._sampled!==!0)return;const s=Fp(this).filter(g=>g!==this&&!yH(g)).map(g=>Zt(g)).filter(oC),l=this._attributes[Hr];delete this._attributes[K2],s.forEach(g=>{delete g.data[K2]});const c={contexts:{trace:GB(this)},spans:s.length>nC?s.sort((g,m)=>g.start_timestamp-m.start_timestamp).slice(0,nC):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:aa(this)},request:r,...l&&{transaction_info:{source:l}}},f=tC(this._events);return f&&Object.keys(f).length&&(c.measurements=f),c}}function rC(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function oC(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function yH(e){return e instanceof dm&&e.isStandaloneSpan()}function bH(e){const t=$t();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function SH(e,t,n=()=>{}){let r;try{r=e()}catch(o){throw t(o),n(),o}return EH(r,t,n)}function EH(e,t,n){return dd(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function wH(e,t,n){if(!sa(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:c=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):c}),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);const s=jf(o);return s===void 0?[!1]:s?[n<s,s,r]:[!1,s,r]}const MO="__SENTRY_SUPPRESS_TRACING__";function RH(e,t){const n=JS();if(n.startSpan)return n.startSpan(e,t);const r=IO(e),{forceTransaction:o,parentSpan:s,scope:l}=e,c=l==null?void 0:l.clone();return rc(c,()=>_H(s)(()=>{const d=Jt(),p=DO(d,s),m=e.onlyIfParent&&!p?new la:OO({parentSpan:p,spanArguments:r,forceTransaction:o,scope:d});return zu(d,m),SH(()=>t(m),()=>{const{status:y}=Zt(m);m.isRecording()&&(!y||y==="ok")&&m.setStatus({code:$n,message:"internal_error"})},()=>{m.end()})}))}function lc(e){const t=JS();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=IO(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?l=>rc(e.scope,l):o!==void 0?l=>ZS(o,l):l=>l())(()=>{const l=Jt(),c=DO(l,o);return e.onlyIfParent&&!c?new la:OO({parentSpan:c,spanArguments:n,forceTransaction:r,scope:l})})}function ZS(e,t){const n=JS();return n.withActiveSpan?n.withActiveSpan(e,t):rc(r=>(zu(r,e||void 0),t(r)))}function OO({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!sa()){const l=new la;if(n||!e){const c={sampled:"false",sample_rate:"0",transaction:t.name,...aa(l)};Bp(l,c)}return l}const o=ps();let s;if(e&&!n)s=xH(e,r,t),RO(e,s);else if(e){const l=aa(e),{traceId:c,spanId:f}=e.spanContext(),d=sc(e);s=iC({traceId:c,parentSpanId:f,...t},r,d),Bp(s,l)}else{const{traceId:l,dsc:c,parentSpanId:f,sampled:d}={...o.getPropagationContext(),...r.getPropagationContext()};s=iC({traceId:l,parentSpanId:f,...t},r,d),c&&Bp(s,c)}return IB(s,r,o),s}function IO(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=tl(e.startTime),delete r.startTime,r}return n}function JS(){const e=gl();return nc(e)}function iC(e,t,n){var b;const r=$t(),o=(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 c=l.parentSampled??n,f=l.spanAttributes,d=t.getPropagationContext(),[p,g,m]=t.getScopeData().sdkProcessingMetadata[MO]?[!1]:wH(o,{name:s,parentSampled:c,attributes:f,parentSampleRate:jf((b=d.dsc)==null?void 0:b.sample_rate)},d.sampleRand),y=new dm({...e,attributes:{[Hr]:"custom",[YS]:g!==void 0&&m?g:void 0,...f},sampled:p});return!p&&r&&r.recordDroppedEvent("sample_rate","transaction"),r&&r.emit("spanStart",y),y}function xH(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[MO]?!1:sc(e),l=s?new dm({...n,parentSpanId:r,traceId:o,sampled:s}):new la({traceId:o});RO(e,l);const c=$t();return c&&(c.emit("spanStart",l),n.endTimestamp&&c.emit("spanEnd",l)),l}function DO(e,t){if(t)return t;if(t===null)return;const n=pg(e);if(!n)return;const r=$t();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Ur(n):n}function _H(e){return e!==void 0?t=>ZS(e,t):t=>t()}const Hp={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},CH="heartbeatFailed",TH="idleTimeout",AH="finalTimeout",MH="externalFinish";function kO(e,t={}){const n=new Map;let r=!1,o,s=MH,l=!t.disableAutoFinish;const c=[],{idleTimeout:f=Hp.idleTimeout,finalTimeout:d=Hp.finalTimeout,childSpanTimeout:p=Hp.childSpanTimeout,beforeSpanEnd:g}=t,m=$t();if(!m||!sa()){const A=new la,O={sample_rate:"0",sampled:"false",...aa(A)};return Bp(A,O),A}const y=Jt(),b=Mr(),S=OH(e);S.end=new Proxy(S.end,{apply(A,O,k){if(g&&g(S),O instanceof la)return;const[D,...U]=k,L=D||hr(),j=tl(L),B=Fp(S).filter($=>$!==S);if(!B.length)return T(j),Reflect.apply(A,O,[j,...U]);const Y=B.map($=>Zt($).timestamp).filter($=>!!$),H=Y.length?Math.max(...Y):void 0,F=Zt(S).start_timestamp,V=Math.min(F?F+d/1e3:1/0,Math.max(F||-1/0,Math.min(j,H||1/0)));return T(V),Reflect.apply(A,O,[V,...U])}});function R(){o&&(clearTimeout(o),o=void 0)}function C(A){R(),o=setTimeout(()=>{!r&&n.size===0&&l&&(s=TH,S.end(A))},f)}function x(A){o=setTimeout(()=>{!r&&l&&(s=CH,S.end(A))},p)}function _(A){R(),n.set(A,!0);const O=hr();x(O+p/1e3)}function M(A){if(n.has(A)&&n.delete(A),n.size===0){const O=hr();C(O+f/1e3)}}function T(A){r=!0,n.clear(),c.forEach(j=>j()),zu(y,b);const O=Zt(S),{start_timestamp:k}=O;if(!k)return;O.data[gg]||S.setAttribute(gg,s),jS.log(`[Tracing] Idle span "${O.op}" finished`);const U=Fp(S).filter(j=>j!==S);let L=0;U.forEach(j=>{j.isRecording()&&(j.setStatus({code:$n,message:"cancelled"}),j.end(A));const B=Zt(j),{timestamp:Y=0,start_timestamp:H=0}=B,F=H<=A,V=(d+f)/1e3;(!(Y-H<=V)||!F)&&(QB(S,j),L++)}),L>0&&S.setAttribute("sentry.idle_span_discarded_spans",L)}return c.push(m.on("spanStart",A=>{if(r||A===S||Zt(A).timestamp||A instanceof dm&&A.isStandaloneSpan())return;Fp(S).includes(A)&&_(A.spanContext().spanId)})),c.push(m.on("spanEnd",A=>{r||M(A.spanContext().spanId)})),c.push(m.on("idleSpanEnableAutoFinish",A=>{A===S&&(l=!0,C(),n.size&&x())})),t.disableAutoFinish||C(),setTimeout(()=>{r||(S.setStatus({code:$n,message:"deadline_exceeded"}),s=AH,S.end())},d),S}function OH(e){const t=lc(e);return zu(Jt(),t),t}const _y=0,sC=1,aC=2;function cl(e){return new ua(t=>{t(e)})}function vg(e){return new ua((t,n)=>{n(e)})}class ua{constructor(t){this._state=_y,this._handlers=[],this._runExecutor(t)}then(t,n){return new ua((r,o)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(l){o(l)}},s=>{if(!n)o(s);else try{r(n(s))}catch(l){o(l)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ua((n,r)=>{let o,s;return this.then(l=>{s=!1,o=l,t&&t()},l=>{s=!0,o=l,t&&t()}).then(()=>{if(s){r(o);return}n(o)})})}_executeHandlers(){if(this._state===_y)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===sC&&n[1](this._value),this._state===aC&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,l)=>{if(this._state===_y){if(dd(l)){l.then(r,o);return}this._state=s,this._value=l,this._executeHandlers()}},r=s=>{n(sC,s)},o=s=>{n(aC,s)};try{t(r,o)}catch(s){o(s)}}}function yb(e,t,n,r=0){return new ua((o,s)=>{const l=e[r];if(t===null||typeof l!="function")o(t);else{const c=l({...t},n);dd(c)?c.then(f=>yb(e,f,n,r+1).then(o)).then(null,s):yb(e,c,n,r+1).then(o).then(null,s)}})}function IH(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=t;DH(e,t),r&&PH(e,r),NH(e,n),kH(e,o),LH(e,s)}function lC(e,t){const{extra:n,tags:r,user:o,contexts:s,level:l,sdkProcessingMetadata:c,breadcrumbs:f,fingerprint:d,eventProcessors:p,attachments:g,propagationContext:m,transactionName:y,span:b}=t;op(e,"extra",n),op(e,"tags",r),op(e,"user",o),op(e,"contexts",s),e.sdkProcessingMetadata=pd(e.sdkProcessingMetadata,c,2),l&&(e.level=l),y&&(e.transactionName=y),b&&(e.span=b),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 op(e,t,n){e[t]=pd(e[t],n,1)}function DH(e,t){const{extra:n,tags:r,user:o,contexts:s,level:l,transactionName:c}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),l&&(e.level=l),c&&e.type!=="transaction"&&(e.transaction=c)}function kH(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function LH(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function PH(e,t){e.contexts={trace:YB(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:aa(t),...e.sdkProcessingMetadata};const n=Ur(t),r=Zt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function NH(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 ip,uC,sp;function FH(e){const t=sn._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return sp&&n.length===uC||(uC=n.length,sp=n.reduce((r,o)=>{ip||(ip={});const s=ip[o];if(s)r[s[0]]=s[1];else{const l=e(o);for(let c=l.length-1;c>=0;c--){const f=l[c],d=f==null?void 0:f.filename,p=t[o];if(d&&p){r[d]=p,ip[o]=[d,p];break}}}return r},{})),sp}function BH(e,t,n,r,o,s){const{normalizeDepth:l=3,normalizeMaxBreadth:c=1e3}=e,f={...t,event_id:t.event_id||n.event_id||Ao(),timestamp:t.timestamp||ml()},d=n.integrations||e.integrations.map(R=>R.name);HH(f,e),VH(f,d),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&zH(f,e.stackParser);const p=qH(r,n.captureContext);n.mechanism&&Bu(f,n.mechanism);const g=o?o.getEventProcessors():[],m=CB().getScopeData();if(s){const R=s.getScopeData();lC(m,R)}if(p){const R=p.getScopeData();lC(m,R)}const y=[...n.attachments||[],...m.attachments];y.length&&(n.attachments=y),IH(f,m);const b=[...g,...m.eventProcessors];return yb(b,f,n).then(R=>(R&&UH(R),typeof l=="number"&&l>0?jH(R,l,c):R))}function HH(e,t){const{environment:n,release:r,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||QS,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);const l=e.request;l!=null&&l.url&&(l.url=hg(l.url,s))}function zH(e,t){var r,o;const n=FH(t);(o=(r=e.exception)==null?void 0:r.values)==null||o.forEach(s=>{var l,c;(c=(l=s.stacktrace)==null?void 0:l.frames)==null||c.forEach(f=>{f.filename&&(f.debug_id=n[f.filename])})})}function UH(e){var r,o;const t={};if((o=(r=e.exception)==null?void 0:r.values)==null||o.forEach(s=>{var l,c;(c=(l=s.stacktrace)==null?void 0:l.frames)==null||c.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 VH(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function jH(e,t,n){var o,s;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(l=>({...l,...l.data&&{data:Wi(l.data,t,n)}}))},...e.user&&{user:Wi(e.user,t,n)},...e.contexts&&{contexts:Wi(e.contexts,t,n)},...e.extra&&{extra:Wi(e.extra,t,n)}};return(o=e.contexts)!=null&&o.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Wi(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(l=>({...l,...l.data&&{data:Wi(l.data,t,n)}}))),(s=e.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=Wi(e.contexts.flags,3,n)),r}function qH(e,t){if(!t)return e;const n=e?e.clone():new Ei;return n.update(t),n}function $H(e){if(e)return GH(e)?{captureContext:e}:KH(e)?{captureContext:e}:e}function GH(e){return e instanceof Ei||typeof e=="function"}const YH=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function KH(e){return Object.keys(e).some(t=>YH.includes(t))}function LO(e,t){return Jt().captureException(e,$H(t))}function PO(e,t){return Jt().captureEvent(e,t)}function WH(e,t){ps().setContext(e,t)}function XH(){return ps().lastEventId()}function QH(){const e=$t();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function cC(e){const t=ps(),n=Jt(),{userAgent:r}=sn.navigator||{},o=mB({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),s=t.getSession();return(s==null?void 0:s.status)==="ok"&&Hu(s,{status:"exited"}),NO(),t.setSession(o),o}function NO(){const e=ps(),n=Jt().getSession()||e.getSession();n&&vB(n),FO(),e.setSession()}function FO(){const e=ps(),t=$t(),n=e.getSession();n&&t&&t.captureSession(n)}function fC(e=!1){if(e){NO();return}FO()}const ZH="7";function BO(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function JH(e){return`${BO(e)}${e.projectId}/envelope/`}function e7(e,t){const n={sentry_version:ZH};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function t7(e,t,n){return t||`${JH(e)}?${e7(e,n)}`}function n7(e,t){const n=vO(e);if(!n)return"";const r=`${BO(n)}embed/error-page/`;let o=`dsn=${ic(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const l=t.user;if(!l)continue;l.name&&(o+=`&name=${encodeURIComponent(l.name)}`),l.email&&(o+=`&email=${encodeURIComponent(l.email)}`)}else o+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${o}`}const dC=[];function r7(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function o7(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return r7(r)}function i7(e,t){const n={};return t.forEach(r=>{r&&HO(e,r,n)}),n}function hC(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function HO(e,t,n){if(!n[t.name]){if(n[t.name]=t,dC.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),dC.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",(o,s)=>r(o,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((s,l)=>r(s,l,e),{id:t.name});e.addEventProcessor(o)}}}function s7(e,t,n){const r=[{type:"client_report"},{timestamp:ml(),discarded_events:e}];return ac(t?{dsn:t}:{},[r])}function a7(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 l7(e){var f;const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:s,data:l,op:c}=((f=e.contexts)==null?void 0:f.trace)??{};return{data:l??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:l==null?void 0:l[KS],exclusive_time:l==null?void 0:l[oc],measurements:e.measurements,is_segment:!0}}function u7(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&&{[KS]:e.profile_id},...e.exclusive_time&&{[oc]:e.exclusive_time}}}},measurements:e.measurements}}const zO=Symbol.for("SentryInternalError"),UO=Symbol.for("SentryDoNotSendEventError");function zp(e){return{message:e,[zO]:!0}}function Cy(e){return{message:e,[UO]:!0}}function c7(e){return!!e&&typeof e=="object"&&zO in e}function f7(e){return!!e&&typeof e=="object"&&UO in e}class d7{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn&&(this._dsn=vO(t.dsn)),this._dsn){const n=t7(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 o=Ao();if($2(t))return o;const s={event_id:o,...n};return this._process(this.eventFromException(t,s).then(l=>this._captureEvent(l,s,r))),s.event_id}captureMessage(t,n,r,o){const s={event_id:Ao(),...r},l=qS(t)?t:String(t),c=Uf(t)?this.eventFromMessage(l,n,s):this.eventFromException(t,s);return this._process(c.then(f=>this._captureEvent(f,s,o))),s.event_id}captureEvent(t,n,r){const o=Ao();if(n!=null&&n.originalException&&$2(n.originalException))return o;const s={event_id:o,...n},l=t.sdkProcessingMetadata||{},c=l.capturedSpanScope,f=l.capturedSpanIsolationScope;return this._process(this._captureEvent(t,s,c||r,f)),s.event_id}captureSession(t){this.sendSession(t),Hu(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(o=>r&&o))):cl(!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];HO(this,t,this._integrations),n||hC(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=gH(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=oH(r,lH(s));const o=this.sendEnvelope(r);o&&o.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const{release:n,environment:r=QS}=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 o=pH(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const o=`${t}:${n}`;this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>n):cl({})}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=i7(this,t),hC(this,t)}_updateSessionFromEvent(t,n){var f;let r=n.level==="fatal",o=!1;const s=(f=n.exception)==null?void 0:f.values;if(s){o=!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)&&(Hu(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new ua(n=>{let r=0;const o=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=o,t&&r>=t&&(clearInterval(s),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){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||o.setLastEventId(t.event_id||n.event_id),BH(s,t,n,r,this,o).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:TB(r),...c.contexts};const f=CO(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:f,...c.sdkProcessingMetadata},c})}_captureEvent(t,n={},r=Jt(),o=ps()){return this._processEvent(t,n,r,o).then(s=>s.event_id,s=>{})}_processEvent(t,n,r,o){const s=this.getOptions(),{sampleRate:l}=s,c=jO(t),f=VO(t),d=t.type||"error",p=`before send for type \`${d}\``,g=typeof l>"u"?void 0:jf(l);if(f&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error"),vg(Cy(`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,o).then(y=>{if(y===null)throw this.recordDroppedEvent("event_processor",m),Cy("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return y;const S=p7(this,s,y,n);return h7(S,p)}).then(y=>{var R;if(y===null){if(this.recordDroppedEvent("before_send",m),c){const x=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",x)}throw Cy(`${p} returned \`null\`, will not send event.`)}const b=r.getSession()||o.getSession();if(f&&b&&this._updateSessionFromEvent(b,y),c){const C=((R=y.sdkProcessingMetadata)==null?void 0:R.spanCountBeforeProcessing)||0,x=y.spans?y.spans.length:0,_=C-x;_>0&&this.recordDroppedEvent("before_send","span",_)}const S=y.transaction_info;if(c&&S&&y.transaction!==t.transaction){const C="custom";y.transaction_info={...S,source:C}}return this.sendEvent(y,n),y}).then(null,y=>{throw f7(y)||c7(y)?y:(this.captureException(y,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:y}),zp(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
15
|
-
Reason: ${y}`))})}_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[o,s]=n.split(":");return{reason:o,category:s,quantity:r}})}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0||!this._dsn)return;const n=s7(t,this._options.tunnel&&ic(this._dsn));this.sendEnvelope(n)}}function h7(e,t){const n=`${t} must return \`null\` or a valid event.`;if(dd(e))return e.then(r=>{if(!Vf(r)&&r!==null)throw zp(n);return r},r=>{throw zp(`${t} rejected with ${r}`)});if(!Vf(e)&&e!==null)throw zp(n);return e}function p7(e,t,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:l,ignoreSpans:c}=t;let f=n;if(VO(f)&&o)return o(f,r);if(jO(f)){if(l||c){const d=l7(f);if(c!=null&&c.length&&vb(d,c))return null;if(l){const p=l(d);p?f=pd(n,u7(p)):pb()}if(f.spans){const p=[],g=f.spans;for(const y of g){if(c!=null&&c.length&&vb(y,c)){fH(g,y);continue}if(l){const b=l(y);b?p.push(b):(pb(),p.push(y))}else p.push(y)}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 VO(e){return e.type===void 0}function jO(e){return e.type==="transaction"}function g7(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function m7(e,t,n,r){const o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=ic(r)),ac(o,[g7(e)])}function Ty(e,t){const n=v7(e)??[];if(n.length===0)return;const r=e.getOptions(),o=m7(n,r._metadata,r.tunnel,e.getDsn());qO().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function v7(e){return qO().get(e)}function qO(){return lm("clientToLogBufferMap",()=>new WeakMap)}function y7(e,t){t.debug===!0&&um(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),Jt().update(t.initialScope);const r=new e(t);return b7(r),r.init(),r}function b7(e){Jt().setClient(e)}const $O=Symbol.for("SentryBufferFullError");function S7(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 o(l){if(!n())return vg($O);const c=l();return t.indexOf(c)===-1&&t.push(c),c.then(()=>r(c)).then(null,()=>r(c).then(null,()=>{})),c}function s(l){return new ua((c,f)=>{let d=t.length;if(!d)return c(!0);const p=setTimeout(()=>{l&&l>0&&c(!1)},l);t.forEach(g=>{cl(g).then(()=>{--d||(clearTimeout(p),c(!0))},f)})})}return{$:t,add:o,drain:s}}const E7=60*1e3;function w7(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?E7:r-t}function R7(e,t){return e[t]||e.all||0}function x7(e,t,n=Date.now()){return R7(e,t)>n}function _7(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},s=n==null?void 0:n["x-sentry-rate-limits"],l=n==null?void 0:n["retry-after"];if(s)for(const c of s.trim().split(",")){const[f,d,,,p]=c.split(":",5),g=parseInt(f,10),m=(isNaN(g)?60:g)*1e3;if(!d)o.all=r+m;else for(const y of d.split(";"))y==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(o[y]=r+m):o[y]=r+m}else l?o.all=r+w7(l,r):t===429&&(o.all=r+60*1e3);return o}const C7=64;function T7(e,t,n=S7(e.bufferSize||C7)){let r={};const o=l=>n.drain(l);function s(l){const c=[];if(J2(l,(g,m)=>{const y=eC(m);x7(r,y)?e.recordDroppedEvent("ratelimit_backoff",y):c.push(g)}),c.length===0)return cl({});const f=ac(l[0],c),d=g=>{J2(f,(m,y)=>{e.recordDroppedEvent(g,eC(y))})},p=()=>t({body:iH(f)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300),r=_7(r,g),g),g=>{throw d("network_error"),g});return n.add(p).then(g=>g,g=>{if(g===$O)return d("queue_overflow"),cl({});throw g})}return{send:s,flush:o}}const A7="thismessage:/";function GO(e){return"isRelative"in e}function YO(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?A7:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const o=new URL(e,r);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function M7(e){if(GO(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 O7(e){return e.split(/[?#]/,1)[0]}function I7(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 KO(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:el})),version:el}),e._metadata=o}function WO(e={}){const t=e.client||$t();if(!QH()||!t)return{};const n=gl(),r=nc(n);if(r.getTraceData)return r.getTraceData(e);const o=e.scope||Jt(),s=e.span||Mr(),l=s?KB(s):D7(o),c=s?aa(s):CO(t,o),f=LB(c);return yO.test(l)?{"sentry-trace":l,baggage:f}:(jS.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function D7(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return bO(t,r,n)}const k7=100;function fl(e,t){const n=$t(),r=ps();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=k7}=n.getOptions();if(s<=0)return;const c={timestamp:ml(),...e},f=o?um(()=>o(c,t)):c;f!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",f,t),r.addBreadcrumb(f,s))}let pC;const L7="FunctionToString",gC=new WeakMap,P7=()=>({name:L7,setupOnce(){pC=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=GS(this),n=gC.has($t())&&t!==void 0?t:this;return pC.apply(n,e)}}catch{}},setup(e){gC.set(e,!0)}}),N7=P7,F7=[/^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$/],B7="EventFilters",H7=(e={})=>{let t;return{name:B7,setup(n){const r=n.getOptions();t=mC(e,r)},processEvent(n,r,o){if(!t){const s=o.getOptions();t=mC(e,s)}return U7(n,t)?null:n}}},z7=(e={})=>({...H7(e),name:"InboundFilters"});function mC(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:F7],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function U7(e,t){if(e.type){if(e.type==="transaction"&&j7(e,t.ignoreTransactions))return!0}else if(V7(e,t.ignoreErrors)||Y7(e)||q7(e,t.denyUrls)||!$7(e,t.allowUrls))return!0;return!1}function V7(e,t){return t!=null&&t.length?a7(e).some(n=>ra(n,t)):!1}function j7(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?ra(n,t):!1}function q7(e,t){if(!(t!=null&&t.length))return!1;const n=XO(e);return n?ra(n,t):!1}function $7(e,t){if(!(t!=null&&t.length))return!0;const n=XO(e);return n?ra(n,t):!0}function G7(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 XO(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(s=>{var l,c,f;return((l=s.mechanism)==null?void 0:l.parent_id)===void 0&&((f=(c=s.stacktrace)==null?void 0:c.frames)==null?void 0:f.length)}),o=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return o?G7(o):null}catch{return null}}function Y7(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 K7(e,t,n,r,o,s){var c;if(!((c=o.exception)!=null&&c.values)||!s||!ls(s.originalException,Error))return;const l=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;l&&(o.exception.values=bb(e,t,r,s.originalException,n,o.exception.values,l,0))}function bb(e,t,n,r,o,s,l,c){if(s.length>=n+1)return s;let f=[...s];if(ls(r[o],Error)){vC(l,c);const d=e(t,r[o]),p=f.length;yC(d,o,p,c),f=bb(e,t,n,r[o],o,[d,...f],d,p)}return Array.isArray(r.errors)&&r.errors.forEach((d,p)=>{if(ls(d,Error)){vC(l,c);const g=e(t,d),m=f.length;yC(g,`errors[${p}]`,m,c),f=bb(e,t,n,d,o,[g,...f],g,m)}}),f}function vC(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 yC(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 W7(e){const t="console";ma(t,e),va(t,X7)}function X7(){"console"in sn&&YF.forEach(function(e){e in sn.console&&oo(sn.console,e,function(t){return dg[e]=t,function(...n){To("console",{args:n,level:e});const o=dg[e];o==null||o.apply(sn.console,n)}})})}function Q7(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Z7="Dedupe",J7=()=>{let e;return{name:Z7,processEvent(t){if(t.type)return t;try{if(tz(t,e))return GF&&jS.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},ez=J7;function tz(e,t){return t?!!(nz(e,t)||rz(e,t)):!1}function nz(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ZO(e,t)||!QO(e,t))}function rz(e,t){const n=bC(t),r=bC(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ZO(e,t)||!QO(e,t))}function QO(e,t){let n=H2(e),r=H2(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const s=r[o],l=n[o];if(s.filename!==l.filename||s.lineno!==l.lineno||s.colno!==l.colno||s.function!==l.function)return!1}return!0}function ZO(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 bC(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function oz(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;const{method:s,url:l}=e.fetchData,c=sa()&&t(l);if(e.endTimestamp&&c){const g=e.fetchData.__span;if(!g)return;const m=r[g];m&&(sz(m,e),delete r[g]);return}const f=!!Mr(),d=c&&f?lc(lz(l,s,o)):new la;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]||{},y=iz(g,m,sa()&&f?d:void 0);y&&(e.args[1]=m,m.headers=y)}const p=$t();if(p){const g={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,g)}return d}function iz(e,t,n){const r=WO({span:n}),o=r["sentry-trace"],s=r.baggage;if(!o)return;const l=t.headers||(oO(e)?e.headers:void 0);if(l)if(az(l)){const c=new Headers(l);if(c.get("sentry-trace")||c.set("sentry-trace",o),s){const f=c.get("baggage");f?ap(f)||c.set("baggage",`${f},${s}`):c.set("baggage",s)}return c}else if(Array.isArray(l)){const c=[...l];l.find(d=>d[0]==="sentry-trace")||c.push(["sentry-trace",o]);const f=l.find(d=>d[0]==="baggage"&&ap(d[1]));return s&&!f&&c.push(["baggage",s]),c}else{const c="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=>ap(g)):ap(f));return s&&!p&&d.push(s),{...l,"sentry-trace":c??o,baggage:d.length>0?d.join(","):void 0}}else return{...r}}function sz(e,t){var n,r;if(t.response){dO(e,t.response.status);const o=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(o){const s=parseInt(o);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:$n,message:"internal_error"});e.end()}function ap(e){return e.split(",").some(t=>t.trim().startsWith(WS))}function az(e){return typeof Headers<"u"&&ls(e,Headers)}function lz(e,t,n){const r=YO(e);return{name:r?`${t} ${M7(r)}`:t,attributes:uz(e,r,t,n)}}function uz(e,t,n,r){const o={url:e,type:"fetch","http.method":n,[Nn]:r,[Go]:"http.client"};return t&&(GO(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function JO(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const qf=sn;function cz(){return"history"in qf&&!!qf.history}function fz(){if(!("fetch"in qf))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Sb(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function dz(){var n;if(typeof EdgeRuntime=="string")return!0;if(!fz())return!1;if(Sb(qf.fetch))return!0;let e=!1;const t=qf.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=Sb(r.contentWindow.fetch)),t.head.removeChild(r)}catch{}return e}function e6(e,t){const n="fetch";ma(n,e),va(n,()=>t6(void 0,t))}function hz(e){const t="fetch-body-resolved";ma(t,e),va(t,()=>t6(gz))}function t6(e,t=!1){t&&!dz()||oo(sn,"fetch",function(n){return function(...r){const o=new Error,{method:s,url:l}=mz(r),c={args:r,fetchData:{method:s,url:l},startTimestamp:hr()*1e3,virtualError:o,headers:vz(r)};return e||To("fetch",{...c}),n.apply(sn,r).then(async f=>(e?e(f):To("fetch",{...c,endTimestamp:hr()*1e3,response:f}),f),f=>{if(To("fetch",{...c,endTimestamp:hr()*1e3,error:f}),cm(f)&&f.stack===void 0&&(f.stack=o.stack,Ar(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(c.fetchData.url);f.message=`${f.message} (${d.host})`}catch{}throw f})}})}async function pz(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let l;try{l=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(l),c&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(l)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function gz(e){let t;try{t=e.clone()}catch{return}pz(t,()=>{To("fetch-body-resolved",{endTimestamp:hr()*1e3,response:e})})}function Eb(e,t){return!!e&&typeof e=="object"&&!!e[t]}function SC(e){return typeof e=="string"?e:e?Eb(e,"url")?e.url:e.toString?e.toString():"":""}function mz(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:SC(n),method:Eb(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:SC(t),method:Eb(t,"method")?String(t.method).toUpperCase():"GET"}}function vz(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(oO(t))return new Headers(t.headers)}catch{}}function yz(){return"npm"}const Tt=sn;let wb=0;function n6(){return wb>0}function bz(){wb++,setTimeout(()=>{wb--})}function Vu(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(GS(e))return e}catch{return e}const r=function(...o){try{const s=o.map(l=>Vu(l,t));return e.apply(this,s)}catch(s){throw bz(),rc(l=>{l.addEventProcessor(c=>(t.mechanism&&(fb(c,void 0),Bu(c,t.mechanism)),c.extra={...c.extra,arguments:o},c)),LO(s)}),s}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}sO(r,e),Ar(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function eE(){const e=hd(),{referrer:t}=Tt.document||{},{userAgent:n}=Tt.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function tE(e,t){const n=nE(e,t),r={type:xz(t),value:_z(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Sz(e,t,n,r){const o=$t(),s=o==null?void 0:o.getOptions().normalizeDepth,l=Oz(t),c={__serialized__:TO(t,s)};if(l)return{exception:{values:[tE(e,l)]},extra:c};const f={exception:{values:[{type:fm(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Az(t,{isUnhandledRejection:r})}]},extra:c};if(n){const d=nE(e,n);d.length&&(f.exception.values[0].stacktrace={frames:d})}return f}function Ay(e,t){return{exception:{values:[tE(e,t)]}}}function nE(e,t){const n=t.stacktrace||t.stack||"",r=wz(t),o=Rz(t);try{return e(n,r,o)}catch{}return[]}const Ez=/Minified React error #\d+;/i;function wz(e){return e&&Ez.test(e.message)?1:0}function Rz(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function r6(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function xz(e){const t=e==null?void 0:e.name;return!t&&r6(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function _z(e){const t=e==null?void 0:e.message;return r6(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 Cz(e,t,n,r){const o=(n==null?void 0:n.syntheticException)||void 0,s=rE(e,t,o,r);return Bu(s),s.level="error",n!=null&&n.event_id&&(s.event_id=n.event_id),cl(s)}function Tz(e,t,n="info",r,o){const s=(r==null?void 0:r.syntheticException)||void 0,l=Rb(e,t,s,o);return l.level=n,r!=null&&r.event_id&&(l.event_id=r.event_id),cl(l)}function rE(e,t,n,r,o){let s;if(nO(t)&&t.error)return Ay(e,t.error);if(U2(t)||oB(t)){const l=t;if("stack"in t)s=Ay(e,t);else{const c=l.name||(U2(l)?"DOMError":"DOMException"),f=l.message?`${c}: ${l.message}`:c;s=Rb(e,f,n,r),fb(s,f)}return"code"in l&&(s.tags={...s.tags,"DOMException.code":`${l.code}`}),s}return cm(t)?Ay(e,t):Vf(t)||fm(t)?(s=Sz(e,t,n,o),Bu(s,{synthetic:!0}),s):(s=Rb(e,t,n,r),fb(s,`${t}`),Bu(s,{synthetic:!0}),s)}function Rb(e,t,n,r){const o={};if(r&&n){const s=nE(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),Bu(o,{synthetic:!0})}if(qS(t)){const{__sentry_template_string__:s,__sentry_template_values__:l}=t;return o.logentry={message:s,params:l},o}return o.message=t,o}function Az(e,{isUnhandledRejection:t}){const n=cB(e),r=t?"promise rejection":"exception";return nO(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:fm(e)?`Event \`${Mz(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Mz(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Oz(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const Iz=5e3;class Dz extends d7{constructor(t){var c;const n=kz(t),r=Tt.SENTRY_SDK_SOURCE||yz();KO(n,"browser",["browser"],r),(c=n._metadata)!=null&&c.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:o,sendClientReports:s,enableLogs:l}=this._options;Tt.document&&(s||l)&&Tt.document.addEventListener("visibilitychange",()=>{Tt.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),l&&Ty(this))}),l&&(this.on("flush",()=>{Ty(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Ty(this)},Iz)})),o&&this.on("beforeSendSession",I7)}eventFromException(t,n){return Cz(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Tz(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}}function kz(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Tt.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const ut=sn,Lz=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",yd=(e,t,n,r)=>{let o,s;return l=>{t.value>=0&&(l||r)&&(s=t.value-(o??0),(s||o===void 0)&&(o=t.value,t.delta=s,t.rating=Lz(t.value,n),e(t)))}},Pz=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,bd=(e=!0)=>{var n,r;const t=(r=(n=ut.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},uc=()=>{const e=bd();return(e==null?void 0:e.activationStart)??0},Sd=(e,t=-1)=>{var s,l;const n=bd();let r="navigate";return n&&((s=ut.document)!=null&&s.prerendering||uc()>0?r="prerender":(l=ut.document)!=null&&l.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Pz(),navigationType:r}},My=new WeakMap;function oE(e,t){return My.get(e)||My.set(e,new t),My.get(e)}class yg{constructor(){yg.prototype.__init.call(this),yg.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var o;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]),(o=this._onAfterProcessingUnexpectedShift)==null||o.call(this,t)}}const cc=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},iE=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Af=-1;const Nz=()=>{var e,t;return((e=ut.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=ut.document)!=null&&t.prerendering)?0:1/0},bg=e=>{ut.document.visibilityState==="hidden"&&Af>-1&&(Af=e.type==="visibilitychange"?e.timeStamp:0,Bz())},Fz=()=>{addEventListener("visibilitychange",bg,!0),addEventListener("prerenderingchange",bg,!0)},Bz=()=>{removeEventListener("visibilitychange",bg,!0),removeEventListener("prerenderingchange",bg,!0)},sE=()=>{var e;if(ut.document&&Af<0){const t=uc();Af=(ut.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??Nz(),Fz()}return{get firstHiddenTime(){return Af}}},hm=e=>{var t;(t=ut.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Hz=[1800,3e3],zz=(e,t={})=>{hm(()=>{const n=sE(),r=Sd("FCP");let o;const l=cc("paint",c=>{for(const f of c)f.name==="first-contentful-paint"&&(l.disconnect(),f.startTime<n.firstHiddenTime&&(r.value=Math.max(f.startTime-uc(),0),r.entries.push(f),o(!0)))});l&&(o=yd(e,r,Hz,t.reportAllChanges))})},Uz=[.1,.25],Vz=(e,t={})=>{zz(iE(()=>{var c,f;const n=Sd("CLS",0);let r;const o=oE(t,yg),s=d=>{for(const p of d)o._processEntry(p);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},l=cc("layout-shift",s);l&&(r=yd(e,n,Uz,t.reportAllChanges),(c=ut.document)==null||c.addEventListener("visibilitychange",()=>{var d;((d=ut.document)==null?void 0:d.visibilityState)==="hidden"&&(s(l.takeRecords()),r(!0))}),(f=ut==null?void 0:ut.setTimeout)==null||f.call(ut,r))}))};let o6=0,Oy=1/0,lp=0;const jz=e=>{e.forEach(t=>{t.interactionId&&(Oy=Math.min(Oy,t.interactionId),lp=Math.max(lp,t.interactionId),o6=lp?(lp-Oy)/7+1:0)})};let xb;const i6=()=>xb?o6:performance.interactionCount||0,qz=()=>{"interactionCount"in performance||xb||(xb=cc("event",jz,{type:"event",buffered:!0,durationThreshold:0}))},Iy=10;let s6=0;const $z=()=>i6()-s6;class Sg{constructor(){Sg.prototype.__init.call(this),Sg.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){s6=i6(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor($z()/50));return this._longestInteractionList[t]}_processEntry(t){var o,s;if((o=this._onBeforeProcessingEntry)==null||o.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<Iy||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,c)=>c._latency-l._latency),this._longestInteractionList.length>Iy){const l=this._longestInteractionList.splice(Iy);for(const c of l)this._longestInteractionMap.delete(c.id)}(s=this._onAfterProcessingINPCandidate)==null||s.call(this,r)}}}const aE=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=ut.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};ut.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},a6=e=>{var n;const t=ut.requestIdleCallback||ut.setTimeout;((n=ut.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=iE(e),t(e),aE(e))},Gz=[200,500],Yz=40,Kz=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&hm(()=>{qz();const n=Sd("INP");let r;const o=oE(t,Sg),s=c=>{a6(()=>{for(const d of c)o._processEntry(d);const f=o._estimateP98LongestInteraction();f&&f._latency!==n.value&&(n.value=f._latency,n.entries=f.entries,r())})},l=cc("event",s,{durationThreshold:t.durationThreshold??Yz});r=yd(e,n,Gz,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),aE(()=>{s(l.takeRecords()),r(!0)}))})};class Wz{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const Xz=[2500,4e3],Qz=(e,t={})=>{hm(()=>{const n=sE(),r=Sd("LCP");let o;const s=oE(t,Wz),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-uc(),0),r.entries=[d],o())},c=cc("largest-contentful-paint",l);if(c){o=yd(e,r,Xz,t.reportAllChanges);const f=iE(()=>{l(c.takeRecords()),c.disconnect(),o(!0)});for(const d of["keydown","click","visibilitychange"])ut.document&&addEventListener(d,()=>a6(f),{capture:!0,once:!0})}})},Zz=[800,1800],_b=e=>{var t,n;(t=ut.document)!=null&&t.prerendering?hm(()=>_b(e)):((n=ut.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>_b(e),!0):setTimeout(e)},Jz=(e,t={})=>{const n=Sd("TTFB"),r=yd(e,n,Zz,t.reportAllChanges);_b(()=>{const o=bd();o&&(n.value=Math.max(o.responseStart-uc(),0),n.entries=[o],r(!0))})},Mf={},Eg={};let l6,u6,c6,f6;function d6(e,t=!1){return pm("cls",e,nU,l6,t)}function h6(e,t=!1){return pm("lcp",e,rU,u6,t)}function eU(e){return pm("ttfb",e,oU,c6)}function tU(e){return pm("inp",e,iU,f6)}function ju(e,t){return p6(e,t),Eg[e]||(sU(e),Eg[e]=!0),g6(e,t)}function Ed(e,t){const n=Mf[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch{}}function nU(){return Vz(e=>{Ed("cls",{metric:e}),l6=e},{reportAllChanges:!0})}function rU(){return Qz(e=>{Ed("lcp",{metric:e}),u6=e},{reportAllChanges:!0})}function oU(){return Jz(e=>{Ed("ttfb",{metric:e}),c6=e})}function iU(){return Kz(e=>{Ed("inp",{metric:e}),f6=e})}function pm(e,t,n,r,o=!1){p6(e,t);let s;return Eg[e]||(s=n(),Eg[e]=!0),r&&t({metric:r}),g6(e,t,o?s:void 0)}function sU(e){const t={};e==="event"&&(t.durationThreshold=0),cc(e,n=>{Ed(e,{entries:n})},t)}function p6(e,t){Mf[e]=Mf[e]||[],Mf[e].push(t)}function g6(e,t,n){return()=>{n&&n();const r=Mf[e];if(!r)return;const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function aU(e){return"duration"in e}function Dy(e){return typeof e=="number"&&isFinite(e)}function ca(e,t,n,{...r}){const o=Zt(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),ZS(e,()=>{const s=lc({startTime:t,...r});return s&&s.end(n),s})}function lE(e){var R;const t=$t();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:s}=e,{release:l,environment:c,sendDefaultPii:f}=t.getOptions(),d=t.getIntegrationByName("Replay"),p=d==null?void 0:d.getReplayId(),g=Jt(),m=g.getUser(),y=m!==void 0?m.email||m.id||m.ip_address:void 0;let b;try{b=g.getScopeData().contexts.profile.profile_id}catch{}const S={release:l,environment:c,user:y||void 0,profile_id:b||void 0,replay_id:p||void 0,transaction:r,"user_agent.original":(R=ut.navigator)==null?void 0:R.userAgent,"client.address":f?"{{auto}}":void 0,...o};return lc({name:n,attributes:S,startTime:s,experimental:{standalone:!0}})}function gm(){return ut.addEventListener&&ut.performance}function Mn(e){return e/1e3}function m6(e){let t="unknown",n="unknown",r="";for(const o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function v6(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function y6(e,t){let n,r=!1;function o(c){!r&&n&&t(c,n),r=!0}aE(()=>{o("pagehide")});const s=e.on("beforeStartNavigationSpan",(c,f)=>{f!=null&&f.isRedirect||(o("navigation"),EC(s,l))}),l=e.on("afterStartPageLoadSpan",c=>{n=c.spanContext().spanId,EC(l)})}function EC(...e){e.forEach(t=>t&&setTimeout(t,0))}function lU(e){let t=0,n;if(!v6("layout-shift"))return;const r=d6(({metric:o})=>{const s=o.entries[o.entries.length-1];s&&(t=o.value,n=s)},!0);y6(e,(o,s)=>{uU(t,n,s,o),r()})}function uU(e,t,n,r){var d;const o=Mn((uo()||0)+((t==null?void 0:t.startTime)||0)),s=Jt().getScopeData().transactionName,l=t?Si((d=t.sources[0])==null?void 0:d.node):"Layout shift",c={[Nn]:"auto.http.browser.cls",[Go]:"ui.webvital.cls",[oc]:(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)=>{c[`cls.source.${g+1}`]=Si(p.node)});const f=lE({name:l,transaction:s,attributes:c,startTime:o});f&&(f.addEvent("cls",{[md]:"",[vd]:e}),f.end(o))}function cU(e){let t=0,n;if(!v6("largest-contentful-paint"))return;const r=h6(({metric:o})=>{const s=o.entries[o.entries.length-1];s&&(t=o.value,n=s)},!0);y6(e,(o,s)=>{fU(t,n,s,o),r()})}function fU(e,t,n,r){const o=Mn((uo()||0)+((t==null?void 0:t.startTime)||0)),s=Jt().getScopeData().transactionName,l=t?Si(t.element):"Largest contentful paint",c={[Nn]:"auto.http.browser.lcp",[Go]:"ui.webvital.lcp",[oc]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=Si(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(c["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(c["lcp.renderTime"]=t.renderTime),t.size!=null&&(c["lcp.size"]=t.size));const f=lE({name:l,transaction:s,attributes:c,startTime:o});f&&(f.addEvent("lcp",{[md]:"millisecond",[vd]:e}),f.end(o))}const dU=2147483647;let wC=0,Uo={},Nr,iu;function hU({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=gm();if(r&&uo()){r.mark&&ut.performance.mark("sentry-tracing-init");const o=t?cU(n):yU(),s=bU(),l=e?lU(n):vU();return()=>{o==null||o(),s(),l==null||l()}}return()=>{}}function pU(){ju("longtask",({entries:e})=>{const t=Mr();if(!t)return;const{op:n,start_timestamp:r}=Zt(t);for(const o of e){const s=Mn(uo()+o.startTime),l=Mn(o.duration);n==="navigation"&&r&&s<r||ca(t,s,s+l,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Nn]:"auto.ui.browser.metrics"}})}})}function gU(){new PerformanceObserver(t=>{const n=Mr();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const o=Mn(uo()+r.startTime),{start_timestamp:s,op:l}=Zt(n);if(l==="navigation"&&s&&o<s)continue;const c=Mn(r.duration),f={[Nn]:"auto.ui.browser.metrics"},d=r.scripts[0],{invoker:p,invokerType:g,sourceURL:m,sourceFunctionName:y,sourceCharPosition:b}=d;f["browser.script.invoker"]=p,f["browser.script.invoker_type"]=g,m&&(f["code.filepath"]=m),y&&(f["code.function"]=y),b!==-1&&(f["browser.script.source_char_position"]=b),ca(n,o,o+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}).observe({type:"long-animation-frame",buffered:!0})}function mU(){ju("event",({entries:e})=>{const t=Mr();if(t){for(const n of e)if(n.name==="click"){const r=Mn(uo()+n.startTime),o=Mn(n.duration),s={name:Si(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Nn]:"auto.ui.browser.metrics"}},l=iO(n.target);l&&(s.attributes["ui.component_name"]=l),ca(t,r,r+o,s)}}})}function vU(){return d6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Uo.cls={value:e.value,unit:""},iu=t)},!0)}function yU(){return h6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Uo.lcp={value:e.value,unit:"millisecond"},Nr=t)},!0)}function bU(){return eU(({metric:e})=>{e.entries[e.entries.length-1]&&(Uo.ttfb={value:e.value,unit:"millisecond"})})}function SU(e,t){const n=gm(),r=uo();if(!(n!=null&&n.getEntries)||!r)return;const o=Mn(r),s=n.getEntries(),{op:l,start_timestamp:c}=Zt(e);s.slice(wC).forEach(f=>{const d=Mn(f.startTime),p=Mn(Math.max(0,f.duration));if(!(l==="navigation"&&c&&o+d<c))switch(f.entryType){case"navigation":{RU(e,f,o);break}case"mark":case"paint":case"measure":{EU(e,f,d,p,o,t.ignorePerformanceApiSpans);const g=sE(),m=f.startTime<g.firstHiddenTime;f.name==="first-paint"&&m&&(Uo.fp={value:f.startTime,unit:"millisecond"}),f.name==="first-contentful-paint"&&m&&(Uo.fcp={value:f.startTime,unit:"millisecond"});break}case"resource":{CU(e,f,f.name,d,p,o,t.ignoreResourceSpans);break}}}),wC=Math.max(s.length-1,0),TU(e),l==="pageload"&&(MU(Uo),t.recordClsOnPageloadSpan||delete Uo.cls,t.recordLcpOnPageloadSpan||delete Uo.lcp,Object.entries(Uo).forEach(([f,d])=>{vH(f,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",uc()),AU(e,t)),Nr=void 0,iu=void 0,Uo={}}function EU(e,t,n,r,o,s){if(["mark","measure"].includes(t.entryType)&&ra(t.name,s))return;const l=bd(!1),c=Mn(l?l.requestStart:0),f=o+Math.max(n,c),d=o+n,p=d+r,g={[Nn]:"auto.resource.browser.metrics"};f!==d&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=f),wU(g,t),f<=p&&ca(e,f,p,{name:t.name,op:t.entryType,attributes:g})}function wU(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,o]of Object.entries(n))if(o&&Uf(o))e[`sentry.browser.measure.detail.${r}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(o)}catch{}return}if(Uf(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function RU(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{up(e,t,r,n)}),up(e,t,"secureConnection",n,"TLS/SSL"),up(e,t,"fetch",n,"cache"),up(e,t,"domainLookup",n,"DNS"),_U(e,t,n)}function up(e,t,n,r,o=n){const s=xU(n),l=t[s],c=t[`${n}Start`];!c||!l||ca(e,r+Mn(c),r+Mn(l),{op:`browser.${o}`,name:t.name,attributes:{[Nn]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function xU(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function _U(e,t,n){const r=n+Mn(t.requestStart),o=n+Mn(t.responseEnd),s=n+Mn(t.responseStart);t.responseEnd&&(ca(e,r,o,{op:"browser.request",name:t.name,attributes:{[Nn]:"auto.ui.browser.metrics"}}),ca(e,s,o,{op:"browser.response",name:t.name,attributes:{[Nn]:"auto.ui.browser.metrics"}}))}function CU(e,t,n,r,o,s,l){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(l!=null&&l.includes(c))return;const f=rl(n),d={[Nn]:"auto.resource.browser.metrics"};ky(d,t,"transferSize","http.response_transfer_size"),ky(d,t,"encodedBodySize","http.response_content_length"),ky(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(ut.location.origin),t.nextHopProtocol!=null){const{name:b,version:S}=m6(t.nextHopProtocol);d["network.protocol.name"]=b,d["network.protocol.version"]=S}const m=s+r,y=m+o;ca(e,m,y,{name:n.replace(ut.location.origin,""),op:c,attributes:d})}function TU(e){const t=ut.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Dy(n.rtt)&&(Uo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Dy(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Dy(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function AU(e,t){Nr&&t.recordLcpOnPageloadSpan&&(Nr.element&&e.setAttribute("lcp.element",Si(Nr.element)),Nr.id&&e.setAttribute("lcp.id",Nr.id),Nr.url&&e.setAttribute("lcp.url",Nr.url.trim().slice(0,200)),Nr.loadTime!=null&&e.setAttribute("lcp.loadTime",Nr.loadTime),Nr.renderTime!=null&&e.setAttribute("lcp.renderTime",Nr.renderTime),e.setAttribute("lcp.size",Nr.size)),iu!=null&&iu.sources&&t.recordClsOnPageloadSpan&&iu.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,Si(n.node)))}function ky(e,t,n,r){const o=t[n];o!=null&&o<dU&&(e[r]=o)}function MU(e){const t=bd(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function OU(){return gm()&&uo()?ju("element",IU):()=>{}}const IU=({entries:e})=>{const t=Mr(),n=t?Ur(t):void 0,r=n?Zt(n).description:Jt().getScopeData().transactionName;e.forEach(o=>{var y,b;const s=o;if(!s.identifier)return;const l=s.name,c=s.renderTime,f=s.loadTime,[d,p]=f?[Mn(f),"load-time"]:c?[Mn(c),"render-time"]:[hr(),"entry-emission"],g=l==="image-paint"?Mn(Math.max(0,(c??0)-(f??0))):0,m={[Nn]:"auto.ui.browser.elementtiming",[Go]:"ui.elementtiming",[Hr]:"component","sentry.span_start_time_source":p,"sentry.transaction_name":r,"element.id":s.id,"element.type":((b=(y=s.element)==null?void 0:y.tagName)==null?void 0:b.toLowerCase())||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":c,"element.load_time":f,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":l};RH({name:`element[${s.identifier}]`,attributes:m,startTime:d,onlyIfParent:!0},S=>{S.end(d+g)})})},DU=1e3;let RC,Cb,Tb;function kU(e){const t="dom";ma(t,e),va(t,LU)}function LU(){if(!ut.document)return;const e=To.bind(null,"dom"),t=xC(e,!0);ut.document.addEventListener("click",t,!1),ut.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var s,l;const o=(s=ut[n])==null?void 0:s.prototype;(l=o==null?void 0:o.hasOwnProperty)!=null&&l.call(o,"addEventListener")&&(oo(o,"addEventListener",function(c){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 y=xC(e);m.handler=y,c.call(this,f,y,p)}m.refCount++}catch{}return c.call(this,f,d,p)}}),oo(o,"removeEventListener",function(c){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&&(c.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 c.call(this,f,d,p)}}))})}function PU(e){if(e.type!==Cb)return!1;try{if(!e.target||e.target._sentryId!==Tb)return!1}catch{}return!0}function NU(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function xC(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=FU(n);if(NU(n.type,r))return;Ar(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ar(r,"_sentryId",Ao());const o=n.type==="keypress"?"input":n.type;PU(n)||(e({event:n,name:o,global:t}),Cb=n.type,Tb=r?r._sentryId:void 0),clearTimeout(RC),RC=ut.setTimeout(()=>{Tb=void 0,Cb=void 0},DU)}}function FU(e){try{return e.target}catch{return null}}let cp;function uE(e){const t="history";ma(t,e),va(t,BU)}function BU(){if(ut.addEventListener("popstate",()=>{const t=ut.location.href,n=cp;if(cp=t,n===t)return;To("history",{from:n,to:t})}),!cz())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const o=cp,s=HU(String(r));if(cp=s,o===s)return t.apply(this,n);To("history",{from:o,to:s})}return t.apply(this,n)}}oo(ut.history,"pushState",e),oo(ut.history,"replaceState",e)}function HU(e){try{return new URL(e,ut.location.origin).toString()}catch{return e}}const Up={};function zU(e){const t=Up[e];if(t)return t;let n=ut[e];if(Sb(n))return Up[e]=n.bind(ut);const r=ut.document;if(r&&typeof r.createElement=="function")try{const o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);const s=o.contentWindow;s!=null&&s[e]&&(n=s[e]),r.head.removeChild(o)}catch{}return n&&(Up[e]=n.bind(ut))}function _C(e){Up[e]=void 0}const su="__sentry_xhr_v3__";function b6(e){const t="xhr";ma(t,e),va(t,UU)}function UU(){if(!ut.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const o=new Error,s=hr()*1e3,l=os(r[0])?r[0].toUpperCase():void 0,c=VU(r[1]);if(!l||!c)return t.apply(n,r);n[su]={method:l,url:c,request_headers:{}},l==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const f=()=>{const d=n[su];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const p={endTimestamp:hr()*1e3,startTimestamp:s,xhr:n,virtualError:o};To("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,y]=g,b=p[su];return b&&os(m)&&os(y)&&(b.request_headers[m.toLowerCase()]=y),d.apply(p,g)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const o=n[su];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);const s={startTimestamp:hr()*1e3,xhr:n};return To("xhr",s),t.apply(n,r)}})}function VU(e){if(os(e))return e;try{return e.toString()}catch{}}const Ly=[],Vp=new Map,jU=60;function qU(){if(gm()&&uo()){const t=$U();return()=>{t()}}return()=>{}}const CC={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 $U(){return tU(GU)}const GU=({metric:e})=>{if(e.value==null)return;const t=Mn(e.value);if(t>jU)return;const n=e.entries.find(b=>b.duration===e.value&&CC[b.name]);if(!n)return;const{interactionId:r}=n,o=CC[n.name],s=Mn(uo()+n.startTime),l=Mr(),c=l?Ur(l):void 0,d=(r!=null?Vp.get(r):void 0)||c,p=d?Zt(d).description:Jt().getScopeData().transactionName,g=Si(n.target),m={[Nn]:"auto.http.browser.inp",[Go]:`ui.interaction.${o}`,[oc]:n.duration},y=lE({name:g,transaction:p,attributes:m,startTime:s});y&&(y.addEvent("inp",{[md]:"millisecond",[vd]:e.value}),y.end(s+t))};function YU(){const e=({entries:t})=>{const n=Mr(),r=n&&Ur(n);t.forEach(o=>{if(!aU(o)||!r)return;const s=o.interactionId;if(s!=null&&!Vp.has(s)){if(Ly.length>10){const l=Ly.shift();Vp.delete(l)}Ly.push(s),Vp.set(s,r)}})};ju("event",e),ju("first-input",e)}function KU(e,t=zU("fetch")){let n=0,r=0;function o(s){const l=s.body.length;n+=l,r++;const c={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return _C("fetch"),vg("No fetch implementation available");try{return t(e.url,c).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 _C("fetch"),n-=l,r--,vg(f)}}return T7(e,o)}const WU=30,XU=50;function Ab(e,t,n,r){const o={filename:e,function:t==="<anonymous>"?ll:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const QU=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ZU=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,JU=/\((\S*)(?::(\d+))(?::(\d+))\)/,eV=/at (.+?) ?\(data:(.+?),/,tV=e=>{const t=e.match(eV);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=QU.exec(e);if(n){const[,o,s,l]=n;return Ab(o,ll,+s,+l)}const r=ZU.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const c=JU.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[s,l]=S6(r[1]||ll,r[2]);return Ab(l,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},nV=[WU,tV],rV=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,oV=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,iV=e=>{const t=rV.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=oV.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],o=t[1]||ll;return[o,r]=S6(o,r),Ab(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},sV=[XU,iV],aV=[nV,sV],lV=Z4(...aV),S6=(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]:ll,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},TC=1024,uV="Breadcrumbs",cV=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:uV,setup(n){t.console&&W7(pV(n)),t.dom&&kU(hV(n,t.dom)),t.xhr&&b6(gV(n)),t.fetch&&e6(mV(n)),t.history&&uE(vV(n)),t.sentry&&n.on("beforeSendEvent",dV(n))}}},fV=cV;function dV(e){return function(n){$t()===e&&fl({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:dB(n)},{event:n})}}function hV(e,t){return function(r){if($t()!==e)return;let o,s,l=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>TC&&(c=TC),typeof l=="string"&&(l=[l]);try{const d=r.event,p=yV(d)?d.target:d;o=Si(p,{keyAttrs:l,maxStringLength:c}),s=iO(p)}catch{o="<unknown>"}if(o.length===0)return;const f={category:`ui.${r.name}`,message:o};s&&(f.data={"ui.component_name":s}),fl(f,{event:r.event,name:r.name,global:r.global})}}function pV(e){return function(n){if($t()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Q7(n.level),message:V2(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${V2(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;fl(r,{input:n.args,level:n.level})}}function gV(e){return function(n){if($t()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,s=n.xhr[su];if(!r||!o||!s)return;const{method:l,url:c,status_code:f,body:d}=s,p={method:l,url:c,status_code:f},g={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:o},m={category:"xhr",data:p,type:"http",level:JO(f)};e.emit("beforeOutgoingRequestBreadcrumb",m,g),fl(m,g)}}function mV(e){return function(n){if($t()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(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:o},c={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,l),fl(c,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 c={input:n.args,response:s,startTimestamp:r,endTimestamp:o},f={category:"fetch",data:l,type:"http",level:JO(l.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",f,c),fl(f,c)}}}function vV(e){return function(n){if($t()!==e)return;let r=n.from,o=n.to;const s=rl(Tt.location.href);let l=r?rl(r):void 0;const c=rl(o);l!=null&&l.path||(l=s),s.protocol===c.protocol&&s.host===c.host&&(o=c.relative),s.protocol===l.protocol&&s.host===l.host&&(r=l.relative),fl({category:"navigation",data:{from:r,to:o}})}}function yV(e){return!!e&&!!e.target}const bV=["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"],SV="BrowserApiErrors",EV=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:SV,setupOnce(){t.setTimeout&&oo(Tt,"setTimeout",AC),t.setInterval&&oo(Tt,"setInterval",AC),t.requestAnimationFrame&&oo(Tt,"requestAnimationFrame",RV),t.XMLHttpRequest&&"XMLHttpRequest"in Tt&&oo(XMLHttpRequest.prototype,"send",xV);const n=t.eventTarget;n&&(Array.isArray(n)?n:bV).forEach(o=>_V(o,t))}}},wV=EV;function AC(e){return function(...t){const n=t[0];return t[0]=Vu(n,{mechanism:{data:{function:ul(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function RV(e){return function(t){return e.apply(this,[Vu(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ul(e)},handled:!1,type:"instrument"}})])}}function xV(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&oo(n,o,function(s){const l={mechanism:{data:{function:o,handler:ul(s)},handled:!1,type:"instrument"}},c=GS(s);return c&&(l.mechanism.data.handler=ul(c)),Vu(s,l)})}),e.apply(this,t)}}function _V(e,t){var o,s;const r=(o=Tt[e])==null?void 0:o.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(oo(r,"addEventListener",function(l){return function(c,f,d){try{CV(f)&&(f.handleEvent=Vu(f.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ul(f),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&TV(this,c,f),l.apply(this,[c,Vu(f,{mechanism:{data:{function:"addEventListener",handler:ul(f),target:e},handled:!1,type:"instrument"}}),d])}}),oo(r,"removeEventListener",function(l){return function(c,f,d){try{const p=f.__sentry_wrapped__;p&&l.call(this,c,p,d)}catch{}return l.call(this,c,f,d)}}))}function CV(e){return typeof e.handleEvent=="function"}function TV(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const AV=()=>({name:"BrowserSession",setupOnce(){typeof Tt.document>"u"||(cC({ignoreDuration:!0}),fC(),uE(({from:e,to:t})=>{e!==void 0&&e!==t&&(cC({ignoreDuration:!0}),fC())}))}}),MV="GlobalHandlers",OV=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:MV,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&DV(n),t.onunhandledrejection&&kV(n)}}},IV=OV;function DV(e){J4(t=>{const{stackParser:n,attachStacktrace:r}=E6();if($t()!==e||n6())return;const{msg:o,url:s,line:l,column:c,error:f}=t,d=NV(rE(n,f||o,void 0,r,!1),s,l,c);d.level="error",PO(d,{originalException:f,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function kV(e){eO(t=>{const{stackParser:n,attachStacktrace:r}=E6();if($t()!==e||n6())return;const o=LV(t),s=Uf(o)?PV(o):rE(n,o,void 0,r,!0);s.level="error",PO(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function LV(e){if(Uf(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 PV(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function NV(e,t,n,r){const o=e.exception=e.exception||{},s=o.values=o.values||[],l=s[0]=s[0]||{},c=l.stacktrace=l.stacktrace||{},f=c.frames=c.frames||[],d=r,p=n,g=FV(t)??hd();return f.length===0&&f.push({colno:d,filename:g,function:ll,in_app:!0,lineno:p}),e}function E6(){const e=$t();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function FV(e){if(!(!os(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 BV=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Tt.navigator&&!Tt.location&&!Tt.document)return;const t=eE(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),HV="cause",zV=5,UV="LinkedErrors",VV=(e={})=>{const t=e.limit||zV,n=e.key||HV;return{name:UV,preprocessEvent(r,o,s){const l=s.getOptions();K7(tE,l.stackParser,n,t,r,o)}}},jV=VV;function qV(){return!!$V()}function $V(){var s;if(typeof Tt.window>"u")return!1;const e=Tt;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=hd(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Tt===Tt.top&&r.some(l=>n.startsWith(`${l}://`)))}function GV(e){return[z7(),N7(),wV(),fV(),IV(),jV(),ez(),BV(),AV()]}function YV(e={}){const t=!e.skipBrowserExtensionCheck&&qV(),n={...e,enabled:t?!1:e.enabled,stackParser:eB(e.stackParser||lV),integrations:o7({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?GV():e.defaultIntegrations}),transport:e.transport||KU};return y7(Dz,n)}function MC(e={}){const t=Tt.document,n=(t==null?void 0:t.head)||(t==null?void 0:t.body);if(!n)return;const r=Jt(),o=$t(),s=o==null?void 0:o.getDsn();if(!s)return;const l={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||XH()},c=Tt.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=n7(s,l);const{onLoad:f,onClose:d}=l;if(f&&(c.onload=f),d){const p=g=>{if(g.data==="__sentry_reportdialog_closed__")try{d()}finally{Tt.removeEventListener("message",p)}};Tt.addEventListener("message",p)}n.appendChild(c)}function oi(e=0){return((uo()||performance.timeOrigin)+e)/1e3}function KV(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=m6(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return uo()?[...t,["http.request.redirect_start",oi(e.redirectStart)],["http.request.fetch_start",oi(e.fetchStart)],["http.request.domain_lookup_start",oi(e.domainLookupStart)],["http.request.domain_lookup_end",oi(e.domainLookupEnd)],["http.request.connect_start",oi(e.connectStart)],["http.request.secure_connection_start",oi(e.secureConnectionStart)],["http.request.connection_end",oi(e.connectEnd)],["http.request.request_start",oi(e.requestStart)],["http.request.response_start",oi(e.responseStart)],["http.request.response_end",oi(e.responseEnd)]]:t}const OC=new WeakMap,Py=new Map,w6={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function WV(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:l,tracePropagationTargets:c,onRequestSpanStart:f}={...w6,...t},d=typeof s=="function"?s:m=>!0,p=m=>QV(m,c),g={};n&&(e.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(y=>{if(y.op==="http.client"){const b=Py.get(y.span_id);b&&(y.timestamp=b/1e3,Py.delete(y.span_id))}}),m)),o&&hz(m=>{if(m.response){const y=OC.get(m.response);y&&m.endTimestamp&&Py.set(y,m.endTimestamp)}}),e6(m=>{const y=oz(m,d,p,g);if(m.response&&m.fetchData.__span&&OC.set(m.response,m.fetchData.__span),y){const b=R6(m.fetchData.url),S=b?rl(b).host:void 0;y.setAttributes({"http.url":b,"server.address":S}),l&&IC(y),f==null||f(y,{headers:m.headers})}})),r&&b6(m=>{var b;const y=ZV(m,d,p,g);if(y){l&&IC(y);let S;try{S=new Headers((b=m.xhr.__sentry_xhr_v3__)==null?void 0:b.request_headers)}catch{}f==null||f(y,{headers:S})}})}function XV(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function IC(e){const{url:t}=Zt(e).data;if(!t||typeof t!="string")return;const n=ju("resource",({entries:r})=>{r.forEach(o=>{XV(o)&&o.name.endsWith(t)&&(KV(o).forEach(l=>e.setAttribute(...l)),setTimeout(n))})})}function QV(e,t){const n=hd();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const s=r.origin===o;return t?ra(r.toString(),t)||s&&ra(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?ra(e,t):r}}function ZV(e,t,n,r){const o=e.xhr,s=o==null?void 0:o[su];if(!o||o.__sentry_own_request__||!s)return;const{url:l,method:c}=s,f=sa()&&t(l);if(e.endTimestamp&&f){const S=o.__sentry_xhr_span_id__;if(!S)return;const R=r[S];R&&s.status_code!==void 0&&(dO(R,s.status_code),R.end(),delete r[S]);return}const d=R6(l),p=rl(d||l),g=O7(l),m=!!Mr(),y=f&&m?lc({name:`${c} ${g}`,attributes:{url:l,type:"xhr","http.method":c,"http.url":d,"server.address":p==null?void 0:p.host,[Nn]:"auto.http.browser",[Go]:"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 la;o.__sentry_xhr_span_id__=y.spanContext().spanId,r[o.__sentry_xhr_span_id__]=y,n(l)&&JV(o,sa()&&m?y:void 0);const b=$t();return b&&b.emit("beforeOutgoingRequestSpan",y,e),y}function JV(e,t){const{"sentry-trace":n,baggage:r}=WO({span:t});n&&e9(e,n,r)}function e9(e,t,n){var o;const r=(o=e.__sentry_xhr_v3__)==null?void 0:o.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||!t9(s))&&e.setRequestHeader("baggage",n)}}catch{}}function t9(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function R6(e){try{return new URL(e,Tt.location.origin).href}catch{return}}function n9(){Tt.document&&Tt.document.addEventListener("visibilitychange",()=>{const e=Mr();if(!e)return;const t=Ur(e);if(Tt.document.hidden&&t){const n="cancelled",{op:r,status:o}=Zt(t);o||t.setStatus({code:$n,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})}const r9=3600,x6="sentry_previous_trace",o9="sentry.previous_trace";function i9(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let o=r?l9():void 0;e.on("spanStart",l=>{if(Ur(l)!==l)return;const c=Jt().getPropagationContext();o=s9(o,l,c),r&&a9(o)});let s=!0;n&&e.on("beforeSampling",l=>{if(!o)return;const c=Jt(),f=c.getPropagationContext();if(s&&f.parentSpanId){s=!1;return}c.setPropagationContext({...f,dsc:{...f.dsc,sample_rate:String(o.sampleRate),sampled:String(Mb(o.spanContext))},sampleRand:o.sampleRand}),l.parentSampled=Mb(o.spanContext),l.parentSampleRate=o.sampleRate,l.spanAttributes={...l.spanAttributes,[cO]:o.sampleRate}})}function s9(e,t,n){const r=Zt(t);function o(){var c,f;try{return Number((c=n.dsc)==null?void 0:c.sample_rate)??Number((f=r.data)==null?void 0:f[YS])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return s;const l=e.spanContext;return l.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=r9&&(t.addLink({context:l,attributes:{[AB]:"previous_trace"}}),t.setAttribute(o9,`${l.traceId}-${l.spanId}-${Mb(l)?1:0}`)),s)}function a9(e){try{Tt.sessionStorage.setItem(x6,JSON.stringify(e))}catch{}}function l9(){var e;try{const t=(e=Tt.sessionStorage)==null?void 0:e.getItem(x6);return JSON.parse(t)}catch{return}}function Mb(e){return e.traceFlags===1}const u9="BrowserTracing",c9={...Hp,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...w6},f9=(e={})=>{const t={name:void 0,source:void 0},n=Tt.document,{enableInp:r,enableElementTiming:o,enableLongTask:s,enableLongAnimationFrame:l,_experiments:{enableInteractions:c,enableStandaloneClsSpans:f,enableStandaloneLcpSpans:d},beforeStartSpan:p,idleTimeout:g,finalTimeout:m,childSpanTimeout:y,markBackgroundSpan:b,traceFetch:S,traceXHR:R,trackFetchStreamPerformance:C,shouldCreateSpanForRequest:x,enableHTTPTimings:_,ignoreResourceSpans:M,ignorePerformanceApiSpans:T,instrumentPageLoad:A,instrumentNavigation:O,detectRedirects:k,linkPreviousTrace:D,consistentTraceSampling:U,onRequestSpanStart:L}={...c9,...e};let j,B;function Y(H,F,V=!0){const $=F.op==="pageload",W=F.name,P=p?p(F):F,Q=P.attributes||{};if(W!==P.name&&(Q[Hr]="custom",P.attributes=Q),!V){const ne=ml();lc({...P,startTime:ne}).end(ne);return}t.name=P.name,t.source=Q[Hr];const Z=kO(P,{idleTimeout:g,finalTimeout:m,childSpanTimeout:y,disableAutoFinish:$,beforeSpanEnd:ne=>{j==null||j(),SU(ne,{recordClsOnPageloadSpan:!f,recordLcpOnPageloadSpan:!d,ignoreResourceSpans:M,ignorePerformanceApiSpans:T}),kC(H,void 0);const re=Jt(),z=re.getPropagationContext();re.setPropagationContext({...z,traceId:Z.spanContext().traceId,sampled:sc(Z),dsc:aa(ne)})}});kC(H,Z);function G(){n&&["interactive","complete"].includes(n.readyState)&&H.emit("idleSpanEnableAutoFinish",Z)}$&&n&&(n.addEventListener("readystatechange",()=>{G()}),G())}return{name:u9,setup(H){if(ZB(),j=hU({recordClsStandaloneSpans:f||!1,recordLcpStandaloneSpans:d||!1,client:H}),r&&qU(),o&&OU(),l&&sn.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?gU():s&&pU(),c&&mU(),k&&n){const V=()=>{B=hr()};addEventListener("click",V,{capture:!0}),addEventListener("keydown",V,{capture:!0,passive:!0})}function F(){const V=$f(H);V&&!Zt(V).timestamp&&(V.setAttribute(gg,"cancelled"),V.end())}H.on("startNavigationSpan",(V,$)=>{if($t()!==H)return;if($!=null&&$.isRedirect){Y(H,{op:"navigation.redirect",...V},!1);return}B=void 0,F(),ps().setPropagationContext({traceId:ia(),sampleRand:Math.random()});const W=Jt();W.setPropagationContext({traceId:ia(),sampleRand:Math.random()}),W.setSDKProcessingMetadata({normalizedRequest:void 0}),Y(H,{op:"navigation",...V})}),H.on("startPageLoadSpan",(V,$={})=>{if($t()!==H)return;F();const W=$.sentryTrace||DC("sentry-trace"),P=$.baggage||DC("baggage"),Q=qB(W,P),Z=Jt();Z.setPropagationContext(Q),Z.setSDKProcessingMetadata({normalizedRequest:eE()}),Y(H,{op:"pageload",...V})})},afterAllSetup(H){let F=hd();if(D!=="off"&&i9(H,{linkPreviousTrace:D,consistentTraceSampling:U}),Tt.location){if(A){const V=uo();_6(H,{name:Tt.location.pathname,startTime:V?V/1e3:void 0,attributes:{[Hr]:"url",[Nn]:"auto.pageload.browser"}})}O&&uE(({to:V,from:$})=>{if($===void 0&&(F==null?void 0:F.indexOf(V))!==-1){F=void 0;return}F=void 0;const W=YO(V),P=$f(H),Q=P&&k&&h9(P,B);C6(H,{name:(W==null?void 0:W.pathname)||Tt.location.pathname,attributes:{[Hr]:"url",[Nn]:"auto.navigation.browser"}},{url:V,isRedirect:Q})})}b&&n9(),c&&d9(H,g,m,y,t),r&&YU(),WV(H,{traceFetch:S,traceXHR:R,trackFetchStreamPerformance:C,tracePropagationTargets:H.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:x,enableHTTPTimings:_,onRequestSpanStart:L})}}};function _6(e,t,n){e.emit("startPageLoadSpan",t,n),Jt().setTransactionName(t.name);const r=$f(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function C6(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const s=Jt();return s.setTransactionName(t.name),r&&!o&&s.setSDKProcessingMetadata({normalizedRequest:{...eE(),url:r}}),$f(e)}function DC(e){const t=Tt.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function d9(e,t,n,r,o){const s=Tt.document;let l;const c=()=>{const f="ui.action.click",d=$f(e);if(d){const p=Zt(d).op;if(["navigation","pageload"].includes(p))return}l&&(l.setAttribute(gg,"interactionInterrupted"),l.end(),l=void 0),o.name&&(l=kO({name:o.name,op:f,attributes:{[Hr]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}))};s&&addEventListener("click",c,{capture:!0})}const T6="_sentry_idleSpan";function $f(e){return e[T6]}function kC(e,t){Ar(e,T6,t)}const LC=1.5;function h9(e,t){const n=Zt(e),r=ml(),o=n.start_timestamp;return!(r-o>LC||t&&r-t<=LC)}function XZ(e){const t={...e};return KO(t,"react"),WH("react",{version:E.version}),YV(t)}function p9(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function g9(e,t){const n=new WeakSet;function r(o,s){if(!n.has(o)){if(o.cause)return n.add(o),r(o.cause,s);o.cause=s}}r(e,t)}function m9(e,{componentStack:t},n){if(p9(E.version)&&cm(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,g9(e,r)}return rc(r=>(r.setContext("react",{componentStack:t}),LO(e,n)))}var Ny={exports:{}},Gt={};var PC;function v9(){if(PC)return Gt;PC=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,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=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,y=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function _(T){if(typeof T=="object"&&T!==null){var A=T.$$typeof;switch(A){case t:switch(T=T.type,T){case f:case d:case r:case s:case o:case g:return T;default:switch(T=T&&T.$$typeof,T){case c:case p:case b:case y:case l:return T;default:return A}}case n:return A}}}function M(T){return _(T)===d}return Gt.AsyncMode=f,Gt.ConcurrentMode=d,Gt.ContextConsumer=c,Gt.ContextProvider=l,Gt.Element=t,Gt.ForwardRef=p,Gt.Fragment=r,Gt.Lazy=b,Gt.Memo=y,Gt.Portal=n,Gt.Profiler=s,Gt.StrictMode=o,Gt.Suspense=g,Gt.isAsyncMode=function(T){return M(T)||_(T)===f},Gt.isConcurrentMode=M,Gt.isContextConsumer=function(T){return _(T)===c},Gt.isContextProvider=function(T){return _(T)===l},Gt.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Gt.isForwardRef=function(T){return _(T)===p},Gt.isFragment=function(T){return _(T)===r},Gt.isLazy=function(T){return _(T)===b},Gt.isMemo=function(T){return _(T)===y},Gt.isPortal=function(T){return _(T)===n},Gt.isProfiler=function(T){return _(T)===s},Gt.isStrictMode=function(T){return _(T)===o},Gt.isSuspense=function(T){return _(T)===g},Gt.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===d||T===s||T===o||T===g||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===b||T.$$typeof===y||T.$$typeof===l||T.$$typeof===c||T.$$typeof===p||T.$$typeof===R||T.$$typeof===C||T.$$typeof===x||T.$$typeof===S)},Gt.typeOf=_,Gt}var NC;function y9(){return NC||(NC=1,Ny.exports=v9()),Ny.exports}var Fy,FC;function b9(){if(FC)return Fy;FC=1;var e=y9(),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},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function l(b){return e.isMemo(b)?o:s[b.$$typeof]||t}var c=Object.defineProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function y(b,S,R){if(typeof S!="string"){if(m){var C=g(S);C&&C!==m&&y(b,C,R)}var x=f(S);d&&(x=x.concat(d(S)));for(var _=l(b),M=l(S),T=0;T<x.length;++T){var A=x[T];if(!n[A]&&!(R&&R[A])&&!(M&&M[A])&&!(_&&_[A])){var O=p(S,A);try{c(b,A,O)}catch{}}}}return b}return Fy=y,Fy}var A6=b9();const M6=us(A6),S9=fM({__proto__:null,default:M6},[A6]),E9=M6||S9,By={componentStack:null,error:null,eventId:null};class QZ extends E.Component{constructor(t){super(t),this.state=By,this._openFallbackReportDialog=!0;const n=$t();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&MC({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:o,onError:s,showDialog:l,dialogOptions:c}=this.props;rc(f=>{o&&o(f,t,r);const d=this.props.handled!=null?this.props.handled:!!this.props.fallback,p=m9(t,n,{mechanism:{handled:d}});s&&s(t,r,p),l&&(this._lastEventId=p,this._openFallbackReportDialog&&MC({...c,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:o}=this.props;o&&(this.state===By?o(null,null,null):o(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:o}=this.state;t&&t(n,r,o),this.setState(By)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const o=typeof t=="function"?E.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return E.isValidElement(o)?o:null}}let mm,au=!1;function w9(e,t=!1){mm=e,au=t}function R9(e,t){if(e.some(o=>o.lazy||o.handle&&typeof o.handle=="object"&&Object.values(o.handle).some(s=>typeof s=="function")))return!0;const r=mm(e,t);return!r||r.length===0}function x9(e){return C9(e.route.path||"")}function _9(e){return e.params["*"]||""}function C9(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function pu(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function O6(e){return e.endsWith("*")}function BC(e,t){var n;return O6(e)&&!!((n=t.route.children)!=null&&n.length)||!1}function T9(e){var t;return!!(!e.children&&e.element&&((t=e.path)!=null&&t.endsWith("/*")))}function A9(e,t,n){const r=e||au?wg(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function HC(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function wg(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 Gf(e){return e[0]==="/"?e:`/${e}`}function cE(e,t){const n=mm(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const o=x9(r),s=wg(t.pathname,Gf(r.pathnameBase));return t.pathname===s?pu(s):pu(pu(o||"")+Gf(cE(e.filter(l=>l!==r.route),{pathname:s})))}return""}function I6(e,t){const n=mm(t,e);if(n){for(const r of n)if(T9(r.route)&&_9(r))return!0}return!1}function D6(e,t,n,r=""){if(!e||e.length===0)return[au?wg(t.pathname,r):t.pathname,"url"];let o="";if(n)for(const l of n){const c=l.route;if(c){if(c.index)return A9(o,l.pathname,r);const f=c.path;if(f&&!BC(f,l)){const d=f[0]==="/"||o[o.length-1]==="/"?f:`/${f}`;if(o=pu(o)+Gf(d),pu(t.pathname)===pu(r+l.pathname))return HC(o)!==HC(l.pathname)&&!O6(o)?[(au?"":r)+d,"route"]:(BC(o,l)&&(o=o.slice(0,-1)),[(au?"":r)+o,"route"])}}}return[au?wg(t.pathname,r):t.pathname||"","url"]}function M9(e,t,n,r,o=""){let s,l="url";const c=I6(e,n);return c&&(s=Gf(cE(n,e)),l="route"),(!c||!s)&&([s,l]=D6(t,e,r,o)),[s||e.pathname,l]}let Ob,Ib,Db,kb,vm;const k6=new WeakSet,Lb=new Set;function O9(e,t){const n=f9({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:o,useNavigationType:s,createRoutesFromChildren:l,matchRoutes:c,stripBasename:f,enableAsyncRouteHandlers:d=!1,instrumentPageLoad:p=!0,instrumentNavigation:g=!0}=e;return{...n,setup(m){n.setup(m),Ob=r,Ib=o,Db=s,vm=c,kb=l,w9(c,f||!1)},afterAllSetup(m){var b;n.afterAllSetup(m);const y=(b=Tt.location)==null?void 0:b.pathname;p&&y&&_6(m,{name:y,attributes:{[Hr]:"url",[Go]:"pageload",[Nn]:`auto.pageload.react.reactrouter_v${t}`}}),g&&k6.add(m)}}}function I9(e){const{location:t,routes:n,navigationType:r,version:o,matches:s,basename:l,allRoutes:c}=e,f=Array.isArray(s)?s:vm(n,t,l),d=$t();if(!(!d||!k6.has(d))&&(r==="PUSH"||r==="POP")&&f){const[p,g]=M9(t,n,c||n,f,l),m=R9(c||n,t),y=Mr(),b=y&&Zt(y);(b==null?void 0:b.op)==="navigation"&&y&&b?N9(y,b,p,g,m):F9(d,p,g,o,m)}}function D9(e){e.forEach(t=>{L6(t).forEach(r=>{Lb.add(r)})})}function L6(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{L6(n,t).forEach(o=>{t.add(o)})})),t}function k9({activeRootSpan:e,location:t,routes:n,matches:r,basename:o,allRoutes:s}){const l=Array.isArray(r)?r:vm(s||n,t,o);if(l){let c,f="url";const d=I6(t,s||n);d&&(c=Gf(cE(s||n,t)),f="route"),(!d||!c)&&([c,f]=D6(n,t,l,o)),Jt().setTransactionName(c||"/"),e&&(e.updateName(c),e.setAttribute(Hr,f))}}function L9(e,t){if(!Ob||!Ib||!Db||!kb||!vm)return e;const n=r=>{const o=E.useRef(!0),s=Ib(),l=Db();return Ob(()=>{const c=kb(r.children);o.current?(D9(c),k9({activeRootSpan:P9(),location:s,routes:c,allRoutes:Array.from(Lb)}),o.current=!1):I9({location:s,routes:c,navigationType:l,version:t,allRoutes:Array.from(Lb)})},[s,l]),E.createElement(e,{...r})};return E9(n,e),n}function P9(){const e=Mr(),t=e?Ur(e):void 0;if(!t)return;const n=Zt(t).op;return n==="navigation"||n==="pageload"?t:void 0}function N9(e,t,n,r,o){(e==null?void 0:e.__sentry_navigation_name_set__)||(t.timestamp||e==null||e.updateName(n),o||Ar(e,"__sentry_navigation_name_set__",!0)),e==null||e.setAttribute(Hr,r)}function F9(e,t,n,r,o){const s=C6(e,{name:t,attributes:{[Hr]:n,[Go]:"navigation",[Nn]:`auto.navigation.react.reactrouter_v${r}`}});!o&&s&&Ar(s,"__sentry_navigation_name_set__",!0)}function ZZ(e){return L9(e,"6")}function JZ(e){return O9(e,"7")}function P6(e,t){return function(){return e.apply(t,arguments)}}const{toString:B9}=Object.prototype,{getPrototypeOf:fE}=Object,{iterator:ym,toStringTag:N6}=Symbol,bm=(e=>t=>{const n=B9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qo=e=>(e=e.toLowerCase(),t=>bm(t)===e),Sm=e=>t=>typeof t===e,{isArray:fc}=Array,qu=Sm("undefined");function wd(e){return e!==null&&!qu(e)&&e.constructor!==null&&!qu(e.constructor)&&Vr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F6=Qo("ArrayBuffer");function H9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&F6(e.buffer),t}const z9=Sm("string"),Vr=Sm("function"),B6=Sm("number"),Rd=e=>e!==null&&typeof e=="object",U9=e=>e===!0||e===!1,jp=e=>{if(bm(e)!=="object")return!1;const t=fE(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(N6 in e)&&!(ym in e)},V9=e=>{if(!Rd(e)||wd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},j9=Qo("Date"),q9=Qo("File"),$9=Qo("Blob"),G9=Qo("FileList"),Y9=e=>Rd(e)&&Vr(e.pipe),K9=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vr(e.append)&&((t=bm(e))==="formdata"||t==="object"&&Vr(e.toString)&&e.toString()==="[object FormData]"))},W9=Qo("URLSearchParams"),[X9,Q9,Z9,J9]=["ReadableStream","Request","Response","Headers"].map(Qo),ej=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),fc(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(wd(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let c;for(r=0;r<l;r++)c=s[r],t.call(null,e[c],c,e)}}function H6(e,t){if(wd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const za=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,z6=e=>!qu(e)&&e!==za;function Pb(){const{caseless:e,skipUndefined:t}=z6(this)&&this||{},n={},r=(o,s)=>{const l=e&&H6(n,s)||s;jp(n[l])&&jp(o)?n[l]=Pb(n[l],o):jp(o)?n[l]=Pb({},o):fc(o)?n[l]=o.slice():(!t||!qu(o))&&(n[l]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&xd(arguments[o],r);return n}const tj=(e,t,n,{allOwnKeys:r}={})=>(xd(t,(o,s)=>{n&&Vr(o)?e[s]=P6(o,n):e[s]=o},{allOwnKeys:r}),e),nj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rj=(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)},oj=(e,t,n,r)=>{let o,s,l;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&fE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ij=(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},sj=e=>{if(!e)return null;if(fc(e))return e;let t=e.length;if(!B6(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},aj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fE(Uint8Array)),lj=(e,t)=>{const r=(e&&e[ym]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},uj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},cj=Qo("HTMLFormElement"),fj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),zC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dj=Qo("RegExp"),U6=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};xd(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},hj=e=>{U6(e,(t,n)=>{if(Vr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Vr(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+"'")})}})},pj=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return fc(e)?r(e):r(String(e).split(t)),n},gj=()=>{},mj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vj(e){return!!(e&&Vr(e.append)&&e[N6]==="FormData"&&e[ym])}const yj=e=>{const t=new Array(10),n=(r,o)=>{if(Rd(r)){if(t.indexOf(r)>=0)return;if(wd(r))return r;if(!("toJSON"in r)){t[o]=r;const s=fc(r)?[]:{};return xd(r,(l,c)=>{const f=n(l,o+1);!qu(f)&&(s[c]=f)}),t[o]=void 0,s}}return r};return n(e,0)},bj=Qo("AsyncFunction"),Sj=e=>e&&(Rd(e)||Vr(e))&&Vr(e.then)&&Vr(e.catch),V6=((e,t)=>e?setImmediate:t?((n,r)=>(za.addEventListener("message",({source:o,data:s})=>{o===za&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),za.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Vr(za.postMessage)),Ej=typeof queueMicrotask<"u"?queueMicrotask.bind(za):typeof process<"u"&&process.nextTick||V6,wj=e=>e!=null&&Vr(e[ym]),me={isArray:fc,isArrayBuffer:F6,isBuffer:wd,isFormData:K9,isArrayBufferView:H9,isString:z9,isNumber:B6,isBoolean:U9,isObject:Rd,isPlainObject:jp,isEmptyObject:V9,isReadableStream:X9,isRequest:Q9,isResponse:Z9,isHeaders:J9,isUndefined:qu,isDate:j9,isFile:q9,isBlob:$9,isRegExp:dj,isFunction:Vr,isStream:Y9,isURLSearchParams:W9,isTypedArray:aj,isFileList:G9,forEach:xd,merge:Pb,extend:tj,trim:ej,stripBOM:nj,inherits:rj,toFlatObject:oj,kindOf:bm,kindOfTest:Qo,endsWith:ij,toArray:sj,forEachEntry:lj,matchAll:uj,isHTMLForm:cj,hasOwnProperty:zC,hasOwnProp:zC,reduceDescriptors:U6,freezeMethods:hj,toObjectSet:pj,toCamelCase:fj,noop:gj,toFiniteNumber:mj,findKey:H6,global:za,isContextDefined:z6,isSpecCompliantForm:vj,toJSONObject:yj,isAsyncFn:bj,isThenable:Sj,setImmediate:V6,asap:Ej,isIterable:wj};function ht(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}me.inherits(ht,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:me.toJSONObject(this.config),code:this.code,status:this.status}}});const j6=ht.prototype,q6={};["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=>{q6[e]={value:e}});Object.defineProperties(ht,q6);Object.defineProperty(j6,"isAxiosError",{value:!0});ht.from=(e,t,n,r,o,s)=>{const l=Object.create(j6);me.toFlatObject(e,l,function(p){return p!==Error.prototype},d=>d!=="isAxiosError");const c=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return ht.call(l,c,f,n,r,o),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 Rj=null;function Nb(e){return me.isPlainObject(e)||me.isArray(e)}function $6(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function UC(e,t,n){return e?e.concat(t).map(function(o,s){return o=$6(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function xj(e){return me.isArray(e)&&!e.some(Nb)}const _j=me.toFlatObject(me,{},null,function(t){return/^is[A-Z]/.test(t)});function Em(e,t,n){if(!me.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=me.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,R){return!me.isUndefined(R[S])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&me.isSpecCompliantForm(t);if(!me.isFunction(o))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(me.isDate(b))return b.toISOString();if(me.isBoolean(b))return b.toString();if(!f&&me.isBlob(b))throw new ht("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(b)||me.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,S,R){let C=b;if(b&&!R&&typeof b=="object"){if(me.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(me.isArray(b)&&xj(b)||(me.isFileList(b)||me.endsWith(S,"[]"))&&(C=me.toArray(b)))return S=$6(S),C.forEach(function(_,M){!(me.isUndefined(_)||_===null)&&t.append(l===!0?UC([S],M,s):l===null?S:S+"[]",d(_))}),!1}return Nb(b)?!0:(t.append(UC(R,S,s),d(b)),!1)}const g=[],m=Object.assign(_j,{defaultVisitor:p,convertValue:d,isVisitable:Nb});function y(b,S){if(!me.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(b),me.forEach(b,function(C,x){(!(me.isUndefined(C)||C===null)&&o.call(t,C,me.isString(x)?x.trim():x,S,m))===!0&&y(C,S?S.concat(x):[x])}),g.pop()}}if(!me.isObject(e))throw new TypeError("data must be an object");return y(e),t}function VC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function dE(e,t){this._pairs=[],e&&Em(e,this,t)}const G6=dE.prototype;G6.append=function(t,n){this._pairs.push([t,n])};G6.toString=function(t){const n=t?function(r){return t.call(this,r,VC)}:VC;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Cj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Y6(e,t,n){if(!t)return e;const r=n&&n.encode||Cj;me.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=me.isURLSearchParams(t)?t.toString():new dE(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class jC{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){me.forEach(this.handlers,function(r){r!==null&&t(r)})}}const K6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tj=typeof URLSearchParams<"u"?URLSearchParams:dE,Aj=typeof FormData<"u"?FormData:null,Mj=typeof Blob<"u"?Blob:null,Oj={isBrowser:!0,classes:{URLSearchParams:Tj,FormData:Aj,Blob:Mj},protocols:["http","https","file","blob","url","data"]},hE=typeof window<"u"&&typeof document<"u",Fb=typeof navigator=="object"&&navigator||void 0,Ij=hE&&(!Fb||["ReactNative","NativeScript","NS"].indexOf(Fb.product)<0),Dj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kj=hE&&window.location.href||"http://localhost",Lj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hE,hasStandardBrowserEnv:Ij,hasStandardBrowserWebWorkerEnv:Dj,navigator:Fb,origin:kj},Symbol.toStringTag,{value:"Module"})),yr={...Lj,...Oj};function Pj(e,t){return Em(e,new yr.classes.URLSearchParams,{visitor:function(n,r,o,s){return yr.isNode&&me.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Nj(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fj(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function W6(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),f=s>=n.length;return l=!l&&me.isArray(o)?o.length:l,f?(me.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!c):((!o[l]||!me.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&me.isArray(o[l])&&(o[l]=Fj(o[l])),!c)}if(me.isFormData(e)&&me.isFunction(e.entries)){const n={};return me.forEachEntry(e,(r,o)=>{t(Nj(r),o,n,0)}),n}return null}function Bj(e,t,n){if(me.isString(e))try{return(t||JSON.parse)(e),me.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _d={transitional:K6,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=me.isObject(t);if(s&&me.isHTMLForm(t)&&(t=new FormData(t)),me.isFormData(t))return o?JSON.stringify(W6(t)):t;if(me.isArrayBuffer(t)||me.isBuffer(t)||me.isStream(t)||me.isFile(t)||me.isBlob(t)||me.isReadableStream(t))return t;if(me.isArrayBufferView(t))return t.buffer;if(me.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Pj(t,this.formSerializer).toString();if((c=me.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Em(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Bj(t)):t}],transformResponse:[function(t){const n=this.transitional||_d.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(me.isResponse(t)||me.isReadableStream(t))return t;if(t&&me.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?ht.from(c,ht.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yr.classes.FormData,Blob:yr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],e=>{_d.headers[e]={}});const Hj=me.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"]),zj=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
16
|
-
`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Hj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},qC=Symbol("internals");function bf(e){return e&&String(e).trim().toLowerCase()}function qp(e){return e===!1||e==null?e:me.isArray(e)?e.map(qp):String(e)}function Uj(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 Vj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hy(e,t,n,r,o){if(me.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!me.isString(t)){if(me.isString(r))return t.indexOf(r)!==-1;if(me.isRegExp(r))return r.test(t)}}function jj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function qj(e,t){const n=me.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}let jr=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,f,d){const p=bf(f);if(!p)throw new Error("header name must be a non-empty string");const g=me.findKey(o,p);(!g||o[g]===void 0||d===!0||d===void 0&&o[g]!==!1)&&(o[g||f]=qp(c))}const l=(c,f)=>me.forEach(c,(d,p)=>s(d,p,f));if(me.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(me.isString(t)&&(t=t.trim())&&!Vj(t))l(zj(t),n);else if(me.isObject(t)&&me.isIterable(t)){let c={},f,d;for(const p of t){if(!me.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[d=p[0]]=(f=c[d])?me.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}l(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=bf(t),t){const r=me.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Uj(o);if(me.isFunction(n))return n.call(this,o,r);if(me.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=bf(t),t){const r=me.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=bf(l),l){const c=me.findKey(r,l);c&&(!n||Hy(r,r[c],c,n))&&(delete r[c],o=!0)}}return me.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Hy(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return me.forEach(this,(o,s)=>{const l=me.findKey(r,s);if(l){n[l]=qp(o),delete n[s];return}const c=t?jj(s):String(s).trim();c!==s&&delete n[s],n[c]=qp(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return me.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&me.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(o=>r.set(o)),r}static accessor(t){const r=(this[qC]=this[qC]={accessors:{}}).accessors,o=this.prototype;function s(l){const c=bf(l);r[c]||(qj(o,l),r[c]=!0)}return me.isArray(t)?t.forEach(s):s(t),this}};jr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(jr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});me.freezeMethods(jr);function zy(e,t){const n=this||_d,r=t||n,o=jr.from(r.headers);let s=r.data;return me.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function X6(e){return!!(e&&e.__CANCEL__)}function dc(e,t,n){ht.call(this,e??"canceled",ht.ERR_CANCELED,t,n),this.name="CanceledError"}me.inherits(dc,ht,{__CANCEL__:!0});function Q6(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ht("Request failed with status code "+n.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $j(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Gj(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),p=r[s];l||(l=d),n[o]=f,r[o]=d;let g=s,m=0;for(;g!==o;)m+=n[g++],g=g%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(m*1e3/y):void 0}}function Yj(e,t){let n=0,r=1e3/t,o,s;const l=(d,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const p=Date.now(),g=p-n;g>=r?l(d,p):(o=d,s||(s=setTimeout(()=>{s=null,l(o)},r-g)))},()=>o&&l(o)]}const Rg=(e,t,n=3)=>{let r=0;const o=Gj(50,250);return Yj(s=>{const l=s.loaded,c=s.lengthComputable?s.total:void 0,f=l-r,d=o(f),p=l<=c;r=l;const g={loaded:l,total:c,progress:c?l/c:void 0,bytes:f,rate:d||void 0,estimated:d&&c&&p?(c-l)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},$C=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},GC=e=>(...t)=>me.asap(()=>e(...t)),Kj=yr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yr.origin),yr.navigator&&/(msie|trident)/i.test(yr.navigator.userAgent)):()=>!0,Wj=yr.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];me.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),me.isString(r)&&l.push("path="+r),me.isString(o)&&l.push("domain="+o),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 Xj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Z6(e,t,n){let r=!Xj(t);return e&&(r||n==!1)?Qj(e,t):t}const YC=e=>e instanceof jr?{...e}:e;function dl(e,t){t=t||{};const n={};function r(d,p,g,m){return me.isPlainObject(d)&&me.isPlainObject(p)?me.merge.call({caseless:m},d,p):me.isPlainObject(p)?me.merge({},p):me.isArray(p)?p.slice():p}function o(d,p,g,m){if(me.isUndefined(p)){if(!me.isUndefined(d))return r(void 0,d,g,m)}else return r(d,p,g,m)}function s(d,p){if(!me.isUndefined(p))return r(void 0,p)}function l(d,p){if(me.isUndefined(p)){if(!me.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(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:c,headers:(d,p,g)=>o(YC(d),YC(p),g,!0)};return me.forEach(Object.keys({...e,...t}),function(p){const g=f[p]||o,m=g(e[p],t[p],p);me.isUndefined(m)&&g!==c||(n[p]=m)}),n}const J6=e=>{const t=dl({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:c}=t;if(t.headers=l=jr.from(l),t.url=Y6(Z6(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),me.isFormData(n)){if(yr.hasStandardBrowserEnv||yr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(me.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(yr.hasStandardBrowserEnv&&(r&&me.isFunction(r)&&(r=r(t)),r||r!==!1&&Kj(t.url))){const f=o&&s&&Wj.read(s);f&&l.set(o,f)}return t},Zj=typeof XMLHttpRequest<"u",Jj=Zj&&function(e){return new Promise(function(n,r){const o=J6(e);let s=o.data;const l=jr.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:d}=o,p,g,m,y,b;function S(){y&&y(),b&&b(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let R=new XMLHttpRequest;R.open(o.method.toUpperCase(),o.url,!0),R.timeout=o.timeout;function C(){if(!R)return;const _=jr.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:_,config:e,request:R};Q6(function(O){n(O),S()},function(O){r(O),S()},T),R=null}"onloadend"in R?R.onloadend=C:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(C)},R.onabort=function(){R&&(r(new ht("Request aborted",ht.ECONNABORTED,e,R)),R=null)},R.onerror=function(M){const T=M&&M.message?M.message:"Network Error",A=new ht(T,ht.ERR_NETWORK,e,R);A.event=M||null,r(A),R=null},R.ontimeout=function(){let M=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||K6;o.timeoutErrorMessage&&(M=o.timeoutErrorMessage),r(new ht(M,T.clarifyTimeoutError?ht.ETIMEDOUT:ht.ECONNABORTED,e,R)),R=null},s===void 0&&l.setContentType(null),"setRequestHeader"in R&&me.forEach(l.toJSON(),function(M,T){R.setRequestHeader(T,M)}),me.isUndefined(o.withCredentials)||(R.withCredentials=!!o.withCredentials),c&&c!=="json"&&(R.responseType=o.responseType),d&&([m,b]=Rg(d,!0),R.addEventListener("progress",m)),f&&R.upload&&([g,y]=Rg(f),R.upload.addEventListener("progress",g),R.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=_=>{R&&(r(!_||_.type?new dc(null,e,R):_),R.abort(),R=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const x=$j(o.url);if(x&&yr.protocols.indexOf(x)===-1){r(new ht("Unsupported protocol "+x+":",ht.ERR_BAD_REQUEST,e));return}R.send(s||null)})},eq=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof ht?p:new dc(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new ht(`timeout ${t} of ms exceeded`,ht.ETIMEDOUT))},t);const c=()=>{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=()=>me.asap(c),f}},tq=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},nq=async function*(e,t){for await(const n of rq(e))yield*tq(n,t)},rq=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()}},KC=(e,t,n,r)=>{const o=nq(e,t);let s=0,l,c=f=>{l||(l=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:d,value:p}=await o.next();if(d){c(),f.close();return}let g=p.byteLength;if(n){let m=s+=g;n(m)}f.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},WC=64*1024,{isFunction:fp}=me,oq=(({Request:e,Response:t})=>({Request:e,Response:t}))(me.global),{ReadableStream:XC,TextEncoder:QC}=me.global,ZC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},iq=e=>{e=me.merge.call({skipUndefined:!0},oq,e);const{fetch:t,Request:n,Response:r}=e,o=t?fp(t):typeof fetch=="function",s=fp(n),l=fp(r);if(!o)return!1;const c=o&&fp(XC),f=o&&(typeof QC=="function"?(b=>S=>b.encode(S))(new QC):async b=>new Uint8Array(await new n(b).arrayBuffer())),d=s&&c&&ZC(()=>{let b=!1;const S=new n(yr.origin,{body:new XC,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!S}),p=l&&c&&ZC(()=>me.isReadableStream(new r("").body)),g={stream:p&&(b=>b.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!g[b]&&(g[b]=(S,R)=>{let C=S&&S[b];if(C)return C.call(S);throw new ht(`Response type '${b}' is not supported`,ht.ERR_NOT_SUPPORT,R)})});const m=async b=>{if(b==null)return 0;if(me.isBlob(b))return b.size;if(me.isSpecCompliantForm(b))return(await new n(yr.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(me.isArrayBufferView(b)||me.isArrayBuffer(b))return b.byteLength;if(me.isURLSearchParams(b)&&(b=b+""),me.isString(b))return(await f(b)).byteLength},y=async(b,S)=>{const R=me.toFiniteNumber(b.getContentLength());return R??m(S)};return async b=>{let{url:S,method:R,data:C,signal:x,cancelToken:_,timeout:M,onDownloadProgress:T,onUploadProgress:A,responseType:O,headers:k,withCredentials:D="same-origin",fetchOptions:U}=J6(b),L=t||fetch;O=O?(O+"").toLowerCase():"text";let j=eq([x,_&&_.toAbortSignal()],M),B=null;const Y=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let H;try{if(A&&d&&R!=="get"&&R!=="head"&&(H=await y(k,C))!==0){let Q=new n(S,{method:"POST",body:C,duplex:"half"}),Z;if(me.isFormData(C)&&(Z=Q.headers.get("content-type"))&&k.setContentType(Z),Q.body){const[G,ne]=$C(H,Rg(GC(A)));C=KC(Q.body,WC,G,ne)}}me.isString(D)||(D=D?"include":"omit");const F=s&&"credentials"in n.prototype,V={...U,signal:j,method:R.toUpperCase(),headers:k.normalize().toJSON(),body:C,duplex:"half",credentials:F?D:void 0};B=s&&new n(S,V);let $=await(s?L(B,U):L(S,V));const W=p&&(O==="stream"||O==="response");if(p&&(T||W&&Y)){const Q={};["status","statusText","headers"].forEach(re=>{Q[re]=$[re]});const Z=me.toFiniteNumber($.headers.get("content-length")),[G,ne]=T&&$C(Z,Rg(GC(T),!0))||[];$=new r(KC($.body,WC,G,()=>{ne&&ne(),Y&&Y()}),Q)}O=O||"text";let P=await g[me.findKey(g,O)||"text"]($,b);return!W&&Y&&Y(),await new Promise((Q,Z)=>{Q6(Q,Z,{data:P,headers:jr.from($.headers),status:$.status,statusText:$.statusText,config:b,request:B})})}catch(F){throw Y&&Y(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new ht("Network Error",ht.ERR_NETWORK,b,B),{cause:F.cause||F}):ht.from(F,F&&F.code,b,B)}}},sq=new Map,eI=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let l=s.length,c=l,f,d,p=sq;for(;c--;)f=s[c],d=p.get(f),d===void 0&&p.set(f,d=c?new Map:iq(t)),p=d;return d};eI();const Bb={http:Rj,xhr:Jj,fetch:{get:eI}};me.forEach(Bb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const JC=e=>`- ${e}`,aq=e=>me.isFunction(e)||e===null||e===!1,tI={getAdapter:(e,t)=>{e=me.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let l=0;l<n;l++){r=e[l];let c;if(o=r,!aq(r)&&(o=Bb[(c=String(r)).toLowerCase()],o===void 0))throw new ht(`Unknown adapter '${c}'`);if(o&&(me.isFunction(o)||(o=o.get(t))))break;s[c||"#"+l]=o}if(!o){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 c=n?l.length>1?`since :
|
|
18
|
-
`+l.map(JC).join(`
|
|
19
|
-
`):" "+JC(l[0]):"as no adapter specified";throw new ht("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o},adapters:Bb};function Uy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dc(null,e)}function eT(e){return Uy(e),e.headers=jr.from(e.headers),e.data=zy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tI.getAdapter(e.adapter||_d.adapter,e)(e).then(function(r){return Uy(e),r.data=zy.call(e,e.transformResponse,r),r.headers=jr.from(r.headers),r},function(r){return X6(r)||(Uy(e),r&&r.response&&(r.response.data=zy.call(e,e.transformResponse,r.response),r.response.headers=jr.from(r.response.headers))),Promise.reject(r)})}const nI="1.12.2",wm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tT={};wm.transitional=function(t,n,r){function o(s,l){return"[Axios v"+nI+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,c)=>{if(t===!1)throw new ht(o(l," has been removed"+(n?" in "+n:"")),ht.ERR_DEPRECATED);return n&&!tT[l]&&(tT[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,c):!0}};wm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function lq(e,t,n){if(typeof e!="object")throw new ht("options must be an object",ht.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const c=e[s],f=c===void 0||l(c,s,e);if(f!==!0)throw new ht("option "+s+" must be "+f,ht.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ht("Unknown option "+s,ht.ERR_BAD_OPTION)}}const $p={assertOptions:lq,validators:wm},ii=$p.validators;let ol=class{constructor(t){this.defaults=t||{},this.interceptors={request:new jC,response:new jC}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.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:o,headers:s}=n;r!==void 0&&$p.assertOptions(r,{silentJSONParsing:ii.transitional(ii.boolean),forcedJSONParsing:ii.transitional(ii.boolean),clarifyTimeoutError:ii.transitional(ii.boolean)},!1),o!=null&&(me.isFunction(o)?n.paramsSerializer={serialize:o}:$p.assertOptions(o,{encode:ii.function,serialize:ii.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),$p.assertOptions(n,{baseUrl:ii.spelling("baseURL"),withXsrfToken:ii.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&me.merge(s.common,s[n.method]);s&&me.forEach(["delete","get","head","post","put","patch","common"],b=>{delete s[b]}),n.headers=jr.concat(l,s);const c=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(f=f&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,g=0,m;if(!f){const b=[eT.bind(this),void 0];for(b.unshift(...c),b.push(...d),m=b.length,p=Promise.resolve(n);g<m;)p=p.then(b[g++],b[g++]);return p}m=c.length;let y=n;for(;g<m;){const b=c[g++],S=c[g++];try{y=b(y)}catch(R){S.call(this,R);break}}try{p=eT.call(this,y)}catch(b){return Promise.reject(b)}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=Z6(t.baseURL,t.url,t.allowAbsoluteUrls);return Y6(n,t.params,t.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(t){ol.prototype[t]=function(n,r){return this.request(dl(r||{},{method:t,url:n,data:(r||{}).data}))}});me.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,c){return this.request(dl(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}ol.prototype[t]=n(),ol.prototype[t+"Form"]=n(!0)});let uq=class rI{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(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(c=>{r.subscribe(c),s=c}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,c){r.reason||(r.reason=new dc(s,l,c),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 rI(function(o){t=o}),cancel:t}}};function cq(e){return function(n){return e.apply(null,n)}}function fq(e){return me.isObject(e)&&e.isAxiosError===!0}const Hb={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(Hb).forEach(([e,t])=>{Hb[t]=e});function oI(e){const t=new ol(e),n=P6(ol.prototype.request,t);return me.extend(n,ol.prototype,t,{allOwnKeys:!0}),me.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return oI(dl(e,o))},n}const Vn=oI(_d);Vn.Axios=ol;Vn.CanceledError=dc;Vn.CancelToken=uq;Vn.isCancel=X6;Vn.VERSION=nI;Vn.toFormData=Em;Vn.AxiosError=ht;Vn.Cancel=Vn.CanceledError;Vn.all=function(t){return Promise.all(t)};Vn.spread=cq;Vn.isAxiosError=fq;Vn.mergeConfig=dl;Vn.AxiosHeaders=jr;Vn.formToJSON=e=>W6(me.isHTMLForm(e)?new FormData(e):e);Vn.getAdapter=tI.getAdapter;Vn.HttpStatusCode=Hb;Vn.default=Vn;const{Axios:nJ,AxiosError:rJ,CanceledError:oJ,isCancel:iJ,CancelToken:sJ,VERSION:aJ,all:lJ,Cancel:uJ,isAxiosError:cJ,spread:fJ,toFormData:dJ,AxiosHeaders:hJ,HttpStatusCode:pJ,formToJSON:gJ,getAdapter:mJ,mergeConfig:vJ}=Vn;let dq=e=>crypto.getRandomValues(new Uint8Array(e)),hq=(e,t,n)=>{let r=(2<<Math.log2(e.length-1))-1,o=-~(1.6*r*t/e.length);return(s=t)=>{let l="";for(;;){let c=n(o),f=o|0;for(;f--;)if(l+=e[c[f]&r]||"",l.length>=s)return l}}},yJ=(e,t=21)=>hq(e,t|0,dq);const nT=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(y=>y(t,m))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,o,c);return c},iI=e=>e?nT(e):nT,pq=e=>e;function gq(e,t=pq){const n=ce.useSyncExternalStore(e.subscribe,ce.useCallback(()=>t(e.getState()),[e,t]),ce.useCallback(()=>t(e.getInitialState()),[e,t]));return ce.useDebugValue(n),n}const rT=e=>{const t=iI(e),n=r=>gq(t,r);return Object.assign(n,t),n},bJ=e=>e?rT(e):rT;var Vy,oT;function mq(){if(oT)return Vy;oT=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,f,d;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!o(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(!o(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(c=s.length,c!=l.length)return!1;for(f=c;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),c=d.length,c!==Object.keys(l).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,d[f]))return!1;if(e&&s instanceof Element)return!1;for(f=c;f--!==0;)if(!((d[f]==="_owner"||d[f]==="__v"||d[f]==="__o")&&s.$$typeof)&&!o(s[d[f]],l[d[f]]))return!1;return!0}return s!==s&&l!==l}return Vy=function(l,c){try{return o(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Vy}var vq=mq();const SJ=us(vq);var jy={exports:{}},qy={},$y={exports:{}},Gy={};var iT;function yq(){if(iT)return Gy;iT=1;var e=cs();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,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(g,m){var y=m(),b=r({inst:{value:y,getSnapshot:m}}),S=b[0].inst,R=b[1];return s(function(){S.value=y,S.getSnapshot=m,f(S)&&R({inst:S})},[g,y,m]),o(function(){return f(S)&&R({inst:S}),g(function(){f(S)&&R({inst:S})})},[g]),l(y),y}function f(g){var m=g.getSnapshot;g=g.value;try{var y=m();return!n(g,y)}catch{return!0}}function d(g,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Gy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Gy}var sT;function bq(){return sT||(sT=1,$y.exports=yq()),$y.exports}var aT;function Sq(){if(aT)return qy;aT=1;var e=cs(),t=bq();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,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,c=e.useMemo,f=e.useDebugValue;return qy.useSyncExternalStoreWithSelector=function(d,p,g,m,y){var b=s(null);if(b.current===null){var S={hasValue:!1,value:null};b.current=S}else S=b.current;b=c(function(){function C(A){if(!x){if(x=!0,_=A,A=m(A),y!==void 0&&S.hasValue){var O=S.value;if(y(O,A))return M=O}return M=A}if(O=M,r(_,A))return O;var k=m(A);return y!==void 0&&y(O,k)?(_=A,O):(_=A,M=k)}var x=!1,_,M,T=g===void 0?null:g;return[function(){return C(p())},T===null?void 0:function(){return C(T())}]},[p,g,m,y]);var R=o(d,b[0],b[1]);return l(function(){S.hasValue=!0,S.value=R},[R]),f(R),R},qy}var lT;function Eq(){return lT||(lT=1,jy.exports=Sq()),jy.exports}var sI=Eq();const wq=us(sI),{useSyncExternalStoreWithSelector:Rq}=wq,xq=e=>e;function _q(e,t=xq,n){const r=Rq(e.subscribe,e.getState,e.getInitialState,t,n);return ce.useDebugValue(r),r}const uT=(e,t)=>{const n=iI(e),r=(o,s=t)=>_q(n,o,s);return Object.assign(r,n),r},EJ=(e,t)=>e?uT(e,t):uT;function Cq(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function wJ(e,t){const{delay:n,flushOnUnmount:r,leading:o}={delay:t,flushOnUnmount:!1,leading:!1},s=Cq(e),l=E.useRef(0),c=E.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(o&&p){s(...d);const b=()=>{g()},S=()=>{l.current!==0&&(g(),s(...d))},R=()=>{g()};f.flush=S,f.cancel=R,l.current=window.setTimeout(b,n);return}if(o&&!p){const b=()=>{l.current!==0&&(g(),s(...d))},S=()=>{g()};f.flush=b,f.cancel=S;const R=()=>{g()};l.current=window.setTimeout(R,n);return}const m=()=>{l.current!==0&&(g(),s(...d))},y=()=>{g()};f.flush=m,f.cancel=y,l.current=window.setTimeout(m,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return f},[s,n,o]);return E.useEffect(()=>()=>{r?c.flush():c.cancel()},[c,r]),c}const Tq=["mousedown","touchstart"];function RJ(e,t,n){const r=E.useRef(null),o=Tq;return E.useEffect(()=>{const s=l=>{const{target:c}=l??{};if(Array.isArray(n)){const f=!document.body.contains(c)&&(c==null?void 0:c.tagName)!=="HTML";n.every(p=>!!p&&!l.composedPath().includes(p))&&!f&&e(l)}else r.current&&!r.current.contains(c)&&e(l)};return o.forEach(l=>document.addEventListener(l,s)),()=>{o.forEach(l=>document.removeEventListener(l,s))}},[r,e,n]),r}const Aq=typeof document<"u"?E.useLayoutEffect:E.useEffect;function xg(e,t,n){E.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function Mq(e,t="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${t}: Failed to serialize the value`)}}function Oq(e){try{return e&&JSON.parse(e)}catch{return e}}function Iq(e){return{getItem:o=>{try{return window[e].getItem(o)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(o,s)=>{try{window[e].setItem(o,s)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:o=>{try{window[e].removeItem(o)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function aI(e,t){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:r,setItem:o,removeItem:s}=Iq(e);return function({key:c,defaultValue:f,getInitialValueInEffect:d=!0,sync:p=!0,deserialize:g=Oq,serialize:m=y=>Mq(y,t)}){const y=E.useCallback(x=>{let _;try{_=typeof window>"u"||!(e in window)||window[e]===null||!!x}catch{_=!0}if(_)return f;const M=r(c);return M!==null?g(M):f},[c,f]),[b,S]=E.useState(y(d)),R=E.useCallback(x=>{x instanceof Function?S(_=>{const M=x(_);return o(c,m(M)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:c,value:x(_)}}))}),M}):(o(c,m(x)),window.dispatchEvent(new CustomEvent(n,{detail:{key:c,value:x}})),S(x))},[c]),C=E.useCallback(()=>{s(c),S(f),window.dispatchEvent(new CustomEvent(n,{detail:{key:c,value:f}}))},[c,f]);return xg("storage",x=>{p&&x.storageArea===window[e]&&x.key===c&&S(g(x.newValue??void 0))}),xg(n,x=>{p&&x.detail.key===c&&S(x.detail.value)}),E.useEffect(()=>{f!==void 0&&b===void 0&&R(f)},[f,b,R]),E.useEffect(()=>{const x=y();x!==void 0&&R(x)},[c]),[b===void 0?f:b,R,C]}}function xJ(e){return aI("localStorage","use-local-storage")(e)}function _J(e){return aI("sessionStorage","use-session-storage")(e)}function cT(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function CJ(...e){const t=new Map;return n=>{if(e.forEach(r=>{const o=cT(r,n);o&&t.set(r,o)}),t.size>0)return()=>{e.forEach(r=>{const o=t.get(r);o&&typeof o=="function"?o():cT(r,null)}),t.clear()}}}const fT={passive:!0};function TJ(){const[e,t]=E.useState({width:0,height:0}),n=E.useCallback(()=>{t({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return xg("resize",n,fT),xg("orientationchange",n,fT),E.useEffect(n,[]),e}const Dq={" ":"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 dp(e){const t=e.replace("Key","").toLowerCase();return Dq[e]||t}function kq(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"],o=t.find(s=>!r.includes(s));return{...n,key:o==="[plus]"?"+":o}}function Lq(e,t,n){const{alt:r,ctrl:o,meta:s,mod:l,shift:c,key:f}=e,{altKey:d,ctrlKey:p,metaKey:g,shiftKey:m,key:y,code:b}=t;if(r!==d)return!1;if(l){if(!p&&!g)return!1}else if(o!==p||s!==g)return!1;return c!==m?!1:!!(f&&(n?dp(b)===dp(f):dp(y??b)===dp(f)))}function lI(e,t){return n=>Lq(kq(e),n,t)}function AJ(e){return t=>{const n="nativeEvent"in t?t.nativeEvent:t;e.forEach(([r,o,s={preventDefault:!0,usePhysicalKeys:!1}])=>{lI(r,s.usePhysicalKeys)(n)&&(s.preventDefault&&t.preventDefault(),o(n))})}}function Pq(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function MJ(e,t=["INPUT","TEXTAREA","SELECT"],n=!1){E.useEffect(()=>{const r=o=>{e.forEach(([s,l,c={preventDefault:!0,usePhysicalKeys:!1}])=>{lI(s,c.usePhysicalKeys)(o)&&Pq(o,t,n)&&(c.preventDefault&&o.preventDefault(),l(o))})};return document.documentElement.addEventListener("keydown",r),()=>document.documentElement.removeEventListener("keydown",r)},[e])}function dT(){const e=window.document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement}function Nq(){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 Fq(e){var n,r,o,s,l;const t=e;return((n=t.requestFullscreen)==null?void 0:n.call(t))||((r=t.msRequestFullscreen)==null?void 0:r.call(t))||((o=t.webkitEnterFullscreen)==null?void 0:o.call(t))||((s=t.webkitRequestFullscreen)==null?void 0:s.call(t))||((l=t.mozRequestFullscreen)==null?void 0:l.call(t))}const hT=["","webkit","moz","ms"];function pT(e,{onFullScreen:t,onError:n}){return hT.forEach(r=>{e.addEventListener(`${r}fullscreenchange`,t),e.addEventListener(`${r}fullscreenerror`,n)}),()=>{hT.forEach(r=>{e.removeEventListener(`${r}fullscreenchange`,t),e.removeEventListener(`${r}fullscreenerror`,n)})}}function OJ(){const[e,t]=E.useState(!1),n=E.useRef(null),r=E.useCallback(c=>{t(c.target===dT())},[t]),o=E.useCallback(c=>{t(!1),console.error(`[@mantine/hooks] use-fullscreen: Error attempting full-screen mode method: ${c} (${c.target})`)},[t]),s=E.useCallback(async()=>{dT()?await Nq():await Fq(n.current)},[]),l=E.useCallback(c=>{c===null?n.current=window.document.documentElement:n.current=c},[]);return E.useEffect(()=>{if(!n.current&&window.document)return n.current=window.document.documentElement,pT(n.current,{onFullScreen:r,onError:o});if(n.current)return pT(n.current,{onFullScreen:r,onError:o})},[n.current]),{ref:l,toggle:s,fullscreen:e}}function gT(e){return/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i.test(e)}function Bq(e){return/(iPhone)|(iPad)|(iPod)/i.test(e)}function Hq(e){return/(Win32)|(Win64)|(Windows)|(WinCE)/i.test(e)}function zq(e){return/Android/i.test(e)}function Uq(e){return/Linux/i.test(e)}function Vq(e){return/CrOS/i.test(e)}function mT(){if(typeof window>"u")return"undetermined";const{userAgent:e}=window.navigator;return Bq(e)||gT(e)&&"ontouchend"in document?"ios":gT(e)?"macos":Hq(e)?"windows":zq(e)?"android":Uq(e)?"linux":Vq(e)?"chromeos":"undetermined"}function IJ(e={getValueInEffect:!0}){const[t,n]=E.useState(e.getValueInEffect?"undetermined":mT());return Aq(()=>{e.getValueInEffect&&n(mT)},[]),t}function DJ(e=!1,t={}){const[n,r]=E.useState(e),o=E.useCallback(()=>{r(c=>{var f;return c||((f=t.onOpen)==null||f.call(t),!0)})},[t.onOpen]),s=E.useCallback(()=>{r(c=>{var f;return c&&((f=t.onClose)==null||f.call(t),!1)})},[t.onClose]),l=E.useCallback(()=>{n?s():o()},[s,o,n]);return[n,{open:o,close:s,toggle:l}]}var uI={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vT=ce.createContext&&ce.createContext(uI),jq=["attr","size","title"];function qq(e,t){if(e==null)return{};var n=$q(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $q(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 _g(){return _g=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},_g.apply(this,arguments)}function yT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yT(Object(n),!0).forEach(function(r){Gq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gq(e,t,n){return t=Yq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yq(e){var t=Kq(e,"string");return typeof t=="symbol"?t:t+""}function Kq(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 cI(e){return e&&e.map((t,n)=>ce.createElement(t.tag,Cg({key:n},t.attr),cI(t.child)))}function ze(e){return t=>ce.createElement(Wq,_g({attr:Cg({},e.attr)},t),cI(e.child))}function Wq(e){var t=n=>{var{attr:r,size:o,title:s}=e,l=qq(e,jq),c=o||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),ce.createElement("svg",_g({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,l,{className:f,style:Cg(Cg({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),s&&ce.createElement("title",null,s),e.children)};return vT!==void 0?ce.createElement(vT.Consumer,null,n=>t(n)):t(uI)}function kJ(e){return ze({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 LJ(e){return ze({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 PJ(e){return ze({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 NJ(e){return ze({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 FJ(e){return ze({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 BJ(e){return ze({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 HJ(e){return ze({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 zJ(e){return ze({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 UJ(e){return ze({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 VJ(e){return ze({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 jJ(e){return ze({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 qJ(e){return ze({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 $J(e){return ze({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 GJ(e){return ze({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 YJ(e){return ze({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 KJ(e){return ze({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 WJ(e){return ze({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 XJ(e){return ze({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 QJ(e){return ze({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 ZJ(e){return ze({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 JJ(e){return ze({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 eee(e){return ze({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 tee(e){return ze({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 nee(e){return ze({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 ree(e){return ze({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 oee(e){return ze({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 iee(e){return ze({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 see(e){return ze({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 aee(e){return ze({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 lee(e){return ze({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 uee(e){return ze({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 cee(e){return ze({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 fee(e){return ze({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 dee(e){return ze({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 hee(e){return ze({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 pee(e){return ze({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 gee(e){return ze({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 mee(e){return ze({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 vee(e){return ze({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 yee(e){return ze({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 bee(e){return ze({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 See(e){return ze({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 Eee(e){return ze({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 wee(e){return ze({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 Ree(e){return ze({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 xee(e){return ze({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 _ee(e){return ze({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 Cee(e){return ze({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 Tee(e){return ze({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 Aee(e){return ze({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 Mee(e){return ze({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M400 256H112"},child:[]}]})(e)}function Oee(e){return ze({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 Iee(e){return ze({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 Dee(e){return ze({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 kee(e){return ze({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 Lee(e){return ze({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 Pee(e){return ze({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 Nee(e){return ze({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 Fee(e){return ze({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 Bee(e){return ze({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 Hee(e){return ze({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 zee(e){return ze({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 Uee(e){return ze({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 Vee(e){return ze({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 jee(e){return ze({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 qee(e){return ze({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)}const fI=E.createContext(void 0);function Cd(e){const t=E.useContext(fI);if(e===!1&&t===void 0)throw new Error("Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");return t}const Xq={...Lo,...Ci},$ee=E.forwardRef(function(t,n){const{render:r,className:o,forceRender:s=!1,...l}=t,{store:c}=Cd(),f=c.useState("open"),d=c.useState("nested"),p=c.useState("mounted"),g=c.useState("transitionStatus"),m=E.useMemo(()=>({open:f,transitionStatus:g}),[f,g]);return At("div",t,{state:m,ref:[c.context.backdropRef,n],stateAttributesMapping:Xq,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:s||!d})}),dI=E.createContext(void 0);function hI(e=!1){const t=E.useContext(dI);if(t===void 0&&!e)throw new Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");return t}function Qq(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:s}=e,l=r&&t!==!1,c=r&&t===!1;return{props:E.useMemo(()=>{const d={onKeyDown(p){n&&t&&p.key!=="Tab"&&p.preventDefault()}};return r||(d.tabIndex=o,!s&&n&&(d.tabIndex=t?o:-1)),(s&&(t||l)||!s&&n)&&(d["aria-disabled"]=n),s&&(!t||c)&&(d.disabled=n),d},[r,n,t,l,c,s,o])}}function Ti(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,s=E.useRef(null),l=hI(!0)!==void 0,c=Be(()=>{const m=s.current;return!!((m==null?void 0:m.tagName)==="A"&&(m!=null&&m.href))}),{props:f}=Qq({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:o}),d=E.useCallback(()=>{const m=s.current;Zq(m)&&l&&t&&f.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,f.disabled,l]);qe(d,[d]);const p=E.useCallback((m={})=>{const{onClick:y,onMouseDown:b,onKeyUp:S,onKeyDown:R,onPointerDown:C,...x}=m;return Do({type:o?"button":void 0,onClick(M){if(t){M.preventDefault();return}y==null||y(M)},onMouseDown(M){t||b==null||b(M)},onKeyDown(M){if(t||(X1(M),R==null||R(M)),M.baseUIHandlerPrevented)return;const T=M.target===M.currentTarget&&!o&&!c()&&!t,A=M.key==="Enter",O=M.key===" ";T&&((O||A)&&M.preventDefault(),A&&(y==null||y(M)))},onKeyUp(M){t||(X1(M),S==null||S(M)),!M.baseUIHandlerPrevented&&M.target===M.currentTarget&&!o&&!t&&M.key===" "&&(y==null||y(M))},onPointerDown(M){if(t){M.preventDefault();return}C==null||C(M)}},o?void 0:{role:"button"},f,x)},[t,f,o,c]),g=Be(m=>{s.current=m,d()});return{getButtonProps:p,buttonRef:g}}function Zq(e){return Sn(e)&&e.tagName==="BUTTON"}function gs(e){return Zu(e,"base-ui")}function Rm(e){return O4(19)?e:e?"true":void 0}let Jq=function(e){return e.nestedDialogs="--nested-dialogs",e}({}),e$=function(e){return e[e.open=Ha.open]="open",e[e.closed=Ha.closed]="closed",e[e.startingStyle=Ha.startingStyle]="startingStyle",e[e.endingStyle=Ha.endingStyle]="endingStyle",e.nested="data-nested",e.nestedDialogOpen="data-nested-dialog-open",e}({});const xm=E.forwardRef(function(t,n){const{cutout:r,...o}=t;let s;if(r){const l=r==null?void 0:r.getBoundingClientRect();s=`polygon(
|
|
21
|
-
0% 0%,
|
|
22
|
-
100% 0%,
|
|
23
|
-
100% 100%,
|
|
24
|
-
0% 100%,
|
|
25
|
-
0% 0%,
|
|
26
|
-
${l.left}px ${l.top}px,
|
|
27
|
-
${l.left}px ${l.bottom}px,
|
|
28
|
-
${l.right}px ${l.bottom}px,
|
|
29
|
-
${l.right}px ${l.top}px,
|
|
30
|
-
${l.left}px ${l.top}px
|
|
31
|
-
)`}return Ee.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})}),pI=E.createContext(void 0);function t$(){const e=E.useContext(pI);if(e===void 0)throw new Error("Base UI: <Dialog.Portal> is missing.");return e}const gu="ArrowUp",Ua="ArrowDown",Yf="ArrowLeft",mu="ArrowRight",Td="Home",Ad="End",gI=new Set([Yf,mu]),n$=new Set([Yf,mu,Td,Ad]),mI=new Set([gu,Ua]),r$=new Set([gu,Ua,Td,Ad]),vI=new Set([...gI,...mI]),o$=new Set([...vI,Td,Ad]),_m=new Set([gu,Ua,Yf,mu,Td,Ad]),yI="Shift",i$="Control",s$="Alt",a$="Meta",l$=new Set([yI,i$,s$,a$]);function u$(e){return Sn(e)&&e.tagName==="INPUT"}function bT(e){return!!(u$(e)&&e.selectionStart!=null||Sn(e)&&e.tagName==="TEXTAREA")}function ST(e,t,n,r){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,s=e.scrollTop;const l=e.clientWidth<e.scrollWidth,c=e.clientHeight<e.scrollHeight;if(l&&r!=="vertical"){const f=ET(e,t,"left"),d=hp(e),p=hp(t);n==="ltr"&&(f+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?o=f+t.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:f-p.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(o=f-p.scrollMarginLeft-d.scrollPaddingLeft)),n==="rtl"&&(f-p.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?o=f-p.scrollMarginLeft-d.scrollPaddingLeft:f+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(o=f+t.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(c&&r!=="horizontal"){const f=ET(e,t,"top"),d=hp(e),p=hp(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:o,top:s,behavior:"auto"})}function ET(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);)t=t.offsetParent;return o}function hp(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 c$={...Lo,...Ci,nestedDialogOpen(e){return e?{[e$.nestedDialogOpen]:""}:null}},Gee=E.forwardRef(function(t,n){const{className:r,finalFocus:o,initialFocus:s,render:l,...c}=t,{store:f}=Cd(),d=f.useState("descriptionElementId"),p=f.useState("dismissible"),g=f.useState("floatingRootContext"),m=f.useState("popupProps"),y=f.useState("modal"),b=f.useState("mounted"),S=f.useState("nested"),R=f.useState("nestedOpenDialogCount"),C=f.useState("open"),x=f.useState("openMethod"),_=f.useState("titleElementId"),M=f.useState("transitionStatus");t$(),qr({open:C,ref:f.context.popupRef,onComplete(){var U,L;C&&((L=(U=f.context).openChangeComplete)==null||L.call(U,!0))}});const T=Be(U=>U==="touch"?f.context.popupRef.current:!0),A=s===void 0?T:s,O=R>0,k=E.useMemo(()=>({open:C,nested:S,transitionStatus:M,nestedDialogOpen:O}),[C,S,M,O]),D=At("div",t,{state:k,props:[m,{"aria-labelledby":_??void 0,"aria-describedby":d??void 0,role:"dialog",tabIndex:-1,hidden:!b,onKeyDown(U){_m.has(U.key)&&U.stopPropagation()},style:{[Jq.nestedDialogs]:R}},c],ref:[n,f.context.popupRef,f.getElementSetter("popupElement")],stateAttributesMapping:c$});return Ee.jsxs(E.Fragment,{children:[b&&y===!0&&Ee.jsx(xm,{ref:f.context.internalBackdropRef,inert:Rm(!C)}),Ee.jsx(nm,{context:g,openInteractionType:x,disabled:!b,closeOnFocusOut:p,initialFocus:A,returnFocus:o,modal:y!==!1,restoreFocus:"popup",children:D})]})});function Yee(e){const{children:t,keepMounted:n=!1,container:r}=e,{store:o}=Cd();return o.useState("mounted")||n?Ee.jsx(pI.Provider,{value:n,children:Ee.jsx(tm,{root:r,children:t})}):null}let wT={},RT={},xT="";function f$(e){if(typeof document>"u")return!1;const t=Io(e);return Ln(t).innerWidth-t.documentElement.clientWidth>0}function d$(e){const n=Io(e).documentElement,r=n.style.overflow;return n.style.overflow="hidden",()=>{n.style.overflow=r}}function h$(e){var g;const t=Io(e),n=t.documentElement,r=t.body,o=Ln(n);let s=0,l=0;const c=ui.create();if(xS&&(((g=o.visualViewport)==null?void 0:g.scale)??1)!==1)return()=>{};function f(){var O;const m=o.getComputedStyle(n),y=o.getComputedStyle(r);s=n.scrollTop,l=n.scrollLeft,wT={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},xT=n.style.scrollBehavior,RT={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const b=typeof CSS<"u"&&((O=CSS.supports)==null?void 0:O.call(CSS,"scrollbar-gutter","stable")),S=n.scrollHeight>n.clientHeight,R=n.scrollWidth>n.clientWidth,C=m.overflowY==="scroll"||y.overflowY==="scroll",x=m.overflowX==="scroll"||y.overflowX==="scroll",_=Math.max(0,o.innerWidth-n.clientWidth),M=Math.max(0,o.innerHeight-n.clientHeight),T=parseFloat(y.marginTop)+parseFloat(y.marginBottom),A=parseFloat(y.marginLeft)+parseFloat(y.marginRight);Object.assign(n.style,{scrollbarGutter:"stable",overflowY:!b&&(S||C)?"scroll":"hidden",overflowX:!b&&(R||x)?"scroll":"hidden"}),Object.assign(r.style,{position:"relative",height:T||M?`calc(100dvh - ${T+M}px)`:"100dvh",width:A||_?`calc(100vw - ${A+_}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=s,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,wT),Object.assign(r.style,RT),n.scrollTop=s,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=xT}function p(){d(),c.request(f)}return f(),o.addEventListener("resize",p),()=>{c.cancel(),d(),o.removeEventListener("resize",p)}}class p${constructor(){Rn(this,"lockCount",0);Rn(this,"restore",null);Rn(this,"timeoutLock",oa.create());Rn(this,"timeoutUnlock",oa.create());Rn(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});Rn(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Io(t).documentElement,o=Ln(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=fr;return}const s=$P||!f$(t);this.restore=s?d$(t):h$(t)}}const g$=new p$;function Cm(e){const{enabled:t=!0,mounted:n,open:r,referenceElement:o=null}=e;qe(()=>{if(t&&xS&&n&&!r){const s=Io(o),l=s.body.style.userSelect,c=s.body.style.webkitUserSelect;return s.body.style.userSelect="none",s.body.style.webkitUserSelect="none",()=>{s.body.style.userSelect=l,s.body.style.webkitUserSelect=c}}},[t,n,r,o]),qe(()=>{if(t)return g$.acquire(o)},[t,o])}function m$(e){const t=E.useRef(""),n=E.useCallback(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:E.useCallback(o=>{if(o.detail===0){e(o,"keyboard");return}"pointerType"in o&&e(o,o.pointerType),e(o,t.current),t.current=""},[e]),onPointerDown:n}}function pE(e){const[t,n]=E.useState(null),r=Be((c,f)=>{e||n(f)}),o=Be(()=>{n(null)}),{onClick:s,onPointerDown:l}=m$(r);return E.useMemo(()=>({openMethod:t,reset:o,triggerProps:{onClick:s,onPointerDown:l}}),[t,o,s,l])}function v$(e){const{store:t,parentContext:n}=e,r=t.useState("open"),o=t.useState("dismissible"),s=t.useState("modal"),l=t.useState("triggerElement"),c=t.useState("popupElement"),{mounted:f,setMounted:d,transitionStatus:p}=hs(r),{openMethod:g,triggerProps:m,reset:y}=pE(r),b=Be(()=>{var D,U;d(!1),(U=(D=t.context).openChangeComplete)==null||U.call(D,!1),y()});qr({enabled:!e.actionsRef,open:r,ref:t.context.popupRef,onComplete(){r||b()}}),E.useImperativeHandle(e.actionsRef,()=>({unmount:b}),[b]);const S=Ju({elements:{reference:l,floating:c},open:r,onOpenChange:t.setOpen,noEmit:!0}),[R,C]=E.useState(0),x=R===0,_=kS(S),M=rm(S),T=cd(S,{outsidePressEvent(){return t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(D){if(D.button!==0)return!1;const U=to(D);if(x&&o){const L=U;return s&&(t.context.internalBackdropRef.current||t.context.backdropRef.current)?t.context.internalBackdropRef.current===L||t.context.backdropRef.current===L:!0}return!1},escapeKey:x});Cm({enabled:r&&s===!0,mounted:f,open:r,referenceElement:c});const{getReferenceProps:A,getFloatingProps:O}=fd([_,M,T]);t.useContextCallback("nestedDialogOpen",D=>{C(D+1)}),t.useContextCallback("nestedDialogClose",()=>{C(0)}),E.useEffect(()=>(n!=null&&n.nestedDialogOpen&&r&&n.nestedDialogOpen(R),n!=null&&n.nestedDialogClose&&!r&&n.nestedDialogClose(),()=>{n!=null&&n.nestedDialogClose&&r&&n.nestedDialogClose()}),[r,n,R]);const k=E.useMemo(()=>A(m),[A,m]);t.useSyncedValues({openMethod:g,mounted:f,transitionStatus:p,triggerProps:k,popupProps:O(),floatingRootContext:S,nestedOpenDialogCount:R})}var Tg=Symbol("NOT_FOUND");function y$(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function b$(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function S$(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 _T=e=>Array.isArray(e)?e:[e];function E$(e){const t=Array.isArray(e[0])?e[0]:e;return S$(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function w$(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function R$(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Tg},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function x$(e,t){let n=[];function r(c){const f=n.findIndex(d=>t(c,d.key));if(f>-1){const d=n[f];return f>0&&(n.splice(f,1),n.unshift(d)),d.value}return Tg}function o(c,f){r(c)===Tg&&(n.unshift({key:c,value:f}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:o,getEntries:s,clear:l}}var _$=(e,t)=>e===t;function C$(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function T$(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=_$,maxSize:o=1,resultEqualityCheck:s}=n,l=C$(r);let c=0;const f=o<=1?R$(l):x$(o,l);function d(){let p=f.get(arguments);if(p===Tg){if(p=e.apply(null,arguments),c++,s){const m=f.getEntries().find(y=>s(y.value,p));m&&(p=m.value,c!==0&&c--)}f.put(arguments,p)}return p}return d.clearCache=()=>{f.clear(),d.resetResultsCount()},d.resultsCount=()=>c,d.resetResultsCount=()=>{c=0},d}var A$=class{constructor(e){this.value=e}deref(){return this.value}},M$=typeof WeakRef<"u"?WeakRef:A$,O$=0,CT=1;function pp(){return{s:O$,v:void 0,o:null,p:null}}function bI(e,t={}){let n=pp();const{resultEqualityCheck:r}=t;let o,s=0;function l(){var g;let c=n;const{length:f}=arguments;for(let m=0,y=f;m<y;m++){const b=arguments[m];if(typeof b=="function"||typeof b=="object"&&b!==null){let S=c.o;S===null&&(c.o=S=new WeakMap);const R=S.get(b);R===void 0?(c=pp(),S.set(b,c)):c=R}else{let S=c.p;S===null&&(c.p=S=new Map);const R=S.get(b);R===void 0?(c=pp(),S.set(b,c)):c=R}}const d=c;let p;if(c.s===CT)p=c.v;else if(p=e.apply(null,arguments),s++,r){const m=((g=o==null?void 0:o.deref)==null?void 0:g.call(o))??o;m!=null&&r(m,p)&&(p=m,s!==0&&s--),o=typeof p=="object"&&p!==null||typeof p=="function"?new M$(p):p}return d.s=CT,d.v=p,p}return l.clearCache=()=>{n=pp(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function SI(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,l=0,c,f={},d=o.pop();typeof d=="object"&&(f=d,d=o.pop()),y$(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const p={...n,...f},{memoize:g,memoizeOptions:m=[],argsMemoize:y=bI,argsMemoizeOptions:b=[]}=p,S=_T(m),R=_T(b),C=E$(o),x=g(function(){return s++,d.apply(null,arguments)},...S),_=y(function(){l++;const T=w$(C,arguments);return c=x.apply(null,T),c},...R);return Object.assign(_,{resultFunc:d,memoizedResultFunc:x,dependencies:C,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:g,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var I$=SI(bI),D$=Object.assign((e,t=I$)=>{b$(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,c,f)=>(l[n[f]]=c,l),{}))},{withTypes:()=>D$});SI({memoize:T$,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const dt=(e,t,n,r,o,s,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let c;if(e)c=e;else throw new Error("Missing arguments");return c};function ct(e,t,n,r,o){const s=l=>t(l,n,r,o);return sI.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s)}class EI{constructor(t){Rn(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));Rn(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set}update(t){this.state!==t&&(this.state=t,this.listeners.forEach(n=>n(t)))}apply(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.update({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.update({...this.state,[t]:n})}}class k$ extends EI{constructor(n,r={},o){super(n);Rn(this,"controlledValues",new Map);this.context=r,this.selectors=o}useSyncedValue(n,r){qe(()=>{this.state[n]!==r&&this.set(n,r)},[n,r])}useSyncedValueWithCleanup(n,r){qe(()=>(this.state[n]!==r&&this.set(n,r),()=>{this.set(n,void 0)}),[n,r])}useSyncedValues(n){qe(()=>{this.apply(n)},[n])}useControlledProp(n,r,o){const s=r!==void 0;this.controlledValues.has(n)||(this.controlledValues.set(n,s),!s&&!Object.is(this.state[n],o)&&super.update({...this.state,[n]:o})),qe(()=>{s&&!Object.is(this.state[n],r)&&super.update({...this.state,[n]:r})},[n,r,o,s])}set(n,r){this.controlledValues.get(n)!==!0&&super.set(n,r)}apply(n){const r={...n};for(const o in r)this.controlledValues.get(o)===!0&&delete r[o];super.apply(r)}update(n){const r={...n};for(const o in r)this.controlledValues.get(o)===!0&&delete r[o];super.update({...this.state,...r})}useState(n){if(!this.selectors)throw new Error("Base UI: selectors are required to call useState.");return ct(this,this.selectors[n])}useContextCallback(n,r){const o=Be(r??fr);this.context[n]=o}getElementSetter(n){return E.useCallback(r=>{this.set(n,r)},[n])}}const L$={open:dt(e=>e.open),modal:dt(e=>e.modal),nested:dt(e=>e.nested),nestedOpenDialogCount:dt(e=>e.nestedOpenDialogCount),dismissible:dt(e=>e.dismissible),openMethod:dt(e=>e.openMethod),descriptionElementId:dt(e=>e.descriptionElementId),titleElementId:dt(e=>e.titleElementId),mounted:dt(e=>e.mounted),transitionStatus:dt(e=>e.transitionStatus),triggerProps:dt(e=>e.triggerProps),popupProps:dt(e=>e.popupProps),floatingRootContext:dt(e=>e.floatingRootContext),popupElement:dt(e=>e.popupElement),triggerElement:dt(e=>e.triggerElement)};class gE extends k${constructor(){super(...arguments);Rn(this,"setOpen",(n,r)=>{var s,l,c;if((l=(s=this.context).openChange)==null||l.call(s,n,r),r.isCanceled)return;const o={open:n,nativeEvent:r.event,reason:r.reason,nested:this.state.nested};(c=this.state.floatingRootContext.events)==null||c.emit("openchange",o),this.set("open",n)})}static create(n){const r={popupRef:E.createRef(),backdropRef:E.createRef(),internalBackdropRef:E.createRef()};return new gE(n,r,L$)}}const P$={open:!1,dismissible:!0,nested:!1,popupElement:null,triggerElement:null,modal:!0,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,mounted:!1,transitionStatus:"idle",nestedOpenDialogCount:0,triggerProps:rr,popupProps:rr,floatingRootContext:kN()},Kee=function(t){const{children:n,open:r,defaultOpen:o=!1,onOpenChange:s,onOpenChangeComplete:l,dismissible:c=!0,modal:f=!0,actionsRef:d}=t,p=Cd(!0),g=!!p,m=yi(gE.create,P$).current;m.useControlledProp("open",r,o),m.useSyncedValues({dismissible:c,nested:g,modal:f}),m.useContextCallback("openChange",s),m.useContextCallback("openChangeComplete",l),v$({store:m,actionsRef:d,parentContext:p==null?void 0:p.store.context});const y=E.useMemo(()=>({store:m}),[m]);return Ee.jsx(fI.Provider,{value:y,children:n})},Wee=E.forwardRef(function(t,n){const{render:r,className:o,id:s,...l}=t,{store:c}=Cd(),f=gs(s);return c.useSyncedValueWithCleanup("titleElementId",f),At("h2",t,{ref:n,props:[{id:f},l]})}),TT=e=>Symbol.iterator in e,AT=e=>"entries"in e,MT=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[o,s]of n)if(!r.has(o)||!Object.is(s,r.get(o)))return!1;return!0},N$=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let o=n.next(),s=r.next();for(;!o.done&&!s.done;){if(!Object.is(o.value,s.value))return!1;o=n.next(),s=r.next()}return!!o.done&&!!s.done};function F$(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:TT(e)&&TT(t)?AT(e)&&AT(t)?MT(e,t):N$(e,t):MT({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Xee(e){const t=ce.useRef(void 0);return n=>{const r=e(n);return F$(t.current,r)?t.current:t.current=r}}let OT=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({}),IT=function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const mE={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},hc={valid(e){return e===null?null:e?{[IT.valid]:""}:{[IT.invalid]:""}}};function wI(e){return E.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[OT.checked]:""}:{[OT.unchecked]:""}},...hc}),[e.indeterminate])}const B$=E.createContext({invalid:void 0,controlId:void 0,setControlId:fr,labelId:void 0,setLabelId:fr,messageIds:[],setMessageIds:fr,name:void 0,validityData:{state:mE,errors:[],error:"",value:"",initialValue:null},setValidityData:fr,disabled:void 0,touched:!1,setTouched:fr,dirty:!1,setDirty:fr,filled:!1,setFilled:fr,focused:!1,setFocused:fr,validate:()=>null,validationMode:"onBlur",validationDebounceTime:0,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1}});function ko(e=!0){const t=E.useContext(B$);if(t.setControlId===fr&&!e)throw new Error("Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");return t}const H$=E.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:fr});function pc(){return E.useContext(H$)}function zb(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}const Gp=Object.keys(mE);function z$(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(const n of Gp)n!=="valid"&&(n==="valueMissing"&&(t=e[n]),e[n]&&(t=!1));return t}function Tm(){const{setValidityData:e,validate:t,messageIds:n,validityData:r,validationMode:o,validationDebounceTime:s,invalid:l,markedDirtyRef:c,controlId:f,state:d,name:p}=ko(),{formRef:g,clearErrors:m}=pc(),y=_n(),b=E.useRef(null),S=Be(async(x,_=!1)=>{const M=b.current;if(!M)return;if(_){if(d.valid!==!1)return;const L=M.validity;if(!L.valueMissing){const B={value:x,state:{...mE,valid:!0},error:"",errors:[],initialValue:r.initialValue};if(M.setCustomValidity(""),f){const Y=g.current.fields.get(f);Y&&g.current.fields.set(f,{...Y,...zb(B,!1)})}e(B);return}const j=Gp.reduce((B,Y)=>(B[Y]=L[Y],B),{});if(!j.valid&&!z$(j))return}function T(L){const j=Gp.reduce((Y,H)=>(Y[H]=L.validity[H],Y),{});let B=!1;for(const Y of Gp)if(Y!=="valid"){if(Y==="valueMissing"&&j[Y])B=!0;else if(j[Y])return j}return B&&!c.current&&(j.valid=!0,j.valueMissing=!1),j}y.clear();let A=null,O=[];const k=T(M);let D;if(M.validationMessage)D=M.validationMessage,O=[M.validationMessage];else{const L=Array.from(g.current.fields.values()).reduce((B,Y)=>{var H,F;return Y.name&&Y.getValueRef&&(B[Y.name]=(F=(H=Y.getValueRef).current)==null?void 0:F.call(H)),B},{}),j=t(x,L);typeof j=="object"&&j!==null&&"then"in j?A=await j:A=j,A!==null&&(k.valid=!1,k.customError=!0,Array.isArray(A)?(O=A,M.setCustomValidity(A.join(`
|
|
32
|
-
`))):A&&(O=[A],M.setCustomValidity(A)))}const U={value:x,state:k,error:D??(Array.isArray(A)?A[0]:A??""),errors:O,initialValue:r.initialValue};if(f){const L=g.current.fields.get(f);L&&g.current.fields.set(f,{...L,...zb(U,l)})}e(U)}),R=E.useCallback((x={})=>Do({...n.length&&{"aria-describedby":n.join(" ")},...d.valid===!1&&{"aria-invalid":!0}},x),[n,d.valid]),C=E.useCallback((x={})=>Do({onChange(_){if(_.nativeEvent.defaultPrevented)return;if(m(p),o!=="onChange"){S(_.currentTarget.value,!0);return}if(l)return;const M=_.currentTarget;if(M.value===""){S(M.value);return}y.clear(),s?y.start(s,()=>{S(M.value)}):S(M.value)}},R(x)),[R,m,p,y,S,l,o,s]);return E.useMemo(()=>({getValidationProps:R,getInputValidationProps:C,inputRef:b,commitValidation:S}),[R,C,S])}function Am(e){const{formRef:t}=pc(),{invalid:n,markedDirtyRef:r,validityData:o,setValidityData:s}=ko(),{enabled:l=!0,value:c,id:f,name:d,controlRef:p,commitValidation:g}=e,m=xn(e.getValue);qe(()=>{var b;if(!l)return;let y=c;y===void 0&&(y=(b=m.current)==null?void 0:b.call(m)),o.initialValue===null&&y!==o.initialValue&&s(S=>({...S,initialValue:y}))},[l,s,c,o.initialValue,m]),qe(()=>{l&&f&&t.current.fields.set(f,{controlRef:p,validityData:zb(o,n),validate(){var b;let y=c;y===void 0&&(y=(b=m.current)==null?void 0:b.call(m)),r.current=!0,br.flushSync(()=>g(y))},getValueRef:m,name:d})},[g,p,l,t,m,f,n,r,d,o,c]),qe(()=>{const y=t.current.fields;return()=>{f&&y.delete(f)}},[t,f])}const U$=E.createContext(void 0);function V$(e=!0){const t=E.useContext(U$);if(t===void 0&&!e)throw new Error("Base UI: CheckboxGroupContext is missing. CheckboxGroup parts must be placed within <CheckboxGroup>.");return t}const RI=E.createContext(void 0);function j$(){const e=E.useContext(RI);if(e===void 0)throw new Error("Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");return e}const q$={},$$="data-parent",Qee=E.forwardRef(function(t,n){const{checked:r,className:o,defaultChecked:s=!1,disabled:l=!1,id:c,indeterminate:f=!1,inputRef:d,name:p,onCheckedChange:g,parent:m=!1,readOnly:y=!1,render:b,required:S=!1,value:R,nativeButton:C=!0,...x}=t,{clearErrors:_}=pc(),{disabled:M,labelId:T,name:A,setControlId:O,setDirty:k,setFilled:D,setFocused:U,setTouched:L,state:j,validationMode:B,validityData:Y}=ko(),H=V$(),F=H==null?void 0:H.parent,V=F&&H.allValues,$=M||(H==null?void 0:H.disabled)||l,W=A??p,P=R??W;let Q={};V&&(m?Q=H.parent.getParentProps():P&&(Q=H.parent.getChildProps(P)));const Z=Be(g),{checked:G=r,indeterminate:ne=f,onCheckedChange:re,...z}=Q,le=H==null?void 0:H.value,K=H==null?void 0:H.setValue,se=H==null?void 0:H.defaultValue,ie=E.useRef(null),{getButtonProps:ve,buttonRef:pe}=Ti({disabled:$,native:C}),Se=Tm(),Ie=(H==null?void 0:H.fieldControlValidation)??Se,[Te,Le]=vi({controlled:P&&le&&!m?le.includes(P):G,default:P&&se&&!m?se.includes(P):s,name:"Checkbox",state:"checked"}),ge=gs(c);qe(()=>{const Fe=ie==null?void 0:ie.current;if(Fe)return H?O(c??null):Fe.closest("label")==null&&O(ge),()=>{O(void 0)}},[H,ge,c,O]),Am({enabled:!H,id:ge,commitValidation:Ie.commitValidation,value:Te,controlRef:ie,name:W,getValue:()=>Te});const Re=E.useRef(null),xe=Tr(d,Re,Ie.inputRef);qe(()=>{Re.current&&(Re.current.indeterminate=ne,Te&&D(!0))},[Te,ne,D]);const q=Be(()=>U(!0)),J=Be(()=>{const Fe=Re.current;Fe&&(L(!0),U(!1),B==="onBlur"&&Ie.commitValidation(H?le:Fe.checked))}),ae=Be(Fe=>{var Et;Fe.defaultPrevented||y||(Fe.preventDefault(),(Et=Re.current)==null||Et.click())}),Me=Do({checked:Te,disabled:$,name:m?void 0:W,id:`${ge}-input`,required:S,ref:xe,style:ga,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Fe){if(Fe.nativeEvent.defaultPrevented)return;const Et=Fe.target.checked,pt=St("none",Fe.nativeEvent);if(re==null||re(Et,pt),Z(Et,pt),!pt.isCanceled&&(_(W),k(Et!==Y.initialValue),Le(Et),H||(D(Et),B==="onChange"?Ie.commitValidation(Et):Ie.commitValidation(Et,!0)),P&&le&&K&&!m)){const an=Et?[...le,P]:le.filter(en=>en!==P);K(an,pt),D(an.length>0),B==="onChange"?Ie.commitValidation(an):Ie.commitValidation(an,!0)}},onFocus(){var Fe;(Fe=ie.current)==null||Fe.focus()}},R!==void 0?{value:(H?Te&&R:R)||""}:q$,H?Ie.getValidationProps:Ie.getInputValidationProps),_e=V?!!G:Te,be=V&&ne||f;E.useEffect(()=>{F&&P&&F.disabledStatesRef.current.set(P,$)},[F,$,P]);const ke=E.useMemo(()=>({...j,checked:_e,disabled:$,readOnly:y,required:S,indeterminate:be}),[j,_e,$,y,S,be]),He=wI(ke),Ve=At("button",t,{state:ke,ref:[pe,ie,n,H==null?void 0:H.registerControlRef],props:[{id:ge,role:"checkbox",disabled:$,"aria-checked":ne?"mixed":Te,"aria-readonly":y||void 0,"aria-required":S||void 0,"aria-labelledby":T,[$$]:m?"":void 0,onFocus:q,onBlur:J,onClick:ae},Ie.getValidationProps,x,z,ve],stateAttributesMapping:He});return Ee.jsxs(RI.Provider,{value:ke,children:[Ve,!Te&&!H&&t.name&&!m&&Ee.jsx("input",{type:"hidden",name:t.name,value:"off"}),Ee.jsx("input",{...Me})]})}),Zee=E.forwardRef(function(t,n){const{render:r,className:o,keepMounted:s=!1,...l}=t,c=j$(),f=c.checked||c.indeterminate,{transitionStatus:d,setMounted:p}=hs(f),g=E.useRef(null),m=E.useMemo(()=>({...c,transitionStatus:d}),[c,d]);qr({open:f,ref:g,onComplete(){f||p(!1)}});const y=wI(c),b=E.useMemo(()=>({...y,...Ci,...hc}),[y]),S=s||f,R=At("span",t,{enabled:S,ref:[n,g],state:m,stateAttributesMapping:b,props:l});return S?R:null});function G$(e){const t=E.useRef(!0);t.current&&(t.current=!1,e())}const Y$=(e,t)=>Object.is(e,t);function $u(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Yp(e,t,n){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:$u(r,t,n))}function Ba(e,t,n){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:$u(r,t,n))}function K$(e,t,n){return e.filter(r=>!$u(r,t,n))}const lt={id:dt(e=>e.id),modal:dt(e=>e.modal),multiple:dt(e=>e.multiple),items:dt(e=>e.items),itemToStringLabel:dt(e=>e.itemToStringLabel),itemToStringValue:dt(e=>e.itemToStringValue),isItemEqualToValue:dt(e=>e.isItemEqualToValue),value:dt(e=>e.value),label:dt(e=>e.label),open:dt(e=>e.open),mounted:dt(e=>e.mounted),forceMount:dt(e=>e.forceMount),transitionStatus:dt(e=>e.transitionStatus),touchModality:dt(e=>e.touchModality),activeIndex:dt(e=>e.activeIndex),selectedIndex:dt(e=>e.selectedIndex),isActive:dt((e,t)=>e.activeIndex===t),isSelected:dt((e,t,n)=>{const r=e.isItemEqualToValue,o=e.value;return e.multiple?Array.isArray(o)&&o.some(s=>$u(s,n,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:$u(o,n,r)}),isSelectedByFocus:dt((e,t)=>e.selectedIndex===t),popupProps:dt(e=>e.popupProps),triggerProps:dt(e=>e.triggerProps),triggerElement:dt(e=>e.triggerElement),positionerElement:dt(e=>e.positionerElement),listElement:dt(e=>e.listElement),scrollUpArrowVisible:dt(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:dt(e=>e.scrollDownArrowVisible),hasScrollArrows:dt(e=>e.hasScrollArrows)};function W$(e){const{id:t,disabled:n=!1,readOnly:r=!1,required:o=!1,modal:s=!1,name:l,onOpenChangeComplete:c,items:f,multiple:d=!1,itemToStringLabel:p,itemToStringValue:g,isItemEqualToValue:m=Y$}=e,{clearErrors:y}=pc(),{setDirty:b,validityData:S,validationMode:R,setControlId:C,setFilled:x,name:_,disabled:M}=ko(),T=Tm(),A=gs(t),O=M||n,k=_??l;qe(()=>(C(A),()=>{C(void 0)}),[A,C]);const[D,U]=vi({controlled:e.value,default:d?e.defaultValue??Nu:e.defaultValue,name:"Select",state:"value"}),[L,j]=vi({controlled:e.open,default:e.defaultOpen,name:"Select",state:"open"}),B=E.useRef([]),Y=E.useRef([]),H=E.useRef(null),F=E.useRef(null),V=E.useRef(0),$=E.useRef(null),W=E.useRef([]),P=E.useRef(!1),Q=E.useRef(!1),Z=E.useRef(null),G=E.useRef(null),ne=E.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),re=E.useRef(!1),z=E.useRef(!1),{mounted:le,setMounted:K,transitionStatus:se}=hs(L),ie=yi(()=>new EI({id:A,modal:s,multiple:d,itemToStringLabel:p,itemToStringValue:g,isItemEqualToValue:m,value:D,label:"",open:L,mounted:le,forceMount:!1,transitionStatus:se,items:f,touchModality:!1,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ve=E.useRef(D);qe(()=>{D!==ve.current&&ie.set("forceMount",!0)},[ie,D]);const pe=ct(ie,lt.activeIndex),Se=ct(ie,lt.selectedIndex),Ie=ct(ie,lt.triggerElement),Te=ct(ie,lt.positionerElement),Le=xn(ie.state.triggerElement),ge=T.commitValidation;Am({id:A,commitValidation:ge,value:D,controlRef:Le,name:k,getValue:()=>D});const Re=E.useRef(D);qe(()=>{x(D!==null)},[D,x]),qe(()=>{if(Re.current!==D){if(d){const ye=Array.isArray(D)?D:[],$e=ye.map(Ke=>{const tt=Ba(W.current,Ke,m);return tt!==-1?Y.current[tt]??"":""}).filter(Boolean),je=ye[ye.length-1],Ge=Ba(W.current,je,m);G.current=Ge===-1?null:Ge,ie.apply({label:$e.join(", ")})}else{const ye=Ba(W.current,D,m);ie.apply({selectedIndex:ye===-1?null:ye,label:Y.current[ye]??""})}y(k),b(D!==S.initialValue),ge(D,R!=="onChange"),R==="onChange"&&ge(D)}},[D,ge,y,k,R,ie,b,S.initialValue,x,d,m]),qe(()=>{Re.current=D},[D]);const xe=Be((ye,$e)=>{var je;if((je=e.onOpenChange)==null||je.call(e,ye,$e),!$e.isCanceled&&(j(ye),!ye&&d&&ie.set("selectedIndex",G.current),!ye&&ie.state.activeIndex!==null)){const Ge=B.current[ie.state.activeIndex];queueMicrotask(()=>{Ge==null||Ge.setAttribute("tabindex","-1")})}}),q=Be(()=>{K(!1),ie.set("activeIndex",null),c==null||c(!1)});qr({enabled:!e.actionsRef,open:L,ref:H,onComplete(){L||q()}}),E.useImperativeHandle(e.actionsRef,()=>({unmount:q}),[q]);const J=Be((ye,$e)=>{var je;(je=e.onValueChange)==null||je.call(e,ye,$e),!$e.isCanceled&&U(ye)}),ae=Be(()=>{if(re.current)if(d){const ye=Array.isArray(D)?D:[],$e=ye.map(tt=>{const Nt=Ba(W.current,tt,m);return Nt!==-1?Y.current[Nt]??"":""}).filter(Boolean),je=ye[ye.length-1],Ge=je!==void 0?Ba(W.current,je,m):-1;G.current=Ge===-1?null:Ge;let Ke=ie.state.selectedIndex;Ke===null&&(Ke=Ge===-1?null:Ge),ie.apply({selectedIndex:Ke,label:$e.join(", ")})}else{const ye=Ba(W.current,D,m),$e=ye!==-1;if($e||D===null){ie.apply({selectedIndex:$e?ye:null,label:$e?Y.current[ye]??"":""});return}}}),Me=Be(ye=>{re.current=!0,d&&(G.current=ye),ae()});qe(ae,[D,ae]);const _e=Be(()=>{const ye=ie.state.listElement||H.current;if(!ye)return;const $e=ye.scrollTop,je=ye.scrollTop+ye.clientHeight,Ge=$e>1,Ke=je<ye.scrollHeight-1;ie.state.scrollUpArrowVisible!==Ge&&ie.set("scrollUpArrowVisible",Ge),ie.state.scrollDownArrowVisible!==Ke&&ie.set("scrollDownArrowVisible",Ke)}),be=Ju({open:L,onOpenChange:xe,elements:{reference:Ie,floating:Te}}),ke=rm(be,{enabled:!r&&!O,event:"mousedown"}),He=cd(be,{bubbles:!1}),Ve=T4(be,{enabled:!r&&!O,listRef:B,activeIndex:pe,selectedIndex:Se,disabledIndices:Nu,onNavigate(ye){ye===null&&!L||ie.set("activeIndex",ye)},focusItemOnHover:!1}),Fe=A4(be,{enabled:!r&&!O&&(L||!d),listRef:Y,activeIndex:pe,selectedIndex:Se,onMatch(ye){L?ie.set("activeIndex",ye):J(W.current[ye],St("none"))},onTypingChange(ye){P.current=ye}}),{getReferenceProps:Et,getFloatingProps:pt,getItemProps:an}=fd([ke,He,Ve,Fe]);return G$(()=>{ie.apply({popupProps:pt(),triggerProps:Et()})}),qe(()=>{ie.apply({id:A,modal:s,multiple:d,value:D,open:L,mounted:le,transitionStatus:se,popupProps:pt(),triggerProps:Et(),items:f,itemToStringLabel:p,itemToStringValue:g,isItemEqualToValue:m})},[ie,A,s,d,D,L,le,se,pt,Et,f,p,g,m]),{rootContext:E.useMemo(()=>({store:ie,name:k,required:o,disabled:O,readOnly:r,multiple:d,itemToStringLabel:p,itemToStringValue:g,setValue:J,setOpen:xe,listRef:B,popupRef:H,scrollHandlerRef:F,handleScrollArrowVisibility:_e,scrollArrowsMountedCountRef:V,getItemProps:an,events:be.events,valueRef:$,valuesRef:W,labelsRef:Y,typingRef:P,selectionRef:ne,selectedItemTextRef:Z,fieldControlValidation:T,registerItemIndex:Me,onOpenChangeComplete:c,keyboardActiveRef:Q,alignItemWithTriggerActiveRef:z,initialValueRef:ve}),[ie,k,o,O,r,d,p,g,J,xe,B,H,F,an,be.events,$,W,Y,P,ne,Z,T,Me,c,Q,z,_e]),floatingContext:be,value:D}}const xI=E.createContext(null),_I=E.createContext(null);function Zo(){const e=E.useContext(xI);if(e===null)throw new Error("Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");return e}function X$(){const e=E.useContext(_I);if(e===null)throw new Error("Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");return e}function Ub(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Q$(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function _f(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return Ub(e)}function Yy(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?Ub(e.value):Ub(e)}function Z$(e,t,n){if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??_f(e,n);if(Array.isArray(t)){const r=Q$(t)?t.flatMap(o=>o.items):t;if(e==null){const o=r.find(s=>s.value==null);return o&&o.label!=null?o.label:_f(e,n)}if(typeof e!="object"){const o=r.find(s=>s&&s.value===e);return o&&o.label!=null?o.label:_f(e,n)}if("value"in e){const o=r.find(s=>s&&s.value===e.value);if(o&&o.label!=null)return o.label}}return _f(e,n)}function J$(e,t){return!Array.isArray(e)||e.length===0?"":e.map(n=>_f(n,t)).join(", ")}function Jee(e){const{id:t,value:n,defaultValue:r=null,onValueChange:o,open:s,defaultOpen:l=!1,onOpenChange:c,name:f,disabled:d=!1,readOnly:p=!1,required:g=!1,modal:m=!0,actionsRef:y,inputRef:b,onOpenChangeComplete:S,items:R,multiple:C,itemToStringLabel:x,itemToStringValue:_,isItemEqualToValue:M,children:T}=e,{rootContext:A,floatingContext:O,value:k}=W$({id:t,value:n,defaultValue:r,onValueChange:o,open:s,defaultOpen:l,onOpenChange:c,name:f,disabled:d,readOnly:p,required:g,modal:m,actionsRef:y,onOpenChangeComplete:S,items:R,multiple:C,itemToStringLabel:x,itemToStringValue:_,isItemEqualToValue:M}),D=A.store,U=C??!1,{setDirty:L,validityData:j,validationMode:B,controlId:Y}=ko(),H=Tr(b,A.fieldControlValidation.inputRef),F=E.useMemo(()=>U&&Array.isArray(k)&&k.length===0?"":Yy(k,_),[U,k,_]),V=E.useMemo(()=>!U||!Array.isArray(k)||!A.name?null:k.map($=>{const W=Yy($,_);return Ee.jsx("input",{type:"hidden",name:A.name,value:W},W)}),[U,k,A.name,_]);return Ee.jsx(xI.Provider,{value:A,children:Ee.jsxs(_I.Provider,{value:O,children:[T,Ee.jsx("input",{...A.fieldControlValidation.getInputValidationProps({onFocus(){var $;($=D.state.triggerElement)==null||$.focus()},onChange($){if($.nativeEvent.defaultPrevented)return;const W=$.target.value,P=St("none",$.nativeEvent);function Q(){var G;if(U)return;const Z=A.valuesRef.current.find(ne=>Yy(ne,_).toLowerCase()===W.toLowerCase());Z!=null&&(L(Z!==j.initialValue),(G=A.setValue)==null||G.call(A,Z,P),B==="onChange"&&A.fieldControlValidation.commitValidation(Z))}D.set("forceMount",!0),queueMicrotask(Q)},id:t||Y||void 0,name:U?void 0:A.name,value:F,disabled:A.disabled,required:A.required,readOnly:A.readOnly,ref:H,style:ga,tabIndex:-1,"aria-hidden":!0})}),V]})})}function CI(e){const t=e.getBoundingClientRect(),n=window.getComputedStyle(e,"::before"),r=window.getComputedStyle(e,"::after");if(!(n.content!=="none"||r.content!=="none"))return t;const s=parseFloat(n.width)||0,l=parseFloat(n.height)||0,c=parseFloat(r.width)||0,f=parseFloat(r.height)||0,d=Math.max(t.width,s,c),p=Math.max(t.height,l,f),g=d-t.width,m=p-t.height;return{left:t.left-g/2,right:t.right+g/2,top:t.top-m/2,bottom:t.bottom+m/2}}const gp=2,eG={...ug,...hc,value:()=>null},ete=E.forwardRef(function(t,n){const{render:r,className:o,disabled:s=!1,nativeButton:l=!1,...c}=t,{state:f,disabled:d}=ko(),{store:p,setOpen:g,selectionRef:m,fieldControlValidation:y,readOnly:b,alignItemWithTriggerActiveRef:S,disabled:R,keyboardActiveRef:C}=Zo(),x=d||R||s,_=ct(p,lt.open),M=ct(p,lt.value),T=ct(p,lt.triggerProps),A=ct(p,lt.positionerElement),O=ct(p,lt.listElement),k=xn(A),{labelId:D,setTouched:U,setFocused:L,validationMode:j}=ko(),B=E.useRef(null),Y=_n(),H=_n(),{getButtonProps:F,buttonRef:V}=Ti({disabled:x,native:l}),$=Be(re=>{p.set("triggerElement",re)}),W=Tr(n,B,V,$),P=_n(),Q=_n();E.useEffect(()=>{if(_)return Q.start(200,()=>{m.current.allowUnselectedMouseUp=!0,P.start(200,()=>{m.current.allowSelectedMouseUp=!0})}),()=>{P.clear(),Q.clear()};m.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},H.clear()},[_,m,H,P,Q]);const Z=E.useMemo(()=>{var re;return(O==null?void 0:O.id)??((re=Bf(A))==null?void 0:re.id)},[O,A]),G=Do(T,{role:"combobox","aria-expanded":_?"true":"false","aria-haspopup":"listbox","aria-controls":_?Z:void 0,"aria-labelledby":D,"aria-readonly":b||void 0,tabIndex:x?-1:0,ref:W,onFocus(re){L(!0),_&&S.current&&g(!1,St("focus-out",re.nativeEvent)),Y.start(0,()=>{p.set("forceMount",!0)})},onBlur(){U(!0),L(!1),j==="onBlur"&&y.commitValidation(M)},onPointerMove({pointerType:re}){C.current=!1,p.set("touchModality",re==="touch")},onPointerDown({pointerType:re}){p.set("touchModality",re==="touch")},onKeyDown(){C.current=!0},onMouseDown(re){if(_)return;const z=Io(re.currentTarget);function le(K){if(!B.current)return;const se=K.target;if(un(B.current,se)||un(k.current,se)||se===B.current)return;const ie=CI(B.current);K.clientX>=ie.left-gp&&K.clientX<=ie.right+gp&&K.clientY>=ie.top-gp&&K.clientY<=ie.bottom+gp||g(!1,St("cancel-open",K))}H.start(0,()=>{z.addEventListener("mouseup",le,{once:!0})})}},y.getValidationProps,c,F);G.role="combobox";const ne=E.useMemo(()=>({...f,open:_,disabled:x,value:M,readOnly:b}),[f,_,x,b,M]);return At("div",t,{ref:[n,B],state:ne,stateAttributesMapping:eG,props:G})}),tG={value:()=>null},tte=E.forwardRef(function(t,n){const{className:r,render:o,children:s,...l}=t,{store:c,valueRef:f}=Zo(),d=ct(c,lt.value),p=ct(c,lt.items),g=ct(c,lt.itemToStringLabel),m=E.useMemo(()=>({value:d}),[d]),y=typeof s=="function"?s(d):s??(Array.isArray(d)?J$(d,g):Z$(d,p,g));return At("span",t,{state:m,ref:[n,f],props:[{children:y},l],stateAttributesMapping:tG})}),nte=E.forwardRef(function(t,n){const{className:r,render:o,...s}=t,{store:l}=Zo(),c=ct(l,lt.open),f=E.useMemo(()=>({open:c}),[c]);return At("span",t,{state:f,ref:n,props:[{"aria-hidden":!0,children:"▼"},s],stateAttributesMapping:PS})}),nG=E.createContext(void 0);function rte(e){const{children:t,container:n}=e,{store:r}=Zo(),o=ct(r,lt.mounted),s=ct(r,lt.forceMount);return o||s?Ee.jsx(nG.Provider,{value:!0,children:Ee.jsx(tm,{root:n,children:t})}):null}const TI=E.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function rG(){return E.useContext(TI)}function vE(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:o}=e,s=E.useRef(0),l=yi(iG).current,c=yi(oG).current,[f,d]=E.useState(rr),p=E.useRef(f),g=Be((R,C)=>{c.set(R,C??null),p.current={},d(p.current)}),m=Be(R=>{c.delete(R),p.current={},d(p.current)}),y=E.useMemo(()=>{const R=new Map;return Array.from(c.keys()).sort(sG).forEach((x,_)=>{const M=c.get(x)??{};R.set(x,{...M,index:_})}),R},[c,f]);qe(()=>{if(typeof MutationObserver!="function"||y.size===0)return;const R=new MutationObserver(C=>{const x=new Set,_=M=>x.has(M)?x.delete(M):x.add(M);C.forEach(M=>{M.removedNodes.forEach(_),M.addedNodes.forEach(_)}),x.size===0&&(p.current={},d(p.current))});return y.forEach((C,x)=>{x.parentElement&&R.observe(x.parentElement,{childList:!0})}),()=>{R.disconnect()}},[y]),qe(()=>{p.current===f&&(n.current.length!==y.size&&(n.current.length=y.size),r&&r.current.length!==y.size&&(r.current.length=y.size),s.current=y.size),o==null||o(y)},[o,y,n,r,f]);const b=Be(R=>(l.add(R),()=>{l.delete(R)}));qe(()=>{l.forEach(R=>R(y))},[l,y]);const S=E.useMemo(()=>({register:g,unregister:m,subscribeMapChange:b,elementsRef:n,labelsRef:r,nextIndexRef:s}),[g,m,b,n,r,s]);return Ee.jsx(TI.Provider,{value:S,children:t})}function oG(){return new Map}function iG(){return new Set}function sG(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const AI=E.createContext(void 0);function Mm(){const e=E.useContext(AI);if(!e)throw new Error("Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");return e}function Ag(e,t){e&&Object.assign(e.style,t)}const MI={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},aG={position:"fixed"},ote=E.forwardRef(function(t,n){const{anchor:r,positionMethod:o="absolute",className:s,render:l,side:c="bottom",align:f="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m,arrowPadding:y=5,sticky:b=!1,trackAnchor:S=!0,alignItemWithTrigger:R=!0,collisionAvoidance:C=u4,...x}=t,{store:_,listRef:M,labelsRef:T,alignItemWithTriggerActiveRef:A,valuesRef:O,initialValueRef:k,popupRef:D,setValue:U}=Zo(),L=X$(),j=ct(_,lt.open),B=ct(_,lt.mounted),Y=ct(_,lt.modal),H=ct(_,lt.value),F=ct(_,lt.touchModality),V=ct(_,lt.positionerElement),$=ct(_,lt.triggerElement),W=ct(_,lt.isItemEqualToValue),P=E.useRef(null),Q=E.useRef(null),[Z,G]=E.useState(R),ne=B&&Z&&!F;!B&&Z!==R&&G(R),qe(()=>{B||(lt.scrollUpArrowVisible(_.state)&&_.set("scrollUpArrowVisible",!1),lt.scrollDownArrowVisible(_.state)&&_.set("scrollDownArrowVisible",!1))},[_,B]),E.useImperativeHandle(A,()=>ne),Cm({enabled:(ne||Y)&&j&&!F,mounted:B,open:j,referenceElement:$});const re=sm({anchor:r,floatingRootContext:L,positionMethod:o,mounted:B,side:c,sideOffset:d,align:f,alignOffset:p,arrowPadding:y,collisionBoundary:g,collisionPadding:m,sticky:b,trackAnchor:S??!ne,collisionAvoidance:C,keepMounted:!0}),z=ne?"none":re.side,le=ne?aG:re.positionerStyles,K=E.useMemo(()=>{const Te={};return j||(Te.pointerEvents="none"),{role:"presentation",hidden:!B,style:{...le,...Te}}},[j,B,le]),se=E.useMemo(()=>({open:j,side:z,align:re.align,anchorHidden:re.anchorHidden}),[j,z,re.align,re.anchorHidden]),ie=Be(Te=>{_.set("positionerElement",Te)}),ve=At("div",t,{ref:[n,ie],state:se,stateAttributesMapping:Lo,props:[K,x]}),pe=E.useRef(0),Se=Be(Te=>{if(Te.size===0&&pe.current===0||O.current.length===0)return;const Le=pe.current;if(pe.current=Te.size,Te.size===Le)return;const ge=St("none");if(Le!==0&&!_.state.multiple&&H!==null&&Ba(O.current,H,W)===-1){const xe=k.current,J=xe!=null&&Yp(O.current,xe,W)?xe:null;U(J,ge)}if(Le!==0&&_.state.multiple&&Array.isArray(H)){const Re=H.filter(xe=>Yp(O.current,xe,W));(Re.length!==H.length||Re.some(xe=>!Yp(H,xe,W)))&&U(Re,ge)}if(j&&ne){_.apply({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const Re={height:""};Ag(V,Re),Ag(D.current,Re)}}),Ie=E.useMemo(()=>({...re,side:z,alignItemWithTriggerActive:ne,setControlledAlignItemWithTrigger:G,scrollUpArrowRef:P,scrollDownArrowRef:Q}),[re,z,ne,G]);return Ee.jsx(vE,{elementsRef:M,labelsRef:T,onMapChange:Se,children:Ee.jsxs(AI.Provider,{value:Ie,children:[B&&Y&&Ee.jsx(xm,{inert:Rm(!j),cutout:$}),ve]})})});function OI(e){const t=e.currentTarget.getBoundingClientRect();return t.top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1}const mp="base-ui-disable-scrollbar",Vb={className:mp,element:Ee.jsx("style",{href:mp,precedence:"base-ui:low",children:`.${mp}{scrollbar-width:none}.${mp}::-webkit-scrollbar{display:none}`})},II=E.createContext(void 0);function Md(e){const t=E.useContext(II);if(t===void 0&&!e)throw new Error("Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");return t}const lG={...Lo,...Ci},ite=E.forwardRef(function(t,n){const{render:r,className:o,...s}=t,{store:l,popupRef:c,onOpenChangeComplete:f,setOpen:d,valueRef:p,selectedItemTextRef:g,keyboardActiveRef:m,multiple:y,handleScrollArrowVisibility:b,scrollHandlerRef:S}=Zo(),{side:R,align:C,context:x,alignItemWithTriggerActive:_,setControlledAlignItemWithTrigger:M,scrollDownArrowRef:T,scrollUpArrowRef:A}=Mm(),O=Md(!0)!=null,k=_n(),D=ct(l,lt.id),U=ct(l,lt.open),L=ct(l,lt.mounted),j=ct(l,lt.popupProps),B=ct(l,lt.transitionStatus),Y=ct(l,lt.triggerElement),H=ct(l,lt.positionerElement),F=ct(l,lt.listElement),V=E.useRef(0),$=E.useRef(!1),W=E.useRef(0),P=E.useRef(!1),Q=E.useRef({}),Z=em(),G=Be(le=>{if(!H||!c.current||!P.current)return;if($.current||!_){b();return}const K=H.style.top==="0px",se=H.style.bottom==="0px",ie=H.getBoundingClientRect().height,ve=Io(H),pe=getComputedStyle(H),Se=parseFloat(pe.marginTop),Ie=parseFloat(pe.marginBottom),Te=ve.documentElement.clientHeight-Se-Ie;if(K){const Le=le.scrollTop,ge=le.scrollHeight-le.clientHeight,Re=ge-Le,xe=Math.min(ie+Re,Te);H.style.height=`${Math.min(ie+Re,Te)}px`,xe!==Te?le.scrollTop=ge:$.current=!0}else if(se){const Re=le.scrollTop-0,xe=Math.min(ie+Re,Te),q=ie+Re,J=q-Te;H.style.height=`${Math.min(q,Te)}px`,xe!==Te?le.scrollTop=0:($.current=!0,le.scrollTop<le.scrollHeight-le.clientHeight&&(le.scrollTop-=Re-J))}b()});E.useImperativeHandle(S,()=>G,[G]),qr({open:U,ref:c,onComplete(){U&&(f==null||f(!0))}});const ne=E.useMemo(()=>({open:U,transitionStatus:B,side:R,align:C}),[U,B,R,C]);qe(()=>{!H||!c.current||Object.keys(Q.current).length||(Q.current={top:H.style.top||"0",left:H.style.left||"0",right:H.style.right,height:H.style.height,bottom:H.style.bottom,minHeight:H.style.minHeight,maxHeight:H.style.maxHeight,marginTop:H.style.marginTop,marginBottom:H.style.marginBottom})},[c,H]),qe(()=>{L||_||(P.current=!1,$.current=!1,V.current=0,W.current=0,Ag(H,Q.current))},[L,_,H,c]),qe(()=>{const le=c.current;if(!(!L||!Y||!H||!le)){if(!_){P.current=!0,Z.request(b);return}queueMicrotask(()=>{var kt;const K=getComputedStyle(H),se=getComputedStyle(le),ie=Io(Y),ve=Ln(H),pe=Y.getBoundingClientRect(),Se=H.getBoundingClientRect(),Ie=pe.left,Te=pe.height,Le=F||le,ge=Le.scrollHeight,Re=parseFloat(se.borderBottomWidth),xe=parseFloat(K.marginTop)||10,q=parseFloat(K.marginBottom)||10,J=parseFloat(K.minHeight)||100,ae=5,Me=5,_e=20,be=ie.documentElement.clientHeight-xe-q,ke=ie.documentElement.clientWidth,He=be-pe.bottom+Te,Ve=g.current,Fe=p.current;let Et=0,pt=0;if(Ve&&Fe){const gt=Fe.getBoundingClientRect(),Vt=Ve.getBoundingClientRect(),Ft=gt.left-Ie,Mt=Vt.left-Se.left,fn=gt.top-pe.top+gt.height/2,mt=Vt.top-Se.top+Vt.height/2;Et=Ft-Mt,pt=mt-fn}const an=He+pt+q+Re;let en=Math.min(be,an);const ye=be-xe-q,$e=an-en,je=Math.max(ae,Ie+Et),Ge=ke-Me,Ke=Math.max(0,je+Se.width-Ge);H.style.left=`${je-Ke}px`,H.style.height=`${en}px`,H.style.maxHeight="auto",H.style.marginTop=`${xe}px`,H.style.marginBottom=`${q}px`,le.style.height="100%";const tt=Le.scrollHeight-Le.clientHeight,Nt=$e>=tt;Nt&&(en=Math.min(be,Se.height)-($e-tt));const Wt=pe.top<_e||pe.bottom>be-_e||en<Math.min(ge,J),wt=(((kt=ve.visualViewport)==null?void 0:kt.scale)??1)!==1&&xS;if(Wt||wt){P.current=!0,Ag(H,Q.current),br.flushSync(()=>M(!1));return}if(Nt){const gt=Math.max(0,be-an);H.style.top=Se.height>=ye?"0":`${gt}px`,H.style.height=`${en}px`,Le.scrollTop=Le.scrollHeight-Le.clientHeight,V.current=Math.max(J,en)}else H.style.bottom="0",V.current=Math.max(J,en),Le.scrollTop=$e;V.current===be&&($.current=!0),b(),setTimeout(()=>{P.current=!0})})}},[l,L,H,Y,p,g,c,b,_,M,Z,T,A,F]),E.useEffect(()=>{if(!_||!H||!L)return;const le=Ln(H);function K(se){d(!1,St("window-resize",se))}return le.addEventListener("resize",K),()=>{le.removeEventListener("resize",K)}},[d,_,H,L]);const re={...F?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":y||void 0,id:`${D}-list`},onKeyDown(le){m.current=!0,O&&_m.has(le.key)&&le.stopPropagation()},onMouseMove(){m.current=!1},onPointerLeave(le){if(OI(le)||le.pointerType==="touch")return;const K=le.currentTarget;k.start(0,()=>{l.set("activeIndex",null),K.focus({preventScroll:!0})})},onScroll(le){var K;F||(K=S.current)==null||K.call(S,le.currentTarget)},..._&&{style:F?{height:"100%"}:MI}},z=At("div",t,{ref:[n,c],state:ne,stateAttributesMapping:lG,props:[j,re,{style:B==="starting"?Jg.style:void 0,className:!F&&_?Vb.className:void 0},s]});return Ee.jsxs(E.Fragment,{children:[Vb.element,Ee.jsx(nm,{context:x,modal:!1,disabled:!L,restoreFocus:!0,children:z})]})}),ste=E.forwardRef(function(t,n){const{className:r,render:o,...s}=t,{store:l,scrollHandlerRef:c}=Zo(),{alignItemWithTriggerActive:f}=Mm(),d=ct(l,lt.hasScrollArrows),p=ct(l,lt.touchModality),g=ct(l,lt.multiple),y={id:`${ct(l,lt.id)}-list`,role:"listbox","aria-multiselectable":g||void 0,onScroll(S){var R;(R=c.current)==null||R.call(c,S.currentTarget)},...f&&{style:MI},className:d&&!p?Vb.className:void 0},b=Be(S=>{l.set("listElement",S)});return At("div",t,{ref:[n,b],props:[y,s]})});let DI=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});function yE(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:o,index:s}=e,{register:l,unregister:c,subscribeMapChange:f,elementsRef:d,labelsRef:p,nextIndexRef:g}=rG(),m=E.useRef(-1),[y,b]=E.useState(s??(o===DI.GuessFromOrder?()=>{if(m.current===-1){const C=g.current;g.current+=1,m.current=C}return m.current}:-1)),S=E.useRef(null),R=E.useCallback(C=>{var x;if(S.current=C,y!==-1&&C!==null&&(d.current[y]=C,p)){const _=t!==void 0;p.current[y]=_?t:((x=r==null?void 0:r.current)==null?void 0:x.textContent)??C.textContent}},[y,d,p,t,r]);return qe(()=>{if(s!=null)return;const C=S.current;if(C)return l(C,n),()=>{c(C)}},[s,l,c,n]),qe(()=>{if(s==null)return f(C=>{var _;const x=S.current?(_=C.get(S.current))==null?void 0:_.index:null;x!=null&&b(x)})},[s,f,b]),E.useMemo(()=>({ref:R,index:y}),[y,R])}const kI=E.createContext(void 0);function bE(){const e=E.useContext(kI);if(!e)throw new Error("Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");return e}const ate=E.memo(E.forwardRef(function(t,n){const{render:r,className:o,value:s=null,label:l,disabled:c=!1,nativeButton:f=!1,...d}=t,p=E.useRef(null),g=yE({label:l,textRef:p,indexGuessBehavior:DI.GuessFromOrder}),{store:m,getItemProps:y,setOpen:b,setValue:S,selectionRef:R,typingRef:C,valuesRef:x,registerItemIndex:_,keyboardActiveRef:M,multiple:T}=Zo(),A=_n(),O=ct(m,lt.isActive,g.index),k=ct(m,lt.isSelected,g.index,s),D=ct(m,lt.value),U=ct(m,lt.isSelectedByFocus,g.index),L=ct(m,lt.isItemEqualToValue),j=E.useRef(null),B=xn(g.index),Y=g.index!==-1;qe(()=>{if(!Y)return;const z=x.current;return z[g.index]=s,()=>{delete z[g.index]}},[Y,g.index,s,x]),qe(()=>{Y&&(T?Array.isArray(D)&&Yp(D,s,L)&&_(g.index):$u(D,s,L)&&_(g.index))},[Y,g.index,_,s,D,T,L]);const H=E.useMemo(()=>({disabled:c,selected:k,highlighted:O}),[c,k,O]),F=y({active:O,selected:k});delete F.onFocus,delete F.id;const V=E.useRef(null),$=E.useRef("mouse"),W=E.useRef(!1),{getButtonProps:P,buttonRef:Q}=Ti({disabled:c,focusableWhenDisabled:!0,native:f});function Z(z){if(T){const le=Array.isArray(D)?D:[],K=k?K$(le,s,L):[...le,s];S(K,St("item-press",z))}else S(s,St("item-press",z)),b(!1,St("item-press",z))}const G={role:"option","aria-selected":k,"aria-disabled":c||void 0,tabIndex:O?0:-1,onFocus(){m.set("activeIndex",B.current)},onMouseEnter(){!M.current&&m.state.selectedIndex===null&&m.set("activeIndex",B.current)},onMouseMove(){m.set("activeIndex",B.current)},onMouseLeave(z){M.current||OI(z)||A.start(0,()=>{m.state.activeIndex===B.current&&m.set("activeIndex",null)})},onTouchStart(){R.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(z){V.current=z.key,m.set("activeIndex",B.current)},onClick(z){W.current=!1,!(z.type==="keydown"&&V.current===null)&&(c||V.current===" "&&C.current||$.current!=="touch"&&!O||(V.current=null,Z(z.nativeEvent)))},onPointerEnter(z){$.current=z.pointerType},onPointerDown(z){$.current=z.pointerType,W.current=!0},onMouseUp(z){if(c)return;if(W.current){W.current=!1;return}const le=!R.current.allowSelectedMouseUp&&k,K=!R.current.allowUnselectedMouseUp&&!k;le||K||$.current!=="touch"&&!O||Z(z.nativeEvent)}},ne=At("div",t,{ref:[Q,n,g.ref,j],state:H,props:[F,G,d,P]}),re=E.useMemo(()=>({selected:k,indexRef:B,textRef:p,selectedByFocus:U}),[k,B,p,U]);return Ee.jsx(kI.Provider,{value:re,children:ne})})),lte=E.forwardRef(function(t,n){const r=t.keepMounted??!1,{selected:o}=bE();return r||o?Ee.jsx(uG,{...t,ref:n}):null}),uG=E.memo(E.forwardRef((e,t)=>{const{render:n,className:r,keepMounted:o,...s}=e,{selected:l}=bE(),c=E.useRef(null),{mounted:f,transitionStatus:d,setMounted:p}=hs(l),g=E.useMemo(()=>({selected:l,transitionStatus:d}),[l,d]),m=At("span",e,{ref:[t,c],state:g,props:[{hidden:!f,"aria-hidden":!0,children:"✔️"},s],stateAttributesMapping:Ci});return qr({open:l,ref:c,onComplete(){l||p(!1)}}),m})),ute=E.memo(E.forwardRef(function(t,n){const{indexRef:r,textRef:o,selectedByFocus:s}=bE(),{selectedItemTextRef:l}=Zo(),{className:c,render:f,...d}=t,p=E.useCallback(m=>{m&&queueMicrotask(()=>{const y=l.current===null||!l.current.isConnected;(s||y&&r.current===0)&&(l.current=m)})},[l,r,s]);return At("div",t,{ref:[p,n,o],props:d})})),cG={...Lo,...Ci},cte=E.forwardRef(function(t,n){const{className:r,render:o,...s}=t,{store:l}=Zo(),{side:c,align:f,arrowRef:d,arrowStyles:p,arrowUncentered:g,alignItemWithTriggerActive:m}=Mm(),y=ct(l,lt.open,!0),b=E.useMemo(()=>({open:y,side:c,align:f,uncentered:g}),[y,c,f,g]),S=At("div",t,{state:b,ref:[d,n],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:cG});return m?null:S}),LI=E.forwardRef(function(t,n){const{render:r,className:o,direction:s,keepMounted:l=!1,...c}=t,{store:f,popupRef:d,listRef:p,handleScrollArrowVisibility:g,scrollArrowsMountedCountRef:m}=Zo(),{side:y,scrollDownArrowRef:b,scrollUpArrowRef:S}=Mm(),R=s==="up"?lt.scrollUpArrowVisible:lt.scrollDownArrowVisible,C=ct(f,R),x=ct(f,lt.touchModality),_=C&&!x,M=_n(),T=s==="up"?S:b,{mounted:A,transitionStatus:O,setMounted:k}=hs(_);qe(()=>(m.current+=1,f.state.hasScrollArrows||f.set("hasScrollArrows",!0),()=>{m.current=Math.max(0,m.current-1),m.current===0&&f.state.hasScrollArrows&&f.set("hasScrollArrows",!1)}),[f,m]),qr({open:_,ref:T,onComplete(){_||k(!1)}});const D=E.useMemo(()=>({direction:s,visible:_,side:y,transitionStatus:O}),[s,_,y,O]),L=At("div",t,{ref:[n,T],state:D,props:[{hidden:!A,"aria-hidden":!0,children:s==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(B){if(B.movementX===0&&B.movementY===0||M.isStarted())return;f.set("activeIndex",null);function Y(){var W;const H=f.state.listElement??d.current;if(!H)return;f.set("activeIndex",null),g();const F=H.scrollTop===0,V=Math.round(H.scrollTop+H.clientHeight)>=H.scrollHeight;if(p.current.length===0&&(s==="up"?f.set("scrollUpArrowVisible",!F):f.set("scrollDownArrowVisible",!V)),s==="up"&&F||s==="down"&&V){M.clear();return}if((f.state.listElement||d.current)&&p.current&&p.current.length>0){const P=p.current,Q=((W=T.current)==null?void 0:W.offsetHeight)||0;if(s==="up"){let Z=0;const G=H.scrollTop+Q;for(let re=0;re<P.length;re+=1){const z=P[re];if(z&&z.offsetTop>=G){Z=re;break}}const ne=Math.max(0,Z-1);if(ne<Z){const re=P[ne];re&&(H.scrollTop=Math.max(0,re.offsetTop-Q))}else H.scrollTop=0}else{let Z=P.length-1;const G=H.scrollTop+H.clientHeight-Q;for(let re=0;re<P.length;re+=1){const z=P[re];if(z&&z.offsetTop+z.offsetHeight>G){Z=Math.max(0,re-1);break}}const ne=Math.min(P.length-1,Z+1);if(ne>Z){const re=P[ne];re&&(H.scrollTop=re.offsetTop+re.offsetHeight-H.clientHeight+Q)}else H.scrollTop=H.scrollHeight-H.clientHeight}}M.start(40,Y)}M.start(40,Y)},onMouseLeave(){M.clear()}},c]});return _||l?L:null}),fte=E.forwardRef(function(t,n){return Ee.jsx(LI,{...t,ref:n,direction:"down"})}),dte=E.forwardRef(function(t,n){return Ee.jsx(LI,{...t,ref:n,direction:"up"})}),hte=E.forwardRef(function(t,n){const{className:r,render:o,orientation:s="horizontal",...l}=t,c=E.useMemo(()=>({orientation:s}),[s]);return At("div",t,{state:c,ref:n,props:[{role:"separator","aria-orientation":s},l]})}),PI=E.createContext(void 0);function fG(){const e=E.useContext(PI);if(e===void 0)throw new Error("Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.");return e}let DT=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const NI={...hc,checked(e){return e?{[DT.checked]:""}:{[DT.unchecked]:""}}},pte=E.forwardRef(function(t,n){const{checked:r,className:o,defaultChecked:s,id:l,inputRef:c,name:f,nativeButton:d=!0,onCheckedChange:p,readOnly:g=!1,required:m=!1,disabled:y=!1,render:b,...S}=t,{clearErrors:R}=pc(),{state:C,labelId:x,setControlId:_,setTouched:M,setDirty:T,validityData:A,setFilled:O,setFocused:k,validationMode:D,disabled:U,name:L}=ko(),j=U||y,B=L??f,{getValidationProps:Y,getInputValidationProps:H,inputRef:F,commitValidation:V}=Tm(),$=Be(p),W=E.useRef(null),P=Tr(W,c,F),Q=E.useRef(null),Z=gs(l);qe(()=>{const ve=Q.current;if(ve)return ve.closest("label")!=null?_(l??null):_(Z),()=>{_(void 0)}},[Z,l,_]);const[G,ne]=vi({controlled:r,default:!!s,name:"Switch",state:"checked"});Am({id:Z,commitValidation:V,value:G,controlRef:Q,name:B,getValue:()=>G}),qe(()=>{W.current&&O(W.current.checked)},[W,O]);const{getButtonProps:re,buttonRef:z}=Ti({disabled:j,native:d}),le=E.useMemo(()=>({id:Z,role:"switch",disabled:j,"aria-checked":G,"aria-readonly":g||void 0,"aria-labelledby":x,onFocus(){k(!0)},onBlur(){const ve=W.current;ve&&(M(!0),k(!1),D==="onBlur"&&V(ve.checked))},onClick(ve){var pe;ve.defaultPrevented||g||(pe=W==null?void 0:W.current)==null||pe.click()}}),[Z,j,G,g,x,k,M,V,D,W]),K=E.useMemo(()=>Do({checked:G,disabled:j,id:B?void 0:`${Z}-input`,name:B,required:m,style:ga,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:P,onChange(ve){if(ve.nativeEvent.defaultPrevented)return;const pe=ve.target.checked,Se=St("none",ve.nativeEvent);$==null||$(pe,Se),!Se.isCanceled&&(R(B),T(pe!==A.initialValue),O(pe),ne(pe),D==="onChange"?V(pe):V(pe,!0))}},H),[G,R,V,j,H,P,Z,B,$,m,ne,T,O,D,A.initialValue]),se=E.useMemo(()=>({...C,checked:G,disabled:j,readOnly:g,required:m}),[C,G,j,g,m]),ie=At("button",t,{state:se,ref:[n,Q,z],props:[le,Y,S,re],stateAttributesMapping:NI});return Ee.jsxs(PI.Provider,{value:se,children:[ie,!G&&f&&Ee.jsx("input",{type:"hidden",name:f,value:"off"}),Ee.jsx("input",{...K})]})}),gte=E.forwardRef(function(t,n){const{render:r,className:o,...s}=t,{state:l}=ko(),c=fG(),f={...l,...c};return At("span",t,{state:f,ref:n,stateAttributesMapping:NI,props:s})});var Od=e=>e.type==="checkbox",Va=e=>e instanceof Date,Cr=e=>e==null;const FI=e=>typeof e=="object";var Pn=e=>!Cr(e)&&!Array.isArray(e)&&FI(e)&&!Va(e),BI=e=>Pn(e)&&e.target?Od(e.target)?e.target.checked:e.target.value:e,dG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,HI=(e,t)=>e.has(dG(t)),hG=e=>{const t=e.constructor&&e.constructor.prototype;return Pn(t)&&t.hasOwnProperty("isPrototypeOf")},SE=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(SE&&(e instanceof Blob||r))&&(n||Pn(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!hG(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=pn(e[o]));else return e;return t}var Om=e=>/^\w*$/.test(e),gn=e=>e===void 0,Im=e=>Array.isArray(e)?e.filter(Boolean):[],EE=e=>Im(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ne=(e,t,n)=>{if(!t||!Pn(e))return n;const r=(Om(t)?[t]:EE(t)).reduce((o,s)=>Cr(o)?o:o[s],e);return gn(r)||r===e?gn(e[t])?n:e[t]:r},eo=e=>typeof e=="boolean",on=(e,t,n)=>{let r=-1;const o=Om(t)?[t]:EE(t),s=o.length,l=s-1;for(;++r<s;){const c=o[r];let f=n;if(r!==l){const d=e[c];f=Pn(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=f,e=e[c]}};const Mg={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},xo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},zI=ce.createContext(null);zI.displayName="HookFormContext";const Dm=()=>ce.useContext(zI);var UI=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const l=s;return t._proxyFormState[l]!==xo.all&&(t._proxyFormState[l]=!r||xo.all),n&&(n[l]=!0),e[l]}});return o};const km=typeof window<"u"?ce.useLayoutEffect:ce.useEffect;function pG(e){const t=Dm(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[l,c]=ce.useState(n._formState),f=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return km(()=>n._subscribe({name:o,formState:f.current,exact:s,callback:d=>{!r&&c({...n._formState,...d})}}),[o,r,s]),ce.useEffect(()=>{f.current.isValid&&n._setValid(!0)},[n]),ce.useMemo(()=>UI(l,n,f.current,!1),[l,n])}var hi=e=>typeof e=="string",VI=(e,t,n,r,o)=>hi(e)?(r&&t.watch.add(e),Ne(n,e,o)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),Ne(n,s))):(r&&(t.watchAll=!0),n),jb=e=>Cr(e)||!FI(e);function es(e,t,n=new WeakSet){if(jb(e)||jb(t))return e===t;if(Va(e)&&Va(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const l=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const c=t[s];if(Va(l)&&Va(c)||Pn(l)&&Pn(c)||Array.isArray(l)&&Array.isArray(c)?!es(l,c,n):l!==c)return!1}}return!0}function gG(e){const t=Dm(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:l,compute:c}=e||{},f=ce.useRef(o),d=ce.useRef(c),p=ce.useRef(void 0);d.current=c;const g=ce.useMemo(()=>n._getWatch(r,f.current),[n,r]),[m,y]=ce.useState(d.current?d.current(g):g);return km(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:b=>{if(!s){const S=VI(r,n._names,b.values||n._formValues,!1,f.current);if(d.current){const R=d.current(S);es(R,p.current)||(y(R),p.current=R)}else y(S)}}}),[n,s,r,l]),ce.useEffect(()=>n._removeUnmounted()),m}function mte(e){const t=Dm(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s,defaultValue:l}=e,c=HI(o._names.array,n),f=ce.useMemo(()=>Ne(o._formValues,n,Ne(o._defaultValues,n,l)),[o,n,l]),d=gG({control:o,name:n,defaultValue:f,exact:!0}),p=pG({control:o,name:n,exact:!0}),g=ce.useRef(e),m=ce.useRef(o.register(n,{...e.rules,value:d,...eo(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const y=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ne(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ne(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ne(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ne(p.validatingFields,n)},error:{enumerable:!0,get:()=>Ne(p.errors,n)}}),[p,n]),b=ce.useCallback(x=>m.current.onChange({target:{value:BI(x),name:n},type:Mg.CHANGE}),[n]),S=ce.useCallback(()=>m.current.onBlur({target:{value:Ne(o._formValues,n),name:n},type:Mg.BLUR}),[n,o._formValues]),R=ce.useCallback(x=>{const _=Ne(o._fields,n);_&&x&&(_._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:M=>x.setCustomValidity(M),reportValidity:()=>x.reportValidity()})},[o._fields,n]),C=ce.useMemo(()=>({name:n,value:d,...eo(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:b,onBlur:S,ref:R}),[n,r,p.disabled,b,S,R,d]);return ce.useEffect(()=>{const x=o._options.shouldUnregister||s;o.register(n,{...g.current.rules,...eo(g.current.disabled)?{disabled:g.current.disabled}:{}});const _=(M,T)=>{const A=Ne(o._fields,M);A&&A._f&&(A._f.mount=T)};if(_(n,!0),x){const M=pn(Ne(o._options.defaultValues,n));on(o._defaultValues,n,M),gn(Ne(o._formValues,n))&&on(o._formValues,n,M)}return!c&&o.register(n),()=>{(c?x&&!o._state.action:x)?o.unregister(n):_(n,!1)}},[n,o,c,s]),ce.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),ce.useMemo(()=>({field:C,formState:p,fieldState:y}),[C,p,y])}var mG=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},zr=e=>Array.isArray(e)?e:[e],kT=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}},xr=e=>Pn(e)&&!Object.keys(e).length,wE=e=>e.type==="file",Vo=e=>typeof e=="function",Og=e=>{if(!SE)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},jI=e=>e.type==="select-multiple",RE=e=>e.type==="radio",vG=e=>RE(e)||Od(e),Ky=e=>Og(e)&&e.isConnected;function yG(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=gn(e)?r++:e[t[r++]];return e}function bG(e){for(const t in e)if(e.hasOwnProperty(t)&&!gn(e[t]))return!1;return!0}function Dn(e,t){const n=Array.isArray(t)?t:Om(t)?[t]:EE(t),r=n.length===1?e:yG(e,n),o=n.length-1,s=n[o];return r&&delete r[s],o!==0&&(Pn(r)&&xr(r)||Array.isArray(r)&&bG(r))&&Dn(e,n.slice(0,-1)),e}var qI=e=>{for(const t in e)if(Vo(e[t]))return!0;return!1};function Ig(e,t={}){const n=Array.isArray(e);if(Pn(e)||n)for(const r in e)Array.isArray(e[r])||Pn(e[r])&&!qI(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ig(e[r],t[r])):Cr(e[r])||(t[r]=!0);return t}function $I(e,t,n){const r=Array.isArray(e);if(Pn(e)||r)for(const o in e)Array.isArray(e[o])||Pn(e[o])&&!qI(e[o])?gn(t)||jb(n[o])?n[o]=Array.isArray(e[o])?Ig(e[o],[]):{...Ig(e[o])}:$I(e[o],Cr(t)?{}:t[o],n[o]):n[o]=!es(e[o],t[o]);return n}var Sf=(e,t)=>$I(e,t,Ig(t));const LT={value:!1,isValid:!1},PT={value:!0,isValid:!0};var GI=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!gn(e[0].attributes.value)?gn(e[0].value)||e[0].value===""?PT:{value:e[0].value,isValid:!0}:PT:LT}return LT},YI=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>gn(e)?e:t?e===""?NaN:e&&+e:n&&hi(e)?new Date(e):r?r(e):e;const NT={isValid:!1,value:null};var KI=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,NT):NT;function FT(e){const t=e.ref;return wE(t)?t.files:RE(t)?KI(e.refs).value:jI(t)?[...t.selectedOptions].map(({value:n})=>n):Od(t)?GI(e.refs).value:YI(gn(t.value)?e.ref.value:t.value,e)}var SG=(e,t,n,r)=>{const o={};for(const s of e){const l=Ne(t,s);l&&on(o,s,l._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Dg=e=>e instanceof RegExp,Ef=e=>gn(e)?e:Dg(e)?e.source:Pn(e)?Dg(e.value)?e.value.source:e.value:e,lu=e=>({isOnSubmit:!e||e===xo.onSubmit,isOnBlur:e===xo.onBlur,isOnChange:e===xo.onChange,isOnAll:e===xo.all,isOnTouch:e===xo.onTouched});const BT="AsyncFunction";var EG=e=>!!e&&!!e.validate&&!!(Vo(e.validate)&&e.validate.constructor.name===BT||Pn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===BT)),wG=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),qb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const vu=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const s=Ne(e,o);if(s){const{_f:l,...c}=s;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],o)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(vu(c,t))break}else if(Pn(c)&&vu(c,t))break}}};function HT(e,t,n){const r=Ne(e,n);if(r||Om(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const s=o.join("."),l=Ne(t,s),c=Ne(e,s);if(l&&!Array.isArray(l)&&n!==s)return{name:n};if(c&&c.type)return{name:s,error:c};if(c&&c.root&&c.root.type)return{name:`${s}.root`,error:c.root};o.pop()}return{name:n}}var RG=(e,t,n,r)=>{n(e);const{name:o,...s}=e;return xr(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||xo.all))},xG=(e,t,n)=>!e||!t||e===t||zr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),_G=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,CG=(e,t)=>!Im(Ne(e,t)).length&&Dn(e,t),WI=(e,t,n)=>{const r=zr(Ne(e,n));return on(r,"root",t[n]),on(e,n,r),e},Kp=e=>hi(e);function zT(e,t,n="validate"){if(Kp(e)||Array.isArray(e)&&e.every(Kp)||eo(e)&&!e)return{type:n,message:Kp(e)?e:"",ref:t}}var nu=e=>Pn(e)&&!Dg(e)?e:{value:e,message:""},$b=async(e,t,n,r,o,s)=>{const{ref:l,refs:c,required:f,maxLength:d,minLength:p,min:g,max:m,pattern:y,validate:b,name:S,valueAsNumber:R,mount:C}=e._f,x=Ne(n,S);if(!C||t.has(S))return{};const _=c?c[0]:l,M=j=>{o&&_.reportValidity&&(_.setCustomValidity(eo(j)?"":j||""),_.reportValidity())},T={},A=RE(l),O=Od(l),k=A||O,D=(R||wE(l))&&gn(l.value)&&gn(x)||Og(l)&&l.value===""||x===""||Array.isArray(x)&&!x.length,U=mG.bind(null,S,r,T),L=(j,B,Y,H=Yi.maxLength,F=Yi.minLength)=>{const V=j?B:Y;T[S]={type:j?H:F,message:V,ref:l,...U(j?H:F,V)}};if(s?!Array.isArray(x)||!x.length:f&&(!k&&(D||Cr(x))||eo(x)&&!x||O&&!GI(c).isValid||A&&!KI(c).isValid)){const{value:j,message:B}=Kp(f)?{value:!!f,message:f}:nu(f);if(j&&(T[S]={type:Yi.required,message:B,ref:_,...U(Yi.required,B)},!r))return M(B),T}if(!D&&(!Cr(g)||!Cr(m))){let j,B;const Y=nu(m),H=nu(g);if(!Cr(x)&&!isNaN(x)){const F=l.valueAsNumber||x&&+x;Cr(Y.value)||(j=F>Y.value),Cr(H.value)||(B=F<H.value)}else{const F=l.valueAsDate||new Date(x),V=P=>new Date(new Date().toDateString()+" "+P),$=l.type=="time",W=l.type=="week";hi(Y.value)&&x&&(j=$?V(x)>V(Y.value):W?x>Y.value:F>new Date(Y.value)),hi(H.value)&&x&&(B=$?V(x)<V(H.value):W?x<H.value:F<new Date(H.value))}if((j||B)&&(L(!!j,Y.message,H.message,Yi.max,Yi.min),!r))return M(T[S].message),T}if((d||p)&&!D&&(hi(x)||s&&Array.isArray(x))){const j=nu(d),B=nu(p),Y=!Cr(j.value)&&x.length>+j.value,H=!Cr(B.value)&&x.length<+B.value;if((Y||H)&&(L(Y,j.message,B.message),!r))return M(T[S].message),T}if(y&&!D&&hi(x)){const{value:j,message:B}=nu(y);if(Dg(j)&&!x.match(j)&&(T[S]={type:Yi.pattern,message:B,ref:l,...U(Yi.pattern,B)},!r))return M(B),T}if(b){if(Vo(b)){const j=await b(x,n),B=zT(j,_);if(B&&(T[S]={...B,...U(Yi.validate,B.message)},!r))return M(B.message),T}else if(Pn(b)){let j={};for(const B in b){if(!xr(j)&&!r)break;const Y=zT(await b[B](x,n),_,B);Y&&(j={...Y,...U(B,Y.message)},M(Y.message),r&&(T[S]=j))}if(!xr(j)&&(T[S]={ref:_,...j},!r))return T}}return M(!0),T};const TG={mode:xo.onSubmit,reValidateMode:xo.onChange,shouldFocusError:!0};function AG(e={}){let t={...TG,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Vo(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Pn(t.defaultValues)||Pn(t.values)?pn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:pn(o),l={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,d=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...p};const m={array:kT(),state:kT()},y=t.criteriaMode===xo.all,b=q=>J=>{clearTimeout(d),d=setTimeout(q,J)},S=async q=>{if(!t.disabled&&(p.isValid||g.isValid||q)){const J=t.resolver?xr((await O()).errors):await D(r,!0);J!==n.isValid&&m.state.next({isValid:J})}},R=(q,J)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((q||Array.from(c.mount)).forEach(ae=>{ae&&(J?on(n.validatingFields,ae,J):Dn(n.validatingFields,ae))}),m.state.next({validatingFields:n.validatingFields,isValidating:!xr(n.validatingFields)}))},C=(q,J=[],ae,Me,_e=!0,be=!0)=>{if(Me&&ae&&!t.disabled){if(l.action=!0,be&&Array.isArray(Ne(r,q))){const ke=ae(Ne(r,q),Me.argA,Me.argB);_e&&on(r,q,ke)}if(be&&Array.isArray(Ne(n.errors,q))){const ke=ae(Ne(n.errors,q),Me.argA,Me.argB);_e&&on(n.errors,q,ke),CG(n.errors,q)}if((p.touchedFields||g.touchedFields)&&be&&Array.isArray(Ne(n.touchedFields,q))){const ke=ae(Ne(n.touchedFields,q),Me.argA,Me.argB);_e&&on(n.touchedFields,q,ke)}(p.dirtyFields||g.dirtyFields)&&(n.dirtyFields=Sf(o,s)),m.state.next({name:q,isDirty:L(q,J),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else on(s,q,J)},x=(q,J)=>{on(n.errors,q,J),m.state.next({errors:n.errors})},_=q=>{n.errors=q,m.state.next({errors:n.errors,isValid:!1})},M=(q,J,ae,Me)=>{const _e=Ne(r,q);if(_e){const be=Ne(s,q,gn(ae)?Ne(o,q):ae);gn(be)||Me&&Me.defaultChecked||J?on(s,q,J?be:FT(_e._f)):Y(q,be),l.mount&&S()}},T=(q,J,ae,Me,_e)=>{let be=!1,ke=!1;const He={name:q};if(!t.disabled){if(!ae||Me){(p.isDirty||g.isDirty)&&(ke=n.isDirty,n.isDirty=He.isDirty=L(),be=ke!==He.isDirty);const Ve=es(Ne(o,q),J);ke=!!Ne(n.dirtyFields,q),Ve?Dn(n.dirtyFields,q):on(n.dirtyFields,q,!0),He.dirtyFields=n.dirtyFields,be=be||(p.dirtyFields||g.dirtyFields)&&ke!==!Ve}if(ae){const Ve=Ne(n.touchedFields,q);Ve||(on(n.touchedFields,q,ae),He.touchedFields=n.touchedFields,be=be||(p.touchedFields||g.touchedFields)&&Ve!==ae)}be&&_e&&m.state.next(He)}return be?He:{}},A=(q,J,ae,Me)=>{const _e=Ne(n.errors,q),be=(p.isValid||g.isValid)&&eo(J)&&n.isValid!==J;if(t.delayError&&ae?(f=b(()=>x(q,ae)),f(t.delayError)):(clearTimeout(d),f=null,ae?on(n.errors,q,ae):Dn(n.errors,q)),(ae?!es(_e,ae):_e)||!xr(Me)||be){const ke={...Me,...be&&eo(J)?{isValid:J}:{},errors:n.errors,name:q};n={...n,...ke},m.state.next(ke)}},O=async q=>{R(q,!0);const J=await t.resolver(s,t.context,SG(q||c.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(q),J},k=async q=>{const{errors:J}=await O(q);if(q)for(const ae of q){const Me=Ne(J,ae);Me?on(n.errors,ae,Me):Dn(n.errors,ae)}else n.errors=J;return J},D=async(q,J,ae={valid:!0})=>{for(const Me in q){const _e=q[Me];if(_e){const{_f:be,...ke}=_e;if(be){const He=c.array.has(be.name),Ve=_e._f&&EG(_e._f);Ve&&p.validatingFields&&R([Me],!0);const Fe=await $b(_e,c.disabled,s,y,t.shouldUseNativeValidation&&!J,He);if(Ve&&p.validatingFields&&R([Me]),Fe[be.name]&&(ae.valid=!1,J))break;!J&&(Ne(Fe,be.name)?He?WI(n.errors,Fe,be.name):on(n.errors,be.name,Fe[be.name]):Dn(n.errors,be.name))}!xr(ke)&&await D(ke,J,ae)}}return ae.valid},U=()=>{for(const q of c.unMount){const J=Ne(r,q);J&&(J._f.refs?J._f.refs.every(ae=>!Ky(ae)):!Ky(J._f.ref))&&le(q)}c.unMount=new Set},L=(q,J)=>!t.disabled&&(q&&J&&on(s,q,J),!es(P(),o)),j=(q,J,ae)=>VI(q,c,{...l.mount?s:gn(J)?o:hi(q)?{[q]:J}:J},ae,J),B=q=>Im(Ne(l.mount?s:o,q,t.shouldUnregister?Ne(o,q,[]):[])),Y=(q,J,ae={})=>{const Me=Ne(r,q);let _e=J;if(Me){const be=Me._f;be&&(!be.disabled&&on(s,q,YI(J,be)),_e=Og(be.ref)&&Cr(J)?"":J,jI(be.ref)?[...be.ref.options].forEach(ke=>ke.selected=_e.includes(ke.value)):be.refs?Od(be.ref)?be.refs.forEach(ke=>{(!ke.defaultChecked||!ke.disabled)&&(Array.isArray(_e)?ke.checked=!!_e.find(He=>He===ke.value):ke.checked=_e===ke.value||!!_e)}):be.refs.forEach(ke=>ke.checked=ke.value===_e):wE(be.ref)?be.ref.value="":(be.ref.value=_e,be.ref.type||m.state.next({name:q,values:pn(s)})))}(ae.shouldDirty||ae.shouldTouch)&&T(q,_e,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&W(q)},H=(q,J,ae)=>{for(const Me in J){if(!J.hasOwnProperty(Me))return;const _e=J[Me],be=q+"."+Me,ke=Ne(r,be);(c.array.has(q)||Pn(_e)||ke&&!ke._f)&&!Va(_e)?H(be,_e,ae):Y(be,_e,ae)}},F=(q,J,ae={})=>{const Me=Ne(r,q),_e=c.array.has(q),be=pn(J);on(s,q,be),_e?(m.array.next({name:q,values:pn(s)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&ae.shouldDirty&&m.state.next({name:q,dirtyFields:Sf(o,s),isDirty:L(q,be)})):Me&&!Me._f&&!Cr(be)?H(q,be,ae):Y(q,be,ae),qb(q,c)&&m.state.next({...n,name:q}),m.state.next({name:l.mount?q:void 0,values:pn(s)})},V=async q=>{l.mount=!0;const J=q.target;let ae=J.name,Me=!0;const _e=Ne(r,ae),be=Ve=>{Me=Number.isNaN(Ve)||Va(Ve)&&isNaN(Ve.getTime())||es(Ve,Ne(s,ae,Ve))},ke=lu(t.mode),He=lu(t.reValidateMode);if(_e){let Ve,Fe;const Et=J.type?FT(_e._f):BI(q),pt=q.type===Mg.BLUR||q.type===Mg.FOCUS_OUT,an=!wG(_e._f)&&!t.resolver&&!Ne(n.errors,ae)&&!_e._f.deps||_G(pt,Ne(n.touchedFields,ae),n.isSubmitted,He,ke),en=qb(ae,c,pt);on(s,ae,Et),pt?(!J||!J.readOnly)&&(_e._f.onBlur&&_e._f.onBlur(q),f&&f(0)):_e._f.onChange&&_e._f.onChange(q);const ye=T(ae,Et,pt),$e=!xr(ye)||en;if(!pt&&m.state.next({name:ae,type:q.type,values:pn(s)}),an)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?pt&&S():pt||S()),$e&&m.state.next({name:ae,...en?{}:ye});if(!pt&&en&&m.state.next({...n}),t.resolver){const{errors:je}=await O([ae]);if(be(Et),Me){const Ge=HT(n.errors,r,ae),Ke=HT(je,r,Ge.name||ae);Ve=Ke.error,ae=Ke.name,Fe=xr(je)}}else R([ae],!0),Ve=(await $b(_e,c.disabled,s,y,t.shouldUseNativeValidation))[ae],R([ae]),be(Et),Me&&(Ve?Fe=!1:(p.isValid||g.isValid)&&(Fe=await D(r,!0)));Me&&(_e._f.deps&&W(_e._f.deps),A(ae,Fe,Ve,ye))}},$=(q,J)=>{if(Ne(n.errors,J)&&q.focus)return q.focus(),1},W=async(q,J={})=>{let ae,Me;const _e=zr(q);if(t.resolver){const be=await k(gn(q)?q:_e);ae=xr(be),Me=q?!_e.some(ke=>Ne(be,ke)):ae}else q?(Me=(await Promise.all(_e.map(async be=>{const ke=Ne(r,be);return await D(ke&&ke._f?{[be]:ke}:ke)}))).every(Boolean),!(!Me&&!n.isValid)&&S()):Me=ae=await D(r);return m.state.next({...!hi(q)||(p.isValid||g.isValid)&&ae!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:ae}:{},errors:n.errors}),J.shouldFocus&&!Me&&vu(r,$,q?_e:c.mount),Me},P=q=>{const J={...l.mount?s:o};return gn(q)?J:hi(q)?Ne(J,q):q.map(ae=>Ne(J,ae))},Q=(q,J)=>({invalid:!!Ne((J||n).errors,q),isDirty:!!Ne((J||n).dirtyFields,q),error:Ne((J||n).errors,q),isValidating:!!Ne(n.validatingFields,q),isTouched:!!Ne((J||n).touchedFields,q)}),Z=q=>{q&&zr(q).forEach(J=>Dn(n.errors,J)),m.state.next({errors:q?n.errors:{}})},G=(q,J,ae)=>{const Me=(Ne(r,q,{_f:{}})._f||{}).ref,_e=Ne(n.errors,q)||{},{ref:be,message:ke,type:He,...Ve}=_e;on(n.errors,q,{...Ve,...J,ref:Me}),m.state.next({name:q,errors:n.errors,isValid:!1}),ae&&ae.shouldFocus&&Me&&Me.focus&&Me.focus()},ne=(q,J)=>Vo(q)?m.state.subscribe({next:ae=>"values"in ae&&q(j(void 0,J),ae)}):j(q,J,!0),re=q=>m.state.subscribe({next:J=>{xG(q.name,J.name,q.exact)&&RG(J,q.formState||p,ge,q.reRenderRoot)&&q.callback({values:{...s},...n,...J,defaultValues:o})}}).unsubscribe,z=q=>(l.mount=!0,g={...g,...q.formState},re({...q,formState:g})),le=(q,J={})=>{for(const ae of q?zr(q):c.mount)c.mount.delete(ae),c.array.delete(ae),J.keepValue||(Dn(r,ae),Dn(s,ae)),!J.keepError&&Dn(n.errors,ae),!J.keepDirty&&Dn(n.dirtyFields,ae),!J.keepTouched&&Dn(n.touchedFields,ae),!J.keepIsValidating&&Dn(n.validatingFields,ae),!t.shouldUnregister&&!J.keepDefaultValue&&Dn(o,ae);m.state.next({values:pn(s)}),m.state.next({...n,...J.keepDirty?{isDirty:L()}:{}}),!J.keepIsValid&&S()},K=({disabled:q,name:J})=>{(eo(q)&&l.mount||q||c.disabled.has(J))&&(q?c.disabled.add(J):c.disabled.delete(J))},se=(q,J={})=>{let ae=Ne(r,q);const Me=eo(J.disabled)||eo(t.disabled);return on(r,q,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:q}},name:q,mount:!0,...J}}),c.mount.add(q),ae?K({disabled:eo(J.disabled)?J.disabled:t.disabled,name:q}):M(q,!0,J.value),{...Me?{disabled:J.disabled||t.disabled}:{},...t.progressive?{required:!!J.required,min:Ef(J.min),max:Ef(J.max),minLength:Ef(J.minLength),maxLength:Ef(J.maxLength),pattern:Ef(J.pattern)}:{},name:q,onChange:V,onBlur:V,ref:_e=>{if(_e){se(q,J),ae=Ne(r,q);const be=gn(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,ke=vG(be),He=ae._f.refs||[];if(ke?He.find(Ve=>Ve===be):be===ae._f.ref)return;on(r,q,{_f:{...ae._f,...ke?{refs:[...He.filter(Ky),be,...Array.isArray(Ne(o,q))?[{}]:[]],ref:{type:be.type,name:q}}:{ref:be}}}),M(q,!1,void 0,be)}else ae=Ne(r,q,{}),ae._f&&(ae._f.mount=!1),(t.shouldUnregister||J.shouldUnregister)&&!(HI(c.array,q)&&l.action)&&c.unMount.add(q)}}},ie=()=>t.shouldFocusError&&vu(r,$,c.mount),ve=q=>{eo(q)&&(m.state.next({disabled:q}),vu(r,(J,ae)=>{const Me=Ne(r,ae);Me&&(J.disabled=Me._f.disabled||q,Array.isArray(Me._f.refs)&&Me._f.refs.forEach(_e=>{_e.disabled=Me._f.disabled||q}))},0,!1))},pe=(q,J)=>async ae=>{let Me;ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let _e=pn(s);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:be,values:ke}=await O();n.errors=be,_e=pn(ke)}else await D(r);if(c.disabled.size)for(const be of c.disabled)Dn(_e,be);if(Dn(n.errors,"root"),xr(n.errors)){m.state.next({errors:{}});try{await q(_e,ae)}catch(be){Me=be}}else J&&await J({...n.errors},ae),ie(),setTimeout(ie);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xr(n.errors)&&!Me,submitCount:n.submitCount+1,errors:n.errors}),Me)throw Me},Se=(q,J={})=>{Ne(r,q)&&(gn(J.defaultValue)?F(q,pn(Ne(o,q))):(F(q,J.defaultValue),on(o,q,pn(J.defaultValue))),J.keepTouched||Dn(n.touchedFields,q),J.keepDirty||(Dn(n.dirtyFields,q),n.isDirty=J.defaultValue?L(q,pn(Ne(o,q))):L()),J.keepError||(Dn(n.errors,q),p.isValid&&S()),m.state.next({...n}))},Ie=(q,J={})=>{const ae=q?pn(q):o,Me=pn(ae),_e=xr(q),be=_e?o:Me;if(J.keepDefaultValues||(o=ae),!J.keepValues){if(J.keepDirtyValues){const ke=new Set([...c.mount,...Object.keys(Sf(o,s))]);for(const He of Array.from(ke))Ne(n.dirtyFields,He)?on(be,He,Ne(s,He)):F(He,Ne(be,He))}else{if(SE&&gn(q))for(const ke of c.mount){const He=Ne(r,ke);if(He&&He._f){const Ve=Array.isArray(He._f.refs)?He._f.refs[0]:He._f.ref;if(Og(Ve)){const Fe=Ve.closest("form");if(Fe){Fe.reset();break}}}}if(J.keepFieldsRef)for(const ke of c.mount)F(ke,Ne(be,ke));else r={}}s=t.shouldUnregister?J.keepDefaultValues?pn(o):{}:pn(be),m.array.next({values:{...be}}),m.state.next({values:{...be}})}c={mount:J.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!J.keepIsValid||!!J.keepDirtyValues,l.watch=!!t.shouldUnregister,m.state.next({submitCount:J.keepSubmitCount?n.submitCount:0,isDirty:_e?!1:J.keepDirty?n.isDirty:!!(J.keepDefaultValues&&!es(q,o)),isSubmitted:J.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:_e?{}:J.keepDirtyValues?J.keepDefaultValues&&s?Sf(o,s):n.dirtyFields:J.keepDefaultValues&&q?Sf(o,q):J.keepDirty?n.dirtyFields:{},touchedFields:J.keepTouched?n.touchedFields:{},errors:J.keepErrors?n.errors:{},isSubmitSuccessful:J.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Te=(q,J)=>Ie(Vo(q)?q(s):q,J),Le=(q,J={})=>{const ae=Ne(r,q),Me=ae&&ae._f;if(Me){const _e=Me.refs?Me.refs[0]:Me.ref;_e.focus&&(_e.focus(),J.shouldSelect&&Vo(_e.select)&&_e.select())}},ge=q=>{n={...n,...q}},xe={control:{register:se,unregister:le,getFieldState:Q,handleSubmit:pe,setError:G,_subscribe:re,_runSchema:O,_focusError:ie,_getWatch:j,_getDirty:L,_setValid:S,_setFieldArray:C,_setDisabledField:K,_setErrors:_,_getFieldArray:B,_reset:Ie,_resetDefaultValues:()=>Vo(t.defaultValues)&&t.defaultValues().then(q=>{Te(q,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:U,_disableForm:ve,_subjects:m,_proxyFormState:p,get _fields(){return r},get _formValues(){return s},get _state(){return l},set _state(q){l=q},get _defaultValues(){return o},get _names(){return c},set _names(q){c=q},get _formState(){return n},get _options(){return t},set _options(q){t={...t,...q}}},subscribe:z,trigger:W,register:se,handleSubmit:pe,watch:ne,setValue:F,getValues:P,reset:Te,resetField:Se,clearErrors:Z,unregister:le,setError:G,setFocus:Le,getFieldState:Q};return{...xe,formControl:xe}}var Bs=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Wy=(e,t,n={})=>n.shouldFocus||gn(n.shouldFocus)?n.focusName||`${e}.${gn(n.focusIndex)?t:n.focusIndex}.`:"",Xy=(e,t)=>[...e,...zr(t)],Qy=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Zy(e,t,n){return[...e.slice(0,t),...zr(n),...e.slice(t)]}var Jy=(e,t,n)=>Array.isArray(e)?(gn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],e1=(e,t)=>[...zr(t),...zr(e)];function MG(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return Im(r).length?r:[]}var t1=(e,t)=>gn(t)?[]:MG(e,zr(t).sort((n,r)=>n-r)),n1=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},UT=(e,t,n)=>(e[t]=n,e);function vte(e){const t=Dm(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:s,rules:l}=e,[c,f]=ce.useState(n._getFieldArray(r)),d=ce.useRef(n._getFieldArray(r).map(Bs)),p=ce.useRef(c),g=ce.useRef(!1);p.current=c,n._names.array.add(r),ce.useMemo(()=>l&&n.register(r,l),[n,l,r]),km(()=>n._subjects.array.subscribe({next:({values:T,name:A})=>{if(A===r||!A){const O=Ne(T,r);Array.isArray(O)&&(f(O),d.current=O.map(Bs))}}}).unsubscribe,[n,r]);const m=ce.useCallback(T=>{g.current=!0,n._setFieldArray(r,T)},[n,r]),y=(T,A)=>{const O=zr(pn(T)),k=Xy(n._getFieldArray(r),O);n._names.focus=Wy(r,k.length-1,A),d.current=Xy(d.current,O.map(Bs)),m(k),f(k),n._setFieldArray(r,k,Xy,{argA:Qy(T)})},b=(T,A)=>{const O=zr(pn(T)),k=e1(n._getFieldArray(r),O);n._names.focus=Wy(r,0,A),d.current=e1(d.current,O.map(Bs)),m(k),f(k),n._setFieldArray(r,k,e1,{argA:Qy(T)})},S=T=>{const A=t1(n._getFieldArray(r),T);d.current=t1(d.current,T),m(A),f(A),!Array.isArray(Ne(n._fields,r))&&on(n._fields,r,void 0),n._setFieldArray(r,A,t1,{argA:T})},R=(T,A,O)=>{const k=zr(pn(A)),D=Zy(n._getFieldArray(r),T,k);n._names.focus=Wy(r,T,O),d.current=Zy(d.current,T,k.map(Bs)),m(D),f(D),n._setFieldArray(r,D,Zy,{argA:T,argB:Qy(A)})},C=(T,A)=>{const O=n._getFieldArray(r);n1(O,T,A),n1(d.current,T,A),m(O),f(O),n._setFieldArray(r,O,n1,{argA:T,argB:A},!1)},x=(T,A)=>{const O=n._getFieldArray(r);Jy(O,T,A),Jy(d.current,T,A),m(O),f(O),n._setFieldArray(r,O,Jy,{argA:T,argB:A},!1)},_=(T,A)=>{const O=pn(A),k=UT(n._getFieldArray(r),T,O);d.current=[...k].map((D,U)=>!D||U===T?Bs():d.current[U]),m(k),f([...k]),n._setFieldArray(r,k,UT,{argA:T,argB:O},!0,!1)},M=T=>{const A=zr(pn(T));d.current=A.map(Bs),m([...A]),f([...A]),n._setFieldArray(r,[...A],O=>O,{},!0,!1)};return ce.useEffect(()=>{if(n._state.action=!1,qb(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!lu(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!lu(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(T=>{const A=Ne(T.errors,r),O=Ne(n._formState.errors,r);(O?!A&&O.type||A&&(O.type!==A.type||O.message!==A.message):A&&A.type)&&(A?on(n._formState.errors,r,A):Dn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const T=Ne(n._fields,r);T&&T._f&&!(lu(n._options.reValidateMode).isOnSubmit&&lu(n._options.mode).isOnSubmit)&&$b(T,n._names.disabled,n._formValues,n._options.criteriaMode===xo.all,n._options.shouldUseNativeValidation,!0).then(A=>!xr(A)&&n._subjects.state.next({errors:WI(n._formState.errors,A,r)}))}n._subjects.state.next({name:r,values:pn(n._formValues)}),n._names.focus&&vu(n._fields,(T,A)=>{if(n._names.focus&&A.startsWith(n._names.focus)&&T.focus)return T.focus(),1}),n._names.focus="",n._setValid(),g.current=!1},[c,r,n]),ce.useEffect(()=>(!Ne(n._formValues,r)&&n._setFieldArray(r),()=>{const T=(A,O)=>{const k=Ne(n._fields,A);k&&k._f&&(k._f.mount=O)};n._options.shouldUnregister||s?n.unregister(r):T(r,!1)}),[r,n,o,s]),{swap:ce.useCallback(C,[m,r,n]),move:ce.useCallback(x,[m,r,n]),prepend:ce.useCallback(b,[m,r,n]),append:ce.useCallback(y,[m,r,n]),remove:ce.useCallback(S,[m,r,n]),insert:ce.useCallback(R,[m,r,n]),update:ce.useCallback(_,[m,r,n]),replace:ce.useCallback(M,[m,r,n]),fields:ce.useMemo(()=>c.map((T,A)=>({...T,[o]:d.current[A]||Bs()})),[c,o])}}function yte(e={}){const t=ce.useRef(void 0),n=ce.useRef(void 0),[r,o]=ce.useState({isDirty:!1,isValidating:!1,isLoading:Vo(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Vo(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Vo(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...c}=AG(e);t.current={...c,formState:r}}const s=t.current.control;return s._options=e,km(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(c=>({...c,isReady:!0})),s._formState.isReady=!0,l},[s]),ce.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),ce.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),ce.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),ce.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),ce.useEffect(()=>{if(s._proxyFormState.isDirty){const l=s._getDirty();l!==r.isDirty&&s._subjects.state.next({isDirty:l})}},[s,r.isDirty]),ce.useEffect(()=>{e.values&&!es(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),n.current=e.values,o(l=>({...l}))):s._resetDefaultValues()},[s,e.values]),ce.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=UI(r,s),t.current}function gc(){return(gc=Object.assign||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}).apply(this,arguments)}function Lm(e,t){if(e==null)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(o[n]=e[n]);return o}function Kf(e){var t=E.useRef(e),n=E.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Gu=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},Of=function(e){return"touches"in e},Gb=function(e){return e&&e.ownerDocument.defaultView||self},VT=function(e,t,n){var r=e.getBoundingClientRect(),o=Of(t)?function(s,l){for(var c=0;c<s.length;c++)if(s[c].identifier===l)return s[c];return s[0]}(t.touches,n):t;return{left:Gu((o.pageX-(r.left+Gb(e).pageXOffset))/r.width),top:Gu((o.pageY-(r.top+Gb(e).pageYOffset))/r.height)}},jT=function(e){!Of(e)&&e.preventDefault()},xE=ce.memo(function(e){var t=e.onMove,n=e.onKey,r=Lm(e,["onMove","onKey"]),o=E.useRef(null),s=Kf(t),l=Kf(n),c=E.useRef(null),f=E.useRef(!1),d=E.useMemo(function(){var y=function(R){jT(R),(Of(R)?R.touches.length>0:R.buttons>0)&&o.current?s(VT(o.current,R,c.current)):S(!1)},b=function(){return S(!1)};function S(R){var C=f.current,x=Gb(o.current),_=R?x.addEventListener:x.removeEventListener;_(C?"touchmove":"mousemove",y),_(C?"touchend":"mouseup",b)}return[function(R){var C=R.nativeEvent,x=o.current;if(x&&(jT(C),!function(M,T){return T&&!Of(M)}(C,f.current)&&x)){if(Of(C)){f.current=!0;var _=C.changedTouches||[];_.length&&(c.current=_[0].identifier)}x.focus(),s(VT(x,C,c.current)),S(!0)}},function(R){var C=R.which||R.keyCode;C<37||C>40||(R.preventDefault(),l({left:C===39?.05:C===37?-.05:0,top:C===40?.05:C===38?-.05:0}))},S]},[l,s]),p=d[0],g=d[1],m=d[2];return E.useEffect(function(){return m},[m]),ce.createElement("div",gc({},r,{onTouchStart:p,onMouseDown:p,className:"react-colorful__interactive",ref:o,onKeyDown:g,tabIndex:0,role:"slider"}))}),Pm=function(e){return e.filter(Boolean).join(" ")},_E=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,s=Pm(["react-colorful__pointer",e.className]);return ce.createElement("div",{className:s,style:{top:100*o+"%",left:100*n+"%"}},ce.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},or=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},OG=function(e){return LG(Yb(e))},Yb=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?or(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?or(parseInt(e.substring(6,8),16)/255,2):1}},IG=function(e){return kG(DG(e))},XI=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:or(e.h),s:or(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:or(o/2),a:or(r,2)}},Kb=function(e){var t=XI(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},r1=function(e){var t=XI(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},DG=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var s=Math.floor(t),l=r*(1-n),c=r*(1-(t-s)*n),f=r*(1-(1-t+s)*n),d=s%6;return{r:or(255*[r,c,l,l,f,r][d]),g:or(255*[f,r,r,c,l,l][d]),b:or(255*[l,l,f,r,r,c][d]),a:or(o,2)}},vp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},kG=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,s=o<1?vp(or(255*o)):"";return"#"+vp(t)+vp(n)+vp(r)+s},LG=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,s=Math.max(t,n,r),l=s-Math.min(t,n,r),c=l?s===t?(n-r)/l:s===n?2+(r-t)/l:4+(t-n)/l:0;return{h:or(60*(c<0?c+6:c)),s:or(s?l/s*100:0),v:or(s/255*100),a:o}},PG=ce.memo(function(e){var t=e.hue,n=e.onChange,r=Pm(["react-colorful__hue",e.className]);return ce.createElement("div",{className:r},ce.createElement(xE,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:Gu(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":or(t),"aria-valuemax":"360","aria-valuemin":"0"},ce.createElement(_E,{className:"react-colorful__hue-pointer",left:t/360,color:Kb({h:t,s:100,v:100,a:1})})))}),NG=ce.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Kb({h:t.h,s:100,v:100,a:1})};return ce.createElement("div",{className:"react-colorful__saturation",style:r},ce.createElement(xE,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:Gu(t.s+100*o.left,0,100),v:Gu(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+or(t.s)+"%, Brightness "+or(t.v)+"%"},ce.createElement(_E,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Kb(t)})))}),QI=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},FG=function(e,t){return e.toLowerCase()===t.toLowerCase()||QI(Yb(e),Yb(t))};function BG(e,t,n){var r=Kf(n),o=E.useState(function(){return e.toHsva(t)}),s=o[0],l=o[1],c=E.useRef({color:t,hsva:s});E.useEffect(function(){if(!e.equal(t,c.current.color)){var d=e.toHsva(t);c.current={hsva:d,color:t},l(d)}},[t,e]),E.useEffect(function(){var d;QI(s,c.current.hsva)||e.equal(d=e.fromHsva(s),c.current.color)||(c.current={hsva:s,color:d},r(d))},[s,e,r]);var f=E.useCallback(function(d){l(function(p){return Object.assign({},p,d)})},[]);return[s,f]}var HG=typeof window<"u"?E.useLayoutEffect:E.useEffect,zG=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},qT=new Map,UG=function(e){HG(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!qT.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,qT.set(t,n);var r=zG();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},VG=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+r1(Object.assign({},n,{a:0}))+", "+r1(Object.assign({},n,{a:1}))+")"},s=Pm(["react-colorful__alpha",t]),l=or(100*n.a);return ce.createElement("div",{className:s},ce.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),ce.createElement(xE,{onMove:function(c){r({a:c.left})},onKey:function(c){r({a:Gu(n.a+c.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},ce.createElement(_E,{className:"react-colorful__alpha-pointer",left:n.a,color:r1(n)})))},jG=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,s=e.onChange,l=Lm(e,["className","colorModel","color","onChange"]),c=E.useRef(null);UG(c);var f=BG(n,o,s),d=f[0],p=f[1],g=Pm(["react-colorful",t]);return ce.createElement("div",gc({},l,{ref:c,className:g}),ce.createElement(NG,{hsva:d,onChange:p}),ce.createElement(PG,{hue:d.h,onChange:p}),ce.createElement(VG,{hsva:d,onChange:p,className:"react-colorful__last-control"}))},qG={defaultColor:"0001",toHsva:OG,fromHsva:IG,equal:FG},bte=function(e){return ce.createElement(jG,gc({},e,{colorModel:qG}))},$G=/^#?([0-9A-F]{3,8})$/i,GG=function(e){var t=e.color,n=t===void 0?"":t,r=e.onChange,o=e.onBlur,s=e.escape,l=e.validate,c=e.format,f=e.process,d=Lm(e,["color","onChange","onBlur","escape","validate","format","process"]),p=E.useState(function(){return s(n)}),g=p[0],m=p[1],y=Kf(r),b=Kf(o),S=E.useCallback(function(C){var x=s(C.target.value);m(x),l(x)&&y(f?f(x):x)},[s,f,l,y]),R=E.useCallback(function(C){l(C.target.value)||m(s(n)),b(C)},[n,s,l,b]);return E.useEffect(function(){m(s(n))},[n,s]),ce.createElement("input",gc({},d,{value:c?c(g):g,spellCheck:"false",onChange:S,onBlur:R}))},$T=function(e){return"#"+e},Ste=function(e){var t=e.prefixed,n=e.alpha,r=Lm(e,["prefixed","alpha"]),o=E.useCallback(function(l){return l.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),s=E.useCallback(function(l){return function(c,f){var d=$G.exec(c),p=d?d[1].length:0;return p===3||p===6||!!f&&p===4||!!f&&p===8}(l,n)},[n]);return ce.createElement(GG,gc({},r,{escape:o,format:t?$T:void 0,process:$T,validate:s}))};const YG=300,ZI=E.createContext(void 0);function vl(e){const t=E.useContext(ZI);if(t===void 0&&!e)throw new Error("Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.");return t}function GT({props:e}){const{open:t,onOpenChange:n,defaultOpen:r=!1,delay:o=YG,closeDelay:s=0,openOnHover:l=!1,onOpenChangeComplete:c,modal:f=!1}=e,[d,p]=E.useState(),[g,m]=E.useState(),[y,b]=E.useState(),[S,R]=E.useState(null),[C,x]=E.useState(null),[_,M]=E.useState(null),[T,A]=E.useState(!0),O=E.useRef(null),k=E.useRef(null),D=E.useRef(null),U=_n(),L=ds()!=null;let j;const[B,Y]=vi({controlled:t,default:r,name:"Popover",state:"open"}),{mounted:H,setMounted:F,transitionStatus:V}=hs(B),{openMethod:$,triggerProps:W,reset:P}=pE(B),Q=Be(()=>{F(!1),A(!0),M(null),c==null||c(!1),P()});qr({enabled:!e.actionsRef,open:B,ref:D,onComplete(){B||Q()}}),E.useImperativeHandle(e.actionsRef,()=>({unmount:Q}),[Q]),E.useEffect(()=>{B||U.clear()},[U,B]);const Z=Be((pe,Se)=>{const Ie=Se.reason==="trigger-hover",Te=Se.reason==="trigger-press"&&Se.event.detail===0,Le=!pe&&(Se.reason==="escape-key"||Se.reason==="none");if(n==null||n(pe,Se),Se.isCanceled)return;const ge={open:pe,nativeEvent:Se.event,reason:Se.reason,nested:L};j==null||j.emit("openchange",ge);function Re(){Y(pe),pe&&M(Se.reason)}Ie?(A(!0),U.start(a4,()=>{A(!1)}),br.flushSync(Re)):Re(),p(Te||Le?Te?"click":"dismiss":void 0)}),G=Ju({elements:{reference:S,floating:C},open:B,onOpenChange:Z});j=G.events,Cm({enabled:B&&f===!0&&_!=="trigger-hover"&&$!=="touch",mounted:H,open:B,referenceElement:C});const ne=o,re=OS(G,{enabled:l&&($!=="touch"||_!=="trigger-press"),mouseOnly:!0,move:!1,handleClose:LS({blockPointerEvents:!0}),restMs:ne,delay:{close:s}}),z=rm(G,{stickIfOpen:T}),le=cd(G,{outsidePressEvent:{mouse:f==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),K=kS(G),{getReferenceProps:se,getFloatingProps:ie}=fd([re,z,le,K]),ve=E.useMemo(()=>({open:B,setOpen:Z,mounted:H,setMounted:F,transitionStatus:V,triggerElement:S,setTriggerElement:R,positionerElement:C,setPositionerElement:x,popupRef:D,titleId:g,setTitleId:m,descriptionId:y,setDescriptionId:b,backdropRef:O,internalBackdropRef:k,triggerProps:Do(se(),W),popupProps:ie(),floatingRootContext:G,instantType:d,openMethod:$,openReason:_,onOpenChangeComplete:c,openOnHover:l,delay:o,closeDelay:s,modal:f}),[B,Z,H,F,V,C,g,y,se,S,W,ie,G,d,$,_,c,l,o,s,f]);return Ee.jsx(ZI.Provider,{value:ve,children:e.children})}function Ete(e){return vl(!0)?Ee.jsx(GT,{props:e}):Ee.jsx(s4,{children:Ee.jsx(GT,{props:e})})}const wte=E.forwardRef(function(t,n){const{render:r,className:o,disabled:s=!1,nativeButton:l=!0,...c}=t,{open:f,setTriggerElement:d,triggerProps:p,openReason:g}=vl(),m=E.useMemo(()=>({disabled:s,open:f}),[s,f]),{getButtonProps:y,buttonRef:b}=Ti({disabled:s,native:l}),S=E.useMemo(()=>({open(C){return C&&g==="trigger-press"?ug.open(C):PS.open(C)}}),[g]);return At("button",t,{state:m,ref:[b,d,n],props:[p,{[l4]:""},c,y],stateAttributesMapping:S})}),JI=E.createContext(void 0);function KG(){const e=E.useContext(JI);if(e===void 0)throw new Error("Base UI: <Popover.Portal> is missing.");return e}function Rte(e){const{children:t,keepMounted:n=!1,container:r}=e,{mounted:o}=vl();return o||n?Ee.jsx(JI.Provider,{value:n,children:Ee.jsx(tm,{root:r,children:t})}):null}const eD=E.createContext(void 0);function WG(){const e=E.useContext(eD);if(!e)throw new Error("Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.");return e}const xte=E.forwardRef(function(t,n){const{render:r,className:o,anchor:s,positionMethod:l="absolute",side:c="bottom",align:f="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m=5,arrowPadding:y=5,sticky:b=!1,trackAnchor:S=!0,collisionAvoidance:R=c4,...C}=t,{floatingRootContext:x,open:_,mounted:M,setPositionerElement:T,modal:A,openReason:O,openMethod:k,triggerElement:D,internalBackdropRef:U}=vl(),L=KG(),j=o4(),B=sm({anchor:s,floatingRootContext:x,positionMethod:l,mounted:M,side:c,sideOffset:d,align:f,alignOffset:p,arrowPadding:y,collisionBoundary:g,collisionPadding:m,sticky:b,trackAnchor:S,keepMounted:L,nodeId:j,collisionAvoidance:R}),Y=E.useMemo(()=>{const $={};return _||($.pointerEvents="none"),{role:"presentation",hidden:!M,style:{...B.positionerStyles,...$}}},[_,M,B.positionerStyles]),H=E.useMemo(()=>({props:Y,...B}),[Y,B]),F=E.useMemo(()=>({open:_,side:H.side,align:H.align,anchorHidden:H.anchorHidden}),[_,H.side,H.align,H.anchorHidden]),V=At("div",t,{state:F,props:[H.props,C],ref:[n,T],stateAttributesMapping:Lo});return Ee.jsxs(eD.Provider,{value:H,children:[M&&A===!0&&O!=="trigger-hover"&&k!=="touch"&&Ee.jsx(xm,{ref:U,inert:Rm(!_),cutout:D}),Ee.jsx(i4,{id:j,children:V})]})}),XG={...Lo,...Ci},_te=E.forwardRef(function(t,n){const{className:r,render:o,initialFocus:s,finalFocus:l,...c}=t,{open:f,instantType:d,transitionStatus:p,popupProps:g,titleId:m,descriptionId:y,popupRef:b,mounted:S,openReason:R,onOpenChangeComplete:C,modal:x,openMethod:_}=vl(),M=WG(),T=Md(!0)!=null;qr({open:f,ref:b,onComplete(){f&&(C==null||C(!0))}});const A=Be(U=>U==="touch"?b.current:!0),O=s===void 0?A:s,k=E.useMemo(()=>({open:f,side:M.side,align:M.align,instant:d,transitionStatus:p}),[f,M.side,M.align,d,p]),D=At("div",t,{state:k,ref:[n,b],props:[g,{"aria-labelledby":m,"aria-describedby":y,onKeyDown(U){T&&_m.has(U.key)&&U.stopPropagation()}},p==="starting"?Jg:rr,c],stateAttributesMapping:XG});return Ee.jsx(nm,{context:M.context,openInteractionType:_,modal:x==="trap-focus",disabled:!S||R==="trigger-hover",initialFocus:O,returnFocus:l,restoreFocus:"popup",children:D})}),Cte=E.forwardRef(function(t,n){const{render:r,className:o,...s}=t,{setTitleId:l}=vl(),c=gs(s.id);return qe(()=>(l(c),()=>{l(void 0)}),[l,c]),At("h2",t,{ref:n,props:[{id:c},s]})}),Tte=E.forwardRef(function(t,n){const{render:r,className:o,...s}=t,{setDescriptionId:l}=vl(),c=gs(s.id);return qe(()=>(l(c),()=>{l(void 0)}),[l,c]),At("p",t,{ref:n,props:[{id:c},s]})});var ru={},o1={exports:{}},i1,YT;function QG(){if(YT)return i1;YT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return i1=e,i1}var s1,KT;function ZG(){if(KT)return s1;KT=1;var e=QG();function t(){}function n(){}return n.resetWarningCache=t,s1=function(){function r(l,c,f,d,p,g){if(g!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},s1}var WT;function tD(){return WT||(WT=1,o1.exports=ZG()()),o1.exports}var a1,XT;function nD(){return XT||(XT=1,a1={L:1,M:0,Q:3,H:2}),a1}var l1,QT;function rD(){return QT||(QT=1,l1={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),l1}var u1,ZT;function JG(){if(ZT)return u1;ZT=1;var e=rD();function t(n){this.mode=e.MODE_8BIT_BYTE,this.data=n}return t.prototype={getLength:function(n){return this.data.length},write:function(n){for(var r=0;r<this.data.length;r++)n.put(this.data.charCodeAt(r),8)}},u1=t,u1}var c1,JT;function eY(){if(JT)return c1;JT=1;var e=nD();function t(n,r){this.totalCount=n,this.dataCount=r}return t.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t.getRSBlocks=function(n,r){var o=t.getRsBlockTable(n,r);if(o==null)throw new Error("bad rs block @ typeNumber:"+n+"/errorCorrectLevel:"+r);for(var s=o.length/3,l=new Array,c=0;c<s;c++)for(var f=o[c*3+0],d=o[c*3+1],p=o[c*3+2],g=0;g<f;g++)l.push(new t(d,p));return l},t.getRsBlockTable=function(n,r){switch(r){case e.L:return t.RS_BLOCK_TABLE[(n-1)*4+0];case e.M:return t.RS_BLOCK_TABLE[(n-1)*4+1];case e.Q:return t.RS_BLOCK_TABLE[(n-1)*4+2];case e.H:return t.RS_BLOCK_TABLE[(n-1)*4+3];default:return}},c1=t,c1}var f1,eA;function tY(){if(eA)return f1;eA=1;function e(){this.buffer=new Array,this.length=0}return e.prototype={get:function(t){var n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)==1},put:function(t,n){for(var r=0;r<n;r++)this.putBit((t>>>n-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},f1=e,f1}var d1,tA;function oD(){if(tA)return d1;tA=1;for(var e={glog:function(n){if(n<1)throw new Error("glog("+n+")");return e.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return e.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},t=0;t<8;t++)e.EXP_TABLE[t]=1<<t;for(var t=8;t<256;t++)e.EXP_TABLE[t]=e.EXP_TABLE[t-4]^e.EXP_TABLE[t-5]^e.EXP_TABLE[t-6]^e.EXP_TABLE[t-8];for(var t=0;t<255;t++)e.LOG_TABLE[e.EXP_TABLE[t]]=t;return d1=e,d1}var h1,nA;function iD(){if(nA)return h1;nA=1;var e=oD();function t(n,r){if(n.length==null)throw new Error(n.length+"/"+r);for(var o=0;o<n.length&&n[o]==0;)o++;this.num=new Array(n.length-o+r);for(var s=0;s<n.length-o;s++)this.num[s]=n[s+o]}return t.prototype={get:function(n){return this.num[n]},getLength:function(){return this.num.length},multiply:function(n){for(var r=new Array(this.getLength()+n.getLength()-1),o=0;o<this.getLength();o++)for(var s=0;s<n.getLength();s++)r[o+s]^=e.gexp(e.glog(this.get(o))+e.glog(n.get(s)));return new t(r,0)},mod:function(n){if(this.getLength()-n.getLength()<0)return this;for(var r=e.glog(this.get(0))-e.glog(n.get(0)),o=new Array(this.getLength()),s=0;s<this.getLength();s++)o[s]=this.get(s);for(var s=0;s<n.getLength();s++)o[s]^=e.gexp(e.glog(n.get(s))+r);return new t(o,0).mod(n)}},h1=t,h1}var p1,rA;function nY(){if(rA)return p1;rA=1;var e=rD(),t=iD(),n=oD(),r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(s){for(var l=s<<10;o.getBCHDigit(l)-o.getBCHDigit(o.G15)>=0;)l^=o.G15<<o.getBCHDigit(l)-o.getBCHDigit(o.G15);return(s<<10|l)^o.G15_MASK},getBCHTypeNumber:function(s){for(var l=s<<12;o.getBCHDigit(l)-o.getBCHDigit(o.G18)>=0;)l^=o.G18<<o.getBCHDigit(l)-o.getBCHDigit(o.G18);return s<<12|l},getBCHDigit:function(s){for(var l=0;s!=0;)l++,s>>>=1;return l},getPatternPosition:function(s){return o.PATTERN_POSITION_TABLE[s-1]},getMask:function(s,l,c){switch(s){case r.PATTERN000:return(l+c)%2==0;case r.PATTERN001:return l%2==0;case r.PATTERN010:return c%3==0;case r.PATTERN011:return(l+c)%3==0;case r.PATTERN100:return(Math.floor(l/2)+Math.floor(c/3))%2==0;case r.PATTERN101:return l*c%2+l*c%3==0;case r.PATTERN110:return(l*c%2+l*c%3)%2==0;case r.PATTERN111:return(l*c%3+(l+c)%2)%2==0;default:throw new Error("bad maskPattern:"+s)}},getErrorCorrectPolynomial:function(s){for(var l=new t([1],0),c=0;c<s;c++)l=l.multiply(new t([1,n.gexp(c)],0));return l},getLengthInBits:function(s,l){if(1<=l&&l<10)switch(s){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw new Error("mode:"+s)}else if(l<27)switch(s){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw new Error("mode:"+s)}else if(l<41)switch(s){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw new Error("mode:"+s)}else throw new Error("type:"+l)},getLostPoint:function(s){for(var l=s.getModuleCount(),c=0,f=0;f<l;f++)for(var d=0;d<l;d++){for(var p=0,g=s.isDark(f,d),m=-1;m<=1;m++)if(!(f+m<0||l<=f+m))for(var y=-1;y<=1;y++)d+y<0||l<=d+y||m==0&&y==0||g==s.isDark(f+m,d+y)&&p++;p>5&&(c+=3+p-5)}for(var f=0;f<l-1;f++)for(var d=0;d<l-1;d++){var b=0;s.isDark(f,d)&&b++,s.isDark(f+1,d)&&b++,s.isDark(f,d+1)&&b++,s.isDark(f+1,d+1)&&b++,(b==0||b==4)&&(c+=3)}for(var f=0;f<l;f++)for(var d=0;d<l-6;d++)s.isDark(f,d)&&!s.isDark(f,d+1)&&s.isDark(f,d+2)&&s.isDark(f,d+3)&&s.isDark(f,d+4)&&!s.isDark(f,d+5)&&s.isDark(f,d+6)&&(c+=40);for(var d=0;d<l;d++)for(var f=0;f<l-6;f++)s.isDark(f,d)&&!s.isDark(f+1,d)&&s.isDark(f+2,d)&&s.isDark(f+3,d)&&s.isDark(f+4,d)&&!s.isDark(f+5,d)&&s.isDark(f+6,d)&&(c+=40);for(var S=0,d=0;d<l;d++)for(var f=0;f<l;f++)s.isDark(f,d)&&S++;var R=Math.abs(100*S/l/l-50)/5;return c+=R*10,c}};return p1=o,p1}var g1,oA;function rY(){if(oA)return g1;oA=1;var e=JG(),t=eY(),n=tY(),r=nY(),o=iD();function s(c,f){this.typeNumber=c,this.errorCorrectLevel=f,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var l=s.prototype;return l.addData=function(c){var f=new e(c);this.dataList.push(f),this.dataCache=null},l.isDark=function(c,f){if(c<0||this.moduleCount<=c||f<0||this.moduleCount<=f)throw new Error(c+","+f);return this.modules[c][f]},l.getModuleCount=function(){return this.moduleCount},l.make=function(){if(this.typeNumber<1){var c=1;for(c=1;c<40;c++){for(var f=t.getRSBlocks(c,this.errorCorrectLevel),d=new n,p=0,g=0;g<f.length;g++)p+=f[g].dataCount;for(var g=0;g<this.dataList.length;g++){var m=this.dataList[g];d.put(m.mode,4),d.put(m.getLength(),r.getLengthInBits(m.mode,c)),m.write(d)}if(d.getLengthInBits()<=p*8)break}this.typeNumber=c}this.makeImpl(!1,this.getBestMaskPattern())},l.makeImpl=function(c,f){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var d=0;d<this.moduleCount;d++){this.modules[d]=new Array(this.moduleCount);for(var p=0;p<this.moduleCount;p++)this.modules[d][p]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(c,f),this.typeNumber>=7&&this.setupTypeNumber(c),this.dataCache==null&&(this.dataCache=s.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,f)},l.setupPositionProbePattern=function(c,f){for(var d=-1;d<=7;d++)if(!(c+d<=-1||this.moduleCount<=c+d))for(var p=-1;p<=7;p++)f+p<=-1||this.moduleCount<=f+p||(0<=d&&d<=6&&(p==0||p==6)||0<=p&&p<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=p&&p<=4?this.modules[c+d][f+p]=!0:this.modules[c+d][f+p]=!1)},l.getBestMaskPattern=function(){for(var c=0,f=0,d=0;d<8;d++){this.makeImpl(!0,d);var p=r.getLostPoint(this);(d==0||c>p)&&(c=p,f=d)}return f},l.createMovieClip=function(c,f,d){var p=c.createEmptyMovieClip(f,d),g=1;this.make();for(var m=0;m<this.modules.length;m++)for(var y=m*g,b=0;b<this.modules[m].length;b++){var S=b*g,R=this.modules[m][b];R&&(p.beginFill(0,100),p.moveTo(S,y),p.lineTo(S+g,y),p.lineTo(S+g,y+g),p.lineTo(S,y+g),p.endFill())}return p},l.setupTimingPattern=function(){for(var c=8;c<this.moduleCount-8;c++)this.modules[c][6]==null&&(this.modules[c][6]=c%2==0);for(var f=8;f<this.moduleCount-8;f++)this.modules[6][f]==null&&(this.modules[6][f]=f%2==0)},l.setupPositionAdjustPattern=function(){for(var c=r.getPatternPosition(this.typeNumber),f=0;f<c.length;f++)for(var d=0;d<c.length;d++){var p=c[f],g=c[d];if(this.modules[p][g]==null)for(var m=-2;m<=2;m++)for(var y=-2;y<=2;y++)m==-2||m==2||y==-2||y==2||m==0&&y==0?this.modules[p+m][g+y]=!0:this.modules[p+m][g+y]=!1}},l.setupTypeNumber=function(c){for(var f=r.getBCHTypeNumber(this.typeNumber),d=0;d<18;d++){var p=!c&&(f>>d&1)==1;this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=p}for(var d=0;d<18;d++){var p=!c&&(f>>d&1)==1;this.modules[d%3+this.moduleCount-8-3][Math.floor(d/3)]=p}},l.setupTypeInfo=function(c,f){for(var d=this.errorCorrectLevel<<3|f,p=r.getBCHTypeInfo(d),g=0;g<15;g++){var m=!c&&(p>>g&1)==1;g<6?this.modules[g][8]=m:g<8?this.modules[g+1][8]=m:this.modules[this.moduleCount-15+g][8]=m}for(var g=0;g<15;g++){var m=!c&&(p>>g&1)==1;g<8?this.modules[8][this.moduleCount-g-1]=m:g<9?this.modules[8][15-g-1+1]=m:this.modules[8][15-g-1]=m}this.modules[this.moduleCount-8][8]=!c},l.mapData=function(c,f){for(var d=-1,p=this.moduleCount-1,g=7,m=0,y=this.moduleCount-1;y>0;y-=2)for(y==6&&y--;;){for(var b=0;b<2;b++)if(this.modules[p][y-b]==null){var S=!1;m<c.length&&(S=(c[m]>>>g&1)==1);var R=r.getMask(f,p,y-b);R&&(S=!S),this.modules[p][y-b]=S,g--,g==-1&&(m++,g=7)}if(p+=d,p<0||this.moduleCount<=p){p-=d,d=-d;break}}},s.PAD0=236,s.PAD1=17,s.createData=function(c,f,d){for(var p=t.getRSBlocks(c,f),g=new n,m=0;m<d.length;m++){var y=d[m];g.put(y.mode,4),g.put(y.getLength(),r.getLengthInBits(y.mode,c)),y.write(g)}for(var b=0,m=0;m<p.length;m++)b+=p[m].dataCount;if(g.getLengthInBits()>b*8)throw new Error("code length overflow. ("+g.getLengthInBits()+">"+b*8+")");for(g.getLengthInBits()+4<=b*8&&g.put(0,4);g.getLengthInBits()%8!=0;)g.putBit(!1);for(;!(g.getLengthInBits()>=b*8||(g.put(s.PAD0,8),g.getLengthInBits()>=b*8));)g.put(s.PAD1,8);return s.createBytes(g,p)},s.createBytes=function(c,f){for(var d=0,p=0,g=0,m=new Array(f.length),y=new Array(f.length),b=0;b<f.length;b++){var S=f[b].dataCount,R=f[b].totalCount-S;p=Math.max(p,S),g=Math.max(g,R),m[b]=new Array(S);for(var C=0;C<m[b].length;C++)m[b][C]=255&c.buffer[C+d];d+=S;var x=r.getErrorCorrectPolynomial(R),_=new o(m[b],x.getLength()-1),M=_.mod(x);y[b]=new Array(x.getLength()-1);for(var C=0;C<y[b].length;C++){var T=C+M.getLength()-y[b].length;y[b][C]=T>=0?M.get(T):0}}for(var A=0,C=0;C<f.length;C++)A+=f[C].totalCount;for(var O=new Array(A),k=0,C=0;C<p;C++)for(var b=0;b<f.length;b++)C<m[b].length&&(O[k++]=m[b][C]);for(var C=0;C<g;C++)for(var b=0;b<f.length;b++)C<y[b].length&&(O[k++]=y[b][C]);return O},g1=s,g1}var yp={},iA;function oY(){if(iA)return yp;iA=1,Object.defineProperty(yp,"__esModule",{value:!0});var e=Object.assign||function(d){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var m in g)Object.prototype.hasOwnProperty.call(g,m)&&(d[m]=g[m])}return d},t=tD(),n=s(t),r=cs(),o=s(r);function s(d){return d&&d.__esModule?d:{default:d}}function l(d,p){var g={};for(var m in d)p.indexOf(m)>=0||Object.prototype.hasOwnProperty.call(d,m)&&(g[m]=d[m]);return g}var c={bgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,bgD:n.default.string.isRequired,fgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,fgD:n.default.string.isRequired,size:n.default.number.isRequired,title:n.default.string,viewBoxSize:n.default.number.isRequired,xmlns:n.default.string},f=(0,r.forwardRef)(function(d,p){var g=d.bgColor,m=d.bgD,y=d.fgD,b=d.fgColor,S=d.size,R=d.title,C=d.viewBoxSize,x=d.xmlns,_=x===void 0?"http://www.w3.org/2000/svg":x,M=l(d,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return o.default.createElement("svg",e({},M,{height:S,ref:p,viewBox:"0 0 "+C+" "+C,width:S,xmlns:_}),R?o.default.createElement("title",null,R):null,o.default.createElement("path",{d:m,fill:g}),o.default.createElement("path",{d:y,fill:b}))});return f.displayName="QRCodeSvg",f.propTypes=c,yp.default=f,yp}var sA;function iY(){if(sA)return ru;sA=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.QRCode=void 0;var e=Object.assign||function(S){for(var R=1;R<arguments.length;R++){var C=arguments[R];for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(S[x]=C[x])}return S},t=tD(),n=g(t),r=nD(),o=g(r),s=rY(),l=g(s),c=cs(),f=g(c),d=oY(),p=g(d);function g(S){return S&&S.__esModule?S:{default:S}}function m(S,R){var C={};for(var x in S)R.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(S,x)&&(C[x]=S[x]);return C}var y={bgColor:n.default.oneOfType([n.default.object,n.default.string]),fgColor:n.default.oneOfType([n.default.object,n.default.string]),level:n.default.string,size:n.default.number,value:n.default.string.isRequired},b=(0,c.forwardRef)(function(S,R){var C=S.bgColor,x=C===void 0?"#FFFFFF":C,_=S.fgColor,M=_===void 0?"#000000":_,T=S.level,A=T===void 0?"L":T,O=S.size,k=O===void 0?256:O,D=S.value,U=m(S,["bgColor","fgColor","level","size","value"]),L=new l.default(-1,o.default[A]);L.addData(D),L.make();var j=L.modules;return f.default.createElement(p.default,e({},U,{bgColor:x,bgD:j.map(function(B,Y){return B.map(function(H,F){return H?"":"M "+F+" "+Y+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:M,fgD:j.map(function(B,Y){return B.map(function(H,F){return H?"M "+F+" "+Y+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:R,size:k,viewBoxSize:j.length}))});return ru.QRCode=b,b.displayName="QRCode",b.propTypes=y,ru.default=b,ru}var sY=iY();const Ate=us(sY),sD="data-composite-item-active";function aY(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=hI(),{ref:o,index:s}=yE(e),l=n===s,c=E.useRef(null),f=Tr(o,c);return{compositeProps:E.useMemo(()=>({tabIndex:l?0:-1,onFocus(){r(s)},onMouseMove(){const p=c.current;if(!t||!p)return;const g=p.hasAttribute("disabled")||p.ariaDisabled==="true";!l&&!g&&p.focus()}}),[l,r,s,t]),compositeRef:f,index:s}}function Nm(e){const{render:t,className:n,state:r=rr,props:o=Nu,refs:s=Nu,metadata:l,stateAttributesMapping:c,tag:f="div",...d}=e,{compositeProps:p,compositeRef:g}=aY({metadata:l});return At(f,e,{state:r,ref:[...s,g],props:[p,...o,d],stateAttributesMapping:c})}let aA=function(e){return e.checked="data-checked",e.unchecked="data-unchecked",e.disabled="data-disabled",e.readonly="data-readonly",e.required="data-required",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({});const Wb={checked(e){return e?{[aA.checked]:""}:{[aA.unchecked]:""}},...Ci,...hc},aD=E.createContext({disabled:void 0,readOnly:void 0,required:void 0,name:void 0,checkedValue:"",setCheckedValue:fr,onValueChange:fr,touched:!1,setTouched:fr,registerControlRef:fr});function lY(){return E.useContext(aD)}const lD=E.createContext(void 0);function uY(){const e=E.useContext(lD);if(e===void 0)throw new Error("Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.");return e}const Mte=E.forwardRef(function(t,n){const{render:r,className:o,disabled:s=!1,readOnly:l=!1,required:c=!1,value:f,inputRef:d,nativeButton:p=!0,...g}=t,{disabled:m,readOnly:y,required:b,checkedValue:S,setCheckedValue:R,touched:C,setTouched:x,fieldControlValidation:_,registerControlRef:M}=lY(),{state:T,disabled:A}=ko(),O=A||m||s,k=y||l,D=b||c,{setDirty:U,validityData:L,setTouched:j,setFilled:B}=ko(),Y=S===f,H=E.useRef(null),F=Tr(d,H);qe(()=>{var K;(K=H.current)!=null&&K.checked&&B(!0)},[B]);const V=E.useMemo(()=>({role:"radio","aria-checked":Y,"aria-required":D||void 0,"aria-disabled":O||void 0,"aria-readonly":k||void 0,[sD]:Y?"":void 0,disabled:O,onKeyDown(K){K.key==="Enter"&&K.preventDefault()},onClick(K){var se;K.defaultPrevented||O||k||(K.preventDefault(),(se=H.current)==null||se.click())},onFocus(K){var se;K.defaultPrevented||O||k||!C||((se=H.current)==null||se.click(),x(!1))}}),[Y,D,O,k,C,x]),{getButtonProps:$,buttonRef:W}=Ti({disabled:O,native:p}),P=gs(),Q=E.useMemo(()=>({type:"radio",ref:F,id:P,tabIndex:-1,style:ga,"aria-hidden":!0,disabled:O,checked:Y,required:D,readOnly:k,onChange(K){if(K.nativeEvent.defaultPrevented||O||k||f===void 0)return;const se=St("none",K.nativeEvent);se.isCanceled||(j(!0),U(f!==L.initialValue),B(!0),R(f,se))}}),[Y,O,P,k,F,D,R,U,j,B,L.initialValue,f]),Z=E.useMemo(()=>({...T,required:D,disabled:O,readOnly:k,checked:Y}),[T,O,k,Y,D]),G=E.useMemo(()=>Z,[Z]),ne=R!==fr,re=[n,M,W],z=[V,(_==null?void 0:_.getValidationProps)??rr,g,$],le=At("button",t,{enabled:!ne,state:Z,ref:re,props:z,stateAttributesMapping:Wb});return Ee.jsxs(lD.Provider,{value:G,children:[ne?Ee.jsx(Nm,{tag:"button",render:r,className:o,state:Z,refs:re,props:z,stateAttributesMapping:Wb}):le,Ee.jsx("input",{...Q})]})}),Ote=E.forwardRef(function(t,n){const{render:r,className:o,keepMounted:s=!1,...l}=t,c=uY(),f=c.checked,{transitionStatus:d,setMounted:p}=hs(f),g=E.useMemo(()=>({...c,transitionStatus:d}),[c,d]),m=E.useRef(null),y=s||f,b=At("span",t,{enabled:y,ref:[n,m],state:g,props:l,stateAttributesMapping:Wb});return qr({open:f,ref:m,onComplete(){f||p(!1)}}),y?b:null});function cY(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}const fY=[];function dY(e){const{itemSizes:t,cols:n=1,loop:r=!0,dense:o=!1,orientation:s="both",direction:l,highlightedIndex:c,onHighlightedIndexChange:f,rootRef:d,enableHomeAndEndKeys:p=!1,stopEventPropagation:g=!1,disabledIndices:m,modifierKeys:y=fY}=e,[b,S]=E.useState(0),R=n>1,C=E.useRef(null),x=Tr(C,d),_=E.useRef([]),M=E.useRef(!1),T=c??b,A=Be((D,U=!1)=>{if((f??S)(D),U){const L=_.current[D];ST(C.current,L,l,s)}}),O=Be(D=>{if(D.size===0||M.current)return;M.current=!0;const U=Array.from(D.keys()),L=U.find(B=>B==null?void 0:B.hasAttribute(sD))??null,j=L?U.indexOf(L):-1;j!==-1&&A(j),ST(C.current,L,l,s)}),k=E.useMemo(()=>({"aria-orientation":s==="both"?void 0:s,ref:x,onFocus(D){!C.current||!bT(D.target)||D.target.setSelectionRange(0,D.target.value.length??0)},onKeyDown(D){const U=p?o$:vI;if(!U.has(D.key)||hY(D,y)||!C.current)return;const j=l==="rtl",B=j?Yf:mu,Y={horizontal:B,vertical:Ua,both:B}[s],H=j?mu:Yf,F={horizontal:H,vertical:gu,both:H}[s];if(bT(D.target)&&!cY(D.target)){const G=D.target.selectionStart,ne=D.target.selectionEnd,re=D.target.value??"";if(G==null||D.shiftKey||G!==ne||D.key!==F&&G<re.length||D.key!==Y&&G>0)return}let V=T;const $=Op(_,m),W=$1(_,m);if(R){const G=t||Array.from({length:_.current.length},()=>({width:1,height:1})),ne=VM(G,n,o),re=ne.findIndex(le=>le!=null&&!ta(_,le,m)),z=ne.reduce((le,K,se)=>K!=null&&!ta(_,K,m)?se:le,-1);V=ne[UM({current:ne.map(le=>le?_.current[le]:null)},{event:D,orientation:s,loop:r,cols:n,disabledIndices:qM([...m||_.current.map((le,K)=>ta(_,K)?K:void 0),void 0],ne),minIndex:re,maxIndex:z,prevIndex:jM(T>W?$:T,G,ne,n,D.key===Ua?"bl":D.key===mu?"tr":"tl"),rtl:j})]}const P={horizontal:[B],vertical:[Ua],both:[B,Ua]}[s],Q={horizontal:[H],vertical:[gu],both:[H,gu]}[s],Z=R?U:{horizontal:p?n$:gI,vertical:p?r$:mI,both:U}[s];p&&(D.key===Td?V=$:D.key===Ad&&(V=W)),V===T&&(P.includes(D.key)||Q.includes(D.key))&&(r&&V===W&&P.includes(D.key)?V=$:r&&V===$&&Q.includes(D.key)?V=W:V=cr(_,{startingIndex:V,decrement:Q.includes(D.key),disabledIndices:m})),V!==T&&!fu(_,V)&&(g&&D.stopPropagation(),Z.has(D.key)&&D.preventDefault(),A(V,!0),queueMicrotask(()=>{var G;(G=_.current[V])==null||G.focus()}))}}),[n,o,l,m,_,p,T,R,t,r,x,y,A,s,g]);return E.useMemo(()=>({props:k,highlightedIndex:T,onHighlightedIndexChange:A,elementsRef:_,disabledIndices:m,onMapChange:O}),[k,T,A,_,m,O])}function hY(e,t){for(const n of l$.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function CE(e){const{render:t,className:n,refs:r=Nu,props:o=Nu,state:s=rr,stateAttributesMapping:l,highlightedIndex:c,onHighlightedIndexChange:f,orientation:d,dense:p,itemSizes:g,loop:m,cols:y,enableHomeAndEndKeys:b,onMapChange:S,stopEventPropagation:R=!0,rootRef:C,disabledIndices:x,modifierKeys:_,highlightItemOnHover:M=!1,tag:T="div",...A}=e,O=NS(),{props:k,highlightedIndex:D,onHighlightedIndexChange:U,elementsRef:L,onMapChange:j}=dY({itemSizes:g,cols:y,loop:m,dense:p,orientation:d,highlightedIndex:c,onHighlightedIndexChange:f,rootRef:C,stopEventPropagation:R,enableHomeAndEndKeys:b,direction:O,disabledIndices:x,modifierKeys:_}),B=Be(F=>{S==null||S(F),j(F)}),Y=At(T,e,{state:s,ref:r,props:[k,...o,A],stateAttributesMapping:l}),H=E.useMemo(()=>({highlightedIndex:D,onHighlightedIndexChange:U,highlightItemOnHover:M}),[D,U,M]);return Ee.jsx(dI.Provider,{value:H,children:Ee.jsx(vE,{elementsRef:L,onMapChange:B,children:Y})})}const pY=[yI],Ite=E.forwardRef(function(t,n){const{render:r,className:o,disabled:s,readOnly:l,required:c,onValueChange:f,value:d,defaultValue:p,name:g,inputRef:m,id:y,...b}=t,{labelId:S,setTouched:R,setFocused:C,validationMode:x,name:_,disabled:M,state:T}=ko(),A=Tm(),{clearErrors:O}=pc(),k=M||s,D=_??g,U=gs(y),[L,j]=vi({controlled:d,default:p,name:"RadioGroup",state:"value"}),B=Be(f),Y=Be((K,se)=>{B(K,se),!se.isCanceled&&j(K)}),H=E.useRef(null),F=Be(K=>{H.current==null&&K!=null&&(H.current=K)});Am({id:U,commitValidation:A.commitValidation,value:L,controlRef:H,name:D,getValue:()=>L??null});const V=E.useRef(L);qe(()=>{V.current!==L&&(O(D),x==="onChange"?A.commitValidation(L):A.commitValidation(L,!0))},[D,O,x,L,A]),qe(()=>{V.current=L},[L]);const[$,W]=E.useState(!1),P=Be(K=>{un(K.currentTarget,K.relatedTarget)||(R(!0),C(!1),x==="onBlur"&&A.commitValidation(L))}),Q=Be(K=>{K.key.startsWith("Arrow")&&(R(!0),W(!0),C(!0))}),Z=E.useMemo(()=>L==null?"":typeof L=="string"?L:JSON.stringify(L),[L]),G=Tr(A.inputRef,m),ne=Do({value:Z,ref:G,id:U,name:Z?D:void 0,disabled:k,readOnly:l,required:c,"aria-hidden":!0,tabIndex:-1,style:ga,onFocus(){var K;(K=H.current)==null||K.focus()}},A.getInputValidationProps),re=E.useMemo(()=>({...T,disabled:k??!1,required:c??!1,readOnly:l??!1}),[T,k,l,c]),z=E.useMemo(()=>({...T,checkedValue:L,disabled:k,name:D,onValueChange:B,readOnly:l,registerControlRef:F,required:c,setCheckedValue:Y,setTouched:W,touched:$}),[L,k,T,D,B,l,F,c,Y,W,$]),le={role:"radiogroup","aria-required":c||void 0,"aria-disabled":k||void 0,"aria-readonly":l||void 0,"aria-labelledby":S,onFocus(){C(!0)},onBlur:P,onKeyDownCapture:Q};return Ee.jsxs(aD.Provider,{value:z,children:[Ee.jsx(CE,{render:r,className:o,state:re,props:[le,A.getValidationProps,b],refs:[n],stateAttributesMapping:hc,enableHomeAndEndKeys:!1,modifierKeys:pY}),Ee.jsx("input",{...ne})]})});function gY(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var s;const l=f=>f===null?null:JSON.parse(f,void 0),c=(s=n.getItem(o))!=null?s:null;return c instanceof Promise?c.then(l):l(c)},setItem:(o,s)=>n.setItem(o,JSON.stringify(s,void 0)),removeItem:o=>n.removeItem(o)}}const Xb=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Xb(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Xb(r)(n)}}}},mY=(e,t)=>(n,r,o)=>{let s={storage:gY(()=>localStorage),partialize:S=>S,version:0,merge:(S,R)=>({...R,...S}),...t},l=!1;const c=new Set,f=new Set;let d=s.storage;if(!d)return e((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...S)},r,o);const p=()=>{const S=s.partialize({...r()});return d.setItem(s.name,{state:S,version:s.version})},g=o.setState;o.setState=(S,R)=>(g(S,R),p());const m=e((...S)=>(n(...S),p()),r,o);o.getInitialState=()=>m;let y;const b=()=>{var S,R;if(!d)return;l=!1,c.forEach(x=>{var _;return x((_=r())!=null?_:m)});const C=((R=s.onRehydrateStorage)==null?void 0:R.call(s,(S=r())!=null?S:m))||void 0;return Xb(d.getItem.bind(d))(s.name).then(x=>{if(x)if(typeof x.version=="number"&&x.version!==s.version){if(s.migrate){const _=s.migrate(x.state,x.version);return _ instanceof Promise?_.then(M=>[!0,M]):[!0,_]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,x.state];return[!1,void 0]}).then(x=>{var _;const[M,T]=x;if(y=s.merge(T,(_=r())!=null?_:m),n(y,!0),M)return p()}).then(()=>{C==null||C(y,void 0),y=r(),l=!0,f.forEach(x=>x(y))}).catch(x=>{C==null||C(void 0,x)})};return o.persist={setOptions:S=>{s={...s,...S},S.storage&&(d=S.storage)},clearStorage:()=>{d==null||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>b(),hasHydrated:()=>l,onHydrate:S=>(c.add(S),()=>{c.delete(S)}),onFinishHydration:S=>(f.add(S),()=>{f.delete(S)})},s.skipHydration||b(),y||m},Dte=mY;var lA=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},di=[],So=[],vY=typeof Uint8Array<"u"?Uint8Array:Array,TE=!1;function uD(){TE=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)di[t]=e[t],So[e.charCodeAt(t)]=t;So[45]=62,So[95]=63}function yY(e){TE||uD();var t,n,r,o,s,l,c=e.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s=e[c-2]==="="?2:e[c-1]==="="?1:0,l=new vY(c*3/4-s),r=s>0?c-4:c;var f=0;for(t=0,n=0;t<r;t+=4,n+=3)o=So[e.charCodeAt(t)]<<18|So[e.charCodeAt(t+1)]<<12|So[e.charCodeAt(t+2)]<<6|So[e.charCodeAt(t+3)],l[f++]=o>>16&255,l[f++]=o>>8&255,l[f++]=o&255;return s===2?(o=So[e.charCodeAt(t)]<<2|So[e.charCodeAt(t+1)]>>4,l[f++]=o&255):s===1&&(o=So[e.charCodeAt(t)]<<10|So[e.charCodeAt(t+1)]<<4|So[e.charCodeAt(t+2)]>>2,l[f++]=o>>8&255,l[f++]=o&255),l}function bY(e){return di[e>>18&63]+di[e>>12&63]+di[e>>6&63]+di[e&63]}function SY(e,t,n){for(var r,o=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(bY(r));return o.join("")}function uA(e){TE||uD();for(var t,n=e.length,r=n%3,o="",s=[],l=16383,c=0,f=n-r;c<f;c+=l)s.push(SY(e,c,c+l>f?f:c+l));return r===1?(t=e[n-1],o+=di[t>>2],o+=di[t<<4&63],o+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],o+=di[t>>10],o+=di[t>>4&63],o+=di[t<<2&63],o+="="),s.push(o),s.join("")}function Fm(e,t,n,r,o){var s,l,c=o*8-r-1,f=(1<<c)-1,d=f>>1,p=-7,g=n?o-1:0,m=n?-1:1,y=e[t+g];for(g+=m,s=y&(1<<-p)-1,y>>=-p,p+=c;p>0;s=s*256+e[t+g],g+=m,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=r;p>0;l=l*256+e[t+g],g+=m,p-=8);if(s===0)s=1-d;else{if(s===f)return l?NaN:(y?-1:1)*(1/0);l=l+Math.pow(2,r),s=s-d}return(y?-1:1)*l*Math.pow(2,s-r)}function cD(e,t,n,r,o,s){var l,c,f,d=s*8-o-1,p=(1<<d)-1,g=p>>1,m=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:s-1,b=r?1:-1,S=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,l=p):(l=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-l))<1&&(l--,f*=2),l+g>=1?t+=m/f:t+=m*Math.pow(2,1-g),t*f>=2&&(l++,f/=2),l+g>=p?(c=0,l=p):l+g>=1?(c=(t*f-1)*Math.pow(2,o),l=l+g):(c=t*Math.pow(2,g-1)*Math.pow(2,o),l=0));o>=8;e[n+y]=c&255,y+=b,c/=256,o-=8);for(l=l<<o|c,d+=o;d>0;e[n+y]=l&255,y+=b,l/=256,d-=8);e[n+y-b]|=S*128}var EY={}.toString,fD=Array.isArray||function(e){return EY.call(e)=="[object Array]"},wY=50;Oe.TYPED_ARRAY_SUPPORT=lA.TYPED_ARRAY_SUPPORT!==void 0?lA.TYPED_ARRAY_SUPPORT:!0;kg();function kg(){return Oe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ts(e,t){if(kg()<t)throw new RangeError("Invalid typed array length");return Oe.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=Oe.prototype):(e===null&&(e=new Oe(t)),e.length=t),e}function Oe(e,t,n){if(!Oe.TYPED_ARRAY_SUPPORT&&!(this instanceof Oe))return new Oe(e,t,n);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return AE(this,e)}return dD(this,e,t,n)}Oe.poolSize=8192;Oe._augment=function(e){return e.__proto__=Oe.prototype,e};function dD(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?_Y(e,t,n,r):typeof t=="string"?xY(e,t,n):CY(e,t)}Oe.from=function(e,t,n){return dD(null,e,t,n)};Oe.TYPED_ARRAY_SUPPORT&&(Oe.prototype.__proto__=Uint8Array.prototype,Oe.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Oe[Symbol.species]);function hD(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function RY(e,t,n,r){return hD(t),t<=0?ts(e,t):n!==void 0?typeof r=="string"?ts(e,t).fill(n,r):ts(e,t).fill(n):ts(e,t)}Oe.alloc=function(e,t,n){return RY(null,e,t,n)};function AE(e,t){if(hD(t),e=ts(e,t<0?0:ME(t)|0),!Oe.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}Oe.allocUnsafe=function(e){return AE(null,e)};Oe.allocUnsafeSlow=function(e){return AE(null,e)};function xY(e,t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!Oe.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=pD(t,n)|0;e=ts(e,r);var o=e.write(t,n);return o!==r&&(e=e.slice(0,o)),e}function Qb(e,t){var n=t.length<0?0:ME(t.length)|0;e=ts(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function _Y(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?t=new Uint8Array(t):r===void 0?t=new Uint8Array(t,n):t=new Uint8Array(t,n,r),Oe.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=Oe.prototype):e=Qb(e,t),e}function CY(e,t){if(wi(t)){var n=ME(t.length)|0;return e=ts(e,n),e.length===0||t.copy(e,0,0,n),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||$Y(t.length)?ts(e,0):Qb(e,t);if(t.type==="Buffer"&&fD(t.data))return Qb(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ME(e){if(e>=kg())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kg().toString(16)+" bytes");return e|0}Oe.isBuffer=uu;function wi(e){return!!(e!=null&&e._isBuffer)}Oe.compare=function(t,n){if(!wi(t)||!wi(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,o=n.length,s=0,l=Math.min(r,o);s<l;++s)if(t[s]!==n[s]){r=t[s],o=n[s];break}return r<o?-1:o<r?1:0};Oe.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};Oe.concat=function(t,n){if(!fD(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return Oe.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var o=Oe.allocUnsafe(n),s=0;for(r=0;r<t.length;++r){var l=t[r];if(!wi(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(o,s),s+=l.length}return o};function pD(e,t){if(wi(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Lg(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return ED(e).length;default:if(r)return Lg(e).length;t=(""+t).toLowerCase(),r=!0}}Oe.byteLength=pD;function TY(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return FY(this,t,n);case"utf8":case"utf-8":return vD(this,t,n);case"ascii":return PY(this,t,n);case"latin1":case"binary":return NY(this,t,n);case"base64":return kY(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return BY(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}Oe.prototype._isBuffer=!0;function ja(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}Oe.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)ja(this,n,n+1);return this};Oe.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)ja(this,n,n+3),ja(this,n+1,n+2);return this};Oe.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)ja(this,n,n+7),ja(this,n+1,n+6),ja(this,n+2,n+5),ja(this,n+3,n+4);return this};Oe.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?vD(this,0,t):TY.apply(this,arguments)};Oe.prototype.equals=function(t){if(!wi(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:Oe.compare(this,t)===0};Oe.prototype.inspect=function(){var t="",n=wY;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"};Oe.prototype.compare=function(t,n,r,o,s){if(!wi(t))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),o===void 0&&(o=0),s===void 0&&(s=this.length),n<0||r>t.length||o<0||s>this.length)throw new RangeError("out of range index");if(o>=s&&n>=r)return 0;if(o>=s)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,o>>>=0,s>>>=0,this===t)return 0;for(var l=s-o,c=r-n,f=Math.min(l,c),d=this.slice(o,s),p=t.slice(n,r),g=0;g<f;++g)if(d[g]!==p[g]){l=d[g],c=p[g];break}return l<c?-1:c<l?1:0};function gD(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0)if(o)n=0;else return-1;if(typeof t=="string"&&(t=Oe.from(t,r)),wi(t))return t.length===0?-1:cA(e,t,n,r,o);if(typeof t=="number")return t=t&255,Oe.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):cA(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function cA(e,t,n,r,o){var s=1,l=e.length,c=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;s=2,l/=2,c/=2,n/=2}function f(y,b){return s===1?y[b]:y.readUInt16BE(b*s)}var d;if(o){var p=-1;for(d=n;d<l;d++)if(f(e,d)===f(t,p===-1?0:d-p)){if(p===-1&&(p=d),d-p+1===c)return p*s}else p!==-1&&(d-=d-p),p=-1}else for(n+c>l&&(n=l-c),d=n;d>=0;d--){for(var g=!0,m=0;m<c;m++)if(f(e,d+m)!==f(t,m)){g=!1;break}if(g)return d}return-1}Oe.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1};Oe.prototype.indexOf=function(t,n,r){return gD(this,t,n,r,!0)};Oe.prototype.lastIndexOf=function(t,n,r){return gD(this,t,n,r,!1)};function AY(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var l=0;l<r;++l){var c=parseInt(t.substr(l*2,2),16);if(isNaN(c))return l;e[n+l]=c}return l}function MY(e,t,n,r){return zm(Lg(t,e.length-n),e,n,r)}function mD(e,t,n,r){return zm(jY(t),e,n,r)}function OY(e,t,n,r){return mD(e,t,n,r)}function IY(e,t,n,r){return zm(ED(t),e,n,r)}function DY(e,t,n,r){return zm(qY(t,e.length-n),e,n,r)}Oe.prototype.write=function(t,n,r,o){if(n===void 0)o="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")o=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,o===void 0&&(o="utf8")):(o=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-n;if((r===void 0||r>s)&&(r=s),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var l=!1;;)switch(o){case"hex":return AY(this,t,n,r);case"utf8":case"utf-8":return MY(this,t,n,r);case"ascii":return mD(this,t,n,r);case"latin1":case"binary":return OY(this,t,n,r);case"base64":return IY(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return DY(this,t,n,r);default:if(l)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),l=!0}};Oe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function kY(e,t,n){return t===0&&n===e.length?uA(e):uA(e.slice(t,n))}function vD(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var s=e[o],l=null,c=s>239?4:s>223?3:s>191?2:1;if(o+c<=n){var f,d,p,g;switch(c){case 1:s<128&&(l=s);break;case 2:f=e[o+1],(f&192)===128&&(g=(s&31)<<6|f&63,g>127&&(l=g));break;case 3:f=e[o+1],d=e[o+2],(f&192)===128&&(d&192)===128&&(g=(s&15)<<12|(f&63)<<6|d&63,g>2047&&(g<55296||g>57343)&&(l=g));break;case 4:f=e[o+1],d=e[o+2],p=e[o+3],(f&192)===128&&(d&192)===128&&(p&192)===128&&(g=(s&15)<<18|(f&63)<<12|(d&63)<<6|p&63,g>65535&&g<1114112&&(l=g))}}l===null?(l=65533,c=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|l&1023),r.push(l),o+=c}return LY(r)}var fA=4096;function LY(e){var t=e.length;if(t<=fA)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=fA));return n}function PY(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]&127);return r}function NY(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function FY(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",s=t;s<n;++s)o+=VY(e[s]);return o}function BY(e,t,n){for(var r=e.slice(t,n),o="",s=0;s<r.length;s+=2)o+=String.fromCharCode(r[s]+r[s+1]*256);return o}Oe.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var o;if(Oe.TYPED_ARRAY_SUPPORT)o=this.subarray(t,n),o.__proto__=Oe.prototype;else{var s=n-t;o=new Oe(s,void 0);for(var l=0;l<s;++l)o[l]=this[l+t]}return o};function ir(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}Oe.prototype.readUIntLE=function(t,n,r){t=t|0,n=n|0,r||ir(t,n,this.length);for(var o=this[t],s=1,l=0;++l<n&&(s*=256);)o+=this[t+l]*s;return o};Oe.prototype.readUIntBE=function(t,n,r){t=t|0,n=n|0,r||ir(t,n,this.length);for(var o=this[t+--n],s=1;n>0&&(s*=256);)o+=this[t+--n]*s;return o};Oe.prototype.readUInt8=function(t,n){return n||ir(t,1,this.length),this[t]};Oe.prototype.readUInt16LE=function(t,n){return n||ir(t,2,this.length),this[t]|this[t+1]<<8};Oe.prototype.readUInt16BE=function(t,n){return n||ir(t,2,this.length),this[t]<<8|this[t+1]};Oe.prototype.readUInt32LE=function(t,n){return n||ir(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Oe.prototype.readUInt32BE=function(t,n){return n||ir(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Oe.prototype.readIntLE=function(t,n,r){t=t|0,n=n|0,r||ir(t,n,this.length);for(var o=this[t],s=1,l=0;++l<n&&(s*=256);)o+=this[t+l]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*n)),o};Oe.prototype.readIntBE=function(t,n,r){t=t|0,n=n|0,r||ir(t,n,this.length);for(var o=n,s=1,l=this[t+--o];o>0&&(s*=256);)l+=this[t+--o]*s;return s*=128,l>=s&&(l-=Math.pow(2,8*n)),l};Oe.prototype.readInt8=function(t,n){return n||ir(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Oe.prototype.readInt16LE=function(t,n){n||ir(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};Oe.prototype.readInt16BE=function(t,n){n||ir(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};Oe.prototype.readInt32LE=function(t,n){return n||ir(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Oe.prototype.readInt32BE=function(t,n){return n||ir(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Oe.prototype.readFloatLE=function(t,n){return n||ir(t,4,this.length),Fm(this,t,!0,23,4)};Oe.prototype.readFloatBE=function(t,n){return n||ir(t,4,this.length),Fm(this,t,!1,23,4)};Oe.prototype.readDoubleLE=function(t,n){return n||ir(t,8,this.length),Fm(this,t,!0,52,8)};Oe.prototype.readDoubleBE=function(t,n){return n||ir(t,8,this.length),Fm(this,t,!1,52,8)};function $r(e,t,n,r,o,s){if(!wi(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}Oe.prototype.writeUIntLE=function(t,n,r,o){if(t=+t,n=n|0,r=r|0,!o){var s=Math.pow(2,8*r)-1;$r(this,t,n,r,s,0)}var l=1,c=0;for(this[n]=t&255;++c<r&&(l*=256);)this[n+c]=t/l&255;return n+r};Oe.prototype.writeUIntBE=function(t,n,r,o){if(t=+t,n=n|0,r=r|0,!o){var s=Math.pow(2,8*r)-1;$r(this,t,n,r,s,0)}var l=r-1,c=1;for(this[n+l]=t&255;--l>=0&&(c*=256);)this[n+l]=t/c&255;return n+r};Oe.prototype.writeUInt8=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,1,255,0),Oe.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1};function Bm(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,s=Math.min(e.length-n,2);o<s;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>(r?o:1-o)*8}Oe.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,2,65535,0),Oe.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):Bm(this,t,n,!0),n+2};Oe.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,2,65535,0),Oe.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):Bm(this,t,n,!1),n+2};function Hm(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,s=Math.min(e.length-n,4);o<s;++o)e[n+o]=t>>>(r?o:3-o)*8&255}Oe.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,4,4294967295,0),Oe.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255):Hm(this,t,n,!0),n+4};Oe.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,4,4294967295,0),Oe.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):Hm(this,t,n,!1),n+4};Oe.prototype.writeIntLE=function(t,n,r,o){if(t=+t,n=n|0,!o){var s=Math.pow(2,8*r-1);$r(this,t,n,r,s-1,-s)}var l=0,c=1,f=0;for(this[n]=t&255;++l<r&&(c*=256);)t<0&&f===0&&this[n+l-1]!==0&&(f=1),this[n+l]=(t/c>>0)-f&255;return n+r};Oe.prototype.writeIntBE=function(t,n,r,o){if(t=+t,n=n|0,!o){var s=Math.pow(2,8*r-1);$r(this,t,n,r,s-1,-s)}var l=r-1,c=1,f=0;for(this[n+l]=t&255;--l>=0&&(c*=256);)t<0&&f===0&&this[n+l+1]!==0&&(f=1),this[n+l]=(t/c>>0)-f&255;return n+r};Oe.prototype.writeInt8=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,1,127,-128),Oe.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1};Oe.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,2,32767,-32768),Oe.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):Bm(this,t,n,!0),n+2};Oe.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,2,32767,-32768),Oe.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):Bm(this,t,n,!1),n+2};Oe.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,4,2147483647,-2147483648),Oe.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):Hm(this,t,n,!0),n+4};Oe.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n|0,r||$r(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Oe.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):Hm(this,t,n,!1),n+4};function yD(e,t,n,r,o,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function bD(e,t,n,r,o){return o||yD(e,t,n,4),cD(e,t,n,r,23,4),n+4}Oe.prototype.writeFloatLE=function(t,n,r){return bD(this,t,n,!0,r)};Oe.prototype.writeFloatBE=function(t,n,r){return bD(this,t,n,!1,r)};function SD(e,t,n,r,o){return o||yD(e,t,n,8),cD(e,t,n,r,52,8),n+8}Oe.prototype.writeDoubleLE=function(t,n,r){return SD(this,t,n,!0,r)};Oe.prototype.writeDoubleBE=function(t,n,r){return SD(this,t,n,!1,r)};Oe.prototype.copy=function(t,n,r,o){if(r||(r=0),!o&&o!==0&&(o=this.length),n>=t.length&&(n=t.length),n||(n=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-n<o-r&&(o=t.length-n+r);var s=o-r,l;if(this===t&&r<n&&n<o)for(l=s-1;l>=0;--l)t[l+n]=this[l+r];else if(s<1e3||!Oe.TYPED_ARRAY_SUPPORT)for(l=0;l<s;++l)t[l+n]=this[l+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+s),n);return s};Oe.prototype.fill=function(t,n,r,o){if(typeof t=="string"){if(typeof n=="string"?(o=n,n=0,r=this.length):typeof r=="string"&&(o=r,r=this.length),t.length===1){var s=t.charCodeAt(0);s<256&&(t=s)}if(o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!Oe.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var l;if(typeof t=="number")for(l=n;l<r;++l)this[l]=t;else{var c=wi(t)?t:Lg(new Oe(t,o).toString()),f=c.length;for(l=0;l<r-n;++l)this[l+n]=c[l%f]}return this};var HY=/[^+\/0-9A-Za-z-_]/g;function zY(e){if(e=UY(e).replace(HY,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function UY(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function VY(e){return e<16?"0"+e.toString(16):e.toString(16)}function Lg(e,t){t=t||1/0;for(var n,r=e.length,o=null,s=[],l=0;l<r;++l){if(n=e.charCodeAt(l),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(l+1===r){(t-=3)>-1&&s.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&s.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return s}function jY(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function qY(e,t){for(var n,r,o,s=[],l=0;l<e.length&&!((t-=2)<0);++l)n=e.charCodeAt(l),r=n>>8,o=n%256,s.push(o),s.push(r);return s}function ED(e){return yY(zY(e))}function zm(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function $Y(e){return e!==e}function uu(e){return e!=null&&(!!e._isBuffer||wD(e)||GY(e))}function wD(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function GY(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&wD(e.slice(0,0))}const YY=46,KY=/\\(\\)?/g,WY=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),XY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,QY=/^\w*$/,ZY=function(e){return Object.prototype.toString.call(e)},RD=function(e){const t=typeof e;return t==="symbol"||t==="object"&&e&&ZY(e)==="[object Symbol]"},JY=function(e,t){if(Array.isArray(e))return!1;const n=typeof e;return n==="number"||n==="symbol"||n==="boolean"||!e||RD(e)?!0:QY.test(e)||!XY.test(e)||t!=null&&e in Object(t)},eK=function(e){const t=[];return e.charCodeAt(0)===YY&&t.push(""),e.replace(WY,function(n,r,o,s){let l=n;o?l=s.replace(KY,"$1"):r&&(l=r.trim()),t.push(l)}),t},tK=function(e,t){return Array.isArray(e)?e:JY(e,t)?[e]:eK(e)},nK=function(e){if(typeof e=="string"||RD(e))return e;const t=`${e}`;return t=="0"&&1/e==-INFINITY?"-0":t},rK=function(e,t){t=tK(t,e);let n=0;const r=t.length;for(;e!=null&&n<r;)e=e[nK(t[n++])];return n&&n===r?e:void 0},oK=function(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)},xD=function(e){if(e==null)return[void 0,void 0];if(typeof e!="object")return[Error('Invalid option "columns": expect an array or an object')];if(Array.isArray(e)){const t=[];for(const n of e)if(typeof n=="string")t.push({key:n,header:n});else if(typeof n=="object"&&n!==null&&!Array.isArray(n)){if(!n.key)return[Error('Invalid column definition: property "key" is required')];n.header===void 0&&(n.header=n.key),t.push(n)}else return[Error("Invalid column definition: expect a string or an object")];e=t}else{const t=[];for(const n in e)t.push({key:n,header:e[n]});e=t}return[void 0,e]};class cu extends Error{constructor(t,n,...r){Array.isArray(n)&&(n=n.join(" ")),super(n),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,cu),this.code=t;for(const o of r)for(const s in o){const l=o[s];this[s]=uu(l)?l.toString():l==null?l:JSON.parse(JSON.stringify(l))}}}const iK=function(e){return e.replace(/([A-Z])/g,function(t,n){return"_"+n.toLowerCase()})},_D=function(e){const t={};for(const o in e)t[iK(o)]=e[o];if(t.bom===void 0||t.bom===null||t.bom===!1)t.bom=!1;else if(t.bom!==!0)return[new cu("CSV_OPTION_BOOLEAN_INVALID_TYPE",["option `bom` is optional and must be a boolean value,",`got ${JSON.stringify(t.bom)}`])];if(t.delimiter===void 0||t.delimiter===null)t.delimiter=",";else if(uu(t.delimiter))t.delimiter=t.delimiter.toString();else if(typeof t.delimiter!="string")return[new cu("CSV_OPTION_DELIMITER_INVALID_TYPE",["option `delimiter` must be a buffer or a string,",`got ${JSON.stringify(t.delimiter)}`])];if(t.quote===void 0||t.quote===null)t.quote='"';else if(t.quote===!0)t.quote='"';else if(t.quote===!1)t.quote="";else if(uu(t.quote))t.quote=t.quote.toString();else if(typeof t.quote!="string")return[new cu("CSV_OPTION_QUOTE_INVALID_TYPE",["option `quote` must be a boolean, a buffer or a string,",`got ${JSON.stringify(t.quote)}`])];if((t.quoted===void 0||t.quoted===null)&&(t.quoted=!1),t.escape_formulas===void 0||t.escape_formulas===null)t.escape_formulas=!1;else if(typeof t.escape_formulas!="boolean")return[new cu("CSV_OPTION_ESCAPE_FORMULAS_INVALID_TYPE",["option `escape_formulas` must be a boolean,",`got ${JSON.stringify(t.escape_formulas)}`])];if((t.quoted_empty===void 0||t.quoted_empty===null)&&(t.quoted_empty=void 0),t.quoted_match===void 0||t.quoted_match===null||t.quoted_match===!1?t.quoted_match=null:Array.isArray(t.quoted_match)||(t.quoted_match=[t.quoted_match]),t.quoted_match)for(const o of t.quoted_match){const s=typeof o=="string",l=o instanceof RegExp;if(!s&&!l)return[Error(`Invalid Option: quoted_match must be a string or a regex, got ${JSON.stringify(o)}`)]}if((t.quoted_string===void 0||t.quoted_string===null)&&(t.quoted_string=!1),(t.eof===void 0||t.eof===null)&&(t.eof=!0),t.escape===void 0||t.escape===null)t.escape='"';else if(uu(t.escape))t.escape=t.escape.toString();else if(typeof t.escape!="string")return[Error(`Invalid Option: escape must be a buffer or a string, got ${JSON.stringify(t.escape)}`)];if(t.escape.length>1)return[Error(`Invalid Option: escape must be one character, got ${t.escape.length} characters`)];(t.header===void 0||t.header===null)&&(t.header=!1);const[n,r]=xD(t.columns);if(n!==void 0)return[n];if(t.columns=r,(t.quoted===void 0||t.quoted===null)&&(t.quoted=!1),(t.cast===void 0||t.cast===null)&&(t.cast={}),(t.cast.bigint===void 0||t.cast.bigint===null)&&(t.cast.bigint=o=>""+o),(t.cast.boolean===void 0||t.cast.boolean===null)&&(t.cast.boolean=o=>o?"1":""),(t.cast.date===void 0||t.cast.date===null)&&(t.cast.date=o=>""+o.getTime()),(t.cast.number===void 0||t.cast.number===null)&&(t.cast.number=o=>""+o),(t.cast.object===void 0||t.cast.object===null)&&(t.cast.object=o=>JSON.stringify(o)),(t.cast.string===void 0||t.cast.string===null)&&(t.cast.string=function(o){return o}),t.on_record!==void 0&&typeof t.on_record!="function")return[Error('Invalid Option: "on_record" must be a function.')];if(t.record_delimiter===void 0||t.record_delimiter===null)t.record_delimiter=`
|
|
33
|
-
`;else if(uu(t.record_delimiter))t.record_delimiter=t.record_delimiter.toString();else if(typeof t.record_delimiter!="string")return[Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(t.record_delimiter)}`)];switch(t.record_delimiter){case"unix":t.record_delimiter=`
|
|
34
|
-
`;break;case"mac":t.record_delimiter="\r";break;case"windows":t.record_delimiter=`\r
|
|
35
|
-
`;break;case"ascii":t.record_delimiter="";break;case"unicode":t.record_delimiter="\u2028";break}return[void 0,t]},sK=Oe.from([239,187,191]),aK=function(e,t,n){return{options:e,state:t,info:n,__transform:function(r,o){if(!Array.isArray(r)&&typeof r!="object")return Error(`Invalid Record: expect an array or an object, got ${JSON.stringify(r)}`);if(this.info.records===0){if(Array.isArray(r)){if(this.options.header===!0&&this.options.columns===void 0)return Error("Undiscoverable Columns: header option requires column option or object records")}else if(this.options.columns===void 0){const[c,f]=xD(Object.keys(r));if(c)return;this.options.columns=f}}if(this.info.records===0){this.bom(o);const c=this.headers(o);if(c)return c}try{this.options.on_record&&this.options.on_record(r,this.info.records)}catch(c){return c}let s,l;if(this.options.eof){if([s,l]=this.stringify(r),s)return s;if(l===void 0)return;l=l+this.options.record_delimiter}else{if([s,l]=this.stringify(r),s)return s;if(l===void 0)return;(this.options.header||this.info.records)&&(l=this.options.record_delimiter+l)}this.info.records++,o(l)},stringify:function(r,o=!1){if(typeof r!="object")return[void 0,r];const{columns:s}=this.options,l=[];if(Array.isArray(r)){s&&r.splice(s.length);for(let f=0;f<r.length;f++){const d=r[f],[p,g]=this.__cast(d,{index:f,column:f,records:this.info.records,header:o});if(p)return[p];l[f]=[g,d]}}else for(let f=0;f<s.length;f++){const d=rK(r,s[f].key),[p,g]=this.__cast(d,{index:f,column:s[f].key,records:this.info.records,header:o});if(p)return[p];l[f]=[g,d]}let c="";for(let f=0;f<l.length;f++){let d,p,[g,m]=l[f];if(typeof g=="string")d=this.options;else if(oK(g)){if(d=g,g=d.value,delete d.value,typeof g!="string"&&g!==void 0&&g!==null&&p)return[Error(`Invalid Casting Value: returned value must return a string, null or undefined, got ${JSON.stringify(g)}`)];if(d={...this.options,...d},[p,d]=_D(d),p!==void 0)return[p]}else if(g==null)d=this.options;else return[Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(g)}`)];const{delimiter:y,escape:b,quote:S,quoted:R,quoted_empty:C,quoted_string:x,quoted_match:_,record_delimiter:M,escape_formulas:T}=d;if(g===""&&m===""){let A=_&&_.filter(k=>typeof k=="string"?g.indexOf(k)!==-1:k.test(g));A=A&&A.length>0,(A||C===!0||x===!0&&C!==!1)===!0&&(g=S+g+S),c+=g}else if(g){if(typeof g!="string")return[Error(`Formatter must return a string, null or undefined, got ${JSON.stringify(g)}`)];const A=y.length&&g.indexOf(y)>=0,O=S!==""&&g.indexOf(S)>=0,k=g.indexOf(b)>=0&&b!==S,D=g.indexOf(M)>=0,U=x&&typeof m=="string";let L=_&&_.filter(B=>typeof B=="string"?g.indexOf(B)!==-1:B.test(g));if(L=L&&L.length>0,T)switch(g[0]){case"=":case"+":case"-":case"@":case" ":case"\r":case"=":case"+":case"-":case"@":g=`'${g}`;break}const j=O===!0||A||D||R||U||L;if(j===!0&&k===!0){const B=b==="\\"?new RegExp(b+b,"g"):new RegExp(b,"g");g=g.replace(B,b+b)}if(O===!0){const B=new RegExp(S,"g");g=g.replace(B,b+S)}j===!0&&(g=S+g+S),c+=g}else(C===!0||m===""&&x===!0&&C!==!1)&&(c+=S+S);f!==l.length-1&&(c+=y)}return[void 0,c]},bom:function(r){this.options.bom===!0&&r(sK)},headers:function(r){if(this.options.header===!1||this.options.columns===void 0)return;let o,s=this.options.columns.map(l=>l.header);if(this.options.eof?([o,s]=this.stringify(s,!0),s+=this.options.record_delimiter):[o,s]=this.stringify(s),o)return o;r(s)},__cast:function(r,o){const s=typeof r;try{return s==="string"?[void 0,this.options.cast.string(r,o)]:s==="bigint"?[void 0,this.options.cast.bigint(r,o)]:s==="number"?[void 0,this.options.cast.number(r,o)]:s==="boolean"?[void 0,this.options.cast.boolean(r,o)]:r instanceof Date?[void 0,this.options.cast.date(r,o)]:s==="object"&&r!==null?[void 0,this.options.cast.object(r,o)]:[void 0,r,r]}catch(l){return[l]}}}},kte=function(e,t={}){const n=[],[r,o]=_D(t);if(r!==void 0)throw r;const c=aK(o,{stop:!1},{records:0});for(const f of e){const d=c.__transform(f,function(p){n.push(p)});if(d!==void 0)throw d}if(n.length===0){c.bom(d=>{n.push(d)});const f=c.headers(d=>{n.push(d)});if(f!==void 0)throw f}return n.join("")};function Lte(e){return ze({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 5a1 1 0 0 1 .3 -.714a6 6 0 0 1 8.213 -.176l.351 .328a4 4 0 0 0 5.272 0l.249 -.227c.61 -.483 1.527 -.097 1.61 .676l.005 .113v9a1 1 0 0 1 -.3 .714a6 6 0 0 1 -8.213 .176l-.351 -.328a4 4 0 0 0 -5.136 -.114v6.552a1 1 0 0 1 -1.993 .117l-.007 -.117v-16z"},child:[]}]})(e)}function Pte(e){return ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.5 21h-4.5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v3"},child:[]},{tag:"path",attr:{d:"M16 3v4"},child:[]},{tag:"path",attr:{d:"M8 3v4"},child:[]},{tag:"path",attr:{d:"M4 11h10"},child:[]},{tag:"path",attr:{d:"M18 18m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"},child:[]},{tag:"path",attr:{d:"M18 16.5v1.5l.5 .5"},child:[]}]})(e)}function Nte(e){return ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12.5 21h-6.5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4"},child:[]},{tag:"path",attr:{d:"M16 3v4"},child:[]},{tag:"path",attr:{d:"M21.121 20.121a3 3 0 1 0 -4.242 0c.418 .419 1.125 1.045 2.121 1.879c1.051 -.89 1.759 -1.516 2.121 -1.879z"},child:[]},{tag:"path",attr:{d:"M19 18v.01"},child:[]},{tag:"path",attr:{d:"M8 3v4"},child:[]},{tag:"path",attr:{d:"M4 11h16"},child:[]}]})(e)}function Fte(e){return ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 21h-5a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v3.5"},child:[]},{tag:"path",attr:{d:"M16 3v4"},child:[]},{tag:"path",attr:{d:"M8 3v4"},child:[]},{tag:"path",attr:{d:"M4 11h11"},child:[]},{tag:"path",attr:{d:"M17.8 20.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z"},child:[]}]})(e)}function Bte(e){return ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12.857 14.675a5.016 5.016 0 0 1 -.857 -.675a5 5 0 0 0 -7 0v-9a5 5 0 0 1 7 0a5 5 0 0 0 7 0v6"},child:[]},{tag:"path",attr:{d:"M5 21v-7"},child:[]},{tag:"path",attr:{d:"M21.121 20.121a3 3 0 1 0 -4.242 0c.418 .419 1.125 1.045 2.121 1.879c1.051 -.89 1.759 -1.516 2.121 -1.879z"},child:[]},{tag:"path",attr:{d:"M19 18v.01"},child:[]}]})(e)}function Hte(e){return ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11.475 13.551a5.001 5.001 0 0 0 -6.475 .449v-9a5 5 0 0 1 7 0a5 5 0 0 0 7 0v5"},child:[]},{tag:"path",attr:{d:"M5 21v-7"},child:[]},{tag:"path",attr:{d:"M17.8 20.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z"},child:[]}]})(e)}function zte(e){return ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 19h-7a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2.5"},child:[]},{tag:"path",attr:{d:"M21.121 20.121a3 3 0 1 0 -4.242 0c.418 .419 1.125 1.045 2.121 1.879c1.051 -.89 1.759 -1.516 2.121 -1.879z"},child:[]},{tag:"path",attr:{d:"M19 18v.01"},child:[]}]})(e)}function Ute(e){return ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 19h-5a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2.5"},child:[]},{tag:"path",attr:{d:"M17.8 20.817l-2.172 1.138a.392 .392 0 0 1 -.568 -.41l.415 -2.411l-1.757 -1.707a.389 .389 0 0 1 .217 -.665l2.428 -.352l1.086 -2.193a.392 .392 0 0 1 .702 0l1.086 2.193l2.428 .352a.39 .39 0 0 1 .217 .665l-1.757 1.707l.414 2.41a.39 .39 0 0 1 -.567 .411l-2.172 -1.138z"},child:[]}]})(e)}function Vte(e){return ze({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 19h-6a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v4"},child:[]},{tag:"path",attr:{d:"M14 14m0 1a1 1 0 0 1 1 -1h5a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1z"},child:[]},{tag:"path",attr:{d:"M7 9l4 4"},child:[]},{tag:"path",attr:{d:"M7 12v-3h3"},child:[]}]})(e)}const CD=E.createContext(void 0);function TD(e){const t=E.useContext(CD);if(t===void 0&&!e)throw new Error("Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.");return t}const AD=E.createContext(void 0);function mc(e){const t=E.useContext(AD);if(t===void 0&&!e)throw new Error("Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.");return t}const lK=E.createContext(void 0);function OE(e=!0){const t=E.useContext(lK);if(t===void 0&&!e)throw new Error("Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.");return t}const uK={type:"regular-item"};function cK(e){const{closeOnClick:t,disabled:n=!1,highlighted:r,id:o,menuEvents:s,allowMouseUpTriggerRef:l,typingRef:c,nativeButton:f,itemMetadata:d,nodeId:p}=e,g=E.useRef(null),y=OE(!0)!==void 0,{getButtonProps:b,buttonRef:S}=Ti({disabled:n,focusableWhenDisabled:!0,native:f}),R=E.useCallback(x=>Do({id:o,role:"menuitem",tabIndex:r?0:-1,onMouseMove(_){p&&s.emit("itemhover",{nodeId:p,target:_.currentTarget})},onMouseEnter(){d.type==="submenu-trigger"&&d.setActive()},onKeyUp(_){_.key===" "&&c.current&&_.preventBaseUIHandler()},onClick(_){t&&s.emit("close",{domEvent:_,reason:"item-press"})},onMouseUp(_){g.current&&l.current&&(!y||_.button===2)&&d.type==="regular-item"&&g.current.click()}},x,b),[o,r,b,c,t,s,l,y,d,p]),C=Tr(g,S);return E.useMemo(()=>({getItemProps:R,itemRef:C}),[R,C])}const fK=E.memo(E.forwardRef(function(t,n){const{className:r,closeOnClick:o=!0,disabled:s=!1,highlighted:l,id:c,menuEvents:f,itemProps:d,render:p,allowMouseUpTriggerRef:g,typingRef:m,nativeButton:y,nodeId:b,...S}=t,{getItemProps:R,itemRef:C}=cK({closeOnClick:o,disabled:s,highlighted:l,id:c,menuEvents:f,allowMouseUpTriggerRef:g,typingRef:m,nativeButton:y,nodeId:b,itemMetadata:uK}),x=E.useMemo(()=>({disabled:s,highlighted:l}),[s,l]);return At("div",t,{state:x,ref:[C,n],props:[d,S,R]})})),jte=E.forwardRef(function(t,n){const{id:r,label:o,nativeButton:s=!1,...l}=t,c=E.useRef(null),f=yE({label:o}),d=Tr(n,f.ref,c),{itemProps:p,activeIndex:g,allowMouseUpTriggerRef:m,typingRef:y}=mc(),b=TD(!0),S=gs(r),R=f.index===g,{events:C}=_i();return Ee.jsx(fK,{...l,id:S,ref:d,highlighted:R,menuEvents:C,itemProps:p,allowMouseUpTriggerRef:m,typingRef:y,nativeButton:s,nodeId:b==null?void 0:b.floatingContext.nodeId})}),dK={...Lo,...Ci},qte=E.forwardRef(function(t,n){const{render:r,className:o,finalFocus:s,...l}=t,{open:c,setOpen:f,popupRef:d,transitionStatus:p,popupProps:g,mounted:m,instantType:y,triggerElement:b,onOpenChangeComplete:S,parent:R,lastOpenChangeReason:C,rootId:x}=mc(),{side:_,align:M,floatingContext:T}=TD(),A=Md(!0)!=null;qr({open:c,ref:d,onComplete(){c&&(S==null||S(!0))}});const{events:O}=_i();E.useEffect(()=>{function L(j){f(!1,St(j.reason,j.domEvent))}return O.on("close",L),()=>{O.off("close",L)}},[O,f]);const k=E.useMemo(()=>({transitionStatus:p,side:_,align:M,open:c,nested:R.type==="menu",instant:y}),[p,_,M,c,R.type,y]),D=At("div",t,{state:k,ref:[n,d],stateAttributesMapping:dK,props:[g,{onKeyDown(L){A&&_m.has(L.key)&&L.stopPropagation()}},p==="starting"?Jg:rr,l,{"data-rootownerid":x}]});let U=R.type===void 0||R.type==="context-menu";return(b||R.type==="menubar"&&C!=="outside-press")&&(U=!0),Ee.jsx(nm,{context:T,modal:!1,disabled:!m,returnFocus:s===void 0?U:s,initialFocus:R.type!=="menu",restoreFocus:!0,children:D})}),MD=E.createContext(void 0);function hK(){const e=E.useContext(MD);if(e===void 0)throw new Error("Base UI: <Menu.Portal> is missing.");return e}function $te(e){const{children:t,keepMounted:n=!1,container:r}=e,{mounted:o}=mc();return o||n?Ee.jsx(MD.Provider,{value:n,children:Ee.jsx(tm,{root:r,children:t})}):null}const Gte=E.forwardRef(function(t,n){var Se;const{anchor:r,positionMethod:o="absolute",className:s,render:l,side:c,align:f,sideOffset:d=0,alignOffset:p=0,collisionBoundary:g="clipping-ancestors",collisionPadding:m=5,arrowPadding:y=5,sticky:b=!1,trackAnchor:S=!0,collisionAvoidance:R=u4,...C}=t,{open:x,setOpen:_,floatingRootContext:M,setPositionerElement:T,itemDomElements:A,itemLabels:O,mounted:k,modal:D,lastOpenChangeReason:U,parent:L,setHoverEnabled:j,triggerElement:B}=mc(),Y=hK(),H=o4(),F=ds(),V=OE(!0);let $=r,W=d,P=p,Q=f;L.type==="context-menu"&&($=((Se=L.context)==null?void 0:Se.anchor)??r,Q=Q??"start",!c&&Q!=="center"&&(P=t.alignOffset??2,W=t.sideOffset??-5));let Z=c,G=Q;L.type==="menu"?(Z=Z??"inline-end",G=G??"start"):L.type==="menubar"&&(Z=Z??"bottom",G=G??"start");const ne=L.type==="context-menu",re=sm({anchor:$,floatingRootContext:M,positionMethod:V?"fixed":o,mounted:k,side:Z,sideOffset:W,align:G,alignOffset:P,arrowPadding:ne?0:y,collisionBoundary:g,collisionPadding:m,sticky:b,nodeId:H,keepMounted:Y,trackAnchor:S,collisionAvoidance:R,shiftCrossAxis:ne}),{events:z}=_i(),le=E.useMemo(()=>{const Ie={};return x||(Ie.pointerEvents="none"),{role:"presentation",hidden:!k,style:{...re.positionerStyles,...Ie}}},[x,k,re.positionerStyles]);E.useEffect(()=>{function Ie(Te){Te.open?(Te.parentNodeId===H&&j(!1),Te.nodeId!==H&&Te.parentNodeId===F&&_(!1,St("sibling-open"))):Te.parentNodeId===H&&Te.reason!=="sibling-open"&&j(!0)}return z.on("menuopenchange",Ie),()=>{z.off("menuopenchange",Ie)}},[z,H,F,_,j]),E.useEffect(()=>{if(F==null)return;function Ie(Te){if(Te.open||Te.nodeId!==F)return;const Le=Te.reason??"sibling-open";_(!1,St(Le))}return z.on("menuopenchange",Ie),()=>{z.off("menuopenchange",Ie)}},[z,F,_]),E.useEffect(()=>{function Ie(Te){!x||Te.nodeId!==F||B&&Te.target&&B!==Te.target&&_(!1,St("sibling-open"))}return z.on("itemhover",Ie),()=>{z.off("itemhover",Ie)}},[z,F,B,x,_]),E.useEffect(()=>{const Ie={open:x,nodeId:H,parentNodeId:F,reason:U};z.emit("menuopenchange",Ie)},[z,x,H,F,U]);const K=E.useMemo(()=>({open:x,side:re.side,align:re.align,anchorHidden:re.anchorHidden,nested:L.type==="menu"}),[x,re.side,re.align,re.anchorHidden,L.type]),se=E.useMemo(()=>({side:re.side,align:re.align,arrowRef:re.arrowRef,arrowUncentered:re.arrowUncentered,arrowStyles:re.arrowStyles,floatingContext:re.context}),[re.side,re.align,re.arrowRef,re.arrowUncentered,re.arrowStyles,re.context]),ie=At("div",t,{state:K,stateAttributesMapping:Lo,ref:[n,T],props:{...le,...C}}),ve=k&&L.type!=="menu"&&(L.type!=="menubar"&&D&&U!=="trigger-hover"||L.type==="menubar"&&L.context.modal);let pe=null;return L.type==="menubar"?pe=L.context.contentElement:L.type===void 0&&(pe=B),Ee.jsxs(CD.Provider,{value:se,children:[ve&&Ee.jsx(xm,{ref:L.type==="context-menu"||L.type==="nested-context-menu"?L.context.internalBackdropRef:null,inert:Rm(!x),cutout:pe}),Ee.jsx(i4,{id:H,children:Ee.jsx(vE,{elementsRef:A,labelsRef:O,children:ie})})]})}),pK=E.createContext(null);function gK(e){return E.useContext(pK)}const mK=E.createContext(!1);function vK(){return E.useContext(mK)}function yK(e){const{enabled:t=!0,mouseDownAction:n,open:r}=e,o=E.useRef(!1);return E.useMemo(()=>t?{onMouseDown:s=>{(n==="open"&&!r||n==="close"&&r)&&(o.current=!0,Io(s.currentTarget).addEventListener("click",()=>{o.current=!1},{once:!0}))},onClick:s=>{o.current&&(o.current=!1,s.preventBaseUIHandler())}}:rr,[t,n,r])}const bK=[],SK={current:!1},Yte=function(t){const{children:n,open:r,onOpenChange:o,onOpenChangeComplete:s,defaultOpen:l=!1,disabled:c=!1,modal:f,loop:d=!0,orientation:p="vertical",actionsRef:g,openOnHover:m,delay:y=100,closeDelay:b=0,closeParentOnEsc:S=!0}=t,[R,C]=E.useState(null),[x,_]=E.useState(null),[M,T]=E.useState(),[A,O]=E.useState(!0),[k,D]=E.useState(null),[U,L]=E.useState(null),[j,B]=E.useState(!0),[Y,H]=E.useState(!1),F=E.useRef(null),V=E.useRef(null),$=E.useRef(null),W=E.useRef([]),P=E.useRef([]),Q=_n(),Z=OE(!0),G=vK(),ne=ds()!=null;let re,z;{const mt=mc(!0),ft=gK();G&&mt?z={type:"menu",context:mt}:ft?z={type:"menubar",context:ft}:Z&&!mt?z={type:"context-menu",context:Z}:z={type:void 0}}let le=Zu();z.type!==void 0&&(le=z.context.rootId);const K=(z.type===void 0||z.type==="context-menu")&&(f??!0),se=c||z.type==="menubar"&&z.context.disabled||!1,ie=z.type==="menu"?z.context.allowMouseEnter:Y,ve=z.type==="menu"?z.context.setAllowMouseEnter:H,pe=m??(z.type==="menu"||z.type==="menubar"&&z.context.hasSubmenuOpen),[Se,Ie]=vi({controlled:r,default:l,name:"MenuRoot",state:"open"}),Te=E.useRef(z.type!=="context-menu"),Le=_n();E.useEffect(()=>{if(Se||(F.current=null),z.type==="context-menu"){if(!Se){Le.clear(),Te.current=!1;return}Le.start(500,()=>{Te.current=!0})}},[Le,Se,z.type]);const ge=E.useCallback(mt=>{$.current=mt,_(mt)},[]),{mounted:Re,setMounted:xe,transitionStatus:q}=hs(Se),{openMethod:J,triggerProps:ae,reset:Me}=pE(Se);Cm({enabled:Se&&K&&U!=="trigger-hover"&&J!=="touch",mounted:Re,open:Se,referenceElement:x}),!Se&&!A&&O(!0);const _e=Be(()=>{xe(!1),B(!0),ve(!1),s==null||s(!1),Me()});qr({enabled:!g,open:Se,ref:V,onComplete(){Se||_e()}});const be=E.useRef(!0),ke=_n(),He=Be((mt,ft)=>{const ot=ft.reason;if(Se===mt||(o==null||o(mt,ft),ft.isCanceled))return;const Ht={open:mt,nativeEvent:ft.event,reason:ft.reason,nested:ne};re==null||re.emit("openchange",Ht);const Ot=ft.event;if(mt===!1&&(Ot==null?void 0:Ot.type)==="click"&&Ot.pointerType==="touch"&&!be.current)return;if(!mt&&k!==null){const sr=W.current[k];queueMicrotask(()=>{sr==null||sr.setAttribute("tabindex","-1")})}mt&&ot==="trigger-focus"?(be.current=!1,ke.start(300,()=>{be.current=!0})):(be.current=!0,ke.clear());const Fn=(ot==="trigger-press"||ot==="item-press")&&Ot.detail===0&&(Ot==null?void 0:Ot.isTrusted),Wn=!mt&&(ot==="escape-key"||ot==null);function Xn(){Ie(mt),L(ot??null),F.current=ft.event??null}ot==="trigger-hover"?(B(!0),Q.start(a4,()=>{B(!1)}),br.flushSync(Xn)):Xn(),z.type==="menubar"&&(ot==="trigger-focus"||ot==="focus-out"||ot==="trigger-hover"||ot==="list-navigation"||ot==="sibling-open")?T("group"):T(Fn||Wn?Fn?"click":"dismiss":void 0)});E.useImperativeHandle(g,()=>({unmount:_e}),[_e]);let Ve;z.type==="context-menu"&&(Ve=z.context),E.useImperativeHandle(Ve==null?void 0:Ve.positionerRef,()=>x,[x]),E.useImperativeHandle(Ve==null?void 0:Ve.actionsRef,()=>({setOpen:He}),[He]),E.useEffect(()=>{Se||Q.clear()},[Q,Se]);const Fe=Ju({elements:{reference:R,floating:x},open:Se,onOpenChange:He});re=Fe.events;const Et=OS(Fe,{enabled:A&&pe&&!se&&z.type!=="context-menu"&&(z.type!=="menubar"||z.context.hasSubmenuOpen&&!Se),handleClose:LS({blockPointerEvents:!0}),mouseOnly:!0,move:z.type==="menu",restMs:z.type===void 0||z.type==="menu"&&ie?y:void 0,delay:z.type==="menu"?{open:ie?y:10**10,close:b}:{close:b}}),pt=C4(Fe,{enabled:!se&&!Se&&z.type==="menubar"&&z.context.hasSubmenuOpen&&!Z}),an=rm(Fe,{enabled:!se&&z.type!=="context-menu",event:Se&&z.type==="menubar"?"click":"mousedown",toggle:!pe||z.type!=="menu",ignoreMouse:pe&&z.type==="menu",stickIfOpen:z.type===void 0?j:!1}),en=cd(Fe,{enabled:!se,bubbles:S&&z.type==="menu",outsidePress(){var mt;return z.type!=="context-menu"||((mt=F.current)==null?void 0:mt.type)==="contextmenu"?!0:Te.current}}),ye=kS(Fe,{role:"menu"}),$e=NS(),je=T4(Fe,{enabled:!se,listRef:W,activeIndex:k,nested:z.type!==void 0,loop:d,orientation:p,parentOrientation:z.type==="menubar"?z.context.orientation:void 0,rtl:$e==="rtl",disabledIndices:bK,onNavigate:D,openOnArrowKeyDown:z.type!=="context-menu"}),Ge=E.useRef(!1),Ke=E.useCallback(mt=>{Ge.current=mt},[]),tt=A4(Fe,{listRef:P,activeIndex:k,resetMs:O8,onMatch:mt=>{Se&&mt!==k&&D(mt)},onTypingChange:Ke}),{getReferenceProps:Nt,getFloatingProps:Wt,getItemProps:wt}=fd([Et,an,en,pt,ye,je,tt]),kt=yK({open:Se,enabled:z.type==="menubar",mouseDownAction:"open"}),gt=E.useMemo(()=>{const mt=Do(Nt(),{onMouseEnter(){O(!0)},onMouseMove(){ve(!0)}},ae,kt);return delete mt.role,mt},[Nt,kt,ve,ae]),Vt=E.useMemo(()=>Wt({onMouseEnter(){(!pe||z.type==="menu")&&O(!1)},onMouseMove(){ve(!0)},onClick(){pe&&O(!1)}}),[Wt,pe,z.type,ve]),Ft=E.useMemo(()=>wt(),[wt]),Mt=E.useMemo(()=>({activeIndex:k,setActiveIndex:D,allowMouseUpTriggerRef:z.type?z.context.allowMouseUpTriggerRef:SK,floatingRootContext:Fe,itemProps:Ft,popupProps:Vt,triggerProps:gt,itemDomElements:W,itemLabels:P,mounted:Re,open:Se,popupRef:V,positionerRef:$,setOpen:He,setPositionerElement:ge,triggerElement:R,setTriggerElement:C,transitionStatus:q,lastOpenChangeReason:U,instantType:M,onOpenChangeComplete:s,setHoverEnabled:O,typingRef:Ge,modal:K,disabled:se,parent:z,rootId:le,allowMouseEnter:ie,setAllowMouseEnter:ve}),[k,Fe,Ft,Vt,gt,W,P,Re,Se,$,He,q,R,ge,U,M,s,K,se,z,le,ie,ve]),fn=Ee.jsx(AD.Provider,{value:Mt,children:n});return z.type===void 0||z.type==="context-menu"?Ee.jsx(s4,{children:fn}):fn};function OD(e){if(Sn(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid")??void 0;if(!gi(e))return OD(bi(e))}const bp=2,Kte=E.forwardRef(function(t,n){const{render:r,className:o,disabled:s=!1,nativeButton:l=!0,...c}=t,{triggerProps:f,disabled:d,setTriggerElement:p,open:g,allowMouseUpTriggerRef:m,positionerRef:y,parent:b,lastOpenChangeReason:S,rootId:R}=mc(),C=s||d,x=E.useRef(null),_=_n(),{getButtonProps:M,buttonRef:T}=Ti({disabled:C,native:l}),A=Tr(T,p),{events:O}=_i();E.useEffect(()=>{!g&&b.type===void 0&&(m.current=!1)},[m,g,b.type]);const k=Be(H=>{if(!x.current)return;_.clear(),m.current=!1;const F=H.target;if(un(x.current,F)||un(y.current,F)||F===x.current||F!=null&&OD(F)===R)return;const V=CI(x.current);H.clientX>=V.left-bp&&H.clientX<=V.right+bp&&H.clientY>=V.top-bp&&H.clientY<=V.bottom+bp||O.emit("close",{domEvent:H,reason:"cancel-open"})});E.useEffect(()=>{g&&S==="trigger-hover"&&Io(x.current).addEventListener("mouseup",k,{once:!0})},[g,k,S]);const D=b.type==="menubar",U=E.useCallback(H=>Do(D?{role:"menuitem"}:{},{"aria-haspopup":"menu",ref:A,onMouseDown:F=>{if(g)return;_.start(200,()=>{m.current=!0}),Io(F.currentTarget).addEventListener("mouseup",k,{once:!0})}},H,M),[M,A,g,m,_,k,D]),L=E.useMemo(()=>({disabled:C,open:g}),[C,g]),j=[x,n,T],B=[f,c,U],Y=At("button",t,{enabled:!D,stateAttributesMapping:ug,state:L,ref:j,props:B});return D?Ee.jsx(Nm,{tag:"button",render:r,className:o,state:L,refs:j,props:B,stateAttributesMapping:ug}):Y});var Wp={exports:{}},EK=Wp.exports,dA;function wK(){return dA||(dA=1,function(e,t){(function(n,r){e.exports=r()})(EK,function(){var n=new Map;function r(f){if(!f||!f.nodeName||f.nodeName!=="TEXTAREA"||n.has(f))return;var d=null;function p(R){for(var C=[];R&&R.parentNode&&R.parentNode instanceof Element;)R.parentNode.scrollTop&&C.push([R.parentNode,R.parentNode.scrollTop]),R=R.parentNode;return function(){return C.forEach(function(x){var _=x[0],M=x[1];_.style.scrollBehavior="auto",_.scrollTop=M,_.style.scrollBehavior=null})}}var g=window.getComputedStyle(f);function m(R){var C=R.restoreTextAlign,x=C===void 0?null:C,_=R.testForHeightReduction,M=_===void 0?!0:_,T=g.overflowY;if(f.scrollHeight!==0){g.resize==="vertical"?f.style.resize="none":g.resize==="both"&&(f.style.resize="horizontal");var A;M&&(A=p(f),f.style.height="");var O;if(g.boxSizing==="content-box"?O=f.scrollHeight-(parseFloat(g.paddingTop)+parseFloat(g.paddingBottom)):O=f.scrollHeight+parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth),g.maxHeight!=="none"&&O>parseFloat(g.maxHeight)?(g.overflowY==="hidden"&&(f.style.overflow="scroll"),O=parseFloat(g.maxHeight)):g.overflowY!=="hidden"&&(f.style.overflow="hidden"),f.style.height=O+"px",x&&(f.style.textAlign=x),A&&A(),d!==O&&(f.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),d=O),T!==g.overflow&&!x){var k=g.textAlign;g.overflow==="hidden"&&(f.style.textAlign=k==="start"?"end":"start"),m({restoreTextAlign:k,testForHeightReduction:!0})}}}function y(){m({testForHeightReduction:!0,restoreTextAlign:null})}var b=function(){var R=f.value;return function(){m({testForHeightReduction:R===""||!f.value.startsWith(R),restoreTextAlign:null}),R=f.value}}(),S=(function(R){f.removeEventListener("autosize:destroy",S),f.removeEventListener("autosize:update",y),f.removeEventListener("input",b),window.removeEventListener("resize",y),Object.keys(R).forEach(function(C){return f.style[C]=R[C]}),n.delete(f)}).bind(f,{height:f.style.height,resize:f.style.resize,textAlign:f.style.textAlign,overflowY:f.style.overflowY,overflowX:f.style.overflowX,wordWrap:f.style.wordWrap});f.addEventListener("autosize:destroy",S),f.addEventListener("autosize:update",y),f.addEventListener("input",b),window.addEventListener("resize",y),f.style.overflowX="hidden",f.style.wordWrap="break-word",n.set(f,{destroy:S,update:y}),y()}function o(f){var d=n.get(f);d&&d.destroy()}function s(f){var d=n.get(f);d&&d.update()}var l=null;typeof window>"u"?(l=function(d){return d},l.destroy=function(f){return f},l.update=function(f){return f}):(l=function(d,p){return d&&Array.prototype.forEach.call(d.length?d:[d],function(g){return r(g)}),d},l.destroy=function(f){return f&&Array.prototype.forEach.call(f.length?f:[f],o),f},l.update=function(f){return f&&Array.prototype.forEach.call(f.length?f:[f],s),f});var c=l;return c})}(Wp)),Wp.exports}var RK=wK();const Wte=us(RK);function xK(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return E.useMemo(()=>r=>{t.forEach(o=>o(r))},t)}const Um=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function IE(e){return"nodeType"in e}function Gr(e){var t,n;return e?vc(e)?e:IE(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function DE(e){const{Document:t}=Gr(e);return e instanceof t}function Id(e){return vc(e)?!1:e instanceof Gr(e).HTMLElement}function ID(e){return e instanceof Gr(e).SVGElement}function yc(e){return e?vc(e)?e.document:IE(e)?DE(e)?e:Id(e)||ID(e)?e.ownerDocument:document:document:document}const Ri=Um?E.useLayoutEffect:E.useEffect;function kE(e){const t=E.useRef(e);return Ri(()=>{t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function _K(){const e=E.useRef(null),t=E.useCallback((r,o)=>{e.current=setInterval(r,o)},[]),n=E.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Wf(e,t){t===void 0&&(t=[e]);const n=E.useRef(e);return Ri(()=>{n.current!==e&&(n.current=e)},t),n}function Dd(e,t){const n=E.useRef();return E.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Pg(e){const t=kE(e),n=E.useRef(null),r=E.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function Zb(e){const t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}let m1={};function kd(e,t){return E.useMemo(()=>{if(t)return t;const n=m1[e]==null?0:m1[e]+1;return m1[e]=n,e+"-"+n},[e,t])}function DD(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((s,l)=>{const c=Object.entries(l);for(const[f,d]of c){const p=s[f];p!=null&&(s[f]=p+e*d)}return s},{...t})}}const yu=DD(1),Ng=DD(-1);function CK(e){return"clientX"in e&&"clientY"in e}function LE(e){if(!e)return!1;const{KeyboardEvent:t}=Gr(e.target);return t&&e instanceof t}function TK(e){if(!e)return!1;const{TouchEvent:t}=Gr(e.target);return t&&e instanceof t}function Jb(e){if(TK(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return CK(e)?{x:e.clientX,y:e.clientY}:null}const Fg=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Fg.Translate.toString(e),Fg.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),hA="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function AK(e){return e.matches(hA)?e:e.querySelector(hA)}const MK={display:"none"};function OK(e){let{id:t,value:n}=e;return ce.createElement("div",{id:t,style:MK},n)}function IK(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ce.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function DK(){const[e,t]=E.useState("");return{announce:E.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const kD=E.createContext(null);function kK(e){const t=E.useContext(kD);E.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function LK(){const[e]=E.useState(()=>new Set),t=E.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[E.useCallback(r=>{let{type:o,event:s}=r;e.forEach(l=>{var c;return(c=l[o])==null?void 0:c.call(l,s)})},[e]),t]}const PK={draggable:`
|
|
36
|
-
To pick up a draggable item, press the space bar.
|
|
37
|
-
While dragging, use the arrow keys to move the item.
|
|
38
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
39
|
-
`},NK={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function FK(e){let{announcements:t=NK,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=PK}=e;const{announce:s,announcement:l}=DK(),c=kd("DndLiveRegion"),[f,d]=E.useState(!1);if(E.useEffect(()=>{d(!0)},[]),kK(E.useMemo(()=>({onDragStart(g){let{active:m}=g;s(t.onDragStart({active:m}))},onDragMove(g){let{active:m,over:y}=g;t.onDragMove&&s(t.onDragMove({active:m,over:y}))},onDragOver(g){let{active:m,over:y}=g;s(t.onDragOver({active:m,over:y}))},onDragEnd(g){let{active:m,over:y}=g;s(t.onDragEnd({active:m,over:y}))},onDragCancel(g){let{active:m,over:y}=g;s(t.onDragCancel({active:m,over:y}))}}),[s,t])),!f)return null;const p=ce.createElement(ce.Fragment,null,ce.createElement(OK,{id:r,value:o.draggable}),ce.createElement(IK,{id:c,announcement:l}));return n?br.createPortal(p,n):p}var Yn;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Yn||(Yn={}));function Bg(){}function Xte(e,t){return E.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Qte(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return E.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Yo=Object.freeze({x:0,y:0});function LD(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function PD(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function BK(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function pA(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function HK(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function gA(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Zte=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=gA(t,t.left,t.top),s=[];for(const l of r){const{id:c}=l,f=n.get(c);if(f){const d=LD(gA(f),o);s.push({id:c,data:{droppableContainer:l,value:d}})}}return s.sort(PD)},Jte=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=pA(t),s=[];for(const l of r){const{id:c}=l,f=n.get(c);if(f){const d=pA(f),p=o.reduce((m,y,b)=>m+LD(d[b],y),0),g=Number((p/4).toFixed(4));s.push({id:c,data:{droppableContainer:l,value:g}})}}return s.sort(PD)};function zK(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),l=o-r,c=s-n;if(r<o&&n<s){const f=t.width*t.height,d=e.width*e.height,p=l*c,g=p/(f+d-p);return Number(g.toFixed(4))}return 0}const UK=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const s of r){const{id:l}=s,c=n.get(l);if(c){const f=zK(c,t);f>0&&o.push({id:l,data:{droppableContainer:s,value:f}})}}return o.sort(BK)};function VK(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function ND(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Yo}function jK(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return o.reduce((l,c)=>({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const qK=jK(1);function $K(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function GK(e,t,n){const r=$K(t);if(!r)return e;const{scaleX:o,scaleY:s,x:l,y:c}=r,f=e.left-l-(1-o)*parseFloat(n),d=e.top-c-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),p=o?e.width/o:e.width,g=s?e.height/s:e.height;return{width:p,height:g,top:d,right:f+p,bottom:d+g,left:f}}const YK={ignoreTransform:!1};function bc(e,t){t===void 0&&(t=YK);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:p}=Gr(e).getComputedStyle(e);d&&(n=GK(n,d,p))}const{top:r,left:o,width:s,height:l,bottom:c,right:f}=n;return{top:r,left:o,width:s,height:l,bottom:c,right:f}}function mA(e){return bc(e,{ignoreTransform:!0})}function KK(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function WK(e,t){return t===void 0&&(t=Gr(e).getComputedStyle(e)),t.position==="fixed"}function XK(e,t){t===void 0&&(t=Gr(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const s=t[o];return typeof s=="string"?n.test(s):!1})}function PE(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(DE(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Id(o)||ID(o)||n.includes(o))return n;const s=Gr(e).getComputedStyle(o);return o!==e&&XK(o,s)&&n.push(o),WK(o,s)?n:r(o.parentNode)}return e?r(e):n}function FD(e){const[t]=PE(e,1);return t??null}function v1(e){return!Um||!e?null:vc(e)?e:IE(e)?DE(e)||e===yc(e).scrollingElement?window:Id(e)?e:null:null}function BD(e){return vc(e)?e.scrollX:e.scrollLeft}function HD(e){return vc(e)?e.scrollY:e.scrollTop}function eS(e){return{x:BD(e),y:HD(e)}}var nr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(nr||(nr={}));function zD(e){return!Um||!e?!1:e===document.scrollingElement}function UD(e){const t={x:0,y:0},n=zD(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:o,isLeft:s,isBottom:l,isRight:c,maxScroll:r,minScroll:t}}const QK={x:.2,y:.2};function ZK(e,t,n,r,o){let{top:s,left:l,right:c,bottom:f}=n;r===void 0&&(r=10),o===void 0&&(o=QK);const{isTop:d,isBottom:p,isLeft:g,isRight:m}=UD(e),y={x:0,y:0},b={x:0,y:0},S={height:t.height*o.y,width:t.width*o.x};return!d&&s<=t.top+S.height?(y.y=nr.Backward,b.y=r*Math.abs((t.top+S.height-s)/S.height)):!p&&f>=t.bottom-S.height&&(y.y=nr.Forward,b.y=r*Math.abs((t.bottom-S.height-f)/S.height)),!m&&c>=t.right-S.width?(y.x=nr.Forward,b.x=r*Math.abs((t.right-S.width-c)/S.width)):!g&&l<=t.left+S.width&&(y.x=nr.Backward,b.x=r*Math.abs((t.left+S.width-l)/S.width)),{direction:y,speed:b}}function JK(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:l}=window;return{top:0,left:0,right:s,bottom:l,width:s,height:l}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function VD(e){return e.reduce((t,n)=>yu(t,eS(n)),Yo)}function eW(e){return e.reduce((t,n)=>t+BD(n),0)}function tW(e){return e.reduce((t,n)=>t+HD(n),0)}function nW(e,t){if(t===void 0&&(t=bc),!e)return;const{top:n,left:r,bottom:o,right:s}=t(e);FD(e)&&(o<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const rW=[["x",["left","right"],eW],["y",["top","bottom"],tW]];class NE{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=PE(n),o=VD(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,l,c]of rW)for(const f of l)Object.defineProperty(this,f,{get:()=>{const d=c(r),p=o[s]-d;return this.rect[f]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class If{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function oW(e){const{EventTarget:t}=Gr(e);return e instanceof t?e:yc(e)}function y1(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Ro;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ro||(Ro={}));function vA(e){e.preventDefault()}function iW(e){e.stopPropagation()}var qt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(qt||(qt={}));const jD={start:[qt.Space,qt.Enter],cancel:[qt.Esc],end:[qt.Space,qt.Enter,qt.Tab]},sW=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case qt.Right:return{...n,x:n.x+25};case qt.Left:return{...n,x:n.x-25};case qt.Down:return{...n,y:n.y+25};case qt.Up:return{...n,y:n.y-25}}};class qD{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new If(yc(n)),this.windowListeners=new If(Gr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ro.Resize,this.handleCancel),this.windowListeners.add(Ro.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ro.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&nW(r),n(Yo)}handleKeyDown(t){if(LE(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:s=jD,coordinateGetter:l=sW,scrollBehavior:c="smooth"}=o,{code:f}=t;if(s.end.includes(f)){this.handleEnd(t);return}if(s.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:d}=r.current,p=d?{x:d.left,y:d.top}:Yo;this.referenceCoordinates||(this.referenceCoordinates=p);const g=l(t,{active:n,context:r.current,currentCoordinates:p});if(g){const m=Ng(g,p),y={x:0,y:0},{scrollableAncestors:b}=r.current;for(const S of b){const R=t.code,{isTop:C,isRight:x,isLeft:_,isBottom:M,maxScroll:T,minScroll:A}=UD(S),O=JK(S),k={x:Math.min(R===qt.Right?O.right-O.width/2:O.right,Math.max(R===qt.Right?O.left:O.left+O.width/2,g.x)),y:Math.min(R===qt.Down?O.bottom-O.height/2:O.bottom,Math.max(R===qt.Down?O.top:O.top+O.height/2,g.y))},D=R===qt.Right&&!x||R===qt.Left&&!_,U=R===qt.Down&&!M||R===qt.Up&&!C;if(D&&k.x!==g.x){const L=S.scrollLeft+m.x,j=R===qt.Right&&L<=T.x||R===qt.Left&&L>=A.x;if(j&&!m.y){S.scrollTo({left:L,behavior:c});return}j?y.x=S.scrollLeft-L:y.x=R===qt.Right?S.scrollLeft-T.x:S.scrollLeft-A.x,y.x&&S.scrollBy({left:-y.x,behavior:c});break}else if(U&&k.y!==g.y){const L=S.scrollTop+m.y,j=R===qt.Down&&L<=T.y||R===qt.Up&&L>=A.y;if(j&&!m.x){S.scrollTo({top:L,behavior:c});return}j?y.y=S.scrollTop-L:y.y=R===qt.Down?S.scrollTop-T.y:S.scrollTop-A.y,y.y&&S.scrollBy({top:-y.y,behavior:c});break}}this.handleMove(t,yu(Ng(g,this.referenceCoordinates),y))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}qD.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=jD,onActivation:o}=t,{active:s}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const c=s.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function yA(e){return!!(e&&"distance"in e)}function bA(e){return!!(e&&"delay"in e)}class FE{constructor(t,n,r){var o;r===void 0&&(r=oW(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:l}=s;this.props=t,this.events=n,this.document=yc(l),this.documentListeners=new If(this.document),this.listeners=new If(r),this.windowListeners=new If(Gr(l)),this.initialCoordinates=(o=Jb(s))!=null?o:Yo,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Ro.Resize,this.handleCancel),this.windowListeners.add(Ro.DragStart,vA),this.windowListeners.add(Ro.VisibilityChange,this.handleCancel),this.windowListeners.add(Ro.ContextMenu,vA),this.documentListeners.add(Ro.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(bA(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(yA(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ro.Click,iW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ro.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:s}=this,{onMove:l,options:{activationConstraint:c}}=s;if(!o)return;const f=(n=Jb(t))!=null?n:Yo,d=Ng(o,f);if(!r&&c){if(yA(c)){if(c.tolerance!=null&&y1(d,c.tolerance))return this.handleCancel();if(y1(d,c.distance))return this.handleStart()}if(bA(c)&&y1(d,c.tolerance))return this.handleCancel();this.handlePending(c,d);return}t.cancelable&&t.preventDefault(),l(f)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===qt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const aW={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class $D extends FE{constructor(t){const{event:n}=t,r=yc(n.target);super(t,aW,r)}}$D.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const lW={move:{name:"mousemove"},end:{name:"mouseup"}};var tS;(function(e){e[e.RightClick=2]="RightClick"})(tS||(tS={}));class uW extends FE{constructor(t){super(t,lW,yc(t.event.target))}}uW.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===tS.RightClick?!1:(r==null||r({event:n}),!0)}}];const b1={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class cW extends FE{constructor(t){super(t,b1)}static setup(){return window.addEventListener(b1.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(b1.move.name,t)};function t(){}}}cW.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Df;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Df||(Df={}));var Hg;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Hg||(Hg={}));function fW(e){let{acceleration:t,activator:n=Df.Pointer,canScroll:r,draggingRect:o,enabled:s,interval:l=5,order:c=Hg.TreeOrder,pointerCoordinates:f,scrollableAncestors:d,scrollableAncestorRects:p,delta:g,threshold:m}=e;const y=hW({delta:g,disabled:!s}),[b,S]=_K(),R=E.useRef({x:0,y:0}),C=E.useRef({x:0,y:0}),x=E.useMemo(()=>{switch(n){case Df.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Df.DraggableRect:return o}},[n,o,f]),_=E.useRef(null),M=E.useCallback(()=>{const A=_.current;if(!A)return;const O=R.current.x*C.current.x,k=R.current.y*C.current.y;A.scrollBy(O,k)},[]),T=E.useMemo(()=>c===Hg.TreeOrder?[...d].reverse():d,[c,d]);E.useEffect(()=>{if(!s||!d.length||!x){S();return}for(const A of T){if((r==null?void 0:r(A))===!1)continue;const O=d.indexOf(A),k=p[O];if(!k)continue;const{direction:D,speed:U}=ZK(A,k,x,t,m);for(const L of["x","y"])y[L][D[L]]||(U[L]=0,D[L]=0);if(U.x>0||U.y>0){S(),_.current=A,b(M,l),R.current=U,C.current=D;return}}R.current={x:0,y:0},C.current={x:0,y:0},S()},[t,M,r,S,s,l,JSON.stringify(x),JSON.stringify(y),b,d,T,p,JSON.stringify(m)])}const dW={x:{[nr.Backward]:!1,[nr.Forward]:!1},y:{[nr.Backward]:!1,[nr.Forward]:!1}};function hW(e){let{delta:t,disabled:n}=e;const r=Zb(t);return Dd(o=>{if(n||!r||!o)return dW;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[nr.Backward]:o.x[nr.Backward]||s.x===-1,[nr.Forward]:o.x[nr.Forward]||s.x===1},y:{[nr.Backward]:o.y[nr.Backward]||s.y===-1,[nr.Forward]:o.y[nr.Forward]||s.y===1}}},[n,t,r])}function pW(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Dd(o=>{var s;return t==null?null:(s=r??o)!=null?s:null},[r,t])}function gW(e,t){return E.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,s=o.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...s]},[]),[e,t])}var Xf;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Xf||(Xf={}));var nS;(function(e){e.Optimized="optimized"})(nS||(nS={}));const SA=new Map;function mW(e,t){let{dragging:n,dependencies:r,config:o}=t;const[s,l]=E.useState(null),{frequency:c,measure:f,strategy:d}=o,p=E.useRef(e),g=R(),m=Wf(g),y=E.useCallback(function(C){C===void 0&&(C=[]),!m.current&&l(x=>x===null?C:x.concat(C.filter(_=>!x.includes(_))))},[m]),b=E.useRef(null),S=Dd(C=>{if(g&&!n)return SA;if(!C||C===SA||p.current!==e||s!=null){const x=new Map;for(let _ of e){if(!_)continue;if(s&&s.length>0&&!s.includes(_.id)&&_.rect.current){x.set(_.id,_.rect.current);continue}const M=_.node.current,T=M?new NE(f(M),M):null;_.rect.current=T,T&&x.set(_.id,T)}return x}return C},[e,s,n,g,f]);return E.useEffect(()=>{p.current=e},[e]),E.useEffect(()=>{g||y()},[n,g]),E.useEffect(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),E.useEffect(()=>{g||typeof c!="number"||b.current!==null||(b.current=setTimeout(()=>{y(),b.current=null},c))},[c,g,y,...r]),{droppableRects:S,measureDroppableContainers:y,measuringScheduled:s!=null};function R(){switch(d){case Xf.Always:return!1;case Xf.BeforeDragging:return n;default:return!n}}}function GD(e,t){return Dd(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function vW(e,t){return GD(e,t)}function yW(e){let{callback:t,disabled:n}=e;const r=kE(t),o=E.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return E.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Vm(e){let{callback:t,disabled:n}=e;const r=kE(t),o=E.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return E.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function bW(e){return new NE(bc(e),e)}function EA(e,t,n){t===void 0&&(t=bW);const[r,o]=E.useState(null);function s(){o(f=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=f??n)!=null?d:null}const p=t(e);return JSON.stringify(f)===JSON.stringify(p)?f:p})}const l=yW({callback(f){if(e)for(const d of f){const{type:p,target:g}=d;if(p==="childList"&&g instanceof HTMLElement&&g.contains(e)){s();break}}}}),c=Vm({callback:s});return Ri(()=>{s(),e?(c==null||c.observe(e),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),l==null||l.disconnect())},[e]),r}function SW(e){const t=GD(e);return ND(e,t)}const wA=[];function EW(e){const t=E.useRef(e),n=Dd(r=>e?r&&r!==wA&&e&&t.current&&e.parentNode===t.current.parentNode?r:PE(e):wA,[e]);return E.useEffect(()=>{t.current=e},[e]),n}function wW(e){const[t,n]=E.useState(null),r=E.useRef(e),o=E.useCallback(s=>{const l=v1(s.target);l&&n(c=>c?(c.set(l,eS(l)),new Map(c)):null)},[]);return E.useEffect(()=>{const s=r.current;if(e!==s){l(s);const c=e.map(f=>{const d=v1(f);return d?(d.addEventListener("scroll",o,{passive:!0}),[d,eS(d)]):null}).filter(f=>f!=null);n(c.length?new Map(c):null),r.current=e}return()=>{l(e),l(s)};function l(c){c.forEach(f=>{const d=v1(f);d==null||d.removeEventListener("scroll",o)})}},[o,e]),E.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,l)=>yu(s,l),Yo):VD(e):Yo,[e,t])}function RA(e,t){t===void 0&&(t=[]);const n=E.useRef(null);return E.useEffect(()=>{n.current=null},t),E.useEffect(()=>{const r=e!==Yo;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ng(e,n.current):Yo}function RW(e){E.useEffect(()=>{if(!Um)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function xW(e,t){return E.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:s}=r;return n[o]=l=>{s(l,t)},n},{}),[e,t])}function YD(e){return E.useMemo(()=>e?KK(e):null,[e])}const xA=[];function _W(e,t){t===void 0&&(t=bc);const[n]=e,r=YD(n?Gr(n):null),[o,s]=E.useState(xA);function l(){s(()=>e.length?e.map(f=>zD(f)?r:new NE(t(f),f)):xA)}const c=Vm({callback:l});return Ri(()=>{c==null||c.disconnect(),l(),e.forEach(f=>c==null?void 0:c.observe(f))},[e]),o}function CW(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Id(t)?t:e}function TW(e){let{measure:t}=e;const[n,r]=E.useState(null),o=E.useCallback(d=>{for(const{target:p}of d)if(Id(p)){r(g=>{const m=t(p);return g?{...g,width:m.width,height:m.height}:m});break}},[t]),s=Vm({callback:o}),l=E.useCallback(d=>{const p=CW(d);s==null||s.disconnect(),p&&(s==null||s.observe(p)),r(p?t(p):null)},[t,s]),[c,f]=Pg(l);return E.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const AW=[{sensor:$D,options:{}},{sensor:qD,options:{}}],MW={current:{}},Xp={draggable:{measure:mA},droppable:{measure:mA,strategy:Xf.WhileDragging,frequency:nS.Optimized},dragOverlay:{measure:bc}};class kf extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const OW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new kf,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Bg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Xp,measureDroppableContainers:Bg,windowRect:null,measuringScheduled:!1},IW={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Bg,draggableNodes:new Map,over:null,measureDroppableContainers:Bg},jm=E.createContext(IW),KD=E.createContext(OW);function DW(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new kf}}}function kW(e,t){switch(t.type){case Yn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Yn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Yn.DragEnd:case Yn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Yn.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new kf(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Yn.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const l=new kf(e.droppable.containers);return l.set(n,{...s,disabled:o}),{...e,droppable:{...e.droppable,containers:l}}}case Yn.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new kf(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function LW(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=E.useContext(jm),s=Zb(r),l=Zb(n==null?void 0:n.id);return E.useEffect(()=>{if(!t&&!r&&s&&l!=null){if(!LE(s)||document.activeElement===s.target)return;const c=o.get(l);if(!c)return;const{activatorNode:f,node:d}=c;if(!f.current&&!d.current)return;requestAnimationFrame(()=>{for(const p of[f.current,d.current]){if(!p)continue;const g=AK(p);if(g){g.focus();break}}})}},[r,t,o,l,s]),null}function PW(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,s)=>s({transform:o,...r}),n):n}function NW(e){return E.useMemo(()=>({draggable:{...Xp.draggable,...e==null?void 0:e.draggable},droppable:{...Xp.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Xp.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function FW(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const s=E.useRef(!1),{x:l,y:c}=typeof o=="boolean"?{x:o,y:o}:o;Ri(()=>{if(!l&&!c||!t){s.current=!1;return}if(s.current||!r)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const p=n(d),g=ND(p,r);if(l||(g.x=0),c||(g.y=0),s.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const m=FD(d);m&&m.scrollBy({top:g.y,left:g.x})}},[t,l,c,r,n])}const WD=E.createContext({...Yo,scaleX:1,scaleY:1});var zs;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(zs||(zs={}));const ene=E.memo(function(t){var n,r,o,s;let{id:l,accessibility:c,autoScroll:f=!0,children:d,sensors:p=AW,collisionDetection:g=UK,measuring:m,modifiers:y,...b}=t;const S=E.useReducer(kW,void 0,DW),[R,C]=S,[x,_]=LK(),[M,T]=E.useState(zs.Uninitialized),A=M===zs.Initialized,{draggable:{active:O,nodes:k,translate:D},droppable:{containers:U}}=R,L=O!=null?k.get(O):null,j=E.useRef({initial:null,translated:null}),B=E.useMemo(()=>{var wt;return O!=null?{id:O,data:(wt=L==null?void 0:L.data)!=null?wt:MW,rect:j}:null},[O,L]),Y=E.useRef(null),[H,F]=E.useState(null),[V,$]=E.useState(null),W=Wf(b,Object.values(b)),P=kd("DndDescribedBy",l),Q=E.useMemo(()=>U.getEnabled(),[U]),Z=NW(m),{droppableRects:G,measureDroppableContainers:ne,measuringScheduled:re}=mW(Q,{dragging:A,dependencies:[D.x,D.y],config:Z.droppable}),z=pW(k,O),le=E.useMemo(()=>V?Jb(V):null,[V]),K=Wt(),se=vW(z,Z.draggable.measure);FW({activeNode:O!=null?k.get(O):null,config:K.layoutShiftCompensation,initialRect:se,measure:Z.draggable.measure});const ie=EA(z,Z.draggable.measure,se),ve=EA(z?z.parentElement:null),pe=E.useRef({activatorEvent:null,active:null,activeNode:z,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:U,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Se=U.getNodeFor((n=pe.current.over)==null?void 0:n.id),Ie=TW({measure:Z.dragOverlay.measure}),Te=(r=Ie.nodeRef.current)!=null?r:z,Le=A?(o=Ie.rect)!=null?o:ie:null,ge=!!(Ie.nodeRef.current&&Ie.rect),Re=SW(ge?null:ie),xe=YD(Te?Gr(Te):null),q=EW(A?Se??z:null),J=_W(q),ae=PW(y,{transform:{x:D.x-Re.x,y:D.y-Re.y,scaleX:1,scaleY:1},activatorEvent:V,active:B,activeNodeRect:ie,containerNodeRect:ve,draggingNodeRect:Le,over:pe.current.over,overlayNodeRect:Ie.rect,scrollableAncestors:q,scrollableAncestorRects:J,windowRect:xe}),Me=le?yu(le,D):null,_e=wW(q),be=RA(_e),ke=RA(_e,[ie]),He=yu(ae,be),Ve=Le?qK(Le,ae):null,Fe=B&&Ve?g({active:B,collisionRect:Ve,droppableRects:G,droppableContainers:Q,pointerCoordinates:Me}):null,Et=HK(Fe,"id"),[pt,an]=E.useState(null),en=ge?ae:yu(ae,ke),ye=VK(en,(s=pt==null?void 0:pt.rect)!=null?s:null,ie),$e=E.useRef(null),je=E.useCallback((wt,kt)=>{let{sensor:gt,options:Vt}=kt;if(Y.current==null)return;const Ft=k.get(Y.current);if(!Ft)return;const Mt=wt.nativeEvent,fn=new gt({active:Y.current,activeNode:Ft,event:Mt,options:Vt,context:pe,onAbort(ft){if(!k.get(ft))return;const{onDragAbort:Ht}=W.current,Ot={id:ft};Ht==null||Ht(Ot),x({type:"onDragAbort",event:Ot})},onPending(ft,ot,Ht,Ot){if(!k.get(ft))return;const{onDragPending:Wn}=W.current,Xn={id:ft,constraint:ot,initialCoordinates:Ht,offset:Ot};Wn==null||Wn(Xn),x({type:"onDragPending",event:Xn})},onStart(ft){const ot=Y.current;if(ot==null)return;const Ht=k.get(ot);if(!Ht)return;const{onDragStart:Ot}=W.current,Fn={activatorEvent:Mt,active:{id:ot,data:Ht.data,rect:j}};br.unstable_batchedUpdates(()=>{Ot==null||Ot(Fn),T(zs.Initializing),C({type:Yn.DragStart,initialCoordinates:ft,active:ot}),x({type:"onDragStart",event:Fn}),F($e.current),$(Mt)})},onMove(ft){C({type:Yn.DragMove,coordinates:ft})},onEnd:mt(Yn.DragEnd),onCancel:mt(Yn.DragCancel)});$e.current=fn;function mt(ft){return async function(){const{active:Ht,collisions:Ot,over:Fn,scrollAdjustedTranslate:Wn}=pe.current;let Xn=null;if(Ht&&Wn){const{cancelDrop:sr}=W.current;Xn={activatorEvent:Mt,active:Ht,collisions:Ot,delta:Wn,over:Fn},ft===Yn.DragEnd&&typeof sr=="function"&&await Promise.resolve(sr(Xn))&&(ft=Yn.DragCancel)}Y.current=null,br.unstable_batchedUpdates(()=>{C({type:ft}),T(zs.Uninitialized),an(null),F(null),$(null),$e.current=null;const sr=ft===Yn.DragEnd?"onDragEnd":"onDragCancel";if(Xn){const Po=W.current[sr];Po==null||Po(Xn),x({type:sr,event:Xn})}})}}},[k]),Ge=E.useCallback((wt,kt)=>(gt,Vt)=>{const Ft=gt.nativeEvent,Mt=k.get(Vt);if(Y.current!==null||!Mt||Ft.dndKit||Ft.defaultPrevented)return;const fn={active:Mt};wt(gt,kt.options,fn)===!0&&(Ft.dndKit={capturedBy:kt.sensor},Y.current=Vt,je(gt,kt))},[k,je]),Ke=gW(p,Ge);RW(p),Ri(()=>{ie&&M===zs.Initializing&&T(zs.Initialized)},[ie,M]),E.useEffect(()=>{const{onDragMove:wt}=W.current,{active:kt,activatorEvent:gt,collisions:Vt,over:Ft}=pe.current;if(!kt||!gt)return;const Mt={active:kt,activatorEvent:gt,collisions:Vt,delta:{x:He.x,y:He.y},over:Ft};br.unstable_batchedUpdates(()=>{wt==null||wt(Mt),x({type:"onDragMove",event:Mt})})},[He.x,He.y]),E.useEffect(()=>{const{active:wt,activatorEvent:kt,collisions:gt,droppableContainers:Vt,scrollAdjustedTranslate:Ft}=pe.current;if(!wt||Y.current==null||!kt||!Ft)return;const{onDragOver:Mt}=W.current,fn=Vt.get(Et),mt=fn&&fn.rect.current?{id:fn.id,rect:fn.rect.current,data:fn.data,disabled:fn.disabled}:null,ft={active:wt,activatorEvent:kt,collisions:gt,delta:{x:Ft.x,y:Ft.y},over:mt};br.unstable_batchedUpdates(()=>{an(mt),Mt==null||Mt(ft),x({type:"onDragOver",event:ft})})},[Et]),Ri(()=>{pe.current={activatorEvent:V,active:B,activeNode:z,collisionRect:Ve,collisions:Fe,droppableRects:G,draggableNodes:k,draggingNode:Te,draggingNodeRect:Le,droppableContainers:U,over:pt,scrollableAncestors:q,scrollAdjustedTranslate:He},j.current={initial:Le,translated:Ve}},[B,z,Fe,Ve,k,Te,Le,G,U,pt,q,He]),fW({...K,delta:D,draggingRect:Ve,pointerCoordinates:Me,scrollableAncestors:q,scrollableAncestorRects:J});const tt=E.useMemo(()=>({active:B,activeNode:z,activeNodeRect:ie,activatorEvent:V,collisions:Fe,containerNodeRect:ve,dragOverlay:Ie,draggableNodes:k,droppableContainers:U,droppableRects:G,over:pt,measureDroppableContainers:ne,scrollableAncestors:q,scrollableAncestorRects:J,measuringConfiguration:Z,measuringScheduled:re,windowRect:xe}),[B,z,ie,V,Fe,ve,Ie,k,U,G,pt,ne,q,J,Z,re,xe]),Nt=E.useMemo(()=>({activatorEvent:V,activators:Ke,active:B,activeNodeRect:ie,ariaDescribedById:{draggable:P},dispatch:C,draggableNodes:k,over:pt,measureDroppableContainers:ne}),[V,Ke,B,ie,C,P,k,pt,ne]);return ce.createElement(kD.Provider,{value:_},ce.createElement(jm.Provider,{value:Nt},ce.createElement(KD.Provider,{value:tt},ce.createElement(WD.Provider,{value:ye},d)),ce.createElement(LW,{disabled:(c==null?void 0:c.restoreFocus)===!1})),ce.createElement(FK,{...c,hiddenTextDescribedById:P}));function Wt(){const wt=(H==null?void 0:H.autoScrollEnabled)===!1,kt=typeof f=="object"?f.enabled===!1:f===!1,gt=A&&!wt&&!kt;return typeof f=="object"?{...f,enabled:gt}:{enabled:gt}}}),BW=E.createContext(null),_A="button",HW="Draggable";function zW(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const s=kd(HW),{activators:l,activatorEvent:c,active:f,activeNodeRect:d,ariaDescribedById:p,draggableNodes:g,over:m}=E.useContext(jm),{role:y=_A,roleDescription:b="draggable",tabIndex:S=0}=o??{},R=(f==null?void 0:f.id)===t,C=E.useContext(R?WD:BW),[x,_]=Pg(),[M,T]=Pg(),A=xW(l,t),O=Wf(n);Ri(()=>(g.set(t,{id:t,key:s,node:x,activatorNode:M,data:O}),()=>{const D=g.get(t);D&&D.key===s&&g.delete(t)}),[g,t]);const k=E.useMemo(()=>({role:y,tabIndex:S,"aria-disabled":r,"aria-pressed":R&&y===_A?!0:void 0,"aria-roledescription":b,"aria-describedby":p.draggable}),[r,y,S,R,b,p.draggable]);return{active:f,activatorEvent:c,activeNodeRect:d,attributes:k,isDragging:R,listeners:r?void 0:A,node:x,over:m,setNodeRef:_,setActivatorNodeRef:T,transform:C}}function UW(){return E.useContext(KD)}const VW="Droppable",jW={timeout:25};function qW(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const s=kd(VW),{active:l,dispatch:c,over:f,measureDroppableContainers:d}=E.useContext(jm),p=E.useRef({disabled:n}),g=E.useRef(!1),m=E.useRef(null),y=E.useRef(null),{disabled:b,updateMeasurementsFor:S,timeout:R}={...jW,...o},C=Wf(S??r),x=E.useCallback(()=>{if(!g.current){g.current=!0;return}y.current!=null&&clearTimeout(y.current),y.current=setTimeout(()=>{d(Array.isArray(C.current)?C.current:[C.current]),y.current=null},R)},[R]),_=Vm({callback:x,disabled:b||!l}),M=E.useCallback((k,D)=>{_&&(D&&(_.unobserve(D),g.current=!1),k&&_.observe(k))},[_]),[T,A]=Pg(M),O=Wf(t);return E.useEffect(()=>{!_||!T.current||(_.disconnect(),g.current=!1,_.observe(T.current))},[T,_]),E.useEffect(()=>(c({type:Yn.RegisterDroppable,element:{id:r,key:s,disabled:n,node:T,rect:m,data:O}}),()=>c({type:Yn.UnregisterDroppable,key:s,id:r})),[r]),E.useEffect(()=>{n!==p.current.disabled&&(c({type:Yn.SetDroppableDisabled,id:r,key:s,disabled:n}),p.current.disabled=n)},[r,s,n,c]),{active:l,rect:m,isOver:(f==null?void 0:f.id)===r,node:T,over:f,setNodeRef:A}}const qm=0,ya=1,Sc=2,XD=4;function CA(e){return()=>e}function $W(e){e()}function zg(e,t){return n=>e(t(n))}function TA(e,t){return()=>e(t)}function GW(e,t){return n=>e(t,n)}function BE(e){return e!==void 0}function YW(...e){return()=>{e.map($W)}}function Ld(){}function $m(e,t){return t(e),e}function KW(e,t){return t(e)}function vn(...e){return e}function Yt(e,t){return e(ya,t)}function bt(e,t){e(qm,t)}function HE(e){e(Sc)}function kn(e){return e(XD)}function Qe(e,t){return Yt(e,GW(t,qm))}function jo(e,t){const n=e(ya,r=>{n(),t(r)});return n}function AA(e){let t,n;return r=>o=>{t=o,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function QD(e,t){return e===t}function mn(e=QD){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function at(e){return t=>n=>{e(n)&&t(n)}}function Ye(e){return t=>zg(t,e)}function ci(e){return t=>()=>{t(e)}}function De(e,...t){const n=WW(...t);return(r,o)=>{switch(r){case Sc:HE(e);return;case ya:return Yt(e,n(o))}}}function pi(e,t){return n=>r=>{n(t=e(t,r))}}function hl(e){return t=>n=>{e>0?e--:t(n)}}function ns(e){let t=null,n;return r=>o=>{t=o,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function _t(...e){const t=new Array(e.length);let n=0,r=null;const o=Math.pow(2,e.length)-1;return e.forEach((s,l)=>{const c=Math.pow(2,l);Yt(s,f=>{const d=n;n=n|c,t[l]=f,d!==o&&n===o&&r&&(r(),r=null)})}),s=>l=>{const c=()=>{s([l].concat(t))};n===o?c():r=c}}function WW(...e){return t=>e.reduceRight(KW,t)}function XW(e){let t,n;const r=()=>t==null?void 0:t();return function(o,s){switch(o){case ya:return s?n===s?void 0:(r(),n=s,t=Yt(e,s),t):(r(),Ld);case Sc:r(),n=null;return}}}function Pe(e){let t=e;const n=Pt();return(r,o)=>{switch(r){case qm:t=o;break;case ya:{o(t);break}case XD:return t}return n(r,o)}}function Sr(e,t){return $m(Pe(t),n=>Qe(e,n))}function Pt(){const e=[];return(t,n)=>{switch(t){case qm:e.slice().forEach(r=>{r(n)});return;case Sc:e.splice(0,e.length);return;case ya:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}}}function so(e){return $m(Pt(),t=>Qe(e,t))}function Ut(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:QW(),singleton:n}}const QW=()=>Symbol();function ZW(e){const t=new Map,n=({constructor:r,dependencies:o,id:s,singleton:l})=>{if(l&&t.has(s))return t.get(s);const c=r(o.map(f=>n(f)));return l&&t.set(s,c),c};return n(e)}function Un(...e){const t=Pt(),n=new Array(e.length);let r=0;const o=Math.pow(2,e.length)-1;return e.forEach((s,l)=>{const c=Math.pow(2,l);Yt(s,f=>{n[l]=f,r=r|c,r===o&&bt(t,n)})}),function(s,l){switch(s){case Sc:{HE(t);return}case ya:return r===o&&l(n),Yt(t,l)}}}function rt(e,t=QD){return De(e,mn(t))}function rS(...e){return function(t,n){switch(t){case Sc:return;case ya:return YW(...e.map(r=>Yt(r,n)))}}}var ao=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(ao||{});const JW={0:"debug",3:"error",1:"log",2:"warn"},eX=()=>typeof globalThis>"u"?window:globalThis,ba=Ut(()=>{const e=Pe(3);return{log:Pe((t,n,r=1)=>{var o;const s=(o=eX().VIRTUOSO_LOG_LEVEL)!=null?o:kn(e);r>=s&&console[JW[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function pl(e,t,n){return zE(e,t,n).callbackRef}function zE(e,t,n){const r=ce.useRef(null);let o=l=>{};const s=ce.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(l=>{const c=()=>{const f=l[0].target;f.offsetParent!==null&&e(f)};n?c():requestAnimationFrame(c)}):null,[e,n]);return o=l=>{l&&t?(s==null||s.observe(l),r.current=l):(r.current&&(s==null||s.unobserve(r.current)),r.current=null)},{callbackRef:o,ref:r}}function tX(e,t,n,r,o,s,l,c,f){const d=ce.useCallback(p=>{const g=nX(p.children,t,"offsetHeight",o);let m=p.parentElement;for(;!m.dataset.virtuosoScroller;)m=m.parentElement;const y=m.lastElementChild.dataset.viewportType==="window";let b;y&&(b=m.ownerDocument.defaultView);const S=l?l.scrollTop:y?b.scrollY||b.document.documentElement.scrollTop:m.scrollTop,R=l?l.scrollHeight:y?b.document.documentElement.scrollHeight:m.scrollHeight,C=l?l.offsetHeight:y?b.innerHeight:m.offsetHeight;r({scrollHeight:R,scrollTop:Math.max(S,0),viewportHeight:C}),g!==null&&e(g)},[e,t,o,s,l,r,c]);return zE(d,n,f)}function nX(e,t,n,r){const o=e.length;if(o===0)return null;const s=[];for(let l=0;l<o;l++){const c=e.item(l);if(c.dataset.index===void 0)continue;const f=parseInt(c.dataset.index),d=parseFloat(c.dataset.knownSize),p=t(c,n);if(p===0&&r("Zero-sized element, this should not happen",{child:c},ao.ERROR),p===d)continue;const g=s[s.length-1];s.length===0||g.size!==p||g.endIndex!==f-1?s.push({endIndex:f,size:p,startIndex:f}):s[s.length-1].endIndex++}return s}function ZD(e,t,n){const r=ce.useRef(null),o=ce.useCallback(f=>{if(!(f!=null&&f.offsetParent))return;const d=f.getBoundingClientRect(),p=d.width;let g,m;if(t){const y=t.getBoundingClientRect(),b=d.top-y.top;m=y.height-Math.max(0,b),g=b+t.scrollTop}else{const y=l.current.ownerDocument.defaultView;m=y.innerHeight-Math.max(0,d.top),g=d.top+y.scrollY}r.current={offsetTop:g,visibleHeight:m,visibleWidth:p},e(r.current)},[e,t]),{callbackRef:s,ref:l}=zE(o,!0,n),c=ce.useCallback(()=>{o(l.current)},[o,l]);return ce.useEffect(()=>{var f;if(t){t.addEventListener("scroll",c);const d=new ResizeObserver(()=>{requestAnimationFrame(c)});return d.observe(t),()=>{t.removeEventListener("scroll",c),d.unobserve(t)}}else{const d=(f=l.current)==null?void 0:f.ownerDocument.defaultView;return d==null||d.addEventListener("scroll",c),d==null||d.addEventListener("resize",c),()=>{d==null||d.removeEventListener("scroll",c),d==null||d.removeEventListener("resize",c)}}},[c,t,l]),s}const Or=Ut(()=>{const e=Pt(),t=Pt(),n=Pe(0),r=Pt(),o=Pe(0),s=Pt(),l=Pt(),c=Pe(0),f=Pe(0),d=Pe(0),p=Pe(0),g=Pt(),m=Pt(),y=Pe(!1),b=Pe(!1),S=Pe(!1);return Qe(De(e,Ye(({scrollTop:R})=>R)),t),Qe(De(e,Ye(({scrollHeight:R})=>R)),l),Qe(t,o),{deviation:n,fixedFooterHeight:d,fixedHeaderHeight:f,footerHeight:p,headerHeight:c,horizontalDirection:b,scrollBy:m,scrollContainerState:e,scrollHeight:l,scrollingInProgress:y,scrollTo:g,scrollTop:t,skipAnimationFrameInResizeObserver:S,smoothScrollTargetReached:r,statefulScrollTop:o,viewportHeight:s}},[],{singleton:!0}),Qf={lvl:0};function JD(e,t){const n=e.length;if(n===0)return[];let{index:r,value:o}=t(e[0]);const s=[];for(let l=1;l<n;l++){const{index:c,value:f}=t(e[l]);s.push({end:c-1,start:r,value:o}),r=c,o=f}return s.push({end:1/0,start:r,value:o}),s}function cn(e){return e===Qf}function Zf(e,t){if(!cn(e))return t===e.k?e.v:t<e.k?Zf(e.l,t):Zf(e.r,t)}function Ko(e,t,n="k"){if(cn(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){const r=Ko(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return Ko(e.l,t,n)}function ro(e,t,n){return cn(e)?n3(t,n,1):t===e.k?Gn(e,{k:t,v:n}):t<e.k?MA(Gn(e,{l:ro(e.l,t,n)})):MA(Gn(e,{r:ro(e.r,t,n)}))}function bu(){return Qf}function Gm(e,t,n){if(cn(e))return[];const r=Ko(e,t)[0];return rX(iS(e,r,n))}function oS(e,t){if(cn(e))return Qf;const{k:n,l:r,r:o}=e;if(t===n){if(cn(r))return o;if(cn(o))return r;{const[s,l]=t3(r);return Qp(Gn(e,{k:s,l:e3(r),v:l}))}}else return t<n?Qp(Gn(e,{l:oS(r,t)})):Qp(Gn(e,{r:oS(o,t)}))}function qa(e){return cn(e)?[]:[...qa(e.l),{k:e.k,v:e.v},...qa(e.r)]}function iS(e,t,n){if(cn(e))return[];const{k:r,l:o,r:s,v:l}=e;let c=[];return r>t&&(c=c.concat(iS(o,t,n))),r>=t&&r<=n&&c.push({k:r,v:l}),r<=n&&(c=c.concat(iS(s,t,n))),c}function Qp(e){const{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(S1(t))return r3(Gn(e,{lvl:n-1}));if(!cn(t)&&!cn(t.r))return Gn(t.r,{l:Gn(t,{r:t.r.l}),lvl:n,r:Gn(e,{l:t.r.r,lvl:n-1})});throw new Error("Unexpected empty nodes")}else{if(S1(e))return sS(Gn(e,{lvl:n-1}));if(!cn(r)&&!cn(r.l)){const o=r.l,s=S1(o)?r.lvl-1:r.lvl;return Gn(o,{l:Gn(e,{lvl:n-1,r:o.l}),lvl:o.lvl+1,r:sS(Gn(r,{l:o.r,lvl:s}))})}else throw new Error("Unexpected empty nodes")}}function Gn(e,t){return n3(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function e3(e){return cn(e.r)?e.l:Qp(Gn(e,{r:e3(e.r)}))}function S1(e){return cn(e)||e.lvl>e.r.lvl}function t3(e){return cn(e.r)?[e.k,e.v]:t3(e.r)}function n3(e,t,n,r=Qf,o=Qf){return{k:e,l:r,lvl:n,r:o,v:t}}function MA(e){return sS(r3(e))}function r3(e){const{l:t}=e;return!cn(t)&&t.lvl===e.lvl?Gn(t,{r:Gn(e,{l:t.r})}):e}function sS(e){const{lvl:t,r:n}=e;return!cn(n)&&!cn(n.r)&&n.lvl===t&&n.r.lvl===t?Gn(n,{l:Gn(e,{r:n.l}),lvl:t+1}):e}function rX(e){return JD(e,({k:t,v:n})=>({index:t,value:n}))}function o3(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function Jf(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}const UE=Ut(()=>({recalcInProgress:Pe(!1)}),[],{singleton:!0});function i3(e,t,n){return e[Ug(e,t,n)]}function Ug(e,t,n,r=0){let o=e.length-1;for(;r<=o;){const s=Math.floor((r+o)/2),l=e[s],c=n(l,t);if(c===0)return s;if(c===-1){if(o-r<2)return s-1;o=s-1}else{if(o===r)return s;r=s+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function oX(e,t,n,r){const o=Ug(e,t,r),s=Ug(e,n,r,o);return e.slice(o,s+1)}function fa(e,t){return Math.round(e.getBoundingClientRect()[t])}function Ym(e){return!cn(e.groupOffsetTree)}function VE({index:e},t){return t===e?0:t<e?-1:1}function iX(){return{groupIndices:[],groupOffsetTree:bu(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:bu()}}function sX(e,t){let n=cn(e)?0:1/0;for(const r of t){const{endIndex:o,size:s,startIndex:l}=r;if(n=Math.min(n,l),cn(e)){e=ro(e,0,s);continue}const c=Gm(e,l-1,o+1);if(c.some(hX(r)))continue;let f=!1,d=!1;for(const{end:p,start:g,value:m}of c)f?(o>=g||s===m)&&(e=oS(e,g)):(d=m!==s,f=!0),p>o&&o>=g&&m!==s&&(e=ro(e,o+1,m));d&&(e=ro(e,l,s))}return[e,n]}function aX(e){return typeof e.groupIndex<"u"}function lX({offset:e},t){return t===e?0:t<e?-1:1}function ed(e,t,n){if(t.length===0)return 0;const{index:r,offset:o,size:s}=i3(t,e,VE),l=e-r,c=s*l+(l-1)*n+o;return c>0?c+n:c}function s3(e,t){if(!Ym(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function a3(e,t,n){if(aX(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let o=s3(r,t);return o=Math.max(0,o,Math.min(n,o)),o}}function uX(e,t,n,r=0){return r>0&&(t=Math.max(t,i3(e,r,VE).offset)),JD(oX(e,t,n,lX),dX)}function cX(e,[t,n,r,o]){t.length>0&&r("received item sizes",t,ao.DEBUG);const s=e.sizeTree;let l=s,c=0;if(n.length>0&&cn(s)&&t.length===2){const m=t[0].size,y=t[1].size;l=n.reduce((b,S)=>ro(ro(b,S,m),S+1,y),l)}else[l,c]=sX(l,t);if(l===s)return e;const{lastIndex:f,lastOffset:d,lastSize:p,offsetTree:g}=aS(e.offsetTree,c,l,o);return{groupIndices:n,groupOffsetTree:n.reduce((m,y)=>ro(m,y,ed(y,g,o)),bu()),lastIndex:f,lastOffset:d,lastSize:p,offsetTree:g,sizeTree:l}}function fX(e){return qa(e).map(({k:t,v:n},r,o)=>{const s=o[r+1];return{endIndex:s?s.k-1:1/0,size:n,startIndex:t}})}function OA(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function aS(e,t,n,r){let o=e,s=0,l=0,c=0,f=0;if(t!==0){f=Ug(o,t-1,VE),c=o[f].offset;const d=Ko(n,t-1);s=d[0],l=d[1],o.length&&o[f].size===Ko(n,t)[1]&&(f-=1),o=o.slice(0,f+1)}else o=[];for(const{start:d,value:p}of Gm(n,t,1/0)){const g=d-s,m=g*l+c+g*r;o.push({index:d,offset:m,size:p}),s=d,c=m,l=p}return{lastIndex:s,lastOffset:c,lastSize:l,offsetTree:o}}function dX(e){return{index:e.index,value:e}}function hX(e){const{endIndex:t,size:n,startIndex:r}=e;return o=>o.start===r&&(o.end===t||o.end===1/0)&&o.value===n}const pX={offsetHeight:"height",offsetWidth:"width"},Ai=Ut(([{log:e},{recalcInProgress:t}])=>{const n=Pt(),r=Pt(),o=Sr(r,0),s=Pt(),l=Pt(),c=Pe(0),f=Pe([]),d=Pe(void 0),p=Pe(void 0),g=Pe((T,A)=>fa(T,pX[A])),m=Pe(void 0),y=Pe(0),b=iX(),S=Sr(De(n,_t(f,e,y),pi(cX,b),mn()),b),R=Sr(De(f,mn(),pi((T,A)=>({current:A,prev:T.current}),{current:[],prev:[]}),Ye(({prev:T})=>T)),[]);Qe(De(f,at(T=>T.length>0),_t(S,y),Ye(([T,A,O])=>{const k=T.reduce((D,U,L)=>ro(D,U,ed(U,A.offsetTree,O)||L),bu());return{...A,groupIndices:T,groupOffsetTree:k}})),S),Qe(De(r,_t(S),at(([T,{lastIndex:A}])=>T<A),Ye(([T,{lastIndex:A,lastSize:O}])=>[{endIndex:A,size:O,startIndex:T}])),n),Qe(d,p);const C=Sr(De(d,Ye(T=>T===void 0)),!0);Qe(De(p,at(T=>T!==void 0&&cn(kn(S).sizeTree)),Ye(T=>[{endIndex:0,size:T,startIndex:0}])),n);const x=so(De(n,_t(S),pi(({sizes:T},[A,O])=>({changed:O!==T,sizes:O}),{changed:!1,sizes:b}),Ye(T=>T.changed)));Yt(De(c,pi((T,A)=>({diff:T.prev-A,prev:A}),{diff:0,prev:0}),Ye(T=>T.diff)),T=>{const{groupIndices:A}=kn(S);if(T>0)bt(t,!0),bt(s,T+OA(T,A));else if(T<0){const O=kn(R);O.length>0&&(T-=OA(-T,O)),bt(l,T)}}),Yt(De(c,_t(e)),([T,A])=>{T<0&&A("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:c},ao.ERROR)});const _=so(s);Qe(De(s,_t(S),Ye(([T,A])=>{const O=A.groupIndices.length>0,k=[],D=A.lastSize;if(O){const U=Zf(A.sizeTree,0);let L=0,j=0;for(;L<T;){const Y=A.groupIndices[j],H=A.groupIndices.length===j+1?1/0:A.groupIndices[j+1]-Y-1;k.push({endIndex:Y,size:U,startIndex:Y}),k.push({endIndex:Y+1+H-1,size:D,startIndex:Y+1}),j++,L+=H+1}const B=qa(A.sizeTree);return L!==T&&B.shift(),B.reduce((Y,{k:H,v:F})=>{let V=Y.ranges;return Y.prevSize!==0&&(V=[...Y.ranges,{endIndex:H+T-1,size:Y.prevSize,startIndex:Y.prevIndex}]),{prevIndex:H+T,prevSize:F,ranges:V}},{prevIndex:T,prevSize:0,ranges:k}).ranges}return qa(A.sizeTree).reduce((U,{k:L,v:j})=>({prevIndex:L+T,prevSize:j,ranges:[...U.ranges,{endIndex:L+T-1,size:U.prevSize,startIndex:U.prevIndex}]}),{prevIndex:0,prevSize:D,ranges:[]}).ranges})),n);const M=so(De(l,_t(S,y),Ye(([T,{offsetTree:A},O])=>{const k=-T;return ed(k,A,O)})));return Qe(De(l,_t(S,y),Ye(([T,A,O])=>{if(A.groupIndices.length>0){if(cn(A.sizeTree))return A;let k=bu();const D=kn(R);let U=0,L=0,j=0;for(;U<-T;){j=D[L];const B=D[L+1]-j-1;L++,U+=B+1}if(k=qa(A.sizeTree).reduce((B,{k:Y,v:H})=>ro(B,Math.max(0,Y+T),H),k),U!==-T){const B=Zf(A.sizeTree,j);k=ro(k,0,B);const Y=Ko(A.sizeTree,-T+1)[1];k=ro(k,1,Y)}return{...A,sizeTree:k,...aS(A.offsetTree,0,k,O)}}else{const k=qa(A.sizeTree).reduce((D,{k:U,v:L})=>ro(D,Math.max(0,U+T),L),bu());return{...A,sizeTree:k,...aS(A.offsetTree,0,k,O)}}})),S),{beforeUnshiftWith:_,data:m,defaultItemSize:p,firstItemIndex:c,fixedItemSize:d,gap:y,groupIndices:f,itemSize:g,listRefresh:x,shiftWith:l,shiftWithOffset:M,sizeRanges:n,sizes:S,statefulTotalCount:o,totalCount:r,trackItemSizes:C,unshiftWith:s}},vn(ba,UE),{singleton:!0});function gX(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{groupIndices:[],totalCount:0})}const l3=Ut(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:o}])=>{const s=Pt(),l=Pt(),c=so(De(s,Ye(gX)));return Qe(De(c,Ye(f=>f.totalCount)),n),Qe(De(c,Ye(f=>f.groupIndices)),e),Qe(De(Un(o,t,r),at(([f,d])=>Ym(d)),Ye(([f,d,p])=>Ko(d.groupOffsetTree,Math.max(f-p,0),"v")[0]),mn(),Ye(f=>[f])),l),{groupCounts:s,topItemsIndexes:l}},vn(Ai,Or)),Sa=Ut(([{log:e}])=>{const t=Pe(!1),n=so(De(t,at(r=>r),mn()));return Yt(t,r=>{r&&kn(e)("props updated",{},ao.DEBUG)}),{didMount:n,propsReady:t}},vn(ba),{singleton:!0}),mX=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function u3(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!mX)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const Pd=Ut(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:o,fixedHeaderHeight:s,footerHeight:l,headerHeight:c,scrollingInProgress:f,scrollTo:d,smoothScrollTargetReached:p,viewportHeight:g},{log:m}])=>{const y=Pt(),b=Pt(),S=Pe(0);let R=null,C=null,x=null;function _(){R&&(R(),R=null),x&&(x(),x=null),C&&(clearTimeout(C),C=null),bt(f,!1)}return Qe(De(y,_t(n,g,r,S,c,l,m),_t(e,s,o),Ye(([[M,T,A,O,k,D,U,L],j,B,Y])=>{const H=u3(M),{align:F,behavior:V,offset:$}=H,W=O-1,P=a3(H,T,W);let Q=ed(P,T.offsetTree,j)+D;F==="end"?(Q+=B+Ko(T.sizeTree,P)[1]-A+Y,P===W&&(Q+=U)):F==="center"?Q+=(B+Ko(T.sizeTree,P)[1]-A+Y)/2:Q-=k,$&&(Q+=$);const Z=G=>{_(),G?(L("retrying to scroll to",{location:M},ao.DEBUG),bt(y,M)):(bt(b,!0),L("list did not change, scroll successful",{},ao.DEBUG))};if(_(),V==="smooth"){let G=!1;x=Yt(t,ne=>{G=G||ne}),R=jo(p,()=>{Z(G)})}else R=jo(De(t,vX(150)),Z);return C=setTimeout(()=>{_()},1200),bt(f,!0),L("scrolling from index to",{behavior:V,index:P,top:Q},ao.DEBUG),{behavior:V,top:Q}})),d),{scrollTargetReached:b,scrollToIndex:y,topListHeight:S}},vn(Ai,Or,ba),{singleton:!0});function vX(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}function jE(e,t){e==0?t():requestAnimationFrame(()=>{jE(e-1,t)})}function qE(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Nd=Ut(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:o,scrollToIndex:s},{didMount:l}])=>{const c=Pe(!0),f=Pe(0),d=Pe(!0);return Qe(De(l,_t(f),at(([p,g])=>!!g),ci(!1)),c),Qe(De(l,_t(f),at(([p,g])=>!!g),ci(!1)),d),Yt(De(Un(t,l),_t(c,n,e,d),at(([[,p],g,{sizeTree:m},y,b])=>p&&(!cn(m)||BE(y))&&!g&&!b),_t(f)),([,p])=>{jo(o,()=>{bt(d,!0)}),jE(4,()=>{jo(r,()=>{bt(c,!0)}),bt(s,p)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:f,scrolledToInitialItem:c}},vn(Ai,Or,Pd,Sa),{singleton:!0});function c3(e,t){return Math.abs(e-t)<1.01}const td="up",Lf="down",yX="none",bX={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},SX=0,Fd=Ut(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:o,viewportHeight:s}])=>{const l=Pe(!1),c=Pe(!0),f=Pt(),d=Pt(),p=Pe(4),g=Pe(SX),m=Sr(De(rS(De(rt(o),hl(1),ci(!0)),De(rt(o),hl(1),ci(!1),AA(100))),mn()),!1),y=Sr(De(rS(De(n,ci(!0)),De(n,ci(!1),AA(200))),mn()),!1);Qe(De(Un(rt(o),rt(g)),Ye(([x,_])=>x<=_),mn()),c),Qe(De(c,ns(50)),d);const b=so(De(Un(r,rt(s),rt(t),rt(e),rt(p)),pi((x,[{scrollHeight:_,scrollTop:M},T,A,O,k])=>{const D=M+T-_>-k,U={scrollHeight:_,scrollTop:M,viewportHeight:T};if(D){let j,B;return M>x.state.scrollTop?(j="SCROLLED_DOWN",B=x.state.scrollTop-M):(j="SIZE_DECREASED",B=x.state.scrollTop-M||x.scrollTopDelta),{atBottom:!0,atBottomBecause:j,scrollTopDelta:B,state:U}}let L;return U.scrollHeight>x.state.scrollHeight?L="SIZE_INCREASED":T<x.state.viewportHeight?L="VIEWPORT_HEIGHT_DECREASING":M<x.state.scrollTop?L="SCROLLING_UPWARDS":L="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:L,state:U}},bX),mn((x,_)=>x&&x.atBottom===_.atBottom))),S=Sr(De(r,pi((x,{scrollHeight:_,scrollTop:M,viewportHeight:T})=>{if(c3(x.scrollHeight,_))return{changed:!1,jump:0,scrollHeight:_,scrollTop:M};{const A=_-(M+T)<1;return x.scrollTop!==M&&A?{changed:!0,jump:x.scrollTop-M,scrollHeight:_,scrollTop:M}:{changed:!0,jump:0,scrollHeight:_,scrollTop:M}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),at(x=>x.changed),Ye(x=>x.jump)),0);Qe(De(b,Ye(x=>x.atBottom)),l),Qe(De(l,ns(50)),f);const R=Pe(Lf);Qe(De(r,Ye(({scrollTop:x})=>x),mn(),pi((x,_)=>kn(y)?{direction:x.direction,prevScrollTop:_}:{direction:_<x.prevScrollTop?td:Lf,prevScrollTop:_},{direction:Lf,prevScrollTop:0}),Ye(x=>x.direction)),R),Qe(De(r,ns(50),ci(yX)),R);const C=Pe(0);return Qe(De(m,at(x=>!x),ci(0)),C),Qe(De(o,ns(100),_t(m),at(([x,_])=>!!_),pi(([x,_],[M])=>[_,M],[0,0]),Ye(([x,_])=>_-x)),C),{atBottomState:b,atBottomStateChange:f,atBottomThreshold:p,atTopStateChange:d,atTopThreshold:g,isAtBottom:l,isAtTop:c,isScrolling:m,lastJumpDueToItemResize:S,scrollDirection:R,scrollVelocity:C}},vn(Or)),Vg="top",jg="bottom",IA="none";function DA(e,t,n){return typeof e=="number"?n===td&&t===Vg||n===Lf&&t===jg?e:0:n===td?t===Vg?e.main:e.reverse:t===jg?e.main:e.reverse}function kA(e,t){var n;return typeof e=="number"?e:(n=e[t])!=null?n:0}const $E=Ut(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:o}])=>{const s=Pt(),l=Pe(0),c=Pe(0),f=Pe(0),d=Sr(De(Un(rt(r),rt(o),rt(n),rt(s,Jf),rt(f),rt(l),rt(t),rt(e),rt(c)),Ye(([p,g,m,[y,b],S,R,C,x,_])=>{const M=p-x,T=R+C,A=Math.max(m-M,0);let O=IA;const k=kA(_,Vg),D=kA(_,jg);return y-=x,y+=m+C,b+=m+C,b-=x,y>p+T-k&&(O=td),b<p-A+g+D&&(O=Lf),O!==IA?[Math.max(M-m-DA(S,Vg,O)-k,0),M-A-C+g+DA(S,jg,O)+D]:null}),at(p=>p!=null),mn(Jf)),[0,0]);return{increaseViewportBy:c,listBoundary:s,overscan:f,topListHeight:l,visibleRange:d}},vn(Or),{singleton:!0});function EX(e,t,n){if(Ym(t)){const r=s3(e,t);return[{index:Ko(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n==null?void 0:n[0],index:r,offset:0,size:0}]}return[{data:n==null?void 0:n[0],index:e,offset:0,size:0}]}const E1={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function Zp(e,t,n,r,o,s){const{lastIndex:l,lastOffset:c,lastSize:f}=o;let d=0,p=0;if(e.length>0){d=e[0].offset;const S=e[e.length-1];p=S.offset+S.size}const g=n-l,m=c+g*f+(g-1)*r,y=d,b=m-p;return{bottom:p,firstItemIndex:s,items:LA(e,o,s),offsetBottom:b,offsetTop:d,top:y,topItems:LA(t,o,s),topListHeight:t.reduce((S,R)=>R.size+S,0),totalCount:n}}function f3(e,t,n,r,o,s){let l=0;if(n.groupIndices.length>0)for(const p of n.groupIndices){if(p-l>=e)break;l++}const c=e+l,f=qE(t,c),d=Array.from({length:c}).map((p,g)=>({data:s[g+f],index:g+f,offset:0,size:0}));return Zp(d,[],c,o,n,r)}function LA(e,t,n){if(e.length===0)return[];if(!Ym(t))return e.map(d=>({...d,index:d.index+n,originalIndex:d.index}));const r=e[0].index,o=e[e.length-1].index,s=[],l=Gm(t.groupOffsetTree,r,o);let c,f=0;for(const d of e){(!c||c.end<d.index)&&(c=l.shift(),f=t.groupIndices.indexOf(c.start));let p;d.index===c.start?p={index:f,type:"group"}:p={groupIndex:f,index:d.index-(f+1)+n},s.push({...p,data:d.data,offset:d.offset,originalIndex:d.index,size:d.size})}return s}const yl=Ut(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:o},s,{listBoundary:l,topListHeight:c,visibleRange:f},{initialTopMostItemIndex:d,scrolledToInitialItem:p},{topListHeight:g},m,{didMount:y},{recalcInProgress:b}])=>{const S=Pe([]),R=Pe(0),C=Pt();Qe(s.topItemsIndexes,S);const x=Sr(De(Un(y,b,rt(f,Jf),rt(o),rt(r),rt(d),p,rt(S),rt(t),rt(n),e),at(([A,O,,k,,,,,,,D])=>{const U=D&&D.length!==k;return A&&!O&&!U}),Ye(([,,[A,O],k,D,U,L,j,B,Y,H])=>{const F=D,{offsetTree:V,sizeTree:$}=F,W=kn(R);if(k===0)return{...E1,totalCount:k};if(A===0&&O===0)return W===0?{...E1,totalCount:k}:f3(W,U,D,B,Y,H||[]);if(cn($))return W>0?null:Zp(EX(qE(U,k),F,H),[],k,Y,F,B);const P=[];if(j.length>0){const re=j[0],z=j[j.length-1];let le=0;for(const K of Gm($,re,z)){const se=K.value,ie=Math.max(K.start,re),ve=Math.min(K.end,z);for(let pe=ie;pe<=ve;pe++)P.push({data:H==null?void 0:H[pe],index:pe,offset:le,size:se}),le+=se}}if(!L)return Zp([],P,k,Y,F,B);const Q=j.length>0?j[j.length-1]+1:0,Z=uX(V,A,O,Q);if(Z.length===0)return null;const G=k-1,ne=$m([],re=>{for(const z of Z){const le=z.value;let K=le.offset,se=z.start;const ie=le.size;if(le.offset<A){se+=Math.floor((A-le.offset+Y)/(ie+Y));const pe=se-z.start;K+=pe*ie+pe*Y}se<Q&&(K+=(Q-se)*ie,se=Q);const ve=Math.min(z.end,G);for(let pe=se;pe<=ve&&!(K>=O);pe++)re.push({data:H==null?void 0:H[pe],index:pe,offset:K,size:ie}),K+=ie+Y}});return Zp(ne,P,k,Y,F,B)}),at(A=>A!==null),mn()),E1);Qe(De(e,at(BE),Ye(A=>A==null?void 0:A.length)),o),Qe(De(x,Ye(A=>A.topListHeight)),g),Qe(g,c),Qe(De(x,Ye(A=>[A.top,A.bottom])),l),Qe(De(x,Ye(A=>A.items)),C);const _=so(De(x,at(({items:A})=>A.length>0),_t(o,e),at(([{items:A},O])=>A[A.length-1].originalIndex===O-1),Ye(([,A,O])=>[A-1,O]),mn(Jf),Ye(([A])=>A))),M=so(De(x,ns(200),at(({items:A,topItems:O})=>A.length>0&&A[0].originalIndex===O.length),Ye(({items:A})=>A[0].index),mn())),T=so(De(x,at(({items:A})=>A.length>0),Ye(({items:A})=>{let O=0,k=A.length-1;for(;A[O].type==="group"&&O<k;)O++;for(;A[k].type==="group"&&k>O;)k--;return{endIndex:A[k].index,startIndex:A[O].index}}),mn(o3)));return{endReached:_,initialItemCount:R,itemsRendered:C,listState:x,rangeChanged:T,startReached:M,topItemsIndexes:S,...m}},vn(Ai,l3,$E,Nd,Pd,Fd,Sa,UE),{singleton:!0}),d3=Ut(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:o}])=>{const s=Pt(),l=Sr(De(Un(n,e,r,t,o),Ye(([c,f,d,p,g])=>c+f+d+p+g.offsetBottom+g.bottom)),0);return Qe(rt(l),s),{totalListHeight:l,totalListHeightChanged:s}},vn(Or,yl),{singleton:!0}),wX=Ut(([{viewportHeight:e},{totalListHeight:t}])=>{const n=Pe(!1),r=Sr(De(Un(n,e,t),at(([o])=>o),Ye(([,o,s])=>Math.max(0,o-s)),ns(0),mn()),0);return{alignToBottom:n,paddingTopAddition:r}},vn(Or,d3),{singleton:!0}),h3=Ut(()=>({context:Pe(null)})),RX=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...o},viewportBottom:s,viewportTop:l})=>t<l?{...o,align:n??"start",behavior:r}:e>s?{...o,align:n??"end",behavior:r}:null,p3=Ut(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:o,headerHeight:s,scrollingInProgress:l,scrollTop:c,viewportHeight:f},{scrollToIndex:d}])=>{const p=Pt();return Qe(De(p,_t(t,f,n,s,o,r,c),_t(e),Ye(([[g,m,y,b,S,R,C,x],_])=>{const{align:M,behavior:T,calculateViewLocation:A=RX,done:O,...k}=g,D=a3(g,m,b-1),U=ed(D,m.offsetTree,_)+S+R,L=U+Ko(m.sizeTree,D)[1],j=x+R,B=x+y-C,Y=A({itemBottom:L,itemTop:U,locationParams:{align:M,behavior:T,...k},viewportBottom:B,viewportTop:j});return Y?O&&jo(De(l,at(H=>!H),hl(kn(l)?1:2)),O):O&&O(),Y}),at(g=>g!==null)),d),{scrollIntoView:p}},vn(Ai,Or,Pd,yl,ba),{singleton:!0});function PA(e){return e?e==="smooth"?"smooth":"auto":!1}const xX=(e,t)=>typeof e=="function"?PA(e(t)):t&&PA(e),_X=Ut(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:o,isAtBottom:s},{scrollToIndex:l},{scrolledToInitialItem:c},{didMount:f,propsReady:d},{log:p},{scrollingInProgress:g},{context:m},{scrollIntoView:y}])=>{const b=Pe(!1),S=Pt();let R=null;function C(T){bt(l,{align:"end",behavior:T,index:"LAST"})}Yt(De(Un(De(rt(t),hl(1)),f),_t(rt(b),s,c,g),Ye(([[T,A],O,k,D,U])=>{let L=A&&D,j="auto";return L&&(j=xX(O,k||U),L=L&&!!j),{followOutputBehavior:j,shouldFollow:L,totalCount:T}}),at(({shouldFollow:T})=>T)),({followOutputBehavior:T,totalCount:A})=>{R&&(R(),R=null),kn(n)?requestAnimationFrame(()=>{kn(p)("following output to ",{totalCount:A},ao.DEBUG),C(T)}):R=jo(e,()=>{kn(p)("following output to ",{totalCount:A},ao.DEBUG),C(T),R=null})});function x(T){const A=jo(o,O=>{T&&!O.atBottom&&O.notAtBottomBecause==="SIZE_INCREASED"&&!R&&(kn(p)("scrolling to bottom due to increased size",{},ao.DEBUG),C("auto"))});setTimeout(A,100)}Yt(De(Un(rt(b),t,d),at(([T,,A])=>T&&A),pi(({value:T},[,A])=>({refreshed:T===A,value:A}),{refreshed:!1,value:0}),at(({refreshed:T})=>T),_t(b,t)),([,T])=>{kn(c)&&x(T!==!1)}),Yt(S,()=>{x(kn(b)!==!1)}),Yt(Un(rt(b),o),([T,A])=>{T&&!A.atBottom&&A.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&C("auto")});const _=Pe(null),M=Pt();return Qe(rS(De(rt(r),Ye(T=>{var A;return(A=T==null?void 0:T.length)!=null?A:0})),De(rt(t))),M),Yt(De(Un(De(M,hl(1)),f),_t(rt(_),c,g,m),Ye(([[T,A],O,k,D,U])=>A&&k&&(O==null?void 0:O({context:U,totalCount:T,scrollingInProgress:D}))),at(T=>!!T),ns(0)),T=>{R&&(R(),R=null),kn(n)?requestAnimationFrame(()=>{kn(p)("scrolling into view",{}),bt(y,T)}):R=jo(e,()=>{kn(p)("scrolling into view",{}),bt(y,T),R=null})}),{autoscrollToBottom:S,followOutput:b,scrollIntoViewOnChange:_}},vn(Ai,Fd,Pd,Nd,Sa,ba,Or,h3,p3)),CX=Ut(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:o},{initialItemCount:s,listState:l},{didMount:c}])=>(Qe(De(c,_t(s),at(([,f])=>f!==0),_t(o,r,t,n,e),Ye(([[,f],d,p,g,m,y=[]])=>f3(f,d,p,g,m,y))),l),{}),vn(Ai,Nd,yl,Sa),{singleton:!0}),TX=Ut(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=Pe(0);return Yt(De(e,_t(r),at(([,o])=>o!==0),Ye(([,o])=>({top:o}))),o=>{jo(De(n,hl(1),at(s=>s.items.length>1)),()=>{requestAnimationFrame(()=>{bt(t,o)})})}),{initialScrollTop:r}},vn(Sa,Or,yl),{singleton:!0}),g3=Ut(([{scrollVelocity:e}])=>{const t=Pe(!1),n=Pt(),r=Pe(!1);return Qe(De(e,_t(r,t,n),at(([o,s])=>!!s),Ye(([o,s,l,c])=>{const{enter:f,exit:d}=s;if(l){if(d(o,c))return!1}else if(f(o,c))return!0;return l}),mn()),t),Yt(De(Un(t,e,n),_t(r)),([[o,s,l],c])=>{o&&c&&c.change&&c.change(s,l)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},vn(Fd),{singleton:!0}),GE=Ut(([{scrollContainerState:e,scrollTo:t}])=>{const n=Pt(),r=Pt(),o=Pt(),s=Pe(!1),l=Pe(void 0);return Qe(De(Un(n,r),Ye(([{scrollHeight:c,scrollTop:f,viewportHeight:d},{offsetTop:p}])=>({scrollHeight:c,scrollTop:Math.max(0,f-p),viewportHeight:d}))),e),Qe(De(t,_t(r),Ye(([c,{offsetTop:f}])=>({...c,top:c.top+f}))),o),{customScrollParent:l,useWindowScroll:s,windowScrollContainerState:n,windowScrollTo:o,windowViewportRect:r}},vn(Or)),AX=Ut(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:o},{didMount:s},{useWindowScroll:l,windowScrollContainerState:c,windowViewportRect:f}])=>{const d=Pt(),p=Pe(void 0),g=Pe(null),m=Pe(null);return Qe(c,g),Qe(f,m),Yt(De(d,_t(t,r,l,g,m,n)),([y,b,S,R,C,x,_])=>{const M=fX(b.sizeTree);R&&C!==null&&x!==null&&(S=C.scrollTop-x.offsetTop),S-=_,y({ranges:M,scrollTop:S})}),Qe(De(p,at(BE),Ye(MX)),o),Qe(De(s,_t(p),at(([,y])=>y!==void 0),mn(),Ye(([,y])=>y.ranges)),e),{getState:d,restoreStateFrom:p}},vn(Ai,Or,Nd,Sa,GE));function MX(e){return{align:"start",index:0,offset:e.scrollTop}}const OX=Ut(([{topItemsIndexes:e}])=>{const t=Pe(0);return Qe(De(t,at(n=>n>=0),Ye(n=>Array.from({length:n}).map((r,o)=>o))),e),{topItemCount:t}},vn(yl));function m3(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const IX=m3(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),DX=Ut(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:o,isScrolling:s,lastJumpDueToItemResize:l,scrollDirection:c},{listState:f},{beforeUnshiftWith:d,gap:p,shiftWithOffset:g,sizes:m},{log:y},{recalcInProgress:b}])=>{const S=so(De(f,_t(l),pi(([,C,x,_],[{bottom:M,items:T,offsetBottom:A,totalCount:O},k])=>{const D=M+A;let U=0;return x===O&&C.length>0&&T.length>0&&(T[0].originalIndex===0&&C[0].originalIndex===0||(U=D-_,U!==0&&(U+=k))),[U,T,O,D]},[0,[],0,0]),at(([C])=>C!==0),_t(r,c,n,o,y,b),at(([,C,x,_,,,M])=>!M&&!_&&C!==0&&x===td),Ye(([[C],,,,,x])=>(x("Upward scrolling compensation",{amount:C},ao.DEBUG),C))));function R(C){C>0?(bt(t,{behavior:"auto",top:-C}),bt(e,0)):(bt(e,0),bt(t,{behavior:"auto",top:-C}))}return Yt(De(S,_t(e,s)),([C,x,_])=>{_&&IX()?bt(e,x-C):R(-C)}),Yt(De(Un(Sr(s,!1),e,b),at(([C,x,_])=>!C&&!_&&x!==0),Ye(([C,x])=>x),ns(1)),R),Qe(De(g,Ye(C=>({top:-C}))),t),Yt(De(d,_t(m,p),Ye(([C,{groupIndices:x,lastSize:_,sizeTree:M},T])=>{function A(O){return O*(_+T)}if(x.length===0)return A(C);{let O=0;const k=Zf(M,0);let D=0,U=0;for(;D<C;){D++,O+=k;let L=x.length===U+1?1/0:x[U+1]-x[U]-1;D+L>C&&(O-=k,L=C-D+1),D+=L,O+=A(L),U++}return O}})),C=>{bt(e,C),requestAnimationFrame(()=>{bt(t,{top:C}),requestAnimationFrame(()=>{bt(e,0),bt(b,!1)})})}),{deviation:e}},vn(Or,Fd,yl,Ai,ba,UE)),kX=Ut(([e,t,n,r,o,s,l,c,f,d,p])=>({...e,...t,...n,...r,...o,...s,...l,...c,...f,...d,...p}),vn($E,CX,Sa,g3,d3,TX,wX,GE,p3,ba,h3)),v3=Ut(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,gap:o,groupIndices:s,itemSize:l,sizeRanges:c,sizes:f,statefulTotalCount:d,totalCount:p,trackItemSizes:g},{initialItemFinalLocationReached:m,initialTopMostItemIndex:y,scrolledToInitialItem:b},S,R,C,{listState:x,topItemsIndexes:_,...M},{scrollToIndex:T},A,{topItemCount:O},{groupCounts:k},D])=>(Qe(M.rangeChanged,D.scrollSeekRangeChanged),Qe(De(D.windowViewportRect,Ye(U=>U.visibleHeight)),S.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,gap:o,groupCounts:k,initialItemFinalLocationReached:m,initialTopMostItemIndex:y,scrolledToInitialItem:b,sizeRanges:c,topItemCount:O,topItemsIndexes:_,totalCount:p,...C,groupIndices:s,itemSize:l,listState:x,scrollToIndex:T,statefulTotalCount:d,trackItemSizes:g,...M,...D,...S,sizes:f,...R}),vn(Ai,Nd,Or,AX,_X,yl,Pd,DX,OX,l3,kX));function LX(e,t){const n={},r={};let o=0;const s=e.length;for(;o<s;)r[e[o]]=1,o+=1;for(const l in t)Object.hasOwn(r,l)||(n[l]=t[l]);return n}const Sp=typeof document<"u"?ce.useLayoutEffect:ce.useEffect;function y3(e,t,n){const r=Object.keys(t.required||{}),o=Object.keys(t.optional||{}),s=Object.keys(t.methods||{}),l=Object.keys(t.events||{}),c=ce.createContext({});function f(R,C){R.propsReady&&bt(R.propsReady,!1);for(const x of r){const _=R[t.required[x]];bt(_,C[x])}for(const x of o)if(x in C){const _=R[t.optional[x]];bt(_,C[x])}R.propsReady&&bt(R.propsReady,!0)}function d(R){return s.reduce((C,x)=>(C[x]=_=>{const M=R[t.methods[x]];bt(M,_)},C),{})}function p(R){return l.reduce((C,x)=>(C[x]=XW(R[t.events[x]]),C),{})}const g=ce.forwardRef((R,C)=>{const{children:x,..._}=R,[M]=ce.useState(()=>$m(ZW(e),O=>{f(O,_)})),[T]=ce.useState(TA(p,M));Sp(()=>{for(const O of l)O in _&&Yt(T[O],_[O]);return()=>{Object.values(T).map(HE)}},[_,T,M]),Sp(()=>{f(M,_)}),ce.useImperativeHandle(C,CA(d(M)));const A=n;return Ee.jsx(c.Provider,{value:M,children:n?Ee.jsx(A,{...LX([...r,...o,...l],_),children:x}):x})}),m=R=>{const C=ce.useContext(c);return ce.useCallback(x=>{bt(C[R],x)},[C,R])},y=R=>{const C=ce.useContext(c)[R],x=ce.useCallback(_=>Yt(C,_),[C]);return ce.useSyncExternalStore(x,()=>kn(C),()=>kn(C))},b=R=>{const C=ce.useContext(c)[R],[x,_]=ce.useState(TA(kn,C));return Sp(()=>Yt(C,M=>{M!==x&&_(CA(M))}),[C,x]),x},S=ce.version.startsWith("18")?y:b;return{Component:g,useEmitter:(R,C)=>{const x=ce.useContext(c)[R];Sp(()=>Yt(x,C),[C,x])},useEmitterValue:S,usePublisher:m}}const b3=ce.createContext(void 0),S3=ce.createContext(void 0),E3=typeof document<"u"?ce.useLayoutEffect:ce.useEffect;function w1(e){return"self"in e}function PX(e){return"body"in e}function w3(e,t,n,r=Ld,o,s){const l=ce.useRef(null),c=ce.useRef(null),f=ce.useRef(null),d=ce.useCallback(m=>{let y,b,S;const R=m.target;if(PX(R)||w1(R)){const x=w1(R)?R:R.defaultView;S=s?x.scrollX:x.scrollY,y=s?x.document.documentElement.scrollWidth:x.document.documentElement.scrollHeight,b=s?x.innerWidth:x.innerHeight}else S=s?R.scrollLeft:R.scrollTop,y=s?R.scrollWidth:R.scrollHeight,b=s?R.offsetWidth:R.offsetHeight;const C=()=>{e({scrollHeight:y,scrollTop:Math.max(S,0),viewportHeight:b})};m.suppressFlushSync?C():MP.flushSync(C),c.current!==null&&(S===c.current||S<=0||S===y-b)&&(c.current=null,t(!0),f.current&&(clearTimeout(f.current),f.current=null))},[e,t,s]);ce.useEffect(()=>{const m=o||l.current;return r(o||l.current),d({suppressFlushSync:!0,target:m}),m.addEventListener("scroll",d,{passive:!0}),()=>{r(null),m.removeEventListener("scroll",d)}},[l,d,n,r,o]);function p(m){const y=l.current;if(!y||(s?"offsetWidth"in y&&y.offsetWidth===0:"offsetHeight"in y&&y.offsetHeight===0))return;const b=m.behavior==="smooth";let S,R,C;w1(y)?(R=Math.max(fa(y.document.documentElement,s?"width":"height"),s?y.document.documentElement.scrollWidth:y.document.documentElement.scrollHeight),S=s?y.innerWidth:y.innerHeight,C=s?window.scrollX:window.scrollY):(R=y[s?"scrollWidth":"scrollHeight"],S=fa(y,s?"width":"height"),C=y[s?"scrollLeft":"scrollTop"]);const x=R-S;if(m.top=Math.ceil(Math.max(Math.min(x,m.top),0)),c3(S,R)||m.top===C){e({scrollHeight:R,scrollTop:C,viewportHeight:S}),b&&t(!0);return}b?(c.current=m.top,f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{f.current=null,c.current=null,t(!0)},1e3)):c.current=null,s&&(m={behavior:m.behavior,left:m.top}),y.scrollTo(m)}function g(m){s&&(m={behavior:m.behavior,left:m.top}),l.current.scrollBy(m)}return{scrollByCallback:g,scrollerRef:l,scrollToCallback:p}}const R1="-webkit-sticky",NA="sticky",YE=m3(()=>{if(typeof document>"u")return NA;const e=document.createElement("div");return e.style.position=R1,e.style.position===R1?R1:NA});function KE(e){return e}const NX=Ut(()=>{const e=Pe(c=>`Item ${c}`),t=Pe(c=>`Group ${c}`),n=Pe({}),r=Pe(KE),o=Pe("div"),s=Pe(Ld),l=(c,f=null)=>Sr(De(n,Ye(d=>d[c]),mn()),f);return{components:n,computeItemKey:r,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:t,HeaderComponent:l("Header"),HeaderFooterTag:o,ItemComponent:l("Item","div"),itemContent:e,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}});vn(v3,NX);YE();const FX={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},BX={outline:"none",overflowX:"auto",position:"relative"},Km=e=>({height:"100%",position:"absolute",top:0,width:"100%"});YE();function dr(e,t){if(typeof e!="string")return{context:t}}function HX(e,t){return{item:typeof e=="string"?void 0:t}}function R3({useEmitter:e,useEmitterValue:t,usePublisher:n}){return ce.memo(function({children:r,style:o,...s}){const l=n("scrollContainerState"),c=t("ScrollerComponent"),f=n("smoothScrollTargetReached"),d=t("scrollerRef"),p=t("context"),g=t("horizontalDirection")||!1,{scrollByCallback:m,scrollerRef:y,scrollToCallback:b}=w3(l,f,c,d,void 0,g);return e("scrollTo",b),e("scrollBy",m),Ee.jsx(c,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:y,style:{...g?BX:FX,...o},tabIndex:0,...s,...dr(c,p),children:r})})}function x3({useEmitter:e,useEmitterValue:t,usePublisher:n}){return ce.memo(function({children:r,style:o,...s}){const l=n("windowScrollContainerState"),c=t("ScrollerComponent"),f=n("smoothScrollTargetReached"),d=t("totalListHeight"),p=t("deviation"),g=t("customScrollParent"),m=t("context"),y=ce.useRef(null),b=t("scrollerRef"),{scrollByCallback:S,scrollerRef:R,scrollToCallback:C}=w3(l,f,c,b,g);return E3(()=>{var x;return R.current=g||((x=y.current)==null?void 0:x.ownerDocument.defaultView),()=>{R.current=null}},[R,g]),e("windowScrollTo",C),e("scrollBy",S),Ee.jsx(c,{ref:y,"data-virtuoso-scroller":!0,style:{position:"relative",...o,...d!==0?{height:d+p}:{}},...s,...dr(c,m),children:r})})}const zX=Ut(()=>{const e=Pe(d=>Ee.jsxs("td",{children:["Item $",d]})),t=Pe(null),n=Pe(d=>Ee.jsxs("td",{colSpan:1e3,children:["Group ",d]})),r=Pe(null),o=Pe(null),s=Pe({}),l=Pe(KE),c=Pe(Ld),f=(d,p=null)=>Sr(De(s,Ye(g=>g[d]),mn()),p);return{components:s,computeItemKey:l,context:t,EmptyPlaceholder:f("EmptyPlaceholder"),FillerRow:f("FillerRow"),fixedFooterContent:o,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:f("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:f("ScrollSeekPlaceholder"),TableBodyComponent:f("TableBody","tbody"),TableComponent:f("Table","table"),TableFooterComponent:f("TableFoot","tfoot"),TableHeadComponent:f("TableHead","thead"),TableRowComponent:f("TableRow","tr"),GroupComponent:f("Group","tr")}}),UX=Ut(([e,t])=>({...e,...t}),vn(v3,zX)),VX=({height:e})=>Ee.jsx("tr",{children:Ee.jsx("td",{style:{height:e}})}),jX=({height:e})=>Ee.jsx("tr",{children:Ee.jsx("td",{style:{border:0,height:e,padding:0}})}),qX={overflowAnchor:"none"},FA={position:YE(),zIndex:2,overflowAnchor:"none"},BA=ce.memo(function({showTopList:e=!1}){const t=yt("listState"),n=yt("computeItemKey"),r=yt("firstItemIndex"),o=yt("context"),s=yt("isSeeking"),l=yt("fixedHeaderHeight"),c=yt("groupIndices").length>0,f=yt("itemContent"),d=yt("groupContent"),p=yt("ScrollSeekPlaceholder")||VX,g=yt("GroupComponent"),m=yt("TableRowComponent"),y=(e?t.topItems:[]).reduce((S,R,C)=>(C===0?S.push(R.size):S.push(S[C-1]+R.size),S),[]),b=(e?t.topItems:t.items).map(S=>{const R=S.originalIndex,C=n(R+r,S.data,o),x=e?R===0?0:y[R-1]:0;return s?E.createElement(p,{...dr(p,o),height:S.size,index:S.index,key:C,type:S.type||"item"}):S.type==="group"?E.createElement(g,{...dr(g,o),"data-index":R,"data-item-index":S.index,"data-known-size":S.size,key:C,style:{...FA,top:l}},d(S.index,o)):E.createElement(m,{...dr(m,o),...HX(m,S.data),"data-index":R,"data-item-index":S.index,"data-known-size":S.size,"data-item-group-index":S.groupIndex,key:C,style:e?{...FA,top:l+x}:qX},c?f(S.index,S.groupIndex,S.data,o):f(S.index,S.data,o))});return Ee.jsx(Ee.Fragment,{children:b})}),$X=ce.memo(function(){const e=yt("listState"),t=yt("topItemsIndexes").length>0,n=qo("sizeRanges"),r=yt("useWindowScroll"),o=yt("customScrollParent"),s=qo("windowScrollContainerState"),l=qo("scrollContainerState"),c=o||r?s:l,f=yt("trackItemSizes"),d=yt("itemSize"),p=yt("log"),{callbackRef:g,ref:m}=tX(n,d,f,c,p,void 0,o,!1,yt("skipAnimationFrameInResizeObserver")),[y,b]=ce.useState(0);WE("deviation",U=>{y!==U&&(m.current.style.marginTop=`${U}px`,b(U))});const S=yt("EmptyPlaceholder"),R=yt("FillerRow")||jX,C=yt("TableBodyComponent"),x=yt("paddingTopAddition"),_=yt("statefulTotalCount"),M=yt("context");if(_===0&&S)return Ee.jsx(S,{...dr(S,M)});const T=(t?e.topItems:[]).reduce((U,L)=>U+L.size,0),A=e.offsetTop+x+y-T,O=e.offsetBottom,k=A>0?Ee.jsx(R,{context:M,height:A},"padding-top"):null,D=O>0?Ee.jsx(R,{context:M,height:O},"padding-bottom"):null;return Ee.jsxs(C,{"data-testid":"virtuoso-item-list",ref:g,...dr(C,M),children:[k,t&&Ee.jsx(BA,{showTopList:!0}),Ee.jsx(BA,{}),D]})}),GX=({children:e})=>{const t=ce.useContext(b3),n=qo("viewportHeight"),r=qo("fixedItemHeight"),o=pl(ce.useMemo(()=>zg(n,s=>fa(s,"height")),[n]),!0,yt("skipAnimationFrameInResizeObserver"));return ce.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),Ee.jsx("div",{"data-viewport-type":"element",ref:o,style:Km(),children:e})},YX=({children:e})=>{const t=ce.useContext(b3),n=qo("windowViewportRect"),r=qo("fixedItemHeight"),o=yt("customScrollParent"),s=ZD(n,o,yt("skipAnimationFrameInResizeObserver"));return ce.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),Ee.jsx("div",{"data-viewport-type":"window",ref:s,style:Km(),children:e})},KX=ce.memo(function(e){const t=yt("useWindowScroll"),n=yt("customScrollParent"),r=qo("fixedHeaderHeight"),o=qo("fixedFooterHeight"),s=yt("fixedHeaderContent"),l=yt("fixedFooterContent"),c=yt("context"),f=pl(ce.useMemo(()=>zg(r,C=>fa(C,"height")),[r]),!0,yt("skipAnimationFrameInResizeObserver")),d=pl(ce.useMemo(()=>zg(o,C=>fa(C,"height")),[o]),!0,yt("skipAnimationFrameInResizeObserver")),p=n||t?QX:XX,g=n||t?YX:GX,m=yt("TableComponent"),y=yt("TableHeadComponent"),b=yt("TableFooterComponent"),S=s?Ee.jsx(y,{ref:f,style:{position:"sticky",top:0,zIndex:2},...dr(y,c),children:s()},"TableHead"):null,R=l?Ee.jsx(b,{ref:d,style:{bottom:0,position:"sticky",zIndex:1},...dr(b,c),children:l()},"TableFoot"):null;return Ee.jsx(p,{...e,...dr(p,c),children:Ee.jsx(g,{children:Ee.jsxs(m,{style:{borderSpacing:0,overflowAnchor:"none"},...dr(m,c),children:[S,Ee.jsx($X,{},"TableBody"),R]})})})}),{Component:WX,useEmitter:WE,useEmitterValue:yt,usePublisher:qo}=y3(UX,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},KX),XX=R3({useEmitter:WE,useEmitterValue:yt,usePublisher:qo}),QX=x3({useEmitter:WE,useEmitterValue:yt,usePublisher:qo}),tne=WX,HA={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},ZX={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:zA,floor:qg,max:Pf,min:x1,round:UA}=Math;function VA(e,t,n){return Array.from({length:t-e+1}).map((r,o)=>({data:n===null?null:n[o+e],index:o+e}))}function JX(e){return{...ZX,items:e}}function Ep(e,t){return e&&e.width===t.width&&e.height===t.height}function eQ(e,t){return e&&e.column===t.column&&e.row===t.row}const tQ=Ut(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:o,headerHeight:s,scrollBy:l,scrollContainerState:c,scrollTo:f,scrollTop:d,smoothScrollTargetReached:p,viewportHeight:g},m,y,{didMount:b,propsReady:S},{customScrollParent:R,useWindowScroll:C,windowScrollContainerState:x,windowScrollTo:_,windowViewportRect:M},T])=>{const A=Pe(0),O=Pe(0),k=Pe(HA),D=Pe({height:0,width:0}),U=Pe({height:0,width:0}),L=Pt(),j=Pt(),B=Pe(0),Y=Pe(null),H=Pe({column:0,row:0}),F=Pt(),V=Pt(),$=Pe(!1),W=Pe(0),P=Pe(!0),Q=Pe(!1),Z=Pe(!1);Yt(De(b,_t(W),at(([K,se])=>!!se)),()=>{bt(P,!1)}),Yt(De(Un(b,P,U,D,W,Q),at(([K,se,ie,ve,,pe])=>K&&!se&&ie.height!==0&&ve.height!==0&&!pe)),([,,,,K])=>{bt(Q,!0),jE(1,()=>{bt(L,K)}),jo(De(d),()=>{bt(t,[0,0]),bt(P,!0)})}),Qe(De(V,at(K=>K!=null&&K.scrollTop>0),ci(0)),O),Yt(De(b,_t(V),at(([,K])=>K!=null)),([,K])=>{K&&(bt(D,K.viewport),bt(U,K.item),bt(H,K.gap),K.scrollTop>0&&(bt($,!0),jo(De(d,hl(1)),se=>{bt($,!1)}),bt(f,{top:K.scrollTop})))}),Qe(De(D,Ye(({height:K})=>K)),g),Qe(De(Un(rt(D,Ep),rt(U,Ep),rt(H,(K,se)=>K&&K.column===se.column&&K.row===se.row),rt(d)),Ye(([K,se,ie,ve])=>({gap:ie,item:se,scrollTop:ve,viewport:K}))),F),Qe(De(Un(rt(A),r,rt(H,eQ),rt(U,Ep),rt(D,Ep),rt(Y),rt(O),rt($),rt(P),rt(W)),at(([,,,,,,,K])=>!K),Ye(([K,[se,ie],ve,pe,Se,Ie,Te,,Le,ge])=>{const{column:Re,row:xe}=ve,{height:q,width:J}=pe,{width:ae}=Se;if(Te===0&&(K===0||ae===0))return HA;if(J===0){const pt=qE(ge,K),an=pt+Math.max(Te-1,0);return JX(VA(pt,an,Ie))}const Me=_3(ae,J,Re);let _e,be;Le?se===0&&ie===0&&Te>0?(_e=0,be=Te-1):(_e=Me*qg((se+xe)/(q+xe)),be=Me*zA((ie+xe)/(q+xe))-1,be=x1(K-1,Pf(be,Me-1)),_e=x1(be,Pf(0,_e))):(_e=0,be=-1);const ke=VA(_e,be,Ie),{bottom:He,top:Ve}=jA(Se,ve,pe,ke),Fe=zA(K/Me),Et=Fe*q+(Fe-1)*xe-He;return{bottom:He,itemHeight:q,items:ke,itemWidth:J,offsetBottom:Et,offsetTop:Ve,top:Ve}})),k),Qe(De(Y,at(K=>K!==null),Ye(K=>K.length)),A),Qe(De(Un(D,U,k,H),at(([K,se,{items:ie}])=>ie.length>0&&se.height!==0&&K.height!==0),Ye(([K,se,{items:ie},ve])=>{const{bottom:pe,top:Se}=jA(K,ve,se,ie);return[Se,pe]}),mn(Jf)),t);const G=Pe(!1);Qe(De(d,_t(G),Ye(([K,se])=>se||K!==0)),G);const ne=so(De(Un(k,A),at(([{items:K}])=>K.length>0),_t(G),at(([[K,se],ie])=>{const ve=K.items[K.items.length-1].index===se-1;return(ie||K.bottom>0&&K.itemHeight>0&&K.offsetBottom===0&&K.items.length===se)&&ve}),Ye(([[,K]])=>K-1),mn())),re=so(De(rt(k),at(({items:K})=>K.length>0&&K[0].index===0),ci(0),mn())),z=so(De(rt(k),_t($),at(([{items:K},se])=>K.length>0&&!se),Ye(([{items:K}])=>({endIndex:K[K.length-1].index,startIndex:K[0].index})),mn(o3),ns(0)));Qe(z,y.scrollSeekRangeChanged),Qe(De(L,_t(D,U,A,H),Ye(([K,se,ie,ve,pe])=>{const Se=u3(K),{align:Ie,behavior:Te,offset:Le}=Se;let ge=Se.index;ge==="LAST"&&(ge=ve-1),ge=Pf(0,ge,x1(ve-1,ge));let Re=lS(se,pe,ie,ge);return Ie==="end"?Re=UA(Re-se.height+ie.height):Ie==="center"&&(Re=UA(Re-se.height/2+ie.height/2)),Le&&(Re+=Le),{behavior:Te,top:Re}})),f);const le=Sr(De(k,Ye(K=>K.offsetBottom+K.bottom)),0);return Qe(De(M,Ye(K=>({height:K.visibleHeight,width:K.visibleWidth}))),D),{customScrollParent:R,data:Y,deviation:B,footerHeight:o,gap:H,headerHeight:s,increaseViewportBy:e,initialItemCount:O,itemDimensions:U,overscan:n,restoreStateFrom:V,scrollBy:l,scrollContainerState:c,scrollHeight:j,scrollTo:f,scrollToIndex:L,scrollTop:d,smoothScrollTargetReached:p,totalCount:A,useWindowScroll:C,viewportDimensions:D,windowScrollContainerState:x,windowScrollTo:_,windowViewportRect:M,...y,gridState:k,horizontalDirection:Z,initialTopMostItemIndex:W,totalListHeight:le,...m,endReached:ne,propsReady:S,rangeChanged:z,startReached:re,stateChanged:F,stateRestoreInProgress:$,...T}},vn($E,Or,Fd,g3,Sa,GE,ba));function _3(e,t,n){return Pf(1,qg((e+n)/(qg(t)+n)))}function jA(e,t,n,r){const{height:o}=n;if(o===void 0||r.length===0)return{bottom:0,top:0};const s=lS(e,t,n,r[0].index);return{bottom:lS(e,t,n,r[r.length-1].index)+o,top:s}}function lS(e,t,n,r){const o=_3(e.width,n.width,t.column),s=qg(r/o),l=s*n.height+Pf(0,s-1)*t.row;return l>0?l+t.row:l}const nQ=Ut(()=>{const e=Pe(g=>`Item ${g}`),t=Pe({}),n=Pe(null),r=Pe("virtuoso-grid-item"),o=Pe("virtuoso-grid-list"),s=Pe(KE),l=Pe("div"),c=Pe(Ld),f=(g,m=null)=>Sr(De(t,Ye(y=>y[g]),mn()),m),d=Pe(!1),p=Pe(!1);return Qe(rt(p),d),{components:t,computeItemKey:s,context:n,FooterComponent:f("Footer"),HeaderComponent:f("Header"),headerFooterTag:l,itemClassName:r,ItemComponent:f("Item","div"),itemContent:e,listClassName:o,ListComponent:f("List","div"),readyStateChanged:d,reportReadyState:p,ScrollerComponent:f("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:f("ScrollSeekPlaceholder","div")}}),rQ=Ut(([e,t])=>({...e,...t}),vn(tQ,nQ)),oQ=ce.memo(function(){const e=bn("gridState"),t=bn("listClassName"),n=bn("itemClassName"),r=bn("itemContent"),o=bn("computeItemKey"),s=bn("isSeeking"),l=Co("scrollHeight"),c=bn("ItemComponent"),f=bn("ListComponent"),d=bn("ScrollSeekPlaceholder"),p=bn("context"),g=Co("itemDimensions"),m=Co("gap"),y=bn("log"),b=bn("stateRestoreInProgress"),S=Co("reportReadyState"),R=pl(ce.useMemo(()=>C=>{const x=C.parentElement.parentElement.scrollHeight;l(x);const _=C.firstChild;if(_){const{height:M,width:T}=_.getBoundingClientRect();g({height:M,width:T})}m({column:qA("column-gap",getComputedStyle(C).columnGap,y),row:qA("row-gap",getComputedStyle(C).rowGap,y)})},[l,g,m,y]),!0,!1);return E3(()=>{e.itemHeight>0&&e.itemWidth>0&&S(!0)},[e]),b?null:Ee.jsx(f,{className:t,ref:R,...dr(f,p),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(C=>{const x=o(C.index,C.data,p);return s?Ee.jsx(d,{...dr(d,p),height:e.itemHeight,index:C.index,width:e.itemWidth},x):E.createElement(c,{...dr(c,p),className:n,"data-index":C.index,key:x},r(C.index,C.data,p))})})}),iQ=ce.memo(function(){const e=bn("HeaderComponent"),t=Co("headerHeight"),n=bn("headerFooterTag"),r=pl(ce.useMemo(()=>s=>{t(fa(s,"height"))},[t]),!0,!1),o=bn("context");return e?Ee.jsx(n,{ref:r,children:Ee.jsx(e,{...dr(e,o)})}):null}),sQ=ce.memo(function(){const e=bn("FooterComponent"),t=Co("footerHeight"),n=bn("headerFooterTag"),r=pl(ce.useMemo(()=>s=>{t(fa(s,"height"))},[t]),!0,!1),o=bn("context");return e?Ee.jsx(n,{ref:r,children:Ee.jsx(e,{...dr(e,o)})}):null}),aQ=({children:e})=>{const t=ce.useContext(S3),n=Co("itemDimensions"),r=Co("viewportDimensions"),o=pl(ce.useMemo(()=>s=>{r(s.getBoundingClientRect())},[r]),!0,!1);return ce.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),Ee.jsx("div",{ref:o,style:Km(),children:e})},lQ=({children:e})=>{const t=ce.useContext(S3),n=Co("windowViewportRect"),r=Co("itemDimensions"),o=bn("customScrollParent"),s=ZD(n,o,!1);return ce.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),Ee.jsx("div",{ref:s,style:Km(),children:e})},uQ=ce.memo(function({...e}){const t=bn("useWindowScroll"),n=bn("customScrollParent"),r=n||t?fQ:cQ,o=n||t?lQ:aQ,s=bn("context");return Ee.jsx(r,{...e,...dr(r,s),children:Ee.jsxs(o,{children:[Ee.jsx(iQ,{}),Ee.jsx(oQ,{}),Ee.jsx(sQ,{})]})})}),{useEmitter:C3,useEmitterValue:bn,usePublisher:Co}=y3(rQ,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},uQ),cQ=R3({useEmitter:C3,useEmitterValue:bn,usePublisher:Co}),fQ=x3({useEmitter:C3,useEmitterValue:bn,usePublisher:Co});function qA(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,ao.WARN),t==="normal"?0:parseInt(t??"0",10)}var dQ=Object.defineProperty,$A=Object.getOwnPropertySymbols,hQ=Object.prototype.hasOwnProperty,pQ=Object.prototype.propertyIsEnumerable,GA=(e,t,n)=>t in e?dQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YA=(e,t)=>{for(var n in t||(t={}))hQ.call(t,n)&&GA(e,n,t[n]);if($A)for(var n of $A(t))pQ.call(t,n)&&GA(e,n,t[n]);return e},gQ={Cell:'[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],td,th',Row:'[role="row"],tr',RowGroup:'[role="rowgroup"],thead,tbody,tfoot',Focusable:'a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not([aria-disabled="true"]):not([tabindex="-1"]):not(:disabled),*[tabindex]'},mQ=class{constructor(e={}){this.keys=[],this.debugLog=(o,s)=>{this.debug&&console.info(`[${o}]: ${s}`)};const{selectors:t={},pageUpDown:n,debug:r=!1}=e;this.selectors=YA(YA({},gQ),t),this.pageUpDown=n,this.keys=[],this.debug=r,this.disabled=!1}disable(){this.disabled=!0}enable(){this.disabled=!1}isFocusable(e){return e instanceof HTMLElement||e instanceof SVGElement}tableKeyUp(){this.keys=[]}tableKeyDown(e){var t;if(this.debugLog("tableKeyDown",`Key pressed: ${e.key}`),this.disabled){this.debugLog("tableKeyDown","interaction is disabled");return}if((e.key==="ArrowDown"||e.key==="ArrowUp"||e.key==="ArrowLeft"||e.key==="ArrowRight")&&e.preventDefault(),(this.keys.length===0||this.keys[this.keys.length-1]!==e.key)&&this.keys.push(e.key),!(e.target instanceof Element))return;const n=(t=e.target.parentElement)==null?void 0:t.closest(`${this.selectors.Cell},${this.selectors.Row}`);if(!n){this.debugLog("tableKeyDown","cell not found");return}n.matches(this.selectors.Cell)?(this.debugLog("tableKeyDown","event captured in cell"),this.cellNavigation(e)):(this.debugLog("tableKeyDown","event captured in cell"),this.gridNavigation(e))}cellNavigation(e){if(e.target instanceof Element){if(e.key==="Escape"){const t=e.target.closest(this.selectors.Cell);if(t&&this.isFocusable(t)){t.focus();return}}if(e.key==="ArrowRight"||e.key==="ArrowDown"){const t=e.target.closest(this.selectors.Cell);if(!t){this.debugLog("cellNavigation","cell not found");return}const n=[...t.querySelectorAll(this.selectors.Focusable)],r=n.findIndex(l=>l===e.target),o=r===n.length-1?0:r+1,s=n[o];this.isFocusable(s)&&s.focus();return}if(e.key==="ArrowLeft"||e.key==="ArrowUp"){const t=e.target.closest(this.selectors.Cell);if(!t){this.debugLog("cellNavigation","cell not found");return}const n=[...t.querySelectorAll(this.selectors.Focusable)],r=n.findIndex(l=>l===e.target),o=r===0?n.length-1:r-1,s=n[o];this.isFocusable(s)&&s.focus();return}}}gridNavigation(e){var t;const{target:n}=e;if(e.target instanceof Element&&n instanceof Element)if(this.keys.length===1){if(e.key==="Enter"){const r=e.target.querySelector(this.selectors.Focusable);r&&this.isFocusable(r)&&(r.focus(),e.preventDefault())}if(e.key==="ArrowLeft"||e.key==="ArrowRight"){const r=e.key==="ArrowLeft"?"prev":"next",o=e.target.closest(this.selectors.Cell);if(o&&o instanceof Element){const s=this.findUntil(r,o,this.selectors.Cell);s&&s.focus()}}if(e.key==="ArrowDown"||e.key==="ArrowUp"){this.verticalCellNavigation(e);return}if(e.key==="PageUp"||e.key==="PageDown"){this.pageCellNavigation(e);return}if(e.key==="Home"||e.key==="End"){const r=e.target.closest(this.selectors.Row),o=[...(r==null?void 0:r.children)||[]];e.key==="End"&&o.reverse(),this.focusOnFirstCell(o)}}else{const[r,o]=this.keys;if(r==="Control"&&(o==="Home"||o==="End")){const l=(t=e.target.closest(this.selectors.Row).parentElement)==null?void 0:t.children;if(!l){this.debugLog("cellNavigation","siblings not found");return}const c=o==="Home"?l[0]:l[l.length-1],f=[...(c==null?void 0:c.children)||[]];o==="End"&&f.reverse(),this.focusOnFirstCell(f)}}}pageCellNavigation(e){var t;if(!(e.target instanceof Element))return;const n=e.target.closest(this.selectors.Row),r=e.target.closest(this.selectors.Cell);if(n&&r){const o=this.getColumnIndex(r);if(o===void 0){this.debugLog("cellNavigation","position not found");return}const s=e.key==="PageUp"?"prev":"next",l=(t=n.parentElement)==null?void 0:t.children;if(!l){this.debugLog("cellNavigation","siblings not found");return}let c;if(this.pageUpDown){const d=s==="prev"?"previousSibling":"nextSibling";let p=n[d];if(p===null)return;let g=p;for(let m=0;m<this.pageUpDown-1&&p;m++)p=p[d],p&&(g=p);c=p||g}else c=s==="prev"?l[0]:l[l.length-1];if(!c||!(c instanceof Element))return;const f=c.children[o];f&&this.isFocusable(f)&&f.focus()}}verticalCellNavigation(e){var t,n,r,o,s;if(!(e.target instanceof Element))return;const l=e.target.closest(this.selectors.Row),c=e.target.closest(this.selectors.Cell);if(l&&c){const f=this.getColumnIndex(c),d=this.getRowIndex(l);if(this.debugLog("gridNavigation",`Initial row position: ${d}`),this.debugLog("gridNavigation",`Initial cell position: ${f}`),f===void 0||d===void 0){this.debugLog("verticalCellNavigation","row or cell position not found");return}const p=e.key==="ArrowUp"?"prev":"next";if(d===0&&p==="prev"){const b=(t=l.parentElement)==null?void 0:t.closest(this.selectors.RowGroup),S=[...((n=b==null?void 0:b.parentElement)==null?void 0:n.children)||[]],R=S.findIndex(C=>C===b);if(R!==0){const x=[...S[R-1].querySelectorAll(this.selectors.Row)],_=x[x.length-1].children[f];_&&this.isFocusable(_)&&_.focus();return}}const g=[...((r=l.parentElement)==null?void 0:r.querySelectorAll(this.selectors.Row))||[]];if(d===g.length-1&&p==="next"){const b=(o=l.parentElement)==null?void 0:o.closest(this.selectors.RowGroup),S=[...((s=b==null?void 0:b.parentElement)==null?void 0:s.children)||[]],R=S.findIndex(C=>C===b);if(R!==S.length-1){const _=[...S[R+1].querySelectorAll(this.selectors.Row)][0].children[f];_&&this.isFocusable(_)&&_.focus();return}return}const m=this.findUntil(p,l,this.selectors.Row);if(!m)return;const y=m.children[f];y&&this.isFocusable(y)&&y.focus()}}focusOnFirstCell(e){for(let t=0;t<e.length;t++){const n=e[t];if(this.isFocusable(n)){n.focus();return}}}getColumnIndex(e){var t;let n=0;const r=(t=e==null?void 0:e.parentNode)==null?void 0:t.children;if(r){for(;e!==r[n]&&r[n]!==void 0;)n++;if(r[n]===void 0){this.debugLog("getColumnIndex","position finding was not successful");return}return n}}getRowIndex(e){var t;let n=0;const r=(t=e==null?void 0:e.parentNode)==null?void 0:t.children;if(r){for(;e!==r[n]&&r[n]!==void 0;)n++;if(r[n]===void 0){this.debugLog("getRowIndex","position finding was not successful");return}return n}}findUntil(e,t,n,r){let o=t;const s=e==="next"?"nextSibling":"previousSibling";for(;o[s];){const l=o[s];if(!l||r&&l instanceof Element&&l.matches(r))return null;if(l instanceof Element&&l.matches(n))return l;o=l}return null}};function nne(e){const t=new mQ(e);return{listeners:{onKeyDown:n=>t.tableKeyDown(n),onKeyUp:()=>t.tableKeyUp()},tableNav:t}}function Qs(e,t){return typeof e=="function"?e(t):e}function lo(e,t){return n=>{t.setState(r=>({...r,[e]:Qs(n,r[e])}))}}function Wm(e){return e instanceof Function}function vQ(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function yQ(e,t){const n=[],r=o=>{o.forEach(s=>{n.push(s);const l=t(s);l!=null&&l.length&&r(l)})};return r(e),n}function it(e,t,n){let r=[],o;return s=>{let l;n.key&&n.debug&&(l=Date.now());const c=e(s);if(!(c.length!==r.length||c.some((p,g)=>r[g]!==p)))return o;r=c;let d;if(n.key&&n.debug&&(d=Date.now()),o=t(...c),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const p=Math.round((Date.now()-l)*100)/100,g=Math.round((Date.now()-d)*100)/100,m=g/16,y=(b,S)=>{for(b=String(b);b.length<S;)b=" "+b;return b};console.info(`%c⏱ ${y(g,5)} /${y(p,5)} ms`,`
|
|
40
|
-
font-size: .6rem;
|
|
41
|
-
font-weight: bold;
|
|
42
|
-
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function st(e,t,n,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[t]},key:!1,onChange:r}}function bQ(e,t,n,r){const o=()=>{var l;return(l=s.getValue())!=null?l:e.options.renderFallbackValue},s={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:it(()=>[e,n,t,s],(l,c,f,d)=>({table:l,column:c,row:f,cell:d,getValue:d.getValue,renderValue:d.renderValue}),st(e.options,"debugCells"))};return e._features.forEach(l=>{l.createCell==null||l.createCell(s,n,t,e)},{}),s}function SQ(e,t,n,r){var o,s;const c={...e._getDefaultColumnDef(),...t},f=c.accessorKey;let d=(o=(s=c.id)!=null?s:f?typeof String.prototype.replaceAll=="function"?f.replaceAll(".","_"):f.replace(/\./g,"_"):void 0)!=null?o:typeof c.header=="string"?c.header:void 0,p;if(c.accessorFn?p=c.accessorFn:f&&(f.includes(".")?p=m=>{let y=m;for(const S of f.split(".")){var b;y=(b=y)==null?void 0:b[S]}return y}:p=m=>m[c.accessorKey]),!d)throw new Error;let g={id:`${String(d)}`,accessorFn:p,parent:r,depth:n,columnDef:c,columns:[],getFlatColumns:it(()=>[!0],()=>{var m;return[g,...(m=g.columns)==null?void 0:m.flatMap(y=>y.getFlatColumns())]},st(e.options,"debugColumns")),getLeafColumns:it(()=>[e._getOrderColumnsFn()],m=>{var y;if((y=g.columns)!=null&&y.length){let b=g.columns.flatMap(S=>S.getLeafColumns());return m(b)}return[g]},st(e.options,"debugColumns"))};for(const m of e._features)m.createColumn==null||m.createColumn(g,e);return g}const mr="debugHeaders";function KA(e,t,n){var r;let s={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],c=f=>{f.subHeaders&&f.subHeaders.length&&f.subHeaders.map(c),l.push(f)};return c(s),l},getContext:()=>({table:e,header:s,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(s,e)}),s}const EQ={createTable:e=>{e.getHeaderGroups=it(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var s,l;const c=(s=r==null?void 0:r.map(g=>n.find(m=>m.id===g)).filter(Boolean))!=null?s:[],f=(l=o==null?void 0:o.map(g=>n.find(m=>m.id===g)).filter(Boolean))!=null?l:[],d=n.filter(g=>!(r!=null&&r.includes(g.id))&&!(o!=null&&o.includes(g.id)));return wp(t,[...c,...d,...f],e)},st(e.options,mr)),e.getCenterHeaderGroups=it(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(s=>!(r!=null&&r.includes(s.id))&&!(o!=null&&o.includes(s.id))),wp(t,n,e,"center")),st(e.options,mr)),e.getLeftHeaderGroups=it(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const s=(o=r==null?void 0:r.map(l=>n.find(c=>c.id===l)).filter(Boolean))!=null?o:[];return wp(t,s,e,"left")},st(e.options,mr)),e.getRightHeaderGroups=it(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const s=(o=r==null?void 0:r.map(l=>n.find(c=>c.id===l)).filter(Boolean))!=null?o:[];return wp(t,s,e,"right")},st(e.options,mr)),e.getFooterGroups=it(()=>[e.getHeaderGroups()],t=>[...t].reverse(),st(e.options,mr)),e.getLeftFooterGroups=it(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),st(e.options,mr)),e.getCenterFooterGroups=it(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),st(e.options,mr)),e.getRightFooterGroups=it(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),st(e.options,mr)),e.getFlatHeaders=it(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),st(e.options,mr)),e.getLeftFlatHeaders=it(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),st(e.options,mr)),e.getCenterFlatHeaders=it(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),st(e.options,mr)),e.getRightFlatHeaders=it(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),st(e.options,mr)),e.getCenterLeafHeaders=it(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),st(e.options,mr)),e.getLeftLeafHeaders=it(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),st(e.options,mr)),e.getRightLeafHeaders=it(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),st(e.options,mr)),e.getLeafHeaders=it(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,s,l,c,f,d;return[...(o=(s=t[0])==null?void 0:s.headers)!=null?o:[],...(l=(c=n[0])==null?void 0:c.headers)!=null?l:[],...(f=(d=r[0])==null?void 0:d.headers)!=null?f:[]].map(p=>p.getLeafHeaders()).flat()},st(e.options,mr))}};function wp(e,t,n,r){var o,s;let l=0;const c=function(m,y){y===void 0&&(y=1),l=Math.max(l,y),m.filter(b=>b.getIsVisible()).forEach(b=>{var S;(S=b.columns)!=null&&S.length&&c(b.columns,y+1)},0)};c(e);let f=[];const d=(m,y)=>{const b={depth:y,id:[r,`${y}`].filter(Boolean).join("_"),headers:[]},S=[];m.forEach(R=>{const C=[...S].reverse()[0],x=R.column.depth===b.depth;let _,M=!1;if(x&&R.column.parent?_=R.column.parent:(_=R.column,M=!0),C&&(C==null?void 0:C.column)===_)C.subHeaders.push(R);else{const T=KA(n,_,{id:[r,y,_.id,R==null?void 0:R.id].filter(Boolean).join("_"),isPlaceholder:M,placeholderId:M?`${S.filter(A=>A.column===_).length}`:void 0,depth:y,index:S.length});T.subHeaders.push(R),S.push(T)}b.headers.push(R),R.headerGroup=b}),f.push(b),y>0&&d(S,y-1)},p=t.map((m,y)=>KA(n,m,{depth:l,index:y}));d(p,l-1),f.reverse();const g=m=>m.filter(b=>b.column.getIsVisible()).map(b=>{let S=0,R=0,C=[0];b.subHeaders&&b.subHeaders.length?(C=[],g(b.subHeaders).forEach(_=>{let{colSpan:M,rowSpan:T}=_;S+=M,C.push(T)})):S=1;const x=Math.min(...C);return R=R+x,b.colSpan=S,b.rowSpan=R,{colSpan:S,rowSpan:R}});return g((o=(s=f[0])==null?void 0:s.headers)!=null?o:[]),f}const wQ=(e,t,n,r,o,s,l)=>{let c={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:f=>{if(c._valuesCache.hasOwnProperty(f))return c._valuesCache[f];const d=e.getColumn(f);if(d!=null&&d.accessorFn)return c._valuesCache[f]=d.accessorFn(c.original,r),c._valuesCache[f]},getUniqueValues:f=>{if(c._uniqueValuesCache.hasOwnProperty(f))return c._uniqueValuesCache[f];const d=e.getColumn(f);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(c._uniqueValuesCache[f]=d.columnDef.getUniqueValues(c.original,r),c._uniqueValuesCache[f]):(c._uniqueValuesCache[f]=[c.getValue(f)],c._uniqueValuesCache[f])},renderValue:f=>{var d;return(d=c.getValue(f))!=null?d:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>yQ(c.subRows,f=>f.subRows),getParentRow:()=>c.parentId?e.getRow(c.parentId,!0):void 0,getParentRows:()=>{let f=[],d=c;for(;;){const p=d.getParentRow();if(!p)break;f.push(p),d=p}return f.reverse()},getAllCells:it(()=>[e.getAllLeafColumns()],f=>f.map(d=>bQ(e,c,d,d.id)),st(e.options,"debugRows")),_getAllCellsByColumnId:it(()=>[c.getAllCells()],f=>f.reduce((d,p)=>(d[p.column.id]=p,d),{}),st(e.options,"debugRows"))};for(let f=0;f<e._features.length;f++){const d=e._features[f];d==null||d.createRow==null||d.createRow(c,e)}return c},RQ={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},T3=(e,t,n)=>{var r,o;const s=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(s))};T3.autoRemove=e=>$o(e);const A3=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};A3.autoRemove=e=>$o(e);const M3=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};M3.autoRemove=e=>$o(e);const O3=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};O3.autoRemove=e=>$o(e);const I3=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});I3.autoRemove=e=>$o(e)||!(e!=null&&e.length);const D3=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});D3.autoRemove=e=>$o(e)||!(e!=null&&e.length);const k3=(e,t,n)=>e.getValue(t)===n;k3.autoRemove=e=>$o(e);const L3=(e,t,n)=>e.getValue(t)==n;L3.autoRemove=e=>$o(e);const XE=(e,t,n)=>{let[r,o]=n;const s=e.getValue(t);return s>=r&&s<=o};XE.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,s=t===null||Number.isNaN(r)?-1/0:r,l=n===null||Number.isNaN(o)?1/0:o;if(s>l){const c=s;s=l,l=c}return[s,l]};XE.autoRemove=e=>$o(e)||$o(e[0])&&$o(e[1]);const Xi={includesString:T3,includesStringSensitive:A3,equalsString:M3,arrIncludes:O3,arrIncludesAll:I3,arrIncludesSome:D3,equals:k3,weakEquals:L3,inNumberRange:XE};function $o(e){return e==null||e===""}const xQ={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:lo("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Xi.includesString:typeof r=="number"?Xi.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Xi.equals:Array.isArray(r)?Xi.arrIncludes:Xi.weakEquals},e.getFilterFn=()=>{var n,r;return Wm(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Xi[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),s=r==null?void 0:r.find(p=>p.id===e.id),l=Qs(n,s?s.value:void 0);if(WA(o,l,e)){var c;return(c=r==null?void 0:r.filter(p=>p.id!==e.id))!=null?c:[]}const f={id:e.id,value:l};if(s){var d;return(d=r==null?void 0:r.map(p=>p.id===e.id?f:p))!=null?d:[]}return r!=null&&r.length?[...r,f]:[f]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var s;return(s=Qs(t,o))==null?void 0:s.filter(l=>{const c=n.find(f=>f.id===l.id);if(c){const f=c.getFilterFn();if(WA(f,l.value,c))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function WA(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const _Q=(e,t,n)=>n.reduce((r,o)=>{const s=o.getValue(e);return r+(typeof s=="number"?s:0)},0),CQ=(e,t,n)=>{let r;return n.forEach(o=>{const s=o.getValue(e);s!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}),r},TQ=(e,t,n)=>{let r;return n.forEach(o=>{const s=o.getValue(e);s!=null&&(r<s||r===void 0&&s>=s)&&(r=s)}),r},AQ=(e,t,n)=>{let r,o;return n.forEach(s=>{const l=s.getValue(e);l!=null&&(r===void 0?l>=l&&(r=o=l):(r>l&&(r=l),o<l&&(o=l)))}),[r,o]},MQ=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let s=o.getValue(e);s!=null&&(s=+s)>=s&&(++n,r+=s)}),n)return r/n},OQ=(e,t)=>{if(!t.length)return;const n=t.map(s=>s.getValue(e));if(!vQ(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((s,l)=>s-l);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},IQ=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),DQ=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,kQ=(e,t)=>t.length,_1={sum:_Q,min:CQ,max:TQ,extent:AQ,mean:MQ,median:OQ,unique:IQ,uniqueCount:DQ,count:kQ},LQ={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:lo("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return _1.sum;if(Object.prototype.toString.call(r)==="[object Date]")return _1.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Wm(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:_1[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function PQ(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(s=>!t.includes(s.id));return n==="remove"?r:[...t.map(s=>e.find(l=>l.id===s)).filter(Boolean),...r]}const NQ={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:lo("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=it(n=>[Nf(t,n)],n=>n.findIndex(r=>r.id===e.id),st(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=Nf(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Nf(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=it(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let s=[];if(!(t!=null&&t.length))s=o;else{const l=[...t],c=[...o];for(;c.length&&l.length;){const f=l.shift(),d=c.findIndex(p=>p.id===f);d>-1&&s.push(c.splice(d,1)[0])}s=[...s,...c]}return PQ(s,n,r)},st(e.options,"debugTable"))}},C1=()=>({left:[],right:[]}),FQ={getInitialState:e=>({columnPinning:C1(),...e}),getDefaultOptions:e=>({onColumnPinningChange:lo("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var s,l;if(n==="right"){var c,f;return{left:((c=o==null?void 0:o.left)!=null?c:[]).filter(g=>!(r!=null&&r.includes(g))),right:[...((f=o==null?void 0:o.right)!=null?f:[]).filter(g=>!(r!=null&&r.includes(g))),...r]}}if(n==="left"){var d,p;return{left:[...((d=o==null?void 0:o.left)!=null?d:[]).filter(g=>!(r!=null&&r.includes(g))),...r],right:((p=o==null?void 0:o.right)!=null?p:[]).filter(g=>!(r!=null&&r.includes(g)))}}return{left:((s=o==null?void 0:o.left)!=null?s:[]).filter(g=>!(r!=null&&r.includes(g))),right:((l=o==null?void 0:o.right)!=null?l:[]).filter(g=>!(r!=null&&r.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,s,l;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((s=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?s:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(c=>c.id),{left:r,right:o}=t.getState().columnPinning,s=n.some(c=>r==null?void 0:r.includes(c)),l=n.some(c=>o==null?void 0:o.includes(c));return s?"left":l?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=it(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const s=[...r??[],...o??[]];return n.filter(l=>!s.includes(l.column.id))},st(t.options,"debugRows")),e.getLeftVisibleCells=it(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(s=>n.find(l=>l.column.id===s)).filter(Boolean).map(s=>({...s,position:"left"})),st(t.options,"debugRows")),e.getRightVisibleCells=it(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(s=>n.find(l=>l.column.id===s)).filter(Boolean).map(s=>({...s,position:"right"})),st(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?C1():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:C1())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,s;return!!((o=r.left)!=null&&o.length||(s=r.right)!=null&&s.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=it(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),st(e.options,"debugColumns")),e.getRightLeafColumns=it(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),st(e.options,"debugColumns")),e.getCenterLeafColumns=it(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(s=>!o.includes(s.id))},st(e.options,"debugColumns"))}};function BQ(e){return e||(typeof document<"u"?document:null)}const Rp={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},T1=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),HQ={getDefaultColumnDef:()=>Rp,getInitialState:e=>({columnSizing:{},columnSizingInfo:T1(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:lo("columnSizing",e),onColumnSizingInfoChange:lo("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const s=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Rp.minSize,(r=s??e.columnDef.size)!=null?r:Rp.size),(o=e.columnDef.maxSize)!=null?o:Rp.maxSize)},e.getStart=it(n=>[n,Nf(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,s)=>o+s.getSize(),0),st(t.options,"debugColumns")),e.getAfter=it(n=>[n,Nf(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,s)=>o+s.getSize(),0),st(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var s;n+=(s=o.column.getSize())!=null?s:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return s=>{if(!r||!o||(s.persist==null||s.persist(),A1(s)&&s.touches&&s.touches.length>1))return;const l=e.getSize(),c=e?e.getLeafHeaders().map(C=>[C.column.id,C.column.getSize()]):[[r.id,r.getSize()]],f=A1(s)?Math.round(s.touches[0].clientX):s.clientX,d={},p=(C,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(_=>{var M,T;const A=t.options.columnResizeDirection==="rtl"?-1:1,O=(x-((M=_==null?void 0:_.startOffset)!=null?M:0))*A,k=Math.max(O/((T=_==null?void 0:_.startSize)!=null?T:0),-.999999);return _.columnSizingStart.forEach(D=>{let[U,L]=D;d[U]=Math.round(Math.max(L+L*k,0)*100)/100}),{..._,deltaOffset:O,deltaPercentage:k}}),(t.options.columnResizeMode==="onChange"||C==="end")&&t.setColumnSizing(_=>({..._,...d})))},g=C=>p("move",C),m=C=>{p("end",C),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},y=BQ(n),b={moveHandler:C=>g(C.clientX),upHandler:C=>{y==null||y.removeEventListener("mousemove",b.moveHandler),y==null||y.removeEventListener("mouseup",b.upHandler),m(C.clientX)}},S={moveHandler:C=>(C.cancelable&&(C.preventDefault(),C.stopPropagation()),g(C.touches[0].clientX),!1),upHandler:C=>{var x;y==null||y.removeEventListener("touchmove",S.moveHandler),y==null||y.removeEventListener("touchend",S.upHandler),C.cancelable&&(C.preventDefault(),C.stopPropagation()),m((x=C.touches[0])==null?void 0:x.clientX)}},R=zQ()?{passive:!1}:!1;A1(s)?(y==null||y.addEventListener("touchmove",S.moveHandler,R),y==null||y.addEventListener("touchend",S.upHandler,R)):(y==null||y.addEventListener("mousemove",b.moveHandler,R),y==null||y.addEventListener("mouseup",b.upHandler,R)),t.setColumnSizingInfo(C=>({...C,startOffset:f,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:c,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?T1():(n=e.initialState.columnSizingInfo)!=null?n:T1())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let xp=null;function zQ(){if(typeof xp=="boolean")return xp;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return xp=e,xp}function A1(e){return e.type==="touchstart"}const UQ={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:lo("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(s=>s.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=it(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),st(t.options,"debugRows")),e.getVisibleCells=it(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],st(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>it(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(s=>s.getIsVisible==null?void 0:s.getIsVisible()),st(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,s)=>({...o,[s.id]:n||!(s.getCanHide!=null&&s.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Nf(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const VQ={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},jQ={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:lo("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,s;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((s=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?s:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Xi.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Wm(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Xi[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},qQ={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:lo("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,s;e.setExpanded(r?{}:(o=(s=e.initialState)==null?void 0:s.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(s=>{const l=s.split(".");r=Math.max(r,l.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const s=r===!0?!0:!!(r!=null&&r[e.id]);let l={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(c=>{l[c]=!0}):l=r,n=(o=n)!=null?o:!s,!s&&n)return{...l,[e.id]:!0};if(s&&!n){const{[e.id]:c,...f}=l;return f}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},uS=0,cS=10,M1=()=>({pageIndex:uS,pageSize:cS}),$Q={getInitialState:e=>({...e,pagination:{...M1(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:lo("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=s=>Qs(r,s);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?M1():(o=e.initialState.pagination)!=null?o:M1())},e.setPageIndex=r=>{e.setPagination(o=>{let s=Qs(r,o.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return s=Math.max(0,Math.min(s,l)),{...o,pageIndex:s}})},e.resetPageIndex=r=>{var o,s;e.setPageIndex(r?uS:(o=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageIndex)!=null?o:uS)},e.resetPageSize=r=>{var o,s;e.setPageSize(r?cS:(o=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageSize)!=null?o:cS)},e.setPageSize=r=>{e.setPagination(o=>{const s=Math.max(1,Qs(r,o.pageSize)),l=o.pageSize*o.pageIndex,c=Math.floor(l/s);return{...o,pageIndex:c,pageSize:s}})},e.setPageCount=r=>e.setPagination(o=>{var s;let l=Qs(r,(s=e.options.pageCount)!=null?s:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...o,pageCount:l}}),e.getPageOptions=it(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((s,l)=>l)),o},st(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},O1=()=>({top:[],bottom:[]}),GQ={getInitialState:e=>({rowPinning:O1(),...e}),getDefaultOptions:e=>({onRowPinningChange:lo("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const s=r?e.getLeafRows().map(f=>{let{id:d}=f;return d}):[],l=o?e.getParentRows().map(f=>{let{id:d}=f;return d}):[],c=new Set([...l,e.id,...s]);t.setRowPinning(f=>{var d,p;if(n==="bottom"){var g,m;return{top:((g=f==null?void 0:f.top)!=null?g:[]).filter(S=>!(c!=null&&c.has(S))),bottom:[...((m=f==null?void 0:f.bottom)!=null?m:[]).filter(S=>!(c!=null&&c.has(S))),...Array.from(c)]}}if(n==="top"){var y,b;return{top:[...((y=f==null?void 0:f.top)!=null?y:[]).filter(S=>!(c!=null&&c.has(S))),...Array.from(c)],bottom:((b=f==null?void 0:f.bottom)!=null?b:[]).filter(S=>!(c!=null&&c.has(S)))}}return{top:((d=f==null?void 0:f.top)!=null?d:[]).filter(S=>!(c!=null&&c.has(S))),bottom:((p=f==null?void 0:f.bottom)!=null?p:[]).filter(S=>!(c!=null&&c.has(S)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,s=n.some(c=>r==null?void 0:r.includes(c)),l=n.some(c=>o==null?void 0:o.includes(c));return s?"top":l?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const s=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(l=>{let{id:c}=l;return c});return(r=s==null?void 0:s.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?O1():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:O1())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,s;return!!((o=r.top)!=null&&o.length||(s=r.bottom)!=null&&s.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(l=>{const c=e.getRow(l,!0);return c.getIsAllParentsExpanded()?c:null}):(n??[]).map(l=>t.find(c=>c.id===l))).filter(Boolean).map(l=>({...l,position:r}))},e.getTopRows=it(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),st(e.options,"debugRows")),e.getBottomRows=it(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),st(e.options,"debugRows")),e.getCenterRows=it(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(s=>!o.has(s.id))},st(e.options,"debugRows"))}},YQ={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:lo("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(s=>{s.getCanSelect()&&(r[s.id]=!0)}):o.forEach(s=>{delete r[s.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(s=>{fS(o,s.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=it(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?I1(e,n):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getFilteredSelectedRowModel=it(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?I1(e,n):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getGroupedSelectedRowModel=it(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?I1(e,n):{rows:[],flatRows:[],rowsById:{}},st(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(s=>{var l;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return s;const c={...s};return fS(c,e.id,n,(l=r==null?void 0:r.selectChildren)!=null?l:!0,t),c})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return QE(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return dS(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return dS(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},fS=(e,t,n,r,o)=>{var s;const l=o.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(c=>delete e[c]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(s=l.subRows)!=null&&s.length&&l.getCanSelectSubRows()&&l.subRows.forEach(c=>fS(e,c.id,n,r,o))};function I1(e,t){const n=e.getState().rowSelection,r=[],o={},s=function(l,c){return l.map(f=>{var d;const p=QE(f,n);if(p&&(r.push(f),o[f.id]=f),(d=f.subRows)!=null&&d.length&&(f={...f,subRows:s(f.subRows)}),p)return f}).filter(Boolean)};return{rows:s(t.rows),flatRows:r,rowsById:o}}function QE(e,t){var n;return(n=t[e.id])!=null?n:!1}function dS(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,s=!1;return e.subRows.forEach(l=>{if(!(s&&!o)&&(l.getCanSelect()&&(QE(l,t)?s=!0:o=!1),l.subRows&&l.subRows.length)){const c=dS(l,t);c==="all"?s=!0:(c==="some"&&(s=!0),o=!1)}}),o?"all":s?"some":!1}const hS=/([0-9]+)/gm,KQ=(e,t,n)=>P3(da(e.getValue(n)).toLowerCase(),da(t.getValue(n)).toLowerCase()),WQ=(e,t,n)=>P3(da(e.getValue(n)),da(t.getValue(n))),XQ=(e,t,n)=>ZE(da(e.getValue(n)).toLowerCase(),da(t.getValue(n)).toLowerCase()),QQ=(e,t,n)=>ZE(da(e.getValue(n)),da(t.getValue(n))),ZQ=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},JQ=(e,t,n)=>ZE(e.getValue(n),t.getValue(n));function ZE(e,t){return e===t?0:e>t?1:-1}function da(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function P3(e,t){const n=e.split(hS).filter(Boolean),r=t.split(hS).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),s=r.shift(),l=parseInt(o,10),c=parseInt(s,10),f=[l,c].sort();if(isNaN(f[0])){if(o>s)return 1;if(s>o)return-1;continue}if(isNaN(f[1]))return isNaN(l)?-1:1;if(l>c)return 1;if(c>l)return-1}return n.length-r.length}const wf={alphanumeric:KQ,alphanumericCaseSensitive:WQ,text:XQ,textCaseSensitive:QQ,datetime:ZQ,basic:JQ},eZ={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:lo("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const s=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(s)==="[object Date]")return wf.datetime;if(typeof s=="string"&&(r=!0,s.split(hS).length>1))return wf.alphanumeric}return r?wf.text:wf.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Wm(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:wf[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),s=typeof n<"u"&&n!==null;t.setSorting(l=>{const c=l==null?void 0:l.find(y=>y.id===e.id),f=l==null?void 0:l.findIndex(y=>y.id===e.id);let d=[],p,g=s?n:o==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&r?c?p="toggle":p="add":l!=null&&l.length&&f!==l.length-1?p="replace":c?p="toggle":p="replace",p==="toggle"&&(s||o||(p="remove")),p==="add"){var m;d=[...l,{id:e.id,desc:g}],d.splice(0,d.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else p==="toggle"?d=l.map(y=>y.id===e.id?{...y,desc:g}:y):p==="remove"?d=l.filter(y=>y.id!==e.id):d=[{id:e.id,desc:g}];return d})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const s=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==s&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:l==="desc"?"asc":"desc":s},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},tZ=[EQ,UQ,NQ,FQ,RQ,xQ,VQ,jQ,eZ,LQ,qQ,$Q,GQ,YQ,HQ];function nZ(e){var t,n;const r=[...tZ,...(t=e._features)!=null?t:[]];let o={_features:r};const s=o._features.reduce((m,y)=>Object.assign(m,y.getDefaultOptions==null?void 0:y.getDefaultOptions(o)),{}),l=m=>o.options.mergeOptions?o.options.mergeOptions(s,m):{...s,...m};let f={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(m=>{var y;f=(y=m.getInitialState==null?void 0:m.getInitialState(f))!=null?y:f});const d=[];let p=!1;const g={_features:r,options:{...s,...e},initialState:f,_queue:m=>{d.push(m),p||(p=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();p=!1}).catch(y=>setTimeout(()=>{throw y})))},reset:()=>{o.setState(o.initialState)},setOptions:m=>{const y=Qs(m,o.options);o.options=l(y)},getState:()=>o.options.state,setState:m=>{o.options.onStateChange==null||o.options.onStateChange(m)},_getRowId:(m,y,b)=>{var S;return(S=o.options.getRowId==null?void 0:o.options.getRowId(m,y,b))!=null?S:`${b?[b.id,y].join("."):y}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(m,y)=>{let b=(y?o.getPrePaginationRowModel():o.getRowModel()).rowsById[m];if(!b&&(b=o.getCoreRowModel().rowsById[m],!b))throw new Error;return b},_getDefaultColumnDef:it(()=>[o.options.defaultColumn],m=>{var y;return m=(y=m)!=null?y:{},{header:b=>{const S=b.header.column.columnDef;return S.accessorKey?S.accessorKey:S.accessorFn?S.id:null},cell:b=>{var S,R;return(S=(R=b.renderValue())==null||R.toString==null?void 0:R.toString())!=null?S:null},...o._features.reduce((b,S)=>Object.assign(b,S.getDefaultColumnDef==null?void 0:S.getDefaultColumnDef()),{}),...m}},st(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:it(()=>[o._getColumnDefs()],m=>{const y=function(b,S,R){return R===void 0&&(R=0),b.map(C=>{const x=SQ(o,C,R,S),_=C;return x.columns=_.columns?y(_.columns,x,R+1):[],x})};return y(m)},st(e,"debugColumns")),getAllFlatColumns:it(()=>[o.getAllColumns()],m=>m.flatMap(y=>y.getFlatColumns()),st(e,"debugColumns")),_getAllFlatColumnsById:it(()=>[o.getAllFlatColumns()],m=>m.reduce((y,b)=>(y[b.id]=b,y),{}),st(e,"debugColumns")),getAllLeafColumns:it(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(m,y)=>{let b=m.flatMap(S=>S.getLeafColumns());return y(b)},st(e,"debugColumns")),getColumn:m=>o._getAllFlatColumnsById()[m]};Object.assign(o,g);for(let m=0;m<o._features.length;m++){const y=o._features[m];y==null||y.createTable==null||y.createTable(o)}return o}function rne(){return e=>it(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,s,l){s===void 0&&(s=0);const c=[];for(let d=0;d<o.length;d++){const p=wQ(e,e._getRowId(o[d],d,l),o[d],d,s,void 0,l==null?void 0:l.id);if(n.flatRows.push(p),n.rowsById[p.id]=p,c.push(p),e.options.getSubRows){var f;p.originalSubRows=e.options.getSubRows(o[d],d),(f=p.originalSubRows)!=null&&f.length&&(p.subRows=r(p.originalSubRows,s+1,p))}}return c};return n.rows=r(t),n},st(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function one(e,t){return e?rZ(e)?E.createElement(e,t):e:null}function rZ(e){return oZ(e)||typeof e=="function"||iZ(e)}function oZ(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function iZ(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function ine(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=E.useState(()=>({current:nZ(t)})),[r,o]=E.useState(()=>n.current.initialState);return n.current.setOptions(s=>({...s,...e,state:{...r,...e.state},onStateChange:l=>{o(l),e.onStateChange==null||e.onStateChange(l)}})),n.current}function N3(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function sZ(e,t){return e.reduce((n,r,o)=>{const s=t.get(r);return s&&(n[o]=s),n},Array(e.length))}function _p(e){return e!==null&&e>=0}function aZ(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function lZ(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Cp={scaleX:1,scaleY:1},sne=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:o,overIndex:s,index:l}=e;const c=(t=n[o])!=null?t:r;if(!c)return null;const f=uZ(n,l,o);if(l===o){const d=n[s];return d?{x:o<s?d.left+d.width-(c.left+c.width):d.left-c.left,y:0,...Cp}:null}return l>o&&l<=s?{x:-c.width-f,y:0,...Cp}:l<o&&l>=s?{x:c.width+f,y:0,...Cp}:{x:0,y:0,...Cp}};function uZ(e,t,n){const r=e[t],o=e[t-1],s=e[t+1];return!r||!o&&!s?0:n<t?o?r.left-(o.left+o.width):s.left-(r.left+r.width):s?s.left-(r.left+r.width):r.left-(o.left+o.width)}const F3=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const s=N3(t,r,n),l=t[o],c=s[o];return!c||!l?null:{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}},Tp={scaleX:1,scaleY:1},ane=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:s,overIndex:l}=e;const c=(t=s[n])!=null?t:r;if(!c)return null;if(o===n){const d=s[l];return d?{x:0,y:n<l?d.top+d.height-(c.top+c.height):d.top-c.top,...Tp}:null}const f=cZ(s,o,n);return o>n&&o<=l?{x:0,y:-c.height-f,...Tp}:o<n&&o>=l?{x:0,y:c.height+f,...Tp}:{x:0,y:0,...Tp}};function cZ(e,t,n){const r=e[t],o=e[t-1],s=e[t+1];return r?n<t?o?r.top-(o.top+o.height):s?s.top-(r.top+r.height):0:s?s.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const B3="Sortable",H3=ce.createContext({activeIndex:-1,containerId:B3,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:F3,disabled:{draggable:!1,droppable:!1}});function lne(e){let{children:t,id:n,items:r,strategy:o=F3,disabled:s=!1}=e;const{active:l,dragOverlay:c,droppableRects:f,over:d,measureDroppableContainers:p}=UW(),g=kd(B3,n),m=c.rect!==null,y=E.useMemo(()=>r.map(A=>typeof A=="object"&&"id"in A?A.id:A),[r]),b=l!=null,S=l?y.indexOf(l.id):-1,R=d?y.indexOf(d.id):-1,C=E.useRef(y),x=!aZ(y,C.current),_=R!==-1&&S===-1||x,M=lZ(s);Ri(()=>{x&&b&&p(y)},[x,y,b,p]),E.useEffect(()=>{C.current=y},[y]);const T=E.useMemo(()=>({activeIndex:S,containerId:g,disabled:M,disableTransforms:_,items:y,overIndex:R,useDragOverlay:m,sortedRects:sZ(y,f),strategy:o}),[S,g,M.draggable,M.droppable,_,y,R,f,m,o]);return ce.createElement(H3.Provider,{value:T},t)}const fZ=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return N3(n,r,o).indexOf(t)},dZ=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:s,newIndex:l,previousItems:c,previousContainerId:f,transition:d}=e;return!d||!r||c!==s&&o===l?!1:n?!0:l!==o&&t===f},hZ={duration:200,easing:"ease"},z3="transform",pZ=Fg.Transition.toString({property:z3,duration:0,easing:"linear"}),gZ={roleDescription:"sortable"};function mZ(e){let{disabled:t,index:n,node:r,rect:o}=e;const[s,l]=E.useState(null),c=E.useRef(n);return Ri(()=>{if(!t&&n!==c.current&&r.current){const f=o.current;if(f){const d=bc(r.current,{ignoreTransform:!0}),p={x:f.left-d.left,y:f.top-d.top,scaleX:f.width/d.width,scaleY:f.height/d.height};(p.x||p.y)&&l(p)}}n!==c.current&&(c.current=n)},[t,n,r,o]),E.useEffect(()=>{s&&l(null)},[s]),s}function une(e){let{animateLayoutChanges:t=dZ,attributes:n,disabled:r,data:o,getNewIndex:s=fZ,id:l,strategy:c,resizeObserverConfig:f,transition:d=hZ}=e;const{items:p,containerId:g,activeIndex:m,disabled:y,disableTransforms:b,sortedRects:S,overIndex:R,useDragOverlay:C,strategy:x}=E.useContext(H3),_=vZ(r,y),M=p.indexOf(l),T=E.useMemo(()=>({sortable:{containerId:g,index:M,items:p},...o}),[g,o,M,p]),A=E.useMemo(()=>p.slice(p.indexOf(l)),[p,l]),{rect:O,node:k,isOver:D,setNodeRef:U}=qW({id:l,data:T,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...f}}),{active:L,activatorEvent:j,activeNodeRect:B,attributes:Y,setNodeRef:H,listeners:F,isDragging:V,over:$,setActivatorNodeRef:W,transform:P}=zW({id:l,data:T,attributes:{...gZ,...n},disabled:_.draggable}),Q=xK(U,H),Z=!!L,G=Z&&!b&&_p(m)&&_p(R),ne=!C&&V,re=ne&&G?P:null,le=G?re??(c??x)({rects:S,activeNodeRect:B,activeIndex:m,overIndex:R,index:M}):null,K=_p(m)&&_p(R)?s({id:l,items:p,activeIndex:m,overIndex:R}):M,se=L==null?void 0:L.id,ie=E.useRef({activeId:se,items:p,newIndex:K,containerId:g}),ve=p!==ie.current.items,pe=t({active:L,containerId:g,isDragging:V,isSorting:Z,id:l,index:M,items:p,newIndex:ie.current.newIndex,previousItems:ie.current.items,previousContainerId:ie.current.containerId,transition:d,wasDragging:ie.current.activeId!=null}),Se=mZ({disabled:!pe,index:M,node:k,rect:O});return E.useEffect(()=>{Z&&ie.current.newIndex!==K&&(ie.current.newIndex=K),g!==ie.current.containerId&&(ie.current.containerId=g),p!==ie.current.items&&(ie.current.items=p)},[Z,K,g,p]),E.useEffect(()=>{if(se===ie.current.activeId)return;if(se!=null&&ie.current.activeId==null){ie.current.activeId=se;return}const Te=setTimeout(()=>{ie.current.activeId=se},50);return()=>clearTimeout(Te)},[se]),{active:L,activeIndex:m,attributes:Y,data:T,rect:O,index:M,newIndex:K,items:p,isOver:D,isSorting:Z,isDragging:V,listeners:F,node:k,overIndex:R,over:$,setNodeRef:Q,setActivatorNodeRef:W,setDroppableNodeRef:U,setDraggableNodeRef:H,transform:Se??le,transition:Ie()};function Ie(){if(Se||ve&&ie.current.newIndex===M)return pZ;if(!(ne&&!LE(j)||!d)&&(Z||pe))return Fg.Transition.toString({...d,property:z3})}}function vZ(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}qt.Down,qt.Right,qt.Up,qt.Left;const U3=E.createContext(void 0);function yZ(e=!0){const t=E.useContext(U3);if(t===void 0&&!e)throw new Error("Base UI: ToggleGroupContext is missing. ToggleGroup parts must be placed within <ToggleGroup>.");return t}const cne=E.forwardRef(function(t,n){const{className:r,defaultPressed:o=!1,disabled:s=!1,form:l,onPressedChange:c,pressed:f,render:d,type:p,value:g,nativeButton:m=!0,...y}=t,b=g??"",S=yZ(),R=(S==null?void 0:S.value)??[],C=S?void 0:o,x=(s||(S==null?void 0:S.disabled))??!1,[_,M]=vi({controlled:S&&b?(R==null?void 0:R.indexOf(b))>-1:f,default:C,name:"Toggle",state:"pressed"}),T=Be((j,B)=>{var Y;(Y=S==null?void 0:S.setGroupValue)==null||Y.call(S,b,j,B),c==null||c(j,B)}),{getButtonProps:A,buttonRef:O}=Ti({disabled:x,native:m}),k=E.useMemo(()=>({disabled:x,pressed:_}),[x,_]),D=[O,n],U=[{"aria-pressed":_,onClick(j){const B=!_,Y=St("none",j.nativeEvent);T(B,Y),!Y.isCanceled&&M(B)}},y,A],L=At("button",t,{enabled:!S,state:k,ref:D,props:U});return S?Ee.jsx(Nm,{tag:"button",render:d,className:r,state:k,refs:D,props:U}):L});let bZ=function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e.multiple="data-multiple",e}({});const XA={multiple(e){return e?{[bZ.multiple]:""}:null}},fne=E.forwardRef(function(t,n){const{defaultValue:r,disabled:o=!1,loop:s=!0,onValueChange:l,orientation:c="horizontal",multiple:f=!1,value:d,className:p,render:g,...m}=t,y=Md(!0),b=E.useMemo(()=>{if(d===void 0)return r??[]},[d,r]),S=((y==null?void 0:y.disabled)??!1)||o,[R,C]=vi({controlled:d,default:b,name:"ToggleGroup",state:"value"}),x=Be((O,k,D)=>{let U;if(f?(U=R.slice(),k?U.push(O):U.splice(R.indexOf(O),1)):U=k?[O]:[],Array.isArray(U)){if(l==null||l(U,D),D.isCanceled)return;C(U)}}),_=E.useMemo(()=>({disabled:S,multiple:f,orientation:c}),[S,c,f]),M=E.useMemo(()=>({disabled:S,orientation:c,setGroupValue:x,value:R}),[S,c,x,R]),T={role:"group"},A=At("div",t,{enabled:!!y,state:_,ref:n,props:[T,m],stateAttributesMapping:XA});return Ee.jsx(U3.Provider,{value:M,children:y?A:Ee.jsx(CE,{render:g,className:p,state:_,refs:[n],props:[T,m],stateAttributesMapping:XA,loop:s})})}),dne=E.forwardRef(function(t,n){const{cols:r=1,disabled:o=!1,loop:s=!0,orientation:l="horizontal",className:c,render:f,...d}=t,[p,g]=E.useState(()=>new Map),m=E.useMemo(()=>{const R=[];for(const C of p.values())C!=null&&C.index&&!C.focusableWhenDisabled&&R.push(C.index);return R},[p]),y=E.useMemo(()=>({disabled:o,orientation:l,setItemMap:g}),[o,l,g]),b=E.useMemo(()=>({disabled:o,orientation:l}),[o,l]),S={"aria-orientation":l,role:"toolbar"};return Ee.jsx(II.Provider,{value:y,children:Ee.jsx(CE,{render:f,className:c,state:b,refs:[n],props:[S,d],cols:r,disabledIndices:m,loop:s,onMapChange:g,orientation:l})})}),SZ=E.createContext(void 0);function EZ(e){return E.useContext(SZ)}const hne=E.forwardRef(function(t,n){const{className:r,disabled:o=!1,focusableWhenDisabled:s=!0,render:l,nativeButton:c=!0,...f}=t,d=E.useMemo(()=>({focusableWhenDisabled:s}),[s]),{disabled:p,orientation:g}=Md(),m=EZ(),y=p||((m==null?void 0:m.disabled)??!1)||o,{getButtonProps:b,buttonRef:S}=Ti({disabled:y,focusableWhenDisabled:s,native:c}),R=E.useMemo(()=>({disabled:y,orientation:g,focusable:s}),[y,s,g]);return Ee.jsx(Nm,{tag:"button",render:l,className:r,metadata:d,state:R,refs:[n,S],props:[f,{disabled:y},b]})});var D1={exports:{}},k1={};var QA;function wZ(){if(QA)return k1;QA=1;var e=cs().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return k1.c=function(t){return e.H.useMemoCache(t)},k1}var ZA;function RZ(){return ZA||(ZA=1,D1.exports=wZ()),D1.exports}var pne=RZ(),Pr={},JA;function xZ(){if(JA)return Pr;JA=1;var e=Pr&&Pr.__assign||function(){return e=Object.assign||function(T){for(var A,O=1,k=arguments.length;O<k;O++){A=arguments[O];for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(T[D]=A[D])}return T},e.apply(this,arguments)},t=Pr&&Pr.__createBinding||(Object.create?function(T,A,O,k){k===void 0&&(k=O);var D=Object.getOwnPropertyDescriptor(A,O);(!D||("get"in D?!A.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return A[O]}}),Object.defineProperty(T,k,D)}:function(T,A,O,k){k===void 0&&(k=O),T[k]=A[O]}),n=Pr&&Pr.__setModuleDefault||(Object.create?function(T,A){Object.defineProperty(T,"default",{enumerable:!0,value:A})}:function(T,A){T.default=A}),r=Pr&&Pr.__importStar||function(T){if(T&&T.__esModule)return T;var A={};if(T!=null)for(var O in T)O!=="default"&&Object.prototype.hasOwnProperty.call(T,O)&&t(A,T,O);return n(A,T),A},o=Pr&&Pr.__rest||function(T,A){var O={};for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&A.indexOf(k)<0&&(O[k]=T[k]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,k=Object.getOwnPropertySymbols(T);D<k.length;D++)A.indexOf(k[D])<0&&Object.prototype.propertyIsEnumerable.call(T,k[D])&&(O[k[D]]=T[k[D]]);return O};Object.defineProperty(Pr,"__esModule",{value:!0});var s=r(cs()),l=89,c=90,f=77,d=57,p=219,g=222,m=192,y=100,b=3e3,S=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),R=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),C="npm__react-simple-code-editor__textarea",x=`
|
|
43
|
-
/**
|
|
44
|
-
* Reset the text fill color so that placeholder is visible
|
|
45
|
-
*/
|
|
46
|
-
.`.concat(C,`:empty {
|
|
47
|
-
-webkit-text-fill-color: inherit !important;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Hack to apply on some CSS on IE10 and IE11
|
|
52
|
-
*/
|
|
53
|
-
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
54
|
-
/**
|
|
55
|
-
* IE doesn't support '-webkit-text-fill-color'
|
|
56
|
-
* So we use 'color: transparent' to make the text transparent on IE
|
|
57
|
-
* Unlike other browsers, it doesn't affect caret color in IE
|
|
58
|
-
*/
|
|
59
|
-
.`).concat(C,` {
|
|
60
|
-
color: transparent !important;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.`).concat(C,`::selection {
|
|
64
|
-
background-color: #accef7 !important;
|
|
65
|
-
color: transparent !important;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
`),_=s.forwardRef(function(A,O){var k=A.autoFocus,D=A.disabled,U=A.form,L=A.highlight,j=A.ignoreTabKey,B=j===void 0?!1:j,Y=A.insertSpaces,H=Y===void 0?!0:Y,F=A.maxLength,V=A.minLength,$=A.name,W=A.onBlur,P=A.onClick,Q=A.onFocus,Z=A.onKeyDown,G=A.onKeyUp,ne=A.onValueChange,re=A.padding,z=re===void 0?0:re,le=A.placeholder,K=A.preClassName,se=A.readOnly,ie=A.required,ve=A.style,pe=A.tabSize,Se=pe===void 0?2:pe,Ie=A.textareaClassName,Te=A.textareaId,Le=A.value,ge=o(A,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),Re=s.useRef({stack:[],offset:-1}),xe=s.useRef(null),q=s.useState(!0),J=q[0],ae=q[1],Me={paddingTop:typeof z=="object"?z.top:z,paddingRight:typeof z=="object"?z.right:z,paddingBottom:typeof z=="object"?z.bottom:z,paddingLeft:typeof z=="object"?z.left:z},_e=L(Le),be=function(ye,$e){return ye.substring(0,$e).split(`
|
|
69
|
-
`)},ke=s.useCallback(function(ye,$e){var je,Ge,Ke;$e===void 0&&($e=!1);var tt=Re.current,Nt=tt.stack,Wt=tt.offset;if(Nt.length&&Wt>-1){Re.current.stack=Nt.slice(0,Wt+1);var wt=Re.current.stack.length;if(wt>y){var kt=wt-y;Re.current.stack=Nt.slice(kt,wt),Re.current.offset=Math.max(Re.current.offset-kt,0)}}var gt=Date.now();if($e){var Vt=Re.current.stack[Re.current.offset];if(Vt&>-Vt.timestamp<b){var Ft=/[^a-z0-9]([a-z0-9]+)$/i,Mt=(je=be(Vt.value,Vt.selectionStart).pop())===null||je===void 0?void 0:je.match(Ft),fn=(Ge=be(ye.value,ye.selectionStart).pop())===null||Ge===void 0?void 0:Ge.match(Ft);if(Mt!=null&&Mt[1]&&(!((Ke=fn==null?void 0:fn[1])===null||Ke===void 0)&&Ke.startsWith(Mt[1]))){Re.current.stack[Re.current.offset]=e(e({},ye),{timestamp:gt});return}}}Re.current.stack.push(e(e({},ye),{timestamp:gt})),Re.current.offset++},[]),He=s.useCallback(function(){var ye=xe.current;if(ye){var $e=ye.value,je=ye.selectionStart,Ge=ye.selectionEnd;ke({value:$e,selectionStart:je,selectionEnd:Ge})}},[ke]),Ve=function(ye){var $e=xe.current;$e&&($e.value=ye.value,$e.selectionStart=ye.selectionStart,$e.selectionEnd=ye.selectionEnd,ne==null||ne(ye.value))},Fe=function(ye){var $e=xe.current,je=Re.current.stack[Re.current.offset];je&&$e&&(Re.current.stack[Re.current.offset]=e(e({},je),{selectionStart:$e.selectionStart,selectionEnd:$e.selectionEnd})),ke(ye),Ve(ye)},Et=function(){var ye=Re.current,$e=ye.stack,je=ye.offset,Ge=$e[je-1];Ge&&(Ve(Ge),Re.current.offset=Math.max(je-1,0))},pt=function(){var ye=Re.current,$e=ye.stack,je=ye.offset,Ge=$e[je+1];Ge&&(Ve(Ge),Re.current.offset=Math.min(je+1,$e.length-1))},an=function(ye){if(!(Z&&(Z(ye),ye.defaultPrevented))){ye.key==="Escape"&&ye.currentTarget.blur();var $e=ye.currentTarget,je=$e.value,Ge=$e.selectionStart,Ke=$e.selectionEnd,tt=(H?" ":" ").repeat(Se);if(ye.key==="Tab"&&!B&&J)if(ye.preventDefault(),ye.shiftKey){var Nt=be(je,Ge),Wt=Nt.length-1,wt=be(je,Ke).length-1,kt=je.split(`
|
|
70
|
-
`).map(function(Fn,Wn){return Wn>=Wt&&Wn<=wt&&Fn.startsWith(tt)?Fn.substring(tt.length):Fn}).join(`
|
|
71
|
-
`);if(je!==kt){var gt=Nt[Wt];Fe({value:kt,selectionStart:gt!=null&>.startsWith(tt)?Ge-tt.length:Ge,selectionEnd:Ke-(je.length-kt.length)})}}else if(Ge!==Ke){var Nt=be(je,Ge),Vt=Nt.length-1,Ft=be(je,Ke).length-1,gt=Nt[Vt];Fe({value:je.split(`
|
|
72
|
-
`).map(function(Xn,sr){return sr>=Vt&&sr<=Ft?tt+Xn:Xn}).join(`
|
|
73
|
-
`),selectionStart:gt&&/\S/.test(gt)?Ge+tt.length:Ge,selectionEnd:Ke+tt.length*(Ft-Vt+1)})}else{var Mt=Ge+tt.length;Fe({value:je.substring(0,Ge)+tt+je.substring(Ke),selectionStart:Mt,selectionEnd:Mt})}else if(ye.key==="Backspace"){var fn=Ge!==Ke,mt=je.substring(0,Ge);if(mt.endsWith(tt)&&!fn){ye.preventDefault();var Mt=Ge-tt.length;Fe({value:je.substring(0,Ge-tt.length)+je.substring(Ke),selectionStart:Mt,selectionEnd:Mt})}}else if(ye.key==="Enter"){if(Ge===Ke){var ft=be(je,Ge).pop(),ot=ft==null?void 0:ft.match(/^\s+/);if(ot!=null&&ot[0]){ye.preventDefault();var Ht=`
|
|
74
|
-
`+ot[0],Mt=Ge+Ht.length;Fe({value:je.substring(0,Ge)+Ht+je.substring(Ke),selectionStart:Mt,selectionEnd:Mt})}}}else if(ye.keyCode===d||ye.keyCode===p||ye.keyCode===g||ye.keyCode===m){var Ot=void 0;ye.keyCode===d&&ye.shiftKey?Ot=["(",")"]:ye.keyCode===p?ye.shiftKey?Ot=["{","}"]:Ot=["[","]"]:ye.keyCode===g?ye.shiftKey?Ot=['"','"']:Ot=["'","'"]:ye.keyCode===m&&!ye.shiftKey&&(Ot=["`","`"]),Ge!==Ke&&Ot&&(ye.preventDefault(),Fe({value:je.substring(0,Ge)+Ot[0]+je.substring(Ge,Ke)+Ot[1]+je.substring(Ke),selectionStart:Ge,selectionEnd:Ke+2}))}else(R?ye.metaKey&&ye.keyCode===c:ye.ctrlKey&&ye.keyCode===c)&&!ye.shiftKey&&!ye.altKey?(ye.preventDefault(),Et()):(R?ye.metaKey&&ye.keyCode===c&&ye.shiftKey:S?ye.ctrlKey&&ye.keyCode===l:ye.ctrlKey&&ye.keyCode===c&&ye.shiftKey)&&!ye.altKey?(ye.preventDefault(),pt()):ye.keyCode===f&&ye.ctrlKey&&(!R||ye.shiftKey)&&(ye.preventDefault(),ae(function(Fn){return!Fn}))}},en=function(ye){var $e=ye.currentTarget,je=$e.value,Ge=$e.selectionStart,Ke=$e.selectionEnd;ke({value:je,selectionStart:Ge,selectionEnd:Ke},!0),ne(je)};return s.useEffect(function(){He()},[He]),s.useImperativeHandle(O,function(){return{get session(){return{history:Re.current}},set session(ye){Re.current=ye.history}}},[]),s.createElement("div",e({},ge,{style:e(e({},M.container),ve)}),s.createElement("pre",e({className:K,"aria-hidden":"true",style:e(e(e({},M.editor),M.highlight),Me)},typeof _e=="string"?{dangerouslySetInnerHTML:{__html:_e+"<br />"}}:{children:_e})),s.createElement("textarea",{ref:function(ye){return xe.current=ye},style:e(e(e({},M.editor),M.textarea),Me),className:C+(Ie?" ".concat(Ie):""),id:Te,value:Le,onChange:en,onKeyDown:an,onClick:P,onKeyUp:G,onFocus:Q,onBlur:W,disabled:D,form:U,maxLength:F,minLength:V,name:$,placeholder:le,readOnly:se,required:ie,autoFocus:k,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),s.createElement("style",{dangerouslySetInnerHTML:{__html:x}}))}),M={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 Pr.default=_,Pr}var _Z=xZ();const gne=us(_Z);var L1={exports:{}},eM;function CZ(){return eM||(eM=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=function(r){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,l={},c={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function x(_){return _ instanceof f?new f(_.type,x(_.content),_.alias):Array.isArray(_)?_.map(x):_.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++s}),x.__id},clone:function x(_,M){M=M||{};var T,A;switch(c.util.type(_)){case"Object":if(A=c.util.objId(_),M[A])return M[A];T={},M[A]=T;for(var O in _)_.hasOwnProperty(O)&&(T[O]=x(_[O],M));return T;case"Array":return A=c.util.objId(_),M[A]?M[A]:(T=[],M[A]=T,_.forEach(function(k,D){T[D]=x(k,M)}),T);default:return _}},getLanguage:function(x){for(;x;){var _=o.exec(x.className);if(_)return _[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,_){x.className=x.className.replace(RegExp(o,"gi"),""),x.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(T){var x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(T.stack)||[])[1];if(x){var _=document.getElementsByTagName("script");for(var M in _)if(_[M].src==x)return _[M]}return null}},isActive:function(x,_,M){for(var T="no-"+_;x;){var A=x.classList;if(A.contains(_))return!0;if(A.contains(T))return!1;x=x.parentElement}return!!M}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(x,_){var M=c.util.clone(c.languages[x]);for(var T in _)M[T]=_[T];return M},insertBefore:function(x,_,M,T){T=T||c.languages;var A=T[x],O={};for(var k in A)if(A.hasOwnProperty(k)){if(k==_)for(var D in M)M.hasOwnProperty(D)&&(O[D]=M[D]);M.hasOwnProperty(k)||(O[k]=A[k])}var U=T[x];return T[x]=O,c.languages.DFS(c.languages,function(L,j){j===U&&L!=x&&(this[L]=O)}),O},DFS:function x(_,M,T,A){A=A||{};var O=c.util.objId;for(var k in _)if(_.hasOwnProperty(k)){M.call(_,k,_[k],T||k);var D=_[k],U=c.util.type(D);U==="Object"&&!A[O(D)]?(A[O(D)]=!0,x(D,M,null,A)):U==="Array"&&!A[O(D)]&&(A[O(D)]=!0,x(D,M,k,A))}}},plugins:{},highlightAll:function(x,_){c.highlightAllUnder(document,x,_)},highlightAllUnder:function(x,_,M){var T={callback:M,container:x,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",T),T.elements=Array.prototype.slice.apply(T.container.querySelectorAll(T.selector)),c.hooks.run("before-all-elements-highlight",T);for(var A=0,O;O=T.elements[A++];)c.highlightElement(O,_===!0,T.callback)},highlightElement:function(x,_,M){var T=c.util.getLanguage(x),A=c.languages[T];c.util.setLanguage(x,T);var O=x.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(O,T);var k=x.textContent,D={element:x,language:T,grammar:A,code:k};function U(j){D.highlightedCode=j,c.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,c.hooks.run("after-highlight",D),c.hooks.run("complete",D),M&&M.call(D.element)}if(c.hooks.run("before-sanity-check",D),O=D.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!D.code){c.hooks.run("complete",D),M&&M.call(D.element);return}if(c.hooks.run("before-highlight",D),!D.grammar){U(c.util.encode(D.code));return}if(_&&r.Worker){var L=new Worker(c.filename);L.onmessage=function(j){U(j.data)},L.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else U(c.highlight(D.code,D.grammar,D.language))},highlight:function(x,_,M){var T={code:x,grammar:_,language:M};if(c.hooks.run("before-tokenize",T),!T.grammar)throw new Error('The language "'+T.language+'" has no grammar.');return T.tokens=c.tokenize(T.code,T.grammar),c.hooks.run("after-tokenize",T),f.stringify(c.util.encode(T.tokens),T.language)},tokenize:function(x,_){var M=_.rest;if(M){for(var T in M)_[T]=M[T];delete _.rest}var A=new g;return m(A,A.head,x),p(x,A,_,A.head,0),b(A)},hooks:{all:{},add:function(x,_){var M=c.hooks.all;M[x]=M[x]||[],M[x].push(_)},run:function(x,_){var M=c.hooks.all[x];if(!(!M||!M.length))for(var T=0,A;A=M[T++];)A(_)}},Token:f};r.Prism=c;function f(x,_,M,T){this.type=x,this.content=_,this.alias=M,this.length=(T||"").length|0}f.stringify=function x(_,M){if(typeof _=="string")return _;if(Array.isArray(_)){var T="";return _.forEach(function(U){T+=x(U,M)}),T}var A={type:_.type,content:x(_.content,M),tag:"span",classes:["token",_.type],attributes:{},language:M},O=_.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(A.classes,O):A.classes.push(O)),c.hooks.run("wrap",A);var k="";for(var D in A.attributes)k+=" "+D+'="'+(A.attributes[D]||"").replace(/"/g,""")+'"';return"<"+A.tag+' class="'+A.classes.join(" ")+'"'+k+">"+A.content+"</"+A.tag+">"};function d(x,_,M,T){x.lastIndex=_;var A=x.exec(M);if(A&&T&&A[1]){var O=A[1].length;A.index+=O,A[0]=A[0].slice(O)}return A}function p(x,_,M,T,A,O){for(var k in M)if(!(!M.hasOwnProperty(k)||!M[k])){var D=M[k];D=Array.isArray(D)?D:[D];for(var U=0;U<D.length;++U){if(O&&O.cause==k+","+U)return;var L=D[U],j=L.inside,B=!!L.lookbehind,Y=!!L.greedy,H=L.alias;if(Y&&!L.pattern.global){var F=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,F+"g")}for(var V=L.pattern||L,$=T.next,W=A;$!==_.tail&&!(O&&W>=O.reach);W+=$.value.length,$=$.next){var P=$.value;if(_.length>x.length)return;if(!(P instanceof f)){var Q=1,Z;if(Y){if(Z=d(V,W,x,B),!Z||Z.index>=x.length)break;var z=Z.index,G=Z.index+Z[0].length,ne=W;for(ne+=$.value.length;z>=ne;)$=$.next,ne+=$.value.length;if(ne-=$.value.length,W=ne,$.value instanceof f)continue;for(var re=$;re!==_.tail&&(ne<G||typeof re.value=="string");re=re.next)Q++,ne+=re.value.length;Q--,P=x.slice(W,ne),Z.index-=W}else if(Z=d(V,0,P,B),!Z)continue;var z=Z.index,le=Z[0],K=P.slice(0,z),se=P.slice(z+le.length),ie=W+P.length;O&&ie>O.reach&&(O.reach=ie);var ve=$.prev;K&&(ve=m(_,ve,K),W+=K.length),y(_,ve,Q);var pe=new f(k,j?c.tokenize(le,j):le,H,le);if($=m(_,ve,pe),se&&m(_,$,se),Q>1){var Se={cause:k+","+U,reach:ie};p(x,_,M,$.prev,W,Se),O&&Se.reach>O.reach&&(O.reach=Se.reach)}}}}}}function g(){var x={value:null,prev:null,next:null},_={value:null,prev:x,next:null};x.next=_,this.head=x,this.tail=_,this.length=0}function m(x,_,M){var T=_.next,A={value:M,prev:_,next:T};return _.next=A,T.prev=A,x.length++,A}function y(x,_,M){for(var T=_.next,A=0;A<M&&T!==x.tail;A++)T=T.next;_.next=T,T.prev=_,x.length-=A}function b(x){for(var _=[],M=x.head.next;M!==x.tail;)_.push(M.value),M=M.next;return _}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(x){var _=JSON.parse(x.data),M=_.language,T=_.code,A=_.immediateClose;r.postMessage(c.highlight(T,c.languages[M],M)),A&&r.close()},!1)),c;var S=c.util.currentScript();S&&(c.filename=S.src,S.hasAttribute("data-manual")&&(c.manual=!0));function R(){c.manual||c.highlightAll()}if(!c.manual){var C=document.readyState;C==="loading"||C==="interactive"&&S&&S.defer?document.addEventListener("DOMContentLoaded",R):window.requestAnimationFrame?window.requestAnimationFrame(R):window.setTimeout(R,16)}return c}(t);e.exports&&(e.exports=n),typeof F_<"u"&&(F_.Prism=n)}(L1)),L1.exports}var TZ=CZ();const mne=us(TZ);(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{KZ as $,qJ as A,QJ as B,DJ as C,Kee as D,OJ as E,fs as F,Wee as G,WJ as H,NJ as I,ree as J,Pee as K,qee as L,MJ as M,Xee as N,W4 as O,YZ as P,jZ as Q,ce as R,xL as S,kJ as T,XZ as U,JZ as V,ZZ as W,pM as X,N1 as Y,OZ as Z,kZ as _,EJ as a,Dte as a$,WL as a0,DZ as a1,IZ as a2,$Z as a3,VZ as a4,LZ as a5,WZ as a6,MZ as a7,FJ as a8,Iee as a9,Xte as aA,ene as aB,Jte as aC,cW as aD,$D as aE,Lte as aF,une as aG,Fg as aH,one as aI,lne as aJ,sne as aK,yee as aL,hne as aM,_J as aN,dne as aO,fne as aP,cne as aQ,Ete as aR,wte as aS,$J as aT,nne as aU,ine as aV,tne as aW,rne as aX,Ite as aY,Mte as aZ,Ote as a_,Eee as aa,Ate as ab,vee as ac,yte as ad,RJ as ae,CJ as af,vte as ag,Bee as ah,zee as ai,kte as aj,Fee as ak,kee as al,dee as am,JJ as an,KJ as ao,See as ap,ZJ as aq,eee as ar,nee as as,HJ as at,XJ as au,BJ as av,iee as aw,QZ as ax,xJ as ay,Qte as az,iI as b,ote as b$,hee as b0,GJ as b1,Nte as b2,Pte as b3,Fte as b4,zte as b5,Ute as b6,Bte as b7,Hte as b8,PJ as b9,gte as bA,Rte as bB,xte as bC,_te as bD,Cte as bE,Tte as bF,bte as bG,Ste as bH,aee as bI,mte as bJ,Mee as bK,Lee as bL,_ee as bM,bee as bN,Ree as bO,xee as bP,Cee as bQ,Nee as bR,Vee as bS,see as bT,oee as bU,Jee as bV,ete as bW,tte as bX,nte as bY,jee as bZ,rte as b_,Uee as ba,Qee as bb,Zee as bc,wJ as bd,uee as be,Oee as bf,pne as bg,ane as bh,Zte as bi,Wte as bj,AJ as bk,Hee as bl,gee as bm,mee as bn,LJ as bo,fee as bp,VJ as bq,UJ as br,Yte as bs,Kte as bt,$te as bu,Gte as bv,qte as bw,hte as bx,jte as by,pte as bz,yJ as c,dte as c0,ite as c1,cte as c2,ste as c3,ate as c4,lte as c5,ute as c6,fte as c7,Vte as c8,NZ as c9,FZ as ca,BZ as cb,HZ as cc,zZ as cd,UZ as ce,gne as cf,mne as cg,jJ as ch,Aee as ci,Tee as cj,lee as ck,wee as cl,cee as cm,gq as d,Vn as e,bJ as f,LO as g,E as h,SJ as i,Ee as j,GZ as k,PZ as l,Dee as m,pee as n,TJ as o,tee as p,Yee as q,br as r,$ee as s,Gee as t,_q as u,YJ as v,rc as w,vS as x,zJ as y,IJ as z};
|
|
75
|
-
//# sourceMappingURL=vendor-Cdwxo8bP.js.map
|