@swisspost/internet-header 10.1.0 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-E6EPRPpB.js → package-Bk3UBVSc.js} +3 -2
- package/dist/cjs/{package-MGiZpKVI.js → package-uiAqYqcY.js} +1 -1
- package/dist/cjs/post-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/post-autocomplete.cjs.entry.js +11 -2
- package/dist/cjs/post-avatar.cjs.entry.js +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/post-banner.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/post-closebutton.cjs.entry.js +1 -1
- package/dist/cjs/post-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/post-footer.cjs.entry.js +31 -13
- package/dist/cjs/post-header.cjs.entry.js +13 -4
- package/dist/cjs/post-icon.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/post-language-menu.cjs.entry.js +1 -1
- package/dist/cjs/post-linkarea.cjs.entry.js +1 -1
- package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox.cjs.entry.js +3 -3
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/post-mainnavigation.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown.cjs.entry.js +8 -8
- package/dist/cjs/post-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +76 -26
- package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +87 -3
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/collection/components/internal/Link.js +1 -1
- package/dist/collection/components/post-internet-header/post-internet-header.js +26 -3
- package/dist/collection/data/store.js +1 -0
- package/dist/collection/services/alternate-link.service.js +61 -0
- package/dist/components/package.js +1 -1
- package/dist/components/package2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-footer2.js +1 -1
- package/dist/components/post-header2.js +1 -1
- package/dist/components/post-language-menu-item2.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-mainnavigation2.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/swisspost-internet-header.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-jK9tFtoG.js → package-D9jUbrFT.js} +1 -1
- package/dist/esm/{package-ClQfdhMK.js → package-Dheuk3S-.js} +3 -2
- package/dist/esm/post-accordion_4.entry.js +1 -1
- package/dist/esm/post-autocomplete.entry.js +11 -2
- package/dist/esm/post-avatar.entry.js +1 -1
- package/dist/esm/post-back-to-top.entry.js +1 -1
- package/dist/esm/post-banner.entry.js +1 -1
- package/dist/esm/post-breadcrumb-item.entry.js +2 -2
- package/dist/esm/post-breadcrumbs.entry.js +1 -1
- package/dist/esm/post-closebutton.entry.js +1 -1
- package/dist/esm/post-date-picker.entry.js +1 -1
- package/dist/esm/post-footer.entry.js +31 -13
- package/dist/esm/post-header.entry.js +13 -4
- package/dist/esm/post-icon.entry.js +1 -1
- package/dist/esm/post-language-menu-item.entry.js +2 -2
- package/dist/esm/post-language-menu.entry.js +1 -1
- package/dist/esm/post-linkarea.entry.js +1 -1
- package/dist/esm/post-listbox-option.entry.js +3 -3
- package/dist/esm/post-listbox.entry.js +3 -3
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/post-mainnavigation.entry.js +2 -2
- package/dist/esm/post-megadropdown-trigger.entry.js +2 -2
- package/dist/esm/post-megadropdown.entry.js +8 -8
- package/dist/esm/post-menu-item.entry.js +1 -1
- package/dist/esm/post-menu_2.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +76 -26
- package/dist/esm/post-popover-trigger.entry.js +2 -2
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/post-progressbar.entry.js +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
- package/dist/esm/post-side-navigation.entry.js +2 -2
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +2 -2
- package/dist/esm/post-tab-item.entry.js +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/post-togglebutton.entry.js +2 -2
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/esm/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm/swisspost-internet-header.entry.js +87 -3
- package/dist/esm/swisspost-internet-header.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/package-D9jUbrFT.js +1 -0
- package/dist/esm-es5/{package-ClQfdhMK.js → package-Dheuk3S-.js} +1 -1
- package/dist/esm-es5/post-accordion_4.entry.js +1 -1
- package/dist/esm-es5/post-autocomplete.entry.js +1 -1
- package/dist/esm-es5/post-avatar.entry.js +1 -1
- package/dist/esm-es5/post-back-to-top.entry.js +1 -1
- package/dist/esm-es5/post-banner.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
- package/dist/esm-es5/post-closebutton.entry.js +1 -1
- package/dist/esm-es5/post-date-picker.entry.js +1 -1
- package/dist/esm-es5/post-footer.entry.js +1 -1
- package/dist/esm-es5/post-header.entry.js +1 -1
- package/dist/esm-es5/post-icon.entry.js +1 -1
- package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-language-menu.entry.js +1 -1
- package/dist/esm-es5/post-linkarea.entry.js +1 -1
- package/dist/esm-es5/post-listbox-option.entry.js +1 -1
- package/dist/esm-es5/post-listbox.entry.js +1 -1
- package/dist/esm-es5/post-logo.entry.js +1 -1
- package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown.entry.js +1 -1
- package/dist/esm-es5/post-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-menu_2.entry.js +1 -1
- package/dist/esm-es5/post-number-input.entry.js +1 -1
- package/dist/esm-es5/post-pagination.entry.js +1 -1
- package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
- package/dist/esm-es5/post-popover.entry.js +1 -1
- package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
- package/dist/esm-es5/post-progressbar.entry.js +1 -1
- package/dist/esm-es5/post-rating.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation.entry.js +1 -1
- package/dist/esm-es5/post-stepper-item.entry.js +1 -1
- package/dist/esm-es5/post-stepper.entry.js +1 -1
- package/dist/esm-es5/post-tab-item.entry.js +1 -1
- package/dist/esm-es5/post-tab-panel.entry.js +1 -1
- package/dist/esm-es5/post-tabs.entry.js +1 -1
- package/dist/esm-es5/post-togglebutton.entry.js +1 -1
- package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
- package/dist/esm-es5/post-tooltip.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.js +1 -1
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-ef183dab.entry.js → p-043b0295.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0708d2ae.entry.js +1 -0
- package/dist/swisspost-internet-header/p-091d408b.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fe6a6a22.entry.js → p-0a1276dc.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ec3c17b7.system.entry.js → p-0a3325bd.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0e3b3739.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-1b9a5275.system.entry.js → p-0fdc3e18.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a5705a24.entry.js → p-10dbaad3.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-13bae547.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-67889b8a.system.entry.js → p-145e9419.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-45af06c6.entry.js → p-15564bd8.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d2599e7b.entry.js → p-1ad88e06.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4107bc25.system.entry.js → p-2069109d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-45d5a353.entry.js → p-20ded6e8.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-23fa3342.entry.js → p-26e94f0f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d42d1570.entry.js → p-26f99143.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-27b2a48e.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fcf9631e.entry.js → p-2affed30.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bebf0896.entry.js → p-2bbec1fa.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-31b363d3.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-779e1686.entry.js → p-324bb578.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ca000634.system.entry.js → p-324f6a1d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-cd2583f5.entry.js → p-32d8756e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4f70afb5.system.entry.js → p-38b3e48b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3b5b5f43.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-9776463e.entry.js → p-3ce5350e.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3e0d2f8e.entry.js +1 -0
- package/dist/swisspost-internet-header/p-3fb06291.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-2d1355fa.system.entry.js → p-4615095e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-468c06f1.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-b94bcb65.system.entry.js → p-48b9d8af.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-c6e57a0c.system.entry.js → p-51c1b282.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f606f337.system.entry.js → p-522b6a34.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f986d587.entry.js → p-53627d54.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9c5c32af.system.entry.js → p-56b1fbff.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d604cf73.system.entry.js → p-5937df91.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-97eaecab.entry.js → p-5c73925e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1386d1d4.system.entry.js → p-62e15c37.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ad91f6c0.system.entry.js → p-6dd426a3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fc6ef72b.system.entry.js → p-6df1fef1.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-77199d61.system.entry.js → p-701461bc.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ea8c458a.entry.js → p-715fd00a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-da88d37e.system.entry.js → p-77075637.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2a8e1e33.entry.js → p-77955468.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7f0d52e1.entry.js → p-7a4d48c8.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-7e85acba.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-89dbe69c.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-786e11c5.entry.js → p-8a3118d3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1c40acd2.entry.js → p-8aec6b71.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6427c6b0.system.entry.js → p-8f560878.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-806b3bb9.entry.js → p-9119d1d2.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ad77e312.entry.js → p-941c9d63.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-9482fbdf.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-aa4ed181.entry.js → p-9510033c.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-15820529.system.entry.js → p-9bead48d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-20a0a7e7.system.entry.js → p-9dbc65e6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-BEtiMUfS.system.js → p-B2xXTEH5.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-CNZqHwmo.js → p-B86vJMfc.js} +1 -1
- package/dist/swisspost-internet-header/{p-tBnwOTPV.system.js → p-CUgd8XDw.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-CDL0cxX6.system.js → p-CVe9fdUw.system.js} +1 -1
- package/dist/swisspost-internet-header/p-D9jUbrFT.js +1 -0
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/{p-cccfd211.entry.js → p-a2b590f1.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-a3640c54.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a5c32bd3.entry.js +1 -0
- package/dist/swisspost-internet-header/p-a79db979.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e9ae044e.entry.js → p-abd1654a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9d0b4493.entry.js → p-b266f922.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dc287805.system.entry.js → p-b67b88ee.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6b19deb1.system.entry.js → p-b6f7469f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f074310f.entry.js → p-b98bd035.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d4f8cba4.entry.js → p-b9e4f3a1.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-ba60d0f6.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a1b94999.entry.js → p-c792d22e.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-18a84bc1.system.entry.js → p-ce4549eb.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-ce5265e7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-64428c96.system.entry.js → p-d102dd8f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-d586b0b6.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-c16adcb7.entry.js → p-dbe1d696.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-faca91f3.system.entry.js → p-e053e1b5.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4d49c5ef.system.entry.js → p-e4b30e68.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-68dcd52c.system.entry.js → p-e711377e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5329e0b0.system.entry.js → p-e9c6db2d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0bf25ebc.system.entry.js → p-ea3a2c74.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d2fa80e5.entry.js → p-f5bc81a7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-73d21f06.system.entry.js → p-f917f79a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5daa12df.entry.js → p-fc839150.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-fcf9da41.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e655c88c.system.entry.js → p-fde0e9e3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dfbe1d02.entry.js → p-ff4b3e95.entry.js} +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/components/post-internet-header/post-internet-header.d.ts +9 -0
- package/dist/types/data/store.d.ts +1 -0
- package/dist/types/services/alternate-link.service.d.ts +13 -0
- package/package.json +4 -4
- package/dist/esm-es5/package-jK9tFtoG.js +0 -1
- package/dist/swisspost-internet-header/p-01f39bb3.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-05cab026.entry.js +0 -1
- package/dist/swisspost-internet-header/p-10bdbca2.entry.js +0 -1
- package/dist/swisspost-internet-header/p-200dc938.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3028df9f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-50d3eb3c.entry.js +0 -1
- package/dist/swisspost-internet-header/p-520d3f06.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-5ae377df.entry.js +0 -1
- package/dist/swisspost-internet-header/p-63b15be9.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-72187f34.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7cdf89dc.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8bd09f9e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8f06d58d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-99c19dd2.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b5665fc8.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ba63e3e0.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-bff2014b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d558b697.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e25b4f0b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fec8e79e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-jK9tFtoG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function r(){this.constructor=e}e.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))t[a]=e[a]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function o(t){try{c(r.next(t))}catch(t){n(t)}}function s(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?i(t.value):a(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];a=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var i={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0)i[r]=t[r];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++){if(e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a]))i[r[a]]=t[r[a]]}return i};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,n;r<a;r++){if(n||!(r in e)){if(!n)n=Array.prototype.slice.call(e,0,r);n[r]=e[r]}}return t.concat(n||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{v as version}from"./package-jK9tFtoG.js";import{g as getDefaultExportFromCjs}from"./_commonjsHelpers-BFTU3MAI.js";import{c as createValidatorDecorator,g as getValidationContext}from"./create-validator-decorator--a-qkYfP.js";import{R as Required}from"./required-tHxh_hWW.js";import{T as Type}from"./type-Daxpt5v6.js";function DateValue(){return createValidatorDecorator({priority:1,blocking:false,run:function(t,e){var i=getValidationContext(t,e),r=i.value,a=i.showError;var n=typeof r==="string"&&!Number.isNaN(new Date(r).getTime());if(!n){a("must be a valid date string");return false}return true}})}function isIsoDate(t){var e=/^\d{1,4}-\d{2}-\d{2}$/;if(!e.test(t))return false;var i=t.split("-");var r="".concat(i[0].padStart(4,"0"),"-").concat(i[1],"-").concat(i[2]);var a=new Date("".concat(r,"T00:00"));if(Number.isNaN(a.getTime()))return false;var n=a.getFullYear();var o=String(a.getMonth()+1).padStart(2,"0");var s=String(a.getDate()).padStart(2,"0");return"".concat(n,"-").concat(o,"-").concat(s)===t}function IsoDate(){return createValidatorDecorator({priority:1,blocking:false,run:function(t,e){var i=getValidationContext(t,e),r=i.value,a=i.showError;if(!isIsoDate(String(r))){a("must be in ISO format (YYYY-MM-DD)");return false}return true}})}var FALLBACK_LANGUAGE_CODE="en";var BUDDHIST_CALENDAR_YEAR_OFFSET=543;var BUDDHIST_CALENDAR_LOCALES=["th","th-TH"];var UNICODE_BIDI={ltr:"",rtl:"",pop:""};function getLocaleTextDirection(t){return(new Date).toLocaleDateString(t).includes(UNICODE_BIDI.rtl)?"rtl":"ltr"}function isValidLocale(t){if(!t)return false;try{return Intl.DateTimeFormat.supportedLocalesOf(t).length>0}catch(t){console.log(t);return false}}function isString(t){return typeof t==="string"||t instanceof String}function isObject(t){var e;return typeof t==="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function pick(t,e){if(Array.isArray(e))return pick(t,(function(t,i){return e.includes(i)}));return Object.entries(t).reduce((function(t,i){var r=i[0],a=i[1];if(e(a,r))t[r]=a;return t}),{})}var DIRECTION={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function forceDirection(t){switch(t){case DIRECTION.LEFT:return DIRECTION.FORCE_LEFT;case DIRECTION.RIGHT:return DIRECTION.FORCE_RIGHT;default:return t}}function escapeRegExp(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function objectIncludes(t,e){if(e===t)return true;var i=Array.isArray(e),r=Array.isArray(t);var a;if(i&&r){if(e.length!=t.length)return false;for(a=0;a<e.length;a++)if(!objectIncludes(e[a],t[a]))return false;return true}if(i!=r)return false;if(e&&t&&typeof e==="object"&&typeof t==="object"){var n=e instanceof Date,o=t instanceof Date;if(n&&o)return e.getTime()==t.getTime();if(n!=o)return false;var s=e instanceof RegExp,c=t instanceof RegExp;if(s&&c)return e.toString()==t.toString();if(s!=c)return false;var u=Object.keys(e);for(a=0;a<u.length;a++)if(!Object.prototype.hasOwnProperty.call(t,u[a]))return false;for(a=0;a<u.length;a++)if(!objectIncludes(t[u[a]],e[u[a]]))return false;return true}else if(e&&t&&typeof e==="function"&&typeof t==="function"){return e.toString()===t.toString()}return false}var ActionDetails=function(){function t(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}Object.defineProperty(t.prototype,"startChangePos",{get:function(){return Math.min(this.cursorPos,this.oldSelection.start)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"insertedCount",{get:function(){return this.cursorPos-this.startChangePos},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inserted",{get:function(){return this.value.substr(this.startChangePos,this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removedCount",{get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removed",{get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"head",{get:function(){return this.value.substring(0,this.startChangePos)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"tail",{get:function(){return this.value.substring(this.startChangePos+this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removeDirection",{get:function(){if(!this.removedCount||this.insertedCount)return DIRECTION.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?DIRECTION.RIGHT:DIRECTION.LEFT},enumerable:false,configurable:true});return t}();function IMask(t,e){return new IMask.InputMask(t,e)}function maskedClass(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return IMask.MaskedRegExp;if(isString(t))return IMask.MaskedPattern;if(t===Date)return IMask.MaskedDate;if(t===Number)return IMask.MaskedNumber;if(Array.isArray(t)||t===Array)return IMask.MaskedDynamic;if(IMask.Masked&&t.prototype instanceof IMask.Masked)return t;if(IMask.Masked&&t instanceof IMask.Masked)return t.constructor;if(t instanceof Function)return IMask.MaskedFunction;console.warn("Mask not found for mask",t);return IMask.Masked}function normalizeOpts(t){if(!t)throw new Error("Options in not defined");if(IMask.Masked){if(t.prototype instanceof IMask.Masked)return{mask:t};var e=t instanceof IMask.Masked?{mask:t}:isObject(t)&&t.mask instanceof IMask.Masked?t:{},i=e.mask,r=i===void 0?undefined:i,a=__rest(e,["mask"]);if(r){var n=r.mask;return __assign(__assign(__assign({},pick(r,(function(t,e){return!e.startsWith("_")}))),{mask:r.constructor,_mask:n}),a)}}if(!isObject(t))return{mask:t};return __assign({},t)}function createMask(t){if(IMask.Masked&&t instanceof IMask.Masked)return t;var e=normalizeOpts(t);var i=maskedClass(e.mask);if(!i)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");if(e.mask===i)delete e.mask;if(e._mask){e.mask=e._mask;delete e._mask}return new i(e)}IMask.createMask=createMask;var MaskElement=function(){function t(){}Object.defineProperty(t.prototype,"selectionStart",{get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"selectionEnd",{get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});t.prototype.select=function(t,e){if(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd)return;try{this._unsafeSelect(t,e)}catch(t){}};Object.defineProperty(t.prototype,"isActive",{get:function(){return false},enumerable:false,configurable:true});return t}();IMask.MaskElement=MaskElement;var KEY_Z=90;var KEY_Y=89;var HTMLMaskElement=function(t){__extends(e,t);function e(e){var i=t.call(this)||this;i.input=e;i._onKeydown=i._onKeydown.bind(i);i._onInput=i._onInput.bind(i);i._onBeforeinput=i._onBeforeinput.bind(i);i._onCompositionEnd=i._onCompositionEnd.bind(i);return i}Object.defineProperty(e.prototype,"rootElement",{get:function(){var t,e,i;return(t=(e=(i=this.input).getRootNode)==null?void 0:e.call(i))!=null?t:document},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isActive",{get:function(){return this.input===this.rootElement.activeElement},enumerable:false,configurable:true});e.prototype.bindEvents=function(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t};e.prototype._onKeydown=function(t){if(this._handlers.redo&&(t.keyCode===KEY_Z&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===KEY_Y&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===KEY_Z&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)};e.prototype._onBeforeinput=function(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}};e.prototype._onCompositionEnd=function(t){this._handlers.input(t)};e.prototype._onInput=function(t){if(!t.isComposing)this._handlers.input(t)};e.prototype.unbindEvents=function(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}};return e}(MaskElement);IMask.HTMLMaskElement=HTMLMaskElement;var HTMLInputMaskElement=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;i.input=e;return i}Object.defineProperty(e.prototype,"_unsafeSelectionStart",{get:function(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_unsafeSelectionEnd",{get:function(){return this.input.selectionEnd},enumerable:false,configurable:true});e.prototype._unsafeSelect=function(t,e){this.input.setSelectionRange(t,e)};Object.defineProperty(e.prototype,"value",{get:function(){return this.input.value},set:function(t){this.input.value=t},enumerable:false,configurable:true});return e}(HTMLMaskElement);IMask.HTMLMaskElement=HTMLMaskElement;var HTMLContenteditableMaskElement=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_unsafeSelectionStart",{get:function(){var t=this.rootElement;var e=t.getSelection&&t.getSelection();var i=e&&e.anchorOffset;var r=e&&e.focusOffset;if(r==null||i==null||i<r){return i}return r},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_unsafeSelectionEnd",{get:function(){var t=this.rootElement;var e=t.getSelection&&t.getSelection();var i=e&&e.anchorOffset;var r=e&&e.focusOffset;if(r==null||i==null||i>r){return i}return r},enumerable:false,configurable:true});e.prototype._unsafeSelect=function(t,e){if(!this.rootElement.createRange)return;var i=this.rootElement.createRange();i.setStart(this.input.firstChild||this.input,t);i.setEnd(this.input.lastChild||this.input,e);var r=this.rootElement;var a=r.getSelection&&r.getSelection();if(a){a.removeAllRanges();a.addRange(i)}};Object.defineProperty(e.prototype,"value",{get:function(){return this.input.textContent||""},set:function(t){this.input.textContent=t},enumerable:false,configurable:true});return e}(HTMLMaskElement);IMask.HTMLContenteditableMaskElement=HTMLContenteditableMaskElement;var InputHistory=function(){function t(){this.states=[];this.currentIndex=0}Object.defineProperty(t.prototype,"currentState",{get:function(){return this.states[this.currentIndex]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.states.length===0},enumerable:false,configurable:true});t.prototype.push=function(e){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(e);if(this.states.length>t.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1};t.prototype.go=function(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState};t.prototype.undo=function(){return this.go(-1)};t.prototype.redo=function(){return this.go(1)};t.prototype.clear=function(){this.states.length=0;this.currentIndex=0};return t}();InputHistory.MAX_LENGTH=100;var InputMask=function(){function t(t,e){this.el=t instanceof MaskElement?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new HTMLContenteditableMaskElement(t):new HTMLInputMaskElement(t);this.masked=createMask(e);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new InputHistory;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}t.prototype.maskEquals=function(t){var e;return t==null||((e=this.masked)==null?void 0:e.maskEquals(t))};Object.defineProperty(t.prototype,"mask",{get:function(){return this.masked.mask},set:function(t){if(this.maskEquals(t))return;if(!(t instanceof IMask.Masked)&&this.masked.constructor===maskedClass(t)){this.masked.updateOptions({mask:t});return}var e=t instanceof IMask.Masked?t:createMask({mask:t});e.unmaskedValue=this.masked.unmaskedValue;this.masked=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this._unmaskedValue},set:function(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._rawInputValue},set:function(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.masked.typedValue},set:function(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.displayValue},enumerable:false,configurable:true});t.prototype._bindEvents=function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})};t.prototype._unbindEvents=function(){if(this.el)this.el.unbindEvents()};t.prototype._fireEvent=function(t,e){var i=this._listeners[t];if(!i)return;i.forEach((function(t){return t(e)}))};Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cursorPos",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()},enumerable:false,configurable:true});t.prototype._saveSelection=function(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}};t.prototype.updateValue=function(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue};t.prototype.updateControl=function(t){var e=this.masked.unmaskedValue;var i=this.masked.value;var r=this.masked.rawInputValue;var a=this.displayValue;var n=this.unmaskedValue!==e||this.value!==i||this._rawInputValue!==r;this._unmaskedValue=e;this._value=i;this._rawInputValue=r;if(this.el.value!==a)this.el.value=a;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:e,selection:{start:this.selectionStart,end:this.cursorPos}})};t.prototype.updateOptions=function(t){var e=t.mask,i=__rest(t,["mask"]);var r=!this.maskEquals(e);var a=this.masked.optionsIsChanged(i);if(r)this.mask=e;if(a)this.masked.updateOptions(i);if(r||a)this.updateControl()};t.prototype.updateCursor=function(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)};t.prototype._delayUpdateCursor=function(t){var e=this;this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((function(){if(!e.el)return;e.cursorPos=e._changingCursorPos;e._abortUpdateCursor()}),10)};t.prototype._fireChangeEvents=function(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)};t.prototype._abortUpdateCursor=function(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}};t.prototype.alignCursor=function(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,DIRECTION.LEFT))};t.prototype.alignCursorFriendly=function(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()};t.prototype.on=function(t,e){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(e);return this};t.prototype.off=function(t,e){if(!this._listeners[t])return this;if(!e){delete this._listeners[t];return this}var i=this._listeners[t].indexOf(e);if(i>=0)this._listeners[t].splice(i,1);return this};t.prototype._onInput=function(t){this._inputEvent=t;this._abortUpdateCursor();var e=new ActionDetails({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});var i=this.masked.rawInputValue;var r=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:true,raw:true}).offset;var a=i===this.masked.rawInputValue?e.removeDirection:DIRECTION.NONE;var n=this.masked.nearestInputPos(e.startChangePos+r,a);if(a!==DIRECTION.NONE)n=this.masked.nearestInputPos(n,DIRECTION.NONE);this.updateControl(n);delete this._inputEvent};t.prototype._onChange=function(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()};t.prototype._onDrop=function(t){t.preventDefault();t.stopPropagation()};t.prototype._onFocus=function(t){this.alignCursorFriendly()};t.prototype._onClick=function(t){this.alignCursorFriendly()};t.prototype._onUndo=function(){this._applyHistoryState(this.history.undo())};t.prototype._onRedo=function(){this._applyHistoryState(this.history.redo())};t.prototype._applyHistoryState=function(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false};t.prototype.destroy=function(){this._unbindEvents();this._listeners.length=0;delete this.el};return t}();IMask.InputMask=InputMask;var ChangeDetails=function(){function t(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}t.normalize=function(e){return Array.isArray(e)?e:[e,new t]};t.prototype.aggregate=function(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this};Object.defineProperty(t.prototype,"offset",{get:function(){return this.tailShift+this.inserted.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"consumed",{get:function(){return Boolean(this.rawInserted)||this.skip},enumerable:false,configurable:true});t.prototype.equals=function(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip};return t}();IMask.ChangeDetails=ChangeDetails;var ContinuousTailDetails=function(){function t(t,e,i){if(t===void 0){t=""}if(e===void 0){e=0}this.value=t;this.from=e;this.stop=i}t.prototype.toString=function(){return this.value};t.prototype.extend=function(t){this.value+=String(t)};t.prototype.appendTo=function(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())};Object.defineProperty(t.prototype,"state",{get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.value.length||t!=null&&this.from>=t)return"";var e=this.value[0];this.value=this.value.slice(1);return e};t.prototype.shift=function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t};return t}();var Masked=function(){function t(e){this._value="";this._update(__assign(__assign({},t.DEFAULTS),e));this._initialized=true}t.prototype.updateOptions=function(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))};t.prototype._update=function(t){Object.assign(this,t)};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value},enumerable:false,configurable:true});t.prototype.reset=function(){this._value=""};Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.resolve(t,{input:true})},enumerable:false,configurable:true});t.prototype.resolve=function(t,e){if(e===void 0){e={input:true}}this.reset();this.append(t,e,"");this.doCommit()};Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.value},set:function(t){this.resolve(t,{})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.parse?this.parse(this.value,this):this.unmaskedValue},set:function(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.extractInput(0,this.displayValue.length,{raw:true})},set:function(t){this.resolve(t,{raw:true})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return this.isComplete},enumerable:false,configurable:true});t.prototype.nearestInputPos=function(t,e){return t};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return Math.min(this.displayValue.length,e-t)};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return this.displayValue.slice(t,e)};t.prototype.extractTail=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return new ContinuousTailDetails(this.extractInput(t,e),t)};t.prototype.appendTail=function(t){if(isString(t))t=new ContinuousTailDetails(String(t));return t.appendTo(this)};t.prototype._appendCharRaw=function(t,e){if(!t)return new ChangeDetails;this._value+=t;return new ChangeDetails({inserted:t,rawInserted:t})};t.prototype._appendChar=function(t,e,i){var r;if(e===void 0){e={}}var a=this.state;var n;r=this.doPrepareChar(t,e),t=r[0],n=r[1];if(t){n=n.aggregate(this._appendCharRaw(t,e));if(!n.rawInserted&&this.autofix==="pad"){var o=this.state;this.state=a;var s=this.pad(e);var c=this._appendCharRaw(t,e);s=s.aggregate(c);if(c.rawInserted||s.equals(n)){n=s}else{this.state=o}}}if(n.inserted){var u=void 0;var d=this.doValidate(e)!==false;if(d&&i!=null){var l=this.state;if(this.overwrite===true){u=i.state;for(var h=0;h<n.rawInserted.length;++h){i.unshift(this.displayValue.length-n.tailShift)}}var f=this.appendTail(i);d=f.rawInserted.length===i.toString().length;if(!(d&&f.inserted)&&this.overwrite==="shift"){this.state=l;u=i.state;for(var h=0;h<n.rawInserted.length;++h){i.shift()}f=this.appendTail(i);d=f.rawInserted.length===i.toString().length}if(d&&f.inserted)this.state=l}if(!d){n=new ChangeDetails;this.state=a;if(i&&u)i.state=u}}return n};t.prototype._appendPlaceholder=function(){return new ChangeDetails};t.prototype._appendEager=function(){return new ChangeDetails};t.prototype.append=function(t,e,i){var r;if(!isString(t))throw new Error("value should be string");var a=isString(i)?new ContinuousTailDetails(String(i)):i;if(e!=null&&e.tail)e._beforeTailState=this.state;var n;r=this.doPrepare(t,e),t=r[0],n=r[1];for(var o=0;o<t.length;++o){var s=this._appendChar(t[o],e,a);if(!s.rawInserted&&!this.doSkipInvalid(t[o],e,a))break;n.aggregate(s)}if((this.eager===true||this.eager==="append")&&e!=null&&e.input&&t){n.aggregate(this._appendEager())}if(a!=null){n.tailShift+=this.appendTail(a).tailShift}return n};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(e);return new ChangeDetails};t.prototype.withValueRefresh=function(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;var e=this.rawInputValue;var i=this.value;var r=t();this.rawInputValue=e;if(this.value&&this.value!==i&&i.indexOf(this.value)===0){this.append(i.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return r};t.prototype.runIsolated=function(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;var e=this.state;var i=t(this);this.state=e;delete this._isolated;return i};t.prototype.doSkipInvalid=function(t,e,i){return Boolean(this.skipInvalid)};t.prototype.doPrepare=function(t,e){if(e===void 0){e={}}return ChangeDetails.normalize(this.prepare?this.prepare(t,this,e):t)};t.prototype.doPrepareChar=function(t,e){if(e===void 0){e={}}return ChangeDetails.normalize(this.prepareChar?this.prepareChar(t,this,e):t)};t.prototype.doValidate=function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))};t.prototype.doCommit=function(){if(this.commit)this.commit(this.value,this)};t.prototype.splice=function(t,e,i,r,a){if(i===void 0){i=""}if(r===void 0){r=DIRECTION.NONE}if(a===void 0){a={input:true}}var n=t+e;var o=this.extractTail(n);var s=this.eager===true||this.eager==="remove";var c;if(s){r=forceDirection(r);c=this.extractInput(0,n,{raw:true})}var u=t;var d=new ChangeDetails;if(r!==DIRECTION.NONE){u=this.nearestInputPos(t,e>1&&t!==0&&!s?DIRECTION.NONE:r);d.tailShift=u-t}d.aggregate(this.remove(u));if(s&&r!==DIRECTION.NONE&&c===this.rawInputValue){if(r===DIRECTION.FORCE_LEFT){var l=void 0;while(c===this.rawInputValue&&(l=this.displayValue.length)){d.aggregate(new ChangeDetails({tailShift:-1})).aggregate(this.remove(l-1))}}else if(r===DIRECTION.FORCE_RIGHT){o.unshift()}}return d.aggregate(this.append(i,a,o))};t.prototype.maskEquals=function(t){return this.mask===t};t.prototype.optionsIsChanged=function(t){return!objectIncludes(this,t)};t.prototype.typedValueEquals=function(e){var i=this.typedValue;return e===i||t.EMPTY_VALUES.includes(e)&&t.EMPTY_VALUES.includes(i)||(this.format?this.format(e,this)===this.format(this.typedValue,this):false)};t.prototype.pad=function(t){return new ChangeDetails};return t}();Masked.DEFAULTS={skipInvalid:true};Masked.EMPTY_VALUES=[undefined,null,""];IMask.Masked=Masked;var ChunksTailDetails=function(){function t(t,e){if(t===void 0){t=[]}if(e===void 0){e=0}this.chunks=t;this.from=e}t.prototype.toString=function(){return this.chunks.map(String).join("")};t.prototype.extend=function(e){if(!String(e))return;e=isString(e)?new ContinuousTailDetails(String(e)):e;var i=this.chunks[this.chunks.length-1];var r=i&&(i.stop===e.stop||e.stop==null)&&e.from===i.from+i.toString().length;if(e instanceof ContinuousTailDetails){if(r){i.extend(e.toString())}else{this.chunks.push(e)}}else if(e instanceof t){if(e.stop==null){var a=void 0;while(e.chunks.length&&e.chunks[0].stop==null){a=e.chunks.shift();a.from+=e.from;this.extend(a)}}if(e.toString()){e.stop=e.blockIndex;this.chunks.push(e)}}};t.prototype.appendTo=function(e){if(!(e instanceof IMask.MaskedPattern)){var i=new ContinuousTailDetails(this.toString());return i.appendTo(e)}var r=new ChangeDetails;for(var a=0;a<this.chunks.length;++a){var n=this.chunks[a];var o=e._mapPosToBlock(e.displayValue.length);var s=n.stop;var c=void 0;if(s!=null&&(!o||o.index<=s)){if(n instanceof t||e._stops.indexOf(s)>=0){r.aggregate(e._appendPlaceholder(s))}c=n instanceof t&&e._blocks[s]}if(c){var u=c.appendTail(n);r.aggregate(u);var d=n.toString().slice(u.rawInserted.length);if(d)r.aggregate(e.append(d,{tail:true}))}else{r.aggregate(e.append(n.toString(),{tail:true}))}}return r};Object.defineProperty(t.prototype,"state",{get:function(){return{chunks:this.chunks.map((function(t){return t.state})),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var i=e.chunks,r=__rest(e,["chunks"]);Object.assign(this,r);this.chunks=i.map((function(e){var i="chunks"in e?new t:new ContinuousTailDetails;i.state=e;return i}))},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";var e=t!=null?t-this.from:t;var i=0;while(i<this.chunks.length){var r=this.chunks[i];var a=r.unshift(e);if(r.toString()){if(!a)break;++i}else{this.chunks.splice(i,1)}if(a)return a}return""};t.prototype.shift=function(){if(!this.chunks.length)return"";var t=this.chunks.length-1;while(0<=t){var e=this.chunks[t];var i=e.shift();if(e.toString()){if(!i)break;--t}else{this.chunks.splice(t,1)}if(i)return i}return""};return t}();var PatternCursor=function(){function t(t,e){this.masked=t;this._log=[];var i=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0}),r=i.offset,a=i.index;this.offset=r;this.index=a;this.ok=false}Object.defineProperty(t.prototype,"block",{get:function(){return this.masked._blocks[this.index]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pos",{get:function(){return this.masked._blockStartPos(this.index)+this.offset},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"state",{get:function(){return{index:this.index,offset:this.offset,ok:this.ok}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.pushState=function(){this._log.push(this.state)};t.prototype.popState=function(){var t=this._log.pop();if(t)this.state=t;return t};t.prototype.bindBlock=function(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}};t.prototype._pushLeft=function(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)==null?void 0:e.displayValue.length)||0){var e;if(t())return this.ok=true}return this.ok=false};t.prototype._pushRight=function(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false};t.prototype.pushLeftBeforeFilled=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.FORCE_LEFT);if(t.offset!==0)return true}))};t.prototype.pushLeftBeforeInput=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.LEFT);return true}))};t.prototype.pushLeftBeforeRequired=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.LEFT);return true}))};t.prototype.pushRightBeforeFilled=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.FORCE_RIGHT);if(t.offset!==t.block.value.length)return true}))};t.prototype.pushRightBeforeInput=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.NONE);return true}))};t.prototype.pushRightBeforeRequired=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.NONE);return true}))};return t}();var PatternFixedDefinition=function(){function t(t){Object.assign(this,t);this._value="";this.isFixed=true}Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.isUnmasking?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._isRawInput?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});t.prototype.reset=function(){this._isRawInput=false;this._value=""};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(e);if(!this._value)this._isRawInput=false;return new ChangeDetails};t.prototype.nearestInputPos=function(t,e){if(e===void 0){e=DIRECTION.NONE}var i=0;var r=this._value.length;switch(e){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return i;case DIRECTION.NONE:case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:default:return r}};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}return this._isRawInput?e-t:0};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this._value.length}if(i===void 0){i={}}return i.raw&&this._isRawInput&&this._value.slice(t,e)||""};Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return Boolean(this._value)},enumerable:false,configurable:true});t.prototype._appendChar=function(t,e){if(e===void 0){e={}}if(this.isFilled)return new ChangeDetails;var i=this.eager===true||this.eager==="append";var r=this.char===t;var a=r&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!i)&&!e.tail;var n=new ChangeDetails({inserted:this.char,rawInserted:a?this.char:""});this._value=this.char;this._isRawInput=a&&(e.raw||e.input);return n};t.prototype._appendEager=function(){return this._appendChar(this.char,{tail:true})};t.prototype._appendPlaceholder=function(){var t=new ChangeDetails;if(this.isFilled)return t;this._value=t.inserted=this.char;return t};t.prototype.extractTail=function(){return new ContinuousTailDetails("")};t.prototype.appendTail=function(t){if(isString(t))t=new ContinuousTailDetails(String(t));return t.appendTo(this)};t.prototype.append=function(t,e,i){var r=this._appendChar(t[0],e);if(i!=null){r.tailShift+=this.appendTail(i).tailShift}return r};t.prototype.doCommit=function(){};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this._value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)},enumerable:false,configurable:true});t.prototype.pad=function(t){return this._appendPlaceholder()};return t}();var PatternInputDefinition=function(){function t(t){var e=t.parent,i=t.isOptional,r=t.placeholderChar,a=t.displayChar,n=t.lazy,o=t.eager,s=__rest(t,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=createMask(s);Object.assign(this,{parent:e,isOptional:i,placeholderChar:r,displayChar:a,lazy:n,eager:o})}t.prototype.reset=function(){this.isFilled=false;this.masked.reset()};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}if(t===0&&e>=1){this.isFilled=false;return this.masked.remove(t,e)}return new ChangeDetails};Object.defineProperty(t.prototype,"value",{get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.masked.unmaskedValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.masked.rawInputValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.value&&this.displayChar||this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return Boolean(this.masked.value)||this.isOptional},enumerable:false,configurable:true});t.prototype._appendChar=function(t,e){if(e===void 0){e={}}if(this.isFilled)return new ChangeDetails;var i=this.masked.state;var r=this.masked._appendChar(t,this.currentMaskFlags(e));if(r.inserted&&this.doValidate(e)===false){r=new ChangeDetails;this.masked.state=i}if(!r.inserted&&!this.isOptional&&!this.lazy&&!e.input){r.inserted=this.placeholderChar}r.skip=!r.inserted&&!this.isOptional;this.isFilled=Boolean(r.inserted);return r};t.prototype.append=function(t,e,i){return this.masked.append(t,this.currentMaskFlags(e),i)};t.prototype._appendPlaceholder=function(){if(this.isFilled||this.isOptional)return new ChangeDetails;this.isFilled=true;return new ChangeDetails({inserted:this.placeholderChar})};t.prototype._appendEager=function(){return new ChangeDetails};t.prototype.extractTail=function(t,e){return this.masked.extractTail(t,e)};t.prototype.appendTail=function(t){return this.masked.appendTail(t)};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.masked.extractInput(t,e,i)};t.prototype.nearestInputPos=function(t,e){if(e===void 0){e=DIRECTION.NONE}var i=0;var r=this.value.length;var a=Math.min(Math.max(t,i),r);switch(e){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return this.isComplete?a:i;case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:return this.isComplete?a:r;case DIRECTION.NONE:default:return a}};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.value.slice(t,e).length};t.prototype.doValidate=function(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))};t.prototype.doCommit=function(){this.masked.doCommit()};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked;this.isFilled=t.isFilled},enumerable:false,configurable:true});t.prototype.currentMaskFlags=function(t){var e;return __assign(__assign({},t),{_beforeTailState:(t==null||(e=t._beforeTailState)==null?void 0:e.masked)||(t==null?void 0:t._beforeTailState)})};t.prototype.pad=function(t){return new ChangeDetails};return t}();PatternInputDefinition.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var MaskedRegExp=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.mask;if(i)e.validate=function(t){return t.search(i)>=0};t.prototype._update.call(this,e)};return e}(Masked);IMask.MaskedRegExp=MaskedRegExp;var MaskedPattern=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign(__assign({},e.DEFAULTS),i),{definitions:Object.assign({},PatternInputDefinition.DEFAULT_DEFINITIONS,i==null?void 0:i.definitions)}))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){e.definitions=Object.assign({},this.definitions,e.definitions);t.prototype._update.call(this,e);this._rebuildMask()};e.prototype._rebuildMask=function(){var t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};var i=this.mask;if(!i||!t)return;var r=false;var a=false;var n=function(n){if(o.blocks){var c=i.slice(n);var u=Object.keys(o.blocks).filter((function(t){return c.indexOf(t)===0}));u.sort((function(t,e){return e.length-t.length}));var d=u[0];if(d){var l=normalizeOpts(o.blocks[d]),h=l.expose,f=l.repeat,p=__rest(l,["expose","repeat"]);var v=__assign(__assign({lazy:o.lazy,eager:o.eager,placeholderChar:o.placeholderChar,displayChar:o.displayChar,overwrite:o.overwrite,autofix:o.autofix},p),{repeat:f,parent:o});var b=f!=null?new IMask.RepeatBlock(v):createMask(v);if(b){o._blocks.push(b);if(h)o.exposeBlock=b;if(!o._maskedBlocks[d])o._maskedBlocks[d]=[];o._maskedBlocks[d].push(o._blocks.length-1)}n+=d.length-1;return s=n,"continue"}}var k=i[n];var m=k in t;if(k===e.STOP_CHAR){o._stops.push(o._blocks.length);return s=n,"continue"}if(k==="{"||k==="}"){r=!r;return s=n,"continue"}if(k==="["||k==="]"){a=!a;return s=n,"continue"}if(k===e.ESCAPE_CHAR){++n;k=i[n];if(!k)return s=n,"break";m=false}var g=m?new PatternInputDefinition(__assign(__assign({isOptional:a,lazy:o.lazy,eager:o.eager,placeholderChar:o.placeholderChar,displayChar:o.displayChar},normalizeOpts(t[k])),{parent:o})):new PatternFixedDefinition({char:k,eager:o.eager,isUnmasking:r});o._blocks.push(g);s=n};var o=this,s;for(var c=0;c<i.length;++c){var u=n(c);c=s;if(u==="break")break}};Object.defineProperty(e.prototype,"state",{get:function(){return __assign(__assign({},t.prototype.state),{_blocks:this._blocks.map((function(t){return t.state}))})},set:function(e){if(!e){this.reset();return}var i=e._blocks,r=__rest(e,["_blocks"]);this._blocks.forEach((function(t,e){return t.state=i[e]}));t.prototype.state=r},enumerable:false,configurable:true});e.prototype.reset=function(){t.prototype.reset.call(this);this._blocks.forEach((function(t){return t.reset()}))};Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((function(t){return t.isComplete}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFilled",{get:function(){return this._blocks.every((function(t){return t.isFilled}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFixed",{get:function(){return this._blocks.every((function(t){return t.isFixed}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isOptional",{get:function(){return this._blocks.every((function(t){return t.isOptional}))},enumerable:false,configurable:true});e.prototype.doCommit=function(){this._blocks.forEach((function(t){return t.doCommit()}));t.prototype.doCommit.call(this)};Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((function(t,e){return t+=e.unmaskedValue}),"")},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e;this.appendTail(i);this.doCommit()}else t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"value",{get:function(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((function(t,e){return t+=e.value}),"")},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e;this.appendTail(i);this.doCommit()}else t.prototype.value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.exposeBlock?this.exposeBlock.typedValue:t.prototype.typedValue},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e;this.appendTail(i);this.doCommit()}else t.prototype.typedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"displayValue",{get:function(){return this._blocks.reduce((function(t,e){return t+=e.displayValue}),"")},enumerable:false,configurable:true});e.prototype.appendTail=function(e){return t.prototype.appendTail.call(this,e).aggregate(this._appendPlaceholder())};e.prototype._appendEager=function(){var t;var e=new ChangeDetails;var i=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(i==null)return e;if(this._blocks[i].isFilled)++i;for(var r=i;r<this._blocks.length;++r){var a=this._blocks[r]._appendEager();if(!a.inserted)break;e.aggregate(a)}return e};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=this._mapPosToBlock(this.displayValue.length);var r=new ChangeDetails;if(!i)return r;for(var a=i.index,n=void 0;n=this._blocks[a];++a){var o;var s=n._appendChar(t,__assign(__assign({},e),{_beforeTailState:(o=e._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]}));r.aggregate(s);if(s.consumed)break}return r};e.prototype.extractTail=function(t,e){var i=this;if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}var r=new ChunksTailDetails;if(t===e)return r;this._forEachBlocksInRange(t,e,(function(t,e,a,n){var o=t.extractTail(a,n);o.stop=i._findStopBefore(e);o.from=i._blockStartPos(e);if(o instanceof ChunksTailDetails)o.blockIndex=e;r.extend(o)}));return r};e.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(i===void 0){i={}}if(t===e)return"";var r="";this._forEachBlocksInRange(t,e,(function(t,e,a,n){r+=t.extractInput(a,n,i)}));return r};e.prototype._findStopBefore=function(t){var e;for(var i=0;i<this._stops.length;++i){var r=this._stops[i];if(r<=t)e=r;else break}return e};e.prototype._appendPlaceholder=function(t){var e=new ChangeDetails;if(this.lazy&&t==null)return e;var i=this._mapPosToBlock(this.displayValue.length);if(!i)return e;var r=i.index;var a=t!=null?t:this._blocks.length;this._blocks.slice(r,a).forEach((function(i){if(!i.lazy||t!=null){var r;e.aggregate(i._appendPlaceholder((r=i._blocks)==null?void 0:r.length))}}));return e};e.prototype._mapPosToBlock=function(t){var e="";for(var i=0;i<this._blocks.length;++i){var r=this._blocks[i];var a=e.length;e+=r.displayValue;if(t<=e.length){return{index:i,offset:t-a}}}};e.prototype._blockStartPos=function(t){return this._blocks.slice(0,t).reduce((function(t,e){return t+=e.displayValue.length}),0)};e.prototype._forEachBlocksInRange=function(t,e,i){if(e===void 0){e=this.displayValue.length}var r=this._mapPosToBlock(t);if(r){var a=this._mapPosToBlock(e);var n=a&&r.index===a.index;var o=r.offset;var s=a&&n?a.offset:this._blocks[r.index].displayValue.length;i(this._blocks[r.index],r.index,o,s);if(a&&!n){for(var c=r.index+1;c<a.index;++c){i(this._blocks[c],c,0,this._blocks[c].displayValue.length)}i(this._blocks[a.index],a.index,0,a.offset)}}};e.prototype.remove=function(e,i){if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}var r=t.prototype.remove.call(this,e,i);this._forEachBlocksInRange(e,i,(function(t,e,i,a){r.aggregate(t.remove(i,a))}));return r};e.prototype.nearestInputPos=function(t,e){if(e===void 0){e=DIRECTION.NONE}if(!this._blocks.length)return 0;var i=new PatternCursor(this,t);if(e===DIRECTION.NONE){if(i.pushRightBeforeInput())return i.pos;i.popState();if(i.pushLeftBeforeInput())return i.pos;return this.displayValue.length}if(e===DIRECTION.LEFT||e===DIRECTION.FORCE_LEFT){if(e===DIRECTION.LEFT){i.pushRightBeforeFilled();if(i.ok&&i.pos===t)return t;i.popState()}i.pushLeftBeforeInput();i.pushLeftBeforeRequired();i.pushLeftBeforeFilled();if(e===DIRECTION.LEFT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.ok&&i.pos<=t)return i.pos;i.popState();if(i.ok&&i.pos<=t)return i.pos;i.popState()}if(i.ok)return i.pos;if(e===DIRECTION.FORCE_LEFT)return 0;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return 0}if(e===DIRECTION.RIGHT||e===DIRECTION.FORCE_RIGHT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.pushRightBeforeFilled())return i.pos;if(e===DIRECTION.FORCE_RIGHT)return this.displayValue.length;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return this.nearestInputPos(t,DIRECTION.LEFT)}return t};e.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}var i=0;this._forEachBlocksInRange(t,e,(function(t,e,r,a){i+=t.totalInputPositions(r,a)}));return i};e.prototype.maskedBlock=function(t){return this.maskedBlocks(t)[0]};e.prototype.maskedBlocks=function(t){var e=this;var i=this._maskedBlocks[t];if(!i)return[];return i.map((function(t){return e._blocks[t]}))};e.prototype.pad=function(t){var e=new ChangeDetails;this._forEachBlocksInRange(0,this.displayValue.length,(function(i){return e.aggregate(i.pad(t))}));return e};return e}(Masked);MaskedPattern.DEFAULTS=__assign(__assign({},Masked.DEFAULTS),{lazy:true,placeholderChar:"_"});MaskedPattern.STOP_CHAR="`";MaskedPattern.ESCAPE_CHAR="\\";MaskedPattern.InputDefinition=PatternInputDefinition;MaskedPattern.FixedDefinition=PatternFixedDefinition;IMask.MaskedPattern=MaskedPattern;var MaskedRange=function(t){__extends(e,t);function e(e){return t.call(this,e)||this}Object.defineProperty(e.prototype,"_matchFrom",{get:function(){return this.maxLength-String(this.from).length},enumerable:false,configurable:true});e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.to,r=i===void 0?this.to||0:i,a=e.from,n=a===void 0?this.from||0:a,o=e.maxLength,s=o===void 0?this.maxLength||0:o,c=e.autofix,u=c===void 0?this.autofix:c,d=__rest(e,["to","from","maxLength","autofix"]);this.to=r;this.from=n;this.maxLength=Math.max(String(r).length,s);this.autofix=u;var l=String(this.from).padStart(this.maxLength,"0");var h=String(this.to).padStart(this.maxLength,"0");var f=0;while(f<h.length&&h[f]===l[f])++f;d.mask=h.slice(0,f).replace(/0/g,"\\0")+"0".repeat(this.maxLength-f);t.prototype._update.call(this,d)};Object.defineProperty(e.prototype,"isComplete",{get:function(){return t.prototype.isComplete&&Boolean(this.value)},enumerable:false,configurable:true});e.prototype.boundaries=function(t){var e="";var i="";var r=t.match(/^(\D*)(\d*)(\D*)/)||[],a=r[1],n=r[2];if(n){e="0".repeat(a.length)+n;i="9".repeat(a.length)+n}e=e.padEnd(this.maxLength,"0");i=i.padEnd(this.maxLength,"9");return[e,i]};e.prototype.doPrepareChar=function(e,i){var r;if(i===void 0){i={}}var a;r=t.prototype.doPrepareChar.call(this,e.replace(/\D/g,""),i),e=r[0],a=r[1];if(!e)a.skip=!this.isComplete;return[e,a]};e.prototype._appendCharRaw=function(e,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return t.prototype._appendCharRaw.call(this,e,i);var r=String(this.from).padStart(this.maxLength,"0");var a=String(this.to).padStart(this.maxLength,"0");var n=this.boundaries(this.value+e),o=n[0],s=n[1];if(Number(s)<this.from)return t.prototype._appendCharRaw.call(this,r[this.value.length],i);if(Number(o)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return t.prototype._appendCharRaw.call(this,r[this.value.length],i).aggregate(this._appendCharRaw(e,i))}return t.prototype._appendCharRaw.call(this,a[this.value.length],i)}return t.prototype._appendCharRaw.call(this,e,i)};e.prototype.doValidate=function(e){var i=this.value;var r=i.search(/[^0]/);if(r===-1&&i.length<=this._matchFrom)return true;var a=this.boundaries(i),n=a[0],o=a[1];return this.from<=Number(o)&&Number(n)<=this.to&&t.prototype.doValidate.call(this,e)};e.prototype.pad=function(e){var i=this;var r=new ChangeDetails;if(this.value.length===this.maxLength)return r;var a=this.value;var n=this.maxLength-this.value.length;if(n){this.reset();for(var o=0;o<n;++o){r.aggregate(t.prototype._appendCharRaw.call(this,"0",e))}a.split("").forEach((function(t){return i._appendCharRaw(t)}))}return r};return e}(MaskedPattern);IMask.MaskedRange=MaskedRange;var DefaultPattern="d{.}`m{.}`Y";var MaskedDate=function(t){__extends(e,t);function e(i){return t.call(this,e.extractPatternOptions(__assign(__assign({},e.DEFAULTS),i)))||this}e.extractPatternOptions=function(t){var e=t.mask,i=t.pattern,r=__rest(t,["mask","pattern"]);return __assign(__assign({},r),{mask:isString(e)?e:i})};e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(i){var r=__assign(__assign({},e.DEFAULTS),i),a=r.mask,n=r.pattern,o=r.blocks,s=__rest(r,["mask","pattern","blocks"]);var c=Object.assign({},e.GET_DEFAULT_BLOCKS());if(i.min)c.Y.from=i.min.getFullYear();if(i.max)c.Y.to=i.max.getFullYear();if(i.min&&i.max&&c.Y.from===c.Y.to){c.m.from=i.min.getMonth()+1;c.m.to=i.max.getMonth()+1;if(c.m.from===c.m.to){c.d.from=i.min.getDate();c.d.to=i.max.getDate()}}Object.assign(c,this.blocks,o);t.prototype._update.call(this,__assign(__assign({},s),{mask:isString(a)?a:n,blocks:c}))};e.prototype.doValidate=function(e){var i=this.date;return t.prototype.doValidate.call(this,e)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))};e.prototype.isDateExist=function(t){return this.format(this.parse(t,this),this).indexOf(t)>=0};Object.defineProperty(e.prototype,"date",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.isComplete?t.prototype.typedValue:null},set:function(e){t.prototype.typedValue=e},enumerable:false,configurable:true});e.prototype.maskEquals=function(e){return e===Date||t.prototype.maskEquals.call(this,e)};e.prototype.optionsIsChanged=function(i){return t.prototype.optionsIsChanged.call(this,e.extractPatternOptions(i))};return e}(MaskedPattern);MaskedDate.GET_DEFAULT_BLOCKS=function(){return{d:{mask:MaskedRange,from:1,to:31,maxLength:2},m:{mask:MaskedRange,from:1,to:12,maxLength:2},Y:{mask:MaskedRange,from:1900,to:9999}}};MaskedDate.DEFAULTS=__assign(__assign({},MaskedPattern.DEFAULTS),{mask:Date,pattern:DefaultPattern,format:function(t,e){if(!t)return"";var i=String(t.getDate()).padStart(2,"0");var r=String(t.getMonth()+1).padStart(2,"0");var a=t.getFullYear();return[i,r,a].join(".")},parse:function(t,e){var i=t.split(".").map(Number),r=i[0],a=i[1],n=i[2];return new Date(n,a-1,r)}});IMask.MaskedDate=MaskedDate;var MaskedDynamic=function(t){__extends(e,t);function e(i){var r=t.call(this,__assign(__assign({},e.DEFAULTS),i))||this;r.currentMask=undefined;return r}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=this;t.prototype._update.call(this,e);if("mask"in e){this.exposeMask=undefined;this.compiledMasks=Array.isArray(e.mask)?e.mask.map((function(t){var e=normalizeOpts(t),r=e.expose,a=__rest(e,["expose"]);var n=createMask(__assign({overwrite:i._overwrite,eager:i._eager,skipInvalid:i._skipInvalid},a));if(r)i.exposeMask=n;return n})):[]}};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=this._applyDispatch(t,e);if(this.currentMask){i.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e)))}return i};e.prototype._applyDispatch=function(t,e,i){if(t===void 0){t=""}if(e===void 0){e={}}if(i===void 0){i=""}var r=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value;var a=this.rawInputValue;var n=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:a;var o=a.slice(n.length);var s=this.currentMask;var c=new ChangeDetails;var u=s==null?void 0:s.state;this.currentMask=this.doDispatch(t,__assign({},e),i);if(this.currentMask){if(this.currentMask!==s){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});c.tailShift=this.currentMask.value.length-r.length}if(o){c.tailShift+=this.currentMask.append(o,{raw:true,tail:true}).tailShift}}else if(u){this.currentMask.state=u}}return c};e.prototype._appendPlaceholder=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t};e.prototype._appendEager=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t};e.prototype.appendTail=function(e){var i=new ChangeDetails;if(e)i.aggregate(this._applyDispatch("",{},e));return i.aggregate(this.currentMask?this.currentMask.appendTail(e):t.prototype.appendTail.call(this,e))};e.prototype.currentMaskFlags=function(t){var e,i;return __assign(__assign({},t),{_beforeTailState:((e=t._beforeTailState)==null?void 0:e.currentMaskRef)===this.currentMask&&((i=t._beforeTailState)==null?void 0:i.currentMask)||t._beforeTailState})};e.prototype.doDispatch=function(t,e,i){if(e===void 0){e={}}if(i===void 0){i=""}return this.dispatch(t,this,e,i)};e.prototype.doValidate=function(e){return t.prototype.doValidate.call(this,e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))};e.prototype.doPrepare=function(e,i){var r;if(i===void 0){i={}}var a=t.prototype.doPrepare.call(this,e,i),n=a[0],o=a[1];if(this.currentMask){var s=void 0;r=t.prototype.doPrepare.call(this,n,this.currentMaskFlags(i)),n=r[0],s=r[1];o=o.aggregate(s)}return[n,o]};e.prototype.doPrepareChar=function(e,i){var r;if(i===void 0){i={}}var a=t.prototype.doPrepareChar.call(this,e,i),n=a[0],o=a[1];if(this.currentMask){var s=void 0;r=t.prototype.doPrepareChar.call(this,n,this.currentMaskFlags(i)),n=r[0],s=r[1];o=o.aggregate(s)}return[n,o]};e.prototype.reset=function(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((function(t){return t.reset()}))};Object.defineProperty(e.prototype,"value",{get:function(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""},set:function(e){if(this.exposeMask){this.exposeMask.value=e;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""},set:function(e){if(this.exposeMask){this.exposeMask.unmaskedValue=e;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""},set:function(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}var e=String(t);if(this.currentMask){this.currentMask.typedValue=t;e=this.currentMask.unmaskedValue}this.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.currentMask?this.currentMask.displayValue:""},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isComplete",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFilled",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)},enumerable:false,configurable:true});e.prototype.remove=function(t,e){var i=new ChangeDetails;if(this.currentMask){i.aggregate(this.currentMask.remove(t,e)).aggregate(this._applyDispatch())}return i};Object.defineProperty(e.prototype,"state",{get:function(){var e;return __assign(__assign({},t.prototype.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((function(t){return t.state})),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state})},set:function(e){var i=e.compiledMasks,r=e.currentMaskRef,a=e.currentMask,n=__rest(e,["compiledMasks","currentMaskRef","currentMask"]);if(i)this.compiledMasks.forEach((function(t,e){return t.state=i[e]}));if(r!=null){this.currentMask=r;this.currentMask.state=a}t.prototype.state=n},enumerable:false,configurable:true});e.prototype.extractInput=function(t,e,i){return this.currentMask?this.currentMask.extractInput(t,e,i):""};e.prototype.extractTail=function(e,i){return this.currentMask?this.currentMask.extractTail(e,i):t.prototype.extractTail.call(this,e,i)};e.prototype.doCommit=function(){if(this.currentMask)this.currentMask.doCommit();t.prototype.doCommit.call(this)};e.prototype.nearestInputPos=function(e,i){return this.currentMask?this.currentMask.nearestInputPos(e,i):t.prototype.nearestInputPos.call(this,e,i)};Object.defineProperty(e.prototype,"overwrite",{get:function(){return this.currentMask?this.currentMask.overwrite:this._overwrite},set:function(t){this._overwrite=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"eager",{get:function(){return this.currentMask?this.currentMask.eager:this._eager},set:function(t){this._eager=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"skipInvalid",{get:function(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid},set:function(t){this._skipInvalid=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"autofix",{get:function(){return this.currentMask?this.currentMask.autofix:this._autofix},set:function(t){this._autofix=t},enumerable:false,configurable:true});e.prototype.maskEquals=function(e){return Array.isArray(e)?this.compiledMasks.every((function(t,i){if(!e[i])return;var r=e[i],a=r.mask,n=__rest(r,["mask"]);return objectIncludes(t,n)&&t.maskEquals(a)})):t.prototype.maskEquals.call(this,e)};e.prototype.typedValueEquals=function(t){var e;return Boolean((e=this.currentMask)==null?void 0:e.typedValueEquals(t))};return e}(Masked);MaskedDynamic.DEFAULTS=__assign(__assign({},Masked.DEFAULTS),{dispatch:function(t,e,i,r){if(!e.compiledMasks.length)return;var a=e.rawInputValue;var n=e.compiledMasks.map((function(n,o){var s=e.currentMask===n;var c=s?n.displayValue.length:n.nearestInputPos(n.displayValue.length,DIRECTION.FORCE_LEFT);if(n.rawInputValue!==a){n.reset();n.append(a,{raw:true})}else if(!s){n.remove(c)}n.append(t,e.currentMaskFlags(i));n.appendTail(r);return{index:o,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(c,n.nearestInputPos(n.displayValue.length,DIRECTION.FORCE_LEFT)))}}));n.sort((function(t,e){return e.weight-t.weight||e.totalInputPositions-t.totalInputPositions}));return e.compiledMasks[n[0].index]}});IMask.MaskedDynamic=MaskedDynamic;var MaskedEnum=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign({},e.DEFAULTS),i))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.enum,r=__rest(e,["enum"]);if(i){var a=i.map((function(t){return t.length}));var n=Math.min.apply(Math,a);var o=Math.max.apply(Math,a)-n;r.mask="*".repeat(n);if(o)r.mask+="["+"*".repeat(o)+"]";this.enum=i}t.prototype._update.call(this,r)};e.prototype._appendCharRaw=function(e,i){var r=this;if(i===void 0){i={}}var a=Math.min(this.nearestInputPos(0,DIRECTION.FORCE_RIGHT),this.value.length);var n=this.enum.filter((function(t){return r.matchValue(t,r.unmaskedValue+e,a)}));if(n.length){if(n.length===1){this._forEachBlocksInRange(0,this.value.length,(function(t,e){var a=n[0][e];if(e>=r.value.length||a===t.value)return;t.reset();t._appendChar(a,i)}))}var o=t.prototype._appendCharRaw.call(this,n[0][this.value.length],i);if(n.length===1){n[0].slice(this.unmaskedValue.length).split("").forEach((function(e){return o.aggregate(t.prototype._appendCharRaw.call(r,e))}))}return o}return new ChangeDetails({skip:!this.isComplete})};e.prototype.extractTail=function(t,e){if(t===void 0){t=0}return new ContinuousTailDetails("",t)};e.prototype.remove=function(e,i){var r=this;if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}if(e===i)return new ChangeDetails;var a=Math.min(t.prototype.nearestInputPos.call(this,0,DIRECTION.FORCE_RIGHT),this.value.length);var n;for(n=e;n>=0;--n){var o=this.enum.filter((function(t){return r.matchValue(t,r.value.slice(a,n),a)}));if(o.length>1)break}var s=t.prototype.remove.call(this,n,i);s.tailShift+=n-e;return s};Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.enum.indexOf(this.value)>=0},enumerable:false,configurable:true});return e}(MaskedPattern);MaskedEnum.DEFAULTS=__assign(__assign({},MaskedPattern.DEFAULTS),{matchValue:function(t,e,i){return t.indexOf(e,i)===i}});IMask.MaskedEnum=MaskedEnum;var MaskedFunction=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){t.prototype._update.call(this,__assign(__assign({},e),{validate:e.mask}))};return e}(Masked);IMask.MaskedFunction=MaskedFunction;var _MaskedNumber;var MaskedNumber=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign({},e.DEFAULTS),i))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){t.prototype._update.call(this,e);this._updateRegExps()};e.prototype._updateRegExps=function(){var t="^"+(this.allowNegative?"[+|\\-]?":"");var e="\\d*";var i=(this.scale?"("+escapeRegExp(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+e+i);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(escapeRegExp).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(escapeRegExp(this.thousandsSeparator),"g")};e.prototype._removeThousandsSeparators=function(t){return t.replace(this._thousandsSeparatorRegExp,"")};e.prototype._insertThousandsSeparators=function(t){var e=t.split(this.radix);e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return e.join(this.radix)};e.prototype.doPrepareChar=function(e,i){if(i===void 0){i={}}var r=t.prototype.doPrepareChar.call(this,this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),i),a=r[0],n=r[1];if(e&&!a)n.skip=true;if(a&&!this.allowPositive&&!this.value&&a!=="-")n.aggregate(this._appendChar("-"));return[a,n]};e.prototype._separatorsCount=function(t,e){if(e===void 0){e=false}var i=0;for(var r=0;r<t;++r){if(this._value.indexOf(this.thousandsSeparator,r)===r){++i;if(e)t+=this.thousandsSeparator.length}}return i};e.prototype._separatorsCountFromSlice=function(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)};e.prototype.extractInput=function(e,i,r){var a;if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}a=this._adjustRangeWithSeparators(e,i),e=a[0],i=a[1];return this._removeThousandsSeparators(t.prototype.extractInput.call(this,e,i,r))};e.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var r=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;var a=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);var n=this._value;this._value+=t;var o=this.number;var s=!isNaN(o);var c=false;if(s){var u=void 0;if(this.min!=null&&this.min<0&&this.number<this.min)u=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)u=this.max;if(u!=null){if(this.autofix){this._value=this.format(u,this).replace(e.UNMASKED_RADIX,this.radix);c||(c=n===this._value&&!i.tail)}else{s=false}}s&&(s=Boolean(this._value.match(this._numberRegExp)))}var d;if(!s){this._value=n;d=new ChangeDetails}else{d=new ChangeDetails({inserted:this._value.slice(n.length),rawInserted:c?"":t,skip:c})}this._value=this._insertThousandsSeparators(this._value);var l=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;var h=this._separatorsCountFromSlice(l);d.tailShift+=(h-a)*this.thousandsSeparator.length;return d};e.prototype._findSeparatorAround=function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1;var i=this.value.indexOf(this.thousandsSeparator,e);if(i<=t)return i}return-1};e.prototype._adjustRangeWithSeparators=function(t,e){var i=this._findSeparatorAround(t);if(i>=0)t=i;var r=this._findSeparatorAround(e);if(r>=0)e=r+this.thousandsSeparator.length;return[t,e]};e.prototype.remove=function(t,e){var i;if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}i=this._adjustRangeWithSeparators(t,e),t=i[0],e=i[1];var r=this.value.slice(0,t);var a=this.value.slice(e);var n=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+a));var o=this._separatorsCountFromSlice(r);return new ChangeDetails({tailShift:(o-n)*this.thousandsSeparator.length})};e.prototype.nearestInputPos=function(t,e){if(!this.thousandsSeparator)return t;switch(e){case DIRECTION.NONE:case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:{var i=this._findSeparatorAround(t-1);if(i>=0){var r=i+this.thousandsSeparator.length;if(t<r||this.value.length<=r||e===DIRECTION.FORCE_LEFT){return i}}break}case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:{var a=this._findSeparatorAround(t);if(a>=0){return a+this.thousandsSeparator.length}}}return t};e.prototype.doCommit=function(){if(this.value){var e=this.number;var i=e;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==e)this.unmaskedValue=this.format(i,this);var r=this.value;if(this.normalizeZeros)r=this._normalizeZeros(r);if(this.padFractionalZeros&&this.scale>0)r=this._padFractionalZeros(r);this._value=r}t.prototype.doCommit.call(this)};e.prototype._normalizeZeros=function(t){var e=this._removeThousandsSeparators(t).split(this.radix);e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(function(t,e,i,r){return e+r}));if(t.length&&!/\d$/.test(e[0]))e[0]=e[0]+"0";if(e.length>1){e[1]=e[1].replace(/0*$/,"");if(!e[1].length)e.length=1}return this._insertThousandsSeparators(e.join(this.radix))};e.prototype._padFractionalZeros=function(t){if(!t)return t;var e=t.split(this.radix);if(e.length<2)e.push("");e[1]=e[1].padEnd(this.scale,"0");return e.join(this.radix)};e.prototype.doSkipInvalid=function(i,r,a){if(r===void 0){r={}}var n=this.scale===0&&i!==this.thousandsSeparator&&(i===this.radix||i===e.UNMASKED_RADIX||this.mapToRadix.includes(i));return t.prototype.doSkipInvalid.call(this,i,r,a)&&!n};Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)},set:function(e){t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.parse(this.unmaskedValue,this)},set:function(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"number",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowNegative",{get:function(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowPositive",{get:function(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0},enumerable:false,configurable:true});e.prototype.typedValueEquals=function(i){return(t.prototype.typedValueEquals.call(this,i)||e.EMPTY_VALUES.includes(i)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(i===0&&this.value==="")};return e}(Masked);_MaskedNumber=MaskedNumber;MaskedNumber.UNMASKED_RADIX=".";MaskedNumber.EMPTY_VALUES=__spreadArray(__spreadArray([],Masked.EMPTY_VALUES,true),[0],false);MaskedNumber.DEFAULTS=__assign(__assign({},Masked.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[_MaskedNumber.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:function(t){return t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})}});IMask.MaskedNumber=MaskedNumber;var PIPE_TYPE={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function createPipe(t,e,i){if(e===void 0){e=PIPE_TYPE.MASKED}if(i===void 0){i=PIPE_TYPE.MASKED}var r=createMask(t);return function(t){return r.runIsolated((function(r){r[e]=t;return r[i]}))}}function pipe(t,e,i,r){return createPipe(e,i,r)(t)}IMask.PIPE_TYPE=PIPE_TYPE;IMask.createPipe=createPipe;IMask.pipe=pipe;var RepeatBlock=function(t){__extends(e,t);function e(e){return t.call(this,e)||this}Object.defineProperty(e.prototype,"repeatFrom",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"repeatTo",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity},enumerable:false,configurable:true});e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i,r,a;var n=normalizeOpts(e),o=n.repeat,s=__rest(n,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,s);var c=createMask(this._blockOpts);this.repeat=(i=(r=o!=null?o:c.repeat)!=null?r:this.repeat)!=null?i:Infinity;t.prototype._update.call(this,{mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((a=this._blocks)==null?void 0:a.length)||0,this.repeatFrom)),blocks:{m:c},eager:c.eager,overwrite:c.overwrite,skipInvalid:c.skipInvalid,lazy:c.lazy,placeholderChar:c.placeholderChar,displayChar:c.displayChar})};e.prototype._allocateBlock=function(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(createMask(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=new ChangeDetails;for(var r=(o=(s=this._mapPosToBlock(this.displayValue.length))==null?void 0:s.index)!=null?o:Math.max(this._blocks.length-1,0),a=void 0,n=void 0;a=(c=this._blocks[r])!=null?c:n=!n&&this._allocateBlock(r);++r){var o,s,c,u;var d=a._appendChar(t,__assign(__assign({},e),{_beforeTailState:(u=e._beforeTailState)==null||(u=u._blocks)==null?void 0:u[r]}));if(d.skip&&n){this._blocks.pop();this.mask=this.mask.slice(1);break}i.aggregate(d);if(d.consumed)break}return i};e.prototype._trimEmptyTail=function(t,e){var i,r;if(t===void 0){t=0}var a=Math.max(((i=this._mapPosToBlock(t))==null?void 0:i.index)||0,this.repeatFrom,0);var n;if(e!=null)n=(r=this._mapPosToBlock(e))==null?void 0:r.index;if(n==null)n=this._blocks.length-1;var o=0;for(var s=n;a<=s;--s,++o){if(this._blocks[s].unmaskedValue)break}if(o){this._blocks.splice(n-o+1,o);this.mask=this.mask.slice(o)}};e.prototype.reset=function(){t.prototype.reset.call(this);this._trimEmptyTail()};e.prototype.remove=function(e,i){if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}var r=t.prototype.remove.call(this,e,i);this._trimEmptyTail(e,i);return r};e.prototype.totalInputPositions=function(e,i){if(e===void 0){e=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return t.prototype.totalInputPositions.call(this,e,i)};Object.defineProperty(e.prototype,"state",{get:function(){return t.prototype.state},set:function(e){this._blocks.length=e._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);t.prototype.state=e},enumerable:false,configurable:true});return e}(MaskedPattern);IMask.RepeatBlock=RepeatBlock;try{globalThis.IMask=IMask}catch(t){}var cachedNativeValueDescriptor;function nativeValueDescriptor(){cachedNativeValueDescriptor!==null&&cachedNativeValueDescriptor!==void 0?cachedNativeValueDescriptor:cachedNativeValueDescriptor=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");return cachedNativeValueDescriptor}var NativeInputMaskElement=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.allowEvents=false;e._inputEventSuppressor=function(t){if(e.allowEvents)return;if(!t.isTrusted)t.stopImmediatePropagation()};return e}Object.defineProperty(e.prototype,"value",{get:function(){return nativeValueDescriptor().get.call(this.input)},set:function(t){nativeValueDescriptor().set.call(this.input,t)},enumerable:false,configurable:true});e.prototype.bindEvents=function(e){this.input.addEventListener("input",this._inputEventSuppressor,true);t.prototype.bindEvents.call(this,e)};e.prototype.unbindEvents=function(){this.input.removeEventListener("input",this._inputEventSuppressor,true);t.prototype.unbindEvents.call(this)};return e}(HTMLInputMaskElement);function getNativeValue(t){return nativeValueDescriptor().get.call(t)}var airDatepicker$1={exports:{}};var airDatepicker=airDatepicker$1.exports;var hasRequiredAirDatepicker;function requireAirDatepicker(){if(hasRequiredAirDatepicker)return airDatepicker$1.exports;hasRequiredAirDatepicker=1;(function(t,e){!function(e,i){t.exports=i()}(airDatepicker,(function(){return function(){var t;var e={d:function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:true,get:i[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},i={};e.d(i,{default:function(){return Y}});var r={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},a={classes:"",inline:false,locale:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:true,keyboardNav:true,selectedDates:false,container:"",isMobile:false,visible:false,position:"bottom left",offset:12,view:r.days,minView:r.days,showOtherMonths:true,selectOtherMonths:true,moveToOtherMonthsOnSelect:true,showOtherYears:true,selectOtherYears:true,moveToOtherYearsOnSelect:true,minDate:"",maxDate:"",disableNavWhenOutOfRange:true,multipleDates:false,multipleDatesSeparator:", ",range:false,dynamicRange:true,buttons:false,monthsField:"monthsShort",showEvent:"focus",autoClose:false,fixedHeight:false,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:false,onlyTimepicker:false,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:false,onChangeViewDate:false,onChangeView:false,onRenderCell:false,onShow:false,onHide:false,onClickDayName:false};function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"string"==typeof t?e.querySelector(t):t}function o(){var t;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.tagName,r=i===void 0?"div":i,a=e.className,n=a===void 0?"":a,o=e.innerHtml,c=o===void 0?"":o,u=e.id,d=u===void 0?"":u,l=e.attrs,h=l===void 0?{}:l,f=document.createElement(r);return n&&(t=f.classList).add.apply(t,n.split(" ")),d&&(f.id=d),c&&(f.innerHTML=c),h&&s(f,h),f}function s(t,e){for(var i=0,r=Object.entries(e);i<r.length;i++){var a=r[i],n=a[0],o=a[1];void 0!==o&&t.setAttribute(n,o)}return t}function c(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function u(t){var e=t.getHours(),i=d(e),r=i.hours,a=i.dayPeriod;return{year:t.getFullYear(),month:t.getMonth(),fullMonth:t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,date:t.getDate(),fullDate:t.getDate()<10?"0"+t.getDate():t.getDate(),day:t.getDay(),hours:e,fullHours:l(e),hours12:r,dayPeriod:a,fullHours12:l(r),minutes:t.getMinutes(),fullMinutes:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes()}}function d(t){return{dayPeriod:t>11?"pm":"am",hours:t%12==0?12:t%12}}function l(t){return t<10?"0"+t:t}function h(t){var e=10*Math.floor(t.getFullYear()/10);return[e,e+9]}function f(){var t=[];for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return i.forEach((function(e){if("object"==typeof e)for(var i in e)e[i]&&t.push(i);else e&&t.push(e)})),t.join(" ")}function p(t,e){var i;var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.days;if(!t||!e)return false;var n=u(t),o=u(e);return(i={},i[r.days]=n.date===o.date&&n.month===o.month&&n.year===o.year,i[r.months]=n.month===o.month&&n.year===o.year,i[r.years]=n.year===o.year,i)[a]}function v(t,e,i){var r=k(t,false).getTime(),a=k(e,false).getTime();return i?r>=a:r>a}function b(t,e){return!v(t,e,true)}function k(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=new Date(t.getTime());return"boolean"!=typeof e||e||function(t){t.setHours(0,0,0,0)}(i),i}function m(t,e,i){t.length?t.forEach((function(t){t.addEventListener(e,i)})):t.addEventListener(e,i)}function g(t,e){return!(!t||t===document||t instanceof DocumentFragment)&&(t.matches(e)?t:g(t.parentNode,e))}function y(t,e,i){return t>i?i:t<e?e:t}function D(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return i.filter((function(t){return t})).forEach((function(e){for(var i=0,r=Object.entries(e);i<r.length;i++){var a=r[i],n=a[0],o=a[1];if(void 0!==o&&"[object Object]"===o.toString()){var s=void 0!==t[n]?t[n].toString():void 0,c=o.toString(),u=Array.isArray(o)?[]:{};t[n]=t[n]?s!==c?u:t[n]:u,D(t[n],o)}else t[n]=o}})),t}function w(t){var e=t;return t instanceof Date||("string"==typeof t&&/^\d{4}-\d{2}-\d{2}$/.test(t)&&(t+="T00:00:00"),e=new Date(t)),isNaN(e.getTime())&&(console.log('Unable to convert value "'.concat(t,'" to Date object')),e=false),e}function A(t){var e="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+e+")("+t+")($|<|"+e+")","g")}function _(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var C=function(){function t(){var t=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.type,r=e.date,a=e.dp,n=e.opts,o=e.body;_(this,"focus",(function(){t.$cell.classList.add("-focus-"),t.focused=true})),_(this,"removeFocus",(function(){t.$cell.classList.remove("-focus-"),t.focused=false})),_(this,"select",(function(){t.$cell.classList.add("-selected-"),t.selected=true})),_(this,"removeSelect",(function(){t.$cell.classList.remove("-selected-","-range-from-","-range-to-"),t.selected=false})),_(this,"onChangeSelectedDate",(function(){t.isDisabled||(t._handleSelectedStatus(),t.opts.range&&t._handleRangeStatus())})),_(this,"onChangeFocusDate",(function(e){if(!e)return void(t.focused&&t.removeFocus());var i=p(e,t.date,t.type);i?t.focus():!i&&t.focused&&t.removeFocus(),t.opts.range&&t._handleRangeStatus()})),_(this,"render",(function(){return t.$cell.innerHTML=t._getHtml(),t._handleClasses(),t.$cell})),this.type=i,this.singleType=this.type.slice(0,-1),this.date=r,this.dp=a,this.opts=n,this.body=o,this.customData=false,this.init()}t.prototype.init=function(){var t,e;var i=this.opts.onRenderCell;i&&(this.customData=i({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),null!==(t=this.customData)&&void 0!==t&&t.disabled?this.dp.disableDate(this.date):false===(null===(e=this.customData)||void 0===e?void 0:e.disabled)&&this.dp.enableDate(this.date)};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype.unbindDatepickerEvents=function(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype._createElement=function(){var t;var e=u(this.date),i=e.year,r=e.month,a=e.fullMonth,n=e.date,s=e.fullDate,c=(null===(t=this.customData)||void 0===t?void 0:t.attrs)||{};this.$cell=o({attrs:__assign({"data-year":i,"data-month":r,"data-date":n,"data-iso-date":"".concat(i,"-").concat(a,"-").concat(s)},c)}),this.$cell.adpCell=this};t.prototype._getClassName=function(){var t;var e=new Date,i=this.opts,a=i.selectOtherMonths,n=i.selectOtherYears,o=this.dp,s=o.minDate,c=o.maxDate,d=o.isDateDisabled,l=u(this.date).day,h=this._isOutOfMinMaxRange(),v=d(this.date),b=f("air-datepicker-cell","-".concat(this.singleType,"-"),{"-current-":p(e,this.date,this.type),"-min-date-":s&&p(s,this.date,this.type),"-max-date-":c&&p(c,this.date,this.type)}),k="";switch(this.type){case r.days:k=f({"-weekend-":this.dp.isWeekend(l),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!a||h||v});break;case r.months:k=f({"-disabled-":h});break;case r.years:k=f({"-other-decade-":this.isOtherDecade,"-disabled-":h||this.isOtherDecade&&!n})}return f(b,k,null===(t=this.customData)||void 0===t?void 0:t.classes).split(" ")};t.prototype._getHtml=function(){var t;var e=u(this.date),i=e.year,a=e.month,n=e.date,o=this.opts,s=o.showOtherMonths,c=o.showOtherYears;if(null!==(t=this.customData)&&void 0!==t&&t.html)return this.customData.html;switch(this.type){case r.days:return!s&&this.isOtherMonth?"":n;case r.months:return this.dp.locale[this.opts.monthsField][a];case r.years:return!c&&this.isOtherDecade?"":i}};t.prototype._isOutOfMinMaxRange=function(){var t=this.dp,e=t.minDate,i=t.maxDate,a=this,n=a.type,o=a.date,s=u(o),c=s.month,d=s.year,l=s.date,h=n===r.days,f=n===r.years,p=!!e&&new Date(d,f?e.getMonth():c,h?l:e.getDate()),k=!!i&&new Date(d,f?i.getMonth():c,h?l:i.getDate());return e&&i?b(p,e)||v(k,i):e?b(p,e):i?v(k,i):void 0};t.prototype.destroy=function(){this.unbindDatepickerEvents()};t.prototype._handleRangeStatus=function(){var t;var e=this.dp,i=e.selectedDates,r=e.focusDate,a=e.rangeDateTo,n=e.rangeDateFrom,o=i.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!o)return;var s=n,c=a;if(1===o&&r){var u=v(r,i[0]);s=u?i[0]:r,c=u?r:i[0]}var d=f({"-in-range-":s&&c&&(l=this.date,h=s,k=c,v(l,h)&&b(l,k)),"-range-from-":s&&p(this.date,s,this.type),"-range-to-":c&&p(this.date,c,this.type)});var l,h,k;d&&(t=this.$cell.classList).add.apply(t,d.split(" "))};t.prototype._handleSelectedStatus=function(){var t=this.dp._checkIfDateIsSelected(this.date,this.type);t?this.select():!t&&this.selected&&this.removeSelect()};t.prototype._handleInitialFocusStatus=function(){p(this.dp.focusDate,this.date,this.type)&&this.focus()};t.prototype._handleClasses=function(){var t;this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),(t=this.$cell.classList).add.apply(t,this._getClassName())};Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.$cell.matches(".-disabled-")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherMonth",{get:function(){return this.dp.isOtherMonth(this.date)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherDecade",{get:function(){return this.dp.isOtherDecade(this.date)},enumerable:false,configurable:true});return t}();function E(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var x=(t={},t[r.days]='<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -'.concat(r.days,'-"></div>'),t[r.months]='<div class="air-datepicker-body--cells -'.concat(r.months,'-"></div>'),t[r.years]='<div class="air-datepicker-body--cells -'.concat(r.years,'-"></div>'),t);var O=".air-datepicker-cell";var I=function(){function t(t){var e=this;var i=t.dp,a=t.type,n=t.opts;E(this,"handleClick",(function(t){var i=t.target.closest(O).adpCell;if(i.isDisabled)return;if(!e.dp.isMinViewReached)return void e.dp.down();var r=e.dp._checkIfDateIsSelected(i.date,i.type);r?e.dp._handleAlreadySelectedDates(r,i.date):e.dp.selectDate(i.date)})),E(this,"handleDayNameClick",(function(t){var i=t.target.getAttribute("data-day-index");e.opts.onClickDayName({dayIndex:Number(i),datepicker:e.dp})})),E(this,"onChangeCurrentView",(function(t){t!==e.type?e.hide():(e.show(),e.render())})),E(this,"onMouseOverCell",(function(t){var i=g(t.target,O);e.dp.setFocusDate(!!i&&i.adpCell.date)})),E(this,"onMouseOutCell",(function(){e.dp.setFocusDate(false)})),E(this,"onClickBody",(function(t){var i=e.opts.onClickDayName,r=t.target;r.closest(O)&&e.handleClick(t),i&&r.closest(".air-datepicker-body--day-name")&&e.handleDayNameClick(t)})),E(this,"onMouseDown",(function(t){e.pressed=true;var i=g(t.target,O),r=i&&i.adpCell;p(r.date,e.dp.rangeDateFrom)&&(e.rangeFromFocused=true),p(r.date,e.dp.rangeDateTo)&&(e.rangeToFocused=true)})),E(this,"onMouseMove",(function(t){if(!e.pressed||!e.dp.isMinViewReached)return;t.preventDefault();var i=g(t.target,O),r=i&&i.adpCell,a=e.dp,n=a.selectedDates,o=a.rangeDateTo,s=a.rangeDateFrom;if(!r||r.isDisabled)return;var c=r.date;if(2===n.length){if(e.rangeFromFocused&&!v(c,o)){var d=u(s),l=d.hours,h=d.minutes;c.setHours(l),c.setMinutes(h),e.dp.rangeDateFrom=c,e.dp.replaceDate(s,c)}if(e.rangeToFocused&&!b(c,s)){var f=u(o),p=f.hours,k=f.minutes;c.setHours(p),c.setMinutes(k),e.dp.rangeDateTo=c,e.dp.replaceDate(o,c)}}})),E(this,"onMouseUp",(function(){e.pressed=false,e.rangeFromFocused=false,e.rangeToFocused=false})),E(this,"onChangeViewDate",(function(t,i){if(!e.isVisible)return;var a=h(t),n=h(i);switch(e.dp.currentView){case r.days:if(p(t,i,r.months))return;break;case r.months:if(p(t,i,r.years))return;break;case r.years:if(a[0]===n[0]&&a[1]===n[1])return}e.render()})),E(this,"render",(function(){e.destroyCells(),e._generateCells(),e.cells.forEach((function(t){e.$cells.appendChild(t.render())}))})),this.dp=i,this.type=a,this.opts=n,this.cells=[],this.$el="",this.pressed=false,this.isVisible=true,this.init()}t.prototype.init=function(){this._buildBaseHtml(),this.type===r.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._bindEvents=function(){var t=this.opts,e=t.range,i=t.dynamicRange;m(this.$el,"mouseover",this.onMouseOverCell),m(this.$el,"mouseout",this.onMouseOutCell),m(this.$el,"click",this.onClickBody),e&&i&&(m(this.$el,"mousedown",this.onMouseDown),m(this.$el,"mousemove",this.onMouseMove),m(window.document,"mouseup",this.onMouseUp))};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView)};t.prototype._buildBaseHtml=function(){this.$el=o({className:"air-datepicker-body -".concat(this.type,"-"),innerHtml:x[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)};t.prototype._getDayNamesHtml=function(){var t;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dp.locale.firstDay,i="",a=this.dp.isWeekend,n=this.opts.onClickDayName,o=e,s=0;for(;s<7;){var c=o%7;i+='<div class="'.concat(f("air-datepicker-body--day-name",(t={},t[r.cssClassWeekend]=a(c),t["-clickable-"]=!!n,t)),"\" data-day-index='").concat(c,"'>").concat(this.dp.locale.daysMin[c],"</div>"),s++,o++}return i};t.prototype.renderDayNames=function(){this.$names.innerHTML=this._getDayNamesHtml()};t.prototype._generateCell=function(t){var e=this,i=e.type,r=e.dp,a=e.opts;return new C({type:i,dp:r,opts:a,date:t,body:this})};t.prototype._generateCells=function(){var e=this;t.getDatesFunction(this.type)(this.dp,(function(t){e.cells.push(e._generateCell(t))}))};t.prototype.show=function(){this.isVisible=true,this.$el.classList.remove("-hidden-")};t.prototype.hide=function(){this.isVisible=false,this.$el.classList.add("-hidden-")};t.prototype.destroyCells=function(){this.cells.forEach((function(t){return t.destroy()})),this.cells=[],this.$cells.innerHTML=""};t.prototype.destroy=function(){this.destroyCells(),this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView)};t.getDaysDates=function(t,e){var i=t.viewDate,r=t.opts.fixedHeight,a=t.locale.firstDay,n=c(i),o=u(i),s=o.year,d=o.month,l=new Date(s,d,1),h=new Date(s,d,n),f=l.getDay()-a,p=6-h.getDay()+a;f=f<0?f+7:f,p=p>6?p-7:p;var v=function(t,e){var i=u(t),r=i.year,a=i.month,n=i.date;return new Date(r,a,n-e)}(l,f),b=n+f+p,k=v.getDate(),m=u(v),g=m.year,y=m.month,D=0;r&&(b=42);var w=[];for(;D<b;){var A=new Date(g,y,k+D);e&&e(A),w.push(A),D++}return w};t.getMonthsDates=function(t,e){var i=t.parsedViewDate.year,r=0,a=[];for(;r<12;){var n=new Date(i,r);a.push(n),e&&e(n),r++}return a};t.getYearsDates=function(t,e){var i=h(t.viewDate),r=i[0]-1,a=i[1]+1,n=r,o=[];for(;n<=a;){var s=new Date(n,0);o.push(s),e&&e(s),n++}return o};t.getDatesFunction=function(){var e;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.days;return(e={},e[r.days]=t.getDaysDates,e[r.months]=t.getMonthsDates,e[r.years]=t.getYearsDates,e)[i]};return t}();function F(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var T=function(){function t(t){var e=this;var i=t.dp,r=t.opts;F(this,"onClickNav",(function(t){var i=g(t.target,".air-datepicker-nav--action");if(!i)return;var r=i.dataset.action;e.dp[r]()})),F(this,"onChangeViewDate",(function(){e.render(),e._resetNavStatus(),e.handleNavStatus()})),F(this,"onChangeCurrentView",(function(){e.render(),e._resetNavStatus(),e.handleNavStatus()})),F(this,"onClickNavTitle",(function(){e.dp.isFinalView||e.dp.up()})),F(this,"update",(function(){var t=e.opts,i=t.prevHtml,r=t.nextHtml;e.$prev.innerHTML=i,e.$next.innerHTML=r,e._resetNavStatus(),e.render(),e.handleNavStatus()})),F(this,"renderDelay",(function(){setTimeout(e.render)})),F(this,"render",(function(){e.$title.innerHTML=e._getTitle(),function(t,e){for(var i in e)e[i]?t.classList.add(i):t.classList.remove(i)}(e.$title,{"-disabled-":e.dp.isFinalView})})),this.dp=i,this.opts=r,this.init()}t.prototype.init=function(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._defineDOM=function(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)};t.prototype._bindEvents=function(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(r.eventChangeTime,this.render))};t.prototype.destroy=function(){this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(r.eventChangeTime,this.render))};t.prototype._createElement=function(){this.$el=o({tagName:"nav",className:"air-datepicker-nav"})};t.prototype._getTitle=function(){var t=this,e=t.dp,i=t.opts,r=i.navTitles[e.currentView];return"function"==typeof r?r(e):e.formatDate(e.viewDate,r)};t.prototype.handleNavStatus=function(){var t=this.opts.disableNavWhenOutOfRange,e=this.dp,i=e.minDate,a=e.maxDate;if(!i&&!a||!t)return;var n=this.dp.parsedViewDate,o=n.year,s=n.month,c=!!i&&u(i),d=!!a&&u(a);switch(this.dp.currentView){case r.days:i&&c.month>=s&&c.year>=o&&this._disableNav("prev"),a&&d.month<=s&&d.year<=o&&this._disableNav("next");break;case r.months:i&&c.year>=o&&this._disableNav("prev"),a&&d.year<=o&&this._disableNav("next");break;case r.years:{var l=h(this.dp.viewDate);i&&c.year>=l[0]&&this._disableNav("prev"),a&&d.year<=l[1]&&this._disableNav("next");break}}};t.prototype._disableNav=function(t){n('[data-action="'+t+'"]',this.$el).classList.add("-disabled-")};t.prototype._resetNavStatus=function(){!function(t){var e;for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];t.length?t.forEach((function(t){var e;(e=t.classList).remove.apply(e,r)})):(e=t.classList).remove.apply(e,r)}(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")};t.prototype._buildBaseHtml=function(){var t=this.opts,e=t.prevHtml,i=t.nextHtml;this.$el.innerHTML='<div class="air-datepicker-nav--action" data-action="prev">'.concat(e,'</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">').concat(i,"</div>")};Object.defineProperty(t.prototype,"isNavIsFunction",{get:function(){var t=this.opts.navTitles;return Object.keys(t).find((function(e){return"function"==typeof t[e]}))},enumerable:false,configurable:true});return t}();var M={today:{content:function(t){return t.locale.today},onClick:function(t){return t.setViewDate(new Date)}},clear:{content:function(t){return t.locale.clear},onClick:function(t){return t.clear()}}};var j=function(){function t(t){var e=t.dp,i=t.opts;this.dp=e,this.opts=i,this.init()}t.prototype.init=function(){this.createElement(),this.render()};t.prototype.createElement=function(){this.$el=o({className:"air-datepicker-buttons"})};t.prototype.destroy=function(){this.$el.parentNode.removeChild(this.$el)};t.prototype.clearHtml=function(){return this.$el.innerHTML="",this};t.prototype.generateButtons=function(){var t=this;var e=this.opts.buttons;Array.isArray(e)||(e=[e]),e.forEach((function(e){var i=e;"string"==typeof e&&M[e]&&(i=M[e]);var r=t.createButton(i);i.onClick&&t.attachEventToButton(r,i.onClick),t.$el.appendChild(r)}))};t.prototype.attachEventToButton=function(t,e){var i=this;t.addEventListener("click",(function(){e(i.dp)}))};t.prototype.createButton=function(t){var e=t.content,i=t.className,r=t.tagName,a=r===void 0?"button":r,n=t.attrs,s=n===void 0?{}:n;return o({tagName:a,innerHtml:"<span tabindex='-1'>".concat("function"==typeof e?e(this.dp):e,"</span>"),className:f("air-datepicker-button",i),attrs:s})};t.prototype.render=function(){this.generateButtons()};return t}();function B(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var R=function(){function t(){var t=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.opts,a=e.dp;B(this,"toggleTimepickerIsActive",(function(e){t.dp.timepickerIsActive=e})),B(this,"onChangeSelectedDate",(function(e){var i=e.date,r=e.updateTime,a=r===void 0?false:r;i&&(t.setMinMaxTime(i),t.setCurrentTime(!!a&&i),t.addTimeToDate(i))})),B(this,"onChangeLastSelectedDate",(function(e){e&&(t.setTime(e),t.render())})),B(this,"onChangeInputRange",(function(e){var i=e.target;t[i.getAttribute("name")]=i.value,t.updateText(),t.dp.trigger(r.eventChangeTime,{hours:t.hours,minutes:t.minutes})})),B(this,"onMouseEnterLeave",(function(e){var i=e.target.getAttribute("name"),r=t.$minutesText;"hours"===i&&(r=t.$hoursText),r.classList.toggle("-focus-")})),B(this,"onFocus",(function(){t.toggleTimepickerIsActive(true)})),B(this,"onBlur",(function(){t.toggleTimepickerIsActive(false)})),this.opts=i,this.dp=a;var n=this.dp.locale.timeFormat;n&&(n.match(A("h"))||n.match(A("hh")))&&(this.ampm=true),this.init()}t.prototype.init=function(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()};t.prototype.bindDatepickerEvents=function(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)};t.prototype.bindDOMEvents=function(){var t="input";navigator.userAgent.match(/trident/gi)&&(t="change"),m(this.$ranges,t,this.onChangeInputRange),m(this.$ranges,"mouseenter",this.onMouseEnterLeave),m(this.$ranges,"mouseleave",this.onMouseEnterLeave),m(this.$ranges,"focus",this.onFocus),m(this.$ranges,"mousedown",this.onFocus),m(this.$ranges,"blur",this.onBlur)};t.prototype.createElement=function(){this.$el=o({className:f("air-datepicker-time",{"-am-pm-":this.dp.ampm})})};t.prototype.destroy=function(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)};t.prototype.buildHtml=function(){var t=this,e=t.ampm,i=t.hours,r=t.displayHours,a=t.minutes,n=t.minHours,o=t.minMinutes,s=t.maxHours,c=t.maxMinutes,u=t.dayPeriod,d=t.opts,h=d.hoursStep,f=d.minutesStep;this.$el.innerHTML='<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">'.concat(l(r),'</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">').concat(l(a),"</span> ")+(e?"<span class='air-datepicker-time--current-ampm'>".concat(u,"</span>"):"")+'</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">'+' <input type="range" name="hours" value="'.concat(i,'" min="').concat(n,'" max="').concat(s,'" step="').concat(h,'"/> </div> <div class="air-datepicker-time--row">')+' <input type="range" name="minutes" value="'.concat(a,'" min="').concat(o,'" max="').concat(c,'" step="').concat(f,'"/> </div></div>')};t.prototype.defineDOM=function(){var t=this;var e=function(e){return n(e,t.$el)};this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=e('[name="hours"]'),this.$minutes=e('[name="minutes"]'),this.$hoursText=e(".air-datepicker-time--current-hours"),this.$minutesText=e(".air-datepicker-time--current-minutes"),this.$ampm=e(".air-datepicker-time--current-ampm")};t.prototype.setTime=function(t){this.setMinMaxTime(t),this.setCurrentTime(t)};t.prototype.addTimeToDate=function(t){t&&(t.setHours(this.hours),t.setMinutes(this.minutes))};t.prototype.setMinMaxTime=function(t){if(this.setMinMaxTimeFromOptions(),t){var e=this.dp,i=e.minDate,r=e.maxDate;i&&p(t,i)&&this.setMinTimeFromMinDate(i),r&&p(t,r)&&this.setMaxTimeFromMaxDate(r)}};t.prototype.setCurrentTime=function(t){var e=t?u(t):this,i=e.hours,r=e.minutes;this.hours=y(i,this.minHours,this.maxHours),this.minutes=y(r,this.minMinutes,this.maxMinutes)};t.prototype.setMinMaxTimeFromOptions=function(){var t=this.opts,e=t.minHours,i=t.minMinutes,r=t.maxHours,a=t.maxMinutes;this.minHours=y(e,0,23),this.minMinutes=y(i,0,59),this.maxHours=y(r,0,23),this.maxMinutes=y(a,0,59)};t.prototype.setMinTimeFromMinDate=function(t){var e=this.dp.lastSelectedDate;this.minHours=t.getHours(),e&&e.getHours()>t.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=t.getMinutes()};t.prototype.setMaxTimeFromMaxDate=function(t){var e=this.dp.lastSelectedDate;this.maxHours=t.getHours(),e&&e.getHours()<t.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=t.getMinutes()};t.prototype.updateSliders=function(){s(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,s(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes};t.prototype.updateText=function(){this.$hoursText.innerHTML=l(this.displayHours),this.$minutesText.innerHTML=l(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)};Object.defineProperty(t.prototype,"hours",{get:function(){return this._hours},set:function(t){this._hours=t;var e=d(t),i=e.hours,r=e.dayPeriod;this.displayHours=this.ampm?i:t,this.dayPeriod=r},enumerable:false,configurable:true});t.prototype.render=function(){this.updateSliders(),this.updateText()};return t}();function N(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var S=function(){function t(t){var e=this;var i=t.dp,r=t.opts;N(this,"pressedKeys",new Set),N(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],function(t){return t.month++}],[[["Control","ArrowLeft"],["Control","ArrowDown"]],function(t){return t.month--}],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],function(t){return t.year++}],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],function(t){return t.year--}],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],function(t){return t.year+=10}],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],function(t){return t.year-=10}],[["Control","Shift","ArrowUp"],function(t,e){return e.up()}]])),N(this,"handleHotKey",(function(t){var i=e.hotKeys.get(t),r=u(e.getInitialFocusDate());i(r,e.dp);var a=r.year,n=r.month,o=r.date,s=c(new Date(a,n));s<o&&(o=s);var d=e.dp.getClampedDate(new Date(a,n,o));e.dp.setFocusDate(d,{viewDateTransition:true})})),N(this,"isHotKeyPressed",(function(){var t=false,i=e.pressedKeys.size,r=function(t){return e.pressedKeys.has(t)};var a=function(e){if(t)return"break";if(Array.isArray(e[0]))e.forEach((function(a){t||i!==a.length||(t=a.every(r)&&e)}));else{if(i!==e.length)return"continue";t=e.every(r)&&e}};for(var n=0,o=e.hotKeys;n<o.length;n++){var s=o[n][0];var c=a(s);if(c==="break")break}return t})),N(this,"isArrow",(function(t){return t>=37&&t<=40})),N(this,"onKeyDown",(function(t){if(!e.dp.visible&&!e.dp.treatAsInline)return;var i=t.key,r=t.which,a=e,n=a.dp,o=a.dp.focusDate,s=a.opts;e.registerKey(i);var c=e.isHotKeyPressed();if(c)return t.preventDefault(),void e.handleHotKey(c);if(e.isArrow(r))return t.preventDefault(),void e.focusNextCell(i);if("Enter"===i){if(n.currentView!==s.minView)return void n.down();if(o){var u=n._checkIfDateIsSelected(o);return void(u?n._handleAlreadySelectedDates(u,o):n.selectDate(o))}}"Escape"===i&&e.dp.hide()})),N(this,"onKeyUp",(function(t){e.removeKey(t.key)})),this.dp=i,this.opts=r,this.init()}t.prototype.init=function(){this.bindKeyboardEvents()};t.prototype.bindKeyboardEvents=function(){var t=this.dp.$el;t.addEventListener("keydown",this.onKeyDown),t.addEventListener("keyup",this.onKeyUp)};t.prototype.destroy=function(){var t=this.dp.$el;t.removeEventListener("keydown",this.onKeyDown),t.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null};t.prototype.getInitialFocusDate=function(){var t=this.dp,e=t.focusDate,i=t.currentView,a=t.selectedDates,n=t.parsedViewDate,o=n.year,s=n.month,c=e||a[a.length-1];if(!c)switch(i){case r.days:c=new Date(o,s,(new Date).getDate());break;case r.months:c=new Date(o,s,1);break;case r.years:c=new Date(o,0,1)}return c};t.prototype.focusNextCell=function(t){var e=this.getInitialFocusDate(),i=this.dp.currentView,a=r.days,n=r.months,o=r.years,s=u(e),c=s.year,d=s.month,l=s.date;switch(t){case"ArrowLeft":i===a&&(l-=1),i===n&&(d-=1),i===o&&(c-=1);break;case"ArrowUp":i===a&&(l-=7),i===n&&(d-=3),i===o&&(c-=4);break;case"ArrowRight":i===a&&(l+=1),i===n&&(d+=1),i===o&&(c+=1);break;case"ArrowDown":i===a&&(l+=7),i===n&&(d+=3),i===o&&(c+=4)}var h=this.dp.getClampedDate(new Date(c,d,l));this.dp.setFocusDate(h,{viewDateTransition:true})};t.prototype.registerKey=function(t){this.pressedKeys.add(t)};t.prototype.removeKey=function(t){this.pressedKeys.delete(t)};return t}();var P={on:function(t,e){this.__events||(this.__events={}),this.__events[t]?this.__events[t].push(e):this.__events[t]=[e]},off:function(t,e){this.__events&&this.__events[t]&&(this.__events[t]=this.__events[t].filter((function(t){return t!==e})))},removeAllEvents:function(){this.__events={}},trigger:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];this.__events&&this.__events[t]&&this.__events[t].forEach((function(t){t.apply(void 0,i)}))}};function z(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var V="",H="",L=false;var Y=function(){function t(t,e){var i=this;var s=this;if(z(this,"viewIndexes",[r.days,r.months,r.years]),z(this,"next",(function(){var t=i.parsedViewDate,e=t.year,a=t.month;switch(i.currentView){case r.days:i.setViewDate(new Date(e,a+1,1));break;case r.months:i.setViewDate(new Date(e+1,a,1));break;case r.years:i.setViewDate(new Date(e+10,0,1))}})),z(this,"prev",(function(){var t=i.parsedViewDate,e=t.year,a=t.month;switch(i.currentView){case r.days:i.setViewDate(new Date(e,a-1,1));break;case r.months:i.setViewDate(new Date(e-1,a,1));break;case r.years:i.setViewDate(new Date(e-10,0,1))}})),z(this,"_finishHide",(function(){i.hideAnimation=false,i._destroyComponents(),i.$container.removeChild(i.$datepicker)})),z(this,"setPosition",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("function"==typeof(t=t||s.opts.position))return void(s.customHide=t({$datepicker:s.$datepicker,$target:s.$el,$pointer:s.$pointer,isViewChange:e,done:s._finishHide}));var i,r,a=s.opts.isMobile,n=s.$el.getBoundingClientRect(),o=s.$el.getBoundingClientRect(),c=s.$datepicker.offsetParent,u=s.$el.offsetParent,d=s.$datepicker.getBoundingClientRect(),l=t.split(" "),h=window.scrollY,f=window.scrollX,p=s.opts.offset,v=l[0],b=l[1];if(a)s.$datepicker.style.cssText="left: 50%; top: 50%";else{if(c===u&&c!==document.body&&(o={top:s.$el.offsetTop,left:s.$el.offsetLeft,width:n.width,height:s.$el.offsetHeight},h=0,f=0),c!==u&&c!==document.body){var k=c.getBoundingClientRect();o={top:n.top-k.top,left:n.left-k.left,width:n.width,height:n.height},h=0,f=0}switch(v){case"top":i=o.top-d.height-p;break;case"right":r=o.left+o.width+p;break;case"bottom":i=o.top+o.height+p;break;case"left":r=o.left-d.width-p}switch(b){case"top":i=o.top;break;case"right":r=o.left+o.width-d.width;break;case"bottom":i=o.top+o.height-d.height;break;case"left":r=o.left;break;case"center":/left|right/.test(v)?i=o.top+o.height/2-d.height/2:r=o.left+o.width/2-d.width/2}s.$datepicker.style.cssText="left: ".concat(r+f,"px; top: ").concat(i+h,"px")}})),z(this,"_setInputValue",(function(){var t=i,e=t.opts,r=t.$altField,a=t.locale.dateFormat,n=e.altFieldDateFormat,o=e.altField;o&&r&&(r.value=i._getInputValue(n)),i.$el.value=i._getInputValue(a),i.$el.dispatchEvent(new Event("change"))})),z(this,"_getInputValue",(function(t){var e=i,r=e.selectedDates,a=e.opts,n=a.multipleDates,o=a.multipleDatesSeparator;if(!r.length)return"";var s="function"==typeof t,c=s?t(n?r:r[0]):r.map((function(e){return i.formatDate(e,t)}));return c=s?c:c.join(o),c})),z(this,"_checkIfDateIsSelected",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.days,i=false;return s.selectedDates.some((function(r){var a=p(t,r,e);return i=a&&r,a})),i})),z(this,"_scheduleCallAfterTransition",(function(t){i._cancelScheduledCall(),t&&t(false),i._onTransitionEnd=function(){t&&t(true)},i.$datepicker.addEventListener("transitionend",i._onTransitionEnd,{once:true})})),z(this,"_cancelScheduledCall",(function(){i.$datepicker.removeEventListener("transitionend",i._onTransitionEnd)})),z(this,"setViewDate",(function(t){if(!((t=w(t))instanceof Date))return;if(p(t,i.viewDate))return;var e=i.viewDate;i.viewDate=t;var a=i.opts.onChangeViewDate;if(a){var n=i.parsedViewDate,o=n.month,s=n.year;a({month:o,year:s,decade:i.curDecade})}i.trigger(r.eventChangeViewDate,t,e)})),z(this,"setFocusDate",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t||(t=w(t))instanceof Date)&&(s.focusDate=t,s.trigger(r.eventChangeFocusDate,t,e))})),z(this,"setCurrentView",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s.viewIndexes.includes(t)){if(s.currentView=t,s.elIsInput&&s.visible&&s.setPosition(void 0,true),s.trigger(r.eventChangeCurrentView,t),!s.views[t]){var i=s.views[t]=new I({dp:s,opts:s.opts,type:t});s.shouldUpdateDOM&&s.$content.appendChild(i.$el)}s.opts.onChangeView&&!e.silent&&s.opts.onChangeView(t)}})),z(this,"_updateLastSelectedDate",(function(t){i.lastSelectedDate=t,i.trigger(r.eventChangeLastSelectedDate,t)})),z(this,"destroy",(function(){if(i.isDestroyed)return;var t=i.opts,e=t.showEvent,r=t.isMobile,a=i.$datepicker.parentNode;a&&a.removeChild(i.$datepicker),i.$el.removeEventListener(e,i._onFocus),i.$el.removeEventListener("blur",i._onBlur),window.removeEventListener("resize",i._onResize),r&&i._removeMobileAttributes(),i.keyboardNav&&i.keyboardNav.destroy(),i.views=null,i.nav=null,i.$datepicker=null,i.opts={},i.$customContainer=null,i.viewDate=null,i.focusDate=null,i.selectedDates=[],i.rangeDateFrom=null,i.rangeDateTo=null,i.isDestroyed=true})),z(this,"update",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=D({},s.opts),a=e.silent;D(s.opts,t);var n=s.opts,o=n.timepicker,c=n.buttons,u=n.range,d=n.selectedDates,l=n.isMobile,h=s.visible||s.treatAsInline;s._createMinMaxDates(),s._limitViewDateByMaxMinDates(),s._handleLocale(),d&&(s.selectedDates=[],s.selectDate(d,{silent:a})),t.view&&s.setCurrentView(t.view,{silent:a}),s._setInputValue(),i.range&&!u?(s.rangeDateTo=false,s.rangeDateFrom=false):!i.range&&u&&s.selectedDates.length&&(s.rangeDateFrom=s.selectedDates[0],s.rangeDateTo=s.selectedDates[1]),i.timepicker&&!o?(h&&s.timepicker.destroy(),s.timepicker=false,s.$timepicker.parentNode.removeChild(s.$timepicker)):!i.timepicker&&o&&s._addTimepicker(),!i.buttons&&c?s._addButtons():i.buttons&&!c?(s.buttons.destroy(),s.$buttons.parentNode.removeChild(s.$buttons)):h&&i.buttons&&c&&s.buttons.clearHtml().render(),!i.isMobile&&l?(s.treatAsInline||H||s._createMobileOverlay(),s._addMobileAttributes(),s.visible&&s._showMobileOverlay()):i.isMobile&&!l&&(s._removeMobileAttributes(),s.visible&&(H.classList.remove("-active-"),"function"!=typeof s.opts.position&&s.setPosition())),h&&(s.nav.update(),s.views[s.currentView].render(),s.currentView===r.days&&s.views[s.currentView].renderDayNames())})),z(this,"disableDate",(function(t,e){(Array.isArray(t)?t:[t]).forEach((function(t){var r=w(t);if(!r)return;var a=e?"delete":"add";i.disabledDates[a](i.formatDate(r,"yyyy-MM-dd"));var n=i.getCell(r,i.currentViewSingular);n&&n.adpCell.render()}),[])})),z(this,"enableDate",(function(t){i.disableDate(t,true)})),z(this,"isDateDisabled",(function(t){var e=w(t);return i.disabledDates.has(i.formatDate(e,"yyyy-MM-dd"))})),z(this,"isOtherMonth",(function(t){var e=u(t).month;return e!==i.parsedViewDate.month})),z(this,"isOtherYear",(function(t){var e=u(t).year;return e!==i.parsedViewDate.year})),z(this,"isOtherDecade",(function(t){var e=u(t).year,r=h(i.viewDate),a=r[0],n=r[1];return e<a||e>n})),z(this,"_onChangeSelectedDate",(function(t){var e=t.silent;setTimeout((function(){i._setInputValue(),i.opts.onSelect&&!e&&i._triggerOnSelect()}))})),z(this,"_onChangeFocusedDate",(function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).viewDateTransition;if(!t)return;var i=false;e&&(i=s.isOtherMonth(t)||s.isOtherYear(t)||s.isOtherDecade(t)),i&&s.setViewDate(t),s.opts.onFocus&&s.opts.onFocus({datepicker:s,date:t})})),z(this,"_onChangeTime",(function(t){var e=t.hours,r=t.minutes,a=new Date,n=i,o=n.lastSelectedDate,s=n.opts.onSelect,c=o;o||(c=a);var u=i.getCell(c,i.currentViewSingular),d=u&&u.adpCell;d&&d.isDisabled||(c.setHours(e),c.setMinutes(r),o?(i._setInputValue(),s&&i._triggerOnSelect()):i.selectDate(c))})),z(this,"_onFocus",(function(t){i.visible||i.show()})),z(this,"_onBlur",(function(t){i.inFocus||!i.visible||i.opts.isMobile||i.hide()})),z(this,"_onMouseDown",(function(t){i.inFocus=true})),z(this,"_onMouseUp",(function(t){i.inFocus=false,i.$el.focus()})),z(this,"_onResize",(function(){i.visible&&"function"!=typeof i.opts.position&&i.setPosition()})),z(this,"_onClickOverlay",(function(){i.visible&&i.hide()})),z(this,"getViewDates",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.days;return I.getDatesFunction(t)(s)})),z(this,"isWeekend",(function(t){return i.opts.weekends.includes(t)})),z(this,"getClampedDate",(function(t){var e=i,r=e.minDate,a=e.maxDate,n=t;return a&&v(t,a)?n=a:r&&b(t,r)&&(n=r),n})),this.$el=n(t),!this.$el)return;this.$datepicker=o({className:"air-datepicker"}),this.opts=D({},a,e),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||false);var c=this.opts,d=c.view,l=c.startDate;l||(this.opts.startDate=new Date),"INPUT"===this.$el.nodeName&&(this.elIsInput=true),this.inited=false,this.visible=false,this.viewDate=w(this.opts.startDate),this.focusDate=false,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=false,this.currentView=d,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=false,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=false,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}t.buildGlobalContainer=function(t){L=true,V=o({className:t,id:t}),n("body").appendChild(V)};t.prototype.init=function(){var e=this,i=e.opts,r=e.treatAsInline,a=e.opts,o=a.inline,s=a.isMobile,c=a.selectedDates,u=a.keyboardNav,d=a.onlyTimepicker,l=n("body");(!L||L&&V&&!l.contains(V))&&!o&&this.elIsInput&&!this.$customContainer&&t.buildGlobalContainer(t.defaultGlobalContainerId),!s||H||r||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(o||this._bindEvents(),u&&!d&&(this.keyboardNav=new S({dp:this,opts:i}))),c&&this.selectDate(c,{silent:true}),this.opts.visible&&!r&&this.show(),s&&!r&&this.$el.setAttribute("readonly",true),r&&this._createComponents()};t.prototype._createMobileOverlay=function(){H=o({className:"air-datepicker-overlay"}),V.appendChild(H)};t.prototype._createComponents=function(){var t;var e=this,i=e.opts,r=e.treatAsInline,a=e.opts,n=a.inline,o=a.buttons,s=a.timepicker,c=a.position,u=a.classes,d=a.onlyTimepicker,l=a.isMobile;this._buildBaseHtml(),this.elIsInput&&(n||this._setPositionClasses(c)),!n&&this.elIsInput||this.$datepicker.classList.add("-inline-"),u&&(t=this.$datepicker.classList).add.apply(t,u.split(" ")),d&&this.$datepicker.classList.add("-only-timepicker-"),l&&!r&&this._addMobileAttributes(),this.views[this.currentView]=new I({dp:this,type:this.currentView,opts:i}),this.nav=new T({dp:this,opts:i}),s&&this._addTimepicker(),o&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)};t.prototype._destroyComponents=function(){for(var t in this.views)this.views[t].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()};t.prototype._addMobileAttributes=function(){H.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",true)};t.prototype._removeMobileAttributes=function(){H.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||""===this.initialReadonly||this.$el.removeAttribute("readonly")};t.prototype._createMinMaxDates=function(){var t=this.opts,e=t.minDate,i=t.maxDate;this.minDate=!!e&&w(e),this.maxDate=!!i&&w(i)};t.prototype._addTimepicker=function(){this.$timepicker=o({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new R({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)};t.prototype._addButtons=function(){this.$buttons=o({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new j({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)};t.prototype._bindSubEvents=function(){this.on(r.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(r.eventChangeFocusDate,this._onChangeFocusedDate),this.on(r.eventChangeTime,this._onChangeTime)};t.prototype._buildBaseHtml=function(){var t=this.opts.inline;var e,i;this.elIsInput?t?(e=this.$datepicker,(i=this.$el).parentNode.insertBefore(e,i.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)};t.prototype._handleLocale=function(){var t=this.opts,e=t.locale,i=t.dateFormat,r=t.firstDay,a=t.timepicker,n=t.onlyTimepicker,o=t.timeFormat,s=t.dateTimeSeparator;var c;this.locale=(c=e,JSON.parse(JSON.stringify(c))),i&&(this.locale.dateFormat=i),void 0!==o&&""!==o&&(this.locale.timeFormat=o);var u=this.locale.timeFormat;if(""!==r&&(this.locale.firstDay=r),a&&"function"!=typeof i){var d=u?s:"";this.locale.dateFormat=[this.locale.dateFormat,u||""].join(d)}n&&"function"!=typeof i&&(this.locale.dateFormat=this.locale.timeFormat)};t.prototype._setPositionClasses=function(t){var e;if("function"==typeof t)return void this.$datepicker.classList.add("-custom-position-");var i=(t=t.split(" "))[0],r="air-datepicker -".concat(i,"-").concat(t[1],"- -from-").concat(i,"-");(e=this.$datepicker.classList).add.apply(e,r.split(" "))};t.prototype._bindEvents=function(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)};t.prototype._limitViewDateByMaxMinDates=function(){var t=this,e=t.viewDate,i=t.minDate,r=t.maxDate;r&&v(e,r)&&this.setViewDate(r),i&&b(e,i)&&this.setViewDate(i)};t.prototype.formatDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewDate,i=arguments.length>1?arguments[1]:void 0;if(e=w(e),!(e instanceof Date))return;var r=i,a=this.locale,n=u(e),o=n.dayPeriod,s=h(e),c=t.replacer,d={T:e.getTime(),m:n.minutes,mm:n.fullMinutes,h:n.hours12,hh:n.fullHours12,H:n.hours,HH:n.fullHours,aa:o,AA:o.toUpperCase(),E:a.daysShort[n.day],EEEE:a.days[n.day],d:n.date,dd:n.fullDate,M:n.month+1,MM:n.fullMonth,MMM:a.monthsShort[n.month],MMMM:a.months[n.month],yy:n.year.toString().slice(-2),yyyy:n.year,yyyy1:s[0],yyyy2:s[1]};for(var l=0,f=Object.entries(d);l<f.length;l++){var p=f[l],v=p[0],b=p[1];r=c(r,A(v),b)}return r};t.prototype.down=function(t){this._handleUpDownActions(t,"down")};t.prototype.up=function(t){this._handleUpDownActions(t,"up")};t.prototype.selectDate=function(t){var e=this;var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,o=n.currentView,s=n.parsedViewDate,c=n.selectedDates,u=a.updateTime,d=a.silent,l=this.opts,h=l.moveToOtherMonthsOnSelect,f=l.moveToOtherYearsOnSelect,p=l.multipleDates,b=l.range,k=l.autoClose,m=l.onBeforeSelect,g=c.length;if(Array.isArray(t))return t.forEach((function(t){e.selectDate(t,a)})),new Promise((function(t){setTimeout(t)}));if((t=w(t))instanceof Date){if(m&&!d&&!m({date:t,datepicker:this}))return Promise.resolve();if(o===r.days&&t.getMonth()!==s.month&&h&&(i=new Date(t.getFullYear(),t.getMonth(),1)),o===r.years&&t.getFullYear()!==s.year&&f&&(i=new Date(t.getFullYear(),0,1)),i&&this.setViewDate(i),p&&!b){if(g===p)return;this._checkIfDateIsSelected(t)||c.push(t)}else if(b)switch(g){case 1:c.push(t),this.rangeDateTo||(this.rangeDateTo=t),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=t),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[t],this.rangeDateFrom=t,this.rangeDateTo="";break;default:this.selectedDates=[t],this.rangeDateFrom=t}else this.selectedDates=[t];return this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,silent:null==a?void 0:a.silent,date:t,updateTime:u}),this._updateLastSelectedDate(t),k&&!this.timepickerIsActive&&this.visible&&(p||b?b&&1===g&&this.hide():this.hide()),new Promise((function(t){setTimeout(t)}))}};t.prototype.unselectDate=function(t){var e=this;var i=this.selectedDates,a=this;if((t=w(t))instanceof Date)return i.some((function(n,o){if(p(n,t))return i.splice(o,1),a.selectedDates.length?(a.rangeDateTo="",a.rangeDateFrom=i[0],a._updateLastSelectedDate(a.selectedDates[a.selectedDates.length-1])):(a.rangeDateFrom="",a.rangeDateTo="",a._updateLastSelectedDate(false)),e.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,date:t}),true}))};t.prototype.replaceDate=function(t,e){var i=this;var a=this.selectedDates.find((function(e){return p(e,t,i.currentView)})),n=this.selectedDates.indexOf(a);n<0||p(this.selectedDates[n],e,this.currentView)||(this.selectedDates[n]=e,this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,date:e,updateTime:true}),this._updateLastSelectedDate(e))};t.prototype.clear=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=false,this.rangeDateTo=false,this.lastSelectedDate=false,this.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,silent:t.silent}),new Promise((function(t){setTimeout(t)}))};t.prototype.show=function(){var t=this.opts,e=t.onShow,i=t.isMobile;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=true,e&&this._scheduleCallAfterTransition(e),i&&this._showMobileOverlay()};t.prototype.hide=function(){var t=this;var e=this.opts,i=e.onHide,r=e.isMobile,a=this._hasTransition();this.visible=false,this.hideAnimation=true,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((function(e){!t.customHide&&(e&&a||!e&&!a)&&t._finishHide(),i&&i(e)})),r&&H.classList.remove("-active-")};t.prototype._triggerOnSelect=function(){var t=this;var e=[],i=[],r=this,a=r.selectedDates,n=r.locale,o=r.opts,s=o.onSelect,c=o.multipleDates,u=o.range,d=c||u,l="function"==typeof n.dateFormat;a.length&&(e=a.map(k),i=l?c?n.dateFormat(e):e.map((function(t){return n.dateFormat(t)})):e.map((function(e){return t.formatDate(e,n.dateFormat)}))),s({date:d?e:e[0],formattedDate:d?i:i[0],datepicker:this})};t.prototype._handleAlreadySelectedDates=function(t,e){var i=this,r=i.selectedDates,a=i.rangeDateFrom,n=i.rangeDateTo,o=this.opts,s=o.range,c=o.toggleSelected,u=r.length,d="function"==typeof c?c({datepicker:this,date:e}):c,l=Boolean(s&&1===u&&t),h=l?k(e):e;s&&!d&&(2!==u&&this.selectDate(h),2===u&&p(a,n))||(d?this.unselectDate(h):this._updateLastSelectedDate(l?h:t))};t.prototype._handleUpDownActions=function(t,e){if(!((t=w(t||this.focusDate||this.viewDate))instanceof Date))return;var i="up"===e?this.viewIndex+1:this.viewIndex-1;i>2&&(i=2),i<0&&(i=0),this.setViewDate(new Date(t.getFullYear(),t.getMonth(),1)),this.setCurrentView(this.viewIndexes[i])};t.prototype.getCell=function(t){var e;var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.day;if(!((t=w(t))instanceof Date))return;var a=u(t),n=a.year,o=a.month,s=a.date,c='[data-year="'.concat(n,'"]'),d='[data-month="'.concat(o,'"]'),l=(e={},e[r.day]="".concat(c).concat(d,'[data-date="').concat(s,'"]'),e[r.month]="".concat(c).concat(d),e[r.year]="".concat(c),e);return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(l[i]):void 0};t.prototype._showMobileOverlay=function(){H.classList.add("-active-")};t.prototype._hasTransition=function(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((function(t,e){return parseFloat(e)+t}),0)>0};Object.defineProperty(t.prototype,"shouldUpdateDOM",{get:function(){return this.visible||this.treatAsInline},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parsedViewDate",{get:function(){return u(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentViewSingular",{get:function(){return this.currentView.slice(0,-1)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"curDecade",{get:function(){return h(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"viewIndex",{get:function(){return this.viewIndexes.indexOf(this.currentView)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinalView",{get:function(){return this.currentView===r.years},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasSelectedDates",{get:function(){return this.selectedDates.length>0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isMinViewReached",{get:function(){return this.currentView===this.opts.minView||this.currentView===r.days},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"$container",{get:function(){return this.$customContainer||V},enumerable:false,configurable:true});t.replacer=function(t,e,i){return t.replace(e,(function(t,e,r,a){return e+i+a}))};return t}();var G;return z(Y,"defaults",a),z(Y,"version","3.6.0"),z(Y,"defaultGlobalContainerId","air-datepicker-global-container"),G=Y.prototype,Object.assign(G,P),i.default}()}))})(airDatepicker$1);return airDatepicker$1.exports}var airDatepickerExports=requireAirDatepicker();var AirDatepicker=getDefaultExportFromCjs(airDatepickerExports);function renderCellAccessibility(t,e){var i=t.date,r=t.cellType;if(r==="day"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}}}else if(r==="month"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{year:"numeric",month:"long"})}}}else if(r==="year"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{year:"numeric"})}}}}function mergeRenderCellResults(t,e){if(!t)return e;if(!e)return t;return __assign(__assign({},t),{classes:[t.classes,e.classes].filter(Boolean).join(" "),disabled:e.disabled||t.disabled})}var airDatepickerLocales={ar:function(){return import("./ar-qmsePlo9.js").then((function(t){return t.a}))},bg:function(){return import("./bg-ZwPeL6oI.js").then((function(t){return t.b}))},ca:function(){return import("./ca-ISi6eci_.js").then((function(t){return t.c}))},cs:function(){return import("./cs-DGzvkTrE.js").then((function(t){return t.c}))},da:function(){return import("./da-BR7-7EdA.js").then((function(t){return t.d}))},de:function(){return import("./de-Cqz-boHe.js").then((function(t){return t.d}))},el:function(){return import("./el-DU9G8oSc.js").then((function(t){return t.e}))},en:function(){return import("./en-lxF4YBLI.js").then((function(t){return t.e}))},es:function(){return import("./es-_tWE7z8a.js").then((function(t){return t.e}))},eu:function(){return import("./eu-BowKnChG.js").then((function(t){return t.e}))},fi:function(){return import("./fi-CC2W9CX5.js").then((function(t){return t.f}))},fr:function(){return import("./fr-DlMHXJTg.js").then((function(t){return t.f}))},hr:function(){return import("./hr-BZdkBqJE.js").then((function(t){return t.h}))},hu:function(){return import("./hu-BlwH1sUP.js").then((function(t){return t.h}))},id:function(){return import("./id-BCexutvr.js").then((function(t){return t.i}))},it:function(){return import("./it-B7CtP_zH.js").then((function(t){return t.i}))},ja:function(){return import("./ja-GwQmiRrY.js").then((function(t){return t.j}))},ko:function(){return import("./ko-Bog4AaS3.js").then((function(t){return t.k}))},nb:function(){return import("./nb-C0rJhv3t.js").then((function(t){return t.n}))},nl:function(){return import("./nl-DTAYnhrt.js").then((function(t){return t.n}))},pl:function(){return import("./pl-Dc18GnEP.js").then((function(t){return t.p}))},pt:function(){return import("./pt-CvvuIVLG.js").then((function(t){return t.p}))},ro:function(){return import("./ro-BOcX9wJt.js").then((function(t){return t.r}))},ru:function(){return import("./ru-CNbbLA5W.js").then((function(t){return t.r}))},si:function(){return import("./si-CBbBs36T.js").then((function(t){return t.s}))},sk:function(){return import("./sk-DBNkuluD.js").then((function(t){return t.s}))},sl:function(){return import("./sl-Daq-FtDz.js").then((function(t){return t.s}))},sv:function(){return import("./sv-BfSAzCsG.js").then((function(t){return t.s}))},th:function(){return import("./th-DnzvZaNa.js").then((function(t){return t.t}))},tr:function(){return import("./tr-O5ciRquU.js").then((function(t){return t.t}))},uk:function(){return import("./uk-COulUFGY.js").then((function(t){return t.u}))},zh:function(){return import("./zh-bL3e3TZi.js").then((function(t){return t.z}))}};var TEXT_DIRECTION_MARKERS="".concat(UNICODE_BIDI.ltr).concat(UNICODE_BIDI.rtl).concat(UNICODE_BIDI.pop);var TEXT_DIRECTION_MARKERS_REGEX=new RegExp("[".concat(TEXT_DIRECTION_MARKERS,"]"),"g");var DATE_FORMAT_RANGE_SEPARATOR=" - ";var DATE_FORMAT_MAP={y:"3333",m:"11",d:"22"};var DATE_FORMAT_KEYS=Object.keys(DATE_FORMAT_MAP);var DATE_FORMAT_KEYS_REGEX=new RegExp("[^".concat(DATE_FORMAT_KEYS.join(""),"]"),"g");var DATE_FORMAT_SEPARATOR_REGEX=new RegExp("[^".concat(DATE_FORMAT_KEYS.join("")).concat(TEXT_DIRECTION_MARKERS,"]+"),"g");var DATE_FORMAT_STRING_OPTIONS={day:"2-digit",month:"2-digit",year:"numeric"};function padIsoDate(t){var e=t.split("-");return"".concat(e[0].padStart(4,"0"),"-").concat(e[1],"-").concat(e[2])}function isoToDate(t){return new Date("".concat(padIsoDate(t),"T00:00"))}function dateToIso(t){return t.toLocaleDateString("sv",DATE_FORMAT_STRING_OPTIONS)}function dateToString(t,e){var i=t.toLocaleDateString(e,DATE_FORMAT_STRING_OPTIONS);var r=t.getFullYear().toString();if(r.length<4){return i.replace(r,r.padStart(4,"0"))}return i}function stringToDate(t,e,i){var r=e.match(DATE_FORMAT_SEPARATOR_REGEX)[0];var a=t.replace(TEXT_DIRECTION_MARKERS_REGEX,"").split(r).map((function(t){return t.replaceAll(/[^\d]/g,"")}));var n=e.replace(DATE_FORMAT_KEYS_REGEX,"").split("");var o=DATE_FORMAT_KEYS.reduce((function(t,e){var i;return __assign(__assign({},t),(i={},i[e]=a[n.indexOf(e)],i))}),{}),s=o.y,c=o.m,u=o.d;var d=i?(Number(s)-BUDDHIST_CALENDAR_YEAR_OFFSET).toString():s;return isoToDate([d,c,u].join("-"))}function getDateFormat(t,e){var i=new Date(Object.values(DATE_FORMAT_MAP).join("-"));var r=i.toLocaleDateString(t,DATE_FORMAT_STRING_OPTIONS);for(var a=0,n=Object.entries(DATE_FORMAT_MAP);a<n.length;a++){var o=n[a],s=o[0],c=o[1];r=r.replace(e&&c.length===4?(Number(c)+BUDDHIST_CALENDAR_YEAR_OFFSET).toString():c,s)}return r}function isValidDate(t){return t instanceof Date&&!Number.isNaN(t.getTime())&&t.getFullYear()>=1e3}var postDatePickerCss=function(){return'.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{-webkit-transition:all var(--adp-transition-duration) var(--adp-transition-ease);transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7, var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex:1;flex:1;text-align:center;text-transform:uppercase;font-size:.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7, var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3, 1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4, 1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);-webkit-box-sizing:content-box;box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:-ms-inline-flexbox;display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255, 255, 255, 0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr;grid-column-gap:12px;-ms-flex-align:center;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;-ms-flex-item-align:end;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:11px;height:17px;background:-webkit-gradient(linear, left top, right top, from(var(--adp-time-track-color)), to(var(--adp-time-track-color))) left 50%/100% var(--adp-time-track-height) no-repeat;background:linear-gradient(to right, var(--adp-time-track-color), var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;-ms-flex:1;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-box-sizing:border-box;box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size)/2*-1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0, 0, 0, 0)}.air-datepicker{--adp-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92, 196, 239, .1);--adp-background-color-in-range-focused:rgba(92, 196, 239, .2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92, 196, 239, 0.1);--adp-cell-background-color-in-range-hover:rgba(92, 196, 239, 0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0, 0, 0, .3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);-webkit-box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);border-radius:var(--adp-border-radius);-webkit-box-sizing:content-box;box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4, -webkit-max-content);grid-template-rows:repeat(4, max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;-webkit-transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{-webkit-transform:translateY(calc(var(--adp-transition-offset) * -1));transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{-webkit-transform:translateX(var(--adp-transition-offset));transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{-webkit-transform:translateY(var(--adp-transition-offset));transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{-webkit-transform:translateX(calc(var(--adp-transition-offset) * -1));transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}.air-datepicker.-active-.-custom-position-{-webkit-transition:none;transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);-webkit-box-shadow:none;box-shadow:none;position:static;left:auto;right:auto;opacity:1;-webkit-transform:none;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){-webkit-transform:translate(-50%, calc(-50% + var(--adp-transition-offset)));transform:translate(-50%, calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.air-datepicker.-custom-position-{-webkit-transition:none;transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);-webkit-box-sizing:border-box;box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{-webkit-transform:rotate(225deg);transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{-webkit-transform:rotate(315deg);transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size)/2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size)/2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{-webkit-box-sizing:content-box;box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;-webkit-transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;-webkit-transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;-webkit-transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-cell-background-color-in-range:unset;--adp-hover-color:unset;--adp-cell-border-width:2px;font-family:inherit;font-size:var(--post-device-font-size-8);width:var(--post-core-dimension-296);border-radius:var(--post-device-border-radius-1);-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);font-weight:700;border:none}.air-datepicker.-inline-{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}.air-datepicker *{font-family:inherit}.air-datepicker .air-datepicker--navigation{border-start-start-radius:inherit;border-start-end-radius:inherit}.air-datepicker .air-datepicker--navigation .air-datepicker-nav{border-start-start-radius:inherit;border-start-end-radius:inherit;-webkit-border-after:none;border-block-end:none;background:var(--post-core-color-sandgrey-012);padding:var(--post-device-spacing-padding-15)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:auto;margin-inline-end:auto;-ms-flex-pack:start;justify-content:flex-start;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0 0 0 var(--post-device-spacing-padding-15);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title.-disabled-:hover{color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title:hover{background:unset;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title:has(button:disabled){color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;border-radius:var(--post-device-border-radius-1);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--post-device-spacing-gap-3);color:inherit;cursor:inherit}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button{background-color:ButtonFace !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:hover{background-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title .placeholder{-ms-flex-positive:2;flex-grow:2;pointer-events:none}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action{height:var(--post-device-sizing-interactive-button-height-4);width:var(--post-device-sizing-interactive-button-height-4)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action[data-action=next]{-webkit-margin-start:var(--post-device-spacing-gap-inline-4);margin-inline-start:var(--post-device-spacing-gap-inline-4)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action:hover{background:unset;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action:has(:disabled){color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;height:var(--post-device-sizing-interactive-button-height-4);width:var(--post-device-sizing-interactive-button-height-4);border-radius:var(--post-device-border-radius-round);color:inherit;cursor:inherit}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button{background-color:ButtonFace !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:hover{background-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content{padding:0 !important}.air-datepicker .air-datepicker--content .air-datepicker-body--day-names{background:var(--post-core-color-sandgrey-012);margin:0;-webkit-padding-before:var(--post-device-spacing-padding-13);padding-block-start:var(--post-device-spacing-padding-13);-webkit-padding-after:var(--post-device-spacing-padding-5);padding-block-end:var(--post-device-spacing-padding-5);padding-inline:var(--post-device-spacing-padding-15)}.air-datepicker .air-datepicker--content .air-datepicker-body--day-names .air-datepicker-body--day-name{text-transform:capitalize;font-size:inherit;color:var(--post-scheme-color-surface-brand-fg)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells{min-height:var(--post-core-dimension-182);padding:var(--post-device-spacing-padding-15);background:var(--post-scheme-color-surface-accent1-bg);row-gap:var(--post-device-spacing-gap-2);border-radius:var(--post-device-border-radius-1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .a11y-row{display:grid;grid-column:1/-1;grid-template-columns:subgrid}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days-{grid-template-columns:repeat(7, var(--post-core-dimension-40));grid-auto-rows:var(--post-core-dimension-40)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell>*{-webkit-box-sizing:border-box;box-sizing:border-box}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell::after{-webkit-box-sizing:border-box;box-sizing:border-box}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-{width:var(--post-core-dimension-40);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-other-month-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:empty{pointer-events:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty){color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty):not(.-current-){background:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty):not(.-current-){background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty).-current-{color:var(--post-scheme-color-interactive-primary-hover-fg1);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background:var(--post-scheme-color-interactive-primary-selected-bg4)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-):not(.-range-from-):not(.-range-to-,.-other-month-){border-color:var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-){background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-disabled-:not(.-other-month-){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--post-device-border-width-default) dashed var(--post-scheme-color-interactive-primary-disabled-stroke);width:var(--post-core-dimension-38);height:var(--post-core-dimension-38);outline:none;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;justify-self:center}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty){border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty).-selected-{background:var(--post-scheme-color-interactive-primary-selected-bg4);color:var(--post-scheme-color-interactive-primary-selected-fg3);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty).-selected-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);background:var(--post-scheme-color-interactive-primary-hover-bg2);color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years-{grid-template-columns:repeat(4, var(--post-core-dimension-64));grid-auto-rows:var(--post-core-dimension-40);-webkit-column-gap:var(--post-device-spacing-gap-inline-8);-moz-column-gap:var(--post-device-spacing-gap-inline-8);column-gap:var(--post-device-spacing-gap-inline-8)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-{width:var(--post-core-dimension-64);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-in-range-{background-color:rgba(0,0,0,0)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-other-decade-{display:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:hover:not(.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3);background:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-selected-:not(.-selected-~.-selected-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-disabled-:not(.-day-.-other-decade-){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--adp-cell-border-width) dashed var(--post-scheme-color-interactive-primary-disabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-current-{border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-current-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);background:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months-{grid-template-columns:repeat(4, var(--post-core-dimension-64));padding:var(--post-device-spacing-padding-15);-webkit-column-gap:var(--post-device-spacing-gap-inline-8);-moz-column-gap:var(--post-device-spacing-gap-inline-8);column-gap:var(--post-device-spacing-gap-inline-8);min-height:var(--post-core-dimension-182);text-transform:uppercase}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-{width:var(--post-core-dimension-64);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-in-range-{background-color:rgba(0,0,0,0)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-other-decade-{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-):not(.-current-){background:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-):not(.-current-){background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-selected-:not(.-selected-~.-selected-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-disabled-{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--adp-cell-border-width) dashed var(--post-scheme-color-interactive-primary-disabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-current-{border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-current-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);color:var(--post-scheme-color-interactive-primary-hover-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell.-focus-:hover{background:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-{position:relative;border:0}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::after{content:"";position:absolute;inset:0;display:block;width:var(--post-core-dimension-40);height:var(--post-core-dimension-40)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::after{inset:calc(var(--adp-cell-border-width)*-1)}@media (-webkit-min-device-pixel-ratio: 1.25)and (-webkit-max-device-pixel-ratio: 1.5), (min-resolution: 1.25dppx)and (max-resolution: 1.4999dppx){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::after{inset:calc(var(--adp-cell-border-width)*-1 - .5)}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-.-selected-:hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-.-selected-:hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-.-selected-:hover::after{inset:0}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::before{z-index:-2}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::after{z-index:-1}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-)::after{background:var(--post-scheme-color-interactive-primary-hover-bg2);border-radius:var(--post-device-border-radius-round);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-)::after{border:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-)::after{border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-selected-fg3)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-)::after{forced-color-adjust:none;border-color:Highlight}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-):hover{color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-):hover::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);color:var(--post-scheme-color-interactive-primary-hover-fg3);background:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-{background-color:rgba(0,0,0,0);z-index:2}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):hover::after{background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-other-month-)::before{background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-other-month-)::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-){color:var(--post-scheme-color-interactive-primary-disabled-fg1) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-)::after{background-color:var(--post-scheme-color-surface-accent1-bg);border-radius:var(--post-device-border-radius-round);border:var(--post-device-border-width-default) dashed var(--post-scheme-color-interactive-primary-disabled-stroke);color:var(--post-scheme-color-interactive-primary-disabled-fg1) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-)::after{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-){z-index:1}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-).-selected-:not(.-disabled-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-).-selected-:not(.-disabled-):hover{border:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-)::before{background:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-)::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-).-selected-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-).-selected-::after{border-radius:var(--post-device-border-radius-round);background:var(--post-scheme-color-interactive-primary-selected-bg4)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-).-selected-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-).-selected-::after{background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover{color:var(--post-scheme-color-interactive-primary-hover-fg3)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::after{background:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::after{background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-,.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-,.-disabled-).-selected-::before{inset-inline-start:auto;width:50%;background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-,.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-,.-disabled-).-selected-::before{inset-inline-end:auto;width:50%;background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-range-from-:hover::before{background:none;border:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells:not(:has(.-selected-.-range-from-):has(.-selected-.-range-to-)):not(:hover) .air-datepicker-cell:is(.-in-range-,.-range-from-,.-range-to-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells:not(:has(.-selected-.-range-from-):has(.-selected-.-range-to-)):not(:hover) .air-datepicker-cell:is(.-in-range-,.-range-from-,.-range-to-):not(.-selected-)::after{content:unset}.calendar-input,.calendar-input-range{position:relative}.calendar-input button,.calendar-input-range button{z-index:1;padding:0;position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none;border:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:var(--post-device-border-radius-focus);-webkit-transition:opacity .2s ease,visibility .2s ease,fill .2s ease;transition:opacity .2s ease,visibility .2s ease,fill .2s ease;color:var(--post-scheme-color-interactive-input-enabled-fg);right:var(--post-core-dimension-14);top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--post-scheme-color-interactive-input-enabled-fg);outline-offset:4px;right:var(--post-core-dimension-14)}.calendar-input button post-icon,.calendar-input-range button post-icon{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}.calendar-input button:not([disabled]),.calendar-input-range button:not([disabled]){cursor:pointer}.calendar-input button:not([disabled]) :where(:hover>*) post-icon,.calendar-input-range button:not([disabled]) :where(:hover>*) post-icon{color:var(--post-scheme-color-interactive-input-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.calendar-input button:not([disabled]) :where(:hover>*) post-icon,.calendar-input-range button:not([disabled]) :where(:hover>*) post-icon{color:Highlight}}.calendar-input button[disabled],.calendar-input-range button[disabled]{color:var(--post-scheme-color-interactive-primary-disabled-fg1)}.calendar-input ::slotted(input),.calendar-input-range ::slotted(input){-webkit-padding-end:calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important;padding-inline-end:calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}:host ::slotted(input.form-control:is(.is-invalid,.is-valid):not(:disabled)){background-position:top 50% right calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}:host [dir=rtl] .calendar-input button,:host [dir=rtl] .calendar-input-range button{right:auto;left:var(--post-core-dimension-14)}:host [dir=rtl] .air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var __decorate=undefined&&undefined.__decorate||function(t,e,i,r){var a=arguments.length,n=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)if(o=t[s])n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n;return a>3&&n&&Object.defineProperty(e,i,n),n};var PostDatePicker=function(){function t(t){var e=this;registerInstance(this,t);this.locale=this.systemLocale;this.range=false;this.inline=false;this.inputDisabled=false;this.today=new Date;this.startDate=new Date;this.currentViewType="days";this._isInternalUpdate=false;this._lastInputValue=null;this.skipOnSelectCount=0;this.skipFocusOnNextRender=false;this.pendingFocusDate=null;this.handleInputBlur=function(){if(e.range){var t=e.inputMask.value.split(e.dateFormatRangeSeparator);var i=e.stringToDate(t[0]);var r=e.stringToDate(t[1]);var a=isValidDate(i);var n=isValidDate(r);if(a&&n){var o=i>r;e.skipOnSelectCount=o?0:2;e.dpInstance.selectDate([i,r]);e.dpInstance.setViewDate(i)}else if(a&&!n){e.dpInstance.clear();e.dpInstance.selectDate(i);e.dpInstance.setViewDate(i)}else{e.resetSelection()}}else{var s=e.stringToDate(e.inputMask.value);if(isValidDate(s)){e.skipOnSelectCount=1;e.dpInstance.selectDate(s);e.dpInstance.setViewDate(s)}else{e.resetSelection()}}e.emitInputEvents()};this.handlePrevNextClick=function(){e.skipFocusOnNextRender=true};this.handleTab=function(t){if(e.inline||t.key!=="Tab"&&t.key!=="Escape")return;if(t.key==="Escape"){e.dpInput.focus()}var i=e.host.shadowRoot.activeElement;if(i===e.titleBtn&&t.shiftKey){t.preventDefault();var r=e.getCells().find((function(t){return t.tabIndex===0}));if(r){r.focus()}}if((i===null||i===void 0?void 0:i.getAttribute("role"))==="gridcell"&&!t.shiftKey){t.preventDefault();if(e.currentViewType==="years"){e.prevBtn.focus()}else{e.titleBtn.focus()}}};this.handleGridKeydown=function(t){var i=t.key;var r=e.startDate;if(!r)return;if(i==="Enter"||i===" "){t.preventDefault();var a=e.getCells().find((function(t){return t.tabIndex===0}));if(a){a.click()}return}var n=new Date(r);var o={ArrowLeft:{days:function(){return n.setDate(r.getDate()-1)},months:function(){return n.setMonth(r.getMonth()-1)},years:function(){return n.setFullYear(r.getFullYear()-1)}},ArrowRight:{days:function(){return n.setDate(r.getDate()+1)},months:function(){return n.setMonth(r.getMonth()+1)},years:function(){return n.setFullYear(r.getFullYear()+1)}},ArrowUp:{days:function(){return n.setDate(r.getDate()-7)},months:function(){return n.setMonth(r.getMonth()-4)},years:function(){return n.setFullYear(r.getFullYear()-4)}},ArrowDown:{days:function(){return n.setDate(r.getDate()+7)},months:function(){return n.setMonth(r.getMonth()+4)},years:function(){return n.setFullYear(r.getFullYear()+4)}},Home:{days:function(){return n.setDate(1)},months:function(){return n.setMonth(0)},years:function(){return n.setFullYear(r.getFullYear()-r.getFullYear()%10)}},End:{days:function(){return n.setMonth(r.getMonth()+1,0)},months:function(){return n.setMonth(11)},years:function(){return n.setFullYear(r.getFullYear()-r.getFullYear()%10+9)}},PageUp:{days:function(){return n.setMonth(r.getMonth()-1)},months:function(){return n.setFullYear(r.getFullYear()-1)},years:function(){return n.setFullYear(r.getFullYear()-10)}},PageDown:{days:function(){return n.setMonth(r.getMonth()+1)},months:function(){return n.setFullYear(r.getFullYear()+1)},years:function(){return n.setFullYear(r.getFullYear()+10)}}};if(!o[i]||!o[i][e.currentViewType])return;t.preventDefault();o[i][e.currentViewType]();var s=r.getMonth()!==n.getMonth()||r.getFullYear()!==n.getFullYear();if(s){e.pendingFocusDate=n;e.skipFocusOnNextRender=false;e.dpInstance.setViewDate(n);requestAnimationFrame((function(){e.setActiveCell(n,true);requestAnimationFrame((function(){if(e.pendingFocusDate===n){e.pendingFocusDate=null}}))}))}else{e.setActiveCell(n,true)}};this.handleInputEvent=function(t){if(e.maskElement.allowEvents)return;var i=e.serializeIsoValue();if(i===e._lastInputValue){t.stopImmediatePropagation();return}e._lastInputValue=i};this.forceTitleClickToYear=function(){if(e.dpInstance){e.dpInstance.setCurrentView("years")}}}t.prototype.validateLocale=function(){if(!isValidLocale(this.locale)){console.error('The prop `locale` of the `post-date-picker` component must be a valid localeCode (e.g. `en`, `en-GB`, etc.), based on <a href="https://www.rfc-editor.org/info/bcp47">BCP 47 (RFC 5646)</a> standard.')}};t.prototype.updateLocale=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.airLocale()];case 1:t=i.sent();(e=this.dpInstance)===null||e===void 0?void 0:e.update({locale:t,dateFormat:t.dateFormat,firstDay:t.firstDay});this.updateMask();return[2]}}))}))};t.prototype.updateRange=function(){var t,e;(t=this.dpInstance)===null||t===void 0?void 0:t.update({range:this.range});this.updateMask();if(this.range&&((e=this.dpInstance)===null||e===void 0?void 0:e.selectedDates.length)>0){var i=this.dpInstance.selectedDates[0];this.dpInstance.clear();this.dpInstance.selectDate(i)}else{this.syncInputToDp()}};t.prototype.updateMin=function(){var t;(t=this.dpInstance)===null||t===void 0?void 0:t.update({minDate:this.min?isoToDate(this.min):false})};t.prototype.updateMax=function(){var t;(t=this.dpInstance)===null||t===void 0?void 0:t.update({maxDate:this.max?isoToDate(this.max):false})};t.prototype.validateInline=function(){if(!this.dpInput){console.error("The date picker must contain one input element")}};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!this.popoverRef)return[3,2];(t=this.dpInstance)===null||t===void 0?void 0:t.setCurrentView("days");return[4,this.popoverRef.show(this.dpInput)];case 1:e.sent();this.enhanceAccessibility();this.host.shadowRoot.removeEventListener("keydown",this.handleTab,true);this.host.shadowRoot.addEventListener("keydown",this.handleTab,true);return[3,3];case 2:console.error("show: popoverRef is null or undefined");e.label=3;case 3:return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.hide()];case 1:t.sent();return[3,3];case 2:console.error("hide: popoverRef is null or undefined");t.label=3;case 3:return[2]}}))}))};Object.defineProperty(t.prototype,"systemLocale",{get:function(){var t,e;var i=(t=this.host.closest("[lang]"))===null||t===void 0?void 0:t.getAttribute("lang");return(e=i!==null&&i!==void 0?i:navigator.language)!==null&&e!==void 0?e:FALLBACK_LANGUAGE_CODE},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"localeCode",{get:function(){var t;var e=(t=this.locale)!==null&&t!==void 0?t:FALLBACK_LANGUAGE_CODE;return isValidLocale(e)?e:FALLBACK_LANGUAGE_CODE},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"languageCode",{get:function(){return this.localeCode.split("-")[0]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dateFormat",{get:function(){return getDateFormat(this.localeCode,this.isBuddhistCalendar)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"textDirection",{get:function(){return getLocaleTextDirection(this.localeCode)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dateFormatRangeSeparator",{get:function(){return this.textDirection==="rtl"?"".concat(UNICODE_BIDI.rtl).concat(DATE_FORMAT_RANGE_SEPARATOR).concat(UNICODE_BIDI.pop):DATE_FORMAT_RANGE_SEPARATOR},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isBuddhistCalendar",{get:function(){return BUDDHIST_CALENDAR_LOCALES.includes(this.localeCode)},enumerable:false,configurable:true});t.prototype.airLocale=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i;return __generator(this,(function(r){switch(r.label){case 0:t=FALLBACK_LANGUAGE_CODE;if(airDatepickerLocales[this.languageCode]){t=this.languageCode}else{console.warn('Post Date Picker: Locale module "'.concat(this.localeCode,'" not found! Falling back to "').concat(FALLBACK_LANGUAGE_CODE,'".'))}return[4,(i=airDatepickerLocales[t])===null||i===void 0?void 0:i.call(airDatepickerLocales)];case 1:e=r.sent();return[2,e.default]}}))}))};t.prototype.dateToString=function(t){return dateToString(t,this.localeCode)};t.prototype.stringToDate=function(t){return stringToDate(t,this.dateFormat,this.isBuddhistCalendar)};t.prototype.setupInputObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;if(!this.dpInput)return;if(this.inputObserver){this.inputObserver.disconnect()}this.inputObserver=new MutationObserver((function(){t.syncDatePickerState()}));this.inputObserver.observe(this.dpInput,{attributes:true,attributeFilter:["disabled"]})};t.prototype.getCells=function(){if(!this.dpContainer)return[];var t="";switch(this.currentViewType){case"days":t=".air-datepicker-cell.-day-";break;case"months":t=".air-datepicker-cell.-month-";break;case"years":t=".air-datepicker-cell.-year-";break}return Array.from(this.dpContainer.querySelectorAll(t))};t.prototype.setActiveCell=function(t,e){if(e===void 0){e=true}var i=this.getCells();if(i.length===0)return;var r;if(this.currentViewType==="days"){r=i.find((function(e){return Number(e.dataset.date)===t.getDate()&&Number(e.dataset.month)===t.getMonth()&&Number(e.dataset.year)===t.getFullYear()}));if(!r){var a=new Date(this.currentViewYear,this.currentViewMonth,1);r=i.find((function(t){return Number(t.dataset.date)===1&&Number(t.dataset.month)===a.getMonth()&&Number(t.dataset.year)===a.getFullYear()&&!t.classList.contains("-other-month-")}))}}else if(this.currentViewType==="months"){r=i.find((function(e){return Number(e.dataset.month)===t.getMonth()&&Number(e.dataset.year)===t.getFullYear()}));if(!r){r=i.find((function(t){return!t.classList.contains("-other-year-")}))}}else{r=i.find((function(e){return Number(e.dataset.year)===t.getFullYear()}));if(!r){r=i.find((function(t){return!t.classList.contains("-other-decade-")}))}}if(!r){r=i.at(-1)}i.forEach((function(t){return t.tabIndex=-1}));r.tabIndex=0;if(e){r.focus()}this.startDate=new Date(Number(r.dataset.year),Number(r.dataset.month),Number(r.dataset.date))};t.prototype.reorderNavigation=function(){var t;var e=(t=this.dpContainer)===null||t===void 0?void 0:t.querySelector(".air-datepicker-nav");if(!e)return;var i=this.host.shadowRoot.querySelector('[data-action="prev"]');var r=this.host.shadowRoot.querySelector(".air-datepicker-nav--title");if(i&&r){e.insertBefore(r,i)}};Object.defineProperty(t.prototype,"prevBtn",{get:function(){return this.host.shadowRoot.querySelector('[data-action="prev"] button')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nextBtn",{get:function(){return this.host.shadowRoot.querySelector('[data-action="next"] button')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"titleBtn",{get:function(){return this.host.shadowRoot.querySelector(".air-datepicker-nav--title button")},enumerable:false,configurable:true});t.prototype.updateNavigationButtonLabels=function(){var t,e,i,r,a,n;if(this.currentViewType==="months"){(t=this.prevBtn)===null||t===void 0?void 0:t.setAttribute("aria-label",this.textPreviousYear);(e=this.nextBtn)===null||e===void 0?void 0:e.setAttribute("aria-label",this.textNextYear)}else if(this.currentViewType==="years"){(i=this.prevBtn)===null||i===void 0?void 0:i.setAttribute("aria-label",this.textPreviousDecade);(r=this.nextBtn)===null||r===void 0?void 0:r.setAttribute("aria-label",this.textNextDecade)}else{(a=this.prevBtn)===null||a===void 0?void 0:a.setAttribute("aria-label",this.textPreviousMonth);(n=this.nextBtn)===null||n===void 0?void 0:n.setAttribute("aria-label",this.textNextMonth)}};t.prototype.wrapCellsInRows=function(t){var e;(e=this.gridObserver)===null||e===void 0?void 0:e.disconnect();t.querySelectorAll(':scope > [role="row"]').forEach((function(e){while(e.firstChild)t.insertBefore(e.firstChild,e);e.remove()}));var i=Array.from(t.children).filter((function(t){return t.classList.contains("air-datepicker-cell")}));var r=PostDatePicker.COLUMNS_BY_VIEW[this.currentViewType];for(var a=0;a<i.length;a+=r){var n=document.createElement("div");n.setAttribute("role","row");n.classList.add("a11y-row");t.insertBefore(n,i[a]);for(var o=a;o<a+r&&o<i.length;o++){n.append(i[o])}}this.gridObserver.observe(t,{childList:true,subtree:false})};t.prototype.enhanceAccessibility=function(t){if(t===void 0){t=true}var e=this.dpContainer.querySelector(".air-datepicker-body--cells");if(this.currentViewType==="months"){e=this.dpContainer.querySelector(".air-datepicker-body--cells.-months-")}else if(this.currentViewType==="years"){e=this.dpContainer.querySelector(".air-datepicker-body--cells.-years-")}if(!e)return;e.setAttribute("role","grid");this.wrapCellsInRows(e);this.getCells().forEach((function(t){t.setAttribute("aria-selected",t.classList.contains("-selected-")?"true":"false");if(t.classList.contains("-current-")){t.setAttribute("aria-current","date")}}));e.removeEventListener("keydown",this.handleGridKeydown);e.addEventListener("keydown",this.handleGridKeydown);var i=this.getIsoDates();var r=i[0]?isoToDate(i[0]):null;var a=this.pendingFocusDate||r||this.today;this.setActiveCell(a,t)};t.prototype.setUpMask=function(){var t=this.dateFormat.replace(DATE_FORMAT_SEPARATOR_REGEX,(function(t){return"".concat(t,"`")}));var e={mask:Date,pattern:t,format:this.dateToString.bind(this),parse:this.stringToDate.bind(this),blocks:{y:{mask:IMask.MaskedRange,from:1e3,to:9999,maxLength:4,placeholderChar:Object.keys(DATE_FORMAT_MAP)[0]},m:{mask:IMask.MaskedRange,from:1,to:12,placeholderChar:Object.keys(DATE_FORMAT_MAP)[1]},d:{mask:IMask.MaskedRange,from:1,to:31,placeholderChar:Object.keys(DATE_FORMAT_MAP)[2]}},min:this.min?new Date("".concat(padIsoDate(this.min),"T00:00")):null,max:this.max?new Date("".concat(padIsoDate(this.max),"T00:00")):null,autofix:true,eager:true};var i=__assign(__assign({},e),{lazy:false,overwrite:true});var r={mask:"from`".concat(this.dateFormatRangeSeparator,"to"),blocks:{from:__assign({},e),to:__assign({},e)},lazy:false,overwrite:true};this.maskElement=new NativeInputMaskElement(this.dpInput);this.inputMask=IMask(this.maskElement,this.range?r:i)};t.prototype.updateMask=function(){if(!this.inline){this.inputMask.destroy();this.setUpMask();this.setupValueOverride();if(this.dpInstance.selectedDates.length>0){this.inputMask.value=this.formatDatesForMask(this.dpInstance.selectedDates)}}};t.prototype.setupValueOverride=function(){if(!this.dpInput)return;Object.defineProperty(this.dpInput,"value",{get:this.getInputIsoValue.bind(this),set:this.setInputIsoValue.bind(this),configurable:true,enumerable:true})};t.prototype.getIsoDates=function(){var t,e,i,r,a,n;var o=getNativeValue(this.dpInput);var s=8;if(!this.range){var c=(t=o===null||o===void 0?void 0:o.replaceAll(/\D/g,""))!==null&&t!==void 0?t:"";if(c.length<s)return[];var u=this.stringToDate(o);return u&&isValidDate(u)?[dateToIso(u)]:[]}var d=(e=o===null||o===void 0?void 0:o.split(this.dateFormatRangeSeparator))!==null&&e!==void 0?e:[];var l=(r=(i=d[0])===null||i===void 0?void 0:i.replaceAll(/\D/g,""))!==null&&r!==void 0?r:"";var h=(n=(a=d[1])===null||a===void 0?void 0:a.replaceAll(/\D/g,""))!==null&&n!==void 0?n:"";var f=l.length>=s?this.stringToDate(d[0]):null;var p=h.length>=s?this.stringToDate(d[1]):null;var v=[];if(f&&isValidDate(f))v.push(dateToIso(f));if(p&&isValidDate(p))v.push(dateToIso(p));return v};t.prototype.getInputIsoValue=function(){var t;var e=this.getIsoDates();if(!this.range){return(t=e[0])!==null&&t!==void 0?t:""}return e};t.prototype.serializeIsoValue=function(){return JSON.stringify(this.getIsoDates())};t.prototype.setInputIsoValue=function(t){var e,i,r,a;if(this._isInternalUpdate)return;this._isInternalUpdate=true;try{var n=void 0;if(Array.isArray(t)){n=t}else{n=t?t.split(",").map((function(t){return t.trim()})):[]}var o=n.filter(Boolean).map((function(t){return isoToDate(t)})).filter((function(t){return t&&isValidDate(t)}));if(o.length===0){this.inputMask.value="";(e=this.dpInstance)===null||e===void 0?void 0:e.clear();return}this.inputMask.value=this.formatDatesForMask(o);(i=this.dpInstance)===null||i===void 0?void 0:i.clear();(r=this.dpInstance)===null||r===void 0?void 0:r.selectDate(this.range?o:o[0]);(a=this.dpInstance)===null||a===void 0?void 0:a.setViewDate(o[0])}finally{this._isInternalUpdate=false}};t.prototype.configDatePicker=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;var a,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.airLocale()];case 1:t=o.sent();this.dpInput=this.host.querySelector("input");if(!this.dpInput){console.error("The post-date-picker component requires a slotted <input> element.");return[2]}if(this.inline){this.dpInput.type="hidden"}else{this.dpInput.type="text";this.dpInput.inputMode="numeric"}e=this.dpInput.value;this.dpInput.value="";this.setUpMask();this.setupValueOverride();if(e){this.setInputIsoValue(e)}this.dpContainer=this.host.shadowRoot.querySelector(".datepicker-container");if(this.dpContainer){i={navTitles:{days:'<button><strong>MMMM yyyy</strong><span class="visually-hidden">, '.concat(this.textSwitchYear,'</span><post-icon name="chevrondown"></post-icon></button>'),months:'<button><strong>yyyy</strong><span class="visually-hidden">, '.concat(this.textSwitchYear,'</span><post-icon name="chevrondown"></post-icon></button>')},prevHtml:'<button><post-icon name="chevronleft" ></post-icon></button>',nextHtml:'<button><post-icon name="chevronright" ></post-icon></button>',range:this.range,inline:true,autoClose:true,showOtherYears:true,selectOtherYears:true,showOtherMonths:false,moveToOtherMonthsOnSelect:true,startDate:this.startDate,minDate:this.min?isoToDate(this.min):undefined,maxDate:this.max?isoToDate(this.max):undefined,locale:t,dateFormat:t.dateFormat,firstDay:t.firstDay,view:"days",onChangeView:function(t){r.currentViewType=t;requestAnimationFrame((function(){r.enhanceAccessibility()}))},onChangeViewDate:function(t){var e=t.month,i=t.year;r.currentViewYear=i;r.currentViewMonth=e;r.updateNavigationButtonLabels()},onSelect:function(t){var e;var i=t.date;if(!i||Array.isArray(i)&&i.length===0){if(r._isInternalUpdate)return;r.inputMask.value="";r.emitInputEvents();return}r.getCells().forEach((function(t){t.setAttribute("aria-selected",t.classList.contains("-selected-")?"true":"false")}));if(r.skipOnSelectCount>0){r.skipOnSelectCount--;return}if(r._isInternalUpdate)return;var a=Array.isArray(i)?i:[i];var n=r.range&&a.length===1;r.inputMask.value=r.formatDatesForMask(a);r.emitInputEvents();if(n){return}if(!r.inline){(e=r.popoverRef)===null||e===void 0?void 0:e.hide();requestAnimationFrame((function(){return r.dpTrigger.focus()}))}},onShow:function(){r.enhanceAccessibility()},onRenderCell:function(t){var e;var i=renderCellAccessibility(t,r.localeCode);var a=(e=r.cellConfig)===null||e===void 0?void 0:e.call(r,t.date,t.cellType);return mergeRenderCellResults(i,a)}};this.dpInstance=new AirDatepicker(this.dpContainer,i);this.reorderNavigation();(a=this.prevBtn)===null||a===void 0?void 0:a.addEventListener("click",this.handlePrevNextClick);(n=this.nextBtn)===null||n===void 0?void 0:n.addEventListener("click",this.handlePrevNextClick);this.syncInputToDp()}return[2]}}))}))};t.prototype.emitInputEvents=function(){this.inputMask.updateValue();var t=this.serializeIsoValue();if(t===this._lastInputValue){return}this._lastInputValue=t;this.maskElement.allowEvents=true;this.dpInput.dispatchEvent(new InputEvent("input",{bubbles:true}));this.dpInput.dispatchEvent(new InputEvent("change",{bubbles:true}));this.maskElement.allowEvents=false};t.prototype.formatDatesForMask=function(t){var e=this;if(t.length===0)return"";if(this.range){return t.map((function(t){return e.dateToString(t)})).join(this.dateFormatRangeSeparator)}return this.dateToString(t[0])};t.prototype.syncInputToDp=function(){var t=this.getIsoDates();if(t.length===0)return;var e=t.map((function(t){return isoToDate(t)})).filter((function(t){return t&&isValidDate(t)}));if(e.length>0){this.dpInstance.selectDate(this.range?e:e[0]);this.dpInstance.setViewDate(e[0])}};t.prototype.attachTitleBtnListener=function(){var t=this;requestAnimationFrame((function(){if(!t.titleBtn)return;t.titleBtn.onclick=null;t.titleBtn.removeEventListener("click",t.forceTitleClickToYear);t.titleBtn.addEventListener("click",t.forceTitleClickToYear,{capture:true})}))};t.prototype.setupNavObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;var e=this.dpContainer.querySelector(".air-datepicker-nav");if(!e)return;if(this.navObserver){this.navObserver.disconnect()}this.updateNavigationButtonLabels();this.attachTitleBtnListener();this.navObserver=new MutationObserver((function(){t.updateNavigationButtonLabels();t.attachTitleBtnListener()}));this.navObserver.observe(e,{childList:true,subtree:true})};t.prototype.setupGridObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;var e=this.dpContainer.querySelector(".air-datepicker-body--cells");if(!e)return;if(this.gridObserver){this.gridObserver.disconnect()}this.gridObserver=new MutationObserver((function(e){var i=e.some((function(t){return t.type==="childList"}));if(!i)return;requestAnimationFrame((function(){t.enhanceAccessibility(!t.skipFocusOnNextRender);t.skipFocusOnNextRender=false}))}));this.gridObserver.observe(e,{childList:true,subtree:false})};t.prototype.addInputListener=function(){this._lastInputValue=this.serializeIsoValue();if(!this.inline){this.dpInput.addEventListener("blur",this.handleInputBlur)}this.dpInput.addEventListener("input",this.handleInputEvent)};t.prototype.resetSelection=function(){this.skipOnSelectCount=0;this.dpInstance.clear();this.dpInstance.setViewDate(this.today)};t.prototype.syncDatePickerState=function(){this.inputDisabled=this.dpInput.disabled};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.configDatePicker()];case 1:e.sent();this.setupGridObserver();this.setupNavObserver();this.setupInputObserver();this.validateLocale();this.validateInline();this.addInputListener();this.syncDatePickerState();if(this.inline){requestAnimationFrame((function(){return t.enhanceAccessibility(false)}))}return[2]}}))}))};t.prototype.disconnectedCallback=function(){var t,e,i,r,a,n,o,s,c,u;(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("keydown",this.handleTab,true);(e=this.titleBtn)===null||e===void 0?void 0:e.removeEventListener("click",this.forceTitleClickToYear);var d=(i=this.dpContainer)===null||i===void 0?void 0:i.querySelector(".air-datepicker-body--cells");d===null||d===void 0?void 0:d.removeEventListener("keydown",this.handleGridKeydown);(r=this.prevBtn)===null||r===void 0?void 0:r.removeEventListener("click",this.handlePrevNextClick);(a=this.nextBtn)===null||a===void 0?void 0:a.removeEventListener("click",this.handlePrevNextClick);(n=this.dpInput)===null||n===void 0?void 0:n.removeEventListener("blur",this.handleInputBlur);(o=this.dpInput)===null||o===void 0?void 0:o.removeEventListener("input",this.handleInputEvent);(s=this.gridObserver)===null||s===void 0?void 0:s.disconnect();(c=this.navObserver)===null||c===void 0?void 0:c.disconnect();(u=this.inputObserver)===null||u===void 0?void 0:u.disconnect();if(this.dpInstance){this.dpInstance.destroy();this.dpInstance=null}};t.prototype.render=function(){var t=this;return h(Host,{key:"231026bbf4e2ea6e12abc613f5a44ad1df7a1c88","data-version":version},this.inline&&h("div",{key:"69f1343a088c986e28aa2648eeb389432353e1eb",dir:this.textDirection},h("slot",{key:"f2c0bc1c1f5a6b716f421301418e0fcf11cbc774"}),h("div",{key:"17e7f3f6be51ed283ab80adcfb182ad36ac14b17",class:"datepicker-container"})),!this.inline&&h("div",{key:"8cc1938f558f764cc3a02351e4470b4bdde54210",dir:this.textDirection},h("div",{key:"e2a241a226e4817e17d3ffb96ac0f8ccbc1e9e5f",class:{"calendar-input":!this.range,"calendar-input-range":this.range,disabled:this.inputDisabled}},h("slot",{key:"90a42ee8a1f9df6a541c0573ec6ea5b872abf6b6"}),h("button",{key:"04e02dce4a4c35681f7db41b1b222a24716f7ebc",onClick:function(){return t.show()},"aria-haspopup":"true","aria-label":this.textToggleCalendar,disabled:this.inputDisabled,ref:function(e){return t.dpTrigger=e}},h("post-icon",{key:"d325b4589e1cbd237207fe1b6bc9af7bd8907e7c",name:"calendar"}))),h("post-popovercontainer",{key:"5616c7c6c3db35838de04ecbdadd0ba398e8cb37",placement:"bottom-end",offset:PostDatePicker.FLYOUT_OFFSET,ref:function(e){return t.popoverRef=e}},h("div",{key:"1df05f1c4e855ffc3549f48073ae28ef87067007",class:"datepicker-container"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{locale:[{validateLocale:0},{updateLocale:0}],range:[{updateRange:0}],min:[{updateMin:0}],max:[{updateMax:0}],inline:[{validateInline:0}]}},enumerable:false,configurable:true});return t}();PostDatePicker.FLYOUT_OFFSET=4;PostDatePicker.COLUMNS_BY_VIEW={days:7,months:4,years:4};__decorate([DateValue(),IsoDate()],PostDatePicker.prototype,"min",void 0);__decorate([DateValue(),IsoDate()],PostDatePicker.prototype,"max",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textNextMonth",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textNextYear",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textNextDecade",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textPreviousMonth",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textPreviousYear",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textPreviousDecade",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textSwitchYear",void 0);__decorate([Required({when:"inline",truthy:false}),Type("string")],PostDatePicker.prototype,"textToggleCalendar",void 0);PostDatePicker.style=postDatePickerCss();export{PostDatePicker as post_date_picker};
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function r(){this.constructor=e}e.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))t[a]=e[a]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function o(t){try{c(r.next(t))}catch(t){n(t)}}function s(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?i(t.value):a(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];a=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var i={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0)i[r]=t[r];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++){if(e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a]))i[r[a]]=t[r[a]]}return i};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,n;r<a;r++){if(n||!(r in e)){if(!n)n=Array.prototype.slice.call(e,0,r);n[r]=e[r]}}return t.concat(n||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host,g as getElement}from"./index-h3opCZqH.js";import{v as version}from"./package-D9jUbrFT.js";import{g as getDefaultExportFromCjs}from"./_commonjsHelpers-BFTU3MAI.js";import{c as createValidatorDecorator,g as getValidationContext}from"./create-validator-decorator--a-qkYfP.js";import{R as Required}from"./required-tHxh_hWW.js";import{T as Type}from"./type-Daxpt5v6.js";function DateValue(){return createValidatorDecorator({priority:1,blocking:false,run:function(t,e){var i=getValidationContext(t,e),r=i.value,a=i.showError;var n=typeof r==="string"&&!Number.isNaN(new Date(r).getTime());if(!n){a("must be a valid date string");return false}return true}})}function isIsoDate(t){var e=/^\d{1,4}-\d{2}-\d{2}$/;if(!e.test(t))return false;var i=t.split("-");var r="".concat(i[0].padStart(4,"0"),"-").concat(i[1],"-").concat(i[2]);var a=new Date("".concat(r,"T00:00"));if(Number.isNaN(a.getTime()))return false;var n=a.getFullYear();var o=String(a.getMonth()+1).padStart(2,"0");var s=String(a.getDate()).padStart(2,"0");return"".concat(n,"-").concat(o,"-").concat(s)===t}function IsoDate(){return createValidatorDecorator({priority:1,blocking:false,run:function(t,e){var i=getValidationContext(t,e),r=i.value,a=i.showError;if(!isIsoDate(String(r))){a("must be in ISO format (YYYY-MM-DD)");return false}return true}})}var FALLBACK_LANGUAGE_CODE="en";var BUDDHIST_CALENDAR_YEAR_OFFSET=543;var BUDDHIST_CALENDAR_LOCALES=["th","th-TH"];var UNICODE_BIDI={ltr:"",rtl:"",pop:""};function getLocaleTextDirection(t){return(new Date).toLocaleDateString(t).includes(UNICODE_BIDI.rtl)?"rtl":"ltr"}function isValidLocale(t){if(!t)return false;try{return Intl.DateTimeFormat.supportedLocalesOf(t).length>0}catch(t){console.log(t);return false}}function isString(t){return typeof t==="string"||t instanceof String}function isObject(t){var e;return typeof t==="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function pick(t,e){if(Array.isArray(e))return pick(t,(function(t,i){return e.includes(i)}));return Object.entries(t).reduce((function(t,i){var r=i[0],a=i[1];if(e(a,r))t[r]=a;return t}),{})}var DIRECTION={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function forceDirection(t){switch(t){case DIRECTION.LEFT:return DIRECTION.FORCE_LEFT;case DIRECTION.RIGHT:return DIRECTION.FORCE_RIGHT;default:return t}}function escapeRegExp(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function objectIncludes(t,e){if(e===t)return true;var i=Array.isArray(e),r=Array.isArray(t);var a;if(i&&r){if(e.length!=t.length)return false;for(a=0;a<e.length;a++)if(!objectIncludes(e[a],t[a]))return false;return true}if(i!=r)return false;if(e&&t&&typeof e==="object"&&typeof t==="object"){var n=e instanceof Date,o=t instanceof Date;if(n&&o)return e.getTime()==t.getTime();if(n!=o)return false;var s=e instanceof RegExp,c=t instanceof RegExp;if(s&&c)return e.toString()==t.toString();if(s!=c)return false;var u=Object.keys(e);for(a=0;a<u.length;a++)if(!Object.prototype.hasOwnProperty.call(t,u[a]))return false;for(a=0;a<u.length;a++)if(!objectIncludes(t[u[a]],e[u[a]]))return false;return true}else if(e&&t&&typeof e==="function"&&typeof t==="function"){return e.toString()===t.toString()}return false}var ActionDetails=function(){function t(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}Object.defineProperty(t.prototype,"startChangePos",{get:function(){return Math.min(this.cursorPos,this.oldSelection.start)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"insertedCount",{get:function(){return this.cursorPos-this.startChangePos},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inserted",{get:function(){return this.value.substr(this.startChangePos,this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removedCount",{get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removed",{get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"head",{get:function(){return this.value.substring(0,this.startChangePos)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"tail",{get:function(){return this.value.substring(this.startChangePos+this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removeDirection",{get:function(){if(!this.removedCount||this.insertedCount)return DIRECTION.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?DIRECTION.RIGHT:DIRECTION.LEFT},enumerable:false,configurable:true});return t}();function IMask(t,e){return new IMask.InputMask(t,e)}function maskedClass(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return IMask.MaskedRegExp;if(isString(t))return IMask.MaskedPattern;if(t===Date)return IMask.MaskedDate;if(t===Number)return IMask.MaskedNumber;if(Array.isArray(t)||t===Array)return IMask.MaskedDynamic;if(IMask.Masked&&t.prototype instanceof IMask.Masked)return t;if(IMask.Masked&&t instanceof IMask.Masked)return t.constructor;if(t instanceof Function)return IMask.MaskedFunction;console.warn("Mask not found for mask",t);return IMask.Masked}function normalizeOpts(t){if(!t)throw new Error("Options in not defined");if(IMask.Masked){if(t.prototype instanceof IMask.Masked)return{mask:t};var e=t instanceof IMask.Masked?{mask:t}:isObject(t)&&t.mask instanceof IMask.Masked?t:{},i=e.mask,r=i===void 0?undefined:i,a=__rest(e,["mask"]);if(r){var n=r.mask;return __assign(__assign(__assign({},pick(r,(function(t,e){return!e.startsWith("_")}))),{mask:r.constructor,_mask:n}),a)}}if(!isObject(t))return{mask:t};return __assign({},t)}function createMask(t){if(IMask.Masked&&t instanceof IMask.Masked)return t;var e=normalizeOpts(t);var i=maskedClass(e.mask);if(!i)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");if(e.mask===i)delete e.mask;if(e._mask){e.mask=e._mask;delete e._mask}return new i(e)}IMask.createMask=createMask;var MaskElement=function(){function t(){}Object.defineProperty(t.prototype,"selectionStart",{get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"selectionEnd",{get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});t.prototype.select=function(t,e){if(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd)return;try{this._unsafeSelect(t,e)}catch(t){}};Object.defineProperty(t.prototype,"isActive",{get:function(){return false},enumerable:false,configurable:true});return t}();IMask.MaskElement=MaskElement;var KEY_Z=90;var KEY_Y=89;var HTMLMaskElement=function(t){__extends(e,t);function e(e){var i=t.call(this)||this;i.input=e;i._onKeydown=i._onKeydown.bind(i);i._onInput=i._onInput.bind(i);i._onBeforeinput=i._onBeforeinput.bind(i);i._onCompositionEnd=i._onCompositionEnd.bind(i);return i}Object.defineProperty(e.prototype,"rootElement",{get:function(){var t,e,i;return(t=(e=(i=this.input).getRootNode)==null?void 0:e.call(i))!=null?t:document},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isActive",{get:function(){return this.input===this.rootElement.activeElement},enumerable:false,configurable:true});e.prototype.bindEvents=function(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t};e.prototype._onKeydown=function(t){if(this._handlers.redo&&(t.keyCode===KEY_Z&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===KEY_Y&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===KEY_Z&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)};e.prototype._onBeforeinput=function(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}};e.prototype._onCompositionEnd=function(t){this._handlers.input(t)};e.prototype._onInput=function(t){if(!t.isComposing)this._handlers.input(t)};e.prototype.unbindEvents=function(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}};return e}(MaskElement);IMask.HTMLMaskElement=HTMLMaskElement;var HTMLInputMaskElement=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;i.input=e;return i}Object.defineProperty(e.prototype,"_unsafeSelectionStart",{get:function(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_unsafeSelectionEnd",{get:function(){return this.input.selectionEnd},enumerable:false,configurable:true});e.prototype._unsafeSelect=function(t,e){this.input.setSelectionRange(t,e)};Object.defineProperty(e.prototype,"value",{get:function(){return this.input.value},set:function(t){this.input.value=t},enumerable:false,configurable:true});return e}(HTMLMaskElement);IMask.HTMLMaskElement=HTMLMaskElement;var HTMLContenteditableMaskElement=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_unsafeSelectionStart",{get:function(){var t=this.rootElement;var e=t.getSelection&&t.getSelection();var i=e&&e.anchorOffset;var r=e&&e.focusOffset;if(r==null||i==null||i<r){return i}return r},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_unsafeSelectionEnd",{get:function(){var t=this.rootElement;var e=t.getSelection&&t.getSelection();var i=e&&e.anchorOffset;var r=e&&e.focusOffset;if(r==null||i==null||i>r){return i}return r},enumerable:false,configurable:true});e.prototype._unsafeSelect=function(t,e){if(!this.rootElement.createRange)return;var i=this.rootElement.createRange();i.setStart(this.input.firstChild||this.input,t);i.setEnd(this.input.lastChild||this.input,e);var r=this.rootElement;var a=r.getSelection&&r.getSelection();if(a){a.removeAllRanges();a.addRange(i)}};Object.defineProperty(e.prototype,"value",{get:function(){return this.input.textContent||""},set:function(t){this.input.textContent=t},enumerable:false,configurable:true});return e}(HTMLMaskElement);IMask.HTMLContenteditableMaskElement=HTMLContenteditableMaskElement;var InputHistory=function(){function t(){this.states=[];this.currentIndex=0}Object.defineProperty(t.prototype,"currentState",{get:function(){return this.states[this.currentIndex]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.states.length===0},enumerable:false,configurable:true});t.prototype.push=function(e){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(e);if(this.states.length>t.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1};t.prototype.go=function(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState};t.prototype.undo=function(){return this.go(-1)};t.prototype.redo=function(){return this.go(1)};t.prototype.clear=function(){this.states.length=0;this.currentIndex=0};return t}();InputHistory.MAX_LENGTH=100;var InputMask=function(){function t(t,e){this.el=t instanceof MaskElement?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new HTMLContenteditableMaskElement(t):new HTMLInputMaskElement(t);this.masked=createMask(e);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new InputHistory;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}t.prototype.maskEquals=function(t){var e;return t==null||((e=this.masked)==null?void 0:e.maskEquals(t))};Object.defineProperty(t.prototype,"mask",{get:function(){return this.masked.mask},set:function(t){if(this.maskEquals(t))return;if(!(t instanceof IMask.Masked)&&this.masked.constructor===maskedClass(t)){this.masked.updateOptions({mask:t});return}var e=t instanceof IMask.Masked?t:createMask({mask:t});e.unmaskedValue=this.masked.unmaskedValue;this.masked=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this._unmaskedValue},set:function(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._rawInputValue},set:function(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.masked.typedValue},set:function(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.displayValue},enumerable:false,configurable:true});t.prototype._bindEvents=function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})};t.prototype._unbindEvents=function(){if(this.el)this.el.unbindEvents()};t.prototype._fireEvent=function(t,e){var i=this._listeners[t];if(!i)return;i.forEach((function(t){return t(e)}))};Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cursorPos",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()},enumerable:false,configurable:true});t.prototype._saveSelection=function(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}};t.prototype.updateValue=function(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue};t.prototype.updateControl=function(t){var e=this.masked.unmaskedValue;var i=this.masked.value;var r=this.masked.rawInputValue;var a=this.displayValue;var n=this.unmaskedValue!==e||this.value!==i||this._rawInputValue!==r;this._unmaskedValue=e;this._value=i;this._rawInputValue=r;if(this.el.value!==a)this.el.value=a;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:e,selection:{start:this.selectionStart,end:this.cursorPos}})};t.prototype.updateOptions=function(t){var e=t.mask,i=__rest(t,["mask"]);var r=!this.maskEquals(e);var a=this.masked.optionsIsChanged(i);if(r)this.mask=e;if(a)this.masked.updateOptions(i);if(r||a)this.updateControl()};t.prototype.updateCursor=function(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)};t.prototype._delayUpdateCursor=function(t){var e=this;this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((function(){if(!e.el)return;e.cursorPos=e._changingCursorPos;e._abortUpdateCursor()}),10)};t.prototype._fireChangeEvents=function(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)};t.prototype._abortUpdateCursor=function(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}};t.prototype.alignCursor=function(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,DIRECTION.LEFT))};t.prototype.alignCursorFriendly=function(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()};t.prototype.on=function(t,e){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(e);return this};t.prototype.off=function(t,e){if(!this._listeners[t])return this;if(!e){delete this._listeners[t];return this}var i=this._listeners[t].indexOf(e);if(i>=0)this._listeners[t].splice(i,1);return this};t.prototype._onInput=function(t){this._inputEvent=t;this._abortUpdateCursor();var e=new ActionDetails({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});var i=this.masked.rawInputValue;var r=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:true,raw:true}).offset;var a=i===this.masked.rawInputValue?e.removeDirection:DIRECTION.NONE;var n=this.masked.nearestInputPos(e.startChangePos+r,a);if(a!==DIRECTION.NONE)n=this.masked.nearestInputPos(n,DIRECTION.NONE);this.updateControl(n);delete this._inputEvent};t.prototype._onChange=function(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()};t.prototype._onDrop=function(t){t.preventDefault();t.stopPropagation()};t.prototype._onFocus=function(t){this.alignCursorFriendly()};t.prototype._onClick=function(t){this.alignCursorFriendly()};t.prototype._onUndo=function(){this._applyHistoryState(this.history.undo())};t.prototype._onRedo=function(){this._applyHistoryState(this.history.redo())};t.prototype._applyHistoryState=function(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false};t.prototype.destroy=function(){this._unbindEvents();this._listeners.length=0;delete this.el};return t}();IMask.InputMask=InputMask;var ChangeDetails=function(){function t(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}t.normalize=function(e){return Array.isArray(e)?e:[e,new t]};t.prototype.aggregate=function(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this};Object.defineProperty(t.prototype,"offset",{get:function(){return this.tailShift+this.inserted.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"consumed",{get:function(){return Boolean(this.rawInserted)||this.skip},enumerable:false,configurable:true});t.prototype.equals=function(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip};return t}();IMask.ChangeDetails=ChangeDetails;var ContinuousTailDetails=function(){function t(t,e,i){if(t===void 0){t=""}if(e===void 0){e=0}this.value=t;this.from=e;this.stop=i}t.prototype.toString=function(){return this.value};t.prototype.extend=function(t){this.value+=String(t)};t.prototype.appendTo=function(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())};Object.defineProperty(t.prototype,"state",{get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.value.length||t!=null&&this.from>=t)return"";var e=this.value[0];this.value=this.value.slice(1);return e};t.prototype.shift=function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t};return t}();var Masked=function(){function t(e){this._value="";this._update(__assign(__assign({},t.DEFAULTS),e));this._initialized=true}t.prototype.updateOptions=function(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))};t.prototype._update=function(t){Object.assign(this,t)};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value},enumerable:false,configurable:true});t.prototype.reset=function(){this._value=""};Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.resolve(t,{input:true})},enumerable:false,configurable:true});t.prototype.resolve=function(t,e){if(e===void 0){e={input:true}}this.reset();this.append(t,e,"");this.doCommit()};Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.value},set:function(t){this.resolve(t,{})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.parse?this.parse(this.value,this):this.unmaskedValue},set:function(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.extractInput(0,this.displayValue.length,{raw:true})},set:function(t){this.resolve(t,{raw:true})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return this.isComplete},enumerable:false,configurable:true});t.prototype.nearestInputPos=function(t,e){return t};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return Math.min(this.displayValue.length,e-t)};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return this.displayValue.slice(t,e)};t.prototype.extractTail=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return new ContinuousTailDetails(this.extractInput(t,e),t)};t.prototype.appendTail=function(t){if(isString(t))t=new ContinuousTailDetails(String(t));return t.appendTo(this)};t.prototype._appendCharRaw=function(t,e){if(!t)return new ChangeDetails;this._value+=t;return new ChangeDetails({inserted:t,rawInserted:t})};t.prototype._appendChar=function(t,e,i){var r;if(e===void 0){e={}}var a=this.state;var n;r=this.doPrepareChar(t,e),t=r[0],n=r[1];if(t){n=n.aggregate(this._appendCharRaw(t,e));if(!n.rawInserted&&this.autofix==="pad"){var o=this.state;this.state=a;var s=this.pad(e);var c=this._appendCharRaw(t,e);s=s.aggregate(c);if(c.rawInserted||s.equals(n)){n=s}else{this.state=o}}}if(n.inserted){var u=void 0;var d=this.doValidate(e)!==false;if(d&&i!=null){var l=this.state;if(this.overwrite===true){u=i.state;for(var h=0;h<n.rawInserted.length;++h){i.unshift(this.displayValue.length-n.tailShift)}}var f=this.appendTail(i);d=f.rawInserted.length===i.toString().length;if(!(d&&f.inserted)&&this.overwrite==="shift"){this.state=l;u=i.state;for(var h=0;h<n.rawInserted.length;++h){i.shift()}f=this.appendTail(i);d=f.rawInserted.length===i.toString().length}if(d&&f.inserted)this.state=l}if(!d){n=new ChangeDetails;this.state=a;if(i&&u)i.state=u}}return n};t.prototype._appendPlaceholder=function(){return new ChangeDetails};t.prototype._appendEager=function(){return new ChangeDetails};t.prototype.append=function(t,e,i){var r;if(!isString(t))throw new Error("value should be string");var a=isString(i)?new ContinuousTailDetails(String(i)):i;if(e!=null&&e.tail)e._beforeTailState=this.state;var n;r=this.doPrepare(t,e),t=r[0],n=r[1];for(var o=0;o<t.length;++o){var s=this._appendChar(t[o],e,a);if(!s.rawInserted&&!this.doSkipInvalid(t[o],e,a))break;n.aggregate(s)}if((this.eager===true||this.eager==="append")&&e!=null&&e.input&&t){n.aggregate(this._appendEager())}if(a!=null){n.tailShift+=this.appendTail(a).tailShift}return n};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(e);return new ChangeDetails};t.prototype.withValueRefresh=function(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;var e=this.rawInputValue;var i=this.value;var r=t();this.rawInputValue=e;if(this.value&&this.value!==i&&i.indexOf(this.value)===0){this.append(i.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return r};t.prototype.runIsolated=function(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;var e=this.state;var i=t(this);this.state=e;delete this._isolated;return i};t.prototype.doSkipInvalid=function(t,e,i){return Boolean(this.skipInvalid)};t.prototype.doPrepare=function(t,e){if(e===void 0){e={}}return ChangeDetails.normalize(this.prepare?this.prepare(t,this,e):t)};t.prototype.doPrepareChar=function(t,e){if(e===void 0){e={}}return ChangeDetails.normalize(this.prepareChar?this.prepareChar(t,this,e):t)};t.prototype.doValidate=function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))};t.prototype.doCommit=function(){if(this.commit)this.commit(this.value,this)};t.prototype.splice=function(t,e,i,r,a){if(i===void 0){i=""}if(r===void 0){r=DIRECTION.NONE}if(a===void 0){a={input:true}}var n=t+e;var o=this.extractTail(n);var s=this.eager===true||this.eager==="remove";var c;if(s){r=forceDirection(r);c=this.extractInput(0,n,{raw:true})}var u=t;var d=new ChangeDetails;if(r!==DIRECTION.NONE){u=this.nearestInputPos(t,e>1&&t!==0&&!s?DIRECTION.NONE:r);d.tailShift=u-t}d.aggregate(this.remove(u));if(s&&r!==DIRECTION.NONE&&c===this.rawInputValue){if(r===DIRECTION.FORCE_LEFT){var l=void 0;while(c===this.rawInputValue&&(l=this.displayValue.length)){d.aggregate(new ChangeDetails({tailShift:-1})).aggregate(this.remove(l-1))}}else if(r===DIRECTION.FORCE_RIGHT){o.unshift()}}return d.aggregate(this.append(i,a,o))};t.prototype.maskEquals=function(t){return this.mask===t};t.prototype.optionsIsChanged=function(t){return!objectIncludes(this,t)};t.prototype.typedValueEquals=function(e){var i=this.typedValue;return e===i||t.EMPTY_VALUES.includes(e)&&t.EMPTY_VALUES.includes(i)||(this.format?this.format(e,this)===this.format(this.typedValue,this):false)};t.prototype.pad=function(t){return new ChangeDetails};return t}();Masked.DEFAULTS={skipInvalid:true};Masked.EMPTY_VALUES=[undefined,null,""];IMask.Masked=Masked;var ChunksTailDetails=function(){function t(t,e){if(t===void 0){t=[]}if(e===void 0){e=0}this.chunks=t;this.from=e}t.prototype.toString=function(){return this.chunks.map(String).join("")};t.prototype.extend=function(e){if(!String(e))return;e=isString(e)?new ContinuousTailDetails(String(e)):e;var i=this.chunks[this.chunks.length-1];var r=i&&(i.stop===e.stop||e.stop==null)&&e.from===i.from+i.toString().length;if(e instanceof ContinuousTailDetails){if(r){i.extend(e.toString())}else{this.chunks.push(e)}}else if(e instanceof t){if(e.stop==null){var a=void 0;while(e.chunks.length&&e.chunks[0].stop==null){a=e.chunks.shift();a.from+=e.from;this.extend(a)}}if(e.toString()){e.stop=e.blockIndex;this.chunks.push(e)}}};t.prototype.appendTo=function(e){if(!(e instanceof IMask.MaskedPattern)){var i=new ContinuousTailDetails(this.toString());return i.appendTo(e)}var r=new ChangeDetails;for(var a=0;a<this.chunks.length;++a){var n=this.chunks[a];var o=e._mapPosToBlock(e.displayValue.length);var s=n.stop;var c=void 0;if(s!=null&&(!o||o.index<=s)){if(n instanceof t||e._stops.indexOf(s)>=0){r.aggregate(e._appendPlaceholder(s))}c=n instanceof t&&e._blocks[s]}if(c){var u=c.appendTail(n);r.aggregate(u);var d=n.toString().slice(u.rawInserted.length);if(d)r.aggregate(e.append(d,{tail:true}))}else{r.aggregate(e.append(n.toString(),{tail:true}))}}return r};Object.defineProperty(t.prototype,"state",{get:function(){return{chunks:this.chunks.map((function(t){return t.state})),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var i=e.chunks,r=__rest(e,["chunks"]);Object.assign(this,r);this.chunks=i.map((function(e){var i="chunks"in e?new t:new ContinuousTailDetails;i.state=e;return i}))},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";var e=t!=null?t-this.from:t;var i=0;while(i<this.chunks.length){var r=this.chunks[i];var a=r.unshift(e);if(r.toString()){if(!a)break;++i}else{this.chunks.splice(i,1)}if(a)return a}return""};t.prototype.shift=function(){if(!this.chunks.length)return"";var t=this.chunks.length-1;while(0<=t){var e=this.chunks[t];var i=e.shift();if(e.toString()){if(!i)break;--t}else{this.chunks.splice(t,1)}if(i)return i}return""};return t}();var PatternCursor=function(){function t(t,e){this.masked=t;this._log=[];var i=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0}),r=i.offset,a=i.index;this.offset=r;this.index=a;this.ok=false}Object.defineProperty(t.prototype,"block",{get:function(){return this.masked._blocks[this.index]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pos",{get:function(){return this.masked._blockStartPos(this.index)+this.offset},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"state",{get:function(){return{index:this.index,offset:this.offset,ok:this.ok}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.pushState=function(){this._log.push(this.state)};t.prototype.popState=function(){var t=this._log.pop();if(t)this.state=t;return t};t.prototype.bindBlock=function(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}};t.prototype._pushLeft=function(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)==null?void 0:e.displayValue.length)||0){var e;if(t())return this.ok=true}return this.ok=false};t.prototype._pushRight=function(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false};t.prototype.pushLeftBeforeFilled=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.FORCE_LEFT);if(t.offset!==0)return true}))};t.prototype.pushLeftBeforeInput=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.LEFT);return true}))};t.prototype.pushLeftBeforeRequired=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.LEFT);return true}))};t.prototype.pushRightBeforeFilled=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.FORCE_RIGHT);if(t.offset!==t.block.value.length)return true}))};t.prototype.pushRightBeforeInput=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.NONE);return true}))};t.prototype.pushRightBeforeRequired=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,DIRECTION.NONE);return true}))};return t}();var PatternFixedDefinition=function(){function t(t){Object.assign(this,t);this._value="";this.isFixed=true}Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.isUnmasking?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._isRawInput?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});t.prototype.reset=function(){this._isRawInput=false;this._value=""};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(e);if(!this._value)this._isRawInput=false;return new ChangeDetails};t.prototype.nearestInputPos=function(t,e){if(e===void 0){e=DIRECTION.NONE}var i=0;var r=this._value.length;switch(e){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return i;case DIRECTION.NONE:case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:default:return r}};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}return this._isRawInput?e-t:0};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this._value.length}if(i===void 0){i={}}return i.raw&&this._isRawInput&&this._value.slice(t,e)||""};Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return Boolean(this._value)},enumerable:false,configurable:true});t.prototype._appendChar=function(t,e){if(e===void 0){e={}}if(this.isFilled)return new ChangeDetails;var i=this.eager===true||this.eager==="append";var r=this.char===t;var a=r&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!i)&&!e.tail;var n=new ChangeDetails({inserted:this.char,rawInserted:a?this.char:""});this._value=this.char;this._isRawInput=a&&(e.raw||e.input);return n};t.prototype._appendEager=function(){return this._appendChar(this.char,{tail:true})};t.prototype._appendPlaceholder=function(){var t=new ChangeDetails;if(this.isFilled)return t;this._value=t.inserted=this.char;return t};t.prototype.extractTail=function(){return new ContinuousTailDetails("")};t.prototype.appendTail=function(t){if(isString(t))t=new ContinuousTailDetails(String(t));return t.appendTo(this)};t.prototype.append=function(t,e,i){var r=this._appendChar(t[0],e);if(i!=null){r.tailShift+=this.appendTail(i).tailShift}return r};t.prototype.doCommit=function(){};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this._value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)},enumerable:false,configurable:true});t.prototype.pad=function(t){return this._appendPlaceholder()};return t}();var PatternInputDefinition=function(){function t(t){var e=t.parent,i=t.isOptional,r=t.placeholderChar,a=t.displayChar,n=t.lazy,o=t.eager,s=__rest(t,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=createMask(s);Object.assign(this,{parent:e,isOptional:i,placeholderChar:r,displayChar:a,lazy:n,eager:o})}t.prototype.reset=function(){this.isFilled=false;this.masked.reset()};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}if(t===0&&e>=1){this.isFilled=false;return this.masked.remove(t,e)}return new ChangeDetails};Object.defineProperty(t.prototype,"value",{get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.masked.unmaskedValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.masked.rawInputValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.value&&this.displayChar||this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return Boolean(this.masked.value)||this.isOptional},enumerable:false,configurable:true});t.prototype._appendChar=function(t,e){if(e===void 0){e={}}if(this.isFilled)return new ChangeDetails;var i=this.masked.state;var r=this.masked._appendChar(t,this.currentMaskFlags(e));if(r.inserted&&this.doValidate(e)===false){r=new ChangeDetails;this.masked.state=i}if(!r.inserted&&!this.isOptional&&!this.lazy&&!e.input){r.inserted=this.placeholderChar}r.skip=!r.inserted&&!this.isOptional;this.isFilled=Boolean(r.inserted);return r};t.prototype.append=function(t,e,i){return this.masked.append(t,this.currentMaskFlags(e),i)};t.prototype._appendPlaceholder=function(){if(this.isFilled||this.isOptional)return new ChangeDetails;this.isFilled=true;return new ChangeDetails({inserted:this.placeholderChar})};t.prototype._appendEager=function(){return new ChangeDetails};t.prototype.extractTail=function(t,e){return this.masked.extractTail(t,e)};t.prototype.appendTail=function(t){return this.masked.appendTail(t)};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.masked.extractInput(t,e,i)};t.prototype.nearestInputPos=function(t,e){if(e===void 0){e=DIRECTION.NONE}var i=0;var r=this.value.length;var a=Math.min(Math.max(t,i),r);switch(e){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return this.isComplete?a:i;case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:return this.isComplete?a:r;case DIRECTION.NONE:default:return a}};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.value.slice(t,e).length};t.prototype.doValidate=function(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))};t.prototype.doCommit=function(){this.masked.doCommit()};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked;this.isFilled=t.isFilled},enumerable:false,configurable:true});t.prototype.currentMaskFlags=function(t){var e;return __assign(__assign({},t),{_beforeTailState:(t==null||(e=t._beforeTailState)==null?void 0:e.masked)||(t==null?void 0:t._beforeTailState)})};t.prototype.pad=function(t){return new ChangeDetails};return t}();PatternInputDefinition.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var MaskedRegExp=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.mask;if(i)e.validate=function(t){return t.search(i)>=0};t.prototype._update.call(this,e)};return e}(Masked);IMask.MaskedRegExp=MaskedRegExp;var MaskedPattern=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign(__assign({},e.DEFAULTS),i),{definitions:Object.assign({},PatternInputDefinition.DEFAULT_DEFINITIONS,i==null?void 0:i.definitions)}))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){e.definitions=Object.assign({},this.definitions,e.definitions);t.prototype._update.call(this,e);this._rebuildMask()};e.prototype._rebuildMask=function(){var t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};var i=this.mask;if(!i||!t)return;var r=false;var a=false;var n=function(n){if(o.blocks){var c=i.slice(n);var u=Object.keys(o.blocks).filter((function(t){return c.indexOf(t)===0}));u.sort((function(t,e){return e.length-t.length}));var d=u[0];if(d){var l=normalizeOpts(o.blocks[d]),h=l.expose,f=l.repeat,p=__rest(l,["expose","repeat"]);var v=__assign(__assign({lazy:o.lazy,eager:o.eager,placeholderChar:o.placeholderChar,displayChar:o.displayChar,overwrite:o.overwrite,autofix:o.autofix},p),{repeat:f,parent:o});var b=f!=null?new IMask.RepeatBlock(v):createMask(v);if(b){o._blocks.push(b);if(h)o.exposeBlock=b;if(!o._maskedBlocks[d])o._maskedBlocks[d]=[];o._maskedBlocks[d].push(o._blocks.length-1)}n+=d.length-1;return s=n,"continue"}}var k=i[n];var m=k in t;if(k===e.STOP_CHAR){o._stops.push(o._blocks.length);return s=n,"continue"}if(k==="{"||k==="}"){r=!r;return s=n,"continue"}if(k==="["||k==="]"){a=!a;return s=n,"continue"}if(k===e.ESCAPE_CHAR){++n;k=i[n];if(!k)return s=n,"break";m=false}var g=m?new PatternInputDefinition(__assign(__assign({isOptional:a,lazy:o.lazy,eager:o.eager,placeholderChar:o.placeholderChar,displayChar:o.displayChar},normalizeOpts(t[k])),{parent:o})):new PatternFixedDefinition({char:k,eager:o.eager,isUnmasking:r});o._blocks.push(g);s=n};var o=this,s;for(var c=0;c<i.length;++c){var u=n(c);c=s;if(u==="break")break}};Object.defineProperty(e.prototype,"state",{get:function(){return __assign(__assign({},t.prototype.state),{_blocks:this._blocks.map((function(t){return t.state}))})},set:function(e){if(!e){this.reset();return}var i=e._blocks,r=__rest(e,["_blocks"]);this._blocks.forEach((function(t,e){return t.state=i[e]}));t.prototype.state=r},enumerable:false,configurable:true});e.prototype.reset=function(){t.prototype.reset.call(this);this._blocks.forEach((function(t){return t.reset()}))};Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((function(t){return t.isComplete}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFilled",{get:function(){return this._blocks.every((function(t){return t.isFilled}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFixed",{get:function(){return this._blocks.every((function(t){return t.isFixed}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isOptional",{get:function(){return this._blocks.every((function(t){return t.isOptional}))},enumerable:false,configurable:true});e.prototype.doCommit=function(){this._blocks.forEach((function(t){return t.doCommit()}));t.prototype.doCommit.call(this)};Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((function(t,e){return t+=e.unmaskedValue}),"")},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e;this.appendTail(i);this.doCommit()}else t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"value",{get:function(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((function(t,e){return t+=e.value}),"")},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e;this.appendTail(i);this.doCommit()}else t.prototype.value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.exposeBlock?this.exposeBlock.typedValue:t.prototype.typedValue},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e;this.appendTail(i);this.doCommit()}else t.prototype.typedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"displayValue",{get:function(){return this._blocks.reduce((function(t,e){return t+=e.displayValue}),"")},enumerable:false,configurable:true});e.prototype.appendTail=function(e){return t.prototype.appendTail.call(this,e).aggregate(this._appendPlaceholder())};e.prototype._appendEager=function(){var t;var e=new ChangeDetails;var i=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(i==null)return e;if(this._blocks[i].isFilled)++i;for(var r=i;r<this._blocks.length;++r){var a=this._blocks[r]._appendEager();if(!a.inserted)break;e.aggregate(a)}return e};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=this._mapPosToBlock(this.displayValue.length);var r=new ChangeDetails;if(!i)return r;for(var a=i.index,n=void 0;n=this._blocks[a];++a){var o;var s=n._appendChar(t,__assign(__assign({},e),{_beforeTailState:(o=e._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]}));r.aggregate(s);if(s.consumed)break}return r};e.prototype.extractTail=function(t,e){var i=this;if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}var r=new ChunksTailDetails;if(t===e)return r;this._forEachBlocksInRange(t,e,(function(t,e,a,n){var o=t.extractTail(a,n);o.stop=i._findStopBefore(e);o.from=i._blockStartPos(e);if(o instanceof ChunksTailDetails)o.blockIndex=e;r.extend(o)}));return r};e.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(i===void 0){i={}}if(t===e)return"";var r="";this._forEachBlocksInRange(t,e,(function(t,e,a,n){r+=t.extractInput(a,n,i)}));return r};e.prototype._findStopBefore=function(t){var e;for(var i=0;i<this._stops.length;++i){var r=this._stops[i];if(r<=t)e=r;else break}return e};e.prototype._appendPlaceholder=function(t){var e=new ChangeDetails;if(this.lazy&&t==null)return e;var i=this._mapPosToBlock(this.displayValue.length);if(!i)return e;var r=i.index;var a=t!=null?t:this._blocks.length;this._blocks.slice(r,a).forEach((function(i){if(!i.lazy||t!=null){var r;e.aggregate(i._appendPlaceholder((r=i._blocks)==null?void 0:r.length))}}));return e};e.prototype._mapPosToBlock=function(t){var e="";for(var i=0;i<this._blocks.length;++i){var r=this._blocks[i];var a=e.length;e+=r.displayValue;if(t<=e.length){return{index:i,offset:t-a}}}};e.prototype._blockStartPos=function(t){return this._blocks.slice(0,t).reduce((function(t,e){return t+=e.displayValue.length}),0)};e.prototype._forEachBlocksInRange=function(t,e,i){if(e===void 0){e=this.displayValue.length}var r=this._mapPosToBlock(t);if(r){var a=this._mapPosToBlock(e);var n=a&&r.index===a.index;var o=r.offset;var s=a&&n?a.offset:this._blocks[r.index].displayValue.length;i(this._blocks[r.index],r.index,o,s);if(a&&!n){for(var c=r.index+1;c<a.index;++c){i(this._blocks[c],c,0,this._blocks[c].displayValue.length)}i(this._blocks[a.index],a.index,0,a.offset)}}};e.prototype.remove=function(e,i){if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}var r=t.prototype.remove.call(this,e,i);this._forEachBlocksInRange(e,i,(function(t,e,i,a){r.aggregate(t.remove(i,a))}));return r};e.prototype.nearestInputPos=function(t,e){if(e===void 0){e=DIRECTION.NONE}if(!this._blocks.length)return 0;var i=new PatternCursor(this,t);if(e===DIRECTION.NONE){if(i.pushRightBeforeInput())return i.pos;i.popState();if(i.pushLeftBeforeInput())return i.pos;return this.displayValue.length}if(e===DIRECTION.LEFT||e===DIRECTION.FORCE_LEFT){if(e===DIRECTION.LEFT){i.pushRightBeforeFilled();if(i.ok&&i.pos===t)return t;i.popState()}i.pushLeftBeforeInput();i.pushLeftBeforeRequired();i.pushLeftBeforeFilled();if(e===DIRECTION.LEFT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.ok&&i.pos<=t)return i.pos;i.popState();if(i.ok&&i.pos<=t)return i.pos;i.popState()}if(i.ok)return i.pos;if(e===DIRECTION.FORCE_LEFT)return 0;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return 0}if(e===DIRECTION.RIGHT||e===DIRECTION.FORCE_RIGHT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.pushRightBeforeFilled())return i.pos;if(e===DIRECTION.FORCE_RIGHT)return this.displayValue.length;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return this.nearestInputPos(t,DIRECTION.LEFT)}return t};e.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}var i=0;this._forEachBlocksInRange(t,e,(function(t,e,r,a){i+=t.totalInputPositions(r,a)}));return i};e.prototype.maskedBlock=function(t){return this.maskedBlocks(t)[0]};e.prototype.maskedBlocks=function(t){var e=this;var i=this._maskedBlocks[t];if(!i)return[];return i.map((function(t){return e._blocks[t]}))};e.prototype.pad=function(t){var e=new ChangeDetails;this._forEachBlocksInRange(0,this.displayValue.length,(function(i){return e.aggregate(i.pad(t))}));return e};return e}(Masked);MaskedPattern.DEFAULTS=__assign(__assign({},Masked.DEFAULTS),{lazy:true,placeholderChar:"_"});MaskedPattern.STOP_CHAR="`";MaskedPattern.ESCAPE_CHAR="\\";MaskedPattern.InputDefinition=PatternInputDefinition;MaskedPattern.FixedDefinition=PatternFixedDefinition;IMask.MaskedPattern=MaskedPattern;var MaskedRange=function(t){__extends(e,t);function e(e){return t.call(this,e)||this}Object.defineProperty(e.prototype,"_matchFrom",{get:function(){return this.maxLength-String(this.from).length},enumerable:false,configurable:true});e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.to,r=i===void 0?this.to||0:i,a=e.from,n=a===void 0?this.from||0:a,o=e.maxLength,s=o===void 0?this.maxLength||0:o,c=e.autofix,u=c===void 0?this.autofix:c,d=__rest(e,["to","from","maxLength","autofix"]);this.to=r;this.from=n;this.maxLength=Math.max(String(r).length,s);this.autofix=u;var l=String(this.from).padStart(this.maxLength,"0");var h=String(this.to).padStart(this.maxLength,"0");var f=0;while(f<h.length&&h[f]===l[f])++f;d.mask=h.slice(0,f).replace(/0/g,"\\0")+"0".repeat(this.maxLength-f);t.prototype._update.call(this,d)};Object.defineProperty(e.prototype,"isComplete",{get:function(){return t.prototype.isComplete&&Boolean(this.value)},enumerable:false,configurable:true});e.prototype.boundaries=function(t){var e="";var i="";var r=t.match(/^(\D*)(\d*)(\D*)/)||[],a=r[1],n=r[2];if(n){e="0".repeat(a.length)+n;i="9".repeat(a.length)+n}e=e.padEnd(this.maxLength,"0");i=i.padEnd(this.maxLength,"9");return[e,i]};e.prototype.doPrepareChar=function(e,i){var r;if(i===void 0){i={}}var a;r=t.prototype.doPrepareChar.call(this,e.replace(/\D/g,""),i),e=r[0],a=r[1];if(!e)a.skip=!this.isComplete;return[e,a]};e.prototype._appendCharRaw=function(e,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return t.prototype._appendCharRaw.call(this,e,i);var r=String(this.from).padStart(this.maxLength,"0");var a=String(this.to).padStart(this.maxLength,"0");var n=this.boundaries(this.value+e),o=n[0],s=n[1];if(Number(s)<this.from)return t.prototype._appendCharRaw.call(this,r[this.value.length],i);if(Number(o)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return t.prototype._appendCharRaw.call(this,r[this.value.length],i).aggregate(this._appendCharRaw(e,i))}return t.prototype._appendCharRaw.call(this,a[this.value.length],i)}return t.prototype._appendCharRaw.call(this,e,i)};e.prototype.doValidate=function(e){var i=this.value;var r=i.search(/[^0]/);if(r===-1&&i.length<=this._matchFrom)return true;var a=this.boundaries(i),n=a[0],o=a[1];return this.from<=Number(o)&&Number(n)<=this.to&&t.prototype.doValidate.call(this,e)};e.prototype.pad=function(e){var i=this;var r=new ChangeDetails;if(this.value.length===this.maxLength)return r;var a=this.value;var n=this.maxLength-this.value.length;if(n){this.reset();for(var o=0;o<n;++o){r.aggregate(t.prototype._appendCharRaw.call(this,"0",e))}a.split("").forEach((function(t){return i._appendCharRaw(t)}))}return r};return e}(MaskedPattern);IMask.MaskedRange=MaskedRange;var DefaultPattern="d{.}`m{.}`Y";var MaskedDate=function(t){__extends(e,t);function e(i){return t.call(this,e.extractPatternOptions(__assign(__assign({},e.DEFAULTS),i)))||this}e.extractPatternOptions=function(t){var e=t.mask,i=t.pattern,r=__rest(t,["mask","pattern"]);return __assign(__assign({},r),{mask:isString(e)?e:i})};e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(i){var r=__assign(__assign({},e.DEFAULTS),i),a=r.mask,n=r.pattern,o=r.blocks,s=__rest(r,["mask","pattern","blocks"]);var c=Object.assign({},e.GET_DEFAULT_BLOCKS());if(i.min)c.Y.from=i.min.getFullYear();if(i.max)c.Y.to=i.max.getFullYear();if(i.min&&i.max&&c.Y.from===c.Y.to){c.m.from=i.min.getMonth()+1;c.m.to=i.max.getMonth()+1;if(c.m.from===c.m.to){c.d.from=i.min.getDate();c.d.to=i.max.getDate()}}Object.assign(c,this.blocks,o);t.prototype._update.call(this,__assign(__assign({},s),{mask:isString(a)?a:n,blocks:c}))};e.prototype.doValidate=function(e){var i=this.date;return t.prototype.doValidate.call(this,e)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))};e.prototype.isDateExist=function(t){return this.format(this.parse(t,this),this).indexOf(t)>=0};Object.defineProperty(e.prototype,"date",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.isComplete?t.prototype.typedValue:null},set:function(e){t.prototype.typedValue=e},enumerable:false,configurable:true});e.prototype.maskEquals=function(e){return e===Date||t.prototype.maskEquals.call(this,e)};e.prototype.optionsIsChanged=function(i){return t.prototype.optionsIsChanged.call(this,e.extractPatternOptions(i))};return e}(MaskedPattern);MaskedDate.GET_DEFAULT_BLOCKS=function(){return{d:{mask:MaskedRange,from:1,to:31,maxLength:2},m:{mask:MaskedRange,from:1,to:12,maxLength:2},Y:{mask:MaskedRange,from:1900,to:9999}}};MaskedDate.DEFAULTS=__assign(__assign({},MaskedPattern.DEFAULTS),{mask:Date,pattern:DefaultPattern,format:function(t,e){if(!t)return"";var i=String(t.getDate()).padStart(2,"0");var r=String(t.getMonth()+1).padStart(2,"0");var a=t.getFullYear();return[i,r,a].join(".")},parse:function(t,e){var i=t.split(".").map(Number),r=i[0],a=i[1],n=i[2];return new Date(n,a-1,r)}});IMask.MaskedDate=MaskedDate;var MaskedDynamic=function(t){__extends(e,t);function e(i){var r=t.call(this,__assign(__assign({},e.DEFAULTS),i))||this;r.currentMask=undefined;return r}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=this;t.prototype._update.call(this,e);if("mask"in e){this.exposeMask=undefined;this.compiledMasks=Array.isArray(e.mask)?e.mask.map((function(t){var e=normalizeOpts(t),r=e.expose,a=__rest(e,["expose"]);var n=createMask(__assign({overwrite:i._overwrite,eager:i._eager,skipInvalid:i._skipInvalid},a));if(r)i.exposeMask=n;return n})):[]}};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=this._applyDispatch(t,e);if(this.currentMask){i.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e)))}return i};e.prototype._applyDispatch=function(t,e,i){if(t===void 0){t=""}if(e===void 0){e={}}if(i===void 0){i=""}var r=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value;var a=this.rawInputValue;var n=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:a;var o=a.slice(n.length);var s=this.currentMask;var c=new ChangeDetails;var u=s==null?void 0:s.state;this.currentMask=this.doDispatch(t,__assign({},e),i);if(this.currentMask){if(this.currentMask!==s){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});c.tailShift=this.currentMask.value.length-r.length}if(o){c.tailShift+=this.currentMask.append(o,{raw:true,tail:true}).tailShift}}else if(u){this.currentMask.state=u}}return c};e.prototype._appendPlaceholder=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t};e.prototype._appendEager=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t};e.prototype.appendTail=function(e){var i=new ChangeDetails;if(e)i.aggregate(this._applyDispatch("",{},e));return i.aggregate(this.currentMask?this.currentMask.appendTail(e):t.prototype.appendTail.call(this,e))};e.prototype.currentMaskFlags=function(t){var e,i;return __assign(__assign({},t),{_beforeTailState:((e=t._beforeTailState)==null?void 0:e.currentMaskRef)===this.currentMask&&((i=t._beforeTailState)==null?void 0:i.currentMask)||t._beforeTailState})};e.prototype.doDispatch=function(t,e,i){if(e===void 0){e={}}if(i===void 0){i=""}return this.dispatch(t,this,e,i)};e.prototype.doValidate=function(e){return t.prototype.doValidate.call(this,e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))};e.prototype.doPrepare=function(e,i){var r;if(i===void 0){i={}}var a=t.prototype.doPrepare.call(this,e,i),n=a[0],o=a[1];if(this.currentMask){var s=void 0;r=t.prototype.doPrepare.call(this,n,this.currentMaskFlags(i)),n=r[0],s=r[1];o=o.aggregate(s)}return[n,o]};e.prototype.doPrepareChar=function(e,i){var r;if(i===void 0){i={}}var a=t.prototype.doPrepareChar.call(this,e,i),n=a[0],o=a[1];if(this.currentMask){var s=void 0;r=t.prototype.doPrepareChar.call(this,n,this.currentMaskFlags(i)),n=r[0],s=r[1];o=o.aggregate(s)}return[n,o]};e.prototype.reset=function(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((function(t){return t.reset()}))};Object.defineProperty(e.prototype,"value",{get:function(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""},set:function(e){if(this.exposeMask){this.exposeMask.value=e;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""},set:function(e){if(this.exposeMask){this.exposeMask.unmaskedValue=e;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""},set:function(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}var e=String(t);if(this.currentMask){this.currentMask.typedValue=t;e=this.currentMask.unmaskedValue}this.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.currentMask?this.currentMask.displayValue:""},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isComplete",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFilled",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)},enumerable:false,configurable:true});e.prototype.remove=function(t,e){var i=new ChangeDetails;if(this.currentMask){i.aggregate(this.currentMask.remove(t,e)).aggregate(this._applyDispatch())}return i};Object.defineProperty(e.prototype,"state",{get:function(){var e;return __assign(__assign({},t.prototype.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((function(t){return t.state})),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state})},set:function(e){var i=e.compiledMasks,r=e.currentMaskRef,a=e.currentMask,n=__rest(e,["compiledMasks","currentMaskRef","currentMask"]);if(i)this.compiledMasks.forEach((function(t,e){return t.state=i[e]}));if(r!=null){this.currentMask=r;this.currentMask.state=a}t.prototype.state=n},enumerable:false,configurable:true});e.prototype.extractInput=function(t,e,i){return this.currentMask?this.currentMask.extractInput(t,e,i):""};e.prototype.extractTail=function(e,i){return this.currentMask?this.currentMask.extractTail(e,i):t.prototype.extractTail.call(this,e,i)};e.prototype.doCommit=function(){if(this.currentMask)this.currentMask.doCommit();t.prototype.doCommit.call(this)};e.prototype.nearestInputPos=function(e,i){return this.currentMask?this.currentMask.nearestInputPos(e,i):t.prototype.nearestInputPos.call(this,e,i)};Object.defineProperty(e.prototype,"overwrite",{get:function(){return this.currentMask?this.currentMask.overwrite:this._overwrite},set:function(t){this._overwrite=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"eager",{get:function(){return this.currentMask?this.currentMask.eager:this._eager},set:function(t){this._eager=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"skipInvalid",{get:function(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid},set:function(t){this._skipInvalid=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"autofix",{get:function(){return this.currentMask?this.currentMask.autofix:this._autofix},set:function(t){this._autofix=t},enumerable:false,configurable:true});e.prototype.maskEquals=function(e){return Array.isArray(e)?this.compiledMasks.every((function(t,i){if(!e[i])return;var r=e[i],a=r.mask,n=__rest(r,["mask"]);return objectIncludes(t,n)&&t.maskEquals(a)})):t.prototype.maskEquals.call(this,e)};e.prototype.typedValueEquals=function(t){var e;return Boolean((e=this.currentMask)==null?void 0:e.typedValueEquals(t))};return e}(Masked);MaskedDynamic.DEFAULTS=__assign(__assign({},Masked.DEFAULTS),{dispatch:function(t,e,i,r){if(!e.compiledMasks.length)return;var a=e.rawInputValue;var n=e.compiledMasks.map((function(n,o){var s=e.currentMask===n;var c=s?n.displayValue.length:n.nearestInputPos(n.displayValue.length,DIRECTION.FORCE_LEFT);if(n.rawInputValue!==a){n.reset();n.append(a,{raw:true})}else if(!s){n.remove(c)}n.append(t,e.currentMaskFlags(i));n.appendTail(r);return{index:o,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(c,n.nearestInputPos(n.displayValue.length,DIRECTION.FORCE_LEFT)))}}));n.sort((function(t,e){return e.weight-t.weight||e.totalInputPositions-t.totalInputPositions}));return e.compiledMasks[n[0].index]}});IMask.MaskedDynamic=MaskedDynamic;var MaskedEnum=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign({},e.DEFAULTS),i))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.enum,r=__rest(e,["enum"]);if(i){var a=i.map((function(t){return t.length}));var n=Math.min.apply(Math,a);var o=Math.max.apply(Math,a)-n;r.mask="*".repeat(n);if(o)r.mask+="["+"*".repeat(o)+"]";this.enum=i}t.prototype._update.call(this,r)};e.prototype._appendCharRaw=function(e,i){var r=this;if(i===void 0){i={}}var a=Math.min(this.nearestInputPos(0,DIRECTION.FORCE_RIGHT),this.value.length);var n=this.enum.filter((function(t){return r.matchValue(t,r.unmaskedValue+e,a)}));if(n.length){if(n.length===1){this._forEachBlocksInRange(0,this.value.length,(function(t,e){var a=n[0][e];if(e>=r.value.length||a===t.value)return;t.reset();t._appendChar(a,i)}))}var o=t.prototype._appendCharRaw.call(this,n[0][this.value.length],i);if(n.length===1){n[0].slice(this.unmaskedValue.length).split("").forEach((function(e){return o.aggregate(t.prototype._appendCharRaw.call(r,e))}))}return o}return new ChangeDetails({skip:!this.isComplete})};e.prototype.extractTail=function(t,e){if(t===void 0){t=0}return new ContinuousTailDetails("",t)};e.prototype.remove=function(e,i){var r=this;if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}if(e===i)return new ChangeDetails;var a=Math.min(t.prototype.nearestInputPos.call(this,0,DIRECTION.FORCE_RIGHT),this.value.length);var n;for(n=e;n>=0;--n){var o=this.enum.filter((function(t){return r.matchValue(t,r.value.slice(a,n),a)}));if(o.length>1)break}var s=t.prototype.remove.call(this,n,i);s.tailShift+=n-e;return s};Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.enum.indexOf(this.value)>=0},enumerable:false,configurable:true});return e}(MaskedPattern);MaskedEnum.DEFAULTS=__assign(__assign({},MaskedPattern.DEFAULTS),{matchValue:function(t,e,i){return t.indexOf(e,i)===i}});IMask.MaskedEnum=MaskedEnum;var MaskedFunction=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){t.prototype._update.call(this,__assign(__assign({},e),{validate:e.mask}))};return e}(Masked);IMask.MaskedFunction=MaskedFunction;var _MaskedNumber;var MaskedNumber=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign({},e.DEFAULTS),i))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){t.prototype._update.call(this,e);this._updateRegExps()};e.prototype._updateRegExps=function(){var t="^"+(this.allowNegative?"[+|\\-]?":"");var e="\\d*";var i=(this.scale?"("+escapeRegExp(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+e+i);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(escapeRegExp).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(escapeRegExp(this.thousandsSeparator),"g")};e.prototype._removeThousandsSeparators=function(t){return t.replace(this._thousandsSeparatorRegExp,"")};e.prototype._insertThousandsSeparators=function(t){var e=t.split(this.radix);e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return e.join(this.radix)};e.prototype.doPrepareChar=function(e,i){if(i===void 0){i={}}var r=t.prototype.doPrepareChar.call(this,this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),i),a=r[0],n=r[1];if(e&&!a)n.skip=true;if(a&&!this.allowPositive&&!this.value&&a!=="-")n.aggregate(this._appendChar("-"));return[a,n]};e.prototype._separatorsCount=function(t,e){if(e===void 0){e=false}var i=0;for(var r=0;r<t;++r){if(this._value.indexOf(this.thousandsSeparator,r)===r){++i;if(e)t+=this.thousandsSeparator.length}}return i};e.prototype._separatorsCountFromSlice=function(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)};e.prototype.extractInput=function(e,i,r){var a;if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}a=this._adjustRangeWithSeparators(e,i),e=a[0],i=a[1];return this._removeThousandsSeparators(t.prototype.extractInput.call(this,e,i,r))};e.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var r=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;var a=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);var n=this._value;this._value+=t;var o=this.number;var s=!isNaN(o);var c=false;if(s){var u=void 0;if(this.min!=null&&this.min<0&&this.number<this.min)u=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)u=this.max;if(u!=null){if(this.autofix){this._value=this.format(u,this).replace(e.UNMASKED_RADIX,this.radix);c||(c=n===this._value&&!i.tail)}else{s=false}}s&&(s=Boolean(this._value.match(this._numberRegExp)))}var d;if(!s){this._value=n;d=new ChangeDetails}else{d=new ChangeDetails({inserted:this._value.slice(n.length),rawInserted:c?"":t,skip:c})}this._value=this._insertThousandsSeparators(this._value);var l=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;var h=this._separatorsCountFromSlice(l);d.tailShift+=(h-a)*this.thousandsSeparator.length;return d};e.prototype._findSeparatorAround=function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1;var i=this.value.indexOf(this.thousandsSeparator,e);if(i<=t)return i}return-1};e.prototype._adjustRangeWithSeparators=function(t,e){var i=this._findSeparatorAround(t);if(i>=0)t=i;var r=this._findSeparatorAround(e);if(r>=0)e=r+this.thousandsSeparator.length;return[t,e]};e.prototype.remove=function(t,e){var i;if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}i=this._adjustRangeWithSeparators(t,e),t=i[0],e=i[1];var r=this.value.slice(0,t);var a=this.value.slice(e);var n=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+a));var o=this._separatorsCountFromSlice(r);return new ChangeDetails({tailShift:(o-n)*this.thousandsSeparator.length})};e.prototype.nearestInputPos=function(t,e){if(!this.thousandsSeparator)return t;switch(e){case DIRECTION.NONE:case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:{var i=this._findSeparatorAround(t-1);if(i>=0){var r=i+this.thousandsSeparator.length;if(t<r||this.value.length<=r||e===DIRECTION.FORCE_LEFT){return i}}break}case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:{var a=this._findSeparatorAround(t);if(a>=0){return a+this.thousandsSeparator.length}}}return t};e.prototype.doCommit=function(){if(this.value){var e=this.number;var i=e;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==e)this.unmaskedValue=this.format(i,this);var r=this.value;if(this.normalizeZeros)r=this._normalizeZeros(r);if(this.padFractionalZeros&&this.scale>0)r=this._padFractionalZeros(r);this._value=r}t.prototype.doCommit.call(this)};e.prototype._normalizeZeros=function(t){var e=this._removeThousandsSeparators(t).split(this.radix);e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(function(t,e,i,r){return e+r}));if(t.length&&!/\d$/.test(e[0]))e[0]=e[0]+"0";if(e.length>1){e[1]=e[1].replace(/0*$/,"");if(!e[1].length)e.length=1}return this._insertThousandsSeparators(e.join(this.radix))};e.prototype._padFractionalZeros=function(t){if(!t)return t;var e=t.split(this.radix);if(e.length<2)e.push("");e[1]=e[1].padEnd(this.scale,"0");return e.join(this.radix)};e.prototype.doSkipInvalid=function(i,r,a){if(r===void 0){r={}}var n=this.scale===0&&i!==this.thousandsSeparator&&(i===this.radix||i===e.UNMASKED_RADIX||this.mapToRadix.includes(i));return t.prototype.doSkipInvalid.call(this,i,r,a)&&!n};Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)},set:function(e){t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.parse(this.unmaskedValue,this)},set:function(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"number",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowNegative",{get:function(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowPositive",{get:function(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0},enumerable:false,configurable:true});e.prototype.typedValueEquals=function(i){return(t.prototype.typedValueEquals.call(this,i)||e.EMPTY_VALUES.includes(i)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(i===0&&this.value==="")};return e}(Masked);_MaskedNumber=MaskedNumber;MaskedNumber.UNMASKED_RADIX=".";MaskedNumber.EMPTY_VALUES=__spreadArray(__spreadArray([],Masked.EMPTY_VALUES,true),[0],false);MaskedNumber.DEFAULTS=__assign(__assign({},Masked.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[_MaskedNumber.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:function(t){return t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})}});IMask.MaskedNumber=MaskedNumber;var PIPE_TYPE={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function createPipe(t,e,i){if(e===void 0){e=PIPE_TYPE.MASKED}if(i===void 0){i=PIPE_TYPE.MASKED}var r=createMask(t);return function(t){return r.runIsolated((function(r){r[e]=t;return r[i]}))}}function pipe(t,e,i,r){return createPipe(e,i,r)(t)}IMask.PIPE_TYPE=PIPE_TYPE;IMask.createPipe=createPipe;IMask.pipe=pipe;var RepeatBlock=function(t){__extends(e,t);function e(e){return t.call(this,e)||this}Object.defineProperty(e.prototype,"repeatFrom",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"repeatTo",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity},enumerable:false,configurable:true});e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i,r,a;var n=normalizeOpts(e),o=n.repeat,s=__rest(n,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,s);var c=createMask(this._blockOpts);this.repeat=(i=(r=o!=null?o:c.repeat)!=null?r:this.repeat)!=null?i:Infinity;t.prototype._update.call(this,{mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((a=this._blocks)==null?void 0:a.length)||0,this.repeatFrom)),blocks:{m:c},eager:c.eager,overwrite:c.overwrite,skipInvalid:c.skipInvalid,lazy:c.lazy,placeholderChar:c.placeholderChar,displayChar:c.displayChar})};e.prototype._allocateBlock=function(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(createMask(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=new ChangeDetails;for(var r=(o=(s=this._mapPosToBlock(this.displayValue.length))==null?void 0:s.index)!=null?o:Math.max(this._blocks.length-1,0),a=void 0,n=void 0;a=(c=this._blocks[r])!=null?c:n=!n&&this._allocateBlock(r);++r){var o,s,c,u;var d=a._appendChar(t,__assign(__assign({},e),{_beforeTailState:(u=e._beforeTailState)==null||(u=u._blocks)==null?void 0:u[r]}));if(d.skip&&n){this._blocks.pop();this.mask=this.mask.slice(1);break}i.aggregate(d);if(d.consumed)break}return i};e.prototype._trimEmptyTail=function(t,e){var i,r;if(t===void 0){t=0}var a=Math.max(((i=this._mapPosToBlock(t))==null?void 0:i.index)||0,this.repeatFrom,0);var n;if(e!=null)n=(r=this._mapPosToBlock(e))==null?void 0:r.index;if(n==null)n=this._blocks.length-1;var o=0;for(var s=n;a<=s;--s,++o){if(this._blocks[s].unmaskedValue)break}if(o){this._blocks.splice(n-o+1,o);this.mask=this.mask.slice(o)}};e.prototype.reset=function(){t.prototype.reset.call(this);this._trimEmptyTail()};e.prototype.remove=function(e,i){if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}var r=t.prototype.remove.call(this,e,i);this._trimEmptyTail(e,i);return r};e.prototype.totalInputPositions=function(e,i){if(e===void 0){e=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return t.prototype.totalInputPositions.call(this,e,i)};Object.defineProperty(e.prototype,"state",{get:function(){return t.prototype.state},set:function(e){this._blocks.length=e._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);t.prototype.state=e},enumerable:false,configurable:true});return e}(MaskedPattern);IMask.RepeatBlock=RepeatBlock;try{globalThis.IMask=IMask}catch(t){}var cachedNativeValueDescriptor;function nativeValueDescriptor(){cachedNativeValueDescriptor!==null&&cachedNativeValueDescriptor!==void 0?cachedNativeValueDescriptor:cachedNativeValueDescriptor=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");return cachedNativeValueDescriptor}var NativeInputMaskElement=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.allowEvents=false;e._inputEventSuppressor=function(t){if(e.allowEvents)return;if(!t.isTrusted)t.stopImmediatePropagation()};return e}Object.defineProperty(e.prototype,"value",{get:function(){return nativeValueDescriptor().get.call(this.input)},set:function(t){nativeValueDescriptor().set.call(this.input,t)},enumerable:false,configurable:true});e.prototype.bindEvents=function(e){this.input.addEventListener("input",this._inputEventSuppressor,true);t.prototype.bindEvents.call(this,e)};e.prototype.unbindEvents=function(){this.input.removeEventListener("input",this._inputEventSuppressor,true);t.prototype.unbindEvents.call(this)};return e}(HTMLInputMaskElement);function getNativeValue(t){return nativeValueDescriptor().get.call(t)}var airDatepicker$1={exports:{}};var airDatepicker=airDatepicker$1.exports;var hasRequiredAirDatepicker;function requireAirDatepicker(){if(hasRequiredAirDatepicker)return airDatepicker$1.exports;hasRequiredAirDatepicker=1;(function(t,e){!function(e,i){t.exports=i()}(airDatepicker,(function(){return function(){var t;var e={d:function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:true,get:i[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},i={};e.d(i,{default:function(){return Y}});var r={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},a={classes:"",inline:false,locale:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:true,keyboardNav:true,selectedDates:false,container:"",isMobile:false,visible:false,position:"bottom left",offset:12,view:r.days,minView:r.days,showOtherMonths:true,selectOtherMonths:true,moveToOtherMonthsOnSelect:true,showOtherYears:true,selectOtherYears:true,moveToOtherYearsOnSelect:true,minDate:"",maxDate:"",disableNavWhenOutOfRange:true,multipleDates:false,multipleDatesSeparator:", ",range:false,dynamicRange:true,buttons:false,monthsField:"monthsShort",showEvent:"focus",autoClose:false,fixedHeight:false,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:false,onlyTimepicker:false,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:false,onChangeViewDate:false,onChangeView:false,onRenderCell:false,onShow:false,onHide:false,onClickDayName:false};function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"string"==typeof t?e.querySelector(t):t}function o(){var t;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.tagName,r=i===void 0?"div":i,a=e.className,n=a===void 0?"":a,o=e.innerHtml,c=o===void 0?"":o,u=e.id,d=u===void 0?"":u,l=e.attrs,h=l===void 0?{}:l,f=document.createElement(r);return n&&(t=f.classList).add.apply(t,n.split(" ")),d&&(f.id=d),c&&(f.innerHTML=c),h&&s(f,h),f}function s(t,e){for(var i=0,r=Object.entries(e);i<r.length;i++){var a=r[i],n=a[0],o=a[1];void 0!==o&&t.setAttribute(n,o)}return t}function c(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function u(t){var e=t.getHours(),i=d(e),r=i.hours,a=i.dayPeriod;return{year:t.getFullYear(),month:t.getMonth(),fullMonth:t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,date:t.getDate(),fullDate:t.getDate()<10?"0"+t.getDate():t.getDate(),day:t.getDay(),hours:e,fullHours:l(e),hours12:r,dayPeriod:a,fullHours12:l(r),minutes:t.getMinutes(),fullMinutes:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes()}}function d(t){return{dayPeriod:t>11?"pm":"am",hours:t%12==0?12:t%12}}function l(t){return t<10?"0"+t:t}function h(t){var e=10*Math.floor(t.getFullYear()/10);return[e,e+9]}function f(){var t=[];for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return i.forEach((function(e){if("object"==typeof e)for(var i in e)e[i]&&t.push(i);else e&&t.push(e)})),t.join(" ")}function p(t,e){var i;var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.days;if(!t||!e)return false;var n=u(t),o=u(e);return(i={},i[r.days]=n.date===o.date&&n.month===o.month&&n.year===o.year,i[r.months]=n.month===o.month&&n.year===o.year,i[r.years]=n.year===o.year,i)[a]}function v(t,e,i){var r=k(t,false).getTime(),a=k(e,false).getTime();return i?r>=a:r>a}function b(t,e){return!v(t,e,true)}function k(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=new Date(t.getTime());return"boolean"!=typeof e||e||function(t){t.setHours(0,0,0,0)}(i),i}function m(t,e,i){t.length?t.forEach((function(t){t.addEventListener(e,i)})):t.addEventListener(e,i)}function g(t,e){return!(!t||t===document||t instanceof DocumentFragment)&&(t.matches(e)?t:g(t.parentNode,e))}function y(t,e,i){return t>i?i:t<e?e:t}function D(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return i.filter((function(t){return t})).forEach((function(e){for(var i=0,r=Object.entries(e);i<r.length;i++){var a=r[i],n=a[0],o=a[1];if(void 0!==o&&"[object Object]"===o.toString()){var s=void 0!==t[n]?t[n].toString():void 0,c=o.toString(),u=Array.isArray(o)?[]:{};t[n]=t[n]?s!==c?u:t[n]:u,D(t[n],o)}else t[n]=o}})),t}function w(t){var e=t;return t instanceof Date||("string"==typeof t&&/^\d{4}-\d{2}-\d{2}$/.test(t)&&(t+="T00:00:00"),e=new Date(t)),isNaN(e.getTime())&&(console.log('Unable to convert value "'.concat(t,'" to Date object')),e=false),e}function A(t){var e="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+e+")("+t+")($|<|"+e+")","g")}function _(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var C=function(){function t(){var t=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.type,r=e.date,a=e.dp,n=e.opts,o=e.body;_(this,"focus",(function(){t.$cell.classList.add("-focus-"),t.focused=true})),_(this,"removeFocus",(function(){t.$cell.classList.remove("-focus-"),t.focused=false})),_(this,"select",(function(){t.$cell.classList.add("-selected-"),t.selected=true})),_(this,"removeSelect",(function(){t.$cell.classList.remove("-selected-","-range-from-","-range-to-"),t.selected=false})),_(this,"onChangeSelectedDate",(function(){t.isDisabled||(t._handleSelectedStatus(),t.opts.range&&t._handleRangeStatus())})),_(this,"onChangeFocusDate",(function(e){if(!e)return void(t.focused&&t.removeFocus());var i=p(e,t.date,t.type);i?t.focus():!i&&t.focused&&t.removeFocus(),t.opts.range&&t._handleRangeStatus()})),_(this,"render",(function(){return t.$cell.innerHTML=t._getHtml(),t._handleClasses(),t.$cell})),this.type=i,this.singleType=this.type.slice(0,-1),this.date=r,this.dp=a,this.opts=n,this.body=o,this.customData=false,this.init()}t.prototype.init=function(){var t,e;var i=this.opts.onRenderCell;i&&(this.customData=i({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),null!==(t=this.customData)&&void 0!==t&&t.disabled?this.dp.disableDate(this.date):false===(null===(e=this.customData)||void 0===e?void 0:e.disabled)&&this.dp.enableDate(this.date)};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype.unbindDatepickerEvents=function(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype._createElement=function(){var t;var e=u(this.date),i=e.year,r=e.month,a=e.fullMonth,n=e.date,s=e.fullDate,c=(null===(t=this.customData)||void 0===t?void 0:t.attrs)||{};this.$cell=o({attrs:__assign({"data-year":i,"data-month":r,"data-date":n,"data-iso-date":"".concat(i,"-").concat(a,"-").concat(s)},c)}),this.$cell.adpCell=this};t.prototype._getClassName=function(){var t;var e=new Date,i=this.opts,a=i.selectOtherMonths,n=i.selectOtherYears,o=this.dp,s=o.minDate,c=o.maxDate,d=o.isDateDisabled,l=u(this.date).day,h=this._isOutOfMinMaxRange(),v=d(this.date),b=f("air-datepicker-cell","-".concat(this.singleType,"-"),{"-current-":p(e,this.date,this.type),"-min-date-":s&&p(s,this.date,this.type),"-max-date-":c&&p(c,this.date,this.type)}),k="";switch(this.type){case r.days:k=f({"-weekend-":this.dp.isWeekend(l),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!a||h||v});break;case r.months:k=f({"-disabled-":h});break;case r.years:k=f({"-other-decade-":this.isOtherDecade,"-disabled-":h||this.isOtherDecade&&!n})}return f(b,k,null===(t=this.customData)||void 0===t?void 0:t.classes).split(" ")};t.prototype._getHtml=function(){var t;var e=u(this.date),i=e.year,a=e.month,n=e.date,o=this.opts,s=o.showOtherMonths,c=o.showOtherYears;if(null!==(t=this.customData)&&void 0!==t&&t.html)return this.customData.html;switch(this.type){case r.days:return!s&&this.isOtherMonth?"":n;case r.months:return this.dp.locale[this.opts.monthsField][a];case r.years:return!c&&this.isOtherDecade?"":i}};t.prototype._isOutOfMinMaxRange=function(){var t=this.dp,e=t.minDate,i=t.maxDate,a=this,n=a.type,o=a.date,s=u(o),c=s.month,d=s.year,l=s.date,h=n===r.days,f=n===r.years,p=!!e&&new Date(d,f?e.getMonth():c,h?l:e.getDate()),k=!!i&&new Date(d,f?i.getMonth():c,h?l:i.getDate());return e&&i?b(p,e)||v(k,i):e?b(p,e):i?v(k,i):void 0};t.prototype.destroy=function(){this.unbindDatepickerEvents()};t.prototype._handleRangeStatus=function(){var t;var e=this.dp,i=e.selectedDates,r=e.focusDate,a=e.rangeDateTo,n=e.rangeDateFrom,o=i.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!o)return;var s=n,c=a;if(1===o&&r){var u=v(r,i[0]);s=u?i[0]:r,c=u?r:i[0]}var d=f({"-in-range-":s&&c&&(l=this.date,h=s,k=c,v(l,h)&&b(l,k)),"-range-from-":s&&p(this.date,s,this.type),"-range-to-":c&&p(this.date,c,this.type)});var l,h,k;d&&(t=this.$cell.classList).add.apply(t,d.split(" "))};t.prototype._handleSelectedStatus=function(){var t=this.dp._checkIfDateIsSelected(this.date,this.type);t?this.select():!t&&this.selected&&this.removeSelect()};t.prototype._handleInitialFocusStatus=function(){p(this.dp.focusDate,this.date,this.type)&&this.focus()};t.prototype._handleClasses=function(){var t;this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),(t=this.$cell.classList).add.apply(t,this._getClassName())};Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.$cell.matches(".-disabled-")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherMonth",{get:function(){return this.dp.isOtherMonth(this.date)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherDecade",{get:function(){return this.dp.isOtherDecade(this.date)},enumerable:false,configurable:true});return t}();function E(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var x=(t={},t[r.days]='<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -'.concat(r.days,'-"></div>'),t[r.months]='<div class="air-datepicker-body--cells -'.concat(r.months,'-"></div>'),t[r.years]='<div class="air-datepicker-body--cells -'.concat(r.years,'-"></div>'),t);var O=".air-datepicker-cell";var I=function(){function t(t){var e=this;var i=t.dp,a=t.type,n=t.opts;E(this,"handleClick",(function(t){var i=t.target.closest(O).adpCell;if(i.isDisabled)return;if(!e.dp.isMinViewReached)return void e.dp.down();var r=e.dp._checkIfDateIsSelected(i.date,i.type);r?e.dp._handleAlreadySelectedDates(r,i.date):e.dp.selectDate(i.date)})),E(this,"handleDayNameClick",(function(t){var i=t.target.getAttribute("data-day-index");e.opts.onClickDayName({dayIndex:Number(i),datepicker:e.dp})})),E(this,"onChangeCurrentView",(function(t){t!==e.type?e.hide():(e.show(),e.render())})),E(this,"onMouseOverCell",(function(t){var i=g(t.target,O);e.dp.setFocusDate(!!i&&i.adpCell.date)})),E(this,"onMouseOutCell",(function(){e.dp.setFocusDate(false)})),E(this,"onClickBody",(function(t){var i=e.opts.onClickDayName,r=t.target;r.closest(O)&&e.handleClick(t),i&&r.closest(".air-datepicker-body--day-name")&&e.handleDayNameClick(t)})),E(this,"onMouseDown",(function(t){e.pressed=true;var i=g(t.target,O),r=i&&i.adpCell;p(r.date,e.dp.rangeDateFrom)&&(e.rangeFromFocused=true),p(r.date,e.dp.rangeDateTo)&&(e.rangeToFocused=true)})),E(this,"onMouseMove",(function(t){if(!e.pressed||!e.dp.isMinViewReached)return;t.preventDefault();var i=g(t.target,O),r=i&&i.adpCell,a=e.dp,n=a.selectedDates,o=a.rangeDateTo,s=a.rangeDateFrom;if(!r||r.isDisabled)return;var c=r.date;if(2===n.length){if(e.rangeFromFocused&&!v(c,o)){var d=u(s),l=d.hours,h=d.minutes;c.setHours(l),c.setMinutes(h),e.dp.rangeDateFrom=c,e.dp.replaceDate(s,c)}if(e.rangeToFocused&&!b(c,s)){var f=u(o),p=f.hours,k=f.minutes;c.setHours(p),c.setMinutes(k),e.dp.rangeDateTo=c,e.dp.replaceDate(o,c)}}})),E(this,"onMouseUp",(function(){e.pressed=false,e.rangeFromFocused=false,e.rangeToFocused=false})),E(this,"onChangeViewDate",(function(t,i){if(!e.isVisible)return;var a=h(t),n=h(i);switch(e.dp.currentView){case r.days:if(p(t,i,r.months))return;break;case r.months:if(p(t,i,r.years))return;break;case r.years:if(a[0]===n[0]&&a[1]===n[1])return}e.render()})),E(this,"render",(function(){e.destroyCells(),e._generateCells(),e.cells.forEach((function(t){e.$cells.appendChild(t.render())}))})),this.dp=i,this.type=a,this.opts=n,this.cells=[],this.$el="",this.pressed=false,this.isVisible=true,this.init()}t.prototype.init=function(){this._buildBaseHtml(),this.type===r.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._bindEvents=function(){var t=this.opts,e=t.range,i=t.dynamicRange;m(this.$el,"mouseover",this.onMouseOverCell),m(this.$el,"mouseout",this.onMouseOutCell),m(this.$el,"click",this.onClickBody),e&&i&&(m(this.$el,"mousedown",this.onMouseDown),m(this.$el,"mousemove",this.onMouseMove),m(window.document,"mouseup",this.onMouseUp))};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView)};t.prototype._buildBaseHtml=function(){this.$el=o({className:"air-datepicker-body -".concat(this.type,"-"),innerHtml:x[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)};t.prototype._getDayNamesHtml=function(){var t;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dp.locale.firstDay,i="",a=this.dp.isWeekend,n=this.opts.onClickDayName,o=e,s=0;for(;s<7;){var c=o%7;i+='<div class="'.concat(f("air-datepicker-body--day-name",(t={},t[r.cssClassWeekend]=a(c),t["-clickable-"]=!!n,t)),"\" data-day-index='").concat(c,"'>").concat(this.dp.locale.daysMin[c],"</div>"),s++,o++}return i};t.prototype.renderDayNames=function(){this.$names.innerHTML=this._getDayNamesHtml()};t.prototype._generateCell=function(t){var e=this,i=e.type,r=e.dp,a=e.opts;return new C({type:i,dp:r,opts:a,date:t,body:this})};t.prototype._generateCells=function(){var e=this;t.getDatesFunction(this.type)(this.dp,(function(t){e.cells.push(e._generateCell(t))}))};t.prototype.show=function(){this.isVisible=true,this.$el.classList.remove("-hidden-")};t.prototype.hide=function(){this.isVisible=false,this.$el.classList.add("-hidden-")};t.prototype.destroyCells=function(){this.cells.forEach((function(t){return t.destroy()})),this.cells=[],this.$cells.innerHTML=""};t.prototype.destroy=function(){this.destroyCells(),this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView)};t.getDaysDates=function(t,e){var i=t.viewDate,r=t.opts.fixedHeight,a=t.locale.firstDay,n=c(i),o=u(i),s=o.year,d=o.month,l=new Date(s,d,1),h=new Date(s,d,n),f=l.getDay()-a,p=6-h.getDay()+a;f=f<0?f+7:f,p=p>6?p-7:p;var v=function(t,e){var i=u(t),r=i.year,a=i.month,n=i.date;return new Date(r,a,n-e)}(l,f),b=n+f+p,k=v.getDate(),m=u(v),g=m.year,y=m.month,D=0;r&&(b=42);var w=[];for(;D<b;){var A=new Date(g,y,k+D);e&&e(A),w.push(A),D++}return w};t.getMonthsDates=function(t,e){var i=t.parsedViewDate.year,r=0,a=[];for(;r<12;){var n=new Date(i,r);a.push(n),e&&e(n),r++}return a};t.getYearsDates=function(t,e){var i=h(t.viewDate),r=i[0]-1,a=i[1]+1,n=r,o=[];for(;n<=a;){var s=new Date(n,0);o.push(s),e&&e(s),n++}return o};t.getDatesFunction=function(){var e;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.days;return(e={},e[r.days]=t.getDaysDates,e[r.months]=t.getMonthsDates,e[r.years]=t.getYearsDates,e)[i]};return t}();function F(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var T=function(){function t(t){var e=this;var i=t.dp,r=t.opts;F(this,"onClickNav",(function(t){var i=g(t.target,".air-datepicker-nav--action");if(!i)return;var r=i.dataset.action;e.dp[r]()})),F(this,"onChangeViewDate",(function(){e.render(),e._resetNavStatus(),e.handleNavStatus()})),F(this,"onChangeCurrentView",(function(){e.render(),e._resetNavStatus(),e.handleNavStatus()})),F(this,"onClickNavTitle",(function(){e.dp.isFinalView||e.dp.up()})),F(this,"update",(function(){var t=e.opts,i=t.prevHtml,r=t.nextHtml;e.$prev.innerHTML=i,e.$next.innerHTML=r,e._resetNavStatus(),e.render(),e.handleNavStatus()})),F(this,"renderDelay",(function(){setTimeout(e.render)})),F(this,"render",(function(){e.$title.innerHTML=e._getTitle(),function(t,e){for(var i in e)e[i]?t.classList.add(i):t.classList.remove(i)}(e.$title,{"-disabled-":e.dp.isFinalView})})),this.dp=i,this.opts=r,this.init()}t.prototype.init=function(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._defineDOM=function(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)};t.prototype._bindEvents=function(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(r.eventChangeTime,this.render))};t.prototype.destroy=function(){this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(r.eventChangeTime,this.render))};t.prototype._createElement=function(){this.$el=o({tagName:"nav",className:"air-datepicker-nav"})};t.prototype._getTitle=function(){var t=this,e=t.dp,i=t.opts,r=i.navTitles[e.currentView];return"function"==typeof r?r(e):e.formatDate(e.viewDate,r)};t.prototype.handleNavStatus=function(){var t=this.opts.disableNavWhenOutOfRange,e=this.dp,i=e.minDate,a=e.maxDate;if(!i&&!a||!t)return;var n=this.dp.parsedViewDate,o=n.year,s=n.month,c=!!i&&u(i),d=!!a&&u(a);switch(this.dp.currentView){case r.days:i&&c.month>=s&&c.year>=o&&this._disableNav("prev"),a&&d.month<=s&&d.year<=o&&this._disableNav("next");break;case r.months:i&&c.year>=o&&this._disableNav("prev"),a&&d.year<=o&&this._disableNav("next");break;case r.years:{var l=h(this.dp.viewDate);i&&c.year>=l[0]&&this._disableNav("prev"),a&&d.year<=l[1]&&this._disableNav("next");break}}};t.prototype._disableNav=function(t){n('[data-action="'+t+'"]',this.$el).classList.add("-disabled-")};t.prototype._resetNavStatus=function(){!function(t){var e;for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];t.length?t.forEach((function(t){var e;(e=t.classList).remove.apply(e,r)})):(e=t.classList).remove.apply(e,r)}(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")};t.prototype._buildBaseHtml=function(){var t=this.opts,e=t.prevHtml,i=t.nextHtml;this.$el.innerHTML='<div class="air-datepicker-nav--action" data-action="prev">'.concat(e,'</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">').concat(i,"</div>")};Object.defineProperty(t.prototype,"isNavIsFunction",{get:function(){var t=this.opts.navTitles;return Object.keys(t).find((function(e){return"function"==typeof t[e]}))},enumerable:false,configurable:true});return t}();var M={today:{content:function(t){return t.locale.today},onClick:function(t){return t.setViewDate(new Date)}},clear:{content:function(t){return t.locale.clear},onClick:function(t){return t.clear()}}};var j=function(){function t(t){var e=t.dp,i=t.opts;this.dp=e,this.opts=i,this.init()}t.prototype.init=function(){this.createElement(),this.render()};t.prototype.createElement=function(){this.$el=o({className:"air-datepicker-buttons"})};t.prototype.destroy=function(){this.$el.parentNode.removeChild(this.$el)};t.prototype.clearHtml=function(){return this.$el.innerHTML="",this};t.prototype.generateButtons=function(){var t=this;var e=this.opts.buttons;Array.isArray(e)||(e=[e]),e.forEach((function(e){var i=e;"string"==typeof e&&M[e]&&(i=M[e]);var r=t.createButton(i);i.onClick&&t.attachEventToButton(r,i.onClick),t.$el.appendChild(r)}))};t.prototype.attachEventToButton=function(t,e){var i=this;t.addEventListener("click",(function(){e(i.dp)}))};t.prototype.createButton=function(t){var e=t.content,i=t.className,r=t.tagName,a=r===void 0?"button":r,n=t.attrs,s=n===void 0?{}:n;return o({tagName:a,innerHtml:"<span tabindex='-1'>".concat("function"==typeof e?e(this.dp):e,"</span>"),className:f("air-datepicker-button",i),attrs:s})};t.prototype.render=function(){this.generateButtons()};return t}();function B(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var R=function(){function t(){var t=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.opts,a=e.dp;B(this,"toggleTimepickerIsActive",(function(e){t.dp.timepickerIsActive=e})),B(this,"onChangeSelectedDate",(function(e){var i=e.date,r=e.updateTime,a=r===void 0?false:r;i&&(t.setMinMaxTime(i),t.setCurrentTime(!!a&&i),t.addTimeToDate(i))})),B(this,"onChangeLastSelectedDate",(function(e){e&&(t.setTime(e),t.render())})),B(this,"onChangeInputRange",(function(e){var i=e.target;t[i.getAttribute("name")]=i.value,t.updateText(),t.dp.trigger(r.eventChangeTime,{hours:t.hours,minutes:t.minutes})})),B(this,"onMouseEnterLeave",(function(e){var i=e.target.getAttribute("name"),r=t.$minutesText;"hours"===i&&(r=t.$hoursText),r.classList.toggle("-focus-")})),B(this,"onFocus",(function(){t.toggleTimepickerIsActive(true)})),B(this,"onBlur",(function(){t.toggleTimepickerIsActive(false)})),this.opts=i,this.dp=a;var n=this.dp.locale.timeFormat;n&&(n.match(A("h"))||n.match(A("hh")))&&(this.ampm=true),this.init()}t.prototype.init=function(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()};t.prototype.bindDatepickerEvents=function(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)};t.prototype.bindDOMEvents=function(){var t="input";navigator.userAgent.match(/trident/gi)&&(t="change"),m(this.$ranges,t,this.onChangeInputRange),m(this.$ranges,"mouseenter",this.onMouseEnterLeave),m(this.$ranges,"mouseleave",this.onMouseEnterLeave),m(this.$ranges,"focus",this.onFocus),m(this.$ranges,"mousedown",this.onFocus),m(this.$ranges,"blur",this.onBlur)};t.prototype.createElement=function(){this.$el=o({className:f("air-datepicker-time",{"-am-pm-":this.dp.ampm})})};t.prototype.destroy=function(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)};t.prototype.buildHtml=function(){var t=this,e=t.ampm,i=t.hours,r=t.displayHours,a=t.minutes,n=t.minHours,o=t.minMinutes,s=t.maxHours,c=t.maxMinutes,u=t.dayPeriod,d=t.opts,h=d.hoursStep,f=d.minutesStep;this.$el.innerHTML='<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">'.concat(l(r),'</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">').concat(l(a),"</span> ")+(e?"<span class='air-datepicker-time--current-ampm'>".concat(u,"</span>"):"")+'</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">'+' <input type="range" name="hours" value="'.concat(i,'" min="').concat(n,'" max="').concat(s,'" step="').concat(h,'"/> </div> <div class="air-datepicker-time--row">')+' <input type="range" name="minutes" value="'.concat(a,'" min="').concat(o,'" max="').concat(c,'" step="').concat(f,'"/> </div></div>')};t.prototype.defineDOM=function(){var t=this;var e=function(e){return n(e,t.$el)};this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=e('[name="hours"]'),this.$minutes=e('[name="minutes"]'),this.$hoursText=e(".air-datepicker-time--current-hours"),this.$minutesText=e(".air-datepicker-time--current-minutes"),this.$ampm=e(".air-datepicker-time--current-ampm")};t.prototype.setTime=function(t){this.setMinMaxTime(t),this.setCurrentTime(t)};t.prototype.addTimeToDate=function(t){t&&(t.setHours(this.hours),t.setMinutes(this.minutes))};t.prototype.setMinMaxTime=function(t){if(this.setMinMaxTimeFromOptions(),t){var e=this.dp,i=e.minDate,r=e.maxDate;i&&p(t,i)&&this.setMinTimeFromMinDate(i),r&&p(t,r)&&this.setMaxTimeFromMaxDate(r)}};t.prototype.setCurrentTime=function(t){var e=t?u(t):this,i=e.hours,r=e.minutes;this.hours=y(i,this.minHours,this.maxHours),this.minutes=y(r,this.minMinutes,this.maxMinutes)};t.prototype.setMinMaxTimeFromOptions=function(){var t=this.opts,e=t.minHours,i=t.minMinutes,r=t.maxHours,a=t.maxMinutes;this.minHours=y(e,0,23),this.minMinutes=y(i,0,59),this.maxHours=y(r,0,23),this.maxMinutes=y(a,0,59)};t.prototype.setMinTimeFromMinDate=function(t){var e=this.dp.lastSelectedDate;this.minHours=t.getHours(),e&&e.getHours()>t.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=t.getMinutes()};t.prototype.setMaxTimeFromMaxDate=function(t){var e=this.dp.lastSelectedDate;this.maxHours=t.getHours(),e&&e.getHours()<t.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=t.getMinutes()};t.prototype.updateSliders=function(){s(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,s(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes};t.prototype.updateText=function(){this.$hoursText.innerHTML=l(this.displayHours),this.$minutesText.innerHTML=l(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)};Object.defineProperty(t.prototype,"hours",{get:function(){return this._hours},set:function(t){this._hours=t;var e=d(t),i=e.hours,r=e.dayPeriod;this.displayHours=this.ampm?i:t,this.dayPeriod=r},enumerable:false,configurable:true});t.prototype.render=function(){this.updateSliders(),this.updateText()};return t}();function N(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var S=function(){function t(t){var e=this;var i=t.dp,r=t.opts;N(this,"pressedKeys",new Set),N(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],function(t){return t.month++}],[[["Control","ArrowLeft"],["Control","ArrowDown"]],function(t){return t.month--}],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],function(t){return t.year++}],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],function(t){return t.year--}],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],function(t){return t.year+=10}],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],function(t){return t.year-=10}],[["Control","Shift","ArrowUp"],function(t,e){return e.up()}]])),N(this,"handleHotKey",(function(t){var i=e.hotKeys.get(t),r=u(e.getInitialFocusDate());i(r,e.dp);var a=r.year,n=r.month,o=r.date,s=c(new Date(a,n));s<o&&(o=s);var d=e.dp.getClampedDate(new Date(a,n,o));e.dp.setFocusDate(d,{viewDateTransition:true})})),N(this,"isHotKeyPressed",(function(){var t=false,i=e.pressedKeys.size,r=function(t){return e.pressedKeys.has(t)};var a=function(e){if(t)return"break";if(Array.isArray(e[0]))e.forEach((function(a){t||i!==a.length||(t=a.every(r)&&e)}));else{if(i!==e.length)return"continue";t=e.every(r)&&e}};for(var n=0,o=e.hotKeys;n<o.length;n++){var s=o[n][0];var c=a(s);if(c==="break")break}return t})),N(this,"isArrow",(function(t){return t>=37&&t<=40})),N(this,"onKeyDown",(function(t){if(!e.dp.visible&&!e.dp.treatAsInline)return;var i=t.key,r=t.which,a=e,n=a.dp,o=a.dp.focusDate,s=a.opts;e.registerKey(i);var c=e.isHotKeyPressed();if(c)return t.preventDefault(),void e.handleHotKey(c);if(e.isArrow(r))return t.preventDefault(),void e.focusNextCell(i);if("Enter"===i){if(n.currentView!==s.minView)return void n.down();if(o){var u=n._checkIfDateIsSelected(o);return void(u?n._handleAlreadySelectedDates(u,o):n.selectDate(o))}}"Escape"===i&&e.dp.hide()})),N(this,"onKeyUp",(function(t){e.removeKey(t.key)})),this.dp=i,this.opts=r,this.init()}t.prototype.init=function(){this.bindKeyboardEvents()};t.prototype.bindKeyboardEvents=function(){var t=this.dp.$el;t.addEventListener("keydown",this.onKeyDown),t.addEventListener("keyup",this.onKeyUp)};t.prototype.destroy=function(){var t=this.dp.$el;t.removeEventListener("keydown",this.onKeyDown),t.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null};t.prototype.getInitialFocusDate=function(){var t=this.dp,e=t.focusDate,i=t.currentView,a=t.selectedDates,n=t.parsedViewDate,o=n.year,s=n.month,c=e||a[a.length-1];if(!c)switch(i){case r.days:c=new Date(o,s,(new Date).getDate());break;case r.months:c=new Date(o,s,1);break;case r.years:c=new Date(o,0,1)}return c};t.prototype.focusNextCell=function(t){var e=this.getInitialFocusDate(),i=this.dp.currentView,a=r.days,n=r.months,o=r.years,s=u(e),c=s.year,d=s.month,l=s.date;switch(t){case"ArrowLeft":i===a&&(l-=1),i===n&&(d-=1),i===o&&(c-=1);break;case"ArrowUp":i===a&&(l-=7),i===n&&(d-=3),i===o&&(c-=4);break;case"ArrowRight":i===a&&(l+=1),i===n&&(d+=1),i===o&&(c+=1);break;case"ArrowDown":i===a&&(l+=7),i===n&&(d+=3),i===o&&(c+=4)}var h=this.dp.getClampedDate(new Date(c,d,l));this.dp.setFocusDate(h,{viewDateTransition:true})};t.prototype.registerKey=function(t){this.pressedKeys.add(t)};t.prototype.removeKey=function(t){this.pressedKeys.delete(t)};return t}();var P={on:function(t,e){this.__events||(this.__events={}),this.__events[t]?this.__events[t].push(e):this.__events[t]=[e]},off:function(t,e){this.__events&&this.__events[t]&&(this.__events[t]=this.__events[t].filter((function(t){return t!==e})))},removeAllEvents:function(){this.__events={}},trigger:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];this.__events&&this.__events[t]&&this.__events[t].forEach((function(t){t.apply(void 0,i)}))}};function z(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var V="",H="",L=false;var Y=function(){function t(t,e){var i=this;var s=this;if(z(this,"viewIndexes",[r.days,r.months,r.years]),z(this,"next",(function(){var t=i.parsedViewDate,e=t.year,a=t.month;switch(i.currentView){case r.days:i.setViewDate(new Date(e,a+1,1));break;case r.months:i.setViewDate(new Date(e+1,a,1));break;case r.years:i.setViewDate(new Date(e+10,0,1))}})),z(this,"prev",(function(){var t=i.parsedViewDate,e=t.year,a=t.month;switch(i.currentView){case r.days:i.setViewDate(new Date(e,a-1,1));break;case r.months:i.setViewDate(new Date(e-1,a,1));break;case r.years:i.setViewDate(new Date(e-10,0,1))}})),z(this,"_finishHide",(function(){i.hideAnimation=false,i._destroyComponents(),i.$container.removeChild(i.$datepicker)})),z(this,"setPosition",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("function"==typeof(t=t||s.opts.position))return void(s.customHide=t({$datepicker:s.$datepicker,$target:s.$el,$pointer:s.$pointer,isViewChange:e,done:s._finishHide}));var i,r,a=s.opts.isMobile,n=s.$el.getBoundingClientRect(),o=s.$el.getBoundingClientRect(),c=s.$datepicker.offsetParent,u=s.$el.offsetParent,d=s.$datepicker.getBoundingClientRect(),l=t.split(" "),h=window.scrollY,f=window.scrollX,p=s.opts.offset,v=l[0],b=l[1];if(a)s.$datepicker.style.cssText="left: 50%; top: 50%";else{if(c===u&&c!==document.body&&(o={top:s.$el.offsetTop,left:s.$el.offsetLeft,width:n.width,height:s.$el.offsetHeight},h=0,f=0),c!==u&&c!==document.body){var k=c.getBoundingClientRect();o={top:n.top-k.top,left:n.left-k.left,width:n.width,height:n.height},h=0,f=0}switch(v){case"top":i=o.top-d.height-p;break;case"right":r=o.left+o.width+p;break;case"bottom":i=o.top+o.height+p;break;case"left":r=o.left-d.width-p}switch(b){case"top":i=o.top;break;case"right":r=o.left+o.width-d.width;break;case"bottom":i=o.top+o.height-d.height;break;case"left":r=o.left;break;case"center":/left|right/.test(v)?i=o.top+o.height/2-d.height/2:r=o.left+o.width/2-d.width/2}s.$datepicker.style.cssText="left: ".concat(r+f,"px; top: ").concat(i+h,"px")}})),z(this,"_setInputValue",(function(){var t=i,e=t.opts,r=t.$altField,a=t.locale.dateFormat,n=e.altFieldDateFormat,o=e.altField;o&&r&&(r.value=i._getInputValue(n)),i.$el.value=i._getInputValue(a),i.$el.dispatchEvent(new Event("change"))})),z(this,"_getInputValue",(function(t){var e=i,r=e.selectedDates,a=e.opts,n=a.multipleDates,o=a.multipleDatesSeparator;if(!r.length)return"";var s="function"==typeof t,c=s?t(n?r:r[0]):r.map((function(e){return i.formatDate(e,t)}));return c=s?c:c.join(o),c})),z(this,"_checkIfDateIsSelected",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.days,i=false;return s.selectedDates.some((function(r){var a=p(t,r,e);return i=a&&r,a})),i})),z(this,"_scheduleCallAfterTransition",(function(t){i._cancelScheduledCall(),t&&t(false),i._onTransitionEnd=function(){t&&t(true)},i.$datepicker.addEventListener("transitionend",i._onTransitionEnd,{once:true})})),z(this,"_cancelScheduledCall",(function(){i.$datepicker.removeEventListener("transitionend",i._onTransitionEnd)})),z(this,"setViewDate",(function(t){if(!((t=w(t))instanceof Date))return;if(p(t,i.viewDate))return;var e=i.viewDate;i.viewDate=t;var a=i.opts.onChangeViewDate;if(a){var n=i.parsedViewDate,o=n.month,s=n.year;a({month:o,year:s,decade:i.curDecade})}i.trigger(r.eventChangeViewDate,t,e)})),z(this,"setFocusDate",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t||(t=w(t))instanceof Date)&&(s.focusDate=t,s.trigger(r.eventChangeFocusDate,t,e))})),z(this,"setCurrentView",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s.viewIndexes.includes(t)){if(s.currentView=t,s.elIsInput&&s.visible&&s.setPosition(void 0,true),s.trigger(r.eventChangeCurrentView,t),!s.views[t]){var i=s.views[t]=new I({dp:s,opts:s.opts,type:t});s.shouldUpdateDOM&&s.$content.appendChild(i.$el)}s.opts.onChangeView&&!e.silent&&s.opts.onChangeView(t)}})),z(this,"_updateLastSelectedDate",(function(t){i.lastSelectedDate=t,i.trigger(r.eventChangeLastSelectedDate,t)})),z(this,"destroy",(function(){if(i.isDestroyed)return;var t=i.opts,e=t.showEvent,r=t.isMobile,a=i.$datepicker.parentNode;a&&a.removeChild(i.$datepicker),i.$el.removeEventListener(e,i._onFocus),i.$el.removeEventListener("blur",i._onBlur),window.removeEventListener("resize",i._onResize),r&&i._removeMobileAttributes(),i.keyboardNav&&i.keyboardNav.destroy(),i.views=null,i.nav=null,i.$datepicker=null,i.opts={},i.$customContainer=null,i.viewDate=null,i.focusDate=null,i.selectedDates=[],i.rangeDateFrom=null,i.rangeDateTo=null,i.isDestroyed=true})),z(this,"update",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=D({},s.opts),a=e.silent;D(s.opts,t);var n=s.opts,o=n.timepicker,c=n.buttons,u=n.range,d=n.selectedDates,l=n.isMobile,h=s.visible||s.treatAsInline;s._createMinMaxDates(),s._limitViewDateByMaxMinDates(),s._handleLocale(),d&&(s.selectedDates=[],s.selectDate(d,{silent:a})),t.view&&s.setCurrentView(t.view,{silent:a}),s._setInputValue(),i.range&&!u?(s.rangeDateTo=false,s.rangeDateFrom=false):!i.range&&u&&s.selectedDates.length&&(s.rangeDateFrom=s.selectedDates[0],s.rangeDateTo=s.selectedDates[1]),i.timepicker&&!o?(h&&s.timepicker.destroy(),s.timepicker=false,s.$timepicker.parentNode.removeChild(s.$timepicker)):!i.timepicker&&o&&s._addTimepicker(),!i.buttons&&c?s._addButtons():i.buttons&&!c?(s.buttons.destroy(),s.$buttons.parentNode.removeChild(s.$buttons)):h&&i.buttons&&c&&s.buttons.clearHtml().render(),!i.isMobile&&l?(s.treatAsInline||H||s._createMobileOverlay(),s._addMobileAttributes(),s.visible&&s._showMobileOverlay()):i.isMobile&&!l&&(s._removeMobileAttributes(),s.visible&&(H.classList.remove("-active-"),"function"!=typeof s.opts.position&&s.setPosition())),h&&(s.nav.update(),s.views[s.currentView].render(),s.currentView===r.days&&s.views[s.currentView].renderDayNames())})),z(this,"disableDate",(function(t,e){(Array.isArray(t)?t:[t]).forEach((function(t){var r=w(t);if(!r)return;var a=e?"delete":"add";i.disabledDates[a](i.formatDate(r,"yyyy-MM-dd"));var n=i.getCell(r,i.currentViewSingular);n&&n.adpCell.render()}),[])})),z(this,"enableDate",(function(t){i.disableDate(t,true)})),z(this,"isDateDisabled",(function(t){var e=w(t);return i.disabledDates.has(i.formatDate(e,"yyyy-MM-dd"))})),z(this,"isOtherMonth",(function(t){var e=u(t).month;return e!==i.parsedViewDate.month})),z(this,"isOtherYear",(function(t){var e=u(t).year;return e!==i.parsedViewDate.year})),z(this,"isOtherDecade",(function(t){var e=u(t).year,r=h(i.viewDate),a=r[0],n=r[1];return e<a||e>n})),z(this,"_onChangeSelectedDate",(function(t){var e=t.silent;setTimeout((function(){i._setInputValue(),i.opts.onSelect&&!e&&i._triggerOnSelect()}))})),z(this,"_onChangeFocusedDate",(function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).viewDateTransition;if(!t)return;var i=false;e&&(i=s.isOtherMonth(t)||s.isOtherYear(t)||s.isOtherDecade(t)),i&&s.setViewDate(t),s.opts.onFocus&&s.opts.onFocus({datepicker:s,date:t})})),z(this,"_onChangeTime",(function(t){var e=t.hours,r=t.minutes,a=new Date,n=i,o=n.lastSelectedDate,s=n.opts.onSelect,c=o;o||(c=a);var u=i.getCell(c,i.currentViewSingular),d=u&&u.adpCell;d&&d.isDisabled||(c.setHours(e),c.setMinutes(r),o?(i._setInputValue(),s&&i._triggerOnSelect()):i.selectDate(c))})),z(this,"_onFocus",(function(t){i.visible||i.show()})),z(this,"_onBlur",(function(t){i.inFocus||!i.visible||i.opts.isMobile||i.hide()})),z(this,"_onMouseDown",(function(t){i.inFocus=true})),z(this,"_onMouseUp",(function(t){i.inFocus=false,i.$el.focus()})),z(this,"_onResize",(function(){i.visible&&"function"!=typeof i.opts.position&&i.setPosition()})),z(this,"_onClickOverlay",(function(){i.visible&&i.hide()})),z(this,"getViewDates",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.days;return I.getDatesFunction(t)(s)})),z(this,"isWeekend",(function(t){return i.opts.weekends.includes(t)})),z(this,"getClampedDate",(function(t){var e=i,r=e.minDate,a=e.maxDate,n=t;return a&&v(t,a)?n=a:r&&b(t,r)&&(n=r),n})),this.$el=n(t),!this.$el)return;this.$datepicker=o({className:"air-datepicker"}),this.opts=D({},a,e),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||false);var c=this.opts,d=c.view,l=c.startDate;l||(this.opts.startDate=new Date),"INPUT"===this.$el.nodeName&&(this.elIsInput=true),this.inited=false,this.visible=false,this.viewDate=w(this.opts.startDate),this.focusDate=false,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=false,this.currentView=d,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=false,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=false,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}t.buildGlobalContainer=function(t){L=true,V=o({className:t,id:t}),n("body").appendChild(V)};t.prototype.init=function(){var e=this,i=e.opts,r=e.treatAsInline,a=e.opts,o=a.inline,s=a.isMobile,c=a.selectedDates,u=a.keyboardNav,d=a.onlyTimepicker,l=n("body");(!L||L&&V&&!l.contains(V))&&!o&&this.elIsInput&&!this.$customContainer&&t.buildGlobalContainer(t.defaultGlobalContainerId),!s||H||r||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(o||this._bindEvents(),u&&!d&&(this.keyboardNav=new S({dp:this,opts:i}))),c&&this.selectDate(c,{silent:true}),this.opts.visible&&!r&&this.show(),s&&!r&&this.$el.setAttribute("readonly",true),r&&this._createComponents()};t.prototype._createMobileOverlay=function(){H=o({className:"air-datepicker-overlay"}),V.appendChild(H)};t.prototype._createComponents=function(){var t;var e=this,i=e.opts,r=e.treatAsInline,a=e.opts,n=a.inline,o=a.buttons,s=a.timepicker,c=a.position,u=a.classes,d=a.onlyTimepicker,l=a.isMobile;this._buildBaseHtml(),this.elIsInput&&(n||this._setPositionClasses(c)),!n&&this.elIsInput||this.$datepicker.classList.add("-inline-"),u&&(t=this.$datepicker.classList).add.apply(t,u.split(" ")),d&&this.$datepicker.classList.add("-only-timepicker-"),l&&!r&&this._addMobileAttributes(),this.views[this.currentView]=new I({dp:this,type:this.currentView,opts:i}),this.nav=new T({dp:this,opts:i}),s&&this._addTimepicker(),o&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)};t.prototype._destroyComponents=function(){for(var t in this.views)this.views[t].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()};t.prototype._addMobileAttributes=function(){H.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",true)};t.prototype._removeMobileAttributes=function(){H.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||""===this.initialReadonly||this.$el.removeAttribute("readonly")};t.prototype._createMinMaxDates=function(){var t=this.opts,e=t.minDate,i=t.maxDate;this.minDate=!!e&&w(e),this.maxDate=!!i&&w(i)};t.prototype._addTimepicker=function(){this.$timepicker=o({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new R({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)};t.prototype._addButtons=function(){this.$buttons=o({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new j({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)};t.prototype._bindSubEvents=function(){this.on(r.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(r.eventChangeFocusDate,this._onChangeFocusedDate),this.on(r.eventChangeTime,this._onChangeTime)};t.prototype._buildBaseHtml=function(){var t=this.opts.inline;var e,i;this.elIsInput?t?(e=this.$datepicker,(i=this.$el).parentNode.insertBefore(e,i.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)};t.prototype._handleLocale=function(){var t=this.opts,e=t.locale,i=t.dateFormat,r=t.firstDay,a=t.timepicker,n=t.onlyTimepicker,o=t.timeFormat,s=t.dateTimeSeparator;var c;this.locale=(c=e,JSON.parse(JSON.stringify(c))),i&&(this.locale.dateFormat=i),void 0!==o&&""!==o&&(this.locale.timeFormat=o);var u=this.locale.timeFormat;if(""!==r&&(this.locale.firstDay=r),a&&"function"!=typeof i){var d=u?s:"";this.locale.dateFormat=[this.locale.dateFormat,u||""].join(d)}n&&"function"!=typeof i&&(this.locale.dateFormat=this.locale.timeFormat)};t.prototype._setPositionClasses=function(t){var e;if("function"==typeof t)return void this.$datepicker.classList.add("-custom-position-");var i=(t=t.split(" "))[0],r="air-datepicker -".concat(i,"-").concat(t[1],"- -from-").concat(i,"-");(e=this.$datepicker.classList).add.apply(e,r.split(" "))};t.prototype._bindEvents=function(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)};t.prototype._limitViewDateByMaxMinDates=function(){var t=this,e=t.viewDate,i=t.minDate,r=t.maxDate;r&&v(e,r)&&this.setViewDate(r),i&&b(e,i)&&this.setViewDate(i)};t.prototype.formatDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewDate,i=arguments.length>1?arguments[1]:void 0;if(e=w(e),!(e instanceof Date))return;var r=i,a=this.locale,n=u(e),o=n.dayPeriod,s=h(e),c=t.replacer,d={T:e.getTime(),m:n.minutes,mm:n.fullMinutes,h:n.hours12,hh:n.fullHours12,H:n.hours,HH:n.fullHours,aa:o,AA:o.toUpperCase(),E:a.daysShort[n.day],EEEE:a.days[n.day],d:n.date,dd:n.fullDate,M:n.month+1,MM:n.fullMonth,MMM:a.monthsShort[n.month],MMMM:a.months[n.month],yy:n.year.toString().slice(-2),yyyy:n.year,yyyy1:s[0],yyyy2:s[1]};for(var l=0,f=Object.entries(d);l<f.length;l++){var p=f[l],v=p[0],b=p[1];r=c(r,A(v),b)}return r};t.prototype.down=function(t){this._handleUpDownActions(t,"down")};t.prototype.up=function(t){this._handleUpDownActions(t,"up")};t.prototype.selectDate=function(t){var e=this;var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,o=n.currentView,s=n.parsedViewDate,c=n.selectedDates,u=a.updateTime,d=a.silent,l=this.opts,h=l.moveToOtherMonthsOnSelect,f=l.moveToOtherYearsOnSelect,p=l.multipleDates,b=l.range,k=l.autoClose,m=l.onBeforeSelect,g=c.length;if(Array.isArray(t))return t.forEach((function(t){e.selectDate(t,a)})),new Promise((function(t){setTimeout(t)}));if((t=w(t))instanceof Date){if(m&&!d&&!m({date:t,datepicker:this}))return Promise.resolve();if(o===r.days&&t.getMonth()!==s.month&&h&&(i=new Date(t.getFullYear(),t.getMonth(),1)),o===r.years&&t.getFullYear()!==s.year&&f&&(i=new Date(t.getFullYear(),0,1)),i&&this.setViewDate(i),p&&!b){if(g===p)return;this._checkIfDateIsSelected(t)||c.push(t)}else if(b)switch(g){case 1:c.push(t),this.rangeDateTo||(this.rangeDateTo=t),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=t),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[t],this.rangeDateFrom=t,this.rangeDateTo="";break;default:this.selectedDates=[t],this.rangeDateFrom=t}else this.selectedDates=[t];return this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,silent:null==a?void 0:a.silent,date:t,updateTime:u}),this._updateLastSelectedDate(t),k&&!this.timepickerIsActive&&this.visible&&(p||b?b&&1===g&&this.hide():this.hide()),new Promise((function(t){setTimeout(t)}))}};t.prototype.unselectDate=function(t){var e=this;var i=this.selectedDates,a=this;if((t=w(t))instanceof Date)return i.some((function(n,o){if(p(n,t))return i.splice(o,1),a.selectedDates.length?(a.rangeDateTo="",a.rangeDateFrom=i[0],a._updateLastSelectedDate(a.selectedDates[a.selectedDates.length-1])):(a.rangeDateFrom="",a.rangeDateTo="",a._updateLastSelectedDate(false)),e.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,date:t}),true}))};t.prototype.replaceDate=function(t,e){var i=this;var a=this.selectedDates.find((function(e){return p(e,t,i.currentView)})),n=this.selectedDates.indexOf(a);n<0||p(this.selectedDates[n],e,this.currentView)||(this.selectedDates[n]=e,this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,date:e,updateTime:true}),this._updateLastSelectedDate(e))};t.prototype.clear=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=false,this.rangeDateTo=false,this.lastSelectedDate=false,this.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,silent:t.silent}),new Promise((function(t){setTimeout(t)}))};t.prototype.show=function(){var t=this.opts,e=t.onShow,i=t.isMobile;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=true,e&&this._scheduleCallAfterTransition(e),i&&this._showMobileOverlay()};t.prototype.hide=function(){var t=this;var e=this.opts,i=e.onHide,r=e.isMobile,a=this._hasTransition();this.visible=false,this.hideAnimation=true,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((function(e){!t.customHide&&(e&&a||!e&&!a)&&t._finishHide(),i&&i(e)})),r&&H.classList.remove("-active-")};t.prototype._triggerOnSelect=function(){var t=this;var e=[],i=[],r=this,a=r.selectedDates,n=r.locale,o=r.opts,s=o.onSelect,c=o.multipleDates,u=o.range,d=c||u,l="function"==typeof n.dateFormat;a.length&&(e=a.map(k),i=l?c?n.dateFormat(e):e.map((function(t){return n.dateFormat(t)})):e.map((function(e){return t.formatDate(e,n.dateFormat)}))),s({date:d?e:e[0],formattedDate:d?i:i[0],datepicker:this})};t.prototype._handleAlreadySelectedDates=function(t,e){var i=this,r=i.selectedDates,a=i.rangeDateFrom,n=i.rangeDateTo,o=this.opts,s=o.range,c=o.toggleSelected,u=r.length,d="function"==typeof c?c({datepicker:this,date:e}):c,l=Boolean(s&&1===u&&t),h=l?k(e):e;s&&!d&&(2!==u&&this.selectDate(h),2===u&&p(a,n))||(d?this.unselectDate(h):this._updateLastSelectedDate(l?h:t))};t.prototype._handleUpDownActions=function(t,e){if(!((t=w(t||this.focusDate||this.viewDate))instanceof Date))return;var i="up"===e?this.viewIndex+1:this.viewIndex-1;i>2&&(i=2),i<0&&(i=0),this.setViewDate(new Date(t.getFullYear(),t.getMonth(),1)),this.setCurrentView(this.viewIndexes[i])};t.prototype.getCell=function(t){var e;var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.day;if(!((t=w(t))instanceof Date))return;var a=u(t),n=a.year,o=a.month,s=a.date,c='[data-year="'.concat(n,'"]'),d='[data-month="'.concat(o,'"]'),l=(e={},e[r.day]="".concat(c).concat(d,'[data-date="').concat(s,'"]'),e[r.month]="".concat(c).concat(d),e[r.year]="".concat(c),e);return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(l[i]):void 0};t.prototype._showMobileOverlay=function(){H.classList.add("-active-")};t.prototype._hasTransition=function(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((function(t,e){return parseFloat(e)+t}),0)>0};Object.defineProperty(t.prototype,"shouldUpdateDOM",{get:function(){return this.visible||this.treatAsInline},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parsedViewDate",{get:function(){return u(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentViewSingular",{get:function(){return this.currentView.slice(0,-1)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"curDecade",{get:function(){return h(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"viewIndex",{get:function(){return this.viewIndexes.indexOf(this.currentView)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinalView",{get:function(){return this.currentView===r.years},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasSelectedDates",{get:function(){return this.selectedDates.length>0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isMinViewReached",{get:function(){return this.currentView===this.opts.minView||this.currentView===r.days},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"$container",{get:function(){return this.$customContainer||V},enumerable:false,configurable:true});t.replacer=function(t,e,i){return t.replace(e,(function(t,e,r,a){return e+i+a}))};return t}();var U;return z(Y,"defaults",a),z(Y,"version","3.6.0"),z(Y,"defaultGlobalContainerId","air-datepicker-global-container"),U=Y.prototype,Object.assign(U,P),i.default}()}))})(airDatepicker$1);return airDatepicker$1.exports}var airDatepickerExports=requireAirDatepicker();var AirDatepicker=getDefaultExportFromCjs(airDatepickerExports);function renderCellAccessibility(t,e){var i=t.date,r=t.cellType;if(r==="day"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}}}else if(r==="month"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{year:"numeric",month:"long"})}}}else if(r==="year"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{year:"numeric"})}}}}function mergeRenderCellResults(t,e){if(!t)return e;if(!e)return t;return __assign(__assign({},t),{classes:[t.classes,e.classes].filter(Boolean).join(" "),disabled:e.disabled||t.disabled})}var airDatepickerLocales={ar:function(){return import("./ar-qmsePlo9.js").then((function(t){return t.a}))},bg:function(){return import("./bg-ZwPeL6oI.js").then((function(t){return t.b}))},ca:function(){return import("./ca-ISi6eci_.js").then((function(t){return t.c}))},cs:function(){return import("./cs-DGzvkTrE.js").then((function(t){return t.c}))},da:function(){return import("./da-BR7-7EdA.js").then((function(t){return t.d}))},de:function(){return import("./de-Cqz-boHe.js").then((function(t){return t.d}))},el:function(){return import("./el-DU9G8oSc.js").then((function(t){return t.e}))},en:function(){return import("./en-lxF4YBLI.js").then((function(t){return t.e}))},es:function(){return import("./es-_tWE7z8a.js").then((function(t){return t.e}))},eu:function(){return import("./eu-BowKnChG.js").then((function(t){return t.e}))},fi:function(){return import("./fi-CC2W9CX5.js").then((function(t){return t.f}))},fr:function(){return import("./fr-DlMHXJTg.js").then((function(t){return t.f}))},hr:function(){return import("./hr-BZdkBqJE.js").then((function(t){return t.h}))},hu:function(){return import("./hu-BlwH1sUP.js").then((function(t){return t.h}))},id:function(){return import("./id-BCexutvr.js").then((function(t){return t.i}))},it:function(){return import("./it-B7CtP_zH.js").then((function(t){return t.i}))},ja:function(){return import("./ja-GwQmiRrY.js").then((function(t){return t.j}))},ko:function(){return import("./ko-Bog4AaS3.js").then((function(t){return t.k}))},nb:function(){return import("./nb-C0rJhv3t.js").then((function(t){return t.n}))},nl:function(){return import("./nl-DTAYnhrt.js").then((function(t){return t.n}))},pl:function(){return import("./pl-Dc18GnEP.js").then((function(t){return t.p}))},pt:function(){return import("./pt-CvvuIVLG.js").then((function(t){return t.p}))},ro:function(){return import("./ro-BOcX9wJt.js").then((function(t){return t.r}))},ru:function(){return import("./ru-CNbbLA5W.js").then((function(t){return t.r}))},si:function(){return import("./si-CBbBs36T.js").then((function(t){return t.s}))},sk:function(){return import("./sk-DBNkuluD.js").then((function(t){return t.s}))},sl:function(){return import("./sl-Daq-FtDz.js").then((function(t){return t.s}))},sv:function(){return import("./sv-BfSAzCsG.js").then((function(t){return t.s}))},th:function(){return import("./th-DnzvZaNa.js").then((function(t){return t.t}))},tr:function(){return import("./tr-O5ciRquU.js").then((function(t){return t.t}))},uk:function(){return import("./uk-COulUFGY.js").then((function(t){return t.u}))},zh:function(){return import("./zh-bL3e3TZi.js").then((function(t){return t.z}))}};var TEXT_DIRECTION_MARKERS="".concat(UNICODE_BIDI.ltr).concat(UNICODE_BIDI.rtl).concat(UNICODE_BIDI.pop);var TEXT_DIRECTION_MARKERS_REGEX=new RegExp("[".concat(TEXT_DIRECTION_MARKERS,"]"),"g");var DATE_FORMAT_RANGE_SEPARATOR=" - ";var DATE_FORMAT_MAP={y:"3333",m:"11",d:"22"};var DATE_FORMAT_KEYS=Object.keys(DATE_FORMAT_MAP);var DATE_FORMAT_KEYS_REGEX=new RegExp("[^".concat(DATE_FORMAT_KEYS.join(""),"]"),"g");var DATE_FORMAT_SEPARATOR_REGEX=new RegExp("[^".concat(DATE_FORMAT_KEYS.join("")).concat(TEXT_DIRECTION_MARKERS,"]+"),"g");var DATE_FORMAT_STRING_OPTIONS={day:"2-digit",month:"2-digit",year:"numeric"};function padIsoDate(t){var e=t.split("-");return"".concat(e[0].padStart(4,"0"),"-").concat(e[1],"-").concat(e[2])}function isoToDate(t){return new Date("".concat(padIsoDate(t),"T00:00"))}function dateToIso(t){return t.toLocaleDateString("sv",DATE_FORMAT_STRING_OPTIONS)}function dateToString(t,e){var i=t.toLocaleDateString(e,DATE_FORMAT_STRING_OPTIONS);var r=t.getFullYear().toString();if(r.length<4){return i.replace(r,r.padStart(4,"0"))}return i}function stringToDate(t,e,i){var r=e.match(DATE_FORMAT_SEPARATOR_REGEX)[0];var a=t.replace(TEXT_DIRECTION_MARKERS_REGEX,"").split(r).map((function(t){return t.replaceAll(/[^\d]/g,"")}));var n=e.replace(DATE_FORMAT_KEYS_REGEX,"").split("");var o=DATE_FORMAT_KEYS.reduce((function(t,e){var i;return __assign(__assign({},t),(i={},i[e]=a[n.indexOf(e)],i))}),{}),s=o.y,c=o.m,u=o.d;var d=i?(Number(s)-BUDDHIST_CALENDAR_YEAR_OFFSET).toString():s;return isoToDate([d,c,u].join("-"))}function getDateFormat(t,e){var i=new Date(Object.values(DATE_FORMAT_MAP).join("-"));var r=i.toLocaleDateString(t,DATE_FORMAT_STRING_OPTIONS);for(var a=0,n=Object.entries(DATE_FORMAT_MAP);a<n.length;a++){var o=n[a],s=o[0],c=o[1];r=r.replace(e&&c.length===4?(Number(c)+BUDDHIST_CALENDAR_YEAR_OFFSET).toString():c,s)}return r}function isValidDate(t){return t instanceof Date&&!Number.isNaN(t.getTime())&&t.getFullYear()>=1e3}var postDatePickerCss=function(){return'.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{-webkit-transition:all var(--adp-transition-duration) var(--adp-transition-ease);transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7, var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex:1;flex:1;text-align:center;text-transform:uppercase;font-size:.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7, var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3, 1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4, 1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);-webkit-box-sizing:content-box;box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:-ms-inline-flexbox;display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255, 255, 255, 0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr;grid-column-gap:12px;-ms-flex-align:center;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;-ms-flex-item-align:end;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:11px;height:17px;background:-webkit-gradient(linear, left top, right top, from(var(--adp-time-track-color)), to(var(--adp-time-track-color))) left 50%/100% var(--adp-time-track-height) no-repeat;background:linear-gradient(to right, var(--adp-time-track-color), var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;-ms-flex:1;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-box-sizing:border-box;box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size)/2*-1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0, 0, 0, 0)}.air-datepicker{--adp-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92, 196, 239, .1);--adp-background-color-in-range-focused:rgba(92, 196, 239, .2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92, 196, 239, 0.1);--adp-cell-background-color-in-range-hover:rgba(92, 196, 239, 0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0, 0, 0, .3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);-webkit-box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);border-radius:var(--adp-border-radius);-webkit-box-sizing:content-box;box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4, -webkit-max-content);grid-template-rows:repeat(4, max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;-webkit-transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{-webkit-transform:translateY(calc(var(--adp-transition-offset) * -1));transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{-webkit-transform:translateX(var(--adp-transition-offset));transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{-webkit-transform:translateY(var(--adp-transition-offset));transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{-webkit-transform:translateX(calc(var(--adp-transition-offset) * -1));transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}.air-datepicker.-active-.-custom-position-{-webkit-transition:none;transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);-webkit-box-shadow:none;box-shadow:none;position:static;left:auto;right:auto;opacity:1;-webkit-transform:none;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){-webkit-transform:translate(-50%, calc(-50% + var(--adp-transition-offset)));transform:translate(-50%, calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.air-datepicker.-custom-position-{-webkit-transition:none;transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);-webkit-box-sizing:border-box;box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{-webkit-transform:rotate(225deg);transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{-webkit-transform:rotate(315deg);transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size)/2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size)/2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{-webkit-box-sizing:content-box;box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;-webkit-transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;-webkit-transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;-webkit-transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-cell-background-color-in-range:unset;--adp-hover-color:unset;--adp-cell-border-width:2px;font-family:inherit;font-size:var(--post-device-font-size-8);width:var(--post-core-dimension-296);border-radius:var(--post-device-border-radius-1);-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);font-weight:700;border:none}.air-datepicker.-inline-{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}.air-datepicker *{font-family:inherit}.air-datepicker .air-datepicker--navigation{border-start-start-radius:inherit;border-start-end-radius:inherit}.air-datepicker .air-datepicker--navigation .air-datepicker-nav{border-start-start-radius:inherit;border-start-end-radius:inherit;-webkit-border-after:none;border-block-end:none;background:var(--post-core-color-sandgrey-012);padding:var(--post-device-spacing-padding-15)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:auto;margin-inline-end:auto;-ms-flex-pack:start;justify-content:flex-start;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0 0 0 var(--post-device-spacing-padding-15);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title.-disabled-:hover{color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title:hover{background:unset;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title:has(button:disabled){color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;border-radius:var(--post-device-border-radius-1);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--post-device-spacing-gap-3);color:inherit;cursor:inherit}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button{background-color:ButtonFace !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:hover{background-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title .placeholder{-ms-flex-positive:2;flex-grow:2;pointer-events:none}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action{height:var(--post-device-sizing-interactive-button-height-4);width:var(--post-device-sizing-interactive-button-height-4)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action[data-action=next]{-webkit-margin-start:var(--post-device-spacing-gap-inline-4);margin-inline-start:var(--post-device-spacing-gap-inline-4)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action:hover{background:unset;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action:has(:disabled){color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;height:var(--post-device-sizing-interactive-button-height-4);width:var(--post-device-sizing-interactive-button-height-4);border-radius:var(--post-device-border-radius-round);color:inherit;cursor:inherit}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button{background-color:ButtonFace !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:hover{background-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content{padding:0 !important}.air-datepicker .air-datepicker--content .air-datepicker-body--day-names{background:var(--post-core-color-sandgrey-012);margin:0;-webkit-padding-before:var(--post-device-spacing-padding-13);padding-block-start:var(--post-device-spacing-padding-13);-webkit-padding-after:var(--post-device-spacing-padding-5);padding-block-end:var(--post-device-spacing-padding-5);padding-inline:var(--post-device-spacing-padding-15)}.air-datepicker .air-datepicker--content .air-datepicker-body--day-names .air-datepicker-body--day-name{text-transform:capitalize;font-size:inherit;color:var(--post-scheme-color-surface-brand-fg)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells{min-height:var(--post-core-dimension-182);padding:var(--post-device-spacing-padding-15);background:var(--post-scheme-color-surface-accent1-bg);row-gap:var(--post-device-spacing-gap-2);border-radius:var(--post-device-border-radius-1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .a11y-row{display:grid;grid-column:1/-1;grid-template-columns:subgrid}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days-{grid-template-columns:repeat(7, var(--post-core-dimension-40));grid-auto-rows:var(--post-core-dimension-40)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell>*{-webkit-box-sizing:border-box;box-sizing:border-box}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell::after{-webkit-box-sizing:border-box;box-sizing:border-box}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-{width:var(--post-core-dimension-40);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-other-month-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:empty{pointer-events:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty){color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty):not(.-current-){background:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty):not(.-current-){background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty).-current-{color:var(--post-scheme-color-interactive-primary-hover-fg1);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background:var(--post-scheme-color-interactive-primary-selected-bg4)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-):not(.-range-from-):not(.-range-to-,.-other-month-){border-color:var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-){background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-disabled-:not(.-other-month-){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--post-device-border-width-default) dashed var(--post-scheme-color-interactive-primary-disabled-stroke);width:var(--post-core-dimension-38);height:var(--post-core-dimension-38);outline:none;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;justify-self:center}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty){border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty).-selected-{background:var(--post-scheme-color-interactive-primary-selected-bg4);color:var(--post-scheme-color-interactive-primary-selected-fg3);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty).-selected-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);background:var(--post-scheme-color-interactive-primary-hover-bg2);color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years-{grid-template-columns:repeat(4, var(--post-core-dimension-64));grid-auto-rows:var(--post-core-dimension-40);-webkit-column-gap:var(--post-device-spacing-gap-inline-8);-moz-column-gap:var(--post-device-spacing-gap-inline-8);column-gap:var(--post-device-spacing-gap-inline-8)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-{width:var(--post-core-dimension-64);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-in-range-{background-color:rgba(0,0,0,0)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-other-decade-{display:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:hover:not(.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3);background:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-selected-:not(.-selected-~.-selected-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-disabled-:not(.-day-.-other-decade-){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--adp-cell-border-width) dashed var(--post-scheme-color-interactive-primary-disabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-current-{border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-current-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);background:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months-{grid-template-columns:repeat(4, var(--post-core-dimension-64));padding:var(--post-device-spacing-padding-15);-webkit-column-gap:var(--post-device-spacing-gap-inline-8);-moz-column-gap:var(--post-device-spacing-gap-inline-8);column-gap:var(--post-device-spacing-gap-inline-8);min-height:var(--post-core-dimension-182);text-transform:uppercase}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-{width:var(--post-core-dimension-64);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-in-range-{background-color:rgba(0,0,0,0)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-other-decade-{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-):not(.-current-){background:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-):not(.-current-){background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-selected-:not(.-selected-~.-selected-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-disabled-{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--adp-cell-border-width) dashed var(--post-scheme-color-interactive-primary-disabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-current-{border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-current-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);color:var(--post-scheme-color-interactive-primary-hover-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell.-focus-:hover{background:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-{position:relative;border:0}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::after{content:"";position:absolute;inset:0;display:block;width:var(--post-core-dimension-40);height:var(--post-core-dimension-40)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::after{inset:calc(var(--adp-cell-border-width)*-1)}@media (-webkit-min-device-pixel-ratio: 1.25)and (-webkit-max-device-pixel-ratio: 1.5), (min-resolution: 1.25dppx)and (max-resolution: 1.4999dppx){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::after{inset:calc(var(--adp-cell-border-width)*-1 - .5)}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-.-selected-:hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-.-selected-:hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-.-selected-:hover::after{inset:0}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::before{z-index:-2}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::after{z-index:-1}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-)::after{background:var(--post-scheme-color-interactive-primary-hover-bg2);border-radius:var(--post-device-border-radius-round);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-)::after{border:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-)::after{border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-selected-fg3)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-)::after{forced-color-adjust:none;border-color:Highlight}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-):hover{color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-):hover::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);color:var(--post-scheme-color-interactive-primary-hover-fg3);background:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-{background-color:rgba(0,0,0,0);z-index:2}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):hover::after{background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-other-month-)::before{background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-other-month-)::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-){color:var(--post-scheme-color-interactive-primary-disabled-fg1) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-)::after{background-color:var(--post-scheme-color-surface-accent1-bg);border-radius:var(--post-device-border-radius-round);border:var(--post-device-border-width-default) dashed var(--post-scheme-color-interactive-primary-disabled-stroke);color:var(--post-scheme-color-interactive-primary-disabled-fg1) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-)::after{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-){z-index:1}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-).-selected-:not(.-disabled-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-).-selected-:not(.-disabled-):hover{border:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-)::before{background:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-)::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-).-selected-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-).-selected-::after{border-radius:var(--post-device-border-radius-round);background:var(--post-scheme-color-interactive-primary-selected-bg4)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-).-selected-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-).-selected-::after{background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover{color:var(--post-scheme-color-interactive-primary-hover-fg3)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::after{background:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::after{background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-,.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-,.-disabled-).-selected-::before{inset-inline-start:auto;width:50%;background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-,.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-,.-disabled-).-selected-::before{inset-inline-end:auto;width:50%;background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-range-from-:hover::before{background:none;border:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells:not(:has(.-selected-.-range-from-):has(.-selected-.-range-to-)):not(:hover) .air-datepicker-cell:is(.-in-range-,.-range-from-,.-range-to-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells:not(:has(.-selected-.-range-from-):has(.-selected-.-range-to-)):not(:hover) .air-datepicker-cell:is(.-in-range-,.-range-from-,.-range-to-):not(.-selected-)::after{content:unset}.calendar-input,.calendar-input-range{position:relative}.calendar-input button,.calendar-input-range button{z-index:1;padding:0;position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none;border:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:var(--post-device-border-radius-focus);-webkit-transition:opacity .2s ease,visibility .2s ease,fill .2s ease;transition:opacity .2s ease,visibility .2s ease,fill .2s ease;color:var(--post-scheme-color-interactive-input-enabled-fg);right:var(--post-core-dimension-14);top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--post-scheme-color-interactive-input-enabled-fg);outline-offset:4px;right:var(--post-core-dimension-14)}.calendar-input button post-icon,.calendar-input-range button post-icon{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}.calendar-input button:not([disabled]),.calendar-input-range button:not([disabled]){cursor:pointer}.calendar-input button:not([disabled]) :where(:hover>*) post-icon,.calendar-input-range button:not([disabled]) :where(:hover>*) post-icon{color:var(--post-scheme-color-interactive-input-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.calendar-input button:not([disabled]) :where(:hover>*) post-icon,.calendar-input-range button:not([disabled]) :where(:hover>*) post-icon{color:Highlight}}.calendar-input button[disabled],.calendar-input-range button[disabled]{color:var(--post-scheme-color-interactive-primary-disabled-fg1)}.calendar-input ::slotted(input),.calendar-input-range ::slotted(input){-webkit-padding-end:calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important;padding-inline-end:calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}:host ::slotted(input.form-control:is(.is-invalid,.is-valid):not(:disabled)){background-position:top 50% right calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}:host [dir=rtl] .calendar-input button,:host [dir=rtl] .calendar-input-range button{right:auto;left:var(--post-core-dimension-14)}:host [dir=rtl] .air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var __decorate=undefined&&undefined.__decorate||function(t,e,i,r){var a=arguments.length,n=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)if(o=t[s])n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n;return a>3&&n&&Object.defineProperty(e,i,n),n};var PostDatePicker=function(){function t(t){var e=this;registerInstance(this,t);this.locale=this.systemLocale;this.range=false;this.inline=false;this.inputDisabled=false;this.today=new Date;this.startDate=new Date;this.currentViewType="days";this._isInternalUpdate=false;this._lastInputValue=null;this.skipOnSelectCount=0;this.skipFocusOnNextRender=false;this.pendingFocusDate=null;this.handleInputBlur=function(){if(e.range){var t=e.inputMask.value.split(e.dateFormatRangeSeparator);var i=e.stringToDate(t[0]);var r=e.stringToDate(t[1]);var a=isValidDate(i);var n=isValidDate(r);if(a&&n){var o=i>r;e.skipOnSelectCount=o?0:2;e.dpInstance.selectDate([i,r]);e.dpInstance.setViewDate(i)}else if(a&&!n){e.dpInstance.clear();e.dpInstance.selectDate(i);e.dpInstance.setViewDate(i)}else{e.resetSelection()}}else{var s=e.stringToDate(e.inputMask.value);if(isValidDate(s)){e.skipOnSelectCount=1;e.dpInstance.selectDate(s);e.dpInstance.setViewDate(s)}else{e.resetSelection()}}e.emitInputEvents()};this.handlePrevNextClick=function(){e.skipFocusOnNextRender=true};this.handleTab=function(t){if(e.inline||t.key!=="Tab"&&t.key!=="Escape")return;if(t.key==="Escape"){e.dpInput.focus()}var i=e.host.shadowRoot.activeElement;if(i===e.titleBtn&&t.shiftKey){t.preventDefault();var r=e.getCells().find((function(t){return t.tabIndex===0}));if(r){r.focus()}}if((i===null||i===void 0?void 0:i.getAttribute("role"))==="gridcell"&&!t.shiftKey){t.preventDefault();if(e.currentViewType==="years"){e.prevBtn.focus()}else{e.titleBtn.focus()}}};this.handleGridKeydown=function(t){var i=t.key;var r=e.startDate;if(!r)return;if(i==="Enter"||i===" "){t.preventDefault();var a=e.getCells().find((function(t){return t.tabIndex===0}));if(a){a.click()}return}var n=new Date(r);var o={ArrowLeft:{days:function(){return n.setDate(r.getDate()-1)},months:function(){return n.setMonth(r.getMonth()-1)},years:function(){return n.setFullYear(r.getFullYear()-1)}},ArrowRight:{days:function(){return n.setDate(r.getDate()+1)},months:function(){return n.setMonth(r.getMonth()+1)},years:function(){return n.setFullYear(r.getFullYear()+1)}},ArrowUp:{days:function(){return n.setDate(r.getDate()-7)},months:function(){return n.setMonth(r.getMonth()-4)},years:function(){return n.setFullYear(r.getFullYear()-4)}},ArrowDown:{days:function(){return n.setDate(r.getDate()+7)},months:function(){return n.setMonth(r.getMonth()+4)},years:function(){return n.setFullYear(r.getFullYear()+4)}},Home:{days:function(){return n.setDate(1)},months:function(){return n.setMonth(0)},years:function(){return n.setFullYear(r.getFullYear()-r.getFullYear()%10)}},End:{days:function(){return n.setMonth(r.getMonth()+1,0)},months:function(){return n.setMonth(11)},years:function(){return n.setFullYear(r.getFullYear()-r.getFullYear()%10+9)}},PageUp:{days:function(){return n.setMonth(r.getMonth()-1)},months:function(){return n.setFullYear(r.getFullYear()-1)},years:function(){return n.setFullYear(r.getFullYear()-10)}},PageDown:{days:function(){return n.setMonth(r.getMonth()+1)},months:function(){return n.setFullYear(r.getFullYear()+1)},years:function(){return n.setFullYear(r.getFullYear()+10)}}};if(!o[i]||!o[i][e.currentViewType])return;t.preventDefault();o[i][e.currentViewType]();var s=r.getMonth()!==n.getMonth()||r.getFullYear()!==n.getFullYear();if(s){e.pendingFocusDate=n;e.skipFocusOnNextRender=false;e.dpInstance.setViewDate(n);requestAnimationFrame((function(){e.setActiveCell(n,true);requestAnimationFrame((function(){if(e.pendingFocusDate===n){e.pendingFocusDate=null}}))}))}else{e.setActiveCell(n,true)}};this.handleInputEvent=function(t){if(e.maskElement.allowEvents)return;var i=e.serializeIsoValue();if(i===e._lastInputValue){t.stopImmediatePropagation();return}e._lastInputValue=i};this.forceTitleClickToYear=function(){if(e.dpInstance){e.dpInstance.setCurrentView("years")}}}t.prototype.validateLocale=function(){if(!isValidLocale(this.locale)){console.error('The prop `locale` of the `post-date-picker` component must be a valid localeCode (e.g. `en`, `en-GB`, etc.), based on <a href="https://www.rfc-editor.org/info/bcp47">BCP 47 (RFC 5646)</a> standard.')}};t.prototype.updateLocale=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.airLocale()];case 1:t=i.sent();(e=this.dpInstance)===null||e===void 0?void 0:e.update({locale:t,dateFormat:t.dateFormat,firstDay:t.firstDay});this.updateMask();return[2]}}))}))};t.prototype.updateRange=function(){var t,e;(t=this.dpInstance)===null||t===void 0?void 0:t.update({range:this.range});this.updateMask();if(this.range&&((e=this.dpInstance)===null||e===void 0?void 0:e.selectedDates.length)>0){var i=this.dpInstance.selectedDates[0];this.dpInstance.clear();this.dpInstance.selectDate(i)}else{this.syncInputToDp()}};t.prototype.updateMin=function(){var t;(t=this.dpInstance)===null||t===void 0?void 0:t.update({minDate:this.min?isoToDate(this.min):false})};t.prototype.updateMax=function(){var t;(t=this.dpInstance)===null||t===void 0?void 0:t.update({maxDate:this.max?isoToDate(this.max):false})};t.prototype.validateInline=function(){if(!this.dpInput){console.error("The date picker must contain one input element")}};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!this.popoverRef)return[3,2];(t=this.dpInstance)===null||t===void 0?void 0:t.setCurrentView("days");return[4,this.popoverRef.show(this.dpInput)];case 1:e.sent();this.enhanceAccessibility();this.host.shadowRoot.removeEventListener("keydown",this.handleTab,true);this.host.shadowRoot.addEventListener("keydown",this.handleTab,true);return[3,3];case 2:console.error("show: popoverRef is null or undefined");e.label=3;case 3:return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.hide()];case 1:t.sent();return[3,3];case 2:console.error("hide: popoverRef is null or undefined");t.label=3;case 3:return[2]}}))}))};Object.defineProperty(t.prototype,"systemLocale",{get:function(){var t,e;var i=(t=this.host.closest("[lang]"))===null||t===void 0?void 0:t.getAttribute("lang");return(e=i!==null&&i!==void 0?i:navigator.language)!==null&&e!==void 0?e:FALLBACK_LANGUAGE_CODE},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"localeCode",{get:function(){var t;var e=(t=this.locale)!==null&&t!==void 0?t:FALLBACK_LANGUAGE_CODE;return isValidLocale(e)?e:FALLBACK_LANGUAGE_CODE},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"languageCode",{get:function(){return this.localeCode.split("-")[0]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dateFormat",{get:function(){return getDateFormat(this.localeCode,this.isBuddhistCalendar)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"textDirection",{get:function(){return getLocaleTextDirection(this.localeCode)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dateFormatRangeSeparator",{get:function(){return this.textDirection==="rtl"?"".concat(UNICODE_BIDI.rtl).concat(DATE_FORMAT_RANGE_SEPARATOR).concat(UNICODE_BIDI.pop):DATE_FORMAT_RANGE_SEPARATOR},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isBuddhistCalendar",{get:function(){return BUDDHIST_CALENDAR_LOCALES.includes(this.localeCode)},enumerable:false,configurable:true});t.prototype.airLocale=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i;return __generator(this,(function(r){switch(r.label){case 0:t=FALLBACK_LANGUAGE_CODE;if(airDatepickerLocales[this.languageCode]){t=this.languageCode}else{console.warn('Post Date Picker: Locale module "'.concat(this.localeCode,'" not found! Falling back to "').concat(FALLBACK_LANGUAGE_CODE,'".'))}return[4,(i=airDatepickerLocales[t])===null||i===void 0?void 0:i.call(airDatepickerLocales)];case 1:e=r.sent();return[2,e.default]}}))}))};t.prototype.dateToString=function(t){return dateToString(t,this.localeCode)};t.prototype.stringToDate=function(t){return stringToDate(t,this.dateFormat,this.isBuddhistCalendar)};t.prototype.setupInputObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;if(!this.dpInput)return;if(this.inputObserver){this.inputObserver.disconnect()}this.inputObserver=new MutationObserver((function(){t.syncDatePickerState()}));this.inputObserver.observe(this.dpInput,{attributes:true,attributeFilter:["disabled"]})};t.prototype.getCells=function(){if(!this.dpContainer)return[];var t="";switch(this.currentViewType){case"days":t=".air-datepicker-cell.-day-";break;case"months":t=".air-datepicker-cell.-month-";break;case"years":t=".air-datepicker-cell.-year-";break}return Array.from(this.dpContainer.querySelectorAll(t))};t.prototype.setActiveCell=function(t,e){if(e===void 0){e=true}var i=this.getCells();if(i.length===0)return;var r;if(this.currentViewType==="days"){r=i.find((function(e){return Number(e.dataset.date)===t.getDate()&&Number(e.dataset.month)===t.getMonth()&&Number(e.dataset.year)===t.getFullYear()}));if(!r){var a=new Date(this.currentViewYear,this.currentViewMonth,1);r=i.find((function(t){return Number(t.dataset.date)===1&&Number(t.dataset.month)===a.getMonth()&&Number(t.dataset.year)===a.getFullYear()&&!t.classList.contains("-other-month-")}))}}else if(this.currentViewType==="months"){r=i.find((function(e){return Number(e.dataset.month)===t.getMonth()&&Number(e.dataset.year)===t.getFullYear()}));if(!r){r=i.find((function(t){return!t.classList.contains("-other-year-")}))}}else{r=i.find((function(e){return Number(e.dataset.year)===t.getFullYear()}));if(!r){r=i.find((function(t){return!t.classList.contains("-other-decade-")}))}}if(!r){r=i.at(-1)}i.forEach((function(t){return t.tabIndex=-1}));r.tabIndex=0;if(e){r.focus()}this.startDate=new Date(Number(r.dataset.year),Number(r.dataset.month),Number(r.dataset.date))};t.prototype.reorderNavigation=function(){var t;var e=(t=this.dpContainer)===null||t===void 0?void 0:t.querySelector(".air-datepicker-nav");if(!e)return;var i=this.host.shadowRoot.querySelector('[data-action="prev"]');var r=this.host.shadowRoot.querySelector(".air-datepicker-nav--title");if(i&&r){e.insertBefore(r,i)}};Object.defineProperty(t.prototype,"prevBtn",{get:function(){return this.host.shadowRoot.querySelector('[data-action="prev"] button')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nextBtn",{get:function(){return this.host.shadowRoot.querySelector('[data-action="next"] button')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"titleBtn",{get:function(){return this.host.shadowRoot.querySelector(".air-datepicker-nav--title button")},enumerable:false,configurable:true});t.prototype.updateNavigationButtonLabels=function(){var t,e,i,r,a,n;if(this.currentViewType==="months"){(t=this.prevBtn)===null||t===void 0?void 0:t.setAttribute("aria-label",this.textPreviousYear);(e=this.nextBtn)===null||e===void 0?void 0:e.setAttribute("aria-label",this.textNextYear)}else if(this.currentViewType==="years"){(i=this.prevBtn)===null||i===void 0?void 0:i.setAttribute("aria-label",this.textPreviousDecade);(r=this.nextBtn)===null||r===void 0?void 0:r.setAttribute("aria-label",this.textNextDecade)}else{(a=this.prevBtn)===null||a===void 0?void 0:a.setAttribute("aria-label",this.textPreviousMonth);(n=this.nextBtn)===null||n===void 0?void 0:n.setAttribute("aria-label",this.textNextMonth)}};t.prototype.wrapCellsInRows=function(t){var e;(e=this.gridObserver)===null||e===void 0?void 0:e.disconnect();t.querySelectorAll(':scope > [role="row"]').forEach((function(e){while(e.firstChild)t.insertBefore(e.firstChild,e);e.remove()}));var i=Array.from(t.children).filter((function(t){return t.classList.contains("air-datepicker-cell")}));var r=PostDatePicker.COLUMNS_BY_VIEW[this.currentViewType];for(var a=0;a<i.length;a+=r){var n=document.createElement("div");n.setAttribute("role","row");n.classList.add("a11y-row");t.insertBefore(n,i[a]);for(var o=a;o<a+r&&o<i.length;o++){n.append(i[o])}}this.gridObserver.observe(t,{childList:true,subtree:false})};t.prototype.enhanceAccessibility=function(t){if(t===void 0){t=true}var e=this.dpContainer.querySelector(".air-datepicker-body--cells");if(this.currentViewType==="months"){e=this.dpContainer.querySelector(".air-datepicker-body--cells.-months-")}else if(this.currentViewType==="years"){e=this.dpContainer.querySelector(".air-datepicker-body--cells.-years-")}if(!e)return;e.setAttribute("role","grid");this.wrapCellsInRows(e);this.getCells().forEach((function(t){t.setAttribute("aria-selected",t.classList.contains("-selected-")?"true":"false");if(t.classList.contains("-current-")){t.setAttribute("aria-current","date")}}));e.removeEventListener("keydown",this.handleGridKeydown);e.addEventListener("keydown",this.handleGridKeydown);var i=this.getIsoDates();var r=i[0]?isoToDate(i[0]):null;var a=this.pendingFocusDate||r||this.today;this.setActiveCell(a,t)};t.prototype.setUpMask=function(){var t=this.dateFormat.replace(DATE_FORMAT_SEPARATOR_REGEX,(function(t){return"".concat(t,"`")}));var e={mask:Date,pattern:t,format:this.dateToString.bind(this),parse:this.stringToDate.bind(this),blocks:{y:{mask:IMask.MaskedRange,from:1e3,to:9999,maxLength:4,placeholderChar:Object.keys(DATE_FORMAT_MAP)[0]},m:{mask:IMask.MaskedRange,from:1,to:12,placeholderChar:Object.keys(DATE_FORMAT_MAP)[1]},d:{mask:IMask.MaskedRange,from:1,to:31,placeholderChar:Object.keys(DATE_FORMAT_MAP)[2]}},min:this.min?new Date("".concat(padIsoDate(this.min),"T00:00")):null,max:this.max?new Date("".concat(padIsoDate(this.max),"T00:00")):null,autofix:true,eager:true};var i=__assign(__assign({},e),{lazy:false,overwrite:true});var r={mask:"from`".concat(this.dateFormatRangeSeparator,"to"),blocks:{from:__assign({},e),to:__assign({},e)},lazy:false,overwrite:true};this.maskElement=new NativeInputMaskElement(this.dpInput);this.inputMask=IMask(this.maskElement,this.range?r:i)};t.prototype.updateMask=function(){if(!this.inline){this.inputMask.destroy();this.setUpMask();this.setupValueOverride();if(this.dpInstance.selectedDates.length>0){this.inputMask.value=this.formatDatesForMask(this.dpInstance.selectedDates)}}};t.prototype.setupValueOverride=function(){if(!this.dpInput)return;Object.defineProperty(this.dpInput,"value",{get:this.getInputIsoValue.bind(this),set:this.setInputIsoValue.bind(this),configurable:true,enumerable:true})};t.prototype.getIsoDates=function(){var t,e,i,r,a,n;var o=getNativeValue(this.dpInput);var s=8;if(!this.range){var c=(t=o===null||o===void 0?void 0:o.replaceAll(/\D/g,""))!==null&&t!==void 0?t:"";if(c.length<s)return[];var u=this.stringToDate(o);return u&&isValidDate(u)?[dateToIso(u)]:[]}var d=(e=o===null||o===void 0?void 0:o.split(this.dateFormatRangeSeparator))!==null&&e!==void 0?e:[];var l=(r=(i=d[0])===null||i===void 0?void 0:i.replaceAll(/\D/g,""))!==null&&r!==void 0?r:"";var h=(n=(a=d[1])===null||a===void 0?void 0:a.replaceAll(/\D/g,""))!==null&&n!==void 0?n:"";var f=l.length>=s?this.stringToDate(d[0]):null;var p=h.length>=s?this.stringToDate(d[1]):null;var v=[];if(f&&isValidDate(f))v.push(dateToIso(f));if(p&&isValidDate(p))v.push(dateToIso(p));return v};t.prototype.getInputIsoValue=function(){var t;var e=this.getIsoDates();if(!this.range){return(t=e[0])!==null&&t!==void 0?t:""}return e};t.prototype.serializeIsoValue=function(){return JSON.stringify(this.getIsoDates())};t.prototype.setInputIsoValue=function(t){var e,i,r,a;if(this._isInternalUpdate)return;this._isInternalUpdate=true;try{var n=void 0;if(Array.isArray(t)){n=t}else{n=t?t.split(",").map((function(t){return t.trim()})):[]}var o=n.filter(Boolean).map((function(t){return isoToDate(t)})).filter((function(t){return t&&isValidDate(t)}));if(o.length===0){this.inputMask.value="";(e=this.dpInstance)===null||e===void 0?void 0:e.clear();return}this.inputMask.value=this.formatDatesForMask(o);(i=this.dpInstance)===null||i===void 0?void 0:i.clear();(r=this.dpInstance)===null||r===void 0?void 0:r.selectDate(this.range?o:o[0]);(a=this.dpInstance)===null||a===void 0?void 0:a.setViewDate(o[0])}finally{this._isInternalUpdate=false}};t.prototype.configDatePicker=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;var a,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.airLocale()];case 1:t=o.sent();this.dpInput=this.host.querySelector("input");if(!this.dpInput){console.error("The post-date-picker component requires a slotted <input> element.");return[2]}if(this.inline){this.dpInput.type="hidden"}else{this.dpInput.type="text";this.dpInput.inputMode="numeric"}e=this.dpInput.value;this.dpInput.value="";this.setUpMask();this.setupValueOverride();if(e){this.setInputIsoValue(e)}this.dpContainer=this.host.shadowRoot.querySelector(".datepicker-container");if(this.dpContainer){i={navTitles:{days:'<button><strong>MMMM yyyy</strong><span class="visually-hidden">, '.concat(this.textSwitchYear,'</span><post-icon name="chevrondown"></post-icon></button>'),months:'<button><strong>yyyy</strong><span class="visually-hidden">, '.concat(this.textSwitchYear,'</span><post-icon name="chevrondown"></post-icon></button>')},prevHtml:'<button><post-icon name="chevronleft" ></post-icon></button>',nextHtml:'<button><post-icon name="chevronright" ></post-icon></button>',range:this.range,inline:true,autoClose:true,showOtherYears:true,selectOtherYears:true,showOtherMonths:false,moveToOtherMonthsOnSelect:true,startDate:this.startDate,minDate:this.min?isoToDate(this.min):undefined,maxDate:this.max?isoToDate(this.max):undefined,locale:t,dateFormat:t.dateFormat,firstDay:t.firstDay,view:"days",onChangeView:function(t){r.currentViewType=t;requestAnimationFrame((function(){r.enhanceAccessibility()}))},onChangeViewDate:function(t){var e=t.month,i=t.year;r.currentViewYear=i;r.currentViewMonth=e;r.updateNavigationButtonLabels()},onSelect:function(t){var e;var i=t.date;if(!i||Array.isArray(i)&&i.length===0){if(r._isInternalUpdate)return;r.inputMask.value="";r.emitInputEvents();return}r.getCells().forEach((function(t){t.setAttribute("aria-selected",t.classList.contains("-selected-")?"true":"false")}));if(r.skipOnSelectCount>0){r.skipOnSelectCount--;return}if(r._isInternalUpdate)return;var a=Array.isArray(i)?i:[i];var n=r.range&&a.length===1;r.inputMask.value=r.formatDatesForMask(a);r.emitInputEvents();if(n){return}if(!r.inline){(e=r.popoverRef)===null||e===void 0?void 0:e.hide();requestAnimationFrame((function(){return r.dpTrigger.focus()}))}},onShow:function(){r.enhanceAccessibility()},onRenderCell:function(t){var e;var i=renderCellAccessibility(t,r.localeCode);var a=(e=r.cellConfig)===null||e===void 0?void 0:e.call(r,t.date,t.cellType);return mergeRenderCellResults(i,a)}};this.dpInstance=new AirDatepicker(this.dpContainer,i);this.reorderNavigation();(a=this.prevBtn)===null||a===void 0?void 0:a.addEventListener("click",this.handlePrevNextClick);(n=this.nextBtn)===null||n===void 0?void 0:n.addEventListener("click",this.handlePrevNextClick);this.syncInputToDp()}return[2]}}))}))};t.prototype.emitInputEvents=function(){this.inputMask.updateValue();var t=this.serializeIsoValue();if(t===this._lastInputValue){return}this._lastInputValue=t;this.maskElement.allowEvents=true;this.dpInput.dispatchEvent(new InputEvent("input",{bubbles:true}));this.dpInput.dispatchEvent(new InputEvent("change",{bubbles:true}));this.maskElement.allowEvents=false};t.prototype.formatDatesForMask=function(t){var e=this;if(t.length===0)return"";if(this.range){return t.map((function(t){return e.dateToString(t)})).join(this.dateFormatRangeSeparator)}return this.dateToString(t[0])};t.prototype.syncInputToDp=function(){var t=this.getIsoDates();if(t.length===0)return;var e=t.map((function(t){return isoToDate(t)})).filter((function(t){return t&&isValidDate(t)}));if(e.length>0){this.dpInstance.selectDate(this.range?e:e[0]);this.dpInstance.setViewDate(e[0])}};t.prototype.attachTitleBtnListener=function(){var t=this;requestAnimationFrame((function(){if(!t.titleBtn)return;t.titleBtn.onclick=null;t.titleBtn.removeEventListener("click",t.forceTitleClickToYear);t.titleBtn.addEventListener("click",t.forceTitleClickToYear,{capture:true})}))};t.prototype.setupNavObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;var e=this.dpContainer.querySelector(".air-datepicker-nav");if(!e)return;if(this.navObserver){this.navObserver.disconnect()}this.updateNavigationButtonLabels();this.attachTitleBtnListener();this.navObserver=new MutationObserver((function(){t.updateNavigationButtonLabels();t.attachTitleBtnListener()}));this.navObserver.observe(e,{childList:true,subtree:true})};t.prototype.setupGridObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;var e=this.dpContainer.querySelector(".air-datepicker-body--cells");if(!e)return;if(this.gridObserver){this.gridObserver.disconnect()}this.gridObserver=new MutationObserver((function(e){var i=e.some((function(t){return t.type==="childList"}));if(!i)return;requestAnimationFrame((function(){t.enhanceAccessibility(!t.skipFocusOnNextRender);t.skipFocusOnNextRender=false}))}));this.gridObserver.observe(e,{childList:true,subtree:false})};t.prototype.addInputListener=function(){this._lastInputValue=this.serializeIsoValue();if(!this.inline){this.dpInput.addEventListener("blur",this.handleInputBlur)}this.dpInput.addEventListener("input",this.handleInputEvent)};t.prototype.resetSelection=function(){this.skipOnSelectCount=0;this.dpInstance.clear();this.dpInstance.setViewDate(this.today)};t.prototype.syncDatePickerState=function(){this.inputDisabled=this.dpInput.disabled};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.configDatePicker()];case 1:e.sent();this.setupGridObserver();this.setupNavObserver();this.setupInputObserver();this.validateLocale();this.validateInline();this.addInputListener();this.syncDatePickerState();if(this.inline){requestAnimationFrame((function(){return t.enhanceAccessibility(false)}))}return[2]}}))}))};t.prototype.disconnectedCallback=function(){var t,e,i,r,a,n,o,s,c,u;(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("keydown",this.handleTab,true);(e=this.titleBtn)===null||e===void 0?void 0:e.removeEventListener("click",this.forceTitleClickToYear);var d=(i=this.dpContainer)===null||i===void 0?void 0:i.querySelector(".air-datepicker-body--cells");d===null||d===void 0?void 0:d.removeEventListener("keydown",this.handleGridKeydown);(r=this.prevBtn)===null||r===void 0?void 0:r.removeEventListener("click",this.handlePrevNextClick);(a=this.nextBtn)===null||a===void 0?void 0:a.removeEventListener("click",this.handlePrevNextClick);(n=this.dpInput)===null||n===void 0?void 0:n.removeEventListener("blur",this.handleInputBlur);(o=this.dpInput)===null||o===void 0?void 0:o.removeEventListener("input",this.handleInputEvent);(s=this.gridObserver)===null||s===void 0?void 0:s.disconnect();(c=this.navObserver)===null||c===void 0?void 0:c.disconnect();(u=this.inputObserver)===null||u===void 0?void 0:u.disconnect();if(this.dpInstance){this.dpInstance.destroy();this.dpInstance=null}};t.prototype.render=function(){var t=this;return h(Host,{key:"231026bbf4e2ea6e12abc613f5a44ad1df7a1c88","data-version":version},this.inline&&h("div",{key:"69f1343a088c986e28aa2648eeb389432353e1eb",dir:this.textDirection},h("slot",{key:"f2c0bc1c1f5a6b716f421301418e0fcf11cbc774"}),h("div",{key:"17e7f3f6be51ed283ab80adcfb182ad36ac14b17",class:"datepicker-container"})),!this.inline&&h("div",{key:"8cc1938f558f764cc3a02351e4470b4bdde54210",dir:this.textDirection},h("div",{key:"e2a241a226e4817e17d3ffb96ac0f8ccbc1e9e5f",class:{"calendar-input":!this.range,"calendar-input-range":this.range,disabled:this.inputDisabled}},h("slot",{key:"90a42ee8a1f9df6a541c0573ec6ea5b872abf6b6"}),h("button",{key:"04e02dce4a4c35681f7db41b1b222a24716f7ebc",onClick:function(){return t.show()},"aria-haspopup":"true","aria-label":this.textToggleCalendar,disabled:this.inputDisabled,ref:function(e){return t.dpTrigger=e}},h("post-icon",{key:"d325b4589e1cbd237207fe1b6bc9af7bd8907e7c",name:"calendar"}))),h("post-popovercontainer",{key:"5616c7c6c3db35838de04ecbdadd0ba398e8cb37",placement:"bottom-end",offset:PostDatePicker.FLYOUT_OFFSET,ref:function(e){return t.popoverRef=e}},h("div",{key:"1df05f1c4e855ffc3549f48073ae28ef87067007",class:"datepicker-container"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{locale:[{validateLocale:0},{updateLocale:0}],range:[{updateRange:0}],min:[{updateMin:0}],max:[{updateMax:0}],inline:[{validateInline:0}]}},enumerable:false,configurable:true});return t}();PostDatePicker.FLYOUT_OFFSET=4;PostDatePicker.COLUMNS_BY_VIEW={days:7,months:4,years:4};__decorate([DateValue(),IsoDate()],PostDatePicker.prototype,"min",void 0);__decorate([DateValue(),IsoDate()],PostDatePicker.prototype,"max",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textNextMonth",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textNextYear",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textNextDecade",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textPreviousMonth",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textPreviousYear",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textPreviousDecade",void 0);__decorate([Required(),Type("string")],PostDatePicker.prototype,"textSwitchYear",void 0);__decorate([Required({when:"inline",truthy:false}),Type("string")],PostDatePicker.prototype,"textToggleCalendar",void 0);PostDatePicker.style=postDatePickerCss();export{PostDatePicker as post_date_picker};
|