@marimo-team/frontend 0.18.5-dev201 → 0.18.5-dev202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/assets/{CellStatus-Bo1x1B6n.js → CellStatus-CJVmn-JU.js} +1 -1
  2. package/dist/assets/{JsonOutput-BCHaEg3R.js → JsonOutput-BLd1jTNA.js} +1 -1
  3. package/dist/assets/{MarimoErrorOutput-BIIhR96K.js → MarimoErrorOutput-Orp0blpZ.js} +2 -2
  4. package/dist/assets/{RenderHTML-BUhX0rkG.js → RenderHTML-BzGWfPTJ.js} +1 -1
  5. package/dist/assets/{add-cell-with-ai-CLrEdPGH.js → add-cell-with-ai-Dx5UA23s.js} +1 -1
  6. package/dist/assets/{add-database-form-DkSxzOXk.js → add-database-form-MNQmbAaT.js} +1 -1
  7. package/dist/assets/{agent-panel-Bz7HLWO3.js → agent-panel-BS2q53WX.js} +2 -2
  8. package/dist/assets/{ai-model-dropdown-ea-cOLAL.js → ai-model-dropdown-DZ7evAGU.js} +1 -1
  9. package/dist/assets/{app-config-button-BFjdAlTt.js → app-config-button-CsABtw-A.js} +1 -1
  10. package/dist/assets/{cell-editor-B-NH54Cv.js → cell-editor-D4tKLHiP.js} +4 -4
  11. package/dist/assets/{cell-link-DNVmmRzI.js → cell-link-BoUpLV2S.js} +1 -1
  12. package/dist/assets/{cells-Dk_j8HX9.js → cells-D_SkyFDn.js} +47 -47
  13. package/dist/assets/{chat-components-BMWBGknq.js → chat-components-6dWNbFjV.js} +1 -1
  14. package/dist/assets/{chat-display-CEYX5MXY.js → chat-display-Cfg38gMM.js} +1 -1
  15. package/dist/assets/{chat-panel-DmUjYxAt.js → chat-panel-CofEklYU.js} +1 -1
  16. package/dist/assets/{client-D08Rbi3p.js → client-BUus2uot.js} +1 -1
  17. package/dist/assets/{column-preview-MV5ZRt10.js → column-preview-9nPwQyJZ.js} +1 -1
  18. package/dist/assets/{command-gUA-HncX.js → command-Qt3ng7cb.js} +1 -1
  19. package/dist/assets/{command-palette-Dt43cGFk.js → command-palette-ptrGtoIl.js} +1 -1
  20. package/dist/assets/{common-BWR26KIv.js → common-DE3UmpZO.js} +1 -1
  21. package/dist/assets/{datasource-i415crE1.js → datasource-CR_zEq5o.js} +1 -1
  22. package/dist/assets/{dependency-graph-panel-BwaKuCE7.js → dependency-graph-panel-Dy8lj02R.js} +1 -1
  23. package/dist/assets/{documentation-panel-C4aTmugE.js → documentation-panel-C0769uWv.js} +1 -1
  24. package/dist/assets/{download-Dsuja3On.js → download-CITws1-y.js} +1 -1
  25. package/dist/assets/{edit-page-DIpr3pNk.js → edit-page-BC3j4y4f.js} +6 -6
  26. package/dist/assets/{error-panel-DCozbyWc.js → error-panel-B-EvbVVc.js} +1 -1
  27. package/dist/assets/{es-DjCjT1hB.js → es-CEEVxHsX.js} +1 -1
  28. package/dist/assets/{file-explorer-panel-BvRpCXWv.js → file-explorer-panel-BqkMxs-d.js} +1 -1
  29. package/dist/assets/{floating-outline-DYdnwTX9.js → floating-outline-p0aHdM2W.js} +1 -1
  30. package/dist/assets/{focus-U1ePwk4d.js → focus-D18AHojc.js} +1 -1
  31. package/dist/assets/{form-D8BW7hlS.js → form-DEraWoX5.js} +1 -1
  32. package/dist/assets/{globals-BBskDqJi.js → globals-D3SeIm1j.js} +1 -1
  33. package/dist/assets/{home-page-c43aYnLs.js → home-page-9rDRaLCP.js} +1 -1
  34. package/dist/assets/{index-MoQWZ3Gl.js → index-BReVmpoy.js} +3 -3
  35. package/dist/assets/{kiosk-mode-lhqhA8En.js → kiosk-mode-DL9UBacr.js} +1 -1
  36. package/dist/assets/{layout-DenYhPfS.js → layout-Bd6wzfjT.js} +1 -1
  37. package/dist/assets/{logs-panel-CmImbuAp.js → logs-panel-C7VsvCHz.js} +1 -1
  38. package/dist/assets/{markdown-renderer-COkLQ1b5.js → markdown-renderer-C_xfLXiO.js} +1 -1
  39. package/dist/assets/{mode-BOijHAOc.js → mode-BFwdGSZ7.js} +1 -1
  40. package/dist/assets/{name-cell-input-Cf2CUXDm.js → name-cell-input-CsDYsdH3.js} +1 -1
  41. package/dist/assets/{outline-panel-CdaUT0TE.js → outline-panel-BlhMaZpZ.js} +1 -1
  42. package/dist/assets/{packages-panel-CghFsvM0.js → packages-panel-YNB3ay32.js} +1 -1
  43. package/dist/assets/{panels-CymS0QU-.js → panels-DfOJ05Sp.js} +1 -1
  44. package/dist/assets/{process-output-BAfpcew-.js → process-output-4w8xDO0j.js} +1 -1
  45. package/dist/assets/{readonly-python-code-B8gfuyX1.js → readonly-python-code-DjP4vjBQ.js} +1 -1
  46. package/dist/assets/{run-page-rr9Ilre7.js → run-page-DRgXZvWr.js} +1 -1
  47. package/dist/assets/{scratchpad-panel-DWsu0wnU.js → scratchpad-panel-BYCWZWFJ.js} +1 -1
  48. package/dist/assets/{session-panel-BJRncUge.js → session-panel-C0b1PCJc.js} +1 -1
  49. package/dist/assets/{snippets-panel-Dv7eGWsB.js → snippets-panel-CpjS6w9M.js} +1 -1
  50. package/dist/assets/{state-DWEWL_KV.js → state-BTRRCWOH.js} +1 -1
  51. package/dist/assets/{state-HUtu_wpA.js → state-kFdt1US2.js} +1 -1
  52. package/dist/assets/{switch-Cd5iA-KH.js → switch-C9iBa4rX.js} +1 -1
  53. package/dist/assets/{textarea-jTWtOsHe.js → textarea-D2hGxqGj.js} +1 -1
  54. package/dist/assets/{tracing-CDJRdFd4.js → tracing-CKdq5KMT.js} +1 -1
  55. package/dist/assets/{tracing-panel-BrBmQCJr.js → tracing-panel-DXjACxb_.js} +2 -2
  56. package/dist/assets/{types-CiMSegk1.js → types-VzFAm7Cv.js} +1 -1
  57. package/dist/assets/{useAddCell-FisWjOQO.js → useAddCell-CVfRv5mq.js} +1 -1
  58. package/dist/assets/{useCellActionButton-DLwn_yx9.js → useCellActionButton-Woqd9LSB.js} +1 -1
  59. package/dist/assets/{useDeleteCell-CFtiNna2.js → useDeleteCell-GHwc6J4l.js} +1 -1
  60. package/dist/assets/{useDependencyPanelTab-DWfKzMhf.js → useDependencyPanelTab-B0ZsFCYF.js} +1 -1
  61. package/dist/assets/{useNotebookActions-B4HR9n-p.js → useNotebookActions-DQW0wwU6.js} +1 -1
  62. package/dist/assets/{useRunCells-DLQFWY1L.js → useRunCells-BZ_OFvV4.js} +1 -1
  63. package/dist/assets/{useSplitCell-DDFoE9WM.js → useSplitCell-BnJiHHep.js} +1 -1
  64. package/dist/assets/{utilities.esm-DlnAwGsz.js → utilities.esm-FYD46c3d.js} +1 -1
  65. package/dist/index.html +31 -31
  66. package/package.json +1 -1
  67. package/src/components/editor/chrome/state.ts +3 -3
  68. package/src/components/editor/chrome/types.ts +5 -3
  69. package/src/components/editor/chrome/wrapper/app-chrome.tsx +11 -4
  70. package/src/components/editor/chrome/wrapper/sidebar.tsx +11 -4
@@ -1,9 +1,9 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-c43aYnLs.js","./app-config-button-BFjdAlTt.js","./state-DWEWL_KV.js","./ai-model-dropdown-ea-cOLAL.js","./cells-Dk_j8HX9.js","./preload-helper-BW0IMuFq.js","./badge-DAnNhy3O.js","./cn-C1rgT0yh.js","./clsx-D0MtrJOx.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./jsx-runtime-DN_bIXfG.js","./button-DuYGqRtX.js","./hotkeys-uKX61F1_.js","./useEventListener-COkmyg1v.js","./Combination-D1TsGrBC.js","./react-dom-C9fstfnp.js","./select-D0g5GnIs.js","./menu-items-9PZrU2e0.js","./dist-CBrDuocE.js","./createLucideIcon-CW2xpJ57.js","./check-CrAQug3q.js","./tooltip-CvjcEpZC.js","./use-toast-Bzf3rpev.js","./utils-CJJIceVn.js","./useEvent-DlWF5OMa.js","./_baseIsEqual-Cz9Tt_-E.js","./_getTag-BWqNuuwU.js","./_Uint8Array-BGESiCQL.js","./invariant-C6yE60hi.js","./merge-BBX6ug-N.js","./_baseFor-Duhs3RiJ.js","./zod-Cg4WLWh2.js","./config-babG4OBR.js","./constants-Bkp4R3bQ.js","./Deferred-DzyBMRsy.js","./DeferredRequestRegistry-B3BENoUa.js","./uuid-ClFZlR7U.js","./requests-C0HaHO6a.js","./useLifecycle-CmDXEyIC.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./_hasUnicode-zBEpxwYe.js","./useNonce-EAuSVK-5.js","./useTheme-DfP1CWaW.js","./once-CTiSlR1m.js","./capabilities-BmAOeMOK.js","./createReducer-DDa-hVe3.js","./dist-DKNOF5xd.js","./dist-CAcX026F.js","./dist-CI6_zMIl.js","./dist-HGZzCB0y.js","./dist-CVj-_Iiz.js","./dist-BVf1IY4_.js","./dist-Cq_4nPfh.js","./dist-RKnr9SNh.js","./dist-BuhT82Xx.js","./stex-0ac7Aukl.js","./toDate-5JckKRQn.js","./cjs-Bj40p_Np.js","./type-BdyvjzTI.js","./_arrayReduce-bZBYsK-u.js","./_baseProperty-DuoFhI7N.js","./debounce-BbFlGgjv.js","./now-6sUe0ZdD.js","./toInteger-CDcO32Gx.js","./database-zap-CaVvnK_o.js","./main-CwSdzVhm.js","./cells-jmgGt1lS.css","./multi-map-fjX9ImVF.js","./dropdown-menu-BP4_BZLr.js","./chevron-right-CqEd11Di.js","./capitalize-DQeWKRGx.js","./spinner-C1czjtp7.js","./renderShortcut-D0Pei-OA.js","./kbd-Czc5z_04.js","./alert-BEdExd6A.js","./dialog-DUEuLcT2.js","./alert-dialog-k5KxevGr.js","./textarea-jTWtOsHe.js","./label-qwandMoh.js","./dist-DOFFh6Ii.js","./useDebounce-em3gna-v.js","./input-CaEtLL8p.js","./numbers-C9_R_vlY.js","./useNumberFormatter-D8ks3oPN.js","./context-BAYdLMF_.js","./SSRProvider-DD7JA3RM.js","./usePress-C2LPFxyv.js","./links-DNmjkr65.js","./popover-DtnzNVk-.js","./switch-Cd5iA-KH.js","./table--_20dwBZ.js","./tabs-Ctk4D03n.js","./client-D08Rbi3p.js","./error-banner-DU5Qb8a8.js","./mode-BOijHAOc.js","./useAsyncData-BJJJOr9W.js","./copy-DRhpWiOq.js","./VisuallyHidden-BodIky8L.js","./get-CyLJYAfP.js","./memoize-DN0TMY36.js","./circle-check-big-OIMTUpe6.js","./copy-gBVL4NN-.js","./plug-Bp1OpH-w.js","./plus-CHesBJpY.js","./refresh-cw-Din9uFKE.js","./trash-2-C-lF7BNB.js","./triangle-alert-CbD0f2J6.js","./SelectionIndicator-BtLUNjRz.js","./Inputs-DmoeP8nh.js","./Inputs-CuKU-ENz.css","./ImperativeModal-q6QlC2aZ.js","./settings-MTlHVxz3.js","./ErrorBoundary-Drf1manw.js","./icons-D4lB4En9.js","./types-CiMSegk1.js","./file-video-camera-CZUg-nFA.js","./file-BnFXtaZZ.js","./useInterval-DpipYmgs.js","./dates-CdsE1R40.js","./en-US-DhMN8sxe.js","./isValid-DhzaK-Y1.js","./links-ENMiP32L.js","./maps-s2pQkyf5.js","./tree-CeX0mTvA.js","./extends-B9D0JO9U.js","./chart-no-axes-column-D42sFB6d.js","./circle-play-r3MHdB-P.js","./youtube-BJQRl2JC.js","./link-54sBkoQp.js","./refresh-ccw-DbW1_PHb.js","./run-page-rr9Ilre7.js","./panels-CymS0QU-.js","./JsonOutput-BCHaEg3R.js","./tooltip-CrRUCOBw.js","./vega-loader.browser-C8wT63Va.js","./precisionRound-Cl9k9ZmS.js","./defaultLocale-BLUna9fQ.js","./defaultLocale-DzliDDTm.js","./MarimoErrorOutput-BIIhR96K.js","./useInstallPackage-RldLPyJs.js","./cell-link-DNVmmRzI.js","./datasource-i415crE1.js","./state-HUtu_wpA.js","./copy-icon-B69c-352.js","./markdown-renderer-COkLQ1b5.js","./es-DjCjT1hB.js","./focus-U1ePwk4d.js","./LazyAnyLanguageCodeMirror-jpEDlD0M.js","./chunk-OGVTOU66-CjNLT2C3.js","./katex-AwOI3EvM.js","./marked.esm-CHnOtnr3.js","./markdown-renderer-DdDKmWlR.css","./command-gUA-HncX.js","./RenderHTML-BUhX0rkG.js","./useRunCells-DLQFWY1L.js","./purify.es-N-2faAGj.js","./useIframeCapabilities-CU-WWxnz.js","./formats-B9CrBoaO.js","./download-Dsuja3On.js","./emotion-is-prop-valid.esm-lG8j6oqk.js","./useDateFormatter-CV0QXb5P.js","./range-sshwVRcP.js","./table-BLx7B_us.js","./JsonOutput-B7vuddcd.css","./layout-DenYhPfS.js","./name-cell-input-Cf2CUXDm.js","./esm-B3JckBtM.js","./objectWithoutPropertiesLoose-CboCOq4o.js","./name-cell-input-ujOhus_y.css","./floating-outline-DYdnwTX9.js","./readonly-python-code-B8gfuyX1.js","./useAddCell-FisWjOQO.js","./eye-off-D9zAYqG9.js","./process-output-BAfpcew-.js","./esm-CCqLcax5.js","./dist-BRZzJw_5.js","./dist-P7JHert4.js","./dist-CoiWxjLF.js","./dist-DrrmBmzm.js","./dist-cVYW_wBR.js","./dist-Cv7ifwsi.js","./dist-ChHsi1N7.js","./dist-BAmo7Mv9.js","./dist-3oAtECdQ.js","./dist-D6Pwf0VF.js","./dist-Cd0uZhiN.js","./dist-DxRoHFaH.js","./dist-D9HMoxdZ.js","./dist-JtCdI6tY.js","./apl-iXnrDoYq.js","./asciiarmor-CK-aFa78.js","./asn1-DWJdxrMP.js","./brainfuck-0bMZHpH_.js","./clike-5SQqmvx2.js","./clojure-B0kIwyv8.js","./cmake-CLXeINvH.js","./cobol-C9SsG--s.js","./coffeescript-UIQG6RnU.js","./commonlisp-BBPumpJY.js","./crystal-CGN1wsuY.js","./css-aQ-Krb7T.js","./cypher-DEE4_Yec.js","./d-CgJ8N-gL.js","./diff-B8e18dKs.js","./dtd-DtwMcoo9.js","./dylan-Be6i1K-V.js","./ecl-D5tlhe8s.js","./eiffel-8SQWO4xP.js","./elm-CtGe_7Jw.js","./erlang-CNwX3Z_M.js","./factor-DgyyQiBQ.js","./simple-mode-CZ1ts7NY.js","./forth-CaVwPSxM.js","./fortran-B28t9xoj.js","./gas-BSiJHAcz.js","./gherkin-1QurHPOF.js","./groovy-DFOLwJLv.js","./haskell-CUN2jxPH.js","./haxe-BYzKptPQ.js","./idl-cdmrQY5J.js","./javascript-l5LYdpfx.js","./julia-DxiTohY8.js","./livescript-BZkzGFkJ.js","./lua-rVV1vLen.js","./mathematica-DktJ0aJB.js","./mbox-Ch6IVA7h.js","./mirc-CdWws4At.js","./mllike-CB0tp4Bz.js","./modelica-DQGg_xsi.js","./mscgen-vDSxnAXy.js","./mumps-BzlVzIzl.js","./nsis-bDE8IZXy.js","./ntriples-BndMB6TK.js","./octave-DhnkL0CH.js","./oz-DbZmNL9y.js","./pascal-DhE1sEjD.js","./perl-BOZHK4Y3.js","./pig-eswHTOE9.js","./powershell-pm9G_Qg5.js","./properties-7VoeFdHR.js","./protobuf-BAsuCsmK.js","./pug-CcL3ml0F.js","./puppet-DUYPK8CV.js","./python-UQl3_T6H.js","./q-CnvA_jxT.js","./r-fM1OLzJB.js","./rpm-D62D_dq6.js","./ruby-DemvBD0m.js","./sas-CZjYQi4h.js","./scheme-nPNaP0Qp.js","./shell-BE2ANxN1.js","./sieve-DXFUN4C7.js","./smalltalk-DwXXlSAY.js","./sparql-CgejAdiJ.js","./stylus-CslB9TS3.js","./swift-5t7SQPo8.js","./tcl-Ddpe8YBc.js","./textile-D_Db33mq.js","./toml-CgkLq_pv.js","./troff-6nX9d05T.js","./ttcn-cfg-ByNDYolW.js","./ttcn-Dd4SMoHT.js","./turtle-LDF8uFGv.js","./vb-DaLxM60T.js","./vbscript-CwitZ57u.js","./velocity-D6bc4mrP.js","./verilog-CIyPdzYJ.js","./vhdl-DfyhlM4K.js","./webidl-C23hA3Le.js","./xquery-BAVQXrAf.js","./yacas-DrybVty2.js","./z80-8KI6AMtY.js","./code-xml-MBUyxNtK.js","./ellipsis-DwHM80y-.js","./play-BJDBXApx.js","./trash-BUTJdkWl.js","./prop-types-C638SUfx.js","./layout-BjXzDXoG.css","./utilities.esm-DlnAwGsz.js","./toggle-G1t0cQyf.js","./globals-BBskDqJi.js","./share-CXQVxivL.js","./_baseSet-6FYvpjrm.js","./react-resizable-panels.browser.esm-BqxQegSf.js","./types-BLEgJ92v.js","./requests-DiQsDZob.js","./runs-yuOchwkU.js","./request-registry-CAqj3mAX.js","./ws-itdlXHqs.js","./panels-B4E3DsXP.css","./icon-32x32-ZZIB7rLH.js","./download-DobaYJPt.js","./edit-page-DIpr3pNk.js","./loro_wasm_bg-CghhyG7y.js","./useDeleteCell-CFtiNna2.js","./add-cell-with-ai-CLrEdPGH.js","./blob-Dg_vNTSs.js","./cell-editor-B-NH54Cv.js","./useSplitCell-DDFoE9WM.js","./dist-Ciq1Lh9M.js","./circle-check-Cr0N4h9T.js","./save-BOTLFf-P.js","./cell-editor-Iey559K_.css","./useCellActionButton-DLwn_yx9.js","./multi-icon-BOYRpNB_.js","./multi-icon-pwGWVz3d.css","./circle-plus-D1IRnTdM.js","./useNotebookActions-B4HR9n-p.js","./add-database-form-DkSxzOXk.js","./write-secret-modal-CLm48gMe.js","./field-DDKGFzpC.js","./form-D8BW7hlS.js","./_baseEach-BH6a1vAB.js","./hasIn-DydgU7lx.js","./file-plus-corner-BO_uS88s.js","./globe-CY9im410.js","./square-leQTJTJJ.js","./CellStatus-Bo1x1B6n.js","./workflow-ZGK5flRg.js","./CellStatus-2Psjnl5F.css","./useDependencyPanelTab-DWfKzMhf.js","./kiosk-mode-lhqhA8En.js","./useBoolean-5kuXz69O.js","./arrow-left-DdsrQ78n.js","./clipboard-paste-CusmeEPf.js","./rotate-ccw-CF2xzGPz.js","./square-function-DxXFdbn8.js","./edit-page-Dstp9NQ5.css","./glide-data-editor-Brckuic5.js","./types-B42u_5hF.js","./click-outside-container-DS7-EhkB.js","./dist-enKhaMcN.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-KlUs_Sz3.js","./spec-qp_XZeSS.js","./react-vega-ENLQ2Qtg.js","./linear-CLezLCLy.js","./timer-BEJidwwG.js","./init-BYCsRZEq.js","./time-BARczBNs.js","./range-gMGfxVwZ.js","./treemap-F5PoC_M0.js","./path-_EHCEa2c.js","./colors-CWfEs9Oi.js","./ordinal-RiUP-mHf.js","./arc-D0XsJSsf.js","./math-D-qpUWKO.js","./array-D5VxClQs.js","./step-Ca7ZnceH.js","./line-ortW3H6T.js","./isString-CqoLqJdS.js","./react-plotly-CJq-XPHC.js","./vega-component-DpAAiTdH.js","./useDeepCompareMemoize-gzLRYatP.js","./_baseUniq-CsutM-S0.js","./slides-component-MkPkpql1.js","./slides-component-vtdQFHpk.css","./ImageComparisonComponent-B_O075Vu.js","./mermaid-BPkO79lo.js","./dist-CpSELpRR.js","./chunk-JA3XYJ7Z-D-10sxL1.js","./src-HwYBNPfa.js","./src-lcGySDV2.js","./chunk-S3R3BYOJ-II_Vp8ON.js","./chunk-ABZYJK2D-DdkiqU2a.js","./chunk-ATLVNIR6-CxCpMHNQ.js","./chunk-CVBHYZKI-lxEaq00s.js","./chunk-EXTU4WIE-DR8p8HbZ.js","./chunk-HN2XXSSU-DNIvfs-V.js","./chunk-JZLCHNYA-WLmAEJkU.js","./chunk-MI3HLSF2-SpVCtnNg.js","./chunk-N4CR4FBY-B6JRv1RJ.js","./chunk-QXUST7PY-CPmz228Z.js","./mermaid.core-B2uv0SYk.js","./isEmpty-DIxUV1UR.js","./chunk-XAJISQIX-tpKLXb8K.js","./katex-D_p4uM5H.js","./mhchem-L2lUt6CA.js"])))=>i.map(i=>d[i]);
2
- var dE=Object.defineProperty;var uE=(qa,la,hr)=>la in qa?dE(qa,la,{enumerable:!0,configurable:!0,writable:!0,value:hr}):qa[la]=hr;var q=(qa,la,hr)=>uE(qa,typeof la!="symbol"?la+"":la,hr);import{o as cE,r as mE,s as fa,t as cu}from"./chunk-LvLJmgfZ.js";import{c as _l,i as ze,l as Tl,n as Oe,s as Rl,u as Al}from"./useEvent-DlWF5OMa.js";import{t as pE}from"./react-BGmjiNul.js";import{An as C1,Bn as k1,Bt as hE,F as fE,Gn as gE,Hr as xE,Ir as vE,Jr as S1,Kr as yE,Ln as Il,Nn as bE,Nt as wE,Pt as N1,Qr as Ln,Rr as DE,Tn as E1,Ur as jE,Vn as CE,W as mu,Xr as kE,Yr as pu,_r as SE,_t as hu,b as NE,ei as _1,ii as EE,li as _E,nt as TE,qr as RE,ri as Bn,ui as T1,v as R1,wn as fu,__tla as AE}from"./cells-Dk_j8HX9.js";import{t as Hn}from"./react-dom-C9fstfnp.js";import{A as $r,B as Ce,C as Bt,E as IE,F as A1,I as ft,J as PE,N as G,P as L,R as F,S as Ia,T as U,U as ME,V as Pa,a as I1,b as ye,h as FE,i as P1,j as VE,k as We,n as M1,r as zE,s as gu,t as xu,v as OE,w as ee,x as F1,z as Ma}from"./zod-Cg4WLWh2.js";import{t as J}from"./compiler-runtime-DeeZ7FnK.js";import{t as $E}from"./get-CyLJYAfP.js";import{t as V1}from"./pick-DeQioq0G.js";import{n as LE}from"./useLifecycle-CmDXEyIC.js";import{t as Fa}from"./capitalize-DQeWKRGx.js";import{a as BE,i as vu,n as HE}from"./type-BdyvjzTI.js";import{i as WE,r as z1,t as UE}from"./tooltip-CrRUCOBw.js";import{A as KE,G as yu,H as ZE,I as qE,J as YE,K as Lr,L as GE,M as JE,N as QE,O as XE,Q as e_,R as t_,T as O1,U as a_,V as $1,W as Va,Y as L1,Z as B1,at as Wn,et as r_,g as n_,it as bu,j as i_,k as l_,lt as o_,ot as H1}from"./utilities.esm-DlnAwGsz.js";import{a as za,d as se,f as Oa}from"./hotkeys-uKX61F1_.js";import{t as Br}from"./invariant-C6yE60hi.js";import{D as s_,O as d_,_ as u_,h as c_,i as m_,k as p_,l as h_,v as f_,x as g_}from"./utils-CJJIceVn.js";import{r as wu}from"./constants-Bkp4R3bQ.js";import{D as W1,E as x_,M as v_,a as y_,h as b_,i as U1,j as w_,k as Je,l as D_,n as j_,p as C_,r as Du,t as k_,w as S_}from"./config-babG4OBR.js";import{a as N_,c as E_,l as __,o as T_,r as R_,s as A_,t as I_}from"./switch-Cd5iA-KH.js";import{t as P_}from"./globals-BBskDqJi.js";import{t as Pl}from"./ErrorBoundary-Drf1manw.js";import{n as M_,r as Ct,t as Ml}from"./useEventListener-COkmyg1v.js";import{t as F_}from"./jsx-runtime-DN_bIXfG.js";import{n as $a,t as Se}from"./button-DuYGqRtX.js";import{n as Fl,t as K}from"./cn-C1rgT0yh.js";import{at as V_}from"./dist-CAcX026F.js";import{$ as z_,A as O_,C as $_,D as L_,E as ju,F as Cu,G as B_,H as H_,J as K1,K as W_,O as U_,P as ku,S as K_,T as Z1,U as q1,V as Y1,W as Z_,Y as Vl,b as q_,d as Y_,et as G_,j as G1,l as J_,nt as Q_,q as J1,r as X_,t as Q1,tt as eT,u as tT,v as aT,w as rT,x as Su,y as nT,__tla as iT}from"./JsonOutput-BCHaEg3R.js";import{c as lT,n as X1,p as oT,r as ga,t as sT}from"./once-CTiSlR1m.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{n as dT}from"./requests-C0HaHO6a.js";import{t as kt}from"./createLucideIcon-CW2xpJ57.js";import{A as uT,C as ev,D as cT,O as mT,S as pT,_ as hT,a as tv,b as fT,c as av,d as Un,f as rv,g as gT,h as xT,i as Nu,k as vT,l as yT,m as nv,n as bT,p as wT,r as xa,s as DT,t as jT,u as ta,v as CT,y as kT}from"./spec-qp_XZeSS.js";import{D as ST,E as NT,O as ET,h as _T,k as TT,l as RT,m as AT,n as IT,w as PT}from"./add-cell-with-ai-CLrEdPGH.js";import{t as MT,__tla as FT}from"./LazyAnyLanguageCodeMirror-jpEDlD0M.js";import{i as VT,r as zT}from"./chat-components-BMWBGknq.js";import{a as OT,i as $T,n as LT,o as BT,t as iv}from"./useBoolean-5kuXz69O.js";import{_ as HT,a as WT,c as La,d as UT,f as KT,h as Hr,i as It,l as Eu,m as lv,n as Ba,o as zl,p as ov,r as Wr,s as dr,t as Ha}from"./select-D0g5GnIs.js";import{n as ZT,s as Ol}from"./download-Dsuja3On.js";import{t as $l}from"./chevron-right-CqEd11Di.js";import{i as qT,o as YT}from"./maps-s2pQkyf5.js";import"./markdown-renderer-COkLQ1b5.js";import{u as GT}from"./toDate-5JckKRQn.js";import{P as sv,a as _u,c as JT,i as QT,o as XT,p as dv,r as uv,t as cv}from"./dropdown-menu-BP4_BZLr.js";import{t as eR}from"./code-xml-MBUyxNtK.js";import{t as tR}from"./download-DobaYJPt.js";import{i as aR}from"./file-video-camera-CZUg-nFA.js";import{r as rR,t as nR}from"./types-CiMSegk1.js";import{t as iR}from"./globe-CY9im410.js";import{n as Ll,t as Kn}from"./spinner-C1czjtp7.js";import{n as lR,t as Tu}from"./readonly-python-code-B8gfuyX1.js";import{n as oR,t as Bl}from"./types-B42u_5hF.js";import{t as mv}from"./plus-CHesBJpY.js";import{t as sR}from"./refresh-cw-Din9uFKE.js";import{$ as pv,A as Ru,C as dR,D as uR,E as Au,G as cR,H as mR,J as Ur,K as Hl,L as Iu,M as Wl,N as hv,O as fv,P as Ul,Q as va,R as pR,T as Kl,U as hR,W as Wa,X as Ua,Y as Ka,Z as gv,_ as Zl,at as Kr,b as fR,c as gR,ct as ot,d as xv,et as vv,g as Zr,h as Zn,i as xR,it as vR,k as Pu,l as yR,lt as bR,m as ql,n as wR,nt as Mu,o as Fu,ot as DR,p as yv,q as bv,r as Vu,rt as ur,s as jR,st as Yl,t as zu,tt as Gl,u as Jl,v as Ou,w as CR}from"./input-CaEtLL8p.js";import{t as kR}from"./settings-MTlHVxz3.js";import{t as Ql}from"./square-function-DxXFdbn8.js";import{_ as Qe,a as st,c as at,d as cr,f as SR,g as wv,h as NR,i as ER,l as lt,n as _R,o as qn,p as Dv,r as TR,t as RR,u as ut,v as aa}from"./textarea-jTWtOsHe.js";import{a as AR,d as IR,i as PR,l as MR,o as jv,r as FR,s as VR,t as zR,u as OR}from"./column-preview-MV5ZRt10.js";import{t as $R}from"./square-leQTJTJJ.js";import{t as Cv}from"./trash-2-C-lF7BNB.js";import{t as Xl}from"./triangle-alert-CbD0f2J6.js";import{i as kv,r as LR,t as BR}from"./es-FiXEquL2.js";import{t as vt}from"./preload-helper-BW0IMuFq.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{n as HR,t as ya}from"./use-toast-Bzf3rpev.js";import{r as qr}from"./useTheme-DfP1CWaW.js";import{C as eo,E as $u,S as to,_ as Ue,d as WR,f as Sv,g as Ht,h as UR,l as KR,m as ZR,p as qR,u as YR,v as Lu,w as _e,x as Yn}from"./Combination-D1TsGrBC.js";import{l as GR,r as Nv,t as JR}from"./dist-CBrDuocE.js";import{a as Bu,i as St,n as Hu,o as Wu,r as Uu,s as Ev,t as Pt}from"./tooltip-CvjcEpZC.js";import{d as ao,u as _v}from"./menu-items-9PZrU2e0.js";import"./dates-CdsE1R40.js";import{a as QR,n as XR,t as eA}from"./mode-BOijHAOc.js";import{a as Tv,f as Ku,h as Rv,i as tA,l as Av,m as aA,n as rA,o as ro,p as no,r as nA,s as iA,t as Gn,u as io,v as lo}from"./VisuallyHidden-BodIky8L.js";import{C as lA,D as oA,E as Iv,F as Pv,I as Mv,L as Yr,N as sA,O as Xe,R as Fv,n as dA,s as oo,t as Vv,x as uA,z as ba}from"./usePress-C2LPFxyv.js";import{t as cA}from"./SSRProvider-DD7JA3RM.js";import{n as Wt,r as mA,t as ra}from"./useDateFormatter-CV0QXb5P.js";import{n as pA,t as qe}from"./context-BAYdLMF_.js";import{t as hA}from"./useNumberFormatter-D8ks3oPN.js";import{a as fA,i as gA,r as zv,t as Ov}from"./popover-DtnzNVk-.js";import{i as Gr,r as xA}from"./numbers-C9_R_vlY.js";import{n as vA,t as $v}from"./useDebounce-em3gna-v.js";import{t as yA}from"./ImperativeModal-q6QlC2aZ.js";import"./share-CXQVxivL.js";import{a as Lv,i as Bv,n as Jr,r as bA,t as mr}from"./error-banner-DU5Qb8a8.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as so}from"./copy-icon-B69c-352.js";import{t as Me}from"./RenderHTML-BUhX0rkG.js";import"./purify.es-N-2faAGj.js";import{a as Hv,c as wA,i as Wv,l as DA,n as Zu,o as jA,r as Uv,s as CA}from"./multi-map-fjX9ImVF.js";import{n as kA,r as qu,t as uo}from"./alert-BEdExd6A.js";import{i as na,n as ia,r as Jn,t as Qn}from"./tabs-Ctk4D03n.js";import{n as Nt}from"./useAsyncData-BJJJOr9W.js";import{a as SA,c as NA,o as EA,r as _A,s as TA,t as RA}from"./command-gUA-HncX.js";import{t as Kv}from"./dist-DOFFh6Ii.js";import{__tla as AA}from"./chunk-OGVTOU66-CjNLT2C3.js";import"./katex-AwOI3EvM.js";import"./marked.esm-CHnOtnr3.js";import"./es-DjCjT1hB.js";import{a as IA,o as PA}from"./focus-U1ePwk4d.js";import{a as Zv,i as Yu,n as Gu,o as Qr,r as pr,t as Ju}from"./table--_20dwBZ.js";import{t as Za}from"./useDeepCompareMemoize-gzLRYatP.js";import{t as qv}from"./renderShortcut-D0Pei-OA.js";import{t as Xn}from"./label-qwandMoh.js";import{t as MA}from"./chat-display-CEYX5MXY.js";import"./esm-B3JckBtM.js";import{n as FA}from"./icons-D4lB4En9.js";import{t as VA}from"./bundle.esm-B0Sy2M4C.js";import{a as Yv,c as zA,d as Gv,f as co,i as OA,l as $A,n as Jv,o as LA,p as wa,r as BA,s as Qv,t as HA,u as de}from"./form-D8BW7hlS.js";import"./react-resizable-panels.browser.esm-BqxQegSf.js";import{a as WA,i as Xv,n as ey,t as ty}from"./field-DDKGFzpC.js";import{i as UA,n as KA,r as ZA}from"./floating-outline-DYdnwTX9.js";Promise.all([(()=>{try{return AE}catch{}})(),(()=>{try{return iT}catch{}})(),(()=>{try{return FT}catch{}})(),(()=>{try{return AA}catch{}})()]).then(async()=>{(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(let n of r)if(n.type==="childList")for(let i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function e(r){let n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(r){if(r.ep)return;r.ep=!0;let n=e(r);fetch(r.href,n)}})();var qa=kt("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),la=kt("arrow-up-wide-narrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]),hr=kt("binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),ry=kt("brackets",[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]]),ny=kt("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]),iy=kt("copy-slash",[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),ly=kt("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]),oy=kt("group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]),sy=kt("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),dy=kt("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]),ac=kt("square-dashed-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]),uy=kt("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]),rc=kt("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),cy=fa(T1(),1);const Da={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function my(t,e,a){let r=t.length,n=e.length,i=Array.from({length:r+1},()=>Array.from({length:n+1}).fill(0));for(let u=0;u<=r;u++)i[u][0]=u;for(let u=0;u<=n;u++)i[0][u]=u;for(let u=1;u<=r;u++)for(let c=1;c<=n;c++)i[u][c]=a(t[u-1],e[c-1])?i[u-1][c-1]:1+Math.min(i[u-1][c],i[u][c-1],i[u-1][c-1]);let l=[],o=r,d=n;for(;o>0||d>0;)o>0&&d>0&&a(t[o-1],e[d-1])?(l.unshift({type:Da.MATCH,position:o-1}),o--,d--):o>0&&d>0&&i[o][d]===i[o-1][d-1]+1?(l.unshift({type:Da.SUBSTITUTE,position:o-1}),o--,d--):o>0&&i[o][d]===i[o-1][d]+1?(l.unshift({type:Da.DELETE,position:o-1}),o--):d>0&&i[o][d]===i[o][d-1]+1&&(l.unshift({type:Da.INSERT,position:o}),d--);return{distance:i[r][n],operations:l}}function py(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case Da.MATCH:r.push(t[n]),n++;break;case Da.DELETE:n++;break;case Da.INSERT:r.push(a);break;case Da.SUBSTITUTE:r.push(a),n++;break}return r}function hy(t,e,a,r){let n=my(t,e,a);return{merged:py(t,n.operations,r),edits:n}}var ei=0,ti="";function fy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let o=(e==null?void 0:e.cells.map(d=>d.id??Ln.create()))||[];return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,null])),notebookCellData:new Map(o.map((d,u)=>[d,(e==null?void 0:e.cells[u])||nc()]))}}if(!e){let o=t.cells.map(d=>d.id??Ln.create());return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(o.map(d=>[d,nc()]))}}let{merged:n,edits:i}=hy(t.cells,e.cells,(o,d)=>{let u=o.code_hash;return u?d.code_hash===u:!1},ic());i.distance>0&&se.warn("Session and notebook have different cells, attempted merge.");let l=[];for(let o=0;o<e.cells.length;o++){let d=e.cells[o];if(d){let u=d.id??Ln.create();l.push(u);let c=n[o]||ic();c.id=u,a.set(u,c),r.set(u,d)}else se.warn("Merged notebook cell is null at index",o)}return{cellIds:l,sessionCellData:a,notebookCellData:r}}function nc(){return{id:Ln.create(),name:ti,code:ti,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function ic(){return{id:Ln.create(),code_hash:null,console:[],outputs:[]}}function gy(t,e){var a,r,n;return{id:t,name:e.name??ti,code:e.code??ti,edited:!1,lastCodeRun:null,lastExecutionTime:null,config:{column:((a=e.config)==null?void 0:a.column)??null,disabled:((r=e.config)==null?void 0:r.disabled)??!1,hide_code:((n=e.config)==null?void 0:n.hide_code)??!1},serializedEditorState:null}}function xy(t){let e=fE();if(!t)return e;let a=t.outputs||[],r=a.find(i=>i.type==="data")||a.find(i=>i.type==="error")||a[0];if(r){if(r.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:r.evalue}],mimetype:"application/vnd.marimo+error",timestamp:ei};else if(r.type==="data"){let i=Object.keys(r.data)[0];e.output={channel:"output",data:Object.values(r.data)[0],mimetype:i,timestamp:ei}}}let n=t.console||[];return{...e,outline:e.output?TE(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ei}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ei})}}function vy(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=fy(t,e);if(a.length===0)return null;let i={},l={};for(let o of a){let d=r.get(o),u=n.get(o);u&&(i[o]=gy(o,u)),l[o]=xy(d)}return{cellIds:vE.from([a]),cellData:i,cellRuntime:l,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var yy=J(),lc=Object.freeze({left:0,top:0,width:16,height:16}),ai=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xr=Object.freeze({...lc,...ai}),po=Object.freeze({...Xr,body:"",hidden:!1}),by=Object.freeze({width:null,height:null}),oc=Object.freeze({...by,...ai});function wy(t,e=0){let a=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(a===""){let n=parseInt(t);return isNaN(n)?0:r(n)}else if(a!==t){let n=0;switch(a){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-a.length));return isNaN(i)?0:(i/=n,i%1==0?r(i):0)}}return e}var Dy=/[\s,]+/;function jy(t,e){e.split(Dy).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var sc={...oc,preserveAspectRatio:""};function dc(t){let e={...sc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=wy(a("rotate","")),jy(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function Cy(t,e){for(let a in sc)if(t[a]!==e[a])return!0;return!1}var uc=/^[a-z0-9]+(-[a-z0-9]+)*$/,en=(t,e,a,r="")=>{let n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let o=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:o};return e&&!ri(u)?null:u}let i=n[0],l=i.split("-");if(l.length>1){let o={provider:r,prefix:l.shift(),name:l.join("-")};return e&&!ri(o)?null:o}if(a&&r===""){let o={provider:r,prefix:"",name:i};return e&&!ri(o,a)?null:o}return null},ri=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function ky(t,e){let a={};!t.hFlip!=!e.hFlip&&(a.hFlip=!0),!t.vFlip!=!e.vFlip&&(a.vFlip=!0);let r=((t.rotate||0)+(e.rotate||0))%4;return r&&(a.rotate=r),a}function cc(t,e){let a=ky(t,e);for(let r in po)r in ai?r in t&&!(r in a)&&(a[r]=ai[r]):r in e?a[r]=e[r]:r in t&&(a[r]=t[r]);return a}function Sy(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(l){if(a[l])return n[l]=[];if(!(l in n)){n[l]=null;let o=r[l]&&r[l].parent,d=o&&i(o);d&&(n[l]=[o].concat(d))}return n[l]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function Ny(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function l(o){i=cc(r[o]||n[o],i)}return l(e),a.forEach(l),cc(t,i)}function mc(t,e){let a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(n=>{e(n,null),a.push(n)});let r=Sy(t);for(let n in r){let i=r[n];i&&(e(n,Ny(t,n,i)),a.push(n))}return a}var Ey={provider:"",aliases:{},not_found:{},...lc};function ho(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function pc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ho(t,Ey))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!ho(i,po))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],l=i.parent;if(!n||typeof l!="string"||!a[l]&&!r[l]||!ho(i,po))return null}return e}var ni=Object.create(null);function _y(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function oa(t,e){let a=ni[t]||(ni[t]=Object.create(null));return a[e]||(a[e]=_y(t,e))}function hc(t,e){return pc(e)?mc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function Ty(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Ry(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(ni)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(ni[r]||{})).forEach(n=>{let i=oa(r,n);a=a.concat(Object.keys(i.icons).map(l=>(r===""?"":"@"+r+":")+n+":"+l))})}),a}var tn=!1;function fc(t){return typeof t=="boolean"&&(tn=t),tn}function an(t){let e=typeof t=="string"?en(t,!0,tn):t;if(e){let a=oa(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function gc(t,e){let a=en(t,!0,tn);if(!a)return!1;let r=oa(a.provider,a.prefix);return e?Ty(r,a.name,e):(r.missing.add(a.name),!0)}function xc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),tn&&!e&&!t.prefix){let r=!1;return pc(t)&&(t.prefix="",mc(t,(n,i)=>{gc(n,i)&&(r=!0)})),r}let a=t.prefix;return ri({provider:e,prefix:a,name:"a"})?!!hc(oa(e,a),t):!1}function vc(t){return!!an(t)}function Ay(t){let e=an(t);return e&&{...Xr,...e}}function Iy(t){let e={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((n,i)=>n.provider===i.provider?n.prefix===i.prefix?n.name.localeCompare(i.name):n.prefix.localeCompare(i.prefix):n.provider.localeCompare(i.provider));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;let i=n.provider,l=n.prefix,o=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[l]||(d[l]=oa(i,l)),c;c=o in u.icons?e.loaded:l===""||u.missing.has(o)?e.missing:e.pending;let p={provider:i,prefix:l,name:o};c.push(p)}),e}function yc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function Py(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let a=!1,r=t.provider,n=t.prefix;e.forEach(i=>{let l=i.icons,o=l.pending.length;l.pending=l.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])l.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))l.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),l.pending.length!==o&&(a||yc([t],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}var My=0;function Fy(t,e,a){let r=My++,n=yc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),n}var fo=Object.create(null);function bc(t,e){fo[t]=e}function go(t){return fo[t]||fo[""]}function Vy(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?en(n,e,a):n;i&&r.push(i)}),r}var zy={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Oy(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,l;if(t.random){let S=t.resources.slice(0);for(l=[];S.length>1;){let N=Math.floor(Math.random()*S.length);l.push(S[N]),S=S.slice(0,N).concat(S.slice(N+1))}l=l.concat(S)}else l=t.resources.slice(i).concat(t.resources.slice(0,i));let o=Date.now(),d="pending",u=0,c,p=null,m=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(p=(clearTimeout(p),null))}function f(){d==="pending"&&(d="aborted"),g(),m.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),m=[]}function v(S,N){N&&(h=[]),typeof S=="function"&&h.push(S)}function b(){return{startTime:o,payload:e,status:d,queriesSent:u,queriesPending:m.length,subscribe:v,abort:f}}function w(){d="failed",h.forEach(S=>{S(void 0,c)})}function D(){m.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),m=[]}function j(S,N,y){let C=N!=="success";switch(m=m.filter(_=>_!==S),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(N==="abort"){c=y,w();return}if(C){c=y,m.length||(l.length?k():w());return}if(g(),D(),!t.random){let _=t.resources.indexOf(S.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function k(){if(d!=="pending")return;g();let S=l.shift();if(S===void 0){if(m.length){p=setTimeout(()=>{g(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let N={status:"pending",resource:S,callback:(y,C)=>{j(N,y,C)}};m.push(N),u++,p=setTimeout(k,t.rotate),a(S,e,N.callback)}return setTimeout(k),b}function wc(t){let e={...zy,...t},a=[];function r(){a=a.filter(l=>l().status==="pending")}function n(l,o,d){let u=Oy(e,l,o,(c,p)=>{r(),d&&d(c,p)});return a.push(u),u}function i(l){return a.find(o=>l(o))||null}return{query:n,find:i,setIndex:l=>{e.index=l},getIndex:()=>e.index,cleanup:r}}function xo(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}for(var ii=Object.create(null),li=["https://api.simplesvg.com","https://api.unisvg.com"],vo=[];li.length>0;)li.length===1||Math.random()>.5?vo.push(li.shift()):vo.push(li.pop());ii[""]=xo({resources:["https://api.iconify.design"].concat(vo)});function Dc(t,e){let a=xo(e);return a===null?!1:(ii[t]=a,!0)}function oi(t){return ii[t]}function $y(){return Object.keys(ii)}function jc(){}var yo=Object.create(null);function Ly(t){if(!yo[t]){let e=oi(t);if(!e)return;yo[t]={config:e,redundancy:wc(e)}}return yo[t]}function Cc(t,e,a){let r,n;if(typeof t=="string"){let i=go(t);if(!i)return a(void 0,424),jc;n=i.send;let l=Ly(t);l&&(r=l.redundancy)}else{let i=xo(t);if(i){r=wc(i);let l=go(t.resources?t.resources[0]:"");l&&(n=l.send)}}return!r||!n?(a(void 0,424),jc):r.query(e,n,a)().abort}function kc(){}function By(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Py(t)}))}function Hy(t){let e=[],a=[];return t.forEach(r=>{(r.match(uc)?e:a).push(r)}),{valid:e,invalid:a}}function rn(t,e,a){function r(){let n=t.pendingIcons;e.forEach(i=>{n&&n.delete(i),t.icons[i]||t.missing.add(i)})}if(a&&typeof a=="object")try{if(!hc(t,a).length){r();return}}catch(n){console.error(n)}r(),By(t)}function Sc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Wy(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;let{provider:a,prefix:r}=t,n=t.iconsToLoad;if(delete t.iconsToLoad,!n||!n.length)return;let i=t.loadIcon;if(t.loadIcons&&(n.length>1||!i)){Sc(t.loadIcons(n,r,a),u=>{rn(t,n,u)});return}if(i){n.forEach(u=>{Sc(i(u,r,a),c=>{rn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:l,invalid:o}=Hy(n);if(o.length&&rn(t,o,null),!l.length)return;let d=r.match(uc)?go(a):null;if(!d){rn(t,l,null);return}d.prepare(a,r,l).forEach(u=>{Cc(a,u,c=>{rn(t,u.icons,c)})})}))}var bo=(t,e)=>{let a=Iy(Vy(t,!0,fc()));if(!a.pending.length){let o=!0;return e&&setTimeout(()=>{o&&e(a.loaded,a.missing,a.pending,kc)}),()=>{o=!1}}let r=Object.create(null),n=[],i,l;return a.pending.forEach(o=>{let{provider:d,prefix:u}=o;if(u===l&&d===i)return;i=d,l=u,n.push(oa(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(o=>{let{provider:d,prefix:u,name:c}=o,p=oa(d,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(c)||(m.add(c),r[d][u].push(c))}),n.forEach(o=>{let d=r[o.provider][o.prefix];d.length&&Wy(o,d)}),e?Fy(e,a,n):kc},Uy=t=>new Promise((e,a)=>{let r=typeof t=="string"?en(t,!0):t;if(!r){a(t);return}bo([r||t],n=>{if(n.length&&r){let i=an(r);if(i){e({...Xr,...i});return}}a(t)})});function Nc(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Ky(t,e){if(typeof t=="object")return{data:Nc(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=Nc(t);if(n)return{data:n,value:t}}let a=en(t,!0,!0);if(!a)return{value:t};let r=an(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:bo([a],()=>e(t,a,an(a)))}}var Ec=!1;try{Ec=navigator.vendor.indexOf("Apple")===0}catch{}function Zy(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Ec||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var qy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Yy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(t,e,a){if(e===1)return t;if(a||(a=100),typeof t=="number")return Math.ceil(t*e*a)/a;if(typeof t!="string")return t;let r=t.split(qy);if(r===null||!r.length)return t;let n=[],i=r.shift(),l=Yy.test(i);for(;;){if(l){let o=parseFloat(i);isNaN(o)?n.push(i):n.push(Math.ceil(o*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");l=!l}}function Gy(t,e="defs"){let a="",r=t.indexOf("<"+e);for(;r>=0;){let n=t.indexOf(">",r),i=t.indexOf("</"+e);if(n===-1||i===-1)break;let l=t.indexOf(">",i);if(l===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(l+1)}return{defs:a,content:t}}function Jy(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Qy(t,e,a){let r=Gy(t);return Jy(r.defs,e+r.content+a)}var Xy=t=>t==="unset"||t==="undefined"||t==="none";function _c(t,e){let a={...Xr,...t},r={...oc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let v=[],b=f.hFlip,w=f.vFlip,D=f.rotate;b?w?D+=2:(v.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),v.push("scale(-1 1)"),n.top=n.left=0):w&&(v.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),v.push("scale(1 -1)"),n.top=n.left=0);let j;switch(D<0&&(D-=Math.floor(D/4)*4),D%=4,D){case 1:j=n.height/2+n.top,v.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:v.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,v.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}D%2==1&&(n.left!==n.top&&(j=n.left,n.left=n.top,n.top=j),n.width!==n.height&&(j=n.width,n.width=n.height,n.height=j)),v.length&&(i=Qy(i,'<g transform="'+v.join(" ")+'">',"</g>"))});let l=r.width,o=r.height,d=n.width,u=n.height,c,p;l===null?(p=o===null?"1em":o==="auto"?u:o,c=wo(p,d/u)):(c=l==="auto"?d:l,p=o===null?wo(c,u/d):o==="auto"?u:o);let m={},h=(f,v)=>{Xy(v)||(m[f]=v.toString())};h("width",c),h("height",p);let g=[n.left,n.top,d,u];return m.viewBox=g.join(" "),{attributes:m,viewBox:g,body:i}}function Do(t,e){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in e)a+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+t+"</svg>"}function eb(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function tb(t){return"data:image/svg+xml,"+eb(t)}function Tc(t){return'url("'+tb(t)+'")'}var si=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function ab(t){si=t}function rb(){return si}function nb(t,e){let a=oi(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(l=>{n=Math.max(n,l.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function ib(t){return t===404}var lb=(t,e,a)=>{let r=[],n=nb(t,e),i="icons",l={type:i,provider:t,prefix:e,icons:[]},o=0;return a.forEach((d,u)=>{o+=d.length+1,o>=n&&u>0&&(r.push(l),l={type:i,provider:t,prefix:e,icons:[]},o=d.length),l.icons.push(d)}),r.push(l),r};function ob(t){if(typeof t=="string"){let e=oi(t);if(e)return e.path}return"/"}var sb={prepare:lb,send:(t,e,a)=>{if(!si){a("abort",424);return}let r=ob(e.provider);switch(e.type){case"icons":{let i=e.prefix,l=e.icons.join(","),o=new URLSearchParams({icons:l});r+=i+".json?"+o.toString();break}case"custom":{let i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:a("abort",400);return}let n=503;si(t+r).then(i=>{let l=i.status;if(l!==200){setTimeout(()=>{a(ib(l)?"abort":"next",l)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?a("abort",i):a("next",n)});return}setTimeout(()=>{a("success",i)})}).catch(()=>{a("next",n)})}};function db(t,e,a){oa(a||"",e).loadIcons=t}function ub(t,e,a){oa(a||"",e).loadIcon=t}var jo="data-style",Rc="";function cb(t){Rc=t}function Ac(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(jo));a||(a=document.createElement("style"),a.setAttribute(jo,jo),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Rc}function Ic(){bc("",sb),fc(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||!r||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!xc(r))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let a in e){let r="IconifyProviders["+a+"] is invalid.";try{let n=e[a];if(typeof n!="object"||!n||n.resources===void 0)continue;Dc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:vc,iconExists:vc,getIcon:Ay,listIcons:Ry,addIcon:gc,addCollection:xc,calculateSize:wo,buildIcon:_c,iconToHTML:Do,svgToURL:Tc,loadIcons:bo,loadIcon:Uy,addAPIProvider:Dc,setCustomIconLoader:ub,setCustomIconsLoader:db,appendCustomStyle:cb,_api:{getAPIConfig:oi,setAPIModule:bc,sendAPIQuery:Cc,setFetch:ab,getFetch:rb,listAPIProviders:$y}}}var Co={"background-color":"currentColor"},Pc={"background-color":"transparent"},Mc={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Fc={"-webkit-mask":Co,mask:Co,background:Pc};for(let t in Fc){let e=Fc[t];for(let a in Mc)e[t+"-"+a]=Mc[a]}function Vc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function mb(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,l=Tc(Do(n,{...i,width:e.width+"",height:e.height+""})),o=r.style,d={"--svg":l,width:Vc(i.width),height:Vc(i.height),...a?Co:Pc};for(let u in d)o.setProperty(u,d[u]);return r}var nn;function pb(){try{nn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{nn=null}}function hb(t){return nn===void 0&&pb(),nn?nn.createHTML(t):t}function fb(t){let e=document.createElement("span"),a=t.attributes,r="";return a.width||(r="width: inherit;"),a.height||(r+="height: inherit;"),r&&(a.style=r),e.innerHTML=hb(Do(t.body,a)),e.firstChild}function ko(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function zc(t,e){let a=e.icon.data,r=e.customisations,n=_c(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,l;i==="svg"?l=fb(n):l=mb(n,{...Xr,...a},i==="mask");let o=ko(t);o?l.tagName==="SPAN"&&o.tagName===l.tagName?o.setAttribute("style",l.getAttribute("style")):t.replaceChild(l,o):t.appendChild(l)}function Oc(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function gb(t="iconify-icon"){let e,a;try{e=window.customElements,a=window.HTMLElement}catch{return}if(!e||!a)return;let r=e.get(t);if(r)return r;let n=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends a{constructor(){super();q(this,"_shadowRoot");q(this,"_initialised",!1);q(this,"_state");q(this,"_checkQueued",!1);q(this,"_connected",!1);q(this,"_observer",null);q(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Ac(d,u),this._state=Oc({value:""},u),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return n.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let u=this.hasAttribute("inline"),c=this._state;u!==c.inline&&(c.inline=u,Ac(this._shadowRoot,u));break}case"noobserver":this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){let d=this.getAttribute("icon");if(d&&d.slice(0,1)==="{")try{return JSON.parse(d)}catch{}return d}set icon(d){typeof d=="object"&&(d=JSON.stringify(d)),this.setAttribute("icon",d)}get inline(){return this.hasAttribute("inline")}set inline(d){d?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(d){d?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let d=this._state;if(d.rendered){let u=this._shadowRoot;if(d.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}zc(u,d)}}get status(){let d=this._state;return d.rendered?"rendered":d.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let d=this._state,u=this.getAttribute("icon");if(u!==d.icon.value){this._iconChanged(u);return}if(!d.rendered||!this._visible)return;let c=this.getAttribute("mode"),p=dc(this);(d.attrMode!==c||Cy(d.customisations,p)||!ko(this._shadowRoot))&&this._renderIcon(d.icon,p,c)}_iconChanged(d){let u=Ky(d,(c,p,m)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let g={value:c,name:p,data:m};g.data?this._gotIconData(g):h.icon=g});u.data?this._gotIconData(u):this._state=Oc(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=ko(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,dc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let p=Zy(d.data.body,c),m=this._state.inline;zc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:m,customisations:u,attrMode:c,renderedMode:p})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let u=d.some(c=>c.isIntersecting);u!==this._visible&&(this._visible=u,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};n.forEach(o=>{o in i.prototype||Object.defineProperty(i.prototype,o,{get:function(){return this.getAttribute(o)},set:function(d){d===null?this.removeAttribute(o):this.setAttribute(o,d)}})});let l=Ic();for(let o in l)i[o]=i.prototype[o]=l[o];return e.define(t,i),i}var{enableCache:qA,disableCache:YA,iconLoaded:GA,iconExists:JA,getIcon:QA,listIcons:XA,addIcon:e6,addCollection:t6,calculateSize:a6,buildIcon:r6,iconToHTML:n6,svgToURL:i6,loadIcons:l6,loadIcon:o6,setCustomIconLoader:s6,setCustomIconsLoader:d6,addAPIProvider:u6,_api:c6}=gb()||Ic(),x=fa(pE(),1),s=fa(F_(),1);const xb=()=>((0,yy.c)(1),null);var $c=J();const Lc=(0,x.memo)(t=>{let e=(0,$c.c)(3),{children:a}=t,{theme:r}=qr(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),()=>{document.body.classList.remove(r,`${r}-theme`)}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,x.useLayoutEffect)(n,i),a});Lc.displayName="ThemeProvider";const vb=t=>{let e=(0,$c.c)(3),{variables:a,children:r}=t,n;return e[0]!==r||e[1]!==a?(n=(0,s.jsx)("div",{className:"contents",style:a,children:r}),e[0]=r,e[1]=a,e[2]=n):n=e[2],n},So=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:x.lazy(()=>a())}};function yb(){return window.ResizeObserver!==void 0}function di(t){let{ref:e,box:a,onResize:r}=t;(0,x.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(yb()){let i=new window.ResizeObserver(l=>{l.length&&r()});return i.observe(n,{box:a}),()=>{n&&i.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,a])}var bb=Hn();function wb(t,e=!0){let[a,r]=(0,x.useState)(!0),n=a&&e;return ba(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),Bc(t,n,(0,x.useCallback)(()=>r(!1),[])),n}function Db(t,e){let[a,r]=(0,x.useState)(e?"open":"closed");switch(a){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let n=a==="exiting";return Bc(t,n,(0,x.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function Bc(t,e,a){ba(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){a();return}let r=t.current.getAnimations();if(r.length===0){a();return}let n=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{n||(0,bb.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Ut={top:"top",bottom:"top",left:"left",right:"left"},ui={top:"bottom",bottom:"top",left:"right",right:"left"},jb={top:"left",left:"top"},No={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},ci={},rt=typeof document<"u"?window.visualViewport:null;function Wc(t){let e=0,a=0,r=0,n=0,i=0,l=0,o={},d=((rt==null?void 0:rt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(rt==null?void 0:rt.width)??r,a=(rt==null?void 0:rt.height)??n,o.top=u.scrollTop||t.scrollTop,o.left=u.scrollLeft||t.scrollLeft,rt&&(i=rt.offsetTop,l=rt.offsetLeft)}else({width:e,height:a,top:i,left:l}=fr(t,!1)),o.top=t.scrollTop,o.left=t.scrollLeft,r=e,n=a;return uA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(o.top=0,o.left=0,i=(rt==null?void 0:rt.pageTop)??0,l=(rt==null?void 0:rt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:o,top:i,left:l}}function Cb(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Uc(t,e,a,r,n,i,l){let o=n.scroll[t]??0,d=r[No[t]],u=r.scroll[Ut[t]]+i,c=d+r.scroll[Ut[t]]-i,p=e-o+l[t]-r[Ut[t]],m=e-o+a+l[t]-r[Ut[t]];return p<u?u-p:m>c?Math.max(c-m,u-p):0}function kb(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Kc(t){if(ci[t])return ci[t];let[e,a]=t.split(" "),r=Ut[e]||"right",n=jb[r];Ut[a]||(a="center");let i=No[r],l=No[n];return ci[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:l},ci[t]}function Eo(t,e,a,r,n,i,l,o,d,u){let{placement:c,crossPlacement:p,axis:m,crossAxis:h,size:g,crossSize:f}=r,v={};v[h]=t[h]??0,p==="center"?v[h]+=((t[f]??0)-(a[f]??0))/2:p!==h&&(v[h]+=(t[f]??0)-(a[f]??0)),v[h]+=i;let b=t[h]-a[f]+d+u,w=t[h]+t[f]-d-u;if(v[h]=Mu(v[h],b,w),c===m){let D=o?l[g]:e[Hc[g]];v[ui[m]]=Math.floor(D-t[m]+n)}else v[m]=Math.floor(t[m]+t[g]+n);return v}function Sb(t,e,a,r,n,i,l,o){let d=r?a.height:e[Hc.height],u=t.top==null?a.top+(d-(t.bottom??0)-l):a.top+t.top,c=o==="top"?Math.max(0,u+l-(e.top+(e.scroll.top??0))-((n.top??0)+(n.bottom??0)+i)):Math.max(0,e.height+e.top+(e.scroll.top??0)-u-((n.top??0)+(n.bottom??0)+i));return Math.min(e.height-i*2,c)}function Zc(t,e,a,r,n,i){let{placement:l,axis:o,size:d}=i;return l===o?Math.max(0,a[o]-t[o]-(t.scroll[o]??0)+e[o]-(r[o]??0)-r[ui[o]]-n):Math.max(0,t[d]+t[o]+t.scroll[o]-e[o]-a[o]-a[d]-(r[o]??0)-r[ui[o]]-n)}function Nb(t,e,a,r,n,i,l,o,d,u,c,p,m,h,g,f){let v=Kc(t),{size:b,crossAxis:w,crossSize:D,placement:j,crossPlacement:k}=v,S=Eo(e,o,a,v,c,p,u,m,g,f),N=c,y=Zc(o,u,e,n,i+c,v);if(l&&r[b]>y){let z=Kc(`${ui[j]} ${k}`),$=Eo(e,o,a,z,c,p,u,m,g,f);Zc(o,u,e,n,i+c,z)>y&&(v=z,S=$,N=c)}let C="bottom";v.axis==="top"?v.placement==="top"?C="top":v.placement==="bottom"&&(C="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?C="bottom":v.crossPlacement==="bottom"&&(C="top"));let _=Uc(w,S[w],a[D],o,d,i,u);S[w]+=_;let E=Sb(S,o,u,m,n,i,a.height,C);h&&h<E&&(E=h),a.height=Math.min(a.height,E),S=Eo(e,o,a,v,N,p,u,m,g,f),_=Uc(w,S[w],a[D],o,d,i,u),S[w]+=_;let R={},P=e[w]-S[w]-n[Ut[w]],A=P+.5*e[D],V=g/2+f,T=Ut[w]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),I=a[D]-T-g/2-f;R[w]=Mu(Mu(A,e[w]+g/2-(S[w]+n[Ut[w]]),e[w]+e[D]-g/2-(S[w]+n[Ut[w]])),V,I),{placement:j,crossPlacement:k}=v,g?P=R[w]:k==="right"?P+=e[D]:k==="center"&&(P+=e[D]/2);let M=j==="left"||j==="top"?a[b]:0,O={x:j==="top"||j==="bottom"?P:M,y:j==="left"||j==="right"?P:M};return{position:S,maxHeight:E,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:j,triggerAnchorPoint:O}}function Eb(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:l,boundaryElement:o,offset:d,crossOffset:u,maxHeight:c,arrowSize:p=0,arrowBoundaryOffset:m=0}=t,h=r instanceof HTMLElement?_b(r):document.documentElement,g=h===document.documentElement,f=window.getComputedStyle(h).position,v=!!f&&f!=="static",b=g?fr(a,!1):qc(a,h,!1);if(!g){let{marginTop:y,marginLeft:C}=window.getComputedStyle(a);b.top+=parseInt(y,10)||0,b.left+=parseInt(C,10)||0}let w=fr(r,!0),D=kb(r);w.width+=(D.left??0)+(D.right??0),w.height+=(D.top??0)+(D.bottom??0);let j=Cb(n),k=Wc(o),S=Wc(h),N=o.tagName==="BODY"?fr(h,!1):qc(h,o,!1);return h.tagName==="HTML"&&o.tagName==="BODY"&&(S.scroll.top=0,S.scroll.left=0),Nb(e,b,w,j,D,i,l,k,S,N,d,u,v,c,p,m)}function _o(t,e){let{top:a,left:r,width:n,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(n=t.offsetWidth,i=t.offsetHeight),{top:a,left:r,width:n,height:i}}function fr(t,e){let{top:a,left:r,width:n,height:i}=_o(t,e),{scrollTop:l,scrollLeft:o,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+l-d,left:r+o-u,width:n,height:i}}function qc(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=_o(t,a);else{n=fr(t,a);let i=fr(e,a),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function _b(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Yc(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Yc(e);)e=e.parentElement;return e||document.documentElement}function Yc(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}var Tb=new WeakMap;function Rb(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,x.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let o=r||Tb.get(e.current);o&&o()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function gr(t,e){return t-e*Math.floor(t/e)}var Gc=1721426;function Ya(t,e,a,r){e=ln(t,e);let n=e-1,i=-2;return a<=2?i=0:ja(e)&&(i=-1),Gc-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function ja(t){return t%4==0&&(t%100!=0||t%400==0)}function ln(t,e){return t==="BC"?1-e:e}function mi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Ab={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},gt=class{fromJulianDay(t){let e=t,a=e-Gc,r=Math.floor(a/146097),n=gr(a,146097),i=Math.floor(n/36524),l=gr(n,36524),o=Math.floor(l/1461),d=gr(l,1461),u=Math.floor(d/365),[c,p]=mi(r*400+i*100+o*4+u+(i!==4&&u!==4?1:0)),m=e-Ya(c,p,1,1),h=2;e<Ya(c,p,3,1)?h=0:ja(p)&&(h=1);let g=Math.floor(((m+h)*12+373)/367);return new nt(c,p,g,e-Ya(c,p,g,1)+1)}toJulianDay(t){return Ya(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Ab[ja(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ja(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}},Ib={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ke(t,e){return e=Fe(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Pb(t,e){return e=Fe(e,t.calendar),t=Ga(t),e=Ga(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function To(t,e){return pi(t.calendar,e.calendar)&&Ke(t,e)}function pi(t,e){var a,r;return((a=t.isEqual)==null?void 0:a.call(t,e))??((r=e.isEqual)==null?void 0:r.call(e,t))??t.identifier===e.identifier}function Jc(t,e){return Ke(t,hi(e))}var Mb={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Ro(t,e,a){let r=t.calendar.toJulianDay(t),n=a?Mb[a]:Lb(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Qc(t){return da(Date.now(),t)}function hi(t){return ct(Qc(t))}function Xc(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function em(t,e){return tm(t)-tm(e)}function tm(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var am=null;function fi(){return am??(am=new Intl.DateTimeFormat().resolvedOptions().timeZone),am}function Ga(t){return t.subtract({days:t.day-1})}function gi(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function Fb(t){return Ga(t.subtract({months:t.month-1}))}function Vb(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function zb(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function on(t,e,a){let r=Ro(t,e,a);return t.subtract({days:r})}function Ob(t,e,a){return on(t,e,a).add({days:6})}var rm=new Map,Ao=new Map;function $b(t){if(Intl.Locale){let a=rm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&rm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function Lb(t){let e=Ao.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return Ao.set(t,e),e.firstDay}let a=$b(t);if(t.includes("-fw-")){let r=t.split("-fw-")[1].split("-")[0];e=r==="mon"?{firstDay:1}:r==="tue"?{firstDay:2}:r==="wed"?{firstDay:3}:r==="thu"?{firstDay:4}:r==="fri"?{firstDay:5}:r==="sat"?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:a&&Ib[a]||0};Ao.set(t,e)}return e.firstDay}function Bb(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((Ro(Ga(t),e,a)+r)/7)}function Io(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function Po(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function xr(t){return t=Fe(t,new gt),nm(ln(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function nm(t,e,a,r,n,i,l){let o=new Date;return o.setUTCHours(r,n,i,l),o.setUTCFullYear(t,e-1,a),o.getTime()}function Mo(t,e){if(e==="UTC")return 0;if(t>0&&e===fi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:l,second:o}=lm(t,e);return nm(a,r,n,i,l,o,0)-Math.floor(t/1e3)*1e3}var im=new Map;function lm(t,e){let a=im.get(e);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),im.set(e,a));let r=a.formatToParts(new Date(t)),n={};for(let i of r)i.type!=="literal"&&(n[i.type]=i.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var om=864e5;function Hb(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Wb(t,e,n))}function Wb(t,e,a){let r=lm(a,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}function sa(t,e,a="compatible"){let r=Kt(t);if(e==="UTC")return xr(r);if(e===fi()&&a==="compatible"){r=Fe(r,new gt);let d=new Date,u=ln(r.era,r.year);return d.setFullYear(u,r.month-1,r.day),d.setHours(r.hour,r.minute,r.second,r.millisecond),d.getTime()}let n=xr(r),i=Mo(n-om,e),l=Mo(n+om,e),o=Hb(r,e,n-i,n-l);if(o.length===1)return o[0];if(o.length>1)switch(a){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-l);case"compatible":case"later":return Math.max(n-i,n-l);case"reject":throw RangeError("No such absolute time found")}}function sm(t,e,a="compatible"){return new Date(sa(t,e,a))}function da(t,e){let a=Mo(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new bm(n<1?"BC":"AD",n<1?-n+1:n,i,l,e,a,o,d,u,c)}function ct(t){return new nt(t.calendar,t.era,t.year,t.month,t.day)}function Kt(t,e){let a=0,r=0,n=0,i=0;if("timeZone"in t)({hour:a,minute:r,second:n,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:a,minute:r,second:n,millisecond:i}=e),new ym(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(pi(t.calendar,e))return t;let a=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,Ja(r),r}function Ub(t,e,a){return t instanceof bm?t.timeZone===e?t:Zb(t,e):da(sa(t,e,a),e)}function Kb(t){let e=xr(t)-t.offset;return new Date(e)}function Zb(t,e){return Fe(da(xr(t)-t.offset,e),t.calendar)}var sn=36e5;function xi(t,e){var o;let a=t.copy(),r="hour"in a?mm(a,e):0;Fo(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Vo(a),dm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,qb(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){var i;let d=(o=(i=a.calendar).isInverseEra)==null?void 0:o.call(i,a);a.year=n,a.month=d?1:a.calendar.getMonthsInYear(a),a.day=d?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Fo(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Vo(t){for(;t.month<1;)Fo(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Fo(t,1)}function qb(t){for(;t.day<1;)t.month--,Vo(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Vo(t)}function dm(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Ja(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),dm(t)}function zo(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function um(t,e){return xi(t,zo(e))}function Oo(t,e){let a=t.copy();return e.era!=null&&(a.era=e.era),e.year!=null&&(a.year=e.year),e.month!=null&&(a.month=e.month),e.day!=null&&(a.day=e.day),Ja(a),a}function dn(t,e){let a=t.copy();return e.hour!=null&&(a.hour=e.hour),e.minute!=null&&(a.minute=e.minute),e.second!=null&&(a.second=e.second),e.millisecond!=null&&(a.millisecond=e.millisecond),cm(a),a}function Yb(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=vi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=vi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=vi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=vi(t.hour,24),e}function cm(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function vi(t,e){let a=t%e;return a<0&&(a+=e),a}function mm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Yb(t)}function pm(t,e){let a=t.copy();return mm(a,e),a}function Gb(t,e){return pm(t,zo(e))}function $o(t,e,a,r){var l;let n=t.copy();switch(e){case"era":{let o=t.calendar.getEras(),d=o.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ua(d,a,0,o.length-1,r==null?void 0:r.round),n.era=o[d],Ja(n);break}case"year":var i;(l=(i=n.calendar).isInverseEra)!=null&&l.call(i,n)&&(a=-a),n.year=ua(t.year,a,-1/0,9999,r==null?void 0:r.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=ua(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ua(t.day,a,1,t.calendar.getDaysInMonth(t),r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),Ja(n),n}function Lo(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,l=0,o=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;l=d?12:0,o=d?23:11}n.hour=ua(i,a,l,o,r==null?void 0:r.round);break}case"minute":n.minute=ua(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ua(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ua(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ua(t,e,a,r,n=!1){if(n){t+=Math.sign(e),t<a&&(t=r);let i=Math.abs(e);t=e>0?Math.ceil(t/i)*i:Math.floor(t/i)*i,t>r&&(t=a)}else t+=e,t<a?t=r-(a-t-1):t>r&&(t=a+(t-r-1));return t}function hm(t,e){let a;return a=e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0?sa(xi(Kt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):xr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(da(a,t.timeZone),t.calendar)}function Jb(t,e){return hm(t,zo(e))}function Qb(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let g=t.hour>=12;n=g?12:0,i=g?23:11}let l=Kt(t),o=Fe(dn(l,{hour:n}),new gt),d=[sa(o,t.timeZone,"earlier"),sa(o,t.timeZone,"later")].filter(g=>da(g,t.timeZone).day===o.day)[0],u=Fe(dn(l,{hour:i}),new gt),c=[sa(u,t.timeZone,"earlier"),sa(u,t.timeZone,"later")].filter(g=>da(g,t.timeZone).day===u.day).pop(),p=xr(t)-t.offset,m=Math.floor(p/sn),h=p%sn;return p=ua(m,a,Math.floor(d/sn),Math.floor(c/sn),r==null?void 0:r.round)*sn+h,Fe(da(p,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Lo(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(da(sa($o(Kt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function Xb(t,e,a){let r=Kt(t),n=dn(Oo(r,e),e);return n.compare(r)===0?t:Fe(da(sa(n,t.timeZone,a),t.timeZone),t.calendar)}var ew=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,tw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,fm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function Ca(t){let e=t.match(ew);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new nt(Zt(e[1],0,9999),Zt(e[2],1,12),1);return a.day=Zt(e[3],1,a.calendar.getDaysInMonth(a)),a}function yi(t){let e=t.match(tw);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date time string: "+t);let a=Zt(e[1],-9999,9999),r=new ym(a<1?"BC":"AD",a<1?-a+1:a,Zt(e[2],1,12),1,e[4]?Zt(e[4],0,23):0,e[5]?Zt(e[5],0,59):0,e[6]?Zt(e[6],0,59):0,e[7]?Zt(e[7],0,1/0)*1e3:0);return r.day=Zt(e[3],0,r.calendar.getDaysInMonth(r)),r}function Zt(t,e,a){let r=Number(t);if(r<e||r>a)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function gm(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function xm(t){let e=Fe(t,new gt),a;return a=e.era==="BC"?e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):String(e.year).padStart(4,"0"),`${a}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function vm(t){return`${xm(t)}T${gm(t)}`}function aw(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let a=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),i=`${e}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return n!==0&&(i+=`:${String(n).padStart(2,"0")}`),i}function rw(t){return`${vm(t)}${aw(t.offset)}[${t.timeZone}]`}function Bo(t){let e=typeof t[0]=="object"?t.shift():new gt,a;if(typeof t[0]=="string")a=t.shift();else{let l=e.getEras();a=l[l.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var nw=new WeakMap,nt=class Qu{copy(){return this.era?new Qu(this.calendar,this.era,this.year,this.month,this.day):new Qu(this.calendar,this.year,this.month,this.day)}add(e){return xi(this,e)}subtract(e){return um(this,e)}set(e){return Oo(this,e)}cycle(e,a,r){return $o(this,e,a,r)}toDate(e){return sm(this,e)}toString(){return xm(this)}compare(e){return Xc(this,e)}constructor(...e){oo(this,nw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,Ja(this)}},iw=new WeakMap,lw=class ay{copy(){return new ay(this.hour,this.minute,this.second,this.millisecond)}add(e){return pm(this,e)}subtract(e){return Gb(this,e)}set(e){return dn(this,e)}cycle(e,a,r){return Lo(this,e,a,r)}toString(){return gm(this)}compare(e){return em(this,e)}constructor(e=0,a=0,r=0,n=0){oo(this,iw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,cm(this)}},ow=new WeakMap,ym=class Xu{copy(){return this.era?new Xu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Xu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return xi(this,e)}subtract(e){return um(this,e)}set(e){return Oo(dn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return $o(this,e,a,r);default:return Lo(this,e,a,r)}}toDate(e,a){return sm(this,e,a)}toString(){return vm(this)}compare(e){let a=Xc(this,e);return a===0?em(this,Kt(e)):a}constructor(...e){oo(this,ow,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ja(this)}},sw=new WeakMap,bm=class ec{copy(){return this.era?new ec(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ec(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return hm(this,e)}subtract(e){return Jb(this,e)}set(e,a){return Xb(this,e,a)}cycle(e,a,r){return Qb(this,e,a,r)}toDate(){return Kb(this)}toString(){return rw(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Ub(e,this.timeZone).toDate().getTime()}constructor(...e){oo(this,sw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e),o=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.timeZone=o,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ja(this)}},vr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],dw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],bi=[1867,1911,1925,1988,2018],ka=["meiji","taisho","showa","heisei","reiwa"];function wm(t){let e=vr.findIndex(([a,r,n])=>t.year<a||t.year===a&&t.month<r||t.year===a&&t.month===r&&t.day<n);return e===-1?vr.length-1:e===0?0:e-1}function Ho(t){let e=bi[ka.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new nt(t.year+e,t.month,t.day)}var uw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=wm(e);return new nt(this,ka[a],e.year-bi[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(Ho(t))}balanceDate(t){let e=Ho(t),a=wm(e);ka[a]!==t.era&&(t.era=ka[a],t.year=e.year-bi[a]),this.constrainDate(t)}constrainDate(t){let e=ka.indexOf(t.era),a=dw[e];if(a!=null){let[r,n,i]=a,l=r-bi[e];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(i,t.day)))}if(t.year===1&&e>=0){let[,r,n]=vr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return ka}getYearsInEra(t){let e=ka.indexOf(t.era),a=vr[e],r=vr[e+1];if(r==null)return 9999-a[0]+1;let n=r[0]-a[0];return(t.month<r[1]||t.month===r[1]&&t.day<r[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth(Ho(t))}getMinimumMonthInYear(t){let e=Dm(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=Dm(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function Dm(t){if(t.year===1)return vr[ka.indexOf(t.era)]}var jm=-543,cw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=ln(e.era,e.year);return new nt(this,a-jm,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Cm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Cm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function Cm(t){let[e,a]=mi(t.year+jm);return new nt(e,a,t.month,t.day)}var wi=1911;function km(t){return t.era==="minguo"?t.year+wi:1-t.year+wi}function Sm(t){let e=t-wi;return e>0?["minguo",e]:["before_minguo",1-e]}var mw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Sm(ln(e.era,e.year));return new nt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Nm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Sm(km(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Nm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-wi}constructor(...t){super(...t),this.identifier="roc"}};function Nm(t){let[e,a]=mi(km(t));return new nt(e,a,t.month,t.day)}var Em=1948320,_m=[0,31,62,93,124,155,186,216,246,276,306,336],pw=class{fromJulianDay(t){let e=t-Em,a=1+Math.floor((33*e+3)/12053),r=e-(365*(a-1)+Math.floor((8*a+21)/33)),n=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-_m[n]+1;return new nt(this,a,n+1,i)}toJulianDay(t){let e=Em-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=_m[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||gr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},Wo=78,Tm=80,hw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-Wo,r=t-Ya(e.era,e.year,1,1),n;r<Tm?(a--,n=ja(e.year-1)?31:30,r+=n+155+90+10):(n=ja(e.year)?31:30,r-=Tm);let i,l;if(r<n)i=1,l=r+1;else{let o=r-n;o<155?(i=Math.floor(o/31)+2,l=o%31+1):(o-=155,i=Math.floor(o/30)+7,l=o%30+1)}return new nt(this,a,i,l)}toJulianDay(t){let[e,a]=mi(t.year+Wo),r,n;return ja(a)?(r=31,n=Ya(e,a,3,21)):(r=30,n=Ya(e,a,3,22)),t.month===1?n+t.day-1:(n+=r+Math.min(t.month-2,5)*31,t.month>=8&&(n+=(t.month-7)*30),n+=t.day-1,n)}getDaysInMonth(t){return t.month===1&&ja(t.year+Wo)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},Di=1948440,Rm=1948439,Et=1300,yr=1600,fw=460322;function ji(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Am(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+ji(e,r,1,1)))/29.5)+1);return new nt(t,r,n,a-ji(e,r,n,1)+1)}function Im(t){return(14+11*t)%30<11}var Uo=class{fromJulianDay(t){return Am(this,Di,t)}toJulianDay(t){return ji(Di,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&Im(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return Im(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},gw=class extends Uo{fromJulianDay(t){return Am(this,Rm,t)}toJulianDay(t){return ji(Rm,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},xw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Pm,br;function Ci(t){return fw+br[t-Et]}function un(t,e){let a=t-Et,r=1<<11-(e-1);return(Pm[a]&r)===0?29:30}function Mm(t,e){let a=Ci(t);for(let r=1;r<e;r++)a+=un(t,r);return a}function Fm(t){return br[t+1-Et]-br[t-Et]}var vw=class extends Uo{fromJulianDay(t){let e=t-Di,a=Ci(Et),r=Ci(yr);if(e<a||e>r)return super.fromJulianDay(t);{let n=Et-1,i=1,l=1;for(;l>0;){n++,l=e-Ci(n)+1;let o=Fm(n);if(l===o){i=12;break}else if(l<o){let d=un(n,i);for(i=1;l>d;)l-=d,i++,d=un(n,i);break}}return new nt(this,n,i,e-Mm(n,i)+1)}}toJulianDay(t){return t.year<Et||t.year>yr?super.toJulianDay(t):Di+Mm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Et||t.year>yr?super.getDaysInMonth(t):un(t.year,t.month)}getDaysInYear(t){return t.year<Et||t.year>yr?super.getDaysInYear(t):Fm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Pm||(Pm=new Uint16Array(Uint8Array.from(atob(xw),t=>t.charCodeAt(0)).buffer)),!br){br=new Uint32Array(yr-Et+1);let t=0;for(let e=Et;e<=yr;e++){br[e-Et]=t;for(let a=1;a<=12;a++)t+=un(e,a)}}}},Vm=347997,zm=1080,Om=24*zm,yw=29,bw=12*zm+793,ww=yw*Om+bw;function Qa(t){return gr(t*7+1,19)<7}function ki(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return gr(3*(r+1),7)<3&&(r+=1),r}function Dw(t){let e=ki(t-1),a=ki(t);return ki(t+1)-a===356?2:a-e===382?1:0}function cn(t){return ki(t)+Dw(t)}function $m(t){return cn(t+1)-cn(t)}function jw(t){let e=$m(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Si(t,e){if(e>=6&&!Qa(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=jw(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Qa(t)?30:0:30}var Cw=class{fromJulianDay(t){let e=t-Vm,a=e*Om/ww,r=Math.floor((19*a+234)/235)+1,n=cn(r),i=Math.floor(e-n);for(;i<1;)r--,n=cn(r),i=Math.floor(e-n);let l=1,o=0;for(;o<i;)o+=Si(r,l),l++;l--,o-=Si(r,l);let d=i-o;return new nt(this,r,l,d)}toJulianDay(t){let e=cn(t.year);for(let a=1;a<t.month;a++)e+=Si(t.year,a);return e+t.day+Vm}getDaysInMonth(t){return Si(t.year,t.month)}getMonthsInYear(t){return Qa(t.year)?13:12}getDaysInYear(t){return $m(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(Qa(e.year)&&!Qa(t.year)&&e.month>6?t.month--:!Qa(e.year)&&Qa(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Ko=1723856,Lm=1824665,Zo=5500;function Ni(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function qo(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-Ni(t,a,1,1))/30);return[a,r,e+1-Ni(t,a,r,1)]}function Bm(t){return Math.floor(t%4/3)}function Hm(t,e){return e%13==0?Bm(t)+5:30}var Yo=class{fromJulianDay(t){let[e,a,r]=qo(Ko,t),n="AM";return e<=0&&(n="AA",e+=Zo),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Zo),Ni(Ko,e,t.month,t.day)}getDaysInMonth(t){return Hm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Bm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},kw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Ko,t);return e+=Zo,new nt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},Sw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Lm,t),n="CE";return e<=0&&(n="BCE",e=1-e),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Ni(Lm,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Hm(e,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}};function Go(t){switch(t){case"buddhist":return new cw;case"ethiopic":return new Yo;case"ethioaa":return new kw;case"coptic":return new Sw;case"hebrew":return new Cw;case"indian":return new hw;case"islamic-civil":return new Uo;case"islamic-tbla":return new gw;case"islamic-umalqura":return new vw;case"japanese":return new uw;case"persian":return new pw;case"roc":return new mw;default:return new gt}}function Nw(t){let e=iA({usage:"search",...t}),a=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(0,l.length),l)===0),[e]),r=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(-l.length),l)===0),[e]),n=(0,x.useCallback)((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let o=0,d=l.length;for(;o+d<=i.length;o++){let u=i.slice(o,o+d);if(e.compare(l,u)===0)return!0}return!1},[e]);return(0,x.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ze=typeof document<"u"?window.visualViewport:null;function Ew(t){let{direction:e}=qe(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:l=n,placement:o="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:p=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:g=!0,onClose:f,maxHeight:v,arrowBoundaryOffset:b=0}=t,[w,D]=(0,x.useState)(null),j=[h,o,n.current,r.current,i==null?void 0:i.current,l.current,d,u,c,p,m,g,e,v,b,a],k=(0,x.useRef)(Ze==null?void 0:Ze.scale);(0,x.useEffect)(()=>{g&&(k.current=Ze==null?void 0:Ze.scale)},[g]);let S=(0,x.useCallback)(()=>{var R,P;if(h===!1||!g||!n.current||!r.current||!c||(Ze==null?void 0:Ze.scale)!==k.current)return;let C=null;if(l.current&&l.current.contains(document.activeElement)){let A=(R=document.activeElement)==null?void 0:R.getBoundingClientRect(),V=l.current.getBoundingClientRect();C={type:"top",offset:((A==null?void 0:A.top)??0)-V.top},C.offset>V.height/2&&(C.type="bottom",C.offset=((A==null?void 0:A.bottom)??0)-V.bottom)}let _=n.current;!v&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Eb({placement:Tw(o,e),overlayNode:n.current,targetNode:r.current,scrollNode:l.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:p,crossOffset:m,maxHeight:v,arrowSize:a??(i!=null&&i.current?_o(i.current,!0).width:0),arrowBoundaryOffset:b});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(A=>_.style[A]=E.position[A]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&l.current){let A=document.activeElement.getBoundingClientRect(),V=l.current.getBoundingClientRect(),T=A[C.type]-V[C.type];l.current.scrollTop+=T-C.offset}D(E)}},j);ba(S,j),_w(S),di({ref:n,onResize:S}),di({ref:r,onResize:S});let N=(0,x.useRef)(!1);ba(()=>{let C,_=()=>{N.current=!0,clearTimeout(C),C=setTimeout(()=>{N.current=!1},500),S()},E=()=>{N.current&&_()};return Ze==null||Ze.addEventListener("resize",_),Ze==null||Ze.addEventListener("scroll",E),()=>{Ze==null||Ze.removeEventListener("resize",_),Ze==null||Ze.removeEventListener("scroll",E)}},[S]);let y=(0,x.useCallback)(()=>{N.current||(f==null||f())},[f,N]);return Rb({triggerRef:r,isOpen:g,onClose:f&&y}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w==null?void 0:w.position,maxHeight:(w==null?void 0:w.maxHeight)??"100vh"}},placement:(w==null?void 0:w.placement)??null,triggerAnchorPoint:(w==null?void 0:w.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w==null?void 0:w.arrowOffsetLeft,top:w==null?void 0:w.arrowOffsetTop}},updatePosition:S}}function _w(t){ba(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Tw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Rw({children:t}){let e=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(dA.Provider,{value:e},t)}function Aw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Fv(d=>{a&&Wm(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),o=Fv(d=>{a&&a(d)});(0,x.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=sA(u);if(typeof PointerEvent<"u"){let p=m=>{d.isPointerDown&&Wm(m,e)&&o(m),d.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",p,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",p,!0)}}},[e,r,l,o])}function Wm(t,e){if(t.button>0)return!1;if(t.target){let a=t.target.ownerDocument;if(!a||!a.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}var qt=[];function Iw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=t;(0,x.useEffect)(()=>{if(n&&!qt.includes(e))return qt.push(e),()=>{let g=qt.indexOf(e);g>=0&&qt.splice(g,1)}},[n,e]);let d=()=>{qt[qt.length-1]===e&&a&&a()},u=g=>{(!o||o(g.target))&&qt[qt.length-1]===e&&(g.stopPropagation(),g.preventDefault())},c=g=>{(!o||o(g.target))&&(qt[qt.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d())},p=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),d())};Aw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:m}=Ul({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||nA(g.relatedTarget)||(!o||o(g.relatedTarget))&&(a==null||a())}}),h=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:p,...m},underlayProps:{onPointerDown:h}}}var mn=typeof document<"u"&&window.visualViewport,Ei=0,Um;function Pw(t={}){let{isDisabled:e}=t;ba(()=>{if(!e)return Ei++,Ei===1&&(Um=Iv()?Fw():Mw()),()=>{Ei--,Ei===0&&Um()}},[e])}function Mw(){let t=window.innerWidth-document.documentElement.clientWidth;return Pv(t>0&&("scrollbarGutter"in document.documentElement.style?Jo(document.documentElement,"scrollbarGutter","stable"):Jo(document.documentElement,"paddingRight",`${t}px`)),Jo(document.documentElement,"overflow","hidden"))}function Fw(){let t,e=!1,a=d=>{let u=d.target;t=aA(u)?u:no(u,!0),e=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(e=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(e=!0)},r=document.createElement("style");r.textContent=`@layer {
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-9rDRaLCP.js","./app-config-button-CsABtw-A.js","./state-BTRRCWOH.js","./ai-model-dropdown-DZ7evAGU.js","./cells-D_SkyFDn.js","./preload-helper-BW0IMuFq.js","./badge-DAnNhy3O.js","./cn-C1rgT0yh.js","./clsx-D0MtrJOx.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./jsx-runtime-DN_bIXfG.js","./button-DuYGqRtX.js","./hotkeys-uKX61F1_.js","./useEventListener-COkmyg1v.js","./Combination-D1TsGrBC.js","./react-dom-C9fstfnp.js","./select-D0g5GnIs.js","./menu-items-9PZrU2e0.js","./dist-CBrDuocE.js","./createLucideIcon-CW2xpJ57.js","./check-CrAQug3q.js","./tooltip-CvjcEpZC.js","./use-toast-Bzf3rpev.js","./utils-CJJIceVn.js","./useEvent-DlWF5OMa.js","./_baseIsEqual-Cz9Tt_-E.js","./_getTag-BWqNuuwU.js","./_Uint8Array-BGESiCQL.js","./invariant-C6yE60hi.js","./merge-BBX6ug-N.js","./_baseFor-Duhs3RiJ.js","./zod-Cg4WLWh2.js","./config-babG4OBR.js","./constants-Bkp4R3bQ.js","./Deferred-DzyBMRsy.js","./DeferredRequestRegistry-B3BENoUa.js","./uuid-ClFZlR7U.js","./requests-C0HaHO6a.js","./useLifecycle-CmDXEyIC.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./_hasUnicode-zBEpxwYe.js","./useNonce-EAuSVK-5.js","./useTheme-DfP1CWaW.js","./once-CTiSlR1m.js","./capabilities-BmAOeMOK.js","./createReducer-DDa-hVe3.js","./dist-DKNOF5xd.js","./dist-CAcX026F.js","./dist-CI6_zMIl.js","./dist-HGZzCB0y.js","./dist-CVj-_Iiz.js","./dist-BVf1IY4_.js","./dist-Cq_4nPfh.js","./dist-RKnr9SNh.js","./dist-BuhT82Xx.js","./stex-0ac7Aukl.js","./toDate-5JckKRQn.js","./cjs-Bj40p_Np.js","./type-BdyvjzTI.js","./_arrayReduce-bZBYsK-u.js","./_baseProperty-DuoFhI7N.js","./debounce-BbFlGgjv.js","./now-6sUe0ZdD.js","./toInteger-CDcO32Gx.js","./database-zap-CaVvnK_o.js","./main-CwSdzVhm.js","./cells-jmgGt1lS.css","./multi-map-fjX9ImVF.js","./dropdown-menu-BP4_BZLr.js","./chevron-right-CqEd11Di.js","./capitalize-DQeWKRGx.js","./spinner-C1czjtp7.js","./renderShortcut-D0Pei-OA.js","./kbd-Czc5z_04.js","./alert-BEdExd6A.js","./dialog-DUEuLcT2.js","./alert-dialog-k5KxevGr.js","./textarea-D2hGxqGj.js","./label-qwandMoh.js","./dist-DOFFh6Ii.js","./useDebounce-em3gna-v.js","./input-CaEtLL8p.js","./numbers-C9_R_vlY.js","./useNumberFormatter-D8ks3oPN.js","./context-BAYdLMF_.js","./SSRProvider-DD7JA3RM.js","./usePress-C2LPFxyv.js","./links-DNmjkr65.js","./popover-DtnzNVk-.js","./switch-C9iBa4rX.js","./table--_20dwBZ.js","./tabs-Ctk4D03n.js","./client-BUus2uot.js","./error-banner-DU5Qb8a8.js","./mode-BFwdGSZ7.js","./useAsyncData-BJJJOr9W.js","./copy-DRhpWiOq.js","./VisuallyHidden-BodIky8L.js","./get-CyLJYAfP.js","./memoize-DN0TMY36.js","./circle-check-big-OIMTUpe6.js","./copy-gBVL4NN-.js","./plug-Bp1OpH-w.js","./plus-CHesBJpY.js","./refresh-cw-Din9uFKE.js","./trash-2-C-lF7BNB.js","./triangle-alert-CbD0f2J6.js","./SelectionIndicator-BtLUNjRz.js","./Inputs-DmoeP8nh.js","./Inputs-CuKU-ENz.css","./ImperativeModal-q6QlC2aZ.js","./settings-MTlHVxz3.js","./ErrorBoundary-Drf1manw.js","./icons-D4lB4En9.js","./types-VzFAm7Cv.js","./file-video-camera-CZUg-nFA.js","./file-BnFXtaZZ.js","./useInterval-DpipYmgs.js","./dates-CdsE1R40.js","./en-US-DhMN8sxe.js","./isValid-DhzaK-Y1.js","./links-ENMiP32L.js","./maps-s2pQkyf5.js","./tree-CeX0mTvA.js","./extends-B9D0JO9U.js","./chart-no-axes-column-D42sFB6d.js","./circle-play-r3MHdB-P.js","./youtube-BJQRl2JC.js","./link-54sBkoQp.js","./refresh-ccw-DbW1_PHb.js","./run-page-DRgXZvWr.js","./panels-DfOJ05Sp.js","./JsonOutput-BLd1jTNA.js","./tooltip-CrRUCOBw.js","./vega-loader.browser-C8wT63Va.js","./precisionRound-Cl9k9ZmS.js","./defaultLocale-BLUna9fQ.js","./defaultLocale-DzliDDTm.js","./MarimoErrorOutput-Orp0blpZ.js","./useInstallPackage-RldLPyJs.js","./cell-link-BoUpLV2S.js","./datasource-CR_zEq5o.js","./state-kFdt1US2.js","./copy-icon-B69c-352.js","./markdown-renderer-C_xfLXiO.js","./es-CEEVxHsX.js","./focus-D18AHojc.js","./LazyAnyLanguageCodeMirror-jpEDlD0M.js","./chunk-OGVTOU66-CjNLT2C3.js","./katex-AwOI3EvM.js","./marked.esm-CHnOtnr3.js","./markdown-renderer-DdDKmWlR.css","./command-Qt3ng7cb.js","./RenderHTML-BzGWfPTJ.js","./useRunCells-BZ_OFvV4.js","./purify.es-N-2faAGj.js","./useIframeCapabilities-CU-WWxnz.js","./formats-B9CrBoaO.js","./download-CITws1-y.js","./emotion-is-prop-valid.esm-lG8j6oqk.js","./useDateFormatter-CV0QXb5P.js","./range-sshwVRcP.js","./table-BLx7B_us.js","./JsonOutput-B7vuddcd.css","./layout-Bd6wzfjT.js","./name-cell-input-CsDYsdH3.js","./esm-B3JckBtM.js","./objectWithoutPropertiesLoose-CboCOq4o.js","./name-cell-input-ujOhus_y.css","./floating-outline-p0aHdM2W.js","./readonly-python-code-DjP4vjBQ.js","./useAddCell-CVfRv5mq.js","./eye-off-D9zAYqG9.js","./process-output-4w8xDO0j.js","./esm-CCqLcax5.js","./dist-BRZzJw_5.js","./dist-P7JHert4.js","./dist-CoiWxjLF.js","./dist-DrrmBmzm.js","./dist-cVYW_wBR.js","./dist-Cv7ifwsi.js","./dist-ChHsi1N7.js","./dist-BAmo7Mv9.js","./dist-3oAtECdQ.js","./dist-D6Pwf0VF.js","./dist-Cd0uZhiN.js","./dist-DxRoHFaH.js","./dist-D9HMoxdZ.js","./dist-JtCdI6tY.js","./apl-iXnrDoYq.js","./asciiarmor-CK-aFa78.js","./asn1-DWJdxrMP.js","./brainfuck-0bMZHpH_.js","./clike-5SQqmvx2.js","./clojure-B0kIwyv8.js","./cmake-CLXeINvH.js","./cobol-C9SsG--s.js","./coffeescript-UIQG6RnU.js","./commonlisp-BBPumpJY.js","./crystal-CGN1wsuY.js","./css-aQ-Krb7T.js","./cypher-DEE4_Yec.js","./d-CgJ8N-gL.js","./diff-B8e18dKs.js","./dtd-DtwMcoo9.js","./dylan-Be6i1K-V.js","./ecl-D5tlhe8s.js","./eiffel-8SQWO4xP.js","./elm-CtGe_7Jw.js","./erlang-CNwX3Z_M.js","./factor-DgyyQiBQ.js","./simple-mode-CZ1ts7NY.js","./forth-CaVwPSxM.js","./fortran-B28t9xoj.js","./gas-BSiJHAcz.js","./gherkin-1QurHPOF.js","./groovy-DFOLwJLv.js","./haskell-CUN2jxPH.js","./haxe-BYzKptPQ.js","./idl-cdmrQY5J.js","./javascript-l5LYdpfx.js","./julia-DxiTohY8.js","./livescript-BZkzGFkJ.js","./lua-rVV1vLen.js","./mathematica-DktJ0aJB.js","./mbox-Ch6IVA7h.js","./mirc-CdWws4At.js","./mllike-CB0tp4Bz.js","./modelica-DQGg_xsi.js","./mscgen-vDSxnAXy.js","./mumps-BzlVzIzl.js","./nsis-bDE8IZXy.js","./ntriples-BndMB6TK.js","./octave-DhnkL0CH.js","./oz-DbZmNL9y.js","./pascal-DhE1sEjD.js","./perl-BOZHK4Y3.js","./pig-eswHTOE9.js","./powershell-pm9G_Qg5.js","./properties-7VoeFdHR.js","./protobuf-BAsuCsmK.js","./pug-CcL3ml0F.js","./puppet-DUYPK8CV.js","./python-UQl3_T6H.js","./q-CnvA_jxT.js","./r-fM1OLzJB.js","./rpm-D62D_dq6.js","./ruby-DemvBD0m.js","./sas-CZjYQi4h.js","./scheme-nPNaP0Qp.js","./shell-BE2ANxN1.js","./sieve-DXFUN4C7.js","./smalltalk-DwXXlSAY.js","./sparql-CgejAdiJ.js","./stylus-CslB9TS3.js","./swift-5t7SQPo8.js","./tcl-Ddpe8YBc.js","./textile-D_Db33mq.js","./toml-CgkLq_pv.js","./troff-6nX9d05T.js","./ttcn-cfg-ByNDYolW.js","./ttcn-Dd4SMoHT.js","./turtle-LDF8uFGv.js","./vb-DaLxM60T.js","./vbscript-CwitZ57u.js","./velocity-D6bc4mrP.js","./verilog-CIyPdzYJ.js","./vhdl-DfyhlM4K.js","./webidl-C23hA3Le.js","./xquery-BAVQXrAf.js","./yacas-DrybVty2.js","./z80-8KI6AMtY.js","./code-xml-MBUyxNtK.js","./ellipsis-DwHM80y-.js","./play-BJDBXApx.js","./trash-BUTJdkWl.js","./prop-types-C638SUfx.js","./layout-BjXzDXoG.css","./utilities.esm-FYD46c3d.js","./toggle-G1t0cQyf.js","./globals-D3SeIm1j.js","./share-CXQVxivL.js","./_baseSet-6FYvpjrm.js","./react-resizable-panels.browser.esm-BqxQegSf.js","./types-BLEgJ92v.js","./requests-DiQsDZob.js","./runs-yuOchwkU.js","./request-registry-CAqj3mAX.js","./ws-itdlXHqs.js","./panels-B4E3DsXP.css","./icon-32x32-ZZIB7rLH.js","./download-DobaYJPt.js","./edit-page-BC3j4y4f.js","./loro_wasm_bg-CghhyG7y.js","./useDeleteCell-GHwc6J4l.js","./add-cell-with-ai-Dx5UA23s.js","./blob-Dg_vNTSs.js","./cell-editor-D4tKLHiP.js","./useSplitCell-BnJiHHep.js","./dist-Ciq1Lh9M.js","./circle-check-Cr0N4h9T.js","./save-BOTLFf-P.js","./cell-editor-Iey559K_.css","./useCellActionButton-Woqd9LSB.js","./multi-icon-BOYRpNB_.js","./multi-icon-pwGWVz3d.css","./circle-plus-D1IRnTdM.js","./useNotebookActions-DQW0wwU6.js","./add-database-form-MNQmbAaT.js","./write-secret-modal-CLm48gMe.js","./field-DDKGFzpC.js","./form-DEraWoX5.js","./_baseEach-BH6a1vAB.js","./hasIn-DydgU7lx.js","./file-plus-corner-BO_uS88s.js","./globe-CY9im410.js","./square-leQTJTJJ.js","./CellStatus-CJVmn-JU.js","./workflow-ZGK5flRg.js","./CellStatus-2Psjnl5F.css","./useDependencyPanelTab-B0ZsFCYF.js","./kiosk-mode-DL9UBacr.js","./useBoolean-5kuXz69O.js","./arrow-left-DdsrQ78n.js","./clipboard-paste-CusmeEPf.js","./rotate-ccw-CF2xzGPz.js","./square-function-DxXFdbn8.js","./edit-page-Dstp9NQ5.css","./glide-data-editor-Brckuic5.js","./types-B42u_5hF.js","./click-outside-container-DS7-EhkB.js","./dist-enKhaMcN.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-KlUs_Sz3.js","./spec-qp_XZeSS.js","./react-vega-ENLQ2Qtg.js","./linear-CLezLCLy.js","./timer-BEJidwwG.js","./init-BYCsRZEq.js","./time-BARczBNs.js","./range-gMGfxVwZ.js","./treemap-F5PoC_M0.js","./path-_EHCEa2c.js","./colors-CWfEs9Oi.js","./ordinal-RiUP-mHf.js","./arc-D0XsJSsf.js","./math-D-qpUWKO.js","./array-D5VxClQs.js","./step-Ca7ZnceH.js","./line-ortW3H6T.js","./isString-CqoLqJdS.js","./react-plotly-CJq-XPHC.js","./vega-component-DpAAiTdH.js","./useDeepCompareMemoize-gzLRYatP.js","./_baseUniq-CsutM-S0.js","./slides-component-MkPkpql1.js","./slides-component-vtdQFHpk.css","./ImageComparisonComponent-B_O075Vu.js","./mermaid-BPkO79lo.js","./dist-CpSELpRR.js","./chunk-JA3XYJ7Z-D-10sxL1.js","./src-HwYBNPfa.js","./src-lcGySDV2.js","./chunk-S3R3BYOJ-II_Vp8ON.js","./chunk-ABZYJK2D-DdkiqU2a.js","./chunk-ATLVNIR6-CxCpMHNQ.js","./chunk-CVBHYZKI-lxEaq00s.js","./chunk-EXTU4WIE-DR8p8HbZ.js","./chunk-HN2XXSSU-DNIvfs-V.js","./chunk-JZLCHNYA-WLmAEJkU.js","./chunk-MI3HLSF2-SpVCtnNg.js","./chunk-N4CR4FBY-B6JRv1RJ.js","./chunk-QXUST7PY-CPmz228Z.js","./mermaid.core-B2uv0SYk.js","./isEmpty-DIxUV1UR.js","./chunk-XAJISQIX-tpKLXb8K.js","./katex-D_p4uM5H.js","./mhchem-L2lUt6CA.js"])))=>i.map(i=>d[i]);
2
+ var dE=Object.defineProperty;var uE=(qa,la,hr)=>la in qa?dE(qa,la,{enumerable:!0,configurable:!0,writable:!0,value:hr}):qa[la]=hr;var q=(qa,la,hr)=>uE(qa,typeof la!="symbol"?la+"":la,hr);import{o as cE,r as mE,s as fa,t as cu}from"./chunk-LvLJmgfZ.js";import{c as _l,i as ze,l as Tl,n as Oe,s as Rl,u as Al}from"./useEvent-DlWF5OMa.js";import{t as pE}from"./react-BGmjiNul.js";import{An as C1,Bn as k1,Bt as hE,F as fE,Gn as gE,Hr as xE,Ir as vE,Jr as S1,Kr as yE,Ln as Il,Nn as bE,Nt as wE,Pt as N1,Qr as Ln,Rr as DE,Tn as E1,Ur as jE,Vn as CE,W as mu,Xr as kE,Yr as pu,_r as SE,_t as hu,b as NE,ei as _1,ii as EE,li as _E,nt as TE,qr as RE,ri as Bn,ui as T1,v as R1,wn as fu,__tla as AE}from"./cells-D_SkyFDn.js";import{t as Hn}from"./react-dom-C9fstfnp.js";import{A as $r,B as Ce,C as Bt,E as IE,F as A1,I as ft,J as PE,N as G,P as L,R as F,S as Ia,T as U,U as ME,V as Pa,a as I1,b as ye,h as FE,i as P1,j as VE,k as We,n as M1,r as zE,s as gu,t as xu,v as OE,w as ee,x as F1,z as Ma}from"./zod-Cg4WLWh2.js";import{t as J}from"./compiler-runtime-DeeZ7FnK.js";import{t as $E}from"./get-CyLJYAfP.js";import{t as V1}from"./pick-DeQioq0G.js";import{n as LE}from"./useLifecycle-CmDXEyIC.js";import{t as Fa}from"./capitalize-DQeWKRGx.js";import{a as BE,i as vu,n as HE}from"./type-BdyvjzTI.js";import{i as WE,r as z1,t as UE}from"./tooltip-CrRUCOBw.js";import{A as KE,G as yu,H as ZE,I as qE,J as YE,K as Lr,L as GE,M as JE,N as QE,O as XE,Q as e_,R as t_,T as O1,U as a_,V as $1,W as Va,Y as L1,Z as B1,at as Wn,et as r_,g as n_,it as bu,j as i_,k as l_,lt as o_,ot as H1}from"./utilities.esm-FYD46c3d.js";import{a as za,d as se,f as Oa}from"./hotkeys-uKX61F1_.js";import{t as Br}from"./invariant-C6yE60hi.js";import{D as s_,O as d_,_ as u_,h as c_,i as m_,k as p_,l as h_,v as f_,x as g_}from"./utils-CJJIceVn.js";import{r as wu}from"./constants-Bkp4R3bQ.js";import{D as W1,E as x_,M as v_,a as y_,h as b_,i as U1,j as w_,k as Je,l as D_,n as j_,p as C_,r as Du,t as k_,w as S_}from"./config-babG4OBR.js";import{a as N_,c as E_,l as __,o as T_,r as R_,s as A_,t as I_}from"./switch-C9iBa4rX.js";import{t as P_}from"./globals-D3SeIm1j.js";import{t as Pl}from"./ErrorBoundary-Drf1manw.js";import{n as M_,r as Ct,t as Ml}from"./useEventListener-COkmyg1v.js";import{t as F_}from"./jsx-runtime-DN_bIXfG.js";import{n as $a,t as Se}from"./button-DuYGqRtX.js";import{n as Fl,t as K}from"./cn-C1rgT0yh.js";import{at as V_}from"./dist-CAcX026F.js";import{$ as z_,A as O_,C as $_,D as L_,E as ju,F as Cu,G as B_,H as H_,J as K1,K as W_,O as U_,P as ku,S as K_,T as Z1,U as q1,V as Y1,W as Z_,Y as Vl,b as q_,d as Y_,et as G_,j as G1,l as J_,nt as Q_,q as J1,r as X_,t as Q1,tt as eT,u as tT,v as aT,w as rT,x as Su,y as nT,__tla as iT}from"./JsonOutput-BLd1jTNA.js";import{c as lT,n as X1,p as oT,r as ga,t as sT}from"./once-CTiSlR1m.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{n as dT}from"./requests-C0HaHO6a.js";import{t as kt}from"./createLucideIcon-CW2xpJ57.js";import{A as uT,C as ev,D as cT,O as mT,S as pT,_ as hT,a as tv,b as fT,c as av,d as Un,f as rv,g as gT,h as xT,i as Nu,k as vT,l as yT,m as nv,n as bT,p as wT,r as xa,s as DT,t as jT,u as ta,v as CT,y as kT}from"./spec-qp_XZeSS.js";import{D as ST,E as NT,O as ET,h as _T,k as TT,l as RT,m as AT,n as IT,w as PT}from"./add-cell-with-ai-Dx5UA23s.js";import{t as MT,__tla as FT}from"./LazyAnyLanguageCodeMirror-jpEDlD0M.js";import{i as VT,r as zT}from"./chat-components-6dWNbFjV.js";import{a as OT,i as $T,n as LT,o as BT,t as iv}from"./useBoolean-5kuXz69O.js";import{_ as HT,a as WT,c as La,d as UT,f as KT,h as Hr,i as It,l as Eu,m as lv,n as Ba,o as zl,p as ov,r as Wr,s as dr,t as Ha}from"./select-D0g5GnIs.js";import{n as ZT,s as Ol}from"./download-CITws1-y.js";import{t as $l}from"./chevron-right-CqEd11Di.js";import{i as qT,o as YT}from"./maps-s2pQkyf5.js";import"./markdown-renderer-C_xfLXiO.js";import{u as GT}from"./toDate-5JckKRQn.js";import{P as sv,a as _u,c as JT,i as QT,o as XT,p as dv,r as uv,t as cv}from"./dropdown-menu-BP4_BZLr.js";import{t as eR}from"./code-xml-MBUyxNtK.js";import{t as tR}from"./download-DobaYJPt.js";import{i as aR}from"./file-video-camera-CZUg-nFA.js";import{r as rR,t as nR}from"./types-VzFAm7Cv.js";import{t as iR}from"./globe-CY9im410.js";import{n as Ll,t as Kn}from"./spinner-C1czjtp7.js";import{n as lR,t as Tu}from"./readonly-python-code-DjP4vjBQ.js";import{n as oR,t as Bl}from"./types-B42u_5hF.js";import{t as mv}from"./plus-CHesBJpY.js";import{t as sR}from"./refresh-cw-Din9uFKE.js";import{$ as pv,A as Ru,C as dR,D as uR,E as Au,G as cR,H as mR,J as Ur,K as Hl,L as Iu,M as Wl,N as hv,O as fv,P as Ul,Q as va,R as pR,T as Kl,U as hR,W as Wa,X as Ua,Y as Ka,Z as gv,_ as Zl,at as Kr,b as fR,c as gR,ct as ot,d as xv,et as vv,g as Zr,h as Zn,i as xR,it as vR,k as Pu,l as yR,lt as bR,m as ql,n as wR,nt as Mu,o as Fu,ot as DR,p as yv,q as bv,r as Vu,rt as ur,s as jR,st as Yl,t as zu,tt as Gl,u as Jl,v as Ou,w as CR}from"./input-CaEtLL8p.js";import{t as kR}from"./settings-MTlHVxz3.js";import{t as Ql}from"./square-function-DxXFdbn8.js";import{_ as Qe,a as st,c as at,d as cr,f as SR,g as wv,h as NR,i as ER,l as lt,n as _R,o as qn,p as Dv,r as TR,t as RR,u as ut,v as aa}from"./textarea-D2hGxqGj.js";import{a as AR,d as IR,i as PR,l as MR,o as jv,r as FR,s as VR,t as zR,u as OR}from"./column-preview-9nPwQyJZ.js";import{t as $R}from"./square-leQTJTJJ.js";import{t as Cv}from"./trash-2-C-lF7BNB.js";import{t as Xl}from"./triangle-alert-CbD0f2J6.js";import{i as kv,r as LR,t as BR}from"./es-FiXEquL2.js";import{t as vt}from"./preload-helper-BW0IMuFq.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{n as HR,t as ya}from"./use-toast-Bzf3rpev.js";import{r as qr}from"./useTheme-DfP1CWaW.js";import{C as eo,E as $u,S as to,_ as Ue,d as WR,f as Sv,g as Ht,h as UR,l as KR,m as ZR,p as qR,u as YR,v as Lu,w as _e,x as Yn}from"./Combination-D1TsGrBC.js";import{l as GR,r as Nv,t as JR}from"./dist-CBrDuocE.js";import{a as Bu,i as St,n as Hu,o as Wu,r as Uu,s as Ev,t as Pt}from"./tooltip-CvjcEpZC.js";import{d as ao,u as _v}from"./menu-items-9PZrU2e0.js";import"./dates-CdsE1R40.js";import{a as QR,n as XR,t as eA}from"./mode-BFwdGSZ7.js";import{a as Tv,f as Ku,h as Rv,i as tA,l as Av,m as aA,n as rA,o as ro,p as no,r as nA,s as iA,t as Gn,u as io,v as lo}from"./VisuallyHidden-BodIky8L.js";import{C as lA,D as oA,E as Iv,F as Pv,I as Mv,L as Yr,N as sA,O as Xe,R as Fv,n as dA,s as oo,t as Vv,x as uA,z as ba}from"./usePress-C2LPFxyv.js";import{t as cA}from"./SSRProvider-DD7JA3RM.js";import{n as Wt,r as mA,t as ra}from"./useDateFormatter-CV0QXb5P.js";import{n as pA,t as qe}from"./context-BAYdLMF_.js";import{t as hA}from"./useNumberFormatter-D8ks3oPN.js";import{a as fA,i as gA,r as zv,t as Ov}from"./popover-DtnzNVk-.js";import{i as Gr,r as xA}from"./numbers-C9_R_vlY.js";import{n as vA,t as $v}from"./useDebounce-em3gna-v.js";import{t as yA}from"./ImperativeModal-q6QlC2aZ.js";import"./share-CXQVxivL.js";import{a as Lv,i as Bv,n as Jr,r as bA,t as mr}from"./error-banner-DU5Qb8a8.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as so}from"./copy-icon-B69c-352.js";import{t as Me}from"./RenderHTML-BzGWfPTJ.js";import"./purify.es-N-2faAGj.js";import{a as Hv,c as wA,i as Wv,l as DA,n as Zu,o as jA,r as Uv,s as CA}from"./multi-map-fjX9ImVF.js";import{n as kA,r as qu,t as uo}from"./alert-BEdExd6A.js";import{i as na,n as ia,r as Jn,t as Qn}from"./tabs-Ctk4D03n.js";import{n as Nt}from"./useAsyncData-BJJJOr9W.js";import{a as SA,c as NA,o as EA,r as _A,s as TA,t as RA}from"./command-Qt3ng7cb.js";import{t as Kv}from"./dist-DOFFh6Ii.js";import{__tla as AA}from"./chunk-OGVTOU66-CjNLT2C3.js";import"./katex-AwOI3EvM.js";import"./marked.esm-CHnOtnr3.js";import"./es-CEEVxHsX.js";import{a as IA,o as PA}from"./focus-D18AHojc.js";import{a as Zv,i as Yu,n as Gu,o as Qr,r as pr,t as Ju}from"./table--_20dwBZ.js";import{t as Za}from"./useDeepCompareMemoize-gzLRYatP.js";import{t as qv}from"./renderShortcut-D0Pei-OA.js";import{t as Xn}from"./label-qwandMoh.js";import{t as MA}from"./chat-display-Cfg38gMM.js";import"./esm-B3JckBtM.js";import{n as FA}from"./icons-D4lB4En9.js";import{t as VA}from"./bundle.esm-B0Sy2M4C.js";import{a as Yv,c as zA,d as Gv,f as co,i as OA,l as $A,n as Jv,o as LA,p as wa,r as BA,s as Qv,t as HA,u as de}from"./form-DEraWoX5.js";import"./react-resizable-panels.browser.esm-BqxQegSf.js";import{a as WA,i as Xv,n as ey,t as ty}from"./field-DDKGFzpC.js";import{i as UA,n as KA,r as ZA}from"./floating-outline-p0aHdM2W.js";Promise.all([(()=>{try{return AE}catch{}})(),(()=>{try{return iT}catch{}})(),(()=>{try{return FT}catch{}})(),(()=>{try{return AA}catch{}})()]).then(async()=>{(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(let n of r)if(n.type==="childList")for(let i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function e(r){let n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(r){if(r.ep)return;r.ep=!0;let n=e(r);fetch(r.href,n)}})();var qa=kt("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),la=kt("arrow-up-wide-narrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]),hr=kt("binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),ry=kt("brackets",[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]]),ny=kt("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]),iy=kt("copy-slash",[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),ly=kt("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]),oy=kt("group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]),sy=kt("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),dy=kt("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]),ac=kt("square-dashed-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]),uy=kt("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]),rc=kt("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),cy=fa(T1(),1);const Da={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function my(t,e,a){let r=t.length,n=e.length,i=Array.from({length:r+1},()=>Array.from({length:n+1}).fill(0));for(let u=0;u<=r;u++)i[u][0]=u;for(let u=0;u<=n;u++)i[0][u]=u;for(let u=1;u<=r;u++)for(let c=1;c<=n;c++)i[u][c]=a(t[u-1],e[c-1])?i[u-1][c-1]:1+Math.min(i[u-1][c],i[u][c-1],i[u-1][c-1]);let l=[],o=r,d=n;for(;o>0||d>0;)o>0&&d>0&&a(t[o-1],e[d-1])?(l.unshift({type:Da.MATCH,position:o-1}),o--,d--):o>0&&d>0&&i[o][d]===i[o-1][d-1]+1?(l.unshift({type:Da.SUBSTITUTE,position:o-1}),o--,d--):o>0&&i[o][d]===i[o-1][d]+1?(l.unshift({type:Da.DELETE,position:o-1}),o--):d>0&&i[o][d]===i[o][d-1]+1&&(l.unshift({type:Da.INSERT,position:o}),d--);return{distance:i[r][n],operations:l}}function py(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case Da.MATCH:r.push(t[n]),n++;break;case Da.DELETE:n++;break;case Da.INSERT:r.push(a);break;case Da.SUBSTITUTE:r.push(a),n++;break}return r}function hy(t,e,a,r){let n=my(t,e,a);return{merged:py(t,n.operations,r),edits:n}}var ei=0,ti="";function fy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let o=(e==null?void 0:e.cells.map(d=>d.id??Ln.create()))||[];return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,null])),notebookCellData:new Map(o.map((d,u)=>[d,(e==null?void 0:e.cells[u])||nc()]))}}if(!e){let o=t.cells.map(d=>d.id??Ln.create());return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(o.map(d=>[d,nc()]))}}let{merged:n,edits:i}=hy(t.cells,e.cells,(o,d)=>{let u=o.code_hash;return u?d.code_hash===u:!1},ic());i.distance>0&&se.warn("Session and notebook have different cells, attempted merge.");let l=[];for(let o=0;o<e.cells.length;o++){let d=e.cells[o];if(d){let u=d.id??Ln.create();l.push(u);let c=n[o]||ic();c.id=u,a.set(u,c),r.set(u,d)}else se.warn("Merged notebook cell is null at index",o)}return{cellIds:l,sessionCellData:a,notebookCellData:r}}function nc(){return{id:Ln.create(),name:ti,code:ti,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function ic(){return{id:Ln.create(),code_hash:null,console:[],outputs:[]}}function gy(t,e){var a,r,n;return{id:t,name:e.name??ti,code:e.code??ti,edited:!1,lastCodeRun:null,lastExecutionTime:null,config:{column:((a=e.config)==null?void 0:a.column)??null,disabled:((r=e.config)==null?void 0:r.disabled)??!1,hide_code:((n=e.config)==null?void 0:n.hide_code)??!1},serializedEditorState:null}}function xy(t){let e=fE();if(!t)return e;let a=t.outputs||[],r=a.find(i=>i.type==="data")||a.find(i=>i.type==="error")||a[0];if(r){if(r.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:r.evalue}],mimetype:"application/vnd.marimo+error",timestamp:ei};else if(r.type==="data"){let i=Object.keys(r.data)[0];e.output={channel:"output",data:Object.values(r.data)[0],mimetype:i,timestamp:ei}}}let n=t.console||[];return{...e,outline:e.output?TE(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ei}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ei})}}function vy(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=fy(t,e);if(a.length===0)return null;let i={},l={};for(let o of a){let d=r.get(o),u=n.get(o);u&&(i[o]=gy(o,u)),l[o]=xy(d)}return{cellIds:vE.from([a]),cellData:i,cellRuntime:l,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var yy=J(),lc=Object.freeze({left:0,top:0,width:16,height:16}),ai=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xr=Object.freeze({...lc,...ai}),po=Object.freeze({...Xr,body:"",hidden:!1}),by=Object.freeze({width:null,height:null}),oc=Object.freeze({...by,...ai});function wy(t,e=0){let a=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(a===""){let n=parseInt(t);return isNaN(n)?0:r(n)}else if(a!==t){let n=0;switch(a){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-a.length));return isNaN(i)?0:(i/=n,i%1==0?r(i):0)}}return e}var Dy=/[\s,]+/;function jy(t,e){e.split(Dy).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var sc={...oc,preserveAspectRatio:""};function dc(t){let e={...sc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=wy(a("rotate","")),jy(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function Cy(t,e){for(let a in sc)if(t[a]!==e[a])return!0;return!1}var uc=/^[a-z0-9]+(-[a-z0-9]+)*$/,en=(t,e,a,r="")=>{let n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let o=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:o};return e&&!ri(u)?null:u}let i=n[0],l=i.split("-");if(l.length>1){let o={provider:r,prefix:l.shift(),name:l.join("-")};return e&&!ri(o)?null:o}if(a&&r===""){let o={provider:r,prefix:"",name:i};return e&&!ri(o,a)?null:o}return null},ri=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function ky(t,e){let a={};!t.hFlip!=!e.hFlip&&(a.hFlip=!0),!t.vFlip!=!e.vFlip&&(a.vFlip=!0);let r=((t.rotate||0)+(e.rotate||0))%4;return r&&(a.rotate=r),a}function cc(t,e){let a=ky(t,e);for(let r in po)r in ai?r in t&&!(r in a)&&(a[r]=ai[r]):r in e?a[r]=e[r]:r in t&&(a[r]=t[r]);return a}function Sy(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(l){if(a[l])return n[l]=[];if(!(l in n)){n[l]=null;let o=r[l]&&r[l].parent,d=o&&i(o);d&&(n[l]=[o].concat(d))}return n[l]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function Ny(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function l(o){i=cc(r[o]||n[o],i)}return l(e),a.forEach(l),cc(t,i)}function mc(t,e){let a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(n=>{e(n,null),a.push(n)});let r=Sy(t);for(let n in r){let i=r[n];i&&(e(n,Ny(t,n,i)),a.push(n))}return a}var Ey={provider:"",aliases:{},not_found:{},...lc};function ho(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function pc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ho(t,Ey))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!ho(i,po))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],l=i.parent;if(!n||typeof l!="string"||!a[l]&&!r[l]||!ho(i,po))return null}return e}var ni=Object.create(null);function _y(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function oa(t,e){let a=ni[t]||(ni[t]=Object.create(null));return a[e]||(a[e]=_y(t,e))}function hc(t,e){return pc(e)?mc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function Ty(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Ry(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(ni)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(ni[r]||{})).forEach(n=>{let i=oa(r,n);a=a.concat(Object.keys(i.icons).map(l=>(r===""?"":"@"+r+":")+n+":"+l))})}),a}var tn=!1;function fc(t){return typeof t=="boolean"&&(tn=t),tn}function an(t){let e=typeof t=="string"?en(t,!0,tn):t;if(e){let a=oa(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function gc(t,e){let a=en(t,!0,tn);if(!a)return!1;let r=oa(a.provider,a.prefix);return e?Ty(r,a.name,e):(r.missing.add(a.name),!0)}function xc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),tn&&!e&&!t.prefix){let r=!1;return pc(t)&&(t.prefix="",mc(t,(n,i)=>{gc(n,i)&&(r=!0)})),r}let a=t.prefix;return ri({provider:e,prefix:a,name:"a"})?!!hc(oa(e,a),t):!1}function vc(t){return!!an(t)}function Ay(t){let e=an(t);return e&&{...Xr,...e}}function Iy(t){let e={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((n,i)=>n.provider===i.provider?n.prefix===i.prefix?n.name.localeCompare(i.name):n.prefix.localeCompare(i.prefix):n.provider.localeCompare(i.provider));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;let i=n.provider,l=n.prefix,o=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[l]||(d[l]=oa(i,l)),c;c=o in u.icons?e.loaded:l===""||u.missing.has(o)?e.missing:e.pending;let p={provider:i,prefix:l,name:o};c.push(p)}),e}function yc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function Py(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let a=!1,r=t.provider,n=t.prefix;e.forEach(i=>{let l=i.icons,o=l.pending.length;l.pending=l.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])l.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))l.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),l.pending.length!==o&&(a||yc([t],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}var My=0;function Fy(t,e,a){let r=My++,n=yc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),n}var fo=Object.create(null);function bc(t,e){fo[t]=e}function go(t){return fo[t]||fo[""]}function Vy(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?en(n,e,a):n;i&&r.push(i)}),r}var zy={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Oy(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,l;if(t.random){let S=t.resources.slice(0);for(l=[];S.length>1;){let N=Math.floor(Math.random()*S.length);l.push(S[N]),S=S.slice(0,N).concat(S.slice(N+1))}l=l.concat(S)}else l=t.resources.slice(i).concat(t.resources.slice(0,i));let o=Date.now(),d="pending",u=0,c,p=null,m=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(p=(clearTimeout(p),null))}function f(){d==="pending"&&(d="aborted"),g(),m.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),m=[]}function v(S,N){N&&(h=[]),typeof S=="function"&&h.push(S)}function b(){return{startTime:o,payload:e,status:d,queriesSent:u,queriesPending:m.length,subscribe:v,abort:f}}function w(){d="failed",h.forEach(S=>{S(void 0,c)})}function D(){m.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),m=[]}function j(S,N,y){let C=N!=="success";switch(m=m.filter(_=>_!==S),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(N==="abort"){c=y,w();return}if(C){c=y,m.length||(l.length?k():w());return}if(g(),D(),!t.random){let _=t.resources.indexOf(S.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function k(){if(d!=="pending")return;g();let S=l.shift();if(S===void 0){if(m.length){p=setTimeout(()=>{g(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let N={status:"pending",resource:S,callback:(y,C)=>{j(N,y,C)}};m.push(N),u++,p=setTimeout(k,t.rotate),a(S,e,N.callback)}return setTimeout(k),b}function wc(t){let e={...zy,...t},a=[];function r(){a=a.filter(l=>l().status==="pending")}function n(l,o,d){let u=Oy(e,l,o,(c,p)=>{r(),d&&d(c,p)});return a.push(u),u}function i(l){return a.find(o=>l(o))||null}return{query:n,find:i,setIndex:l=>{e.index=l},getIndex:()=>e.index,cleanup:r}}function xo(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}for(var ii=Object.create(null),li=["https://api.simplesvg.com","https://api.unisvg.com"],vo=[];li.length>0;)li.length===1||Math.random()>.5?vo.push(li.shift()):vo.push(li.pop());ii[""]=xo({resources:["https://api.iconify.design"].concat(vo)});function Dc(t,e){let a=xo(e);return a===null?!1:(ii[t]=a,!0)}function oi(t){return ii[t]}function $y(){return Object.keys(ii)}function jc(){}var yo=Object.create(null);function Ly(t){if(!yo[t]){let e=oi(t);if(!e)return;yo[t]={config:e,redundancy:wc(e)}}return yo[t]}function Cc(t,e,a){let r,n;if(typeof t=="string"){let i=go(t);if(!i)return a(void 0,424),jc;n=i.send;let l=Ly(t);l&&(r=l.redundancy)}else{let i=xo(t);if(i){r=wc(i);let l=go(t.resources?t.resources[0]:"");l&&(n=l.send)}}return!r||!n?(a(void 0,424),jc):r.query(e,n,a)().abort}function kc(){}function By(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Py(t)}))}function Hy(t){let e=[],a=[];return t.forEach(r=>{(r.match(uc)?e:a).push(r)}),{valid:e,invalid:a}}function rn(t,e,a){function r(){let n=t.pendingIcons;e.forEach(i=>{n&&n.delete(i),t.icons[i]||t.missing.add(i)})}if(a&&typeof a=="object")try{if(!hc(t,a).length){r();return}}catch(n){console.error(n)}r(),By(t)}function Sc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Wy(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;let{provider:a,prefix:r}=t,n=t.iconsToLoad;if(delete t.iconsToLoad,!n||!n.length)return;let i=t.loadIcon;if(t.loadIcons&&(n.length>1||!i)){Sc(t.loadIcons(n,r,a),u=>{rn(t,n,u)});return}if(i){n.forEach(u=>{Sc(i(u,r,a),c=>{rn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:l,invalid:o}=Hy(n);if(o.length&&rn(t,o,null),!l.length)return;let d=r.match(uc)?go(a):null;if(!d){rn(t,l,null);return}d.prepare(a,r,l).forEach(u=>{Cc(a,u,c=>{rn(t,u.icons,c)})})}))}var bo=(t,e)=>{let a=Iy(Vy(t,!0,fc()));if(!a.pending.length){let o=!0;return e&&setTimeout(()=>{o&&e(a.loaded,a.missing,a.pending,kc)}),()=>{o=!1}}let r=Object.create(null),n=[],i,l;return a.pending.forEach(o=>{let{provider:d,prefix:u}=o;if(u===l&&d===i)return;i=d,l=u,n.push(oa(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(o=>{let{provider:d,prefix:u,name:c}=o,p=oa(d,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(c)||(m.add(c),r[d][u].push(c))}),n.forEach(o=>{let d=r[o.provider][o.prefix];d.length&&Wy(o,d)}),e?Fy(e,a,n):kc},Uy=t=>new Promise((e,a)=>{let r=typeof t=="string"?en(t,!0):t;if(!r){a(t);return}bo([r||t],n=>{if(n.length&&r){let i=an(r);if(i){e({...Xr,...i});return}}a(t)})});function Nc(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Ky(t,e){if(typeof t=="object")return{data:Nc(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=Nc(t);if(n)return{data:n,value:t}}let a=en(t,!0,!0);if(!a)return{value:t};let r=an(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:bo([a],()=>e(t,a,an(a)))}}var Ec=!1;try{Ec=navigator.vendor.indexOf("Apple")===0}catch{}function Zy(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Ec||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var qy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Yy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(t,e,a){if(e===1)return t;if(a||(a=100),typeof t=="number")return Math.ceil(t*e*a)/a;if(typeof t!="string")return t;let r=t.split(qy);if(r===null||!r.length)return t;let n=[],i=r.shift(),l=Yy.test(i);for(;;){if(l){let o=parseFloat(i);isNaN(o)?n.push(i):n.push(Math.ceil(o*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");l=!l}}function Gy(t,e="defs"){let a="",r=t.indexOf("<"+e);for(;r>=0;){let n=t.indexOf(">",r),i=t.indexOf("</"+e);if(n===-1||i===-1)break;let l=t.indexOf(">",i);if(l===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(l+1)}return{defs:a,content:t}}function Jy(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Qy(t,e,a){let r=Gy(t);return Jy(r.defs,e+r.content+a)}var Xy=t=>t==="unset"||t==="undefined"||t==="none";function _c(t,e){let a={...Xr,...t},r={...oc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let v=[],b=f.hFlip,w=f.vFlip,D=f.rotate;b?w?D+=2:(v.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),v.push("scale(-1 1)"),n.top=n.left=0):w&&(v.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),v.push("scale(1 -1)"),n.top=n.left=0);let j;switch(D<0&&(D-=Math.floor(D/4)*4),D%=4,D){case 1:j=n.height/2+n.top,v.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:v.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,v.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}D%2==1&&(n.left!==n.top&&(j=n.left,n.left=n.top,n.top=j),n.width!==n.height&&(j=n.width,n.width=n.height,n.height=j)),v.length&&(i=Qy(i,'<g transform="'+v.join(" ")+'">',"</g>"))});let l=r.width,o=r.height,d=n.width,u=n.height,c,p;l===null?(p=o===null?"1em":o==="auto"?u:o,c=wo(p,d/u)):(c=l==="auto"?d:l,p=o===null?wo(c,u/d):o==="auto"?u:o);let m={},h=(f,v)=>{Xy(v)||(m[f]=v.toString())};h("width",c),h("height",p);let g=[n.left,n.top,d,u];return m.viewBox=g.join(" "),{attributes:m,viewBox:g,body:i}}function Do(t,e){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in e)a+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+t+"</svg>"}function eb(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function tb(t){return"data:image/svg+xml,"+eb(t)}function Tc(t){return'url("'+tb(t)+'")'}var si=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function ab(t){si=t}function rb(){return si}function nb(t,e){let a=oi(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(l=>{n=Math.max(n,l.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function ib(t){return t===404}var lb=(t,e,a)=>{let r=[],n=nb(t,e),i="icons",l={type:i,provider:t,prefix:e,icons:[]},o=0;return a.forEach((d,u)=>{o+=d.length+1,o>=n&&u>0&&(r.push(l),l={type:i,provider:t,prefix:e,icons:[]},o=d.length),l.icons.push(d)}),r.push(l),r};function ob(t){if(typeof t=="string"){let e=oi(t);if(e)return e.path}return"/"}var sb={prepare:lb,send:(t,e,a)=>{if(!si){a("abort",424);return}let r=ob(e.provider);switch(e.type){case"icons":{let i=e.prefix,l=e.icons.join(","),o=new URLSearchParams({icons:l});r+=i+".json?"+o.toString();break}case"custom":{let i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:a("abort",400);return}let n=503;si(t+r).then(i=>{let l=i.status;if(l!==200){setTimeout(()=>{a(ib(l)?"abort":"next",l)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?a("abort",i):a("next",n)});return}setTimeout(()=>{a("success",i)})}).catch(()=>{a("next",n)})}};function db(t,e,a){oa(a||"",e).loadIcons=t}function ub(t,e,a){oa(a||"",e).loadIcon=t}var jo="data-style",Rc="";function cb(t){Rc=t}function Ac(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(jo));a||(a=document.createElement("style"),a.setAttribute(jo,jo),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Rc}function Ic(){bc("",sb),fc(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||!r||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!xc(r))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let a in e){let r="IconifyProviders["+a+"] is invalid.";try{let n=e[a];if(typeof n!="object"||!n||n.resources===void 0)continue;Dc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:vc,iconExists:vc,getIcon:Ay,listIcons:Ry,addIcon:gc,addCollection:xc,calculateSize:wo,buildIcon:_c,iconToHTML:Do,svgToURL:Tc,loadIcons:bo,loadIcon:Uy,addAPIProvider:Dc,setCustomIconLoader:ub,setCustomIconsLoader:db,appendCustomStyle:cb,_api:{getAPIConfig:oi,setAPIModule:bc,sendAPIQuery:Cc,setFetch:ab,getFetch:rb,listAPIProviders:$y}}}var Co={"background-color":"currentColor"},Pc={"background-color":"transparent"},Mc={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Fc={"-webkit-mask":Co,mask:Co,background:Pc};for(let t in Fc){let e=Fc[t];for(let a in Mc)e[t+"-"+a]=Mc[a]}function Vc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function mb(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,l=Tc(Do(n,{...i,width:e.width+"",height:e.height+""})),o=r.style,d={"--svg":l,width:Vc(i.width),height:Vc(i.height),...a?Co:Pc};for(let u in d)o.setProperty(u,d[u]);return r}var nn;function pb(){try{nn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{nn=null}}function hb(t){return nn===void 0&&pb(),nn?nn.createHTML(t):t}function fb(t){let e=document.createElement("span"),a=t.attributes,r="";return a.width||(r="width: inherit;"),a.height||(r+="height: inherit;"),r&&(a.style=r),e.innerHTML=hb(Do(t.body,a)),e.firstChild}function ko(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function zc(t,e){let a=e.icon.data,r=e.customisations,n=_c(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,l;i==="svg"?l=fb(n):l=mb(n,{...Xr,...a},i==="mask");let o=ko(t);o?l.tagName==="SPAN"&&o.tagName===l.tagName?o.setAttribute("style",l.getAttribute("style")):t.replaceChild(l,o):t.appendChild(l)}function Oc(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function gb(t="iconify-icon"){let e,a;try{e=window.customElements,a=window.HTMLElement}catch{return}if(!e||!a)return;let r=e.get(t);if(r)return r;let n=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends a{constructor(){super();q(this,"_shadowRoot");q(this,"_initialised",!1);q(this,"_state");q(this,"_checkQueued",!1);q(this,"_connected",!1);q(this,"_observer",null);q(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Ac(d,u),this._state=Oc({value:""},u),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return n.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let u=this.hasAttribute("inline"),c=this._state;u!==c.inline&&(c.inline=u,Ac(this._shadowRoot,u));break}case"noobserver":this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){let d=this.getAttribute("icon");if(d&&d.slice(0,1)==="{")try{return JSON.parse(d)}catch{}return d}set icon(d){typeof d=="object"&&(d=JSON.stringify(d)),this.setAttribute("icon",d)}get inline(){return this.hasAttribute("inline")}set inline(d){d?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(d){d?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let d=this._state;if(d.rendered){let u=this._shadowRoot;if(d.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}zc(u,d)}}get status(){let d=this._state;return d.rendered?"rendered":d.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let d=this._state,u=this.getAttribute("icon");if(u!==d.icon.value){this._iconChanged(u);return}if(!d.rendered||!this._visible)return;let c=this.getAttribute("mode"),p=dc(this);(d.attrMode!==c||Cy(d.customisations,p)||!ko(this._shadowRoot))&&this._renderIcon(d.icon,p,c)}_iconChanged(d){let u=Ky(d,(c,p,m)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let g={value:c,name:p,data:m};g.data?this._gotIconData(g):h.icon=g});u.data?this._gotIconData(u):this._state=Oc(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=ko(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,dc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let p=Zy(d.data.body,c),m=this._state.inline;zc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:m,customisations:u,attrMode:c,renderedMode:p})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let u=d.some(c=>c.isIntersecting);u!==this._visible&&(this._visible=u,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};n.forEach(o=>{o in i.prototype||Object.defineProperty(i.prototype,o,{get:function(){return this.getAttribute(o)},set:function(d){d===null?this.removeAttribute(o):this.setAttribute(o,d)}})});let l=Ic();for(let o in l)i[o]=i.prototype[o]=l[o];return e.define(t,i),i}var{enableCache:qA,disableCache:YA,iconLoaded:GA,iconExists:JA,getIcon:QA,listIcons:XA,addIcon:e6,addCollection:t6,calculateSize:a6,buildIcon:r6,iconToHTML:n6,svgToURL:i6,loadIcons:l6,loadIcon:o6,setCustomIconLoader:s6,setCustomIconsLoader:d6,addAPIProvider:u6,_api:c6}=gb()||Ic(),x=fa(pE(),1),s=fa(F_(),1);const xb=()=>((0,yy.c)(1),null);var $c=J();const Lc=(0,x.memo)(t=>{let e=(0,$c.c)(3),{children:a}=t,{theme:r}=qr(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),()=>{document.body.classList.remove(r,`${r}-theme`)}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,x.useLayoutEffect)(n,i),a});Lc.displayName="ThemeProvider";const vb=t=>{let e=(0,$c.c)(3),{variables:a,children:r}=t,n;return e[0]!==r||e[1]!==a?(n=(0,s.jsx)("div",{className:"contents",style:a,children:r}),e[0]=r,e[1]=a,e[2]=n):n=e[2],n},So=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:x.lazy(()=>a())}};function yb(){return window.ResizeObserver!==void 0}function di(t){let{ref:e,box:a,onResize:r}=t;(0,x.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(yb()){let i=new window.ResizeObserver(l=>{l.length&&r()});return i.observe(n,{box:a}),()=>{n&&i.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,a])}var bb=Hn();function wb(t,e=!0){let[a,r]=(0,x.useState)(!0),n=a&&e;return ba(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),Bc(t,n,(0,x.useCallback)(()=>r(!1),[])),n}function Db(t,e){let[a,r]=(0,x.useState)(e?"open":"closed");switch(a){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let n=a==="exiting";return Bc(t,n,(0,x.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function Bc(t,e,a){ba(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){a();return}let r=t.current.getAnimations();if(r.length===0){a();return}let n=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{n||(0,bb.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Ut={top:"top",bottom:"top",left:"left",right:"left"},ui={top:"bottom",bottom:"top",left:"right",right:"left"},jb={top:"left",left:"top"},No={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},ci={},rt=typeof document<"u"?window.visualViewport:null;function Wc(t){let e=0,a=0,r=0,n=0,i=0,l=0,o={},d=((rt==null?void 0:rt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(rt==null?void 0:rt.width)??r,a=(rt==null?void 0:rt.height)??n,o.top=u.scrollTop||t.scrollTop,o.left=u.scrollLeft||t.scrollLeft,rt&&(i=rt.offsetTop,l=rt.offsetLeft)}else({width:e,height:a,top:i,left:l}=fr(t,!1)),o.top=t.scrollTop,o.left=t.scrollLeft,r=e,n=a;return uA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(o.top=0,o.left=0,i=(rt==null?void 0:rt.pageTop)??0,l=(rt==null?void 0:rt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:o,top:i,left:l}}function Cb(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Uc(t,e,a,r,n,i,l){let o=n.scroll[t]??0,d=r[No[t]],u=r.scroll[Ut[t]]+i,c=d+r.scroll[Ut[t]]-i,p=e-o+l[t]-r[Ut[t]],m=e-o+a+l[t]-r[Ut[t]];return p<u?u-p:m>c?Math.max(c-m,u-p):0}function kb(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Kc(t){if(ci[t])return ci[t];let[e,a]=t.split(" "),r=Ut[e]||"right",n=jb[r];Ut[a]||(a="center");let i=No[r],l=No[n];return ci[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:l},ci[t]}function Eo(t,e,a,r,n,i,l,o,d,u){let{placement:c,crossPlacement:p,axis:m,crossAxis:h,size:g,crossSize:f}=r,v={};v[h]=t[h]??0,p==="center"?v[h]+=((t[f]??0)-(a[f]??0))/2:p!==h&&(v[h]+=(t[f]??0)-(a[f]??0)),v[h]+=i;let b=t[h]-a[f]+d+u,w=t[h]+t[f]-d-u;if(v[h]=Mu(v[h],b,w),c===m){let D=o?l[g]:e[Hc[g]];v[ui[m]]=Math.floor(D-t[m]+n)}else v[m]=Math.floor(t[m]+t[g]+n);return v}function Sb(t,e,a,r,n,i,l,o){let d=r?a.height:e[Hc.height],u=t.top==null?a.top+(d-(t.bottom??0)-l):a.top+t.top,c=o==="top"?Math.max(0,u+l-(e.top+(e.scroll.top??0))-((n.top??0)+(n.bottom??0)+i)):Math.max(0,e.height+e.top+(e.scroll.top??0)-u-((n.top??0)+(n.bottom??0)+i));return Math.min(e.height-i*2,c)}function Zc(t,e,a,r,n,i){let{placement:l,axis:o,size:d}=i;return l===o?Math.max(0,a[o]-t[o]-(t.scroll[o]??0)+e[o]-(r[o]??0)-r[ui[o]]-n):Math.max(0,t[d]+t[o]+t.scroll[o]-e[o]-a[o]-a[d]-(r[o]??0)-r[ui[o]]-n)}function Nb(t,e,a,r,n,i,l,o,d,u,c,p,m,h,g,f){let v=Kc(t),{size:b,crossAxis:w,crossSize:D,placement:j,crossPlacement:k}=v,S=Eo(e,o,a,v,c,p,u,m,g,f),N=c,y=Zc(o,u,e,n,i+c,v);if(l&&r[b]>y){let z=Kc(`${ui[j]} ${k}`),$=Eo(e,o,a,z,c,p,u,m,g,f);Zc(o,u,e,n,i+c,z)>y&&(v=z,S=$,N=c)}let C="bottom";v.axis==="top"?v.placement==="top"?C="top":v.placement==="bottom"&&(C="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?C="bottom":v.crossPlacement==="bottom"&&(C="top"));let _=Uc(w,S[w],a[D],o,d,i,u);S[w]+=_;let E=Sb(S,o,u,m,n,i,a.height,C);h&&h<E&&(E=h),a.height=Math.min(a.height,E),S=Eo(e,o,a,v,N,p,u,m,g,f),_=Uc(w,S[w],a[D],o,d,i,u),S[w]+=_;let R={},P=e[w]-S[w]-n[Ut[w]],A=P+.5*e[D],V=g/2+f,T=Ut[w]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),I=a[D]-T-g/2-f;R[w]=Mu(Mu(A,e[w]+g/2-(S[w]+n[Ut[w]]),e[w]+e[D]-g/2-(S[w]+n[Ut[w]])),V,I),{placement:j,crossPlacement:k}=v,g?P=R[w]:k==="right"?P+=e[D]:k==="center"&&(P+=e[D]/2);let M=j==="left"||j==="top"?a[b]:0,O={x:j==="top"||j==="bottom"?P:M,y:j==="left"||j==="right"?P:M};return{position:S,maxHeight:E,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:j,triggerAnchorPoint:O}}function Eb(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:l,boundaryElement:o,offset:d,crossOffset:u,maxHeight:c,arrowSize:p=0,arrowBoundaryOffset:m=0}=t,h=r instanceof HTMLElement?_b(r):document.documentElement,g=h===document.documentElement,f=window.getComputedStyle(h).position,v=!!f&&f!=="static",b=g?fr(a,!1):qc(a,h,!1);if(!g){let{marginTop:y,marginLeft:C}=window.getComputedStyle(a);b.top+=parseInt(y,10)||0,b.left+=parseInt(C,10)||0}let w=fr(r,!0),D=kb(r);w.width+=(D.left??0)+(D.right??0),w.height+=(D.top??0)+(D.bottom??0);let j=Cb(n),k=Wc(o),S=Wc(h),N=o.tagName==="BODY"?fr(h,!1):qc(h,o,!1);return h.tagName==="HTML"&&o.tagName==="BODY"&&(S.scroll.top=0,S.scroll.left=0),Nb(e,b,w,j,D,i,l,k,S,N,d,u,v,c,p,m)}function _o(t,e){let{top:a,left:r,width:n,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(n=t.offsetWidth,i=t.offsetHeight),{top:a,left:r,width:n,height:i}}function fr(t,e){let{top:a,left:r,width:n,height:i}=_o(t,e),{scrollTop:l,scrollLeft:o,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+l-d,left:r+o-u,width:n,height:i}}function qc(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=_o(t,a);else{n=fr(t,a);let i=fr(e,a),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function _b(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Yc(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Yc(e);)e=e.parentElement;return e||document.documentElement}function Yc(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}var Tb=new WeakMap;function Rb(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,x.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let o=r||Tb.get(e.current);o&&o()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function gr(t,e){return t-e*Math.floor(t/e)}var Gc=1721426;function Ya(t,e,a,r){e=ln(t,e);let n=e-1,i=-2;return a<=2?i=0:ja(e)&&(i=-1),Gc-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function ja(t){return t%4==0&&(t%100!=0||t%400==0)}function ln(t,e){return t==="BC"?1-e:e}function mi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Ab={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},gt=class{fromJulianDay(t){let e=t,a=e-Gc,r=Math.floor(a/146097),n=gr(a,146097),i=Math.floor(n/36524),l=gr(n,36524),o=Math.floor(l/1461),d=gr(l,1461),u=Math.floor(d/365),[c,p]=mi(r*400+i*100+o*4+u+(i!==4&&u!==4?1:0)),m=e-Ya(c,p,1,1),h=2;e<Ya(c,p,3,1)?h=0:ja(p)&&(h=1);let g=Math.floor(((m+h)*12+373)/367);return new nt(c,p,g,e-Ya(c,p,g,1)+1)}toJulianDay(t){return Ya(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Ab[ja(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ja(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}},Ib={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ke(t,e){return e=Fe(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Pb(t,e){return e=Fe(e,t.calendar),t=Ga(t),e=Ga(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function To(t,e){return pi(t.calendar,e.calendar)&&Ke(t,e)}function pi(t,e){var a,r;return((a=t.isEqual)==null?void 0:a.call(t,e))??((r=e.isEqual)==null?void 0:r.call(e,t))??t.identifier===e.identifier}function Jc(t,e){return Ke(t,hi(e))}var Mb={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Ro(t,e,a){let r=t.calendar.toJulianDay(t),n=a?Mb[a]:Lb(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Qc(t){return da(Date.now(),t)}function hi(t){return ct(Qc(t))}function Xc(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function em(t,e){return tm(t)-tm(e)}function tm(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var am=null;function fi(){return am??(am=new Intl.DateTimeFormat().resolvedOptions().timeZone),am}function Ga(t){return t.subtract({days:t.day-1})}function gi(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function Fb(t){return Ga(t.subtract({months:t.month-1}))}function Vb(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function zb(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function on(t,e,a){let r=Ro(t,e,a);return t.subtract({days:r})}function Ob(t,e,a){return on(t,e,a).add({days:6})}var rm=new Map,Ao=new Map;function $b(t){if(Intl.Locale){let a=rm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&rm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function Lb(t){let e=Ao.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return Ao.set(t,e),e.firstDay}let a=$b(t);if(t.includes("-fw-")){let r=t.split("-fw-")[1].split("-")[0];e=r==="mon"?{firstDay:1}:r==="tue"?{firstDay:2}:r==="wed"?{firstDay:3}:r==="thu"?{firstDay:4}:r==="fri"?{firstDay:5}:r==="sat"?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:a&&Ib[a]||0};Ao.set(t,e)}return e.firstDay}function Bb(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((Ro(Ga(t),e,a)+r)/7)}function Io(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function Po(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function xr(t){return t=Fe(t,new gt),nm(ln(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function nm(t,e,a,r,n,i,l){let o=new Date;return o.setUTCHours(r,n,i,l),o.setUTCFullYear(t,e-1,a),o.getTime()}function Mo(t,e){if(e==="UTC")return 0;if(t>0&&e===fi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:l,second:o}=lm(t,e);return nm(a,r,n,i,l,o,0)-Math.floor(t/1e3)*1e3}var im=new Map;function lm(t,e){let a=im.get(e);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),im.set(e,a));let r=a.formatToParts(new Date(t)),n={};for(let i of r)i.type!=="literal"&&(n[i.type]=i.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var om=864e5;function Hb(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Wb(t,e,n))}function Wb(t,e,a){let r=lm(a,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}function sa(t,e,a="compatible"){let r=Kt(t);if(e==="UTC")return xr(r);if(e===fi()&&a==="compatible"){r=Fe(r,new gt);let d=new Date,u=ln(r.era,r.year);return d.setFullYear(u,r.month-1,r.day),d.setHours(r.hour,r.minute,r.second,r.millisecond),d.getTime()}let n=xr(r),i=Mo(n-om,e),l=Mo(n+om,e),o=Hb(r,e,n-i,n-l);if(o.length===1)return o[0];if(o.length>1)switch(a){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-l);case"compatible":case"later":return Math.max(n-i,n-l);case"reject":throw RangeError("No such absolute time found")}}function sm(t,e,a="compatible"){return new Date(sa(t,e,a))}function da(t,e){let a=Mo(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new bm(n<1?"BC":"AD",n<1?-n+1:n,i,l,e,a,o,d,u,c)}function ct(t){return new nt(t.calendar,t.era,t.year,t.month,t.day)}function Kt(t,e){let a=0,r=0,n=0,i=0;if("timeZone"in t)({hour:a,minute:r,second:n,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:a,minute:r,second:n,millisecond:i}=e),new ym(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(pi(t.calendar,e))return t;let a=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,Ja(r),r}function Ub(t,e,a){return t instanceof bm?t.timeZone===e?t:Zb(t,e):da(sa(t,e,a),e)}function Kb(t){let e=xr(t)-t.offset;return new Date(e)}function Zb(t,e){return Fe(da(xr(t)-t.offset,e),t.calendar)}var sn=36e5;function xi(t,e){var o;let a=t.copy(),r="hour"in a?mm(a,e):0;Fo(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Vo(a),dm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,qb(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){var i;let d=(o=(i=a.calendar).isInverseEra)==null?void 0:o.call(i,a);a.year=n,a.month=d?1:a.calendar.getMonthsInYear(a),a.day=d?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Fo(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Vo(t){for(;t.month<1;)Fo(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Fo(t,1)}function qb(t){for(;t.day<1;)t.month--,Vo(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Vo(t)}function dm(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Ja(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),dm(t)}function zo(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function um(t,e){return xi(t,zo(e))}function Oo(t,e){let a=t.copy();return e.era!=null&&(a.era=e.era),e.year!=null&&(a.year=e.year),e.month!=null&&(a.month=e.month),e.day!=null&&(a.day=e.day),Ja(a),a}function dn(t,e){let a=t.copy();return e.hour!=null&&(a.hour=e.hour),e.minute!=null&&(a.minute=e.minute),e.second!=null&&(a.second=e.second),e.millisecond!=null&&(a.millisecond=e.millisecond),cm(a),a}function Yb(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=vi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=vi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=vi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=vi(t.hour,24),e}function cm(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function vi(t,e){let a=t%e;return a<0&&(a+=e),a}function mm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Yb(t)}function pm(t,e){let a=t.copy();return mm(a,e),a}function Gb(t,e){return pm(t,zo(e))}function $o(t,e,a,r){var l;let n=t.copy();switch(e){case"era":{let o=t.calendar.getEras(),d=o.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ua(d,a,0,o.length-1,r==null?void 0:r.round),n.era=o[d],Ja(n);break}case"year":var i;(l=(i=n.calendar).isInverseEra)!=null&&l.call(i,n)&&(a=-a),n.year=ua(t.year,a,-1/0,9999,r==null?void 0:r.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=ua(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ua(t.day,a,1,t.calendar.getDaysInMonth(t),r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),Ja(n),n}function Lo(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,l=0,o=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;l=d?12:0,o=d?23:11}n.hour=ua(i,a,l,o,r==null?void 0:r.round);break}case"minute":n.minute=ua(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ua(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ua(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ua(t,e,a,r,n=!1){if(n){t+=Math.sign(e),t<a&&(t=r);let i=Math.abs(e);t=e>0?Math.ceil(t/i)*i:Math.floor(t/i)*i,t>r&&(t=a)}else t+=e,t<a?t=r-(a-t-1):t>r&&(t=a+(t-r-1));return t}function hm(t,e){let a;return a=e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0?sa(xi(Kt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):xr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(da(a,t.timeZone),t.calendar)}function Jb(t,e){return hm(t,zo(e))}function Qb(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let g=t.hour>=12;n=g?12:0,i=g?23:11}let l=Kt(t),o=Fe(dn(l,{hour:n}),new gt),d=[sa(o,t.timeZone,"earlier"),sa(o,t.timeZone,"later")].filter(g=>da(g,t.timeZone).day===o.day)[0],u=Fe(dn(l,{hour:i}),new gt),c=[sa(u,t.timeZone,"earlier"),sa(u,t.timeZone,"later")].filter(g=>da(g,t.timeZone).day===u.day).pop(),p=xr(t)-t.offset,m=Math.floor(p/sn),h=p%sn;return p=ua(m,a,Math.floor(d/sn),Math.floor(c/sn),r==null?void 0:r.round)*sn+h,Fe(da(p,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Lo(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(da(sa($o(Kt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function Xb(t,e,a){let r=Kt(t),n=dn(Oo(r,e),e);return n.compare(r)===0?t:Fe(da(sa(n,t.timeZone,a),t.timeZone),t.calendar)}var ew=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,tw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,fm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function Ca(t){let e=t.match(ew);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new nt(Zt(e[1],0,9999),Zt(e[2],1,12),1);return a.day=Zt(e[3],1,a.calendar.getDaysInMonth(a)),a}function yi(t){let e=t.match(tw);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date time string: "+t);let a=Zt(e[1],-9999,9999),r=new ym(a<1?"BC":"AD",a<1?-a+1:a,Zt(e[2],1,12),1,e[4]?Zt(e[4],0,23):0,e[5]?Zt(e[5],0,59):0,e[6]?Zt(e[6],0,59):0,e[7]?Zt(e[7],0,1/0)*1e3:0);return r.day=Zt(e[3],0,r.calendar.getDaysInMonth(r)),r}function Zt(t,e,a){let r=Number(t);if(r<e||r>a)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function gm(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function xm(t){let e=Fe(t,new gt),a;return a=e.era==="BC"?e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):String(e.year).padStart(4,"0"),`${a}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function vm(t){return`${xm(t)}T${gm(t)}`}function aw(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let a=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),i=`${e}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return n!==0&&(i+=`:${String(n).padStart(2,"0")}`),i}function rw(t){return`${vm(t)}${aw(t.offset)}[${t.timeZone}]`}function Bo(t){let e=typeof t[0]=="object"?t.shift():new gt,a;if(typeof t[0]=="string")a=t.shift();else{let l=e.getEras();a=l[l.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var nw=new WeakMap,nt=class Qu{copy(){return this.era?new Qu(this.calendar,this.era,this.year,this.month,this.day):new Qu(this.calendar,this.year,this.month,this.day)}add(e){return xi(this,e)}subtract(e){return um(this,e)}set(e){return Oo(this,e)}cycle(e,a,r){return $o(this,e,a,r)}toDate(e){return sm(this,e)}toString(){return xm(this)}compare(e){return Xc(this,e)}constructor(...e){oo(this,nw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,Ja(this)}},iw=new WeakMap,lw=class ay{copy(){return new ay(this.hour,this.minute,this.second,this.millisecond)}add(e){return pm(this,e)}subtract(e){return Gb(this,e)}set(e){return dn(this,e)}cycle(e,a,r){return Lo(this,e,a,r)}toString(){return gm(this)}compare(e){return em(this,e)}constructor(e=0,a=0,r=0,n=0){oo(this,iw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,cm(this)}},ow=new WeakMap,ym=class Xu{copy(){return this.era?new Xu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Xu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return xi(this,e)}subtract(e){return um(this,e)}set(e){return Oo(dn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return $o(this,e,a,r);default:return Lo(this,e,a,r)}}toDate(e,a){return sm(this,e,a)}toString(){return vm(this)}compare(e){let a=Xc(this,e);return a===0?em(this,Kt(e)):a}constructor(...e){oo(this,ow,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ja(this)}},sw=new WeakMap,bm=class ec{copy(){return this.era?new ec(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ec(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return hm(this,e)}subtract(e){return Jb(this,e)}set(e,a){return Xb(this,e,a)}cycle(e,a,r){return Qb(this,e,a,r)}toDate(){return Kb(this)}toString(){return rw(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Ub(e,this.timeZone).toDate().getTime()}constructor(...e){oo(this,sw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e),o=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.timeZone=o,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ja(this)}},vr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],dw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],bi=[1867,1911,1925,1988,2018],ka=["meiji","taisho","showa","heisei","reiwa"];function wm(t){let e=vr.findIndex(([a,r,n])=>t.year<a||t.year===a&&t.month<r||t.year===a&&t.month===r&&t.day<n);return e===-1?vr.length-1:e===0?0:e-1}function Ho(t){let e=bi[ka.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new nt(t.year+e,t.month,t.day)}var uw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=wm(e);return new nt(this,ka[a],e.year-bi[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(Ho(t))}balanceDate(t){let e=Ho(t),a=wm(e);ka[a]!==t.era&&(t.era=ka[a],t.year=e.year-bi[a]),this.constrainDate(t)}constrainDate(t){let e=ka.indexOf(t.era),a=dw[e];if(a!=null){let[r,n,i]=a,l=r-bi[e];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(i,t.day)))}if(t.year===1&&e>=0){let[,r,n]=vr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return ka}getYearsInEra(t){let e=ka.indexOf(t.era),a=vr[e],r=vr[e+1];if(r==null)return 9999-a[0]+1;let n=r[0]-a[0];return(t.month<r[1]||t.month===r[1]&&t.day<r[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth(Ho(t))}getMinimumMonthInYear(t){let e=Dm(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=Dm(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function Dm(t){if(t.year===1)return vr[ka.indexOf(t.era)]}var jm=-543,cw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=ln(e.era,e.year);return new nt(this,a-jm,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Cm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Cm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function Cm(t){let[e,a]=mi(t.year+jm);return new nt(e,a,t.month,t.day)}var wi=1911;function km(t){return t.era==="minguo"?t.year+wi:1-t.year+wi}function Sm(t){let e=t-wi;return e>0?["minguo",e]:["before_minguo",1-e]}var mw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Sm(ln(e.era,e.year));return new nt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Nm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Sm(km(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Nm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-wi}constructor(...t){super(...t),this.identifier="roc"}};function Nm(t){let[e,a]=mi(km(t));return new nt(e,a,t.month,t.day)}var Em=1948320,_m=[0,31,62,93,124,155,186,216,246,276,306,336],pw=class{fromJulianDay(t){let e=t-Em,a=1+Math.floor((33*e+3)/12053),r=e-(365*(a-1)+Math.floor((8*a+21)/33)),n=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-_m[n]+1;return new nt(this,a,n+1,i)}toJulianDay(t){let e=Em-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=_m[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||gr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},Wo=78,Tm=80,hw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-Wo,r=t-Ya(e.era,e.year,1,1),n;r<Tm?(a--,n=ja(e.year-1)?31:30,r+=n+155+90+10):(n=ja(e.year)?31:30,r-=Tm);let i,l;if(r<n)i=1,l=r+1;else{let o=r-n;o<155?(i=Math.floor(o/31)+2,l=o%31+1):(o-=155,i=Math.floor(o/30)+7,l=o%30+1)}return new nt(this,a,i,l)}toJulianDay(t){let[e,a]=mi(t.year+Wo),r,n;return ja(a)?(r=31,n=Ya(e,a,3,21)):(r=30,n=Ya(e,a,3,22)),t.month===1?n+t.day-1:(n+=r+Math.min(t.month-2,5)*31,t.month>=8&&(n+=(t.month-7)*30),n+=t.day-1,n)}getDaysInMonth(t){return t.month===1&&ja(t.year+Wo)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},Di=1948440,Rm=1948439,Et=1300,yr=1600,fw=460322;function ji(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Am(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+ji(e,r,1,1)))/29.5)+1);return new nt(t,r,n,a-ji(e,r,n,1)+1)}function Im(t){return(14+11*t)%30<11}var Uo=class{fromJulianDay(t){return Am(this,Di,t)}toJulianDay(t){return ji(Di,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&Im(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return Im(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},gw=class extends Uo{fromJulianDay(t){return Am(this,Rm,t)}toJulianDay(t){return ji(Rm,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},xw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Pm,br;function Ci(t){return fw+br[t-Et]}function un(t,e){let a=t-Et,r=1<<11-(e-1);return(Pm[a]&r)===0?29:30}function Mm(t,e){let a=Ci(t);for(let r=1;r<e;r++)a+=un(t,r);return a}function Fm(t){return br[t+1-Et]-br[t-Et]}var vw=class extends Uo{fromJulianDay(t){let e=t-Di,a=Ci(Et),r=Ci(yr);if(e<a||e>r)return super.fromJulianDay(t);{let n=Et-1,i=1,l=1;for(;l>0;){n++,l=e-Ci(n)+1;let o=Fm(n);if(l===o){i=12;break}else if(l<o){let d=un(n,i);for(i=1;l>d;)l-=d,i++,d=un(n,i);break}}return new nt(this,n,i,e-Mm(n,i)+1)}}toJulianDay(t){return t.year<Et||t.year>yr?super.toJulianDay(t):Di+Mm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Et||t.year>yr?super.getDaysInMonth(t):un(t.year,t.month)}getDaysInYear(t){return t.year<Et||t.year>yr?super.getDaysInYear(t):Fm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Pm||(Pm=new Uint16Array(Uint8Array.from(atob(xw),t=>t.charCodeAt(0)).buffer)),!br){br=new Uint32Array(yr-Et+1);let t=0;for(let e=Et;e<=yr;e++){br[e-Et]=t;for(let a=1;a<=12;a++)t+=un(e,a)}}}},Vm=347997,zm=1080,Om=24*zm,yw=29,bw=12*zm+793,ww=yw*Om+bw;function Qa(t){return gr(t*7+1,19)<7}function ki(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return gr(3*(r+1),7)<3&&(r+=1),r}function Dw(t){let e=ki(t-1),a=ki(t);return ki(t+1)-a===356?2:a-e===382?1:0}function cn(t){return ki(t)+Dw(t)}function $m(t){return cn(t+1)-cn(t)}function jw(t){let e=$m(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Si(t,e){if(e>=6&&!Qa(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=jw(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Qa(t)?30:0:30}var Cw=class{fromJulianDay(t){let e=t-Vm,a=e*Om/ww,r=Math.floor((19*a+234)/235)+1,n=cn(r),i=Math.floor(e-n);for(;i<1;)r--,n=cn(r),i=Math.floor(e-n);let l=1,o=0;for(;o<i;)o+=Si(r,l),l++;l--,o-=Si(r,l);let d=i-o;return new nt(this,r,l,d)}toJulianDay(t){let e=cn(t.year);for(let a=1;a<t.month;a++)e+=Si(t.year,a);return e+t.day+Vm}getDaysInMonth(t){return Si(t.year,t.month)}getMonthsInYear(t){return Qa(t.year)?13:12}getDaysInYear(t){return $m(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(Qa(e.year)&&!Qa(t.year)&&e.month>6?t.month--:!Qa(e.year)&&Qa(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Ko=1723856,Lm=1824665,Zo=5500;function Ni(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function qo(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-Ni(t,a,1,1))/30);return[a,r,e+1-Ni(t,a,r,1)]}function Bm(t){return Math.floor(t%4/3)}function Hm(t,e){return e%13==0?Bm(t)+5:30}var Yo=class{fromJulianDay(t){let[e,a,r]=qo(Ko,t),n="AM";return e<=0&&(n="AA",e+=Zo),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Zo),Ni(Ko,e,t.month,t.day)}getDaysInMonth(t){return Hm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Bm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},kw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Ko,t);return e+=Zo,new nt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},Sw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Lm,t),n="CE";return e<=0&&(n="BCE",e=1-e),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Ni(Lm,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Hm(e,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}};function Go(t){switch(t){case"buddhist":return new cw;case"ethiopic":return new Yo;case"ethioaa":return new kw;case"coptic":return new Sw;case"hebrew":return new Cw;case"indian":return new hw;case"islamic-civil":return new Uo;case"islamic-tbla":return new gw;case"islamic-umalqura":return new vw;case"japanese":return new uw;case"persian":return new pw;case"roc":return new mw;default:return new gt}}function Nw(t){let e=iA({usage:"search",...t}),a=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(0,l.length),l)===0),[e]),r=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(-l.length),l)===0),[e]),n=(0,x.useCallback)((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let o=0,d=l.length;for(;o+d<=i.length;o++){let u=i.slice(o,o+d);if(e.compare(l,u)===0)return!0}return!1},[e]);return(0,x.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ze=typeof document<"u"?window.visualViewport:null;function Ew(t){let{direction:e}=qe(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:l=n,placement:o="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:p=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:g=!0,onClose:f,maxHeight:v,arrowBoundaryOffset:b=0}=t,[w,D]=(0,x.useState)(null),j=[h,o,n.current,r.current,i==null?void 0:i.current,l.current,d,u,c,p,m,g,e,v,b,a],k=(0,x.useRef)(Ze==null?void 0:Ze.scale);(0,x.useEffect)(()=>{g&&(k.current=Ze==null?void 0:Ze.scale)},[g]);let S=(0,x.useCallback)(()=>{var R,P;if(h===!1||!g||!n.current||!r.current||!c||(Ze==null?void 0:Ze.scale)!==k.current)return;let C=null;if(l.current&&l.current.contains(document.activeElement)){let A=(R=document.activeElement)==null?void 0:R.getBoundingClientRect(),V=l.current.getBoundingClientRect();C={type:"top",offset:((A==null?void 0:A.top)??0)-V.top},C.offset>V.height/2&&(C.type="bottom",C.offset=((A==null?void 0:A.bottom)??0)-V.bottom)}let _=n.current;!v&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Eb({placement:Tw(o,e),overlayNode:n.current,targetNode:r.current,scrollNode:l.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:p,crossOffset:m,maxHeight:v,arrowSize:a??(i!=null&&i.current?_o(i.current,!0).width:0),arrowBoundaryOffset:b});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(A=>_.style[A]=E.position[A]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&l.current){let A=document.activeElement.getBoundingClientRect(),V=l.current.getBoundingClientRect(),T=A[C.type]-V[C.type];l.current.scrollTop+=T-C.offset}D(E)}},j);ba(S,j),_w(S),di({ref:n,onResize:S}),di({ref:r,onResize:S});let N=(0,x.useRef)(!1);ba(()=>{let C,_=()=>{N.current=!0,clearTimeout(C),C=setTimeout(()=>{N.current=!1},500),S()},E=()=>{N.current&&_()};return Ze==null||Ze.addEventListener("resize",_),Ze==null||Ze.addEventListener("scroll",E),()=>{Ze==null||Ze.removeEventListener("resize",_),Ze==null||Ze.removeEventListener("scroll",E)}},[S]);let y=(0,x.useCallback)(()=>{N.current||(f==null||f())},[f,N]);return Rb({triggerRef:r,isOpen:g,onClose:f&&y}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w==null?void 0:w.position,maxHeight:(w==null?void 0:w.maxHeight)??"100vh"}},placement:(w==null?void 0:w.placement)??null,triggerAnchorPoint:(w==null?void 0:w.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w==null?void 0:w.arrowOffsetLeft,top:w==null?void 0:w.arrowOffsetTop}},updatePosition:S}}function _w(t){ba(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Tw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Rw({children:t}){let e=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(dA.Provider,{value:e},t)}function Aw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Fv(d=>{a&&Wm(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),o=Fv(d=>{a&&a(d)});(0,x.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=sA(u);if(typeof PointerEvent<"u"){let p=m=>{d.isPointerDown&&Wm(m,e)&&o(m),d.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",p,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",p,!0)}}},[e,r,l,o])}function Wm(t,e){if(t.button>0)return!1;if(t.target){let a=t.target.ownerDocument;if(!a||!a.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}var qt=[];function Iw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=t;(0,x.useEffect)(()=>{if(n&&!qt.includes(e))return qt.push(e),()=>{let g=qt.indexOf(e);g>=0&&qt.splice(g,1)}},[n,e]);let d=()=>{qt[qt.length-1]===e&&a&&a()},u=g=>{(!o||o(g.target))&&qt[qt.length-1]===e&&(g.stopPropagation(),g.preventDefault())},c=g=>{(!o||o(g.target))&&(qt[qt.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d())},p=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),d())};Aw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:m}=Ul({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||nA(g.relatedTarget)||(!o||o(g.relatedTarget))&&(a==null||a())}}),h=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:p,...m},underlayProps:{onPointerDown:h}}}var mn=typeof document<"u"&&window.visualViewport,Ei=0,Um;function Pw(t={}){let{isDisabled:e}=t;ba(()=>{if(!e)return Ei++,Ei===1&&(Um=Iv()?Fw():Mw()),()=>{Ei--,Ei===0&&Um()}},[e])}function Mw(){let t=window.innerWidth-document.documentElement.clientWidth;return Pv(t>0&&("scrollbarGutter"in document.documentElement.style?Jo(document.documentElement,"scrollbarGutter","stable"):Jo(document.documentElement,"paddingRight",`${t}px`)),Jo(document.documentElement,"overflow","hidden"))}function Fw(){let t,e=!1,a=d=>{let u=d.target;t=aA(u)?u:no(u,!0),e=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(e=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(e=!0)},r=document.createElement("style");r.textContent=`@layer {
3
3
  * {
4
4
  overscroll-behavior: contain;
5
5
  }
6
- }`,document.head.prepend(r);let n=d=>{if(!(d.touches.length===2||e)){if(!t||t===document.documentElement||t===document.body){d.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&d.preventDefault()}},i=d=>{var p,m;let u=d.target,c=d.relatedTarget;c&&Ku(c)?(c.focus({preventScroll:!0}),Km(c,Ku(u))):c||((m=(p=u.parentElement)==null?void 0:p.closest("[tabindex]"))==null||m.focus({preventScroll:!0}))},l=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=document.activeElement!=null&&Ku(document.activeElement);l.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Km(this,u)};let o=Pv(Qo(document,"touchstart",a,{passive:!1,capture:!0}),Qo(document,"touchmove",n,{passive:!1,capture:!0}),Qo(document,"blur",i,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=l}}function Jo(t,e,a){let r=t.style[e];return t.style[e]=a,()=>{t.style[e]=r}}function Qo(t,e,a,r){return t.addEventListener(e,a,r),()=>{t.removeEventListener(e,a,r)}}function Km(t,e){e||!mn?Zm(t):mn.addEventListener("resize",()=>Zm(t),{once:!0})}function Zm(t){let e=document.scrollingElement||document.documentElement,a=t;for(;a&&a!==e;){let r=no(a);if(r!==document.documentElement&&r!==document.body&&r!==a){let n=r.getBoundingClientRect(),i=a.getBoundingClientRect();if(i.top<n.top||i.bottom>n.top+a.clientHeight){let l=n.bottom;mn&&(l=Math.min(l,mn.offsetTop+mn.height));let o=i.top-n.top-((l-n.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}a=r.parentElement}}var Vw=(0,x.createContext)({});function zw(){return(0,x.useContext)(Vw)??{}}var qm={};qm={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var Ym={};Ym={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var Gm={};Gm={dismiss:"Odstranit"};var Jm={};Jm={dismiss:"Luk"};var Qm={};Qm={dismiss:"Schlie\xDFen"};var Xm={};Xm={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var ep={};ep={dismiss:"Dismiss"};var tp={};tp={dismiss:"Descartar"};var ap={};ap={dismiss:"L\xF5peta"};var rp={};rp={dismiss:"Hylk\xE4\xE4"};var np={};np={dismiss:"Rejeter"};var ip={};ip={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var lp={};lp={dismiss:"Odbaci"};var op={};op={dismiss:"Elutas\xEDt\xE1s"};var sp={};sp={dismiss:"Ignora"};var dp={};dp={dismiss:"\u9589\u3058\u308B"};var up={};up={dismiss:"\uBB34\uC2DC"};var cp={};cp={dismiss:"Atmesti"};var mp={};mp={dismiss:"Ner\u0101d\u012Bt"};var pp={};pp={dismiss:"Lukk"};var hp={};hp={dismiss:"Negeren"};var fp={};fp={dismiss:"Zignoruj"};var gp={};gp={dismiss:"Descartar"};var xp={};xp={dismiss:"Dispensar"};var vp={};vp={dismiss:"Revocare"};var yp={};yp={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var bp={};bp={dismiss:"Zru\u0161i\u0165"};var wp={};wp={dismiss:"Opusti"};var Dp={};Dp={dismiss:"Odbaci"};var jp={};jp={dismiss:"Avvisa"};var Cp={};Cp={dismiss:"Kapat"};var kp={};kp={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var Sp={};Sp={dismiss:"\u53D6\u6D88"};var Np={};Np={dismiss:"\u95DC\u9589"};var Ep={};Ep={"ar-AE":qm,"bg-BG":Ym,"cs-CZ":Gm,"da-DK":Jm,"de-DE":Qm,"el-GR":Xm,"en-US":ep,"es-ES":tp,"et-EE":ap,"fi-FI":rp,"fr-FR":np,"he-IL":ip,"hr-HR":lp,"hu-HU":op,"it-IT":sp,"ja-JP":dp,"ko-KR":up,"lt-LT":cp,"lv-LV":mp,"nb-NO":pp,"nl-NL":hp,"pl-PL":fp,"pt-BR":gp,"pt-PT":xp,"ro-RO":vp,"ru-RU":yp,"sk-SK":bp,"sl-SI":wp,"sr-SP":Dp,"sv-SE":jp,"tr-TR":Cp,"uk-UA":kp,"zh-CN":Sp,"zh-TW":Np};function Ow(t){return t&&t.__esModule?t.default:t}function _p(t){let{onDismiss:e,...a}=t,r=Yl(a,Wa(Ow(Ep),"@react-aria/overlays").format("dismiss")),n=()=>{e&&e()};return x.createElement(Gn,null,x.createElement("button",{...r,tabIndex:-1,onClick:n,style:{width:1,height:1}}))}function $w(t,e){let{triggerRef:a,popoverRef:r,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...d}=t,u=d.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:p}=Iw({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},n??r),{overlayProps:m,arrowProps:h,placement:g,triggerAnchorPoint:f}=Ew({...d,targetRef:a,overlayRef:r,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return Pw({isDisabled:i||!e.isOpen}),(0,x.useEffect)(()=>{if(e.isOpen&&r.current)return i?$T((n==null?void 0:n.current)??r.current):OT([(n==null?void 0:n.current)??r.current],{shouldUseInert:!0})},[i,e.isOpen,r,n]),{popoverProps:Xe(c,m),arrowProps:h,underlayProps:p,placement:g,triggerAnchorPoint:f}}var Lw=fa(Hn(),1),Tp=x.createContext(null);function Rp(t){let e=cA(),{portalContainer:a=e?null:document.body,isExiting:r}=t,[n,i]=(0,x.useState)(!1),l=(0,x.useMemo)(()=>({contain:n,setContain:i}),[n,i]),{getContainer:o}=zw();if(!t.portalContainer&&o&&(a=o()),!a)return null;let d=t.children;return t.disableFocusManagement||(d=x.createElement(tA,{restoreFocus:!0,contain:(t.shouldContainFocus||n)&&!r},d)),d=x.createElement(Tp.Provider,{value:l},x.createElement(Rw,null,d)),Lw.createPortal(d,a)}function Bw(){var e;let t=(e=(0,x.useContext)(Tp))==null?void 0:e.setContain;ba(()=>{t==null||t(!0)},[t])}var Ap={};Ap={dateRange:t=>`${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,dateSelected:t=>`${t.date} \u0627\u0644\u0645\u062D\u062F\u062F`,finishRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0625\u0646\u0647\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",maximumDate:"\u0622\u062E\u0631 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",minimumDate:"\u0623\u0648\u0644 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",next:"\u0627\u0644\u062A\u0627\u0644\u064A",previous:"\u0627\u0644\u0633\u0627\u0628\u0642",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.dateRange}`,startRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",todayDate:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date}`,todayDateSelected:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date} \u0645\u062D\u062F\u062F`};var Ip={};Ip={dateRange:t=>`${t.startDate} \u0434\u043E ${t.endDate}`,dateSelected:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0435 ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0434\u043E\u0432\u044A\u0440\u0448\u0438\u0442\u0435 \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u044A\u0440\u0432\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u043F\u0440\u0435\u0434",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0438\u0441\u0442\u044A\u043F\u0438\u0442\u0435 \u043A\u044A\u043C \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",todayDate:t=>`\u0414\u043D\u0435\u0441, ${t.date}`,todayDateSelected:t=>`\u0414\u043D\u0435\u0441, ${t.date} \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438`};var Pp={};Pp={dateRange:t=>`${t.startDate} a\u017E ${t.endDate}`,dateSelected:t=>`Vybr\xE1no ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDb\u011Br rozsahu dat",maximumDate:"Posledn\xED dostupn\xE9 datum",minimumDate:"Prvn\xED dostupn\xE9 datum",next:"Dal\u0161\xED",previous:"P\u0159edchoz\xED",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm zah\xE1j\xEDte v\xFDb\u011Br rozsahu dat",todayDate:t=>`Dnes, ${t.date}`,todayDateSelected:t=>`Dnes, vybr\xE1no ${t.date}`};var Mp={};Mp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xF8re valg af datoomr\xE5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xF8rste ledige dato",next:"N\xE6ste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Fp={};Fp={dateRange:t=>`${t.startDate} bis ${t.endDate}`,dateSelected:t=>`${t.date} ausgew\xE4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xFCgbares Datum",minimumDate:"Erstes verf\xFCgbares Datum",next:"Weiter",previous:"Zur\xFCck",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:t=>`Heute, ${t.date}`,todayDateSelected:t=>`Heute, ${t.date} ausgew\xE4hlt`};var Vp={};Vp={dateRange:t=>`${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,dateSelected:t=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${t.date}`,finishRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",maximumDate:"\u03A4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",minimumDate:"\u03A0\u03C1\u03CE\u03C4\u03B7 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",previous:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.dateRange}`,startRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",todayDate:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, ${t.date}`,todayDateSelected:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03C4\u03B7\u03BA\u03B5 ${t.date}`};var zp={};zp={previous:"Previous",next:"Next",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.dateRange}`,todayDate:t=>`Today, ${t.date}`,todayDateSelected:t=>`Today, ${t.date} selected`,dateSelected:t=>`${t.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:t=>`${t.startDate} to ${t.endDate}`};var Op={};Op={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xDAltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo seleccionado: ${t.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:t=>`Hoy, ${t.date}`,todayDateSelected:t=>`Hoy, ${t.date} seleccionado`};var $p={};$p={dateRange:t=>`${t.startDate} kuni ${t.endDate}`,dateSelected:t=>`${t.date} valitud`,finishRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimise l\xF5petamiseks",maximumDate:"Viimane saadaolev kuup\xE4ev",minimumDate:"Esimene saadaolev kuup\xE4ev",next:"J\xE4rgmine",previous:"Eelmine",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.dateRange}`,startRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimiseks",todayDate:t=>`T\xE4na, ${t.date}`,todayDateSelected:t=>`T\xE4na, ${t.date} valitud`};var Lp={};Lp={dateRange:t=>`${t.startDate} \u2013 ${t.endDate}`,dateSelected:t=>`${t.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",maximumDate:"Viimeinen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",minimumDate:"Ensimm\xE4inen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.dateRange}`,startRangeSelectionPrompt:"Aloita p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",todayDate:t=>`T\xE4n\xE4\xE4n, ${t.date}`,todayDateSelected:t=>`T\xE4n\xE4\xE4n, ${t.date} valittu`};var Bp={};Bp={dateRange:t=>`${t.startDate} \xE0 ${t.endDate}`,dateSelected:t=>`${t.date} s\xE9lectionn\xE9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xE9lectionner la plage de dates",maximumDate:"Derni\xE8re date disponible",minimumDate:"Premi\xE8re date disponible",next:"Suivant",previous:"Pr\xE9c\xE9dent",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xE0 s\xE9lectionner la plage de dates",todayDate:t=>`Aujourd'hui, ${t.date}`,todayDateSelected:t=>`Aujourd\u2019hui, ${t.date} s\xE9lectionn\xE9`};var Hp={};Hp={dateRange:t=>`${t.startDate} \u05E2\u05D3 ${t.endDate}`,dateSelected:t=>`${t.date} \u05E0\u05D1\u05D7\u05E8`,finishRangeSelectionPrompt:"\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",maximumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05D0\u05D7\u05E8\u05D5\u05DF",minimumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05E8\u05D0\u05E9\u05D5\u05DF",next:"\u05D4\u05D1\u05D0",previous:"\u05D4\u05E7\u05D5\u05D3\u05DD",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.dateRange}`,startRangeSelectionPrompt:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",todayDate:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date}`,todayDateSelected:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date} \u05E0\u05D1\u05D7\u05E8`};var Wp={};Wp={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite raspon odabranih datuma",maximumDate:"Posljednji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Sljede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete raspon odabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, odabran ${t.date}`};var Up={};Up={dateRange:t=>`${t.startDate}\u2013${t.endDate}`,dateSelected:t=>`${t.date} kiv\xE1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek befejez\xE9s\xE9hez",maximumDate:"Utols\xF3 el\xE9rhet\u0151 d\xE1tum",minimumDate:"Az els\u0151 el\xE9rhet\u0151 d\xE1tum",next:"K\xF6vetkez\u0151",previous:"El\u0151z\u0151",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek ind\xEDt\xE1s\xE1hoz",todayDate:t=>`Ma, ${t.date}`,todayDateSelected:t=>`Ma, ${t.date} kijel\xF6lve`};var Kp={};Kp={dateRange:t=>`Da ${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell\u2019intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: ${t.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l\u2019intervallo di date",todayDate:t=>`Oggi, ${t.date}`,todayDateSelected:t=>`Oggi, ${t.date} selezionata`};var Zp={};Zp={dateRange:t=>`${t.startDate} \u304B\u3089 ${t.endDate}`,dateSelected:t=>`${t.date} \u3092\u9078\u629E`,finishRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u7D42\u4E86",maximumDate:"\u6700\u7D42\u5229\u7528\u53EF\u80FD\u65E5",minimumDate:"\u6700\u521D\u306E\u5229\u7528\u53EF\u80FD\u65E5",next:"\u6B21\u3078",previous:"\u524D\u3078",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.dateRange}`,startRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u958B\u59CB",todayDate:t=>`\u672C\u65E5\u3001${t.date}`,todayDateSelected:t=>`\u672C\u65E5\u3001${t.date} \u3092\u9078\u629E`};var qp={};qp={dateRange:t=>`${t.startDate} ~ ${t.endDate}`,dateSelected:t=>`${t.date} \uC120\uD0DD\uB428`,finishRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC644\uB8CC\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",maximumDate:"\uB9C8\uC9C0\uB9C9\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",minimumDate:"\uCC98\uC74C\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",next:"\uB2E4\uC74C",previous:"\uC774\uC804",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.dateRange}`,startRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",todayDate:t=>`\uC624\uB298, ${t.date}`,todayDateSelected:t=>`\uC624\uB298, ${t.date} \uC120\uD0DD\uB428`};var Yp={};Yp={dateRange:t=>`Nuo ${t.startDate} iki ${t.endDate}`,dateSelected:t=>`Pasirinkta ${t.date}`,finishRangeSelectionPrompt:"Spustel\u0117kite, kad baigtum\u0117te pasirinkti dat\u0173 interval\u0105",maximumDate:"Paskutin\u0117 galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: ${t.dateRange}`,startRangeSelectionPrompt:"Spustel\u0117kite, kad prad\u0117tum\u0117te pasirinkti dat\u0173 interval\u0105",todayDate:t=>`\u0160iandien, ${t.date}`,todayDateSelected:t=>`\u0160iandien, pasirinkta ${t.date}`};var Gp={};Gp={dateRange:t=>`No ${t.startDate} l\u012Bdz ${t.endDate}`,dateSelected:t=>`Atlas\u012Bts: ${t.date}`,finishRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"P\u0113d\u0113jais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"T\u0101l\u0101k",previous:"Atpaka\u013C",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: ${t.dateRange}`,startRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai s\u0101ktu datumu diapazona atlasi",todayDate:t=>`\u0160odien, ${t.date}`,todayDateSelected:t=>`Atlas\u012Bta \u0161odiena, ${t.date}`};var Jp={};Jp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xE5 fullf\xF8re valg av datoomr\xE5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xF8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.dateRange}`,startRangeSelectionPrompt:"Klikk for \xE5 starte valg av datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Qp={};Qp={dateRange:t=>`${t.startDate} tot ${t.endDate}`,dateSelected:t=>`${t.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:t=>`Vandaag, ${t.date}`,todayDateSelected:t=>`Vandaag, ${t.date} geselecteerd`};var Xp={};Xp={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`Wybrano ${t.date}`,finishRangeSelectionPrompt:"Kliknij, aby zako\u0144czy\u0107 wyb\xF3r zakresu dat",maximumDate:"Ostatnia dost\u0119pna data",minimumDate:"Pierwsza dost\u0119pna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocz\u0105\u0107 wyb\xF3r zakresu dat",todayDate:t=>`Dzisiaj, ${t.date}`,todayDateSelected:t=>`Dzisiaj wybrano ${t.date}`};var eh={};eh={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xE7\xE3o do intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xE7\xE3o do intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var th={};th={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para come\xE7ar a selecionar o intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var ah={};ah={dateRange:t=>`De la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,dateSelected:t=>`${t.date} selectat\u0103`,finishRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a finaliza selec\u0163ia razei pentru dat\u0103",maximumDate:"Ultima dat\u0103 disponibil\u0103",minimumDate:"Prima dat\u0103 disponibil\u0103",next:"Urm\u0103torul",previous:"\xCEnainte",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: ${t.dateRange}`,startRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a \xEEncepe selec\u0163ia razei pentru dat\u0103",todayDate:t=>`Ast\u0103zi, ${t.date}`,todayDateSelected:t=>`Azi, ${t.date} selectat\u0103`};var rh={};rh={dateRange:t=>`\u0421 ${t.startDate} \u043F\u043E ${t.endDate}`,dateSelected:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0432\u0430\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",next:"\u0414\u0430\u043B\u0435\u0435",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",todayDate:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, ${t.date}`,todayDateSelected:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`};var nh={};nh={dateRange:t=>`Od ${t.startDate} do ${t.endDate}`,dateSelected:t=>`Vybrat\xFD d\xE1tum ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDber rozsahu d\xE1tumov",maximumDate:"Posledn\xFD dostupn\xFD d\xE1tum",minimumDate:"Prv\xFD dostupn\xFD d\xE1tum",next:"Nasleduj\xFAce",previous:"Predch\xE1dzaj\xFAce",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm spust\xEDte v\xFDber rozsahu d\xE1tumov",todayDate:t=>`Dnes ${t.date}`,todayDateSelected:t=>`Vybrat\xFD dne\u0161n\xFD d\xE1tum ${t.date}`};var ih={};ih={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokon\u010Danje izbire datumskega obsega",maximumDate:"Zadnji razpolo\u017Eljivi datum",minimumDate:"Prvi razpolo\u017Eljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite za za\u010Detek izbire datumskega obsega",todayDate:t=>`Danes, ${t.date}`,todayDateSelected:t=>`Danes, ${t.date} izbrano`};var lh={};lh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite opseg izabranih datuma",maximumDate:"Zadnji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Slede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani period: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete opseg izabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, izabran ${t.date}`};var oh={};oh={dateRange:t=>`${t.startDate} till ${t.endDate}`,dateSelected:t=>`${t.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xF6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xE4ngliga datum",minimumDate:"F\xF6rsta tillg\xE4ngliga datum",next:"N\xE4sta",previous:"F\xF6reg\xE5ende",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.dateRange}`,startRangeSelectionPrompt:"Klicka f\xF6r att v\xE4lja datumintervall",todayDate:t=>`Idag, ${t.date}`,todayDateSelected:t=>`Idag, ${t.date} har valts`};var sh={};sh={dateRange:t=>`${t.startDate} - ${t.endDate}`,dateSelected:t=>`${t.date} se\xE7ildi`,finishRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini tamamlamak i\xE7in t\u0131klay\u0131n",maximumDate:"Son m\xFCsait tarih",minimumDate:"\u0130lk m\xFCsait tarih",next:"Sonraki",previous:"\xD6nceki",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.dateRange}`,startRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini ba\u015Flatmak i\xE7in t\u0131klay\u0131n",todayDate:t=>`Bug\xFCn, ${t.date}`,todayDateSelected:t=>`Bug\xFCn, ${t.date} se\xE7ildi`};var dh={};dh={dateRange:t=>`${t.startDate} \u2014 ${t.endDate}`,dateSelected:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",maximumDate:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0448\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",previous:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",todayDate:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, ${t.date}`,todayDateSelected:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, \u0432\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`};var uh={};uh={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9009\u62E9 ${t.date}`,finishRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5B8C\u6210\u9009\u62E9\u65E5\u671F\u8303\u56F4",maximumDate:"\u6700\u540E\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9875",previous:"\u4E0A\u4E00\u9875",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5F00\u59CB\u9009\u62E9\u65E5\u671F\u8303\u56F4",todayDate:t=>`\u4ECA\u5929\uFF0C\u5373 ${t.date}`,todayDateSelected:t=>`\u5DF2\u9009\u62E9\u4ECA\u5929\uFF0C\u5373 ${t.date}`};var ch={};ch={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9078\u53D6 ${t.date}`,finishRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u5B8C\u6210\u9078\u53D6\u65E5\u671F\u7BC4\u570D",maximumDate:"\u6700\u5F8C\u4E00\u500B\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u500B\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9801",previous:"\u4E0A\u4E00\u9801",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u958B\u59CB\u9078\u53D6\u65E5\u671F\u7BC4\u570D",todayDate:t=>`\u4ECA\u5929\uFF0C${t.date}`,todayDateSelected:t=>`\u5DF2\u9078\u53D6\u4ECA\u5929\uFF0C${t.date}`};var pn={};pn={"ar-AE":Ap,"bg-BG":Ip,"cs-CZ":Pp,"da-DK":Mp,"de-DE":Fp,"el-GR":Vp,"en-US":zp,"es-ES":Op,"et-EE":$p,"fi-FI":Lp,"fr-FR":Bp,"he-IL":Hp,"hr-HR":Wp,"hu-HU":Up,"it-IT":Kp,"ja-JP":Zp,"ko-KR":qp,"lt-LT":Yp,"lv-LV":Gp,"nb-NO":Jp,"nl-NL":Qp,"pl-PL":Xp,"pt-BR":eh,"pt-PT":th,"ro-RO":ah,"ru-RU":rh,"sk-SK":nh,"sl-SI":ih,"sr-SP":lh,"sv-SE":oh,"tr-TR":sh,"uk-UA":dh,"zh-CN":uh,"zh-TW":ch};function mh(t){return t&&t.__esModule?t.default:t}var Xo=new WeakMap;function hn(t){return(t==null?void 0:t.calendar.identifier)==="gregory"&&t.era==="BC"?"short":void 0}function Hw(t){let e=Wa(mh(pn),"@react-aria/calendar"),a,r;"highlightedRange"in t?{start:a,end:r}=t.highlightedRange||{}:a=r=t.value??void 0;let n=ra({weekday:"long",month:"long",year:"numeric",day:"numeric",era:hn(a)||hn(r),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return(0,x.useMemo)(()=>{if(!i&&a&&r)if(Ke(a,r)){let l=n.format(a.toDate(t.timeZone));return e.format("selectedDateDescription",{date:l})}else{let l=ts(n,e,a,r,t.timeZone);return e.format("selectedRangeDescription",{dateRange:l})}return""},[a,r,i,t.timeZone,e,n])}function es(t,e,a,r){let n=Wa(mh(pn),"@react-aria/calendar"),i=hn(t)||hn(e),l=ra({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a}),o=ra({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a});return(0,x.useMemo)(()=>{if(Ke(t,Ga(t))){let d=t,u=e;if(t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),e.calendar.getFormattableMonth&&(u=e.calendar.getFormattableMonth(e)),Ke(e,gi(t)))return l.format(d.toDate(a));if(Ke(e,gi(e)))return r?ts(l,n,d,u,a):l.formatRange(d.toDate(a),u.toDate(a))}return r?ts(o,n,t,e,a):o.formatRange(t.toDate(a),e.toDate(a))},[t,e,l,o,n,a,r])}function ts(t,e,a,r,n){let i=t.formatRangeToParts(a.toDate(n),r.toDate(n)),l=-1;for(let u=0;u<i.length;u++){let c=i[u];if(c.source==="shared"&&c.type==="literal")l=u;else if(c.source==="endRange")break}let o="",d="";for(let u=0;u<i.length;u++)u<l?o+=i[u].value:u>l&&(d+=i[u].value);return e.format("dateRange",{startDate:o,endDate:d})}function Ww(t){return t&&t.__esModule?t.default:t}function ph(t,e){let a=Wa(Ww(pn),"@react-aria/calendar"),r=ot(t),n=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!1),i=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!0);Rv(()=>{e.isFocused||bv(i)},[i]);let l=Hw(e);Rv(()=>{l&&bv(l,"polite",4e3)},[l]);let o=Mv([!!t.errorMessage,t.isInvalid,t.validationState]);Xo.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[d,u]=(0,x.useState)(!1),c=t.isDisabled||e.isNextVisibleRangeInvalid();c&&d&&(u(!1),e.setFocused(!0));let[p,m]=(0,x.useState)(!1),h=t.isDisabled||e.isPreviousVisibleRangeInvalid();return h&&p&&(m(!1),e.setFocused(!0)),{calendarProps:Xe(r,Yl({id:t.id,"aria-label":[t["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":t["aria-labelledby"]}),{role:"application","aria-details":t["aria-details"]||void 0,"aria-describedby":t["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>e.focusNextPage(),"aria-label":a.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>e.focusPreviousPage(),"aria-label":a.format("previous"),isDisabled:h,onFocusChange:m},errorMessageProps:{id:o},title:n}}function Uw(t,e){return ph(t,e)}function Kw(t,e,a){let r=ph(t,e),n=(0,x.useRef)(!1),i=(0,x.useRef)(typeof window<"u"?window:null);return Kr(i,"pointerdown",l=>{n.current=l.width===0&&l.height===0}),Kr(i,"pointerup",l=>{if(n.current){n.current=!1;return}if(e.setDragging(!1),!e.anchorDate)return;let o=l.target;a.current&&a.current.contains(document.activeElement)&&(!a.current.contains(o)||!o.closest('button, [role="button"]'))&&e.selectFocusedDate()}),r.calendarProps.onBlur=l=>{a.current&&(!l.relatedTarget||!a.current.contains(l.relatedTarget))&&e.anchorDate&&e.selectFocusedDate()},Kr(a,"touchmove",l=>{e.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function Zw(t,e){let{startDate:a=e.visibleRange.start,endDate:r=e.visibleRange.end,firstDayOfWeek:n}=t,{direction:i}=qe(),l=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),e.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),e.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),e.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),e.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusNextDay():e.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusPreviousDay():e.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),e.focusNextRow();break;case"Escape":"setAnchorDate"in e&&(f.preventDefault(),e.setAnchorDate(null));break}},o=es(a,r,e.timeZone,!0),{ariaLabel:d,ariaLabelledBy:u}=Xo.get(e),c=Yl({"aria-label":[d,o].filter(Boolean).join(", "),"aria-labelledby":u}),p=ra({weekday:t.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:m}=qe(),h=(0,x.useMemo)(()=>{let f=on(hi(e.timeZone),m,n);return[...Array(7).keys()].map(v=>{let b=f.add({days:v}).toDate(e.timeZone);return p.format(b)})},[m,e.timeZone,p,n]),g=Bb(a,m,n);return{gridProps:Xe(c,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:l,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:g}}function qw(t){return t&&t.__esModule?t.default:t}function Yw(t,e,a){let{date:r,isDisabled:n}=t,{errorMessageId:i,selectedDateDescription:l}=Xo.get(e),o=Wa(qw(pn),"@react-aria/calendar"),d=ra({weekday:"long",day:"numeric",month:"long",year:"numeric",era:hn(r),timeZone:e.timeZone}),u=e.isSelected(r),c=e.isCellFocused(r)&&!t.isOutsideMonth;n||(n=e.isCellDisabled(r));let p=e.isCellUnavailable(r),m=!n&&!p,h=e.isValueInvalid&&!!("highlightedRange"in e?!e.anchorDate&&e.highlightedRange&&r.compare(e.highlightedRange.start)>=0&&r.compare(e.highlightedRange.end)<=0:e.value&&Ke(e.value,r));h&&(u=!0),r=mA(r,To);let g=(0,x.useMemo)(()=>r.toDate(e.timeZone),[r,e.timeZone]),f=Jc(r,e.timeZone),v=(0,x.useMemo)(()=>{let E="";return"highlightedRange"in e&&e.value&&!e.anchorDate&&(Ke(r,e.value.start)||Ke(r,e.value.end))&&(E=l+", "),E+=d.format(g),f?E=o.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=o.format("dateSelected",{date:E})),e.minValue&&Ke(r,e.minValue)?E+=", "+o.format("minimumDate"):e.maxValue&&Ke(r,e.maxValue)&&(E+=", "+o.format("maximumDate")),E},[d,g,o,u,f,r,e,l]),b="";"anchorDate"in e&&c&&!e.isReadOnly&&m&&(b=e.anchorDate?o.format("finishRangeSelectionPrompt"):o.format("startRangeSelectionPrompt"));let w=io(b),D=(0,x.useRef)(!1),j=(0,x.useRef)(!1),k=(0,x.useRef)(void 0),{pressProps:S,isPressed:N}=Vv({shouldCancelOnPointerExit:"anchorDate"in e&&!!e.anchorDate,preventFocusOnPress:!0,isDisabled:!m||e.isReadOnly,onPressStart(E){if(e.isReadOnly){e.setFocusedDate(r);return}if("highlightedRange"in e&&!e.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(e.highlightedRange&&!h){if(Ke(r,e.highlightedRange.start)){e.setAnchorDate(e.highlightedRange.end),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}else if(Ke(r,e.highlightedRange.end)){e.setAnchorDate(e.highlightedRange.start),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}}let R=()=>{e.setDragging(!0),k.current=void 0,e.selectDate(r),e.setFocusedDate(r),D.current=!0};E.pointerType==="touch"?k.current=setTimeout(R,200):R()}},onPressEnd(){j.current=!1,D.current=!1,clearTimeout(k.current),k.current=void 0},onPress(){!("anchorDate"in e)&&!e.isReadOnly&&(e.selectDate(r),e.setFocusedDate(r))},onPressUp(E){if(!e.isReadOnly&&("anchorDate"in e&&k.current&&(e.selectDate(r),e.setFocusedDate(r)),"anchorDate"in e))if(j.current)e.setAnchorDate(r);else if(e.anchorDate&&!D.current)e.selectDate(r),e.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!e.anchorDate){e.selectDate(r);let R=r.add({days:1});e.isInvalid(R)&&(R=r.subtract({days:1})),e.isInvalid(R)||e.setFocusedDate(R)}else E.pointerType==="virtual"&&(e.selectDate(r),e.setFocusedDate(r))}}),y;n||(y=Ke(r,e.focusedDate)?0:-1),(0,x.useEffect)(()=>{c&&a.current&&(oA(a.current),pR()!=="pointer"&&document.activeElement===a.current&&Av(a.current,{containingElement:no(a.current)}))},[c,a]);let C=ra({day:"numeric",timeZone:e.timeZone,calendar:r.calendar.identifier}),_=(0,x.useMemo)(()=>C.formatToParts(g).find(E=>E.type==="day").value,[C,g]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":u||void 0,"aria-invalid":h||void 0},buttonProps:Xe(S,{onFocus(){n||e.setFocusedDate(r)},tabIndex:y,role:"button","aria-disabled":!m||void 0,"aria-label":v,"aria-invalid":h||void 0,"aria-describedby":[h?i:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in e&&(E.pointerType!=="touch"||e.isDragging)&&m&&e.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:N,isFocused:c,isSelected:u,isDisabled:n,isUnavailable:p,isOutsideVisibleRange:r.compare(e.visibleRange.start)<0||r.compare(e.visibleRange.end)>0,isInvalid:h,formattedDate:_}}var hh={};hh={calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,selectedTimeDescription:t=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"};var fh={};fh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u0434\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${t.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var gh={};gh={calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.startDate} a\u017E ${t.endDate}`,selectedTimeDescription:t=>`Vybran\xFD \u010Das: ${t.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"};var xh={};xh={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tidspunkt: ${t.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"};var vh={};vh={calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.startDate} bis ${t.endDate}`,selectedTimeDescription:t=>`Ausgew\xE4hlte Zeit: ${t.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var yh={};yh={calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,selectedTimeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${t.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"};var bh={};bh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.startDate} to ${t.endDate}`,selectedTimeDescription:t=>`Selected Time: ${t.time}`};var wh={};wh={calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Rango seleccionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora seleccionada: ${t.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"};var Dh={};Dh={calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.startDate} kuni ${t.endDate}`,selectedTimeDescription:t=>`Valitud aeg: ${t.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"};var jh={};jh={calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.startDate} \u2013 ${t.endDate}`,selectedTimeDescription:t=>`Valittu aika: ${t.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"};var Ch={};Ch={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.startDate} au ${t.endDate}`,selectedTimeDescription:t=>`Heure choisie\xA0: ${t.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"};var kh={};kh={calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.startDate} \u05E2\u05D3 ${t.endDate}`,selectedTimeDescription:t=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${t.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"};var Sh={};Sh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Odabrano vrijeme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Nh={};Nh={calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.startDate}\u2013${t.endDate}`,selectedTimeDescription:t=>`Kijel\xF6lt id\u0151: ${t.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"};var Eh={};Eh={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: da ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Ora selezionata: ${t.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var _h={};_h={calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.startDate} \u304B\u3089 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${t.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"};var Th={};Th={calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.startDate} ~ ${t.endDate}`,selectedTimeDescription:t=>`\uC120\uD0DD \uC2DC\uAC04: ${t.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"};var Rh={};Rh={calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: nuo ${t.startDate} iki ${t.endDate}`,selectedTimeDescription:t=>`Pasirinktas laikas: ${t.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"};var Ah={};Ah={calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: no ${t.startDate} l\u012Bdz ${t.endDate}`,selectedTimeDescription:t=>`Atlas\u012Btais laiks: ${t.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"};var Ih={};Ih={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tid: ${t.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"};var Ph={};Ph={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.startDate} tot ${t.endDate}`,selectedTimeDescription:t=>`Geselecteerde tijd: ${t.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Mh={};Mh={calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Wybrany czas: ${t.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"};var Fh={};Fh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var Vh={};Vh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var zh={};zh={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: de la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,selectedTimeDescription:t=>`Ora selectat\u0103: ${t.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"};var Oh={};Oh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: \u0441 ${t.startDate} \u043F\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"};var $h={};$h={calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Vybrat\xFD \u010Das: ${t.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"};var Lh={};Lh={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izbrani \u010Das: ${t.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"};var Bh={};Bh={calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani opseg: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izabrano vreme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var Hh={};Hh={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.startDate} till ${t.endDate}`,selectedTimeDescription:t=>`Vald tid: ${t.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"};var Wh={};Wh={calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.startDate} - ${t.endDate}`,selectedTimeDescription:t=>`Se\xE7ilen Zaman: ${t.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"};var Uh={};Uh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u2014 ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"};var Kh={};Kh={calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${t.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var Zh={};Zh={calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${t.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var fn={};fn={"ar-AE":hh,"bg-BG":fh,"cs-CZ":gh,"da-DK":xh,"de-DE":vh,"el-GR":yh,"en-US":bh,"es-ES":wh,"et-EE":Dh,"fi-FI":jh,"fr-FR":Ch,"he-IL":kh,"hr-HR":Sh,"hu-HU":Nh,"it-IT":Eh,"ja-JP":_h,"ko-KR":Th,"lt-LT":Rh,"lv-LV":Ah,"nb-NO":Ih,"nl-NL":Ph,"pl-PL":Mh,"pt-BR":Fh,"pt-PT":Vh,"ro-RO":zh,"ru-RU":Oh,"sk-SK":$h,"sl-SI":Lh,"sr-SP":Bh,"sv-SE":Hh,"tr-TR":Wh,"uk-UA":Uh,"zh-CN":Kh,"zh-TW":Zh};function as(t,e,a){let{direction:r}=qe(),n=(0,x.useMemo)(()=>ro(e),[e]),i=d=>{if(d.currentTarget.contains(d.target)&&(d.altKey&&(d.key==="ArrowDown"||d.key==="ArrowUp")&&"setOpen"in t&&(d.preventDefault(),d.stopPropagation(),t.setOpen(!0)),!a))switch(d.key){case"ArrowLeft":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=qh(e.current,u.getBoundingClientRect().left,-1);c&&c.focus()}}else n.focusPrevious();break;case"ArrowRight":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=qh(e.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else n.focusNext();break}},l=()=>{var c;if(!e.current)return;let d=(c=window.event)==null?void 0:c.target,u=Tv(e.current,{tabbable:!0});if(d&&(d=(u.currentNode=d,u.previousNode())),!d){let p;do p=u.lastChild(),p&&(d=p);while(p)}for(;d!=null&&d.hasAttribute("data-placeholder");){let p=u.previousNode();if(p&&p.hasAttribute("data-placeholder"))d=p;else break}d&&d.focus()},{pressProps:o}=Vv({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&l()},onPress(d){(d.pointerType==="touch"||d.pointerType==="pen")&&l()}});return Xe(o,{onKeyDown:i})}function qh(t,e,a){let r=Tv(t,{tabbable:!0}),n=r.nextNode(),i=null,l=1/0;for(;n;){let o=n.getBoundingClientRect().left-e,d=Math.abs(o);Math.sign(o)===a&&d<l&&(i=n,l=d),n=r.nextNode()}return i}function Gw(t){return t&&t.__esModule?t.default:t}var Yh=new WeakMap,gn="__role_"+Date.now(),Gh="__focusManager_"+Date.now();function Jw(t,e,a){var y;let{isInvalid:r,validationErrors:n,validationDetails:i}=e.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:d,errorMessageProps:u}=Ru({...t,labelElementType:"span",isInvalid:r,errorMessage:t.errorMessage||n}),c=(0,x.useRef)(null),{focusWithinProps:p}=Ul({...t,onFocusWithin(C){var _;c.current=e.value,(_=t.onFocus)==null||_.call(t,C)},onBlurWithin:C=>{var _;e.confirmPlaceholder(),e.value!==c.current&&e.commitValidation(),(_=t.onBlur)==null||_.call(t,C)},onFocusWithinChange:t.onFocusChange}),m=Wa(Gw(fn),"@react-aria/datepicker"),h=e.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=e.maxGranularity==="hour"?"time":"date",f=io(e.value?m.format(h,{[g]:e.formatValue({month:"long"})}):""),v=t[gn]==="presentation"?o["aria-describedby"]:[f["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=t[Gh],w=(0,x.useMemo)(()=>b||ro(a),[b,a]),D=as(e,a,t[gn]==="presentation");Yh.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:[l.id,t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:w});let j=(0,x.useRef)(t.autoFocus),k;k=t[gn]==="presentation"?{role:"presentation"}:Xe(o,{role:"group","aria-disabled":t.isDisabled||void 0,"aria-describedby":v}),(0,x.useEffect)(()=>{j.current&&w.focusFirst(),j.current=!1},[w]),vR(t.inputRef,e.defaultValue,e.setValue),CR({...t,focus(){w.focusFirst()}},e,t.inputRef);let S={type:"hidden",name:t.name,form:t.form,value:((y=e.value)==null?void 0:y.toString())||"",disabled:t.isDisabled};t.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=t.isRequired,S.onChange=()=>{});let N=ot(t);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:Xe(N,k,D,p,{onKeyDown(C){t.onKeyDown&&t.onKeyDown(C)},onKeyUp(C){t.onKeyUp&&t.onKeyUp(C)},style:{unicodeBidi:"isolate"}}),inputProps:S,descriptionProps:d,errorMessageProps:u,isInvalid:r,validationErrors:n,validationDetails:i}}function Qw(t){return t&&t.__esModule?t.default:t}function Xw(t,e,a){let r=Yr(),n=Yr(),i=Yr(),l=Wa(Qw(fn),"@react-aria/datepicker"),{isInvalid:o,validationErrors:d,validationDetails:u}=e.displayValidation,{labelProps:c,fieldProps:p,descriptionProps:m,errorMessageProps:h}=Ru({...t,labelElementType:"span",isInvalid:o,errorMessage:t.errorMessage||d}),g=as(e,a),f=p["aria-labelledby"]||p.id,{locale:v}=qe(),b=e.formatValue(v,{month:"long"}),w=io(b?l.format("selectedDateDescription",{date:b}):""),D=[w["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=ot(t),k=(0,x.useMemo)(()=>ro(a),[a]),S=(0,x.useRef)(!1),{focusWithinProps:N}=Ul({...t,isDisabled:e.isOpen,onBlurWithin:y=>{var E;if(!((E=document.getElementById(n))!=null&&E.contains(y.relatedTarget))){var C,_;S.current=!1,(C=t.onBlur)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!1)}},onFocusWithin:y=>{if(!S.current){var C,_;S.current=!0,(C=t.onFocus)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!0)}}});return{groupProps:Xe(j,g,p,w,N,{role:"group","aria-disabled":t.isDisabled||null,"aria-labelledby":f,"aria-describedby":D,onKeyDown(y){e.isOpen||t.onKeyDown&&t.onKeyDown(y)},onKeyUp(y){e.isOpen||t.onKeyUp&&t.onKeyUp(y)}}),labelProps:{...c,onClick:()=>{k.focusFirst()}},fieldProps:{...p,id:i,[gn]:"presentation","aria-describedby":D,value:e.value,defaultValue:e.defaultValue,onChange:e.setValue,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,granularity:t.granularity,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior,[Au]:e,autoFocus:t.autoFocus,name:t.name,form:t.form},descriptionProps:m,errorMessageProps:h,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${r} ${f}`,"aria-describedby":D,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:n,"aria-labelledby":`${r} ${f}`},calendarProps:{autoFocus:!0,value:e.dateValue,onChange:e.setDateValue,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,defaultFocusedValue:e.dateValue?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:o,validationErrors:d,validationDetails:u}}function e2(t){return t&&t.__esModule?t.default:t}function t2(){let{locale:t}=qe(),e=hR(e2(fn),"@react-aria/datepicker");return(0,x.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new a2(t,e)}},[t,e])}var a2=class{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,e){this.locale=t,this.dictionary=e}};function r2(t,e,a){let r=(0,x.useRef)(""),{locale:n,direction:i}=qe(),l=t2(),{ariaLabel:o,ariaLabelledBy:d,ariaDescribedBy:u,focusManager:c}=Yh.get(e),p=t.isPlaceholder?"":t.text,m=(0,x.useMemo)(()=>e.dateFormatter.resolvedOptions(),[e.dateFormatter]),h=ra({month:"long",timeZone:m.timeZone}),g=ra({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(t.type==="month"&&!t.isPlaceholder){let M=h.format(e.dateValue);p=M===p?M:`${p} \u2013 ${M}`}else t.type==="hour"&&!t.isPlaceholder&&(p=g.format(e.dateValue));let{spinButtonProps:f}=fR({value:t.value,textValue:p,minValue:t.minValue,maxValue:t.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly||!t.isEditable,isRequired:e.isRequired,onIncrement:()=>{r.current="",e.increment(t.type)},onDecrement:()=>{r.current="",e.decrement(t.type)},onIncrementPage:()=>{r.current="",e.incrementPage(t.type)},onDecrementPage:()=>{r.current="",e.decrementPage(t.type)},onIncrementToMax:()=>{r.current="",t.maxValue!==void 0&&e.setSegment(t.type,t.maxValue)},onDecrementToMin:()=>{r.current="",t.minValue!==void 0&&e.setSegment(t.type,t.minValue)}}),v=(0,x.useMemo)(()=>new mR(n,{maximumFractionDigits:0}),[n]),b=()=>{if(t.text===t.placeholder&&c.focusPrevious(),v.isValidPartialNumber(t.text)&&!e.isReadOnly&&!t.isPlaceholder){let M=t.text.slice(0,-1),O=v.parse(M);M=O===0?"":M,M.length===0||O===0?e.clearSegment(t.type):e.setSegment(t.type,O),r.current=M}else t.type==="dayPeriod"&&e.clearSegment(t.type)},w=M=>{if(M.key==="a"&&(lA()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),b();break}},{startsWith:D}=Nw({sensitivity:"base"}),j=ra({hour:"numeric",hour12:!0}),k=(0,x.useMemo)(()=>{let M=new Date;return M.setHours(0),j.formatToParts(M).find(O=>O.type==="dayPeriod").value},[j]),S=(0,x.useMemo)(()=>{let M=new Date;return M.setHours(12),j.formatToParts(M).find(O=>O.type==="dayPeriod").value},[j]),N=ra({year:"numeric",era:"narrow",timeZone:"UTC"}),y=(0,x.useMemo)(()=>{if(t.type!=="era")return[];let M=Fe(new nt(1,1,1),e.calendar),O=e.calendar.getEras().map($=>{let Y=M.set({year:1,month:1,day:1,era:$}).toDate("UTC");return{era:$,formatted:N.formatToParts(Y).find(X=>X.type==="era").value}}),z=n2(O.map($=>$.formatted));if(z)for(let $ of O)$.formatted=$.formatted.slice(z);return O},[N,e.calendar,t.type]),C=M=>{if(e.isDisabled||e.isReadOnly)return;let O=r.current+M;switch(t.type){case"dayPeriod":if(D(k,M))e.setSegment("dayPeriod",0);else if(D(S,M))e.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let z=y.find($=>D($.formatted,M));z&&(e.setSegment("era",z.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!v.isValidPartialNumber(O))return;let z=v.parse(O),$=z,Y=t.minValue===0;if(t.type==="hour"&&e.dateFormatter.resolvedOptions().hour12){switch(e.dateFormatter.resolvedOptions().hourCycle){case"h11":z>11&&($=v.parse(M));break;case"h12":Y=!1,z>12&&($=v.parse(M));break}t.value!==void 0&&t.value>=12&&z>1&&(z+=12)}else t.maxValue!==void 0&&z>t.maxValue&&($=v.parse(M));if(isNaN(z))return;let X=$!==0||Y;X&&e.setSegment(t.type,$),t.maxValue!==void 0&&(+(z+"0")>t.maxValue||O.length>=String(t.maxValue).length)?(r.current="",X&&c.focusNext()):r.current=O;break}}},_=()=>{var M;r.current="",a.current&&Av(a.current,{containingElement:no(a.current)}),(M=window.getSelection())==null||M.collapse(a.current)};Kr((0,x.useRef)(typeof document<"u"?document:null),"selectionchange",()=>{var O;let M=window.getSelection();M!=null&&M.anchorNode&&((O=a.current)!=null&&O.contains(M==null?void 0:M.anchorNode))&&M.collapse(a.current)});let E=(0,x.useRef)("");Kr(a,"beforeinput",M=>{if(a.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":v.isValidPartialNumber(t.text)&&!e.isReadOnly&&b();break;case"insertCompositionText":E.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:M.data!=null&&C(M.data);break}}),Kr(a,"input",M=>{let{inputType:O,data:z}=M;O==="insertCompositionText"&&(a.current&&(a.current.textContent=E.current),z!=null&&(D(k,z)||D(S,z))&&C(z))}),ba(()=>{let M=a.current;return()=>{document.activeElement===M&&(c.focusPrevious()||c.focusNext())}},[a,c]);let R=Iv()||t.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};t!==(0,x.useMemo)(()=>e.segments.find(M=>M.isEditable),[e.segments])&&!e.isInvalid&&(u=void 0);let P=Yr(),A=!e.isDisabled&&!e.isReadOnly&&t.isEditable,V=t.type==="literal"?"":l.of(t.type),T=Yl({"aria-label":`${V}${o?`, ${o}`:""}${d?", ":""}`,"aria-labelledby":d});if(t.type==="literal")return{segmentProps:{"aria-hidden":!0}};let I={caretColor:"transparent"};if(i==="rtl"){I.unicodeBidi="embed";let M=m[t.type];(M==="numeric"||M==="2-digit")&&(I.direction="ltr")}return{segmentProps:Xe(f,T,{id:P,...R,"aria-invalid":e.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":e.isReadOnly||!t.isEditable?"true":void 0,"data-placeholder":t.isPlaceholder||void 0,contentEditable:A,suppressContentEditableWarning:A,spellCheck:A?"false":void 0,autoCorrect:A?"off":void 0,enterKeyHint:A?"next":void 0,inputMode:e.isDisabled||t.type==="dayPeriod"||t.type==="era"||!A?void 0:"numeric",tabIndex:e.isDisabled?void 0:0,onKeyDown:w,onFocus:_,style:I,onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function n2(t){t.sort();let e=t[0],a=t[t.length-1];for(let r=0;r<e.length;r++)if(e[r]!==a[r])return r;return 0}function i2(t){return t&&t.__esModule?t.default:t}function l2(t,e,a){var R,P,A,V,T;let r=Wa(i2(fn),"@react-aria/datepicker"),{isInvalid:n,validationErrors:i,validationDetails:l}=e.displayValidation,{labelProps:o,fieldProps:d,descriptionProps:u,errorMessageProps:c}=Ru({...t,labelElementType:"span",isInvalid:n,errorMessage:t.errorMessage||i}),p=d["aria-labelledby"]||d.id,{locale:m}=qe(),h=e.formatValue(m,{month:"long"}),g=io(h?r.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),f={"aria-label":r.format("startDate"),"aria-labelledby":p},v={"aria-label":r.format("endDate"),"aria-labelledby":p},b=Yr(),w=Yr(),D=as(e,a),j=[g["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=(0,x.useMemo)(()=>ro(a,{accept:I=>I.id!==b}),[a,b]),S={[Gh]:k,[gn]:"presentation","aria-describedby":j,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,granularity:t.granularity,shouldForceLeadingZeros:t.shouldForceLeadingZeros,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior},N=ot(t),y=(0,x.useRef)(!1),{focusWithinProps:C}=Ul({...t,isDisabled:e.isOpen,onBlurWithin:I=>{var z;if(!((z=document.getElementById(w))!=null&&z.contains(I.relatedTarget))){var M,O;y.current=!1,(M=t.onBlur)==null||M.call(t,I),(O=t.onFocusChange)==null||O.call(t,!1)}},onFocusWithin:I=>{if(!y.current){var M,O;y.current=!0,(M=t.onFocus)==null||M.call(t,I),(O=t.onFocusChange)==null||O.call(t,!0)}}}),_=(0,x.useRef)(fv),E=(0,x.useRef)(fv);return{groupProps:Xe(N,D,d,g,C,{role:"group","aria-disabled":t.isDisabled||null,"aria-describedby":j,onKeyDown(I){e.isOpen||t.onKeyDown&&t.onKeyDown(I)},onKeyUp(I){e.isOpen||t.onKeyUp&&t.onKeyUp(I)}}),labelProps:{...o,onClick:()=>{k.focusFirst()}},buttonProps:{...g,id:b,"aria-haspopup":"dialog","aria-label":r.format("calendar"),"aria-labelledby":`${b} ${p}`,"aria-describedby":j,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${p}`},startFieldProps:{...f,...S,value:((R=e.value)==null?void 0:R.start)??null,defaultValue:(P=e.defaultValue)==null?void 0:P.start,onChange:I=>e.setDateTime("start",I),autoFocus:t.autoFocus,name:t.startName,form:t.form,[Au]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(I){_.current=I,e.updateValidation(Kl(I,E.current))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},endFieldProps:{...v,...S,value:((A=e.value)==null?void 0:A.end)??null,defaultValue:(V=e.defaultValue)==null?void 0:V.end,onChange:I=>e.setDateTime("end",I),name:t.endName,form:t.form,[Au]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(I){E.current=I,e.updateValidation(Kl(_.current,I))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},descriptionProps:u,errorMessageProps:c,calendarProps:{autoFocus:!0,value:(T=e.dateRange)!=null&&T.start&&e.dateRange.end?e.dateRange:null,onChange:e.setDateRange,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,allowsNonContiguousRanges:t.allowsNonContiguousRanges,defaultFocusedValue:e.dateRange?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:n,validationErrors:i,validationDetails:l}}function o2(t,e){let{role:a="dialog"}=t,r=Mv();r=t["aria-label"]?void 0:r;let n=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{if(e.current&&!e.current.contains(document.activeElement)){Iu(e.current);let i=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(n.current=!0,e.current&&(e.current.blur(),Iu(e.current)),n.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),Bw(),{dialogProps:{...ot(t,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:i=>{n.current&&i.stopPropagation()}},titleProps:{id:r}}}function wr(t,e,a){return e!=null&&t.compare(e)<0||a!=null&&t.compare(a)>0}function rs(t,e,a,r,n){let i={};for(let l in e)i[l]=Math.floor(e[l]/2),i[l]>0&&e[l]%2==0&&i[l]--;return xn(t,Xa(t,e,a).subtract(i),e,a,r,n)}function Xa(t,e,a,r,n){let i=t;return e.years?i=Fb(t):e.months?i=Ga(t):e.weeks&&(i=on(t,a)),xn(t,i,e,a,r,n)}function ns(t,e,a,r,n){let i={...e};return i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--,xn(t,Xa(t,e,a).subtract(i),e,a,r,n)}function xn(t,e,a,r,n,i){if(n&&t.compare(n)>=0){let l=Po(e,Xa(ct(n),a,r));l&&(e=l)}if(i&&t.compare(i)<=0){let l=Io(e,ns(ct(i),a,r));l&&(e=l)}return e}function Sa(t,e,a){if(e){let r=Po(t,ct(e));r&&(t=r)}if(a){let r=Io(t,ct(a));r&&(t=r)}return t}function Jh(t,e,a){if(!a)return t;for(;t.compare(e)>=0&&a(t);)t=t.subtract({days:1});return t.compare(e)>=0?t:null}function Qh(t){let e=(0,x.useMemo)(()=>new Wt(t.locale),[t.locale]),a=(0,x.useMemo)(()=>e.resolvedOptions(),[e]),{locale:r,createCalendar:n,visibleDuration:i={months:1},minValue:l,maxValue:o,selectionAlignment:d,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:p}=t,m=(0,x.useMemo)(()=>n(a.calendar),[n,a.calendar]),[h,g]=ur(t.value,t.defaultValue??null,t.onChange),f=(0,x.useMemo)(()=>h?Fe(ct(h),m):null,[h,m]),v=(0,x.useMemo)(()=>h&&"timeZone"in h?h.timeZone:a.timeZone,[h,a.timeZone]),[b,w]=ur((0,x.useMemo)(()=>t.focusedValue?Sa(Fe(ct(t.focusedValue),m),l,o):void 0,[t.focusedValue,m,l,o]),(0,x.useMemo)(()=>Sa(t.defaultFocusedValue?Fe(ct(t.defaultFocusedValue),m):f||Fe(hi(v),m),l,o),[t.defaultFocusedValue,f,v,m,l,o]),t.onFocusChange),[D,j]=(0,x.useState)(()=>{switch(d){case"start":return Xa(b,i,r,l,o);case"end":return ns(b,i,r,l,o);default:return rs(b,i,r,l,o)}}),[k,S]=(0,x.useState)(t.autoFocus||!1),N=(0,x.useMemo)(()=>{let T={...i};return T.days?T.days--:T.days=-1,D.add(T)},[D,i]),[y,C]=(0,x.useState)(m);if(!pi(m,y)){let T=Fe(b,m);j(rs(T,i,r,l,o)),w(T),C(m)}wr(b,l,o)?w(Sa(b,l,o)):b.compare(D)<0?j(ns(b,i,r,l,o)):b.compare(N)>0&&j(Xa(b,i,r,l,o));function _(T){T=Sa(T,l,o),w(T)}function E(T){if(!t.isDisabled&&!t.isReadOnly){let I=T;if(I===null){g(null);return}if(I=Sa(I,l,o),I=Jh(I,D,u),!I)return;I=Fe(I,(h==null?void 0:h.calendar)||new gt),h&&"hour"in h?g(h.set(I)):g(I)}}let R=(0,x.useMemo)(()=>f?u&&u(f)?!0:wr(f,l,o):!1,[f,u,l,o]),P=t.isInvalid||t.validationState==="invalid"||R,A=P?"invalid":null,V=(0,x.useMemo)(()=>c==="visible"?i:is(i),[c,i]);return{isDisabled:t.isDisabled??!1,isReadOnly:t.isReadOnly??!1,value:f,setValue:E,visibleRange:{start:D,end:N},minValue:l,maxValue:o,focusedDate:b,timeZone:v,validationState:A,isValueInvalid:P,setFocusedDate(T){_(T),S(!0)},focusNextDay(){_(b.add({days:1}))},focusPreviousDay(){_(b.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&_(b.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&_(b.subtract({weeks:1}))},focusNextPage(){let T=D.add(V);w(Sa(b.add(V),l,o)),j(Xa(xn(b,T,V,r,l,o),V,r))},focusPreviousPage(){let T=D.subtract(V);w(Sa(b.subtract(V),l,o)),j(Xa(xn(b,T,V,r,l,o),V,r))},focusSectionStart(){i.days?_(D):i.weeks?_(on(b,r)):(i.months||i.years)&&_(Ga(b))},focusSectionEnd(){i.days?_(N):i.weeks?_(Ob(b,r)):(i.months||i.years)&&_(gi(b))},focusNextSection(T){if(!T&&!i.days){_(b.add(is(i)));return}i.days?this.focusNextPage():i.weeks?_(b.add({months:1})):(i.months||i.years)&&_(b.add({years:1}))},focusPreviousSection(T){if(!T&&!i.days){_(b.subtract(is(i)));return}i.days?this.focusPreviousPage():i.weeks?_(b.subtract({months:1})):(i.months||i.years)&&_(b.subtract({years:1}))},selectFocusedDate(){u&&u(b)||E(b)},selectDate(T){E(T)},isFocused:k,setFocused:S,isInvalid(T){return wr(T,l,o)},isSelected(T){return f!=null&&Ke(T,f)&&!this.isCellDisabled(T)&&!this.isCellUnavailable(T)},isCellFocused(T){return k&&b&&Ke(T,b)},isCellDisabled(T){return t.isDisabled||T.compare(D)<0||T.compare(N)>0||this.isInvalid(T)},isCellUnavailable(T){return t.isDateUnavailable?t.isDateUnavailable(T):!1},isPreviousVisibleRangeInvalid(){let T=D.subtract({days:1});return Ke(T,D)||this.isInvalid(T)},isNextVisibleRangeInvalid(){let T=N.add({days:1});return Ke(T,N)||this.isInvalid(T)},getDatesInWeek(T,I=D){let M=I.add({weeks:T}),O=[];M=on(M,r,p);let z=Ro(M,r,p);for(let $=0;$<z;$++)O.push(null);for(;O.length<7;){O.push(M);let $=M.add({days:1});if(Ke(M,$))break;M=$}for(;O.length<7;)O.push(null);return O}}}function is(t){let e={...t};for(let a in t)e[a]=1;return e}function s2(t){let{value:e,defaultValue:a,onChange:r,createCalendar:n,locale:i,visibleDuration:l={months:1},minValue:o,maxValue:d,...u}=t,[c,p]=ur(e,a||null,r),[m,h]=(0,x.useState)(null),g="center";if(c&&c.start&&c.end){let I=rs(ct(c.start),l,i,o,d).add(l).subtract({days:1});c.end.compare(I)>0&&(g="start")}let f=(0,x.useRef)(null),[v,b]=(0,x.useState)(null),w=(0,x.useMemo)(()=>Po(o,v==null?void 0:v.start),[o,v]),D=(0,x.useMemo)(()=>Io(d,v==null?void 0:v.end),[d,v]),j=Qh({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:l,minValue:w,maxValue:D,selectionAlignment:t.selectionAlignment||g}),k=I=>{I&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(f.current={start:ef(I,j,-1),end:ef(I,j,1)},b(f.current)):(f.current=null,b(null))},[S,N]=(0,x.useState)(j.visibleRange);(!To(j.visibleRange.start,S.start)||!To(j.visibleRange.end,S.end))&&(k(m),N(j.visibleRange));let y=I=>{I?(h(I),k(I)):(h(null),k(null))},C=m?ls(m,j.focusedDate):c&&ls(c.start,c.end),_=I=>{if(t.isReadOnly)return;let M=Jh(Sa(I,w,D),j.visibleRange.start,t.isDateUnavailable);if(M)if(!m)y(M);else{let O=ls(m,M);O&&p({start:Xh(O.start,c==null?void 0:c.start),end:Xh(O.end,c==null?void 0:c.end)}),y(null)}},[E,R]=(0,x.useState)(!1),{isDateUnavailable:P}=t,A=(0,x.useMemo)(()=>!c||m?!1:P&&(P(c.start)||P(c.end))?!0:wr(c.start,o,d)||wr(c.end,o,d),[P,c,m,o,d]),V=t.isInvalid||t.validationState==="invalid"||A;return{...j,value:c,setValue:p,anchorDate:m,setAnchorDate:y,highlightedRange:C,validationState:V?"invalid":null,isValueInvalid:V,selectFocusedDate(){_(j.focusedDate)},selectDate:_,highlightDate(I){m&&j.setFocusedDate(I)},isSelected(I){return!!(C&&I.compare(C.start)>=0&&I.compare(C.end)<=0&&!j.isCellDisabled(I)&&!j.isCellUnavailable(I))},isInvalid(I){var M,O;return j.isInvalid(I)||wr(I,(M=f.current)==null?void 0:M.start,(O=f.current)==null?void 0:O.end)},isDragging:E,setDragging:R}}function ls(t,e){return!t||!e?null:(e.compare(t)<0&&([t,e]=[e,t]),{start:ct(t),end:ct(e)})}function Xh(t,e){return t=Fe(t,(e==null?void 0:e.calendar)||new gt),e&&"hour"in e?e.set(t):t}function ef(t,e,a){let r=t.add({days:a});for(;(a<0?r.compare(e.visibleRange.start)>=0:r.compare(e.visibleRange.end)<=0)&&!e.isCellUnavailable(r);)r=r.add({days:a});if(e.isCellUnavailable(r))return r.add({days:-a})}function os(t){let[e,a]=ur(t.isOpen,t.defaultOpen||!1,t.onOpenChange);return{isOpen:e,setOpen:a,open:(0,x.useCallback)(()=>{a(!0)},[a]),close:(0,x.useCallback)(()=>{a(!1)},[a]),toggle:(0,x.useCallback)(()=>{a(!e)},[a,e])}}var tf={};tf={rangeOverflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."};var af={};af={rangeOverflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."};var rf={};rf={rangeOverflow:t=>`Hodnota mus\xED b\xFDt ${t.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:t=>`Hodnota mus\xED b\xFDt ${t.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."};var nf={};nf={rangeOverflow:t=>`V\xE6rdien skal v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:t=>`V\xE6rdien skal v\xE6re ${t.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."};var lf={};lf={rangeOverflow:t=>`Der Wert muss ${t.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:t=>`Der Wert muss ${t.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."};var of={};of={rangeOverflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."};var sf={};sf={rangeUnderflow:t=>`Value must be ${t.minValue} or later.`,rangeOverflow:t=>`Value must be ${t.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var df={};df={rangeOverflow:t=>`El valor debe ser ${t.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:t=>`El valor debe ser ${t.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var uf={};uf={rangeOverflow:t=>`V\xE4\xE4rtus peab olema ${t.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:t=>`V\xE4\xE4rtus peab olema ${t.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."};var cf={};cf={rangeOverflow:t=>`Arvon on oltava ${t.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:t=>`Arvon on oltava ${t.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."};var mf={};mf={rangeOverflow:t=>`La valeur doit \xEAtre ${t.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:t=>`La valeur doit \xEAtre ${t.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."};var pf={};pf={rangeOverflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."};var hf={};hf={rangeOverflow:t=>`Vrijednost mora biti ${t.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrijednost mora biti ${t.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var ff={};ff={rangeOverflow:t=>`Az \xE9rt\xE9knek ${t.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:t=>`Az \xE9rt\xE9knek ${t.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."};var gf={};gf={rangeOverflow:t=>`Il valore deve essere ${t.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:t=>`Il valore deve essere ${t.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var xf={};xf={rangeOverflow:t=>`\u5024\u306F ${t.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:t=>`\u5024\u306F ${t.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"};var vf={};vf={rangeOverflow:t=>`\uAC12\uC740 ${t.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:t=>`\uAC12\uC740 ${t.minValue} \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."};var yf={};yf={rangeOverflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."};var bf={};bf={rangeOverflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."};var wf={};wf={rangeOverflow:t=>`Verdien m\xE5 v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:t=>`Verdien m\xE5 v\xE6re ${t.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Df={};Df={rangeOverflow:t=>`Waarde moet ${t.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:t=>`Waarde moet ${t.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var jf={};jf={rangeOverflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."};var Cf={};Cf={rangeOverflow:t=>`O valor deve ser ${t.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:t=>`O valor deve ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var kf={};kf={rangeOverflow:t=>`O valor tem de ser ${t.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:t=>`O valor tem de ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var Sf={};Sf={rangeOverflow:t=>`Valoarea trebuie s\u0103 fie ${t.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:t=>`Valoarea trebuie s\u0103 fie ${t.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."};var Nf={};Nf={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var Ef={};Ef={rangeOverflow:t=>`Hodnota mus\xED by\u0165 ${t.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:t=>`Hodnota mus\xED by\u0165 ${t.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."};var _f={};_f={rangeOverflow:t=>`Vrednost mora biti ${t.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:t=>`Vrednost mora biti ${t.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."};var Tf={};Tf={rangeOverflow:t=>`Vrednost mora da bude ${t.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrednost mora da bude ${t.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Rf={};Rf={rangeOverflow:t=>`V\xE4rdet m\xE5ste vara ${t.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:t=>`V\xE4rdet m\xE5ste vara ${t.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."};var Af={};Af={rangeOverflow:t=>`De\u011Fer, ${t.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:t=>`De\u011Fer, ${t.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."};var If={};If={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var Pf={};Pf={rangeOverflow:t=>`\u503C\u5FC5\u987B\u662F ${t.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u987B\u662F ${t.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"};var Mf={};Mf={rangeOverflow:t=>`\u503C\u5FC5\u9808\u662F ${t.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u9808\u662F ${t.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"};var Ff={};Ff={"ar-AE":tf,"bg-BG":af,"cs-CZ":rf,"da-DK":nf,"de-DE":lf,"el-GR":of,"en-US":sf,"es-ES":df,"et-EE":uf,"fi-FI":cf,"fr-FR":mf,"he-IL":pf,"hr-HR":hf,"hu-HU":ff,"it-IT":gf,"ja-JP":xf,"ko-KR":vf,"lt-LT":yf,"lv-LV":bf,"nb-NO":wf,"nl-NL":Df,"pl-PL":jf,"pt-BR":Cf,"pt-PT":kf,"ro-RO":Sf,"ru-RU":Nf,"sk-SK":Ef,"sl-SI":_f,"sr-SP":Tf,"sv-SE":Rf,"tr-TR":Af,"uk-UA":If,"zh-CN":Pf,"zh-TW":Mf};function d2(t){return t&&t.__esModule?t.default:t}var Vf=new Hl(d2(Ff));function zf(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return t}function _i(t,e,a,r,n){let i=t!=null&&a!=null&&t.compare(a)>0,l=t!=null&&e!=null&&t.compare(e)<0,o=t!=null&&(r==null?void 0:r(t))||!1,d=i||l||o,u=[];if(d){let c=zf(),p=new cR(c,Hl.getGlobalDictionaryForPackage("@react-stately/datepicker")||Vf),m=new Wt(c,ca({},n)),h=m.resolvedOptions().timeZone;l&&e!=null&&u.push(p.format("rangeUnderflow",{minValue:m.format(e.toDate(h))})),i&&a!=null&&u.push(p.format("rangeOverflow",{maxValue:m.format(a.toDate(h))})),o&&u.push(p.format("unavailableDate"))}return{isInvalid:d,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!d}}}function u2(t,e,a,r,n){let i=Kl(_i((t==null?void 0:t.start)??null,e,a,r,n),_i((t==null?void 0:t.end)??null,e,a,r,n));if((t==null?void 0:t.end)!=null&&t.start!=null&&t.end.compare(t.start)<0){let l=Hl.getGlobalDictionaryForPackage("@react-stately/datepicker")||Vf;i=Kl(i,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",zf())],validationDetails:{...uR,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return i}var c2={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},m2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ca(t,e){t={...e.shouldForceLeadingZeros?m2:c2,...t};let a=e.granularity||"minute",r=Object.keys(t),n=r.indexOf(e.maxGranularity??"year");n<0&&(n=0);let i=r.indexOf(a);if(i<0&&(i=2),n>i)throw Error("maxGranularity must be greater than granularity");let l=r.slice(n,i+1).reduce((o,d)=>(o[d]=t[d],o),{});return e.hourCycle!=null&&(l.hour12=e.hourCycle===12),l.timeZone=e.timeZone||"UTC",(a==="hour"||a==="minute"||a==="second")&&e.timeZone&&!e.hideTimeZone&&(l.timeZoneName="short"),e.showEra&&n===0&&(l.era="short"),l}function Dr(t){return t&&"hour"in t?t:new lw}function Of(t,e){if(t===null)return null;if(t)return Fe(t,e)}function vn(t,e,a,r){if(t)return Of(t,a);let n=Fe(Qc(r??fi()).set({hour:0,minute:0,second:0,millisecond:0}),a);return e==="year"||e==="month"||e==="day"?ct(n):r?n:Kt(n)}function ss(t,e){let a=t&&"timeZone"in t?t.timeZone:void 0,r=t&&"minute"in t?"minute":"day";if(t&&e&&!(e in t))throw Error("Invalid granularity "+e+" for value "+t.toString());let[n,i]=(0,x.useState)([r,a]);t&&(n[0]!==r||n[1]!==a)&&i([r,a]),e||(e=t?r:n[0]);let l=t?a:n[1];return[e,l]}function p2(t){let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),i=a||t.placeholderValue||null,[l,o]=ss(i,t.granularity),d=a==null?null:a.toDate(o??"UTC"),u=l==="hour"||l==="minute"||l==="second",c=t.shouldCloseOnSelect??!0,[p,m]=(0,x.useState)(null),[h,g]=(0,x.useState)(null);if(a&&(p=a,"hour"in a&&(h=a)),i&&!(l in i))throw Error("Invalid granularity "+l+" for value "+i.toString());let f=(a==null?void 0:a.calendar.identifier)==="gregory"&&a.era==="BC",v=(0,x.useMemo)(()=>({granularity:l,timeZone:o,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:f}),[l,t.hourCycle,t.shouldForceLeadingZeros,o,t.hideTimeZone,f]),{minValue:b,maxValue:w,isDateUnavailable:D}=t,j=(0,x.useMemo)(()=>_i(a,b,w,D,v),[a,b,w,D,v]),k=Pu({...t,value:a,builtinValidation:j}),S=k.displayValidation.isInvalid,N=t.validationState||(S?"invalid":null),y=(E,R)=>{r("timeZone"in R?R.set(ct(E)):Kt(E,R)),m(null),g(null),k.commitValidation()},C=E=>{let R=typeof c=="function"?c():c;u?h||R?y(E,h||Dr(t.defaultValue||t.placeholderValue)):m(E):(r(E),k.commitValidation()),R&&e.setOpen(!1)},_=E=>{p&&E?y(p,E):g(E)};return{...k,value:a,defaultValue:t.defaultValue??n,setValue:r,dateValue:p,timeValue:h,setDateValue:C,setTimeValue:_,granularity:l,hasTime:u,...e,setOpen(E){!E&&!a&&p&&u&&y(p,h||Dr(t.defaultValue||t.placeholderValue)),e.setOpen(E)},validationState:N,isInvalid:S,formatValue(E,R){return d?new Wt(E,ca(R,v)).format(d):""},getDateFormatter(E,R){return new Wt(E,ca({},{...v,...R}))}}}var h2=new Hl({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function f2(t,e,a){return t==="era"||t==="dayPeriod"?e:t==="year"||t==="month"||t==="day"?h2.getStringForLocale(t,a):"\u2013\u2013"}var Ti={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},$f={year:5,month:2,day:7,hour:2,minute:15,second:15},Lf={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function g2(t){let{locale:e,createCalendar:a,hideTimeZone:r,isDisabled:n=!1,isReadOnly:i=!1,isRequired:l=!1,minValue:o,maxValue:d,isDateUnavailable:u}=t,c=t.value||t.defaultValue||t.placeholderValue||null,[p,m]=ss(c,t.granularity),h=m||"UTC";if(c&&!(p in c))throw Error("Invalid granularity "+p+" for value "+c.toString());let g=(0,x.useMemo)(()=>new Wt(e),[e]),f=(0,x.useMemo)(()=>a(g.resolvedOptions().calendar),[a,g]),[v,b]=ur(t.value,t.defaultValue??null,t.onChange),[w]=(0,x.useState)(v),D=(0,x.useMemo)(()=>Of(v,f)??null,[v,f]),[j,k]=(0,x.useState)(()=>vn(t.placeholderValue,p,f,m)),S=D||j,N=f.identifier==="gregory"&&S.era==="BC",y=(0,x.useMemo)(()=>({granularity:p,maxGranularity:t.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:t.hourCycle,showEra:N,shouldForceLeadingZeros:t.shouldForceLeadingZeros}),[t.maxGranularity,p,t.hourCycle,t.shouldForceLeadingZeros,m,r,N]),C=(0,x.useMemo)(()=>ca({},y),[y]),_=(0,x.useMemo)(()=>new Wt(e,C),[e,C]),E=(0,x.useMemo)(()=>_.resolvedOptions(),[_]),R=(0,x.useMemo)(()=>_.formatToParts(new Date).filter(W=>Ti[W.type]).reduce((W,B)=>(W[Lf[B.type]||B.type]=!0,W),{}),[_]),[P,A]=(0,x.useState)(()=>t.value||t.defaultValue?{...R}:{}),V=(0,x.useRef)(null),T=(0,x.useRef)(f);(0,x.useEffect)(()=>{pi(f,T.current)||(T.current=f,k(W=>Object.keys(P).length>0?Fe(W,f):vn(t.placeholderValue,p,f,m)))},[f,p,P,m,t.placeholderValue]),v&&Object.keys(P).length<Object.keys(R).length&&(P={...R},A(P)),v==null&&Object.keys(P).length===Object.keys(R).length&&(P={},A(P),k(vn(t.placeholderValue,p,f,m)));let I=D&&Object.keys(P).length>=Object.keys(R).length?D:j,M=W=>{if(t.isDisabled||t.isReadOnly)return;let B=Object.keys(P),re=Object.keys(R);W==null?(b(null),k(vn(t.placeholderValue,p,f,m)),A({})):B.length===0&&V.current==null||B.length>=re.length||B.length===re.length-1&&R.dayPeriod&&!P.dayPeriod&&V.current!=="dayPeriod"?(B.length===0&&(P={...R},A(P)),W=Fe(W,(c==null?void 0:c.calendar)||new gt),b(W)):k(W),V.current=null},O=(0,x.useMemo)(()=>I.toDate(h),[I,h]),z=(0,x.useMemo)(()=>x2(O,P,_,E,I,f,e,p),[O,P,_,E,I,f,e,p]);R.era&&P.year&&!P.era?(P.era=!0,A({...P})):!R.era&&P.era&&(delete P.era,A({...P}));let $=W=>{P[W]=!0,W==="year"&&R.era&&(P.era=!0),A({...P})},Y=(W,B)=>{if(P[W])M(v2(I,W,B,E));else{$(W);let re=Object.keys(P),te=Object.keys(R);(re.length>=te.length||re.length===te.length-1&&R.dayPeriod&&!P.dayPeriod)&&M(I)}},X=(0,x.useMemo)(()=>_i(v,o,d,u,y),[v,o,d,u,y]),ne=Pu({...t,value:v,builtinValidation:X}),oe=ne.displayValidation.isInvalid,ae=t.validationState||(oe?"invalid":null);return{...ne,value:D,defaultValue:t.defaultValue??w,dateValue:O,calendar:f,setValue:M,segments:z,dateFormatter:_,validationState:ae,isInvalid:oe,granularity:p,maxGranularity:t.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:l,increment(W){Y(W,1)},decrement(W){Y(W,-1)},incrementPage(W){Y(W,$f[W]||1)},decrementPage(W){Y(W,-($f[W]||1))},setSegment(W,B){$(W),M(y2(I,W,B,E))},confirmPlaceholder(){if(t.isDisabled||t.isReadOnly)return;let W=Object.keys(P),B=Object.keys(R);W.length===B.length-1&&R.dayPeriod&&!P.dayPeriod&&(P={...R},A(P),M(I.copy()))},clearSegment(W){delete P[W],V.current=W,A({...P});let B=vn(t.placeholderValue,p,f,m),re=I;if(W==="dayPeriod"&&"hour"in I&&"hour"in B){let te=I.hour>=12,le=B.hour>=12;te&&!le?re=I.set({hour:I.hour-12}):!te&&le&&(re=I.set({hour:I.hour+12}))}else W==="hour"&&"hour"in I&&I.hour>=12&&P.dayPeriod?re=I.set({hour:B.hour+12}):W in I&&(re=I.set({[W]:B[W]}));b(null),M(re)},formatValue(W){return D?new Wt(e,ca(W,y)).format(O):""},getDateFormatter(W,B){return new Wt(W,ca({},{...y,...B}))}}}function x2(t,e,a,r,n,i,l,o){let d=["hour","minute","second"],u=a.formatToParts(t),c=[];for(let p of u){let m=Lf[p.type]||p.type,h=Ti[m];m==="era"&&i.getEras().length===1&&(h=!1);let g=Ti[m]&&!e[m],f=Ti[m]?f2(m,p.value,l):null,v={type:m,text:g?f:p.value,...Ri(n,m,r),isPlaceholder:g,placeholder:f,isEditable:h};m==="hour"?(c.push({type:"literal",text:"\u2066",...Ri(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push(v),m===o&&c.push({type:"literal",text:"\u2069",...Ri(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(m)&&m===o?(c.push(v),c.push({type:"literal",text:"\u2069",...Ri(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push(v)}return c}function Ri(t,e,a){switch(e){case"era":{let r=t.calendar.getEras();return{value:r.indexOf(t.era),minValue:0,maxValue:r.length-1}}case"year":return{value:t.year,minValue:1,maxValue:t.calendar.getYearsInEra(t)};case"month":return{value:t.month,minValue:Vb(t),maxValue:t.calendar.getMonthsInYear(t)};case"day":return{value:t.day,minValue:zb(t),maxValue:t.calendar.getDaysInMonth(t)}}if("hour"in t)switch(e){case"dayPeriod":return{value:t.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(a.hour12){let r=t.hour>=12;return{value:t.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:t.hour,minValue:0,maxValue:23};case"minute":return{value:t.minute,minValue:0,maxValue:59};case"second":return{value:t.second,minValue:0,maxValue:59}}return{}}function v2(t,e,a,r){switch(e){case"era":case"year":case"month":case"day":return t.cycle(e,a,{round:e==="year"})}if("hour"in t)switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return t.set({hour:i?n-12:n+12})}case"hour":case"minute":case"second":return t.cycle(e,a,{round:e!=="hour",hourCycle:r.hour12?12:24})}throw Error("Unknown segment: "+e)}function y2(t,e,a,r){switch(e){case"day":case"month":case"year":case"era":return t.set({[e]:a})}if("hour"in t&&typeof a=="number")switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return a>=12===i?t:t.set({hour:i?n-12:n+12})}case"hour":if(r.hour12){let n=t.hour>=12;!n&&a===12&&(a=0),n&&a<12&&(a+=12)}case"minute":case"second":return t.set({[e]:a})}throw Error("Unknown segment: "+e)}function b2(t){var P,A;let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),[i,l]=(0,x.useState)(()=>a||{start:null,end:null});a==null&&i.start&&i.end&&(i={start:null,end:null},l(i));let o=a||i,d=V=>{o=V||{start:null,end:null},l(o),er(o)?r(o):r(null)},[u,c]=ss((o==null?void 0:o.start)||(o==null?void 0:o.end)||t.placeholderValue||null,t.granularity),p=u==="hour"||u==="minute"||u==="second",m=t.shouldCloseOnSelect??!0,[h,g]=(0,x.useState)(null),[f,v]=(0,x.useState)(null);o&&er(o)&&(h=o,"hour"in o.start&&(f=o));let b=(V,T)=>{d({start:"timeZone"in T.start?T.start.set(ct(V.start)):Kt(V.start,T.start),end:"timeZone"in T.end?T.end.set(ct(V.end)):Kt(V.end,T.end)}),g(null),v(null),_.commitValidation()},w=V=>{let T=typeof m=="function"?m():m;p?er(V)&&(T||f!=null&&f.start&&(f!=null&&f.end))?b(V,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}):g(V):er(V)?(d(V),_.commitValidation()):g(V),T&&e.setOpen(!1)},D=V=>{er(h)&&er(V)?b(h,V):v(V)},j=((P=o==null?void 0:o.start)==null?void 0:P.calendar.identifier)==="gregory"&&o.start.era==="BC"||((A=o==null?void 0:o.end)==null?void 0:A.calendar.identifier)==="gregory"&&o.end.era==="BC",k=(0,x.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:j}),[u,t.hourCycle,t.shouldForceLeadingZeros,c,t.hideTimeZone,j]),{minValue:S,maxValue:N,isDateUnavailable:y}=t,C=(0,x.useMemo)(()=>u2(o,S,N,y,k),[o,S,N,y,k]),_=Pu({...t,value:a,name:(0,x.useMemo)(()=>[t.startName,t.endName].filter(V=>V!=null),[t.startName,t.endName]),builtinValidation:C}),E=_.displayValidation.isInvalid,R=t.validationState||(E?"invalid":null);return{..._,value:o,defaultValue:t.defaultValue??n,setValue:d,dateRange:h,timeRange:f,granularity:u,hasTime:p,setDate(V,T){w(V==="start"?{start:T,end:(h==null?void 0:h.end)??null}:{start:(h==null?void 0:h.start)??null,end:T})},setTime(V,T){D(V==="start"?{start:T,end:(f==null?void 0:f.end)??null}:{start:(f==null?void 0:f.start)??null,end:T})},setDateTime(V,T){d(V==="start"?{start:T,end:(o==null?void 0:o.end)??null}:{start:(o==null?void 0:o.start)??null,end:T})},setDateRange:w,setTimeRange:D,...e,setOpen(V){!V&&!(o!=null&&o.start&&(o!=null&&o.end))&&er(h)&&p&&b(h,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}),e.setOpen(V)},validationState:R,isInvalid:E,formatValue(V,T){if(!o||!o.start||!o.end)return null;let I="timeZone"in o.start?o.start.timeZone:void 0,M=t.granularity||(o.start&&"minute"in o.start?"minute":"day"),O="timeZone"in o.end?o.end.timeZone:void 0,z=t.granularity||(o.end&&"minute"in o.end?"minute":"day"),$=ca(T,{granularity:M,timeZone:I,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,showEra:o.start.calendar.identifier==="gregory"&&o.start.era==="BC"||o.end.calendar.identifier==="gregory"&&o.end.era==="BC"}),Y=o.start.toDate(I||"UTC"),X=o.end.toDate(O||"UTC"),ne=new Wt(V,$),oe;if(I===O&&M===z&&o.start.compare(o.end)!==0){try{let ae=ne.formatRangeToParts(Y,X),W=-1;for(let te=0;te<ae.length;te++){let le=ae[te];if(le.source==="shared"&&le.type==="literal")W=te;else if(le.source==="endRange")break}let B="",re="";for(let te=0;te<ae.length;te++)te<W?B+=ae[te].value:te>W&&(re+=ae[te].value);return{start:B,end:re}}catch{}oe=ne}else oe=new Wt(V,ca(T,{granularity:z,timeZone:O,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle}));return{start:ne.format(Y),end:oe.format(X)}},getDateFormatter(V,T){return new Wt(V,ca({},{...k,...T}))}}}function er(t){return(t==null?void 0:t.start)!=null&&t.end!=null}var Ai=(0,x.createContext)(null),Ii=(0,x.createContext)(null),Pi=(0,x.createContext)(null),yn=(0,x.createContext)(null),w2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,Ai);let{locale:a}=qe(),r=Qh({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Uw(t,r),u=Ua({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=ot(t,{global:!0});return x.createElement("div",{...Xe(c,u,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[lo,{"aria-hidden":!0,level:2,children:d}],[Pi,r],[Ai,t],[Zn,{slots:{errorMessage:o}}]]},x.createElement(Gn,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(Gn,null,x.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),D2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,Ii);let{locale:a}=qe(),r=s2({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Kw(t,r,e),u=Ua({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=ot(t,{global:!0});return x.createElement("div",{...Xe(u,c,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[lo,{"aria-hidden":!0,level:2,children:d}],[yn,r],[Ii,t],[Zn,{slots:{errorMessage:o}}]]},x.createElement(Gn,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(Gn,null,x.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),Mi=(0,x.createContext)(null),j2=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(Pi),r=(0,x.useContext)(yn),n=Gl(Ai),i=Gl(Ii),l=a??r,o=l.visibleRange.start;t.offset&&(o=o.add(t.offset));let d=(n==null?void 0:n.firstDayOfWeek)??(i==null?void 0:i.firstDayOfWeek),{gridProps:u,headerProps:c,weekDays:p,weeksInMonth:m}=Zw({startDate:o,endDate:gi(o),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},l),h=ot(t,{global:!0});return x.createElement(Mi.Provider,{value:{headerProps:c,weekDays:p,startDate:o,weeksInMonth:m}},x.createElement("table",{...Xe(h,u),ref:e,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children=="function"?x.createElement(x.Fragment,null,x.createElement(Bf,null,g=>x.createElement(Hf,null,g)),x.createElement(Wf,null,t.children)):t.children))});function C2(t,e){let{children:a,style:r,className:n}=t,{headerProps:i,weekDays:l}=(0,x.useContext)(Mi),o=ot(t,{global:!0});return x.createElement("thead",{...Xe(o,i),ref:e,style:r,className:n||"react-aria-CalendarGridHeader"},x.createElement("tr",null,l.map((d,u)=>x.cloneElement(a(d),{key:u}))))}var Bf=(0,x.forwardRef)(C2);function k2(t,e){let{children:a,style:r,className:n}=t,i=ot(t,{global:!0});return x.createElement("th",{...i,ref:e,style:r,className:n||"react-aria-CalendarHeaderCell"},a)}var Hf=(0,x.forwardRef)(k2);function S2(t,e){let{children:a,style:r,className:n}=t,i=(0,x.useContext)(Pi),l=(0,x.useContext)(yn),o=i??l,{startDate:d,weeksInMonth:u}=(0,x.useContext)(Mi),c=ot(t,{global:!0});return x.createElement("tbody",{...c,ref:e,style:r,className:n||"react-aria-CalendarGridBody"},[...Array(u).keys()].map(p=>x.createElement("tr",{key:p},o.getDatesInWeek(p,d).map((m,h)=>m?x.cloneElement(a(m),{key:h}):x.createElement("td",{key:h})))))}var Wf=(0,x.forwardRef)(S2),N2=(0,x.forwardRef)(function({date:t,...e},a){let r=(0,x.useContext)(Pi),n=(0,x.useContext)(yn),i=r??n,{startDate:l}=(0,x.useContext)(Mi)??{startDate:i.visibleRange.start},o=!Pb(l,t),d=Jc(t,i.timeZone),u=(0,x.useRef)(null),{cellProps:c,buttonProps:p,...m}=Yw({date:t,isOutsideMonth:o},i,u),{hoverProps:h,isHovered:g}=hv({...e,isDisabled:m.isDisabled}),{focusProps:f,isFocusVisible:v}=Wl();v&&(v=m.isFocused);let b=!1,w=!1;"highlightedRange"in i&&i.highlightedRange&&(b=Ke(t,i.highlightedRange.start),w=Ke(t,i.highlightedRange.end));let D=Ua({...e,defaultChildren:m.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:o,isFocusVisible:v,isSelectionStart:b,isSelectionEnd:w,isToday:d,...m}}),j={"data-focused":m.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":m.isPressed||void 0,"data-unavailable":m.isUnavailable||void 0,"data-disabled":m.isDisabled||void 0,"data-focus-visible":v||void 0,"data-outside-visible-range":m.isOutsideVisibleRange||void 0,"data-outside-month":o||void 0,"data-selected":m.isSelected||void 0,"data-selection-start":b||void 0,"data-selection-end":w||void 0,"data-invalid":m.isInvalid||void 0,"data-today":d||void 0},k=ot(e,{global:!0});return x.createElement("td",{...c,ref:a},x.createElement("div",{...Xe(k,p,f,h,j,D),ref:u}))}),E2=(0,x.createContext)({placement:"bottom"}),ds=(0,x.createContext)(null),Uf=(0,x.createContext)(null),_2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,ds);let a=(0,x.useContext)(Fi),r=os(t),n=t.isOpen!=null||t.defaultOpen!=null||!a?r:a,i=Db(e,n.isOpen)||t.isExiting||!1,l=dR(),{direction:o}=qe();if(l){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,d)}return n&&!n.isOpen&&!i?null:x.createElement(T2,{...t,triggerRef:t.triggerRef,state:n,popoverRef:e,isExiting:i,dir:o})});function T2({state:t,isExiting:e,UNSTABLE_portalContainer:a,clearContexts:r,...n}){let i=(0,x.useRef)(null),l=(0,x.useRef)(null),o=(0,x.useContext)(Uf),d=o&&n.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:c,arrowProps:p,placement:m,triggerAnchorPoint:h}=$w({...n,offset:n.offset??8,arrowRef:i,groupRef:d?o:l},t),g=n.popoverRef,f=wb(g,!!m)||n.isEntering||!1,v=Ua({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:m,isEntering:f,isExiting:e}}),b=!n.isNonModal||n.trigger==="SubmenuTrigger",[w,D]=(0,x.useState)(!1);ba(()=>{g.current&&D(b&&!g.current.querySelector("[role=dialog]"))},[g,b]),(0,x.useEffect)(()=>{w&&n.trigger!=="SubmenuTrigger"&&g.current&&!g.current.contains(document.activeElement)&&Iu(g.current)},[w,g,n.trigger]);let j=(0,x.useMemo)(()=>{let N=v.children;if(r)for(let y of r)N=x.createElement(y.Provider,{value:null},N);return N},[v.children,r]),k={...u.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...v.style},S=x.createElement("div",{...Xe(ot(n,{global:!0}),u),...v,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:g,slot:n.slot||void 0,style:k,dir:n.dir,"data-trigger":n.trigger,"data-placement":m,"data-entering":f||void 0,"data-exiting":e||void 0},!n.isNonModal&&x.createElement(_p,{onDismiss:t.close}),x.createElement(E2.Provider,{value:{...p,placement:m,ref:i}},j),x.createElement(_p,{onDismiss:t.close}));return d?x.createElement(Rp,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a??(o==null?void 0:o.current)??void 0},S):x.createElement(Rp,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a},!n.isNonModal&&t.isOpen&&x.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),x.createElement("div",{ref:l,style:{display:"contents"}},x.createElement(Uf.Provider,{value:l},S)))}var us=(0,x.createContext)(null),Fi=(0,x.createContext)(null),R2=(0,x.forwardRef)(function(t,e){let a=t["aria-labelledby"];[t,e]=Ka(t,e,us);let{dialogProps:r,titleProps:n}=o2({...t,"aria-labelledby":a},e),i=(0,x.useContext)(Fi);!r["aria-label"]&&!r["aria-labelledby"]&&t["aria-labelledby"]&&(r["aria-labelledby"]=t["aria-labelledby"]);let l=Ua({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),o=ot(t,{global:!0});return x.createElement("section",{...Xe(o,l,r),ref:e,slot:t.slot||void 0},x.createElement(Ur,{values:[[lo,{slots:{[pv]:{},title:{...n,level:2}}}],[Zr,{slots:{[pv]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},l.children))}),A2=["day","month","year"],I2={hour:1,minute:2,second:3};function P2(t,e){let{autoComplete:a,isDisabled:r,name:n}=t,{visuallyHiddenProps:i}=rA({style:{position:"fixed",top:0,left:0}}),l=60;e.granularity==="second"?l=1:e.granularity==="hour"&&(l=3600);let o=e.value==null?"":e.value.toString(),d=e.granularity==="day"?"date":"datetime-local",u=["hour","minute","second"],c=0;return u.includes(e.granularity)&&(c=I2[e.granularity],u=u.slice(0,c)),{containerProps:{...i,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:a,disabled:r,type:d,form:"",name:n,step:l,value:o,onChange:p=>{let m=p.target.value.toString();if(m)try{let h=yi(m);if(e.granularity==="day"&&(h=Ca(m)),"setSegment"in e)for(let g in h)A2.includes(g)&&e.setSegment(g,h[g]),u.includes(g)&&e.setSegment(g,h[g]);e.setValue(h)}catch{}}}}}function M2(t){let{state:e}=t,{containerProps:a,inputProps:r}=P2({...t},e);return x.createElement("div",{...a,"data-testid":"hidden-dateinput-container"},x.createElement("input",r))}var cs=(0,x.createContext)(null),Vi=(0,x.createContext)(null),ms=(0,x.createContext)(null),F2=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(Vi),r=(0,x.useContext)(ms);return a||r?x.createElement(Kf,{...t,ref:e}):x.createElement(V2,{...t,ref:e})}),V2=(0,x.forwardRef)((t,e)=>{let[a,r]=Ka({slot:t.slot},e,cs),{locale:n}=qe(),i=g2({...a,locale:n,createCalendar:Go}),l=(0,x.useRef)(null),{fieldProps:o,inputProps:d}=Jw({...a,inputRef:l},i,r);return x.createElement(Ur,{values:[[Vi,i],[jR,{...d,ref:l}],[Jl,{...o,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},x.createElement(Kf,t))}),Kf=(0,x.forwardRef)((t,e)=>{let{className:a,children:r}=t,n=(0,x.useContext)(Vi),i=(0,x.useContext)(ms),l=n??i;return x.createElement(x.Fragment,null,x.createElement(yR,{...t,ref:e,slot:t.slot||void 0,className:a??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,d)=>(0,x.cloneElement)(r(o),{key:d}))),x.createElement(gR,null))}),z2=(0,x.forwardRef)(function({segment:t,...e},a){let r=(0,x.useContext)(Vi),n=(0,x.useContext)(ms),i=r??n,l=DR(a),{segmentProps:o}=r2(t,i,l),{focusProps:d,isFocused:u,isFocusVisible:c}=Wl(),{hoverProps:p,isHovered:m}=hv({...e,isDisabled:i.isDisabled||t.type==="literal"}),h=Ua({...e,values:{...t,isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:m,isFocused:u,isFocusVisible:c},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return x.createElement("span",{...Xe(ot(e,{global:!0}),o,d,p),...h,style:o.style,ref:l,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":i.isReadOnly||void 0,"data-disabled":i.isDisabled||void 0,"data-type":t.type,"data-hovered":m||void 0,"data-focused":u||void 0,"data-focus-visible":c||void 0})}),O2=(0,x.createContext)(null),$2=(0,x.createContext)(null),L2=(0,x.createContext)(null),B2=(0,x.createContext)(null),Zf=[Jl,Zr,Ou,Zn],H2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,O2);let{validationBehavior:a}=Gl(xv)||{},r=t.validationBehavior??a??"native",n=p2({...t,validationBehavior:r}),i=(0,x.useRef)(null),[l,o]=gv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,fieldProps:c,buttonProps:p,dialogProps:m,calendarProps:h,descriptionProps:g,errorMessageProps:f,...v}=Xw({...vv(t),label:o,validationBehavior:r},n,i),[b,w]=(0,x.useState)(null);di({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&w(i.current.offsetWidth+"px")},[])});let{focusProps:D,isFocused:j,isFocusVisible:k}=Wl({within:!0}),S=Ua({...t,values:{state:n,isFocusWithin:j,isFocusVisible:k,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),N=ot(t,{global:!0});return delete N.id,x.createElement(Ur,{values:[[L2,n],[Jl,{...d,ref:i,isInvalid:n.isInvalid}],[cs,c],[Zr,{...p,isPressed:n.isOpen}],[Ou,{...u,ref:l,elementType:"span"}],[Ai,h],[Fi,n],[ds,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":b},clearContexts:Zf}],[us,m],[Zn,{slots:{description:g,errorMessage:f}}],[yv,v]]},x.createElement("div",{...Xe(N,S,D),ref:e,slot:t.slot||void 0,"data-focus-within":j||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":k||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}),x.createElement(M2,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:n}))}),W2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,$2);let{validationBehavior:a}=Gl(xv)||{},r=t.validationBehavior??a??"native",n=b2({...t,validationBehavior:r}),i=(0,x.useRef)(null),[l,o]=gv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,startFieldProps:c,endFieldProps:p,buttonProps:m,dialogProps:h,calendarProps:g,descriptionProps:f,errorMessageProps:v,...b}=l2({...vv(t),label:o,validationBehavior:r},n,i),[w,D]=(0,x.useState)(null);di({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&D(i.current.offsetWidth+"px")},[])});let{focusProps:j,isFocused:k,isFocusVisible:S}=Wl({within:!0}),N=Ua({...t,values:{state:n,isFocusWithin:k,isFocusVisible:S,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),y=ot(t,{global:!0});return delete y.id,x.createElement(Ur,{values:[[B2,n],[Jl,{...d,ref:i,isInvalid:n.isInvalid}],[Zr,{...m,isPressed:n.isOpen}],[Ou,{...u,ref:l,elementType:"span"}],[Ii,g],[Fi,n],[ds,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":w},clearContexts:Zf}],[us,h],[cs,{slots:{start:c,end:p}}],[Zn,{slots:{description:f,errorMessage:v}}],[yv,b]]},x.createElement("div",{...Xe(y,N,j),ref:e,slot:t.slot||void 0,"data-focus-within":k||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}))}),U2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,lo);let{children:a,level:r=3,className:n,...i}=t,l=`h${r}`;return x.createElement(l,{...i,ref:e,className:n??"react-aria-Heading"},a)}),K2=fa(Hn(),1),ps="ToastProvider",[hs,Z2,q2]=ao("Toast"),[qf,m6]=$u("Toast",[q2]),[Y2,zi]=qf(ps),Yf=t=>{let{__scopeToast:e,label:a="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:i=50,children:l}=t,[o,d]=x.useState(null),[u,c]=x.useState(0),p=x.useRef(!1),m=x.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${ps}\`. Expected non-empty \`string\`.`),(0,s.jsx)(hs.Provider,{scope:e,children:(0,s.jsx)(Y2,{scope:e,label:a,duration:r,swipeDirection:n,swipeThreshold:i,toastCount:u,viewport:o,onViewportChange:d,onToastAdd:x.useCallback(()=>c(h=>h+1),[]),onToastRemove:x.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:l})})};Yf.displayName=ps;var Gf="ToastViewport",G2=["F8"],fs="toast.viewportPause",gs="toast.viewportResume",Jf=x.forwardRef((t,e)=>{let{__scopeToast:a,hotkey:r=G2,label:n="Notifications ({hotkey})",...i}=t,l=zi(Gf,a),o=Z2(a),d=x.useRef(null),u=x.useRef(null),c=x.useRef(null),p=x.useRef(null),m=Ct(e,p,l.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=l.toastCount>0;x.useEffect(()=>{let v=b=>{var w;r.length!==0&&r.every(D=>b[D]||b.code===D)&&((w=p.current)==null||w.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),x.useEffect(()=>{let v=d.current,b=p.current;if(g&&v&&b){let w=()=>{if(!l.isClosePausedRef.current){let S=new CustomEvent(fs);b.dispatchEvent(S),l.isClosePausedRef.current=!0}},D=()=>{if(l.isClosePausedRef.current){let S=new CustomEvent(gs);b.dispatchEvent(S),l.isClosePausedRef.current=!1}},j=S=>{v.contains(S.relatedTarget)||D()},k=()=>{v.contains(document.activeElement)||D()};return v.addEventListener("focusin",w),v.addEventListener("focusout",j),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",k),window.addEventListener("blur",w),window.addEventListener("focus",D),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",j),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",k),window.removeEventListener("blur",w),window.removeEventListener("focus",D)}}},[g,l.isClosePausedRef]);let f=x.useCallback(({tabbingDirection:v})=>{let b=o().map(w=>{let D=w.ref.current,j=[D,...d4(D)];return v==="forwards"?j:j.reverse()});return(v==="forwards"?b.reverse():b).flat()},[o]);return x.useEffect(()=>{let v=p.current;if(v){let b=w=>{var j,k,S;let D=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!D){let N=document.activeElement,y=w.shiftKey;if(w.target===v&&y){(j=u.current)==null||j.focus();return}let C=f({tabbingDirection:y?"backwards":"forwards"}),_=C.findIndex(E=>E===N);ys(C.slice(_+1))?w.preventDefault():y?(k=u.current)==null||k.focus():(S=c.current)==null||S.focus()}};return v.addEventListener("keydown",b),()=>v.removeEventListener("keydown",b)}},[o,f]),(0,s.jsxs)(qR,{ref:d,role:"region","aria-label":n.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,s.jsx)(xs,{ref:u,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"forwards"}))}}),(0,s.jsx)(hs.Slot,{scope:a,children:(0,s.jsx)(Ue.ol,{tabIndex:-1,...i,ref:m})}),g&&(0,s.jsx)(xs,{ref:c,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"backwards"}))}})]})});Jf.displayName=Gf;var Qf="ToastFocusProxy",xs=x.forwardRef((t,e)=>{let{__scopeToast:a,onFocusFromOutsideViewport:r,...n}=t,i=zi(Qf,a);return(0,s.jsx)(Nv,{tabIndex:0,...n,ref:e,style:{position:"fixed"},onFocus:l=>{var d;let o=l.relatedTarget;(d=i.viewport)!=null&&d.contains(o)||r()}})});xs.displayName=Qf;var bn="Toast",J2="toast.swipeStart",Q2="toast.swipeMove",X2="toast.swipeCancel",e4="toast.swipeEnd",Xf=x.forwardRef((t,e)=>{let{forceMount:a,open:r,defaultOpen:n,onOpenChange:i,...l}=t,[o,d]=to({prop:r,defaultProp:n??!0,onChange:i,caller:bn});return(0,s.jsx)(Yn,{present:a||o,children:(0,s.jsx)(r4,{open:o,...l,ref:e,onClose:()=>d(!1),onPause:Ht(t.onPause),onResume:Ht(t.onResume),onSwipeStart:_e(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:_e(t.onSwipeMove,u=>{let{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:_e(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:_e(t.onSwipeEnd,u=>{let{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),d(!1)})})})});Xf.displayName=bn;var[t4,a4]=qf(bn,{onClose(){}}),r4=x.forwardRef((t,e)=>{let{__scopeToast:a,type:r="foreground",duration:n,open:i,onClose:l,onEscapeKeyDown:o,onPause:d,onResume:u,onSwipeStart:c,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:h,...g}=t,f=zi(bn,a),[v,b]=x.useState(null),w=Ct(e,A=>b(A)),D=x.useRef(null),j=x.useRef(null),k=n||f.duration,S=x.useRef(0),N=x.useRef(k),y=x.useRef(0),{onToastAdd:C,onToastRemove:_}=f,E=Ht(()=>{var A;v!=null&&v.contains(document.activeElement)&&((A=f.viewport)==null||A.focus()),l()}),R=x.useCallback(A=>{!A||A===1/0||(window.clearTimeout(y.current),S.current=new Date().getTime(),y.current=window.setTimeout(E,A))},[E]);x.useEffect(()=>{let A=f.viewport;if(A){let V=()=>{R(N.current),u==null||u()},T=()=>{let I=new Date().getTime()-S.current;N.current-=I,window.clearTimeout(y.current),d==null||d()};return A.addEventListener(fs,T),A.addEventListener(gs,V),()=>{A.removeEventListener(fs,T),A.removeEventListener(gs,V)}}},[f.viewport,k,d,u,R]),x.useEffect(()=>{i&&!f.isClosePausedRef.current&&R(k)},[i,k,f.isClosePausedRef,R]),x.useEffect(()=>(C(),()=>_()),[C,_]);let P=x.useMemo(()=>v?lg(v):null,[v]);return f.viewport?(0,s.jsxs)(s.Fragment,{children:[P&&(0,s.jsx)(n4,{__scopeToast:a,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:P}),(0,s.jsx)(t4,{scope:a,onClose:E,children:K2.createPortal((0,s.jsx)(hs.ItemSlot,{scope:a,children:(0,s.jsx)(UR,{asChild:!0,onEscapeKeyDown:_e(o,()=>{f.isFocusedToastEscapeKeyDownRef.current||E(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,s.jsx)(Ue.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":f.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:_e(t.onKeyDown,A=>{A.key==="Escape"&&(o==null||o(A.nativeEvent),A.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:_e(t.onPointerDown,A=>{A.button===0&&(D.current={x:A.clientX,y:A.clientY})}),onPointerMove:_e(t.onPointerMove,A=>{if(!D.current)return;let V=A.clientX-D.current.x,T=A.clientY-D.current.y,I=!!j.current,M=["left","right"].includes(f.swipeDirection),O=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,z=M?O(0,V):0,$=M?0:O(0,T),Y=A.pointerType==="touch"?10:2,X={x:z,y:$},ne={originalEvent:A,delta:X};I?(j.current=X,Oi(Q2,p,ne,{discrete:!1})):og(X,f.swipeDirection,Y)?(j.current=X,Oi(J2,c,ne,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(V)>Y||Math.abs(T)>Y)&&(D.current=null)}),onPointerUp:_e(t.onPointerUp,A=>{let V=j.current,T=A.target;if(T.hasPointerCapture(A.pointerId)&&T.releasePointerCapture(A.pointerId),j.current=null,D.current=null,V){let I=A.currentTarget,M={originalEvent:A,delta:V};og(V,f.swipeDirection,f.swipeThreshold)?Oi(e4,h,M,{discrete:!0}):Oi(X2,m,M,{discrete:!0}),I.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),n4=t=>{let{__scopeToast:e,children:a,...r}=t,n=zi(bn,e),[i,l]=x.useState(!1),[o,d]=x.useState(!1);return o4(()=>l(!0)),x.useEffect(()=>{let u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:(0,s.jsx)(WR,{asChild:!0,children:(0,s.jsx)(Nv,{...r,children:i&&(0,s.jsxs)(s.Fragment,{children:[n.label," ",a]})})})},i4="ToastTitle",eg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(Ue.div,{...r,ref:e})});eg.displayName=i4;var l4="ToastDescription",tg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(Ue.div,{...r,ref:e})});tg.displayName=l4;var ag="ToastAction",rg=x.forwardRef((t,e)=>{let{altText:a,...r}=t;return a.trim()?(0,s.jsx)(ig,{altText:a,asChild:!0,children:(0,s.jsx)(vs,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${ag}\`. Expected non-empty \`string\`.`),null)});rg.displayName=ag;var ng="ToastClose",vs=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t,n=a4(ng,a);return(0,s.jsx)(ig,{asChild:!0,children:(0,s.jsx)(Ue.button,{type:"button",...r,ref:e,onClick:_e(t.onClick,n.onClose)})})});vs.displayName=ng;var ig=x.forwardRef((t,e)=>{let{__scopeToast:a,altText:r,...n}=t;return(0,s.jsx)(Ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...n,ref:e})});function lg(t){let e=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&e.push(a.textContent),s4(a)){let r=a.ariaHidden||a.hidden||a.style.display==="none",n=a.dataset.radixToastAnnounceExclude==="";if(!r)if(n){let i=a.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...lg(a))}}),e}function Oi(t,e,a,{discrete:r}){let n=a.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:a});e&&n.addEventListener(t,e,{once:!0}),r?Lu(n,i):n.dispatchEvent(i)}var og=(t,e,a=0)=>{let r=Math.abs(t.x),n=Math.abs(t.y),i=r>n;return e==="left"||e==="right"?i&&r>a:!i&&n>a};function o4(t=()=>{}){let e=Ht(t);eo(()=>{let a=0,r=0;return a=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(r)}},[e])}function s4(t){return t.nodeType===t.ELEMENT_NODE}function d4(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function ys(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}var u4=Yf,sg=Jf,dg=Xf,ug=eg,cg=tg,mg=rg,pg=vs,jr=J(),c4=u4,hg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:w-fit md:max-w-[420px]",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(sg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});hg.displayName=sg.displayName;var m4=Fl("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",danger:"group destructive text-error border-destructive bg-(--red-1) shadow-md-solid shadow-error"}},defaultVariants:{variant:"default"}}),fg=x.forwardRef((t,e)=>{let a=(0,jr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,variant:i,...n}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l=i||"default",o;a[4]!==r||a[5]!==l?(o=K(m4({variant:l}),"print:hidden",r),a[4]=r,a[5]=l,a[6]=o):o=a[6];let d;return a[7]!==n||a[8]!==e||a[9]!==o?(d=(0,s.jsx)(dg,{ref:e,className:o,...n}),a[7]=n,a[8]=e,a[9]=o,a[10]=d):d=a[10],d});fg.displayName=dg.displayName;var p4=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(mg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});p4.displayName=mg.displayName;var gg=x.forwardRef((t,e)=>{let a=(0,jr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-500 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Hr,{className:"h-4 w-4"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(pg,{ref:e,className:i,"toast-close":"",...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});gg.displayName=pg.displayName;var xg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("text-sm font-semibold",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(ug,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});xg.displayName=ug.displayName;var vg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("text-sm opacity-90",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(cg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});vg.displayName=cg.displayName;var h4=J();const f4=()=>{let t=(0,h4.c)(5),{toasts:e}=HR(),a;t[0]===e?a=t[1]:(a=e.map(g4),t[0]=e,t[1]=a);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(hg,{}),t[2]=r):r=t[2];let n;return t[3]===a?n=t[4]:(n=(0,s.jsxs)(c4,{children:[a,r]}),t[3]=a,t[4]=n),n};function g4(t){let{id:e,title:a,description:r,action:n,...i}=t;return(0,s.jsxs)(fg,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[a&&(0,s.jsx)(xg,{children:a}),r&&(0,s.jsx)(vg,{children:r})]}),n,(0,s.jsx)(gg,{})]},e)}var x4=J();const bs=t=>{let e=(0,x4.c)(5),{children:a}=t,r=Al(c_),n;e[0]===r?n=e[1]:(n=v4(r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)(pA,{locale:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i};function v4(t){return t&&y4(t)?t:navigator.language}function y4(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var yg=J(),bg=So(()=>vt(()=>import("./home-page-c43aYnLs.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132]),import.meta.url)),wg=So(()=>vt(()=>import("./run-page-rr9Ilre7.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([133,134,135,5,136,14,137,138,139,140,29,4,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,115,141,142,76,143,113,79,78,84,83,85,86,87,88,89,70,77,71,72,90,144,145,146,99,104,74,147,148,149,150,151,152,153,154,155,82,91,156,157,97,158,93,94,98,159,96,160,121,122,123,161,125,127,162,163,164,73,165,166,167,168,169,170,171,172,173,174,175,106,176,81,92,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,110,280,281,282,283,284,101,102,285,286,287,288,289,290,291,292,293,294]),import.meta.url)),Dg=So(()=>vt(()=>import("./edit-page-DIpr3pNk.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([295,5,296,11,134,135,136,14,137,138,139,140,29,4,6,7,8,9,10,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,115,141,142,76,143,113,79,78,84,83,85,86,87,88,89,70,77,71,72,90,144,145,146,99,104,74,147,148,149,150,151,152,153,154,155,82,91,156,157,97,158,93,94,98,159,96,160,121,122,123,161,125,127,162,163,164,73,165,166,167,168,169,170,171,172,173,174,175,106,176,81,92,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,110,280,281,282,283,284,101,102,285,286,287,288,289,290,291,292,2,3,75,80,95,100,103,105,107,108,109,1,111,112,114,297,298,116,299,300,301,117,118,119,120,302,303,304,305,306,307,308,309,131,310,311,312,313,314,132,315,316,124,294,317,130,318,319,320,321,322,323,324,325,326,327,328,329,330]),import.meta.url));function b4(t){t==="home"?bg.preload():t==="read"?wg.preload():Dg.preload()}const jg=(0,x.memo)(()=>{let t=(0,yg.c)(12),[e]=f_(),[a]=u_(),r;t[0]===e.display.code_editor_font_size?r=t[1]:(r=w4(e.display.code_editor_font_size),t[0]=e.display.code_editor_font_size,t[1]=r);let n=r,i;t[2]!==a||t[3]!==e?(i=()=>{let c=eA();return c==="home"?(0,s.jsx)(bg.Component,{}):c==="read"?(0,s.jsx)(wg.Component,{appConfig:a}):(0,s.jsx)(Dg.Component,{userConfig:e,appConfig:a})},t[2]=a,t[3]=e,t[4]=i):i=t[4];let l=i,o;t[5]===n?o=t[6]:(o={"--marimo-code-editor-font-size":n},t[5]=n,t[6]=o);let d;t[7]===l?d=t[8]:(d=(0,s.jsx)(bs,{children:l()}),t[7]=l,t[8]=d);let u;return t[9]!==o||t[10]!==d?(u=(0,s.jsx)(Cg,{children:(0,s.jsx)(vb,{variables:o,children:d})}),t[9]=o,t[10]=d,t[11]=u):u=t[11],u});jg.displayName="MarimoApp";var Cg=(0,x.memo)(t=>{let e=(0,yg.c)(4),{children:a}=t,r,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(f4,{}),n=(0,s.jsx)(xb,{}),e[0]=r,e[1]=n):(r=e[0],n=e[1]);let i;return e[2]===a?i=e[3]:(i=(0,s.jsx)(Pl,{children:(0,s.jsx)(x.Suspense,{children:(0,s.jsx)(St,{children:(0,s.jsx)(H1,{controller:Wn,children:(0,s.jsx)(bs,{children:(0,s.jsxs)(yA,{children:[a,r,n]})})})})})}),e[2]=a,e[3]=i),i});Cg.displayName="Providers";function w4(t){return`${t/16}rem`}function D4(){C_(t=>{t.delete(wu.accessToken)})}var j4={sendComponentValues:"startConnection",sendModelValue:"startConnection",sendInstantiate:"startConnection",sendRun:"startConnection",sendDeleteCell:"startConnection",sendRunScratchpad:"startConnection",saveAppConfig:"startConnection",saveCellConfig:"startConnection",exportAsHTML:"startConnection",exportAsMarkdown:"startConnection",readCode:"startConnection",sendCopy:"throwError",sendFormat:"throwError",sendRestart:"throwError",sendSave:"waitForConnectionOpen",invokeAiTool:"waitForConnectionOpen",sendFunctionRequest:"waitForConnectionOpen",sendRename:"waitForConnectionOpen",autoExportAsHTML:"waitForConnectionOpen",autoExportAsMarkdown:"waitForConnectionOpen",autoExportAsIPYNB:"waitForConnectionOpen",listSecretKeys:"throwError",writeSecret:"throwError",clearCache:"throwError",getCacheInfo:"throwError",saveUserConfig:"throwError",sendShutdown:"throwError",getPackageList:"throwError",getDependencyTree:"throwError",addPackage:"throwError",removePackage:"throwError",sendListFiles:"startConnection",sendSearchFiles:"startConnection",sendCreateFileOrFolder:"throwError",sendDeleteFileOrFolder:"throwError",sendRenameFileOrFolder:"throwError",sendUpdateFile:"throwError",sendFileDetails:"throwError",openFile:"throwError",getRecentFiles:"startConnection",getWorkspaceFiles:"startConnection",getRunningNotebooks:"startConnection",shutdownSession:"startConnection",openTutorial:"startConnection",getUsageStats:"waitForConnectionOpen",sendStdin:"waitForConnectionOpen",sendInterrupt:"waitForConnectionOpen",sendPdb:"waitForConnectionOpen",sendInstallMissingPackages:"waitForConnectionOpen",readSnippets:"waitForConnectionOpen",previewDatasetColumn:"waitForConnectionOpen",previewSQLTable:"waitForConnectionOpen",previewSQLTableList:"waitForConnectionOpen",previewDataSourceConnection:"waitForConnectionOpen",validateSQL:"waitForConnectionOpen",syncCellIds:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function C4(t,e){let a=sT(async n=>{ze.set(S_,{state:w_.CONNECTING}),await n.init()});function r(n,i){let l=j4[i];return async(...o)=>{let d=e();if(!d.isLazy)return n(...o);switch(l){case"dropRequest":return se.debug(`Dropping request: ${i}, since not connected to a kernel.`),Promise.resolve();case"throwError":throw new Bv;case"waitForConnectionOpen":return await Je(),await B1(),n(...o);case"startConnection":return await a(d),await Je(),i!=="sendInstantiate"&&await B1(),n(...o);default:throw Error(`Unknown action for "${i}"`)}}}return za.mapValues(t,(n,i)=>r(n,i))}var{handleResponse:$e,handleResponseReturnNull:De}=N_;function k4(){let t=_E(()=>T_(Du())),e=()=>Du().sessionHeaders(),a=()=>({header:e()});return{sendComponentValues:r=>t().POST("/api/kernel/set_ui_element_value",{body:r,params:a()}).then(De),sendModelValue:r=>t().POST("/api/kernel/set_model_value",{body:r,params:a()}).then(De),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:a()}).then(De),syncCellIds:async r=>(await Je(),t().POST("/api/kernel/sync/cell_ids",{body:r,params:a()}).then(De)),sendRename:r=>t().POST("/api/kernel/rename",{body:r,params:a()}).then(De),sendSave:r=>t().POST("/api/kernel/save",{body:r,parseAs:"text",params:a()}).then(De),sendCopy:r=>t().POST("/api/kernel/copy",{body:r,parseAs:"text",params:a()}).then(De),sendFormat:r=>t().POST("/api/kernel/format",{body:r}).then($e),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:a()}).then(De),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(De),sendRun:async r=>ze.get(x_)?t().POST("/api/kernel/run",{body:r,params:a()}).then(De):null,sendRunScratchpad:async r=>(await Je(),t().POST("/api/kernel/scratchpad/run",{body:r,params:a()}).then(De)),sendInstantiate:async r=>(await Je(),t().POST("/api/kernel/instantiate",{body:r,params:a()}).then(De)),sendDeleteCell:r=>t().POST("/api/kernel/delete",{body:r,params:a()}).then(De),sendCodeCompletionRequest:async r=>(await Je(),t().POST("/api/kernel/code_autocomplete",{body:r,params:a()}).then(De)),saveUserConfig:r=>t().POST("/api/kernel/save_user_config",{body:r}).then(De),saveAppConfig:r=>t().POST("/api/kernel/save_app_config",{body:r,parseAs:"text",params:a()}).then(De),saveCellConfig:r=>t().POST("/api/kernel/set_cell_config",{body:r,params:a()}).then(De),sendFunctionRequest:r=>t().POST("/api/kernel/function_call",{body:r,params:a()}).then(De),sendStdin:r=>t().POST("/api/kernel/stdin",{body:r,params:a()}).then(De),sendInstallMissingPackages:r=>t().POST("/api/kernel/install_missing_packages",{body:r,params:a()}).then(De),readCode:async()=>(await Je(),t().POST("/api/kernel/read_code",{params:a()}).then($e)),readSnippets:async()=>(await Je(),t().GET("/api/documentation/snippets",{params:a()}).then($e)),previewDatasetColumn:r=>t().POST("/api/datasources/preview_column",{body:r,params:a()}).then(De),previewSQLTable:r=>t().POST("/api/datasources/preview_sql_table",{body:r,params:a()}).then(De),previewSQLTableList:r=>t().POST("/api/datasources/preview_sql_table_list",{body:r,params:a()}).then(De),previewDataSourceConnection:r=>t().POST("/api/datasources/preview_datasource_connection",{body:r,params:a()}).then(De),validateSQL:r=>t().POST("/api/sql/validate",{body:r,params:a()}).then(De),openFile:async r=>(await Je(),await t().POST("/api/files/open",{body:r}).then(De),null),getUsageStats:async()=>(await Je(),t().GET("/api/usage").then($e)),sendPdb:r=>t().POST("/api/kernel/pdb/pm",{body:r,params:a()}).then(De),sendListFiles:async r=>(await Je(),t().POST("/api/files/list_files",{body:r}).then($e)),sendSearchFiles:async r=>(await Je(),t().POST("/api/files/search",{body:r}).then($e)),sendCreateFileOrFolder:async r=>(await Je(),t().POST("/api/files/create",{body:r}).then($e)),sendDeleteFileOrFolder:async r=>(await Je(),t().POST("/api/files/delete",{body:r}).then($e)),sendRenameFileOrFolder:async r=>(await Je(),t().POST("/api/files/move",{body:r}).then($e)),sendUpdateFile:async r=>(await Je(),t().POST("/api/files/update",{body:r}).then($e)),sendFileDetails:async r=>(await Je(),t().POST("/api/files/file_details",{body:r}).then($e)),openTutorial:r=>t().POST("/api/home/tutorial/open",{body:r}).then($e),getRecentFiles:()=>t().POST("/api/home/recent_files").then($e),getWorkspaceFiles:r=>t().POST("/api/home/workspace_files",{body:r}).then($e),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then($e),shutdownSession:r=>t().POST("/api/home/shutdown_session",{body:r}).then($e),exportAsHTML:async r=>t().POST("/api/export/html",{body:r,parseAs:"text",params:a()}).then($e),exportAsMarkdown:async r=>t().POST("/api/export/markdown",{body:r,parseAs:"text",params:a()}).then($e),autoExportAsHTML:async r=>t().POST("/api/export/auto_export/html",{body:r,params:a()}).then(De),autoExportAsMarkdown:async r=>t().POST("/api/export/auto_export/markdown",{body:r,params:a()}).then(De),autoExportAsIPYNB:async r=>t().POST("/api/export/auto_export/ipynb",{body:r,params:a()}).then(De),addPackage:r=>t().POST("/api/packages/add",{body:r}).then($e),removePackage:r=>t().POST("/api/packages/remove",{body:r}).then($e),getPackageList:async()=>(await Je(),t().GET("/api/packages/list").then($e)),getDependencyTree:async()=>(await Je(),t().GET("/api/packages/tree").then($e)),listSecretKeys:async r=>(await Je(),t().POST("/api/secrets/keys",{body:r,params:a()}).then(De)),writeSecret:async r=>t().POST("/api/secrets/create",{body:r,params:a()}).then(De),invokeAiTool:async r=>t().POST("/api/ai/invoke_tool",{body:r,params:a()}).then($e),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:a()}).then(De),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:a()}).then(De)}}function S4(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(ya({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(se.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(se.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(ya({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Function requests are not supported in static mode"),null),sendRestart:t,syncCellIds:t,sendRun:t,sendRunScratchpad:t,sendRename:t,sendSave:t,sendCopy:t,sendInterrupt:t,sendShutdown:t,sendFormat:t,sendDeleteCell:t,sendCodeCompletionRequest:t,saveUserConfig:t,saveAppConfig:t,saveCellConfig:t,sendStdin:t,readCode:t,readSnippets:t,previewDatasetColumn:t,previewSQLTable:t,previewSQLTableList:t,previewDataSourceConnection:t,validateSQL:t,openFile:t,getUsageStats:t,sendListFiles:t,sendSearchFiles:t,sendPdb:t,sendCreateFileOrFolder:t,sendDeleteFileOrFolder:t,sendRenameFileOrFolder:t,sendUpdateFile:t,sendFileDetails:t,openTutorial:t,sendInstallMissingPackages:t,getRecentFiles:t,getWorkspaceFiles:t,getRunningNotebooks:t,shutdownSession:t,exportAsHTML:t,exportAsMarkdown:t,autoExportAsHTML:t,autoExportAsMarkdown:t,autoExportAsIPYNB:t,addPackage:t,removePackage:t,getPackageList:t,getDependencyTree:t,listSecretKeys:t,writeSecret:t,invokeAiTool:t,clearCache:t,getCacheInfo:t}}var N4=J();function E4(t){let e={sendComponentValues:"Failed update value",sendModelValue:"Failed to update model value",sendInstantiate:"Failed to instantiate",sendFunctionRequest:"Failed to send function request",sendRestart:"Failed to restart",syncCellIds:"Failed to sync cell IDs",sendRun:"Failed to run",sendRunScratchpad:"Failed to run scratchpad",sendRename:"Failed to rename",sendSave:"Failed to save",sendCopy:"Failed to copy",sendInterrupt:"Failed to interrupt",sendShutdown:"Failed to shutdown",sendFormat:"Failed to format",sendDeleteCell:"Failed to delete cell",sendCodeCompletionRequest:"Failed to complete code",saveUserConfig:"Failed to save user config",saveAppConfig:"Failed to save app config",saveCellConfig:"Failed to save cell config",sendStdin:"Failed to send stdin",readCode:"Failed to read code",readSnippets:"Failed to fetch snippets",previewDatasetColumn:"Failed to fetch data sources",previewSQLTable:"Failed to fetch SQL table",previewSQLTableList:"Failed to fetch SQL table list",previewDataSourceConnection:"Failed to preview data source connection",validateSQL:"Failed to validate SQL",openFile:"Failed to open file",getUsageStats:"",sendListFiles:"Failed to list files",sendSearchFiles:"Failed to search files",sendPdb:"Failed to start debug session",sendCreateFileOrFolder:"Failed to create file or folder",sendDeleteFileOrFolder:"Failed to delete file or folder",sendRenameFileOrFolder:"Failed to rename file or folder",sendUpdateFile:"Failed to update file",sendFileDetails:"Failed to get file details",openTutorial:"Failed to open tutorial",sendInstallMissingPackages:"Failed to install missing packages",getRecentFiles:"Failed to get recent files",getWorkspaceFiles:"Failed to get workspace files",getRunningNotebooks:"Failed to get running notebooks",shutdownSession:"Failed to shutdown session",exportAsHTML:"Failed to export HTML",exportAsMarkdown:"Failed to export Markdown",autoExportAsHTML:"",autoExportAsMarkdown:"",autoExportAsIPYNB:"",addPackage:"Failed to add package",removePackage:"Failed to remove package",getPackageList:"Failed to get package list",getDependencyTree:"Failed to get dependency tree",listSecretKeys:"Failed to fetch secrets",writeSecret:"Failed to write secret",invokeAiTool:"Failed to invoke AI tool",clearCache:"Failed to clear cache",getCacheInfo:""},a={};for(let[r,n]of Object.entries(t)){let i=r;a[i]=async(...l)=>{try{return await n(...l)}catch(o){if(o instanceof Bv){if(ze.get(W1))return;let c=ya({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,s.jsx)(_4,{onConnect:()=>c.dismiss()})});throw se.error(`Failed to handle request: ${r}`,o),o}let d=e[i],u=Lv(o);throw d&&ya({title:d,description:u,variant:"danger"}),se.error(`Failed to handle request: ${r}`,o),o}}}return a}const _4=t=>{let e=(0,N4.c)(9),{onConnect:a}=t,r=y_(),n=Al(W1),i;e[0]!==r||e[1]!==a?(i=()=>{r(),setTimeout(()=>{a()},800)},e[0]=r,e[1]=a,e[2]=i):i=e[2];let l;e[3]===n?l=e[4]:(l=n&&(0,s.jsx)(Kn,{size:"small",className:"mr-1"}),e[3]=n,e[4]=l);let o;return e[5]!==n||e[6]!==i||e[7]!==l?(o=(0,s.jsxs)(Se,{size:"xs",onClick:i,disabled:n,children:[l,"Connect"]}),e[5]=n,e[6]=i,e[7]=l,e[8]=o):o=e[8],o};function T4(){let t;return t=v_()?e_.INSTANCE:Vl()?S4():C4(k4(),()=>Du()),E4(t)}function R4(t=K1()){let e=window.fetch;return window.fetch=async(a,r)=>{let n=a instanceof Request?a.url:a.toString();if(n.startsWith("data:"))return e(a,r);try{let i=ws(n,t);if(i){let l=await(await e(i)).arrayBuffer();return new Response(l,{headers:{"Content-Type":A4(n)}})}return e(a,r)}catch(i){return se.error("Error parsing URL",i),e(a,r)}},()=>{window.fetch=e}}function A4(t){return t.endsWith(".csv")?"text/csv":t.endsWith(".json")?"application/json":t.endsWith(".txt")?"text/plain":"application/octet-stream"}function I4(t,e=K1()){let a=t.http.bind(t),r=t.load.bind(t);return t.http=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await a(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},t.load=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await r(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},()=>{t.http=a,t.load=r}}function kg(t){return t.startsWith(".")?t.slice(1):t}function ws(t,e){let a=document.baseURI;a.startsWith("blob:")&&(a=a.replace("blob:",""));let r=new URL(t,a).pathname;if(t.startsWith("file://")){let n=t.indexOf("/@file/");n!==-1&&(t=t.slice(n))}return e[t]||e[kg(t)]||e[r]||e[kg(r)]}var P4=fa(Hn(),1),tr="NavigationMenu",[Ds,Sg,M4]=ao(tr),[js,F4,V4]=ao(tr),[Cs,p6]=$u(tr,[M4,V4]),[z4,_t]=Cs(tr),[O4,$4]=Cs(tr),Ng=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,delayDuration:l=200,skipDelayDuration:o=300,orientation:d="horizontal",dir:u,...c}=t,[p,m]=x.useState(null),h=Ct(e,C=>m(C)),g=_v(u),f=x.useRef(0),v=x.useRef(0),b=x.useRef(0),[w,D]=x.useState(!0),[j,k]=to({prop:r,onChange:C=>{let _=C!=="",E=o>0;_?(window.clearTimeout(b.current),E&&D(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>D(!0),o)),n==null||n(C)},defaultProp:i??"",caller:tr}),S=x.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>k(""),150)},[k]),N=x.useCallback(C=>{window.clearTimeout(v.current),k(C)},[k]),y=x.useCallback(C=>{j===C?window.clearTimeout(v.current):f.current=window.setTimeout(()=>{window.clearTimeout(v.current),k(C)},l)},[j,k,l]);return x.useEffect(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(v.current),window.clearTimeout(b.current)},[]),(0,s.jsx)(Eg,{scope:a,isRootMenu:!0,value:j,dir:g,orientation:d,rootNavigationMenu:p,onTriggerEnter:C=>{window.clearTimeout(f.current),w?y(C):N(C)},onTriggerLeave:()=>{window.clearTimeout(f.current),S()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:S,onItemSelect:C=>{k(_=>_===C?"":C)},onItemDismiss:()=>k(""),children:(0,s.jsx)(Ue.nav,{"aria-label":"Main","data-orientation":d,dir:g,...c,ref:h})})});Ng.displayName=tr;var ks="NavigationMenuSub",L4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,orientation:l="horizontal",...o}=t,d=_t(ks,a),[u,c]=to({prop:r,onChange:n,defaultProp:i??"",caller:ks});return(0,s.jsx)(Eg,{scope:a,isRootMenu:!1,value:u,dir:d.dir,orientation:l,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:p=>c(p),onItemSelect:p=>c(p),onItemDismiss:()=>c(""),children:(0,s.jsx)(Ue.div,{"data-orientation":l,...o,ref:e})})});L4.displayName=ks;var Eg=t=>{let{scope:e,isRootMenu:a,rootNavigationMenu:r,dir:n,orientation:i,children:l,value:o,onItemSelect:d,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:p,onContentEnter:m,onContentLeave:h}=t,[g,f]=x.useState(null),[v,b]=x.useState(new Map),[w,D]=x.useState(null);return(0,s.jsx)(z4,{scope:e,isRootMenu:a,rootNavigationMenu:r,value:o,previousValue:lv(o),baseId:Sv(),dir:n,orientation:i,viewport:g,onViewportChange:f,indicatorTrack:w,onIndicatorTrackChange:D,onTriggerEnter:Ht(c),onTriggerLeave:Ht(p),onContentEnter:Ht(m),onContentLeave:Ht(h),onItemSelect:Ht(d),onItemDismiss:Ht(u),onViewportContentChange:x.useCallback((j,k)=>{b(S=>(S.set(j,k),new Map(S)))},[]),onViewportContentRemove:x.useCallback(j=>{b(k=>k.has(j)?(k.delete(j),new Map(k)):k)},[]),children:(0,s.jsx)(Ds.Provider,{scope:e,children:(0,s.jsx)(O4,{scope:e,items:v,children:l})})})},_g="NavigationMenuList",Tg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=_t(_g,a),i=(0,s.jsx)(Ue.ul,{"data-orientation":n.orientation,...r,ref:e});return(0,s.jsx)(Ue.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange,children:(0,s.jsx)(Ds.Slot,{scope:a,children:n.isRootMenu?(0,s.jsx)(Lg,{asChild:!0,children:i}):i})})});Tg.displayName=_g;var Rg="NavigationMenuItem",[B4,Ag]=Cs(Rg),Ig=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,...n}=t,i=Sv(),l=r||i||"LEGACY_REACT_AUTO_VALUE",o=x.useRef(null),d=x.useRef(null),u=x.useRef(null),c=x.useRef(()=>{}),p=x.useRef(!1),m=x.useCallback((g="start")=>{if(o.current){c.current();let f=_s(o.current);f.length&&Ts(g==="start"?f:f.reverse())}},[]),h=x.useCallback(()=>{if(o.current){let g=_s(o.current);g.length&&(c.current=Y4(g))}},[]);return(0,s.jsx)(B4,{scope:a,value:l,triggerRef:d,contentRef:o,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:(0,s.jsx)(Ue.li,{...n,ref:e})})});Ig.displayName=Rg;var Ss="NavigationMenuTrigger",Pg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,disabled:r,...n}=t,i=_t(Ss,t.__scopeNavigationMenu),l=Ag(Ss,t.__scopeNavigationMenu),o=x.useRef(null),d=Ct(o,l.triggerRef,e),u=Wg(i.baseId,l.value),c=Ug(i.baseId,l.value),p=x.useRef(!1),m=x.useRef(!1),h=l.value===i.value;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ds.ItemSlot,{scope:a,value:l.value,children:(0,s.jsx)(Hg,{asChild:!0,children:(0,s.jsx)(Ue.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":As(h),"aria-expanded":h,"aria-controls":c,...n,ref:d,onPointerEnter:_e(t.onPointerEnter,()=>{m.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:_e(t.onPointerMove,Li(()=>{r||m.current||l.wasEscapeCloseRef.current||p.current||(i.onTriggerEnter(l.value),p.current=!0)})),onPointerLeave:_e(t.onPointerLeave,Li(()=>{r||(i.onTriggerLeave(),p.current=!1)})),onClick:_e(t.onClick,()=>{i.onItemSelect(l.value),m.current=h}),onKeyDown:_e(t.onKeyDown,g=>{let f={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&g.key===f&&(l.onEntryKeyDown(),g.preventDefault())})})})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(JR,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:g=>{let f=l.contentRef.current,v=g.relatedTarget,b=v===o.current,w=f==null?void 0:f.contains(v);(b||!w)&&l.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&(0,s.jsx)("span",{"aria-owns":c})]})]})});Pg.displayName=Ss;var H4="NavigationMenuLink",Mg="navigationMenu.linkSelect",Fg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,active:r,onSelect:n,...i}=t;return(0,s.jsx)(Hg,{asChild:!0,children:(0,s.jsx)(Ue.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:e,onClick:_e(t.onClick,l=>{let o=l.target,d=new CustomEvent(Mg,{bubbles:!0,cancelable:!0});o.addEventListener(Mg,u=>n==null?void 0:n(u),{once:!0}),Lu(o,d),!d.defaultPrevented&&!l.metaKey&&Lu(o,new CustomEvent($i,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});Fg.displayName=H4;var Ns="NavigationMenuIndicator",Vg=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=_t(Ns,t.__scopeNavigationMenu),i=!!n.value;return n.indicatorTrack?P4.createPortal((0,s.jsx)(Yn,{present:a||i,children:(0,s.jsx)(W4,{...r,ref:e})}),n.indicatorTrack):null});Vg.displayName=Ns;var W4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=_t(Ns,a),i=Sg(a),[l,o]=x.useState(null),[d,u]=x.useState(null),c=n.orientation==="horizontal",p=!!n.value;x.useEffect(()=>{var g;let h=(g=i().find(f=>f.value===n.value))==null?void 0:g.ref.current;h&&o(h)},[i,n.value]);let m=()=>{l&&u({size:c?l.offsetWidth:l.offsetHeight,offset:c?l.offsetLeft:l.offsetTop})};return Rs(l,m),Rs(n.indicatorTrack,m),d?(0,s.jsx)(Ue.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":n.orientation,...r,ref:e,style:{position:"absolute",...c?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...r.style}}):null}),Cr="NavigationMenuContent",zg=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=_t(Cr,t.__scopeNavigationMenu),i=Ag(Cr,t.__scopeNavigationMenu),l=Ct(i.contentRef,e),o=i.value===n.value,d={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return n.viewport?(0,s.jsx)(U4,{forceMount:a,...d,ref:l}):(0,s.jsx)(Yn,{present:a||o,children:(0,s.jsx)(Og,{"data-state":As(o),...d,ref:l,onPointerEnter:_e(t.onPointerEnter,n.onContentEnter),onPointerLeave:_e(t.onPointerLeave,Li(n.onContentLeave)),style:{pointerEvents:!o&&n.isRootMenu?"none":void 0,...d.style}})})});zg.displayName=Cr;var U4=x.forwardRef((t,e)=>{let{onViewportContentChange:a,onViewportContentRemove:r}=_t(Cr,t.__scopeNavigationMenu);return eo(()=>{a(t.value,{ref:e,...t})},[t,e,a]),eo(()=>()=>r(t.value),[t.value,r]),null}),$i="navigationMenu.rootContentDismiss",Og=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,triggerRef:n,focusProxyRef:i,wasEscapeCloseRef:l,onRootContentClose:o,onContentFocusOutside:d,...u}=t,c=_t(Cr,a),p=x.useRef(null),m=Ct(p,e),h=Wg(c.baseId,r),g=Ug(c.baseId,r),f=Sg(a),v=x.useRef(null),{onItemDismiss:b}=c;x.useEffect(()=>{let D=p.current;if(c.isRootMenu&&D){let j=()=>{var k;b(),o(),D.contains(document.activeElement)&&((k=n.current)==null||k.focus())};return D.addEventListener($i,j),()=>D.removeEventListener($i,j)}},[c.isRootMenu,t.value,n,b,o]);let w=x.useMemo(()=>{let D=f().map(C=>C.value);c.dir==="rtl"&&D.reverse();let j=D.indexOf(c.value),k=D.indexOf(c.previousValue),S=r===c.value,N=k===D.indexOf(r);if(!S&&!N)return v.current;let y=(()=>{if(j!==k){if(S&&k!==-1)return j>k?"from-end":"from-start";if(N&&j!==-1)return j>k?"to-start":"to-end"}return null})();return v.current=y,y},[c.previousValue,c.value,c.dir,f,r]);return(0,s.jsx)(Lg,{asChild:!0,children:(0,s.jsx)(ZR,{id:g,"aria-labelledby":h,"data-motion":w,"data-orientation":c.orientation,...u,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var j;let D=new Event($i,{bubbles:!0,cancelable:!0});(j=p.current)==null||j.dispatchEvent(D)},onFocusOutside:_e(t.onFocusOutside,D=>{var k;d();let j=D.target;(k=c.rootNavigationMenu)!=null&&k.contains(j)&&D.preventDefault()}),onPointerDownOutside:_e(t.onPointerDownOutside,D=>{var N;let j=D.target,k=f().some(y=>{var C;return(C=y.ref.current)==null?void 0:C.contains(j)}),S=c.isRootMenu&&((N=c.viewport)==null?void 0:N.contains(j));(k||S||!c.isRootMenu)&&D.preventDefault()}),onKeyDown:_e(t.onKeyDown,D=>{var k;let j=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!j){let S=_s(D.currentTarget),N=document.activeElement,y=S.findIndex(C=>C===N);Ts(D.shiftKey?S.slice(0,y).reverse():S.slice(y+1,S.length))?D.preventDefault():(k=i.current)==null||k.focus()}}),onEscapeKeyDown:_e(t.onEscapeKeyDown,D=>{l.current=!0})})})}),Es="NavigationMenuViewport",$g=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=!!_t(Es,t.__scopeNavigationMenu).value;return(0,s.jsx)(Yn,{present:a||n,children:(0,s.jsx)(K4,{...r,ref:e})})});$g.displayName=Es;var K4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,children:r,...n}=t,i=_t(Es,a),l=Ct(e,i.onViewportChange),o=$4(Cr,t.__scopeNavigationMenu),[d,u]=x.useState(null),[c,p]=x.useState(null),m=d?(d==null?void 0:d.width)+"px":void 0,h=d?(d==null?void 0:d.height)+"px":void 0,g=!!i.value,f=g?i.value:i.previousValue;return Rs(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,s.jsx)(Ue.div,{"data-state":As(g),"data-orientation":i.orientation,...n,ref:l,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":h,...n.style},onPointerEnter:_e(t.onPointerEnter,i.onContentEnter),onPointerLeave:_e(t.onPointerLeave,Li(i.onContentLeave)),children:Array.from(o.items).map(([v,{ref:b,forceMount:w,...D}])=>{let j=f===v;return(0,s.jsx)(Yn,{present:w||j,children:(0,s.jsx)(Og,{...D,ref:M_(b,k=>{j&&k&&p(k)})})},v)})})}),Z4="FocusGroup",Lg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=_t(Z4,a);return(0,s.jsx)(js.Provider,{scope:a,children:(0,s.jsx)(js.Slot,{scope:a,children:(0,s.jsx)(Ue.div,{dir:n.dir,...r,ref:e})})})}),Bg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],q4="FocusGroupItem",Hg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=F4(a),i=_t(q4,a);return(0,s.jsx)(js.ItemSlot,{scope:a,children:(0,s.jsx)(Ue.button,{...r,ref:e,onKeyDown:_e(t.onKeyDown,l=>{if(["Home","End",...Bg].includes(l.key)){let o=n().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(l.key)&&o.reverse(),Bg.includes(l.key)){let d=o.indexOf(l.currentTarget);o=o.slice(d+1)}setTimeout(()=>Ts(o)),l.preventDefault()}})})})});function _s(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function Ts(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}function Y4(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{let a=e.dataset.tabindex;e.setAttribute("tabindex",a)})}}function Rs(t,e){let a=Ht(e);eo(()=>{let r=0;if(t){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return n.observe(t),()=>{window.cancelAnimationFrame(r),n.unobserve(t)}}},[t,a])}function As(t){return t?"open":"closed"}function Wg(t,e){return`${t}-trigger-${e}`}function Ug(t,e){return`${t}-content-${e}`}function Li(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Kg=Ng,Zg=Tg,G4=Ig,qg=Pg,J4=Fg,Yg=Vg,Gg=zg,Jg=$g,kr=J(),Is=x.forwardRef((t,e)=>{let a=(0,kr.c)(16),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,children:r,orientation:i,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",u;a[5]!==n||a[6]!==o||a[7]!==d?(u=K(o,d,"relative z-10",n),a[5]=n,a[6]=o,a[7]=d,a[8]=u):u=a[8];let c;a[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(e0,{}),a[9]=c):c=a[9];let p;return a[10]!==r||a[11]!==i||a[12]!==l||a[13]!==e||a[14]!==u?(p=(0,s.jsxs)(Kg,{ref:e,className:u,orientation:i,...l,children:[r,c]}),a[10]=r,a[11]=i,a[12]=l,a[13]=e,a[14]=u,a[15]=p):p=a[15],p});Is.displayName=Kg.displayName;var Q4=Fl("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),Bi=x.forwardRef((t,e)=>{let a=(0,kr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,orientation:n,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]!==r||a[5]!==n?(l=K(Q4({orientation:n}),r),a[4]=r,a[5]=n,a[6]=l):l=a[6];let o;return a[7]!==i||a[8]!==e||a[9]!==l?(o=(0,s.jsx)(Zg,{ref:e,className:l,...i}),a[7]=i,a[8]=e,a[9]=l,a[10]=o):o=a[10],o});Bi.displayName=Zg.displayName;var Ps=G4,Ms=Fl("group inline-flex rounded-md bg-background px-4 py-2 text-lg font-medium text-(--slate-12) transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{orientation:{horizontal:"w-max items-center justify-center",vertical:"w-full"}},defaultVariants:{orientation:"horizontal"}}),Qg=x.forwardRef((t,e)=>{let a=(0,kr.c)(12),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:n,children:r,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]===n?l=a[5]:(l=K(Ms(),"group",n),a[4]=n,a[5]=l);let o;a[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(YT,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),a[6]=o):o=a[6];let d;return a[7]!==r||a[8]!==i||a[9]!==e||a[10]!==l?(d=(0,s.jsxs)(qg,{ref:e,className:l,...i,children:[r," ",o]}),a[7]=r,a[8]=i,a[9]=e,a[10]=l,a[11]=d):d=a[11],d});Qg.displayName=qg.displayName;var Xg=x.forwardRef((t,e)=>{let a=(0,kr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(Gg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});Xg.displayName=Gg.displayName;var Fs=J4,e0=x.forwardRef((t,e)=>{let a=(0,kr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===Symbol.for("react.memo_cache_sentinel")?(i=K("absolute left-0 top-full flex justify-center"),a[3]=i):i=a[3];let l;a[4]===r?l=a[5]:(l=K("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)",r),a[4]=r,a[5]=l);let o;return a[6]!==n||a[7]!==e||a[8]!==l?(o=(0,s.jsx)("div",{className:i,children:(0,s.jsx)(Jg,{className:l,ref:e,...n})}),a[6]=n,a[7]=e,a[8]=l,a[9]=o):o=a[9],o});e0.displayName=Jg.displayName;var X4=x.forwardRef((t,e)=>{let a=(0,kr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(Yg,{ref:e,className:i,...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});X4.displayName=Yg.displayName;var t0=J(),eD=class{constructor(){q(this,"tagName","marimo-nav-menu");q(this,"menuItemValidator",L({label:F(),href:F(),description:F().nullish()}));q(this,"menuItemGroupValidator",L({label:F(),items:ee(this.menuItemValidator)}));q(this,"validator",L({items:ee(Ce([this.menuItemValidator,this.menuItemGroupValidator])),orientation:ye(["horizontal","vertical"])}))}render(t){return(0,s.jsx)(St,{children:(0,s.jsx)(tD,{...t.data})})}},tD=t=>{let e=(0,t0.c)(13),{items:a,orientation:r}=t,n=aD,i=rD,l=nD,o;e[0]===r?o=e[1]:(o=m=>"items"in m?r==="horizontal"?(0,s.jsx)(Is,{orientation:"horizontal",children:(0,s.jsx)(Bi,{children:(0,s.jsxs)(Ps,{children:[(0,s.jsx)(Qg,{children:Me({html:m.label})}),(0,s.jsx)(Xg,{children:(0,s.jsx)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",children:m.items.map(h=>(0,s.jsx)(a0,{label:h.label,href:l(h.href),target:i(h.href),children:h.description&&Me({html:h.description})},h.label))})})]})})},m.label):(0,s.jsxs)(Ps,{children:[(0,s.jsx)("div",{className:"inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",children:Me({html:m.label})}),(0,s.jsx)(Bi,{className:"ml-4 auto-collapse-nav",orientation:r,children:m.items.map(h=>(0,s.jsx)(x.Fragment,{children:n((0,s.jsx)(Fs,{href:l(h.href),target:i(h.href),className:Ms({orientation:r}),children:Me({html:h.label})},h.label),h.description)},h.label))})]},m.label):(0,s.jsx)(Ps,{children:(0,s.jsx)(Fs,{href:l(m.href),target:i(m.href),className:Ms({orientation:r}),children:Me({html:m.label})})},m.label),e[0]=r,e[1]=o);let d=o,u;if(e[2]!==a||e[3]!==d){let m;e[5]===d?m=e[6]:(m=h=>d(h),e[5]=d,e[6]=m),u=a.map(m),e[2]=a,e[3]=d,e[4]=u}else u=e[4];let c;e[7]!==r||e[8]!==u?(c=(0,s.jsx)(Bi,{className:"auto-collapse-nav",orientation:r,children:u}),e[7]=r,e[8]=u,e[9]=c):c=e[9];let p;return e[10]!==r||e[11]!==c?(p=(0,s.jsx)(Is,{orientation:r,children:c}),e[10]=r,e[11]=c,e[12]=p):p=e[12],p},a0=x.forwardRef((t,e)=>{let a=(0,t0.c)(19),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,label:i,children:r,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o;a[5]===n?o=a[6]:(o=K("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",n),a[5]=n,a[6]=o);let d;a[7]===i?d=a[8]:(d=Me({html:i}),a[7]=i,a[8]=d);let u;a[9]===d?u=a[10]:(u=(0,s.jsx)("div",{className:"text-base font-medium leading-none",children:d}),a[9]=d,a[10]=u);let c;a[11]===r?c=a[12]:(c=r&&(0,s.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:r}),a[11]=r,a[12]=c);let p;return a[13]!==l||a[14]!==e||a[15]!==o||a[16]!==u||a[17]!==c?(p=(0,s.jsx)("li",{children:(0,s.jsx)(Fs,{asChild:!0,children:(0,s.jsxs)("a",{ref:e,className:o,...l,children:[u,c]})})}),a[13]=l,a[14]=e,a[15]=o,a[16]=u,a[17]=c,a[18]=p):p=a[18],p});a0.displayName="ListItem";function aD(t,e){return e?(0,s.jsx)(Pt,{delayDuration:200,content:Me({html:e}),children:t}):t}function rD(t){return t.startsWith("http")?"_blank":"_self"}function nD(t){return D_({href:t,queryParams:new URL(globalThis.location.href).search,keys:[wu.filePath]})}function iD(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?lT(t,e):typeof t=="object"&&typeof e=="object"?lD(t,e):!1}function lD(t,e){return Object.keys(t).length===Object.keys(e).length&&za.keys(t).every(a=>t[a]===e[a])}function Vs(t,e){if(!(window!=null&&window.customElements)){se.warn("Custom elements not supported");return}if(window.customElements.get(t)){se.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var oD=J();const sD=t=>{let e=(0,oD.c)(16),{error:a,badData:r,shadowRoot:n}=t;if(a instanceof ME){let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(qu,{children:"Bad Data"}),e[0]=l):l=e[0];let o;e[1]===a.issues?o=e[2]:(o=a.issues.map(uD),e[1]=a.issues,e[2]=o);let d;e[3]===o?d=e[4]:(d=(0,s.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,s.jsx)("ul",{children:o})}),e[3]=o,e[4]=d);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(DA,{className:"py-2 text-[0.84375rem]",children:"View Data:"}),e[5]=u):u=e[5];let c;e[6]===r?c=e[7]:(c=(0,s.jsx)(Q1,{data:r}),e[6]=r,e[7]=c);let p;e[8]!==n||e[9]!==c?(p=(0,s.jsx)(jA,{type:"single",collapsible:!0,children:(0,s.jsxs)(wA,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[u,(0,s.jsx)(CA,{className:"text-[0.84375rem]",children:(0,s.jsx)(J1,{container:n,children:c})})]})}),e[8]=n,e[9]=c,e[10]=p):p=e[10];let m;return e[11]!==d||e[12]!==p?(m=(0,s.jsxs)(uo,{variant:"destructive",children:[l,d,p]}),e[11]=d,e[12]=p,e[13]=m):m=e[13],m}let i;return e[14]===a.message?i=e[15]:(i=(0,s.jsx)("div",{children:a.message}),e[14]=a.message,e[15]=i),i};function dD(t,e,a){return(0,s.jsx)(sD,{error:t,badData:e,shadowRoot:a})}function uD(t){let e=t.path.join(".");return(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"font-bold",children:e}),": ",t.message]},e)}function cD({hostElement:t,plugin:e,children:a,getInitialValue:r},n){let[i,l]=(0,x.useState)(a),[o,d]=(0,x.useState)(r()),{theme:u}=qr(),[c,p]=(0,x.useState)(()=>e.validator.safeParse(pu(t)));(0,x.useImperativeHandle)(n,()=>({reset:()=>{d(r()),p(e.validator.safeParse(pu(t)))},setChildren:g=>{l(g)}})),Ml(t,YE.TYPE,g=>{g.detail.element===t&&d(g.detail.value)}),(0,x.useEffect)(()=>{let g=new MutationObserver(f=>{f.some(v=>{var b;return v.type==="attributes"&&((b=v.attributeName)==null?void 0:b.startsWith("data-"))})&&p(e.validator.safeParse(pu(t)))});return g.observe(t,{attributes:!0}),()=>{g.disconnect()}},[t,e.validator]);let m=Oe(g=>{d(f=>{let v=Oa.asUpdater(g)(f);return iD(v,f)||t.dispatchEvent(L1(v,t)),v})}),h=(0,x.useMemo)(()=>{if(!e.functions)return{};let g={};for(let[f,v]of za.entries(e.functions)){let{input:b,output:w}=v;g[f]=async(...D)=>{var C;Br(D.length<=1,`Plugin functions only supports a single argument. Called ${f}`);let j=Os(t);Br(j,"Object ID should exist");let k=Vl(),S=(C=_1.findElementThroughShadowDOMs(t))==null?void 0:C.id,N=S?_1.parse(S):null;if(N&&!k){let _=ze.get(R1),E=_.cellRuntime[N],R=_.cellData[N];if(SE({executionTime:E.runElapsedTimeMs??R.lastExecutionTime,status:E.status,errored:E.errored,interrupted:E.interrupted,stopped:E.stopped}))throw new bA}else se.warn(`Cell ID ${N} cannot be found`);let y=await ZE.request({args:o0(b,D[0]),functionName:f,namespace:j});if(y.status.code!=="ok")throw se.error(y.status),Error(y.status.message||"Unknown error");return o0(w,y.return_value)}}return g},[e.functions,t]);return c.success?(0,s.jsx)(YR,{children:(0,s.jsx)("div",{className:`contents ${u}`,children:(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{}),children:e.render({setValue:m,value:o,data:c.data,children:i,host:t,functions:h})})})}):dD(c.error,za.mapValues(t.dataset,g=>typeof g=="string"?S1(g):g),t.shadowRoot)}var mD=x.forwardRef(cD),zs=new Map,r0="__custom_marimo_element__";function n0(t){let e=class extends HTMLElement{constructor(){super();q(this,"mounted",!1);q(this,"pluginRef",(0,x.createRef)());q(this,"__type__",r0);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var r;(r=this.pluginRef.current)==null||r.setChildren(this.getChildren())})}connectedCallback(){this.mounted||(Br(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=cy.createRoot(this.shadowRoot),this.mountReactComponent()),this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){var r;this.observer.disconnect(),(r=this.root)==null||r.unmount(),this.mounted&&(this.mounted=!1)}reset(){this.dispatchEvent(L1(S1(this.dataset.initialValue),this)),this.rerender()}rerender(){var r;(r=this.pluginRef.current)==null||r.reset()}getChildren(){return this.children.length===0?null:this.children.length===1?Me({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((r,n)=>(0,s.jsx)(x.Fragment,{children:Me({html:r.outerHTML,alwaysSanitizeHtml:!1})},n))}async mountReactComponent(){this.mounted=!0,Br(this.root,"Root must be defined"),this.root.render((0,s.jsx)(_l,{store:ze,children:(0,s.jsx)(bs,{children:(0,s.jsx)(mD,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>kE(this,a_.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let r=this.shadowRoot;if(Br(r,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){se.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser."),this.copyStylesFallback();return}let n=Array.from(document.styleSheets).filter(i=>i.ownerNode instanceof HTMLElement&&i.ownerNode.dataset.viteDevId?!0:i0(i));for(let i of n){let l=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(l&&!zs.has(l)){let o=new CSSStyleSheet;try{o.replaceSync(Array.from(i.cssRules).map(d=>d.cssText.includes("@import")?"":d.cssText).join(`
6
+ }`,document.head.prepend(r);let n=d=>{if(!(d.touches.length===2||e)){if(!t||t===document.documentElement||t===document.body){d.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&d.preventDefault()}},i=d=>{var p,m;let u=d.target,c=d.relatedTarget;c&&Ku(c)?(c.focus({preventScroll:!0}),Km(c,Ku(u))):c||((m=(p=u.parentElement)==null?void 0:p.closest("[tabindex]"))==null||m.focus({preventScroll:!0}))},l=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=document.activeElement!=null&&Ku(document.activeElement);l.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Km(this,u)};let o=Pv(Qo(document,"touchstart",a,{passive:!1,capture:!0}),Qo(document,"touchmove",n,{passive:!1,capture:!0}),Qo(document,"blur",i,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=l}}function Jo(t,e,a){let r=t.style[e];return t.style[e]=a,()=>{t.style[e]=r}}function Qo(t,e,a,r){return t.addEventListener(e,a,r),()=>{t.removeEventListener(e,a,r)}}function Km(t,e){e||!mn?Zm(t):mn.addEventListener("resize",()=>Zm(t),{once:!0})}function Zm(t){let e=document.scrollingElement||document.documentElement,a=t;for(;a&&a!==e;){let r=no(a);if(r!==document.documentElement&&r!==document.body&&r!==a){let n=r.getBoundingClientRect(),i=a.getBoundingClientRect();if(i.top<n.top||i.bottom>n.top+a.clientHeight){let l=n.bottom;mn&&(l=Math.min(l,mn.offsetTop+mn.height));let o=i.top-n.top-((l-n.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}a=r.parentElement}}var Vw=(0,x.createContext)({});function zw(){return(0,x.useContext)(Vw)??{}}var qm={};qm={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var Ym={};Ym={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var Gm={};Gm={dismiss:"Odstranit"};var Jm={};Jm={dismiss:"Luk"};var Qm={};Qm={dismiss:"Schlie\xDFen"};var Xm={};Xm={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var ep={};ep={dismiss:"Dismiss"};var tp={};tp={dismiss:"Descartar"};var ap={};ap={dismiss:"L\xF5peta"};var rp={};rp={dismiss:"Hylk\xE4\xE4"};var np={};np={dismiss:"Rejeter"};var ip={};ip={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var lp={};lp={dismiss:"Odbaci"};var op={};op={dismiss:"Elutas\xEDt\xE1s"};var sp={};sp={dismiss:"Ignora"};var dp={};dp={dismiss:"\u9589\u3058\u308B"};var up={};up={dismiss:"\uBB34\uC2DC"};var cp={};cp={dismiss:"Atmesti"};var mp={};mp={dismiss:"Ner\u0101d\u012Bt"};var pp={};pp={dismiss:"Lukk"};var hp={};hp={dismiss:"Negeren"};var fp={};fp={dismiss:"Zignoruj"};var gp={};gp={dismiss:"Descartar"};var xp={};xp={dismiss:"Dispensar"};var vp={};vp={dismiss:"Revocare"};var yp={};yp={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var bp={};bp={dismiss:"Zru\u0161i\u0165"};var wp={};wp={dismiss:"Opusti"};var Dp={};Dp={dismiss:"Odbaci"};var jp={};jp={dismiss:"Avvisa"};var Cp={};Cp={dismiss:"Kapat"};var kp={};kp={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var Sp={};Sp={dismiss:"\u53D6\u6D88"};var Np={};Np={dismiss:"\u95DC\u9589"};var Ep={};Ep={"ar-AE":qm,"bg-BG":Ym,"cs-CZ":Gm,"da-DK":Jm,"de-DE":Qm,"el-GR":Xm,"en-US":ep,"es-ES":tp,"et-EE":ap,"fi-FI":rp,"fr-FR":np,"he-IL":ip,"hr-HR":lp,"hu-HU":op,"it-IT":sp,"ja-JP":dp,"ko-KR":up,"lt-LT":cp,"lv-LV":mp,"nb-NO":pp,"nl-NL":hp,"pl-PL":fp,"pt-BR":gp,"pt-PT":xp,"ro-RO":vp,"ru-RU":yp,"sk-SK":bp,"sl-SI":wp,"sr-SP":Dp,"sv-SE":jp,"tr-TR":Cp,"uk-UA":kp,"zh-CN":Sp,"zh-TW":Np};function Ow(t){return t&&t.__esModule?t.default:t}function _p(t){let{onDismiss:e,...a}=t,r=Yl(a,Wa(Ow(Ep),"@react-aria/overlays").format("dismiss")),n=()=>{e&&e()};return x.createElement(Gn,null,x.createElement("button",{...r,tabIndex:-1,onClick:n,style:{width:1,height:1}}))}function $w(t,e){let{triggerRef:a,popoverRef:r,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...d}=t,u=d.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:p}=Iw({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},n??r),{overlayProps:m,arrowProps:h,placement:g,triggerAnchorPoint:f}=Ew({...d,targetRef:a,overlayRef:r,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return Pw({isDisabled:i||!e.isOpen}),(0,x.useEffect)(()=>{if(e.isOpen&&r.current)return i?$T((n==null?void 0:n.current)??r.current):OT([(n==null?void 0:n.current)??r.current],{shouldUseInert:!0})},[i,e.isOpen,r,n]),{popoverProps:Xe(c,m),arrowProps:h,underlayProps:p,placement:g,triggerAnchorPoint:f}}var Lw=fa(Hn(),1),Tp=x.createContext(null);function Rp(t){let e=cA(),{portalContainer:a=e?null:document.body,isExiting:r}=t,[n,i]=(0,x.useState)(!1),l=(0,x.useMemo)(()=>({contain:n,setContain:i}),[n,i]),{getContainer:o}=zw();if(!t.portalContainer&&o&&(a=o()),!a)return null;let d=t.children;return t.disableFocusManagement||(d=x.createElement(tA,{restoreFocus:!0,contain:(t.shouldContainFocus||n)&&!r},d)),d=x.createElement(Tp.Provider,{value:l},x.createElement(Rw,null,d)),Lw.createPortal(d,a)}function Bw(){var e;let t=(e=(0,x.useContext)(Tp))==null?void 0:e.setContain;ba(()=>{t==null||t(!0)},[t])}var Ap={};Ap={dateRange:t=>`${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,dateSelected:t=>`${t.date} \u0627\u0644\u0645\u062D\u062F\u062F`,finishRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0625\u0646\u0647\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",maximumDate:"\u0622\u062E\u0631 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",minimumDate:"\u0623\u0648\u0644 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",next:"\u0627\u0644\u062A\u0627\u0644\u064A",previous:"\u0627\u0644\u0633\u0627\u0628\u0642",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.dateRange}`,startRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",todayDate:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date}`,todayDateSelected:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date} \u0645\u062D\u062F\u062F`};var Ip={};Ip={dateRange:t=>`${t.startDate} \u0434\u043E ${t.endDate}`,dateSelected:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0435 ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0434\u043E\u0432\u044A\u0440\u0448\u0438\u0442\u0435 \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u044A\u0440\u0432\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u043F\u0440\u0435\u0434",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0438\u0441\u0442\u044A\u043F\u0438\u0442\u0435 \u043A\u044A\u043C \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",todayDate:t=>`\u0414\u043D\u0435\u0441, ${t.date}`,todayDateSelected:t=>`\u0414\u043D\u0435\u0441, ${t.date} \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438`};var Pp={};Pp={dateRange:t=>`${t.startDate} a\u017E ${t.endDate}`,dateSelected:t=>`Vybr\xE1no ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDb\u011Br rozsahu dat",maximumDate:"Posledn\xED dostupn\xE9 datum",minimumDate:"Prvn\xED dostupn\xE9 datum",next:"Dal\u0161\xED",previous:"P\u0159edchoz\xED",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm zah\xE1j\xEDte v\xFDb\u011Br rozsahu dat",todayDate:t=>`Dnes, ${t.date}`,todayDateSelected:t=>`Dnes, vybr\xE1no ${t.date}`};var Mp={};Mp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xF8re valg af datoomr\xE5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xF8rste ledige dato",next:"N\xE6ste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Fp={};Fp={dateRange:t=>`${t.startDate} bis ${t.endDate}`,dateSelected:t=>`${t.date} ausgew\xE4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xFCgbares Datum",minimumDate:"Erstes verf\xFCgbares Datum",next:"Weiter",previous:"Zur\xFCck",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:t=>`Heute, ${t.date}`,todayDateSelected:t=>`Heute, ${t.date} ausgew\xE4hlt`};var Vp={};Vp={dateRange:t=>`${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,dateSelected:t=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${t.date}`,finishRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",maximumDate:"\u03A4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",minimumDate:"\u03A0\u03C1\u03CE\u03C4\u03B7 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",previous:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.dateRange}`,startRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",todayDate:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, ${t.date}`,todayDateSelected:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03C4\u03B7\u03BA\u03B5 ${t.date}`};var zp={};zp={previous:"Previous",next:"Next",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.dateRange}`,todayDate:t=>`Today, ${t.date}`,todayDateSelected:t=>`Today, ${t.date} selected`,dateSelected:t=>`${t.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:t=>`${t.startDate} to ${t.endDate}`};var Op={};Op={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xDAltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo seleccionado: ${t.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:t=>`Hoy, ${t.date}`,todayDateSelected:t=>`Hoy, ${t.date} seleccionado`};var $p={};$p={dateRange:t=>`${t.startDate} kuni ${t.endDate}`,dateSelected:t=>`${t.date} valitud`,finishRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimise l\xF5petamiseks",maximumDate:"Viimane saadaolev kuup\xE4ev",minimumDate:"Esimene saadaolev kuup\xE4ev",next:"J\xE4rgmine",previous:"Eelmine",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.dateRange}`,startRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimiseks",todayDate:t=>`T\xE4na, ${t.date}`,todayDateSelected:t=>`T\xE4na, ${t.date} valitud`};var Lp={};Lp={dateRange:t=>`${t.startDate} \u2013 ${t.endDate}`,dateSelected:t=>`${t.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",maximumDate:"Viimeinen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",minimumDate:"Ensimm\xE4inen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.dateRange}`,startRangeSelectionPrompt:"Aloita p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",todayDate:t=>`T\xE4n\xE4\xE4n, ${t.date}`,todayDateSelected:t=>`T\xE4n\xE4\xE4n, ${t.date} valittu`};var Bp={};Bp={dateRange:t=>`${t.startDate} \xE0 ${t.endDate}`,dateSelected:t=>`${t.date} s\xE9lectionn\xE9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xE9lectionner la plage de dates",maximumDate:"Derni\xE8re date disponible",minimumDate:"Premi\xE8re date disponible",next:"Suivant",previous:"Pr\xE9c\xE9dent",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xE0 s\xE9lectionner la plage de dates",todayDate:t=>`Aujourd'hui, ${t.date}`,todayDateSelected:t=>`Aujourd\u2019hui, ${t.date} s\xE9lectionn\xE9`};var Hp={};Hp={dateRange:t=>`${t.startDate} \u05E2\u05D3 ${t.endDate}`,dateSelected:t=>`${t.date} \u05E0\u05D1\u05D7\u05E8`,finishRangeSelectionPrompt:"\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",maximumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05D0\u05D7\u05E8\u05D5\u05DF",minimumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05E8\u05D0\u05E9\u05D5\u05DF",next:"\u05D4\u05D1\u05D0",previous:"\u05D4\u05E7\u05D5\u05D3\u05DD",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.dateRange}`,startRangeSelectionPrompt:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",todayDate:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date}`,todayDateSelected:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date} \u05E0\u05D1\u05D7\u05E8`};var Wp={};Wp={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite raspon odabranih datuma",maximumDate:"Posljednji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Sljede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete raspon odabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, odabran ${t.date}`};var Up={};Up={dateRange:t=>`${t.startDate}\u2013${t.endDate}`,dateSelected:t=>`${t.date} kiv\xE1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek befejez\xE9s\xE9hez",maximumDate:"Utols\xF3 el\xE9rhet\u0151 d\xE1tum",minimumDate:"Az els\u0151 el\xE9rhet\u0151 d\xE1tum",next:"K\xF6vetkez\u0151",previous:"El\u0151z\u0151",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek ind\xEDt\xE1s\xE1hoz",todayDate:t=>`Ma, ${t.date}`,todayDateSelected:t=>`Ma, ${t.date} kijel\xF6lve`};var Kp={};Kp={dateRange:t=>`Da ${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell\u2019intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: ${t.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l\u2019intervallo di date",todayDate:t=>`Oggi, ${t.date}`,todayDateSelected:t=>`Oggi, ${t.date} selezionata`};var Zp={};Zp={dateRange:t=>`${t.startDate} \u304B\u3089 ${t.endDate}`,dateSelected:t=>`${t.date} \u3092\u9078\u629E`,finishRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u7D42\u4E86",maximumDate:"\u6700\u7D42\u5229\u7528\u53EF\u80FD\u65E5",minimumDate:"\u6700\u521D\u306E\u5229\u7528\u53EF\u80FD\u65E5",next:"\u6B21\u3078",previous:"\u524D\u3078",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.dateRange}`,startRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u958B\u59CB",todayDate:t=>`\u672C\u65E5\u3001${t.date}`,todayDateSelected:t=>`\u672C\u65E5\u3001${t.date} \u3092\u9078\u629E`};var qp={};qp={dateRange:t=>`${t.startDate} ~ ${t.endDate}`,dateSelected:t=>`${t.date} \uC120\uD0DD\uB428`,finishRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC644\uB8CC\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",maximumDate:"\uB9C8\uC9C0\uB9C9\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",minimumDate:"\uCC98\uC74C\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",next:"\uB2E4\uC74C",previous:"\uC774\uC804",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.dateRange}`,startRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",todayDate:t=>`\uC624\uB298, ${t.date}`,todayDateSelected:t=>`\uC624\uB298, ${t.date} \uC120\uD0DD\uB428`};var Yp={};Yp={dateRange:t=>`Nuo ${t.startDate} iki ${t.endDate}`,dateSelected:t=>`Pasirinkta ${t.date}`,finishRangeSelectionPrompt:"Spustel\u0117kite, kad baigtum\u0117te pasirinkti dat\u0173 interval\u0105",maximumDate:"Paskutin\u0117 galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: ${t.dateRange}`,startRangeSelectionPrompt:"Spustel\u0117kite, kad prad\u0117tum\u0117te pasirinkti dat\u0173 interval\u0105",todayDate:t=>`\u0160iandien, ${t.date}`,todayDateSelected:t=>`\u0160iandien, pasirinkta ${t.date}`};var Gp={};Gp={dateRange:t=>`No ${t.startDate} l\u012Bdz ${t.endDate}`,dateSelected:t=>`Atlas\u012Bts: ${t.date}`,finishRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"P\u0113d\u0113jais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"T\u0101l\u0101k",previous:"Atpaka\u013C",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: ${t.dateRange}`,startRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai s\u0101ktu datumu diapazona atlasi",todayDate:t=>`\u0160odien, ${t.date}`,todayDateSelected:t=>`Atlas\u012Bta \u0161odiena, ${t.date}`};var Jp={};Jp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xE5 fullf\xF8re valg av datoomr\xE5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xF8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.dateRange}`,startRangeSelectionPrompt:"Klikk for \xE5 starte valg av datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Qp={};Qp={dateRange:t=>`${t.startDate} tot ${t.endDate}`,dateSelected:t=>`${t.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:t=>`Vandaag, ${t.date}`,todayDateSelected:t=>`Vandaag, ${t.date} geselecteerd`};var Xp={};Xp={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`Wybrano ${t.date}`,finishRangeSelectionPrompt:"Kliknij, aby zako\u0144czy\u0107 wyb\xF3r zakresu dat",maximumDate:"Ostatnia dost\u0119pna data",minimumDate:"Pierwsza dost\u0119pna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocz\u0105\u0107 wyb\xF3r zakresu dat",todayDate:t=>`Dzisiaj, ${t.date}`,todayDateSelected:t=>`Dzisiaj wybrano ${t.date}`};var eh={};eh={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xE7\xE3o do intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xE7\xE3o do intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var th={};th={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para come\xE7ar a selecionar o intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var ah={};ah={dateRange:t=>`De la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,dateSelected:t=>`${t.date} selectat\u0103`,finishRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a finaliza selec\u0163ia razei pentru dat\u0103",maximumDate:"Ultima dat\u0103 disponibil\u0103",minimumDate:"Prima dat\u0103 disponibil\u0103",next:"Urm\u0103torul",previous:"\xCEnainte",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: ${t.dateRange}`,startRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a \xEEncepe selec\u0163ia razei pentru dat\u0103",todayDate:t=>`Ast\u0103zi, ${t.date}`,todayDateSelected:t=>`Azi, ${t.date} selectat\u0103`};var rh={};rh={dateRange:t=>`\u0421 ${t.startDate} \u043F\u043E ${t.endDate}`,dateSelected:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0432\u0430\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",next:"\u0414\u0430\u043B\u0435\u0435",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",todayDate:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, ${t.date}`,todayDateSelected:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`};var nh={};nh={dateRange:t=>`Od ${t.startDate} do ${t.endDate}`,dateSelected:t=>`Vybrat\xFD d\xE1tum ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDber rozsahu d\xE1tumov",maximumDate:"Posledn\xFD dostupn\xFD d\xE1tum",minimumDate:"Prv\xFD dostupn\xFD d\xE1tum",next:"Nasleduj\xFAce",previous:"Predch\xE1dzaj\xFAce",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm spust\xEDte v\xFDber rozsahu d\xE1tumov",todayDate:t=>`Dnes ${t.date}`,todayDateSelected:t=>`Vybrat\xFD dne\u0161n\xFD d\xE1tum ${t.date}`};var ih={};ih={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokon\u010Danje izbire datumskega obsega",maximumDate:"Zadnji razpolo\u017Eljivi datum",minimumDate:"Prvi razpolo\u017Eljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite za za\u010Detek izbire datumskega obsega",todayDate:t=>`Danes, ${t.date}`,todayDateSelected:t=>`Danes, ${t.date} izbrano`};var lh={};lh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite opseg izabranih datuma",maximumDate:"Zadnji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Slede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani period: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete opseg izabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, izabran ${t.date}`};var oh={};oh={dateRange:t=>`${t.startDate} till ${t.endDate}`,dateSelected:t=>`${t.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xF6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xE4ngliga datum",minimumDate:"F\xF6rsta tillg\xE4ngliga datum",next:"N\xE4sta",previous:"F\xF6reg\xE5ende",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.dateRange}`,startRangeSelectionPrompt:"Klicka f\xF6r att v\xE4lja datumintervall",todayDate:t=>`Idag, ${t.date}`,todayDateSelected:t=>`Idag, ${t.date} har valts`};var sh={};sh={dateRange:t=>`${t.startDate} - ${t.endDate}`,dateSelected:t=>`${t.date} se\xE7ildi`,finishRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini tamamlamak i\xE7in t\u0131klay\u0131n",maximumDate:"Son m\xFCsait tarih",minimumDate:"\u0130lk m\xFCsait tarih",next:"Sonraki",previous:"\xD6nceki",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.dateRange}`,startRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini ba\u015Flatmak i\xE7in t\u0131klay\u0131n",todayDate:t=>`Bug\xFCn, ${t.date}`,todayDateSelected:t=>`Bug\xFCn, ${t.date} se\xE7ildi`};var dh={};dh={dateRange:t=>`${t.startDate} \u2014 ${t.endDate}`,dateSelected:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",maximumDate:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0448\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",previous:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",todayDate:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, ${t.date}`,todayDateSelected:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, \u0432\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`};var uh={};uh={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9009\u62E9 ${t.date}`,finishRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5B8C\u6210\u9009\u62E9\u65E5\u671F\u8303\u56F4",maximumDate:"\u6700\u540E\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9875",previous:"\u4E0A\u4E00\u9875",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5F00\u59CB\u9009\u62E9\u65E5\u671F\u8303\u56F4",todayDate:t=>`\u4ECA\u5929\uFF0C\u5373 ${t.date}`,todayDateSelected:t=>`\u5DF2\u9009\u62E9\u4ECA\u5929\uFF0C\u5373 ${t.date}`};var ch={};ch={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9078\u53D6 ${t.date}`,finishRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u5B8C\u6210\u9078\u53D6\u65E5\u671F\u7BC4\u570D",maximumDate:"\u6700\u5F8C\u4E00\u500B\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u500B\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9801",previous:"\u4E0A\u4E00\u9801",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u958B\u59CB\u9078\u53D6\u65E5\u671F\u7BC4\u570D",todayDate:t=>`\u4ECA\u5929\uFF0C${t.date}`,todayDateSelected:t=>`\u5DF2\u9078\u53D6\u4ECA\u5929\uFF0C${t.date}`};var pn={};pn={"ar-AE":Ap,"bg-BG":Ip,"cs-CZ":Pp,"da-DK":Mp,"de-DE":Fp,"el-GR":Vp,"en-US":zp,"es-ES":Op,"et-EE":$p,"fi-FI":Lp,"fr-FR":Bp,"he-IL":Hp,"hr-HR":Wp,"hu-HU":Up,"it-IT":Kp,"ja-JP":Zp,"ko-KR":qp,"lt-LT":Yp,"lv-LV":Gp,"nb-NO":Jp,"nl-NL":Qp,"pl-PL":Xp,"pt-BR":eh,"pt-PT":th,"ro-RO":ah,"ru-RU":rh,"sk-SK":nh,"sl-SI":ih,"sr-SP":lh,"sv-SE":oh,"tr-TR":sh,"uk-UA":dh,"zh-CN":uh,"zh-TW":ch};function mh(t){return t&&t.__esModule?t.default:t}var Xo=new WeakMap;function hn(t){return(t==null?void 0:t.calendar.identifier)==="gregory"&&t.era==="BC"?"short":void 0}function Hw(t){let e=Wa(mh(pn),"@react-aria/calendar"),a,r;"highlightedRange"in t?{start:a,end:r}=t.highlightedRange||{}:a=r=t.value??void 0;let n=ra({weekday:"long",month:"long",year:"numeric",day:"numeric",era:hn(a)||hn(r),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return(0,x.useMemo)(()=>{if(!i&&a&&r)if(Ke(a,r)){let l=n.format(a.toDate(t.timeZone));return e.format("selectedDateDescription",{date:l})}else{let l=ts(n,e,a,r,t.timeZone);return e.format("selectedRangeDescription",{dateRange:l})}return""},[a,r,i,t.timeZone,e,n])}function es(t,e,a,r){let n=Wa(mh(pn),"@react-aria/calendar"),i=hn(t)||hn(e),l=ra({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a}),o=ra({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a});return(0,x.useMemo)(()=>{if(Ke(t,Ga(t))){let d=t,u=e;if(t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),e.calendar.getFormattableMonth&&(u=e.calendar.getFormattableMonth(e)),Ke(e,gi(t)))return l.format(d.toDate(a));if(Ke(e,gi(e)))return r?ts(l,n,d,u,a):l.formatRange(d.toDate(a),u.toDate(a))}return r?ts(o,n,t,e,a):o.formatRange(t.toDate(a),e.toDate(a))},[t,e,l,o,n,a,r])}function ts(t,e,a,r,n){let i=t.formatRangeToParts(a.toDate(n),r.toDate(n)),l=-1;for(let u=0;u<i.length;u++){let c=i[u];if(c.source==="shared"&&c.type==="literal")l=u;else if(c.source==="endRange")break}let o="",d="";for(let u=0;u<i.length;u++)u<l?o+=i[u].value:u>l&&(d+=i[u].value);return e.format("dateRange",{startDate:o,endDate:d})}function Ww(t){return t&&t.__esModule?t.default:t}function ph(t,e){let a=Wa(Ww(pn),"@react-aria/calendar"),r=ot(t),n=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!1),i=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!0);Rv(()=>{e.isFocused||bv(i)},[i]);let l=Hw(e);Rv(()=>{l&&bv(l,"polite",4e3)},[l]);let o=Mv([!!t.errorMessage,t.isInvalid,t.validationState]);Xo.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[d,u]=(0,x.useState)(!1),c=t.isDisabled||e.isNextVisibleRangeInvalid();c&&d&&(u(!1),e.setFocused(!0));let[p,m]=(0,x.useState)(!1),h=t.isDisabled||e.isPreviousVisibleRangeInvalid();return h&&p&&(m(!1),e.setFocused(!0)),{calendarProps:Xe(r,Yl({id:t.id,"aria-label":[t["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":t["aria-labelledby"]}),{role:"application","aria-details":t["aria-details"]||void 0,"aria-describedby":t["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>e.focusNextPage(),"aria-label":a.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>e.focusPreviousPage(),"aria-label":a.format("previous"),isDisabled:h,onFocusChange:m},errorMessageProps:{id:o},title:n}}function Uw(t,e){return ph(t,e)}function Kw(t,e,a){let r=ph(t,e),n=(0,x.useRef)(!1),i=(0,x.useRef)(typeof window<"u"?window:null);return Kr(i,"pointerdown",l=>{n.current=l.width===0&&l.height===0}),Kr(i,"pointerup",l=>{if(n.current){n.current=!1;return}if(e.setDragging(!1),!e.anchorDate)return;let o=l.target;a.current&&a.current.contains(document.activeElement)&&(!a.current.contains(o)||!o.closest('button, [role="button"]'))&&e.selectFocusedDate()}),r.calendarProps.onBlur=l=>{a.current&&(!l.relatedTarget||!a.current.contains(l.relatedTarget))&&e.anchorDate&&e.selectFocusedDate()},Kr(a,"touchmove",l=>{e.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function Zw(t,e){let{startDate:a=e.visibleRange.start,endDate:r=e.visibleRange.end,firstDayOfWeek:n}=t,{direction:i}=qe(),l=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),e.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),e.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),e.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),e.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusNextDay():e.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusPreviousDay():e.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),e.focusNextRow();break;case"Escape":"setAnchorDate"in e&&(f.preventDefault(),e.setAnchorDate(null));break}},o=es(a,r,e.timeZone,!0),{ariaLabel:d,ariaLabelledBy:u}=Xo.get(e),c=Yl({"aria-label":[d,o].filter(Boolean).join(", "),"aria-labelledby":u}),p=ra({weekday:t.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:m}=qe(),h=(0,x.useMemo)(()=>{let f=on(hi(e.timeZone),m,n);return[...Array(7).keys()].map(v=>{let b=f.add({days:v}).toDate(e.timeZone);return p.format(b)})},[m,e.timeZone,p,n]),g=Bb(a,m,n);return{gridProps:Xe(c,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:l,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:g}}function qw(t){return t&&t.__esModule?t.default:t}function Yw(t,e,a){let{date:r,isDisabled:n}=t,{errorMessageId:i,selectedDateDescription:l}=Xo.get(e),o=Wa(qw(pn),"@react-aria/calendar"),d=ra({weekday:"long",day:"numeric",month:"long",year:"numeric",era:hn(r),timeZone:e.timeZone}),u=e.isSelected(r),c=e.isCellFocused(r)&&!t.isOutsideMonth;n||(n=e.isCellDisabled(r));let p=e.isCellUnavailable(r),m=!n&&!p,h=e.isValueInvalid&&!!("highlightedRange"in e?!e.anchorDate&&e.highlightedRange&&r.compare(e.highlightedRange.start)>=0&&r.compare(e.highlightedRange.end)<=0:e.value&&Ke(e.value,r));h&&(u=!0),r=mA(r,To);let g=(0,x.useMemo)(()=>r.toDate(e.timeZone),[r,e.timeZone]),f=Jc(r,e.timeZone),v=(0,x.useMemo)(()=>{let E="";return"highlightedRange"in e&&e.value&&!e.anchorDate&&(Ke(r,e.value.start)||Ke(r,e.value.end))&&(E=l+", "),E+=d.format(g),f?E=o.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=o.format("dateSelected",{date:E})),e.minValue&&Ke(r,e.minValue)?E+=", "+o.format("minimumDate"):e.maxValue&&Ke(r,e.maxValue)&&(E+=", "+o.format("maximumDate")),E},[d,g,o,u,f,r,e,l]),b="";"anchorDate"in e&&c&&!e.isReadOnly&&m&&(b=e.anchorDate?o.format("finishRangeSelectionPrompt"):o.format("startRangeSelectionPrompt"));let w=io(b),D=(0,x.useRef)(!1),j=(0,x.useRef)(!1),k=(0,x.useRef)(void 0),{pressProps:S,isPressed:N}=Vv({shouldCancelOnPointerExit:"anchorDate"in e&&!!e.anchorDate,preventFocusOnPress:!0,isDisabled:!m||e.isReadOnly,onPressStart(E){if(e.isReadOnly){e.setFocusedDate(r);return}if("highlightedRange"in e&&!e.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(e.highlightedRange&&!h){if(Ke(r,e.highlightedRange.start)){e.setAnchorDate(e.highlightedRange.end),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}else if(Ke(r,e.highlightedRange.end)){e.setAnchorDate(e.highlightedRange.start),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}}let R=()=>{e.setDragging(!0),k.current=void 0,e.selectDate(r),e.setFocusedDate(r),D.current=!0};E.pointerType==="touch"?k.current=setTimeout(R,200):R()}},onPressEnd(){j.current=!1,D.current=!1,clearTimeout(k.current),k.current=void 0},onPress(){!("anchorDate"in e)&&!e.isReadOnly&&(e.selectDate(r),e.setFocusedDate(r))},onPressUp(E){if(!e.isReadOnly&&("anchorDate"in e&&k.current&&(e.selectDate(r),e.setFocusedDate(r)),"anchorDate"in e))if(j.current)e.setAnchorDate(r);else if(e.anchorDate&&!D.current)e.selectDate(r),e.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!e.anchorDate){e.selectDate(r);let R=r.add({days:1});e.isInvalid(R)&&(R=r.subtract({days:1})),e.isInvalid(R)||e.setFocusedDate(R)}else E.pointerType==="virtual"&&(e.selectDate(r),e.setFocusedDate(r))}}),y;n||(y=Ke(r,e.focusedDate)?0:-1),(0,x.useEffect)(()=>{c&&a.current&&(oA(a.current),pR()!=="pointer"&&document.activeElement===a.current&&Av(a.current,{containingElement:no(a.current)}))},[c,a]);let C=ra({day:"numeric",timeZone:e.timeZone,calendar:r.calendar.identifier}),_=(0,x.useMemo)(()=>C.formatToParts(g).find(E=>E.type==="day").value,[C,g]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":u||void 0,"aria-invalid":h||void 0},buttonProps:Xe(S,{onFocus(){n||e.setFocusedDate(r)},tabIndex:y,role:"button","aria-disabled":!m||void 0,"aria-label":v,"aria-invalid":h||void 0,"aria-describedby":[h?i:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in e&&(E.pointerType!=="touch"||e.isDragging)&&m&&e.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:N,isFocused:c,isSelected:u,isDisabled:n,isUnavailable:p,isOutsideVisibleRange:r.compare(e.visibleRange.start)<0||r.compare(e.visibleRange.end)>0,isInvalid:h,formattedDate:_}}var hh={};hh={calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,selectedTimeDescription:t=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"};var fh={};fh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u0434\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${t.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var gh={};gh={calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.startDate} a\u017E ${t.endDate}`,selectedTimeDescription:t=>`Vybran\xFD \u010Das: ${t.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"};var xh={};xh={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tidspunkt: ${t.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"};var vh={};vh={calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.startDate} bis ${t.endDate}`,selectedTimeDescription:t=>`Ausgew\xE4hlte Zeit: ${t.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var yh={};yh={calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,selectedTimeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${t.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"};var bh={};bh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.startDate} to ${t.endDate}`,selectedTimeDescription:t=>`Selected Time: ${t.time}`};var wh={};wh={calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Rango seleccionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora seleccionada: ${t.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"};var Dh={};Dh={calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.startDate} kuni ${t.endDate}`,selectedTimeDescription:t=>`Valitud aeg: ${t.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"};var jh={};jh={calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.startDate} \u2013 ${t.endDate}`,selectedTimeDescription:t=>`Valittu aika: ${t.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"};var Ch={};Ch={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.startDate} au ${t.endDate}`,selectedTimeDescription:t=>`Heure choisie\xA0: ${t.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"};var kh={};kh={calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.startDate} \u05E2\u05D3 ${t.endDate}`,selectedTimeDescription:t=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${t.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"};var Sh={};Sh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Odabrano vrijeme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Nh={};Nh={calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.startDate}\u2013${t.endDate}`,selectedTimeDescription:t=>`Kijel\xF6lt id\u0151: ${t.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"};var Eh={};Eh={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: da ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Ora selezionata: ${t.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var _h={};_h={calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.startDate} \u304B\u3089 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${t.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"};var Th={};Th={calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.startDate} ~ ${t.endDate}`,selectedTimeDescription:t=>`\uC120\uD0DD \uC2DC\uAC04: ${t.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"};var Rh={};Rh={calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: nuo ${t.startDate} iki ${t.endDate}`,selectedTimeDescription:t=>`Pasirinktas laikas: ${t.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"};var Ah={};Ah={calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: no ${t.startDate} l\u012Bdz ${t.endDate}`,selectedTimeDescription:t=>`Atlas\u012Btais laiks: ${t.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"};var Ih={};Ih={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tid: ${t.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"};var Ph={};Ph={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.startDate} tot ${t.endDate}`,selectedTimeDescription:t=>`Geselecteerde tijd: ${t.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Mh={};Mh={calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Wybrany czas: ${t.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"};var Fh={};Fh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var Vh={};Vh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var zh={};zh={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: de la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,selectedTimeDescription:t=>`Ora selectat\u0103: ${t.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"};var Oh={};Oh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: \u0441 ${t.startDate} \u043F\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"};var $h={};$h={calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Vybrat\xFD \u010Das: ${t.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"};var Lh={};Lh={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izbrani \u010Das: ${t.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"};var Bh={};Bh={calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani opseg: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izabrano vreme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var Hh={};Hh={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.startDate} till ${t.endDate}`,selectedTimeDescription:t=>`Vald tid: ${t.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"};var Wh={};Wh={calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.startDate} - ${t.endDate}`,selectedTimeDescription:t=>`Se\xE7ilen Zaman: ${t.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"};var Uh={};Uh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u2014 ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"};var Kh={};Kh={calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${t.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var Zh={};Zh={calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${t.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var fn={};fn={"ar-AE":hh,"bg-BG":fh,"cs-CZ":gh,"da-DK":xh,"de-DE":vh,"el-GR":yh,"en-US":bh,"es-ES":wh,"et-EE":Dh,"fi-FI":jh,"fr-FR":Ch,"he-IL":kh,"hr-HR":Sh,"hu-HU":Nh,"it-IT":Eh,"ja-JP":_h,"ko-KR":Th,"lt-LT":Rh,"lv-LV":Ah,"nb-NO":Ih,"nl-NL":Ph,"pl-PL":Mh,"pt-BR":Fh,"pt-PT":Vh,"ro-RO":zh,"ru-RU":Oh,"sk-SK":$h,"sl-SI":Lh,"sr-SP":Bh,"sv-SE":Hh,"tr-TR":Wh,"uk-UA":Uh,"zh-CN":Kh,"zh-TW":Zh};function as(t,e,a){let{direction:r}=qe(),n=(0,x.useMemo)(()=>ro(e),[e]),i=d=>{if(d.currentTarget.contains(d.target)&&(d.altKey&&(d.key==="ArrowDown"||d.key==="ArrowUp")&&"setOpen"in t&&(d.preventDefault(),d.stopPropagation(),t.setOpen(!0)),!a))switch(d.key){case"ArrowLeft":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=qh(e.current,u.getBoundingClientRect().left,-1);c&&c.focus()}}else n.focusPrevious();break;case"ArrowRight":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=qh(e.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else n.focusNext();break}},l=()=>{var c;if(!e.current)return;let d=(c=window.event)==null?void 0:c.target,u=Tv(e.current,{tabbable:!0});if(d&&(d=(u.currentNode=d,u.previousNode())),!d){let p;do p=u.lastChild(),p&&(d=p);while(p)}for(;d!=null&&d.hasAttribute("data-placeholder");){let p=u.previousNode();if(p&&p.hasAttribute("data-placeholder"))d=p;else break}d&&d.focus()},{pressProps:o}=Vv({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&l()},onPress(d){(d.pointerType==="touch"||d.pointerType==="pen")&&l()}});return Xe(o,{onKeyDown:i})}function qh(t,e,a){let r=Tv(t,{tabbable:!0}),n=r.nextNode(),i=null,l=1/0;for(;n;){let o=n.getBoundingClientRect().left-e,d=Math.abs(o);Math.sign(o)===a&&d<l&&(i=n,l=d),n=r.nextNode()}return i}function Gw(t){return t&&t.__esModule?t.default:t}var Yh=new WeakMap,gn="__role_"+Date.now(),Gh="__focusManager_"+Date.now();function Jw(t,e,a){var y;let{isInvalid:r,validationErrors:n,validationDetails:i}=e.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:d,errorMessageProps:u}=Ru({...t,labelElementType:"span",isInvalid:r,errorMessage:t.errorMessage||n}),c=(0,x.useRef)(null),{focusWithinProps:p}=Ul({...t,onFocusWithin(C){var _;c.current=e.value,(_=t.onFocus)==null||_.call(t,C)},onBlurWithin:C=>{var _;e.confirmPlaceholder(),e.value!==c.current&&e.commitValidation(),(_=t.onBlur)==null||_.call(t,C)},onFocusWithinChange:t.onFocusChange}),m=Wa(Gw(fn),"@react-aria/datepicker"),h=e.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=e.maxGranularity==="hour"?"time":"date",f=io(e.value?m.format(h,{[g]:e.formatValue({month:"long"})}):""),v=t[gn]==="presentation"?o["aria-describedby"]:[f["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=t[Gh],w=(0,x.useMemo)(()=>b||ro(a),[b,a]),D=as(e,a,t[gn]==="presentation");Yh.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:[l.id,t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:w});let j=(0,x.useRef)(t.autoFocus),k;k=t[gn]==="presentation"?{role:"presentation"}:Xe(o,{role:"group","aria-disabled":t.isDisabled||void 0,"aria-describedby":v}),(0,x.useEffect)(()=>{j.current&&w.focusFirst(),j.current=!1},[w]),vR(t.inputRef,e.defaultValue,e.setValue),CR({...t,focus(){w.focusFirst()}},e,t.inputRef);let S={type:"hidden",name:t.name,form:t.form,value:((y=e.value)==null?void 0:y.toString())||"",disabled:t.isDisabled};t.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=t.isRequired,S.onChange=()=>{});let N=ot(t);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:Xe(N,k,D,p,{onKeyDown(C){t.onKeyDown&&t.onKeyDown(C)},onKeyUp(C){t.onKeyUp&&t.onKeyUp(C)},style:{unicodeBidi:"isolate"}}),inputProps:S,descriptionProps:d,errorMessageProps:u,isInvalid:r,validationErrors:n,validationDetails:i}}function Qw(t){return t&&t.__esModule?t.default:t}function Xw(t,e,a){let r=Yr(),n=Yr(),i=Yr(),l=Wa(Qw(fn),"@react-aria/datepicker"),{isInvalid:o,validationErrors:d,validationDetails:u}=e.displayValidation,{labelProps:c,fieldProps:p,descriptionProps:m,errorMessageProps:h}=Ru({...t,labelElementType:"span",isInvalid:o,errorMessage:t.errorMessage||d}),g=as(e,a),f=p["aria-labelledby"]||p.id,{locale:v}=qe(),b=e.formatValue(v,{month:"long"}),w=io(b?l.format("selectedDateDescription",{date:b}):""),D=[w["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=ot(t),k=(0,x.useMemo)(()=>ro(a),[a]),S=(0,x.useRef)(!1),{focusWithinProps:N}=Ul({...t,isDisabled:e.isOpen,onBlurWithin:y=>{var E;if(!((E=document.getElementById(n))!=null&&E.contains(y.relatedTarget))){var C,_;S.current=!1,(C=t.onBlur)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!1)}},onFocusWithin:y=>{if(!S.current){var C,_;S.current=!0,(C=t.onFocus)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!0)}}});return{groupProps:Xe(j,g,p,w,N,{role:"group","aria-disabled":t.isDisabled||null,"aria-labelledby":f,"aria-describedby":D,onKeyDown(y){e.isOpen||t.onKeyDown&&t.onKeyDown(y)},onKeyUp(y){e.isOpen||t.onKeyUp&&t.onKeyUp(y)}}),labelProps:{...c,onClick:()=>{k.focusFirst()}},fieldProps:{...p,id:i,[gn]:"presentation","aria-describedby":D,value:e.value,defaultValue:e.defaultValue,onChange:e.setValue,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,granularity:t.granularity,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior,[Au]:e,autoFocus:t.autoFocus,name:t.name,form:t.form},descriptionProps:m,errorMessageProps:h,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${r} ${f}`,"aria-describedby":D,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:n,"aria-labelledby":`${r} ${f}`},calendarProps:{autoFocus:!0,value:e.dateValue,onChange:e.setDateValue,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,defaultFocusedValue:e.dateValue?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:o,validationErrors:d,validationDetails:u}}function e2(t){return t&&t.__esModule?t.default:t}function t2(){let{locale:t}=qe(),e=hR(e2(fn),"@react-aria/datepicker");return(0,x.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new a2(t,e)}},[t,e])}var a2=class{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,e){this.locale=t,this.dictionary=e}};function r2(t,e,a){let r=(0,x.useRef)(""),{locale:n,direction:i}=qe(),l=t2(),{ariaLabel:o,ariaLabelledBy:d,ariaDescribedBy:u,focusManager:c}=Yh.get(e),p=t.isPlaceholder?"":t.text,m=(0,x.useMemo)(()=>e.dateFormatter.resolvedOptions(),[e.dateFormatter]),h=ra({month:"long",timeZone:m.timeZone}),g=ra({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(t.type==="month"&&!t.isPlaceholder){let M=h.format(e.dateValue);p=M===p?M:`${p} \u2013 ${M}`}else t.type==="hour"&&!t.isPlaceholder&&(p=g.format(e.dateValue));let{spinButtonProps:f}=fR({value:t.value,textValue:p,minValue:t.minValue,maxValue:t.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly||!t.isEditable,isRequired:e.isRequired,onIncrement:()=>{r.current="",e.increment(t.type)},onDecrement:()=>{r.current="",e.decrement(t.type)},onIncrementPage:()=>{r.current="",e.incrementPage(t.type)},onDecrementPage:()=>{r.current="",e.decrementPage(t.type)},onIncrementToMax:()=>{r.current="",t.maxValue!==void 0&&e.setSegment(t.type,t.maxValue)},onDecrementToMin:()=>{r.current="",t.minValue!==void 0&&e.setSegment(t.type,t.minValue)}}),v=(0,x.useMemo)(()=>new mR(n,{maximumFractionDigits:0}),[n]),b=()=>{if(t.text===t.placeholder&&c.focusPrevious(),v.isValidPartialNumber(t.text)&&!e.isReadOnly&&!t.isPlaceholder){let M=t.text.slice(0,-1),O=v.parse(M);M=O===0?"":M,M.length===0||O===0?e.clearSegment(t.type):e.setSegment(t.type,O),r.current=M}else t.type==="dayPeriod"&&e.clearSegment(t.type)},w=M=>{if(M.key==="a"&&(lA()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),b();break}},{startsWith:D}=Nw({sensitivity:"base"}),j=ra({hour:"numeric",hour12:!0}),k=(0,x.useMemo)(()=>{let M=new Date;return M.setHours(0),j.formatToParts(M).find(O=>O.type==="dayPeriod").value},[j]),S=(0,x.useMemo)(()=>{let M=new Date;return M.setHours(12),j.formatToParts(M).find(O=>O.type==="dayPeriod").value},[j]),N=ra({year:"numeric",era:"narrow",timeZone:"UTC"}),y=(0,x.useMemo)(()=>{if(t.type!=="era")return[];let M=Fe(new nt(1,1,1),e.calendar),O=e.calendar.getEras().map($=>{let Y=M.set({year:1,month:1,day:1,era:$}).toDate("UTC");return{era:$,formatted:N.formatToParts(Y).find(X=>X.type==="era").value}}),z=n2(O.map($=>$.formatted));if(z)for(let $ of O)$.formatted=$.formatted.slice(z);return O},[N,e.calendar,t.type]),C=M=>{if(e.isDisabled||e.isReadOnly)return;let O=r.current+M;switch(t.type){case"dayPeriod":if(D(k,M))e.setSegment("dayPeriod",0);else if(D(S,M))e.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let z=y.find($=>D($.formatted,M));z&&(e.setSegment("era",z.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!v.isValidPartialNumber(O))return;let z=v.parse(O),$=z,Y=t.minValue===0;if(t.type==="hour"&&e.dateFormatter.resolvedOptions().hour12){switch(e.dateFormatter.resolvedOptions().hourCycle){case"h11":z>11&&($=v.parse(M));break;case"h12":Y=!1,z>12&&($=v.parse(M));break}t.value!==void 0&&t.value>=12&&z>1&&(z+=12)}else t.maxValue!==void 0&&z>t.maxValue&&($=v.parse(M));if(isNaN(z))return;let X=$!==0||Y;X&&e.setSegment(t.type,$),t.maxValue!==void 0&&(+(z+"0")>t.maxValue||O.length>=String(t.maxValue).length)?(r.current="",X&&c.focusNext()):r.current=O;break}}},_=()=>{var M;r.current="",a.current&&Av(a.current,{containingElement:no(a.current)}),(M=window.getSelection())==null||M.collapse(a.current)};Kr((0,x.useRef)(typeof document<"u"?document:null),"selectionchange",()=>{var O;let M=window.getSelection();M!=null&&M.anchorNode&&((O=a.current)!=null&&O.contains(M==null?void 0:M.anchorNode))&&M.collapse(a.current)});let E=(0,x.useRef)("");Kr(a,"beforeinput",M=>{if(a.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":v.isValidPartialNumber(t.text)&&!e.isReadOnly&&b();break;case"insertCompositionText":E.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:M.data!=null&&C(M.data);break}}),Kr(a,"input",M=>{let{inputType:O,data:z}=M;O==="insertCompositionText"&&(a.current&&(a.current.textContent=E.current),z!=null&&(D(k,z)||D(S,z))&&C(z))}),ba(()=>{let M=a.current;return()=>{document.activeElement===M&&(c.focusPrevious()||c.focusNext())}},[a,c]);let R=Iv()||t.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};t!==(0,x.useMemo)(()=>e.segments.find(M=>M.isEditable),[e.segments])&&!e.isInvalid&&(u=void 0);let P=Yr(),A=!e.isDisabled&&!e.isReadOnly&&t.isEditable,V=t.type==="literal"?"":l.of(t.type),T=Yl({"aria-label":`${V}${o?`, ${o}`:""}${d?", ":""}`,"aria-labelledby":d});if(t.type==="literal")return{segmentProps:{"aria-hidden":!0}};let I={caretColor:"transparent"};if(i==="rtl"){I.unicodeBidi="embed";let M=m[t.type];(M==="numeric"||M==="2-digit")&&(I.direction="ltr")}return{segmentProps:Xe(f,T,{id:P,...R,"aria-invalid":e.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":e.isReadOnly||!t.isEditable?"true":void 0,"data-placeholder":t.isPlaceholder||void 0,contentEditable:A,suppressContentEditableWarning:A,spellCheck:A?"false":void 0,autoCorrect:A?"off":void 0,enterKeyHint:A?"next":void 0,inputMode:e.isDisabled||t.type==="dayPeriod"||t.type==="era"||!A?void 0:"numeric",tabIndex:e.isDisabled?void 0:0,onKeyDown:w,onFocus:_,style:I,onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function n2(t){t.sort();let e=t[0],a=t[t.length-1];for(let r=0;r<e.length;r++)if(e[r]!==a[r])return r;return 0}function i2(t){return t&&t.__esModule?t.default:t}function l2(t,e,a){var R,P,A,V,T;let r=Wa(i2(fn),"@react-aria/datepicker"),{isInvalid:n,validationErrors:i,validationDetails:l}=e.displayValidation,{labelProps:o,fieldProps:d,descriptionProps:u,errorMessageProps:c}=Ru({...t,labelElementType:"span",isInvalid:n,errorMessage:t.errorMessage||i}),p=d["aria-labelledby"]||d.id,{locale:m}=qe(),h=e.formatValue(m,{month:"long"}),g=io(h?r.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),f={"aria-label":r.format("startDate"),"aria-labelledby":p},v={"aria-label":r.format("endDate"),"aria-labelledby":p},b=Yr(),w=Yr(),D=as(e,a),j=[g["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=(0,x.useMemo)(()=>ro(a,{accept:I=>I.id!==b}),[a,b]),S={[Gh]:k,[gn]:"presentation","aria-describedby":j,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,granularity:t.granularity,shouldForceLeadingZeros:t.shouldForceLeadingZeros,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior},N=ot(t),y=(0,x.useRef)(!1),{focusWithinProps:C}=Ul({...t,isDisabled:e.isOpen,onBlurWithin:I=>{var z;if(!((z=document.getElementById(w))!=null&&z.contains(I.relatedTarget))){var M,O;y.current=!1,(M=t.onBlur)==null||M.call(t,I),(O=t.onFocusChange)==null||O.call(t,!1)}},onFocusWithin:I=>{if(!y.current){var M,O;y.current=!0,(M=t.onFocus)==null||M.call(t,I),(O=t.onFocusChange)==null||O.call(t,!0)}}}),_=(0,x.useRef)(fv),E=(0,x.useRef)(fv);return{groupProps:Xe(N,D,d,g,C,{role:"group","aria-disabled":t.isDisabled||null,"aria-describedby":j,onKeyDown(I){e.isOpen||t.onKeyDown&&t.onKeyDown(I)},onKeyUp(I){e.isOpen||t.onKeyUp&&t.onKeyUp(I)}}),labelProps:{...o,onClick:()=>{k.focusFirst()}},buttonProps:{...g,id:b,"aria-haspopup":"dialog","aria-label":r.format("calendar"),"aria-labelledby":`${b} ${p}`,"aria-describedby":j,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${p}`},startFieldProps:{...f,...S,value:((R=e.value)==null?void 0:R.start)??null,defaultValue:(P=e.defaultValue)==null?void 0:P.start,onChange:I=>e.setDateTime("start",I),autoFocus:t.autoFocus,name:t.startName,form:t.form,[Au]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(I){_.current=I,e.updateValidation(Kl(I,E.current))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},endFieldProps:{...v,...S,value:((A=e.value)==null?void 0:A.end)??null,defaultValue:(V=e.defaultValue)==null?void 0:V.end,onChange:I=>e.setDateTime("end",I),name:t.endName,form:t.form,[Au]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(I){E.current=I,e.updateValidation(Kl(_.current,I))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},descriptionProps:u,errorMessageProps:c,calendarProps:{autoFocus:!0,value:(T=e.dateRange)!=null&&T.start&&e.dateRange.end?e.dateRange:null,onChange:e.setDateRange,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,allowsNonContiguousRanges:t.allowsNonContiguousRanges,defaultFocusedValue:e.dateRange?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:n,validationErrors:i,validationDetails:l}}function o2(t,e){let{role:a="dialog"}=t,r=Mv();r=t["aria-label"]?void 0:r;let n=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{if(e.current&&!e.current.contains(document.activeElement)){Iu(e.current);let i=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(n.current=!0,e.current&&(e.current.blur(),Iu(e.current)),n.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),Bw(),{dialogProps:{...ot(t,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:i=>{n.current&&i.stopPropagation()}},titleProps:{id:r}}}function wr(t,e,a){return e!=null&&t.compare(e)<0||a!=null&&t.compare(a)>0}function rs(t,e,a,r,n){let i={};for(let l in e)i[l]=Math.floor(e[l]/2),i[l]>0&&e[l]%2==0&&i[l]--;return xn(t,Xa(t,e,a).subtract(i),e,a,r,n)}function Xa(t,e,a,r,n){let i=t;return e.years?i=Fb(t):e.months?i=Ga(t):e.weeks&&(i=on(t,a)),xn(t,i,e,a,r,n)}function ns(t,e,a,r,n){let i={...e};return i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--,xn(t,Xa(t,e,a).subtract(i),e,a,r,n)}function xn(t,e,a,r,n,i){if(n&&t.compare(n)>=0){let l=Po(e,Xa(ct(n),a,r));l&&(e=l)}if(i&&t.compare(i)<=0){let l=Io(e,ns(ct(i),a,r));l&&(e=l)}return e}function Sa(t,e,a){if(e){let r=Po(t,ct(e));r&&(t=r)}if(a){let r=Io(t,ct(a));r&&(t=r)}return t}function Jh(t,e,a){if(!a)return t;for(;t.compare(e)>=0&&a(t);)t=t.subtract({days:1});return t.compare(e)>=0?t:null}function Qh(t){let e=(0,x.useMemo)(()=>new Wt(t.locale),[t.locale]),a=(0,x.useMemo)(()=>e.resolvedOptions(),[e]),{locale:r,createCalendar:n,visibleDuration:i={months:1},minValue:l,maxValue:o,selectionAlignment:d,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:p}=t,m=(0,x.useMemo)(()=>n(a.calendar),[n,a.calendar]),[h,g]=ur(t.value,t.defaultValue??null,t.onChange),f=(0,x.useMemo)(()=>h?Fe(ct(h),m):null,[h,m]),v=(0,x.useMemo)(()=>h&&"timeZone"in h?h.timeZone:a.timeZone,[h,a.timeZone]),[b,w]=ur((0,x.useMemo)(()=>t.focusedValue?Sa(Fe(ct(t.focusedValue),m),l,o):void 0,[t.focusedValue,m,l,o]),(0,x.useMemo)(()=>Sa(t.defaultFocusedValue?Fe(ct(t.defaultFocusedValue),m):f||Fe(hi(v),m),l,o),[t.defaultFocusedValue,f,v,m,l,o]),t.onFocusChange),[D,j]=(0,x.useState)(()=>{switch(d){case"start":return Xa(b,i,r,l,o);case"end":return ns(b,i,r,l,o);default:return rs(b,i,r,l,o)}}),[k,S]=(0,x.useState)(t.autoFocus||!1),N=(0,x.useMemo)(()=>{let T={...i};return T.days?T.days--:T.days=-1,D.add(T)},[D,i]),[y,C]=(0,x.useState)(m);if(!pi(m,y)){let T=Fe(b,m);j(rs(T,i,r,l,o)),w(T),C(m)}wr(b,l,o)?w(Sa(b,l,o)):b.compare(D)<0?j(ns(b,i,r,l,o)):b.compare(N)>0&&j(Xa(b,i,r,l,o));function _(T){T=Sa(T,l,o),w(T)}function E(T){if(!t.isDisabled&&!t.isReadOnly){let I=T;if(I===null){g(null);return}if(I=Sa(I,l,o),I=Jh(I,D,u),!I)return;I=Fe(I,(h==null?void 0:h.calendar)||new gt),h&&"hour"in h?g(h.set(I)):g(I)}}let R=(0,x.useMemo)(()=>f?u&&u(f)?!0:wr(f,l,o):!1,[f,u,l,o]),P=t.isInvalid||t.validationState==="invalid"||R,A=P?"invalid":null,V=(0,x.useMemo)(()=>c==="visible"?i:is(i),[c,i]);return{isDisabled:t.isDisabled??!1,isReadOnly:t.isReadOnly??!1,value:f,setValue:E,visibleRange:{start:D,end:N},minValue:l,maxValue:o,focusedDate:b,timeZone:v,validationState:A,isValueInvalid:P,setFocusedDate(T){_(T),S(!0)},focusNextDay(){_(b.add({days:1}))},focusPreviousDay(){_(b.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&_(b.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&_(b.subtract({weeks:1}))},focusNextPage(){let T=D.add(V);w(Sa(b.add(V),l,o)),j(Xa(xn(b,T,V,r,l,o),V,r))},focusPreviousPage(){let T=D.subtract(V);w(Sa(b.subtract(V),l,o)),j(Xa(xn(b,T,V,r,l,o),V,r))},focusSectionStart(){i.days?_(D):i.weeks?_(on(b,r)):(i.months||i.years)&&_(Ga(b))},focusSectionEnd(){i.days?_(N):i.weeks?_(Ob(b,r)):(i.months||i.years)&&_(gi(b))},focusNextSection(T){if(!T&&!i.days){_(b.add(is(i)));return}i.days?this.focusNextPage():i.weeks?_(b.add({months:1})):(i.months||i.years)&&_(b.add({years:1}))},focusPreviousSection(T){if(!T&&!i.days){_(b.subtract(is(i)));return}i.days?this.focusPreviousPage():i.weeks?_(b.subtract({months:1})):(i.months||i.years)&&_(b.subtract({years:1}))},selectFocusedDate(){u&&u(b)||E(b)},selectDate(T){E(T)},isFocused:k,setFocused:S,isInvalid(T){return wr(T,l,o)},isSelected(T){return f!=null&&Ke(T,f)&&!this.isCellDisabled(T)&&!this.isCellUnavailable(T)},isCellFocused(T){return k&&b&&Ke(T,b)},isCellDisabled(T){return t.isDisabled||T.compare(D)<0||T.compare(N)>0||this.isInvalid(T)},isCellUnavailable(T){return t.isDateUnavailable?t.isDateUnavailable(T):!1},isPreviousVisibleRangeInvalid(){let T=D.subtract({days:1});return Ke(T,D)||this.isInvalid(T)},isNextVisibleRangeInvalid(){let T=N.add({days:1});return Ke(T,N)||this.isInvalid(T)},getDatesInWeek(T,I=D){let M=I.add({weeks:T}),O=[];M=on(M,r,p);let z=Ro(M,r,p);for(let $=0;$<z;$++)O.push(null);for(;O.length<7;){O.push(M);let $=M.add({days:1});if(Ke(M,$))break;M=$}for(;O.length<7;)O.push(null);return O}}}function is(t){let e={...t};for(let a in t)e[a]=1;return e}function s2(t){let{value:e,defaultValue:a,onChange:r,createCalendar:n,locale:i,visibleDuration:l={months:1},minValue:o,maxValue:d,...u}=t,[c,p]=ur(e,a||null,r),[m,h]=(0,x.useState)(null),g="center";if(c&&c.start&&c.end){let I=rs(ct(c.start),l,i,o,d).add(l).subtract({days:1});c.end.compare(I)>0&&(g="start")}let f=(0,x.useRef)(null),[v,b]=(0,x.useState)(null),w=(0,x.useMemo)(()=>Po(o,v==null?void 0:v.start),[o,v]),D=(0,x.useMemo)(()=>Io(d,v==null?void 0:v.end),[d,v]),j=Qh({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:l,minValue:w,maxValue:D,selectionAlignment:t.selectionAlignment||g}),k=I=>{I&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(f.current={start:ef(I,j,-1),end:ef(I,j,1)},b(f.current)):(f.current=null,b(null))},[S,N]=(0,x.useState)(j.visibleRange);(!To(j.visibleRange.start,S.start)||!To(j.visibleRange.end,S.end))&&(k(m),N(j.visibleRange));let y=I=>{I?(h(I),k(I)):(h(null),k(null))},C=m?ls(m,j.focusedDate):c&&ls(c.start,c.end),_=I=>{if(t.isReadOnly)return;let M=Jh(Sa(I,w,D),j.visibleRange.start,t.isDateUnavailable);if(M)if(!m)y(M);else{let O=ls(m,M);O&&p({start:Xh(O.start,c==null?void 0:c.start),end:Xh(O.end,c==null?void 0:c.end)}),y(null)}},[E,R]=(0,x.useState)(!1),{isDateUnavailable:P}=t,A=(0,x.useMemo)(()=>!c||m?!1:P&&(P(c.start)||P(c.end))?!0:wr(c.start,o,d)||wr(c.end,o,d),[P,c,m,o,d]),V=t.isInvalid||t.validationState==="invalid"||A;return{...j,value:c,setValue:p,anchorDate:m,setAnchorDate:y,highlightedRange:C,validationState:V?"invalid":null,isValueInvalid:V,selectFocusedDate(){_(j.focusedDate)},selectDate:_,highlightDate(I){m&&j.setFocusedDate(I)},isSelected(I){return!!(C&&I.compare(C.start)>=0&&I.compare(C.end)<=0&&!j.isCellDisabled(I)&&!j.isCellUnavailable(I))},isInvalid(I){var M,O;return j.isInvalid(I)||wr(I,(M=f.current)==null?void 0:M.start,(O=f.current)==null?void 0:O.end)},isDragging:E,setDragging:R}}function ls(t,e){return!t||!e?null:(e.compare(t)<0&&([t,e]=[e,t]),{start:ct(t),end:ct(e)})}function Xh(t,e){return t=Fe(t,(e==null?void 0:e.calendar)||new gt),e&&"hour"in e?e.set(t):t}function ef(t,e,a){let r=t.add({days:a});for(;(a<0?r.compare(e.visibleRange.start)>=0:r.compare(e.visibleRange.end)<=0)&&!e.isCellUnavailable(r);)r=r.add({days:a});if(e.isCellUnavailable(r))return r.add({days:-a})}function os(t){let[e,a]=ur(t.isOpen,t.defaultOpen||!1,t.onOpenChange);return{isOpen:e,setOpen:a,open:(0,x.useCallback)(()=>{a(!0)},[a]),close:(0,x.useCallback)(()=>{a(!1)},[a]),toggle:(0,x.useCallback)(()=>{a(!e)},[a,e])}}var tf={};tf={rangeOverflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."};var af={};af={rangeOverflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."};var rf={};rf={rangeOverflow:t=>`Hodnota mus\xED b\xFDt ${t.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:t=>`Hodnota mus\xED b\xFDt ${t.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."};var nf={};nf={rangeOverflow:t=>`V\xE6rdien skal v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:t=>`V\xE6rdien skal v\xE6re ${t.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."};var lf={};lf={rangeOverflow:t=>`Der Wert muss ${t.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:t=>`Der Wert muss ${t.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."};var of={};of={rangeOverflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."};var sf={};sf={rangeUnderflow:t=>`Value must be ${t.minValue} or later.`,rangeOverflow:t=>`Value must be ${t.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var df={};df={rangeOverflow:t=>`El valor debe ser ${t.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:t=>`El valor debe ser ${t.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var uf={};uf={rangeOverflow:t=>`V\xE4\xE4rtus peab olema ${t.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:t=>`V\xE4\xE4rtus peab olema ${t.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."};var cf={};cf={rangeOverflow:t=>`Arvon on oltava ${t.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:t=>`Arvon on oltava ${t.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."};var mf={};mf={rangeOverflow:t=>`La valeur doit \xEAtre ${t.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:t=>`La valeur doit \xEAtre ${t.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."};var pf={};pf={rangeOverflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."};var hf={};hf={rangeOverflow:t=>`Vrijednost mora biti ${t.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrijednost mora biti ${t.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var ff={};ff={rangeOverflow:t=>`Az \xE9rt\xE9knek ${t.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:t=>`Az \xE9rt\xE9knek ${t.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."};var gf={};gf={rangeOverflow:t=>`Il valore deve essere ${t.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:t=>`Il valore deve essere ${t.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var xf={};xf={rangeOverflow:t=>`\u5024\u306F ${t.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:t=>`\u5024\u306F ${t.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"};var vf={};vf={rangeOverflow:t=>`\uAC12\uC740 ${t.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:t=>`\uAC12\uC740 ${t.minValue} \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."};var yf={};yf={rangeOverflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."};var bf={};bf={rangeOverflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."};var wf={};wf={rangeOverflow:t=>`Verdien m\xE5 v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:t=>`Verdien m\xE5 v\xE6re ${t.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Df={};Df={rangeOverflow:t=>`Waarde moet ${t.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:t=>`Waarde moet ${t.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var jf={};jf={rangeOverflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."};var Cf={};Cf={rangeOverflow:t=>`O valor deve ser ${t.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:t=>`O valor deve ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var kf={};kf={rangeOverflow:t=>`O valor tem de ser ${t.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:t=>`O valor tem de ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var Sf={};Sf={rangeOverflow:t=>`Valoarea trebuie s\u0103 fie ${t.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:t=>`Valoarea trebuie s\u0103 fie ${t.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."};var Nf={};Nf={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var Ef={};Ef={rangeOverflow:t=>`Hodnota mus\xED by\u0165 ${t.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:t=>`Hodnota mus\xED by\u0165 ${t.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."};var _f={};_f={rangeOverflow:t=>`Vrednost mora biti ${t.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:t=>`Vrednost mora biti ${t.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."};var Tf={};Tf={rangeOverflow:t=>`Vrednost mora da bude ${t.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrednost mora da bude ${t.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Rf={};Rf={rangeOverflow:t=>`V\xE4rdet m\xE5ste vara ${t.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:t=>`V\xE4rdet m\xE5ste vara ${t.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."};var Af={};Af={rangeOverflow:t=>`De\u011Fer, ${t.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:t=>`De\u011Fer, ${t.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."};var If={};If={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var Pf={};Pf={rangeOverflow:t=>`\u503C\u5FC5\u987B\u662F ${t.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u987B\u662F ${t.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"};var Mf={};Mf={rangeOverflow:t=>`\u503C\u5FC5\u9808\u662F ${t.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u9808\u662F ${t.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"};var Ff={};Ff={"ar-AE":tf,"bg-BG":af,"cs-CZ":rf,"da-DK":nf,"de-DE":lf,"el-GR":of,"en-US":sf,"es-ES":df,"et-EE":uf,"fi-FI":cf,"fr-FR":mf,"he-IL":pf,"hr-HR":hf,"hu-HU":ff,"it-IT":gf,"ja-JP":xf,"ko-KR":vf,"lt-LT":yf,"lv-LV":bf,"nb-NO":wf,"nl-NL":Df,"pl-PL":jf,"pt-BR":Cf,"pt-PT":kf,"ro-RO":Sf,"ru-RU":Nf,"sk-SK":Ef,"sl-SI":_f,"sr-SP":Tf,"sv-SE":Rf,"tr-TR":Af,"uk-UA":If,"zh-CN":Pf,"zh-TW":Mf};function d2(t){return t&&t.__esModule?t.default:t}var Vf=new Hl(d2(Ff));function zf(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return t}function _i(t,e,a,r,n){let i=t!=null&&a!=null&&t.compare(a)>0,l=t!=null&&e!=null&&t.compare(e)<0,o=t!=null&&(r==null?void 0:r(t))||!1,d=i||l||o,u=[];if(d){let c=zf(),p=new cR(c,Hl.getGlobalDictionaryForPackage("@react-stately/datepicker")||Vf),m=new Wt(c,ca({},n)),h=m.resolvedOptions().timeZone;l&&e!=null&&u.push(p.format("rangeUnderflow",{minValue:m.format(e.toDate(h))})),i&&a!=null&&u.push(p.format("rangeOverflow",{maxValue:m.format(a.toDate(h))})),o&&u.push(p.format("unavailableDate"))}return{isInvalid:d,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!d}}}function u2(t,e,a,r,n){let i=Kl(_i((t==null?void 0:t.start)??null,e,a,r,n),_i((t==null?void 0:t.end)??null,e,a,r,n));if((t==null?void 0:t.end)!=null&&t.start!=null&&t.end.compare(t.start)<0){let l=Hl.getGlobalDictionaryForPackage("@react-stately/datepicker")||Vf;i=Kl(i,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",zf())],validationDetails:{...uR,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return i}var c2={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},m2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ca(t,e){t={...e.shouldForceLeadingZeros?m2:c2,...t};let a=e.granularity||"minute",r=Object.keys(t),n=r.indexOf(e.maxGranularity??"year");n<0&&(n=0);let i=r.indexOf(a);if(i<0&&(i=2),n>i)throw Error("maxGranularity must be greater than granularity");let l=r.slice(n,i+1).reduce((o,d)=>(o[d]=t[d],o),{});return e.hourCycle!=null&&(l.hour12=e.hourCycle===12),l.timeZone=e.timeZone||"UTC",(a==="hour"||a==="minute"||a==="second")&&e.timeZone&&!e.hideTimeZone&&(l.timeZoneName="short"),e.showEra&&n===0&&(l.era="short"),l}function Dr(t){return t&&"hour"in t?t:new lw}function Of(t,e){if(t===null)return null;if(t)return Fe(t,e)}function vn(t,e,a,r){if(t)return Of(t,a);let n=Fe(Qc(r??fi()).set({hour:0,minute:0,second:0,millisecond:0}),a);return e==="year"||e==="month"||e==="day"?ct(n):r?n:Kt(n)}function ss(t,e){let a=t&&"timeZone"in t?t.timeZone:void 0,r=t&&"minute"in t?"minute":"day";if(t&&e&&!(e in t))throw Error("Invalid granularity "+e+" for value "+t.toString());let[n,i]=(0,x.useState)([r,a]);t&&(n[0]!==r||n[1]!==a)&&i([r,a]),e||(e=t?r:n[0]);let l=t?a:n[1];return[e,l]}function p2(t){let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),i=a||t.placeholderValue||null,[l,o]=ss(i,t.granularity),d=a==null?null:a.toDate(o??"UTC"),u=l==="hour"||l==="minute"||l==="second",c=t.shouldCloseOnSelect??!0,[p,m]=(0,x.useState)(null),[h,g]=(0,x.useState)(null);if(a&&(p=a,"hour"in a&&(h=a)),i&&!(l in i))throw Error("Invalid granularity "+l+" for value "+i.toString());let f=(a==null?void 0:a.calendar.identifier)==="gregory"&&a.era==="BC",v=(0,x.useMemo)(()=>({granularity:l,timeZone:o,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:f}),[l,t.hourCycle,t.shouldForceLeadingZeros,o,t.hideTimeZone,f]),{minValue:b,maxValue:w,isDateUnavailable:D}=t,j=(0,x.useMemo)(()=>_i(a,b,w,D,v),[a,b,w,D,v]),k=Pu({...t,value:a,builtinValidation:j}),S=k.displayValidation.isInvalid,N=t.validationState||(S?"invalid":null),y=(E,R)=>{r("timeZone"in R?R.set(ct(E)):Kt(E,R)),m(null),g(null),k.commitValidation()},C=E=>{let R=typeof c=="function"?c():c;u?h||R?y(E,h||Dr(t.defaultValue||t.placeholderValue)):m(E):(r(E),k.commitValidation()),R&&e.setOpen(!1)},_=E=>{p&&E?y(p,E):g(E)};return{...k,value:a,defaultValue:t.defaultValue??n,setValue:r,dateValue:p,timeValue:h,setDateValue:C,setTimeValue:_,granularity:l,hasTime:u,...e,setOpen(E){!E&&!a&&p&&u&&y(p,h||Dr(t.defaultValue||t.placeholderValue)),e.setOpen(E)},validationState:N,isInvalid:S,formatValue(E,R){return d?new Wt(E,ca(R,v)).format(d):""},getDateFormatter(E,R){return new Wt(E,ca({},{...v,...R}))}}}var h2=new Hl({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function f2(t,e,a){return t==="era"||t==="dayPeriod"?e:t==="year"||t==="month"||t==="day"?h2.getStringForLocale(t,a):"\u2013\u2013"}var Ti={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},$f={year:5,month:2,day:7,hour:2,minute:15,second:15},Lf={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function g2(t){let{locale:e,createCalendar:a,hideTimeZone:r,isDisabled:n=!1,isReadOnly:i=!1,isRequired:l=!1,minValue:o,maxValue:d,isDateUnavailable:u}=t,c=t.value||t.defaultValue||t.placeholderValue||null,[p,m]=ss(c,t.granularity),h=m||"UTC";if(c&&!(p in c))throw Error("Invalid granularity "+p+" for value "+c.toString());let g=(0,x.useMemo)(()=>new Wt(e),[e]),f=(0,x.useMemo)(()=>a(g.resolvedOptions().calendar),[a,g]),[v,b]=ur(t.value,t.defaultValue??null,t.onChange),[w]=(0,x.useState)(v),D=(0,x.useMemo)(()=>Of(v,f)??null,[v,f]),[j,k]=(0,x.useState)(()=>vn(t.placeholderValue,p,f,m)),S=D||j,N=f.identifier==="gregory"&&S.era==="BC",y=(0,x.useMemo)(()=>({granularity:p,maxGranularity:t.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:t.hourCycle,showEra:N,shouldForceLeadingZeros:t.shouldForceLeadingZeros}),[t.maxGranularity,p,t.hourCycle,t.shouldForceLeadingZeros,m,r,N]),C=(0,x.useMemo)(()=>ca({},y),[y]),_=(0,x.useMemo)(()=>new Wt(e,C),[e,C]),E=(0,x.useMemo)(()=>_.resolvedOptions(),[_]),R=(0,x.useMemo)(()=>_.formatToParts(new Date).filter(W=>Ti[W.type]).reduce((W,B)=>(W[Lf[B.type]||B.type]=!0,W),{}),[_]),[P,A]=(0,x.useState)(()=>t.value||t.defaultValue?{...R}:{}),V=(0,x.useRef)(null),T=(0,x.useRef)(f);(0,x.useEffect)(()=>{pi(f,T.current)||(T.current=f,k(W=>Object.keys(P).length>0?Fe(W,f):vn(t.placeholderValue,p,f,m)))},[f,p,P,m,t.placeholderValue]),v&&Object.keys(P).length<Object.keys(R).length&&(P={...R},A(P)),v==null&&Object.keys(P).length===Object.keys(R).length&&(P={},A(P),k(vn(t.placeholderValue,p,f,m)));let I=D&&Object.keys(P).length>=Object.keys(R).length?D:j,M=W=>{if(t.isDisabled||t.isReadOnly)return;let B=Object.keys(P),re=Object.keys(R);W==null?(b(null),k(vn(t.placeholderValue,p,f,m)),A({})):B.length===0&&V.current==null||B.length>=re.length||B.length===re.length-1&&R.dayPeriod&&!P.dayPeriod&&V.current!=="dayPeriod"?(B.length===0&&(P={...R},A(P)),W=Fe(W,(c==null?void 0:c.calendar)||new gt),b(W)):k(W),V.current=null},O=(0,x.useMemo)(()=>I.toDate(h),[I,h]),z=(0,x.useMemo)(()=>x2(O,P,_,E,I,f,e,p),[O,P,_,E,I,f,e,p]);R.era&&P.year&&!P.era?(P.era=!0,A({...P})):!R.era&&P.era&&(delete P.era,A({...P}));let $=W=>{P[W]=!0,W==="year"&&R.era&&(P.era=!0),A({...P})},Y=(W,B)=>{if(P[W])M(v2(I,W,B,E));else{$(W);let re=Object.keys(P),te=Object.keys(R);(re.length>=te.length||re.length===te.length-1&&R.dayPeriod&&!P.dayPeriod)&&M(I)}},X=(0,x.useMemo)(()=>_i(v,o,d,u,y),[v,o,d,u,y]),ne=Pu({...t,value:v,builtinValidation:X}),oe=ne.displayValidation.isInvalid,ae=t.validationState||(oe?"invalid":null);return{...ne,value:D,defaultValue:t.defaultValue??w,dateValue:O,calendar:f,setValue:M,segments:z,dateFormatter:_,validationState:ae,isInvalid:oe,granularity:p,maxGranularity:t.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:l,increment(W){Y(W,1)},decrement(W){Y(W,-1)},incrementPage(W){Y(W,$f[W]||1)},decrementPage(W){Y(W,-($f[W]||1))},setSegment(W,B){$(W),M(y2(I,W,B,E))},confirmPlaceholder(){if(t.isDisabled||t.isReadOnly)return;let W=Object.keys(P),B=Object.keys(R);W.length===B.length-1&&R.dayPeriod&&!P.dayPeriod&&(P={...R},A(P),M(I.copy()))},clearSegment(W){delete P[W],V.current=W,A({...P});let B=vn(t.placeholderValue,p,f,m),re=I;if(W==="dayPeriod"&&"hour"in I&&"hour"in B){let te=I.hour>=12,le=B.hour>=12;te&&!le?re=I.set({hour:I.hour-12}):!te&&le&&(re=I.set({hour:I.hour+12}))}else W==="hour"&&"hour"in I&&I.hour>=12&&P.dayPeriod?re=I.set({hour:B.hour+12}):W in I&&(re=I.set({[W]:B[W]}));b(null),M(re)},formatValue(W){return D?new Wt(e,ca(W,y)).format(O):""},getDateFormatter(W,B){return new Wt(W,ca({},{...y,...B}))}}}function x2(t,e,a,r,n,i,l,o){let d=["hour","minute","second"],u=a.formatToParts(t),c=[];for(let p of u){let m=Lf[p.type]||p.type,h=Ti[m];m==="era"&&i.getEras().length===1&&(h=!1);let g=Ti[m]&&!e[m],f=Ti[m]?f2(m,p.value,l):null,v={type:m,text:g?f:p.value,...Ri(n,m,r),isPlaceholder:g,placeholder:f,isEditable:h};m==="hour"?(c.push({type:"literal",text:"\u2066",...Ri(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push(v),m===o&&c.push({type:"literal",text:"\u2069",...Ri(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(m)&&m===o?(c.push(v),c.push({type:"literal",text:"\u2069",...Ri(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push(v)}return c}function Ri(t,e,a){switch(e){case"era":{let r=t.calendar.getEras();return{value:r.indexOf(t.era),minValue:0,maxValue:r.length-1}}case"year":return{value:t.year,minValue:1,maxValue:t.calendar.getYearsInEra(t)};case"month":return{value:t.month,minValue:Vb(t),maxValue:t.calendar.getMonthsInYear(t)};case"day":return{value:t.day,minValue:zb(t),maxValue:t.calendar.getDaysInMonth(t)}}if("hour"in t)switch(e){case"dayPeriod":return{value:t.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(a.hour12){let r=t.hour>=12;return{value:t.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:t.hour,minValue:0,maxValue:23};case"minute":return{value:t.minute,minValue:0,maxValue:59};case"second":return{value:t.second,minValue:0,maxValue:59}}return{}}function v2(t,e,a,r){switch(e){case"era":case"year":case"month":case"day":return t.cycle(e,a,{round:e==="year"})}if("hour"in t)switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return t.set({hour:i?n-12:n+12})}case"hour":case"minute":case"second":return t.cycle(e,a,{round:e!=="hour",hourCycle:r.hour12?12:24})}throw Error("Unknown segment: "+e)}function y2(t,e,a,r){switch(e){case"day":case"month":case"year":case"era":return t.set({[e]:a})}if("hour"in t&&typeof a=="number")switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return a>=12===i?t:t.set({hour:i?n-12:n+12})}case"hour":if(r.hour12){let n=t.hour>=12;!n&&a===12&&(a=0),n&&a<12&&(a+=12)}case"minute":case"second":return t.set({[e]:a})}throw Error("Unknown segment: "+e)}function b2(t){var P,A;let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),[i,l]=(0,x.useState)(()=>a||{start:null,end:null});a==null&&i.start&&i.end&&(i={start:null,end:null},l(i));let o=a||i,d=V=>{o=V||{start:null,end:null},l(o),er(o)?r(o):r(null)},[u,c]=ss((o==null?void 0:o.start)||(o==null?void 0:o.end)||t.placeholderValue||null,t.granularity),p=u==="hour"||u==="minute"||u==="second",m=t.shouldCloseOnSelect??!0,[h,g]=(0,x.useState)(null),[f,v]=(0,x.useState)(null);o&&er(o)&&(h=o,"hour"in o.start&&(f=o));let b=(V,T)=>{d({start:"timeZone"in T.start?T.start.set(ct(V.start)):Kt(V.start,T.start),end:"timeZone"in T.end?T.end.set(ct(V.end)):Kt(V.end,T.end)}),g(null),v(null),_.commitValidation()},w=V=>{let T=typeof m=="function"?m():m;p?er(V)&&(T||f!=null&&f.start&&(f!=null&&f.end))?b(V,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}):g(V):er(V)?(d(V),_.commitValidation()):g(V),T&&e.setOpen(!1)},D=V=>{er(h)&&er(V)?b(h,V):v(V)},j=((P=o==null?void 0:o.start)==null?void 0:P.calendar.identifier)==="gregory"&&o.start.era==="BC"||((A=o==null?void 0:o.end)==null?void 0:A.calendar.identifier)==="gregory"&&o.end.era==="BC",k=(0,x.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:j}),[u,t.hourCycle,t.shouldForceLeadingZeros,c,t.hideTimeZone,j]),{minValue:S,maxValue:N,isDateUnavailable:y}=t,C=(0,x.useMemo)(()=>u2(o,S,N,y,k),[o,S,N,y,k]),_=Pu({...t,value:a,name:(0,x.useMemo)(()=>[t.startName,t.endName].filter(V=>V!=null),[t.startName,t.endName]),builtinValidation:C}),E=_.displayValidation.isInvalid,R=t.validationState||(E?"invalid":null);return{..._,value:o,defaultValue:t.defaultValue??n,setValue:d,dateRange:h,timeRange:f,granularity:u,hasTime:p,setDate(V,T){w(V==="start"?{start:T,end:(h==null?void 0:h.end)??null}:{start:(h==null?void 0:h.start)??null,end:T})},setTime(V,T){D(V==="start"?{start:T,end:(f==null?void 0:f.end)??null}:{start:(f==null?void 0:f.start)??null,end:T})},setDateTime(V,T){d(V==="start"?{start:T,end:(o==null?void 0:o.end)??null}:{start:(o==null?void 0:o.start)??null,end:T})},setDateRange:w,setTimeRange:D,...e,setOpen(V){!V&&!(o!=null&&o.start&&(o!=null&&o.end))&&er(h)&&p&&b(h,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}),e.setOpen(V)},validationState:R,isInvalid:E,formatValue(V,T){if(!o||!o.start||!o.end)return null;let I="timeZone"in o.start?o.start.timeZone:void 0,M=t.granularity||(o.start&&"minute"in o.start?"minute":"day"),O="timeZone"in o.end?o.end.timeZone:void 0,z=t.granularity||(o.end&&"minute"in o.end?"minute":"day"),$=ca(T,{granularity:M,timeZone:I,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,showEra:o.start.calendar.identifier==="gregory"&&o.start.era==="BC"||o.end.calendar.identifier==="gregory"&&o.end.era==="BC"}),Y=o.start.toDate(I||"UTC"),X=o.end.toDate(O||"UTC"),ne=new Wt(V,$),oe;if(I===O&&M===z&&o.start.compare(o.end)!==0){try{let ae=ne.formatRangeToParts(Y,X),W=-1;for(let te=0;te<ae.length;te++){let le=ae[te];if(le.source==="shared"&&le.type==="literal")W=te;else if(le.source==="endRange")break}let B="",re="";for(let te=0;te<ae.length;te++)te<W?B+=ae[te].value:te>W&&(re+=ae[te].value);return{start:B,end:re}}catch{}oe=ne}else oe=new Wt(V,ca(T,{granularity:z,timeZone:O,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle}));return{start:ne.format(Y),end:oe.format(X)}},getDateFormatter(V,T){return new Wt(V,ca({},{...k,...T}))}}}function er(t){return(t==null?void 0:t.start)!=null&&t.end!=null}var Ai=(0,x.createContext)(null),Ii=(0,x.createContext)(null),Pi=(0,x.createContext)(null),yn=(0,x.createContext)(null),w2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,Ai);let{locale:a}=qe(),r=Qh({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Uw(t,r),u=Ua({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=ot(t,{global:!0});return x.createElement("div",{...Xe(c,u,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[lo,{"aria-hidden":!0,level:2,children:d}],[Pi,r],[Ai,t],[Zn,{slots:{errorMessage:o}}]]},x.createElement(Gn,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(Gn,null,x.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),D2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,Ii);let{locale:a}=qe(),r=s2({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Kw(t,r,e),u=Ua({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=ot(t,{global:!0});return x.createElement("div",{...Xe(u,c,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[lo,{"aria-hidden":!0,level:2,children:d}],[yn,r],[Ii,t],[Zn,{slots:{errorMessage:o}}]]},x.createElement(Gn,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(Gn,null,x.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),Mi=(0,x.createContext)(null),j2=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(Pi),r=(0,x.useContext)(yn),n=Gl(Ai),i=Gl(Ii),l=a??r,o=l.visibleRange.start;t.offset&&(o=o.add(t.offset));let d=(n==null?void 0:n.firstDayOfWeek)??(i==null?void 0:i.firstDayOfWeek),{gridProps:u,headerProps:c,weekDays:p,weeksInMonth:m}=Zw({startDate:o,endDate:gi(o),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},l),h=ot(t,{global:!0});return x.createElement(Mi.Provider,{value:{headerProps:c,weekDays:p,startDate:o,weeksInMonth:m}},x.createElement("table",{...Xe(h,u),ref:e,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children=="function"?x.createElement(x.Fragment,null,x.createElement(Bf,null,g=>x.createElement(Hf,null,g)),x.createElement(Wf,null,t.children)):t.children))});function C2(t,e){let{children:a,style:r,className:n}=t,{headerProps:i,weekDays:l}=(0,x.useContext)(Mi),o=ot(t,{global:!0});return x.createElement("thead",{...Xe(o,i),ref:e,style:r,className:n||"react-aria-CalendarGridHeader"},x.createElement("tr",null,l.map((d,u)=>x.cloneElement(a(d),{key:u}))))}var Bf=(0,x.forwardRef)(C2);function k2(t,e){let{children:a,style:r,className:n}=t,i=ot(t,{global:!0});return x.createElement("th",{...i,ref:e,style:r,className:n||"react-aria-CalendarHeaderCell"},a)}var Hf=(0,x.forwardRef)(k2);function S2(t,e){let{children:a,style:r,className:n}=t,i=(0,x.useContext)(Pi),l=(0,x.useContext)(yn),o=i??l,{startDate:d,weeksInMonth:u}=(0,x.useContext)(Mi),c=ot(t,{global:!0});return x.createElement("tbody",{...c,ref:e,style:r,className:n||"react-aria-CalendarGridBody"},[...Array(u).keys()].map(p=>x.createElement("tr",{key:p},o.getDatesInWeek(p,d).map((m,h)=>m?x.cloneElement(a(m),{key:h}):x.createElement("td",{key:h})))))}var Wf=(0,x.forwardRef)(S2),N2=(0,x.forwardRef)(function({date:t,...e},a){let r=(0,x.useContext)(Pi),n=(0,x.useContext)(yn),i=r??n,{startDate:l}=(0,x.useContext)(Mi)??{startDate:i.visibleRange.start},o=!Pb(l,t),d=Jc(t,i.timeZone),u=(0,x.useRef)(null),{cellProps:c,buttonProps:p,...m}=Yw({date:t,isOutsideMonth:o},i,u),{hoverProps:h,isHovered:g}=hv({...e,isDisabled:m.isDisabled}),{focusProps:f,isFocusVisible:v}=Wl();v&&(v=m.isFocused);let b=!1,w=!1;"highlightedRange"in i&&i.highlightedRange&&(b=Ke(t,i.highlightedRange.start),w=Ke(t,i.highlightedRange.end));let D=Ua({...e,defaultChildren:m.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:o,isFocusVisible:v,isSelectionStart:b,isSelectionEnd:w,isToday:d,...m}}),j={"data-focused":m.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":m.isPressed||void 0,"data-unavailable":m.isUnavailable||void 0,"data-disabled":m.isDisabled||void 0,"data-focus-visible":v||void 0,"data-outside-visible-range":m.isOutsideVisibleRange||void 0,"data-outside-month":o||void 0,"data-selected":m.isSelected||void 0,"data-selection-start":b||void 0,"data-selection-end":w||void 0,"data-invalid":m.isInvalid||void 0,"data-today":d||void 0},k=ot(e,{global:!0});return x.createElement("td",{...c,ref:a},x.createElement("div",{...Xe(k,p,f,h,j,D),ref:u}))}),E2=(0,x.createContext)({placement:"bottom"}),ds=(0,x.createContext)(null),Uf=(0,x.createContext)(null),_2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,ds);let a=(0,x.useContext)(Fi),r=os(t),n=t.isOpen!=null||t.defaultOpen!=null||!a?r:a,i=Db(e,n.isOpen)||t.isExiting||!1,l=dR(),{direction:o}=qe();if(l){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,d)}return n&&!n.isOpen&&!i?null:x.createElement(T2,{...t,triggerRef:t.triggerRef,state:n,popoverRef:e,isExiting:i,dir:o})});function T2({state:t,isExiting:e,UNSTABLE_portalContainer:a,clearContexts:r,...n}){let i=(0,x.useRef)(null),l=(0,x.useRef)(null),o=(0,x.useContext)(Uf),d=o&&n.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:c,arrowProps:p,placement:m,triggerAnchorPoint:h}=$w({...n,offset:n.offset??8,arrowRef:i,groupRef:d?o:l},t),g=n.popoverRef,f=wb(g,!!m)||n.isEntering||!1,v=Ua({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:m,isEntering:f,isExiting:e}}),b=!n.isNonModal||n.trigger==="SubmenuTrigger",[w,D]=(0,x.useState)(!1);ba(()=>{g.current&&D(b&&!g.current.querySelector("[role=dialog]"))},[g,b]),(0,x.useEffect)(()=>{w&&n.trigger!=="SubmenuTrigger"&&g.current&&!g.current.contains(document.activeElement)&&Iu(g.current)},[w,g,n.trigger]);let j=(0,x.useMemo)(()=>{let N=v.children;if(r)for(let y of r)N=x.createElement(y.Provider,{value:null},N);return N},[v.children,r]),k={...u.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...v.style},S=x.createElement("div",{...Xe(ot(n,{global:!0}),u),...v,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:g,slot:n.slot||void 0,style:k,dir:n.dir,"data-trigger":n.trigger,"data-placement":m,"data-entering":f||void 0,"data-exiting":e||void 0},!n.isNonModal&&x.createElement(_p,{onDismiss:t.close}),x.createElement(E2.Provider,{value:{...p,placement:m,ref:i}},j),x.createElement(_p,{onDismiss:t.close}));return d?x.createElement(Rp,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a??(o==null?void 0:o.current)??void 0},S):x.createElement(Rp,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a},!n.isNonModal&&t.isOpen&&x.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),x.createElement("div",{ref:l,style:{display:"contents"}},x.createElement(Uf.Provider,{value:l},S)))}var us=(0,x.createContext)(null),Fi=(0,x.createContext)(null),R2=(0,x.forwardRef)(function(t,e){let a=t["aria-labelledby"];[t,e]=Ka(t,e,us);let{dialogProps:r,titleProps:n}=o2({...t,"aria-labelledby":a},e),i=(0,x.useContext)(Fi);!r["aria-label"]&&!r["aria-labelledby"]&&t["aria-labelledby"]&&(r["aria-labelledby"]=t["aria-labelledby"]);let l=Ua({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),o=ot(t,{global:!0});return x.createElement("section",{...Xe(o,l,r),ref:e,slot:t.slot||void 0},x.createElement(Ur,{values:[[lo,{slots:{[pv]:{},title:{...n,level:2}}}],[Zr,{slots:{[pv]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},l.children))}),A2=["day","month","year"],I2={hour:1,minute:2,second:3};function P2(t,e){let{autoComplete:a,isDisabled:r,name:n}=t,{visuallyHiddenProps:i}=rA({style:{position:"fixed",top:0,left:0}}),l=60;e.granularity==="second"?l=1:e.granularity==="hour"&&(l=3600);let o=e.value==null?"":e.value.toString(),d=e.granularity==="day"?"date":"datetime-local",u=["hour","minute","second"],c=0;return u.includes(e.granularity)&&(c=I2[e.granularity],u=u.slice(0,c)),{containerProps:{...i,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:a,disabled:r,type:d,form:"",name:n,step:l,value:o,onChange:p=>{let m=p.target.value.toString();if(m)try{let h=yi(m);if(e.granularity==="day"&&(h=Ca(m)),"setSegment"in e)for(let g in h)A2.includes(g)&&e.setSegment(g,h[g]),u.includes(g)&&e.setSegment(g,h[g]);e.setValue(h)}catch{}}}}}function M2(t){let{state:e}=t,{containerProps:a,inputProps:r}=P2({...t},e);return x.createElement("div",{...a,"data-testid":"hidden-dateinput-container"},x.createElement("input",r))}var cs=(0,x.createContext)(null),Vi=(0,x.createContext)(null),ms=(0,x.createContext)(null),F2=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(Vi),r=(0,x.useContext)(ms);return a||r?x.createElement(Kf,{...t,ref:e}):x.createElement(V2,{...t,ref:e})}),V2=(0,x.forwardRef)((t,e)=>{let[a,r]=Ka({slot:t.slot},e,cs),{locale:n}=qe(),i=g2({...a,locale:n,createCalendar:Go}),l=(0,x.useRef)(null),{fieldProps:o,inputProps:d}=Jw({...a,inputRef:l},i,r);return x.createElement(Ur,{values:[[Vi,i],[jR,{...d,ref:l}],[Jl,{...o,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},x.createElement(Kf,t))}),Kf=(0,x.forwardRef)((t,e)=>{let{className:a,children:r}=t,n=(0,x.useContext)(Vi),i=(0,x.useContext)(ms),l=n??i;return x.createElement(x.Fragment,null,x.createElement(yR,{...t,ref:e,slot:t.slot||void 0,className:a??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,d)=>(0,x.cloneElement)(r(o),{key:d}))),x.createElement(gR,null))}),z2=(0,x.forwardRef)(function({segment:t,...e},a){let r=(0,x.useContext)(Vi),n=(0,x.useContext)(ms),i=r??n,l=DR(a),{segmentProps:o}=r2(t,i,l),{focusProps:d,isFocused:u,isFocusVisible:c}=Wl(),{hoverProps:p,isHovered:m}=hv({...e,isDisabled:i.isDisabled||t.type==="literal"}),h=Ua({...e,values:{...t,isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:m,isFocused:u,isFocusVisible:c},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return x.createElement("span",{...Xe(ot(e,{global:!0}),o,d,p),...h,style:o.style,ref:l,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":i.isReadOnly||void 0,"data-disabled":i.isDisabled||void 0,"data-type":t.type,"data-hovered":m||void 0,"data-focused":u||void 0,"data-focus-visible":c||void 0})}),O2=(0,x.createContext)(null),$2=(0,x.createContext)(null),L2=(0,x.createContext)(null),B2=(0,x.createContext)(null),Zf=[Jl,Zr,Ou,Zn],H2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,O2);let{validationBehavior:a}=Gl(xv)||{},r=t.validationBehavior??a??"native",n=p2({...t,validationBehavior:r}),i=(0,x.useRef)(null),[l,o]=gv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,fieldProps:c,buttonProps:p,dialogProps:m,calendarProps:h,descriptionProps:g,errorMessageProps:f,...v}=Xw({...vv(t),label:o,validationBehavior:r},n,i),[b,w]=(0,x.useState)(null);di({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&w(i.current.offsetWidth+"px")},[])});let{focusProps:D,isFocused:j,isFocusVisible:k}=Wl({within:!0}),S=Ua({...t,values:{state:n,isFocusWithin:j,isFocusVisible:k,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),N=ot(t,{global:!0});return delete N.id,x.createElement(Ur,{values:[[L2,n],[Jl,{...d,ref:i,isInvalid:n.isInvalid}],[cs,c],[Zr,{...p,isPressed:n.isOpen}],[Ou,{...u,ref:l,elementType:"span"}],[Ai,h],[Fi,n],[ds,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":b},clearContexts:Zf}],[us,m],[Zn,{slots:{description:g,errorMessage:f}}],[yv,v]]},x.createElement("div",{...Xe(N,S,D),ref:e,slot:t.slot||void 0,"data-focus-within":j||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":k||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}),x.createElement(M2,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:n}))}),W2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,$2);let{validationBehavior:a}=Gl(xv)||{},r=t.validationBehavior??a??"native",n=b2({...t,validationBehavior:r}),i=(0,x.useRef)(null),[l,o]=gv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,startFieldProps:c,endFieldProps:p,buttonProps:m,dialogProps:h,calendarProps:g,descriptionProps:f,errorMessageProps:v,...b}=l2({...vv(t),label:o,validationBehavior:r},n,i),[w,D]=(0,x.useState)(null);di({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&D(i.current.offsetWidth+"px")},[])});let{focusProps:j,isFocused:k,isFocusVisible:S}=Wl({within:!0}),N=Ua({...t,values:{state:n,isFocusWithin:k,isFocusVisible:S,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),y=ot(t,{global:!0});return delete y.id,x.createElement(Ur,{values:[[B2,n],[Jl,{...d,ref:i,isInvalid:n.isInvalid}],[Zr,{...m,isPressed:n.isOpen}],[Ou,{...u,ref:l,elementType:"span"}],[Ii,g],[Fi,n],[ds,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":w},clearContexts:Zf}],[us,h],[cs,{slots:{start:c,end:p}}],[Zn,{slots:{description:f,errorMessage:v}}],[yv,b]]},x.createElement("div",{...Xe(y,N,j),ref:e,slot:t.slot||void 0,"data-focus-within":k||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}))}),U2=(0,x.forwardRef)(function(t,e){[t,e]=Ka(t,e,lo);let{children:a,level:r=3,className:n,...i}=t,l=`h${r}`;return x.createElement(l,{...i,ref:e,className:n??"react-aria-Heading"},a)}),K2=fa(Hn(),1),ps="ToastProvider",[hs,Z2,q2]=ao("Toast"),[qf,m6]=$u("Toast",[q2]),[Y2,zi]=qf(ps),Yf=t=>{let{__scopeToast:e,label:a="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:i=50,children:l}=t,[o,d]=x.useState(null),[u,c]=x.useState(0),p=x.useRef(!1),m=x.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${ps}\`. Expected non-empty \`string\`.`),(0,s.jsx)(hs.Provider,{scope:e,children:(0,s.jsx)(Y2,{scope:e,label:a,duration:r,swipeDirection:n,swipeThreshold:i,toastCount:u,viewport:o,onViewportChange:d,onToastAdd:x.useCallback(()=>c(h=>h+1),[]),onToastRemove:x.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:l})})};Yf.displayName=ps;var Gf="ToastViewport",G2=["F8"],fs="toast.viewportPause",gs="toast.viewportResume",Jf=x.forwardRef((t,e)=>{let{__scopeToast:a,hotkey:r=G2,label:n="Notifications ({hotkey})",...i}=t,l=zi(Gf,a),o=Z2(a),d=x.useRef(null),u=x.useRef(null),c=x.useRef(null),p=x.useRef(null),m=Ct(e,p,l.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=l.toastCount>0;x.useEffect(()=>{let v=b=>{var w;r.length!==0&&r.every(D=>b[D]||b.code===D)&&((w=p.current)==null||w.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),x.useEffect(()=>{let v=d.current,b=p.current;if(g&&v&&b){let w=()=>{if(!l.isClosePausedRef.current){let S=new CustomEvent(fs);b.dispatchEvent(S),l.isClosePausedRef.current=!0}},D=()=>{if(l.isClosePausedRef.current){let S=new CustomEvent(gs);b.dispatchEvent(S),l.isClosePausedRef.current=!1}},j=S=>{v.contains(S.relatedTarget)||D()},k=()=>{v.contains(document.activeElement)||D()};return v.addEventListener("focusin",w),v.addEventListener("focusout",j),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",k),window.addEventListener("blur",w),window.addEventListener("focus",D),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",j),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",k),window.removeEventListener("blur",w),window.removeEventListener("focus",D)}}},[g,l.isClosePausedRef]);let f=x.useCallback(({tabbingDirection:v})=>{let b=o().map(w=>{let D=w.ref.current,j=[D,...d4(D)];return v==="forwards"?j:j.reverse()});return(v==="forwards"?b.reverse():b).flat()},[o]);return x.useEffect(()=>{let v=p.current;if(v){let b=w=>{var j,k,S;let D=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!D){let N=document.activeElement,y=w.shiftKey;if(w.target===v&&y){(j=u.current)==null||j.focus();return}let C=f({tabbingDirection:y?"backwards":"forwards"}),_=C.findIndex(E=>E===N);ys(C.slice(_+1))?w.preventDefault():y?(k=u.current)==null||k.focus():(S=c.current)==null||S.focus()}};return v.addEventListener("keydown",b),()=>v.removeEventListener("keydown",b)}},[o,f]),(0,s.jsxs)(qR,{ref:d,role:"region","aria-label":n.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,s.jsx)(xs,{ref:u,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"forwards"}))}}),(0,s.jsx)(hs.Slot,{scope:a,children:(0,s.jsx)(Ue.ol,{tabIndex:-1,...i,ref:m})}),g&&(0,s.jsx)(xs,{ref:c,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"backwards"}))}})]})});Jf.displayName=Gf;var Qf="ToastFocusProxy",xs=x.forwardRef((t,e)=>{let{__scopeToast:a,onFocusFromOutsideViewport:r,...n}=t,i=zi(Qf,a);return(0,s.jsx)(Nv,{tabIndex:0,...n,ref:e,style:{position:"fixed"},onFocus:l=>{var d;let o=l.relatedTarget;(d=i.viewport)!=null&&d.contains(o)||r()}})});xs.displayName=Qf;var bn="Toast",J2="toast.swipeStart",Q2="toast.swipeMove",X2="toast.swipeCancel",e4="toast.swipeEnd",Xf=x.forwardRef((t,e)=>{let{forceMount:a,open:r,defaultOpen:n,onOpenChange:i,...l}=t,[o,d]=to({prop:r,defaultProp:n??!0,onChange:i,caller:bn});return(0,s.jsx)(Yn,{present:a||o,children:(0,s.jsx)(r4,{open:o,...l,ref:e,onClose:()=>d(!1),onPause:Ht(t.onPause),onResume:Ht(t.onResume),onSwipeStart:_e(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:_e(t.onSwipeMove,u=>{let{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:_e(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:_e(t.onSwipeEnd,u=>{let{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),d(!1)})})})});Xf.displayName=bn;var[t4,a4]=qf(bn,{onClose(){}}),r4=x.forwardRef((t,e)=>{let{__scopeToast:a,type:r="foreground",duration:n,open:i,onClose:l,onEscapeKeyDown:o,onPause:d,onResume:u,onSwipeStart:c,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:h,...g}=t,f=zi(bn,a),[v,b]=x.useState(null),w=Ct(e,A=>b(A)),D=x.useRef(null),j=x.useRef(null),k=n||f.duration,S=x.useRef(0),N=x.useRef(k),y=x.useRef(0),{onToastAdd:C,onToastRemove:_}=f,E=Ht(()=>{var A;v!=null&&v.contains(document.activeElement)&&((A=f.viewport)==null||A.focus()),l()}),R=x.useCallback(A=>{!A||A===1/0||(window.clearTimeout(y.current),S.current=new Date().getTime(),y.current=window.setTimeout(E,A))},[E]);x.useEffect(()=>{let A=f.viewport;if(A){let V=()=>{R(N.current),u==null||u()},T=()=>{let I=new Date().getTime()-S.current;N.current-=I,window.clearTimeout(y.current),d==null||d()};return A.addEventListener(fs,T),A.addEventListener(gs,V),()=>{A.removeEventListener(fs,T),A.removeEventListener(gs,V)}}},[f.viewport,k,d,u,R]),x.useEffect(()=>{i&&!f.isClosePausedRef.current&&R(k)},[i,k,f.isClosePausedRef,R]),x.useEffect(()=>(C(),()=>_()),[C,_]);let P=x.useMemo(()=>v?lg(v):null,[v]);return f.viewport?(0,s.jsxs)(s.Fragment,{children:[P&&(0,s.jsx)(n4,{__scopeToast:a,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:P}),(0,s.jsx)(t4,{scope:a,onClose:E,children:K2.createPortal((0,s.jsx)(hs.ItemSlot,{scope:a,children:(0,s.jsx)(UR,{asChild:!0,onEscapeKeyDown:_e(o,()=>{f.isFocusedToastEscapeKeyDownRef.current||E(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,s.jsx)(Ue.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":f.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:_e(t.onKeyDown,A=>{A.key==="Escape"&&(o==null||o(A.nativeEvent),A.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:_e(t.onPointerDown,A=>{A.button===0&&(D.current={x:A.clientX,y:A.clientY})}),onPointerMove:_e(t.onPointerMove,A=>{if(!D.current)return;let V=A.clientX-D.current.x,T=A.clientY-D.current.y,I=!!j.current,M=["left","right"].includes(f.swipeDirection),O=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,z=M?O(0,V):0,$=M?0:O(0,T),Y=A.pointerType==="touch"?10:2,X={x:z,y:$},ne={originalEvent:A,delta:X};I?(j.current=X,Oi(Q2,p,ne,{discrete:!1})):og(X,f.swipeDirection,Y)?(j.current=X,Oi(J2,c,ne,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(V)>Y||Math.abs(T)>Y)&&(D.current=null)}),onPointerUp:_e(t.onPointerUp,A=>{let V=j.current,T=A.target;if(T.hasPointerCapture(A.pointerId)&&T.releasePointerCapture(A.pointerId),j.current=null,D.current=null,V){let I=A.currentTarget,M={originalEvent:A,delta:V};og(V,f.swipeDirection,f.swipeThreshold)?Oi(e4,h,M,{discrete:!0}):Oi(X2,m,M,{discrete:!0}),I.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),n4=t=>{let{__scopeToast:e,children:a,...r}=t,n=zi(bn,e),[i,l]=x.useState(!1),[o,d]=x.useState(!1);return o4(()=>l(!0)),x.useEffect(()=>{let u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:(0,s.jsx)(WR,{asChild:!0,children:(0,s.jsx)(Nv,{...r,children:i&&(0,s.jsxs)(s.Fragment,{children:[n.label," ",a]})})})},i4="ToastTitle",eg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(Ue.div,{...r,ref:e})});eg.displayName=i4;var l4="ToastDescription",tg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(Ue.div,{...r,ref:e})});tg.displayName=l4;var ag="ToastAction",rg=x.forwardRef((t,e)=>{let{altText:a,...r}=t;return a.trim()?(0,s.jsx)(ig,{altText:a,asChild:!0,children:(0,s.jsx)(vs,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${ag}\`. Expected non-empty \`string\`.`),null)});rg.displayName=ag;var ng="ToastClose",vs=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t,n=a4(ng,a);return(0,s.jsx)(ig,{asChild:!0,children:(0,s.jsx)(Ue.button,{type:"button",...r,ref:e,onClick:_e(t.onClick,n.onClose)})})});vs.displayName=ng;var ig=x.forwardRef((t,e)=>{let{__scopeToast:a,altText:r,...n}=t;return(0,s.jsx)(Ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...n,ref:e})});function lg(t){let e=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&e.push(a.textContent),s4(a)){let r=a.ariaHidden||a.hidden||a.style.display==="none",n=a.dataset.radixToastAnnounceExclude==="";if(!r)if(n){let i=a.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...lg(a))}}),e}function Oi(t,e,a,{discrete:r}){let n=a.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:a});e&&n.addEventListener(t,e,{once:!0}),r?Lu(n,i):n.dispatchEvent(i)}var og=(t,e,a=0)=>{let r=Math.abs(t.x),n=Math.abs(t.y),i=r>n;return e==="left"||e==="right"?i&&r>a:!i&&n>a};function o4(t=()=>{}){let e=Ht(t);eo(()=>{let a=0,r=0;return a=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(r)}},[e])}function s4(t){return t.nodeType===t.ELEMENT_NODE}function d4(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function ys(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}var u4=Yf,sg=Jf,dg=Xf,ug=eg,cg=tg,mg=rg,pg=vs,jr=J(),c4=u4,hg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:w-fit md:max-w-[420px]",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(sg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});hg.displayName=sg.displayName;var m4=Fl("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",danger:"group destructive text-error border-destructive bg-(--red-1) shadow-md-solid shadow-error"}},defaultVariants:{variant:"default"}}),fg=x.forwardRef((t,e)=>{let a=(0,jr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,variant:i,...n}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l=i||"default",o;a[4]!==r||a[5]!==l?(o=K(m4({variant:l}),"print:hidden",r),a[4]=r,a[5]=l,a[6]=o):o=a[6];let d;return a[7]!==n||a[8]!==e||a[9]!==o?(d=(0,s.jsx)(dg,{ref:e,className:o,...n}),a[7]=n,a[8]=e,a[9]=o,a[10]=d):d=a[10],d});fg.displayName=dg.displayName;var p4=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(mg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});p4.displayName=mg.displayName;var gg=x.forwardRef((t,e)=>{let a=(0,jr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-500 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Hr,{className:"h-4 w-4"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(pg,{ref:e,className:i,"toast-close":"",...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});gg.displayName=pg.displayName;var xg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("text-sm font-semibold",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(ug,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});xg.displayName=ug.displayName;var vg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("text-sm opacity-90",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(cg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});vg.displayName=cg.displayName;var h4=J();const f4=()=>{let t=(0,h4.c)(5),{toasts:e}=HR(),a;t[0]===e?a=t[1]:(a=e.map(g4),t[0]=e,t[1]=a);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(hg,{}),t[2]=r):r=t[2];let n;return t[3]===a?n=t[4]:(n=(0,s.jsxs)(c4,{children:[a,r]}),t[3]=a,t[4]=n),n};function g4(t){let{id:e,title:a,description:r,action:n,...i}=t;return(0,s.jsxs)(fg,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[a&&(0,s.jsx)(xg,{children:a}),r&&(0,s.jsx)(vg,{children:r})]}),n,(0,s.jsx)(gg,{})]},e)}var x4=J();const bs=t=>{let e=(0,x4.c)(5),{children:a}=t,r=Al(c_),n;e[0]===r?n=e[1]:(n=v4(r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)(pA,{locale:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i};function v4(t){return t&&y4(t)?t:navigator.language}function y4(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var yg=J(),bg=So(()=>vt(()=>import("./home-page-9rDRaLCP.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132]),import.meta.url)),wg=So(()=>vt(()=>import("./run-page-DRgXZvWr.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([133,134,135,5,136,14,137,138,139,140,29,4,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,115,141,142,76,143,113,79,78,84,83,85,86,87,88,89,70,77,71,72,90,144,145,146,99,104,74,147,148,149,150,151,152,153,154,155,82,91,156,157,97,158,93,94,98,159,96,160,121,122,123,161,125,127,162,163,164,73,165,166,167,168,169,170,171,172,173,174,175,106,176,81,92,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,110,280,281,282,283,284,101,102,285,286,287,288,289,290,291,292,293,294]),import.meta.url)),Dg=So(()=>vt(()=>import("./edit-page-BC3j4y4f.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([295,5,296,11,134,135,136,14,137,138,139,140,29,4,6,7,8,9,10,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,115,141,142,76,143,113,79,78,84,83,85,86,87,88,89,70,77,71,72,90,144,145,146,99,104,74,147,148,149,150,151,152,153,154,155,82,91,156,157,97,158,93,94,98,159,96,160,121,122,123,161,125,127,162,163,164,73,165,166,167,168,169,170,171,172,173,174,175,106,176,81,92,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,110,280,281,282,283,284,101,102,285,286,287,288,289,290,291,292,2,3,75,80,95,100,103,105,107,108,109,1,111,112,114,297,298,116,299,300,301,117,118,119,120,302,303,304,305,306,307,308,309,131,310,311,312,313,314,132,315,316,124,294,317,130,318,319,320,321,322,323,324,325,326,327,328,329,330]),import.meta.url));function b4(t){t==="home"?bg.preload():t==="read"?wg.preload():Dg.preload()}const jg=(0,x.memo)(()=>{let t=(0,yg.c)(12),[e]=f_(),[a]=u_(),r;t[0]===e.display.code_editor_font_size?r=t[1]:(r=w4(e.display.code_editor_font_size),t[0]=e.display.code_editor_font_size,t[1]=r);let n=r,i;t[2]!==a||t[3]!==e?(i=()=>{let c=eA();return c==="home"?(0,s.jsx)(bg.Component,{}):c==="read"?(0,s.jsx)(wg.Component,{appConfig:a}):(0,s.jsx)(Dg.Component,{userConfig:e,appConfig:a})},t[2]=a,t[3]=e,t[4]=i):i=t[4];let l=i,o;t[5]===n?o=t[6]:(o={"--marimo-code-editor-font-size":n},t[5]=n,t[6]=o);let d;t[7]===l?d=t[8]:(d=(0,s.jsx)(bs,{children:l()}),t[7]=l,t[8]=d);let u;return t[9]!==o||t[10]!==d?(u=(0,s.jsx)(Cg,{children:(0,s.jsx)(vb,{variables:o,children:d})}),t[9]=o,t[10]=d,t[11]=u):u=t[11],u});jg.displayName="MarimoApp";var Cg=(0,x.memo)(t=>{let e=(0,yg.c)(4),{children:a}=t,r,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(f4,{}),n=(0,s.jsx)(xb,{}),e[0]=r,e[1]=n):(r=e[0],n=e[1]);let i;return e[2]===a?i=e[3]:(i=(0,s.jsx)(Pl,{children:(0,s.jsx)(x.Suspense,{children:(0,s.jsx)(St,{children:(0,s.jsx)(H1,{controller:Wn,children:(0,s.jsx)(bs,{children:(0,s.jsxs)(yA,{children:[a,r,n]})})})})})}),e[2]=a,e[3]=i),i});Cg.displayName="Providers";function w4(t){return`${t/16}rem`}function D4(){C_(t=>{t.delete(wu.accessToken)})}var j4={sendComponentValues:"startConnection",sendModelValue:"startConnection",sendInstantiate:"startConnection",sendRun:"startConnection",sendDeleteCell:"startConnection",sendRunScratchpad:"startConnection",saveAppConfig:"startConnection",saveCellConfig:"startConnection",exportAsHTML:"startConnection",exportAsMarkdown:"startConnection",readCode:"startConnection",sendCopy:"throwError",sendFormat:"throwError",sendRestart:"throwError",sendSave:"waitForConnectionOpen",invokeAiTool:"waitForConnectionOpen",sendFunctionRequest:"waitForConnectionOpen",sendRename:"waitForConnectionOpen",autoExportAsHTML:"waitForConnectionOpen",autoExportAsMarkdown:"waitForConnectionOpen",autoExportAsIPYNB:"waitForConnectionOpen",listSecretKeys:"throwError",writeSecret:"throwError",clearCache:"throwError",getCacheInfo:"throwError",saveUserConfig:"throwError",sendShutdown:"throwError",getPackageList:"throwError",getDependencyTree:"throwError",addPackage:"throwError",removePackage:"throwError",sendListFiles:"startConnection",sendSearchFiles:"startConnection",sendCreateFileOrFolder:"throwError",sendDeleteFileOrFolder:"throwError",sendRenameFileOrFolder:"throwError",sendUpdateFile:"throwError",sendFileDetails:"throwError",openFile:"throwError",getRecentFiles:"startConnection",getWorkspaceFiles:"startConnection",getRunningNotebooks:"startConnection",shutdownSession:"startConnection",openTutorial:"startConnection",getUsageStats:"waitForConnectionOpen",sendStdin:"waitForConnectionOpen",sendInterrupt:"waitForConnectionOpen",sendPdb:"waitForConnectionOpen",sendInstallMissingPackages:"waitForConnectionOpen",readSnippets:"waitForConnectionOpen",previewDatasetColumn:"waitForConnectionOpen",previewSQLTable:"waitForConnectionOpen",previewSQLTableList:"waitForConnectionOpen",previewDataSourceConnection:"waitForConnectionOpen",validateSQL:"waitForConnectionOpen",syncCellIds:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function C4(t,e){let a=sT(async n=>{ze.set(S_,{state:w_.CONNECTING}),await n.init()});function r(n,i){let l=j4[i];return async(...o)=>{let d=e();if(!d.isLazy)return n(...o);switch(l){case"dropRequest":return se.debug(`Dropping request: ${i}, since not connected to a kernel.`),Promise.resolve();case"throwError":throw new Bv;case"waitForConnectionOpen":return await Je(),await B1(),n(...o);case"startConnection":return await a(d),await Je(),i!=="sendInstantiate"&&await B1(),n(...o);default:throw Error(`Unknown action for "${i}"`)}}}return za.mapValues(t,(n,i)=>r(n,i))}var{handleResponse:$e,handleResponseReturnNull:De}=N_;function k4(){let t=_E(()=>T_(Du())),e=()=>Du().sessionHeaders(),a=()=>({header:e()});return{sendComponentValues:r=>t().POST("/api/kernel/set_ui_element_value",{body:r,params:a()}).then(De),sendModelValue:r=>t().POST("/api/kernel/set_model_value",{body:r,params:a()}).then(De),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:a()}).then(De),syncCellIds:async r=>(await Je(),t().POST("/api/kernel/sync/cell_ids",{body:r,params:a()}).then(De)),sendRename:r=>t().POST("/api/kernel/rename",{body:r,params:a()}).then(De),sendSave:r=>t().POST("/api/kernel/save",{body:r,parseAs:"text",params:a()}).then(De),sendCopy:r=>t().POST("/api/kernel/copy",{body:r,parseAs:"text",params:a()}).then(De),sendFormat:r=>t().POST("/api/kernel/format",{body:r}).then($e),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:a()}).then(De),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(De),sendRun:async r=>ze.get(x_)?t().POST("/api/kernel/run",{body:r,params:a()}).then(De):null,sendRunScratchpad:async r=>(await Je(),t().POST("/api/kernel/scratchpad/run",{body:r,params:a()}).then(De)),sendInstantiate:async r=>(await Je(),t().POST("/api/kernel/instantiate",{body:r,params:a()}).then(De)),sendDeleteCell:r=>t().POST("/api/kernel/delete",{body:r,params:a()}).then(De),sendCodeCompletionRequest:async r=>(await Je(),t().POST("/api/kernel/code_autocomplete",{body:r,params:a()}).then(De)),saveUserConfig:r=>t().POST("/api/kernel/save_user_config",{body:r}).then(De),saveAppConfig:r=>t().POST("/api/kernel/save_app_config",{body:r,parseAs:"text",params:a()}).then(De),saveCellConfig:r=>t().POST("/api/kernel/set_cell_config",{body:r,params:a()}).then(De),sendFunctionRequest:r=>t().POST("/api/kernel/function_call",{body:r,params:a()}).then(De),sendStdin:r=>t().POST("/api/kernel/stdin",{body:r,params:a()}).then(De),sendInstallMissingPackages:r=>t().POST("/api/kernel/install_missing_packages",{body:r,params:a()}).then(De),readCode:async()=>(await Je(),t().POST("/api/kernel/read_code",{params:a()}).then($e)),readSnippets:async()=>(await Je(),t().GET("/api/documentation/snippets",{params:a()}).then($e)),previewDatasetColumn:r=>t().POST("/api/datasources/preview_column",{body:r,params:a()}).then(De),previewSQLTable:r=>t().POST("/api/datasources/preview_sql_table",{body:r,params:a()}).then(De),previewSQLTableList:r=>t().POST("/api/datasources/preview_sql_table_list",{body:r,params:a()}).then(De),previewDataSourceConnection:r=>t().POST("/api/datasources/preview_datasource_connection",{body:r,params:a()}).then(De),validateSQL:r=>t().POST("/api/sql/validate",{body:r,params:a()}).then(De),openFile:async r=>(await Je(),await t().POST("/api/files/open",{body:r}).then(De),null),getUsageStats:async()=>(await Je(),t().GET("/api/usage").then($e)),sendPdb:r=>t().POST("/api/kernel/pdb/pm",{body:r,params:a()}).then(De),sendListFiles:async r=>(await Je(),t().POST("/api/files/list_files",{body:r}).then($e)),sendSearchFiles:async r=>(await Je(),t().POST("/api/files/search",{body:r}).then($e)),sendCreateFileOrFolder:async r=>(await Je(),t().POST("/api/files/create",{body:r}).then($e)),sendDeleteFileOrFolder:async r=>(await Je(),t().POST("/api/files/delete",{body:r}).then($e)),sendRenameFileOrFolder:async r=>(await Je(),t().POST("/api/files/move",{body:r}).then($e)),sendUpdateFile:async r=>(await Je(),t().POST("/api/files/update",{body:r}).then($e)),sendFileDetails:async r=>(await Je(),t().POST("/api/files/file_details",{body:r}).then($e)),openTutorial:r=>t().POST("/api/home/tutorial/open",{body:r}).then($e),getRecentFiles:()=>t().POST("/api/home/recent_files").then($e),getWorkspaceFiles:r=>t().POST("/api/home/workspace_files",{body:r}).then($e),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then($e),shutdownSession:r=>t().POST("/api/home/shutdown_session",{body:r}).then($e),exportAsHTML:async r=>t().POST("/api/export/html",{body:r,parseAs:"text",params:a()}).then($e),exportAsMarkdown:async r=>t().POST("/api/export/markdown",{body:r,parseAs:"text",params:a()}).then($e),autoExportAsHTML:async r=>t().POST("/api/export/auto_export/html",{body:r,params:a()}).then(De),autoExportAsMarkdown:async r=>t().POST("/api/export/auto_export/markdown",{body:r,params:a()}).then(De),autoExportAsIPYNB:async r=>t().POST("/api/export/auto_export/ipynb",{body:r,params:a()}).then(De),addPackage:r=>t().POST("/api/packages/add",{body:r}).then($e),removePackage:r=>t().POST("/api/packages/remove",{body:r}).then($e),getPackageList:async()=>(await Je(),t().GET("/api/packages/list").then($e)),getDependencyTree:async()=>(await Je(),t().GET("/api/packages/tree").then($e)),listSecretKeys:async r=>(await Je(),t().POST("/api/secrets/keys",{body:r,params:a()}).then(De)),writeSecret:async r=>t().POST("/api/secrets/create",{body:r,params:a()}).then(De),invokeAiTool:async r=>t().POST("/api/ai/invoke_tool",{body:r,params:a()}).then($e),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:a()}).then(De),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:a()}).then(De)}}function S4(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(ya({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(se.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(se.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(ya({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Function requests are not supported in static mode"),null),sendRestart:t,syncCellIds:t,sendRun:t,sendRunScratchpad:t,sendRename:t,sendSave:t,sendCopy:t,sendInterrupt:t,sendShutdown:t,sendFormat:t,sendDeleteCell:t,sendCodeCompletionRequest:t,saveUserConfig:t,saveAppConfig:t,saveCellConfig:t,sendStdin:t,readCode:t,readSnippets:t,previewDatasetColumn:t,previewSQLTable:t,previewSQLTableList:t,previewDataSourceConnection:t,validateSQL:t,openFile:t,getUsageStats:t,sendListFiles:t,sendSearchFiles:t,sendPdb:t,sendCreateFileOrFolder:t,sendDeleteFileOrFolder:t,sendRenameFileOrFolder:t,sendUpdateFile:t,sendFileDetails:t,openTutorial:t,sendInstallMissingPackages:t,getRecentFiles:t,getWorkspaceFiles:t,getRunningNotebooks:t,shutdownSession:t,exportAsHTML:t,exportAsMarkdown:t,autoExportAsHTML:t,autoExportAsMarkdown:t,autoExportAsIPYNB:t,addPackage:t,removePackage:t,getPackageList:t,getDependencyTree:t,listSecretKeys:t,writeSecret:t,invokeAiTool:t,clearCache:t,getCacheInfo:t}}var N4=J();function E4(t){let e={sendComponentValues:"Failed update value",sendModelValue:"Failed to update model value",sendInstantiate:"Failed to instantiate",sendFunctionRequest:"Failed to send function request",sendRestart:"Failed to restart",syncCellIds:"Failed to sync cell IDs",sendRun:"Failed to run",sendRunScratchpad:"Failed to run scratchpad",sendRename:"Failed to rename",sendSave:"Failed to save",sendCopy:"Failed to copy",sendInterrupt:"Failed to interrupt",sendShutdown:"Failed to shutdown",sendFormat:"Failed to format",sendDeleteCell:"Failed to delete cell",sendCodeCompletionRequest:"Failed to complete code",saveUserConfig:"Failed to save user config",saveAppConfig:"Failed to save app config",saveCellConfig:"Failed to save cell config",sendStdin:"Failed to send stdin",readCode:"Failed to read code",readSnippets:"Failed to fetch snippets",previewDatasetColumn:"Failed to fetch data sources",previewSQLTable:"Failed to fetch SQL table",previewSQLTableList:"Failed to fetch SQL table list",previewDataSourceConnection:"Failed to preview data source connection",validateSQL:"Failed to validate SQL",openFile:"Failed to open file",getUsageStats:"",sendListFiles:"Failed to list files",sendSearchFiles:"Failed to search files",sendPdb:"Failed to start debug session",sendCreateFileOrFolder:"Failed to create file or folder",sendDeleteFileOrFolder:"Failed to delete file or folder",sendRenameFileOrFolder:"Failed to rename file or folder",sendUpdateFile:"Failed to update file",sendFileDetails:"Failed to get file details",openTutorial:"Failed to open tutorial",sendInstallMissingPackages:"Failed to install missing packages",getRecentFiles:"Failed to get recent files",getWorkspaceFiles:"Failed to get workspace files",getRunningNotebooks:"Failed to get running notebooks",shutdownSession:"Failed to shutdown session",exportAsHTML:"Failed to export HTML",exportAsMarkdown:"Failed to export Markdown",autoExportAsHTML:"",autoExportAsMarkdown:"",autoExportAsIPYNB:"",addPackage:"Failed to add package",removePackage:"Failed to remove package",getPackageList:"Failed to get package list",getDependencyTree:"Failed to get dependency tree",listSecretKeys:"Failed to fetch secrets",writeSecret:"Failed to write secret",invokeAiTool:"Failed to invoke AI tool",clearCache:"Failed to clear cache",getCacheInfo:""},a={};for(let[r,n]of Object.entries(t)){let i=r;a[i]=async(...l)=>{try{return await n(...l)}catch(o){if(o instanceof Bv){if(ze.get(W1))return;let c=ya({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,s.jsx)(_4,{onConnect:()=>c.dismiss()})});throw se.error(`Failed to handle request: ${r}`,o),o}let d=e[i],u=Lv(o);throw d&&ya({title:d,description:u,variant:"danger"}),se.error(`Failed to handle request: ${r}`,o),o}}}return a}const _4=t=>{let e=(0,N4.c)(9),{onConnect:a}=t,r=y_(),n=Al(W1),i;e[0]!==r||e[1]!==a?(i=()=>{r(),setTimeout(()=>{a()},800)},e[0]=r,e[1]=a,e[2]=i):i=e[2];let l;e[3]===n?l=e[4]:(l=n&&(0,s.jsx)(Kn,{size:"small",className:"mr-1"}),e[3]=n,e[4]=l);let o;return e[5]!==n||e[6]!==i||e[7]!==l?(o=(0,s.jsxs)(Se,{size:"xs",onClick:i,disabled:n,children:[l,"Connect"]}),e[5]=n,e[6]=i,e[7]=l,e[8]=o):o=e[8],o};function T4(){let t;return t=v_()?e_.INSTANCE:Vl()?S4():C4(k4(),()=>Du()),E4(t)}function R4(t=K1()){let e=window.fetch;return window.fetch=async(a,r)=>{let n=a instanceof Request?a.url:a.toString();if(n.startsWith("data:"))return e(a,r);try{let i=ws(n,t);if(i){let l=await(await e(i)).arrayBuffer();return new Response(l,{headers:{"Content-Type":A4(n)}})}return e(a,r)}catch(i){return se.error("Error parsing URL",i),e(a,r)}},()=>{window.fetch=e}}function A4(t){return t.endsWith(".csv")?"text/csv":t.endsWith(".json")?"application/json":t.endsWith(".txt")?"text/plain":"application/octet-stream"}function I4(t,e=K1()){let a=t.http.bind(t),r=t.load.bind(t);return t.http=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await a(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},t.load=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await r(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},()=>{t.http=a,t.load=r}}function kg(t){return t.startsWith(".")?t.slice(1):t}function ws(t,e){let a=document.baseURI;a.startsWith("blob:")&&(a=a.replace("blob:",""));let r=new URL(t,a).pathname;if(t.startsWith("file://")){let n=t.indexOf("/@file/");n!==-1&&(t=t.slice(n))}return e[t]||e[kg(t)]||e[r]||e[kg(r)]}var P4=fa(Hn(),1),tr="NavigationMenu",[Ds,Sg,M4]=ao(tr),[js,F4,V4]=ao(tr),[Cs,p6]=$u(tr,[M4,V4]),[z4,_t]=Cs(tr),[O4,$4]=Cs(tr),Ng=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,delayDuration:l=200,skipDelayDuration:o=300,orientation:d="horizontal",dir:u,...c}=t,[p,m]=x.useState(null),h=Ct(e,C=>m(C)),g=_v(u),f=x.useRef(0),v=x.useRef(0),b=x.useRef(0),[w,D]=x.useState(!0),[j,k]=to({prop:r,onChange:C=>{let _=C!=="",E=o>0;_?(window.clearTimeout(b.current),E&&D(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>D(!0),o)),n==null||n(C)},defaultProp:i??"",caller:tr}),S=x.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>k(""),150)},[k]),N=x.useCallback(C=>{window.clearTimeout(v.current),k(C)},[k]),y=x.useCallback(C=>{j===C?window.clearTimeout(v.current):f.current=window.setTimeout(()=>{window.clearTimeout(v.current),k(C)},l)},[j,k,l]);return x.useEffect(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(v.current),window.clearTimeout(b.current)},[]),(0,s.jsx)(Eg,{scope:a,isRootMenu:!0,value:j,dir:g,orientation:d,rootNavigationMenu:p,onTriggerEnter:C=>{window.clearTimeout(f.current),w?y(C):N(C)},onTriggerLeave:()=>{window.clearTimeout(f.current),S()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:S,onItemSelect:C=>{k(_=>_===C?"":C)},onItemDismiss:()=>k(""),children:(0,s.jsx)(Ue.nav,{"aria-label":"Main","data-orientation":d,dir:g,...c,ref:h})})});Ng.displayName=tr;var ks="NavigationMenuSub",L4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,orientation:l="horizontal",...o}=t,d=_t(ks,a),[u,c]=to({prop:r,onChange:n,defaultProp:i??"",caller:ks});return(0,s.jsx)(Eg,{scope:a,isRootMenu:!1,value:u,dir:d.dir,orientation:l,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:p=>c(p),onItemSelect:p=>c(p),onItemDismiss:()=>c(""),children:(0,s.jsx)(Ue.div,{"data-orientation":l,...o,ref:e})})});L4.displayName=ks;var Eg=t=>{let{scope:e,isRootMenu:a,rootNavigationMenu:r,dir:n,orientation:i,children:l,value:o,onItemSelect:d,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:p,onContentEnter:m,onContentLeave:h}=t,[g,f]=x.useState(null),[v,b]=x.useState(new Map),[w,D]=x.useState(null);return(0,s.jsx)(z4,{scope:e,isRootMenu:a,rootNavigationMenu:r,value:o,previousValue:lv(o),baseId:Sv(),dir:n,orientation:i,viewport:g,onViewportChange:f,indicatorTrack:w,onIndicatorTrackChange:D,onTriggerEnter:Ht(c),onTriggerLeave:Ht(p),onContentEnter:Ht(m),onContentLeave:Ht(h),onItemSelect:Ht(d),onItemDismiss:Ht(u),onViewportContentChange:x.useCallback((j,k)=>{b(S=>(S.set(j,k),new Map(S)))},[]),onViewportContentRemove:x.useCallback(j=>{b(k=>k.has(j)?(k.delete(j),new Map(k)):k)},[]),children:(0,s.jsx)(Ds.Provider,{scope:e,children:(0,s.jsx)(O4,{scope:e,items:v,children:l})})})},_g="NavigationMenuList",Tg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=_t(_g,a),i=(0,s.jsx)(Ue.ul,{"data-orientation":n.orientation,...r,ref:e});return(0,s.jsx)(Ue.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange,children:(0,s.jsx)(Ds.Slot,{scope:a,children:n.isRootMenu?(0,s.jsx)(Lg,{asChild:!0,children:i}):i})})});Tg.displayName=_g;var Rg="NavigationMenuItem",[B4,Ag]=Cs(Rg),Ig=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,...n}=t,i=Sv(),l=r||i||"LEGACY_REACT_AUTO_VALUE",o=x.useRef(null),d=x.useRef(null),u=x.useRef(null),c=x.useRef(()=>{}),p=x.useRef(!1),m=x.useCallback((g="start")=>{if(o.current){c.current();let f=_s(o.current);f.length&&Ts(g==="start"?f:f.reverse())}},[]),h=x.useCallback(()=>{if(o.current){let g=_s(o.current);g.length&&(c.current=Y4(g))}},[]);return(0,s.jsx)(B4,{scope:a,value:l,triggerRef:d,contentRef:o,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:(0,s.jsx)(Ue.li,{...n,ref:e})})});Ig.displayName=Rg;var Ss="NavigationMenuTrigger",Pg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,disabled:r,...n}=t,i=_t(Ss,t.__scopeNavigationMenu),l=Ag(Ss,t.__scopeNavigationMenu),o=x.useRef(null),d=Ct(o,l.triggerRef,e),u=Wg(i.baseId,l.value),c=Ug(i.baseId,l.value),p=x.useRef(!1),m=x.useRef(!1),h=l.value===i.value;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ds.ItemSlot,{scope:a,value:l.value,children:(0,s.jsx)(Hg,{asChild:!0,children:(0,s.jsx)(Ue.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":As(h),"aria-expanded":h,"aria-controls":c,...n,ref:d,onPointerEnter:_e(t.onPointerEnter,()=>{m.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:_e(t.onPointerMove,Li(()=>{r||m.current||l.wasEscapeCloseRef.current||p.current||(i.onTriggerEnter(l.value),p.current=!0)})),onPointerLeave:_e(t.onPointerLeave,Li(()=>{r||(i.onTriggerLeave(),p.current=!1)})),onClick:_e(t.onClick,()=>{i.onItemSelect(l.value),m.current=h}),onKeyDown:_e(t.onKeyDown,g=>{let f={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&g.key===f&&(l.onEntryKeyDown(),g.preventDefault())})})})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(JR,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:g=>{let f=l.contentRef.current,v=g.relatedTarget,b=v===o.current,w=f==null?void 0:f.contains(v);(b||!w)&&l.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&(0,s.jsx)("span",{"aria-owns":c})]})]})});Pg.displayName=Ss;var H4="NavigationMenuLink",Mg="navigationMenu.linkSelect",Fg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,active:r,onSelect:n,...i}=t;return(0,s.jsx)(Hg,{asChild:!0,children:(0,s.jsx)(Ue.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:e,onClick:_e(t.onClick,l=>{let o=l.target,d=new CustomEvent(Mg,{bubbles:!0,cancelable:!0});o.addEventListener(Mg,u=>n==null?void 0:n(u),{once:!0}),Lu(o,d),!d.defaultPrevented&&!l.metaKey&&Lu(o,new CustomEvent($i,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});Fg.displayName=H4;var Ns="NavigationMenuIndicator",Vg=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=_t(Ns,t.__scopeNavigationMenu),i=!!n.value;return n.indicatorTrack?P4.createPortal((0,s.jsx)(Yn,{present:a||i,children:(0,s.jsx)(W4,{...r,ref:e})}),n.indicatorTrack):null});Vg.displayName=Ns;var W4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=_t(Ns,a),i=Sg(a),[l,o]=x.useState(null),[d,u]=x.useState(null),c=n.orientation==="horizontal",p=!!n.value;x.useEffect(()=>{var g;let h=(g=i().find(f=>f.value===n.value))==null?void 0:g.ref.current;h&&o(h)},[i,n.value]);let m=()=>{l&&u({size:c?l.offsetWidth:l.offsetHeight,offset:c?l.offsetLeft:l.offsetTop})};return Rs(l,m),Rs(n.indicatorTrack,m),d?(0,s.jsx)(Ue.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":n.orientation,...r,ref:e,style:{position:"absolute",...c?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...r.style}}):null}),Cr="NavigationMenuContent",zg=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=_t(Cr,t.__scopeNavigationMenu),i=Ag(Cr,t.__scopeNavigationMenu),l=Ct(i.contentRef,e),o=i.value===n.value,d={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return n.viewport?(0,s.jsx)(U4,{forceMount:a,...d,ref:l}):(0,s.jsx)(Yn,{present:a||o,children:(0,s.jsx)(Og,{"data-state":As(o),...d,ref:l,onPointerEnter:_e(t.onPointerEnter,n.onContentEnter),onPointerLeave:_e(t.onPointerLeave,Li(n.onContentLeave)),style:{pointerEvents:!o&&n.isRootMenu?"none":void 0,...d.style}})})});zg.displayName=Cr;var U4=x.forwardRef((t,e)=>{let{onViewportContentChange:a,onViewportContentRemove:r}=_t(Cr,t.__scopeNavigationMenu);return eo(()=>{a(t.value,{ref:e,...t})},[t,e,a]),eo(()=>()=>r(t.value),[t.value,r]),null}),$i="navigationMenu.rootContentDismiss",Og=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,triggerRef:n,focusProxyRef:i,wasEscapeCloseRef:l,onRootContentClose:o,onContentFocusOutside:d,...u}=t,c=_t(Cr,a),p=x.useRef(null),m=Ct(p,e),h=Wg(c.baseId,r),g=Ug(c.baseId,r),f=Sg(a),v=x.useRef(null),{onItemDismiss:b}=c;x.useEffect(()=>{let D=p.current;if(c.isRootMenu&&D){let j=()=>{var k;b(),o(),D.contains(document.activeElement)&&((k=n.current)==null||k.focus())};return D.addEventListener($i,j),()=>D.removeEventListener($i,j)}},[c.isRootMenu,t.value,n,b,o]);let w=x.useMemo(()=>{let D=f().map(C=>C.value);c.dir==="rtl"&&D.reverse();let j=D.indexOf(c.value),k=D.indexOf(c.previousValue),S=r===c.value,N=k===D.indexOf(r);if(!S&&!N)return v.current;let y=(()=>{if(j!==k){if(S&&k!==-1)return j>k?"from-end":"from-start";if(N&&j!==-1)return j>k?"to-start":"to-end"}return null})();return v.current=y,y},[c.previousValue,c.value,c.dir,f,r]);return(0,s.jsx)(Lg,{asChild:!0,children:(0,s.jsx)(ZR,{id:g,"aria-labelledby":h,"data-motion":w,"data-orientation":c.orientation,...u,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var j;let D=new Event($i,{bubbles:!0,cancelable:!0});(j=p.current)==null||j.dispatchEvent(D)},onFocusOutside:_e(t.onFocusOutside,D=>{var k;d();let j=D.target;(k=c.rootNavigationMenu)!=null&&k.contains(j)&&D.preventDefault()}),onPointerDownOutside:_e(t.onPointerDownOutside,D=>{var N;let j=D.target,k=f().some(y=>{var C;return(C=y.ref.current)==null?void 0:C.contains(j)}),S=c.isRootMenu&&((N=c.viewport)==null?void 0:N.contains(j));(k||S||!c.isRootMenu)&&D.preventDefault()}),onKeyDown:_e(t.onKeyDown,D=>{var k;let j=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!j){let S=_s(D.currentTarget),N=document.activeElement,y=S.findIndex(C=>C===N);Ts(D.shiftKey?S.slice(0,y).reverse():S.slice(y+1,S.length))?D.preventDefault():(k=i.current)==null||k.focus()}}),onEscapeKeyDown:_e(t.onEscapeKeyDown,D=>{l.current=!0})})})}),Es="NavigationMenuViewport",$g=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=!!_t(Es,t.__scopeNavigationMenu).value;return(0,s.jsx)(Yn,{present:a||n,children:(0,s.jsx)(K4,{...r,ref:e})})});$g.displayName=Es;var K4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,children:r,...n}=t,i=_t(Es,a),l=Ct(e,i.onViewportChange),o=$4(Cr,t.__scopeNavigationMenu),[d,u]=x.useState(null),[c,p]=x.useState(null),m=d?(d==null?void 0:d.width)+"px":void 0,h=d?(d==null?void 0:d.height)+"px":void 0,g=!!i.value,f=g?i.value:i.previousValue;return Rs(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,s.jsx)(Ue.div,{"data-state":As(g),"data-orientation":i.orientation,...n,ref:l,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":h,...n.style},onPointerEnter:_e(t.onPointerEnter,i.onContentEnter),onPointerLeave:_e(t.onPointerLeave,Li(i.onContentLeave)),children:Array.from(o.items).map(([v,{ref:b,forceMount:w,...D}])=>{let j=f===v;return(0,s.jsx)(Yn,{present:w||j,children:(0,s.jsx)(Og,{...D,ref:M_(b,k=>{j&&k&&p(k)})})},v)})})}),Z4="FocusGroup",Lg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=_t(Z4,a);return(0,s.jsx)(js.Provider,{scope:a,children:(0,s.jsx)(js.Slot,{scope:a,children:(0,s.jsx)(Ue.div,{dir:n.dir,...r,ref:e})})})}),Bg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],q4="FocusGroupItem",Hg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=F4(a),i=_t(q4,a);return(0,s.jsx)(js.ItemSlot,{scope:a,children:(0,s.jsx)(Ue.button,{...r,ref:e,onKeyDown:_e(t.onKeyDown,l=>{if(["Home","End",...Bg].includes(l.key)){let o=n().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(l.key)&&o.reverse(),Bg.includes(l.key)){let d=o.indexOf(l.currentTarget);o=o.slice(d+1)}setTimeout(()=>Ts(o)),l.preventDefault()}})})})});function _s(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function Ts(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}function Y4(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{let a=e.dataset.tabindex;e.setAttribute("tabindex",a)})}}function Rs(t,e){let a=Ht(e);eo(()=>{let r=0;if(t){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return n.observe(t),()=>{window.cancelAnimationFrame(r),n.unobserve(t)}}},[t,a])}function As(t){return t?"open":"closed"}function Wg(t,e){return`${t}-trigger-${e}`}function Ug(t,e){return`${t}-content-${e}`}function Li(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Kg=Ng,Zg=Tg,G4=Ig,qg=Pg,J4=Fg,Yg=Vg,Gg=zg,Jg=$g,kr=J(),Is=x.forwardRef((t,e)=>{let a=(0,kr.c)(16),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,children:r,orientation:i,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",u;a[5]!==n||a[6]!==o||a[7]!==d?(u=K(o,d,"relative z-10",n),a[5]=n,a[6]=o,a[7]=d,a[8]=u):u=a[8];let c;a[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(e0,{}),a[9]=c):c=a[9];let p;return a[10]!==r||a[11]!==i||a[12]!==l||a[13]!==e||a[14]!==u?(p=(0,s.jsxs)(Kg,{ref:e,className:u,orientation:i,...l,children:[r,c]}),a[10]=r,a[11]=i,a[12]=l,a[13]=e,a[14]=u,a[15]=p):p=a[15],p});Is.displayName=Kg.displayName;var Q4=Fl("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),Bi=x.forwardRef((t,e)=>{let a=(0,kr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,orientation:n,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]!==r||a[5]!==n?(l=K(Q4({orientation:n}),r),a[4]=r,a[5]=n,a[6]=l):l=a[6];let o;return a[7]!==i||a[8]!==e||a[9]!==l?(o=(0,s.jsx)(Zg,{ref:e,className:l,...i}),a[7]=i,a[8]=e,a[9]=l,a[10]=o):o=a[10],o});Bi.displayName=Zg.displayName;var Ps=G4,Ms=Fl("group inline-flex rounded-md bg-background px-4 py-2 text-lg font-medium text-(--slate-12) transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{orientation:{horizontal:"w-max items-center justify-center",vertical:"w-full"}},defaultVariants:{orientation:"horizontal"}}),Qg=x.forwardRef((t,e)=>{let a=(0,kr.c)(12),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:n,children:r,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]===n?l=a[5]:(l=K(Ms(),"group",n),a[4]=n,a[5]=l);let o;a[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(YT,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),a[6]=o):o=a[6];let d;return a[7]!==r||a[8]!==i||a[9]!==e||a[10]!==l?(d=(0,s.jsxs)(qg,{ref:e,className:l,...i,children:[r," ",o]}),a[7]=r,a[8]=i,a[9]=e,a[10]=l,a[11]=d):d=a[11],d});Qg.displayName=qg.displayName;var Xg=x.forwardRef((t,e)=>{let a=(0,kr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(Gg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});Xg.displayName=Gg.displayName;var Fs=J4,e0=x.forwardRef((t,e)=>{let a=(0,kr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===Symbol.for("react.memo_cache_sentinel")?(i=K("absolute left-0 top-full flex justify-center"),a[3]=i):i=a[3];let l;a[4]===r?l=a[5]:(l=K("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)",r),a[4]=r,a[5]=l);let o;return a[6]!==n||a[7]!==e||a[8]!==l?(o=(0,s.jsx)("div",{className:i,children:(0,s.jsx)(Jg,{className:l,ref:e,...n})}),a[6]=n,a[7]=e,a[8]=l,a[9]=o):o=a[9],o});e0.displayName=Jg.displayName;var X4=x.forwardRef((t,e)=>{let a=(0,kr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=K("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(Yg,{ref:e,className:i,...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});X4.displayName=Yg.displayName;var t0=J(),eD=class{constructor(){q(this,"tagName","marimo-nav-menu");q(this,"menuItemValidator",L({label:F(),href:F(),description:F().nullish()}));q(this,"menuItemGroupValidator",L({label:F(),items:ee(this.menuItemValidator)}));q(this,"validator",L({items:ee(Ce([this.menuItemValidator,this.menuItemGroupValidator])),orientation:ye(["horizontal","vertical"])}))}render(t){return(0,s.jsx)(St,{children:(0,s.jsx)(tD,{...t.data})})}},tD=t=>{let e=(0,t0.c)(13),{items:a,orientation:r}=t,n=aD,i=rD,l=nD,o;e[0]===r?o=e[1]:(o=m=>"items"in m?r==="horizontal"?(0,s.jsx)(Is,{orientation:"horizontal",children:(0,s.jsx)(Bi,{children:(0,s.jsxs)(Ps,{children:[(0,s.jsx)(Qg,{children:Me({html:m.label})}),(0,s.jsx)(Xg,{children:(0,s.jsx)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",children:m.items.map(h=>(0,s.jsx)(a0,{label:h.label,href:l(h.href),target:i(h.href),children:h.description&&Me({html:h.description})},h.label))})})]})})},m.label):(0,s.jsxs)(Ps,{children:[(0,s.jsx)("div",{className:"inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",children:Me({html:m.label})}),(0,s.jsx)(Bi,{className:"ml-4 auto-collapse-nav",orientation:r,children:m.items.map(h=>(0,s.jsx)(x.Fragment,{children:n((0,s.jsx)(Fs,{href:l(h.href),target:i(h.href),className:Ms({orientation:r}),children:Me({html:h.label})},h.label),h.description)},h.label))})]},m.label):(0,s.jsx)(Ps,{children:(0,s.jsx)(Fs,{href:l(m.href),target:i(m.href),className:Ms({orientation:r}),children:Me({html:m.label})})},m.label),e[0]=r,e[1]=o);let d=o,u;if(e[2]!==a||e[3]!==d){let m;e[5]===d?m=e[6]:(m=h=>d(h),e[5]=d,e[6]=m),u=a.map(m),e[2]=a,e[3]=d,e[4]=u}else u=e[4];let c;e[7]!==r||e[8]!==u?(c=(0,s.jsx)(Bi,{className:"auto-collapse-nav",orientation:r,children:u}),e[7]=r,e[8]=u,e[9]=c):c=e[9];let p;return e[10]!==r||e[11]!==c?(p=(0,s.jsx)(Is,{orientation:r,children:c}),e[10]=r,e[11]=c,e[12]=p):p=e[12],p},a0=x.forwardRef((t,e)=>{let a=(0,t0.c)(19),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,label:i,children:r,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o;a[5]===n?o=a[6]:(o=K("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",n),a[5]=n,a[6]=o);let d;a[7]===i?d=a[8]:(d=Me({html:i}),a[7]=i,a[8]=d);let u;a[9]===d?u=a[10]:(u=(0,s.jsx)("div",{className:"text-base font-medium leading-none",children:d}),a[9]=d,a[10]=u);let c;a[11]===r?c=a[12]:(c=r&&(0,s.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:r}),a[11]=r,a[12]=c);let p;return a[13]!==l||a[14]!==e||a[15]!==o||a[16]!==u||a[17]!==c?(p=(0,s.jsx)("li",{children:(0,s.jsx)(Fs,{asChild:!0,children:(0,s.jsxs)("a",{ref:e,className:o,...l,children:[u,c]})})}),a[13]=l,a[14]=e,a[15]=o,a[16]=u,a[17]=c,a[18]=p):p=a[18],p});a0.displayName="ListItem";function aD(t,e){return e?(0,s.jsx)(Pt,{delayDuration:200,content:Me({html:e}),children:t}):t}function rD(t){return t.startsWith("http")?"_blank":"_self"}function nD(t){return D_({href:t,queryParams:new URL(globalThis.location.href).search,keys:[wu.filePath]})}function iD(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?lT(t,e):typeof t=="object"&&typeof e=="object"?lD(t,e):!1}function lD(t,e){return Object.keys(t).length===Object.keys(e).length&&za.keys(t).every(a=>t[a]===e[a])}function Vs(t,e){if(!(window!=null&&window.customElements)){se.warn("Custom elements not supported");return}if(window.customElements.get(t)){se.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var oD=J();const sD=t=>{let e=(0,oD.c)(16),{error:a,badData:r,shadowRoot:n}=t;if(a instanceof ME){let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(qu,{children:"Bad Data"}),e[0]=l):l=e[0];let o;e[1]===a.issues?o=e[2]:(o=a.issues.map(uD),e[1]=a.issues,e[2]=o);let d;e[3]===o?d=e[4]:(d=(0,s.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,s.jsx)("ul",{children:o})}),e[3]=o,e[4]=d);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(DA,{className:"py-2 text-[0.84375rem]",children:"View Data:"}),e[5]=u):u=e[5];let c;e[6]===r?c=e[7]:(c=(0,s.jsx)(Q1,{data:r}),e[6]=r,e[7]=c);let p;e[8]!==n||e[9]!==c?(p=(0,s.jsx)(jA,{type:"single",collapsible:!0,children:(0,s.jsxs)(wA,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[u,(0,s.jsx)(CA,{className:"text-[0.84375rem]",children:(0,s.jsx)(J1,{container:n,children:c})})]})}),e[8]=n,e[9]=c,e[10]=p):p=e[10];let m;return e[11]!==d||e[12]!==p?(m=(0,s.jsxs)(uo,{variant:"destructive",children:[l,d,p]}),e[11]=d,e[12]=p,e[13]=m):m=e[13],m}let i;return e[14]===a.message?i=e[15]:(i=(0,s.jsx)("div",{children:a.message}),e[14]=a.message,e[15]=i),i};function dD(t,e,a){return(0,s.jsx)(sD,{error:t,badData:e,shadowRoot:a})}function uD(t){let e=t.path.join(".");return(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"font-bold",children:e}),": ",t.message]},e)}function cD({hostElement:t,plugin:e,children:a,getInitialValue:r},n){let[i,l]=(0,x.useState)(a),[o,d]=(0,x.useState)(r()),{theme:u}=qr(),[c,p]=(0,x.useState)(()=>e.validator.safeParse(pu(t)));(0,x.useImperativeHandle)(n,()=>({reset:()=>{d(r()),p(e.validator.safeParse(pu(t)))},setChildren:g=>{l(g)}})),Ml(t,YE.TYPE,g=>{g.detail.element===t&&d(g.detail.value)}),(0,x.useEffect)(()=>{let g=new MutationObserver(f=>{f.some(v=>{var b;return v.type==="attributes"&&((b=v.attributeName)==null?void 0:b.startsWith("data-"))})&&p(e.validator.safeParse(pu(t)))});return g.observe(t,{attributes:!0}),()=>{g.disconnect()}},[t,e.validator]);let m=Oe(g=>{d(f=>{let v=Oa.asUpdater(g)(f);return iD(v,f)||t.dispatchEvent(L1(v,t)),v})}),h=(0,x.useMemo)(()=>{if(!e.functions)return{};let g={};for(let[f,v]of za.entries(e.functions)){let{input:b,output:w}=v;g[f]=async(...D)=>{var C;Br(D.length<=1,`Plugin functions only supports a single argument. Called ${f}`);let j=Os(t);Br(j,"Object ID should exist");let k=Vl(),S=(C=_1.findElementThroughShadowDOMs(t))==null?void 0:C.id,N=S?_1.parse(S):null;if(N&&!k){let _=ze.get(R1),E=_.cellRuntime[N],R=_.cellData[N];if(SE({executionTime:E.runElapsedTimeMs??R.lastExecutionTime,status:E.status,errored:E.errored,interrupted:E.interrupted,stopped:E.stopped}))throw new bA}else se.warn(`Cell ID ${N} cannot be found`);let y=await ZE.request({args:o0(b,D[0]),functionName:f,namespace:j});if(y.status.code!=="ok")throw se.error(y.status),Error(y.status.message||"Unknown error");return o0(w,y.return_value)}}return g},[e.functions,t]);return c.success?(0,s.jsx)(YR,{children:(0,s.jsx)("div",{className:`contents ${u}`,children:(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{}),children:e.render({setValue:m,value:o,data:c.data,children:i,host:t,functions:h})})})}):dD(c.error,za.mapValues(t.dataset,g=>typeof g=="string"?S1(g):g),t.shadowRoot)}var mD=x.forwardRef(cD),zs=new Map,r0="__custom_marimo_element__";function n0(t){let e=class extends HTMLElement{constructor(){super();q(this,"mounted",!1);q(this,"pluginRef",(0,x.createRef)());q(this,"__type__",r0);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var r;(r=this.pluginRef.current)==null||r.setChildren(this.getChildren())})}connectedCallback(){this.mounted||(Br(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=cy.createRoot(this.shadowRoot),this.mountReactComponent()),this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){var r;this.observer.disconnect(),(r=this.root)==null||r.unmount(),this.mounted&&(this.mounted=!1)}reset(){this.dispatchEvent(L1(S1(this.dataset.initialValue),this)),this.rerender()}rerender(){var r;(r=this.pluginRef.current)==null||r.reset()}getChildren(){return this.children.length===0?null:this.children.length===1?Me({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((r,n)=>(0,s.jsx)(x.Fragment,{children:Me({html:r.outerHTML,alwaysSanitizeHtml:!1})},n))}async mountReactComponent(){this.mounted=!0,Br(this.root,"Root must be defined"),this.root.render((0,s.jsx)(_l,{store:ze,children:(0,s.jsx)(bs,{children:(0,s.jsx)(mD,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>kE(this,a_.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let r=this.shadowRoot;if(Br(r,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){se.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser."),this.copyStylesFallback();return}let n=Array.from(document.styleSheets).filter(i=>i.ownerNode instanceof HTMLElement&&i.ownerNode.dataset.viteDevId?!0:i0(i));for(let i of n){let l=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(l&&!zs.has(l)){let o=new CSSStyleSheet;try{o.replaceSync(Array.from(i.cssRules).map(d=>d.cssText.includes("@import")?"":d.cssText).join(`
7
7
  `))}catch{}zs.set(l,o)}}if(r.adoptedStyleSheets=[...zs.values()],t.cssStyles){let i=new CSSStyleSheet;i.replaceSync(t.cssStyles.join(`
8
8
  `)),r.adoptedStyleSheets=[...r.adoptedStyleSheets,i]}}copyStylesFallback(){let r=this.shadowRoot;Br(r,"Shadow root should exist"),se.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser.");let n=Array.from(document.styleSheets).flatMap(i=>{if(!i0(i))return[];let l=document.createElement("style");try{l.textContent=Array.from(i.cssRules).map(o=>o.cssText).join(`
9
9
  `)}catch{return[]}return[l]});if(r.append(...n),t.cssStyles){let i=document.createElement("style");i.textContent=t.cssStyles.join(`