From 50b225533d8775927a5577b3d3725ec9faeae354 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 12:39:35 +0200 Subject: [PATCH] Deploy to GitHub pages --- android-chrome-192x192.png | Bin 0 -> 7067 bytes android-chrome-512x512.png | Bin 0 -> 19773 bytes apple-touch-icon.png | Bin 0 -> 6687 bytes asset-manifest.json | 121 ++++++++ assets/DemoBanner-BMlqHEuP.js | 2 + assets/DemoBanner-BMlqHEuP.js.map | 1 + assets/DemoBanner-Cdjs6Bq5.css | 1 + assets/Radio-Ba1gGC1A.js | 10 + assets/Radio-Ba1gGC1A.js.map | 1 + assets/index-BUdM5Wjz.js | 43 +++ assets/index-BUdM5Wjz.js.map | 1 + assets/index-C9cvcjHs.js | 292 ++++++++++++++++++ assets/index-C9cvcjHs.js.map | 1 + assets/index-DwGLgM-L.css | 1 + assets/internAktivitetTypes-DxmhvqMk.js | 2 + assets/internAktivitetTypes-DxmhvqMk.js.map | 1 + assets/logo-DXVplSjy.png | Bin 0 -> 4289 bytes assets/pdf.worker.min-DKQKFyKK.js | 22 ++ assets/rootWrapper-Bpej-Egy.js | 2 + assets/rootWrapper-Bpej-Egy.js.map | 1 + assets/routerConfig-2hWvocwZ.js | 302 ++++++++++++++++++ assets/routerConfig-2hWvocwZ.js.map | 1 + assets/routerConfig-BorZbQMl.css | 1 + assets/subDays-C3WNc7zq.js | 2 + assets/subDays-C3WNc7zq.js.map | 1 + assets/webcomponentWrapper-DmPGxOiI.js | 2 + assets/webcomponentWrapper-DmPGxOiI.js.map | 1 + cmaps/78-EUC-H.bcmap | Bin 0 -> 2404 bytes cmaps/78-EUC-V.bcmap | Bin 0 -> 173 bytes cmaps/78-H.bcmap | Bin 0 -> 2379 bytes cmaps/78-RKSJ-H.bcmap | Bin 0 -> 2398 bytes cmaps/78-RKSJ-V.bcmap | Bin 0 -> 173 bytes cmaps/78-V.bcmap | Bin 0 -> 169 bytes cmaps/78ms-RKSJ-H.bcmap | Bin 0 -> 2651 bytes cmaps/78ms-RKSJ-V.bcmap | Bin 0 -> 290 bytes cmaps/83pv-RKSJ-H.bcmap | Bin 0 -> 905 bytes cmaps/90ms-RKSJ-H.bcmap | Bin 0 -> 721 bytes cmaps/90ms-RKSJ-V.bcmap | Bin 0 -> 290 bytes cmaps/90msp-RKSJ-H.bcmap | Bin 0 -> 715 bytes cmaps/90msp-RKSJ-V.bcmap | Bin 0 -> 291 bytes cmaps/90pv-RKSJ-H.bcmap | Bin 0 -> 982 bytes cmaps/90pv-RKSJ-V.bcmap | Bin 0 -> 260 bytes cmaps/Add-H.bcmap | Bin 0 -> 2419 bytes cmaps/Add-RKSJ-H.bcmap | Bin 0 -> 2413 bytes cmaps/Add-RKSJ-V.bcmap | Bin 0 -> 287 bytes cmaps/Add-V.bcmap | Bin 0 -> 282 bytes cmaps/Adobe-CNS1-0.bcmap | Bin 0 -> 317 bytes cmaps/Adobe-CNS1-1.bcmap | Bin 0 -> 371 bytes cmaps/Adobe-CNS1-2.bcmap | Bin 0 -> 376 bytes cmaps/Adobe-CNS1-3.bcmap | Bin 0 -> 401 bytes cmaps/Adobe-CNS1-4.bcmap | Bin 0 -> 405 bytes cmaps/Adobe-CNS1-5.bcmap | Bin 0 -> 406 bytes cmaps/Adobe-CNS1-6.bcmap | Bin 0 -> 406 bytes cmaps/Adobe-CNS1-UCS2.bcmap | Bin 0 -> 41193 bytes cmaps/Adobe-GB1-0.bcmap | Bin 0 -> 217 bytes cmaps/Adobe-GB1-1.bcmap | Bin 0 -> 250 bytes cmaps/Adobe-GB1-2.bcmap | Bin 0 -> 465 bytes cmaps/Adobe-GB1-3.bcmap | Bin 0 -> 470 bytes cmaps/Adobe-GB1-4.bcmap | Bin 0 -> 601 bytes cmaps/Adobe-GB1-5.bcmap | Bin 0 -> 625 bytes cmaps/Adobe-GB1-UCS2.bcmap | Bin 0 -> 33974 bytes cmaps/Adobe-Japan1-0.bcmap | Bin 0 -> 225 bytes cmaps/Adobe-Japan1-1.bcmap | Bin 0 -> 226 bytes cmaps/Adobe-Japan1-2.bcmap | Bin 0 -> 233 bytes cmaps/Adobe-Japan1-3.bcmap | Bin 0 -> 242 bytes cmaps/Adobe-Japan1-4.bcmap | Bin 0 -> 337 bytes cmaps/Adobe-Japan1-5.bcmap | Bin 0 -> 430 bytes cmaps/Adobe-Japan1-6.bcmap | Bin 0 -> 485 bytes cmaps/Adobe-Japan1-UCS2.bcmap | Bin 0 -> 40951 bytes cmaps/Adobe-Korea1-0.bcmap | Bin 0 -> 241 bytes cmaps/Adobe-Korea1-1.bcmap | Bin 0 -> 386 bytes cmaps/Adobe-Korea1-2.bcmap | Bin 0 -> 391 bytes cmaps/Adobe-Korea1-UCS2.bcmap | Bin 0 -> 23293 bytes cmaps/B5-H.bcmap | Bin 0 -> 1086 bytes cmaps/B5-V.bcmap | Bin 0 -> 142 bytes cmaps/B5pc-H.bcmap | Bin 0 -> 1099 bytes cmaps/B5pc-V.bcmap | Bin 0 -> 144 bytes cmaps/CNS-EUC-H.bcmap | Bin 0 -> 1780 bytes cmaps/CNS-EUC-V.bcmap | Bin 0 -> 1920 bytes cmaps/CNS1-H.bcmap | Bin 0 -> 706 bytes cmaps/CNS1-V.bcmap | Bin 0 -> 143 bytes cmaps/CNS2-H.bcmap | Bin 0 -> 504 bytes cmaps/CNS2-V.bcmap | 3 + cmaps/ETHK-B5-H.bcmap | Bin 0 -> 4426 bytes cmaps/ETHK-B5-V.bcmap | Bin 0 -> 158 bytes cmaps/ETen-B5-H.bcmap | Bin 0 -> 1125 bytes cmaps/ETen-B5-V.bcmap | Bin 0 -> 158 bytes cmaps/ETenms-B5-H.bcmap | 3 + cmaps/ETenms-B5-V.bcmap | Bin 0 -> 172 bytes cmaps/EUC-H.bcmap | Bin 0 -> 578 bytes cmaps/EUC-V.bcmap | Bin 0 -> 170 bytes cmaps/Ext-H.bcmap | Bin 0 -> 2536 bytes cmaps/Ext-RKSJ-H.bcmap | Bin 0 -> 2542 bytes cmaps/Ext-RKSJ-V.bcmap | Bin 0 -> 218 bytes cmaps/Ext-V.bcmap | Bin 0 -> 215 bytes cmaps/GB-EUC-H.bcmap | Bin 0 -> 549 bytes cmaps/GB-EUC-V.bcmap | Bin 0 -> 179 bytes cmaps/GB-H.bcmap | 4 + cmaps/GB-V.bcmap | Bin 0 -> 175 bytes cmaps/GBK-EUC-H.bcmap | Bin 0 -> 14692 bytes cmaps/GBK-EUC-V.bcmap | Bin 0 -> 180 bytes cmaps/GBK2K-H.bcmap | Bin 0 -> 19662 bytes cmaps/GBK2K-V.bcmap | Bin 0 -> 219 bytes cmaps/GBKp-EUC-H.bcmap | Bin 0 -> 14686 bytes cmaps/GBKp-EUC-V.bcmap | Bin 0 -> 181 bytes cmaps/GBT-EUC-H.bcmap | Bin 0 -> 7290 bytes cmaps/GBT-EUC-V.bcmap | Bin 0 -> 180 bytes cmaps/GBT-H.bcmap | Bin 0 -> 7269 bytes cmaps/GBT-V.bcmap | Bin 0 -> 176 bytes cmaps/GBTpc-EUC-H.bcmap | Bin 0 -> 7298 bytes cmaps/GBTpc-EUC-V.bcmap | Bin 0 -> 182 bytes cmaps/GBpc-EUC-H.bcmap | Bin 0 -> 557 bytes cmaps/GBpc-EUC-V.bcmap | Bin 0 -> 181 bytes cmaps/H.bcmap | Bin 0 -> 553 bytes cmaps/HKdla-B5-H.bcmap | Bin 0 -> 2654 bytes cmaps/HKdla-B5-V.bcmap | Bin 0 -> 148 bytes cmaps/HKdlb-B5-H.bcmap | Bin 0 -> 2414 bytes cmaps/HKdlb-B5-V.bcmap | Bin 0 -> 148 bytes cmaps/HKgccs-B5-H.bcmap | Bin 0 -> 2292 bytes cmaps/HKgccs-B5-V.bcmap | Bin 0 -> 149 bytes cmaps/HKm314-B5-H.bcmap | Bin 0 -> 1772 bytes cmaps/HKm314-B5-V.bcmap | Bin 0 -> 149 bytes cmaps/HKm471-B5-H.bcmap | Bin 0 -> 2171 bytes cmaps/HKm471-B5-V.bcmap | Bin 0 -> 149 bytes cmaps/HKscs-B5-H.bcmap | Bin 0 -> 4437 bytes cmaps/HKscs-B5-V.bcmap | Bin 0 -> 159 bytes cmaps/Hankaku.bcmap | Bin 0 -> 132 bytes cmaps/Hiragana.bcmap | Bin 0 -> 124 bytes cmaps/KSC-EUC-H.bcmap | Bin 0 -> 1848 bytes cmaps/KSC-EUC-V.bcmap | Bin 0 -> 164 bytes cmaps/KSC-H.bcmap | Bin 0 -> 1831 bytes cmaps/KSC-Johab-H.bcmap | Bin 0 -> 16791 bytes cmaps/KSC-Johab-V.bcmap | Bin 0 -> 166 bytes cmaps/KSC-V.bcmap | Bin 0 -> 160 bytes cmaps/KSCms-UHC-H.bcmap | Bin 0 -> 2787 bytes cmaps/KSCms-UHC-HW-H.bcmap | Bin 0 -> 2789 bytes cmaps/KSCms-UHC-HW-V.bcmap | Bin 0 -> 169 bytes cmaps/KSCms-UHC-V.bcmap | Bin 0 -> 166 bytes cmaps/KSCpc-EUC-H.bcmap | Bin 0 -> 2024 bytes cmaps/KSCpc-EUC-V.bcmap | Bin 0 -> 166 bytes cmaps/Katakana.bcmap | Bin 0 -> 100 bytes cmaps/LICENSE | 36 +++ cmaps/NWP-H.bcmap | Bin 0 -> 2765 bytes cmaps/NWP-V.bcmap | Bin 0 -> 252 bytes cmaps/RKSJ-H.bcmap | Bin 0 -> 534 bytes cmaps/RKSJ-V.bcmap | Bin 0 -> 170 bytes cmaps/Roman.bcmap | Bin 0 -> 96 bytes cmaps/UniCNS-UCS2-H.bcmap | Bin 0 -> 48280 bytes cmaps/UniCNS-UCS2-V.bcmap | Bin 0 -> 156 bytes cmaps/UniCNS-UTF16-H.bcmap | Bin 0 -> 50419 bytes cmaps/UniCNS-UTF16-V.bcmap | Bin 0 -> 156 bytes cmaps/UniCNS-UTF32-H.bcmap | Bin 0 -> 52679 bytes cmaps/UniCNS-UTF32-V.bcmap | Bin 0 -> 160 bytes cmaps/UniCNS-UTF8-H.bcmap | Bin 0 -> 53629 bytes cmaps/UniCNS-UTF8-V.bcmap | Bin 0 -> 157 bytes cmaps/UniGB-UCS2-H.bcmap | Bin 0 -> 43366 bytes cmaps/UniGB-UCS2-V.bcmap | Bin 0 -> 193 bytes cmaps/UniGB-UTF16-H.bcmap | Bin 0 -> 44086 bytes cmaps/UniGB-UTF16-V.bcmap | Bin 0 -> 178 bytes cmaps/UniGB-UTF32-H.bcmap | Bin 0 -> 45738 bytes cmaps/UniGB-UTF32-V.bcmap | Bin 0 -> 182 bytes cmaps/UniGB-UTF8-H.bcmap | Bin 0 -> 46837 bytes cmaps/UniGB-UTF8-V.bcmap | Bin 0 -> 181 bytes cmaps/UniJIS-UCS2-H.bcmap | Bin 0 -> 25439 bytes cmaps/UniJIS-UCS2-HW-H.bcmap | Bin 0 -> 119 bytes cmaps/UniJIS-UCS2-HW-V.bcmap | Bin 0 -> 680 bytes cmaps/UniJIS-UCS2-V.bcmap | Bin 0 -> 664 bytes cmaps/UniJIS-UTF16-H.bcmap | Bin 0 -> 39443 bytes cmaps/UniJIS-UTF16-V.bcmap | Bin 0 -> 643 bytes cmaps/UniJIS-UTF32-H.bcmap | Bin 0 -> 40539 bytes cmaps/UniJIS-UTF32-V.bcmap | Bin 0 -> 677 bytes cmaps/UniJIS-UTF8-H.bcmap | Bin 0 -> 41695 bytes cmaps/UniJIS-UTF8-V.bcmap | Bin 0 -> 678 bytes cmaps/UniJIS2004-UTF16-H.bcmap | Bin 0 -> 39534 bytes cmaps/UniJIS2004-UTF16-V.bcmap | Bin 0 -> 647 bytes cmaps/UniJIS2004-UTF32-H.bcmap | Bin 0 -> 40630 bytes cmaps/UniJIS2004-UTF32-V.bcmap | Bin 0 -> 681 bytes cmaps/UniJIS2004-UTF8-H.bcmap | Bin 0 -> 41779 bytes cmaps/UniJIS2004-UTF8-V.bcmap | Bin 0 -> 682 bytes cmaps/UniJISPro-UCS2-HW-V.bcmap | Bin 0 -> 705 bytes cmaps/UniJISPro-UCS2-V.bcmap | Bin 0 -> 689 bytes cmaps/UniJISPro-UTF8-V.bcmap | Bin 0 -> 726 bytes cmaps/UniJISX0213-UTF32-H.bcmap | Bin 0 -> 40517 bytes cmaps/UniJISX0213-UTF32-V.bcmap | Bin 0 -> 684 bytes cmaps/UniJISX02132004-UTF32-H.bcmap | Bin 0 -> 40608 bytes cmaps/UniJISX02132004-UTF32-V.bcmap | Bin 0 -> 688 bytes cmaps/UniKS-UCS2-H.bcmap | Bin 0 -> 25783 bytes cmaps/UniKS-UCS2-V.bcmap | Bin 0 -> 178 bytes cmaps/UniKS-UTF16-H.bcmap | Bin 0 -> 26327 bytes cmaps/UniKS-UTF16-V.bcmap | Bin 0 -> 164 bytes cmaps/UniKS-UTF32-H.bcmap | Bin 0 -> 26451 bytes cmaps/UniKS-UTF32-V.bcmap | Bin 0 -> 168 bytes cmaps/UniKS-UTF8-H.bcmap | Bin 0 -> 27790 bytes cmaps/UniKS-UTF8-V.bcmap | Bin 0 -> 169 bytes cmaps/V.bcmap | Bin 0 -> 166 bytes cmaps/WP-Symbol.bcmap | Bin 0 -> 179 bytes favicon-16x16.png | Bin 0 -> 871 bytes favicon-32x32.png | Bin 0 -> 1364 bytes favicon.ico | Bin 0 -> 15086 bytes index.html | 1 + mockServiceWorker.js | 303 +++++++++++++++++++ site.webmanifest | 19 ++ standard_fonts/FoxitDingbats.pfb | Bin 0 -> 29513 bytes standard_fonts/FoxitFixed.pfb | Bin 0 -> 17597 bytes standard_fonts/FoxitFixedBold.pfb | Bin 0 -> 18055 bytes standard_fonts/FoxitFixedBoldItalic.pfb | Bin 0 -> 19151 bytes standard_fonts/FoxitFixedItalic.pfb | Bin 0 -> 18746 bytes standard_fonts/FoxitSerif.pfb | Bin 0 -> 19469 bytes standard_fonts/FoxitSerifBold.pfb | Bin 0 -> 19395 bytes standard_fonts/FoxitSerifBoldItalic.pfb | Bin 0 -> 20733 bytes standard_fonts/FoxitSerifItalic.pfb | Bin 0 -> 21227 bytes standard_fonts/FoxitSymbol.pfb | Bin 0 -> 16729 bytes standard_fonts/LICENSE_FOXIT | 27 ++ standard_fonts/LICENSE_LIBERATION | 102 +++++++ standard_fonts/LiberationSans-Bold.ttf | Bin 0 -> 137052 bytes standard_fonts/LiberationSans-BoldItalic.ttf | Bin 0 -> 135124 bytes standard_fonts/LiberationSans-Italic.ttf | Bin 0 -> 162036 bytes standard_fonts/LiberationSans-Regular.ttf | Bin 0 -> 139512 bytes 218 files changed, 1310 insertions(+) create mode 100644 android-chrome-192x192.png create mode 100644 android-chrome-512x512.png create mode 100644 apple-touch-icon.png create mode 100644 asset-manifest.json create mode 100644 assets/DemoBanner-BMlqHEuP.js create mode 100644 assets/DemoBanner-BMlqHEuP.js.map create mode 100644 assets/DemoBanner-Cdjs6Bq5.css create mode 100644 assets/Radio-Ba1gGC1A.js create mode 100644 assets/Radio-Ba1gGC1A.js.map create mode 100644 assets/index-BUdM5Wjz.js create mode 100644 assets/index-BUdM5Wjz.js.map create mode 100644 assets/index-C9cvcjHs.js create mode 100644 assets/index-C9cvcjHs.js.map create mode 100644 assets/index-DwGLgM-L.css create mode 100644 assets/internAktivitetTypes-DxmhvqMk.js create mode 100644 assets/internAktivitetTypes-DxmhvqMk.js.map create mode 100644 assets/logo-DXVplSjy.png create mode 100644 assets/pdf.worker.min-DKQKFyKK.js create mode 100644 assets/rootWrapper-Bpej-Egy.js create mode 100644 assets/rootWrapper-Bpej-Egy.js.map create mode 100644 assets/routerConfig-2hWvocwZ.js create mode 100644 assets/routerConfig-2hWvocwZ.js.map create mode 100644 assets/routerConfig-BorZbQMl.css create mode 100644 assets/subDays-C3WNc7zq.js create mode 100644 assets/subDays-C3WNc7zq.js.map create mode 100644 assets/webcomponentWrapper-DmPGxOiI.js create mode 100644 assets/webcomponentWrapper-DmPGxOiI.js.map create mode 100644 cmaps/78-EUC-H.bcmap create mode 100644 cmaps/78-EUC-V.bcmap create mode 100644 cmaps/78-H.bcmap create mode 100644 cmaps/78-RKSJ-H.bcmap create mode 100644 cmaps/78-RKSJ-V.bcmap create mode 100644 cmaps/78-V.bcmap create mode 100644 cmaps/78ms-RKSJ-H.bcmap create mode 100644 cmaps/78ms-RKSJ-V.bcmap create mode 100644 cmaps/83pv-RKSJ-H.bcmap create mode 100644 cmaps/90ms-RKSJ-H.bcmap create mode 100644 cmaps/90ms-RKSJ-V.bcmap create mode 100644 cmaps/90msp-RKSJ-H.bcmap create mode 100644 cmaps/90msp-RKSJ-V.bcmap create mode 100644 cmaps/90pv-RKSJ-H.bcmap create mode 100644 cmaps/90pv-RKSJ-V.bcmap create mode 100644 cmaps/Add-H.bcmap create mode 100644 cmaps/Add-RKSJ-H.bcmap create mode 100644 cmaps/Add-RKSJ-V.bcmap create mode 100644 cmaps/Add-V.bcmap create mode 100644 cmaps/Adobe-CNS1-0.bcmap create mode 100644 cmaps/Adobe-CNS1-1.bcmap create mode 100644 cmaps/Adobe-CNS1-2.bcmap create mode 100644 cmaps/Adobe-CNS1-3.bcmap create mode 100644 cmaps/Adobe-CNS1-4.bcmap create mode 100644 cmaps/Adobe-CNS1-5.bcmap create mode 100644 cmaps/Adobe-CNS1-6.bcmap create mode 100644 cmaps/Adobe-CNS1-UCS2.bcmap create mode 100644 cmaps/Adobe-GB1-0.bcmap create mode 100644 cmaps/Adobe-GB1-1.bcmap create mode 100644 cmaps/Adobe-GB1-2.bcmap create mode 100644 cmaps/Adobe-GB1-3.bcmap create mode 100644 cmaps/Adobe-GB1-4.bcmap create mode 100644 cmaps/Adobe-GB1-5.bcmap create mode 100644 cmaps/Adobe-GB1-UCS2.bcmap create mode 100644 cmaps/Adobe-Japan1-0.bcmap create mode 100644 cmaps/Adobe-Japan1-1.bcmap create mode 100644 cmaps/Adobe-Japan1-2.bcmap create mode 100644 cmaps/Adobe-Japan1-3.bcmap create mode 100644 cmaps/Adobe-Japan1-4.bcmap create mode 100644 cmaps/Adobe-Japan1-5.bcmap create mode 100644 cmaps/Adobe-Japan1-6.bcmap create mode 100644 cmaps/Adobe-Japan1-UCS2.bcmap create mode 100644 cmaps/Adobe-Korea1-0.bcmap create mode 100644 cmaps/Adobe-Korea1-1.bcmap create mode 100644 cmaps/Adobe-Korea1-2.bcmap create mode 100644 cmaps/Adobe-Korea1-UCS2.bcmap create mode 100644 cmaps/B5-H.bcmap create mode 100644 cmaps/B5-V.bcmap create mode 100644 cmaps/B5pc-H.bcmap create mode 100644 cmaps/B5pc-V.bcmap create mode 100644 cmaps/CNS-EUC-H.bcmap create mode 100644 cmaps/CNS-EUC-V.bcmap create mode 100644 cmaps/CNS1-H.bcmap create mode 100644 cmaps/CNS1-V.bcmap create mode 100644 cmaps/CNS2-H.bcmap create mode 100644 cmaps/CNS2-V.bcmap create mode 100644 cmaps/ETHK-B5-H.bcmap create mode 100644 cmaps/ETHK-B5-V.bcmap create mode 100644 cmaps/ETen-B5-H.bcmap create mode 100644 cmaps/ETen-B5-V.bcmap create mode 100644 cmaps/ETenms-B5-H.bcmap create mode 100644 cmaps/ETenms-B5-V.bcmap create mode 100644 cmaps/EUC-H.bcmap create mode 100644 cmaps/EUC-V.bcmap create mode 100644 cmaps/Ext-H.bcmap create mode 100644 cmaps/Ext-RKSJ-H.bcmap create mode 100644 cmaps/Ext-RKSJ-V.bcmap create mode 100644 cmaps/Ext-V.bcmap create mode 100644 cmaps/GB-EUC-H.bcmap create mode 100644 cmaps/GB-EUC-V.bcmap create mode 100644 cmaps/GB-H.bcmap create mode 100644 cmaps/GB-V.bcmap create mode 100644 cmaps/GBK-EUC-H.bcmap create mode 100644 cmaps/GBK-EUC-V.bcmap create mode 100644 cmaps/GBK2K-H.bcmap create mode 100644 cmaps/GBK2K-V.bcmap create mode 100644 cmaps/GBKp-EUC-H.bcmap create mode 100644 cmaps/GBKp-EUC-V.bcmap create mode 100644 cmaps/GBT-EUC-H.bcmap create mode 100644 cmaps/GBT-EUC-V.bcmap create mode 100644 cmaps/GBT-H.bcmap create mode 100644 cmaps/GBT-V.bcmap create mode 100644 cmaps/GBTpc-EUC-H.bcmap create mode 100644 cmaps/GBTpc-EUC-V.bcmap create mode 100644 cmaps/GBpc-EUC-H.bcmap create mode 100644 cmaps/GBpc-EUC-V.bcmap create mode 100644 cmaps/H.bcmap create mode 100644 cmaps/HKdla-B5-H.bcmap create mode 100644 cmaps/HKdla-B5-V.bcmap create mode 100644 cmaps/HKdlb-B5-H.bcmap create mode 100644 cmaps/HKdlb-B5-V.bcmap create mode 100644 cmaps/HKgccs-B5-H.bcmap create mode 100644 cmaps/HKgccs-B5-V.bcmap create mode 100644 cmaps/HKm314-B5-H.bcmap create mode 100644 cmaps/HKm314-B5-V.bcmap create mode 100644 cmaps/HKm471-B5-H.bcmap create mode 100644 cmaps/HKm471-B5-V.bcmap create mode 100644 cmaps/HKscs-B5-H.bcmap create mode 100644 cmaps/HKscs-B5-V.bcmap create mode 100644 cmaps/Hankaku.bcmap create mode 100644 cmaps/Hiragana.bcmap create mode 100644 cmaps/KSC-EUC-H.bcmap create mode 100644 cmaps/KSC-EUC-V.bcmap create mode 100644 cmaps/KSC-H.bcmap create mode 100644 cmaps/KSC-Johab-H.bcmap create mode 100644 cmaps/KSC-Johab-V.bcmap create mode 100644 cmaps/KSC-V.bcmap create mode 100644 cmaps/KSCms-UHC-H.bcmap create mode 100644 cmaps/KSCms-UHC-HW-H.bcmap create mode 100644 cmaps/KSCms-UHC-HW-V.bcmap create mode 100644 cmaps/KSCms-UHC-V.bcmap create mode 100644 cmaps/KSCpc-EUC-H.bcmap create mode 100644 cmaps/KSCpc-EUC-V.bcmap create mode 100644 cmaps/Katakana.bcmap create mode 100644 cmaps/LICENSE create mode 100644 cmaps/NWP-H.bcmap create mode 100644 cmaps/NWP-V.bcmap create mode 100644 cmaps/RKSJ-H.bcmap create mode 100644 cmaps/RKSJ-V.bcmap create mode 100644 cmaps/Roman.bcmap create mode 100644 cmaps/UniCNS-UCS2-H.bcmap create mode 100644 cmaps/UniCNS-UCS2-V.bcmap create mode 100644 cmaps/UniCNS-UTF16-H.bcmap create mode 100644 cmaps/UniCNS-UTF16-V.bcmap create mode 100644 cmaps/UniCNS-UTF32-H.bcmap create mode 100644 cmaps/UniCNS-UTF32-V.bcmap create mode 100644 cmaps/UniCNS-UTF8-H.bcmap create mode 100644 cmaps/UniCNS-UTF8-V.bcmap create mode 100644 cmaps/UniGB-UCS2-H.bcmap create mode 100644 cmaps/UniGB-UCS2-V.bcmap create mode 100644 cmaps/UniGB-UTF16-H.bcmap create mode 100644 cmaps/UniGB-UTF16-V.bcmap create mode 100644 cmaps/UniGB-UTF32-H.bcmap create mode 100644 cmaps/UniGB-UTF32-V.bcmap create mode 100644 cmaps/UniGB-UTF8-H.bcmap create mode 100644 cmaps/UniGB-UTF8-V.bcmap create mode 100644 cmaps/UniJIS-UCS2-H.bcmap create mode 100644 cmaps/UniJIS-UCS2-HW-H.bcmap create mode 100644 cmaps/UniJIS-UCS2-HW-V.bcmap create mode 100644 cmaps/UniJIS-UCS2-V.bcmap create mode 100644 cmaps/UniJIS-UTF16-H.bcmap create mode 100644 cmaps/UniJIS-UTF16-V.bcmap create mode 100644 cmaps/UniJIS-UTF32-H.bcmap create mode 100644 cmaps/UniJIS-UTF32-V.bcmap create mode 100644 cmaps/UniJIS-UTF8-H.bcmap create mode 100644 cmaps/UniJIS-UTF8-V.bcmap create mode 100644 cmaps/UniJIS2004-UTF16-H.bcmap create mode 100644 cmaps/UniJIS2004-UTF16-V.bcmap create mode 100644 cmaps/UniJIS2004-UTF32-H.bcmap create mode 100644 cmaps/UniJIS2004-UTF32-V.bcmap create mode 100644 cmaps/UniJIS2004-UTF8-H.bcmap create mode 100644 cmaps/UniJIS2004-UTF8-V.bcmap create mode 100644 cmaps/UniJISPro-UCS2-HW-V.bcmap create mode 100644 cmaps/UniJISPro-UCS2-V.bcmap create mode 100644 cmaps/UniJISPro-UTF8-V.bcmap create mode 100644 cmaps/UniJISX0213-UTF32-H.bcmap create mode 100644 cmaps/UniJISX0213-UTF32-V.bcmap create mode 100644 cmaps/UniJISX02132004-UTF32-H.bcmap create mode 100644 cmaps/UniJISX02132004-UTF32-V.bcmap create mode 100644 cmaps/UniKS-UCS2-H.bcmap create mode 100644 cmaps/UniKS-UCS2-V.bcmap create mode 100644 cmaps/UniKS-UTF16-H.bcmap create mode 100644 cmaps/UniKS-UTF16-V.bcmap create mode 100644 cmaps/UniKS-UTF32-H.bcmap create mode 100644 cmaps/UniKS-UTF32-V.bcmap create mode 100644 cmaps/UniKS-UTF8-H.bcmap create mode 100644 cmaps/UniKS-UTF8-V.bcmap create mode 100644 cmaps/V.bcmap create mode 100644 cmaps/WP-Symbol.bcmap create mode 100644 favicon-16x16.png create mode 100644 favicon-32x32.png create mode 100644 favicon.ico create mode 100644 index.html create mode 100644 mockServiceWorker.js create mode 100644 site.webmanifest create mode 100644 standard_fonts/FoxitDingbats.pfb create mode 100644 standard_fonts/FoxitFixed.pfb create mode 100644 standard_fonts/FoxitFixedBold.pfb create mode 100644 standard_fonts/FoxitFixedBoldItalic.pfb create mode 100644 standard_fonts/FoxitFixedItalic.pfb create mode 100644 standard_fonts/FoxitSerif.pfb create mode 100644 standard_fonts/FoxitSerifBold.pfb create mode 100644 standard_fonts/FoxitSerifBoldItalic.pfb create mode 100644 standard_fonts/FoxitSerifItalic.pfb create mode 100644 standard_fonts/FoxitSymbol.pfb create mode 100644 standard_fonts/LICENSE_FOXIT create mode 100644 standard_fonts/LICENSE_LIBERATION create mode 100644 standard_fonts/LiberationSans-Bold.ttf create mode 100644 standard_fonts/LiberationSans-BoldItalic.ttf create mode 100644 standard_fonts/LiberationSans-Italic.ttf create mode 100644 standard_fonts/LiberationSans-Regular.ttf diff --git a/android-chrome-192x192.png b/android-chrome-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..95484d72b25b5bdbb49907fa6cf82b9bf94d5ea5 GIT binary patch literal 7067 zcmZ{JWmHsO)b||*hMb}QbV^B%bW4YXASfUpT}liRLo+m@gmgQSA}QSrA*qxgARsLz zFj69n@Q%-VzdRqFb=SG)+;jH6JI>ns?Dab@j10A*WXxm$06=whG#=o4%)dqg!M`6Y zxfA0%LKjs7RRH*qOpdc7!hdr*=sYk0fFM2qKt%(sik6aG+aQBRG8$BvrNctO<|p`xS4pGZDmMet>LU7XWF;e7r} zb8(VK3)(;VT>0BURyZ(_t9t!pZT|>vufP6T!8fU00b` zSIXUD6{ZEjp5FJD50-o+>C^&P*4ORgS;i%7;~`)a9W<3fhagoF!93aU>$L!9&9Ciy zX#7h;MapP;-R3o9g&AQL)yX)V2Ry9bXC-s3rzes2&q)l>2U}J3ntuv+K+)Z;eDJP! z$W!)RFBcTHhaGYJ5Sa$(6K$TG@Aa zE#CldSkLBs4Zy!B_K2xZCD5lDbC>ko1+4`AVkJkEaA zMJ0UUl8{LgvjV;7@s;JZWa=Q%1<#X4EhEH!81ZX0E2|nxVPCPZ7n0eGJ<^ioasm|I zCbJx3aO;(^Vwv)`O^`8@wGwwH4Qd)l9eGg4nlji^Q!1pRLVVR58kPqscM@{QKue>9 zapx&RDO_!u0Cj!H#Kq1;>VMcoAzJMPnryCR06ckj!{%tt1nB~XLj z*BtP2v2%ff$ao1Gj6~Nm{;fi{Qd06jf z?3)bolE$P`3};pAAqhJ{n;0u_;nz>%b^+mE zR`g3j8G(But0X$$dC)Dt0D49)ONJOKWzdh(oH#!MGV5jnkC7M)SODehh5Cyr%y;+J zN6p+Gq>Ny5;w099c@$IxmL#MW$Ie_e5fS$ac!~twAq-+!w_nq=EpxY~3$u%&ts#$A zmz{=kvRpo^%UQh}T!|$BpKJ7f(lz2Vp{#(^(GIq*L2Xm?mFT92efp(L*5ZYUN|;n& zuVhv|nz}j8^C4yBy~N^VS>jA1F_N}}t`Q{nj?)VZz*MFPHsHVfxP!AVhs76xLvVRjJ@+Mexa@e0q<(U5Is#K9k0!xj?i2I01<@}1ld z-c4%dg8L=st8stmrML--lnol_dlT{c!IPKV z`HUtG5G~rs6fUFYoTocdfkztDp003(*;Ang!6D{0L=uSOZBf&0oZbfzgN4C&yFe1h zZ0f~-dgnQ^6*dbFq=GiHnapc4|MJnTy#UQ^Vv?(dv4JG%L?hG)M*1upt}J`7)*t4K zZ`k1vNWalIfVnXQ0NEj0el)@P07xY)RslT5Czbgi7 zNo<2;Fw5T+SG_4G8T(Is2<5qN(@7gu_r?_Rot(E4Pp&HCwI@_I1RoxsIwuFAtQZ}$ z7nDp@gf!ts8FK40y;RX)lyHNP9PBj1nkA->n2Zha-SOSw&sfo5fY>Ve zA7N=SOW4vZ)S4Lux%=809MebU*;-oJgOn#6y_5F!Aj29I(id2dvyfC1getA4 zHxtl6_ot3uf3>5W%x?M3BbfM_n{W~>3>n`Q5c7^xLec&xV(#JAfTLXu_;u$MBmwC4 z!{%wS7@b#!-+Vi`jQ-=%Qc)f~Q>A`9qoKBaVj6Sb^X+3e|KH6ie%ZM!>^ zo=m~Jk#uXpABJ8J5mYO9iI7u)g4F&}CK(HQ-z{}v1O6Wz%HNy($g2mcus5}$yY!Y)(o za4#_5rn?@1-@PmYxhD1q(5*#&od%4QP~5myl5PocQxwwH6cnnH!Ttko{w6BAfZZ!F+wi=ncP0{#D?3R}j3HFcS5N>yc5 zasr%BS0)`K(3i!-rjuD6qsH~Zku5&!e+KOGf@JyJAukdpIY+64rG7+`GvZdGG|Dcz zF}~+floxy5SMoT^iBsS4whb7ow|9Z^QBBRDwMkS*b7s3&_uI>pi3;VQ^o9ic2ZW;o{VfbmaSC)omvcS-)v~;FGab#h+`<$I1c zZ5HpD1%>{cCx@3P@@vN{D)Ghk_WXf*Gg$oYtr8Phefj1ug_-UPv1ILMa?YQ8-&$}E zd9D~vRG5g2Eyz5jd#Ih%*j}bkVCBC~_j@zkf5 z?dhA(YI%dOtA`wL3j92O_^e>UT+K&US68Io&713Va`s^T?4(EU#DpDxV-4a;5BEv|^o7;>h( zjE~vK6<+^OjALhPO>VRslpM|&He|rp3y@@DArlit_;ujm!ODGmXXjw+f{3&N>H7N| zL19P1YL2DCRs#C9vB%Fxn>|j>ehDOte+*V%$@BV8WLo;qi<}%Q-1XI|MdR?kOVh9p zGzI;i5_Vd%D|EOAyn_wdH=(nO==TX8mTZ;IeUIS3B7&3>0QC;!uYmGJoA+1g2N z?g4=!H;T)%TBh@#4QTQkQBp3qbN8`!-p@I=W`^wO4rc z+^^JNfBHFea%E~4uZoCao9n;7-?B?kGIqQaemt;B%+aXX{IFg+|8Xi;5rbQi z{Y{vlGHx;<{_!%EEAZEy_1e|g__XVn*5YRIK81DD`>~A5;dHt|_eHHwF$~|ziQ(A8 zju;s2o?!tE-`G8HlD;9Isx9Rc?CFUbCJ2`juxu0K{bcQL_)QeZzkNTnK-_wb3M|R6B^Wgpef?YBDiJ6sM9}`s z5r% zzWDdCzn)~AdbV(JO;VrB8+yKpJV>>+_7_VdmOFcU0wITTck0m^ExGh%N9!M(VU#$j zKOQe`i6#vzhsMhtDF)rF5{HSch#s5O5URi0FP4F%$a*j*MH6yuWp$P6{Ch%)4iNCLX{rzLKwr;D={X_B7JoF|l6G(=yrF`b>|hwY0P_ME_)_zhQU z-aoBzFzpHBDJe^p^kS!03jX$34CyDO`RwcDP4lAg*u77mc#2#mL}f}epy3o*FC%9w zHMb5($KS}8C#u7=eQB(eqc2sC-cFKd|8Mj_!z$keFrduP^Pzj*xD%XvouvckZ!eu*!S5G{95$)Nr6 z0x-ZqsZBm)ZK6IRRC|F7Is4#{zudJb{TF}w+m7Mrx6y}R=FWgGm2 zq=u5ot6M-E&MMHxaXPQ%E>QrHk-1(&|9o(W=B)c;g`1{zSa-F2=FvCJ*|q-6Ee#&t zCLcyRDI9g%$zn9DO(e{dkB0(4t4?Yq({l%%(HK#G*!Z4ACDrM=uv$zE{2gz2JmGuO-{1 zh=m=KBU}@9{{W5b1a=rp|MVR%4Y8a*qpMqEQAG??QsaiX3R(D6&-I#P)W@e|S?>31 zd?}Uzl2!TX8O1~J5x{3DxbM~|3R$7t;K3plsC=a%{qMkI`lG56>M{R^NM(N%7_}v~ z4Ml25N5VqmIk(#P8JpbFR_-?i#-N-0x3Oy!ohOE4&#hd>jc~_f{xgmBto}`%lTUy7 zLuP)c{6`g(gr(V)a)4|kvzG?^4Knmvm>y+m6w>%3_0cBCts@X0G;*^;Nm4gY>Vl-A zGDR9fu8Xz;pW57h+yFuPHKnw-*p0oC_O6qEe-M-oBGFDxES*S{nI0P7@h?F9x;jDz z{5`Ss;=LK+k2u14e2a~K9bw(ifnNTK>@dIex-MeST3plh%h%Z@NEW!ZV!k16G+DV` z-PeGpbL!k)0h~>^1&M!IRD#V(PzrWWv$io(+1;;gX@7J%$bv7lZa0lf8-}gmsXS_t zj2`#mvP!y%h-y-4?zztsc@){6?fEY}!6%KraGd(%0v17`+d(6RWiGzcWeO6gIh4fo z_vk)%wDhHWMv%w-BtXdbNJG?~!&i!k30GNBg$l{MHNYRa9~@3zS!!{k)=3PEh#qlm_~Y z>{0EHO`GfWEWhI-sb`Acc+cBJ*}rn#RFo^W-zVg)?ToB!oPkZnoYj?8vb0O020b?F zj)-!ZKQpu}5AMpWG`0w{46V>#og1&&DWc!s(w4pY9?ZV{j9$SoRO;AOOD3;<*|`9L zafptL%1=(;{vqvBiJbfTJmAo3Q7sdn%l5s&XGC6!W8-Z)v{E)9stZYM{_!;l$EzF5 z)gb-Y2cKEVVt76HU9_y(-iVrGUTlrU)MhPS@Jgz4cV85lP0TlmuDl-?dNjY@RoVOg z1v^jpFUh0Hev(l>CVk&#d;3cGq&L;TO9j{mV(YM*dcD>19#jpvb%)y1Bqb{=x*)I1h zf5RT9G3wJE!$^YrUgv`Tny^y>WpHXo=KDLV3_W$}54-GFl;6x1ZHTo+ck5+chDbLZ zPjVfbRbl1dd1z~tl~5@-Q+&9kO_P%vS*%UTsuU!7)3uj&f7s>&0n*@VR$fUu(HeDRVBWsyBO?8w}olDHLB(&jT&Tr4v7{twQ_Q0clgWxm8ipen-73^in9 zSR2){i3tb7X{+1R?C8PQO3Pzy@8=fE@AsOhau`}uC$J6^*IK)VlC5Nbzo10wpH&%2 z+5^yj5?ui^GvdiZg_Z`9UX(p!`g4CzNON5O`iFf z-hKfnQ+W%yiIt-@6Tn4)gh!|l=416Bpd{D0)ND9RC;^K>^^``WxW}te02opv@J1(C zC;_o%8y)lTO*4rEiqvQ;wk?+-jFBuRE8iQ_l%{IF<7x*1;PgpM2&JdWXsTq8a3RH; zmvn+N0N$Dg$jyGsToDPmWB~j##lmg6H3)#939Ihay0Ur6tsme=CfuT4CjzOXV)nhD z#&$c|B_Le9=$FtDBGkdv{5}Vf?m8fUH^ke5EdjO6PMy}JJlZGU?e!=pHHwo5-TR}k zbYz+=2~ydfE*r#oP=J#Srts+mTz(*`M=hTI46a0<^vycu0IwhsYzF}~`X9i{AcMuZ ztnW!U-46yZkWFyp22X}l)RkhhnQhNahtK~3X8_9dgmG*3U7^ZUp&-;*s!;lrrMZT{ zPfN6f*?GK-kZDVZfE+rygfNi5_^)g1@xt@rh+h~>Uj_#q>b-pF)ji*Nkzzy-EaGu0 zgo7FWFlwXT*GOkuk61r*_CmD?glf}xOqs=EYoq0=i9S~4(Z~DjF~gR^1H1{~V-`*} zbACKDxf1Z1G{@iTd0?b37#K$7nqVD1zf!5Ts!(TWfl!w8;YdL=ZdTuTS|y&Z5@UQ+ zitr$$+HGRb`u@@dGLQ=Zw8589W~eDVU`n!PyP+%kHqJtWib@^bT+(MuYz0wFV5T9G zfYkMoW)a(O!~qAO$Ei>=w>svXf6~q9KzbUQUUe@~G62ebhq7wMHWn{{{ev7$CZtdB zK9Vp7B>5Ul4o~wb8UBaW5@D>}RMQ{HaBc$yuOa&pYuT!;GfSLx=0}ltdS@=UhJ#R< zKT-O`xR0n0^?sy2Fh;D+uB~1>vV-(77=Wux#AsrUB9!qsHa~^H)M~E@b}nX;(~`r6 z^eNbtn>fe~dl#|<85sS_KTtu)UKtVBH8RNfE;<^o1@v}qPUD6@=C4KQ$zD7;ffjgx_^;8AcbF02Nf zqV%2U{%_HZ_yG=5v@Q|V%$-)0dE%x4%uayENMyWDwqrK2PZ=nSX6a~GZ`IHC#A28< z&bv#7@Fcv-W}Y;32~I8XYK)E(8lPEh#@~uc)^8e-vhB#=nO;MQ17ahQ*(4_=-!z$D zd7Nr8C+^lC+&8r6<5k38Z^*E|N8O)c_^yDjQ0y6Gt>GGRClrkK7=Y~oh0ZkR2;3|` zKYI$xs=`CHauGmel)P(Vk`!p$S+e^Eq6rD9RDA+wMXEoEWzsgWdwoMZk2axI?d{3M zUl8&7YMT2x+W9)kJ3M#7cYrutTtWnXM?~U|=^Y7q32AvLaUnQd9uD`dC({343?5#N zZq9-KHv`d87Z%UJ^iP6`m$NU@?zt0yL?T7qJfHbE*dd%my`H<|9V#;8iOhmb&3zx( zAvqDxy`0_Loj8315l)I+3yIx)nLjwHa{~w@M(Z`fOrh0gT5yU>@iUL9;-=Z;6(tsnuZ!RYPOO84-R7R A^Z)<= literal 0 HcmV?d00001 diff --git a/android-chrome-512x512.png b/android-chrome-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..d8f924415da6af8a116f31cb8175c0fa6ec96170 GIT binary patch literal 19773 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 Xml_noii7ocpbN;&dB0Pm1NYQF$%FJ> literal 0 HcmV?d00001 diff --git a/apple-touch-icon.png b/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7e196fe28e1a4b37ee6a407c57873ee2b6ec6b90 GIT binary patch literal 6687 zcmZ`;WmHt(*PbDVX6Q~qknWB_kdhRoVPHssVSu4SLPA8OL{f&3kj9~F02QR9q#KbO z1f)Uu&+p^=;azu~yVu=k?|aVL=Q(%p`@X6;2ho4FLFy0|2{F06;Md0ANJq zwV5d6I*1(gwKV~E|6QogvUHq=1fgT;2LO=D|JQ&W(x=2YB{5RhK#O<_$VqWe#1Ps8 z0|1!fbTuJnLG#%BV5Hg85B+L?o<5arpr+9=K6`|+G~Sb7zU7DF+P72rwFd>M`MD^XVB+M>xt}Kq7e&v~k%w^g>OvTMq=9c8H8(`(9+81oZGk_w zderg)9?9DNe%nc=EQ279OA!m4FA!LJ0{n3wlUOss{wf4QHuidz0chkQKIQ(RD8oCd ztg}v@v%^pc7F$k_285F>imnD?#LNEe@Pt+L(9YGFO11HuXq%B<@n!)!P|UCa(#!qn z)l@bC-}zMIR}UcGvHIbM`i}DMgBMb_D7u_l3#N7nSq|kr22=a{amiICvk?W1GH~GMS8i6gVF>P1pMm4*OS275Bm$KdA7N0pBu{8tFAhiVMG99Fg(7=au;2-|FhatcgY}FT8+zhXJ z9Vvd#&H=Q{B!(!&<`hb{8io$df=Dl7ZO`aUhGsWbt;sp(92PUZ^$JsGo$ITcwZJ1F zC|p!H-OHj4#X95SsXhXDpjc{$IZ>V!o-8-R!3_Xxm-u~3pGXNdUW=&;lYcN&ijMEa zOQ5Y|;d9YSaZC9f)!d}fA)GrwfQ`E&Y+!4ZN-WpHSa9An3x}GvvF&mjJJ18wzDu2@ zTJ<)d$lkzMRSDDbx&#x;O9u&I)$oqSsZ9Yuvv}82y$hYU)ppVc0;quELWxIcT#SAUh|WRHPCVcwh@UHeyK_^O5$Y5#)f3kAi+0Q z{xWp3lH9Zr@KWf2ZSu&NeLQ~Hi^WbzWJn(e;T&EyT3eO@fw!H1^&z zy-uMc)uu)a5UcI)3nUrxB1INo(R}W8kY?JAn#;GHsX!4buOne}qyXUE_*{Z^e6(n^ zJLa9CoMxfhuf(@p-Nj^zbm&O!e0Y?`I9oNXK@)3NGluHsQ06(07T6NRNbce7s^1Qt zr&7~;WeE;;i-1vitWx23&dHkvk`Ex~Lt}XWd`IG3WGq%MsKqtRS#`g^%c4)!bCDSa zoj}wf9+U-6CC11{p)6jLn*xy^-~!y_-z(@z$)-ZMU_5!=w=TILY+SC1<1`a~Ud0-e&8qM>^BG*%Q_W3DxreJYq+h4WL+vKzRtQ=A?Lm=o$fxD5Sr z+tASu!_ac$m(kODpG62nply?s59qjQEO6l^Wm-iCl4=Qnn9K1yY>GAqXl>G1dV-{=M-aJAV}T<2>Qkf)JrLkRtiC$qp%WA^eHl6?XRRLMWnC`{4(MEOMl8>_+n%A%P_LZj$w ziEjF~iYsMESlEE`zn?$px-WQS>|ZSXmNI%o^j`Ud`a@Du6JabS^h_AAEaiG=+oFzL z>zm?G)ErssTRmS0Acjdw?MT4cj?^xI65-d;3vbG6%L=QKJ{hSNKA#c2X>4Sl*BSj@ zc#dr@4(?TR5bCfSh0kk#&5<$PKkfP#koNa@%tmxl_BkcTuU`dsNrxd1MOZ57HDsvU zuJBfOmU655;(hq|vYUKDuvTX)L9pC&?aph_iWytRhR&-r8pB#^?VU6}Gx!33arPG~ z)<@qKTT4cAv~CX9*zNXeD+<@En*}UeQv5h0m=1HQc(oH)rF9a$OR1wfY44l1!s7X) z1TQa>E?4mdMX~wHbHgi@R>Y1@OYc?B7h$@?>X>7nhw*8OOEz(_S;LPdw?;M+tF4(& zN0stP>v(A%B|H6^Z%k4{L`J+-VaO0sQT?zSxb!tE8t;+!qE7EXs#lGVb%$%_xb%cK z)h-i;awoi>-E`4iK&bfnIb2E$7Ol#nz$D2TW?b5u86dM4Pf{|P)$>j%FfGDk>^>F` z6|792r&drOdOqRt`|;SwQqzaYGQZ7(rIW6|hSmq^^b_!|In&^gO&$@9SS7QbeK4Vk zz4ssmyZF-vnePe;U*4v?n63JKG`6)I`f<*Wk59sJQ%~~uD8+7wQHUaplyv)UVWp^b zDRXaTW1XohOyT{_uKC2Dcl7H-6g)or7L%LlpFba+?7)`5+yb`f0nZ&p+w^;G?L~gI ztZ**=C&&98r4lEb?{&ZbIeaPZcy+dUT*Q<1na?$7OqxjToK5gasZN*mbREsd>PHv+ zqx1}>eut>Jb^o>$F1J8E(w*id{*RFA`n}gh!OAvG2<{M@RTF)4U&&%QuZF3ugSv?3 zT!*3exhxdV4Nh!mbp2 z;D00=%?BSy33zc8FJ^DpTW-?ylY)AomNWdIYoQ_k_?^&EzMA)(Vej_%7yAIqflZqJ zJ%sq*l=45CK$8T>>8*`vO=MkYPKvQo)k zms?)7&9A!)}K8I2S17aAS1*x&xO+HADH#d84mtiB3&v|FE?Im3yk=3u{_j}UuKwXh&e{i$)qVtou*=(&~5 zlNvHIu+`hQ?LjsLcB)%zsf(&u(Tqd0y__7O1RyIp_%>)#hhLQnZ7vT9W<|{ya=w%mJ$)0KAxF2Z3=76 zko7>QAVOoH4f-+PGlt>o&(PS5Dufw!0O@%5^bD6O|W!7p}c0 zX5Tn?@@Vl`ZUx;h*j+I3^|eSY$y8&?_>zEa3-wDhcCME&6lF4YX^h8~>8!G7#wow* z`Hx|mcZN+l;qcP)s1o^|W~eE2DG2r&%&a0ieGGc<<|fXOw|V3*n*kY$k<0(L)D+qM zX>j~XtNM~}vv(_9QlBBAZKGeI-KUt3RU$k4o>30+$bYbLW?j#)$?5M&o4<5Mj-3xU zp{VrEh7L_+?L19wSXEW{4)VA=Vw!y5ddDj!iMaN+EjjZNg{4%?NDEVv80kD!Y=Z|0 zqiQ^%7r(tui~PT{g{k)$77gR~9B~-{+ppH-REfjYXvg`7eV3*;W5IQt^8D?k2z%bS!B-iHi!O8k~oO=Mq>YUvik+Kz!jfoB2y0Uo(6kb@IQ**!4VQJmmJLRs0Zl zUh-JZ&{t>uObd>|1~O(|Qg^u(&tPoa;iZ6WgJ!^AS?L$!8e=RSLhVfmC=YQCGL8Q+ zbn5DKqIAQV2R1C{H7z_8t=jIx>)-!&2yRC<(nO7BUDh`JkbIz{7oob*eU%txq^i4q zag?cz@8o#8R@a{;@r9CYyPOJG{#OI?S8l%Q?gq3xjyX}^sQaid;;g7>Zj9;js3EC% zyf{|qL^xnEpMNwnb@;RM+%B(Wd}AXUu}*L>Wu|>oAtvas6$wm;BXXCOxd^3PoVw|h z^&6-o+jfz<`uA=Ubz7%}1UPU}HSxciHv`9(1;&m-oV#N(XQMz%PHwkUOTvH(aG0hM4sjy4u_PIZ}-4c>J;B|jFk@UgsncSR<{<_s0 zH94^H*yXC0mit1zkX2^Kjcv8Y^7d`4&K!?^X3Sd9VUe z872WE+9Jc+Ryy~KGhlXPJlq8S$lE$>o?#`A2mJLmo4m|k+_swKvQ!n2V^tjjn%=91 zxy$pu{FJZsUrrMH(-LzF0nt%Z#2JOvk_t$|?s% zU}FrWOadNk3%iZ23NBc2K+xyfhciPloxz7wlmb=t^0dX3-!K=C#8c#MF$r?L)KkZysIP> z(IN66Ma~*PHK++_?vJ#^m8-a7lhfSMaUl8H!{hQG+f}|>=7eJVALom_jE;_!Asn~_ z>>CrG)OIrX&i%%1RUKSyb;6{QGYiB=@bTH++z(Uz6o6fCcP*gEYTybVWy95)GVgBc zt}wu^>psqMwcrW#AClrnK0C#4X%@P>KZY8I{sOJ2TvtuOlOnxZQ>qCSzB8IeZ}DUa zBq529X&(yFc^#2uWe_Vxi%^@Ut+UOFs*gqmk!o#q&?IJYYeMiZR^=i;S0vIcMg7IQ zm73DvCR60>nq2iMv##7eR?c*FB>7y?RR`!C7(hGqRX|7yIkzyspxUxIuw4|@NEY;; zx!E9oY}l?$5GE*;G4^KZ6BQL*mv*&PpYI? z(vSE*PRto0t0#2wH9c%o7w96tUFnvmrCE>$6wnu?j_E{B=5ZvVs4*REtfQx?qHdAO zut110D<0iaTECyy;IQ*Tn+tHB!9o~Xl=n=L4+%Q9ViW>i zGxu`2MTV7EOY@xMAg0O^*rbE{iRFIB?_{Od!2`VZBRb;1_4KxEKp~pd`)diq1~2(E z0fbuLjxapMZxMzO9L+ z2J1BOnC%iMXStRn`w{dP!?EEBa2rpE`hjBzJm?D`p zsFaCegs5Qh*1}VN2Fe)p$sw8OEuOg|)+nQnHE5a4o5-)+S$fQwU@1={E0KGDukAUj z2p56p*jg)_0Aikb4!NUt_KayarakH!=n;RYrS=sg$E+2Ym!i2fl-AX(P!Xa;{4EV4YW~O1#O*4{5#A%TRC#R5HW$p z4QiWW49oi^L;LU-e*W3_d)ko(m}`z%`SGl!y-cJBq}fF%>5ye|Um=J4WGL^ff}N7( zz?6V)v)9~EiB3=e5{L;HaEq+R6PUo6%1%NYi_gSLXA?=R<0)+S>InL~Z=1mkZ<7hHdJJWT zF`-D_MmW*rB~3Fcm0i5Z&c77?Gh^a{JEY)4YFQwi9FWe6Fkfe!07!~UN{NU|h)7A8 zNk}P5$tp_A2#Jd;ii?MLE7|-X2QP0YcbDM*-+_ERW)h0^Ad!WpMGcpe`vp||U1acvKyGW><@3-M5-4oXiH Yu*(QW9&5{l.forEach(i=>o(i,!0))},Y=l=>{l.forEach(i=>o(i,!1))},Z=()=>a.jsxs("div",{className:"ml-2",children:[a.jsx("legend",{children:"Hurtigfilter"}),a.jsxs(H,{label:"",onChange:l=>{const i=h.find(n=>n.id===l.target.value);i!==void 0&&(W(i.paskrudd),Y(i.avskrudd),window.location.reload())},children:[a.jsx("option",{children:"Ingen valgt"}),h.map(l=>a.jsx("option",{value:l.id,children:l.name},l.id))]})]}),t={ekstern:"eksternbruker",veileder:"veilederbruker"},$=[{label:"Veileder",id:t.veileder,value:t.veileder},{label:"Eksternbruker",id:t.ekstern,value:t.ekstern}],g=[{label:"Ikke under oppfølging",id:e.PRIVAT_BRUKER,checked:A},{label:"Manuell",id:e.MANUELL_BRUKER,checked:m},{label:"KRR",id:e.KRR_BRUKER,checked:x},{label:"Ikke innlogget med nivå 4",id:e.INNLOGGET_NIVAA4,checked:f},{label:"Ingen oppfølgingsperioder",id:e.INGEN_OPPF_PERIODER,checked:b},{label:"Gammel eskaleringsvarsel",id:e.GAMMEL_ESKALERT_BRUKER,checked:_},{label:"Eskaleringsvarsel",id:e.ESKALERT_BRUKER,checked:N},{label:"Uleste dialoger",id:e.ULESTE_DIALOGER,checked:j},{label:"Under 18 år",id:e.UNDER18,checked:K}],v=[{label:"Automatiske aktiviteter",id:e.AUTOMATISKE_AKTIVITETER,checked:L},{label:"Arenaaktiviteter",id:e.ARENA_AKTIVITETER,checked:F},{label:"Testaktiviteter",id:e.TEST_AKTIVITETER,checked:B},{label:"Eksterne aktiviteter",id:e.EKSTERNE_AKTIVITETER,checked:O}],R=[{label:"Oppfølging feiler",id:e.OPPF_FEILET,checked:U},{label:"Dialog feiler",id:e.DIALOG_FEILET,checked:S},{label:"Aktivitet feiler",id:e.AKTIVITET_FEILET,checked:V},{label:"Arena feiler",id:e.ARENA_FEILET,checked:P},{label:"Mål feiler",id:e.MAAL_FEILET,checked:D},{label:"Kun oppdatering feiler",id:e.OPPDATERING_KUN_FEILER,checked:G},{label:"Nivå 4 feiler",id:e.NIVAA4_FEILET,checked:M},{label:"Forhåndsvisning feiler",id:e.FORHAANDSVISNING_FEILER,checked:C},{label:"Jounalføring feiler",id:e.JOURNALFORING_FEILER,checked:y}],k=l=>l.filter(i=>i.checked()).map(i=>i.id),q=()=>{const[l,i]=T.useState(0),n=r=>{const s=r.currentTarget;o(s.id,s.checked),i(l+1)},p=r=>{const s=r===t.veileder;o(e.EKSTERN_BRUKER,!s),i(l+1)},I=()=>w()?t.ekstern:t.veileder;return a.jsx("div",{className:"flex flex-col justify-center items-center p-4 gap-4",children:a.jsxs("section",{className:"flex flex-wrap gap-4",children:[a.jsx(J,{legend:"Brukertype",name:"brukertype-rdio-panel",value:I(),onChange:p,children:$.map(({id:r,label:s})=>a.jsx(z,{id:r,value:r,children:s},r))}),a.jsx(d,{value:k(g),legend:"Brukers tilstand",children:g.map(({id:r,label:s})=>a.jsx(c,{value:r,id:r,onClick:n,children:s},r))}),a.jsx(d,{value:k(v),legend:"Aktivitet tilstand",children:v.map(({id:r,label:s})=>a.jsx(c,{value:r,id:r,onClick:n,children:s},r))}),a.jsx(d,{value:[E()],legend:"Ingen mål",children:[{label:"Ingen mål",id:e.INGEN_MAL,checked:E()}].map(({id:r,label:s})=>a.jsx(c,{value:r,id:r,onClick:n,children:s},r))}),a.jsx(d,{value:k(R),legend:"Feiltilstander",children:R.map(({id:r,label:s})=>a.jsx(c,{value:r,id:r,onClick:n,children:s},r))}),a.jsx(Z,{})]})})},X=({onClick:l})=>a.jsxs("svg",{"aria-hidden":!0,role:"img",xmlns:"http://www.w3.org/2000/svg",height:110,width:110,className:"demo-ikon",onClick:l,children:[a.jsx("polygon",{points:"0,0 110,0 110,110"}),a.jsx("text",{x:40,y:10,transform:"rotate(45 20,40)",children:"DEMO"})]}),ie=()=>{const[l,i]=T.useState(!1);return a.jsxs("div",{children:[a.jsx(X,{onClick:()=>i(!0)}),a.jsxs(u,{closeOnBackdropClick:!0,open:l,onClose:()=>{i(!1),window.location.reload()},children:[a.jsx(u.Header,{closeButton:!0,children:a.jsx(Q,{level:"1",size:"large",children:"Demoinnstillinger"})}),a.jsx(q,{})]})]})};export{ie as default}; +//# sourceMappingURL=DemoBanner-BMlqHEuP.js.map diff --git a/assets/DemoBanner-BMlqHEuP.js.map b/assets/DemoBanner-BMlqHEuP.js.map new file mode 100644 index 000000000..a72ca7ce9 --- /dev/null +++ b/assets/DemoBanner-BMlqHEuP.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DemoBanner-BMlqHEuP.js","sources":["../../src/mocks/demo/Hurtigfilter.tsx","../../src/mocks/demo/demoToggles.ts","../../src/mocks/demo/DemoDashboard.tsx","../../src/mocks/demo/DemoIkon.tsx","../../src/mocks/demo/DemoBanner.tsx"],"sourcesContent":["import { Select } from '@navikt/ds-react';\nimport React from 'react';\n\nimport { LocalStorageElement, settLocalStorage } from './localStorage';\n\nconst hurtigfilterType = [\n {\n id: 'nyBrukerStdOrd',\n name: 'Ny bruker - Standard innsats',\n avskrudd: [\n LocalStorageElement.INGEN_OPPF_PERIODER,\n LocalStorageElement.PRIVAT_BRUKER,\n LocalStorageElement.MANUELL_BRUKER,\n LocalStorageElement.ARENA_AKTIVITETER,\n LocalStorageElement.TEST_AKTIVITETER,\n ],\n paskrudd: [LocalStorageElement.AUTOMATISKE_AKTIVITETER],\n },\n];\n\nconst markerValg = (tilstander: LocalStorageElement[]) => {\n tilstander.forEach((tilstand) => settLocalStorage(tilstand, true));\n};\n\nconst skruAvValg = (tilstander: LocalStorageElement[]) => {\n tilstander.forEach((tilstand) => settLocalStorage(tilstand, false));\n};\n\nconst Hurtigfilter = () => {\n return (\n
\n Hurtigfilter\n {\n const valgtFilter = hurtigfilterType.find((x) => x.id === e.target.value);\n if (valgtFilter !== undefined) {\n markerValg(valgtFilter.paskrudd);\n skruAvValg(valgtFilter.avskrudd);\n window.location.reload();\n }\n }}\n >\n \n {hurtigfilterType.map((hurtigfilter) => (\n \n ))}\n \n
\n );\n};\n\nexport default Hurtigfilter;\n","import {\n aktivitetFeilet,\n arenaFeilet,\n dialogFeilet,\n erEskalertBruker,\n erEskalertBrukerGammel,\n erKRRBruker,\n erManuellBruker,\n erPrivatBruker,\n erUnder18,\n forhaandsvisningFeiler,\n ikkeLoggetInnNivaa4,\n ingenOppfPerioder,\n journalforingFeiler,\n LocalStorageElement,\n maalFeilet,\n nivaa4Feilet,\n oppdateringKunFeiler,\n oppfFeilet,\n ulesteDialoger,\n visArenaAktiviteter,\n visAutomatiskeAktiviteter,\n visEksterneAktiviteter,\n visTestAktiviteter,\n} from './localStorage';\n\nexport const brukertype = {\n ekstern: 'eksternbruker',\n veileder: 'veilederbruker',\n};\n\nexport const radios = [\n {\n label: 'Veileder',\n id: brukertype.veileder,\n value: brukertype.veileder,\n },\n {\n label: 'Eksternbruker',\n id: brukertype.ekstern,\n value: brukertype.ekstern,\n },\n];\nexport const features = [\n {\n label: 'Ikke under oppfølging',\n id: LocalStorageElement.PRIVAT_BRUKER,\n checked: erPrivatBruker,\n },\n {\n label: 'Manuell',\n id: LocalStorageElement.MANUELL_BRUKER,\n checked: erManuellBruker,\n },\n {\n label: 'KRR',\n id: LocalStorageElement.KRR_BRUKER,\n checked: erKRRBruker,\n },\n {\n label: 'Ikke innlogget med nivå 4',\n id: LocalStorageElement.INNLOGGET_NIVAA4,\n checked: ikkeLoggetInnNivaa4,\n },\n {\n label: 'Ingen oppfølgingsperioder',\n id: LocalStorageElement.INGEN_OPPF_PERIODER,\n checked: ingenOppfPerioder,\n },\n {\n label: 'Gammel eskaleringsvarsel',\n id: LocalStorageElement.GAMMEL_ESKALERT_BRUKER,\n checked: erEskalertBrukerGammel,\n },\n {\n label: 'Eskaleringsvarsel',\n id: LocalStorageElement.ESKALERT_BRUKER,\n checked: erEskalertBruker,\n },\n {\n label: 'Uleste dialoger',\n id: LocalStorageElement.ULESTE_DIALOGER,\n checked: ulesteDialoger,\n },\n {\n label: 'Under 18 år',\n id: LocalStorageElement.UNDER18,\n checked: erUnder18,\n },\n];\nexport const aktivitetTilstand = [\n {\n label: 'Automatiske aktiviteter',\n id: LocalStorageElement.AUTOMATISKE_AKTIVITETER,\n checked: visAutomatiskeAktiviteter,\n },\n {\n label: 'Arenaaktiviteter',\n id: LocalStorageElement.ARENA_AKTIVITETER,\n checked: visArenaAktiviteter,\n },\n {\n label: 'Testaktiviteter',\n id: LocalStorageElement.TEST_AKTIVITETER,\n checked: visTestAktiviteter,\n },\n {\n label: 'Eksterne aktiviteter',\n id: LocalStorageElement.EKSTERNE_AKTIVITETER,\n checked: visEksterneAktiviteter,\n },\n];\nexport const feiltilstander = [\n {\n label: 'Oppfølging feiler',\n id: LocalStorageElement.OPPF_FEILET,\n checked: oppfFeilet,\n },\n {\n label: 'Dialog feiler',\n id: LocalStorageElement.DIALOG_FEILET,\n checked: dialogFeilet,\n },\n {\n label: 'Aktivitet feiler',\n id: LocalStorageElement.AKTIVITET_FEILET,\n checked: aktivitetFeilet as () => boolean,\n },\n {\n label: 'Arena feiler',\n id: LocalStorageElement.ARENA_FEILET,\n checked: arenaFeilet,\n },\n {\n label: 'Mål feiler',\n id: LocalStorageElement.MAAL_FEILET,\n checked: maalFeilet,\n },\n {\n label: 'Kun oppdatering feiler',\n id: LocalStorageElement.OPPDATERING_KUN_FEILER,\n checked: oppdateringKunFeiler,\n },\n {\n label: 'Nivå 4 feiler',\n id: LocalStorageElement.NIVAA4_FEILET,\n checked: nivaa4Feilet,\n },\n {\n label: 'Forhåndsvisning feiler',\n id: LocalStorageElement.FORHAANDSVISNING_FEILER,\n checked: forhaandsvisningFeiler,\n },\n {\n label: 'Jounalføring feiler',\n id: LocalStorageElement.JOURNALFORING_FEILER,\n checked: journalforingFeiler,\n },\n];\n","import { Checkbox, CheckboxGroup, Heading, Radio, RadioGroup } from '@navikt/ds-react';\nimport React, { useState } from 'react';\n\nimport Hurtigfilter from './Hurtigfilter';\nimport { LocalStorageElement, erEksternBruker, ingenMal, settLocalStorage } from './localStorage';\nimport { aktivitetTilstand, brukertype, features, feiltilstander, radios } from './demoToggles';\n\ninterface Checkable {\n label: string;\n id: string;\n checked: () => boolean;\n}\n\nconst getChecked = (values: Checkable[]): string[] => {\n return values.filter((it) => it.checked()).map((it) => it.id);\n};\n\nconst DemoDashboard = () => {\n const [render, setRender] = useState(0);\n\n const endreTilstand = (e: React.MouseEvent) => {\n const checkbox = e.currentTarget;\n settLocalStorage(checkbox.id, checkbox.checked);\n setRender(render + 1);\n };\n\n const endreBrukerType = (value: 'eksternbruker' | 'veilederbruker') => {\n const erVeileder = value === brukertype.veileder;\n settLocalStorage(LocalStorageElement.EKSTERN_BRUKER, !erVeileder);\n setRender(render + 1);\n };\n\n const getBrukerType = () => {\n if (erEksternBruker()) {\n return brukertype.ekstern;\n } else return brukertype.veileder;\n };\n\n return (\n
\n
\n \n {radios.map(({ id, label }) => (\n \n {label}\n \n ))}\n \n \n {features.map(({ id, label }) => (\n \n {label}\n \n ))}\n \n \n {aktivitetTilstand.map(({ id, label }) => (\n \n {label}\n \n ))}\n \n \n {[\n {\n label: 'Ingen mål',\n id: LocalStorageElement.INGEN_MAL,\n checked: ingenMal(),\n },\n ].map(({ id, label }) => (\n \n {label}\n \n ))}\n \n \n {feiltilstander.map(({ id, label }) => (\n \n {label}\n \n ))}\n \n \n
\n
\n );\n};\n\nexport default DemoDashboard;\n","import './DemoIkon.less';\n\nimport React from 'react';\n\ninterface Props {\n onClick: () => void;\n}\n\nconst DemoIkon = ({ onClick }: Props) => {\n return (\n \n \n \n DEMO\n \n \n );\n};\n\nexport default DemoIkon;\n","import { Heading, Modal } from '@navikt/ds-react';\nimport React, { useState } from 'react';\n\n// CSS is imported twice when in demo mode to support switching between web-components and normal render\nimport '@navikt/ds-css';\nimport '../../tailwind.css';\nimport '../../index.less';\n// Importerer her for å unngå stygt error i konsollen,\n// Denne css-en er bare brukt i veielder-flaten og må importeres på en spesiell måte i web-components\n// som gjør at react-pdf ikke skjønner at det funker\nimport 'react-pdf/dist/Page/AnnotationLayer.css';\nimport 'react-pdf/dist/Page/TextLayer.css';\n\nimport DemoDashboard from './DemoDashboard';\nimport DemoIkon from './DemoIkon';\n\nconst DemoBanner = () => {\n const [open, setOpen] = useState(false);\n\n return (\n
\n setOpen(true)} />\n {\n setOpen(false);\n window.location.reload();\n }}\n >\n \n \n Demoinnstillinger\n \n \n \n \n
\n );\n};\n\nexport default DemoBanner;\n"],"names":["hurtigfilterType","LocalStorageElement","markerValg","tilstander","tilstand","settLocalStorage","skruAvValg","Hurtigfilter","jsxs","jsx","Select","e","valgtFilter","x","hurtigfilter","brukertype","radios","features","erPrivatBruker","erManuellBruker","erKRRBruker","ikkeLoggetInnNivaa4","ingenOppfPerioder","erEskalertBrukerGammel","erEskalertBruker","ulesteDialoger","erUnder18","aktivitetTilstand","visAutomatiskeAktiviteter","visArenaAktiviteter","visTestAktiviteter","visEksterneAktiviteter","feiltilstander","oppfFeilet","dialogFeilet","aktivitetFeilet","arenaFeilet","maalFeilet","oppdateringKunFeiler","nivaa4Feilet","forhaandsvisningFeiler","journalforingFeiler","getChecked","values","it","DemoDashboard","render","setRender","useState","endreTilstand","checkbox","endreBrukerType","value","erVeileder","getBrukerType","erEksternBruker","RadioGroup","id","label","Radio","CheckboxGroup","Checkbox","ingenMal","DemoIkon","onClick","DemoBanner","open","setOpen","Modal","Heading"],"mappings":"mYAKA,MAAMA,EAAmB,CACrB,CACI,GAAI,iBACJ,KAAM,+BACN,SAAU,CACNC,EAAoB,oBACpBA,EAAoB,cACpBA,EAAoB,eACpBA,EAAoB,kBACpBA,EAAoB,gBACxB,EACA,SAAU,CAACA,EAAoB,uBAAuB,CAC1D,CACJ,EAEMC,EAAcC,GAAsC,CACtDA,EAAW,QAASC,GAAaC,EAAiBD,EAAU,EAAI,CAAC,CACrE,EAEME,EAAcH,GAAsC,CACtDA,EAAW,QAASC,GAAaC,EAAiBD,EAAU,EAAK,CAAC,CACtE,EAEMG,EAAe,IAEbC,EAAA,KAAC,MAAI,CAAA,UAAU,OACX,SAAA,CAAAC,EAAAA,IAAC,UAAO,SAAY,cAAA,CAAA,EACpBD,EAAA,KAACE,EAAA,CACG,MAAM,GACN,SAAWC,GAAM,CACP,MAAAC,EAAcZ,EAAiB,KAAMa,GAAMA,EAAE,KAAOF,EAAE,OAAO,KAAK,EACpEC,IAAgB,SAChBV,EAAWU,EAAY,QAAQ,EAC/BN,EAAWM,EAAY,QAAQ,EAC/B,OAAO,SAAS,SAExB,EAEA,SAAA,CAAAH,EAAAA,IAAC,UAAO,SAAW,aAAA,CAAA,EAClBT,EAAiB,IAAKc,GAClBL,EAAAA,IAAA,SAAA,CAAO,MAAOK,EAAa,GACvB,SAAAA,EAAa,IADmB,EAAAA,EAAa,EAElD,CACH,CAAA,CAAA,CACL,CACJ,CAAA,CAAA,ECxBKC,EAAa,CACtB,QAAS,gBACT,SAAU,gBACd,EAEaC,EAAS,CAClB,CACI,MAAO,WACP,GAAID,EAAW,SACf,MAAOA,EAAW,QACtB,EACA,CACI,MAAO,gBACP,GAAIA,EAAW,QACf,MAAOA,EAAW,OACtB,CACJ,EACaE,EAAW,CACpB,CACI,MAAO,wBACP,GAAIhB,EAAoB,cACxB,QAASiB,CACb,EACA,CACI,MAAO,UACP,GAAIjB,EAAoB,eACxB,QAASkB,CACb,EACA,CACI,MAAO,MACP,GAAIlB,EAAoB,WACxB,QAASmB,CACb,EACA,CACI,MAAO,4BACP,GAAInB,EAAoB,iBACxB,QAASoB,CACb,EACA,CACI,MAAO,4BACP,GAAIpB,EAAoB,oBACxB,QAASqB,CACb,EACA,CACI,MAAO,2BACP,GAAIrB,EAAoB,uBACxB,QAASsB,CACb,EACA,CACI,MAAO,oBACP,GAAItB,EAAoB,gBACxB,QAASuB,CACb,EACA,CACI,MAAO,kBACP,GAAIvB,EAAoB,gBACxB,QAASwB,CACb,EACA,CACI,MAAO,cACP,GAAIxB,EAAoB,QACxB,QAASyB,CACb,CACJ,EACaC,EAAoB,CAC7B,CACI,MAAO,0BACP,GAAI1B,EAAoB,wBACxB,QAAS2B,CACb,EACA,CACI,MAAO,mBACP,GAAI3B,EAAoB,kBACxB,QAAS4B,CACb,EACA,CACI,MAAO,kBACP,GAAI5B,EAAoB,iBACxB,QAAS6B,CACb,EACA,CACI,MAAO,uBACP,GAAI7B,EAAoB,qBACxB,QAAS8B,CACb,CACJ,EACaC,EAAiB,CAC1B,CACI,MAAO,oBACP,GAAI/B,EAAoB,YACxB,QAASgC,CACb,EACA,CACI,MAAO,gBACP,GAAIhC,EAAoB,cACxB,QAASiC,CACb,EACA,CACI,MAAO,mBACP,GAAIjC,EAAoB,iBACxB,QAASkC,CACb,EACA,CACI,MAAO,eACP,GAAIlC,EAAoB,aACxB,QAASmC,CACb,EACA,CACI,MAAO,aACP,GAAInC,EAAoB,YACxB,QAASoC,CACb,EACA,CACI,MAAO,yBACP,GAAIpC,EAAoB,uBACxB,QAASqC,CACb,EACA,CACI,MAAO,gBACP,GAAIrC,EAAoB,cACxB,QAASsC,CACb,EACA,CACI,MAAO,yBACP,GAAItC,EAAoB,wBACxB,QAASuC,CACb,EACA,CACI,MAAO,sBACP,GAAIvC,EAAoB,qBACxB,QAASwC,CACb,CACJ,ECjJMC,EAAcC,GACTA,EAAO,OAAQC,GAAOA,EAAG,SAAS,EAAE,IAAKA,GAAOA,EAAG,EAAE,EAG1DC,EAAgB,IAAM,CACxB,KAAM,CAACC,EAAQC,CAAS,EAAIC,WAAS,CAAC,EAEhCC,EAAiBtC,GAA0C,CAC7D,MAAMuC,EAAWvC,EAAE,cACFN,EAAA6C,EAAS,GAAIA,EAAS,OAAO,EAC9CH,EAAUD,EAAS,CAAC,CAAA,EAGlBK,EAAmBC,GAA8C,CAC7D,MAAAC,EAAaD,IAAUrC,EAAW,SACvBV,EAAAJ,EAAoB,eAAgB,CAACoD,CAAU,EAChEN,EAAUD,EAAS,CAAC,CAAA,EAGlBQ,EAAgB,IACdC,IACOxC,EAAW,QACRA,EAAW,SAG7B,aACK,MAAI,CAAA,UAAU,sDACX,SAACP,EAAA,KAAA,UAAA,CAAQ,UAAU,uBACf,SAAA,CAAAC,EAAA,IAAC+C,EAAA,CACG,OAAO,aACP,KAAK,wBACL,MAAOF,EAAc,EACrB,SAAUH,EAET,SAAOnC,EAAA,IAAI,CAAC,CAAE,GAAAyC,EAAI,MAAAC,CAAM,IACpBjD,EAAA,IAAAkD,EAAA,CAAe,GAAAF,EAAQ,MAAOA,EAC1B,SAAAC,CAAA,EADOD,CAEZ,CACH,CAAA,CACL,EACAhD,EAAAA,IAACmD,EAAc,CAAA,MAAOlB,EAAWzB,CAAQ,EAAG,OAAQ,mBAC/C,SAASA,EAAA,IAAI,CAAC,CAAE,GAAAwC,EAAI,MAAAC,CAAM,IACtBjD,EAAA,IAAAoD,EAAA,CAAkB,MAAOJ,EAAI,GAAAA,EAAQ,QAASR,EAC1C,SAAAS,CAAA,EADUD,CAEf,CACH,CACL,CAAA,EACAhD,EAAAA,IAACmD,EAAc,CAAA,MAAOlB,EAAWf,CAAiB,EAAG,OAAQ,qBACxD,SAAkBA,EAAA,IAAI,CAAC,CAAE,GAAA8B,EAAI,MAAAC,CAAM,IAC/BjD,EAAA,IAAAoD,EAAA,CAAkB,MAAOJ,EAAI,GAAAA,EAAQ,QAASR,EAC1C,SAAAS,CAAA,EADUD,CAEf,CACH,CACL,CAAA,EACAhD,MAACmD,GAAc,MAAO,CAACE,GAAU,EAAG,OAAQ,YACvC,SAAA,CACG,CACI,MAAO,YACP,GAAI7D,EAAoB,UACxB,QAAS6D,EAAS,CACtB,CAAA,EACF,IAAI,CAAC,CAAE,GAAAL,EAAI,MAAAC,KACTjD,EAAA,IAACoD,EAAkB,CAAA,MAAOJ,EAAI,GAAAA,EAAQ,QAASR,EAC1C,SADUS,GAAAD,CAEf,CACH,EACL,EACAhD,EAAAA,IAACmD,EAAc,CAAA,MAAOlB,EAAWV,CAAc,EAAG,OAAO,iBACpD,SAAeA,EAAA,IAAI,CAAC,CAAE,GAAAyB,EAAI,MAAAC,CAAM,IAC5BjD,EAAA,IAAAoD,EAAA,CAAkB,MAAOJ,EAAI,GAAAA,EAAQ,QAASR,EAC1C,SAAAS,CAAA,EADUD,CAEf,CACH,CACL,CAAA,QACClD,EAAa,EAAA,CAAA,CAClB,CAAA,CACJ,CAAA,CAER,ECnFMwD,EAAW,CAAC,CAAE,QAAAC,KAEZxD,EAAA,KAAC,MAAA,CACG,cAAa,GACb,KAAK,MACL,MAAM,6BACN,OAAQ,IACR,MAAO,IACP,UAAU,YACV,QAAAwD,EAEA,SAAA,CAACvD,EAAAA,IAAA,UAAA,CAAQ,OAAO,mBAAoB,CAAA,EACpCA,EAAAA,IAAC,QAAK,EAAG,GAAI,EAAG,GAAI,UAAU,mBAAmB,SAEjD,MAAA,CAAA,CAAA,CAAA,CAAA,ECNNwD,GAAa,IAAM,CACrB,KAAM,CAACC,EAAMC,CAAO,EAAInB,WAAS,EAAK,EAEtC,cACK,MACG,CAAA,SAAA,CAAAvC,EAAA,IAACsD,EAAS,CAAA,QAAS,IAAMI,EAAQ,EAAI,EAAG,EACxC3D,EAAA,KAAC4D,EAAA,CACG,qBAAsB,GACtB,KAAAF,EACA,QAAS,IAAM,CACXC,EAAQ,EAAK,EACb,OAAO,SAAS,QACpB,EAEA,SAAA,CAAA1D,EAAA,IAAC2D,EAAM,OAAN,CAAa,YAAa,GACvB,SAAA3D,MAAC4D,EAAQ,CAAA,MAAM,IAAI,KAAK,QAAQ,SAAA,mBAEhC,CAAA,EACJ,QACCxB,EAAc,EAAA,CAAA,CAAA,CACnB,CACJ,CAAA,CAAA,CAER"} \ No newline at end of file diff --git a/assets/DemoBanner-Cdjs6Bq5.css b/assets/DemoBanner-Cdjs6Bq5.css new file mode 100644 index 000000000..13ffbb5d7 --- /dev/null +++ b/assets/DemoBanner-Cdjs6Bq5.css @@ -0,0 +1 @@ +:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}.demo-ikon{position:absolute;top:0;right:0;font-family:Source Sans Pro,Arial,sans-serif;font-weight:700;cursor:pointer;z-index:1}.demo-ikon polygon{fill:orange}.demo-ikon :hover{text-decoration:underline}.demo-ikon polygon:hover{fill:#ffb30f} diff --git a/assets/Radio-Ba1gGC1A.js b/assets/Radio-Ba1gGC1A.js new file mode 100644 index 000000000..3bda53bbd --- /dev/null +++ b/assets/Radio-Ba1gGC1A.js @@ -0,0 +1,10 @@ +var Rr=Object.defineProperty;var Ir=(e,r,t)=>r in e?Rr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var M=(e,r,t)=>Ir(e,typeof r!="symbol"?r+"":r,t);import{g as Me,f as yt,h as Ae,i as Lr,k as Ye,r as v,e as _,d as Fn,R as Wn}from"./index-BUdM5Wjz.js";import{t as T,g as F,h as Sr,e as K,i as It,d as Fr,m as Wr,j as Ar,f as tt}from"./subDays-C3WNc7zq.js";function re(e,r){const t=T(e);if(isNaN(r))return F(e,NaN);if(!r)return t;const n=t.getDate(),a=F(e,t.getTime());a.setMonth(t.getMonth()+r+1,0);const o=a.getDate();return n>=o?a:(t.setFullYear(a.getFullYear(),a.getMonth(),n),t)}function ne(e,r){var s,l,c,u;const t=Me(),n=(r==null?void 0:r.weekStartsOn)??((l=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((u=(c=t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,a=T(e),o=a.getDay(),i=(o=a.getTime()?t+1:r.getTime()>=i.getTime()?t:t-1}function Re(e){const r=T(e);return r.setHours(0,0,0,0),r}function Ie(e){const r=T(e),t=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return t.setUTCFullYear(r.getFullYear()),+e-+t}function ue(e,r){const t=Re(e),n=Re(r),a=+t-Ie(t),o=+n-Ie(n);return Math.round((a-o)/Sr)}function Yr(e){const r=An(e),t=F(e,0);return t.setFullYear(r,0,4),t.setHours(0,0,0,0),he(t)}function kt(e,r){const t=r*7;return K(e,t)}function Hr(e,r){return re(e,r*12)}function $r(e){let r;return e.forEach(function(t){const n=T(t);(r===void 0||r{const n=T(t);(!r||r>n||isNaN(+n))&&(r=n)}),r||new Date(NaN)}function Z(e,r){const t=Re(e),n=Re(r);return+t==+n}function Lt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function qr(e){if(!Lt(e)&&typeof e!="number")return!1;const r=T(e);return!isNaN(Number(r))}function qe(e,r){const t=T(e),n=T(r),a=t.getFullYear()-n.getFullYear(),o=t.getMonth()-n.getMonth();return a*12+o}function zr(e,r,t){const n=ne(e,t),a=ne(r,t),o=+n-Ie(n),i=+a-Ie(a);return Math.round((o-i)/It)}function St(e){const r=T(e),t=r.getMonth();return r.setFullYear(r.getFullYear(),t+1,0),r.setHours(23,59,59,999),r}function J(e){const r=T(e);return r.setDate(1),r.setHours(0,0,0,0),r}function Yn(e){const r=T(e),t=F(e,0);return t.setFullYear(r.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Ft(e,r){var s,l,c,u;const t=Me(),n=(r==null?void 0:r.weekStartsOn)??((l=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((u=(c=t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,a=T(e),o=a.getDay(),i=(o{let n;const a=Vr[e];return typeof a=="string"?n=a:r===1?n=a.one:n=a.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n},Gr={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xr={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ur={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kr={date:yt({formats:Gr,defaultWidth:"full"}),time:yt({formats:Xr,defaultWidth:"full"}),dateTime:yt({formats:Ur,defaultWidth:"full"})},Zr={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jr=(e,r,t,n)=>Zr[e],ea={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ta={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},na={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ra={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},aa={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oa={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ia=(e,r)=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},sa={ordinalNumber:ia,era:Ae({values:ea,defaultWidth:"wide"}),quarter:Ae({values:ta,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ae({values:na,defaultWidth:"wide"}),day:Ae({values:ra,defaultWidth:"wide"}),dayPeriod:Ae({values:aa,defaultWidth:"wide",formattingValues:oa,defaultFormattingWidth:"wide"})},la=/^(\d+)(th|st|nd|rd)?/i,ca=/\d+/i,ua={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},da={any:[/^b/i,/^(a|c)/i]},fa={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ma={any:[/1/i,/2/i,/3/i,/4/i]},ha={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},va={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ya={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ga={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ba={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},pa={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},wa={ordinalNumber:Lr({matchPattern:la,parsePattern:ca,valueCallback:e=>parseInt(e,10)}),era:Ye({matchPatterns:ua,defaultMatchWidth:"wide",parsePatterns:da,defaultParseWidth:"any"}),quarter:Ye({matchPatterns:fa,defaultMatchWidth:"wide",parsePatterns:ma,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ye({matchPatterns:ha,defaultMatchWidth:"wide",parsePatterns:va,defaultParseWidth:"any"}),day:Ye({matchPatterns:ya,defaultMatchWidth:"wide",parsePatterns:ga,defaultParseWidth:"any"}),dayPeriod:Ye({matchPatterns:ba,defaultMatchWidth:"any",parsePatterns:pa,defaultParseWidth:"any"})},Wt={code:"en-US",formatDistance:Qr,formatLong:Kr,formatRelative:Jr,localize:sa,match:wa,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xa(e){const r=T(e);return ue(r,Yn(r))+1}function At(e){const r=T(e),t=+he(r)-+Yr(r);return Math.round(t/It)+1}function Yt(e,r){var u,d,m,f;const t=T(e),n=t.getFullYear(),a=Me(),o=(r==null?void 0:r.firstWeekContainsDate)??((d=(u=r==null?void 0:r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((f=(m=a.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,i=F(e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);const s=ne(i,r),l=F(e,0);l.setFullYear(n,0,o),l.setHours(0,0,0,0);const c=ne(l,r);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function _a(e,r){var s,l,c,u;const t=Me(),n=(r==null?void 0:r.firstWeekContainsDate)??((l=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??t.firstWeekContainsDate??((u=(c=t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,a=Yt(e,r),o=F(e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),ne(o,r)}function Ht(e,r){const t=T(e),n=+ne(t,r)-+_a(t,r);return Math.round(n/It)+1}function S(e,r){const t=e<0?"-":"",n=Math.abs(e).toString().padStart(r,"0");return t+n}const ye={y(e,r){const t=e.getFullYear(),n=t>0?t:1-t;return S(r==="yy"?n%100:n,r.length)},M(e,r){const t=e.getMonth();return r==="M"?String(t+1):S(t+1,2)},d(e,r){return S(e.getDate(),r.length)},a(e,r){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,r){return S(e.getHours()%12||12,r.length)},H(e,r){return S(e.getHours(),r.length)},m(e,r){return S(e.getMinutes(),r.length)},s(e,r){return S(e.getSeconds(),r.length)},S(e,r){const t=r.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,t-3));return S(a,r.length)}},Pe={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},un={G:function(e,r,t){const n=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(e,r,t){if(r==="yo"){const n=e.getFullYear(),a=n>0?n:1-n;return t.ordinalNumber(a,{unit:"year"})}return ye.y(e,r)},Y:function(e,r,t,n){const a=Yt(e,n),o=a>0?a:1-a;if(r==="YY"){const i=o%100;return S(i,2)}return r==="Yo"?t.ordinalNumber(o,{unit:"year"}):S(o,r.length)},R:function(e,r){const t=An(e);return S(t,r.length)},u:function(e,r){const t=e.getFullYear();return S(t,r.length)},Q:function(e,r,t){const n=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return S(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,r,t){const n=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return S(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,r,t){const n=e.getMonth();switch(r){case"M":case"MM":return ye.M(e,r);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(e,r,t){const n=e.getMonth();switch(r){case"L":return String(n+1);case"LL":return S(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,r,t,n){const a=Ht(e,n);return r==="wo"?t.ordinalNumber(a,{unit:"week"}):S(a,r.length)},I:function(e,r,t){const n=At(e);return r==="Io"?t.ordinalNumber(n,{unit:"week"}):S(n,r.length)},d:function(e,r,t){return r==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):ye.d(e,r)},D:function(e,r,t){const n=xa(e);return r==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):S(n,r.length)},E:function(e,r,t){const n=e.getDay();switch(r){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(e,r,t,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return S(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(a,{width:"short",context:"formatting"});case"eeee":default:return t.day(a,{width:"wide",context:"formatting"})}},c:function(e,r,t,n){const a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return S(o,r.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(a,{width:"narrow",context:"standalone"});case"cccccc":return t.day(a,{width:"short",context:"standalone"});case"cccc":default:return t.day(a,{width:"wide",context:"standalone"})}},i:function(e,r,t){const n=e.getDay(),a=n===0?7:n;switch(r){case"i":return String(a);case"ii":return S(a,r.length);case"io":return t.ordinalNumber(a,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(e,r,t){const a=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,r,t){const n=e.getHours();let a;switch(n===12?a=Pe.noon:n===0?a=Pe.midnight:a=n/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,r,t){const n=e.getHours();let a;switch(n>=17?a=Pe.evening:n>=12?a=Pe.afternoon:n>=4?a=Pe.morning:a=Pe.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,r,t){if(r==="ho"){let n=e.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return ye.h(e,r)},H:function(e,r,t){return r==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):ye.H(e,r)},K:function(e,r,t){const n=e.getHours()%12;return r==="Ko"?t.ordinalNumber(n,{unit:"hour"}):S(n,r.length)},k:function(e,r,t){let n=e.getHours();return n===0&&(n=24),r==="ko"?t.ordinalNumber(n,{unit:"hour"}):S(n,r.length)},m:function(e,r,t){return r==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):ye.m(e,r)},s:function(e,r,t){return r==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):ye.s(e,r)},S:function(e,r){return ye.S(e,r)},X:function(e,r,t){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(r){case"X":return fn(n);case"XXXX":case"XX":return we(n);case"XXXXX":case"XXX":default:return we(n,":")}},x:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"x":return fn(n);case"xxxx":case"xx":return we(n);case"xxxxx":case"xxx":default:return we(n,":")}},O:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+dn(n,":");case"OOOO":default:return"GMT"+we(n,":")}},z:function(e,r,t){const n=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+dn(n,":");case"zzzz":default:return"GMT"+we(n,":")}},t:function(e,r,t){const n=Math.trunc(e.getTime()/1e3);return S(n,r.length)},T:function(e,r,t){const n=e.getTime();return S(n,r.length)}};function dn(e,r=""){const t=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?t+String(a):t+String(a)+r+S(o,2)}function fn(e,r){return e%60===0?(e>0?"-":"+")+S(Math.abs(e)/60,2):we(e,r)}function we(e,r=""){const t=e>0?"-":"+",n=Math.abs(e),a=S(Math.trunc(n/60),2),o=S(n%60,2);return t+a+r+o}const mn=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},$n=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Oa=(e,r)=>{const t=e.match(/(P+)(p+)?/)||[],n=t[1],a=t[2];if(!a)return mn(e,r);let o;switch(n){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",mn(n,r)).replace("{{time}}",$n(a,r))},Pt={p:$n,P:Oa},Ma=/^D+$/,Da=/^Y+$/,ka=["D","DD","YY","YYYY"];function Bn(e){return Ma.test(e)}function qn(e){return Da.test(e)}function Et(e,r,t){const n=Pa(e,r,t);if(console.warn(n),ka.includes(e))throw new RangeError(n)}function Pa(e,r,t){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ea=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ca=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Na=/^'([^]*?)'?$/,Ta=/''/g,ja=/[a-zA-Z]/;function De(e,r,t){var u,d,m,f,h,y,b,w;const n=Me(),a=(t==null?void 0:t.locale)??n.locale??Wt,o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(m=n.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,i=(t==null?void 0:t.weekStartsOn)??((y=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:y.weekStartsOn)??n.weekStartsOn??((w=(b=n.locale)==null?void 0:b.options)==null?void 0:w.weekStartsOn)??0,s=T(e);if(!qr(s))throw new RangeError("Invalid time value");let l=r.match(Ca).map(p=>{const x=p[0];if(x==="p"||x==="P"){const D=Pt[x];return D(p,a.formatLong)}return p}).join("").match(Ea).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const x=p[0];if(x==="'")return{isToken:!1,value:Ra(p)};if(un[x])return{isToken:!0,value:p};if(x.match(ja))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:p}});a.localize.preprocessor&&(l=a.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return l.map(p=>{if(!p.isToken)return p.value;const x=p.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&qn(x)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Bn(x))&&Et(x,r,String(e));const D=un[x[0]];return D(s,x,a.localize,c)}).join("")}function Ra(e){const r=e.match(Na);return r?r[1].replace(Ta,"'"):e}function Ia(e){const r=T(e),t=r.getFullYear(),n=r.getMonth(),a=F(e,0);return a.setFullYear(t,n+1,0),a.setHours(0,0,0,0),a.getDate()}function La(){return Object.assign({},Me())}function Sa(e){let t=T(e).getDay();return t===0&&(t=7),t}function Fa(e){return Math.trunc(+T(e)/1e3)}function Wa(e){const r=T(e),t=r.getMonth();return r.setFullYear(r.getFullYear(),t+1,0),r.setHours(0,0,0,0),r}function Aa(e,r){return zr(Wa(e),J(e),r)+1}function Ct(e,r){const t=T(e),n=T(r);return t.getTime()>n.getTime()}function $t(e,r){const t=T(e),n=T(r);return+t<+n}function Ya(e,r){const t=r instanceof Date?F(r,0):new r(0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}const Ha=10;class zn{constructor(){M(this,"subPriority",0)}validate(r,t){return!0}}class $a extends zn{constructor(r,t,n,a,o){super(),this.value=r,this.validateValue=t,this.setValue=n,this.priority=a,o&&(this.subPriority=o)}validate(r,t){return this.validateValue(r,this.value,t)}set(r,t,n){return this.setValue(r,t,this.value,n)}}class Ba extends zn{constructor(){super(...arguments);M(this,"priority",Ha);M(this,"subPriority",-1)}set(t,n){return n.timestampIsSet?t:F(t,Ya(t,Date))}}class R{run(r,t,n,a){const o=this.parse(r,t,n,a);return o?{setter:new $a(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(r,t,n){return!0}}class qa extends R{constructor(){super(...arguments);M(this,"priority",140);M(this,"incompatibleTokens",["R","u","t","T"])}parse(t,n,a){switch(n){case"G":case"GG":case"GGG":return a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"});case"GGGGG":return a.era(t,{width:"narrow"});case"GGGG":default:return a.era(t,{width:"wide"})||a.era(t,{width:"abbreviated"})||a.era(t,{width:"narrow"})}}set(t,n,a){return n.era=a,t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}const q={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},le={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function z(e,r){return e&&{value:r(e.value),rest:e.rest}}function $(e,r){const t=r.match(e);return t?{value:parseInt(t[0],10),rest:r.slice(t[0].length)}:null}function ce(e,r){const t=r.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:r.slice(1)};const n=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,i=t[5]?parseInt(t[5],10):0;return{value:n*(a*Fr+o*Wr+i*Ar),rest:r.slice(t[0].length)}}function Vn(e){return $(q.anyDigitsSigned,e)}function B(e,r){switch(e){case 1:return $(q.singleDigit,r);case 2:return $(q.twoDigits,r);case 3:return $(q.threeDigits,r);case 4:return $(q.fourDigits,r);default:return $(new RegExp("^\\d{1,"+e+"}"),r)}}function ot(e,r){switch(e){case 1:return $(q.singleDigitSigned,r);case 2:return $(q.twoDigitsSigned,r);case 3:return $(q.threeDigitsSigned,r);case 4:return $(q.fourDigitsSigned,r);default:return $(new RegExp("^-?\\d{1,"+e+"}"),r)}}function Bt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Qn(e,r){const t=r>0,n=t?r:1-r;let a;if(n<=50)a=e||100;else{const o=n+50,i=Math.trunc(o/100)*100,s=e>=o%100;a=e+i-(s?100:0)}return t?a:1-a}function Gn(e){return e%400===0||e%4===0&&e%100!==0}class za extends R{constructor(){super(...arguments);M(this,"priority",130);M(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return z(B(4,t),o);case"yo":return z(a.ordinalNumber(t,{unit:"year"}),o);default:return z(B(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a){const o=t.getFullYear();if(a.isTwoDigitYear){const s=Qn(a.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class Va extends R{constructor(){super(...arguments);M(this,"priority",130);M(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,n,a){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return z(B(4,t),o);case"Yo":return z(a.ordinalNumber(t,{unit:"year"}),o);default:return z(B(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,a,o){const i=Yt(t,o);if(a.isTwoDigitYear){const l=Qn(a.year,i);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),ne(t,o)}const s=!("era"in n)||n.era===1?a.year:1-a.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),ne(t,o)}}class Qa extends R{constructor(){super(...arguments);M(this,"priority",130);M(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,n){return ot(n==="R"?4:n.length,t)}set(t,n,a){const o=F(t,0);return o.setFullYear(a,0,4),o.setHours(0,0,0,0),he(o)}}class Ga extends R{constructor(){super(...arguments);M(this,"priority",130);M(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,n){return ot(n==="u"?4:n.length,t)}set(t,n,a){return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}class Xa extends R{constructor(){super(...arguments);M(this,"priority",120);M(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,a){switch(n){case"Q":case"QQ":return B(n.length,t);case"Qo":return a.ordinalNumber(t,{unit:"quarter"});case"QQQ":return a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(t,{width:"wide",context:"formatting"})||a.quarter(t,{width:"abbreviated",context:"formatting"})||a.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}}class Ua extends R{constructor(){super(...arguments);M(this,"priority",120);M(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,a){switch(n){case"q":case"qq":return B(n.length,t);case"qo":return a.ordinalNumber(t,{unit:"quarter"});case"qqq":return a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(t,{width:"wide",context:"standalone"})||a.quarter(t,{width:"abbreviated",context:"standalone"})||a.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,a){return t.setMonth((a-1)*3,1),t.setHours(0,0,0,0),t}}class Ka extends R{constructor(){super(...arguments);M(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);M(this,"priority",110)}parse(t,n,a){const o=i=>i-1;switch(n){case"M":return z($(q.month,t),o);case"MM":return z(B(2,t),o);case"Mo":return z(a.ordinalNumber(t,{unit:"month"}),o);case"MMM":return a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(t,{width:"wide",context:"formatting"})||a.month(t,{width:"abbreviated",context:"formatting"})||a.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}class Za extends R{constructor(){super(...arguments);M(this,"priority",110);M(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,n,a){const o=i=>i-1;switch(n){case"L":return z($(q.month,t),o);case"LL":return z(B(2,t),o);case"Lo":return z(a.ordinalNumber(t,{unit:"month"}),o);case"LLL":return a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(t,{width:"wide",context:"standalone"})||a.month(t,{width:"abbreviated",context:"standalone"})||a.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.setMonth(a,1),t.setHours(0,0,0,0),t}}function Ja(e,r,t){const n=T(e),a=Ht(n,t)-r;return n.setDate(n.getDate()-a*7),n}class eo extends R{constructor(){super(...arguments);M(this,"priority",100);M(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,n,a){switch(n){case"w":return $(q.week,t);case"wo":return a.ordinalNumber(t,{unit:"week"});default:return B(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a,o){return ne(Ja(t,a,o),o)}}function to(e,r){const t=T(e),n=At(t)-r;return t.setDate(t.getDate()-n*7),t}class no extends R{constructor(){super(...arguments);M(this,"priority",100);M(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,n,a){switch(n){case"I":return $(q.week,t);case"Io":return a.ordinalNumber(t,{unit:"week"});default:return B(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,a){return he(to(t,a))}}const ro=[31,28,31,30,31,30,31,31,30,31,30,31],ao=[31,29,31,30,31,30,31,31,30,31,30,31];class oo extends R{constructor(){super(...arguments);M(this,"priority",90);M(this,"subPriority",1);M(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,n,a){switch(n){case"d":return $(q.date,t);case"do":return a.ordinalNumber(t,{unit:"date"});default:return B(n.length,t)}}validate(t,n){const a=t.getFullYear(),o=Gn(a),i=t.getMonth();return o?n>=1&&n<=ao[i]:n>=1&&n<=ro[i]}set(t,n,a){return t.setDate(a),t.setHours(0,0,0,0),t}}class io extends R{constructor(){super(...arguments);M(this,"priority",90);M(this,"subpriority",1);M(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,n,a){switch(n){case"D":case"DD":return $(q.dayOfYear,t);case"Do":return a.ordinalNumber(t,{unit:"date"});default:return B(n.length,t)}}validate(t,n){const a=t.getFullYear();return Gn(a)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,a){return t.setMonth(0,a),t.setHours(0,0,0,0),t}}function qt(e,r,t){var d,m,f,h;const n=Me(),a=(t==null?void 0:t.weekStartsOn)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??n.weekStartsOn??((h=(f=n.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,o=T(e),i=o.getDay(),l=(r%7+7)%7,c=7-a,u=r<0||r>6?r-(i+c)%7:(l+c)%7-(i+c)%7;return K(o,u)}class so extends R{constructor(){super(...arguments);M(this,"priority",90);M(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,n,a){switch(n){case"E":case"EE":case"EEE":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=qt(t,a,o),t.setHours(0,0,0,0),t}}class lo extends R{constructor(){super(...arguments);M(this,"priority",90);M(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,n,a,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(n){case"e":case"ee":return z(B(n.length,t),i);case"eo":return z(a.ordinalNumber(t,{unit:"day"}),i);case"eee":return a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeeee":return a.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=qt(t,a,o),t.setHours(0,0,0,0),t}}class co extends R{constructor(){super(...arguments);M(this,"priority",90);M(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,n,a,o){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+l};switch(n){case"c":case"cc":return z(B(n.length,t),i);case"co":return z(a.ordinalNumber(t,{unit:"day"}),i);case"ccc":return a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"ccccc":return a.day(t,{width:"narrow",context:"standalone"});case"cccccc":return a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(t,{width:"wide",context:"standalone"})||a.day(t,{width:"abbreviated",context:"standalone"})||a.day(t,{width:"short",context:"standalone"})||a.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,a,o){return t=qt(t,a,o),t.setHours(0,0,0,0),t}}function uo(e,r){const t=T(e),n=Sa(t),a=r-n;return K(t,a)}class fo extends R{constructor(){super(...arguments);M(this,"priority",90);M(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,n,a){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return B(n.length,t);case"io":return a.ordinalNumber(t,{unit:"day"});case"iii":return z(a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return z(a.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return z(a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return z(a.day(t,{width:"wide",context:"formatting"})||a.day(t,{width:"abbreviated",context:"formatting"})||a.day(t,{width:"short",context:"formatting"})||a.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,n){return n>=1&&n<=7}set(t,n,a){return t=uo(t,a),t.setHours(0,0,0,0),t}}class mo extends R{constructor(){super(...arguments);M(this,"priority",80);M(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,n,a){switch(n){case"a":case"aa":case"aaa":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Bt(a),0,0,0),t}}class ho extends R{constructor(){super(...arguments);M(this,"priority",80);M(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,n,a){switch(n){case"b":case"bb":case"bbb":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Bt(a),0,0,0),t}}class vo extends R{constructor(){super(...arguments);M(this,"priority",80);M(this,"incompatibleTokens",["a","b","t","T"])}parse(t,n,a){switch(n){case"B":case"BB":case"BBB":return a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(t,{width:"wide",context:"formatting"})||a.dayPeriod(t,{width:"abbreviated",context:"formatting"})||a.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,a){return t.setHours(Bt(a),0,0,0),t}}class yo extends R{constructor(){super(...arguments);M(this,"priority",70);M(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,n,a){switch(n){case"h":return $(q.hour12h,t);case"ho":return a.ordinalNumber(t,{unit:"hour"});default:return B(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,a){const o=t.getHours()>=12;return o&&a<12?t.setHours(a+12,0,0,0):!o&&a===12?t.setHours(0,0,0,0):t.setHours(a,0,0,0),t}}class go extends R{constructor(){super(...arguments);M(this,"priority",70);M(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,n,a){switch(n){case"H":return $(q.hour23h,t);case"Ho":return a.ordinalNumber(t,{unit:"hour"});default:return B(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,a){return t.setHours(a,0,0,0),t}}class bo extends R{constructor(){super(...arguments);M(this,"priority",70);M(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,n,a){switch(n){case"K":return $(q.hour11h,t);case"Ko":return a.ordinalNumber(t,{unit:"hour"});default:return B(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,a){return t.getHours()>=12&&a<12?t.setHours(a+12,0,0,0):t.setHours(a,0,0,0),t}}class po extends R{constructor(){super(...arguments);M(this,"priority",70);M(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,n,a){switch(n){case"k":return $(q.hour24h,t);case"ko":return a.ordinalNumber(t,{unit:"hour"});default:return B(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,a){const o=a<=24?a%24:a;return t.setHours(o,0,0,0),t}}class wo extends R{constructor(){super(...arguments);M(this,"priority",60);M(this,"incompatibleTokens",["t","T"])}parse(t,n,a){switch(n){case"m":return $(q.minute,t);case"mo":return a.ordinalNumber(t,{unit:"minute"});default:return B(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setMinutes(a,0,0),t}}class xo extends R{constructor(){super(...arguments);M(this,"priority",50);M(this,"incompatibleTokens",["t","T"])}parse(t,n,a){switch(n){case"s":return $(q.second,t);case"so":return a.ordinalNumber(t,{unit:"second"});default:return B(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,a){return t.setSeconds(a,0),t}}class _o extends R{constructor(){super(...arguments);M(this,"priority",30);M(this,"incompatibleTokens",["t","T"])}parse(t,n){const a=o=>Math.trunc(o*Math.pow(10,-n.length+3));return z(B(n.length,t),a)}set(t,n,a){return t.setMilliseconds(a),t}}class Oo extends R{constructor(){super(...arguments);M(this,"priority",10);M(this,"incompatibleTokens",["t","T","x"])}parse(t,n){switch(n){case"X":return ce(le.basicOptionalMinutes,t);case"XX":return ce(le.basic,t);case"XXXX":return ce(le.basicOptionalSeconds,t);case"XXXXX":return ce(le.extendedOptionalSeconds,t);case"XXX":default:return ce(le.extended,t)}}set(t,n,a){return n.timestampIsSet?t:F(t,t.getTime()-Ie(t)-a)}}class Mo extends R{constructor(){super(...arguments);M(this,"priority",10);M(this,"incompatibleTokens",["t","T","X"])}parse(t,n){switch(n){case"x":return ce(le.basicOptionalMinutes,t);case"xx":return ce(le.basic,t);case"xxxx":return ce(le.basicOptionalSeconds,t);case"xxxxx":return ce(le.extendedOptionalSeconds,t);case"xxx":default:return ce(le.extended,t)}}set(t,n,a){return n.timestampIsSet?t:F(t,t.getTime()-Ie(t)-a)}}class Do extends R{constructor(){super(...arguments);M(this,"priority",40);M(this,"incompatibleTokens","*")}parse(t){return Vn(t)}set(t,n,a){return[F(t,a*1e3),{timestampIsSet:!0}]}}class ko extends R{constructor(){super(...arguments);M(this,"priority",20);M(this,"incompatibleTokens","*")}parse(t){return Vn(t)}set(t,n,a){return[F(t,a),{timestampIsSet:!0}]}}const Po={G:new qa,y:new za,Y:new Va,R:new Qa,u:new Ga,Q:new Xa,q:new Ua,M:new Ka,L:new Za,w:new eo,I:new no,d:new oo,D:new io,E:new so,e:new lo,c:new co,i:new fo,a:new mo,b:new ho,B:new vo,h:new yo,H:new go,K:new bo,k:new po,m:new wo,s:new xo,S:new _o,X:new Oo,x:new Mo,t:new Do,T:new ko},Eo=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Co=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,No=/^'([^]*?)'?$/,To=/''/g,jo=/\S/,Ro=/[a-zA-Z]/;function Ne(e,r,t,n){var y,b,w,p,x,D,E,L;const a=La(),o=(n==null?void 0:n.locale)??a.locale??Wt,i=(n==null?void 0:n.firstWeekContainsDate)??((b=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:b.firstWeekContainsDate)??a.firstWeekContainsDate??((p=(w=a.locale)==null?void 0:w.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((D=(x=n==null?void 0:n.locale)==null?void 0:x.options)==null?void 0:D.weekStartsOn)??a.weekStartsOn??((L=(E=a.locale)==null?void 0:E.options)==null?void 0:L.weekStartsOn)??0;if(r==="")return e===""?T(t):F(t,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:o},c=[new Ba],u=r.match(Co).map(k=>{const N=k[0];if(N in Pt){const Y=Pt[N];return Y(k,o.formatLong)}return k}).join("").match(Eo),d=[];for(let k of u){!(n!=null&&n.useAdditionalWeekYearTokens)&&qn(k)&&Et(k,r,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Bn(k)&&Et(k,r,e);const N=k[0],Y=Po[N];if(Y){const{incompatibleTokens:Q}=Y;if(Array.isArray(Q)){const A=d.find(X=>Q.includes(X.token)||X.token===N);if(A)throw new RangeError(`The format string mustn't contain \`${A.fullToken}\` and \`${k}\` at the same time`)}else if(Y.incompatibleTokens==="*"&&d.length>0)throw new RangeError(`The format string mustn't contain \`${k}\` and any other token at the same time`);d.push({token:N,fullToken:k});const G=Y.run(e,k,o.match,l);if(!G)return F(t,NaN);c.push(G.setter),e=G.rest}else{if(N.match(Ro))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");if(k==="''"?k="'":N==="'"&&(k=Io(k)),e.indexOf(k)===0)e=e.slice(k.length);else return F(t,NaN)}}if(e.length>0&&jo.test(e))return F(t,NaN);const m=c.map(k=>k.priority).sort((k,N)=>N-k).filter((k,N,Y)=>Y.indexOf(k)===N).map(k=>c.filter(N=>N.priority===k).sort((N,Y)=>Y.subPriority-N.subPriority)).map(k=>k[0]);let f=T(t);if(isNaN(f.getTime()))return F(t,NaN);const h={};for(const k of m){if(!k.validate(f,l))return F(t,NaN);const N=k.set(f,h,l);Array.isArray(N)?(f=N[0],Object.assign(h,N[1])):f=N}return F(t,f)}function Io(e){return e.match(No)[1].replace(To,"'")}function zt(e,r){const t=T(e),n=T(r);return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()}function Lo(e,r){const t=T(e),n=T(r);return t.getFullYear()===n.getFullYear()}function gt(e,r){const t=T(e),n=t.getFullYear(),a=t.getDate(),o=F(e,0);o.setFullYear(n,r,15),o.setHours(0,0,0,0);const i=Ia(o);return t.setMonth(r,Math.min(a,i)),t}function hn(e,r){const t=T(e);return isNaN(+t)?F(e,NaN):(t.setFullYear(r),t)}function So(e,r){return re(e,-r)}function Fo(e,r){const{years:t=0,months:n=0,weeks:a=0,days:o=0,hours:i=0,minutes:s=0,seconds:l=0}=r,c=So(e,n+t*12),u=tt(c,o+a*7),d=s+i*60,f=(l+d*60)*1e3;return F(e,u.getTime()-f)}function Xn(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;rI({"navds-typo--spacing":e.spacing,"navds-typo--truncate":e.truncate,"navds-typo--semibold":e.weight==="semibold",[`navds-typo--align-${e.align}`]:e.align,[`navds-typo--color-${e.textColor}`]:e.textColor,"navds-typo--visually-hidden":e.visuallyHidden,"navds-typo--uppercase":e.uppercase});var Wo=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t,size:n="medium",as:a="p",spacing:o,truncate:i,weight:s="regular",align:l,visuallyHidden:c,textColor:u}=e,d=Wo(e,["className","size","as","spacing","truncate","weight","align","visuallyHidden","textColor"]);return _.createElement(a,Object.assign({},d,{ref:r,className:I(t,"navds-body-long",`navds-body-long--${n}`,Fe({spacing:o,truncate:i,weight:s,align:l,visuallyHidden:c,textColor:u}))}))});var Ao=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t,size:n="medium",as:a="p",spacing:o,truncate:i,weight:s="regular",align:l,visuallyHidden:c,textColor:u}=e,d=Ao(e,["className","size","as","spacing","truncate","weight","align","visuallyHidden","textColor"]);return _.createElement(a,Object.assign({},d,{ref:r,className:I(t,"navds-body-short",`navds-body-short--${n}`,Fe({spacing:o,truncate:i,weight:s,align:l,visuallyHidden:c,textColor:u}))}))});var Yo=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t,size:n="medium",spacing:a,uppercase:o,as:i="p",truncate:s,weight:l="regular",align:c,visuallyHidden:u,textColor:d}=e,m=Yo(e,["className","size","spacing","uppercase","as","truncate","weight","align","visuallyHidden","textColor"]);return _.createElement(i,Object.assign({},m,{ref:r,className:I(t,"navds-detail",Fe({spacing:a,truncate:s,weight:l,align:c,visuallyHidden:u,textColor:d,uppercase:o}),{"navds-detail--small":n==="small"})}))});var $o=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t,size:n,spacing:a,as:o="p"}=e,i=$o(e,["className","size","spacing","as"]);return _.createElement(o,Object.assign({},i,{ref:r,className:I("navds-error-message","navds-label",t,Fe({spacing:a}),{"navds-label--small":n==="small"})}))});var Bo=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{level:t="1",size:n,className:a,as:o,spacing:i,align:s,visuallyHidden:l,textColor:c}=e,u=Bo(e,["level","size","className","as","spacing","align","visuallyHidden","textColor"]);const d=o??`h${t}`;return _.createElement(d,Object.assign({},u,{ref:r,className:I(a,"navds-heading",`navds-heading--${n}`,Fe({spacing:i,align:s,visuallyHidden:l,textColor:c}))}))});var zo=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t,spacing:n,as:a="p"}=e,o=zo(e,["className","spacing","as"]);return _.createElement(a,Object.assign({},o,{ref:r,className:I(t,"navds-ingress",{"navds-typo--spacing":!!n})}))});var Vo=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t,size:n="medium",as:a="label",spacing:o,visuallyHidden:i,textColor:s}=e,l=Vo(e,["className","size","as","spacing","visuallyHidden","textColor"]);return _.createElement(a,Object.assign({},l,{ref:r,className:I(t,"navds-label",Fe({spacing:o,visuallyHidden:i,textColor:s}),{"navds-label--small":n==="small"})}))});function ae(e,r){const t=Object.entries(e).filter(([n])=>!r.includes(n));return Object.fromEntries(t)}const Qo=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};let vn=0;function Go(e){const[r,t]=v.useState(e),n=e||r;return v.useEffect(()=>{r==null&&(vn+=1,t(`aksel-id-${vn}`))},[r]),n}const yn=_.useId;function ge(e){var r;if(yn!==void 0){const t=yn();return e??t.replace(/(:)/g,"")}return(r=Go(e))!==null&&r!==void 0?r:""}let gn=0;function Xo(e){const[r,t]=v.useState(e),n=e||r;return v.useEffect(()=>{r==null&&(gn+=1,t(`aksel-icon-${gn}`))},[r]),n}const bn=_.useId;function Qt(e){var r;return bn!==void 0?bn().replace(/(:)/g,""):(r=Xo(e))!==null&&r!==void 0?r:""}var Uo=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{title:t,titleId:n}=e,a=Uo(e,["title","titleId"]);let o=Qt();return o=t?n||"title-"+o:void 0,v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",focusable:!1,role:"img",ref:r,"aria-labelledby":o},a),t?v.createElement("title",{id:o},t):null,v.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.97 9.47a.75.75 0 0 1 1.06 0L12 14.44l4.97-4.97a.75.75 0 1 1 1.06 1.06l-5.5 5.5a.75.75 0 0 1-1.06 0l-5.5-5.5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"}))});var Zo=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{title:t,titleId:n}=e,a=Zo(e,["title","titleId"]);let o=Qt();return o=t?n||"title-"+o:void 0,v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",focusable:!1,role:"img",ref:r,"aria-labelledby":o},a),t?v.createElement("title",{id:o},t):null,v.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.25A4.75 4.75 0 0 0 7.25 7v2.25H7A1.75 1.75 0 0 0 5.25 11v9c0 .414.336.75.75.75h12a.75.75 0 0 0 .75-.75v-9A1.75 1.75 0 0 0 17 9.25h-.25V7A4.75 4.75 0 0 0 12 2.25m3.25 7V7a3.25 3.25 0 0 0-6.5 0v2.25zM12 13a1.5 1.5 0 0 0-.75 2.8V17a.75.75 0 0 0 1.5 0v-1.2A1.5 1.5 0 0 0 12 13",clipRule:"evenodd"}))});var ei=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{title:t,titleId:n}=e,a=ei(e,["title","titleId"]);let o=Qt();return o=t?n||"title-"+o:void 0,v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",focusable:!1,role:"img",ref:r,"aria-labelledby":o},a),t?v.createElement("title",{id:o},t):null,v.createElement("path",{fill:"currentColor",d:"M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94z"}))});function nt(e,r,{checkForDefaultPrevented:t=!0}={}){return function(a){if(e==null||e(a),t===!1||!a.defaultPrevented)return r==null?void 0:r(a)}}function ni(e){return r=>{e.forEach(t=>{typeof t=="function"?t(r):t!=null&&(t.current=r)})}}function Kn(...e){return _.useCallback(ni(e),e)}var ri=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t,size:n="medium",title:a="venter...",transparent:o=!1,variant:i="neutral",id:s}=e,l=ri(e,["className","size","title","transparent","variant","id"]);const c=ge();return _.createElement("svg",Object.assign({"aria-labelledby":s??`loader-${c}`,ref:r,className:I("navds-loader",t,`navds-loader--${n}`,`navds-loader--${i}`,{"navds-loader--transparent":o}),focusable:"false",viewBox:"0 0 50 50",preserveAspectRatio:"xMidYMid"},ae(l,["children"])),_.createElement("title",{id:s??`loader-${c}`},a),_.createElement("circle",{className:"navds-loader__background",xmlns:"http://www.w3.org/2000/svg",cx:"25",cy:"25",r:"20",fill:"none"}),_.createElement("circle",{className:"navds-loader__foreground",cx:"25",cy:"25",r:"20",fill:"none",strokeDasharray:"50 155"}))});var oi=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{as:t="button",variant:n="primary",className:a,children:o,size:i="medium",loading:s=!1,disabled:l,style:c,icon:u,iconPosition:d="left"}=e,m=oi(e,["as","variant","className","children","size","loading","disabled","style","icon","iconPosition"]);const f=v.useRef(null),[h,y]=v.useState(),b=Kn(f,r);Qo(()=>{if(s){const x=window.requestAnimationFrame(()=>{var D,E;y((E=(D=f==null?void 0:f.current)===null||D===void 0?void 0:D.getBoundingClientRect())===null||E===void 0?void 0:E.width)});return()=>{y(void 0),cancelAnimationFrame(x)}}},[s,o]);const w=l??h?ae(m,["href"]):m,p=x=>{x.key===" "&&!l&&!h&&x.currentTarget.click()};return _.createElement(t,Object.assign({},t!=="button"?{role:"button"}:{},w,{ref:b,onKeyUp:nt(w.onKeyUp,p),className:I(a,"navds-button",`navds-button--${n}`,`navds-button--${i}`,{"navds-button--loading":h,"navds-button--icon-only":!!u&&!o,"navds-button--disabled":l??h}),style:Object.assign(Object.assign({},c),{width:h}),disabled:l??h?!0:void 0}),h?_.createElement(ai,{size:i}):_.createElement(_.Fragment,null,u&&d==="left"&&_.createElement("span",{className:"navds-button__icon"},u),o&&_.createElement(Vt,{as:"span",size:i==="medium"?"medium":"small"},o),u&&d==="right"&&_.createElement("span",{className:"navds-button__icon"},u)))});var C=function(){return C=Object.assign||function(r){for(var t,n=1,a=arguments.length;n1&&(l||!c),d=r>1&&(c||!l),m=function(){n&&o(n)},f=function(){a&&o(a)};return g.jsx(Yi,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:d,nextMonth:a,previousMonth:n,onPreviousClick:m,onNextClick:f})}function Hi(e){var r,t=W(),n=t.classNames,a=t.disableNavigation,o=t.styles,i=t.captionLayout,s=t.components,l=(r=s==null?void 0:s.CaptionLabel)!==null&&r!==void 0?r:tr,c;return a?c=g.jsx(l,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?c=g.jsx(wn,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?c=g.jsxs(g.Fragment,{children:[g.jsx(wn,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),g.jsx(xn,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=g.jsxs(g.Fragment,{children:[g.jsx(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),g.jsx(xn,{displayMonth:e.displayMonth,id:e.id})]}),g.jsx("div",{className:n.caption,style:o.caption,children:c})}function $i(e){var r=W(),t=r.footer,n=r.styles,a=r.classNames.tfoot;return t?g.jsx("tfoot",{className:a,style:n.tfoot,children:g.jsx("tr",{children:g.jsx("td",{colSpan:8,children:t})})}):g.jsx(g.Fragment,{})}function Bi(e,r,t){for(var n=t?he(new Date):ne(new Date,{locale:e,weekStartsOn:r}),a=[],o=0;o<7;o++){var i=K(n,o);a.push(i)}return a}function qi(){var e=W(),r=e.classNames,t=e.styles,n=e.showWeekNumber,a=e.locale,o=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,c=Bi(a,o,i);return g.jsxs("tr",{style:t.head_row,className:r.head_row,children:[n&&g.jsx("td",{style:t.head_cell,className:r.head_cell}),c.map(function(u,d){return g.jsx("th",{scope:"col",className:r.head_cell,style:t.head_cell,"aria-label":l(u,{locale:a}),children:s(u,{locale:a})},d)})]})}function zi(){var e,r=W(),t=r.classNames,n=r.styles,a=r.components,o=(e=a==null?void 0:a.HeadRow)!==null&&e!==void 0?e:qi;return g.jsx("thead",{style:n.head,className:t.head,children:g.jsx(o,{})})}function Vi(e){var r=W(),t=r.locale,n=r.formatters.formatDay;return g.jsx(g.Fragment,{children:n(e.date,{locale:t})})}var Gt=v.createContext(void 0);function Qi(e){if(!Qe(e.initialProps)){var r={selected:void 0,modifiers:{disabled:[]}};return g.jsx(Gt.Provider,{value:r,children:e.children})}return g.jsx(Gi,{initialProps:e.initialProps,children:e.children})}function Gi(e){var r=e.initialProps,t=e.children,n=r.selected,a=r.min,o=r.max,i=function(c,u,d){var m,f;(m=r.onDayClick)===null||m===void 0||m.call(r,c,u,d);var h=!!(u.selected&&a&&(n==null?void 0:n.length)===a);if(!h){var y=!!(!u.selected&&o&&(n==null?void 0:n.length)===o);if(!y){var b=n?Zn([],n):[];if(u.selected){var w=b.findIndex(function(p){return Z(c,p)});b.splice(w,1)}else b.push(c);(f=r.onSelect)===null||f===void 0||f.call(r,b,c,u,d)}}},s={disabled:[]};n&&s.disabled.push(function(c){var u=o&&n.length>o-1,d=n.some(function(m){return Z(m,c)});return!!(u&&!d)});var l={selected:n,onDayClick:i,modifiers:s};return g.jsx(Gt.Provider,{value:l,children:t})}function Xt(){var e=v.useContext(Gt);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Xi(e,r){var t=r||{},n=t.from,a=t.to;return n&&a?Z(a,e)&&Z(n,e)?void 0:Z(a,e)?{from:a,to:void 0}:Z(n,e)?void 0:Ct(n,e)?{from:e,to:a}:{from:n,to:e}:a?Ct(e,a)?{from:a,to:e}:{from:e,to:a}:n?$t(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Ut=v.createContext(void 0);function Ui(e){if(!Ge(e.initialProps)){var r={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return g.jsx(Ut.Provider,{value:r,children:e.children})}return g.jsx(Ki,{initialProps:e.initialProps,children:e.children})}function Ki(e){var r=e.initialProps,t=e.children,n=r.selected,a=n||{},o=a.from,i=a.to,s=r.min,l=r.max,c=function(f,h,y){var b,w;(b=r.onDayClick)===null||b===void 0||b.call(r,f,h,y);var p=Xi(f,n);(w=r.onSelect)===null||w===void 0||w.call(r,p,f,h,y)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(u.range_start=[o],i?(u.range_end=[i],Z(o,i)||(u.range_middle=[{after:o,before:i}])):u.range_end=[o]):i&&(u.range_start=[i],u.range_end=[i]),s&&(o&&!i&&u.disabled.push({after:tt(o,s-1),before:K(o,s-1)}),o&&i&&u.disabled.push({after:o,before:K(o,s-1)}),!o&&i&&u.disabled.push({after:tt(i,s-1),before:K(i,s-1)})),l){if(o&&!i&&(u.disabled.push({before:K(o,-l+1)}),u.disabled.push({after:K(o,l-1)})),o&&i){var d=ue(i,o)+1,m=l-d;u.disabled.push({before:tt(o,m)}),u.disabled.push({after:K(i,m)})}!o&&i&&(u.disabled.push({before:K(i,-l+1)}),u.disabled.push({after:K(i,l-1)}))}return g.jsx(Ut.Provider,{value:{selected:n,onDayClick:c,modifiers:u},children:t})}function Kt(){var e=v.useContext(Ut);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function rt(e){return Array.isArray(e)?Zn([],e):e!==void 0?[e]:[]}function Zi(e){var r={};return Object.entries(e).forEach(function(t){var n=t[0],a=t[1];r[n]=rt(a)}),r}var oe;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(oe||(oe={}));var Ji=oe.Selected,me=oe.Disabled,es=oe.Hidden,ts=oe.Today,bt=oe.RangeEnd,pt=oe.RangeMiddle,wt=oe.RangeStart,ns=oe.Outside;function rs(e,r,t){var n,a=(n={},n[Ji]=rt(e.selected),n[me]=rt(e.disabled),n[es]=rt(e.hidden),n[ts]=[e.today],n[bt]=[],n[pt]=[],n[wt]=[],n[ns]=[],n);return e.fromDate&&a[me].push({before:e.fromDate}),e.toDate&&a[me].push({after:e.toDate}),Qe(e)?a[me]=a[me].concat(r.modifiers[me]):Ge(e)&&(a[me]=a[me].concat(t.modifiers[me]),a[wt]=t.modifiers[wt],a[pt]=t.modifiers[pt],a[bt]=t.modifiers[bt]),a}var ar=v.createContext(void 0);function as(e){var r=W(),t=Xt(),n=Kt(),a=rs(r,t,n),o=Zi(r.modifiers),i=C(C({},a),o);return g.jsx(ar.Provider,{value:i,children:e.children})}function or(){var e=v.useContext(ar);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function os(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function is(e){return!!(e&&typeof e=="object"&&"from"in e)}function ss(e){return!!(e&&typeof e=="object"&&"after"in e)}function ls(e){return!!(e&&typeof e=="object"&&"before"in e)}function cs(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function us(e,r){var t,n=r.from,a=r.to;if(n&&a){var o=ue(a,n)<0;o&&(t=[a,n],n=t[0],a=t[1]);var i=ue(e,n)>=0&&ue(a,e)>=0;return i}return a?Z(a,e):n?Z(n,e):!1}function ds(e){return Lt(e)}function fs(e){return Array.isArray(e)&&e.every(Lt)}function ms(e,r){return r.some(function(t){if(typeof t=="boolean")return t;if(ds(t))return Z(e,t);if(fs(t))return t.includes(e);if(is(t))return us(e,t);if(cs(t))return t.dayOfWeek.includes(e.getDay());if(os(t)){var n=ue(t.before,e),a=ue(t.after,e),o=n>0,i=a<0,s=Ct(t.before,t.after);return s?i&&o:o||i}return ss(t)?ue(e,t.after)>0:ls(t)?ue(t.before,e)>0:typeof t=="function"?t(e):!1})}function Zt(e,r,t){var n=Object.keys(r).reduce(function(o,i){var s=r[i];return ms(e,s)&&o.push(i),o},[]),a={};return n.forEach(function(o){return a[o]=!0}),t&&!zt(e,t)&&(a.outside=!0),a}function hs(e,r){for(var t=J(e[0]),n=St(e[e.length-1]),a,o,i=t;i<=n;){var s=Zt(i,r),l=!s.disabled&&!s.hidden;if(!l){i=K(i,1);continue}if(s.selected)return i;s.today&&!o&&(o=i),a||(a=i),i=K(i,1)}return o||a}var vs=365;function ir(e,r){var t=r.moveBy,n=r.direction,a=r.context,o=r.modifiers,i=r.retry,s=i===void 0?{count:0,lastFocused:e}:i,l=a.weekStartsOn,c=a.fromDate,u=a.toDate,d=a.locale,m={day:K,week:kt,month:re,year:Hr,startOfWeek:function(b){return a.ISOWeek?he(b):ne(b,{locale:d,weekStartsOn:l})},endOfWeek:function(b){return a.ISOWeek?Hn(b):Ft(b,{locale:d,weekStartsOn:l})}},f=m[t](e,n==="after"?1:-1);n==="before"&&c?f=$r([c,f]):n==="after"&&u&&(f=Br([u,f]));var h=!0;if(o){var y=Zt(f,o);h=!y.disabled&&!y.hidden}return h?f:s.count>vs?s.lastFocused:ir(f,{moveBy:t,direction:n,context:a,modifiers:o,retry:C(C({},s),{count:s.count+1})})}var sr=v.createContext(void 0);function ys(e){var r=Xe(),t=or(),n=v.useState(),a=n[0],o=n[1],i=v.useState(),s=i[0],l=i[1],c=hs(r.displayMonths,t),u=a??(s&&r.isDateDisplayed(s))?s:c,d=function(){l(a),o(void 0)},m=function(b){o(b)},f=W(),h=function(b,w){if(a){var p=ir(a,{moveBy:b,direction:w,context:f,modifiers:t});Z(a,p)||(r.goToDate(p,a),m(p))}},y={focusedDay:a,focusTarget:u,blur:d,focus:m,focusDayAfter:function(){return h("day","after")},focusDayBefore:function(){return h("day","before")},focusWeekAfter:function(){return h("week","after")},focusWeekBefore:function(){return h("week","before")},focusMonthBefore:function(){return h("month","before")},focusMonthAfter:function(){return h("month","after")},focusYearBefore:function(){return h("year","before")},focusYearAfter:function(){return h("year","after")},focusStartOfWeek:function(){return h("startOfWeek","before")},focusEndOfWeek:function(){return h("endOfWeek","after")}};return g.jsx(sr.Provider,{value:y,children:e.children})}function Jt(){var e=v.useContext(sr);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function gs(e,r){var t=or(),n=Zt(e,t,r);return n}var en=v.createContext(void 0);function bs(e){if(!ft(e.initialProps)){var r={selected:void 0};return g.jsx(en.Provider,{value:r,children:e.children})}return g.jsx(ps,{initialProps:e.initialProps,children:e.children})}function ps(e){var r=e.initialProps,t=e.children,n=function(o,i,s){var l,c,u;if((l=r.onDayClick)===null||l===void 0||l.call(r,o,i,s),i.selected&&!r.required){(c=r.onSelect)===null||c===void 0||c.call(r,void 0,o,i,s);return}(u=r.onSelect)===null||u===void 0||u.call(r,o,o,i,s)},a={selected:r.selected,onDayClick:n};return g.jsx(en.Provider,{value:a,children:t})}function lr(){var e=v.useContext(en);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function ws(e,r){var t=W(),n=lr(),a=Xt(),o=Kt(),i=Jt(),s=i.focusDayAfter,l=i.focusDayBefore,c=i.focusWeekAfter,u=i.focusWeekBefore,d=i.blur,m=i.focus,f=i.focusMonthBefore,h=i.focusMonthAfter,y=i.focusYearBefore,b=i.focusYearAfter,w=i.focusStartOfWeek,p=i.focusEndOfWeek,x=function(O){var P,ee,se,ke;ft(t)?(P=n.onDayClick)===null||P===void 0||P.call(n,e,r,O):Qe(t)?(ee=a.onDayClick)===null||ee===void 0||ee.call(a,e,r,O):Ge(t)?(se=o.onDayClick)===null||se===void 0||se.call(o,e,r,O):(ke=t.onDayClick)===null||ke===void 0||ke.call(t,e,r,O)},D=function(O){var P;m(e),(P=t.onDayFocus)===null||P===void 0||P.call(t,e,r,O)},E=function(O){var P;d(),(P=t.onDayBlur)===null||P===void 0||P.call(t,e,r,O)},L=function(O){var P;(P=t.onDayMouseEnter)===null||P===void 0||P.call(t,e,r,O)},k=function(O){var P;(P=t.onDayMouseLeave)===null||P===void 0||P.call(t,e,r,O)},N=function(O){var P;(P=t.onDayPointerEnter)===null||P===void 0||P.call(t,e,r,O)},Y=function(O){var P;(P=t.onDayPointerLeave)===null||P===void 0||P.call(t,e,r,O)},Q=function(O){var P;(P=t.onDayTouchCancel)===null||P===void 0||P.call(t,e,r,O)},G=function(O){var P;(P=t.onDayTouchEnd)===null||P===void 0||P.call(t,e,r,O)},A=function(O){var P;(P=t.onDayTouchMove)===null||P===void 0||P.call(t,e,r,O)},X=function(O){var P;(P=t.onDayTouchStart)===null||P===void 0||P.call(t,e,r,O)},V=function(O){var P;(P=t.onDayKeyUp)===null||P===void 0||P.call(t,e,r,O)},H=function(O){var P;switch(O.key){case"ArrowLeft":O.preventDefault(),O.stopPropagation(),t.dir==="rtl"?s():l();break;case"ArrowRight":O.preventDefault(),O.stopPropagation(),t.dir==="rtl"?l():s();break;case"ArrowDown":O.preventDefault(),O.stopPropagation(),c();break;case"ArrowUp":O.preventDefault(),O.stopPropagation(),u();break;case"PageUp":O.preventDefault(),O.stopPropagation(),O.shiftKey?y():f();break;case"PageDown":O.preventDefault(),O.stopPropagation(),O.shiftKey?b():h();break;case"Home":O.preventDefault(),O.stopPropagation(),w();break;case"End":O.preventDefault(),O.stopPropagation(),p();break}(P=t.onDayKeyDown)===null||P===void 0||P.call(t,e,r,O)},U={onClick:x,onFocus:D,onBlur:E,onKeyDown:H,onKeyUp:V,onMouseEnter:L,onMouseLeave:k,onPointerEnter:N,onPointerLeave:Y,onTouchCancel:Q,onTouchEnd:G,onTouchMove:A,onTouchStart:X};return U}function xs(){var e=W(),r=lr(),t=Xt(),n=Kt(),a=ft(e)?r.selected:Qe(e)?t.selected:Ge(e)?n.selected:void 0;return a}function _s(e){return Object.values(oe).includes(e)}function Os(e,r){var t=[e.classNames.day];return Object.keys(r).forEach(function(n){var a=e.modifiersClassNames[n];if(a)t.push(a);else if(_s(n)){var o=e.classNames["day_".concat(n)];o&&t.push(o)}}),t}function Ms(e,r){var t=C({},e.styles.day);return Object.keys(r).forEach(function(n){var a;t=C(C({},t),(a=e.modifiersStyles)===null||a===void 0?void 0:a[n])}),t}function Ds(e,r,t){var n,a,o,i=W(),s=Jt(),l=gs(e,r),c=ws(e,l),u=xs(),d=!!(i.onDayClick||i.mode!=="default");v.useEffect(function(){var L;l.outside||s.focusedDay&&d&&Z(s.focusedDay,e)&&((L=t.current)===null||L===void 0||L.focus())},[s.focusedDay,e,t,d,l.outside]);var m=Os(i,l).join(" "),f=Ms(i,l),h=!!(l.outside&&!i.showOutsideDays||l.hidden),y=(o=(a=i.components)===null||a===void 0?void 0:a.DayContent)!==null&&o!==void 0?o:Vi,b=g.jsx(y,{date:e,displayMonth:r,activeModifiers:l}),w={style:f,className:m,children:b,role:"gridcell"},p=s.focusTarget&&Z(s.focusTarget,e)&&!l.outside,x=s.focusedDay&&Z(s.focusedDay,e),D=C(C(C({},w),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=x||p?0:-1,n)),c),E={isButton:d,isHidden:h,activeModifiers:l,selectedDays:u,buttonProps:D,divProps:w};return E}function ks(e){var r=v.useRef(null),t=Ds(e.date,e.displayMonth,r);return t.isHidden?g.jsx("div",{role:"gridcell"}):t.isButton?g.jsx(it,C({name:"day",ref:r},t.buttonProps)):g.jsx("div",C({},t.divProps))}function Ps(e){var r=e.number,t=e.dates,n=W(),a=n.onWeekNumberClick,o=n.styles,i=n.classNames,s=n.locale,l=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,u=c(Number(r),{locale:s});if(!a)return g.jsx("span",{className:i.weeknumber,style:o.weeknumber,children:u});var d=l(Number(r),{locale:s}),m=function(f){a(r,t,f)};return g.jsx(it,{name:"week-number","aria-label":d,className:i.weeknumber,style:o.weeknumber,onClick:m,children:u})}function Es(e){var r,t,n=W(),a=n.styles,o=n.classNames,i=n.showWeekNumber,s=n.components,l=(r=s==null?void 0:s.Day)!==null&&r!==void 0?r:ks,c=(t=s==null?void 0:s.WeekNumber)!==null&&t!==void 0?t:Ps,u;return i&&(u=g.jsx("td",{className:o.cell,style:a.cell,children:g.jsx(c,{number:e.weekNumber,dates:e.dates})})),g.jsxs("tr",{className:o.row,style:a.row,children:[u,e.dates.map(function(d){return g.jsx("td",{className:o.cell,style:a.cell,role:"presentation",children:g.jsx(l,{displayMonth:e.displayMonth,date:d})},Fa(d))})]})}function _n(e,r,t){for(var n=t!=null&&t.ISOWeek?Hn(r):Ft(r,t),a=t!=null&&t.ISOWeek?he(e):ne(e,t),o=ue(n,a),i=[],s=0;s<=o;s++)i.push(K(a,s));var l=i.reduce(function(c,u){var d=t!=null&&t.ISOWeek?At(u):Ht(u,t),m=c.find(function(f){return f.weekNumber===d});return m?(m.dates.push(u),c):(c.push({weekNumber:d,dates:[u]}),c)},[]);return l}function Cs(e,r){var t=_n(J(e),St(e),r);if(r!=null&&r.useFixedWeeks){var n=Aa(e,r);if(n<6){var a=t[t.length-1],o=a.dates[a.dates.length-1],i=kt(o,6-n),s=_n(kt(o,1),i,r);t.push.apply(t,s)}}return t}function Ns(e){var r,t,n,a=W(),o=a.locale,i=a.classNames,s=a.styles,l=a.hideHead,c=a.fixedWeeks,u=a.components,d=a.weekStartsOn,m=a.firstWeekContainsDate,f=a.ISOWeek,h=Cs(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:f,locale:o,weekStartsOn:d,firstWeekContainsDate:m}),y=(r=u==null?void 0:u.Head)!==null&&r!==void 0?r:zi,b=(t=u==null?void 0:u.Row)!==null&&t!==void 0?t:Es,w=(n=u==null?void 0:u.Footer)!==null&&n!==void 0?n:$i;return g.jsxs("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&g.jsx(y,{}),g.jsx("tbody",{className:i.tbody,style:s.tbody,children:h.map(function(p){return g.jsx(b,{displayMonth:e.displayMonth,dates:p.dates,weekNumber:p.weekNumber},p.weekNumber)})}),g.jsx(w,{displayMonth:e.displayMonth})]})}function Ts(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var js=Ts()?v.useLayoutEffect:v.useEffect,xt=!1,Rs=0;function On(){return"react-day-picker-".concat(++Rs)}function Is(e){var r,t=e??(xt?On():null),n=v.useState(t),a=n[0],o=n[1];return js(function(){a===null&&o(On())},[]),v.useEffect(function(){xt===!1&&(xt=!0)},[]),(r=e??a)!==null&&r!==void 0?r:void 0}function Ls(e){var r,t,n=W(),a=n.dir,o=n.classNames,i=n.styles,s=n.components,l=Xe().displayMonths,c=Is(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),u=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,d=[o.month],m=i.month,f=e.displayIndex===0,h=e.displayIndex===l.length-1,y=!f&&!h;a==="rtl"&&(r=[f,h],h=r[0],f=r[1]),f&&(d.push(o.caption_start),m=C(C({},m),i.caption_start)),h&&(d.push(o.caption_end),m=C(C({},m),i.caption_end)),y&&(d.push(o.caption_between),m=C(C({},m),i.caption_between));var b=(t=s==null?void 0:s.Caption)!==null&&t!==void 0?t:Hi;return g.jsxs("div",{className:d.join(" "),style:m,children:[g.jsx(b,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),g.jsx(Ns,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function Ss(e){var r=W(),t=r.classNames,n=r.styles;return g.jsx("div",{className:t.months,style:n.months,children:e.children})}function Fs(e){var r,t,n=e.initialProps,a=W(),o=Jt(),i=Xe(),s=v.useState(!1),l=s[0],c=s[1];v.useEffect(function(){a.initialFocus&&o.focusTarget&&(l||(o.focus(o.focusTarget),c(!0)))},[a.initialFocus,l,o.focus,o.focusTarget,o]);var u=[a.classNames.root,a.className];a.numberOfMonths>1&&u.push(a.classNames.multiple_months),a.showWeekNumber&&u.push(a.classNames.with_weeknumber);var d=C(C({},a.styles.root),a.style),m=Object.keys(n).filter(function(h){return h.startsWith("data-")}).reduce(function(h,y){var b;return C(C({},h),(b={},b[y]=n[y],b))},{}),f=(t=(r=n.components)===null||r===void 0?void 0:r.Months)!==null&&t!==void 0?t:Ss;return g.jsx("div",C({className:u.join(" "),style:d,dir:a.dir,id:a.id,nonce:n.nonce,title:n.title,lang:n.lang},m,{children:g.jsx(f,{children:i.displayMonths.map(function(h,y){return g.jsx(Ls,{displayIndex:y,displayMonth:h},y)})})}))}function Ws(e){var r=e.children,t=si(e,["children"]);return g.jsx(Pi,{initialProps:t,children:g.jsx(Fi,{children:g.jsx(bs,{initialProps:t,children:g.jsx(Qi,{initialProps:t,children:g.jsx(Ui,{initialProps:t,children:g.jsx(as,{children:g.jsx(ys,{children:r})})})})})})})}function pc(e){return g.jsx(Ws,C({},e,{children:g.jsx(Fs,{initialProps:e})}))}const cr=v.createContext(null),wc=()=>{const e=v.useContext(cr);return e||console.warn("useDateInputContext must be used with DateContext"),e};function xe(e){return!!(e&&!Number.isNaN(e.getTime())&&e.getFullYear()>999)}const As="dd.MM.yyyy",Ys="MMMM yyyy",ur=[As,"ddMMyyyy","dd/MM/yyyy","dd-MM-yyyy"];[...ur];const xc=(e,r,t,n,a)=>{let o;const i=ur;if(a){for(const s of i)if(o=Ne(e,s,r,{locale:t}),xe(o)&&!_t(e,r,t,i))return o;for(const s of[...i.map(l=>l.replace("yyyy","yy"))])if(o=Ne(e,s,r,{locale:t}),xe(o)&&_t(e,r,t,i)){const l=Hs(e,s,r,t);return xe(new Date(l))?new Date(l):new Date("Invalid date")}return new Date("Invalid date")}for(const s of i)if(o=Ne(e,s,r,{locale:t}),xe(o)&&!_t(e,r,t,i))return o;return new Date("Invalid date")};function _t(e,r,t,n){let a;const o=n.map(i=>i.replace("yyyy","yy"));for(const i of o)if(a=Ne(e,i,r,{locale:t}),xe(a))return!0;return!1}function Hs(e,r,t,n){const a=Ne(Mn(e,"19"),r.replace("yy","yyyy"),t,{locale:n}),o=Ne(Mn(e,"20"),r.replace("yy","yyyy"),t,{locale:n});return xe(a)&&xe(o)?$t(a,Fo(new Date,{years:80}))?o:a:new Date("Invalid date")}function Mn(e,r){const t=e.slice(-2);return`${e.slice(0,e.length-2)}${r}${t}`}v.createContext({hasDropdown:!1,year:new Date,toYear:()=>null,disabled:[],onSelect:()=>null});const tn=({readOnly:e,nativeReadOnly:r=!0})=>e?_.createElement(Jo,Object.assign({},r?{"aria-hidden":!0}:{title:"readonly"},{className:"navds-form-field__readonly-icon"})):null,ze=v.createContext(null),mt=(e,r)=>{var t,n,a;const{size:o,error:i,errorId:s}=e,l=v.useContext(ze),c=ge(),u=(t=e.id)!==null&&t!==void 0?t:`${r}-${c}`,d=s??`${r}-error-${c}`,m=`${r}-description-${c}`,f=(l==null?void 0:l.disabled)||e.disabled,h=((l==null?void 0:l.readOnly)||e.readOnly)&&!f||void 0,y=!f&&!h&&!!(i||l!=null&&l.error),b=!f&&!h&&!!i&&typeof i!="boolean",w=Object.assign({},y?{"aria-invalid":!0}:{});return e!=null&&e.required,{showErrorMsg:b,hasError:y,errorId:d,inputDescriptionId:m,size:(n=o??(l==null?void 0:l.size))!==null&&n!==void 0?n:"medium",readOnly:h,inputProps:Object.assign(Object.assign({id:u},w),{"aria-describedby":I(e["aria-describedby"],{[m]:!!(e!=null&&e.description)&&typeof(e==null?void 0:e.description)=="string",[d]:b,[(a=l==null?void 0:l.errorId)!==null&&a!==void 0?a:""]:y&&!!(l!=null&&l.error)})||void 0,disabled:f})}};function $s(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function $e(e){return e instanceof Element||e instanceof $s(e).Element}const Nt=Math.min,Bs=Math.max,qs={left:"right",right:"left",bottom:"top",top:"bottom"},zs={start:"end",end:"start"};function Tt(e,r,t){return Bs(e,Nt(r,t))}function Ue(e,r){return typeof e=="function"?e(r):e}function _e(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function dr(e){return e==="x"?"y":"x"}function nn(e){return e==="y"?"height":"width"}function ht(e){return["top","bottom"].includes(_e(e))?"y":"x"}function rn(e){return dr(ht(e))}function Vs(e,r,t){t===void 0&&(t=!1);const n=Ke(e),a=rn(e),o=nn(a);let i=a==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[o]>r.floating[o]&&(i=st(i)),[i,st(i)]}function Qs(e){const r=st(e);return[jt(e),r,jt(r)]}function jt(e){return e.replace(/start|end/g,r=>zs[r])}function Gs(e,r,t){const n=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return t?r?a:n:r?n:a;case"left":case"right":return r?o:i;default:return[]}}function Xs(e,r,t,n){const a=Ke(e);let o=Gs(_e(e),t==="start",n);return a&&(o=o.map(i=>i+"-"+a),r&&(o=o.concat(o.map(jt)))),o}function st(e){return e.replace(/left|right|bottom|top/g,r=>qs[r])}function Us(e){return{top:0,right:0,bottom:0,left:0,...e}}function fr(e){return typeof e!="number"?Us(e):{top:e,right:e,bottom:e,left:e}}function lt(e){const{x:r,y:t,width:n,height:a}=e;return{width:n,height:a,top:t,left:r,right:r+n,bottom:t+a,x:r,y:t}}function Dn(e,r,t){let{reference:n,floating:a}=e;const o=ht(r),i=rn(r),s=nn(i),l=_e(r),c=o==="y",u=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,m=n[s]/2-a[s]/2;let f;switch(l){case"top":f={x:u,y:n.y-a.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-a.width,y:d};break;default:f={x:n.x,y:n.y}}switch(Ke(r)){case"start":f[i]-=m*(t&&c?-1:1);break;case"end":f[i]+=m*(t&&c?-1:1);break}return f}const Ks=async(e,r,t)=>{const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=t,s=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(r));let c=await i.getElementRects({reference:e,floating:r,strategy:a}),{x:u,y:d}=Dn(c,n,l),m=n,f={},h=0;for(let y=0;y({name:"arrow",options:e,async fn(r){const{x:t,y:n,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=r,{element:c,padding:u=0}=Ue(e,r)||{};if(c==null)return{};const d=fr(u),m={x:t,y:n},f=rn(a),h=nn(f),y=await i.getDimensions(c),b=f==="y",w=b?"top":"left",p=b?"bottom":"right",x=b?"clientHeight":"clientWidth",D=o.reference[h]+o.reference[f]-m[f]-o.floating[h],E=m[f]-o.reference[f],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let k=L?L[x]:0;(!k||!await(i.isElement==null?void 0:i.isElement(L)))&&(k=s.floating[x]||o.floating[h]);const N=D/2-E/2,Y=k/2-y[h]/2-1,Q=Nt(d[w],Y),G=Nt(d[p],Y),A=Q,X=k-y[h]-G,V=k/2-y[h]/2+N,H=Tt(A,V,X),U=!l.arrow&&Ke(a)!=null&&V!==H&&o.reference[h]/2-(VA<=0)){var Y,Q;const A=(((Y=o.flip)==null?void 0:Y.index)||0)+1,X=E[A];if(X)return{data:{index:A,overflows:N},reset:{placement:X}};let V=(Q=N.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:Q.placement;if(!V)switch(f){case"bestFit":{var G;const H=(G=N.map(U=>[U.placement,U.overflows.filter(O=>O>0).reduce((O,P)=>O+P,0)]).sort((U,O)=>U[1]-O[1])[0])==null?void 0:G[0];H&&(V=H);break}case"initialPlacement":V=s;break}if(a!==V)return{reset:{placement:V}}}return{}}}};async function el(e,r){const{placement:t,platform:n,elements:a}=e,o=await(n.isRTL==null?void 0:n.isRTL(a.floating)),i=_e(t),s=Ke(t),l=ht(t)==="y",c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,d=Ue(r,e);let{mainAxis:m,crossAxis:f,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof h=="number"&&(f=s==="end"?h*-1:h),l?{x:f*u,y:m*c}:{x:m*c,y:f*u}}const tl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,n;const{x:a,y:o,placement:i,middlewareData:s}=r,l=await el(r,e);return i===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},nl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:t,y:n,placement:a}=r,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:w,y:p}=b;return{x:w,y:p}}},...l}=Ue(e,r),c={x:t,y:n},u=await mr(r,l),d=ht(_e(a)),m=dr(d);let f=c[m],h=c[d];if(o){const b=m==="y"?"top":"left",w=m==="y"?"bottom":"right",p=f+u[b],x=f-u[w];f=Tt(p,f,x)}if(i){const b=d==="y"?"top":"left",w=d==="y"?"bottom":"right",p=h+u[b],x=h-u[w];h=Tt(p,h,x)}const y=s.fn({...r,[m]:f,[d]:h});return{...y,data:{x:y.x-t,y:y.y-n}}}}},Rt=Math.min,Te=Math.max,ct=Math.round,Je=Math.floor,be=e=>({x:e,y:e});function We(e){return hr(e)?(e.nodeName||"").toLowerCase():"#document"}function te(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function ve(e){var r;return(r=(hr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function hr(e){return e instanceof Node||e instanceof te(e).Node}function de(e){return e instanceof Element||e instanceof te(e).Element}function fe(e){return e instanceof HTMLElement||e instanceof te(e).HTMLElement}function kn(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof te(e).ShadowRoot}function Ze(e){const{overflow:r,overflowX:t,overflowY:n,display:a}=ie(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+t)&&!["inline","contents"].includes(a)}function rl(e){return["table","td","th"].includes(We(e))}function an(e){const r=on(),t=ie(e);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!r&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!r&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function al(e){let r=pe(e);for(;fe(r)&&!Se(r);){if(an(r))return r;r=pe(r)}return null}function on(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Se(e){return["html","body","#document"].includes(We(e))}function ie(e){return te(e).getComputedStyle(e)}function vt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pe(e){if(We(e)==="html")return e;const r=e.assignedSlot||e.parentNode||kn(e)&&e.host||ve(e);return kn(r)?r.host:r}function vr(e){const r=pe(e);return Se(r)?e.ownerDocument?e.ownerDocument.body:e.body:fe(r)&&Ze(r)?r:vr(r)}function Ve(e,r,t){var n;r===void 0&&(r=[]),t===void 0&&(t=!0);const a=vr(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),i=te(a);return o?r.concat(i,i.visualViewport||[],Ze(a)?a:[],i.frameElement&&t?Ve(i.frameElement):[]):r.concat(a,Ve(a,[],t))}function yr(e){const r=ie(e);let t=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const a=fe(e),o=a?e.offsetWidth:t,i=a?e.offsetHeight:n,s=ct(t)!==o||ct(n)!==i;return s&&(t=o,n=i),{width:t,height:n,$:s}}function sn(e){return de(e)?e:e.contextElement}function je(e){const r=sn(e);if(!fe(r))return be(1);const t=r.getBoundingClientRect(),{width:n,height:a,$:o}=yr(r);let i=(o?ct(t.width):t.width)/n,s=(o?ct(t.height):t.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const ol=be(0);function gr(e){const r=te(e);return!on()||!r.visualViewport?ol:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function il(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==te(e)?!1:r}function Oe(e,r,t,n){r===void 0&&(r=!1),t===void 0&&(t=!1);const a=e.getBoundingClientRect(),o=sn(e);let i=be(1);r&&(n?de(n)&&(i=je(n)):i=je(e));const s=il(o,t,n)?gr(o):be(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o){const m=te(o),f=n&&de(n)?te(n):n;let h=m,y=h.frameElement;for(;y&&n&&f!==h;){const b=je(y),w=y.getBoundingClientRect(),p=ie(y),x=w.left+(y.clientLeft+parseFloat(p.paddingLeft))*b.x,D=w.top+(y.clientTop+parseFloat(p.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=x,c+=D,h=te(y),y=h.frameElement}}return lt({width:u,height:d,x:l,y:c})}const sl=[":popover-open",":modal"];function ln(e){return sl.some(r=>{try{return e.matches(r)}catch{return!1}})}function ll(e){let{elements:r,rect:t,offsetParent:n,strategy:a}=e;const o=a==="fixed",i=ve(n),s=r?ln(r.floating):!1;if(n===i||s&&o)return t;let l={scrollLeft:0,scrollTop:0},c=be(1);const u=be(0),d=fe(n);if((d||!d&&!o)&&((We(n)!=="body"||Ze(i))&&(l=vt(n)),fe(n))){const m=Oe(n);c=je(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+u.x,y:t.y*c.y-l.scrollTop*c.y+u.y}}function cl(e){return Array.from(e.getClientRects())}function br(e){return Oe(ve(e)).left+vt(e).scrollLeft}function ul(e){const r=ve(e),t=vt(e),n=e.ownerDocument.body,a=Te(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),o=Te(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+br(e);const s=-t.scrollTop;return ie(n).direction==="rtl"&&(i+=Te(r.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:s}}function dl(e,r){const t=te(e),n=ve(e),a=t.visualViewport;let o=n.clientWidth,i=n.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const c=on();(!c||c&&r==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}function fl(e,r){const t=Oe(e,!0,r==="fixed"),n=t.top+e.clientTop,a=t.left+e.clientLeft,o=fe(e)?je(e):be(1),i=e.clientWidth*o.x,s=e.clientHeight*o.y,l=a*o.x,c=n*o.y;return{width:i,height:s,x:l,y:c}}function Pn(e,r,t){let n;if(r==="viewport")n=dl(e,t);else if(r==="document")n=ul(ve(e));else if(de(r))n=fl(r,t);else{const a=gr(e);n={...r,x:r.x-a.x,y:r.y-a.y}}return lt(n)}function pr(e,r){const t=pe(e);return t===r||!de(t)||Se(t)?!1:ie(t).position==="fixed"||pr(t,r)}function ml(e,r){const t=r.get(e);if(t)return t;let n=Ve(e,[],!1).filter(s=>de(s)&&We(s)!=="body"),a=null;const o=ie(e).position==="fixed";let i=o?pe(e):e;for(;de(i)&&!Se(i);){const s=ie(i),l=an(i);!l&&s.position==="fixed"&&(a=null),(o?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ze(i)&&!l&&pr(e,i))?n=n.filter(u=>u!==i):a=s,i=pe(i)}return r.set(e,n),n}function hl(e){let{element:r,boundary:t,rootBoundary:n,strategy:a}=e;const i=[...t==="clippingAncestors"?ln(r)?[]:ml(r,this._c):[].concat(t),n],s=i[0],l=i.reduce((c,u)=>{const d=Pn(r,u,a);return c.top=Te(d.top,c.top),c.right=Rt(d.right,c.right),c.bottom=Rt(d.bottom,c.bottom),c.left=Te(d.left,c.left),c},Pn(r,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vl(e){const{width:r,height:t}=yr(e);return{width:r,height:t}}function yl(e,r,t){const n=fe(r),a=ve(r),o=t==="fixed",i=Oe(e,!0,o,r);let s={scrollLeft:0,scrollTop:0};const l=be(0);if(n||!n&&!o)if((We(r)!=="body"||Ze(a))&&(s=vt(r)),n){const d=Oe(r,!0,o,r);l.x=d.x+r.clientLeft,l.y=d.y+r.clientTop}else a&&(l.x=br(a));const c=i.left+s.scrollLeft-l.x,u=i.top+s.scrollTop-l.y;return{x:c,y:u,width:i.width,height:i.height}}function Ot(e){return ie(e).position==="static"}function En(e,r){return!fe(e)||ie(e).position==="fixed"?null:r?r(e):e.offsetParent}function wr(e,r){const t=te(e);if(ln(e))return t;if(!fe(e)){let a=pe(e);for(;a&&!Se(a);){if(de(a)&&!Ot(a))return a;a=pe(a)}return t}let n=En(e,r);for(;n&&rl(n)&&Ot(n);)n=En(n,r);return n&&Se(n)&&Ot(n)&&!an(n)?t:n||al(e)||t}const gl=async function(e){const r=this.getOffsetParent||wr,t=this.getDimensions,n=await t(e.floating);return{reference:yl(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function bl(e){return ie(e).direction==="rtl"}const pl={convertOffsetParentRelativeRectToViewportRelativeRect:ll,getDocumentElement:ve,getClippingRect:hl,getOffsetParent:wr,getElementRects:gl,getClientRects:cl,getDimensions:vl,getScale:je,isElement:de,isRTL:bl};function wl(e,r){let t=null,n;const a=ve(e);function o(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:c,top:u,width:d,height:m}=e.getBoundingClientRect();if(s||r(),!d||!m)return;const f=Je(u),h=Je(a.clientWidth-(c+d)),y=Je(a.clientHeight-(u+m)),b=Je(c),p={rootMargin:-f+"px "+-h+"px "+-y+"px "+-b+"px",threshold:Te(0,Rt(1,l))||1};let x=!0;function D(E){const L=E[0].intersectionRatio;if(L!==l){if(!x)return i();L?i(!1,L):n=setTimeout(()=>{i(!1,1e-7)},1e3)}x=!1}try{t=new IntersectionObserver(D,{...p,root:a.ownerDocument})}catch{t=new IntersectionObserver(D,p)}t.observe(e)}return i(!0),o}function _c(e,r,t,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=sn(e),u=a||o?[...c?Ve(c):[],...Ve(r)]:[];u.forEach(w=>{a&&w.addEventListener("scroll",t,{passive:!0}),o&&w.addEventListener("resize",t)});const d=c&&s?wl(c,t):null;let m=-1,f=null;i&&(f=new ResizeObserver(w=>{let[p]=w;p&&p.target===c&&f&&(f.unobserve(r),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(r)})),t()}),c&&!l&&f.observe(c),f.observe(r));let h,y=l?Oe(e):null;l&&b();function b(){const w=Oe(e);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&t(),y=w,h=requestAnimationFrame(b)}return t(),()=>{var w;u.forEach(p=>{a&&p.removeEventListener("scroll",t),o&&p.removeEventListener("resize",t)}),d==null||d(),(w=f)==null||w.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const xl=tl,_l=nl,Ol=Js,Cn=Zs,Ml=(e,r,t)=>{const n=new Map,a={platform:pl,...t},o={...a.platform,_c:n};return Ks(e,r,{...a,platform:o})};var at=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ut(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let t,n,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==r.length)return!1;for(n=t;n--!==0;)if(!ut(e[n],r[n]))return!1;return!0}if(a=Object.keys(e),t=a.length,t!==Object.keys(r).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(r,a[n]))return!1;for(n=t;n--!==0;){const o=a[n];if(!(o==="_owner"&&e.$$typeof)&&!ut(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}function xr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nn(e,r){const t=xr(e);return Math.round(r*t)/t}function Tn(e){const r=v.useRef(e);return at(()=>{r.current=e}),r}function Dl(e){e===void 0&&(e={});const{placement:r="bottom",strategy:t="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=v.useState({x:0,y:0,strategy:t,placement:r,middlewareData:{},isPositioned:!1}),[m,f]=v.useState(n);ut(m,n)||f(n);const[h,y]=v.useState(null),[b,w]=v.useState(null),p=v.useCallback(O=>{O!==L.current&&(L.current=O,y(O))},[]),x=v.useCallback(O=>{O!==k.current&&(k.current=O,w(O))},[]),D=o||h,E=i||b,L=v.useRef(null),k=v.useRef(null),N=v.useRef(u),Y=l!=null,Q=Tn(l),G=Tn(a),A=v.useCallback(()=>{if(!L.current||!k.current)return;const O={placement:r,strategy:t,middleware:m};G.current&&(O.platform=G.current),Ml(L.current,k.current,O).then(P=>{const ee={...P,isPositioned:!0};X.current&&!ut(N.current,ee)&&(N.current=ee,Fn.flushSync(()=>{d(ee)}))})},[m,r,t,G]);at(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[c]);const X=v.useRef(!1);at(()=>(X.current=!0,()=>{X.current=!1}),[]),at(()=>{if(D&&(L.current=D),E&&(k.current=E),D&&E){if(Q.current)return Q.current(D,E,A);A()}},[D,E,A,Q,Y]);const V=v.useMemo(()=>({reference:L,floating:k,setReference:p,setFloating:x}),[p,x]),H=v.useMemo(()=>({reference:D,floating:E}),[D,E]),U=v.useMemo(()=>{const O={position:t,left:0,top:0};if(!H.floating)return O;const P=Nn(H.floating,u.x),ee=Nn(H.floating,u.y);return s?{...O,transform:"translate("+P+"px, "+ee+"px)",...xr(H.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:P,top:ee}},[t,s,H.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:A,refs:V,elements:H,floatingStyles:U}),[u,A,V,H,U])}const kl=e=>{function r(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:n,padding:a}=typeof e=="function"?e(t):e;return n&&r(n)?n.current!=null?Cn({element:n.current,padding:a}).fn(t):{}:n?Cn({element:n,padding:a}).fn(t):{}}}},Oc=(e,r)=>({...xl(e),options:[e,r]}),Mc=(e,r)=>({..._l(e),options:[e,r]}),Dc=(e,r)=>({...Ol(e),options:[e,r]}),kc=(e,r)=>({...kl(e),options:[e,r]});var dt=typeof document<"u"?v.useLayoutEffect:v.useEffect;let Mt=!1,Pl=0;const jn=()=>"floating-ui-"+Pl++;function El(){const[e,r]=v.useState(()=>Mt?jn():void 0);return dt(()=>{e==null&&r(jn())},[]),v.useEffect(()=>{Mt||(Mt=!0)},[]),e}const Cl=Wn.useId,_r=Cl||El;function Nl(){const e=new Map;return{emit(r,t){var n;(n=e.get(r))==null||n.forEach(a=>a(t))},on(r,t){e.set(r,[...e.get(r)||[],t])},off(r,t){var n;e.set(r,((n=e.get(r))==null?void 0:n.filter(a=>a!==t))||[])}}}const Tl=v.createContext(null),jl=()=>v.useContext(Tl);function Rl(e){return"data-floating-ui-"+e}const Il=v.createContext(null);function Ll(e){let{id:r,root:t}=e===void 0?{}:e;const[n,a]=v.useState(null),o=_r(),i=Sl(),s=v.useMemo(()=>({id:r,root:t,portalContext:i,uniqueId:o}),[r,t,i,o]),l=v.useRef();return dt(()=>()=>{n==null||n.remove()},[n,s]),dt(()=>{if(l.current===s)return;l.current=s;const{id:c,root:u,portalContext:d,uniqueId:m}=s,f=c?document.getElementById(c):null,h=Rl("portal");if(f){const y=document.createElement("div");y.id=m,y.setAttribute(h,""),f.appendChild(y),a(y)}else{let y=u||(d==null?void 0:d.portalNode);y&&!$e(y)&&(y=y.current),y=y||document.body;let b=null;c&&(b=document.createElement("div"),b.id=c,y.appendChild(b));const w=document.createElement("div");w.id=m,w.setAttribute(h,""),y=b||y,y.appendChild(w),a(w)}},[s]),n}const Sl=()=>v.useContext(Il),Fl=Wn.useInsertionEffect,Wl=Fl||(e=>e());function Al(e){const r=v.useRef(()=>{});return Wl(()=>{r.current=e}),v.useCallback(function(){for(var t=arguments.length,n=new Array(t),a=0;a{D&&(m.current.openEvent=E),n==null||n(D,E)}),d=v.useRef(null),m=v.useRef({}),f=v.useState(()=>Nl())[0],h=_r(),y=v.useCallback(D=>{const E=$e(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),contextElement:D}:D;l.refs.setReference(E)},[l.refs]),b=v.useCallback(D=>{($e(D)||D===null)&&(d.current=D,i(D)),($e(l.refs.reference.current)||l.refs.reference.current===null||D!==null&&!$e(D))&&l.refs.setReference(D)},[l.refs]),w=v.useMemo(()=>({...l.refs,setReference:b,setPositionReference:y,domReference:d}),[l.refs,b,y]),p=v.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),x=v.useMemo(()=>({...l,refs:w,elements:p,dataRef:m,nodeId:a,floatingId:h,events:f,open:t,onOpenChange:u}),[l,a,h,f,t,u,w,p]);return dt(()=>{const D=c==null?void 0:c.nodesRef.current.find(E=>E.id===a);D&&(D.context=x)}),v.useMemo(()=>({...l,context:x,refs:w,elements:p}),[l,w,p,x])}const Yl=v.createContext(void 0),Hl=()=>v.useContext(Yl);var $l=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{children:d}=c,m=$l(c,["children"]);const f=_.useMemo(()=>m,Object.values(m));return _.createElement(i.Provider,{value:u?Object.assign(Object.assign({},f),{ref:u}):f},d)});function l(c=!0){var u;const d=v.useContext(i);if(!d&&c){const m=new Error(a??Bl(t,n));throw m.name="ContextError",(u=Error.captureStackTrace)===null||u===void 0||u.call(Error,m,l),m}return d}return i.displayName=r,[s,l]}const[zl,Or]=ql({name:"ModalContext",errorMessage:" must be used within a "});var Vl=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t}=e,n=Vl(e,["className"]);return _.createElement("div",Object.assign({},n,{ref:r,className:I("navds-modal__body",t)}))});var Gl=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{className:t}=e,n=Gl(e,["className"]);return _.createElement("div",Object.assign({},n,{ref:r,className:I("navds-modal__footer",t)}))});var Ul=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{children:t,className:n,closeButton:a=!0}=e,o=Ul(e,["children","className","closeButton"]);const i=Or();return _.createElement("div",Object.assign({},o,{ref:r,className:I("navds-modal__header",n)}),i.closeHandler&&a&&_.createElement(ii,{type:"button",className:"navds-modal__button",size:"small",variant:"tertiary-neutral",onClick:i.closeHandler,icon:_.createElement(ti,{title:"Lukk"})}),t)}),Rn=({clientX:e,clientY:r},{left:t,top:n,right:a,bottom:o})=>!(ea||r>o);function Kl(e,r,t){if(!(r&&r.closeButton===!1))return t?()=>{var n;return t()!==!1&&((n=e.current)===null||n===void 0?void 0:n.close())}:()=>{var n;return(n=e.current)===null||n===void 0?void 0:n.close()}}const et="navds-modal__document-body";function Zl(e,r,t){_.useEffect(()=>{if(t||!e.current||!r)return;e.current.open&&document.body.classList.add(et);const n=new MutationObserver(()=>{var a;!((a=e.current)===null||a===void 0)&&a.open?document.body.classList.add(et):document.body.classList.remove(et)});return n.observe(e.current,{attributes:!0,attributeFilter:["open"]}),()=>{n.disconnect(),document.body.classList.remove(et)}},[e,r,t])}const Ce=typeof window<"u"&&(window.HTMLDialogElement===void 0||navigator.userAgent.includes("jsdom"));function Dr(e,r){var t="on"+r.type.toLowerCase();return typeof e[t]=="function"&&e[t](r),e.dispatchEvent(r)}function Be(e){for(;e;){if(e.localName==="dialog")return e;e.parentElement?e=e.parentElement:e.parentNode?e=e.parentNode.host:e=null}return null}function kr(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function Jl(e,r){for(var t=0;t=0&&(e=this.dialog_),e||(e=Pr(this.dialog_)),kr(document.activeElement),e&&e.focus()},updateZIndex:function(e,r){if(e, the polyfill may not work correctly",e),e.localName!=="dialog")throw new Error("Failed to register dialog: The element is not a dialog.");new Cr(e)};j.registerDialog=function(e){e.showModal||j.forceRegisterDialog(e)};j.DialogManager=function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",(function(r){this.forwardTab_=void 0,r.stopPropagation(),e([])}).bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(r){var t=[];r.forEach(function(n){for(var a=0,o;o=n.removedNodes[a];++a)o instanceof Element&&(o.localName==="dialog"&&t.push(o),t=t.concat(o.querySelectorAll("dialog")))}),t.length&&e(t)}))};j.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})};j.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()};j.DialogManager.prototype.updateStacking=function(){for(var e=this.zIndexHigh_,r=0,t;t=this.pendingDialogStack[r];++r)t.updateZIndex(--e,--e),r===0&&(this.overlay.style.zIndex=--e);var n=this.pendingDialogStack[0];if(n){var a=n.dialog.parentNode||document.body;a.appendChild(this.overlay)}else this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)};j.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=Be(e);){for(var r=0,t;t=this.pendingDialogStack[r];++r)if(t.dialog===e)return r===0;e=e.parentElement}return!1};j.DialogManager.prototype.handleFocus_=function(e){var r=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(r)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),kr(r),this.forwardTab_!==void 0)){var t=this.pendingDialogStack[0],n=t.dialog,a=n.compareDocumentPosition(r);return a&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?t.focus_():r!==document.documentElement&&document.documentElement.focus()),!1}};j.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,e.keyCode===27){e.preventDefault(),e.stopPropagation();var r=new window.CustomEvent("cancel",{bubbles:!1,cancelable:!0}),t=this.pendingDialogStack[0];t&&Dr(t.dialog,r)&&t.dialog.close()}else e.keyCode===9&&(this.forwardTab_=!e.shiftKey)};j.DialogManager.prototype.checkDOM_=function(e){var r=this.pendingDialogStack.slice();r.forEach(function(t){e.indexOf(t.dialog)!==-1?t.downgradeModal():t.maybeHideModal()})};j.DialogManager.prototype.pushDialog=function(e){var r=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=r?!1:(this.pendingDialogStack.unshift(e)===1&&this.blockDocument(),this.updateStacking(),!0)};j.DialogManager.prototype.removeDialog=function(e){var r=this.pendingDialogStack.indexOf(e);r!==-1&&(this.pendingDialogStack.splice(r,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())};Ce&&(j.dm=new j.DialogManager,j.formSubmitter=null,j.imagemapUseValue=null);if(Ce){var Ln=document.createElement("form");if(Ln.setAttribute("method","dialog"),Ln.method!=="dialog"){var Ee=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(Ee){var tc=Ee.get;Ee.get=function(){return Dt(this)?"dialog":tc.call(this)};var nc=Ee.set;Ee.set=function(e){return typeof e=="string"&&e.toLowerCase()==="dialog"?this.setAttribute("method",e):nc.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",Ee)}}document.addEventListener("click",function(e){if(j.formSubmitter=null,j.imagemapUseValue=null,!e.defaultPrevented){var r=e.target;if("composedPath"in e){var t=e.composedPath();r=t.shift()||r}if(!(!r||!Dt(r.form))){var n=r.type==="submit"&&["button","input"].indexOf(r.localName)>-1;if(!n){if(!(r.localName==="input"&&r.type==="image"))return;j.imagemapUseValue=e.offsetX+","+e.offsetY}var a=Be(r);a&&(j.formSubmitter=r)}}},!1),document.addEventListener("submit",function(e){var r=e.target,t=Be(r);if(!t){var n=Er(e),a=n&&n.getAttribute("formmethod")||r.getAttribute("method");a==="dialog"&&e.preventDefault()}});var rc=HTMLFormElement.prototype.submit,ac=function(){if(!Dt(this))return rc.call(this);var e=Be(this);e&&e.close()};HTMLFormElement.prototype.submit=ac}var oc=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var t,n,{header:a,children:o,open:i,onBeforeClose:s,onCancel:l,closeOnBackdropClick:c,width:u,placement:d,portal:m,className:f,"aria-labelledby":h,style:y,onClick:b,onMouseDown:w}=e,p=oc(e,["header","children","open","onBeforeClose","onCancel","closeOnBackdropClick","width","placement","portal","className","aria-labelledby","style","onClick","onMouseDown"]);const x=v.useRef(null),D=Kn(x,r),E=ge(),L=(t=Hl())===null||t===void 0?void 0:t.rootElement,k=Ll({root:L}),N=v.useContext(cr),Y=Or(!1)!==void 0;Y&&!N&&console.error("Modals should not be nested"),v.useEffect(()=>{Ce&&x.current&&k&&(j.registerDialog(x.current),x.current.classList.add(Sn)),x.current&&k&&(x.current.autofocus=!0)},[x,k]),v.useEffect(()=>{x.current&&k&&i!==void 0&&(i&&!x.current.open?x.current.showModal():!i&&x.current.open&&x.current.close())},[x,k,i]),Zl(x,k,Y);const Q=typeof u=="string"&&["small","medium"].includes(u),G=I("navds-modal",f,{[Sn]:Ce,"navds-modal--autowidth":!u,[`navds-modal--${u}`]:Q,"navds-modal--top":d==="top"&&!Ce}),A=Object.assign(Object.assign({},y),Q?{}:{width:u}),X=v.useRef({clientX:0,clientY:0}),V=se=>{X.current=se},H=c&&!Ce,U=se=>{if(se.target!==x.current)return;const ke=x.current.getBoundingClientRect();Rn(X.current,ke)||Rn(se,ke)||s!==void 0&&s()===!1||x.current.close()},O=se=>{s&&s()===!1&&se.preventDefault()},P=!h&&!p["aria-label"]&&a?E:h,ee=_.createElement("dialog",Object.assign({},p,{ref:D,className:G,style:A,onCancel:nt(l,O),onClick:H?nt(b,U):b,onMouseDown:H?nt(w,V):w,"aria-labelledby":P}),_.createElement(zl,{closeHandler:Kl(x,a,s),ref:x},a&&_.createElement(Mr,null,a.label&&_.createElement(Ho,{className:"navds-modal__label"},a.label),_.createElement(qo,{size:(n=a.size)!==null&&n!==void 0?n:"medium",level:"1",id:E},a.icon&&_.createElement("span",{className:"navds-modal__header-icon"},a.icon),a.heading)),o));return m?k?Fn.createPortal(ee,k):null:ee});cn.Header=Mr;cn.Body=Ql;cn.Footer=Xl;var ic=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{inputProps:t,errorId:n,showErrorMsg:a,hasError:o,size:i,inputDescriptionId:s,readOnly:l}=mt(e,"select"),{children:c,label:u,className:d,description:m,htmlSize:f,hideLabel:h=!1,style:y}=e,b=ic(e,["children","label","className","description","htmlSize","hideLabel","style"]),w={onMouseDown:p=>{l&&(p.preventDefault(),p.target.focus())},onKeyDown:p=>{l&&["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"," "].includes(p.key)&&p.preventDefault()}};return _.createElement("div",{className:I(d,"navds-form-field",`navds-form-field--${i}`,{"navds-form-field--disabled":!!t.disabled,"navds-form-field--readonly":l,"navds-select--error":o,"navds-select--readonly":l})},_.createElement(Vt,{htmlFor:t.id,size:i,className:I("navds-form-field__label",{"navds-sr-only":h})},_.createElement(tn,{readOnly:l,nativeReadOnly:!1}),u),!!m&&_.createElement(Le,{className:I("navds-form-field__description",{"navds-sr-only":h}),id:s,size:i,as:"div"},m),_.createElement("div",{className:"navds-select__container",style:y},_.createElement("select",Object.assign({},ae(b,["error","errorId","size","readOnly"]),t,w,{ref:r,className:I("navds-select__input","navds-body-short",`navds-body-short--${i??"medium"}`),size:f}),c),_.createElement(Ko,{className:"navds-select__chevron","aria-hidden":!0})),_.createElement("div",{className:"navds-form-field__error",id:n,"aria-relevant":"additions removals","aria-live":"polite"},a&&_.createElement(Un,{size:i},e.error)))}),sc=e=>{const r=mt(e,"fieldset"),{inputProps:t}=r;return Object.assign(Object.assign({},r),{inputProps:{"aria-invalid":t["aria-invalid"],"aria-describedby":t["aria-describedby"]}})};var lc=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var t,n,a;const{inputProps:o,errorId:i,showErrorMsg:s,hasError:l,size:c,readOnly:u,inputDescriptionId:d}=sc(e),m=v.useContext(ze),{children:f,className:h,errorPropagation:y=!0,legend:b,description:w,hideLegend:p,nativeReadOnly:x=!0}=e,D=lc(e,["children","className","errorPropagation","legend","description","hideLegend","nativeReadOnly"]);return _.createElement(ze.Provider,{value:{error:y?(t=e.error)!==null&&t!==void 0?t:m==null?void 0:m.error:void 0,errorId:I({[i]:s,[(n=m==null?void 0:m.errorId)!==null&&n!==void 0?n:""]:!!(m!=null&&m.error)}),size:c,disabled:(a=e.disabled)!==null&&a!==void 0?a:!1,readOnly:u}},_.createElement("fieldset",Object.assign({},ae(D,["errorId","error","size","readOnly"]),ae(o,["aria-describedby","aria-invalid"]),{ref:r,className:I(h,"navds-fieldset",`navds-fieldset--${c}`,{"navds-fieldset--error":l,"navds-fieldset--readonly":u})}),_.createElement(Vt,{size:c,as:"legend",className:I("navds-fieldset__legend",{"navds-sr-only":!!p})},_.createElement(tn,{readOnly:u,nativeReadOnly:x}),b),!!w&&_.createElement(Le,{className:I("navds-fieldset__description",{"navds-sr-only":!!p}),id:d,size:c??"medium",as:"div"},e.description),f,_.createElement("div",{id:i,"aria-relevant":"additions removals","aria-live":"polite",className:"navds-fieldset__error"},s&&_.createElement(Un,{size:c},e.error))))});var cc=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var t,n,{value:a,defaultValue:o,onChange:i=()=>{},children:s,className:l}=e,c=cc(e,["value","defaultValue","onChange","children","className"]);const u=v.useContext(ze),[d,m]=v.useState(o??[]),f=h=>{const y=a??d,b=y.includes(h)?y.filter(w=>w!==h):[...y,h];a===void 0&&m(b),i(b)};return _.createElement(Nr,Object.assign({},c,{ref:r,className:I(l,"navds-checkbox-group",`navds-checkbox-group--${(n=(t=c.size)!==null&&t!==void 0?t:u==null?void 0:u.size)!==null&&n!==void 0?n:"medium"}`),nativeReadOnly:!1}),_.createElement(Tr.Provider,{value:{value:a,defaultValue:o,toggleValue:f}},_.createElement("div",{className:"navds-checkboxes"},s)))});var uc=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const r=v.useContext(Tr),t=mt(ae(e,["description","children"]),"checkbox"),{inputProps:n,readOnly:a}=t,o=uc(t,["inputProps","readOnly"]);return r&&(e.checked&&console.warn("`checked` is unsupported on elements within a . Please set a `value` or `defaultValue` on instead."),e.value===void 0&&console.warn("A element within a requires a `value` property.")),Object.assign(Object.assign({},o),{readOnly:a,nested:!!r,inputProps:Object.assign(Object.assign({},n),{checked:r!=null&&r.value?r.value.includes(e.value):e.checked,defaultChecked:r!=null&&r.defaultValue?r.defaultValue.includes(e.value):e.defaultChecked,onChange:i=>{a||(e.onChange&&e.onChange(i),r&&r.toggleValue(e.value))},onClick:i=>{var s;if(a){i.preventDefault();return}(s=e==null?void 0:e.onClick)===null||s===void 0||s.call(e,i)}})})},Nc=v.forwardRef((e,r)=>{const{inputProps:t,hasError:n,size:a,readOnly:o,nested:i}=dc(e),s=ge(),l=ge();return _.createElement("div",{className:I(e.className,"navds-checkbox",`navds-checkbox--${a}`,{"navds-checkbox--error":n,"navds-checkbox--disabled":t.disabled,"navds-checkbox--readonly":o})},_.createElement("input",Object.assign({},ae(e,["children","size","error","description","hideLabel","indeterminate","errorId","readOnly"]),ae(t,["aria-invalid"]),{type:"checkbox",className:"navds-checkbox__input","aria-checked":e.indeterminate?"mixed":t.checked,ref:c=>{var u;c&&(c.indeterminate=(u=e.indeterminate)!==null&&u!==void 0?u:!1),typeof r=="function"?r(c):r!=null&&(r.current=c)},"aria-labelledby":I(s,!!e["aria-labelledby"]&&e["aria-labelledby"],{[l]:e.description})})),_.createElement("label",{htmlFor:t.id,className:"navds-checkbox__label"},_.createElement("span",{className:"navds-checkbox__icon"},_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"0.8125rem",height:"0.625rem",viewBox:"0 0 13 10",fill:"none",focusable:!1,role:"img","aria-hidden":!0},_.createElement("path",{d:"M4.03524 6.41478L10.4752 0.404669C11.0792 -0.160351 12.029 -0.130672 12.5955 0.47478C13.162 1.08027 13.1296 2.03007 12.5245 2.59621L5.02111 9.59934C4.74099 9.85904 4.37559 10 4.00025 10C3.60651 10 3.22717 9.84621 2.93914 9.56111L0.439143 7.06111C-0.146381 6.47558 -0.146381 5.52542 0.439143 4.93989C1.02467 4.35437 1.97483 4.35437 2.56036 4.93989L4.03524 6.41478Z",fill:"currentColor"}))),_.createElement("span",{className:I("navds-checkbox__content",{"navds-sr-only":e.hideLabel})},_.createElement(Le,{as:"span",id:s,size:a,className:"navds-checkbox__label-text","aria-hidden":!0},!i&&_.createElement(tn,{readOnly:o,nativeReadOnly:!1}),e.children),e.description&&_.createElement(Le,{as:"span",id:l,size:a,className:"navds-form-field__subdescription navds-checkbox__description","aria-hidden":!0},e.description))))});var fc=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var t,n,{children:a,className:o,name:i,defaultValue:s,value:l,onChange:c=()=>{},required:u,readOnly:d}=e,m=fc(e,["children","className","name","defaultValue","value","onChange","required","readOnly"]);const f=v.useContext(ze),h=ge();return _.createElement(Nr,Object.assign({},m,{readOnly:d,ref:r,className:I(o,"navds-radio-group",`navds-radio-group--${(n=(t=m.size)!==null&&t!==void 0?t:f==null?void 0:f.size)!==null&&n!==void 0?n:"medium"}`),nativeReadOnly:!1}),_.createElement(jr.Provider,{value:{name:i??`radioGroupName-${h}`,defaultValue:s,value:l,onChange:c,required:u}},_.createElement("div",{className:"navds-radio-buttons"},a)))});var mc=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const r=v.useContext(jr),t=mt(ae(e,["description"]),"radio"),{inputProps:n,readOnly:a}=t,o=mc(t,["inputProps","readOnly"]);return r||console.warn(" must be used inside ."),(e==null?void 0:e.required)!==void 0&&console.warn("required is only supported on ."),Object.assign(Object.assign({},o),{readOnly:a,inputProps:Object.assign(Object.assign({},n),{name:r==null?void 0:r.name,defaultChecked:(r==null?void 0:r.defaultValue)===void 0?void 0:(r==null?void 0:r.defaultValue)===e.value,checked:(r==null?void 0:r.value)===void 0?void 0:(r==null?void 0:r.value)===e.value,onChange:i=>{a||(e.onChange&&e.onChange(i),r!=null&&r.onChange&&r.onChange(e.value))},onClick:i=>{var s;if(a){i.preventDefault();return}(s=e==null?void 0:e.onClick)===null||s===void 0||s.call(e,i)},required:r==null?void 0:r.required,type:"radio"})})},jc=v.forwardRef((e,r)=>{const{inputProps:t,size:n,hasError:a,readOnly:o}=hc(e),i=ge(),s=ge();return _.createElement("div",{className:I(e.className,"navds-radio",`navds-radio--${n}`,{"navds-radio--error":a,"navds-radio--disabled":t.disabled,"navds-radio--readonly":o})},_.createElement("input",Object.assign({},ae(e,["children","size","description","readOnly"]),ae(t,["aria-invalid"]),{"aria-labelledby":I(i,!!e["aria-labelledby"]&&e["aria-labelledby"],{[s]:e.description}),className:"navds-radio__input",ref:r})),_.createElement("label",{htmlFor:t.id,className:"navds-radio__label"},_.createElement("span",{className:"navds-radio__content"},_.createElement(Le,{as:"span",id:i,size:n,"aria-hidden":!0},e.children),e.description&&_.createElement(Le,{as:"span",id:s,size:n,className:"navds-form-field__subdescription navds-radio__description","aria-hidden":!0},e.description))))});export{Xe as $,Qo as A,bc as B,Kn as C,Or as D,Un as E,cr as F,Pc as G,qo as H,As as I,_c as J,Oc as K,Vt as L,Dc as M,Mc as N,kc as O,cn as P,Aa as Q,tn as R,Ko as S,kt as T,Ft as U,ne as V,Ht as W,W as X,it as Y,ge as Z,Ho as _,qe as a,Ec as a0,Br as a1,$r as a2,Ds as a3,Fa as a4,qi as a5,pc as a6,ms as a7,xe as a8,xc as a9,$t as aa,ai as ab,Nc as ac,Ct as ad,Re as ae,qr as af,Lt as ag,So as ah,Ne as ai,Fo as aj,Tc as ak,jc as al,re as am,Cc as an,Wt as b,I as c,ue as d,St as e,nt as f,Ie as g,ii as h,ti as i,Qr as j,Jr as k,sa as l,wa as m,De as n,ae as o,Lo as p,gt as q,hn as r,J as s,Yn as t,Qt as u,wc as v,mt as w,Le as x,ni as y,ql as z}; +//# sourceMappingURL=Radio-Ba1gGC1A.js.map diff --git a/assets/Radio-Ba1gGC1A.js.map b/assets/Radio-Ba1gGC1A.js.map new file mode 100644 index 000000000..c96ed00a5 --- /dev/null +++ b/assets/Radio-Ba1gGC1A.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Radio-Ba1gGC1A.js","sources":["../../node_modules/date-fns/addMonths.mjs","../../node_modules/date-fns/startOfWeek.mjs","../../node_modules/date-fns/startOfISOWeek.mjs","../../node_modules/date-fns/getISOWeekYear.mjs","../../node_modules/date-fns/startOfDay.mjs","../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs","../../node_modules/date-fns/differenceInCalendarDays.mjs","../../node_modules/date-fns/startOfISOWeekYear.mjs","../../node_modules/date-fns/addWeeks.mjs","../../node_modules/date-fns/addYears.mjs","../../node_modules/date-fns/max.mjs","../../node_modules/date-fns/min.mjs","../../node_modules/date-fns/isSameDay.mjs","../../node_modules/date-fns/isDate.mjs","../../node_modules/date-fns/isValid.mjs","../../node_modules/date-fns/differenceInCalendarMonths.mjs","../../node_modules/date-fns/differenceInCalendarWeeks.mjs","../../node_modules/date-fns/endOfMonth.mjs","../../node_modules/date-fns/startOfMonth.mjs","../../node_modules/date-fns/startOfYear.mjs","../../node_modules/date-fns/endOfWeek.mjs","../../node_modules/date-fns/endOfISOWeek.mjs","../../node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs","../../node_modules/date-fns/locale/en-US/_lib/formatLong.mjs","../../node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs","../../node_modules/date-fns/locale/en-US/_lib/localize.mjs","../../node_modules/date-fns/locale/en-US/_lib/match.mjs","../../node_modules/date-fns/locale/en-US.mjs","../../node_modules/date-fns/getDayOfYear.mjs","../../node_modules/date-fns/getISOWeek.mjs","../../node_modules/date-fns/getWeekYear.mjs","../../node_modules/date-fns/startOfWeekYear.mjs","../../node_modules/date-fns/getWeek.mjs","../../node_modules/date-fns/_lib/addLeadingZeros.mjs","../../node_modules/date-fns/_lib/format/lightFormatters.mjs","../../node_modules/date-fns/_lib/format/formatters.mjs","../../node_modules/date-fns/_lib/format/longFormatters.mjs","../../node_modules/date-fns/_lib/protectedTokens.mjs","../../node_modules/date-fns/format.mjs","../../node_modules/date-fns/getDaysInMonth.mjs","../../node_modules/date-fns/getDefaultOptions.mjs","../../node_modules/date-fns/getISODay.mjs","../../node_modules/date-fns/getUnixTime.mjs","../../node_modules/date-fns/lastDayOfMonth.mjs","../../node_modules/date-fns/getWeeksInMonth.mjs","../../node_modules/date-fns/isAfter.mjs","../../node_modules/date-fns/isBefore.mjs","../../node_modules/date-fns/transpose.mjs","../../node_modules/date-fns/parse/_lib/Setter.mjs","../../node_modules/date-fns/parse/_lib/Parser.mjs","../../node_modules/date-fns/parse/_lib/parsers/EraParser.mjs","../../node_modules/date-fns/parse/_lib/constants.mjs","../../node_modules/date-fns/parse/_lib/utils.mjs","../../node_modules/date-fns/parse/_lib/parsers/YearParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/QuarterParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/MonthParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.mjs","../../node_modules/date-fns/setWeek.mjs","../../node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.mjs","../../node_modules/date-fns/setISOWeek.mjs","../../node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/DateParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.mjs","../../node_modules/date-fns/setDay.mjs","../../node_modules/date-fns/parse/_lib/parsers/DayParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/LocalDayParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.mjs","../../node_modules/date-fns/setISODay.mjs","../../node_modules/date-fns/parse/_lib/parsers/ISODayParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/AMPMParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.mjs","../../node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.mjs","../../node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.mjs","../../node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.mjs","../../node_modules/date-fns/parse/_lib/parsers/MinuteParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/SecondParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.mjs","../../node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.mjs","../../node_modules/date-fns/parse/_lib/parsers.mjs","../../node_modules/date-fns/parse.mjs","../../node_modules/date-fns/isSameMonth.mjs","../../node_modules/date-fns/isSameYear.mjs","../../node_modules/date-fns/setMonth.mjs","../../node_modules/date-fns/setYear.mjs","../../node_modules/date-fns/subMonths.mjs","../../node_modules/date-fns/sub.mjs","../../node_modules/clsx/dist/clsx.mjs","../../node_modules/@navikt/ds-react/esm/typography/util.js","../../node_modules/@navikt/ds-react/esm/typography/BodyLong.js","../../node_modules/@navikt/ds-react/esm/typography/BodyShort.js","../../node_modules/@navikt/ds-react/esm/typography/Detail.js","../../node_modules/@navikt/ds-react/esm/typography/ErrorMessage.js","../../node_modules/@navikt/ds-react/esm/typography/Heading.js","../../node_modules/@navikt/ds-react/esm/typography/Ingress.js","../../node_modules/@navikt/ds-react/esm/typography/Label.js","../../node_modules/@navikt/ds-react/esm/util/omit.js","../../node_modules/@navikt/ds-react/esm/util/hooks/useClientLayoutEffect.js","../../node_modules/@navikt/ds-react/esm/util/hooks/useId.js","../../node_modules/@navikt/aksel-icons/dist/react/esm/util/useId.js","../../node_modules/@navikt/aksel-icons/dist/react/esm/ChevronDown.js","../../node_modules/@navikt/aksel-icons/dist/react/esm/PadlockLockedFill.js","../../node_modules/@navikt/aksel-icons/dist/react/esm/XMark.js","../../node_modules/@navikt/ds-react/esm/util/composeEventHandlers.js","../../node_modules/@navikt/ds-react/esm/util/hooks/useMergeRefs.js","../../node_modules/@navikt/ds-react/esm/loader/Loader.js","../../node_modules/@navikt/ds-react/esm/button/Button.js","../../node_modules/react-day-picker/dist/index.esm.js","../../node_modules/@navikt/ds-react/esm/date/context/useDateInputContext.js","../../node_modules/@navikt/ds-react/esm/date/utils/check-dates.js","../../node_modules/@navikt/ds-react/esm/date/utils/parse-date.js","../../node_modules/@navikt/ds-react/esm/date/context/useSharedMonthContext.js","../../node_modules/@navikt/ds-react/esm/form/ReadOnlyIcon.js","../../node_modules/@navikt/ds-react/esm/form/fieldset/context.js","../../node_modules/@navikt/ds-react/esm/form/useFormField.js","../../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs","../../node_modules/@floating-ui/core/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs","../../node_modules/@floating-ui/react/dist/floating-ui.react.mjs","../../node_modules/@navikt/ds-react/esm/provider/Provider.js","../../node_modules/@navikt/ds-react/esm/util/create-context.js","../../node_modules/@navikt/ds-react/esm/modal/Modal.context.js","../../node_modules/@navikt/ds-react/esm/modal/ModalBody.js","../../node_modules/@navikt/ds-react/esm/modal/ModalFooter.js","../../node_modules/@navikt/ds-react/esm/modal/ModalHeader.js","../../node_modules/@navikt/ds-react/esm/modal/ModalUtils.js","../../node_modules/@navikt/ds-react/esm/modal/dialog-polyfill.js","../../node_modules/@navikt/ds-react/esm/modal/Modal.js","../../node_modules/@navikt/ds-react/esm/form/select/Select.js","../../node_modules/@navikt/ds-react/esm/form/fieldset/useFieldset.js","../../node_modules/@navikt/ds-react/esm/form/fieldset/Fieldset.js","../../node_modules/@navikt/ds-react/esm/form/checkbox/CheckboxGroup.js","../../node_modules/@navikt/ds-react/esm/form/checkbox/useCheckbox.js","../../node_modules/@navikt/ds-react/esm/form/checkbox/Checkbox.js","../../node_modules/@navikt/ds-react/esm/form/radio/RadioGroup.js","../../node_modules/@navikt/ds-react/esm/form/radio/useRadio.js","../../node_modules/@navikt/ds-react/esm/form/radio/Radio.js"],"sourcesContent":["import { toDate } from \"./toDate.mjs\";\nimport { constructFrom } from \"./constructFrom.mjs\";\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount) {\n const _date = toDate(date);\n if (isNaN(amount)) return constructFrom(date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n","import { toDate } from \"./toDate.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n","import { startOfWeek } from \"./startOfWeek.mjs\";\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date) {\n return startOfWeek(date, { weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n","import { constructFrom } from \"./constructFrom.mjs\";\nimport { startOfISOWeek } from \"./startOfISOWeek.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date) {\n const _date = toDate(date);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date) {\n const _date = toDate(date);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n","import { toDate } from \"../toDate.mjs\";\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport function getTimezoneOffsetInMilliseconds(date) {\n const _date = toDate(date);\n const utcDate = new Date(\n Date.UTC(\n _date.getFullYear(),\n _date.getMonth(),\n _date.getDate(),\n _date.getHours(),\n _date.getMinutes(),\n _date.getSeconds(),\n _date.getMilliseconds(),\n ),\n );\n utcDate.setUTCFullYear(_date.getFullYear());\n return +date - +utcDate;\n}\n","import { millisecondsInDay } from \"./constants.mjs\";\nimport { startOfDay } from \"./startOfDay.mjs\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.mjs\";\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(dateLeft, dateRight) {\n const startOfDayLeft = startOfDay(dateLeft);\n const startOfDayRight = startOfDay(dateRight);\n\n const timestampLeft =\n +startOfDayLeft - getTimezoneOffsetInMilliseconds(startOfDayLeft);\n const timestampRight =\n +startOfDayRight - getTimezoneOffsetInMilliseconds(startOfDayRight);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a day is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((timestampLeft - timestampRight) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n","import { getISOWeekYear } from \"./getISOWeekYear.mjs\";\nimport { startOfISOWeek } from \"./startOfISOWeek.mjs\";\nimport { constructFrom } from \"./constructFrom.mjs\";\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of an ISO week-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date) {\n const year = getISOWeekYear(date);\n const fourthOfJanuary = constructFrom(date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n","import { addDays } from \"./addDays.mjs\";\n\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of week to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param amount - The amount of weeks to be added.\n *\n * @returns The new date with the weeks added\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\nexport function addWeeks(date, amount) {\n const days = amount * 7;\n return addDays(date, days);\n}\n\n// Fallback for modularized imports:\nexport default addWeeks;\n","import { addMonths } from \"./addMonths.mjs\";\n\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be added.\n *\n * @returns The new date with the years added\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport function addYears(date, amount) {\n return addMonths(date, amount * 12);\n}\n\n// Fallback for modularized imports:\nexport default addYears;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name max\n * @category Common Helpers\n * @summary Return the latest of the given dates.\n *\n * @description\n * Return the latest of the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dates - The dates to compare\n *\n * @returns The latest of the dates\n *\n * @example\n * // Which of these dates is the latest?\n * const result = max([\n * new Date(1989, 6, 10),\n * new Date(1987, 1, 11),\n * new Date(1995, 6, 2),\n * new Date(1990, 0, 1)\n * ])\n * //=> Sun Jul 02 1995 00:00:00\n */\nexport function max(dates) {\n let result;\n dates.forEach(function (dirtyDate) {\n const currentDate = toDate(dirtyDate);\n\n if (\n result === undefined ||\n result < currentDate ||\n isNaN(Number(currentDate))\n ) {\n result = currentDate;\n }\n });\n\n return result || new Date(NaN);\n}\n\n// Fallback for modularized imports:\nexport default max;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name min\n * @category Common Helpers\n * @summary Returns the earliest of the given dates.\n *\n * @description\n * Returns the earliest of the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dates - The dates to compare\n *\n * @returns The earliest of the dates\n *\n * @example\n * // Which of these dates is the earliest?\n * const result = min([\n * new Date(1989, 6, 10),\n * new Date(1987, 1, 11),\n * new Date(1995, 6, 2),\n * new Date(1990, 0, 1)\n * ])\n * //=> Wed Feb 11 1987 00:00:00\n */\nexport function min(dates) {\n let result;\n\n dates.forEach((dirtyDate) => {\n const date = toDate(dirtyDate);\n if (!result || result > date || isNaN(+date)) {\n result = date;\n }\n });\n\n return result || new Date(NaN);\n}\n\n// Fallback for modularized imports:\nexport default min;\n","import { startOfDay } from \"./startOfDay.mjs\";\n\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The first date to check\n * @param dateRight - The second date to check\n\n * @returns The dates are in the same day (and year and month)\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\nexport function isSameDay(dateLeft, dateRight) {\n const dateLeftStartOfDay = startOfDay(dateLeft);\n const dateRightStartOfDay = startOfDay(dateRight);\n\n return +dateLeftStartOfDay === +dateRightStartOfDay;\n}\n\n// Fallback for modularized imports:\nexport default isSameDay;\n","/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param value - The value to check\n *\n * @returns True if the given value is a date\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport function isDate(value) {\n return (\n value instanceof Date ||\n (typeof value === \"object\" &&\n Object.prototype.toString.call(value) === \"[object Date]\")\n );\n}\n\n// Fallback for modularized imports:\nexport default isDate;\n","import { isDate } from \"./isDate.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertable into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n if (!isDate(date) && typeof date !== \"number\") {\n return false;\n }\n const _date = toDate(date);\n return !isNaN(Number(_date));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of calendar months\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\nexport function differenceInCalendarMonths(dateLeft, dateRight) {\n const _dateLeft = toDate(dateLeft);\n const _dateRight = toDate(dateRight);\n\n const yearDiff = _dateLeft.getFullYear() - _dateRight.getFullYear();\n const monthDiff = _dateLeft.getMonth() - _dateRight.getMonth();\n\n return yearDiff * 12 + monthDiff;\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarMonths;\n","import { millisecondsInWeek } from \"./constants.mjs\";\nimport { startOfWeek } from \"./startOfWeek.mjs\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.mjs\";\n\n/**\n * The {@link differenceInCalendarWeeks} function options.\n */\n\n/**\n * @name differenceInCalendarWeeks\n * @category Week Helpers\n * @summary Get the number of calendar weeks between the given dates.\n *\n * @description\n * Get the number of calendar weeks between the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n * @param options - An object with options.\n *\n * @returns The number of calendar weeks\n *\n * @example\n * // How many calendar weeks are between 5 July 2014 and 20 July 2014?\n * const result = differenceInCalendarWeeks(\n * new Date(2014, 6, 20),\n * new Date(2014, 6, 5)\n * )\n * //=> 3\n *\n * @example\n * // If the week starts on Monday,\n * // how many calendar weeks are between 5 July 2014 and 20 July 2014?\n * const result = differenceInCalendarWeeks(\n * new Date(2014, 6, 20),\n * new Date(2014, 6, 5),\n * { weekStartsOn: 1 }\n * )\n * //=> 2\n */\nexport function differenceInCalendarWeeks(dateLeft, dateRight, options) {\n const startOfWeekLeft = startOfWeek(dateLeft, options);\n const startOfWeekRight = startOfWeek(dateRight, options);\n\n const timestampLeft =\n +startOfWeekLeft - getTimezoneOffsetInMilliseconds(startOfWeekLeft);\n const timestampRight =\n +startOfWeekRight - getTimezoneOffsetInMilliseconds(startOfWeekRight);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a days is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((timestampLeft - timestampRight) / millisecondsInWeek);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarWeeks;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The end of a month\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfMonth(date) {\n const _date = toDate(date);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfMonth;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date) {\n const _date = toDate(date);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n","import { toDate } from \"./toDate.mjs\";\nimport { constructFrom } from \"./constructFrom.mjs\";\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date) {\n const cleanDate = toDate(date);\n const _date = constructFrom(date, 0);\n _date.setFullYear(cleanDate.getFullYear(), 0, 1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n","import { toDate } from \"./toDate.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link endOfWeek} function options.\n */\n\n/**\n * @name endOfWeek\n * @category Week Helpers\n * @summary Return the end of a week for the given date.\n *\n * @description\n * Return the end of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a week\n *\n * @example\n * // The end of a week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sat Sep 06 2014 23:59:59.999\n *\n * @example\n * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);\n\n _date.setDate(_date.getDate() + diff);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfWeek;\n","import { endOfWeek } from \"./endOfWeek.mjs\";\n\n/**\n * @name endOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the end of an ISO week for the given date.\n *\n * @description\n * Return the end of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The end of an ISO week\n *\n * @example\n * // The end of an ISO week for 2 September 2014 11:55:00:\n * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfISOWeek(date) {\n return endOfWeek(date, { weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default endOfISOWeek;\n","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n return result;\n};\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.mjs\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.mjs\";\n\nconst eraValues = {\n narrow: [\"B\", \"A\"],\n abbreviated: [\"BC\", \"AD\"],\n wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n\n wide: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n wide: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n const rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + \"st\";\n case 2:\n return number + \"nd\";\n case 3:\n return number + \"rd\";\n }\n }\n return number + \"th\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.mjs\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.mjs\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i,\n};\nconst parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^mar/i,\n /^ap/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^au/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { formatDistance } from \"./en-US/_lib/formatDistance.mjs\";\nimport { formatLong } from \"./en-US/_lib/formatLong.mjs\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.mjs\";\nimport { localize } from \"./en-US/_lib/localize.mjs\";\nimport { match } from \"./en-US/_lib/match.mjs\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n code: \"en-US\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n","import { differenceInCalendarDays } from \"./differenceInCalendarDays.mjs\";\nimport { startOfYear } from \"./startOfYear.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nexport function getDayOfYear(date) {\n const _date = toDate(date);\n const diff = differenceInCalendarDays(_date, startOfYear(_date));\n const dayOfYear = diff + 1;\n return dayOfYear;\n}\n\n// Fallback for modularized imports:\nexport default getDayOfYear;\n","import { millisecondsInWeek } from \"./constants.mjs\";\nimport { startOfISOWeek } from \"./startOfISOWeek.mjs\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date) {\n const _date = toDate(date);\n const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n","import { constructFrom } from \"./constructFrom.mjs\";\nimport { startOfWeek } from \"./startOfWeek.mjs\";\nimport { toDate } from \"./toDate.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n","import { constructFrom } from \"./constructFrom.mjs\";\nimport { getWeekYear } from \"./getWeekYear.mjs\";\nimport { startOfWeek } from \"./startOfWeek.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link startOfWeekYear} function options.\n */\n\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week-numbering year\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfWeekYear(date, options) {\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const year = getWeekYear(date, options);\n const firstWeek = constructFrom(date, 0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n const _date = startOfWeek(firstWeek, options);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeekYear;\n","import { millisecondsInWeek } from \"./constants.mjs\";\nimport { startOfWeek } from \"./startOfWeek.mjs\";\nimport { startOfWeekYear } from \"./startOfWeekYear.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\n\nexport function getWeek(date, options) {\n const _date = toDate(date);\n const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n","export function addLeadingZeros(number, targetLength) {\n const sign = number < 0 ? \"-\" : \"\";\n const output = Math.abs(number).toString().padStart(targetLength, \"0\");\n return sign + output;\n}\n","import { addLeadingZeros } from \"../addLeadingZeros.mjs\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nexport const lightFormatters = {\n // Year\n y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === \"yy\" ? year % 100 : year, token.length);\n },\n\n // Month\n M(date, token) {\n const month = date.getMonth();\n return token === \"M\" ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n\n // Day of the month\n d(date, token) {\n return addLeadingZeros(date.getDate(), token.length);\n },\n\n // AM or PM\n a(date, token) {\n const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return dayPeriodEnumValue.toUpperCase();\n case \"aaa\":\n return dayPeriodEnumValue;\n case \"aaaaa\":\n return dayPeriodEnumValue[0];\n case \"aaaa\":\n default:\n return dayPeriodEnumValue === \"am\" ? \"a.m.\" : \"p.m.\";\n }\n },\n\n // Hour [1-12]\n h(date, token) {\n return addLeadingZeros(date.getHours() % 12 || 12, token.length);\n },\n\n // Hour [0-23]\n H(date, token) {\n return addLeadingZeros(date.getHours(), token.length);\n },\n\n // Minute\n m(date, token) {\n return addLeadingZeros(date.getMinutes(), token.length);\n },\n\n // Second\n s(date, token) {\n return addLeadingZeros(date.getSeconds(), token.length);\n },\n\n // Fraction of second\n S(date, token) {\n const numberOfDigits = token.length;\n const milliseconds = date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, numberOfDigits - 3),\n );\n return addLeadingZeros(fractionalSeconds, token.length);\n },\n};\n","import { getDayOfYear } from \"../../getDayOfYear.mjs\";\nimport { getISOWeek } from \"../../getISOWeek.mjs\";\nimport { getISOWeekYear } from \"../../getISOWeekYear.mjs\";\nimport { getWeek } from \"../../getWeek.mjs\";\nimport { getWeekYear } from \"../../getWeekYear.mjs\";\nimport { addLeadingZeros } from \"../addLeadingZeros.mjs\";\nimport { lightFormatters } from \"./lightFormatters.mjs\";\n\nconst dayPeriodEnum = {\n am: \"am\",\n pm: \"pm\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n};\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O | Timezone (GMT) |\n * | p! | Long localized time | P! | Long localized date |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nexport const formatters = {\n // Era\n G: function (date, token, localize) {\n const era = date.getFullYear() > 0 ? 1 : 0;\n switch (token) {\n // AD, BC\n case \"G\":\n case \"GG\":\n case \"GGG\":\n return localize.era(era, { width: \"abbreviated\" });\n // A, B\n case \"GGGGG\":\n return localize.era(era, { width: \"narrow\" });\n // Anno Domini, Before Christ\n case \"GGGG\":\n default:\n return localize.era(era, { width: \"wide\" });\n }\n },\n\n // Year\n y: function (date, token, localize) {\n // Ordinal number\n if (token === \"yo\") {\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return localize.ordinalNumber(year, { unit: \"year\" });\n }\n\n return lightFormatters.y(date, token);\n },\n\n // Local week-numbering year\n Y: function (date, token, localize, options) {\n const signedWeekYear = getWeekYear(date, options);\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n // Two digit year\n if (token === \"YY\") {\n const twoDigitYear = weekYear % 100;\n return addLeadingZeros(twoDigitYear, 2);\n }\n\n // Ordinal number\n if (token === \"Yo\") {\n return localize.ordinalNumber(weekYear, { unit: \"year\" });\n }\n\n // Padding\n return addLeadingZeros(weekYear, token.length);\n },\n\n // ISO week-numbering year\n R: function (date, token) {\n const isoWeekYear = getISOWeekYear(date);\n\n // Padding\n return addLeadingZeros(isoWeekYear, token.length);\n },\n\n // Extended year. This is a single number designating the year of this calendar system.\n // The main difference between `y` and `u` localizers are B.C. years:\n // | Year | `y` | `u` |\n // |------|-----|-----|\n // | AC 1 | 1 | 1 |\n // | BC 1 | 1 | 0 |\n // | BC 2 | 2 | -1 |\n // Also `yy` always returns the last two digits of a year,\n // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n u: function (date, token) {\n const year = date.getFullYear();\n return addLeadingZeros(year, token.length);\n },\n\n // Quarter\n Q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"Q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"QQ\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"Qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"QQQ\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"QQQQQ\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"QQQQ\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone quarter\n q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"qq\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"qqq\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"qqqqq\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"qqqq\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // Month\n M: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n case \"M\":\n case \"MM\":\n return lightFormatters.M(date, token);\n // 1st, 2nd, ..., 12th\n case \"Mo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"MMM\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // J, F, ..., D\n case \"MMMMM\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // January, February, ..., December\n case \"MMMM\":\n default:\n return localize.month(month, { width: \"wide\", context: \"formatting\" });\n }\n },\n\n // Stand-alone month\n L: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n // 1, 2, ..., 12\n case \"L\":\n return String(month + 1);\n // 01, 02, ..., 12\n case \"LL\":\n return addLeadingZeros(month + 1, 2);\n // 1st, 2nd, ..., 12th\n case \"Lo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"LLL\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // J, F, ..., D\n case \"LLLLL\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // January, February, ..., December\n case \"LLLL\":\n default:\n return localize.month(month, { width: \"wide\", context: \"standalone\" });\n }\n },\n\n // Local week of year\n w: function (date, token, localize, options) {\n const week = getWeek(date, options);\n\n if (token === \"wo\") {\n return localize.ordinalNumber(week, { unit: \"week\" });\n }\n\n return addLeadingZeros(week, token.length);\n },\n\n // ISO week of year\n I: function (date, token, localize) {\n const isoWeek = getISOWeek(date);\n\n if (token === \"Io\") {\n return localize.ordinalNumber(isoWeek, { unit: \"week\" });\n }\n\n return addLeadingZeros(isoWeek, token.length);\n },\n\n // Day of the month\n d: function (date, token, localize) {\n if (token === \"do\") {\n return localize.ordinalNumber(date.getDate(), { unit: \"date\" });\n }\n\n return lightFormatters.d(date, token);\n },\n\n // Day of year\n D: function (date, token, localize) {\n const dayOfYear = getDayOfYear(date);\n\n if (token === \"Do\") {\n return localize.ordinalNumber(dayOfYear, { unit: \"dayOfYear\" });\n }\n\n return addLeadingZeros(dayOfYear, token.length);\n },\n\n // Day of week\n E: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n switch (token) {\n // Tue\n case \"E\":\n case \"EE\":\n case \"EEE\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"EEEEE\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"EEEEEE\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"EEEE\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Local day of week\n e: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (Nth day of week with current locale or weekStartsOn)\n case \"e\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"ee\":\n return addLeadingZeros(localDayOfWeek, 2);\n // 1st, 2nd, ..., 7th\n case \"eo\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"eee\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"eeeee\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"eeeeee\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"eeee\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone local day of week\n c: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (same as in `e`)\n case \"c\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"cc\":\n return addLeadingZeros(localDayOfWeek, token.length);\n // 1st, 2nd, ..., 7th\n case \"co\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"ccc\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // T\n case \"ccccc\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // Tu\n case \"cccccc\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"standalone\",\n });\n // Tuesday\n case \"cccc\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // ISO day of week\n i: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n switch (token) {\n // 2\n case \"i\":\n return String(isoDayOfWeek);\n // 02\n case \"ii\":\n return addLeadingZeros(isoDayOfWeek, token.length);\n // 2nd\n case \"io\":\n return localize.ordinalNumber(isoDayOfWeek, { unit: \"day\" });\n // Tue\n case \"iii\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"iiiii\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"iiiiii\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"iiii\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM or PM\n a: function (date, token, localize) {\n const hours = date.getHours();\n const dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"aaa\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"aaaaa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"aaaa\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM, PM, midnight, noon\n b: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours === 12) {\n dayPeriodEnumValue = dayPeriodEnum.noon;\n } else if (hours === 0) {\n dayPeriodEnumValue = dayPeriodEnum.midnight;\n } else {\n dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n }\n\n switch (token) {\n case \"b\":\n case \"bb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"bbb\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"bbbbb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"bbbb\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // in the morning, in the afternoon, in the evening, at night\n B: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours >= 17) {\n dayPeriodEnumValue = dayPeriodEnum.evening;\n } else if (hours >= 12) {\n dayPeriodEnumValue = dayPeriodEnum.afternoon;\n } else if (hours >= 4) {\n dayPeriodEnumValue = dayPeriodEnum.morning;\n } else {\n dayPeriodEnumValue = dayPeriodEnum.night;\n }\n\n switch (token) {\n case \"B\":\n case \"BB\":\n case \"BBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"BBBBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"BBBB\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Hour [1-12]\n h: function (date, token, localize) {\n if (token === \"ho\") {\n let hours = date.getHours() % 12;\n if (hours === 0) hours = 12;\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return lightFormatters.h(date, token);\n },\n\n // Hour [0-23]\n H: function (date, token, localize) {\n if (token === \"Ho\") {\n return localize.ordinalNumber(date.getHours(), { unit: \"hour\" });\n }\n\n return lightFormatters.H(date, token);\n },\n\n // Hour [0-11]\n K: function (date, token, localize) {\n const hours = date.getHours() % 12;\n\n if (token === \"Ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Hour [1-24]\n k: function (date, token, localize) {\n let hours = date.getHours();\n if (hours === 0) hours = 24;\n\n if (token === \"ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Minute\n m: function (date, token, localize) {\n if (token === \"mo\") {\n return localize.ordinalNumber(date.getMinutes(), { unit: \"minute\" });\n }\n\n return lightFormatters.m(date, token);\n },\n\n // Second\n s: function (date, token, localize) {\n if (token === \"so\") {\n return localize.ordinalNumber(date.getSeconds(), { unit: \"second\" });\n }\n\n return lightFormatters.s(date, token);\n },\n\n // Fraction of second\n S: function (date, token) {\n return lightFormatters.S(date, token);\n },\n\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n if (timezoneOffset === 0) {\n return \"Z\";\n }\n\n switch (token) {\n // Hours and optional minutes\n case \"X\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n case \"XXXX\":\n case \"XX\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n case \"XXXXX\":\n case \"XXX\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Hours and optional minutes\n case \"x\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n case \"xxxx\":\n case \"xx\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n case \"xxxxx\":\n case \"xxx\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (GMT)\n O: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"O\":\n case \"OO\":\n case \"OOO\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"OOOO\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (specific non-location)\n z: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"z\":\n case \"zz\":\n case \"zzz\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"zzzz\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Seconds timestamp\n t: function (date, token, _localize) {\n const timestamp = Math.trunc(date.getTime() / 1000);\n return addLeadingZeros(timestamp, token.length);\n },\n\n // Milliseconds timestamp\n T: function (date, token, _localize) {\n const timestamp = date.getTime();\n return addLeadingZeros(timestamp, token.length);\n },\n};\n\nfunction formatTimezoneShort(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = Math.trunc(absOffset / 60);\n const minutes = absOffset % 60;\n if (minutes === 0) {\n return sign + String(hours);\n }\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\n\nfunction formatTimezoneWithOptionalMinutes(offset, delimiter) {\n if (offset % 60 === 0) {\n const sign = offset > 0 ? \"-\" : \"+\";\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n return formatTimezone(offset, delimiter);\n}\n\nfunction formatTimezone(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);\n const minutes = addLeadingZeros(absOffset % 60, 2);\n return sign + hours + delimiter + minutes;\n}\n","const dateLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"P\":\n return formatLong.date({ width: \"short\" });\n case \"PP\":\n return formatLong.date({ width: \"medium\" });\n case \"PPP\":\n return formatLong.date({ width: \"long\" });\n case \"PPPP\":\n default:\n return formatLong.date({ width: \"full\" });\n }\n};\n\nconst timeLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"p\":\n return formatLong.time({ width: \"short\" });\n case \"pp\":\n return formatLong.time({ width: \"medium\" });\n case \"ppp\":\n return formatLong.time({ width: \"long\" });\n case \"pppp\":\n default:\n return formatLong.time({ width: \"full\" });\n }\n};\n\nconst dateTimeLongFormatter = (pattern, formatLong) => {\n const matchResult = pattern.match(/(P+)(p+)?/) || [];\n const datePattern = matchResult[1];\n const timePattern = matchResult[2];\n\n if (!timePattern) {\n return dateLongFormatter(pattern, formatLong);\n }\n\n let dateTimeFormat;\n\n switch (datePattern) {\n case \"P\":\n dateTimeFormat = formatLong.dateTime({ width: \"short\" });\n break;\n case \"PP\":\n dateTimeFormat = formatLong.dateTime({ width: \"medium\" });\n break;\n case \"PPP\":\n dateTimeFormat = formatLong.dateTime({ width: \"long\" });\n break;\n case \"PPPP\":\n default:\n dateTimeFormat = formatLong.dateTime({ width: \"full\" });\n break;\n }\n\n return dateTimeFormat\n .replace(\"{{date}}\", dateLongFormatter(datePattern, formatLong))\n .replace(\"{{time}}\", timeLongFormatter(timePattern, formatLong));\n};\n\nexport const longFormatters = {\n p: timeLongFormatter,\n P: dateTimeLongFormatter,\n};\n","const dayOfYearTokenRE = /^D+$/;\nconst weekYearTokenRE = /^Y+$/;\n\nconst throwTokens = [\"D\", \"DD\", \"YY\", \"YYYY\"];\n\nexport function isProtectedDayOfYearToken(token) {\n return dayOfYearTokenRE.test(token);\n}\n\nexport function isProtectedWeekYearToken(token) {\n return weekYearTokenRE.test(token);\n}\n\nexport function warnOrThrowProtectedError(token, format, input) {\n const _message = message(token, format, input);\n console.warn(_message);\n if (throwTokens.includes(token)) throw new RangeError(_message);\n}\n\nfunction message(token, format, input) {\n const subject = token[0] === \"Y\" ? \"years\" : \"days of the month\";\n return `Use \\`${token.toLowerCase()}\\` instead of \\`${token}\\` (in \\`${format}\\`) for formatting ${subject} to the input \\`${input}\\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;\n}\n","import { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\nimport { formatters } from \"./_lib/format/formatters.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { isValid } from \"./isValid.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > âš ï¸ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n","import { toDate } from \"./toDate.mjs\";\nimport { constructFrom } from \"./constructFrom.mjs\";\n\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The number of days in a month\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport function getDaysInMonth(date) {\n const _date = toDate(date);\n const year = _date.getFullYear();\n const monthIndex = _date.getMonth();\n const lastDayOfMonth = constructFrom(date, 0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDaysInMonth;\n","import { getDefaultOptions as getInternalDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * @name getDefaultOptions\n * @category Common Helpers\n * @summary Get default options.\n * @pure false\n *\n * @description\n * Returns an object that contains defaults for\n * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate`\n * arguments for all functions.\n *\n * You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions).\n *\n * @returns The default options\n *\n * @example\n * const result = getDefaultOptions()\n * //=> {}\n *\n * @example\n * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 })\n * const result = getDefaultOptions()\n * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 }\n */\nexport function getDefaultOptions() {\n return Object.assign({}, getInternalDefaultOptions());\n}\n\n// Fallback for modularized imports:\nexport default getDefaultOptions;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getISODay\n * @category Weekday Helpers\n * @summary Get the day of the ISO week of the given date.\n *\n * @description\n * Get the day of the ISO week of the given date,\n * which is 7 for Sunday, 1 for Monday etc.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The day of ISO week\n *\n * @example\n * // Which day of the ISO week is 26 February 2012?\n * const result = getISODay(new Date(2012, 1, 26))\n * //=> 7\n */\nexport function getISODay(date) {\n const _date = toDate(date);\n let day = _date.getDay();\n\n if (day === 0) {\n day = 7;\n }\n\n return day;\n}\n\n// Fallback for modularized imports:\nexport default getISODay;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name getUnixTime\n * @category Timestamp Helpers\n * @summary Get the seconds timestamp of the given date.\n *\n * @description\n * Get the seconds timestamp of the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n *\n * @returns The timestamp\n *\n * @example\n * // Get the timestamp of 29 February 2012 11:45:05 CET:\n * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5))\n * //=> 1330512305\n */\nexport function getUnixTime(date) {\n return Math.trunc(+toDate(date) / 1000);\n}\n\n// Fallback for modularized imports:\nexport default getUnixTime;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name lastDayOfMonth\n * @category Month Helpers\n * @summary Return the last day of a month for the given date.\n *\n * @description\n * Return the last day of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The last day of a month\n *\n * @example\n * // The last day of a month for 2 September 2014 11:55:00:\n * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 00:00:00\n */\nexport function lastDayOfMonth(date) {\n const _date = toDate(date);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default lastDayOfMonth;\n","import { differenceInCalendarWeeks } from \"./differenceInCalendarWeeks.mjs\";\nimport { lastDayOfMonth } from \"./lastDayOfMonth.mjs\";\nimport { startOfMonth } from \"./startOfMonth.mjs\";\n\n/**\n * The {@link getWeeksInMonth} function options.\n */\n\n/**\n * @name getWeeksInMonth\n * @category Week Helpers\n * @summary Get the number of calendar weeks a month spans.\n *\n * @description\n * Get the number of calendar weeks the month in the given date spans.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The number of calendar weeks\n *\n * @example\n * // How many calendar weeks does February 2015 span?\n * const result = getWeeksInMonth(new Date(2015, 1, 8))\n * //=> 4\n *\n * @example\n * // If the week starts on Monday,\n * // how many calendar weeks does July 2017 span?\n * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 })\n * //=> 6\n */\nexport function getWeeksInMonth(date, options) {\n return (\n differenceInCalendarWeeks(\n lastDayOfMonth(date),\n startOfMonth(date),\n options,\n ) + 1\n );\n}\n\n// Fallback for modularized imports:\nexport default getWeeksInMonth;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date that should be after the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport function isAfter(date, dateToCompare) {\n const _date = toDate(date);\n const _dateToCompare = toDate(dateToCompare);\n return _date.getTime() > _dateToCompare.getTime();\n}\n\n// Fallback for modularized imports:\nexport default isAfter;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date that should be before the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is before the second date\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport function isBefore(date, dateToCompare) {\n const _date = toDate(date);\n const _dateToCompare = toDate(dateToCompare);\n return +_date < +_dateToCompare;\n}\n\n// Fallback for modularized imports:\nexport default isBefore;\n","import { constructFrom } from \"./constructFrom.mjs\";\n\n/**\n * @name transpose\n * @category Generic Helpers\n * @summary Transpose the date to the given constructor.\n *\n * @description\n * The function transposes the date to the given constructor. It helps you\n * to transpose the date in the system time zone to say `UTCDate` or any other\n * date extension.\n *\n * @typeParam DateInputType - The input `Date` type derived from the passed argument.\n * @typeParam DateOutputType - The output `Date` type derived from the passed constructor.\n *\n * @param fromDate - The date to use values from\n * @param constructor - The date constructor to use\n *\n * @returns Date transposed to the given constructor\n *\n * @example\n * // Create July 10, 2022 00:00 in locale time zone\n * const date = new Date(2022, 6, 10)\n * //=> 'Sun Jul 10 2022 00:00:00 GMT+0800 (Singapore Standard Time)'\n *\n * @example\n * // Transpose the date to July 10, 2022 00:00 in UTC\n * transpose(date, UTCDate)\n * //=> 'Sun Jul 10 2022 00:00:00 GMT+0000 (Coordinated Universal Time)'\n */\nexport function transpose(fromDate, constructor) {\n const date =\n constructor instanceof Date\n ? constructFrom(constructor, 0)\n : new constructor(0);\n date.setFullYear(\n fromDate.getFullYear(),\n fromDate.getMonth(),\n fromDate.getDate(),\n );\n date.setHours(\n fromDate.getHours(),\n fromDate.getMinutes(),\n fromDate.getSeconds(),\n fromDate.getMilliseconds(),\n );\n return date;\n}\n\n// Fallback for modularized imports:\nexport default transpose;\n","import { transpose } from \"../../transpose.mjs\";\nimport { constructFrom } from \"../../constructFrom.mjs\";\n\nconst TIMEZONE_UNIT_PRIORITY = 10;\n\nexport class Setter {\n subPriority = 0;\n\n validate(_utcDate, _options) {\n return true;\n }\n}\n\nexport class ValueSetter extends Setter {\n constructor(\n value,\n\n validateValue,\n\n setValue,\n\n priority,\n subPriority,\n ) {\n super();\n this.value = value;\n this.validateValue = validateValue;\n this.setValue = setValue;\n this.priority = priority;\n if (subPriority) {\n this.subPriority = subPriority;\n }\n }\n\n validate(date, options) {\n return this.validateValue(date, this.value, options);\n }\n\n set(date, flags, options) {\n return this.setValue(date, flags, this.value, options);\n }\n}\n\nexport class DateToSystemTimezoneSetter extends Setter {\n priority = TIMEZONE_UNIT_PRIORITY;\n subPriority = -1;\n set(date, flags) {\n if (flags.timestampIsSet) return date;\n return constructFrom(date, transpose(date, Date));\n }\n}\n","import { ValueSetter } from \"./Setter.mjs\";\n\nexport class Parser {\n run(dateString, token, match, options) {\n const result = this.parse(dateString, token, match, options);\n if (!result) {\n return null;\n }\n\n return {\n setter: new ValueSetter(\n result.value,\n this.validate,\n this.set,\n this.priority,\n this.subPriority,\n ),\n rest: result.rest,\n };\n }\n\n validate(_utcDate, _value, _options) {\n return true;\n }\n}\n","import { Parser } from \"../Parser.mjs\";\n\nexport class EraParser extends Parser {\n priority = 140;\n\n parse(dateString, token, match) {\n switch (token) {\n // AD, BC\n case \"G\":\n case \"GG\":\n case \"GGG\":\n return (\n match.era(dateString, { width: \"abbreviated\" }) ||\n match.era(dateString, { width: \"narrow\" })\n );\n\n // A, B\n case \"GGGGG\":\n return match.era(dateString, { width: \"narrow\" });\n // Anno Domini, Before Christ\n case \"GGGG\":\n default:\n return (\n match.era(dateString, { width: \"wide\" }) ||\n match.era(dateString, { width: \"abbreviated\" }) ||\n match.era(dateString, { width: \"narrow\" })\n );\n }\n }\n\n set(date, flags, value) {\n flags.era = value;\n date.setFullYear(value, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"R\", \"u\", \"t\", \"T\"];\n}\n","export const numericPatterns = {\n month: /^(1[0-2]|0?\\d)/, // 0 to 12\n date: /^(3[0-1]|[0-2]?\\d)/, // 0 to 31\n dayOfYear: /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/, // 0 to 366\n week: /^(5[0-3]|[0-4]?\\d)/, // 0 to 53\n hour23h: /^(2[0-3]|[0-1]?\\d)/, // 0 to 23\n hour24h: /^(2[0-4]|[0-1]?\\d)/, // 0 to 24\n hour11h: /^(1[0-1]|0?\\d)/, // 0 to 11\n hour12h: /^(1[0-2]|0?\\d)/, // 0 to 12\n minute: /^[0-5]?\\d/, // 0 to 59\n second: /^[0-5]?\\d/, // 0 to 59\n\n singleDigit: /^\\d/, // 0 to 9\n twoDigits: /^\\d{1,2}/, // 0 to 99\n threeDigits: /^\\d{1,3}/, // 0 to 999\n fourDigits: /^\\d{1,4}/, // 0 to 9999\n\n anyDigitsSigned: /^-?\\d+/,\n singleDigitSigned: /^-?\\d/, // 0 to 9, -0 to -9\n twoDigitsSigned: /^-?\\d{1,2}/, // 0 to 99, -0 to -99\n threeDigitsSigned: /^-?\\d{1,3}/, // 0 to 999, -0 to -999\n fourDigitsSigned: /^-?\\d{1,4}/, // 0 to 9999, -0 to -9999\n};\n\nexport const timezonePatterns = {\n basicOptionalMinutes: /^([+-])(\\d{2})(\\d{2})?|Z/,\n basic: /^([+-])(\\d{2})(\\d{2})|Z/,\n basicOptionalSeconds: /^([+-])(\\d{2})(\\d{2})((\\d{2}))?|Z/,\n extended: /^([+-])(\\d{2}):(\\d{2})|Z/,\n extendedOptionalSeconds: /^([+-])(\\d{2}):(\\d{2})(:(\\d{2}))?|Z/,\n};\n","import {\n millisecondsInHour,\n millisecondsInMinute,\n millisecondsInSecond,\n} from \"../../constants.mjs\";\nimport { numericPatterns } from \"./constants.mjs\";\n\nexport function mapValue(parseFnResult, mapFn) {\n if (!parseFnResult) {\n return parseFnResult;\n }\n\n return {\n value: mapFn(parseFnResult.value),\n rest: parseFnResult.rest,\n };\n}\n\nexport function parseNumericPattern(pattern, dateString) {\n const matchResult = dateString.match(pattern);\n\n if (!matchResult) {\n return null;\n }\n\n return {\n value: parseInt(matchResult[0], 10),\n rest: dateString.slice(matchResult[0].length),\n };\n}\n\nexport function parseTimezonePattern(pattern, dateString) {\n const matchResult = dateString.match(pattern);\n\n if (!matchResult) {\n return null;\n }\n\n // Input is 'Z'\n if (matchResult[0] === \"Z\") {\n return {\n value: 0,\n rest: dateString.slice(1),\n };\n }\n\n const sign = matchResult[1] === \"+\" ? 1 : -1;\n const hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;\n const minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;\n const seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;\n\n return {\n value:\n sign *\n (hours * millisecondsInHour +\n minutes * millisecondsInMinute +\n seconds * millisecondsInSecond),\n rest: dateString.slice(matchResult[0].length),\n };\n}\n\nexport function parseAnyDigitsSigned(dateString) {\n return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);\n}\n\nexport function parseNDigits(n, dateString) {\n switch (n) {\n case 1:\n return parseNumericPattern(numericPatterns.singleDigit, dateString);\n case 2:\n return parseNumericPattern(numericPatterns.twoDigits, dateString);\n case 3:\n return parseNumericPattern(numericPatterns.threeDigits, dateString);\n case 4:\n return parseNumericPattern(numericPatterns.fourDigits, dateString);\n default:\n return parseNumericPattern(new RegExp(\"^\\\\d{1,\" + n + \"}\"), dateString);\n }\n}\n\nexport function parseNDigitsSigned(n, dateString) {\n switch (n) {\n case 1:\n return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);\n case 2:\n return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);\n case 3:\n return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);\n case 4:\n return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);\n default:\n return parseNumericPattern(new RegExp(\"^-?\\\\d{1,\" + n + \"}\"), dateString);\n }\n}\n\nexport function dayPeriodEnumToHours(dayPeriod) {\n switch (dayPeriod) {\n case \"morning\":\n return 4;\n case \"evening\":\n return 17;\n case \"pm\":\n case \"noon\":\n case \"afternoon\":\n return 12;\n case \"am\":\n case \"midnight\":\n case \"night\":\n default:\n return 0;\n }\n}\n\nexport function normalizeTwoDigitYear(twoDigitYear, currentYear) {\n const isCommonEra = currentYear > 0;\n // Absolute number of the current year:\n // 1 -> 1 AC\n // 0 -> 1 BC\n // -1 -> 2 BC\n const absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;\n\n let result;\n if (absCurrentYear <= 50) {\n result = twoDigitYear || 100;\n } else {\n const rangeEnd = absCurrentYear + 50;\n const rangeEndCentury = Math.trunc(rangeEnd / 100) * 100;\n const isPreviousCentury = twoDigitYear >= rangeEnd % 100;\n result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);\n }\n\n return isCommonEra ? result : 1 - result;\n}\n\nexport function isLeapYearIndex(year) {\n return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);\n}\n","import { Parser } from \"../Parser.mjs\";\nimport { mapValue, normalizeTwoDigitYear, parseNDigits } from \"../utils.mjs\";\n\n// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns\n// | Year | y | yy | yyy | yyyy | yyyyy |\n// |----------|-------|----|-------|-------|-------|\n// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\nexport class YearParser extends Parser {\n priority = 130;\n incompatibleTokens = [\"Y\", \"R\", \"u\", \"w\", \"I\", \"i\", \"e\", \"c\", \"t\", \"T\"];\n\n parse(dateString, token, match) {\n const valueCallback = (year) => ({\n year,\n isTwoDigitYear: token === \"yy\",\n });\n\n switch (token) {\n case \"y\":\n return mapValue(parseNDigits(4, dateString), valueCallback);\n case \"yo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"year\",\n }),\n valueCallback,\n );\n default:\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n }\n }\n\n validate(_date, value) {\n return value.isTwoDigitYear || value.year > 0;\n }\n\n set(date, flags, value) {\n const currentYear = date.getFullYear();\n\n if (value.isTwoDigitYear) {\n const normalizedTwoDigitYear = normalizeTwoDigitYear(\n value.year,\n currentYear,\n );\n date.setFullYear(normalizedTwoDigitYear, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n const year =\n !(\"era\" in flags) || flags.era === 1 ? value.year : 1 - value.year;\n date.setFullYear(year, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n}\n","import { getWeekYear } from \"../../../getWeekYear.mjs\";\nimport { startOfWeek } from \"../../../startOfWeek.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { mapValue, normalizeTwoDigitYear, parseNDigits } from \"../utils.mjs\";\n\n// Local week-numbering year\nexport class LocalWeekYearParser extends Parser {\n priority = 130;\n\n parse(dateString, token, match) {\n const valueCallback = (year) => ({\n year,\n isTwoDigitYear: token === \"YY\",\n });\n\n switch (token) {\n case \"Y\":\n return mapValue(parseNDigits(4, dateString), valueCallback);\n case \"Yo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"year\",\n }),\n valueCallback,\n );\n default:\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n }\n }\n\n validate(_date, value) {\n return value.isTwoDigitYear || value.year > 0;\n }\n\n set(date, flags, value, options) {\n const currentYear = getWeekYear(date, options);\n\n if (value.isTwoDigitYear) {\n const normalizedTwoDigitYear = normalizeTwoDigitYear(\n value.year,\n currentYear,\n );\n date.setFullYear(\n normalizedTwoDigitYear,\n 0,\n options.firstWeekContainsDate,\n );\n date.setHours(0, 0, 0, 0);\n return startOfWeek(date, options);\n }\n\n const year =\n !(\"era\" in flags) || flags.era === 1 ? value.year : 1 - value.year;\n date.setFullYear(year, 0, options.firstWeekContainsDate);\n date.setHours(0, 0, 0, 0);\n return startOfWeek(date, options);\n }\n\n incompatibleTokens = [\n \"y\",\n \"R\",\n \"u\",\n \"Q\",\n \"q\",\n \"M\",\n \"L\",\n \"I\",\n \"d\",\n \"D\",\n \"i\",\n \"t\",\n \"T\",\n ];\n}\n","import { startOfISOWeek } from \"../../../startOfISOWeek.mjs\";\nimport { constructFrom } from \"../../../constructFrom.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigitsSigned } from \"../utils.mjs\";\n\n// ISO week-numbering year\nexport class ISOWeekYearParser extends Parser {\n priority = 130;\n\n parse(dateString, token) {\n if (token === \"R\") {\n return parseNDigitsSigned(4, dateString);\n }\n\n return parseNDigitsSigned(token.length, dateString);\n }\n\n set(date, _flags, value) {\n const firstWeekOfYear = constructFrom(date, 0);\n firstWeekOfYear.setFullYear(value, 0, 4);\n firstWeekOfYear.setHours(0, 0, 0, 0);\n return startOfISOWeek(firstWeekOfYear);\n }\n\n incompatibleTokens = [\n \"G\",\n \"y\",\n \"Y\",\n \"u\",\n \"Q\",\n \"q\",\n \"M\",\n \"L\",\n \"w\",\n \"d\",\n \"D\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { Parser } from \"../Parser.mjs\";\nimport { parseNDigitsSigned } from \"../utils.mjs\";\n\nexport class ExtendedYearParser extends Parser {\n priority = 130;\n\n parse(dateString, token) {\n if (token === \"u\") {\n return parseNDigitsSigned(4, dateString);\n }\n\n return parseNDigitsSigned(token.length, dateString);\n }\n\n set(date, _flags, value) {\n date.setFullYear(value, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"G\", \"y\", \"Y\", \"R\", \"w\", \"I\", \"i\", \"e\", \"c\", \"t\", \"T\"];\n}\n","import { Parser } from \"../Parser.mjs\";\nimport { parseNDigits } from \"../utils.mjs\";\n\nexport class QuarterParser extends Parser {\n priority = 120;\n\n parse(dateString, token, match) {\n switch (token) {\n // 1, 2, 3, 4\n case \"Q\":\n case \"QQ\": // 01, 02, 03, 04\n return parseNDigits(token.length, dateString);\n // 1st, 2nd, 3rd, 4th\n case \"Qo\":\n return match.ordinalNumber(dateString, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"QQQ\":\n return (\n match.quarter(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.quarter(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"QQQQQ\":\n return match.quarter(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"QQQQ\":\n default:\n return (\n match.quarter(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.quarter(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.quarter(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 4;\n }\n\n set(date, _flags, value) {\n date.setMonth((value - 1) * 3, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"M\",\n \"L\",\n \"w\",\n \"I\",\n \"d\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { Parser } from \"../Parser.mjs\";\nimport { parseNDigits } from \"../utils.mjs\";\n\nexport class StandAloneQuarterParser extends Parser {\n priority = 120;\n\n parse(dateString, token, match) {\n switch (token) {\n // 1, 2, 3, 4\n case \"q\":\n case \"qq\": // 01, 02, 03, 04\n return parseNDigits(token.length, dateString);\n // 1st, 2nd, 3rd, 4th\n case \"qo\":\n return match.ordinalNumber(dateString, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"qqq\":\n return (\n match.quarter(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.quarter(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n })\n );\n\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"qqqqq\":\n return match.quarter(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"qqqq\":\n default:\n return (\n match.quarter(dateString, {\n width: \"wide\",\n context: \"standalone\",\n }) ||\n match.quarter(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.quarter(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 4;\n }\n\n set(date, _flags, value) {\n date.setMonth((value - 1) * 3, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"Q\",\n \"M\",\n \"L\",\n \"w\",\n \"I\",\n \"d\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { mapValue, parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\nexport class MonthParser extends Parser {\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"Q\",\n \"L\",\n \"w\",\n \"I\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n\n priority = 110;\n\n parse(dateString, token, match) {\n const valueCallback = (value) => value - 1;\n\n switch (token) {\n // 1, 2, ..., 12\n case \"M\":\n return mapValue(\n parseNumericPattern(numericPatterns.month, dateString),\n valueCallback,\n );\n // 01, 02, ..., 12\n case \"MM\":\n return mapValue(parseNDigits(2, dateString), valueCallback);\n // 1st, 2nd, ..., 12th\n case \"Mo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"month\",\n }),\n valueCallback,\n );\n // Jan, Feb, ..., Dec\n case \"MMM\":\n return (\n match.month(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.month(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // J, F, ..., D\n case \"MMMMM\":\n return match.month(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // January, February, ..., December\n case \"MMMM\":\n default:\n return (\n match.month(dateString, { width: \"wide\", context: \"formatting\" }) ||\n match.month(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.month(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 11;\n }\n\n set(date, _flags, value) {\n date.setMonth(value, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { mapValue, parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\nexport class StandAloneMonthParser extends Parser {\n priority = 110;\n\n parse(dateString, token, match) {\n const valueCallback = (value) => value - 1;\n\n switch (token) {\n // 1, 2, ..., 12\n case \"L\":\n return mapValue(\n parseNumericPattern(numericPatterns.month, dateString),\n valueCallback,\n );\n // 01, 02, ..., 12\n case \"LL\":\n return mapValue(parseNDigits(2, dateString), valueCallback);\n // 1st, 2nd, ..., 12th\n case \"Lo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"month\",\n }),\n valueCallback,\n );\n // Jan, Feb, ..., Dec\n case \"LLL\":\n return (\n match.month(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.month(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n\n // J, F, ..., D\n case \"LLLLL\":\n return match.month(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // January, February, ..., December\n case \"LLLL\":\n default:\n return (\n match.month(dateString, { width: \"wide\", context: \"standalone\" }) ||\n match.month(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.month(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 11;\n }\n\n set(date, _flags, value) {\n date.setMonth(value, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"Q\",\n \"M\",\n \"w\",\n \"I\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { getWeek } from \"./getWeek.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * The {@link setWeek} function options.\n */\n\n/**\n * @name setWeek\n * @category Week Helpers\n * @summary Set the local week to the given date.\n *\n * @description\n * Set the local week to the given date, saving the weekday number.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param week - The week of the new date\n * @param options - An object with options\n *\n * @returns The new date with the local week set\n *\n * @example\n * // Set the 1st week to 2 January 2005 with default options:\n * const result = setWeek(new Date(2005, 0, 2), 1)\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // Set the 1st week to 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January:\n * const result = setWeek(new Date(2005, 0, 2), 1, {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Sun Jan 4 2004 00:00:00\n */\nexport function setWeek(date, week, options) {\n const _date = toDate(date);\n const diff = getWeek(_date, options) - week;\n _date.setDate(_date.getDate() - diff * 7);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setWeek;\n","import { setWeek } from \"../../../setWeek.mjs\";\nimport { startOfWeek } from \"../../../startOfWeek.mjs\";\nimport { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\n// Local week of year\nexport class LocalWeekParser extends Parser {\n priority = 100;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"w\":\n return parseNumericPattern(numericPatterns.week, dateString);\n case \"wo\":\n return match.ordinalNumber(dateString, { unit: \"week\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 53;\n }\n\n set(date, _flags, value, options) {\n return startOfWeek(setWeek(date, value, options), options);\n }\n\n incompatibleTokens = [\n \"y\",\n \"R\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"I\",\n \"d\",\n \"D\",\n \"i\",\n \"t\",\n \"T\",\n ];\n}\n","import { getISOWeek } from \"./getISOWeek.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setISOWeek\n * @category ISO Week Helpers\n * @summary Set the ISO week to the given date.\n *\n * @description\n * Set the ISO week to the given date, saving the weekday number.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param week - The ISO week of the new date\n *\n * @returns The new date with the ISO week set\n *\n * @example\n * // Set the 53rd ISO week to 7 August 2004:\n * const result = setISOWeek(new Date(2004, 7, 7), 53)\n * //=> Sat Jan 01 2005 00:00:00\n */\nexport function setISOWeek(date, week) {\n const _date = toDate(date);\n const diff = getISOWeek(_date) - week;\n _date.setDate(_date.getDate() - diff * 7);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setISOWeek;\n","import { setISOWeek } from \"../../../setISOWeek.mjs\";\nimport { startOfISOWeek } from \"../../../startOfISOWeek.mjs\";\nimport { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\n// ISO week of year\nexport class ISOWeekParser extends Parser {\n priority = 100;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"I\":\n return parseNumericPattern(numericPatterns.week, dateString);\n case \"Io\":\n return match.ordinalNumber(dateString, { unit: \"week\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 53;\n }\n\n set(date, _flags, value) {\n return startOfISOWeek(setISOWeek(date, value));\n }\n\n incompatibleTokens = [\n \"y\",\n \"Y\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"w\",\n \"d\",\n \"D\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport {\n isLeapYearIndex,\n parseNDigits,\n parseNumericPattern,\n} from \"../utils.mjs\";\n\nconst DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nconst DAYS_IN_MONTH_LEAP_YEAR = [\n 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,\n];\n\n// Day of the month\nexport class DateParser extends Parser {\n priority = 90;\n subPriority = 1;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"d\":\n return parseNumericPattern(numericPatterns.date, dateString);\n case \"do\":\n return match.ordinalNumber(dateString, { unit: \"date\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(date, value) {\n const year = date.getFullYear();\n const isLeapYear = isLeapYearIndex(year);\n const month = date.getMonth();\n if (isLeapYear) {\n return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];\n } else {\n return value >= 1 && value <= DAYS_IN_MONTH[month];\n }\n }\n\n set(date, _flags, value) {\n date.setDate(value);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"Q\",\n \"w\",\n \"I\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport {\n isLeapYearIndex,\n parseNDigits,\n parseNumericPattern,\n} from \"../utils.mjs\";\n\nexport class DayOfYearParser extends Parser {\n priority = 90;\n\n subpriority = 1;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"D\":\n case \"DD\":\n return parseNumericPattern(numericPatterns.dayOfYear, dateString);\n case \"Do\":\n return match.ordinalNumber(dateString, { unit: \"date\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(date, value) {\n const year = date.getFullYear();\n const isLeapYear = isLeapYearIndex(year);\n if (isLeapYear) {\n return value >= 1 && value <= 366;\n } else {\n return value >= 1 && value <= 365;\n }\n }\n\n set(date, _flags, value) {\n date.setMonth(0, value);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"w\",\n \"I\",\n \"d\",\n \"E\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { addDays } from \"./addDays.mjs\";\nimport { toDate } from \"./toDate.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\n\n/**\n * The {@link setDay} function options.\n */\n\n/**\n * @name setDay\n * @category Weekday Helpers\n * @summary Set the day of the week to the given date.\n *\n * @description\n * Set the day of the week to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param day - The day of the week of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the day of the week set\n *\n * @example\n * // Set week day to Sunday, with the default weekStartsOn of Sunday:\n * const result = setDay(new Date(2014, 8, 1), 0)\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Set week day to Sunday, with a weekStartsOn of Monday:\n * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setDay(date, day, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date);\n const currentDay = _date.getDay();\n\n const remainder = day % 7;\n const dayIndex = (remainder + 7) % 7;\n\n const delta = 7 - weekStartsOn;\n const diff =\n day < 0 || day > 6\n ? day - ((currentDay + delta) % 7)\n : ((dayIndex + delta) % 7) - ((currentDay + delta) % 7);\n return addDays(_date, diff);\n}\n\n// Fallback for modularized imports:\nexport default setDay;\n","import { setDay } from \"../../../setDay.mjs\";\nimport { Parser } from \"../Parser.mjs\";\n\n// Day of week\nexport class DayParser extends Parser {\n priority = 90;\n\n parse(dateString, token, match) {\n switch (token) {\n // Tue\n case \"E\":\n case \"EE\":\n case \"EEE\":\n return (\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // T\n case \"EEEEE\":\n return match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"EEEEEE\":\n return (\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // Tuesday\n case \"EEEE\":\n default:\n return (\n match.day(dateString, { width: \"wide\", context: \"formatting\" }) ||\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 6;\n }\n\n set(date, _flags, value, options) {\n date = setDay(date, value, options);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"D\", \"i\", \"e\", \"c\", \"t\", \"T\"];\n}\n","import { setDay } from \"../../../setDay.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { mapValue, parseNDigits } from \"../utils.mjs\";\n\n// Local day of week\nexport class LocalDayParser extends Parser {\n priority = 90;\n parse(dateString, token, match, options) {\n const valueCallback = (value) => {\n // We want here floor instead of trunc, so we get -7 for value 0 instead of 0\n const wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n return ((value + options.weekStartsOn + 6) % 7) + wholeWeekDays;\n };\n\n switch (token) {\n // 3\n case \"e\":\n case \"ee\": // 03\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n // 3rd\n case \"eo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"day\",\n }),\n valueCallback,\n );\n // Tue\n case \"eee\":\n return (\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // T\n case \"eeeee\":\n return match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"eeeeee\":\n return (\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // Tuesday\n case \"eeee\":\n default:\n return (\n match.day(dateString, { width: \"wide\", context: \"formatting\" }) ||\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 6;\n }\n\n set(date, _flags, value, options) {\n date = setDay(date, value, options);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"y\",\n \"R\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"I\",\n \"d\",\n \"D\",\n \"E\",\n \"i\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { setDay } from \"../../../setDay.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { mapValue, parseNDigits } from \"../utils.mjs\";\n\n// Stand-alone local day of week\nexport class StandAloneLocalDayParser extends Parser {\n priority = 90;\n\n parse(dateString, token, match, options) {\n const valueCallback = (value) => {\n // We want here floor instead of trunc, so we get -7 for value 0 instead of 0\n const wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n return ((value + options.weekStartsOn + 6) % 7) + wholeWeekDays;\n };\n\n switch (token) {\n // 3\n case \"c\":\n case \"cc\": // 03\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n // 3rd\n case \"co\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"day\",\n }),\n valueCallback,\n );\n // Tue\n case \"ccc\":\n return (\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"standalone\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n\n // T\n case \"ccccc\":\n return match.day(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // Tu\n case \"cccccc\":\n return (\n match.day(dateString, { width: \"short\", context: \"standalone\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n\n // Tuesday\n case \"cccc\":\n default:\n return (\n match.day(dateString, { width: \"wide\", context: \"standalone\" }) ||\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"standalone\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 6;\n }\n\n set(date, _flags, value, options) {\n date = setDay(date, value, options);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"y\",\n \"R\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"I\",\n \"d\",\n \"D\",\n \"E\",\n \"i\",\n \"e\",\n \"t\",\n \"T\",\n ];\n}\n","import { addDays } from \"./addDays.mjs\";\nimport { getISODay } from \"./getISODay.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setISODay\n * @category Weekday Helpers\n * @summary Set the day of the ISO week to the given date.\n *\n * @description\n * Set the day of the ISO week to the given date.\n * ISO week starts with Monday.\n * 7 is the index of Sunday, 1 is the index of Monday etc.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param day - The day of the ISO week of the new date\n *\n * @returns The new date with the day of the ISO week set\n *\n * @example\n * // Set Sunday to 1 September 2014:\n * const result = setISODay(new Date(2014, 8, 1), 7)\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setISODay(date, day) {\n const _date = toDate(date);\n const currentDay = getISODay(_date);\n const diff = day - currentDay;\n return addDays(_date, diff);\n}\n\n// Fallback for modularized imports:\nexport default setISODay;\n","import { setISODay } from \"../../../setISODay.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { mapValue, parseNDigits } from \"../utils.mjs\";\n\n// ISO day of week\nexport class ISODayParser extends Parser {\n priority = 90;\n\n parse(dateString, token, match) {\n const valueCallback = (value) => {\n if (value === 0) {\n return 7;\n }\n return value;\n };\n\n switch (token) {\n // 2\n case \"i\":\n case \"ii\": // 02\n return parseNDigits(token.length, dateString);\n // 2nd\n case \"io\":\n return match.ordinalNumber(dateString, { unit: \"day\" });\n // Tue\n case \"iii\":\n return mapValue(\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"short\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n }),\n valueCallback,\n );\n // T\n case \"iiiii\":\n return mapValue(\n match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n }),\n valueCallback,\n );\n // Tu\n case \"iiiiii\":\n return mapValue(\n match.day(dateString, {\n width: \"short\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n }),\n valueCallback,\n );\n // Tuesday\n case \"iiii\":\n default:\n return mapValue(\n match.day(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"short\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n }),\n valueCallback,\n );\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 7;\n }\n\n set(date, _flags, value) {\n date = setISODay(date, value);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"y\",\n \"Y\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"w\",\n \"d\",\n \"D\",\n \"E\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { Parser } from \"../Parser.mjs\";\nimport { dayPeriodEnumToHours } from \"../utils.mjs\";\n\nexport class AMPMParser extends Parser {\n priority = 80;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"a\":\n case \"aa\":\n case \"aaa\":\n return (\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n\n case \"aaaaa\":\n return match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"aaaa\":\n default:\n return (\n match.dayPeriod(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n }\n }\n\n set(date, _flags, value) {\n date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"b\", \"B\", \"H\", \"k\", \"t\", \"T\"];\n}\n","import { Parser } from \"../Parser.mjs\";\nimport { dayPeriodEnumToHours } from \"../utils.mjs\";\n\nexport class AMPMMidnightParser extends Parser {\n priority = 80;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"b\":\n case \"bb\":\n case \"bbb\":\n return (\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n\n case \"bbbbb\":\n return match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"bbbb\":\n default:\n return (\n match.dayPeriod(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n }\n }\n\n set(date, _flags, value) {\n date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"a\", \"B\", \"H\", \"k\", \"t\", \"T\"];\n}\n","import { Parser } from \"../Parser.mjs\";\nimport { dayPeriodEnumToHours } from \"../utils.mjs\";\n\n// in the morning, in the afternoon, in the evening, at night\nexport class DayPeriodParser extends Parser {\n priority = 80;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"B\":\n case \"BB\":\n case \"BBB\":\n return (\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n\n case \"BBBBB\":\n return match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"BBBB\":\n default:\n return (\n match.dayPeriod(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n }\n }\n\n set(date, _flags, value) {\n date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"a\", \"b\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\nexport class Hour1to12Parser extends Parser {\n priority = 70;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"h\":\n return parseNumericPattern(numericPatterns.hour12h, dateString);\n case \"ho\":\n return match.ordinalNumber(dateString, { unit: \"hour\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 12;\n }\n\n set(date, _flags, value) {\n const isPM = date.getHours() >= 12;\n if (isPM && value < 12) {\n date.setHours(value + 12, 0, 0, 0);\n } else if (!isPM && value === 12) {\n date.setHours(0, 0, 0, 0);\n } else {\n date.setHours(value, 0, 0, 0);\n }\n return date;\n }\n\n incompatibleTokens = [\"H\", \"K\", \"k\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\nexport class Hour0to23Parser extends Parser {\n priority = 70;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"H\":\n return parseNumericPattern(numericPatterns.hour23h, dateString);\n case \"Ho\":\n return match.ordinalNumber(dateString, { unit: \"hour\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 23;\n }\n\n set(date, _flags, value) {\n date.setHours(value, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"a\", \"b\", \"h\", \"K\", \"k\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\nexport class Hour0To11Parser extends Parser {\n priority = 70;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"K\":\n return parseNumericPattern(numericPatterns.hour11h, dateString);\n case \"Ko\":\n return match.ordinalNumber(dateString, { unit: \"hour\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 11;\n }\n\n set(date, _flags, value) {\n const isPM = date.getHours() >= 12;\n if (isPM && value < 12) {\n date.setHours(value + 12, 0, 0, 0);\n } else {\n date.setHours(value, 0, 0, 0);\n }\n return date;\n }\n\n incompatibleTokens = [\"h\", \"H\", \"k\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\nexport class Hour1To24Parser extends Parser {\n priority = 70;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"k\":\n return parseNumericPattern(numericPatterns.hour24h, dateString);\n case \"ko\":\n return match.ordinalNumber(dateString, { unit: \"hour\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 24;\n }\n\n set(date, _flags, value) {\n const hours = value <= 24 ? value % 24 : value;\n date.setHours(hours, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"a\", \"b\", \"h\", \"H\", \"K\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\nexport class MinuteParser extends Parser {\n priority = 60;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"m\":\n return parseNumericPattern(numericPatterns.minute, dateString);\n case \"mo\":\n return match.ordinalNumber(dateString, { unit: \"minute\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 59;\n }\n\n set(date, _flags, value) {\n date.setMinutes(value, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseNDigits, parseNumericPattern } from \"../utils.mjs\";\n\nexport class SecondParser extends Parser {\n priority = 50;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"s\":\n return parseNumericPattern(numericPatterns.second, dateString);\n case \"so\":\n return match.ordinalNumber(dateString, { unit: \"second\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 59;\n }\n\n set(date, _flags, value) {\n date.setSeconds(value, 0);\n return date;\n }\n\n incompatibleTokens = [\"t\", \"T\"];\n}\n","import { Parser } from \"../Parser.mjs\";\nimport { mapValue, parseNDigits } from \"../utils.mjs\";\n\nexport class FractionOfSecondParser extends Parser {\n priority = 30;\n\n parse(dateString, token) {\n const valueCallback = (value) =>\n Math.trunc(value * Math.pow(10, -token.length + 3));\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n }\n\n set(date, _flags, value) {\n date.setMilliseconds(value);\n return date;\n }\n\n incompatibleTokens = [\"t\", \"T\"];\n}\n","import { constructFrom } from \"../../../constructFrom.mjs\";\nimport { getTimezoneOffsetInMilliseconds } from \"../../../_lib/getTimezoneOffsetInMilliseconds.mjs\";\nimport { timezonePatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseTimezonePattern } from \"../utils.mjs\";\n\n// Timezone (ISO-8601. +00:00 is `'Z'`)\nexport class ISOTimezoneWithZParser extends Parser {\n priority = 10;\n\n parse(dateString, token) {\n switch (token) {\n case \"X\":\n return parseTimezonePattern(\n timezonePatterns.basicOptionalMinutes,\n dateString,\n );\n case \"XX\":\n return parseTimezonePattern(timezonePatterns.basic, dateString);\n case \"XXXX\":\n return parseTimezonePattern(\n timezonePatterns.basicOptionalSeconds,\n dateString,\n );\n case \"XXXXX\":\n return parseTimezonePattern(\n timezonePatterns.extendedOptionalSeconds,\n dateString,\n );\n case \"XXX\":\n default:\n return parseTimezonePattern(timezonePatterns.extended, dateString);\n }\n }\n\n set(date, flags, value) {\n if (flags.timestampIsSet) return date;\n return constructFrom(\n date,\n date.getTime() - getTimezoneOffsetInMilliseconds(date) - value,\n );\n }\n\n incompatibleTokens = [\"t\", \"T\", \"x\"];\n}\n","import { constructFrom } from \"../../../constructFrom.mjs\";\nimport { getTimezoneOffsetInMilliseconds } from \"../../../_lib/getTimezoneOffsetInMilliseconds.mjs\";\nimport { timezonePatterns } from \"../constants.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseTimezonePattern } from \"../utils.mjs\";\n\n// Timezone (ISO-8601)\nexport class ISOTimezoneParser extends Parser {\n priority = 10;\n\n parse(dateString, token) {\n switch (token) {\n case \"x\":\n return parseTimezonePattern(\n timezonePatterns.basicOptionalMinutes,\n dateString,\n );\n case \"xx\":\n return parseTimezonePattern(timezonePatterns.basic, dateString);\n case \"xxxx\":\n return parseTimezonePattern(\n timezonePatterns.basicOptionalSeconds,\n dateString,\n );\n case \"xxxxx\":\n return parseTimezonePattern(\n timezonePatterns.extendedOptionalSeconds,\n dateString,\n );\n case \"xxx\":\n default:\n return parseTimezonePattern(timezonePatterns.extended, dateString);\n }\n }\n\n set(date, flags, value) {\n if (flags.timestampIsSet) return date;\n return constructFrom(\n date,\n date.getTime() - getTimezoneOffsetInMilliseconds(date) - value,\n );\n }\n\n incompatibleTokens = [\"t\", \"T\", \"X\"];\n}\n","import { constructFrom } from \"../../../constructFrom.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseAnyDigitsSigned } from \"../utils.mjs\";\n\nexport class TimestampSecondsParser extends Parser {\n priority = 40;\n\n parse(dateString) {\n return parseAnyDigitsSigned(dateString);\n }\n\n set(date, _flags, value) {\n return [constructFrom(date, value * 1000), { timestampIsSet: true }];\n }\n\n incompatibleTokens = \"*\";\n}\n","import { constructFrom } from \"../../../constructFrom.mjs\";\nimport { Parser } from \"../Parser.mjs\";\nimport { parseAnyDigitsSigned } from \"../utils.mjs\";\n\nexport class TimestampMillisecondsParser extends Parser {\n priority = 20;\n\n parse(dateString) {\n return parseAnyDigitsSigned(dateString);\n }\n\n set(date, _flags, value) {\n return [constructFrom(date, value), { timestampIsSet: true }];\n }\n\n incompatibleTokens = \"*\";\n}\n","import { EraParser } from \"./parsers/EraParser.mjs\";\nimport { YearParser } from \"./parsers/YearParser.mjs\";\nimport { LocalWeekYearParser } from \"./parsers/LocalWeekYearParser.mjs\";\nimport { ISOWeekYearParser } from \"./parsers/ISOWeekYearParser.mjs\";\nimport { ExtendedYearParser } from \"./parsers/ExtendedYearParser.mjs\";\nimport { QuarterParser } from \"./parsers/QuarterParser.mjs\";\nimport { StandAloneQuarterParser } from \"./parsers/StandAloneQuarterParser.mjs\";\nimport { MonthParser } from \"./parsers/MonthParser.mjs\";\nimport { StandAloneMonthParser } from \"./parsers/StandAloneMonthParser.mjs\";\nimport { LocalWeekParser } from \"./parsers/LocalWeekParser.mjs\";\nimport { ISOWeekParser } from \"./parsers/ISOWeekParser.mjs\";\nimport { DateParser } from \"./parsers/DateParser.mjs\";\nimport { DayOfYearParser } from \"./parsers/DayOfYearParser.mjs\";\nimport { DayParser } from \"./parsers/DayParser.mjs\";\nimport { LocalDayParser } from \"./parsers/LocalDayParser.mjs\";\nimport { StandAloneLocalDayParser } from \"./parsers/StandAloneLocalDayParser.mjs\";\nimport { ISODayParser } from \"./parsers/ISODayParser.mjs\";\nimport { AMPMParser } from \"./parsers/AMPMParser.mjs\";\nimport { AMPMMidnightParser } from \"./parsers/AMPMMidnightParser.mjs\";\nimport { DayPeriodParser } from \"./parsers/DayPeriodParser.mjs\";\nimport { Hour1to12Parser } from \"./parsers/Hour1to12Parser.mjs\";\nimport { Hour0to23Parser } from \"./parsers/Hour0to23Parser.mjs\";\nimport { Hour0To11Parser } from \"./parsers/Hour0To11Parser.mjs\";\nimport { Hour1To24Parser } from \"./parsers/Hour1To24Parser.mjs\";\nimport { MinuteParser } from \"./parsers/MinuteParser.mjs\";\nimport { SecondParser } from \"./parsers/SecondParser.mjs\";\nimport { FractionOfSecondParser } from \"./parsers/FractionOfSecondParser.mjs\";\nimport { ISOTimezoneWithZParser } from \"./parsers/ISOTimezoneWithZParser.mjs\";\nimport { ISOTimezoneParser } from \"./parsers/ISOTimezoneParser.mjs\";\nimport { TimestampSecondsParser } from \"./parsers/TimestampSecondsParser.mjs\";\nimport { TimestampMillisecondsParser } from \"./parsers/TimestampMillisecondsParser.mjs\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O* | Timezone (GMT) |\n * | p | | P | |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any -- It's ok, we want any here\nexport const parsers = {\n G: new EraParser(),\n y: new YearParser(),\n Y: new LocalWeekYearParser(),\n R: new ISOWeekYearParser(),\n u: new ExtendedYearParser(),\n Q: new QuarterParser(),\n q: new StandAloneQuarterParser(),\n M: new MonthParser(),\n L: new StandAloneMonthParser(),\n w: new LocalWeekParser(),\n I: new ISOWeekParser(),\n d: new DateParser(),\n D: new DayOfYearParser(),\n E: new DayParser(),\n e: new LocalDayParser(),\n c: new StandAloneLocalDayParser(),\n i: new ISODayParser(),\n a: new AMPMParser(),\n b: new AMPMMidnightParser(),\n B: new DayPeriodParser(),\n h: new Hour1to12Parser(),\n H: new Hour0to23Parser(),\n K: new Hour0To11Parser(),\n k: new Hour1To24Parser(),\n m: new MinuteParser(),\n s: new SecondParser(),\n S: new FractionOfSecondParser(),\n X: new ISOTimezoneWithZParser(),\n x: new ISOTimezoneParser(),\n t: new TimestampSecondsParser(),\n T: new TimestampMillisecondsParser(),\n};\n","import { constructFrom } from \"./constructFrom.mjs\";\nimport { getDefaultOptions } from \"./getDefaultOptions.mjs\";\nimport { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { toDate } from \"./toDate.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { parsers } from \"./parse/_lib/parsers.mjs\";\nimport { DateToSystemTimezoneSetter } from \"./parse/_lib/Setter.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { longFormatters, parsers };\n\n/**\n * The {@link parse} function options.\n */\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\n\nconst notWhitespaceRegExp = /\\S/;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > âš ï¸ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `parse` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n * while `uu` will just assign the year as is:\n *\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear)\n * and [setWeekYear](https://date-fns.org/docs/setWeekYear)).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateStr - The string to parse\n * @param formatStr - The string of tokens\n * @param referenceDate - defines values missing from the parsed dateString\n * @param options - An object with options.\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @returns The parsed date\n *\n * @throws `options.locale` must contain `match` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n * locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\nexport function parse(dateStr, formatStr, referenceDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n if (formatStr === \"\") {\n if (dateStr === \"\") {\n return toDate(referenceDate);\n } else {\n return constructFrom(referenceDate, NaN);\n }\n }\n\n const subFnOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n // If timezone isn't specified, it will be set to the system timezone\n const setters = [new DateToSystemTimezoneSetter()];\n\n const tokens = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter in longFormatters) {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp);\n\n const usedTokens = [];\n\n for (let token of tokens) {\n if (\n !options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)\n ) {\n warnOrThrowProtectedError(token, formatStr, dateStr);\n }\n if (\n !options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token)\n ) {\n warnOrThrowProtectedError(token, formatStr, dateStr);\n }\n\n const firstCharacter = token[0];\n const parser = parsers[firstCharacter];\n if (parser) {\n const { incompatibleTokens } = parser;\n if (Array.isArray(incompatibleTokens)) {\n const incompatibleToken = usedTokens.find(\n (usedToken) =>\n incompatibleTokens.includes(usedToken.token) ||\n usedToken.token === firstCharacter,\n );\n if (incompatibleToken) {\n throw new RangeError(\n `The format string mustn't contain \\`${incompatibleToken.fullToken}\\` and \\`${token}\\` at the same time`,\n );\n }\n } else if (parser.incompatibleTokens === \"*\" && usedTokens.length > 0) {\n throw new RangeError(\n `The format string mustn't contain \\`${token}\\` and any other token at the same time`,\n );\n }\n\n usedTokens.push({ token: firstCharacter, fullToken: token });\n\n const parseResult = parser.run(\n dateStr,\n token,\n locale.match,\n subFnOptions,\n );\n\n if (!parseResult) {\n return constructFrom(referenceDate, NaN);\n }\n\n setters.push(parseResult.setter);\n\n dateStr = parseResult.rest;\n } else {\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n // Replace two single quote characters with one single quote character\n if (token === \"''\") {\n token = \"'\";\n } else if (firstCharacter === \"'\") {\n token = cleanEscapedString(token);\n }\n\n // Cut token from string, or, if string doesn't match the token, return Invalid Date\n if (dateStr.indexOf(token) === 0) {\n dateStr = dateStr.slice(token.length);\n } else {\n return constructFrom(referenceDate, NaN);\n }\n }\n }\n\n // Check if the remaining input contains something other than whitespace\n if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {\n return constructFrom(referenceDate, NaN);\n }\n\n const uniquePrioritySetters = setters\n .map((setter) => setter.priority)\n .sort((a, b) => b - a)\n .filter((priority, index, array) => array.indexOf(priority) === index)\n .map((priority) =>\n setters\n .filter((setter) => setter.priority === priority)\n .sort((a, b) => b.subPriority - a.subPriority),\n )\n .map((setterArray) => setterArray[0]);\n\n let date = toDate(referenceDate);\n\n if (isNaN(date.getTime())) {\n return constructFrom(referenceDate, NaN);\n }\n\n const flags = {};\n for (const setter of uniquePrioritySetters) {\n if (!setter.validate(date, subFnOptions)) {\n return constructFrom(referenceDate, NaN);\n }\n\n const result = setter.set(date, flags, subFnOptions);\n // Result is tuple (date, flags)\n if (Array.isArray(result)) {\n date = result[0];\n Object.assign(flags, result[1]);\n // Result is date\n } else {\n date = result;\n }\n }\n\n return constructFrom(referenceDate, date);\n}\n\nfunction cleanEscapedString(input) {\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default parse;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The first date to check\n * @param dateRight - The second date to check\n *\n * @returns The dates are in the same month (and year)\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport function isSameMonth(dateLeft, dateRight) {\n const _dateLeft = toDate(dateLeft);\n const _dateRight = toDate(dateRight);\n return (\n _dateLeft.getFullYear() === _dateRight.getFullYear() &&\n _dateLeft.getMonth() === _dateRight.getMonth()\n );\n}\n\n// Fallback for modularized imports:\nexport default isSameMonth;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name isSameYear\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The first date to check\n * @param dateRight - The second date to check\n *\n * @returns The dates are in the same year\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\nexport function isSameYear(dateLeft, dateRight) {\n const _dateLeft = toDate(dateLeft);\n const _dateRight = toDate(dateRight);\n return _dateLeft.getFullYear() === _dateRight.getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default isSameYear;\n","import { constructFrom } from \"./constructFrom.mjs\";\nimport { getDaysInMonth } from \"./getDaysInMonth.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param month - The month index to set (0-11)\n *\n * @returns The new date with the month set\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport function setMonth(date, month) {\n const _date = toDate(date);\n const year = _date.getFullYear();\n const day = _date.getDate();\n\n const dateWithDesiredMonth = constructFrom(date, 0);\n dateWithDesiredMonth.setFullYear(year, month, 15);\n dateWithDesiredMonth.setHours(0, 0, 0, 0);\n const daysInMonth = getDaysInMonth(dateWithDesiredMonth);\n // Set the last day of the new month\n // if the original date was the last day of the longer month\n _date.setMonth(month, Math.min(day, daysInMonth));\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMonth;\n","import { constructFrom } from \"./constructFrom.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setYear\n * @category Year Helpers\n * @summary Set the year to the given date.\n *\n * @description\n * Set the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param year - The year of the new date\n *\n * @returns The new date with the year set\n *\n * @example\n * // Set year 2013 to 1 September 2014:\n * const result = setYear(new Date(2014, 8, 1), 2013)\n * //=> Sun Sep 01 2013 00:00:00\n */\nexport function setYear(date, year) {\n const _date = toDate(date);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+_date)) {\n return constructFrom(date, NaN);\n }\n\n _date.setFullYear(year);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setYear;\n","import { addMonths } from \"./addMonths.mjs\";\n\n/**\n * @name subMonths\n * @category Month Helpers\n * @summary Subtract the specified number of months from the given date.\n *\n * @description\n * Subtract the specified number of months from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be subtracted.\n *\n * @returns The new date with the months subtracted\n *\n * @example\n * // Subtract 5 months from 1 February 2015:\n * const result = subMonths(new Date(2015, 1, 1), 5)\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function subMonths(date, amount) {\n return addMonths(date, -amount);\n}\n\n// Fallback for modularized imports:\nexport default subMonths;\n","import { subDays } from \"./subDays.mjs\";\nimport { subMonths } from \"./subMonths.mjs\";\nimport { constructFrom } from \"./constructFrom.mjs\";\n\n/**\n * @name sub\n * @category Common Helpers\n * @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.\n *\n * @description\n * Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be subtracted\n *\n * | Key | Description |\n * |---------|------------------------------------|\n * | years | Amount of years to be subtracted |\n * | months | Amount of months to be subtracted |\n * | weeks | Amount of weeks to be subtracted |\n * | days | Amount of days to be subtracted |\n * | hours | Amount of hours to be subtracted |\n * | minutes | Amount of minutes to be subtracted |\n * | seconds | Amount of seconds to be subtracted |\n *\n * All values default to 0\n *\n * @returns The new date with the seconds subtracted\n *\n * @example\n * // Subtract the following duration from 15 June 2017 15:29:20\n * const result = sub(new Date(2017, 5, 15, 15, 29, 20), {\n * years: 2,\n * months: 9,\n * weeks: 1,\n * days: 7,\n * hours: 5,\n * minutes: 9,\n * seconds: 30\n * })\n * //=> Mon Sep 1 2014 10:19:50\n */\nexport function sub(date, duration) {\n const {\n years = 0,\n months = 0,\n weeks = 0,\n days = 0,\n hours = 0,\n minutes = 0,\n seconds = 0,\n } = duration;\n\n // Subtract years and months\n const dateWithoutMonths = subMonths(date, months + years * 12);\n\n // Subtract weeks and days\n const dateWithoutDays = subDays(dateWithoutMonths, days + weeks * 7);\n\n // Subtract hours, minutes and seconds\n const minutestoSub = minutes + hours * 60;\n const secondstoSub = seconds + minutestoSub * 60;\n const mstoSub = secondstoSub * 1000;\n const finalDate = constructFrom(date, dateWithoutDays.getTime() - mstoSub);\n\n return finalDate;\n}\n\n// Fallback for modularized imports:\nexport default sub;\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t {\n return cl({\n \"navds-typo--spacing\": props.spacing,\n \"navds-typo--truncate\": props.truncate,\n \"navds-typo--semibold\": props.weight === \"semibold\",\n [`navds-typo--align-${props.align}`]: props.align,\n [`navds-typo--color-${props.textColor}`]: props.textColor,\n \"navds-typo--visually-hidden\": props.visuallyHidden,\n \"navds-typo--uppercase\": props.uppercase,\n });\n};\n//# sourceMappingURL=util.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { typoClassNames } from \"./util.js\";\n/**\n * Part of a set of components for displaying text with consistent typography.\n *\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/typography)\n * @see ðŸ·ï¸ {@link BodyLongProps}\n * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support\n *\n * @example\n * ```jsx\n * \n * Hvis du ikke bor sammen med begge foreldrene dine,\n * kan du ha rett til barnebidrag fra en eller begge foreldre mens du\n * fullfører videregÃ¥ende skole eller tilsvarende.\n * \n * ```\n */\nexport const BodyLong = forwardRef((_a, ref) => {\n var { className, size = \"medium\", as: Component = \"p\", spacing, truncate, weight = \"regular\", align, visuallyHidden, textColor } = _a, rest = __rest(_a, [\"className\", \"size\", \"as\", \"spacing\", \"truncate\", \"weight\", \"align\", \"visuallyHidden\", \"textColor\"]);\n return (React.createElement(Component, Object.assign({}, rest, { ref: ref, className: cl(className, \"navds-body-long\", `navds-body-long--${size}`, typoClassNames({\n spacing,\n truncate,\n weight,\n align,\n visuallyHidden,\n textColor,\n })) })));\n});\nexport default BodyLong;\n//# sourceMappingURL=BodyLong.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { typoClassNames } from \"./util.js\";\n/**\n * Part of a set of components for displaying text with consistent typography.\n *\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/typography)\n * @see ðŸ·ï¸ {@link BodyShortProps}\n * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support\n *\n * @example\n * ```jsx\n * \n * Du mÃ¥ gjøre en filtrering for Ã¥ se brukere i listen.\n * \n * ```\n */\nexport const BodyShort = forwardRef((_a, ref) => {\n var { className, size = \"medium\", as: Component = \"p\", spacing, truncate, weight = \"regular\", align, visuallyHidden, textColor } = _a, rest = __rest(_a, [\"className\", \"size\", \"as\", \"spacing\", \"truncate\", \"weight\", \"align\", \"visuallyHidden\", \"textColor\"]);\n return (React.createElement(Component, Object.assign({}, rest, { ref: ref, className: cl(className, \"navds-body-short\", `navds-body-short--${size}`, typoClassNames({\n spacing,\n truncate,\n weight,\n align,\n visuallyHidden,\n textColor,\n })) })));\n});\nexport default BodyShort;\n//# sourceMappingURL=BodyShort.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { typoClassNames } from \"./util.js\";\n/**\n * Part of a set of components for displaying text with consistent typography.\n *\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/typography)\n * @see ðŸ·ï¸ {@link DetailProps}\n * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support\n *\n * @example\n * ```jsx\n * \n * Du mÃ¥ gjøre en filtrering for Ã¥ se brukere i listen.\n * \n * ```\n */\nexport const Detail = forwardRef((_a, ref) => {\n var { className, size = \"medium\", spacing, uppercase, as: Component = \"p\", truncate, weight = \"regular\", align, visuallyHidden, textColor } = _a, rest = __rest(_a, [\"className\", \"size\", \"spacing\", \"uppercase\", \"as\", \"truncate\", \"weight\", \"align\", \"visuallyHidden\", \"textColor\"]);\n return (React.createElement(Component, Object.assign({}, rest, { ref: ref, className: cl(className, \"navds-detail\", typoClassNames({\n spacing,\n truncate,\n weight,\n align,\n visuallyHidden,\n textColor,\n uppercase,\n }), {\n \"navds-detail--small\": size === \"small\",\n }) })));\n});\nexport default Detail;\n//# sourceMappingURL=Detail.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { typoClassNames } from \"./util.js\";\n/**\n * Part of a set of components for displaying text with consistent typography.\n *\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/typography)\n * @see ðŸ·ï¸ {@link ErrorMessageProps}\n * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support\n *\n * @example\n * ```jsx\n * \n * Du mÃ¥ fylle ut: Oppgi Ã¥rsaken til at du har ventet mer enn 6 mÃ¥neder med Ã¥ søke om refusjon\n * \n * ```\n */\nexport const ErrorMessage = forwardRef((_a, ref) => {\n var { className, size, spacing, as: Component = \"p\" } = _a, rest = __rest(_a, [\"className\", \"size\", \"spacing\", \"as\"]);\n return (React.createElement(Component, Object.assign({}, rest, { ref: ref, className: cl(\"navds-error-message\", \"navds-label\", className, typoClassNames({\n spacing,\n }), {\n \"navds-label--small\": size === \"small\",\n }) })));\n});\nexport default ErrorMessage;\n//# sourceMappingURL=ErrorMessage.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { typoClassNames } from \"./util.js\";\n/**\n * Part of a set of components for displaying text with consistent typography.\n *\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/typography)\n * @see ðŸ·ï¸ {@link HeadingProps}\n * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support\n *\n * @example\n * ```jsx\n * \n * Hva kan vi hjelpe deg med?\n * \n * ```\n */\nexport const Heading = forwardRef((_a, ref) => {\n var { level = \"1\", size, className, as, spacing, align, visuallyHidden, textColor } = _a, rest = __rest(_a, [\"level\", \"size\", \"className\", \"as\", \"spacing\", \"align\", \"visuallyHidden\", \"textColor\"]);\n const HeadingTag = as !== null && as !== void 0 ? as : `h${level}`;\n return (React.createElement(HeadingTag, Object.assign({}, rest, { ref: ref, className: cl(className, \"navds-heading\", `navds-heading--${size}`, typoClassNames({\n spacing,\n align,\n visuallyHidden,\n textColor,\n })) })));\n});\nexport default Heading;\n//# sourceMappingURL=Heading.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef } from \"react\";\n/**\n * @deprecated Use ``\n *\n * Part of a set of components for displaying text with consistent typography.\n *\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/typography)\n * @see ðŸ·ï¸ {@link IngressProps}\n * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support\n *\n * @example\n * ```jsx\n * \n * Hvis du ikke bor sammen med begge foreldrene dine, kan du ha rett til barnebidrag fra en eller begge foreldre mens du fullfører videregÃ¥ende skole eller tilsvarende.\n * \n * ```\n */\nexport const Ingress = forwardRef((_a, ref) => {\n var { className, spacing, as: Component = \"p\" } = _a, rest = __rest(_a, [\"className\", \"spacing\", \"as\"]);\n return (React.createElement(Component, Object.assign({}, rest, { ref: ref, className: cl(className, \"navds-ingress\", {\n \"navds-typo--spacing\": !!spacing,\n }) })));\n});\nexport default Ingress;\n//# sourceMappingURL=Ingress.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { typoClassNames } from \"./util.js\";\n/**\n * Part of a set of components for displaying text with consistent typography.\n *\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/typography)\n * @see ðŸ·ï¸ {@link LabelProps}\n * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support\n *\n * @example\n * ```jsx\n * \n * ```\n */\nexport const Label = forwardRef((_a, ref) => {\n var { className, size = \"medium\", as: Component = \"label\", spacing, visuallyHidden, textColor } = _a, rest = __rest(_a, [\"className\", \"size\", \"as\", \"spacing\", \"visuallyHidden\", \"textColor\"]);\n return (React.createElement(Component, Object.assign({}, rest, { ref: ref, className: cl(className, \"navds-label\", typoClassNames({\n spacing,\n visuallyHidden,\n textColor,\n }), {\n \"navds-label--small\": size === \"small\",\n }) })));\n});\nexport default Label;\n//# sourceMappingURL=Label.js.map","export function omit(obj, props) {\n const filteredEntries = Object.entries(obj).filter(([key]) => !props.includes(key));\n return Object.fromEntries(filteredEntries);\n}\n//# sourceMappingURL=omit.js.map","\"use client\";\nimport { useLayoutEffect } from \"react\";\nexport const useClientLayoutEffect = (globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)\n ? useLayoutEffect\n : () => { };\n//# sourceMappingURL=useClientLayoutEffect.js.map","\"use client\";\n//https://github.com/mui/material-ui/blob/master/packages/mui-utils/src/useId.ts\nimport React, { useEffect, useState } from \"react\";\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = useState(idOverride);\n const id = idOverride || defaultId;\n useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`aksel-id-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\nconst maybeReactUseId = React[\"useId\" + \"\" // Workaround for https://github.com/webpack/webpack/issues/14814\n];\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport function useId(idOverride) {\n var _a;\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride !== null && idOverride !== void 0 ? idOverride : reactId.replace(/(:)/g, \"\");\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `useId` is invariant at runtime.\n return (_a = useGlobalId(idOverride)) !== null && _a !== void 0 ? _a : \"\";\n}\n//# sourceMappingURL=useId.js.map","//https://github.com/mui/material-ui/blob/master/packages/mui-utils/src/useId.ts\nimport React, { useEffect, useState } from \"react\";\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = useState(idOverride);\n const id = idOverride || defaultId;\n useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`aksel-icon-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\nconst maybeReactUseId = React[\"useId\" + \"\" // Workaround for https://github.com/webpack/webpack/issues/14814\n];\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport function useId(idOverride) {\n var _a;\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride !== null && idOverride !== void 0 ? idOverride : reactId.replace(/(:)/g, \"\");\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `useId` is invariant at runtime.\n return (_a = useGlobalId(idOverride)) !== null && _a !== void 0 ? _a : \"\";\n}\n//# sourceMappingURL=useId.js.map","\"use client\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from \"react\";\nimport { forwardRef } from \"react\";\nimport { useId } from \"./util/useId.js\";\nconst SvgChevronDown = forwardRef((_a, ref) => {\n var { title, titleId: _titleId } = _a, props = __rest(_a, [\"title\", \"titleId\"]);\n let titleId = useId();\n titleId = title ? _titleId ? _titleId : \"title-\" + titleId : undefined;\n return React.createElement(\"svg\", Object.assign({ xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", fill: \"none\", viewBox: \"0 0 24 24\", focusable: false, role: \"img\", ref: ref, \"aria-labelledby\": titleId }, props),\n title ? React.createElement(\"title\", { id: titleId }, title) : null,\n React.createElement(\"path\", { fill: \"currentColor\", fillRule: \"evenodd\", d: \"M5.97 9.47a.75.75 0 0 1 1.06 0L12 14.44l4.97-4.97a.75.75 0 1 1 1.06 1.06l-5.5 5.5a.75.75 0 0 1-1.06 0l-5.5-5.5a.75.75 0 0 1 0-1.06\", clipRule: \"evenodd\" }));\n});\nexport default SvgChevronDown;\n//# sourceMappingURL=ChevronDown.js.map","\"use client\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from \"react\";\nimport { forwardRef } from \"react\";\nimport { useId } from \"./util/useId.js\";\nconst SvgPadlockLockedFill = forwardRef((_a, ref) => {\n var { title, titleId: _titleId } = _a, props = __rest(_a, [\"title\", \"titleId\"]);\n let titleId = useId();\n titleId = title ? _titleId ? _titleId : \"title-\" + titleId : undefined;\n return React.createElement(\"svg\", Object.assign({ xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", fill: \"none\", viewBox: \"0 0 24 24\", focusable: false, role: \"img\", ref: ref, \"aria-labelledby\": titleId }, props),\n title ? React.createElement(\"title\", { id: titleId }, title) : null,\n React.createElement(\"path\", { fill: \"currentColor\", fillRule: \"evenodd\", d: \"M12 2.25A4.75 4.75 0 0 0 7.25 7v2.25H7A1.75 1.75 0 0 0 5.25 11v9c0 .414.336.75.75.75h12a.75.75 0 0 0 .75-.75v-9A1.75 1.75 0 0 0 17 9.25h-.25V7A4.75 4.75 0 0 0 12 2.25m3.25 7V7a3.25 3.25 0 0 0-6.5 0v2.25zM12 13a1.5 1.5 0 0 0-.75 2.8V17a.75.75 0 0 0 1.5 0v-1.2A1.5 1.5 0 0 0 12 13\", clipRule: \"evenodd\" }));\n});\nexport default SvgPadlockLockedFill;\n//# sourceMappingURL=PadlockLockedFill.js.map","\"use client\";\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from \"react\";\nimport { forwardRef } from \"react\";\nimport { useId } from \"./util/useId.js\";\nconst SvgXMark = forwardRef((_a, ref) => {\n var { title, titleId: _titleId } = _a, props = __rest(_a, [\"title\", \"titleId\"]);\n let titleId = useId();\n titleId = title ? _titleId ? _titleId : \"title-\" + titleId : undefined;\n return React.createElement(\"svg\", Object.assign({ xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", fill: \"none\", viewBox: \"0 0 24 24\", focusable: false, role: \"img\", ref: ref, \"aria-labelledby\": titleId }, props),\n title ? React.createElement(\"title\", { id: titleId }, title) : null,\n React.createElement(\"path\", { fill: \"currentColor\", d: \"M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94z\" }));\n});\nexport default SvgXMark;\n//# sourceMappingURL=XMark.js.map","/* https://github.com/radix-ui/primitives/blob/main/packages/core/primitive/src/primitive.tsx#L1 */\n/**\n * Utility to consistently call original eventhandler, often from props and internal eventhandler\n * @internal\n */\nexport function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler === null || originalEventHandler === void 0 ? void 0 : originalEventHandler(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);\n }\n };\n}\n//# sourceMappingURL=composeEventHandlers.js.map","/* https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/composeRefs.tsx */\nimport React from \"react\";\n// https://github.com/gregberge/react-merge-refs\n/**\n * Use `useMergeRefs`\n * @internal\n */\nexport function mergeRefs(refs) {\n return (value) => {\n refs.forEach((ref) => {\n if (typeof ref === \"function\") {\n ref(value);\n }\n else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n });\n };\n}\n/**\n * Merges refs within useCallback\n * @internal\n * @param ...refs: React.Ref | undefined\n * @returns React.useCallback(mergeRefs(refs), refs)\n */\nexport function useMergeRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(mergeRefs(refs), refs);\n}\n//# sourceMappingURL=useMergeRefs.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef } from \"react\";\nimport { omit } from \"../util/index.js\";\nimport { useId } from \"../util/hooks/index.js\";\n/**\n * A component that displays a loading spinner.\n *\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/loader)\n * @see ðŸ·ï¸ {@link LoaderProps}\n *\n * @example\n * ```jsx\n * \n * ```\n */\nexport const Loader = forwardRef((_a, ref) => {\n var { className, size = \"medium\", title = \"venter...\", transparent = false, variant = \"neutral\", id } = _a, rest = __rest(_a, [\"className\", \"size\", \"title\", \"transparent\", \"variant\", \"id\"]);\n const internalId = useId();\n return (React.createElement(\"svg\", Object.assign({ \"aria-labelledby\": id !== null && id !== void 0 ? id : `loader-${internalId}`, ref: ref, className: cl(\"navds-loader\", className, `navds-loader--${size}`, `navds-loader--${variant}`, {\n \"navds-loader--transparent\": transparent,\n }), focusable: \"false\", viewBox: \"0 0 50 50\", preserveAspectRatio: \"xMidYMid\" }, omit(rest, [\"children\"])),\n React.createElement(\"title\", { id: id !== null && id !== void 0 ? id : `loader-${internalId}` }, title),\n React.createElement(\"circle\", { className: \"navds-loader__background\", xmlns: \"http://www.w3.org/2000/svg\", cx: \"25\", cy: \"25\", r: \"20\", fill: \"none\" }),\n React.createElement(\"circle\", { className: \"navds-loader__foreground\", cx: \"25\", cy: \"25\", r: \"20\", fill: \"none\", strokeDasharray: \"50 155\" })));\n});\nexport default Loader;\n//# sourceMappingURL=Loader.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport cl from \"clsx\";\nimport React, { forwardRef, useRef, useState } from \"react\";\nimport { Loader } from \"../loader/index.js\";\nimport { Label } from \"../typography/index.js\";\nimport { omit } from \"../util/index.js\";\nimport { composeEventHandlers } from \"../util/composeEventHandlers.js\";\nimport { useClientLayoutEffect } from \"../util/hooks/index.js\";\nimport { useMergeRefs } from \"../util/hooks/useMergeRefs.js\";\n/**\n * A button component\n * @see [📠Documentation](https://aksel.nav.no/komponenter/core/button)\n * @see ðŸ·ï¸ {@link ButtonProps}\n * @see [🤖 OverridableComponent](https://aksel.nav.no/grunnleggende/kode/overridablecomponent) support\n * @example\n * ```jsx\n * \n * ```\n */\nexport const Button = forwardRef((_a, ref) => {\n var { as: Component = \"button\", variant = \"primary\", className, children, size = \"medium\", loading = false, disabled, style, icon, iconPosition = \"left\" } = _a, rest = __rest(_a, [\"as\", \"variant\", \"className\", \"children\", \"size\", \"loading\", \"disabled\", \"style\", \"icon\", \"iconPosition\"]);\n const buttonRef = useRef(null);\n const [widthOverride, setWidthOverride] = useState();\n const mergedRef = useMergeRefs(buttonRef, ref);\n useClientLayoutEffect(() => {\n if (loading) {\n const requestID = window.requestAnimationFrame(() => {\n var _a, _b;\n setWidthOverride((_b = (_a = buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.width);\n });\n return () => {\n setWidthOverride(undefined);\n cancelAnimationFrame(requestID);\n };\n }\n }, [loading, children]);\n const filterProps = (disabled !== null && disabled !== void 0 ? disabled : widthOverride) ? omit(rest, [\"href\"]) : rest;\n const handleKeyUp = (e) => {\n if (e.key === \" \" && !disabled && !widthOverride) {\n e.currentTarget.click();\n }\n };\n return (React.createElement(Component, Object.assign({}, (Component !== \"button\" ? { role: \"button\" } : {}), filterProps, { ref: mergedRef, onKeyUp: composeEventHandlers(filterProps.onKeyUp, handleKeyUp), className: cl(className, \"navds-button\", `navds-button--${variant}`, `navds-button--${size}`, {\n \"navds-button--loading\": widthOverride,\n \"navds-button--icon-only\": !!icon && !children,\n \"navds-button--disabled\": disabled !== null && disabled !== void 0 ? disabled : widthOverride,\n }), style: Object.assign(Object.assign({}, style), { width: widthOverride }), disabled: (disabled !== null && disabled !== void 0 ? disabled : widthOverride) ? true : undefined }), widthOverride ? (React.createElement(Loader, { size: size })) : (React.createElement(React.Fragment, null,\n icon && iconPosition === \"left\" && (React.createElement(\"span\", { className: \"navds-button__icon\" }, icon)),\n children && (React.createElement(Label, { as: \"span\", size: size === \"medium\" ? \"medium\" : \"small\" }, children)),\n icon && iconPosition === \"right\" && (React.createElement(\"span\", { className: \"navds-button__icon\" }, icon))))));\n});\nexport default Button;\n//# sourceMappingURL=Button.js.map","import require$$0, { createContext, useContext, useState, forwardRef, useEffect, useRef, useLayoutEffect } from 'react';\nimport { format, startOfMonth, endOfMonth, startOfDay, isSameYear, setMonth, setYear, startOfYear, differenceInCalendarMonths, addMonths, isSameMonth, isBefore, startOfISOWeek, startOfWeek, addDays, isSameDay, isAfter, subDays, differenceInCalendarDays, isDate, max, min, addWeeks, addYears, endOfISOWeek, endOfWeek, getUnixTime, getISOWeek, getWeek, getWeeksInMonth, parse } from 'date-fns';\nimport { enUS } from 'date-fns/locale';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\nvar jsxRuntime = {exports: {}};\n\nvar reactJsxRuntime_development = {};\n\n/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar hasRequiredReactJsxRuntime_development;\n\nfunction requireReactJsxRuntime_development () {\n\tif (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;\n\thasRequiredReactJsxRuntime_development = 1;\n\n\tif (process.env.NODE_ENV !== \"production\") {\n\t (function() {\n\n\tvar React = require$$0;\n\n\t// ATTENTION\n\t// When adding new symbols to this file,\n\t// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n\t// The Symbol used to tag the ReactElement-like types.\n\tvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\n\tvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\n\tvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\n\tvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\n\tvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\n\tvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\n\tvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\n\tvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\n\tvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\n\tvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\n\tvar REACT_MEMO_TYPE = Symbol.for('react.memo');\n\tvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\tvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\tvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\n\tvar FAUX_ITERATOR_SYMBOL = '@@iterator';\n\tfunction getIteratorFn(maybeIterable) {\n\t if (maybeIterable === null || typeof maybeIterable !== 'object') {\n\t return null;\n\t }\n\n\t var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n\t if (typeof maybeIterator === 'function') {\n\t return maybeIterator;\n\t }\n\n\t return null;\n\t}\n\n\tvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\n\tfunction error(format) {\n\t {\n\t {\n\t for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n\t args[_key2 - 1] = arguments[_key2];\n\t }\n\n\t printWarning('error', format, args);\n\t }\n\t }\n\t}\n\n\tfunction printWarning(level, format, args) {\n\t // When changing this logic, you might want to also\n\t // update consoleWithStackDev.www.js as well.\n\t {\n\t var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\t var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n\t if (stack !== '') {\n\t format += '%s';\n\t args = args.concat([stack]);\n\t } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n\t var argsWithFormat = args.map(function (item) {\n\t return String(item);\n\t }); // Careful: RN currently depends on this prefix\n\n\t argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n\t // breaks IE9: https://github.com/facebook/react/issues/13610\n\t // eslint-disable-next-line react-internal/no-production-logging\n\n\t Function.prototype.apply.call(console[level], console, argsWithFormat);\n\t }\n\t}\n\n\t// -----------------------------------------------------------------------------\n\n\tvar enableScopeAPI = false; // Experimental Create Event Handle API.\n\tvar enableCacheElement = false;\n\tvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\n\tvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n\t// stuff. Intended to enable React core members to more easily debug scheduling\n\t// issues in DEV builds.\n\n\tvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\n\tvar REACT_MODULE_REFERENCE;\n\n\t{\n\t REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n\t}\n\n\tfunction isValidElementType(type) {\n\t if (typeof type === 'string' || typeof type === 'function') {\n\t return true;\n\t } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n\t if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n\t return true;\n\t }\n\n\t if (typeof type === 'object' && type !== null) {\n\t if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n\t // types supported by any Flight configuration anywhere since\n\t // we don't know which Flight build this will end up being used\n\t // with.\n\t type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n\t return true;\n\t }\n\t }\n\n\t return false;\n\t}\n\n\tfunction getWrappedName(outerType, innerType, wrapperName) {\n\t var displayName = outerType.displayName;\n\n\t if (displayName) {\n\t return displayName;\n\t }\n\n\t var functionName = innerType.displayName || innerType.name || '';\n\t return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n\t} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\n\tfunction getContextName(type) {\n\t return type.displayName || 'Context';\n\t} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\n\tfunction getComponentNameFromType(type) {\n\t if (type == null) {\n\t // Host root, text node or just invalid type.\n\t return null;\n\t }\n\n\t {\n\t if (typeof type.tag === 'number') {\n\t error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n\t }\n\t }\n\n\t if (typeof type === 'function') {\n\t return type.displayName || type.name || null;\n\t }\n\n\t if (typeof type === 'string') {\n\t return type;\n\t }\n\n\t switch (type) {\n\t case REACT_FRAGMENT_TYPE:\n\t return 'Fragment';\n\n\t case REACT_PORTAL_TYPE:\n\t return 'Portal';\n\n\t case REACT_PROFILER_TYPE:\n\t return 'Profiler';\n\n\t case REACT_STRICT_MODE_TYPE:\n\t return 'StrictMode';\n\n\t case REACT_SUSPENSE_TYPE:\n\t return 'Suspense';\n\n\t case REACT_SUSPENSE_LIST_TYPE:\n\t return 'SuspenseList';\n\n\t }\n\n\t if (typeof type === 'object') {\n\t switch (type.$$typeof) {\n\t case REACT_CONTEXT_TYPE:\n\t var context = type;\n\t return getContextName(context) + '.Consumer';\n\n\t case REACT_PROVIDER_TYPE:\n\t var provider = type;\n\t return getContextName(provider._context) + '.Provider';\n\n\t case REACT_FORWARD_REF_TYPE:\n\t return getWrappedName(type, type.render, 'ForwardRef');\n\n\t case REACT_MEMO_TYPE:\n\t var outerName = type.displayName || null;\n\n\t if (outerName !== null) {\n\t return outerName;\n\t }\n\n\t return getComponentNameFromType(type.type) || 'Memo';\n\n\t case REACT_LAZY_TYPE:\n\t {\n\t var lazyComponent = type;\n\t var payload = lazyComponent._payload;\n\t var init = lazyComponent._init;\n\n\t try {\n\t return getComponentNameFromType(init(payload));\n\t } catch (x) {\n\t return null;\n\t }\n\t }\n\n\t // eslint-disable-next-line no-fallthrough\n\t }\n\t }\n\n\t return null;\n\t}\n\n\tvar assign = Object.assign;\n\n\t// Helpers to patch console.logs to avoid logging during side-effect free\n\t// replaying on render function. This currently only patches the object\n\t// lazily which won't cover if the log function was extracted eagerly.\n\t// We could also eagerly patch the method.\n\tvar disabledDepth = 0;\n\tvar prevLog;\n\tvar prevInfo;\n\tvar prevWarn;\n\tvar prevError;\n\tvar prevGroup;\n\tvar prevGroupCollapsed;\n\tvar prevGroupEnd;\n\n\tfunction disabledLog() {}\n\n\tdisabledLog.__reactDisabledLog = true;\n\tfunction disableLogs() {\n\t {\n\t if (disabledDepth === 0) {\n\t /* eslint-disable react-internal/no-production-logging */\n\t prevLog = console.log;\n\t prevInfo = console.info;\n\t prevWarn = console.warn;\n\t prevError = console.error;\n\t prevGroup = console.group;\n\t prevGroupCollapsed = console.groupCollapsed;\n\t prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n\t var props = {\n\t configurable: true,\n\t enumerable: true,\n\t value: disabledLog,\n\t writable: true\n\t }; // $FlowFixMe Flow thinks console is immutable.\n\n\t Object.defineProperties(console, {\n\t info: props,\n\t log: props,\n\t warn: props,\n\t error: props,\n\t group: props,\n\t groupCollapsed: props,\n\t groupEnd: props\n\t });\n\t /* eslint-enable react-internal/no-production-logging */\n\t }\n\n\t disabledDepth++;\n\t }\n\t}\n\tfunction reenableLogs() {\n\t {\n\t disabledDepth--;\n\n\t if (disabledDepth === 0) {\n\t /* eslint-disable react-internal/no-production-logging */\n\t var props = {\n\t configurable: true,\n\t enumerable: true,\n\t writable: true\n\t }; // $FlowFixMe Flow thinks console is immutable.\n\n\t Object.defineProperties(console, {\n\t log: assign({}, props, {\n\t value: prevLog\n\t }),\n\t info: assign({}, props, {\n\t value: prevInfo\n\t }),\n\t warn: assign({}, props, {\n\t value: prevWarn\n\t }),\n\t error: assign({}, props, {\n\t value: prevError\n\t }),\n\t group: assign({}, props, {\n\t value: prevGroup\n\t }),\n\t groupCollapsed: assign({}, props, {\n\t value: prevGroupCollapsed\n\t }),\n\t groupEnd: assign({}, props, {\n\t value: prevGroupEnd\n\t })\n\t });\n\t /* eslint-enable react-internal/no-production-logging */\n\t }\n\n\t if (disabledDepth < 0) {\n\t error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n\t }\n\t }\n\t}\n\n\tvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\n\tvar prefix;\n\tfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n\t {\n\t if (prefix === undefined) {\n\t // Extract the VM specific prefix used by each line.\n\t try {\n\t throw Error();\n\t } catch (x) {\n\t var match = x.stack.trim().match(/\\n( *(at )?)/);\n\t prefix = match && match[1] || '';\n\t }\n\t } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n\t return '\\n' + prefix + name;\n\t }\n\t}\n\tvar reentry = false;\n\tvar componentFrameCache;\n\n\t{\n\t var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n\t componentFrameCache = new PossiblyWeakMap();\n\t}\n\n\tfunction describeNativeComponentFrame(fn, construct) {\n\t // If something asked for a stack inside a fake render, it should get ignored.\n\t if ( !fn || reentry) {\n\t return '';\n\t }\n\n\t {\n\t var frame = componentFrameCache.get(fn);\n\n\t if (frame !== undefined) {\n\t return frame;\n\t }\n\t }\n\n\t var control;\n\t reentry = true;\n\t var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n\t Error.prepareStackTrace = undefined;\n\t var previousDispatcher;\n\n\t {\n\t previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n\t // for warnings.\n\n\t ReactCurrentDispatcher.current = null;\n\t disableLogs();\n\t }\n\n\t try {\n\t // This should throw.\n\t if (construct) {\n\t // Something should be setting the props in the constructor.\n\t var Fake = function () {\n\t throw Error();\n\t }; // $FlowFixMe\n\n\n\t Object.defineProperty(Fake.prototype, 'props', {\n\t set: function () {\n\t // We use a throwing setter instead of frozen or non-writable props\n\t // because that won't throw in a non-strict mode function.\n\t throw Error();\n\t }\n\t });\n\n\t if (typeof Reflect === 'object' && Reflect.construct) {\n\t // We construct a different control for this case to include any extra\n\t // frames added by the construct call.\n\t try {\n\t Reflect.construct(Fake, []);\n\t } catch (x) {\n\t control = x;\n\t }\n\n\t Reflect.construct(fn, [], Fake);\n\t } else {\n\t try {\n\t Fake.call();\n\t } catch (x) {\n\t control = x;\n\t }\n\n\t fn.call(Fake.prototype);\n\t }\n\t } else {\n\t try {\n\t throw Error();\n\t } catch (x) {\n\t control = x;\n\t }\n\n\t fn();\n\t }\n\t } catch (sample) {\n\t // This is inlined manually because closure doesn't do it for us.\n\t if (sample && control && typeof sample.stack === 'string') {\n\t // This extracts the first frame from the sample that isn't also in the control.\n\t // Skipping one frame that we assume is the frame that calls the two.\n\t var sampleLines = sample.stack.split('\\n');\n\t var controlLines = control.stack.split('\\n');\n\t var s = sampleLines.length - 1;\n\t var c = controlLines.length - 1;\n\n\t while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n\t // We expect at least one stack frame to be shared.\n\t // Typically this will be the root most one. However, stack frames may be\n\t // cut off due to maximum stack limits. In this case, one maybe cut off\n\t // earlier than the other. We assume that the sample is longer or the same\n\t // and there for cut off earlier. So we should find the root most frame in\n\t // the sample somewhere in the control.\n\t c--;\n\t }\n\n\t for (; s >= 1 && c >= 0; s--, c--) {\n\t // Next we find the first one that isn't the same which should be the\n\t // frame that called our sample function and the control.\n\t if (sampleLines[s] !== controlLines[c]) {\n\t // In V8, the first line is describing the message but other VMs don't.\n\t // If we're about to return the first line, and the control is also on the same\n\t // line, that's a pretty good indicator that our sample threw at same line as\n\t // the control. I.e. before we entered the sample frame. So we ignore this result.\n\t // This can happen if you passed a class to function component, or non-function.\n\t if (s !== 1 || c !== 1) {\n\t do {\n\t s--;\n\t c--; // We may still have similar intermediate frames from the construct call.\n\t // The next one that isn't the same should be our match though.\n\n\t if (c < 0 || sampleLines[s] !== controlLines[c]) {\n\t // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n\t var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n\t // but we have a user-provided \"displayName\"\n\t // splice it in to make the stack more readable.\n\n\n\t if (fn.displayName && _frame.includes('')) {\n\t _frame = _frame.replace('', fn.displayName);\n\t }\n\n\t {\n\t if (typeof fn === 'function') {\n\t componentFrameCache.set(fn, _frame);\n\t }\n\t } // Return the line we found.\n\n\n\t return _frame;\n\t }\n\t } while (s >= 1 && c >= 0);\n\t }\n\n\t break;\n\t }\n\t }\n\t }\n\t } finally {\n\t reentry = false;\n\n\t {\n\t ReactCurrentDispatcher.current = previousDispatcher;\n\t reenableLogs();\n\t }\n\n\t Error.prepareStackTrace = previousPrepareStackTrace;\n\t } // Fallback to just using the name if we couldn't make it throw.\n\n\n\t var name = fn ? fn.displayName || fn.name : '';\n\t var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n\t {\n\t if (typeof fn === 'function') {\n\t componentFrameCache.set(fn, syntheticFrame);\n\t }\n\t }\n\n\t return syntheticFrame;\n\t}\n\tfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n\t {\n\t return describeNativeComponentFrame(fn, false);\n\t }\n\t}\n\n\tfunction shouldConstruct(Component) {\n\t var prototype = Component.prototype;\n\t return !!(prototype && prototype.isReactComponent);\n\t}\n\n\tfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n\t if (type == null) {\n\t return '';\n\t }\n\n\t if (typeof type === 'function') {\n\t {\n\t return describeNativeComponentFrame(type, shouldConstruct(type));\n\t }\n\t }\n\n\t if (typeof type === 'string') {\n\t return describeBuiltInComponentFrame(type);\n\t }\n\n\t switch (type) {\n\t case REACT_SUSPENSE_TYPE:\n\t return describeBuiltInComponentFrame('Suspense');\n\n\t case REACT_SUSPENSE_LIST_TYPE:\n\t return describeBuiltInComponentFrame('SuspenseList');\n\t }\n\n\t if (typeof type === 'object') {\n\t switch (type.$$typeof) {\n\t case REACT_FORWARD_REF_TYPE:\n\t return describeFunctionComponentFrame(type.render);\n\n\t case REACT_MEMO_TYPE:\n\t // Memo may contain any component type so we recursively resolve it.\n\t return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n\t case REACT_LAZY_TYPE:\n\t {\n\t var lazyComponent = type;\n\t var payload = lazyComponent._payload;\n\t var init = lazyComponent._init;\n\n\t try {\n\t // Lazy may contain any component type so we recursively resolve it.\n\t return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n\t } catch (x) {}\n\t }\n\t }\n\t }\n\n\t return '';\n\t}\n\n\tvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\tvar loggedTypeFailures = {};\n\tvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\n\tfunction setCurrentlyValidatingElement(element) {\n\t {\n\t if (element) {\n\t var owner = element._owner;\n\t var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n\t ReactDebugCurrentFrame.setExtraStackFrame(stack);\n\t } else {\n\t ReactDebugCurrentFrame.setExtraStackFrame(null);\n\t }\n\t }\n\t}\n\n\tfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n\t {\n\t // $FlowFixMe This is okay but Flow doesn't know it.\n\t var has = Function.call.bind(hasOwnProperty);\n\n\t for (var typeSpecName in typeSpecs) {\n\t if (has(typeSpecs, typeSpecName)) {\n\t var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n\t // fail the render phase where it didn't fail before. So we log it.\n\t // After these have been cleaned up, we'll let them throw.\n\n\t try {\n\t // This is intentionally an invariant that gets caught. It's the same\n\t // behavior as without this statement except with a better message.\n\t if (typeof typeSpecs[typeSpecName] !== 'function') {\n\t // eslint-disable-next-line react-internal/prod-error-codes\n\t var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n\t err.name = 'Invariant Violation';\n\t throw err;\n\t }\n\n\t error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n\t } catch (ex) {\n\t error$1 = ex;\n\t }\n\n\t if (error$1 && !(error$1 instanceof Error)) {\n\t setCurrentlyValidatingElement(element);\n\n\t error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n\t setCurrentlyValidatingElement(null);\n\t }\n\n\t if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n\t // Only monitor this failure once because there tends to be a lot of the\n\t // same error.\n\t loggedTypeFailures[error$1.message] = true;\n\t setCurrentlyValidatingElement(element);\n\n\t error('Failed %s type: %s', location, error$1.message);\n\n\t setCurrentlyValidatingElement(null);\n\t }\n\t }\n\t }\n\t }\n\t}\n\n\tvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\n\tfunction isArray(a) {\n\t return isArrayImpl(a);\n\t}\n\n\t/*\n\t * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n\t * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n\t *\n\t * The functions in this module will throw an easier-to-understand,\n\t * easier-to-debug exception with a clear errors message message explaining the\n\t * problem. (Instead of a confusing exception thrown inside the implementation\n\t * of the `value` object).\n\t */\n\t// $FlowFixMe only called in DEV, so void return is not possible.\n\tfunction typeName(value) {\n\t {\n\t // toStringTag is needed for namespaced types like Temporal.Instant\n\t var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n\t var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n\t return type;\n\t }\n\t} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\n\tfunction willCoercionThrow(value) {\n\t {\n\t try {\n\t testStringCoercion(value);\n\t return false;\n\t } catch (e) {\n\t return true;\n\t }\n\t }\n\t}\n\n\tfunction testStringCoercion(value) {\n\t // If you ended up here by following an exception call stack, here's what's\n\t // happened: you supplied an object or symbol value to React (as a prop, key,\n\t // DOM attribute, CSS property, string ref, etc.) and when React tried to\n\t // coerce it to a string using `'' + value`, an exception was thrown.\n\t //\n\t // The most common types that will cause this exception are `Symbol` instances\n\t // and Temporal objects like `Temporal.Instant`. But any object that has a\n\t // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n\t // exception. (Library authors do this to prevent users from using built-in\n\t // numeric operators like `+` or comparison operators like `>=` because custom\n\t // methods are needed to perform accurate arithmetic or comparison.)\n\t //\n\t // To fix the problem, coerce this object or symbol value to a string before\n\t // passing it to React. The most reliable way is usually `String(value)`.\n\t //\n\t // To find which value is throwing, check the browser or debugger console.\n\t // Before this exception was thrown, there should be `console.error` output\n\t // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n\t // problem and how that type was used: key, atrribute, input value prop, etc.\n\t // In most cases, this console output also shows the component and its\n\t // ancestor components where the exception happened.\n\t //\n\t // eslint-disable-next-line react-internal/safe-string-coercion\n\t return '' + value;\n\t}\n\tfunction checkKeyStringCoercion(value) {\n\t {\n\t if (willCoercionThrow(value)) {\n\t error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n\t return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n\t }\n\t }\n\t}\n\n\tvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\n\tvar RESERVED_PROPS = {\n\t key: true,\n\t ref: true,\n\t __self: true,\n\t __source: true\n\t};\n\tvar specialPropKeyWarningShown;\n\tvar specialPropRefWarningShown;\n\tvar didWarnAboutStringRefs;\n\n\t{\n\t didWarnAboutStringRefs = {};\n\t}\n\n\tfunction hasValidRef(config) {\n\t {\n\t if (hasOwnProperty.call(config, 'ref')) {\n\t var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n\t if (getter && getter.isReactWarning) {\n\t return false;\n\t }\n\t }\n\t }\n\n\t return config.ref !== undefined;\n\t}\n\n\tfunction hasValidKey(config) {\n\t {\n\t if (hasOwnProperty.call(config, 'key')) {\n\t var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n\t if (getter && getter.isReactWarning) {\n\t return false;\n\t }\n\t }\n\t }\n\n\t return config.key !== undefined;\n\t}\n\n\tfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n\t {\n\t if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n\t var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n\t if (!didWarnAboutStringRefs[componentName]) {\n\t error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n\t didWarnAboutStringRefs[componentName] = true;\n\t }\n\t }\n\t }\n\t}\n\n\tfunction defineKeyPropWarningGetter(props, displayName) {\n\t {\n\t var warnAboutAccessingKey = function () {\n\t if (!specialPropKeyWarningShown) {\n\t specialPropKeyWarningShown = true;\n\n\t error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n\t }\n\t };\n\n\t warnAboutAccessingKey.isReactWarning = true;\n\t Object.defineProperty(props, 'key', {\n\t get: warnAboutAccessingKey,\n\t configurable: true\n\t });\n\t }\n\t}\n\n\tfunction defineRefPropWarningGetter(props, displayName) {\n\t {\n\t var warnAboutAccessingRef = function () {\n\t if (!specialPropRefWarningShown) {\n\t specialPropRefWarningShown = true;\n\n\t error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n\t }\n\t };\n\n\t warnAboutAccessingRef.isReactWarning = true;\n\t Object.defineProperty(props, 'ref', {\n\t get: warnAboutAccessingRef,\n\t configurable: true\n\t });\n\t }\n\t}\n\t/**\n\t * Factory method to create a new React element. This no longer adheres to\n\t * the class pattern, so do not use new to call it. Also, instanceof check\n\t * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n\t * if something is a React Element.\n\t *\n\t * @param {*} type\n\t * @param {*} props\n\t * @param {*} key\n\t * @param {string|object} ref\n\t * @param {*} owner\n\t * @param {*} self A *temporary* helper to detect places where `this` is\n\t * different from the `owner` when React.createElement is called, so that we\n\t * can warn. We want to get rid of owner and replace string `ref`s with arrow\n\t * functions, and as long as `this` and owner are the same, there will be no\n\t * change in behavior.\n\t * @param {*} source An annotation object (added by a transpiler or otherwise)\n\t * indicating filename, line number, and/or other information.\n\t * @internal\n\t */\n\n\n\tvar ReactElement = function (type, key, ref, self, source, owner, props) {\n\t var element = {\n\t // This tag allows us to uniquely identify this as a React Element\n\t $$typeof: REACT_ELEMENT_TYPE,\n\t // Built-in properties that belong on the element\n\t type: type,\n\t key: key,\n\t ref: ref,\n\t props: props,\n\t // Record the component responsible for creating this element.\n\t _owner: owner\n\t };\n\n\t {\n\t // The validation flag is currently mutative. We put it on\n\t // an external backing store so that we can freeze the whole object.\n\t // This can be replaced with a WeakMap once they are implemented in\n\t // commonly used development environments.\n\t element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n\t // the validation flag non-enumerable (where possible, which should\n\t // include every environment we run tests in), so the test framework\n\t // ignores it.\n\n\t Object.defineProperty(element._store, 'validated', {\n\t configurable: false,\n\t enumerable: false,\n\t writable: true,\n\t value: false\n\t }); // self and source are DEV only properties.\n\n\t Object.defineProperty(element, '_self', {\n\t configurable: false,\n\t enumerable: false,\n\t writable: false,\n\t value: self\n\t }); // Two elements created in two different places should be considered\n\t // equal for testing purposes and therefore we hide it from enumeration.\n\n\t Object.defineProperty(element, '_source', {\n\t configurable: false,\n\t enumerable: false,\n\t writable: false,\n\t value: source\n\t });\n\n\t if (Object.freeze) {\n\t Object.freeze(element.props);\n\t Object.freeze(element);\n\t }\n\t }\n\n\t return element;\n\t};\n\t/**\n\t * https://github.com/reactjs/rfcs/pull/107\n\t * @param {*} type\n\t * @param {object} props\n\t * @param {string} key\n\t */\n\n\tfunction jsxDEV(type, config, maybeKey, source, self) {\n\t {\n\t var propName; // Reserved names are extracted\n\n\t var props = {};\n\t var key = null;\n\t var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n\t // issue if key is also explicitly declared (ie.
\n\t // or
). We want to deprecate key spread,\n\t // but as an intermediary step, we will use jsxDEV for everything except\n\t //
, because we aren't currently able to tell if\n\t // key is explicitly declared to be undefined or not.\n\n\t if (maybeKey !== undefined) {\n\t {\n\t checkKeyStringCoercion(maybeKey);\n\t }\n\n\t key = '' + maybeKey;\n\t }\n\n\t if (hasValidKey(config)) {\n\t {\n\t checkKeyStringCoercion(config.key);\n\t }\n\n\t key = '' + config.key;\n\t }\n\n\t if (hasValidRef(config)) {\n\t ref = config.ref;\n\t warnIfStringRefCannotBeAutoConverted(config, self);\n\t } // Remaining properties are added to a new props object\n\n\n\t for (propName in config) {\n\t if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n\t props[propName] = config[propName];\n\t }\n\t } // Resolve default props\n\n\n\t if (type && type.defaultProps) {\n\t var defaultProps = type.defaultProps;\n\n\t for (propName in defaultProps) {\n\t if (props[propName] === undefined) {\n\t props[propName] = defaultProps[propName];\n\t }\n\t }\n\t }\n\n\t if (key || ref) {\n\t var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n\t if (key) {\n\t defineKeyPropWarningGetter(props, displayName);\n\t }\n\n\t if (ref) {\n\t defineRefPropWarningGetter(props, displayName);\n\t }\n\t }\n\n\t return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n\t }\n\t}\n\n\tvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\n\tvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\n\tfunction setCurrentlyValidatingElement$1(element) {\n\t {\n\t if (element) {\n\t var owner = element._owner;\n\t var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n\t ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n\t } else {\n\t ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n\t }\n\t }\n\t}\n\n\tvar propTypesMisspellWarningShown;\n\n\t{\n\t propTypesMisspellWarningShown = false;\n\t}\n\t/**\n\t * Verifies the object is a ReactElement.\n\t * See https://reactjs.org/docs/react-api.html#isvalidelement\n\t * @param {?object} object\n\t * @return {boolean} True if `object` is a ReactElement.\n\t * @final\n\t */\n\n\n\tfunction isValidElement(object) {\n\t {\n\t return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n\t }\n\t}\n\n\tfunction getDeclarationErrorAddendum() {\n\t {\n\t if (ReactCurrentOwner$1.current) {\n\t var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n\t if (name) {\n\t return '\\n\\nCheck the render method of `' + name + '`.';\n\t }\n\t }\n\n\t return '';\n\t }\n\t}\n\n\tfunction getSourceInfoErrorAddendum(source) {\n\t {\n\t if (source !== undefined) {\n\t var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n\t var lineNumber = source.lineNumber;\n\t return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n\t }\n\n\t return '';\n\t }\n\t}\n\t/**\n\t * Warn if there's no key explicitly set on dynamic arrays of children or\n\t * object keys are not valid. This allows us to keep track of children between\n\t * updates.\n\t */\n\n\n\tvar ownerHasKeyUseWarning = {};\n\n\tfunction getCurrentComponentErrorInfo(parentType) {\n\t {\n\t var info = getDeclarationErrorAddendum();\n\n\t if (!info) {\n\t var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n\t if (parentName) {\n\t info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n\t }\n\t }\n\n\t return info;\n\t }\n\t}\n\t/**\n\t * Warn if the element doesn't have an explicit key assigned to it.\n\t * This element is in an array. The array could grow and shrink or be\n\t * reordered. All children that haven't already been validated are required to\n\t * have a \"key\" property assigned to it. Error statuses are cached so a warning\n\t * will only be shown once.\n\t *\n\t * @internal\n\t * @param {ReactElement} element Element that requires a key.\n\t * @param {*} parentType element's parent's type.\n\t */\n\n\n\tfunction validateExplicitKey(element, parentType) {\n\t {\n\t if (!element._store || element._store.validated || element.key != null) {\n\t return;\n\t }\n\n\t element._store.validated = true;\n\t var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n\t if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n\t return;\n\t }\n\n\t ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n\t // property, it may be the creator of the child that's responsible for\n\t // assigning it a key.\n\n\t var childOwner = '';\n\n\t if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n\t // Give the component that originally created this child.\n\t childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n\t }\n\n\t setCurrentlyValidatingElement$1(element);\n\n\t error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n\t setCurrentlyValidatingElement$1(null);\n\t }\n\t}\n\t/**\n\t * Ensure that every element either is passed in a static location, in an\n\t * array with an explicit keys property defined, or in an object literal\n\t * with valid key property.\n\t *\n\t * @internal\n\t * @param {ReactNode} node Statically passed child of any type.\n\t * @param {*} parentType node's parent's type.\n\t */\n\n\n\tfunction validateChildKeys(node, parentType) {\n\t {\n\t if (typeof node !== 'object') {\n\t return;\n\t }\n\n\t if (isArray(node)) {\n\t for (var i = 0; i < node.length; i++) {\n\t var child = node[i];\n\n\t if (isValidElement(child)) {\n\t validateExplicitKey(child, parentType);\n\t }\n\t }\n\t } else if (isValidElement(node)) {\n\t // This element was passed in a valid location.\n\t if (node._store) {\n\t node._store.validated = true;\n\t }\n\t } else if (node) {\n\t var iteratorFn = getIteratorFn(node);\n\n\t if (typeof iteratorFn === 'function') {\n\t // Entry iterators used to provide implicit keys,\n\t // but now we print a separate warning for them later.\n\t if (iteratorFn !== node.entries) {\n\t var iterator = iteratorFn.call(node);\n\t var step;\n\n\t while (!(step = iterator.next()).done) {\n\t if (isValidElement(step.value)) {\n\t validateExplicitKey(step.value, parentType);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t }\n\t}\n\t/**\n\t * Given an element, validate that its props follow the propTypes definition,\n\t * provided by the type.\n\t *\n\t * @param {ReactElement} element\n\t */\n\n\n\tfunction validatePropTypes(element) {\n\t {\n\t var type = element.type;\n\n\t if (type === null || type === undefined || typeof type === 'string') {\n\t return;\n\t }\n\n\t var propTypes;\n\n\t if (typeof type === 'function') {\n\t propTypes = type.propTypes;\n\t } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n\t // Inner props are checked in the reconciler.\n\t type.$$typeof === REACT_MEMO_TYPE)) {\n\t propTypes = type.propTypes;\n\t } else {\n\t return;\n\t }\n\n\t if (propTypes) {\n\t // Intentionally inside to avoid triggering lazy initializers:\n\t var name = getComponentNameFromType(type);\n\t checkPropTypes(propTypes, element.props, 'prop', name, element);\n\t } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n\t propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n\t var _name = getComponentNameFromType(type);\n\n\t error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n\t }\n\n\t if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n\t error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n\t }\n\t }\n\t}\n\t/**\n\t * Given a fragment, validate that it can only be provided with fragment props\n\t * @param {ReactElement} fragment\n\t */\n\n\n\tfunction validateFragmentProps(fragment) {\n\t {\n\t var keys = Object.keys(fragment.props);\n\n\t for (var i = 0; i < keys.length; i++) {\n\t var key = keys[i];\n\n\t if (key !== 'children' && key !== 'key') {\n\t setCurrentlyValidatingElement$1(fragment);\n\n\t error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n\t setCurrentlyValidatingElement$1(null);\n\t break;\n\t }\n\t }\n\n\t if (fragment.ref !== null) {\n\t setCurrentlyValidatingElement$1(fragment);\n\n\t error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n\t setCurrentlyValidatingElement$1(null);\n\t }\n\t }\n\t}\n\n\tfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n\t {\n\t var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n\t // succeed and there will likely be errors in render.\n\n\t if (!validType) {\n\t var info = '';\n\n\t if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n\t info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n\t }\n\n\t var sourceInfo = getSourceInfoErrorAddendum(source);\n\n\t if (sourceInfo) {\n\t info += sourceInfo;\n\t } else {\n\t info += getDeclarationErrorAddendum();\n\t }\n\n\t var typeString;\n\n\t if (type === null) {\n\t typeString = 'null';\n\t } else if (isArray(type)) {\n\t typeString = 'array';\n\t } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n\t typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n\t info = ' Did you accidentally export a JSX literal instead of a component?';\n\t } else {\n\t typeString = typeof type;\n\t }\n\n\t error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n\t }\n\n\t var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n\t // TODO: Drop this when these are no longer allowed as the type argument.\n\n\t if (element == null) {\n\t return element;\n\t } // Skip key warning if the type isn't valid since our key validation logic\n\t // doesn't expect a non-string/function type and can throw confusing errors.\n\t // We don't want exception behavior to differ between dev and prod.\n\t // (Rendering will throw with a helpful message and as soon as the type is\n\t // fixed, the key warnings will appear.)\n\n\n\t if (validType) {\n\t var children = props.children;\n\n\t if (children !== undefined) {\n\t if (isStaticChildren) {\n\t if (isArray(children)) {\n\t for (var i = 0; i < children.length; i++) {\n\t validateChildKeys(children[i], type);\n\t }\n\n\t if (Object.freeze) {\n\t Object.freeze(children);\n\t }\n\t } else {\n\t error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n\t }\n\t } else {\n\t validateChildKeys(children, type);\n\t }\n\t }\n\t }\n\n\t if (type === REACT_FRAGMENT_TYPE) {\n\t validateFragmentProps(element);\n\t } else {\n\t validatePropTypes(element);\n\t }\n\n\t return element;\n\t }\n\t} // These two functions exist to still get child warnings in dev\n\t// even with the prod transform. This means that jsxDEV is purely\n\t// opt-in behavior for better messages but that we won't stop\n\t// giving you warnings if you use production apis.\n\n\tfunction jsxWithValidationStatic(type, props, key) {\n\t {\n\t return jsxWithValidation(type, props, key, true);\n\t }\n\t}\n\tfunction jsxWithValidationDynamic(type, props, key) {\n\t {\n\t return jsxWithValidation(type, props, key, false);\n\t }\n\t}\n\n\tvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n\t// for now we can ship identical prod functions\n\n\tvar jsxs = jsxWithValidationStatic ;\n\n\treactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;\n\treactJsxRuntime_development.jsx = jsx;\n\treactJsxRuntime_development.jsxs = jsxs;\n\t })();\n\t}\n\treturn reactJsxRuntime_development;\n}\n\nvar reactJsxRuntime_production_min = {};\n\n/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar hasRequiredReactJsxRuntime_production_min;\n\nfunction requireReactJsxRuntime_production_min () {\n\tif (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;\n\thasRequiredReactJsxRuntime_production_min = 1;\nvar f=require$$0,k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\n\tfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;\n\treturn reactJsxRuntime_production_min;\n}\n\nif (process.env.NODE_ENV === 'production') {\n jsxRuntime.exports = requireReactJsxRuntime_production_min();\n} else {\n jsxRuntime.exports = requireReactJsxRuntime_development();\n}\n\nvar jsxRuntimeExports = jsxRuntime.exports;\n\n/** Returns true when the props are of type {@link DayPickerMultipleProps}. */\nfunction isDayPickerMultiple(props) {\n return props.mode === 'multiple';\n}\n\n/** Returns true when the props are of type {@link DayPickerRangeProps}. */\nfunction isDayPickerRange(props) {\n return props.mode === 'range';\n}\n\n/** Returns true when the props are of type {@link DayPickerSingleProps}. */\nfunction isDayPickerSingle(props) {\n return props.mode === 'single';\n}\n\n/**\n * The name of the default CSS classes.\n */\nvar defaultClassNames = {\n root: 'rdp',\n multiple_months: 'rdp-multiple_months',\n with_weeknumber: 'rdp-with_weeknumber',\n vhidden: 'rdp-vhidden',\n button_reset: 'rdp-button_reset',\n button: 'rdp-button',\n caption: 'rdp-caption',\n caption_start: 'rdp-caption_start',\n caption_end: 'rdp-caption_end',\n caption_between: 'rdp-caption_between',\n caption_label: 'rdp-caption_label',\n caption_dropdowns: 'rdp-caption_dropdowns',\n dropdown: 'rdp-dropdown',\n dropdown_month: 'rdp-dropdown_month',\n dropdown_year: 'rdp-dropdown_year',\n dropdown_icon: 'rdp-dropdown_icon',\n months: 'rdp-months',\n month: 'rdp-month',\n table: 'rdp-table',\n tbody: 'rdp-tbody',\n tfoot: 'rdp-tfoot',\n head: 'rdp-head',\n head_row: 'rdp-head_row',\n head_cell: 'rdp-head_cell',\n nav: 'rdp-nav',\n nav_button: 'rdp-nav_button',\n nav_button_previous: 'rdp-nav_button_previous',\n nav_button_next: 'rdp-nav_button_next',\n nav_icon: 'rdp-nav_icon',\n row: 'rdp-row',\n weeknumber: 'rdp-weeknumber',\n cell: 'rdp-cell',\n day: 'rdp-day',\n day_today: 'rdp-day_today',\n day_outside: 'rdp-day_outside',\n day_selected: 'rdp-day_selected',\n day_disabled: 'rdp-day_disabled',\n day_hidden: 'rdp-day_hidden',\n day_range_start: 'rdp-day_range_start',\n day_range_end: 'rdp-day_range_end',\n day_range_middle: 'rdp-day_range_middle'\n};\n\n/**\n * The default formatter for the caption.\n */\nfunction formatCaption(month, options) {\n return format(month, 'LLLL y', options);\n}\n\n/**\n * The default formatter for the Day button.\n */\nfunction formatDay(day, options) {\n return format(day, 'd', options);\n}\n\n/**\n * The default formatter for the Month caption.\n */\nfunction formatMonthCaption(month, options) {\n return format(month, 'LLLL', options);\n}\n\n/**\n * The default formatter for the week number.\n */\nfunction formatWeekNumber(weekNumber) {\n return \"\".concat(weekNumber);\n}\n\n/**\n * The default formatter for the name of the weekday.\n */\nfunction formatWeekdayName(weekday, options) {\n return format(weekday, 'cccccc', options);\n}\n\n/**\n * The default formatter for the Year caption.\n */\nfunction formatYearCaption(year, options) {\n return format(year, 'yyyy', options);\n}\n\nvar formatters = /*#__PURE__*/Object.freeze({\n __proto__: null,\n formatCaption: formatCaption,\n formatDay: formatDay,\n formatMonthCaption: formatMonthCaption,\n formatWeekNumber: formatWeekNumber,\n formatWeekdayName: formatWeekdayName,\n formatYearCaption: formatYearCaption\n});\n\n/**\n * The default ARIA label for the day button.\n */\nvar labelDay = function (day, activeModifiers, options) {\n return format(day, 'do MMMM (EEEE)', options);\n};\n\n/**\n * The default ARIA label for the WeekNumber element.\n */\nvar labelMonthDropdown = function () {\n return 'Month: ';\n};\n\n/**\n * The default ARIA label for next month button in navigation\n */\nvar labelNext = function () {\n return 'Go to next month';\n};\n\n/**\n * The default ARIA label for previous month button in navigation\n */\nvar labelPrevious = function () {\n return 'Go to previous month';\n};\n\n/**\n * The default ARIA label for the Weekday element.\n */\nvar labelWeekday = function (day, options) {\n return format(day, 'cccc', options);\n};\n\n/**\n * The default ARIA label for the WeekNumber element.\n */\nvar labelWeekNumber = function (n) {\n return \"Week n. \".concat(n);\n};\n\n/**\n * The default ARIA label for the WeekNumber element.\n */\nvar labelYearDropdown = function () {\n return 'Year: ';\n};\n\nvar labels = /*#__PURE__*/Object.freeze({\n __proto__: null,\n labelDay: labelDay,\n labelMonthDropdown: labelMonthDropdown,\n labelNext: labelNext,\n labelPrevious: labelPrevious,\n labelWeekNumber: labelWeekNumber,\n labelWeekday: labelWeekday,\n labelYearDropdown: labelYearDropdown\n});\n\n/**\n * Returns the default values to use in the DayPickerContext, in case they are\n * not passed down with the DayPicker initial props.\n */\nfunction getDefaultContextValues() {\n var captionLayout = 'buttons';\n var classNames = defaultClassNames;\n var locale = enUS;\n var modifiersClassNames = {};\n var modifiers = {};\n var numberOfMonths = 1;\n var styles = {};\n var today = new Date();\n return {\n captionLayout: captionLayout,\n classNames: classNames,\n formatters: formatters,\n labels: labels,\n locale: locale,\n modifiersClassNames: modifiersClassNames,\n modifiers: modifiers,\n numberOfMonths: numberOfMonths,\n styles: styles,\n today: today,\n mode: 'default'\n };\n}\n\n/** Return the `fromDate` and `toDate` prop values values parsing the DayPicker props. */\nfunction parseFromToProps(props) {\n var fromYear = props.fromYear, toYear = props.toYear, fromMonth = props.fromMonth, toMonth = props.toMonth;\n var fromDate = props.fromDate, toDate = props.toDate;\n if (fromMonth) {\n fromDate = startOfMonth(fromMonth);\n }\n else if (fromYear) {\n fromDate = new Date(fromYear, 0, 1);\n }\n if (toMonth) {\n toDate = endOfMonth(toMonth);\n }\n else if (toYear) {\n toDate = new Date(toYear, 11, 31);\n }\n return {\n fromDate: fromDate ? startOfDay(fromDate) : undefined,\n toDate: toDate ? startOfDay(toDate) : undefined\n };\n}\n\n/**\n * The DayPicker context shares the props passed to DayPicker within internal\n * and custom components. It is used to set the default values and perform\n * one-time calculations required to render the days.\n *\n * Access to this context from the {@link useDayPicker} hook.\n */\nvar DayPickerContext = createContext(undefined);\n/**\n * The provider for the {@link DayPickerContext}, assigning the defaults from the\n * initial DayPicker props.\n */\nfunction DayPickerProvider(props) {\n var _a;\n var initialProps = props.initialProps;\n var defaultContextValues = getDefaultContextValues();\n var _b = parseFromToProps(initialProps), fromDate = _b.fromDate, toDate = _b.toDate;\n var captionLayout = (_a = initialProps.captionLayout) !== null && _a !== void 0 ? _a : defaultContextValues.captionLayout;\n if (captionLayout !== 'buttons' && (!fromDate || !toDate)) {\n // When no from/to dates are set, the caption is always buttons\n captionLayout = 'buttons';\n }\n var onSelect;\n if (isDayPickerSingle(initialProps) ||\n isDayPickerMultiple(initialProps) ||\n isDayPickerRange(initialProps)) {\n onSelect = initialProps.onSelect;\n }\n var value = __assign(__assign(__assign({}, defaultContextValues), initialProps), { captionLayout: captionLayout, classNames: __assign(__assign({}, defaultContextValues.classNames), initialProps.classNames), components: __assign({}, initialProps.components), formatters: __assign(__assign({}, defaultContextValues.formatters), initialProps.formatters), fromDate: fromDate, labels: __assign(__assign({}, defaultContextValues.labels), initialProps.labels), mode: initialProps.mode || defaultContextValues.mode, modifiers: __assign(__assign({}, defaultContextValues.modifiers), initialProps.modifiers), modifiersClassNames: __assign(__assign({}, defaultContextValues.modifiersClassNames), initialProps.modifiersClassNames), onSelect: onSelect, styles: __assign(__assign({}, defaultContextValues.styles), initialProps.styles), toDate: toDate });\n return (jsxRuntimeExports.jsx(DayPickerContext.Provider, { value: value, children: props.children }));\n}\n/**\n * Hook to access the {@link DayPickerContextValue}.\n *\n * Use the DayPicker context to access to the props passed to DayPicker inside\n * internal or custom components.\n */\nfunction useDayPicker() {\n var context = useContext(DayPickerContext);\n if (!context) {\n throw new Error(\"useDayPicker must be used within a DayPickerProvider.\");\n }\n return context;\n}\n\n/** Render the caption for the displayed month. This component is used when `captionLayout=\"buttons\"`. */\nfunction CaptionLabel(props) {\n var _a = useDayPicker(), locale = _a.locale, classNames = _a.classNames, styles = _a.styles, formatCaption = _a.formatters.formatCaption;\n return (jsxRuntimeExports.jsx(\"div\", { className: classNames.caption_label, style: styles.caption_label, \"aria-live\": \"polite\", role: \"presentation\", id: props.id, children: formatCaption(props.displayMonth, { locale: locale }) }));\n}\n\n/**\n * Render the icon in the styled drop-down.\n */\nfunction IconDropdown(props) {\n return (jsxRuntimeExports.jsx(\"svg\", __assign({ width: \"8px\", height: \"8px\", viewBox: \"0 0 120 120\", \"data-testid\": \"iconDropdown\" }, props, { children: jsxRuntimeExports.jsx(\"path\", { d: \"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z\", fill: \"currentColor\", fillRule: \"nonzero\" }) })));\n}\n\n/**\n * Render a styled select component – displaying a caption and a custom\n * drop-down icon.\n */\nfunction Dropdown(props) {\n var _a, _b;\n var onChange = props.onChange, value = props.value, children = props.children, caption = props.caption, className = props.className, style = props.style;\n var dayPicker = useDayPicker();\n var IconDropdownComponent = (_b = (_a = dayPicker.components) === null || _a === void 0 ? void 0 : _a.IconDropdown) !== null && _b !== void 0 ? _b : IconDropdown;\n return (jsxRuntimeExports.jsxs(\"div\", { className: className, style: style, children: [jsxRuntimeExports.jsx(\"span\", { className: dayPicker.classNames.vhidden, children: props['aria-label'] }), jsxRuntimeExports.jsx(\"select\", { name: props.name, \"aria-label\": props['aria-label'], className: dayPicker.classNames.dropdown, style: dayPicker.styles.dropdown, value: value, onChange: onChange, children: children }), jsxRuntimeExports.jsxs(\"div\", { className: dayPicker.classNames.caption_label, style: dayPicker.styles.caption_label, \"aria-hidden\": \"true\", children: [caption, jsxRuntimeExports.jsx(IconDropdownComponent, { className: dayPicker.classNames.dropdown_icon, style: dayPicker.styles.dropdown_icon })] })] }));\n}\n\n/** Render the dropdown to navigate between months. */\nfunction MonthsDropdown(props) {\n var _a;\n var _b = useDayPicker(), fromDate = _b.fromDate, toDate = _b.toDate, styles = _b.styles, locale = _b.locale, formatMonthCaption = _b.formatters.formatMonthCaption, classNames = _b.classNames, components = _b.components, labelMonthDropdown = _b.labels.labelMonthDropdown;\n // Dropdown should appear only when both from/toDate is set\n if (!fromDate)\n return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});\n if (!toDate)\n return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});\n var dropdownMonths = [];\n if (isSameYear(fromDate, toDate)) {\n // only display the months included in the range\n var date = startOfMonth(fromDate);\n for (var month = fromDate.getMonth(); month <= toDate.getMonth(); month++) {\n dropdownMonths.push(setMonth(date, month));\n }\n }\n else {\n // display all the 12 months\n var date = startOfMonth(new Date()); // Any date should be OK, as we just need the year\n for (var month = 0; month <= 11; month++) {\n dropdownMonths.push(setMonth(date, month));\n }\n }\n var handleChange = function (e) {\n var selectedMonth = Number(e.target.value);\n var newMonth = setMonth(startOfMonth(props.displayMonth), selectedMonth);\n props.onChange(newMonth);\n };\n var DropdownComponent = (_a = components === null || components === void 0 ? void 0 : components.Dropdown) !== null && _a !== void 0 ? _a : Dropdown;\n return (jsxRuntimeExports.jsx(DropdownComponent, { name: \"months\", \"aria-label\": labelMonthDropdown(), className: classNames.dropdown_month, style: styles.dropdown_month, onChange: handleChange, value: props.displayMonth.getMonth(), caption: formatMonthCaption(props.displayMonth, { locale: locale }), children: dropdownMonths.map(function (m) { return (jsxRuntimeExports.jsx(\"option\", { value: m.getMonth(), children: formatMonthCaption(m, { locale: locale }) }, m.getMonth())); }) }));\n}\n\n/**\n * Render a dropdown to change the year. Take in account the `nav.fromDate` and\n * `toDate` from context.\n */\nfunction YearsDropdown(props) {\n var _a;\n var displayMonth = props.displayMonth;\n var _b = useDayPicker(), fromDate = _b.fromDate, toDate = _b.toDate, locale = _b.locale, styles = _b.styles, classNames = _b.classNames, components = _b.components, formatYearCaption = _b.formatters.formatYearCaption, labelYearDropdown = _b.labels.labelYearDropdown;\n var years = [];\n // Dropdown should appear only when both from/toDate is set\n if (!fromDate)\n return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});\n if (!toDate)\n return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});\n var fromYear = fromDate.getFullYear();\n var toYear = toDate.getFullYear();\n for (var year = fromYear; year <= toYear; year++) {\n years.push(setYear(startOfYear(new Date()), year));\n }\n var handleChange = function (e) {\n var newMonth = setYear(startOfMonth(displayMonth), Number(e.target.value));\n props.onChange(newMonth);\n };\n var DropdownComponent = (_a = components === null || components === void 0 ? void 0 : components.Dropdown) !== null && _a !== void 0 ? _a : Dropdown;\n return (jsxRuntimeExports.jsx(DropdownComponent, { name: \"years\", \"aria-label\": labelYearDropdown(), className: classNames.dropdown_year, style: styles.dropdown_year, onChange: handleChange, value: displayMonth.getFullYear(), caption: formatYearCaption(displayMonth, { locale: locale }), children: years.map(function (year) { return (jsxRuntimeExports.jsx(\"option\", { value: year.getFullYear(), children: formatYearCaption(year, { locale: locale }) }, year.getFullYear())); }) }));\n}\n\n/**\n * Helper hook for using controlled/uncontrolled values from a component props.\n *\n * When the value is not controlled, pass `undefined` as `controlledValue` and\n * use the returned setter to update it.\n *\n * When the value is controlled, pass the controlled value as second\n * argument, which will be always returned as `value`.\n */\nfunction useControlledValue(defaultValue, controlledValue) {\n var _a = useState(defaultValue), uncontrolledValue = _a[0], setValue = _a[1];\n var value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n\n/** Return the initial month according to the given options. */\nfunction getInitialMonth(context) {\n var month = context.month, defaultMonth = context.defaultMonth, today = context.today;\n var initialMonth = month || defaultMonth || today || new Date();\n var toDate = context.toDate, fromDate = context.fromDate, _a = context.numberOfMonths, numberOfMonths = _a === void 0 ? 1 : _a;\n // Fix the initialMonth if is after the to-date\n if (toDate && differenceInCalendarMonths(toDate, initialMonth) < 0) {\n var offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(toDate, offset);\n }\n // Fix the initialMonth if is before the from-date\n if (fromDate && differenceInCalendarMonths(initialMonth, fromDate) < 0) {\n initialMonth = fromDate;\n }\n return startOfMonth(initialMonth);\n}\n\n/** Controls the navigation state. */\nfunction useNavigationState() {\n var context = useDayPicker();\n var initialMonth = getInitialMonth(context);\n var _a = useControlledValue(initialMonth, context.month), month = _a[0], setMonth = _a[1];\n var goToMonth = function (date) {\n var _a;\n if (context.disableNavigation)\n return;\n var month = startOfMonth(date);\n setMonth(month);\n (_a = context.onMonthChange) === null || _a === void 0 ? void 0 : _a.call(context, month);\n };\n return [month, goToMonth];\n}\n\n/**\n * Return the months to display in the component according to the number of\n * months and the from/to date.\n */\nfunction getDisplayMonths(month, _a) {\n var reverseMonths = _a.reverseMonths, numberOfMonths = _a.numberOfMonths;\n var start = startOfMonth(month);\n var end = startOfMonth(addMonths(start, numberOfMonths));\n var monthsDiff = differenceInCalendarMonths(end, start);\n var months = [];\n for (var i = 0; i < monthsDiff; i++) {\n var nextMonth = addMonths(start, i);\n months.push(nextMonth);\n }\n if (reverseMonths)\n months = months.reverse();\n return months;\n}\n\n/**\n * Returns the next month the user can navigate to according to the given\n * options.\n *\n * Please note that the next month is not always the next calendar month:\n *\n * - if after the `toDate` range, is undefined;\n * - if the navigation is paged, is the number of months displayed ahead.\n *\n */\nfunction getNextMonth(startingMonth, options) {\n if (options.disableNavigation) {\n return undefined;\n }\n var toDate = options.toDate, pagedNavigation = options.pagedNavigation, _a = options.numberOfMonths, numberOfMonths = _a === void 0 ? 1 : _a;\n var offset = pagedNavigation ? numberOfMonths : 1;\n var month = startOfMonth(startingMonth);\n if (!toDate) {\n return addMonths(month, offset);\n }\n var monthsDiff = differenceInCalendarMonths(toDate, startingMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n // Jump forward as the number of months when paged navigation\n return addMonths(month, offset);\n}\n\n/**\n * Returns the next previous the user can navigate to, according to the given\n * options.\n *\n * Please note that the previous month is not always the previous calendar\n * month:\n *\n * - if before the `fromDate` date, is `undefined`;\n * - if the navigation is paged, is the number of months displayed before.\n *\n */\nfunction getPreviousMonth(startingMonth, options) {\n if (options.disableNavigation) {\n return undefined;\n }\n var fromDate = options.fromDate, pagedNavigation = options.pagedNavigation, _a = options.numberOfMonths, numberOfMonths = _a === void 0 ? 1 : _a;\n var offset = pagedNavigation ? numberOfMonths : 1;\n var month = startOfMonth(startingMonth);\n if (!fromDate) {\n return addMonths(month, -offset);\n }\n var monthsDiff = differenceInCalendarMonths(month, fromDate);\n if (monthsDiff <= 0) {\n return undefined;\n }\n // Jump back as the number of months when paged navigation\n return addMonths(month, -offset);\n}\n\n/**\n * The Navigation context shares details and methods to navigate the months in DayPicker.\n * Access this context from the {@link useNavigation} hook.\n */\nvar NavigationContext = createContext(undefined);\n/** Provides the values for the {@link NavigationContext}. */\nfunction NavigationProvider(props) {\n var dayPicker = useDayPicker();\n var _a = useNavigationState(), currentMonth = _a[0], goToMonth = _a[1];\n var displayMonths = getDisplayMonths(currentMonth, dayPicker);\n var nextMonth = getNextMonth(currentMonth, dayPicker);\n var previousMonth = getPreviousMonth(currentMonth, dayPicker);\n var isDateDisplayed = function (date) {\n return displayMonths.some(function (displayMonth) {\n return isSameMonth(date, displayMonth);\n });\n };\n var goToDate = function (date, refDate) {\n if (isDateDisplayed(date)) {\n return;\n }\n if (refDate && isBefore(date, refDate)) {\n goToMonth(addMonths(date, 1 + dayPicker.numberOfMonths * -1));\n }\n else {\n goToMonth(date);\n }\n };\n var value = {\n currentMonth: currentMonth,\n displayMonths: displayMonths,\n goToMonth: goToMonth,\n goToDate: goToDate,\n previousMonth: previousMonth,\n nextMonth: nextMonth,\n isDateDisplayed: isDateDisplayed\n };\n return (jsxRuntimeExports.jsx(NavigationContext.Provider, { value: value, children: props.children }));\n}\n/**\n * Hook to access the {@link NavigationContextValue}. Use this hook to navigate\n * between months or years in DayPicker.\n *\n * This hook is meant to be used inside internal or custom components.\n */\nfunction useNavigation() {\n var context = useContext(NavigationContext);\n if (!context) {\n throw new Error('useNavigation must be used within a NavigationProvider');\n }\n return context;\n}\n\n/**\n * Render a caption with the dropdowns to navigate between months and years.\n */\nfunction CaptionDropdowns(props) {\n var _a;\n var _b = useDayPicker(), classNames = _b.classNames, styles = _b.styles, components = _b.components;\n var goToMonth = useNavigation().goToMonth;\n var handleMonthChange = function (newMonth) {\n goToMonth(addMonths(newMonth, props.displayIndex ? -props.displayIndex : 0));\n };\n var CaptionLabelComponent = (_a = components === null || components === void 0 ? void 0 : components.CaptionLabel) !== null && _a !== void 0 ? _a : CaptionLabel;\n var captionLabel = (jsxRuntimeExports.jsx(CaptionLabelComponent, { id: props.id, displayMonth: props.displayMonth }));\n return (jsxRuntimeExports.jsxs(\"div\", { className: classNames.caption_dropdowns, style: styles.caption_dropdowns, children: [jsxRuntimeExports.jsx(\"div\", { className: classNames.vhidden, children: captionLabel }), jsxRuntimeExports.jsx(MonthsDropdown, { onChange: handleMonthChange, displayMonth: props.displayMonth }), jsxRuntimeExports.jsx(YearsDropdown, { onChange: handleMonthChange, displayMonth: props.displayMonth })] }));\n}\n\n/**\n * Render the \"previous month\" button in the navigation.\n */\nfunction IconLeft(props) {\n return (jsxRuntimeExports.jsx(\"svg\", __assign({ width: \"16px\", height: \"16px\", viewBox: \"0 0 120 120\" }, props, { children: jsxRuntimeExports.jsx(\"path\", { d: \"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z\", fill: \"currentColor\", fillRule: \"nonzero\" }) })));\n}\n\n/**\n * Render the \"next month\" button in the navigation.\n */\nfunction IconRight(props) {\n return (jsxRuntimeExports.jsx(\"svg\", __assign({ width: \"16px\", height: \"16px\", viewBox: \"0 0 120 120\" }, props, { children: jsxRuntimeExports.jsx(\"path\", { d: \"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z\", fill: \"currentColor\" }) })));\n}\n\n/** Render a button HTML element applying the reset class name. */\nvar Button = forwardRef(function (props, ref) {\n var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles;\n var classNamesArr = [classNames.button_reset, classNames.button];\n if (props.className) {\n classNamesArr.push(props.className);\n }\n var className = classNamesArr.join(' ');\n var style = __assign(__assign({}, styles.button_reset), styles.button);\n if (props.style) {\n Object.assign(style, props.style);\n }\n return (jsxRuntimeExports.jsx(\"button\", __assign({}, props, { ref: ref, type: \"button\", className: className, style: style })));\n});\n\n/** A component rendering the navigation buttons or the drop-downs. */\nfunction Navigation(props) {\n var _a, _b;\n var _c = useDayPicker(), dir = _c.dir, locale = _c.locale, classNames = _c.classNames, styles = _c.styles, _d = _c.labels, labelPrevious = _d.labelPrevious, labelNext = _d.labelNext, components = _c.components;\n if (!props.nextMonth && !props.previousMonth) {\n return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});\n }\n var previousLabel = labelPrevious(props.previousMonth, { locale: locale });\n var previousClassName = [\n classNames.nav_button,\n classNames.nav_button_previous\n ].join(' ');\n var nextLabel = labelNext(props.nextMonth, { locale: locale });\n var nextClassName = [\n classNames.nav_button,\n classNames.nav_button_next\n ].join(' ');\n var IconRightComponent = (_a = components === null || components === void 0 ? void 0 : components.IconRight) !== null && _a !== void 0 ? _a : IconRight;\n var IconLeftComponent = (_b = components === null || components === void 0 ? void 0 : components.IconLeft) !== null && _b !== void 0 ? _b : IconLeft;\n return (jsxRuntimeExports.jsxs(\"div\", { className: classNames.nav, style: styles.nav, children: [!props.hidePrevious && (jsxRuntimeExports.jsx(Button, { name: \"previous-month\", \"aria-label\": previousLabel, className: previousClassName, style: styles.nav_button_previous, disabled: !props.previousMonth, onClick: props.onPreviousClick, children: dir === 'rtl' ? (jsxRuntimeExports.jsx(IconRightComponent, { className: classNames.nav_icon, style: styles.nav_icon })) : (jsxRuntimeExports.jsx(IconLeftComponent, { className: classNames.nav_icon, style: styles.nav_icon })) })), !props.hideNext && (jsxRuntimeExports.jsx(Button, { name: \"next-month\", \"aria-label\": nextLabel, className: nextClassName, style: styles.nav_button_next, disabled: !props.nextMonth, onClick: props.onNextClick, children: dir === 'rtl' ? (jsxRuntimeExports.jsx(IconLeftComponent, { className: classNames.nav_icon, style: styles.nav_icon })) : (jsxRuntimeExports.jsx(IconRightComponent, { className: classNames.nav_icon, style: styles.nav_icon })) }))] }));\n}\n\n/**\n * Render a caption with a button-based navigation.\n */\nfunction CaptionNavigation(props) {\n var numberOfMonths = useDayPicker().numberOfMonths;\n var _a = useNavigation(), previousMonth = _a.previousMonth, nextMonth = _a.nextMonth, goToMonth = _a.goToMonth, displayMonths = _a.displayMonths;\n var displayIndex = displayMonths.findIndex(function (month) {\n return isSameMonth(props.displayMonth, month);\n });\n var isFirst = displayIndex === 0;\n var isLast = displayIndex === displayMonths.length - 1;\n var hideNext = numberOfMonths > 1 && (isFirst || !isLast);\n var hidePrevious = numberOfMonths > 1 && (isLast || !isFirst);\n var handlePreviousClick = function () {\n if (!previousMonth)\n return;\n goToMonth(previousMonth);\n };\n var handleNextClick = function () {\n if (!nextMonth)\n return;\n goToMonth(nextMonth);\n };\n return (jsxRuntimeExports.jsx(Navigation, { displayMonth: props.displayMonth, hideNext: hideNext, hidePrevious: hidePrevious, nextMonth: nextMonth, previousMonth: previousMonth, onPreviousClick: handlePreviousClick, onNextClick: handleNextClick }));\n}\n\n/**\n * Render the caption of a month. The caption has a different layout when\n * setting the {@link DayPickerBase.captionLayout} prop.\n */\nfunction Caption(props) {\n var _a;\n var _b = useDayPicker(), classNames = _b.classNames, disableNavigation = _b.disableNavigation, styles = _b.styles, captionLayout = _b.captionLayout, components = _b.components;\n var CaptionLabelComponent = (_a = components === null || components === void 0 ? void 0 : components.CaptionLabel) !== null && _a !== void 0 ? _a : CaptionLabel;\n var caption;\n if (disableNavigation) {\n caption = (jsxRuntimeExports.jsx(CaptionLabelComponent, { id: props.id, displayMonth: props.displayMonth }));\n }\n else if (captionLayout === 'dropdown') {\n caption = (jsxRuntimeExports.jsx(CaptionDropdowns, { displayMonth: props.displayMonth, id: props.id }));\n }\n else if (captionLayout === 'dropdown-buttons') {\n caption = (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(CaptionDropdowns, { displayMonth: props.displayMonth, displayIndex: props.displayIndex, id: props.id }), jsxRuntimeExports.jsx(CaptionNavigation, { displayMonth: props.displayMonth, displayIndex: props.displayIndex, id: props.id })] }));\n }\n else {\n caption = (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(CaptionLabelComponent, { id: props.id, displayMonth: props.displayMonth, displayIndex: props.displayIndex }), jsxRuntimeExports.jsx(CaptionNavigation, { displayMonth: props.displayMonth, id: props.id })] }));\n }\n return (jsxRuntimeExports.jsx(\"div\", { className: classNames.caption, style: styles.caption, children: caption }));\n}\n\n/** Render the Footer component (empty as default).*/\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction Footer(props) {\n var _a = useDayPicker(), footer = _a.footer, styles = _a.styles, tfoot = _a.classNames.tfoot;\n if (!footer)\n return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});\n return (jsxRuntimeExports.jsx(\"tfoot\", { className: tfoot, style: styles.tfoot, children: jsxRuntimeExports.jsx(\"tr\", { children: jsxRuntimeExports.jsx(\"td\", { colSpan: 8, children: footer }) }) }));\n}\n\n/**\n * Generate a series of 7 days, starting from the week, to use for formatting\n * the weekday names (Monday, Tuesday, etc.).\n */\nfunction getWeekdays(locale, \n/** The index of the first day of the week (0 - Sunday). */\nweekStartsOn, \n/** Use ISOWeek instead of locale/ */\nISOWeek) {\n var start = ISOWeek\n ? startOfISOWeek(new Date())\n : startOfWeek(new Date(), { locale: locale, weekStartsOn: weekStartsOn });\n var days = [];\n for (var i = 0; i < 7; i++) {\n var day = addDays(start, i);\n days.push(day);\n }\n return days;\n}\n\n/**\n * Render the HeadRow component - i.e. the table head row with the weekday names.\n */\nfunction HeadRow() {\n var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles, showWeekNumber = _a.showWeekNumber, locale = _a.locale, weekStartsOn = _a.weekStartsOn, ISOWeek = _a.ISOWeek, formatWeekdayName = _a.formatters.formatWeekdayName, labelWeekday = _a.labels.labelWeekday;\n var weekdays = getWeekdays(locale, weekStartsOn, ISOWeek);\n return (jsxRuntimeExports.jsxs(\"tr\", { style: styles.head_row, className: classNames.head_row, children: [showWeekNumber && (jsxRuntimeExports.jsx(\"td\", { style: styles.head_cell, className: classNames.head_cell })), weekdays.map(function (weekday, i) { return (jsxRuntimeExports.jsx(\"th\", { scope: \"col\", className: classNames.head_cell, style: styles.head_cell, \"aria-label\": labelWeekday(weekday, { locale: locale }), children: formatWeekdayName(weekday, { locale: locale }) }, i)); })] }));\n}\n\n/** Render the table head. */\nfunction Head() {\n var _a;\n var _b = useDayPicker(), classNames = _b.classNames, styles = _b.styles, components = _b.components;\n var HeadRowComponent = (_a = components === null || components === void 0 ? void 0 : components.HeadRow) !== null && _a !== void 0 ? _a : HeadRow;\n return (jsxRuntimeExports.jsx(\"thead\", { style: styles.head, className: classNames.head, children: jsxRuntimeExports.jsx(HeadRowComponent, {}) }));\n}\n\n/** Render the content of the day cell. */\nfunction DayContent(props) {\n var _a = useDayPicker(), locale = _a.locale, formatDay = _a.formatters.formatDay;\n return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: formatDay(props.date, { locale: locale }) });\n}\n\n/**\n * The SelectMultiple context shares details about the selected days when in\n * multiple selection mode.\n *\n * Access this context from the {@link useSelectMultiple} hook.\n */\nvar SelectMultipleContext = createContext(undefined);\n/** Provides the values for the {@link SelectMultipleContext}. */\nfunction SelectMultipleProvider(props) {\n if (!isDayPickerMultiple(props.initialProps)) {\n var emptyContextValue = {\n selected: undefined,\n modifiers: {\n disabled: []\n }\n };\n return (jsxRuntimeExports.jsx(SelectMultipleContext.Provider, { value: emptyContextValue, children: props.children }));\n }\n return (jsxRuntimeExports.jsx(SelectMultipleProviderInternal, { initialProps: props.initialProps, children: props.children }));\n}\nfunction SelectMultipleProviderInternal(_a) {\n var initialProps = _a.initialProps, children = _a.children;\n var selected = initialProps.selected, min = initialProps.min, max = initialProps.max;\n var onDayClick = function (day, activeModifiers, e) {\n var _a, _b;\n (_a = initialProps.onDayClick) === null || _a === void 0 ? void 0 : _a.call(initialProps, day, activeModifiers, e);\n var isMinSelected = Boolean(activeModifiers.selected && min && (selected === null || selected === void 0 ? void 0 : selected.length) === min);\n if (isMinSelected) {\n return;\n }\n var isMaxSelected = Boolean(!activeModifiers.selected && max && (selected === null || selected === void 0 ? void 0 : selected.length) === max);\n if (isMaxSelected) {\n return;\n }\n var selectedDays = selected ? __spreadArray([], selected, true) : [];\n if (activeModifiers.selected) {\n var index = selectedDays.findIndex(function (selectedDay) {\n return isSameDay(day, selectedDay);\n });\n selectedDays.splice(index, 1);\n }\n else {\n selectedDays.push(day);\n }\n (_b = initialProps.onSelect) === null || _b === void 0 ? void 0 : _b.call(initialProps, selectedDays, day, activeModifiers, e);\n };\n var modifiers = {\n disabled: []\n };\n if (selected) {\n modifiers.disabled.push(function (day) {\n var isMaxSelected = max && selected.length > max - 1;\n var isSelected = selected.some(function (selectedDay) {\n return isSameDay(selectedDay, day);\n });\n return Boolean(isMaxSelected && !isSelected);\n });\n }\n var contextValue = {\n selected: selected,\n onDayClick: onDayClick,\n modifiers: modifiers\n };\n return (jsxRuntimeExports.jsx(SelectMultipleContext.Provider, { value: contextValue, children: children }));\n}\n/**\n * Hook to access the {@link SelectMultipleContextValue}.\n *\n * This hook is meant to be used inside internal or custom components.\n */\nfunction useSelectMultiple() {\n var context = useContext(SelectMultipleContext);\n if (!context) {\n throw new Error('useSelectMultiple must be used within a SelectMultipleProvider');\n }\n return context;\n}\n\n/**\n * Add a day to an existing range.\n *\n * The returned range takes in account the `undefined` values and if the added\n * day is already present in the range.\n */\nfunction addToRange(day, range) {\n var _a = range || {}, from = _a.from, to = _a.to;\n if (from && to) {\n if (isSameDay(to, day) && isSameDay(from, day)) {\n return undefined;\n }\n if (isSameDay(to, day)) {\n return { from: to, to: undefined };\n }\n if (isSameDay(from, day)) {\n return undefined;\n }\n if (isAfter(from, day)) {\n return { from: day, to: to };\n }\n return { from: from, to: day };\n }\n if (to) {\n if (isAfter(day, to)) {\n return { from: to, to: day };\n }\n return { from: day, to: to };\n }\n if (from) {\n if (isBefore(day, from)) {\n return { from: day, to: from };\n }\n return { from: from, to: day };\n }\n return { from: day, to: undefined };\n}\n\n/**\n * The SelectRange context shares details about the selected days when in\n * range selection mode.\n *\n * Access this context from the {@link useSelectRange} hook.\n */\nvar SelectRangeContext = createContext(undefined);\n/** Provides the values for the {@link SelectRangeProvider}. */\nfunction SelectRangeProvider(props) {\n if (!isDayPickerRange(props.initialProps)) {\n var emptyContextValue = {\n selected: undefined,\n modifiers: {\n range_start: [],\n range_end: [],\n range_middle: [],\n disabled: []\n }\n };\n return (jsxRuntimeExports.jsx(SelectRangeContext.Provider, { value: emptyContextValue, children: props.children }));\n }\n return (jsxRuntimeExports.jsx(SelectRangeProviderInternal, { initialProps: props.initialProps, children: props.children }));\n}\nfunction SelectRangeProviderInternal(_a) {\n var initialProps = _a.initialProps, children = _a.children;\n var selected = initialProps.selected;\n var _b = selected || {}, selectedFrom = _b.from, selectedTo = _b.to;\n var min = initialProps.min;\n var max = initialProps.max;\n var onDayClick = function (day, activeModifiers, e) {\n var _a, _b;\n (_a = initialProps.onDayClick) === null || _a === void 0 ? void 0 : _a.call(initialProps, day, activeModifiers, e);\n var newRange = addToRange(day, selected);\n (_b = initialProps.onSelect) === null || _b === void 0 ? void 0 : _b.call(initialProps, newRange, day, activeModifiers, e);\n };\n var modifiers = {\n range_start: [],\n range_end: [],\n range_middle: [],\n disabled: []\n };\n if (selectedFrom) {\n modifiers.range_start = [selectedFrom];\n if (!selectedTo) {\n modifiers.range_end = [selectedFrom];\n }\n else {\n modifiers.range_end = [selectedTo];\n if (!isSameDay(selectedFrom, selectedTo)) {\n modifiers.range_middle = [\n {\n after: selectedFrom,\n before: selectedTo\n }\n ];\n }\n }\n }\n else if (selectedTo) {\n modifiers.range_start = [selectedTo];\n modifiers.range_end = [selectedTo];\n }\n if (min) {\n if (selectedFrom && !selectedTo) {\n modifiers.disabled.push({\n after: subDays(selectedFrom, min - 1),\n before: addDays(selectedFrom, min - 1)\n });\n }\n if (selectedFrom && selectedTo) {\n modifiers.disabled.push({\n after: selectedFrom,\n before: addDays(selectedFrom, min - 1)\n });\n }\n if (!selectedFrom && selectedTo) {\n modifiers.disabled.push({\n after: subDays(selectedTo, min - 1),\n before: addDays(selectedTo, min - 1)\n });\n }\n }\n if (max) {\n if (selectedFrom && !selectedTo) {\n modifiers.disabled.push({\n before: addDays(selectedFrom, -max + 1)\n });\n modifiers.disabled.push({\n after: addDays(selectedFrom, max - 1)\n });\n }\n if (selectedFrom && selectedTo) {\n var selectedCount = differenceInCalendarDays(selectedTo, selectedFrom) + 1;\n var offset = max - selectedCount;\n modifiers.disabled.push({\n before: subDays(selectedFrom, offset)\n });\n modifiers.disabled.push({\n after: addDays(selectedTo, offset)\n });\n }\n if (!selectedFrom && selectedTo) {\n modifiers.disabled.push({\n before: addDays(selectedTo, -max + 1)\n });\n modifiers.disabled.push({\n after: addDays(selectedTo, max - 1)\n });\n }\n }\n return (jsxRuntimeExports.jsx(SelectRangeContext.Provider, { value: { selected: selected, onDayClick: onDayClick, modifiers: modifiers }, children: children }));\n}\n/**\n * Hook to access the {@link SelectRangeContextValue}.\n *\n * This hook is meant to be used inside internal or custom components.\n */\nfunction useSelectRange() {\n var context = useContext(SelectRangeContext);\n if (!context) {\n throw new Error('useSelectRange must be used within a SelectRangeProvider');\n }\n return context;\n}\n\n/** Normalize to array a matcher input. */\nfunction matcherToArray(matcher) {\n if (Array.isArray(matcher)) {\n return __spreadArray([], matcher, true);\n }\n else if (matcher !== undefined) {\n return [matcher];\n }\n else {\n return [];\n }\n}\n\n/** Create CustomModifiers from dayModifiers */\nfunction getCustomModifiers(dayModifiers) {\n var customModifiers = {};\n Object.entries(dayModifiers).forEach(function (_a) {\n var modifier = _a[0], matcher = _a[1];\n customModifiers[modifier] = matcherToArray(matcher);\n });\n return customModifiers;\n}\n\n/** The name of the modifiers that are used internally by DayPicker. */\nvar InternalModifier;\n(function (InternalModifier) {\n InternalModifier[\"Outside\"] = \"outside\";\n /** Name of the modifier applied to the disabled days, using the `disabled` prop. */\n InternalModifier[\"Disabled\"] = \"disabled\";\n /** Name of the modifier applied to the selected days using the `selected` prop). */\n InternalModifier[\"Selected\"] = \"selected\";\n /** Name of the modifier applied to the hidden days using the `hidden` prop). */\n InternalModifier[\"Hidden\"] = \"hidden\";\n /** Name of the modifier applied to the day specified using the `today` prop). */\n InternalModifier[\"Today\"] = \"today\";\n /** The modifier applied to the day starting a selected range, when in range selection mode. */\n InternalModifier[\"RangeStart\"] = \"range_start\";\n /** The modifier applied to the day ending a selected range, when in range selection mode. */\n InternalModifier[\"RangeEnd\"] = \"range_end\";\n /** The modifier applied to the days between the start and the end of a selected range, when in range selection mode. */\n InternalModifier[\"RangeMiddle\"] = \"range_middle\";\n})(InternalModifier || (InternalModifier = {}));\n\nvar Selected = InternalModifier.Selected, Disabled = InternalModifier.Disabled, Hidden = InternalModifier.Hidden, Today = InternalModifier.Today, RangeEnd = InternalModifier.RangeEnd, RangeMiddle = InternalModifier.RangeMiddle, RangeStart = InternalModifier.RangeStart, Outside = InternalModifier.Outside;\n/** Return the {@link InternalModifiers} from the DayPicker and select contexts. */\nfunction getInternalModifiers(dayPicker, selectMultiple, selectRange) {\n var _a;\n var internalModifiers = (_a = {},\n _a[Selected] = matcherToArray(dayPicker.selected),\n _a[Disabled] = matcherToArray(dayPicker.disabled),\n _a[Hidden] = matcherToArray(dayPicker.hidden),\n _a[Today] = [dayPicker.today],\n _a[RangeEnd] = [],\n _a[RangeMiddle] = [],\n _a[RangeStart] = [],\n _a[Outside] = [],\n _a);\n if (dayPicker.fromDate) {\n internalModifiers[Disabled].push({ before: dayPicker.fromDate });\n }\n if (dayPicker.toDate) {\n internalModifiers[Disabled].push({ after: dayPicker.toDate });\n }\n if (isDayPickerMultiple(dayPicker)) {\n internalModifiers[Disabled] = internalModifiers[Disabled].concat(selectMultiple.modifiers[Disabled]);\n }\n else if (isDayPickerRange(dayPicker)) {\n internalModifiers[Disabled] = internalModifiers[Disabled].concat(selectRange.modifiers[Disabled]);\n internalModifiers[RangeStart] = selectRange.modifiers[RangeStart];\n internalModifiers[RangeMiddle] = selectRange.modifiers[RangeMiddle];\n internalModifiers[RangeEnd] = selectRange.modifiers[RangeEnd];\n }\n return internalModifiers;\n}\n\n/** The Modifiers context store the modifiers used in DayPicker. To access the value of this context, use {@link useModifiers}. */\nvar ModifiersContext = createContext(undefined);\n/** Provide the value for the {@link ModifiersContext}. */\nfunction ModifiersProvider(props) {\n var dayPicker = useDayPicker();\n var selectMultiple = useSelectMultiple();\n var selectRange = useSelectRange();\n var internalModifiers = getInternalModifiers(dayPicker, selectMultiple, selectRange);\n var customModifiers = getCustomModifiers(dayPicker.modifiers);\n var modifiers = __assign(__assign({}, internalModifiers), customModifiers);\n return (jsxRuntimeExports.jsx(ModifiersContext.Provider, { value: modifiers, children: props.children }));\n}\n/**\n * Return the modifiers used by DayPicker.\n *\n * This hook is meant to be used inside internal or custom components.\n * Requires to be wrapped into {@link ModifiersProvider}.\n *\n */\nfunction useModifiers() {\n var context = useContext(ModifiersContext);\n if (!context) {\n throw new Error('useModifiers must be used within a ModifiersProvider');\n }\n return context;\n}\n\n/** Returns true if `matcher` is of type {@link DateInterval}. */\nfunction isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === 'object' &&\n 'before' in matcher &&\n 'after' in matcher);\n}\n/** Returns true if `value` is a {@link DateRange} type. */\nfunction isDateRange(value) {\n return Boolean(value && typeof value === 'object' && 'from' in value);\n}\n/** Returns true if `value` is of type {@link DateAfter}. */\nfunction isDateAfterType(value) {\n return Boolean(value && typeof value === 'object' && 'after' in value);\n}\n/** Returns true if `value` is of type {@link DateBefore}. */\nfunction isDateBeforeType(value) {\n return Boolean(value && typeof value === 'object' && 'before' in value);\n}\n/** Returns true if `value` is a {@link DayOfWeek} type. */\nfunction isDayOfWeekType(value) {\n return Boolean(value && typeof value === 'object' && 'dayOfWeek' in value);\n}\n\n/** Return `true` whether `date` is inside `range`. */\nfunction isDateInRange(date, range) {\n var _a;\n var from = range.from, to = range.to;\n if (from && to) {\n var isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n _a = [to, from], from = _a[0], to = _a[1];\n }\n var isInRange = differenceInCalendarDays(date, from) >= 0 &&\n differenceInCalendarDays(to, date) >= 0;\n return isInRange;\n }\n if (to) {\n return isSameDay(to, date);\n }\n if (from) {\n return isSameDay(from, date);\n }\n return false;\n}\n\n/** Returns true if `value` is a Date type. */\nfunction isDateType(value) {\n return isDate(value);\n}\n/** Returns true if `value` is an array of valid dates. */\nfunction isArrayOfDates(value) {\n return Array.isArray(value) && value.every(isDate);\n}\n/**\n * Returns whether a day matches against at least one of the given Matchers.\n *\n * ```\n * const day = new Date(2022, 5, 19);\n * const matcher1: DateRange = {\n * from: new Date(2021, 12, 21),\n * to: new Date(2021, 12, 30)\n * }\n * const matcher2: DateRange = {\n * from: new Date(2022, 5, 1),\n * to: new Date(2022, 5, 23)\n * }\n *\n * const isMatch(day, [matcher1, matcher2]); // true, since day is in the matcher1 range.\n * ```\n * */\nfunction isMatch(day, matchers) {\n return matchers.some(function (matcher) {\n if (typeof matcher === 'boolean') {\n return matcher;\n }\n if (isDateType(matcher)) {\n return isSameDay(day, matcher);\n }\n if (isArrayOfDates(matcher)) {\n return matcher.includes(day);\n }\n if (isDateRange(matcher)) {\n return isDateInRange(day, matcher);\n }\n if (isDayOfWeekType(matcher)) {\n return matcher.dayOfWeek.includes(day.getDay());\n }\n if (isDateInterval(matcher)) {\n var diffBefore = differenceInCalendarDays(matcher.before, day);\n var diffAfter = differenceInCalendarDays(matcher.after, day);\n var isDayBefore = diffBefore > 0;\n var isDayAfter = diffAfter < 0;\n var isClosedInterval = isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return isDayAfter && isDayBefore;\n }\n else {\n return isDayBefore || isDayAfter;\n }\n }\n if (isDateAfterType(matcher)) {\n return differenceInCalendarDays(day, matcher.after) > 0;\n }\n if (isDateBeforeType(matcher)) {\n return differenceInCalendarDays(matcher.before, day) > 0;\n }\n if (typeof matcher === 'function') {\n return matcher(day);\n }\n return false;\n });\n}\n\n/** Return the active modifiers for the given day. */\nfunction getActiveModifiers(day, \n/** The modifiers to match for the given date. */\nmodifiers, \n/** The month where the day is displayed, to add the \"outside\" modifiers. */\ndisplayMonth) {\n var matchedModifiers = Object.keys(modifiers).reduce(function (result, key) {\n var modifier = modifiers[key];\n if (isMatch(day, modifier)) {\n result.push(key);\n }\n return result;\n }, []);\n var activeModifiers = {};\n matchedModifiers.forEach(function (modifier) { return (activeModifiers[modifier] = true); });\n if (displayMonth && !isSameMonth(day, displayMonth)) {\n activeModifiers.outside = true;\n }\n return activeModifiers;\n}\n\n/**\n * Returns the day that should be the target of the focus when DayPicker is\n * rendered the first time.\n *\n * TODO: this function doesn't consider if the day is outside the month. We\n * implemented this check in `useDayRender` but it should probably go here. See\n * https://github.com/gpbl/react-day-picker/pull/1576\n */\nfunction getInitialFocusTarget(displayMonths, modifiers) {\n var firstDayInMonth = startOfMonth(displayMonths[0]);\n var lastDayInMonth = endOfMonth(displayMonths[displayMonths.length - 1]);\n // TODO: cleanup code\n var firstFocusableDay;\n var today;\n var date = firstDayInMonth;\n while (date <= lastDayInMonth) {\n var activeModifiers = getActiveModifiers(date, modifiers);\n var isFocusable = !activeModifiers.disabled && !activeModifiers.hidden;\n if (!isFocusable) {\n date = addDays(date, 1);\n continue;\n }\n if (activeModifiers.selected) {\n return date;\n }\n if (activeModifiers.today && !today) {\n today = date;\n }\n if (!firstFocusableDay) {\n firstFocusableDay = date;\n }\n date = addDays(date, 1);\n }\n if (today) {\n return today;\n }\n else {\n return firstFocusableDay;\n }\n}\n\nvar MAX_RETRY = 365;\n/** Return the next date to be focused. */\nfunction getNextFocus(focusedDay, options) {\n var moveBy = options.moveBy, direction = options.direction, context = options.context, modifiers = options.modifiers, _a = options.retry, retry = _a === void 0 ? { count: 0, lastFocused: focusedDay } : _a;\n var weekStartsOn = context.weekStartsOn, fromDate = context.fromDate, toDate = context.toDate, locale = context.locale;\n var moveFns = {\n day: addDays,\n week: addWeeks,\n month: addMonths,\n year: addYears,\n startOfWeek: function (date) {\n return context.ISOWeek\n ? startOfISOWeek(date)\n : startOfWeek(date, { locale: locale, weekStartsOn: weekStartsOn });\n },\n endOfWeek: function (date) {\n return context.ISOWeek\n ? endOfISOWeek(date)\n : endOfWeek(date, { locale: locale, weekStartsOn: weekStartsOn });\n }\n };\n var newFocusedDay = moveFns[moveBy](focusedDay, direction === 'after' ? 1 : -1);\n if (direction === 'before' && fromDate) {\n newFocusedDay = max([fromDate, newFocusedDay]);\n }\n else if (direction === 'after' && toDate) {\n newFocusedDay = min([toDate, newFocusedDay]);\n }\n var isFocusable = true;\n if (modifiers) {\n var activeModifiers = getActiveModifiers(newFocusedDay, modifiers);\n isFocusable = !activeModifiers.disabled && !activeModifiers.hidden;\n }\n if (isFocusable) {\n return newFocusedDay;\n }\n else {\n if (retry.count > MAX_RETRY) {\n return retry.lastFocused;\n }\n return getNextFocus(newFocusedDay, {\n moveBy: moveBy,\n direction: direction,\n context: context,\n modifiers: modifiers,\n retry: __assign(__assign({}, retry), { count: retry.count + 1 })\n });\n }\n}\n\n/**\n * The Focus context shares details about the focused day for the keyboard\n *\n * Access this context from the {@link useFocusContext} hook.\n */\nvar FocusContext = createContext(undefined);\n/** The provider for the {@link FocusContext}. */\nfunction FocusProvider(props) {\n var navigation = useNavigation();\n var modifiers = useModifiers();\n var _a = useState(), focusedDay = _a[0], setFocusedDay = _a[1];\n var _b = useState(), lastFocused = _b[0], setLastFocused = _b[1];\n var initialFocusTarget = getInitialFocusTarget(navigation.displayMonths, modifiers);\n // TODO: cleanup and test obscure code below\n var focusTarget = (focusedDay !== null && focusedDay !== void 0 ? focusedDay : (lastFocused && navigation.isDateDisplayed(lastFocused)))\n ? lastFocused\n : initialFocusTarget;\n var blur = function () {\n setLastFocused(focusedDay);\n setFocusedDay(undefined);\n };\n var focus = function (date) {\n setFocusedDay(date);\n };\n var context = useDayPicker();\n var moveFocus = function (moveBy, direction) {\n if (!focusedDay)\n return;\n var nextFocused = getNextFocus(focusedDay, {\n moveBy: moveBy,\n direction: direction,\n context: context,\n modifiers: modifiers\n });\n if (isSameDay(focusedDay, nextFocused))\n return undefined;\n navigation.goToDate(nextFocused, focusedDay);\n focus(nextFocused);\n };\n var value = {\n focusedDay: focusedDay,\n focusTarget: focusTarget,\n blur: blur,\n focus: focus,\n focusDayAfter: function () { return moveFocus('day', 'after'); },\n focusDayBefore: function () { return moveFocus('day', 'before'); },\n focusWeekAfter: function () { return moveFocus('week', 'after'); },\n focusWeekBefore: function () { return moveFocus('week', 'before'); },\n focusMonthBefore: function () { return moveFocus('month', 'before'); },\n focusMonthAfter: function () { return moveFocus('month', 'after'); },\n focusYearBefore: function () { return moveFocus('year', 'before'); },\n focusYearAfter: function () { return moveFocus('year', 'after'); },\n focusStartOfWeek: function () { return moveFocus('startOfWeek', 'before'); },\n focusEndOfWeek: function () { return moveFocus('endOfWeek', 'after'); }\n };\n return (jsxRuntimeExports.jsx(FocusContext.Provider, { value: value, children: props.children }));\n}\n/**\n * Hook to access the {@link FocusContextValue}. Use this hook to handle the\n * focus state of the elements.\n *\n * This hook is meant to be used inside internal or custom components.\n */\nfunction useFocusContext() {\n var context = useContext(FocusContext);\n if (!context) {\n throw new Error('useFocusContext must be used within a FocusProvider');\n }\n return context;\n}\n\n/**\n * Return the active modifiers for the specified day.\n *\n * This hook is meant to be used inside internal or custom components.\n *\n * @param day\n * @param displayMonth\n */\nfunction useActiveModifiers(day, \n/**\n * The month where the date is displayed. If not the same as `date`, the day\n * is an \"outside day\".\n */\ndisplayMonth) {\n var modifiers = useModifiers();\n var activeModifiers = getActiveModifiers(day, modifiers, displayMonth);\n return activeModifiers;\n}\n\n/**\n * The SelectSingle context shares details about the selected days when in\n * single selection mode.\n *\n * Access this context from the {@link useSelectSingle} hook.\n */\nvar SelectSingleContext = createContext(undefined);\n/** Provides the values for the {@link SelectSingleProvider}. */\nfunction SelectSingleProvider(props) {\n if (!isDayPickerSingle(props.initialProps)) {\n var emptyContextValue = {\n selected: undefined\n };\n return (jsxRuntimeExports.jsx(SelectSingleContext.Provider, { value: emptyContextValue, children: props.children }));\n }\n return (jsxRuntimeExports.jsx(SelectSingleProviderInternal, { initialProps: props.initialProps, children: props.children }));\n}\nfunction SelectSingleProviderInternal(_a) {\n var initialProps = _a.initialProps, children = _a.children;\n var onDayClick = function (day, activeModifiers, e) {\n var _a, _b, _c;\n (_a = initialProps.onDayClick) === null || _a === void 0 ? void 0 : _a.call(initialProps, day, activeModifiers, e);\n if (activeModifiers.selected && !initialProps.required) {\n (_b = initialProps.onSelect) === null || _b === void 0 ? void 0 : _b.call(initialProps, undefined, day, activeModifiers, e);\n return;\n }\n (_c = initialProps.onSelect) === null || _c === void 0 ? void 0 : _c.call(initialProps, day, day, activeModifiers, e);\n };\n var contextValue = {\n selected: initialProps.selected,\n onDayClick: onDayClick\n };\n return (jsxRuntimeExports.jsx(SelectSingleContext.Provider, { value: contextValue, children: children }));\n}\n/**\n * Hook to access the {@link SelectSingleContextValue}.\n *\n * This hook is meant to be used inside internal or custom components.\n */\nfunction useSelectSingle() {\n var context = useContext(SelectSingleContext);\n if (!context) {\n throw new Error('useSelectSingle must be used within a SelectSingleProvider');\n }\n return context;\n}\n\n/**\n * This hook returns details about the content to render in the day cell.\n *\n *\n * When a day cell is rendered in the table, DayPicker can either:\n *\n * - render nothing: when the day is outside the month or has matched the\n * \"hidden\" modifier.\n * - render a button when `onDayClick` or a selection mode is set.\n * - render a non-interactive element: when no selection mode is set, the day\n * cell shouldn’t respond to any interaction. DayPicker should render a `div`\n * or a `span`.\n *\n * ### Usage\n *\n * Use this hook to customize the behavior of the {@link Day} component. Create a\n * new `Day` component using this hook and pass it to the `components` prop.\n * The source of {@link Day} can be a good starting point.\n *\n */\nfunction useDayEventHandlers(date, activeModifiers) {\n var dayPicker = useDayPicker();\n var single = useSelectSingle();\n var multiple = useSelectMultiple();\n var range = useSelectRange();\n var _a = useFocusContext(), focusDayAfter = _a.focusDayAfter, focusDayBefore = _a.focusDayBefore, focusWeekAfter = _a.focusWeekAfter, focusWeekBefore = _a.focusWeekBefore, blur = _a.blur, focus = _a.focus, focusMonthBefore = _a.focusMonthBefore, focusMonthAfter = _a.focusMonthAfter, focusYearBefore = _a.focusYearBefore, focusYearAfter = _a.focusYearAfter, focusStartOfWeek = _a.focusStartOfWeek, focusEndOfWeek = _a.focusEndOfWeek;\n var onClick = function (e) {\n var _a, _b, _c, _d;\n if (isDayPickerSingle(dayPicker)) {\n (_a = single.onDayClick) === null || _a === void 0 ? void 0 : _a.call(single, date, activeModifiers, e);\n }\n else if (isDayPickerMultiple(dayPicker)) {\n (_b = multiple.onDayClick) === null || _b === void 0 ? void 0 : _b.call(multiple, date, activeModifiers, e);\n }\n else if (isDayPickerRange(dayPicker)) {\n (_c = range.onDayClick) === null || _c === void 0 ? void 0 : _c.call(range, date, activeModifiers, e);\n }\n else {\n (_d = dayPicker.onDayClick) === null || _d === void 0 ? void 0 : _d.call(dayPicker, date, activeModifiers, e);\n }\n };\n var onFocus = function (e) {\n var _a;\n focus(date);\n (_a = dayPicker.onDayFocus) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onBlur = function (e) {\n var _a;\n blur();\n (_a = dayPicker.onDayBlur) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onMouseEnter = function (e) {\n var _a;\n (_a = dayPicker.onDayMouseEnter) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onMouseLeave = function (e) {\n var _a;\n (_a = dayPicker.onDayMouseLeave) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onPointerEnter = function (e) {\n var _a;\n (_a = dayPicker.onDayPointerEnter) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onPointerLeave = function (e) {\n var _a;\n (_a = dayPicker.onDayPointerLeave) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onTouchCancel = function (e) {\n var _a;\n (_a = dayPicker.onDayTouchCancel) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onTouchEnd = function (e) {\n var _a;\n (_a = dayPicker.onDayTouchEnd) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onTouchMove = function (e) {\n var _a;\n (_a = dayPicker.onDayTouchMove) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onTouchStart = function (e) {\n var _a;\n (_a = dayPicker.onDayTouchStart) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onKeyUp = function (e) {\n var _a;\n (_a = dayPicker.onDayKeyUp) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var onKeyDown = function (e) {\n var _a;\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n dayPicker.dir === 'rtl' ? focusDayAfter() : focusDayBefore();\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n dayPicker.dir === 'rtl' ? focusDayBefore() : focusDayAfter();\n break;\n case 'ArrowDown':\n e.preventDefault();\n e.stopPropagation();\n focusWeekAfter();\n break;\n case 'ArrowUp':\n e.preventDefault();\n e.stopPropagation();\n focusWeekBefore();\n break;\n case 'PageUp':\n e.preventDefault();\n e.stopPropagation();\n e.shiftKey ? focusYearBefore() : focusMonthBefore();\n break;\n case 'PageDown':\n e.preventDefault();\n e.stopPropagation();\n e.shiftKey ? focusYearAfter() : focusMonthAfter();\n break;\n case 'Home':\n e.preventDefault();\n e.stopPropagation();\n focusStartOfWeek();\n break;\n case 'End':\n e.preventDefault();\n e.stopPropagation();\n focusEndOfWeek();\n break;\n }\n (_a = dayPicker.onDayKeyDown) === null || _a === void 0 ? void 0 : _a.call(dayPicker, date, activeModifiers, e);\n };\n var eventHandlers = {\n onClick: onClick,\n onFocus: onFocus,\n onBlur: onBlur,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onPointerEnter: onPointerEnter,\n onPointerLeave: onPointerLeave,\n onTouchCancel: onTouchCancel,\n onTouchEnd: onTouchEnd,\n onTouchMove: onTouchMove,\n onTouchStart: onTouchStart\n };\n return eventHandlers;\n}\n\n/**\n * Return the current selected days when DayPicker is in selection mode. Days\n * selected by the custom selection mode are not returned.\n *\n * This hook is meant to be used inside internal or custom components.\n *\n */\nfunction useSelectedDays() {\n var dayPicker = useDayPicker();\n var single = useSelectSingle();\n var multiple = useSelectMultiple();\n var range = useSelectRange();\n var selectedDays = isDayPickerSingle(dayPicker)\n ? single.selected\n : isDayPickerMultiple(dayPicker)\n ? multiple.selected\n : isDayPickerRange(dayPicker)\n ? range.selected\n : undefined;\n return selectedDays;\n}\n\nfunction isInternalModifier(modifier) {\n return Object.values(InternalModifier).includes(modifier);\n}\n/**\n * Return the class names for the Day element, according to the given active\n * modifiers.\n *\n * Custom class names are set via `modifiersClassNames` or `classNames`,\n * where the first have the precedence.\n */\nfunction getDayClassNames(dayPicker, activeModifiers) {\n var classNames = [dayPicker.classNames.day];\n Object.keys(activeModifiers).forEach(function (modifier) {\n var customClassName = dayPicker.modifiersClassNames[modifier];\n if (customClassName) {\n classNames.push(customClassName);\n }\n else if (isInternalModifier(modifier)) {\n var internalClassName = dayPicker.classNames[\"day_\".concat(modifier)];\n if (internalClassName) {\n classNames.push(internalClassName);\n }\n }\n });\n return classNames;\n}\n\n/** Return the style for the Day element, according to the given active modifiers. */\nfunction getDayStyle(dayPicker, activeModifiers) {\n var style = __assign({}, dayPicker.styles.day);\n Object.keys(activeModifiers).forEach(function (modifier) {\n var _a;\n style = __assign(__assign({}, style), (_a = dayPicker.modifiersStyles) === null || _a === void 0 ? void 0 : _a[modifier]);\n });\n return style;\n}\n\n/**\n * Return props and data used to render the {@link Day} component.\n *\n * Use this hook when creating a component to replace the built-in `Day`\n * component.\n */\nfunction useDayRender(\n/** The date to render. */\nday, \n/** The month where the date is displayed (if not the same as `date`, it means it is an \"outside\" day). */\ndisplayMonth, \n/** A ref to the button element that will be target of focus when rendered (if required). */\nbuttonRef) {\n var _a;\n var _b, _c;\n var dayPicker = useDayPicker();\n var focusContext = useFocusContext();\n var activeModifiers = useActiveModifiers(day, displayMonth);\n var eventHandlers = useDayEventHandlers(day, activeModifiers);\n var selectedDays = useSelectedDays();\n var isButton = Boolean(dayPicker.onDayClick || dayPicker.mode !== 'default');\n // Focus the button if the day is focused according to the focus context\n useEffect(function () {\n var _a;\n if (activeModifiers.outside)\n return;\n if (!focusContext.focusedDay)\n return;\n if (!isButton)\n return;\n if (isSameDay(focusContext.focusedDay, day)) {\n (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }, [\n focusContext.focusedDay,\n day,\n buttonRef,\n isButton,\n activeModifiers.outside\n ]);\n var className = getDayClassNames(dayPicker, activeModifiers).join(' ');\n var style = getDayStyle(dayPicker, activeModifiers);\n var isHidden = Boolean((activeModifiers.outside && !dayPicker.showOutsideDays) ||\n activeModifiers.hidden);\n var DayContentComponent = (_c = (_b = dayPicker.components) === null || _b === void 0 ? void 0 : _b.DayContent) !== null && _c !== void 0 ? _c : DayContent;\n var children = (jsxRuntimeExports.jsx(DayContentComponent, { date: day, displayMonth: displayMonth, activeModifiers: activeModifiers }));\n var divProps = {\n style: style,\n className: className,\n children: children,\n role: 'gridcell'\n };\n var isFocusTarget = focusContext.focusTarget &&\n isSameDay(focusContext.focusTarget, day) &&\n !activeModifiers.outside;\n var isFocused = focusContext.focusedDay && isSameDay(focusContext.focusedDay, day);\n var buttonProps = __assign(__assign(__assign({}, divProps), (_a = { disabled: activeModifiers.disabled, role: 'gridcell' }, _a['aria-selected'] = activeModifiers.selected, _a.tabIndex = isFocused || isFocusTarget ? 0 : -1, _a)), eventHandlers);\n var dayRender = {\n isButton: isButton,\n isHidden: isHidden,\n activeModifiers: activeModifiers,\n selectedDays: selectedDays,\n buttonProps: buttonProps,\n divProps: divProps\n };\n return dayRender;\n}\n\n/**\n * The content of a day cell – as a button or span element according to its\n * modifiers.\n */\nfunction Day(props) {\n var buttonRef = useRef(null);\n var dayRender = useDayRender(props.date, props.displayMonth, buttonRef);\n if (dayRender.isHidden) {\n return jsxRuntimeExports.jsx(\"div\", { role: \"gridcell\" });\n }\n if (!dayRender.isButton) {\n return jsxRuntimeExports.jsx(\"div\", __assign({}, dayRender.divProps));\n }\n return jsxRuntimeExports.jsx(Button, __assign({ name: \"day\", ref: buttonRef }, dayRender.buttonProps));\n}\n\n/**\n * Render the week number element. If `onWeekNumberClick` is passed to DayPicker, it\n * renders a button, otherwise a span element.\n */\nfunction WeekNumber(props) {\n var weekNumber = props.number, dates = props.dates;\n var _a = useDayPicker(), onWeekNumberClick = _a.onWeekNumberClick, styles = _a.styles, classNames = _a.classNames, locale = _a.locale, labelWeekNumber = _a.labels.labelWeekNumber, formatWeekNumber = _a.formatters.formatWeekNumber;\n var content = formatWeekNumber(Number(weekNumber), { locale: locale });\n if (!onWeekNumberClick) {\n return (jsxRuntimeExports.jsx(\"span\", { className: classNames.weeknumber, style: styles.weeknumber, children: content }));\n }\n var label = labelWeekNumber(Number(weekNumber), { locale: locale });\n var handleClick = function (e) {\n onWeekNumberClick(weekNumber, dates, e);\n };\n return (jsxRuntimeExports.jsx(Button, { name: \"week-number\", \"aria-label\": label, className: classNames.weeknumber, style: styles.weeknumber, onClick: handleClick, children: content }));\n}\n\n/** Render a row in the calendar, with the days and the week number. */\nfunction Row(props) {\n var _a, _b;\n var _c = useDayPicker(), styles = _c.styles, classNames = _c.classNames, showWeekNumber = _c.showWeekNumber, components = _c.components;\n var DayComponent = (_a = components === null || components === void 0 ? void 0 : components.Day) !== null && _a !== void 0 ? _a : Day;\n var WeeknumberComponent = (_b = components === null || components === void 0 ? void 0 : components.WeekNumber) !== null && _b !== void 0 ? _b : WeekNumber;\n var weekNumberCell;\n if (showWeekNumber) {\n weekNumberCell = (jsxRuntimeExports.jsx(\"td\", { className: classNames.cell, style: styles.cell, children: jsxRuntimeExports.jsx(WeeknumberComponent, { number: props.weekNumber, dates: props.dates }) }));\n }\n return (jsxRuntimeExports.jsxs(\"tr\", { className: classNames.row, style: styles.row, children: [weekNumberCell, props.dates.map(function (date) { return (jsxRuntimeExports.jsx(\"td\", { className: classNames.cell, style: styles.cell, role: \"presentation\", children: jsxRuntimeExports.jsx(DayComponent, { displayMonth: props.displayMonth, date: date }) }, getUnixTime(date))); })] }));\n}\n\n/** Return the weeks between two dates. */\nfunction daysToMonthWeeks(fromDate, toDate, options) {\n var toWeek = (options === null || options === void 0 ? void 0 : options.ISOWeek)\n ? endOfISOWeek(toDate)\n : endOfWeek(toDate, options);\n var fromWeek = (options === null || options === void 0 ? void 0 : options.ISOWeek)\n ? startOfISOWeek(fromDate)\n : startOfWeek(fromDate, options);\n var nOfDays = differenceInCalendarDays(toWeek, fromWeek);\n var days = [];\n for (var i = 0; i <= nOfDays; i++) {\n days.push(addDays(fromWeek, i));\n }\n var weeksInMonth = days.reduce(function (result, date) {\n var weekNumber = (options === null || options === void 0 ? void 0 : options.ISOWeek)\n ? getISOWeek(date)\n : getWeek(date, options);\n var existingWeek = result.find(function (value) { return value.weekNumber === weekNumber; });\n if (existingWeek) {\n existingWeek.dates.push(date);\n return result;\n }\n result.push({\n weekNumber: weekNumber,\n dates: [date]\n });\n return result;\n }, []);\n return weeksInMonth;\n}\n\n/**\n * Return the weeks belonging to the given month, adding the \"outside days\" to\n * the first and last week.\n */\nfunction getMonthWeeks(month, options) {\n var weeksInMonth = daysToMonthWeeks(startOfMonth(month), endOfMonth(month), options);\n if (options === null || options === void 0 ? void 0 : options.useFixedWeeks) {\n // Add extra weeks to the month, up to 6 weeks\n var nrOfMonthWeeks = getWeeksInMonth(month, options);\n if (nrOfMonthWeeks < 6) {\n var lastWeek = weeksInMonth[weeksInMonth.length - 1];\n var lastDate = lastWeek.dates[lastWeek.dates.length - 1];\n var toDate = addWeeks(lastDate, 6 - nrOfMonthWeeks);\n var extraWeeks = daysToMonthWeeks(addWeeks(lastDate, 1), toDate, options);\n weeksInMonth.push.apply(weeksInMonth, extraWeeks);\n }\n }\n return weeksInMonth;\n}\n\n/** Render the table with the calendar. */\nfunction Table(props) {\n var _a, _b, _c;\n var _d = useDayPicker(), locale = _d.locale, classNames = _d.classNames, styles = _d.styles, hideHead = _d.hideHead, fixedWeeks = _d.fixedWeeks, components = _d.components, weekStartsOn = _d.weekStartsOn, firstWeekContainsDate = _d.firstWeekContainsDate, ISOWeek = _d.ISOWeek;\n var weeks = getMonthWeeks(props.displayMonth, {\n useFixedWeeks: Boolean(fixedWeeks),\n ISOWeek: ISOWeek,\n locale: locale,\n weekStartsOn: weekStartsOn,\n firstWeekContainsDate: firstWeekContainsDate\n });\n var HeadComponent = (_a = components === null || components === void 0 ? void 0 : components.Head) !== null && _a !== void 0 ? _a : Head;\n var RowComponent = (_b = components === null || components === void 0 ? void 0 : components.Row) !== null && _b !== void 0 ? _b : Row;\n var FooterComponent = (_c = components === null || components === void 0 ? void 0 : components.Footer) !== null && _c !== void 0 ? _c : Footer;\n return (jsxRuntimeExports.jsxs(\"table\", { id: props.id, className: classNames.table, style: styles.table, role: \"grid\", \"aria-labelledby\": props['aria-labelledby'], children: [!hideHead && jsxRuntimeExports.jsx(HeadComponent, {}), jsxRuntimeExports.jsx(\"tbody\", { className: classNames.tbody, style: styles.tbody, children: weeks.map(function (week) { return (jsxRuntimeExports.jsx(RowComponent, { displayMonth: props.displayMonth, dates: week.dates, weekNumber: week.weekNumber }, week.weekNumber)); }) }), jsxRuntimeExports.jsx(FooterComponent, { displayMonth: props.displayMonth })] }));\n}\n\n/*\nThe MIT License (MIT)\n\nCopyright (c) 2018-present, React Training LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n/* eslint-disable prefer-const */\n/* eslint-disable @typescript-eslint/ban-ts-comment */\n/*\n * Welcome to @reach/auto-id!\n * Let's see if we can make sense of why this hook exists and its\n * implementation.\n *\n * Some background:\n * 1. Accessibility APIs rely heavily on element IDs\n * 2. Requiring developers to put IDs on every element in Reach UI is both\n * cumbersome and error-prone\n * 3. With a component model, we can generate IDs for them!\n *\n * Solution 1: Generate random IDs.\n *\n * This works great as long as you don't server render your app. When React (in\n * the client) tries to reuse the markup from the server, the IDs won't match\n * and React will then recreate the entire DOM tree.\n *\n * Solution 2: Increment an integer\n *\n * This sounds great. Since we're rendering the exact same tree on the server\n * and client, we can increment a counter and get a deterministic result between\n * client and server. Also, JS integers can go up to nine-quadrillion. I'm\n * pretty sure the tab will be closed before an app never needs\n * 10 quadrillion IDs!\n *\n * Problem solved, right?\n *\n * Ah, but there's a catch! React's concurrent rendering makes this approach\n * non-deterministic. While the client and server will end up with the same\n * elements in the end, depending on suspense boundaries (and possibly some user\n * input during the initial render) the incrementing integers won't always match\n * up.\n *\n * Solution 3: Don't use IDs at all on the server; patch after first render.\n *\n * What we've done here is solution 2 with some tricks. With this approach, the\n * ID returned is an empty string on the first render. This way the server and\n * client have the same markup no matter how wild the concurrent rendering may\n * have gotten.\n *\n * After the render, we patch up the components with an incremented ID. This\n * causes a double render on any components with `useId`. Shouldn't be a problem\n * since the components using this hook should be small, and we're only updating\n * the ID attribute on the DOM, nothing big is happening.\n *\n * It doesn't have to be an incremented number, though--we could do generate\n * random strings instead, but incrementing a number is probably the cheapest\n * thing we can do.\n *\n * Additionally, we only do this patchup on the very first client render ever.\n * Any calls to `useId` that happen dynamically in the client will be\n * populated immediately with a value. So, we only get the double render after\n * server hydration and never again, SO BACK OFF ALRIGHT?\n */\nfunction canUseDOM() {\n return !!(typeof window !== 'undefined' &&\n window.document &&\n window.document.createElement);\n}\n/**\n * React currently throws a warning when using useLayoutEffect on the server. To\n * get around it, we can conditionally useEffect on the server (no-op) and\n * useLayoutEffect in the browser. We occasionally need useLayoutEffect to\n * ensure we don't get a render flash for certain operations, but we may also\n * need affected components to render on the server. One example is when setting\n * a component's descendants to retrieve their index values.\n *\n * Important to note that using this hook as an escape hatch will break the\n * eslint dependency warnings unless you rename the import to `useLayoutEffect`.\n * Use sparingly only when the effect won't effect the rendered HTML to avoid\n * any server/client mismatch.\n *\n * If a useLayoutEffect is needed and the result would create a mismatch, it's\n * likely that the component in question shouldn't be rendered on the server at\n * all, so a better approach would be to lazily render those in a parent\n * component after client-side hydration.\n *\n * https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * https://github.com/reduxjs/react-redux/blob/master/src/utils/useIsomorphicLayoutEffect.js\n *\n * @param effect\n * @param deps\n */\nvar useIsomorphicLayoutEffect = canUseDOM() ? useLayoutEffect : useEffect;\nvar serverHandoffComplete = false;\nvar id = 0;\nfunction genId() {\n return \"react-day-picker-\".concat(++id);\n}\nfunction useId(providedId) {\n // TODO: Remove error flag when updating internal deps to React 18. None of\n // our tricks will play well with concurrent rendering anyway.\n var _a;\n // If this instance isn't part of the initial render, we don't have to do the\n // double render/patch-up dance. We can just generate the ID and return it.\n var initialId = providedId !== null && providedId !== void 0 ? providedId : (serverHandoffComplete ? genId() : null);\n var _b = useState(initialId), id = _b[0], setId = _b[1];\n useIsomorphicLayoutEffect(function () {\n if (id === null) {\n // Patch the ID after render. We do this in `useLayoutEffect` to avoid any\n // rendering flicker, though it'll make the first render slower (unlikely\n // to matter, but you're welcome to measure your app and let us know if\n // it's a problem).\n setId(genId());\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n useEffect(function () {\n if (serverHandoffComplete === false) {\n // Flag all future uses of `useId` to skip the update dance. This is in\n // `useEffect` because it goes after `useLayoutEffect`, ensuring we don't\n // accidentally bail out of the patch-up dance prematurely.\n serverHandoffComplete = true;\n }\n }, []);\n return (_a = providedId !== null && providedId !== void 0 ? providedId : id) !== null && _a !== void 0 ? _a : undefined;\n}\n\n/** Render a month. */\nfunction Month(props) {\n var _a;\n var _b;\n var dayPicker = useDayPicker();\n var dir = dayPicker.dir, classNames = dayPicker.classNames, styles = dayPicker.styles, components = dayPicker.components;\n var displayMonths = useNavigation().displayMonths;\n var captionId = useId(dayPicker.id ? \"\".concat(dayPicker.id, \"-\").concat(props.displayIndex) : undefined);\n var tableId = dayPicker.id\n ? \"\".concat(dayPicker.id, \"-grid-\").concat(props.displayIndex)\n : undefined;\n var className = [classNames.month];\n var style = styles.month;\n var isStart = props.displayIndex === 0;\n var isEnd = props.displayIndex === displayMonths.length - 1;\n var isCenter = !isStart && !isEnd;\n if (dir === 'rtl') {\n _a = [isStart, isEnd], isEnd = _a[0], isStart = _a[1];\n }\n if (isStart) {\n className.push(classNames.caption_start);\n style = __assign(__assign({}, style), styles.caption_start);\n }\n if (isEnd) {\n className.push(classNames.caption_end);\n style = __assign(__assign({}, style), styles.caption_end);\n }\n if (isCenter) {\n className.push(classNames.caption_between);\n style = __assign(__assign({}, style), styles.caption_between);\n }\n var CaptionComponent = (_b = components === null || components === void 0 ? void 0 : components.Caption) !== null && _b !== void 0 ? _b : Caption;\n return (jsxRuntimeExports.jsxs(\"div\", { className: className.join(' '), style: style, children: [jsxRuntimeExports.jsx(CaptionComponent, { id: captionId, displayMonth: props.displayMonth, displayIndex: props.displayIndex }), jsxRuntimeExports.jsx(Table, { id: tableId, \"aria-labelledby\": captionId, displayMonth: props.displayMonth })] }, props.displayIndex));\n}\n\n/**\n * Render the wrapper for the month grids.\n */\nfunction Months(props) {\n var _a = useDayPicker(), classNames = _a.classNames, styles = _a.styles;\n return (jsxRuntimeExports.jsx(\"div\", { className: classNames.months, style: styles.months, children: props.children }));\n}\n\n/** Render the container with the months according to the number of months to display. */\nfunction Root(_a) {\n var _b, _c;\n var initialProps = _a.initialProps;\n var dayPicker = useDayPicker();\n var focusContext = useFocusContext();\n var navigation = useNavigation();\n var _d = useState(false), hasInitialFocus = _d[0], setHasInitialFocus = _d[1];\n // Focus the focus target when initialFocus is passed in\n useEffect(function () {\n if (!dayPicker.initialFocus)\n return;\n if (!focusContext.focusTarget)\n return;\n if (hasInitialFocus)\n return;\n focusContext.focus(focusContext.focusTarget);\n setHasInitialFocus(true);\n }, [\n dayPicker.initialFocus,\n hasInitialFocus,\n focusContext.focus,\n focusContext.focusTarget,\n focusContext\n ]);\n // Apply classnames according to props\n var classNames = [dayPicker.classNames.root, dayPicker.className];\n if (dayPicker.numberOfMonths > 1) {\n classNames.push(dayPicker.classNames.multiple_months);\n }\n if (dayPicker.showWeekNumber) {\n classNames.push(dayPicker.classNames.with_weeknumber);\n }\n var style = __assign(__assign({}, dayPicker.styles.root), dayPicker.style);\n var dataAttributes = Object.keys(initialProps)\n .filter(function (key) { return key.startsWith('data-'); })\n .reduce(function (attrs, key) {\n var _a;\n return __assign(__assign({}, attrs), (_a = {}, _a[key] = initialProps[key], _a));\n }, {});\n var MonthsComponent = (_c = (_b = initialProps.components) === null || _b === void 0 ? void 0 : _b.Months) !== null && _c !== void 0 ? _c : Months;\n return (jsxRuntimeExports.jsx(\"div\", __assign({ className: classNames.join(' '), style: style, dir: dayPicker.dir, id: dayPicker.id, nonce: initialProps.nonce, title: initialProps.title, lang: initialProps.lang }, dataAttributes, { children: jsxRuntimeExports.jsx(MonthsComponent, { children: navigation.displayMonths.map(function (month, i) { return (jsxRuntimeExports.jsx(Month, { displayIndex: i, displayMonth: month }, i)); }) }) })));\n}\n\n/** Provide the value for all the context providers. */\nfunction RootProvider(props) {\n var children = props.children, initialProps = __rest(props, [\"children\"]);\n return (jsxRuntimeExports.jsx(DayPickerProvider, { initialProps: initialProps, children: jsxRuntimeExports.jsx(NavigationProvider, { children: jsxRuntimeExports.jsx(SelectSingleProvider, { initialProps: initialProps, children: jsxRuntimeExports.jsx(SelectMultipleProvider, { initialProps: initialProps, children: jsxRuntimeExports.jsx(SelectRangeProvider, { initialProps: initialProps, children: jsxRuntimeExports.jsx(ModifiersProvider, { children: jsxRuntimeExports.jsx(FocusProvider, { children: children }) }) }) }) }) }) }));\n}\n\n/**\n * DayPicker render a date picker component to let users pick dates from a\n * calendar. See http://react-day-picker.js.org for updated documentation and\n * examples.\n *\n * ### Customization\n *\n * DayPicker offers different customization props. For example,\n *\n * - show multiple months using `numberOfMonths`\n * - display a dropdown to navigate the months via `captionLayout`\n * - display the week numbers with `showWeekNumbers`\n * - disable or hide days with `disabled` or `hidden`\n *\n * ### Controlling the months\n *\n * Change the initially displayed month using the `defaultMonth` prop. The\n * displayed months are controlled by DayPicker and stored in its internal\n * state. To control the months yourself, use `month` instead of `defaultMonth`\n * and use the `onMonthChange` event to set it.\n *\n * To limit the months the user can navigate to, use\n * `fromDate`/`fromMonth`/`fromYear` or `toDate`/`toMonth`/`toYear`.\n *\n * ### Selection modes\n *\n * DayPicker supports different selection mode that can be toggled using the\n * `mode` prop:\n *\n * - `mode=\"single\"`: only one day can be selected. Use `required` to make the\n * selection required. Use the `onSelect` event handler to get the selected\n * days.\n * - `mode=\"multiple\"`: users can select one or more days. Limit the amount of\n * days that can be selected with the `min` or the `max` props.\n * - `mode=\"range\"`: users can select a range of days. Limit the amount of days\n * in the range with the `min` or the `max` props.\n * - `mode=\"default\"` (default): the built-in selections are disabled. Implement\n * your own selection mode with `onDayClick`.\n *\n * The selection modes should cover the most common use cases. In case you\n * need a more refined way of selecting days, use `mode=\"default\"`. Use the\n * `selected` props and add the day event handlers to add/remove days from the\n * selection.\n *\n * ### Modifiers\n *\n * A _modifier_ represents different styles or states for the days displayed in\n * the calendar (like \"selected\" or \"disabled\"). Define custom modifiers using\n * the `modifiers` prop.\n *\n * ### Formatters and custom component\n *\n * You can customize how the content is displayed in the date picker by using\n * either the formatters or replacing the internal components.\n *\n * For the most common cases you want to use the `formatters` prop to change how\n * the content is formatted in the calendar. Use the `components` prop to\n * replace the internal components, like the navigation icons.\n *\n * ### Styling\n *\n * DayPicker comes with a default, basic style in `react-day-picker/style` – use\n * it as template for your own style.\n *\n * If you are using CSS modules, pass the imported styles object the\n * `classNames` props.\n *\n * You can also style the elements via inline styles using the `styles` prop.\n *\n * ### Form fields\n *\n * If you need to bind the date picker to a form field, you can use the\n * `useInput` hooks for a basic behavior. See the `useInput` source as an\n * example to bind the date picker with form fields.\n *\n * ### Localization\n *\n * To localize DayPicker, import the locale from `date-fns` package and use the\n * `locale` prop.\n *\n * For example, to use Spanish locale:\n *\n * ```\n * import { es } from 'date-fns/locale';\n * \n * ```\n */\nfunction DayPicker(props) {\n return (jsxRuntimeExports.jsx(RootProvider, __assign({}, props, { children: jsxRuntimeExports.jsx(Root, { initialProps: props }) })));\n}\n\n/** @private */\nfunction isValidDate(day) {\n return !isNaN(day.getTime());\n}\n\n/** Return props and setters for binding an input field to DayPicker. */\nfunction useInput(options) {\n if (options === void 0) { options = {}; }\n var _a = options.locale, locale = _a === void 0 ? enUS : _a, required = options.required, _b = options.format, format$1 = _b === void 0 ? 'PP' : _b, defaultSelected = options.defaultSelected, _c = options.today, today = _c === void 0 ? new Date() : _c;\n var _d = parseFromToProps(options), fromDate = _d.fromDate, toDate = _d.toDate;\n // Shortcut to the DateFns functions\n var parseValue = function (value) { return parse(value, format$1, today, { locale: locale }); };\n // Initialize states\n var _e = useState(defaultSelected !== null && defaultSelected !== void 0 ? defaultSelected : today), month = _e[0], setMonth = _e[1];\n var _f = useState(defaultSelected), selectedDay = _f[0], setSelectedDay = _f[1];\n var defaultInputValue = defaultSelected\n ? format(defaultSelected, format$1, { locale: locale })\n : '';\n var _g = useState(defaultInputValue), inputValue = _g[0], setInputValue = _g[1];\n var reset = function () {\n setSelectedDay(defaultSelected);\n setMonth(defaultSelected !== null && defaultSelected !== void 0 ? defaultSelected : today);\n setInputValue(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : '');\n };\n var setSelected = function (date) {\n setSelectedDay(date);\n setMonth(date !== null && date !== void 0 ? date : today);\n setInputValue(date ? format(date, format$1, { locale: locale }) : '');\n };\n var handleDayClick = function (day, _a) {\n var selected = _a.selected;\n if (!required && selected) {\n setSelectedDay(undefined);\n setInputValue('');\n return;\n }\n setSelectedDay(day);\n setInputValue(day ? format(day, format$1, { locale: locale }) : '');\n };\n var handleMonthChange = function (month) {\n setMonth(month);\n };\n // When changing the input field, save its value in state and check if the\n // string is a valid date. If it is a valid day, set it as selected and update\n // the calendar’s month.\n var handleChange = function (e) {\n setInputValue(e.target.value);\n var day = parseValue(e.target.value);\n var isBefore = fromDate && differenceInCalendarDays(fromDate, day) > 0;\n var isAfter = toDate && differenceInCalendarDays(day, toDate) > 0;\n if (!isValidDate(day) || isBefore || isAfter) {\n setSelectedDay(undefined);\n return;\n }\n setSelectedDay(day);\n setMonth(day);\n };\n // Special case for _required_ fields: on blur, if the value of the input is not\n // a valid date, reset the calendar and the input value.\n var handleBlur = function (e) {\n var day = parseValue(e.target.value);\n if (!isValidDate(day)) {\n reset();\n }\n };\n // When focusing, make sure DayPicker visualizes the month of the date in the\n // input field.\n var handleFocus = function (e) {\n if (!e.target.value) {\n reset();\n return;\n }\n var day = parseValue(e.target.value);\n if (isValidDate(day)) {\n setMonth(day);\n }\n };\n var dayPickerProps = {\n month: month,\n onDayClick: handleDayClick,\n onMonthChange: handleMonthChange,\n selected: selectedDay,\n locale: locale,\n fromDate: fromDate,\n toDate: toDate,\n today: today\n };\n var inputProps = {\n onBlur: handleBlur,\n onChange: handleChange,\n onFocus: handleFocus,\n value: inputValue,\n placeholder: format(new Date(), format$1, { locale: locale })\n };\n return { dayPickerProps: dayPickerProps, inputProps: inputProps, reset: reset, setSelected: setSelected };\n}\n\n/** Returns true when the props are of type {@link DayPickerDefaultProps}. */\nfunction isDayPickerDefault(props) {\n return props.mode === undefined || props.mode === 'default';\n}\n\nexport { Button, Caption, CaptionDropdowns, CaptionLabel, CaptionNavigation, Day, DayContent, DayPicker, DayPickerContext, DayPickerProvider, Dropdown, FocusContext, FocusProvider, Footer, Head, HeadRow, IconDropdown, IconLeft, IconRight, InternalModifier, Months, NavigationContext, NavigationProvider, RootProvider, Row, SelectMultipleContext, SelectMultipleProvider, SelectMultipleProviderInternal, SelectRangeContext, SelectRangeProvider, SelectRangeProviderInternal, SelectSingleContext, SelectSingleProvider, SelectSingleProviderInternal, WeekNumber, addToRange, isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDayOfWeekType, isDayPickerDefault, isDayPickerMultiple, isDayPickerRange, isDayPickerSingle, isMatch, useActiveModifiers, useDayPicker, useDayRender, useFocusContext, useInput, useNavigation, useSelectMultiple, useSelectRange, useSelectSingle };\n//# sourceMappingURL=index.esm.js.map\n","import { createContext, useContext } from \"react\";\nexport const DateContext = createContext(null);\nexport const useDateInputContext = () => {\n const context = useContext(DateContext);\n if (!context) {\n console.warn(\"useDateInputContext must be used with DateContext\");\n }\n return context;\n};\n//# sourceMappingURL=useDateInputContext.js.map","import { isThisMonth, setYear } from \"date-fns\";\nexport const dateIsInCurrentMonth = (date, dateToCompare) => {\n return isThisMonth(setYear(date, Number(dateToCompare.getFullYear())));\n};\n/** @private */\nexport function isValidDate(day) {\n return !!(day && !Number.isNaN(day.getTime()) && day.getFullYear() > 999);\n}\n//# sourceMappingURL=check-dates.js.map","import { isBefore, parse, sub } from \"date-fns\";\nimport { isValidDate } from \"./check-dates.js\";\nexport const INPUT_DATE_STRING_FORMAT_DATE = \"dd.MM.yyyy\";\nexport const INPUT_DATE_STRING_FORMAT_MONTH = \"MMMM yyyy\";\nconst ALLOWED_INPUT_FORMATS_DATE = [\n INPUT_DATE_STRING_FORMAT_DATE,\n \"ddMMyyyy\",\n \"dd/MM/yyyy\",\n \"dd-MM-yyyy\",\n];\nconst ALLOWED_INPUT_FORMATS_MONTH = [\n \"M/yyyy\",\n \"MM/yyyy\",\n \"M-yyyy\",\n \"MM-yyyy\",\n \"MM.yyyy\",\n INPUT_DATE_STRING_FORMAT_MONTH,\n ...ALLOWED_INPUT_FORMATS_DATE,\n];\nexport const parseDate = (date, today, locale, type, allowTwoDigitYear) => {\n let parsed;\n const ALLOWED_FORMATS = type === \"date\" ? ALLOWED_INPUT_FORMATS_DATE : ALLOWED_INPUT_FORMATS_MONTH;\n if (allowTwoDigitYear) {\n for (const format of ALLOWED_FORMATS) {\n parsed = parse(date, format, today, { locale });\n if (isValidDate(parsed) &&\n !isTwoDigitYear(date, today, locale, ALLOWED_FORMATS)) {\n return parsed;\n }\n }\n for (const format of [\n ...ALLOWED_FORMATS.map((x) => x.replace(\"yyyy\", \"yy\")),\n ]) {\n parsed = parse(date, format, today, { locale });\n if (isValidDate(parsed) &&\n isTwoDigitYear(date, today, locale, ALLOWED_FORMATS)) {\n const convertedDate = assignCenturyToDate(date, format, today, locale);\n if (isValidDate(new Date(convertedDate))) {\n return new Date(convertedDate);\n }\n return new Date(\"Invalid date\");\n }\n }\n return new Date(\"Invalid date\");\n }\n for (const format of ALLOWED_FORMATS) {\n parsed = parse(date, format, today, { locale });\n if (isValidDate(parsed) &&\n !isTwoDigitYear(date, today, locale, ALLOWED_FORMATS)) {\n return parsed;\n }\n }\n return new Date(\"Invalid date\");\n};\nfunction isTwoDigitYear(dateString, today, locale, formats) {\n let parsed;\n const newFormat = formats.map((x) => x.replace(\"yyyy\", \"yy\"));\n for (const format of newFormat) {\n parsed = parse(dateString, format, today, { locale });\n if (isValidDate(parsed)) {\n return true;\n }\n }\n return false;\n}\nfunction assignCenturyToDate(dateStr, format, today, locale) {\n const date20Century = parse(appendCenturyToTwoYearDigitDateString(dateStr, \"19\"), format.replace(\"yy\", \"yyyy\"), today, { locale });\n const date21Century = parse(appendCenturyToTwoYearDigitDateString(dateStr, \"20\"), format.replace(\"yy\", \"yyyy\"), today, { locale });\n if (isValidDate(date20Century) && isValidDate(date21Century)) {\n return isBefore(date20Century, sub(new Date(), {\n years: 80,\n }))\n ? date21Century\n : date20Century;\n }\n return new Date(\"Invalid date\");\n}\nfunction appendCenturyToTwoYearDigitDateString(dateString, century) {\n const twoDigitYear = dateString.slice(-2);\n return `${dateString.slice(0, dateString.length - 2)}${century}${twoDigitYear}`;\n}\n//# sourceMappingURL=parse-date.js.map","import { setYear, startOfMonth } from \"date-fns\";\nimport React, { createContext, useContext, useState } from \"react\";\nimport { useDayPicker } from \"react-day-picker\";\nimport { getInitialYear } from \"../utils/index.js\";\nexport const SharedMonthContext = createContext({\n hasDropdown: false,\n year: new Date(),\n toYear: () => null,\n disabled: [],\n onSelect: () => null,\n});\nexport const useSharedMonthContext = () => useContext(SharedMonthContext);\nexport const SharedMonthProvider = ({ children, dropdownCaption, disabled, selected, onSelect, year: _year, onYearChange, }) => {\n const context = useDayPicker();\n const [year, toYear] = useState(getInitialYear(context));\n const hasDropdown = !!(dropdownCaption && context.fromDate && context.toDate);\n if (context.fromDate &&\n context.toDate &&\n (context === null || context === void 0 ? void 0 : context.fromDate) >= (context === null || context === void 0 ? void 0 : context.toDate)) {\n console.warn(\"fromDate needs to be before toDate - MonthPicker\");\n }\n return (React.createElement(SharedMonthContext.Provider, { value: {\n year: _year !== null && _year !== void 0 ? _year : year,\n toYear: (y) => {\n toYear(y);\n onYearChange === null || onYearChange === void 0 ? void 0 : onYearChange(y);\n },\n hasDropdown,\n disabled,\n selected,\n onSelect: (v) => v\n ? onSelect(setYear(startOfMonth(v), (_year !== null && _year !== void 0 ? _year : year).getFullYear()))\n : onSelect(undefined),\n } }, children));\n};\n//# sourceMappingURL=useSharedMonthContext.js.map","import React from \"react\";\nimport { PadlockLockedFillIcon } from \"@navikt/aksel-icons\";\nexport const ReadOnlyIcon = ({ readOnly, nativeReadOnly = true, }) => {\n if (readOnly) {\n return (React.createElement(PadlockLockedFillIcon, Object.assign({}, (nativeReadOnly ? { \"aria-hidden\": true } : { title: \"readonly\" }), { className: \"navds-form-field__readonly-icon\" })));\n }\n return null;\n};\n//# sourceMappingURL=ReadOnlyIcon.js.map","import { createContext } from \"react\";\nexport const FieldsetContext = createContext(null);\n//# sourceMappingURL=context.js.map","import cl from \"clsx\";\nimport { useContext } from \"react\";\nimport { useId } from \"../util/hooks/index.js\";\nimport { FieldsetContext } from \"./fieldset/context.js\";\n/**\n * Handles props and their state for various form-fields in context with Fieldset\n */\nexport const useFormField = (props, prefix) => {\n var _a, _b, _c;\n const { size, error, errorId: propErrorId } = props;\n const fieldset = useContext(FieldsetContext);\n const genId = useId();\n const id = (_a = props.id) !== null && _a !== void 0 ? _a : `${prefix}-${genId}`;\n const errorId = propErrorId !== null && propErrorId !== void 0 ? propErrorId : `${prefix}-error-${genId}`;\n const inputDescriptionId = `${prefix}-description-${genId}`;\n const disabled = (fieldset === null || fieldset === void 0 ? void 0 : fieldset.disabled) || props.disabled;\n const readOnly = (((fieldset === null || fieldset === void 0 ? void 0 : fieldset.readOnly) || props.readOnly) && !disabled) || undefined;\n const hasError = !disabled && !readOnly && !!(error || (fieldset === null || fieldset === void 0 ? void 0 : fieldset.error));\n const showErrorMsg = !disabled && !readOnly && !!error && typeof error !== \"boolean\";\n const ariaInvalid = Object.assign({}, (hasError ? { \"aria-invalid\": true } : {}));\n if ((props === null || props === void 0 ? void 0 : props.required) && process.env.NODE_ENV !== \"production\") {\n console.warn(\"Aksel: Use of 'required' in form-elements is heavily discuouraged. Docs about why here:\");\n console.warn(\"https://aksel.nav.no/god-praksis/artikler/obligatoriske-og-valgfrie-skjemafelter#h3bfe00453471\");\n }\n return {\n showErrorMsg,\n hasError,\n errorId,\n inputDescriptionId,\n size: (_b = size !== null && size !== void 0 ? size : fieldset === null || fieldset === void 0 ? void 0 : fieldset.size) !== null && _b !== void 0 ? _b : \"medium\",\n readOnly,\n inputProps: Object.assign(Object.assign({ id }, ariaInvalid), { \"aria-describedby\": cl(props[\"aria-describedby\"], {\n [inputDescriptionId]: !!(props === null || props === void 0 ? void 0 : props.description) && typeof (props === null || props === void 0 ? void 0 : props.description) === \"string\",\n [errorId]: showErrorMsg,\n [(_c = fieldset === null || fieldset === void 0 ? void 0 : fieldset.errorId) !== null && _c !== void 0 ? _c : \"\"]: hasError && !!(fieldset === null || fieldset === void 0 ? void 0 : fieldset.error),\n }) || undefined, disabled }),\n };\n};\n//# sourceMappingURL=useFormField.js.map","function getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const webkit = isWebKit();\n const css = getComputedStyle(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = getParentNode(currentNode);\n }\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isWebKit };\n","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n x,\n y,\n width: rects.floating.width,\n height: rects.floating.height\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$map$so;\n const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: 0,\n crossAxis: 0,\n alignmentAxis: null,\n ...rawValue\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = ['top', 'left'].includes(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n const maximumClippingWidth = width - overflow.left - overflow.right;\n const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if (isYAxis) {\n availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;\n } else {\n availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","function getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n // Browsers without `ShadowRoot` support.\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n const webkit = isWebKit();\n const css = getComputedStyle(element);\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isWebKit };\n","import { rectToClientRect, detectOverflow as detectOverflow$1, offset as offset$1, autoPlacement as autoPlacement$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, arrow as arrow$1, inline as inline$1, limitShift as limitShift$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle, isHTMLElement, isElement, getWindow, isWebKit, getDocumentElement, getNodeName, isOverflowElement, getNodeScroll, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = currentWin.frameElement;\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = currentWin.frameElement;\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction isTopLayer(element) {\n return topLayerSelectors.some(selector => {\n try {\n return element.matches(selector);\n } catch (e) {\n return false;\n }\n });\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\nfunction getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n ...clippingAncestor,\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n const x = rect.left + scroll.scrollLeft - offsets.x;\n const y = rect.top + scroll.scrollTop - offsets.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n return element.offsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const {\n left,\n top,\n width,\n height\n } = element.getBoundingClientRect();\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle